; assembly | /* r2dec pseudo code output */ | /* bdlpcre_regex.t/assume @ 0x42b290 */ | #include | ; (fcn) method.int_BloombergLP::bdlpcre::RegEx::matchImp_BloombergLP::bdlpcre._anonymous_namespace_::VectorExtractor_bsl::vector_BloombergLP::bslstl::StringRefImp_char___bsl::allocator_BloombergLP::bslstl::StringRefImp_char__________BloombergLP::bdlpcre::_anonym () | uint64_t method_int_BloombergLP::bdlpcre::RegEx::matchImp_BloombergLP::bdlpcre_anonymous_namespace_::VectorExtractor_bsl::vector_BloombergLP::bslstl::StringRefImp_char_bsl::allocator_BloombergLP::bslstl::StringRefImp_char_BloombergLP::bdlpcre::_anonym (int64_t arg6, uint32_t arg5, int64_t arg4, int64_t arg3, int64_t arg2, int64_t arg1) { | int64_t var_10h; | uint32_t var_18h; | int64_t var_20h; | int64_t var_28h; | int64_t var_30h; | int64_t var_40h; | r9 = arg6; | r8 = arg5; | rcx = arg4; | rdx = arg3; | rsi = arg2; | rdi = arg1; | /* int BloombergLP::bdlpcre::RegEx::matchImp, bsl::allocator > > > >(BloombergLP::bdlpcre::(anonymous namespace)::VectorExtractor, bsl::allocator > > > const&, char const*, unsigned long, unsigned long, bool) const */ 0x0042b290 push rbp | 0x0042b291 push r15 | 0x0042b293 push r14 | 0x0042b295 push r13 | 0x0042b297 push r12 | 0x0042b299 push rbx | 0x0042b29a sub rsp, 0x48 | 0x0042b29e mov ebp, r9d | 0x0042b2a1 mov qword [rsp + 0x18], r8 | *((rsp + 0x18)) = r8; 0x0042b2a6 mov qword [rsp + 0x40], rcx | *((rsp + 0x40)) = rcx; 0x0042b2ab mov r14, rdx | r14 = rdx; 0x0042b2ae mov r12, rsi | r12 = rsi; 0x0042b2b1 mov r15, rdi | r15 = rdi; 0x0042b2b4 mov rbx, qword [rdi + 0x60] | rbx = *((rdi + 0x60)); 0x0042b2b8 call 0x403cb0 | rax = pthread_self (); 0x0042b2bd mov qword [rsp + 0x10], rax | *((rsp + 0x10)) = rax; 0x0042b2c2 cmp qword [rbx + 0x20], rax | | if (*((rbx + 0x20)) == rax) { 0x0042b2c6 jne 0x42b2dc | 0x0042b2c8 mov rax, qword [rbx + 0x38] | rax = *((rbx + 0x38)); 0x0042b2cc mov qword [rsp + 0x30], rax | *((rsp + 0x30)) = rax; 0x0042b2d1 movups xmm0, xmmword [rbx + 0x28] | __asm ("movups xmm0, xmmword [rbx + 0x28]"); 0x0042b2d5 movaps xmmword [rsp + 0x20], xmm0 | *((rsp + 0x20)) = xmm0; 0x0042b2da jmp 0x42b2f7 | | } else { 0x0042b2dc lea rsi, [rsp + 0x20] | 0x0042b2e1 mov rdi, rbx | 0x0042b2e4 call 0x42a600 | eax = BloombergLP::bdlpcre::RegEx_MatchContext::allocateMatchContext(BloombergLP::bdlpcre::RegEx_MatchContextData*)const (rbx, rsp + 0x20); 0x0042b2e9 mov r13d, 0xffffffff | r13d = 0xffffffff; 0x0042b2ef test eax, eax | | if (eax != 0) { 0x0042b2f1 jne 0x42b422 | goto label_0; | } | } 0x0042b2f7 test r14, r14 | 0x0042b2fa mov esi, 0x4dfabc | esi = 0x4dfabc; | if (r14 != 0) { 0x0042b2ff cmovne rsi, r14 | rsi = r14; | } 0x0042b303 test byte [r15], 8 | | if ((*(r15) & 8) != 0) { 0x0042b307 je 0x42b32f | 0x0042b309 test bpl, bpl | | if (bpl == 0) { 0x0042b30c jne 0x42b32f | 0x0042b30e mov rdi, qword [r15 + 0x48] | rdi = *((r15 + 0x48)); 0x0042b312 mov rax, qword [rsp + 0x20] | rax = *((rsp + 0x20)); 0x0042b317 mov r9, qword [rsp + 0x28] | r9 = *((rsp + 0x28)); 0x0042b31c mov qword [rsp], rax | *(rsp) = rax; 0x0042b320 mov rdx, qword [rsp + 0x40] | rdx = *((rsp + 0x40)); 0x0042b325 mov rcx, qword [rsp + 0x18] | rcx = *((rsp + 0x18)); 0x0042b32a xor r8d, r8d | r8d = 0; 0x0042b32d jmp 0x42b351 | | } | } else { 0x0042b32f mov rdi, qword [r15 + 0x48] | rdi = *((r15 + 0x48)); 0x0042b333 mov rax, qword [rsp + 0x20] | rax = *((rsp + 0x20)); 0x0042b338 mov r9, qword [rsp + 0x28] | r9 = *((rsp + 0x28)); 0x0042b33d mov qword [rsp], rax | *(rsp) = rax; 0x0042b341 mov rdx, qword [rsp + 0x40] | rdx = *((rsp + 0x40)); 0x0042b346 mov rcx, qword [rsp + 0x18] | rcx = *((rsp + 0x18)); 0x0042b34b mov r8d, 0x40000000 | r8d = 0x40000000; | } 0x0042b351 call 0x4ba620 | eax = pcre2_match_8 (); 0x0042b356 cmp eax, 0xffffffd1 | | if (eax != 0xffffffd1) { 0x0042b359 je 0x42b36b | 0x0042b35b cmp eax, 0xffffffd2 | | if (eax != 0xffffffd2) { 0x0042b35e jne 0x42b376 | goto label_1; | } 0x0042b360 mov r13d, 2 | r13d = 2; 0x0042b366 jmp 0x42b3f5 | goto label_2; | } 0x0042b36b mov r13d, 1 | r13d = 1; 0x0042b371 jmp 0x42b3f5 | goto label_2; | label_1: 0x0042b376 mov r13d, eax | r13d = eax; 0x0042b379 sar r13d, 0x1f | r13d >>= 0x1f; 0x0042b37d test eax, eax | | if (eax < 0) { 0x0042b37f js 0x42b3f5 | goto label_2; | } 0x0042b381 mov rdi, qword [rsp + 0x28] | rdi = *((rsp + 0x28)); 0x0042b386 call 0x4cc0b0 | rax = pcre2_get_ovector_pointer_8 (); 0x0042b38b mov rbp, rax | 0x0042b38e mov rdi, qword [rsp + 0x28] | rdi = *((rsp + 0x28)); 0x0042b393 call 0x4cc0c0 | eax = pcre2_get_ovector_count_8 (); 0x0042b398 mov dword [rsp + 0x18], eax | *((rsp + 0x18)) = eax; 0x0042b39c mov rdi, qword [r12] | 0x0042b3a0 mov ebx, eax | ebx = eax; 0x0042b3a2 mov rsi, rbx | 0x0042b3a5 call 0x42c0a0 | eax = bsl::vector,bsl::allocator>>::resize(unsigned long) (*(r12), rbx); 0x0042b3aa cmp dword [rsp + 0x18], 0 | | if (*((rsp + 0x18)) == 0) { 0x0042b3af je 0x42b3f5 | goto label_2; | } 0x0042b3b1 add rbx, rbx | rbx += rbx; 0x0042b3b4 xor eax, eax | eax = 0; 0x0042b3b6 nop word cs:[rax + rax] | | do { 0x0042b3c0 mov rcx, qword [r12] | rcx = *(r12); 0x0042b3c4 mov rcx, qword [rcx] | rcx = *(rcx); 0x0042b3c7 mov edx, eax | edx = eax; 0x0042b3c9 mov rsi, qword [rbp + rdx*8] | rsi = *((rbp + rdx*8)); 0x0042b3ce mov rdx, qword [rbp + rdx*8 + 8] | rdx = *((rbp + rdx*8 + 8)); 0x0042b3d3 lea rdi, [r14 + rsi] | rdi = r14 + rsi; 0x0042b3d7 sub rdx, rsi | rdx -= rsi; 0x0042b3da mov esi, 0 | esi = 0; | if (rdx != 0) { 0x0042b3df cmovne rsi, rdi | rsi = rdi; | } 0x0042b3e3 mov qword [rcx + rax*8], rsi | *((rcx + rax*8)) = rsi; 0x0042b3e7 mov qword [rcx + rax*8 + 8], rdx | *((rcx + rax*8 + 8)) = rdx; 0x0042b3ec add rax, 2 | rax += 2; 0x0042b3f0 cmp rbx, rax | 0x0042b3f3 jne 0x42b3c0 | | } while (rbx != rax); | label_2: 0x0042b3f5 mov rcx, qword [rsp + 0x10] | rcx = *((rsp + 0x10)); 0x0042b3fa mov rax, qword [r15 + 0x60] | rax = *((r15 + 0x60)); 0x0042b3fe cmp qword [rax + 0x20], rcx | | if (*((rax + 0x20)) != rcx) { 0x0042b402 je 0x42b422 | 0x0042b404 mov rdi, qword [rsp + 0x28] | rdi = *((rsp + 0x28)); 0x0042b409 call 0x4cc070 | pcre2_match_data_free_8 (); 0x0042b40e mov rdi, qword [rsp + 0x30] | rdi = *((rsp + 0x30)); 0x0042b413 call 0x47e0f0 | pcre2_jit_stack_free_8 (); 0x0042b418 mov rdi, qword [rsp + 0x20] | rdi = *((rsp + 0x20)); 0x0042b41d call 0x4627d0 | pcre2_match_context_free_8 (); | } | label_0: 0x0042b422 mov eax, r13d | eax = r13d; 0x0042b425 add rsp, 0x48 | 0x0042b429 pop rbx | 0x0042b42a pop r12 | 0x0042b42c pop r13 | 0x0042b42e pop r14 | 0x0042b430 pop r15 | 0x0042b432 pop rbp | 0x0042b433 ret | return rax; | }