; assembly | /* r2dec pseudo code output */ | /* bdlpcre_regex.t/none @ 0x42b5b0 */ | #include | ; (fcn) method.int_BloombergLP::bdlpcre::RegEx::matchImp_BloombergLP::bdlpcre._anonymous_namespace_::VectorExtractor_bsl::vector_std::__1::basic_string_view_char__std::__1::char_traits_char_____bsl::allocator_std::__1::basic_string_view_char__std::__1::char_trai () | uint64_t method_int_BloombergLP::bdlpcre::RegEx::matchImp_BloombergLP::bdlpcre_anonymous_namespace_::VectorExtractor_bsl::vector_std::_1::basic_string_view_char_std::_1::char_traits_char_bsl::allocator_std::_1::basic_string_view_char_std::_1::char_trai (int64_t arg6, char * arg5, char * arg4, char * arg3, int64_t arg2, int64_t arg1) { | char * var_10h; | char * var_18h; | int64_t var_20h; | uint32_t var_2ch; | int64_t var_30h; | int64_t var_38h; | 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 */ 0x0042b5b0 push rbp | 0x0042b5b1 push r15 | 0x0042b5b3 push r14 | 0x0042b5b5 push r13 | 0x0042b5b7 push r12 | 0x0042b5b9 push rbx | 0x0042b5ba sub rsp, 0x48 | 0x0042b5be mov ebp, r9d | 0x0042b5c1 mov qword [rsp + 0x18], r8 | *((rsp + 0x18)) = r8; 0x0042b5c6 mov qword [rsp + 0x10], rcx | *((rsp + 0x10)) = rcx; 0x0042b5cb mov r14, rdx | r14 = rdx; 0x0042b5ce mov r12, rsi | r12 = rsi; 0x0042b5d1 mov r15, rdi | r15 = rdi; 0x0042b5d4 mov rbx, qword [rdi + 0x60] | rbx = *((rdi + 0x60)); 0x0042b5d8 call 0x403cb0 | rax = pthread_self (); 0x0042b5dd mov qword [rsp + 0x20], rax | *((rsp + 0x20)) = rax; 0x0042b5e2 cmp qword [rbx + 0x20], rax | | if (*((rbx + 0x20)) == rax) { 0x0042b5e6 jne 0x42b5fc | 0x0042b5e8 mov rax, qword [rbx + 0x38] | rax = *((rbx + 0x38)); 0x0042b5ec mov qword [rsp + 0x40], rax | *((rsp + 0x40)) = rax; 0x0042b5f1 movups xmm0, xmmword [rbx + 0x28] | __asm ("movups xmm0, xmmword [rbx + 0x28]"); 0x0042b5f5 movaps xmmword [rsp + 0x30], xmm0 | *((rsp + 0x30)) = xmm0; 0x0042b5fa jmp 0x42b617 | | } else { 0x0042b5fc lea rsi, [rsp + 0x30] | 0x0042b601 mov rdi, rbx | 0x0042b604 call 0x42a600 | eax = BloombergLP::bdlpcre::RegEx_MatchContext::allocateMatchContext(BloombergLP::bdlpcre::RegEx_MatchContextData*)const (rbx, rsp + 0x30); 0x0042b609 mov r13d, 0xffffffff | r13d = 0xffffffff; 0x0042b60f test eax, eax | | if (eax != 0) { 0x0042b611 jne 0x42b787 | goto label_1; | } | } 0x0042b617 test r14, r14 | 0x0042b61a mov esi, 0x4dfc8c | esi = 0x4dfc8c; | if (r14 != 0) { 0x0042b61f cmovne rsi, r14 | rsi = r14; | } 0x0042b623 mov eax, dword [r15] | eax = *(r15); 0x0042b626 test al, 8 | | if ((al & 8) != 0) { 0x0042b628 je 0x42b650 | 0x0042b62a test bpl, bpl | | if (bpl == 0) { 0x0042b62d jne 0x42b650 | 0x0042b62f mov rdi, qword [r15 + 0x48] | rdi = *((r15 + 0x48)); 0x0042b633 mov rbx, qword [rsp + 0x30] | rbx = *((rsp + 0x30)); 0x0042b638 mov rbp, qword [rsp + 0x38] | rbp = *((rsp + 0x38)); 0x0042b63d mov qword [rsp], rbx | *(rsp) = rbx; 0x0042b641 mov rdx, qword [rsp + 0x10] | rdx = *((rsp + 0x10)); 0x0042b646 mov rcx, qword [rsp + 0x18] | rcx = *((rsp + 0x18)); 0x0042b64b xor r8d, r8d | r8d = 0; 0x0042b64e jmp 0x42b67a | | } | } else { 0x0042b650 mov rdi, qword [r15 + 0x48] | rdi = *((r15 + 0x48)); 0x0042b654 mov rbx, qword [rsp + 0x30] | rbx = *((rsp + 0x30)); 0x0042b659 mov rbp, qword [rsp + 0x38] | rbp = *((rsp + 0x38)); 0x0042b65e test al, 0x10 | | if ((al & 0x10) != 0) { 0x0042b660 jne 0x42b736 | goto label_2; | } 0x0042b666 mov qword [rsp], rbx | *(rsp) = rbx; 0x0042b66a mov rdx, qword [rsp + 0x10] | rdx = *((rsp + 0x10)); 0x0042b66f mov rcx, qword [rsp + 0x18] | rcx = *((rsp + 0x18)); 0x0042b674 mov r8d, 0x40000000 | r8d = 0x40000000; | } 0x0042b67a mov r9, rbp | r9 = rbp; 0x0042b67d call 0x4ba7d0 | eax = pcre2_match_8 (); 0x0042b682 cmp eax, 0xffffffd1 | | if (eax == 0xffffffd1) { 0x0042b685 je 0x42b758 | goto label_3; | } | label_0: 0x0042b68b cmp eax, 0xffffffd2 | | if (eax == 0xffffffd2) { 0x0042b68e jne 0x42b69b | 0x0042b690 mov r13d, 2 | r13d = 2; 0x0042b696 jmp 0x42b75e | goto label_4; | } 0x0042b69b mov r13d, eax | r13d = eax; 0x0042b69e sar r13d, 0x1f | r13d >>= 0x1f; 0x0042b6a2 test eax, eax | | if (eax < 0) { 0x0042b6a4 js 0x42b75e | goto label_4; | } 0x0042b6aa mov qword [rsp + 0x18], rbx | *((rsp + 0x18)) = rbx; 0x0042b6af mov rdi, rbp | rdi = rbp; 0x0042b6b2 call 0x4cc260 | rax = pcre2_get_ovector_pointer_8 (); 0x0042b6b7 mov rdi, rbp | rdi = rbp; 0x0042b6ba mov rbp, rax | 0x0042b6bd mov qword [rsp + 0x10], rdi | *((rsp + 0x10)) = rdi; 0x0042b6c2 call 0x4cc270 | eax = pcre2_get_ovector_count_8 (); 0x0042b6c7 mov dword [rsp + 0x2c], eax | *((rsp + 0x2c)) = eax; 0x0042b6cb mov rdi, qword [r12] | 0x0042b6cf mov ebx, eax | ebx = eax; 0x0042b6d1 mov rsi, rbx | 0x0042b6d4 call 0x42c510 | eax = bsl::vector>,bsl::allocator>>>::resize(unsigned long) (*(r12), rbx); 0x0042b6d9 cmp dword [rsp + 0x2c], 0 | | if (*((rsp + 0x2c)) == 0) { 0x0042b6de je 0x42b725 | goto label_5; | } 0x0042b6e0 add rbx, rbx | rbx += rbx; 0x0042b6e3 xor eax, eax | eax = 0; 0x0042b6e5 nop word cs:[rax + rax] | 0x0042b6ef nop | | do { 0x0042b6f0 mov rcx, qword [r12] | rcx = *(r12); 0x0042b6f4 mov rcx, qword [rcx] | rcx = *(rcx); 0x0042b6f7 mov edx, eax | edx = eax; 0x0042b6f9 mov rsi, qword [rbp + rdx*8] | rsi = *((rbp + rdx*8)); 0x0042b6fe mov rdx, qword [rbp + rdx*8 + 8] | rdx = *((rbp + rdx*8 + 8)); 0x0042b703 lea rdi, [r14 + rsi] | rdi = r14 + rsi; 0x0042b707 sub rdx, rsi | rdx -= rsi; 0x0042b70a mov esi, 0 | esi = 0; | if (rdx != 0) { 0x0042b70f cmovne rsi, rdi | rsi = rdi; | } 0x0042b713 mov qword [rcx + rax*8], rsi | *((rcx + rax*8)) = rsi; 0x0042b717 mov qword [rcx + rax*8 + 8], rdx | *((rcx + rax*8 + 8)) = rdx; 0x0042b71c add rax, 2 | rax += 2; 0x0042b720 cmp rbx, rax | 0x0042b723 jne 0x42b6f0 | | } while (rbx != rax); | label_5: 0x0042b725 mov rcx, qword [rsp + 0x20] | rcx = *((rsp + 0x20)); 0x0042b72a mov rbx, qword [rsp + 0x18] | rbx = *((rsp + 0x18)); 0x0042b72f mov rbp, qword [rsp + 0x10] | rbp = *((rsp + 0x10)); 0x0042b734 jmp 0x42b763 | goto label_6; | label_2: 0x0042b736 mov qword [rsp], rbx | *(rsp) = rbx; 0x0042b73a mov rdx, qword [rsp + 0x10] | rdx = *((rsp + 0x10)); 0x0042b73f mov rcx, qword [rsp + 0x18] | rcx = *((rsp + 0x18)); 0x0042b744 xor r8d, r8d | r8d = 0; 0x0042b747 mov r9, rbp | r9 = rbp; 0x0042b74a call 0x47de10 | eax = pcre2_jit_match_8 (); 0x0042b74f cmp eax, 0xffffffd1 | | if (eax != 0xffffffd1) { 0x0042b752 jne 0x42b68b | goto label_0; | } | label_3: 0x0042b758 mov r13d, 1 | r13d = 1; | label_4: 0x0042b75e mov rcx, qword [rsp + 0x20] | rcx = *((rsp + 0x20)); | label_6: 0x0042b763 mov rax, qword [r15 + 0x60] | rax = *((r15 + 0x60)); 0x0042b767 cmp qword [rax + 0x20], rcx | | if (*((rax + 0x20)) != rcx) { 0x0042b76b je 0x42b787 | 0x0042b76d mov rdi, rbp | rdi = rbp; 0x0042b770 call 0x4cc220 | pcre2_match_data_free_8 (); 0x0042b775 mov rdi, qword [rsp + 0x40] | rdi = *((rsp + 0x40)); 0x0042b77a call 0x47e2a0 | pcre2_jit_stack_free_8 (); 0x0042b77f mov rdi, rbx | rdi = rbx; 0x0042b782 call 0x462980 | pcre2_match_context_free_8 (); | } | label_1: 0x0042b787 mov eax, r13d | eax = r13d; 0x0042b78a add rsp, 0x48 | 0x0042b78e pop rbx | 0x0042b78f pop r12 | 0x0042b791 pop r13 | 0x0042b793 pop r14 | 0x0042b795 pop r15 | 0x0042b797 pop rbp | 0x0042b798 ret | return rax; | }