index
int64
0
66.5k
func_name
stringlengths
2
5.36k
func_dep
stringlengths
16
2.19k
func
stringlengths
8
55.3k
test
stringlengths
0
7.07k
opt
stringclasses
4 values
language
stringclasses
2 values
asm
stringlengths
0
45.4k
ida_asm
stringlengths
0
44.7k
ida_pseudo
stringlengths
0
44.3k
ghidra_asm
stringlengths
0
49.1k
ghidra_pseudo
stringlengths
0
64.7k
38,700
IsWaveValid
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/raudio.c
bool IsWaveValid(Wave wave) { bool result = false; if ((wave.data != NULL) && // Validate wave data available (wave.frameCount > 0) && // Validate frame count (wave.sampleRate > 0) && // Validate sample rate is supported (wave.sampleSize > 0) && // Validate sample size is supported (wave.channels > 0)) result = true; // Validate number of channels supported return result; }
O2
c
IsWaveValid: cmpq $0x0, 0x18(%rsp) setne %cl pxor %xmm0, %xmm0 pcmpeqd 0x8(%rsp), %xmm0 movmskps %xmm0, %eax testl %eax, %eax sete %al andb %cl, %al retq
IsWaveValid: cmp [rsp+arg_10], 0 setnz cl pxor xmm0, xmm0 pcmpeqd xmm0, [rsp+arg_0] movmskps eax, xmm0 test eax, eax setz al and al, cl retn
char IsWaveValid( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128i a7, long long a8) { return (a8 != 0) & (_mm_movemask_ps((__m128)_mm_cmpeq_epi32((__m128i)0LL, a7)) == 0); }
IsWaveValid: CMP qword ptr [RSP + 0x18],0x0 SETNZ CL PXOR XMM0,XMM0 PCMPEQD XMM0,xmmword ptr [RSP + 0x8] MOVMSKPS EAX,XMM0 TEST EAX,EAX SETZ AL AND AL,CL RET
int4 IsWaveValid(void) { int4 in_EAX; int iVar1; int1 auVar2 [16]; int iStack0000000000000008; int iStack000000000000000c; int iStack0000000000000010; int iStack0000000000000014; long in_stack_00000018; auVar2._0_4_ = -(uint)(iStack0000000000000008 == 0); auVar2._4_4_ = -(uint)(iStack000000000000000c == 0); auVar2._8_4_ = -(uint)(iStack0000000000000010 == 0); auVar2._12_4_ = -(uint)(iStack0000000000000014 == 0); iVar1 = movmskps(in_EAX,auVar2); return CONCAT31((int3)((uint)iVar1 >> 8),iVar1 == 0 && in_stack_00000018 != 0); }
38,701
Rpl_filter::table_rule_ent_hash_to_str(String*, st_hash*, bool)
eloqsql/sql/rpl_filter.cc
void Rpl_filter::table_rule_ent_hash_to_str(String* s, HASH* h, bool inited) { s->length(0); if (inited) { for (uint i= 0; i < h->records; i++) { TABLE_RULE_ENT* e= (TABLE_RULE_ENT*) my_hash_element(h, i); if (s->length()) s->append(','); s->append(e->db,e->key_len); } } }
O0
cpp
Rpl_filter::table_rule_ent_hash_to_str(String*, st_hash*, bool): pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movb %cl, %al movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) andb $0x1, %al movb %al, -0x19(%rbp) movq -0x10(%rbp), %rdi addq $0x8, %rdi xorl %eax, %eax movl %eax, %esi callq 0x67030 testb $0x1, -0x19(%rbp) je 0x61c5e movl $0x0, -0x20(%rbp) movl -0x20(%rbp), %eax movq -0x18(%rbp), %rcx cmpq 0x18(%rcx), %rax jae 0x61c5c movq -0x18(%rbp), %rdi movl -0x20(%rbp), %eax movl %eax, %esi callq 0xaaf20 movq %rax, -0x28(%rbp) movq -0x10(%rbp), %rdi addq $0x8, %rdi callq 0x657c0 cmpl $0x0, %eax je 0x61c38 movq -0x10(%rbp), %rdi movl $0x2c, %esi callq 0x67460 movq -0x10(%rbp), %rdi movq -0x28(%rbp), %rax movq (%rax), %rsi movq -0x28(%rbp), %rax movl 0x10(%rax), %eax movl %eax, %edx callq 0x4bfc0 movl -0x20(%rbp), %eax addl $0x1, %eax movl %eax, -0x20(%rbp) jmp 0x61bf9 jmp 0x61c5e addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_ZN10Rpl_filter26table_rule_ent_hash_to_strEP6StringP7st_hashb: push rbp mov rbp, rsp sub rsp, 30h mov al, cl mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx and al, 1 mov [rbp+var_19], al mov rdi, [rbp+var_10] add rdi, 8; this xor eax, eax mov esi, eax; unsigned __int64 call _ZN13Binary_string6lengthEm; Binary_string::length(ulong) test [rbp+var_19], 1 jz short loc_61C5E mov [rbp+var_20], 0 loc_61BF9: mov eax, [rbp+var_20] mov rcx, [rbp+var_18] cmp rax, [rcx+18h] jnb short loc_61C5C mov rdi, [rbp+var_18] mov eax, [rbp+var_20] mov esi, eax call my_hash_element mov [rbp+var_28], rax mov rdi, [rbp+var_10] add rdi, 8; this call _ZNK13Binary_string6lengthEv; Binary_string::length(void) cmp eax, 0 jz short loc_61C38 mov rdi, [rbp+var_10]; this mov esi, 2Ch ; ','; char call _ZN6String6appendEc; String::append(char) loc_61C38: mov rdi, [rbp+var_10]; this mov rax, [rbp+var_28] mov rsi, [rax]; char * mov rax, [rbp+var_28] mov eax, [rax+10h] mov edx, eax; unsigned __int64 call _ZN6String6appendEPKcm; String::append(char const*,ulong) mov eax, [rbp+var_20] add eax, 1 mov [rbp+var_20], eax jmp short loc_61BF9 loc_61C5C: jmp short $+2 loc_61C5E: add rsp, 30h pop rbp retn
long long Rpl_filter::table_rule_ent_hash_to_str(long long a1, long long a2, long long a3, char a4) { long long result; // rax long long v5; // [rsp+8h] [rbp-28h] unsigned int i; // [rsp+10h] [rbp-20h] char v7; // [rsp+17h] [rbp-19h] v7 = a4 & 1; result = Binary_string::length((Binary_string *)(a2 + 8), 0LL); if ( (v7 & 1) != 0 ) { for ( i = 0; ; ++i ) { result = i; if ( (unsigned long long)i >= *(_QWORD *)(a3 + 24) ) break; v5 = my_hash_element(a3, i); if ( (unsigned int)Binary_string::length((Binary_string *)(a2 + 8)) ) String::append((String *)a2, 44); String::append((String *)a2, *(char **)v5, *(unsigned int *)(v5 + 16)); } } return result; }
table_rule_ent_hash_to_str: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV AL,CL MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX AND AL,0x1 MOV byte ptr [RBP + -0x19],AL MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x8 XOR EAX,EAX MOV ESI,EAX CALL 0x00167030 TEST byte ptr [RBP + -0x19],0x1 JZ 0x00161c5e MOV dword ptr [RBP + -0x20],0x0 LAB_00161bf9: MOV EAX,dword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RCX + 0x18] JNC 0x00161c5c MOV RDI,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RBP + -0x20] MOV ESI,EAX CALL 0x001aaf20 MOV qword ptr [RBP + -0x28],RAX MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x8 CALL 0x001657c0 CMP EAX,0x0 JZ 0x00161c38 MOV RDI,qword ptr [RBP + -0x10] MOV ESI,0x2c CALL 0x00167460 LAB_00161c38: MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x28] MOV EAX,dword ptr [RAX + 0x10] MOV EDX,EAX CALL 0x0014bfc0 MOV EAX,dword ptr [RBP + -0x20] ADD EAX,0x1 MOV dword ptr [RBP + -0x20],EAX JMP 0x00161bf9 LAB_00161c5c: JMP 0x00161c5e LAB_00161c5e: ADD RSP,0x30 POP RBP RET
/* Rpl_filter::table_rule_ent_hash_to_str(String*, st_hash*, bool) */ void __thiscall Rpl_filter::table_rule_ent_hash_to_str (Rpl_filter *this,String *param_1,st_hash *param_2,bool param_3) { int iVar1; int8 *puVar2; uint local_28; Binary_string::length((Binary_string *)(param_1 + 8),0); if (param_3) { for (local_28 = 0; (ulong)local_28 < *(ulong *)(param_2 + 0x18); local_28 = local_28 + 1) { puVar2 = (int8 *)my_hash_element(param_2,local_28); iVar1 = Binary_string::length((Binary_string *)(param_1 + 8)); if (iVar1 != 0) { String::append(param_1,','); } String::append(param_1,(char *)*puVar2,(ulong)*(uint *)(puVar2 + 2)); } } return; }
38,702
default_reporter
eloqsql/mysys/my_getopt.c
static void default_reporter(enum loglevel level, const char *format, ...) { va_list args; DBUG_ENTER("default_reporter"); va_start(args, format); if (level == WARNING_LEVEL) fprintf(stderr, "%s", "Warning: "); else if (level == INFORMATION_LEVEL) fprintf(stderr, "%s", "Info: "); vfprintf(stderr, format, args); va_end(args); fputc('\n', stderr); fflush(stderr); DBUG_VOID_RETURN; }
O0
c
default_reporter: pushq %rbp movq %rsp, %rbp subq $0xe0, %rsp testb %al, %al je 0xfb468 movaps %xmm0, -0xb0(%rbp) movaps %xmm1, -0xa0(%rbp) movaps %xmm2, -0x90(%rbp) movaps %xmm3, -0x80(%rbp) movaps %xmm4, -0x70(%rbp) movaps %xmm5, -0x60(%rbp) movaps %xmm6, -0x50(%rbp) movaps %xmm7, -0x40(%rbp) movq %r9, -0xb8(%rbp) movq %r8, -0xc0(%rbp) movq %rcx, -0xc8(%rbp) movq %rdx, -0xd0(%rbp) movl %edi, -0x4(%rbp) movq %rsi, -0x10(%rbp) leaq -0x30(%rbp), %rax leaq -0xe0(%rbp), %rcx movq %rcx, 0x10(%rax) leaq 0x10(%rbp), %rcx movq %rcx, 0x8(%rax) movl $0x30, 0x4(%rax) movl $0x10, (%rax) cmpl $0x1, -0x4(%rbp) jne 0xfb4d6 movq 0x1d3b1c(%rip), %rax # 0x2cefd8 movq (%rax), %rdi leaq 0x6d330(%rip), %rsi # 0x1687f6 leaq 0x6a322(%rip), %rdx # 0x1657ef movb $0x0, %al callq 0x2a190 jmp 0xfb4fd cmpl $0x2, -0x4(%rbp) jne 0xfb4fb movq 0x1d3af5(%rip), %rax # 0x2cefd8 movq (%rax), %rdi leaq 0x6d309(%rip), %rsi # 0x1687f6 leaq 0x6a305(%rip), %rdx # 0x1657f9 movb $0x0, %al callq 0x2a190 jmp 0xfb4fd movq 0x1d3ad4(%rip), %rax # 0x2cefd8 movq (%rax), %rdi movq -0x10(%rbp), %rsi leaq -0x30(%rbp), %rdx callq 0x2a830 leaq -0x30(%rbp), %rax movq 0x1d3ab9(%rip), %rax # 0x2cefd8 movq (%rax), %rsi movl $0xa, %edi callq 0x2a6c0 movq 0x1d3aa5(%rip), %rax # 0x2cefd8 movq (%rax), %rdi callq 0x2a3f0 jmp 0xfb53d addq $0xe0, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
default_reporter_0: push rbp mov rbp, rsp sub rsp, 0E0h test al, al jz short loc_FB468 movaps [rbp+var_B0], xmm0 movaps [rbp+var_A0], xmm1 movaps [rbp+var_90], xmm2 movaps [rbp+var_80], xmm3 movaps [rbp+var_70], xmm4 movaps [rbp+var_60], xmm5 movaps [rbp+var_50], xmm6 movaps [rbp+var_40], xmm7 loc_FB468: mov [rbp+var_B8], r9 mov [rbp+var_C0], r8 mov [rbp+var_C8], rcx mov [rbp+var_D0], rdx mov [rbp+var_4], edi mov [rbp+var_10], rsi lea rax, [rbp+var_30] lea rcx, [rbp+var_E0] mov [rax+10h], rcx lea rcx, [rbp+arg_0] mov [rax+8], rcx mov dword ptr [rax+4], 30h ; '0' mov dword ptr [rax], 10h cmp [rbp+var_4], 1 jnz short loc_FB4D6 mov rax, cs:stderr_ptr mov rdi, [rax] lea rsi, aAtLineDPosDS+13h; "%s" lea rdx, aWarning; "Warning: " mov al, 0 call _fprintf jmp short loc_FB4FD loc_FB4D6: cmp [rbp+var_4], 2 jnz short loc_FB4FB mov rax, cs:stderr_ptr mov rdi, [rax] lea rsi, aAtLineDPosDS+13h; "%s" lea rdx, aInfo; "Info: " mov al, 0 call _fprintf loc_FB4FB: jmp short $+2 loc_FB4FD: mov rax, cs:stderr_ptr mov rdi, [rax] mov rsi, [rbp+var_10] lea rdx, [rbp+var_30] call _vfprintf lea rax, [rbp+var_30] mov rax, cs:stderr_ptr mov rsi, [rax] mov edi, 0Ah call _fputc mov rax, cs:stderr_ptr mov rdi, [rax] call _fflush jmp short $+2 loc_FB53D: add rsp, 0E0h pop rbp retn
long long default_reporter_0(int a1, long long a2, ...) { va_list va; // [rsp+B0h] [rbp-30h] BYREF long long v4; // [rsp+D0h] [rbp-10h] int v5; // [rsp+DCh] [rbp-4h] va_start(va, a2); v5 = a1; v4 = a2; if ( a1 == 1 ) { fprintf(stderr, "%s", "Warning: "); } else if ( v5 == 2 ) { fprintf(stderr, "%s", "Info: "); } vfprintf(stderr, v4, va); fputc(10LL, stderr); return fflush(stderr); }
default_reporter: PUSH RBP MOV RBP,RSP SUB RSP,0xe0 TEST AL,AL JZ 0x001fb468 MOVAPS xmmword ptr [RBP + -0xb0],XMM0 MOVAPS xmmword ptr [RBP + -0xa0],XMM1 MOVAPS xmmword ptr [RBP + -0x90],XMM2 MOVAPS xmmword ptr [RBP + -0x80],XMM3 MOVAPS xmmword ptr [RBP + -0x70],XMM4 MOVAPS xmmword ptr [RBP + -0x60],XMM5 MOVAPS xmmword ptr [RBP + -0x50],XMM6 MOVAPS xmmword ptr [RBP + -0x40],XMM7 LAB_001fb468: MOV qword ptr [RBP + -0xb8],R9 MOV qword ptr [RBP + -0xc0],R8 MOV qword ptr [RBP + -0xc8],RCX MOV qword ptr [RBP + -0xd0],RDX MOV dword ptr [RBP + -0x4],EDI MOV qword ptr [RBP + -0x10],RSI LEA RAX,[RBP + -0x30] LEA RCX,[RBP + -0xe0] MOV qword ptr [RAX + 0x10],RCX LEA RCX,[RBP + 0x10] MOV qword ptr [RAX + 0x8],RCX MOV dword ptr [RAX + 0x4],0x30 MOV dword ptr [RAX],0x10 CMP dword ptr [RBP + -0x4],0x1 JNZ 0x001fb4d6 MOV RAX,qword ptr [0x003cefd8] MOV RDI,qword ptr [RAX] LEA RSI,[0x2687f6] LEA RDX,[0x2657ef] MOV AL,0x0 CALL 0x0012a190 JMP 0x001fb4fd LAB_001fb4d6: CMP dword ptr [RBP + -0x4],0x2 JNZ 0x001fb4fb MOV RAX,qword ptr [0x003cefd8] MOV RDI,qword ptr [RAX] LEA RSI,[0x2687f6] LEA RDX,[0x2657f9] MOV AL,0x0 CALL 0x0012a190 LAB_001fb4fb: JMP 0x001fb4fd LAB_001fb4fd: MOV RAX,qword ptr [0x003cefd8] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RBP + -0x10] LEA RDX,[RBP + -0x30] CALL 0x0012a830 LEA RAX,[RBP + -0x30] MOV RAX,qword ptr [0x003cefd8] MOV RSI,qword ptr [RAX] MOV EDI,0xa CALL 0x0012a6c0 MOV RAX,qword ptr [0x003cefd8] MOV RDI,qword ptr [RAX] CALL 0x0012a3f0 JMP 0x001fb53d LAB_001fb53d: ADD RSP,0xe0 POP RBP RET
void default_reporter(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8, int param_9,char *param_10,int8 param_11,int8 param_12, int8 param_13,int8 param_14) { char in_AL; int1 local_e8 [16]; int8 local_d8; int8 local_d0; int8 local_c8; int8 local_c0; int8 local_b8; int8 local_a8; int8 local_98; int8 local_88; int8 local_78; int8 local_68; int8 local_58; int8 local_48; int4 local_38; int4 local_34; int1 *local_30; int1 *local_28; char *local_18; int local_c; if (in_AL != '\0') { local_b8 = param_1; local_a8 = param_2; local_98 = param_3; local_88 = param_4; local_78 = param_5; local_68 = param_6; local_58 = param_7; local_48 = param_8; } local_28 = local_e8; local_30 = &stack0x00000008; local_34 = 0x30; local_38 = 0x10; local_d8 = param_11; local_d0 = param_12; local_c8 = param_13; local_c0 = param_14; local_18 = param_10; local_c = param_9; if (param_9 == 1) { fprintf(*(FILE **)PTR_stderr_003cefd8,"%s","Warning: "); } else if (param_9 == 2) { fprintf(*(FILE **)PTR_stderr_003cefd8,"%s","Info: "); } vfprintf(*(FILE **)PTR_stderr_003cefd8,local_18,&local_38); fputc(10,*(FILE **)PTR_stderr_003cefd8); fflush(*(FILE **)PTR_stderr_003cefd8); return; }
38,703
google::protobuf::MessageOptions::Clear()
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc
void MessageOptions::Clear() { // @@protoc_insertion_point(message_clear_start:google.protobuf.MessageOptions) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_._extensions_.Clear(); _impl_.uninterpreted_option_.Clear(); ::memset(&_impl_.message_set_wire_format_, 0, static_cast<size_t>( reinterpret_cast<char*>(&_impl_.map_entry_) - reinterpret_cast<char*>(&_impl_.message_set_wire_format_)) + sizeof(_impl_.map_entry_)); _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); }
O0
cpp
google::protobuf::MessageOptions::Clear(): subq $0x48, %rsp movq %rdi, 0x20(%rsp) movq 0x20(%rsp), %rdi movq %rdi, 0x8(%rsp) movl $0x0, 0x1c(%rsp) addq $0x10, %rdi callq 0x1984c0 movq 0x8(%rsp), %rdi addq $0x10, %rdi addq $0x20, %rdi callq 0xd6c10 movq 0x8(%rsp), %rax movq %rax, %rdi addq $0x10, %rdi addq $0x38, %rdi movq %rax, %rdx addq $0x10, %rdx addq $0x3b, %rdx addq $0x10, %rax addq $0x38, %rax subq %rax, %rdx addq $0x1, %rdx xorl %esi, %esi callq 0x13200 movq 0x8(%rsp), %rax addq $0x10, %rax addq $0x18, %rax movq %rax, 0x38(%rsp) movq 0x38(%rsp), %rdi xorl %esi, %esi movl $0x4, %edx callq 0x13200 movq 0x8(%rsp), %rax addq $0x8, %rax movq %rax, 0x28(%rsp) movq 0x28(%rsp), %rax movq %rax, 0x10(%rsp) movq %rax, 0x30(%rsp) movq 0x30(%rsp), %rax movq %rax, 0x40(%rsp) movq 0x40(%rsp), %rax movq (%rax), %rax andq $0x1, %rax cmpq $0x0, %rax je 0xaf02d movq 0x10(%rsp), %rdi callq 0xe0a90 addq $0x48, %rsp retq nopw %cs:(%rax,%rax)
_ZN6google8protobuf14MessageOptions5ClearEv: sub rsp, 48h mov [rsp+48h+var_28], rdi mov rdi, [rsp+48h+var_28] mov [rsp+48h+var_40], rdi mov [rsp+48h+var_2C], 0 add rdi, 10h; this call _ZN6google8protobuf8internal12ExtensionSet5ClearEv; google::protobuf::internal::ExtensionSet::Clear(void) mov rdi, [rsp+48h+var_40] add rdi, 10h add rdi, 20h ; ' ' call _ZN6google8protobuf16RepeatedPtrFieldINS0_19UninterpretedOptionEE5ClearEv; google::protobuf::RepeatedPtrField<google::protobuf::UninterpretedOption>::Clear(void) mov rax, [rsp+48h+var_40] mov rdi, rax add rdi, 10h add rdi, 38h ; '8' mov rdx, rax add rdx, 10h add rdx, 3Bh ; ';' add rax, 10h add rax, 38h ; '8' sub rdx, rax add rdx, 1 xor esi, esi call _memset mov rax, [rsp+48h+var_40] add rax, 10h add rax, 18h mov [rsp+48h+var_10], rax mov rdi, [rsp+48h+var_10] xor esi, esi mov edx, 4 call _memset mov rax, [rsp+48h+var_40] add rax, 8 mov [rsp+48h+var_20], rax mov rax, [rsp+48h+var_20] mov [rsp+48h+var_38], rax mov [rsp+48h+var_18], rax mov rax, [rsp+48h+var_18] mov [rsp+48h+var_8], rax mov rax, [rsp+48h+var_8] mov rax, [rax] and rax, 1 cmp rax, 0 jz short loc_AF02D mov rdi, [rsp+48h+var_38]; void * call _ZN6google8protobuf8internal16InternalMetadata7DoClearINS0_15UnknownFieldSetEEEvv; google::protobuf::internal::InternalMetadata::DoClear<google::protobuf::UnknownFieldSet>(void) loc_AF02D: add rsp, 48h retn
long long google::protobuf::MessageOptions::Clear(google::protobuf::MessageOptions *this) { long long result; // rax google::protobuf::internal::ExtensionSet::Clear((google::protobuf::MessageOptions *)((char *)this + 16)); google::protobuf::RepeatedPtrField<google::protobuf::UninterpretedOption>::Clear((char *)this + 48); memset((char *)this + 72, 0LL, 4LL); memset((char *)this + 40, 0LL, 4LL); result = *((_QWORD *)this + 1) & 1LL; if ( result ) return google::protobuf::internal::InternalMetadata::DoClear<google::protobuf::UnknownFieldSet>((char *)this + 8); return result; }
Clear: SUB RSP,0x48 MOV qword ptr [RSP + 0x20],RDI MOV RDI,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x8],RDI MOV dword ptr [RSP + 0x1c],0x0 ADD RDI,0x10 CALL 0x002984c0 MOV RDI,qword ptr [RSP + 0x8] ADD RDI,0x10 ADD RDI,0x20 CALL 0x001d6c10 MOV RAX,qword ptr [RSP + 0x8] MOV RDI,RAX ADD RDI,0x10 ADD RDI,0x38 MOV RDX,RAX ADD RDX,0x10 ADD RDX,0x3b ADD RAX,0x10 ADD RAX,0x38 SUB RDX,RAX ADD RDX,0x1 XOR ESI,ESI CALL 0x00113200 MOV RAX,qword ptr [RSP + 0x8] ADD RAX,0x10 ADD RAX,0x18 MOV qword ptr [RSP + 0x38],RAX MOV RDI,qword ptr [RSP + 0x38] XOR ESI,ESI MOV EDX,0x4 CALL 0x00113200 MOV RAX,qword ptr [RSP + 0x8] ADD RAX,0x8 MOV qword ptr [RSP + 0x28],RAX MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x10],RAX MOV qword ptr [RSP + 0x30],RAX MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x40],RAX MOV RAX,qword ptr [RSP + 0x40] MOV RAX,qword ptr [RAX] AND RAX,0x1 CMP RAX,0x0 JZ 0x001af02d MOV RDI,qword ptr [RSP + 0x10] CALL 0x001e0a90 LAB_001af02d: ADD RSP,0x48 RET
/* google::protobuf::MessageOptions::Clear() */ void __thiscall google::protobuf::MessageOptions::Clear(MessageOptions *this) { internal::ExtensionSet::Clear((ExtensionSet *)(this + 0x10)); RepeatedPtrField<google::protobuf::UninterpretedOption>::Clear ((RepeatedPtrField<google::protobuf::UninterpretedOption> *)(this + 0x30)); memset(this + 0x48,0,4); memset(this + 0x28,0,4); if ((*(ulong *)(this + 8) & 1) != 0) { internal::InternalMetadata::DoClear<google::protobuf::UnknownFieldSet> ((InternalMetadata *)(this + 8)); } return; }
38,704
common_batch_add(llama_batch&, int, int, std::vector<int, std::allocator<int>> const&, bool)
monkey531[P]llama/common/common.cpp
void common_batch_add( struct llama_batch & batch, llama_token id, llama_pos pos, const std::vector<llama_seq_id> & seq_ids, bool logits) { GGML_ASSERT(batch.seq_id[batch.n_tokens] && "llama_batch size exceeded"); batch.token [batch.n_tokens] = id; batch.pos [batch.n_tokens] = pos; batch.n_seq_id[batch.n_tokens] = seq_ids.size(); for (size_t i = 0; i < seq_ids.size(); ++i) { batch.seq_id[batch.n_tokens][i] = seq_ids[i]; } batch.logits [batch.n_tokens] = logits; batch.n_tokens++; }
O1
cpp
common_batch_add(llama_batch&, int, int, std::vector<int, std::allocator<int>> const&, bool): pushq %rax movq 0x28(%rdi), %rax movslq (%rdi), %r9 cmpq $0x0, (%rax,%r9,8) je 0x740fc movq 0x8(%rdi), %r10 movl %esi, (%r10,%r9,4) movq 0x18(%rdi), %rsi movslq (%rdi), %r9 movl %edx, (%rsi,%r9,4) movq (%rcx), %rdx movq 0x8(%rcx), %rsi movq %rsi, %rcx subq %rdx, %rcx sarq $0x2, %rcx movq 0x20(%rdi), %r9 movslq (%rdi), %r10 movl %ecx, (%r9,%r10,4) cmpq %rdx, %rsi je 0x740ed cmpq $0x1, %rcx adcq $0x0, %rcx xorl %esi, %esi movl (%rdx,%rsi,4), %r9d movslq (%rdi), %r10 movq (%rax,%r10,8), %r10 movl %r9d, (%r10,%rsi,4) incq %rsi cmpq %rsi, %rcx jne 0x740d6 movq 0x30(%rdi), %rax movslq (%rdi), %rcx movb %r8b, (%rax,%rcx) incl (%rdi) popq %rax retq leaq 0x7b95e(%rip), %rdi # 0xefa61 leaq 0x78b19(%rip), %rdx # 0xecc23 leaq 0x7bf94(%rip), %rcx # 0xf00a5 movl $0x655, %esi # imm = 0x655 xorl %eax, %eax callq 0x1ae30
_Z16common_batch_addR11llama_batchiiRKSt6vectorIiSaIiEEb: push rax mov rax, [rdi+28h] movsxd r9, dword ptr [rdi] cmp qword ptr [rax+r9*8], 0 jz short loc_740FC mov r10, [rdi+8] mov [r10+r9*4], esi mov rsi, [rdi+18h] movsxd r9, dword ptr [rdi] mov [rsi+r9*4], edx mov rdx, [rcx] mov rsi, [rcx+8] mov rcx, rsi sub rcx, rdx sar rcx, 2 mov r9, [rdi+20h] movsxd r10, dword ptr [rdi] mov [r9+r10*4], ecx cmp rsi, rdx jz short loc_740ED cmp rcx, 1 adc rcx, 0 xor esi, esi loc_740D6: mov r9d, [rdx+rsi*4] movsxd r10, dword ptr [rdi] mov r10, [rax+r10*8] mov [r10+rsi*4], r9d inc rsi cmp rcx, rsi jnz short loc_740D6 loc_740ED: mov rax, [rdi+30h] movsxd rcx, dword ptr [rdi] mov [rax+rcx], r8b inc dword ptr [rdi] pop rax retn loc_740FC: lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aBatchSeqIdBatc; "batch.seq_id[batch.n_tokens] && \"llama"... mov esi, 655h xor eax, eax call _ggml_abort
long long common_batch_add(int *a1, int a2, int a3, long long *a4, char a5) { long long v5; // rax long long v6; // rax long long v7; // r9 long long v8; // rdx long long v9; // rsi long long v10; // rcx long long v11; // rcx long long v12; // rsi long long v14; // [rsp-8h] [rbp-8h] v14 = v5; v6 = *((_QWORD *)a1 + 5); v7 = *a1; if ( *(_QWORD *)(v6 + 8 * v7) ) { *(_DWORD *)(*((_QWORD *)a1 + 1) + 4 * v7) = a2; *(_DWORD *)(*((_QWORD *)a1 + 3) + 4LL * *a1) = a3; v8 = *a4; v9 = a4[1]; v10 = (v9 - *a4) >> 2; *(_DWORD *)(*((_QWORD *)a1 + 4) + 4LL * *a1) = v10; if ( v9 != v8 ) { v11 = (v10 == 0) + v10; v12 = 0LL; do { *(_DWORD *)(*(_QWORD *)(v6 + 8LL * *a1) + 4 * v12) = *(_DWORD *)(v8 + 4 * v12); ++v12; } while ( v11 != v12 ); } *(_BYTE *)(*((_QWORD *)a1 + 6) + (*a1)++) = a5; return v14; } else { ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/common.cpp", 1621LL, "GGML_ASSERT(%s) failed", "batch.seq_id[batch.n_tokens] && \"llama_batch size exceeded\""); return common_lcp(); } }
common_batch_add: PUSH RAX MOV RAX,qword ptr [RDI + 0x28] MOVSXD R9,dword ptr [RDI] CMP qword ptr [RAX + R9*0x8],0x0 JZ 0x001740fc MOV R10,qword ptr [RDI + 0x8] MOV dword ptr [R10 + R9*0x4],ESI MOV RSI,qword ptr [RDI + 0x18] MOVSXD R9,dword ptr [RDI] MOV dword ptr [RSI + R9*0x4],EDX MOV RDX,qword ptr [RCX] MOV RSI,qword ptr [RCX + 0x8] MOV RCX,RSI SUB RCX,RDX SAR RCX,0x2 MOV R9,qword ptr [RDI + 0x20] MOVSXD R10,dword ptr [RDI] MOV dword ptr [R9 + R10*0x4],ECX CMP RSI,RDX JZ 0x001740ed CMP RCX,0x1 ADC RCX,0x0 XOR ESI,ESI LAB_001740d6: MOV R9D,dword ptr [RDX + RSI*0x4] MOVSXD R10,dword ptr [RDI] MOV R10,qword ptr [RAX + R10*0x8] MOV dword ptr [R10 + RSI*0x4],R9D INC RSI CMP RCX,RSI JNZ 0x001740d6 LAB_001740ed: MOV RAX,qword ptr [RDI + 0x30] MOVSXD RCX,dword ptr [RDI] MOV byte ptr [RAX + RCX*0x1],R8B INC dword ptr [RDI] POP RAX RET LAB_001740fc: LEA RDI,[0x1efa61] LEA RDX,[0x1ecc23] LEA RCX,[0x1f00a5] MOV ESI,0x655 XOR EAX,EAX CALL 0x0011ae30
/* common_batch_add(llama_batch&, int, int, std::vector<int, std::allocator<int> > const&, bool) */ int8 common_batch_add(llama_batch *param_1,int param_2,int param_3,vector *param_4,bool param_5) { long lVar1; long lVar2; int8 in_RAX; long lVar3; long lVar4; lVar1 = *(long *)(param_1 + 0x28); if (*(long *)(lVar1 + (long)*(int *)param_1 * 8) != 0) { *(int *)(*(long *)(param_1 + 8) + (long)*(int *)param_1 * 4) = param_2; *(int *)(*(long *)(param_1 + 0x18) + (long)*(int *)param_1 * 4) = param_3; lVar2 = *(long *)param_4; lVar4 = *(long *)(param_4 + 8); lVar3 = lVar4 - lVar2 >> 2; *(int *)(*(long *)(param_1 + 0x20) + (long)*(int *)param_1 * 4) = (int)lVar3; if (lVar4 != lVar2) { lVar4 = 0; do { *(int4 *)(*(long *)(lVar1 + (long)*(int *)param_1 * 8) + lVar4 * 4) = *(int4 *)(lVar2 + lVar4 * 4); lVar4 = lVar4 + 1; } while (lVar3 + (ulong)(lVar3 == 0) != lVar4); } *(bool *)(*(long *)(param_1 + 0x30) + (long)*(int *)param_1) = param_5; *(int *)param_1 = *(int *)param_1 + 1; return in_RAX; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/common.cpp",0x655, "GGML_ASSERT(%s) failed", "batch.seq_id[batch.n_tokens] && \"llama_batch size exceeded\""); }
38,705
JS_ToInt32SatFree
bluesky950520[P]quickjs/quickjs.c
static int JS_ToInt32SatFree(JSContext *ctx, int *pres, JSValue val) { uint32_t tag; int ret; redo: tag = JS_VALUE_GET_NORM_TAG(val); switch(tag) { case JS_TAG_INT: case JS_TAG_BOOL: case JS_TAG_NULL: case JS_TAG_UNDEFINED: ret = JS_VALUE_GET_INT(val); break; case JS_TAG_EXCEPTION: *pres = 0; return -1; case JS_TAG_FLOAT64: { double d = JS_VALUE_GET_FLOAT64(val); if (isnan(d)) { ret = 0; } else { if (d < INT32_MIN) ret = INT32_MIN; else if (d > INT32_MAX) ret = INT32_MAX; else ret = (int)d; } } break; default: val = JS_ToNumberFree(ctx, val); if (JS_IsException(val)) { *pres = 0; return -1; } goto redo; } *pres = ret; return 0; }
O2
c
JS_ToInt32SatFree: pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdx, %rax movq %rsi, %rbx movq %rdi, %r14 pushq $-0x1 popq %rbp xorl %r15d, %r15d cmpl $0x4, %ecx jb 0x21383 cmpl $0x6, %ecx je 0x21388 cmpl $0x7, %ecx je 0x21398 movq %r14, %rdi movq %rax, %rsi movq %rcx, %rdx callq 0x2e216 movq %rdx, %rcx cmpl $0x6, %ecx jne 0x2135c jmp 0x21388 xorl %ebp, %ebp movl %eax, %r15d movl %r15d, (%rbx) movl %ebp, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movq %rax, %xmm0 xorl %ebp, %ebp ucomisd %xmm0, %xmm0 jp 0x213d0 movl $0x80000000, %r15d # imm = 0x80000000 movsd 0x64425(%rip), %xmm1 # 0x857d8 ucomisd %xmm0, %xmm1 ja 0x21388 movl $0x7fffffff, %r15d # imm = 0x7FFFFFFF ucomisd 0x64419(%rip), %xmm0 # 0x857e0 ja 0x21388 cvttsd2si %xmm0, %r15d jmp 0x21388 xorl %r15d, %r15d jmp 0x21388
JS_ToInt32SatFree: push rbp push r15 push r14 push rbx push rax mov rax, rdx mov rbx, rsi mov r14, rdi push 0FFFFFFFFFFFFFFFFh pop rbp xor r15d, r15d loc_2135C: cmp ecx, 4 jb short loc_21383 cmp ecx, 6 jz short loc_21388 cmp ecx, 7 jz short loc_21398 mov rdi, r14 mov rsi, rax mov rdx, rcx call JS_ToNumberFree mov rcx, rdx cmp ecx, 6 jnz short loc_2135C jmp short loc_21388 loc_21383: xor ebp, ebp mov r15d, eax loc_21388: mov [rbx], r15d mov eax, ebp add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn loc_21398: movq xmm0, rax xor ebp, ebp ucomisd xmm0, xmm0 jp short loc_213D0 mov r15d, 80000000h movsd xmm1, cs:qword_857D8 ucomisd xmm1, xmm0 ja short loc_21388 mov r15d, 7FFFFFFFh ucomisd xmm0, cs:qword_857E0 ja short loc_21388 cvttsd2si r15d, xmm0 jmp short loc_21388 loc_213D0: xor r15d, r15d jmp short loc_21388
long long JS_ToInt32SatFree(long long a1, int *a2, long long a3, long long a4) { unsigned int v5; // ebp int v6; // r15d long long v7; // rdx v5 = -1; v6 = 0; while ( 1 ) { if ( (unsigned int)a4 < 4 ) { v5 = 0; v6 = a3; goto LABEL_8; } if ( (_DWORD)a4 == 6 ) goto LABEL_8; if ( (_DWORD)a4 == 7 ) break; *(double *)&a3 = COERCE_DOUBLE(JS_ToNumberFree(a1, a3, a4)); a4 = v7; if ( (_DWORD)v7 == 6 ) goto LABEL_8; } v5 = 0; v6 = 0x80000000; if ( *(double *)&a3 >= -2147483648.0 ) { v6 = 0x7FFFFFFF; if ( *(double *)&a3 <= 2147483647.0 ) v6 = (int)*(double *)&a3; } LABEL_8: *a2 = v6; return v5; }
JS_ToInt32SatFree: PUSH RBP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RAX,RDX MOV RBX,RSI MOV R14,RDI PUSH -0x1 POP RBP XOR R15D,R15D LAB_0012135c: CMP ECX,0x4 JC 0x00121383 CMP ECX,0x6 JZ 0x00121388 CMP ECX,0x7 JZ 0x00121398 MOV RDI,R14 MOV RSI,RAX MOV RDX,RCX CALL 0x0012e216 MOV RCX,RDX CMP ECX,0x6 JNZ 0x0012135c JMP 0x00121388 LAB_00121383: XOR EBP,EBP MOV R15D,EAX LAB_00121388: MOV dword ptr [RBX],R15D MOV EAX,EBP ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET LAB_00121398: MOVQ XMM0,RAX XOR EBP,EBP UCOMISD XMM0,XMM0 JP 0x001213d0 MOV R15D,0x80000000 MOVSD XMM1,qword ptr [0x001857d8] UCOMISD XMM1,XMM0 JA 0x00121388 MOV R15D,0x7fffffff UCOMISD XMM0,qword ptr [0x001857e0] JA 0x00121388 CVTTSD2SI R15D,XMM0 JMP 0x00121388 LAB_001213d0: XOR R15D,R15D JMP 0x00121388
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ int4 JS_ToInt32SatFree(int8 param_1,int *param_2,int8 param_3,int8 param_4) { double dVar1; uint uVar2; int4 uVar3; int iVar4; int1 auVar5 [16]; auVar5._8_8_ = param_4; auVar5._0_8_ = param_3; uVar3 = 0xffffffff; iVar4 = 0; while( true ) { dVar1 = auVar5._0_8_; uVar2 = auVar5._8_4_; if (uVar2 < 4) { uVar3 = 0; iVar4 = auVar5._0_4_; goto LAB_00121388; } if (uVar2 == 6) goto LAB_00121388; if (uVar2 == 7) break; auVar5 = JS_ToNumberFree(param_1,dVar1,auVar5._8_8_); if (auVar5._8_4_ == 6) { LAB_00121388: *param_2 = iVar4; return uVar3; } } if (NAN(dVar1)) { iVar4 = 0; uVar3 = 0; } else { iVar4 = -0x80000000; uVar3 = 0; if ((DAT_001857d8 <= dVar1) && (iVar4 = 0x7fffffff, dVar1 <= _DAT_001857e0)) { iVar4 = (int)dVar1; uVar3 = 0; } } goto LAB_00121388; }
38,706
nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::erase(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>>, __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>>)
monkey531[P]llama/common/./json.hpp
iterator erase(iterator first, iterator last) { if (first == last) { return first; } const auto elements_affected = std::distance(first, last); const auto offset = std::distance(Container::begin(), first); // This is the start situation. We need to delete elements_affected // elements (3 in this example: e, f, g), and need to return an // iterator past the last deleted element (h in this example). // Note that offset is the distance from the start of the vector // to first. We will need this later. // [ a, b, c, d, e, f, g, h, i, j ] // ^ ^ // first last // Since we cannot move const Keys, we re-construct them in place. // We start at first and re-construct (viz. copy) the elements from // the back of the vector. Example for first iteration: // ,--------. // v | destroy e and re-construct with h // [ a, b, c, d, e, f, g, h, i, j ] // ^ ^ // it it + elements_affected for (auto it = first; std::next(it, elements_affected) != Container::end(); ++it) { it->~value_type(); // destroy but keep allocation new (&*it) value_type{std::move(*std::next(it, elements_affected))}; // "move" next element to it } // [ a, b, c, d, h, i, j, h, i, j ] // ^ ^ // first last // remove the unneeded elements at the end of the vector Container::resize(this->size() - static_cast<size_type>(elements_affected)); // [ a, b, c, d, h, i, j ] // ^ ^ // first last // first is now pointing past the last deleted element, but we cannot // use this iterator, because it may have been invalidated by the // resize call. Instead, we can return begin() + offset. return Container::begin() + offset; }
O0
cpp
nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::erase(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>>, __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>>): subq $0x98, %rsp movq %rsi, 0x88(%rsp) movq %rdx, 0x80(%rsp) movq %rdi, 0x78(%rsp) movq 0x78(%rsp), %rax movq %rax, 0x8(%rsp) leaq 0x88(%rsp), %rdi leaq 0x80(%rsp), %rsi callq 0xd4380 testb $0x1, %al jne 0xdc6f1 jmp 0xdc706 movq 0x88(%rsp), %rax movq %rax, 0x90(%rsp) jmp 0xdc858 movq 0x88(%rsp), %rax movq %rax, 0x68(%rsp) movq 0x80(%rsp), %rax movq %rax, 0x60(%rsp) movq 0x68(%rsp), %rdi movq 0x60(%rsp), %rsi callq 0xdc8a0 movq 0x8(%rsp), %rdi movq %rax, 0x70(%rsp) callq 0xa1ae0 movq %rax, 0x50(%rsp) movq 0x88(%rsp), %rax movq %rax, 0x48(%rsp) movq 0x50(%rsp), %rdi movq 0x48(%rsp), %rsi callq 0xdc8a0 movq %rax, 0x58(%rsp) movq 0x88(%rsp), %rax movq %rax, 0x40(%rsp) movq 0x40(%rsp), %rax movq %rax, 0x30(%rsp) movq 0x70(%rsp), %rsi movq 0x30(%rsp), %rdi callq 0xdc870 movq 0x8(%rsp), %rdi movq %rax, 0x38(%rsp) callq 0xa1b50 movq %rax, 0x28(%rsp) leaq 0x38(%rsp), %rdi leaq 0x28(%rsp), %rsi callq 0xa1b10 testb $0x1, %al jne 0xdc7b3 jmp 0xdc816 leaq 0x40(%rsp), %rdi callq 0xa1b80 movq %rax, %rdi callq 0xc7c30 leaq 0x40(%rsp), %rdi callq 0xca440 movq %rax, (%rsp) movq 0x40(%rsp), %rax movq %rax, 0x18(%rsp) movq 0x70(%rsp), %rsi movq 0x18(%rsp), %rdi callq 0xdc870 movq %rax, 0x20(%rsp) leaq 0x20(%rsp), %rdi callq 0xca440 movq (%rsp), %rdi movq %rax, %rsi callq 0xdc8e0 leaq 0x40(%rsp), %rdi callq 0xa1ef0 jmp 0xdc771 movq 0x8(%rsp), %rdi callq 0xc9e90 movq 0x8(%rsp), %rdi movq %rax, %rsi subq 0x70(%rsp), %rsi callq 0xdc920 movq 0x8(%rsp), %rdi callq 0xa1ae0 movq %rax, 0x10(%rsp) movq 0x58(%rsp), %rsi leaq 0x10(%rsp), %rdi callq 0xdc9c0 movq %rax, 0x90(%rsp) movq 0x90(%rsp), %rax addq $0x98, %rsp retq nopl (%rax,%rax)
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE5eraseEN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEESR_: sub rsp, 98h mov [rsp+98h+var_10], rsi mov [rsp+98h+var_18], rdx mov [rsp+98h+var_20], rdi mov rax, [rsp+98h+var_20] mov [rsp+98h+var_90], rax lea rdi, [rsp+98h+var_10] lea rsi, [rsp+98h+var_18] call _ZN9__gnu_cxxeqIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEEbRKNS_17__normal_iteratorIT_T0_EEST_; __gnu_cxx::operator==<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>> const&,__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>> const&) test al, 1 jnz short loc_DC6F1 jmp short loc_DC706 loc_DC6F1: mov rax, [rsp+98h+var_10] mov [rsp+98h+var_8], rax jmp loc_DC858 loc_DC706: mov rax, [rsp+98h+var_10] mov [rsp+98h+var_30], rax mov rax, [rsp+98h+var_18] mov [rsp+98h+var_38], rax mov rdi, [rsp+98h+var_30] mov rsi, [rsp+98h+var_38] call _ZSt8distanceIN9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS4_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS4_14adl_serializerES7_IhSaIhEEvEEN5minja5ValueEES7_ISL_SaISL_EEEEENSt15iterator_traitsIT_E15difference_typeESR_SR_; std::distance<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>) mov rdi, [rsp+98h+var_90] mov [rsp+98h+var_28], rax call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE5beginEv; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>::begin(void) mov [rsp+98h+var_48], rax mov rax, [rsp+98h+var_10] mov [rsp+98h+var_50], rax mov rdi, [rsp+98h+var_48] mov rsi, [rsp+98h+var_50] call _ZSt8distanceIN9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS4_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS4_14adl_serializerES7_IhSaIhEEvEEN5minja5ValueEES7_ISL_SaISL_EEEEENSt15iterator_traitsIT_E15difference_typeESR_SR_; std::distance<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>) mov [rsp+98h+var_40], rax mov rax, [rsp+98h+var_10] mov [rsp+98h+var_58], rax loc_DC771: mov rax, [rsp+98h+var_58] mov [rsp+98h+var_68], rax mov rsi, [rsp+98h+var_28] mov rdi, [rsp+98h+var_68] call _ZSt4nextIN9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS4_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS4_14adl_serializerES7_IhSaIhEEvEEN5minja5ValueEES7_ISL_SaISL_EEEEET_SQ_NSt15iterator_traitsISQ_E15difference_typeE; std::next<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,std::iterator_traits<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>::difference_type) mov rdi, [rsp+98h+var_90] mov [rsp+98h+var_60], rax call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE3endEv; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>::end(void) mov [rsp+98h+var_70], rax lea rdi, [rsp+98h+var_60] lea rsi, [rsp+98h+var_70] call _ZN9__gnu_cxxneIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEEbRKNS_17__normal_iteratorIT_T0_EEST_; __gnu_cxx::operator!=<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>> const&,__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>> const&) test al, 1 jnz short loc_DC7B3 jmp short loc_DC816 loc_DC7B3: lea rdi, [rsp+98h+var_58] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEptEv; __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::operator->(void) mov rdi, rax call _ZNSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueEED2Ev; std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>::~pair() lea rdi, [rsp+98h+var_58] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEdeEv; __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::operator*(void) mov [rsp+98h+var_98], rax mov rax, [rsp+98h+var_58] mov [rsp+98h+var_80], rax mov rsi, [rsp+98h+var_28] mov rdi, [rsp+98h+var_80] call _ZSt4nextIN9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS4_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS4_14adl_serializerES7_IhSaIhEEvEEN5minja5ValueEES7_ISL_SaISL_EEEEET_SQ_NSt15iterator_traitsISQ_E15difference_typeE; std::next<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,std::iterator_traits<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>::difference_type) mov [rsp+98h+var_78], rax lea rdi, [rsp+98h+var_78] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEdeEv; __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::operator*(void) mov rdi, [rsp+98h+var_98] mov rsi, rax call _ZNSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueEEC2EOSI_; std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>::pair(std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>&&) lea rdi, [rsp+98h+var_58] call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEppEv; __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::operator++(void) jmp loc_DC771 loc_DC816: mov rdi, [rsp+98h+var_90] call _ZNKSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE4sizeEv; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>::size(void) mov rdi, [rsp+98h+var_90] mov rsi, rax sub rsi, [rsp+98h+var_28] call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE6resizeEm; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>::resize(ulong) mov rdi, [rsp+98h+var_90] call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE5beginEv; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>::begin(void) mov [rsp+98h+var_88], rax mov rsi, [rsp+98h+var_40] lea rdi, [rsp+98h+var_88] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEplEl; __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::operator+(long) mov [rsp+98h+var_8], rax loc_DC858: mov rax, [rsp+98h+var_8] add rsp, 98h retn
long long nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::erase( _QWORD *a1, long long a2, long long a3) { long long v3; // rax long long v4; // rax long long v5; // rax long long v7; // [rsp+0h] [rbp-98h] _QWORD v8[2]; // [rsp+10h] [rbp-88h] BYREF long long v9; // [rsp+20h] [rbp-78h] BYREF _QWORD v10[2]; // [rsp+28h] [rbp-70h] BYREF long long v11; // [rsp+38h] [rbp-60h] BYREF _QWORD v12[2]; // [rsp+40h] [rbp-58h] BYREF long long v13; // [rsp+50h] [rbp-48h] long long v14; // [rsp+58h] [rbp-40h] long long v15; // [rsp+60h] [rbp-38h] long long v16; // [rsp+68h] [rbp-30h] long long v17; // [rsp+70h] [rbp-28h] _QWORD *v18; // [rsp+78h] [rbp-20h] long long v19; // [rsp+80h] [rbp-18h] BYREF long long v20; // [rsp+88h] [rbp-10h] BYREF v20 = a2; v19 = a3; v18 = a1; if ( __gnu_cxx::operator==<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>( (long long)&v20, (long long)&v19) ) { return v20; } v16 = v20; v15 = v19; v17 = std::distance<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>>( v20, v19); v13 = std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::begin((long long)a1); v12[1] = v20; v14 = std::distance<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>>( v13, v20); v12[0] = v20; while ( 1 ) { v10[1] = v12[0]; v11 = std::next<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>>( v12[0], v17); v10[0] = std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::end((long long)a1); if ( !__gnu_cxx::operator!=<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>( (long long)&v11, (long long)v10) ) break; v3 = __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::operator->((long long)v12); std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>::~pair(v3); v7 = __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::operator*((long long)v12); v8[1] = v12[0]; v9 = std::next<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>>( v12[0], v17); v4 = __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::operator*((long long)&v9); std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>::pair( v7, v4); __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::operator++(v12); } v5 = std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::size(a1); std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::resize( a1, v5 - v17); v8[0] = std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::begin((long long)a1); return __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::operator+( v8, v14); }
erase: SUB RSP,0x98 MOV qword ptr [RSP + 0x88],RSI MOV qword ptr [RSP + 0x80],RDX MOV qword ptr [RSP + 0x78],RDI MOV RAX,qword ptr [RSP + 0x78] MOV qword ptr [RSP + 0x8],RAX LEA RDI,[RSP + 0x88] LEA RSI,[RSP + 0x80] CALL 0x001d4380 TEST AL,0x1 JNZ 0x001dc6f1 JMP 0x001dc706 LAB_001dc6f1: MOV RAX,qword ptr [RSP + 0x88] MOV qword ptr [RSP + 0x90],RAX JMP 0x001dc858 LAB_001dc706: MOV RAX,qword ptr [RSP + 0x88] MOV qword ptr [RSP + 0x68],RAX MOV RAX,qword ptr [RSP + 0x80] MOV qword ptr [RSP + 0x60],RAX MOV RDI,qword ptr [RSP + 0x68] MOV RSI,qword ptr [RSP + 0x60] CALL 0x001dc8a0 MOV RDI,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x70],RAX CALL 0x001a1ae0 MOV qword ptr [RSP + 0x50],RAX MOV RAX,qword ptr [RSP + 0x88] MOV qword ptr [RSP + 0x48],RAX MOV RDI,qword ptr [RSP + 0x50] MOV RSI,qword ptr [RSP + 0x48] CALL 0x001dc8a0 MOV qword ptr [RSP + 0x58],RAX MOV RAX,qword ptr [RSP + 0x88] MOV qword ptr [RSP + 0x40],RAX LAB_001dc771: MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x30],RAX MOV RSI,qword ptr [RSP + 0x70] MOV RDI,qword ptr [RSP + 0x30] CALL 0x001dc870 MOV RDI,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x38],RAX CALL 0x001a1b50 MOV qword ptr [RSP + 0x28],RAX LEA RDI,[RSP + 0x38] LEA RSI,[RSP + 0x28] CALL 0x001a1b10 TEST AL,0x1 JNZ 0x001dc7b3 JMP 0x001dc816 LAB_001dc7b3: LEA RDI,[RSP + 0x40] CALL 0x001a1b80 MOV RDI,RAX CALL 0x001c7c30 LEA RDI,[RSP + 0x40] CALL 0x001ca440 MOV qword ptr [RSP],RAX MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x18],RAX MOV RSI,qword ptr [RSP + 0x70] MOV RDI,qword ptr [RSP + 0x18] CALL 0x001dc870 MOV qword ptr [RSP + 0x20],RAX LEA RDI,[RSP + 0x20] CALL 0x001ca440 MOV RDI,qword ptr [RSP] MOV RSI,RAX CALL 0x001dc8e0 LEA RDI,[RSP + 0x40] CALL 0x001a1ef0 JMP 0x001dc771 LAB_001dc816: MOV RDI,qword ptr [RSP + 0x8] CALL 0x001c9e90 MOV RDI,qword ptr [RSP + 0x8] MOV RSI,RAX SUB RSI,qword ptr [RSP + 0x70] CALL 0x001dc920 MOV RDI,qword ptr [RSP + 0x8] CALL 0x001a1ae0 MOV qword ptr [RSP + 0x10],RAX MOV RSI,qword ptr [RSP + 0x58] LEA RDI,[RSP + 0x10] CALL 0x001dc9c0 MOV qword ptr [RSP + 0x90],RAX LAB_001dc858: MOV RAX,qword ptr [RSP + 0x90] ADD RSP,0x98 RET
/* nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const, minja::Value> > >::erase(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const, minja::Value> > > >, __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const, minja::Value> > > >) */ int8 __thiscall nlohmann::json_abi_v3_11_3:: ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> ::erase(ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *this,int8 param_2,int8 param_3) { bool bVar1; pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value> *ppVar2; pair *ppVar3; long lVar4; int8 local_88; int8 local_80; int8 local_78; int8 local_70; int8 local_68; int8 local_60; int8 local_58; int8 local_50; int8 local_48; long local_40; int8 local_38; int8 local_30; long local_28; ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *local_20; int8 local_18; int8 local_10; int8 local_8; local_20 = this; local_18 = param_3; local_10 = param_2; bVar1 = __gnu_cxx::operator==((__normal_iterator *)&local_10,(__normal_iterator *)&local_18); if (bVar1) { local_8 = local_10; } else { local_30 = local_10; local_38 = local_18; local_28 = std:: distance<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>*,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>>> (local_10,local_18); local_48 = std:: vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> ::begin((vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *)this); local_50 = local_10; local_40 = std:: distance<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>*,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>>> (local_48,local_10); local_58 = local_10; while( true ) { local_68 = local_58; local_60 = std:: next<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>*,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>>> (local_58,local_28); local_70 = std:: vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> ::end((vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *)this); bVar1 = __gnu_cxx::operator!=((__normal_iterator *)&local_60,(__normal_iterator *)&local_70); if (!bVar1) break; ppVar2 = (pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value> *)__gnu_cxx:: __normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>*,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>> ::operator->((__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>*,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>> *)&local_58); std:: pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value> ::~pair(ppVar2); ppVar2 = (pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value> *)__gnu_cxx:: __normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>*,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>> ::operator*((__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>*,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>> *)&local_58); local_80 = local_58; local_78 = std:: next<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>*,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>>> (local_58,local_28); ppVar3 = (pair *)__gnu_cxx:: __normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>*,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>> ::operator*((__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>*,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>> *)&local_78); std:: pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value> ::pair(ppVar2,ppVar3); __gnu_cxx:: __normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>*,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>> ::operator++((__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>*,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>> *)&local_58); } lVar4 = std:: vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> ::size((vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *)this); std:: vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> ::resize((vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *)this,lVar4 - local_28); local_88 = std:: vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> ::begin((vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *)this); local_8 = __gnu_cxx:: __normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>*,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>> ::operator+((__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>*,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>> *)&local_88,local_40); } return local_8; }
38,707
nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::erase(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>>, __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>>)
monkey531[P]llama/common/./json.hpp
iterator erase(iterator first, iterator last) { if (first == last) { return first; } const auto elements_affected = std::distance(first, last); const auto offset = std::distance(Container::begin(), first); // This is the start situation. We need to delete elements_affected // elements (3 in this example: e, f, g), and need to return an // iterator past the last deleted element (h in this example). // Note that offset is the distance from the start of the vector // to first. We will need this later. // [ a, b, c, d, e, f, g, h, i, j ] // ^ ^ // first last // Since we cannot move const Keys, we re-construct them in place. // We start at first and re-construct (viz. copy) the elements from // the back of the vector. Example for first iteration: // ,--------. // v | destroy e and re-construct with h // [ a, b, c, d, e, f, g, h, i, j ] // ^ ^ // it it + elements_affected for (auto it = first; std::next(it, elements_affected) != Container::end(); ++it) { it->~value_type(); // destroy but keep allocation new (&*it) value_type{std::move(*std::next(it, elements_affected))}; // "move" next element to it } // [ a, b, c, d, h, i, j, h, i, j ] // ^ ^ // first last // remove the unneeded elements at the end of the vector Container::resize(this->size() - static_cast<size_type>(elements_affected)); // [ a, b, c, d, h, i, j ] // ^ ^ // first last // first is now pointing past the last deleted element, but we cannot // use this iterator, because it may have been invalidated by the // resize call. Instead, we can return begin() + offset. return Container::begin() + offset; }
O1
cpp
nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::erase(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>>, __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>>): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx cmpq %rdx, %rsi je 0x57300 movq %rdx, %r15 movq %rdi, %r14 subq %rbx, %r15 movq %r15, %rbp sarq $0x5, %rbp movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB imulq %rax, %rbp movq (%rdi), %rax movq %rax, (%rsp) movq %rbx, %r12 leaq (%r12,%r15), %r13 movq 0x8(%r14), %rsi cmpq %rsi, %r13 je 0x572d9 movq %r12, %rdi callq 0x4fb5c movq %r12, %rdi movq %r13, %rsi callq 0x57312 addq $0x60, %r12 jmp 0x572b3 subq (%r14), %rsi subq (%rsp), %rbx sarq $0x5, %rsi movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB imulq %rax, %rsi subq %rbp, %rsi movq %r14, %rdi callq 0x5739e addq (%r14), %rbx movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE5eraseEN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEESR_: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rsi cmp rsi, rdx jz short loc_57300 mov r15, rdx mov r14, rdi sub r15, rbx mov rbp, r15 sar rbp, 5 mov rax, 0AAAAAAAAAAAAAAABh imul rbp, rax mov rax, [rdi] mov [rsp+38h+var_38], rax mov r12, rbx loc_572B3: lea r13, [r12+r15] mov rsi, [r14+8] cmp r13, rsi jz short loc_572D9 mov rdi, r12 call _ZNSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueEED2Ev; std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>::~pair() mov rdi, r12 mov rsi, r13 call _ZNSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueEEC2EOSI_; std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>::pair(std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>&&) add r12, 60h ; '`' jmp short loc_572B3 loc_572D9: sub rsi, [r14] sub rbx, [rsp+38h+var_38] sar rsi, 5 mov rax, 0AAAAAAAAAAAAAAABh imul rsi, rax sub rsi, rbp mov rdi, r14 call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE6resizeEm; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>::resize(ulong) add rbx, [r14] loc_57300: mov rax, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::erase( long long *a1, long long a2, long long a3) { long long v3; // rbx long long v4; // r15 unsigned long long v5; // rbp long long i; // r12 long long v7; // rsi long long v9; // [rsp+0h] [rbp-38h] v3 = a2; if ( a2 != a3 ) { v4 = a3 - a2; v5 = 0xAAAAAAAAAAAAAAABLL * ((a3 - a2) >> 5); v9 = *a1; for ( i = a2; ; i += 96LL ) { v7 = a1[1]; if ( i + v4 == v7 ) break; std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>::~pair(i); std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>::pair( i, i + v4); } std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>::resize( a1, 0xAAAAAAAAAAAAAAABLL * ((v7 - *a1) >> 5) - v5); return *a1 + v3 - v9; } return v3; }
erase: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RSI CMP RSI,RDX JZ 0x00157300 MOV R15,RDX MOV R14,RDI SUB R15,RBX MOV RBP,R15 SAR RBP,0x5 MOV RAX,-0x5555555555555555 IMUL RBP,RAX MOV RAX,qword ptr [RDI] MOV qword ptr [RSP],RAX MOV R12,RBX LAB_001572b3: LEA R13,[R12 + R15*0x1] MOV RSI,qword ptr [R14 + 0x8] CMP R13,RSI JZ 0x001572d9 MOV RDI,R12 CALL 0x0014fb5c MOV RDI,R12 MOV RSI,R13 CALL 0x00157312 ADD R12,0x60 JMP 0x001572b3 LAB_001572d9: SUB RSI,qword ptr [R14] SUB RBX,qword ptr [RSP] SAR RSI,0x5 MOV RAX,-0x5555555555555555 IMUL RSI,RAX SUB RSI,RBP MOV RDI,R14 CALL 0x0015739e ADD RBX,qword ptr [R14] LAB_00157300: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const, minja::Value> > >::erase(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const, minja::Value> > > >, __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const, minja::Value>*, std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const, minja::Value>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const, minja::Value> > > >) */ pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value> * __thiscall nlohmann::json_abi_v3_11_3:: ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> ::erase(ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *this,pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value> *param_2, pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value> *param_3) { long lVar1; pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value> *this_00; if (param_2 != param_3) { lVar1 = *(long *)this; this_00 = param_2; while( true ) { if ((pair *)(this_00 + ((long)param_3 - (long)param_2)) == *(pair **)(this + 8)) break; std:: pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value> ::~pair(this_00); std:: pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value> ::pair(this_00,(pair *)(this_00 + ((long)param_3 - (long)param_2))); this_00 = this_00 + 0x60; } std:: vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> ::resize((vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *)this,((long)*(pair **)(this + 8) - *(long *)this >> 5) * -0x5555555555555555 + ((long)param_3 - (long)param_2 >> 5) * 0x5555555555555555); param_2 = param_2 + (*(long *)this - lVar1); } return param_2; }
38,708
my_wc_mb_bin
eloqsql/strings/ctype-bin.c
int my_wc_mb_bin(CHARSET_INFO *cs __attribute__((unused)), my_wc_t wc, uchar *s, uchar *e) { if (s >= e) return MY_CS_TOOSMALL; if (wc < 256) { s[0]= (char) wc; return 1; } return MY_CS_ILUNI; }
O3
c
my_wc_mb_bin: pushq %rbp movq %rsp, %rbp movl $0xffffff9b, %eax # imm = 0xFFFFFF9B cmpq %rcx, %rdx jae 0xac44b xorl %eax, %eax cmpq $0xff, %rsi ja 0xac44b movb %sil, (%rdx) movl $0x1, %eax popq %rbp retq
my_wc_mb_bin: push rbp mov rbp, rsp mov eax, 0FFFFFF9Bh cmp rdx, rcx jnb short loc_AC44B xor eax, eax cmp rsi, 0FFh ja short loc_AC44B mov [rdx], sil mov eax, 1 loc_AC44B: pop rbp retn
long long my_wc_mb_bin(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4) { long long result; // rax result = 4294967195LL; if ( (unsigned long long)a3 < a4 ) { result = 0LL; if ( a2 <= 0xFF ) { *a3 = a2; return 1LL; } } return result; }
my_wc_mb_bin: PUSH RBP MOV RBP,RSP MOV EAX,0xffffff9b CMP RDX,RCX JNC 0x001ac44b XOR EAX,EAX CMP RSI,0xff JA 0x001ac44b MOV byte ptr [RDX],SIL MOV EAX,0x1 LAB_001ac44b: POP RBP RET
int8 my_wc_mb_bin(int8 param_1,ulong param_2,int1 *param_3,int1 *param_4) { int8 uVar1; uVar1 = 0xffffff9b; if ((param_3 < param_4) && (uVar1 = 0, param_2 < 0x100)) { *param_3 = (char)param_2; uVar1 = 1; } return uVar1; }
38,709
uf_space_prespace_selected
eloqsql/storage/maria/ma_packrec.c
static void uf_space_prespace_selected(MARIA_COLUMNDEF *rec, MARIA_BIT_BUFF *bit_buff, uchar *to, uchar *end) { uint spaces; if (get_bit(bit_buff)) bfill(to, (end-to), ' '); else { if (get_bit(bit_buff)) { if ((spaces=get_bits(bit_buff,rec->space_length_bits))+to > end) { bit_buff->error=1; return; } bfill(to, spaces, ' '); if (to+spaces != end) decode_bytes(rec,bit_buff,to+spaces,end); } else decode_bytes(rec,bit_buff,to,end); } }
O3
c
uf_space_prespace_selected: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rcx, %rbx movq %rdx, %r12 movq %rsi, %r14 movq %rdi, %r13 movl 0x4(%rsi), %eax testl %eax, %eax je 0x468cc movl (%r14), %r15d decl %eax movl %eax, 0x4(%r14) btl %eax, %r15d jb 0x46941 testl %eax, %eax jne 0x468e9 movq %r14, %rdi callq 0x45fe0 movl $0x1f, 0x4(%r14) movl (%r14), %r15d testl %r15d, %r15d jns 0x46962 movl $0x1f, %eax jmp 0x468f5 movq %r14, %rdi callq 0x45fe0 movl $0x1f, 0x4(%r14) movl (%r14), %r15d movl $0x1f, %eax testl %r15d, %r15d js 0x46941 decl %eax movl %eax, 0x4(%r14) btl %eax, %r15d jae 0x46962 movq %r13, %rdx movl 0x24(%r13), %r13d movl %eax, %ecx subl %r13d, %ecx movq %rdx, -0x30(%rbp) jae 0x4696d subl %eax, %r13d movl %eax, %eax leaq 0xa60ad(%rip), %rcx # 0xec9c0 andl (%rcx,%rax,4), %r15d movl %r13d, %ecx shll %cl, %r15d movq %r14, %rdi callq 0x45fe0 movl $0x20, %eax subl %r13d, %eax movl %eax, 0x4(%r14) movl (%r14), %eax negl %r13d movl %r13d, %ecx shrl %cl, %eax addl %eax, %r15d jmp 0x46982 subq %r12, %rbx movq %r12, %rdi movl $0x20, %esi movq %rbx, %rdx addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x2a2a0 movq %r13, %rdi movq %r14, %rsi movq %r12, %rdx jmp 0x469b4 movl %ecx, 0x4(%r14) shrl %cl, %r15d movl 0x24(%rdx), %eax leaq 0xa6042(%rip), %rcx # 0xec9c0 andl (%rcx,%rax,4), %r15d movl %r15d, %edx leaq (%r12,%rdx), %r13 cmpq %rbx, %r13 jbe 0x46998 movl $0x1, 0x28(%r14) jmp 0x469ca movq %r12, %rdi movl $0x20, %esi callq 0x2a2a0 cmpq %rbx, %r13 je 0x469ca movq -0x30(%rbp), %rdi movq %r14, %rsi movq %r13, %rdx movq %rbx, %rcx addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x4619d addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
uf_space_prespace_selected: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rcx mov r12, rdx mov r14, rsi mov r13, rdi mov eax, [rsi+4] test eax, eax jz short loc_468CC mov r15d, [r14] dec eax mov [r14+4], eax bt r15d, eax jb loc_46941 test eax, eax jnz short loc_468E9 mov rdi, r14 call fill_buffer mov dword ptr [r14+4], 1Fh mov r15d, [r14] test r15d, r15d jns loc_46962 mov eax, 1Fh jmp short loc_468F5 loc_468CC: mov rdi, r14 call fill_buffer mov dword ptr [r14+4], 1Fh mov r15d, [r14] mov eax, 1Fh test r15d, r15d js short loc_46941 loc_468E9: dec eax mov [r14+4], eax bt r15d, eax jnb short loc_46962 loc_468F5: mov rdx, r13 mov r13d, [r13+24h] mov ecx, eax sub ecx, r13d mov [rbp+var_30], rdx jnb short loc_4696D sub r13d, eax mov eax, eax lea rcx, mask and r15d, [rcx+rax*4] mov ecx, r13d shl r15d, cl mov rdi, r14 call fill_buffer mov eax, 20h ; ' ' sub eax, r13d mov [r14+4], eax mov eax, [r14] neg r13d mov ecx, r13d shr eax, cl add r15d, eax jmp short loc_46982 loc_46941: sub rbx, r12 mov rdi, r12 mov esi, 20h ; ' ' mov rdx, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp _memset loc_46962: mov rdi, r13 mov rsi, r14 mov rdx, r12 jmp short loc_469B4 loc_4696D: mov [r14+4], ecx shr r15d, cl mov eax, [rdx+24h] lea rcx, mask and r15d, [rcx+rax*4] loc_46982: mov edx, r15d lea r13, [r12+rdx] cmp r13, rbx jbe short loc_46998 mov dword ptr [r14+28h], 1 jmp short loc_469CA loc_46998: mov rdi, r12 mov esi, 20h ; ' ' call _memset cmp r13, rbx jz short loc_469CA mov rdi, [rbp+var_30] mov rsi, r14 mov rdx, r13 loc_469B4: mov rcx, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp decode_bytes loc_469CA: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long uf_space_prespace_selected(long long a1, unsigned int *a2, _BYTE *a3, _BYTE *a4) { unsigned int v6; // eax unsigned int v7; // r15d unsigned int v8; // eax unsigned int v9; // eax unsigned int v10; // r13d unsigned int v11; // ecx int v12; // r13d int v13; // r15d long long result; // rax unsigned int v15; // r15d _BYTE *v16; // rdx _BYTE *v17; // r13 v6 = a2[1]; if ( !v6 ) { fill_buffer((long long)a2); a2[1] = 31; v7 = *a2; v8 = 31; if ( (*a2 & 0x80000000) == 0 ) goto LABEL_7; return memset(a3, 32LL, a4 - a3); } v7 = *a2; v8 = v6 - 1; a2[1] = v8; if ( _bittest((const int *)&v7, v8) ) return memset(a3, 32LL, a4 - a3); if ( !v8 ) { fill_buffer((long long)a2); a2[1] = 31; v7 = *a2; if ( (*a2 & 0x80000000) != 0 ) { v9 = 31; goto LABEL_8; } LABEL_11: v16 = a3; return (long long)decode_bytes(a1, (long long)a2, v16, a4); } LABEL_7: v9 = v8 - 1; a2[1] = v9; if ( !_bittest((const int *)&v7, v9) ) goto LABEL_11; LABEL_8: v10 = *(_DWORD *)(a1 + 36); v11 = v9 - v10; if ( v9 >= v10 ) { a2[1] = v11; result = *(unsigned int *)(a1 + 36); v15 = mask[result] & (v7 >> v11); } else { v12 = v10 - v9; v13 = (mask[v9] & v7) << v12; fill_buffer((long long)a2); a2[1] = 32 - v12; result = *a2 >> -(char)v12; v15 = result + v13; } v17 = &a3[v15]; if ( v17 > a4 ) { a2[10] = 1; return result; } result = memset(a3, 32LL, v15); if ( v17 != a4 ) { v16 = &a3[v15]; return (long long)decode_bytes(a1, (long long)a2, v16, a4); } return result; }
uf_space_prespace_selected: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RCX MOV R12,RDX MOV R14,RSI MOV R13,RDI MOV EAX,dword ptr [RSI + 0x4] TEST EAX,EAX JZ 0x001468cc MOV R15D,dword ptr [R14] DEC EAX MOV dword ptr [R14 + 0x4],EAX BT R15D,EAX JC 0x00146941 TEST EAX,EAX JNZ 0x001468e9 MOV RDI,R14 CALL 0x00145fe0 MOV dword ptr [R14 + 0x4],0x1f MOV R15D,dword ptr [R14] TEST R15D,R15D JNS 0x00146962 MOV EAX,0x1f JMP 0x001468f5 LAB_001468cc: MOV RDI,R14 CALL 0x00145fe0 MOV dword ptr [R14 + 0x4],0x1f MOV R15D,dword ptr [R14] MOV EAX,0x1f TEST R15D,R15D JS 0x00146941 LAB_001468e9: DEC EAX MOV dword ptr [R14 + 0x4],EAX BT R15D,EAX JNC 0x00146962 LAB_001468f5: MOV RDX,R13 MOV R13D,dword ptr [R13 + 0x24] MOV ECX,EAX SUB ECX,R13D MOV qword ptr [RBP + -0x30],RDX JNC 0x0014696d SUB R13D,EAX MOV EAX,EAX LEA RCX,[0x1ec9c0] AND R15D,dword ptr [RCX + RAX*0x4] MOV ECX,R13D SHL R15D,CL MOV RDI,R14 CALL 0x00145fe0 MOV EAX,0x20 SUB EAX,R13D MOV dword ptr [R14 + 0x4],EAX MOV EAX,dword ptr [R14] NEG R13D MOV ECX,R13D SHR EAX,CL ADD R15D,EAX JMP 0x00146982 LAB_00146941: SUB RBX,R12 MOV RDI,R12 MOV ESI,0x20 MOV RDX,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x0012a2a0 LAB_00146962: MOV RDI,R13 MOV RSI,R14 MOV RDX,R12 JMP 0x001469b4 LAB_0014696d: MOV dword ptr [R14 + 0x4],ECX SHR R15D,CL MOV EAX,dword ptr [RDX + 0x24] LEA RCX,[0x1ec9c0] AND R15D,dword ptr [RCX + RAX*0x4] LAB_00146982: MOV EDX,R15D LEA R13,[R12 + RDX*0x1] CMP R13,RBX JBE 0x00146998 MOV dword ptr [R14 + 0x28],0x1 JMP 0x001469ca LAB_00146998: MOV RDI,R12 MOV ESI,0x20 CALL 0x0012a2a0 CMP R13,RBX JZ 0x001469ca MOV RDI,qword ptr [RBP + -0x30] MOV RSI,R14 MOV RDX,R13 LAB_001469b4: MOV RCX,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x0014619d LAB_001469ca: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void uf_space_prespace_selected(long param_1,uint *param_2,void *param_3,void *param_4) { uint uVar1; uint uVar2; uint uVar3; byte bVar4; void *pvVar5; uint uVar6; pvVar5 = param_3; if (param_2[1] == 0) { fill_buffer(param_2); param_2[1] = 0x1f; uVar6 = *param_2; uVar3 = 0x1f; if ((int)uVar6 < 0) goto LAB_00146941; LAB_001468e9: uVar3 = uVar3 - 1; param_2[1] = uVar3; if ((uVar6 >> (uVar3 & 0x1f) & 1) == 0) goto LAB_001469b4; } else { uVar6 = *param_2; uVar3 = param_2[1] - 1; param_2[1] = uVar3; if ((uVar6 >> (uVar3 & 0x1f) & 1) != 0) { LAB_00146941: memset(param_3,0x20,(long)param_4 - (long)param_3); return; } if (uVar3 != 0) goto LAB_001468e9; fill_buffer(param_2); param_2[1] = 0x1f; uVar6 = *param_2; if (-1 < (int)uVar6) goto LAB_001469b4; uVar3 = 0x1f; } uVar1 = *(uint *)(param_1 + 0x24); if (uVar3 < uVar1) { uVar2 = (&mask)[uVar3]; bVar4 = (byte)(uVar1 - uVar3); fill_buffer(param_2); param_2[1] = 0x20 - (uVar1 - uVar3); uVar6 = ((uVar6 & uVar2) << (bVar4 & 0x1f)) + (*param_2 >> (-bVar4 & 0x1f)); } else { param_2[1] = uVar3 - uVar1; uVar6 = uVar6 >> ((byte)(uVar3 - uVar1) & 0x1f) & (&mask)[*(uint *)(param_1 + 0x24)]; } pvVar5 = (void *)((long)param_3 + (ulong)uVar6); if (param_4 < pvVar5) { param_2[10] = 1; } else { memset(param_3,0x20,(ulong)uVar6); if (pvVar5 != param_4) { LAB_001469b4: decode_bytes(param_1,param_2,pvVar5,param_4); return; } } return; }
38,710
google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::MemoryOutputStream(google::protobuf::compiler::CommandLineInterface::GeneratorContextImpl*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, google::protobuf::GeneratedCodeInfo const&)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/command_line_interface.cc
CommandLineInterface::MemoryOutputStream::MemoryOutputStream( GeneratorContextImpl* directory, const std::string& filename, const std::string& insertion_point, const google::protobuf::GeneratedCodeInfo& info) : directory_(directory), filename_(filename), insertion_point_(insertion_point), inner_(new io::StringOutputStream(&data_)), info_to_insert_(info) {}
O0
cpp
google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::MemoryOutputStream(google::protobuf::compiler::CommandLineInterface::GeneratorContextImpl*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, google::protobuf::GeneratedCodeInfo const&): subq $0x68, %rsp movq %rdi, 0x60(%rsp) movq %rsi, 0x58(%rsp) movq %rdx, 0x50(%rsp) movq %rcx, 0x48(%rsp) movq %r8, 0x40(%rsp) movq 0x60(%rsp), %rdi movq %rdi, 0x20(%rsp) callq 0x36cb0 movq 0x20(%rsp), %rdi leaq 0x4bdbf8(%rip), %rax # 0x4e8ca0 movq %rax, (%rdi) movq 0x58(%rsp), %rax movq %rax, 0x8(%rdi) addq $0x10, %rdi movq %rdi, 0x28(%rsp) movq 0x50(%rsp), %rsi callq 0x21160 jmp 0x2b0c9 movq 0x20(%rsp), %rdi addq $0x30, %rdi movq %rdi, 0x18(%rsp) movq 0x48(%rsp), %rsi callq 0x21160 jmp 0x2b0e3 movq 0x20(%rsp), %rdi addq $0x50, %rdi movq %rdi, (%rsp) callq 0x21390 movq 0x20(%rsp), %rax addq $0x78, %rax movq %rax, 0x8(%rsp) movl $0x10, %edi callq 0x211c0 movq %rax, 0x10(%rsp) jmp 0x2b114 movq 0x10(%rsp), %rdi movq 0x20(%rsp), %rsi addq $0x50, %rsi callq 0x1f08f0 jmp 0x2b129 movq 0x10(%rsp), %rsi movq 0x8(%rsp), %rdi callq 0x36cd0 movq 0x20(%rsp), %rdi subq $-0x80, %rdi movq 0x40(%rsp), %rsi callq 0x2d5440 jmp 0x2b14d addq $0x68, %rsp retq movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) jmp 0x2b1d1 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) jmp 0x2b1c7 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) jmp 0x2b1b4 movq 0x10(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) callq 0x21620 jmp 0x2b1b4 movq 0x8(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) callq 0x36d20 movq (%rsp), %rdi callq 0x21cc8 movq 0x18(%rsp), %rdi callq 0x21cc8 movq 0x28(%rsp), %rdi callq 0x21cc8 movq 0x20(%rsp), %rdi callq 0x36d80 movq 0x38(%rsp), %rdi callq 0x21700 nopw %cs:(%rax,%rax)
_ZN6google8protobuf8compiler20CommandLineInterface18MemoryOutputStreamC2EPNS2_20GeneratorContextImplERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESD_RKNS0_17GeneratedCodeInfoE: sub rsp, 68h mov [rsp+68h+var_8], rdi mov [rsp+68h+var_10], rsi mov [rsp+68h+var_18], rdx mov [rsp+68h+var_20], rcx mov [rsp+68h+var_28], r8 mov rdi, [rsp+68h+var_8]; this mov [rsp+68h+var_48], rdi call _ZN6google8protobuf2io20ZeroCopyOutputStreamC2Ev; google::protobuf::io::ZeroCopyOutputStream::ZeroCopyOutputStream(void) mov rdi, [rsp+68h+var_48] lea rax, off_4E8CA0 mov [rdi], rax mov rax, [rsp+68h+var_10] mov [rdi+8], rax add rdi, 10h mov [rsp+68h+var_40], rdi mov rsi, [rsp+68h+var_18] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&) jmp short $+2 loc_2B0C9: mov rdi, [rsp+68h+var_48] add rdi, 30h ; '0' mov [rsp+68h+var_50], rdi mov rsi, [rsp+68h+var_20] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&) jmp short $+2 loc_2B0E3: mov rdi, [rsp+68h+var_48] add rdi, 50h ; 'P' mov [rsp+68h+var_68], rdi call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void) mov rax, [rsp+68h+var_48] add rax, 78h ; 'x' mov [rsp+68h+var_60], rax mov edi, 10h; unsigned __int64 call __Znwm; operator new(ulong) mov [rsp+68h+var_58], rax jmp short $+2 loc_2B114: mov rdi, [rsp+68h+var_58] mov rsi, [rsp+68h+var_48] add rsi, 50h ; 'P' call _ZN6google8protobuf2io18StringOutputStreamC2EPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::io::StringOutputStream::StringOutputStream(std::string *) jmp short $+2 loc_2B129: mov rsi, [rsp+68h+var_58] mov rdi, [rsp+68h+var_60] call _ZNSt10unique_ptrIN6google8protobuf2io18StringOutputStreamESt14default_deleteIS3_EEC2IS5_vEEPS3_; std::unique_ptr<google::protobuf::io::StringOutputStream>::unique_ptr<std::default_delete<google::protobuf::io::StringOutputStream>,void>(google::protobuf::io::StringOutputStream*) mov rdi, [rsp+68h+var_48] sub rdi, 0FFFFFFFFFFFFFF80h; this mov rsi, [rsp+68h+var_28]; google::protobuf::GeneratedCodeInfo * call _ZN6google8protobuf17GeneratedCodeInfoC2ERKS1_; google::protobuf::GeneratedCodeInfo::GeneratedCodeInfo(google::protobuf::GeneratedCodeInfo const&) jmp short $+2 loc_2B14D: add rsp, 68h retn mov rcx, rax mov eax, edx mov [rsp+arg_30], rcx mov [rsp+arg_2C], eax jmp short loc_2B1D1 mov rcx, rax mov eax, edx mov [rsp+arg_30], rcx mov [rsp+arg_2C], eax jmp short loc_2B1C7 mov rcx, rax mov eax, edx mov [rsp+arg_30], rcx mov [rsp+arg_2C], eax jmp short loc_2B1B4 mov rdi, [rsp+arg_8]; void * mov rcx, rax mov eax, edx mov [rsp+arg_30], rcx mov [rsp+arg_2C], eax call __ZdlPv; operator delete(void *) jmp short loc_2B1B4 mov rdi, [rsp+arg_0] mov rcx, rax mov eax, edx mov [rsp+arg_30], rcx mov [rsp+arg_2C], eax call _ZNSt10unique_ptrIN6google8protobuf2io18StringOutputStreamESt14default_deleteIS3_EED2Ev; std::unique_ptr<google::protobuf::io::StringOutputStream>::~unique_ptr() loc_2B1B4: mov rdi, [rsp+0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov rdi, [rsp+arg_10]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_2B1C7: mov rdi, [rsp+arg_20]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_2B1D1: mov rdi, [rsp+arg_18]; this call _ZN6google8protobuf2io20ZeroCopyOutputStreamD2Ev; google::protobuf::io::ZeroCopyOutputStream::~ZeroCopyOutputStream() mov rdi, [rsp+arg_30] call __Unwind_Resume
long long google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::MemoryOutputStream( _QWORD *a1, long long a2, long long a3, long long a4, const google::protobuf::GeneratedCodeInfo *a5) { long long v6; // [rsp+10h] [rbp-58h] google::protobuf::io::ZeroCopyOutputStream::ZeroCopyOutputStream((google::protobuf::io::ZeroCopyOutputStream *)a1); *a1 = off_4E8CA0; a1[1] = a2; std::string::basic_string(a1 + 2, a3); std::string::basic_string(a1 + 6, a4); std::string::basic_string(a1 + 10); v6 = operator new(0x10uLL); google::protobuf::io::StringOutputStream::StringOutputStream(v6, a1 + 10); std::unique_ptr<google::protobuf::io::StringOutputStream>::unique_ptr<std::default_delete<google::protobuf::io::StringOutputStream>,void>( a1 + 15, v6); return google::protobuf::GeneratedCodeInfo::GeneratedCodeInfo((google::protobuf::GeneratedCodeInfo *)(a1 + 16), a5); }
MemoryOutputStream: SUB RSP,0x68 MOV qword ptr [RSP + 0x60],RDI MOV qword ptr [RSP + 0x58],RSI MOV qword ptr [RSP + 0x50],RDX MOV qword ptr [RSP + 0x48],RCX MOV qword ptr [RSP + 0x40],R8 MOV RDI,qword ptr [RSP + 0x60] MOV qword ptr [RSP + 0x20],RDI CALL 0x00136cb0 MOV RDI,qword ptr [RSP + 0x20] LEA RAX,[0x5e8ca0] MOV qword ptr [RDI],RAX MOV RAX,qword ptr [RSP + 0x58] MOV qword ptr [RDI + 0x8],RAX ADD RDI,0x10 MOV qword ptr [RSP + 0x28],RDI MOV RSI,qword ptr [RSP + 0x50] LAB_0012b0c2: CALL 0x00121160 JMP 0x0012b0c9 LAB_0012b0c9: MOV RDI,qword ptr [RSP + 0x20] ADD RDI,0x30 MOV qword ptr [RSP + 0x18],RDI MOV RSI,qword ptr [RSP + 0x48] LAB_0012b0dc: CALL 0x00121160 JMP 0x0012b0e3 LAB_0012b0e3: MOV RDI,qword ptr [RSP + 0x20] ADD RDI,0x50 MOV qword ptr [RSP],RDI CALL 0x00121390 MOV RAX,qword ptr [RSP + 0x20] ADD RAX,0x78 MOV qword ptr [RSP + 0x8],RAX LAB_0012b103: MOV EDI,0x10 CALL 0x001211c0 MOV qword ptr [RSP + 0x10],RAX JMP 0x0012b114 LAB_0012b114: MOV RDI,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RSP + 0x20] ADD RSI,0x50 LAB_0012b122: CALL 0x002f08f0 JMP 0x0012b129 LAB_0012b129: MOV RSI,qword ptr [RSP + 0x10] MOV RDI,qword ptr [RSP + 0x8] CALL 0x00136cd0 MOV RDI,qword ptr [RSP + 0x20] SUB RDI,-0x80 MOV RSI,qword ptr [RSP + 0x40] LAB_0012b146: CALL 0x003d5440 LAB_0012b14b: JMP 0x0012b14d LAB_0012b14d: ADD RSP,0x68 RET
/* google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::MemoryOutputStream(google::protobuf::compiler::CommandLineInterface::GeneratorContextImpl*, std::__cxx11::string const&, std::__cxx11::string const&, google::protobuf::GeneratedCodeInfo const&) */ void __thiscall google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::MemoryOutputStream (MemoryOutputStream *this,GeneratorContextImpl *param_1,string *param_2,string *param_3, GeneratedCodeInfo *param_4) { StringOutputStream *this_00; io::ZeroCopyOutputStream::ZeroCopyOutputStream((ZeroCopyOutputStream *)this); *(int ***)this = &PTR__MemoryOutputStream_005e8ca0; *(GeneratorContextImpl **)(this + 8) = param_1; /* try { // try from 0012b0c2 to 0012b0c6 has its CatchHandler @ 0012b152 */ std::__cxx11::string::string((string *)(this + 0x10),param_2); /* try { // try from 0012b0dc to 0012b0e0 has its CatchHandler @ 0012b162 */ std::__cxx11::string::string((string *)(this + 0x30),param_3); std::__cxx11::string::string((string *)(this + 0x50)); /* try { // try from 0012b103 to 0012b10c has its CatchHandler @ 0012b172 */ this_00 = (StringOutputStream *)operator_new(0x10); /* try { // try from 0012b122 to 0012b126 has its CatchHandler @ 0012b182 */ io::StringOutputStream::StringOutputStream(this_00,(string *)(this + 0x50)); std:: unique_ptr<google::protobuf::io::StringOutputStream,std::default_delete<google::protobuf::io::StringOutputStream>> ::unique_ptr<std::default_delete<google::protobuf::io::StringOutputStream>,void> ((unique_ptr<google::protobuf::io::StringOutputStream,std::default_delete<google::protobuf::io::StringOutputStream>> *)(this + 0x78),this_00); /* try { // try from 0012b146 to 0012b14a has its CatchHandler @ 0012b19c */ GeneratedCodeInfo::GeneratedCodeInfo((GeneratedCodeInfo *)(this + 0x80),param_4); return; }
38,711
google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::MemoryOutputStream(google::protobuf::compiler::CommandLineInterface::GeneratorContextImpl*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, google::protobuf::GeneratedCodeInfo const&)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/command_line_interface.cc
CommandLineInterface::MemoryOutputStream::MemoryOutputStream( GeneratorContextImpl* directory, const std::string& filename, const std::string& insertion_point, const google::protobuf::GeneratedCodeInfo& info) : directory_(directory), filename_(filename), insertion_point_(insertion_point), inner_(new io::StringOutputStream(&data_)), info_to_insert_(info) {}
O3
cpp
google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::MemoryOutputStream(google::protobuf::compiler::CommandLineInterface::GeneratorContextImpl*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, google::protobuf::GeneratedCodeInfo const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %r8, %r13 movq %rcx, %r12 movq %rdi, %r15 leaq 0x24fb40(%rip), %rax # 0x276390 movq %rax, (%rdi) movq %rsi, 0x8(%rdi) addq $0x10, %rdi leaq 0x20(%r15), %rax movq %rax, 0x8(%rsp) movq %rax, 0x10(%r15) movq (%rdx), %rsi movq 0x8(%rdx), %rdx addq %rsi, %rdx movq %rdi, 0x10(%rsp) callq 0x2586a leaq 0x30(%r15), %r14 leaq 0x40(%r15), %rax movq %rax, (%rsp) movq %rax, 0x30(%r15) movq (%r12), %rsi movq 0x8(%r12), %rdx addq %rsi, %rdx movq %r14, %rdi callq 0x2586a leaq 0x50(%r15), %r12 leaq 0x60(%r15), %rbx movq %rbx, 0x50(%r15) movq $0x0, 0x58(%r15) movb $0x0, 0x60(%r15) movl $0x10, %edi callq 0x1f4f0 movq %rax, %rbp movq %rax, %rdi movq %r12, %rsi callq 0xfc570 movq %rbp, 0x78(%r15) leaq 0x80(%r15), %rdi movq %r13, %rsi callq 0x154f6c addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %r13 movq 0x78(%r15), %rdi testq %rdi, %rdi je 0x26905 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x78(%r15) jmp 0x2691f movq %rax, %r13 movq %rbp, %rdi callq 0x1f4a0 jmp 0x2691f movq %rax, %r13 movq (%r12), %rdi cmpq %rbx, %rdi je 0x2692d callq 0x1f4a0 movq (%r14), %rdi cmpq (%rsp), %rdi je 0x26940 callq 0x1f4a0 jmp 0x26940 movq %rax, %r13 movq 0x10(%rsp), %rax movq (%rax), %rdi cmpq 0x8(%rsp), %rdi je 0x26954 callq 0x1f4a0 movq %r13, %rdi callq 0x1f860
_ZN6google8protobuf8compiler20CommandLineInterface18MemoryOutputStreamC2EPNS2_20GeneratorContextImplERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESD_RKNS0_17GeneratedCodeInfoE: push rbp; Alternative name is 'google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::MemoryOutputStream(google::protobuf::compiler::CommandLineInterface::GeneratorContextImpl *, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, google::protobuf::GeneratedCodeInfo const&)' push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r13, r8 mov r12, rcx mov r15, rdi lea rax, off_276390 mov [rdi], rax mov [rdi+8], rsi add rdi, 10h lea rax, [r15+20h] mov [rsp+48h+var_40], rax mov [r15+10h], rax mov rsi, [rdx] mov rdx, [rdx+8] add rdx, rsi mov [rsp+48h+var_38], rdi call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea r14, [r15+30h] lea rax, [r15+40h] mov [rsp+48h+var_48], rax mov [r15+30h], rax mov rsi, [r12] mov rdx, [r12+8] add rdx, rsi mov rdi, r14 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea r12, [r15+50h] lea rbx, [r15+60h] mov [r15+50h], rbx mov qword ptr [r15+58h], 0 mov byte ptr [r15+60h], 0 mov edi, 10h; unsigned __int64 call __Znwm; operator new(ulong) mov rbp, rax mov rdi, rax mov rsi, r12 call _ZN6google8protobuf2io18StringOutputStreamC2EPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::io::StringOutputStream::StringOutputStream(std::string *) mov [r15+78h], rbp lea rdi, [r15+80h]; this mov rsi, r13; google::protobuf::GeneratedCodeInfo * call _ZN6google8protobuf17GeneratedCodeInfoC2ERKS1_; google::protobuf::GeneratedCodeInfo::GeneratedCodeInfo(google::protobuf::GeneratedCodeInfo const&) add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov r13, rax mov rdi, [r15+78h] test rdi, rdi jz short loc_26905 mov rax, [rdi] call qword ptr [rax+8] loc_26905: mov qword ptr [r15+78h], 0 jmp short loc_2691F mov r13, rax mov rdi, rbp; void * call __ZdlPv; operator delete(void *) jmp short loc_2691F mov r13, rax loc_2691F: mov rdi, [r12]; void * cmp rdi, rbx jz short loc_2692D call __ZdlPv; operator delete(void *) loc_2692D: mov rdi, [r14]; void * cmp rdi, [rsp+0] jz short loc_26940 call __ZdlPv; operator delete(void *) jmp short loc_26940 mov r13, rax loc_26940: mov rax, [rsp+arg_8] mov rdi, [rax]; void * cmp rdi, [rsp+arg_0] jz short loc_26954 call __ZdlPv; operator delete(void *) loc_26954: mov rdi, r13 call __Unwind_Resume
long long google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::MemoryOutputStream( long long a1, long long a2, long long a3, long long a4, const google::protobuf::GeneratedCodeInfo *a5) { long long v7; // rbp *(_QWORD *)a1 = off_276390; *(_QWORD *)(a1 + 8) = a2; *(_QWORD *)(a1 + 16) = a1 + 32; std::string::_M_construct<char *>(a1 + 16, *(_BYTE **)a3, *(_QWORD *)a3 + *(_QWORD *)(a3 + 8)); *(_QWORD *)(a1 + 48) = a1 + 64; std::string::_M_construct<char *>(a1 + 48, *(_BYTE **)a4, *(_QWORD *)a4 + *(_QWORD *)(a4 + 8)); *(_QWORD *)(a1 + 80) = a1 + 96; *(_QWORD *)(a1 + 88) = 0LL; *(_BYTE *)(a1 + 96) = 0; v7 = operator new(0x10uLL); google::protobuf::io::StringOutputStream::StringOutputStream(v7, a1 + 80); *(_QWORD *)(a1 + 120) = v7; return google::protobuf::GeneratedCodeInfo::GeneratedCodeInfo((google::protobuf::GeneratedCodeInfo *)(a1 + 128), a5); }
MemoryOutputStream: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R13,R8 MOV R12,RCX MOV R15,RDI LEA RAX,[0x376390] MOV qword ptr [RDI],RAX MOV qword ptr [RDI + 0x8],RSI ADD RDI,0x10 LEA RAX,[R15 + 0x20] MOV qword ptr [RSP + 0x8],RAX MOV qword ptr [R15 + 0x10],RAX MOV RSI,qword ptr [RDX] MOV RDX,qword ptr [RDX + 0x8] ADD RDX,RSI MOV qword ptr [RSP + 0x10],RDI CALL 0x0012586a LEA R14,[R15 + 0x30] LEA RAX,[R15 + 0x40] MOV qword ptr [RSP],RAX MOV qword ptr [R15 + 0x30],RAX MOV RSI,qword ptr [R12] MOV RDX,qword ptr [R12 + 0x8] ADD RDX,RSI LAB_00126898: MOV RDI,R14 CALL 0x0012586a LEA R12,[R15 + 0x50] LEA RBX,[R15 + 0x60] MOV qword ptr [R15 + 0x50],RBX MOV qword ptr [R15 + 0x58],0x0 MOV byte ptr [R15 + 0x60],0x0 LAB_001268b9: MOV EDI,0x10 CALL 0x0011f4f0 LAB_001268c3: MOV RBP,RAX MOV RDI,RAX MOV RSI,R12 CALL 0x001fc570 MOV qword ptr [R15 + 0x78],RBP LEA RDI,[R15 + 0x80] LAB_001268dc: MOV RSI,R13 CALL 0x00254f6c LAB_001268e4: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::MemoryOutputStream(google::protobuf::compiler::CommandLineInterface::GeneratorContextImpl*, std::__cxx11::string const&, std::__cxx11::string const&, google::protobuf::GeneratedCodeInfo const&) */ void __thiscall google::protobuf::compiler::CommandLineInterface::MemoryOutputStream::MemoryOutputStream (MemoryOutputStream *this,GeneratorContextImpl *param_1,string *param_2,string *param_3, GeneratedCodeInfo *param_4) { StringOutputStream *this_00; *(int ***)this = &PTR__MemoryOutputStream_00376390; *(GeneratorContextImpl **)(this + 8) = param_1; *(MemoryOutputStream **)(this + 0x10) = this + 0x20; std::__cxx11::string::_M_construct<char*> (this + 0x10,*(long *)param_2,*(long *)(param_2 + 8) + *(long *)param_2); *(MemoryOutputStream **)(this + 0x30) = this + 0x40; /* try { // try from 00126898 to 0012689f has its CatchHandler @ 0012693d */ std::__cxx11::string::_M_construct<char*> (this + 0x30,*(long *)param_3,*(long *)(param_3 + 8) + *(long *)param_3); *(MemoryOutputStream **)(this + 0x50) = this + 0x60; *(int8 *)(this + 0x58) = 0; this[0x60] = (MemoryOutputStream)0x0; /* try { // try from 001268b9 to 001268c2 has its CatchHandler @ 0012691c */ this_00 = (StringOutputStream *)operator_new(0x10); /* try { // try from 001268c3 to 001268d0 has its CatchHandler @ 0012690f */ io::StringOutputStream::StringOutputStream(this_00,(string *)(this + 0x50)); *(StringOutputStream **)(this + 0x78) = this_00; /* try { // try from 001268dc to 001268e3 has its CatchHandler @ 001268f3 */ GeneratedCodeInfo::GeneratedCodeInfo((GeneratedCodeInfo *)(this + 0x80),param_4); return; }
38,712
ma_read_block_record
eloqsql/storage/maria/ma_blockrec.c
int _ma_read_block_record(MARIA_HA *info, uchar *record, MARIA_RECORD_POS record_pos) { MARIA_SHARE *share= info->s; uchar *data, *end_of_data, *buff; uint offset; int ret; DBUG_ENTER("_ma_read_block_record"); DBUG_PRINT("enter", ("rowid: %lu page: %lu rownr: %u", (ulong) record_pos, (ulong) ma_recordpos_to_page(record_pos), ma_recordpos_to_dir_entry(record_pos))); offset= ma_recordpos_to_dir_entry(record_pos); if (!(buff= pagecache_read(share->pagecache, &info->dfile, ma_recordpos_to_page(record_pos), 0, info->buff, share->page_type, PAGECACHE_LOCK_LEFT_UNLOCKED, 0))) DBUG_RETURN(my_errno); /* Unallocated page access can happen if this is an access to a page where all rows where deleted as part of this statement. */ DBUG_ASSERT((buff[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK) == HEAD_PAGE || (buff[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK) == UNALLOCATED_PAGE); if (((buff[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK) == UNALLOCATED_PAGE) || !(data= get_record_position(share, buff, offset, &end_of_data))) { DBUG_ASSERT(!maria_assert_if_crashed_table); DBUG_PRINT("warning", ("Wrong directory entry in data block")); my_errno= HA_ERR_RECORD_DELETED; /* File crashed */ DBUG_RETURN(HA_ERR_RECORD_DELETED); } ret= _ma_read_block_record2(info, record, data, end_of_data); DBUG_RETURN(ret); }
O0
c
ma_read_block_record: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x28(%rbp) jmp 0x78571 movq -0x20(%rbp), %rdi callq 0x75ea0 movl %eax, -0x44(%rbp) movq -0x28(%rbp), %rax movq 0x600(%rax), %rax movq %rax, -0x58(%rbp) movq -0x10(%rbp), %rax addq $0x470, %rax # imm = 0x470 movq %rax, -0x50(%rbp) movq -0x20(%rbp), %rdi callq 0x75e80 movq -0x58(%rbp), %rdi movq -0x50(%rbp), %rsi movq %rax, %rdx movq -0x10(%rbp), %rax movq 0x378(%rax), %r8 movq -0x28(%rbp), %rax movl 0x7d4(%rax), %r9d xorl %ecx, %ecx xorl %eax, %eax movl $0x0, (%rsp) movq $0x0, 0x8(%rsp) callq 0x2d970 movq %rax, -0x40(%rbp) cmpq $0x0, %rax jne 0x785f5 jmp 0x785e9 callq 0xf60c0 movl (%rax), %eax movl %eax, -0x4(%rbp) jmp 0x78661 jmp 0x785f7 jmp 0x785f9 movq -0x40(%rbp), %rax movzbl 0x7(%rax), %eax andl $0x7, %eax cmpl $0x0, %eax je 0x78627 movq -0x28(%rbp), %rdi movq -0x40(%rbp), %rsi movl -0x44(%rbp), %edx leaq -0x38(%rbp), %rcx callq 0x78670 movq %rax, -0x30(%rbp) cmpq $0x0, %rax jne 0x78643 jmp 0x78629 jmp 0x7862b jmp 0x7862d jmp 0x7862f callq 0xf60c0 movl $0x86, (%rax) movl $0x86, -0x4(%rbp) jmp 0x78661 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x30(%rbp), %rdx movq -0x38(%rbp), %rcx callq 0x77450 movl %eax, -0x48(%rbp) movl -0x48(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x70, %rsp popq %rbp retq nopw (%rax,%rax)
_ma_read_block_record: push rbp mov rbp, rsp sub rsp, 70h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_28], rax jmp short $+2 loc_78571: mov rdi, [rbp+var_20] call ma_recordpos_to_dir_entry mov [rbp+var_44], eax mov rax, [rbp+var_28] mov rax, [rax+600h] mov [rbp+var_58], rax mov rax, [rbp+var_10] add rax, 470h mov [rbp+var_50], rax mov rdi, [rbp+var_20] call ma_recordpos_to_page mov rdi, [rbp+var_58] mov rsi, [rbp+var_50] mov rdx, rax mov rax, [rbp+var_10] mov r8, [rax+378h] mov rax, [rbp+var_28] mov r9d, [rax+7D4h] xor ecx, ecx xor eax, eax mov [rsp+70h+var_70], 0 mov [rsp+70h+var_68], 0 call pagecache_read mov [rbp+var_40], rax cmp rax, 0 jnz short loc_785F5 jmp short $+2 loc_785E9: call _my_thread_var mov eax, [rax] mov [rbp+var_4], eax jmp short loc_78661 loc_785F5: jmp short $+2 loc_785F7: jmp short $+2 loc_785F9: mov rax, [rbp+var_40] movzx eax, byte ptr [rax+7] and eax, 7 cmp eax, 0 jz short loc_78627 mov rdi, [rbp+var_28] mov rsi, [rbp+var_40] mov edx, [rbp+var_44] lea rcx, [rbp+var_38] call get_record_position mov [rbp+var_30], rax cmp rax, 0 jnz short loc_78643 loc_78627: jmp short $+2 loc_78629: jmp short $+2 loc_7862B: jmp short $+2 loc_7862D: jmp short $+2 loc_7862F: call _my_thread_var mov dword ptr [rax], 86h mov [rbp+var_4], 86h jmp short loc_78661 loc_78643: mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] mov rdx, [rbp+var_30] mov rcx, [rbp+var_38] call _ma_read_block_record2 mov [rbp+var_48], eax mov eax, [rbp+var_48] mov [rbp+var_4], eax loc_78661: mov eax, [rbp+var_4] add rsp, 70h pop rbp retn
long long ma_read_block_record(_QWORD *a1, long long a2, unsigned long long a3) { unsigned long long v3; // rax _QWORD *v4; // rdi const char *v5; // rsi long long v6; // r8 int v7; // r9d _QWORD *v9; // [rsp+18h] [rbp-58h] const char *v10; // [rsp+20h] [rbp-50h] unsigned int v11; // [rsp+2Ch] [rbp-44h] long long v12; // [rsp+30h] [rbp-40h] char *v13; // [rsp+38h] [rbp-38h] BYREF char *record_position; // [rsp+40h] [rbp-30h] long long v15; // [rsp+48h] [rbp-28h] unsigned long long v16; // [rsp+50h] [rbp-20h] long long v17; // [rsp+58h] [rbp-18h] _QWORD *v18; // [rsp+60h] [rbp-10h] v18 = a1; v17 = a2; v16 = a3; v15 = *a1; v11 = ma_recordpos_to_dir_entry(a3); v9 = *(_QWORD **)(v15 + 1536); v10 = (const char *)(a1 + 142); v3 = ma_recordpos_to_page(v16); v4 = v9; v5 = v10; v12 = pagecache_read(v9, (long long)v10, v3, 0, v18[111], *(_DWORD *)(v15 + 2004), 0, 0LL); if ( v12 ) { if ( (*(_BYTE *)(v12 + 7) & 7) != 0 && (v4 = (_QWORD *)v15, v5 = (const char *)v12, (record_position = (char *)get_record_position(v15, v12, v11, &v13)) != 0LL) ) { return (unsigned int)ma_read_block_record2((long long)v18, v17, record_position, v13, v6, v7); } else { *(_DWORD *)my_thread_var(v4, v5) = 134; return 134; } } else { return *(unsigned int *)my_thread_var(v9, v10); } }
_ma_read_block_record: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x28],RAX JMP 0x00178571 LAB_00178571: MOV RDI,qword ptr [RBP + -0x20] CALL 0x00175ea0 MOV dword ptr [RBP + -0x44],EAX MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX + 0x600] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x470 MOV qword ptr [RBP + -0x50],RAX MOV RDI,qword ptr [RBP + -0x20] CALL 0x00175e80 MOV RDI,qword ptr [RBP + -0x58] MOV RSI,qword ptr [RBP + -0x50] MOV RDX,RAX MOV RAX,qword ptr [RBP + -0x10] MOV R8,qword ptr [RAX + 0x378] MOV RAX,qword ptr [RBP + -0x28] MOV R9D,dword ptr [RAX + 0x7d4] XOR ECX,ECX XOR EAX,EAX MOV dword ptr [RSP],0x0 MOV qword ptr [RSP + 0x8],0x0 CALL 0x0012d970 MOV qword ptr [RBP + -0x40],RAX CMP RAX,0x0 JNZ 0x001785f5 JMP 0x001785e9 LAB_001785e9: CALL 0x001f60c0 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x4],EAX JMP 0x00178661 LAB_001785f5: JMP 0x001785f7 LAB_001785f7: JMP 0x001785f9 LAB_001785f9: MOV RAX,qword ptr [RBP + -0x40] MOVZX EAX,byte ptr [RAX + 0x7] AND EAX,0x7 CMP EAX,0x0 JZ 0x00178627 MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x40] MOV EDX,dword ptr [RBP + -0x44] LEA RCX,[RBP + -0x38] CALL 0x00178670 MOV qword ptr [RBP + -0x30],RAX CMP RAX,0x0 JNZ 0x00178643 LAB_00178627: JMP 0x00178629 LAB_00178629: JMP 0x0017862b LAB_0017862b: JMP 0x0017862d LAB_0017862d: JMP 0x0017862f LAB_0017862f: CALL 0x001f60c0 MOV dword ptr [RAX],0x86 MOV dword ptr [RBP + -0x4],0x86 JMP 0x00178661 LAB_00178643: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x38] CALL 0x00177450 MOV dword ptr [RBP + -0x48],EAX MOV EAX,dword ptr [RBP + -0x48] MOV dword ptr [RBP + -0x4],EAX LAB_00178661: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x70 POP RBP RET
int4 _ma_read_block_record(long *param_1,int8 param_2,int8 param_3) { int8 uVar1; int4 uVar2; long *plVar3; int8 uVar4; long lVar5; int4 *puVar6; int8 local_40; long local_38; long local_30; int8 local_28; int8 local_20; long *local_18; int4 local_c; local_30 = *param_1; local_28 = param_3; local_20 = param_2; local_18 = param_1; uVar2 = ma_recordpos_to_dir_entry(param_3); uVar1 = *(int8 *)(local_30 + 0x600); plVar3 = local_18 + 0x8e; uVar4 = ma_recordpos_to_page(local_28); lVar5 = pagecache_read(uVar1,plVar3,uVar4,0,local_18[0x6f],*(int4 *)(local_30 + 0x7d4),0,0); if (lVar5 == 0) { puVar6 = (int4 *)_my_thread_var(); local_c = *puVar6; } else { if (((*(byte *)(lVar5 + 7) & 7) != 0) && (local_38 = get_record_position(local_30,lVar5,uVar2,&local_40), local_38 != 0)) { uVar2 = _ma_read_block_record2(local_18,local_20,local_38,local_40); return uVar2; } puVar6 = (int4 *)_my_thread_var(); *puVar6 = 0x86; local_c = 0x86; } return local_c; }
38,713
ma_read_block_record
eloqsql/storage/maria/ma_blockrec.c
int _ma_read_block_record(MARIA_HA *info, uchar *record, MARIA_RECORD_POS record_pos) { MARIA_SHARE *share= info->s; uchar *data, *end_of_data, *buff; uint offset; int ret; DBUG_ENTER("_ma_read_block_record"); DBUG_PRINT("enter", ("rowid: %lu page: %lu rownr: %u", (ulong) record_pos, (ulong) ma_recordpos_to_page(record_pos), ma_recordpos_to_dir_entry(record_pos))); offset= ma_recordpos_to_dir_entry(record_pos); if (!(buff= pagecache_read(share->pagecache, &info->dfile, ma_recordpos_to_page(record_pos), 0, info->buff, share->page_type, PAGECACHE_LOCK_LEFT_UNLOCKED, 0))) DBUG_RETURN(my_errno); /* Unallocated page access can happen if this is an access to a page where all rows where deleted as part of this statement. */ DBUG_ASSERT((buff[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK) == HEAD_PAGE || (buff[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK) == UNALLOCATED_PAGE); if (((buff[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK) == UNALLOCATED_PAGE) || !(data= get_record_position(share, buff, offset, &end_of_data))) { DBUG_ASSERT(!maria_assert_if_crashed_table); DBUG_PRINT("warning", ("Wrong directory entry in data block")); my_errno= HA_ERR_RECORD_DELETED; /* File crashed */ DBUG_RETURN(HA_ERR_RECORD_DELETED); } ret= _ma_read_block_record2(info, record, data, end_of_data); DBUG_RETURN(ret); }
O3
c
ma_read_block_record: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rdx, %r12 movq %rsi, %rbx movq %rdi, %r14 movq (%rdi), %r15 movq 0x600(%r15), %rdi leaq 0x470(%r14), %rsi shrq $0x8, %rdx movq 0x378(%r14), %r8 movl 0x7d4(%r15), %r9d xorl %ecx, %ecx pushq $0x0 pushq $0x0 callq 0x3263a addq $0x10, %rsp testq %rax, %rax je 0x5e556 testb $0x7, 0x7(%rax) je 0x5e544 movzbl %r12b, %edx leaq -0x28(%rbp), %rcx movq %r15, %rdi movq %rax, %rsi callq 0x5e56a testq %rax, %rax je 0x5e544 movq -0x28(%rbp), %rcx movq %r14, %rdi movq %rbx, %rsi movq %rax, %rdx addq $0x10, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp 0x5da0d callq 0xa1b22 movl $0x86, (%rax) movl $0x86, %eax jmp 0x5e55d callq 0xa1b22 movl (%rax), %eax addq $0x10, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
_ma_read_block_record: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 10h mov r12, rdx mov rbx, rsi mov r14, rdi mov r15, [rdi] mov rdi, [r15+600h] lea rsi, [r14+470h] shr rdx, 8 mov r8, [r14+378h] mov r9d, [r15+7D4h] xor ecx, ecx push 0 push 0 call pagecache_read add rsp, 10h test rax, rax jz short loc_5E556 test byte ptr [rax+7], 7 jz short loc_5E544 movzx edx, r12b lea rcx, [rbp+var_28] mov rdi, r15 mov rsi, rax call get_record_position test rax, rax jz short loc_5E544 mov rcx, [rbp+var_28] mov rdi, r14 mov rsi, rbx mov rdx, rax add rsp, 10h pop rbx pop r12 pop r14 pop r15 pop rbp jmp _ma_read_block_record2 loc_5E544: call _my_thread_var mov dword ptr [rax], 86h mov eax, 86h jmp short loc_5E55D loc_5E556: call _my_thread_var mov eax, [rax] loc_5E55D: add rsp, 10h pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long ma_read_block_record(long long *a1, long long a2, unsigned long long a3) { unsigned __int8 v3; // r12 long long v6; // r15 long long v7; // rdi const char *v8; // rsi long long v9; // rax long long record_position; // rax long long v11; // r8 unsigned int *v12; // r9 unsigned long long v14[5]; // [rsp+8h] [rbp-28h] BYREF v3 = a3; v6 = *a1; v7 = *(_QWORD *)(*a1 + 1536); v8 = (const char *)(a1 + 142); v9 = pagecache_read(v7, (long long)(a1 + 142), a3 >> 8, 0, a1[111], *(_DWORD *)(v6 + 2004), 0, 0LL); if ( !v9 ) return *(unsigned int *)my_thread_var(v7, v8); if ( (*(_BYTE *)(v9 + 7) & 7) != 0 ) { v7 = v6; v8 = (const char *)v9; record_position = get_record_position(v6, v9, v3, v14); if ( record_position ) return ma_read_block_record2((long long **)a1, a2, record_position, v14[0], v11, v12); } *(_DWORD *)my_thread_var(v7, v8) = 134; return 134LL; }
_ma_read_block_record: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x10 MOV R12,RDX MOV RBX,RSI MOV R14,RDI MOV R15,qword ptr [RDI] MOV RDI,qword ptr [R15 + 0x600] LEA RSI,[R14 + 0x470] SHR RDX,0x8 MOV R8,qword ptr [R14 + 0x378] MOV R9D,dword ptr [R15 + 0x7d4] XOR ECX,ECX PUSH 0x0 PUSH 0x0 CALL 0x0013263a ADD RSP,0x10 TEST RAX,RAX JZ 0x0015e556 TEST byte ptr [RAX + 0x7],0x7 JZ 0x0015e544 MOVZX EDX,R12B LEA RCX,[RBP + -0x28] MOV RDI,R15 MOV RSI,RAX CALL 0x0015e56a TEST RAX,RAX JZ 0x0015e544 MOV RCX,qword ptr [RBP + -0x28] MOV RDI,R14 MOV RSI,RBX MOV RDX,RAX ADD RSP,0x10 POP RBX POP R12 POP R14 POP R15 POP RBP JMP 0x0015da0d LAB_0015e544: CALL 0x001a1b22 MOV dword ptr [RAX],0x86 MOV EAX,0x86 JMP 0x0015e55d LAB_0015e556: CALL 0x001a1b22 MOV EAX,dword ptr [RAX] LAB_0015e55d: ADD RSP,0x10 POP RBX POP R12 POP R14 POP R15 POP RBP RET
ulong _ma_read_block_record(long *param_1,int8 param_2,ulong param_3) { long lVar1; long lVar2; ulong uVar3; int4 *puVar4; uint *puVar5; int8 local_30; lVar2 = *param_1; lVar1 = pagecache_read(*(int8 *)(lVar2 + 0x600),param_1 + 0x8e,param_3 >> 8,0,param_1[0x6f], *(int4 *)(lVar2 + 0x7d4),0,0); if (lVar1 == 0) { puVar5 = (uint *)_my_thread_var(); uVar3 = (ulong)*puVar5; } else { if ((*(byte *)(lVar1 + 7) & 7) != 0) { lVar2 = get_record_position(lVar2,lVar1,param_3 & 0xff,&local_30); if (lVar2 != 0) { uVar3 = _ma_read_block_record2(param_1,param_2,lVar2,local_30); return uVar3; } } puVar4 = (int4 *)_my_thread_var(); *puVar4 = 0x86; uVar3 = 0x86; } return uVar3; }
38,714
js_array_constructor
bluesky950520[P]quickjs/quickjs.c
static JSValue js_array_constructor(JSContext *ctx, JSValue new_target, int argc, JSValue *argv) { JSValue obj; int i; obj = js_create_from_ctor(ctx, new_target, JS_CLASS_ARRAY); if (JS_IsException(obj)) return obj; if (argc == 1 && JS_IsNumber(argv[0])) { uint32_t len; if (JS_ToArrayLengthFree(ctx, &len, js_dup(argv[0]), TRUE)) goto fail; if (JS_SetProperty(ctx, obj, JS_ATOM_length, js_uint32(len)) < 0) goto fail; } else { for(i = 0; i < argc; i++) { if (JS_SetPropertyUint32(ctx, obj, i, js_dup(argv[i])) < 0) goto fail; } } return obj; fail: JS_FreeValue(ctx, obj); return JS_EXCEPTION; }
O0
c
js_array_constructor: subq $0xb8, %rsp movq %rsi, 0x98(%rsp) movq %rdx, 0xa0(%rsp) movq %rdi, 0x90(%rsp) movl %ecx, 0x8c(%rsp) movq %r8, 0x80(%rsp) movq 0x90(%rsp), %rdi movq 0x98(%rsp), %rsi movq 0xa0(%rsp), %rdx movl $0x2, %ecx callq 0x54e00 movq %rax, 0x58(%rsp) movq %rdx, 0x60(%rsp) movq 0x58(%rsp), %rax movq %rax, 0x70(%rsp) movq 0x60(%rsp), %rax movq %rax, 0x78(%rsp) movq 0x70(%rsp), %rdi movq 0x78(%rsp), %rsi callq 0x23cc0 cmpl $0x0, %eax je 0x56e61 movq 0x70(%rsp), %rax movq %rax, 0xa8(%rsp) movq 0x78(%rsp), %rax movq %rax, 0xb0(%rsp) jmp 0x5700b cmpl $0x1, 0x8c(%rsp) jne 0x56f32 movq 0x80(%rsp), %rax movq (%rax), %rdi movq 0x8(%rax), %rsi callq 0x506d0 cmpl $0x0, %eax je 0x56f32 movq 0x90(%rsp), %rax movq %rax, 0x18(%rsp) movq 0x80(%rsp), %rax movq (%rax), %rdi movq 0x8(%rax), %rsi callq 0x216d0 movq 0x18(%rsp), %rdi movq %rax, 0x40(%rsp) movq %rdx, 0x48(%rsp) movq 0x40(%rsp), %rdx movq 0x48(%rsp), %rcx leaq 0x54(%rsp), %rsi movl $0x1, %r8d callq 0x35210 cmpl $0x0, %eax je 0x56ee0 jmp 0x56fdd movq 0x90(%rsp), %rax movq %rax, 0x10(%rsp) movl 0x54(%rsp), %edi callq 0x33b60 movq 0x10(%rsp), %rdi movq %rax, 0x30(%rsp) movq %rdx, 0x38(%rsp) movq 0x70(%rsp), %rsi movq 0x78(%rsp), %rdx movq 0x30(%rsp), %r8 movq 0x38(%rsp), %r9 movl $0x32, %ecx callq 0x31f00 cmpl $0x0, %eax jge 0x56f2d jmp 0x56fdd jmp 0x56fc1 movl $0x0, 0x6c(%rsp) movl 0x6c(%rsp), %eax cmpl 0x8c(%rsp), %eax jge 0x56fbf movq 0x90(%rsp), %rax movq %rax, (%rsp) movl 0x6c(%rsp), %eax movl %eax, 0xc(%rsp) movq 0x80(%rsp), %rax movslq 0x6c(%rsp), %rcx shlq $0x4, %rcx addq %rcx, %rax movq (%rax), %rdi movq 0x8(%rax), %rsi callq 0x216d0 movq (%rsp), %rdi movl 0xc(%rsp), %ecx movq %rax, 0x20(%rsp) movq %rdx, 0x28(%rsp) movq 0x70(%rsp), %rsi movq 0x78(%rsp), %rdx movq 0x20(%rsp), %r8 movq 0x28(%rsp), %r9 callq 0x33350 cmpl $0x0, %eax jge 0x56fad jmp 0x56fdd jmp 0x56faf movl 0x6c(%rsp), %eax addl $0x1, %eax movl %eax, 0x6c(%rsp) jmp 0x56f3a jmp 0x56fc1 movq 0x70(%rsp), %rax movq %rax, 0xa8(%rsp) movq 0x78(%rsp), %rax movq %rax, 0xb0(%rsp) jmp 0x5700b movq 0x90(%rsp), %rdi movq 0x70(%rsp), %rsi movq 0x78(%rsp), %rdx callq 0x23c90 movl $0x0, 0xa8(%rsp) movq $0x6, 0xb0(%rsp) movq 0xa8(%rsp), %rax movq 0xb0(%rsp), %rdx addq $0xb8, %rsp retq nopw %cs:(%rax,%rax)
js_array_constructor: sub rsp, 0B8h mov [rsp+0B8h+var_20], rsi mov [rsp+0B8h+var_18], rdx mov [rsp+0B8h+var_28], rdi mov [rsp+0B8h+var_2C], ecx mov [rsp+0B8h+var_38], r8 mov rdi, [rsp+0B8h+var_28] mov rsi, [rsp+0B8h+var_20] mov rdx, [rsp+0B8h+var_18] mov ecx, 2 call js_create_from_ctor mov [rsp+0B8h+var_60], rax mov [rsp+0B8h+var_58], rdx mov rax, [rsp+0B8h+var_60] mov [rsp+0B8h+var_48], rax mov rax, [rsp+0B8h+var_58] mov [rsp+0B8h+var_40], rax mov rdi, [rsp+0B8h+var_48] mov rsi, [rsp+0B8h+var_40] call JS_IsException_1 cmp eax, 0 jz short loc_56E61 mov rax, [rsp+0B8h+var_48] mov [rsp+0B8h+var_10], rax mov rax, [rsp+0B8h+var_40] mov [rsp+0B8h+var_8], rax jmp loc_5700B loc_56E61: cmp [rsp+0B8h+var_2C], 1 jnz loc_56F32 mov rax, [rsp+0B8h+var_38] mov rdi, [rax] mov rsi, [rax+8] call JS_IsNumber cmp eax, 0 jz loc_56F32 mov rax, [rsp+0B8h+var_28] mov [rsp+0B8h+var_A0], rax mov rax, [rsp+0B8h+var_38] mov rdi, [rax] mov rsi, [rax+8] call js_dup mov rdi, [rsp+0B8h+var_A0] mov [rsp+0B8h+var_78], rax mov [rsp+0B8h+var_70], rdx mov rdx, [rsp+0B8h+var_78] mov rcx, [rsp+0B8h+var_70] lea rsi, [rsp+0B8h+var_64] mov r8d, 1 call JS_ToArrayLengthFree cmp eax, 0 jz short loc_56EE0 jmp loc_56FDD loc_56EE0: mov rax, [rsp+0B8h+var_28] mov [rsp+0B8h+var_A8], rax mov edi, [rsp+0B8h+var_64] call js_uint32 mov rdi, [rsp+0B8h+var_A8] mov [rsp+0B8h+var_88], rax mov [rsp+0B8h+var_80], rdx mov rsi, [rsp+0B8h+var_48] mov rdx, [rsp+0B8h+var_40] mov r8, [rsp+0B8h+var_88] mov r9, [rsp+0B8h+var_80] mov ecx, 32h ; '2' call JS_SetProperty cmp eax, 0 jge short loc_56F2D jmp loc_56FDD loc_56F2D: jmp loc_56FC1 loc_56F32: mov [rsp+0B8h+var_4C], 0 loc_56F3A: mov eax, [rsp+0B8h+var_4C] cmp eax, [rsp+0B8h+var_2C] jge short loc_56FBF mov rax, [rsp+0B8h+var_28] mov [rsp+0B8h+var_B8], rax mov eax, [rsp+0B8h+var_4C] mov [rsp+0B8h+var_AC], eax mov rax, [rsp+0B8h+var_38] movsxd rcx, [rsp+0B8h+var_4C] shl rcx, 4 add rax, rcx mov rdi, [rax] mov rsi, [rax+8] call js_dup mov rdi, [rsp+0B8h+var_B8] mov ecx, [rsp+0B8h+var_AC] mov [rsp+0B8h+var_98], rax mov [rsp+0B8h+var_90], rdx mov rsi, [rsp+0B8h+var_48] mov rdx, [rsp+0B8h+var_40] mov r8, [rsp+0B8h+var_98] mov r9, [rsp+0B8h+var_90] call JS_SetPropertyUint32 cmp eax, 0 jge short loc_56FAD jmp short loc_56FDD loc_56FAD: jmp short $+2 loc_56FAF: mov eax, [rsp+0B8h+var_4C] add eax, 1 mov [rsp+0B8h+var_4C], eax jmp loc_56F3A loc_56FBF: jmp short $+2 loc_56FC1: mov rax, [rsp+0B8h+var_48] mov [rsp+0B8h+var_10], rax mov rax, [rsp+0B8h+var_40] mov [rsp+0B8h+var_8], rax jmp short loc_5700B loc_56FDD: mov rdi, [rsp+0B8h+var_28] mov rsi, [rsp+0B8h+var_48] mov rdx, [rsp+0B8h+var_40] call JS_FreeValue mov dword ptr [rsp+0B8h+var_10], 0 mov [rsp+0B8h+var_8], 6 loc_5700B: mov rax, [rsp+0B8h+var_10] mov rdx, [rsp+0B8h+var_8] add rsp, 0B8h retn
long long js_array_constructor( long long a1, long long a2, long long a3, signed int a4, long long *a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, double a10, double a11, __m128 a12, __m128 a13) { long long v13; // rdx long long v14; // rdx long long v15; // r9 __m128 v16; // xmm4 __m128 v17; // xmm5 int v18; // edx long long v19; // rdx int v21; // [rsp+10h] [rbp-A8h] _DWORD *v22; // [rsp+20h] [rbp-98h] int v23; // [rsp+30h] [rbp-88h] _DWORD *v24; // [rsp+40h] [rbp-78h] unsigned int v25; // [rsp+54h] [rbp-64h] BYREF long long v26; // [rsp+58h] [rbp-60h] long long v27; // [rsp+60h] [rbp-58h] signed int i; // [rsp+6Ch] [rbp-4Ch] long long v29; // [rsp+70h] [rbp-48h] long long v30; // [rsp+78h] [rbp-40h] long long *v31; // [rsp+80h] [rbp-38h] signed int v32; // [rsp+8Ch] [rbp-2Ch] long long v33; // [rsp+90h] [rbp-28h] long long v34; // [rsp+98h] [rbp-20h] long long v35; // [rsp+A0h] [rbp-18h] long long v36; // [rsp+A8h] [rbp-10h] long long v37; // [rsp+B0h] [rbp-8h] v34 = a2; v35 = a3; v33 = a1; v32 = a4; v31 = a5; v26 = js_create_from_ctor(a1, a2, a3, 2); v27 = v13; v29 = v26; v30 = v13; if ( JS_IsException_1(v26, v13) ) { v36 = v29; v37 = v30; } else { if ( v32 == 1 && JS_IsNumber(*v31, v31[1]) ) { v24 = js_dup((_DWORD *)*v31, v31[1]); if ( (unsigned int)JS_ToArrayLengthFree( v33, &v25, (long long)v24, v14, 1LL, v15, a6, a7, a8, a9, v16, v17, a12, a13) || (v21 = v33, v23 = js_uint32(v25), (int)JS_SetProperty(v21, v29, v30, 50, v23, v18) < 0) ) { LABEL_13: JS_FreeValue(v33, v29, v30); LODWORD(v36) = 0; v37 = 6LL; return v36; } } else { for ( i = 0; i < v32; ++i ) { v22 = js_dup((_DWORD *)v31[2 * i], v31[2 * i + 1]); if ( (int)JS_SetPropertyUint32(v33, v29, v30, i, (long long)v22, v19) < 0 ) goto LABEL_13; } } v36 = v29; v37 = v30; } return v36; }
js_array_constructor: SUB RSP,0xb8 MOV qword ptr [RSP + 0x98],RSI MOV qword ptr [RSP + 0xa0],RDX MOV qword ptr [RSP + 0x90],RDI MOV dword ptr [RSP + 0x8c],ECX MOV qword ptr [RSP + 0x80],R8 MOV RDI,qword ptr [RSP + 0x90] MOV RSI,qword ptr [RSP + 0x98] MOV RDX,qword ptr [RSP + 0xa0] MOV ECX,0x2 CALL 0x00154e00 MOV qword ptr [RSP + 0x58],RAX MOV qword ptr [RSP + 0x60],RDX MOV RAX,qword ptr [RSP + 0x58] MOV qword ptr [RSP + 0x70],RAX MOV RAX,qword ptr [RSP + 0x60] MOV qword ptr [RSP + 0x78],RAX MOV RDI,qword ptr [RSP + 0x70] MOV RSI,qword ptr [RSP + 0x78] CALL 0x00123cc0 CMP EAX,0x0 JZ 0x00156e61 MOV RAX,qword ptr [RSP + 0x70] MOV qword ptr [RSP + 0xa8],RAX MOV RAX,qword ptr [RSP + 0x78] MOV qword ptr [RSP + 0xb0],RAX JMP 0x0015700b LAB_00156e61: CMP dword ptr [RSP + 0x8c],0x1 JNZ 0x00156f32 MOV RAX,qword ptr [RSP + 0x80] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x8] CALL 0x001506d0 CMP EAX,0x0 JZ 0x00156f32 MOV RAX,qword ptr [RSP + 0x90] MOV qword ptr [RSP + 0x18],RAX MOV RAX,qword ptr [RSP + 0x80] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x8] CALL 0x001216d0 MOV RDI,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x40],RAX MOV qword ptr [RSP + 0x48],RDX MOV RDX,qword ptr [RSP + 0x40] MOV RCX,qword ptr [RSP + 0x48] LEA RSI,[RSP + 0x54] MOV R8D,0x1 CALL 0x00135210 CMP EAX,0x0 JZ 0x00156ee0 JMP 0x00156fdd LAB_00156ee0: MOV RAX,qword ptr [RSP + 0x90] MOV qword ptr [RSP + 0x10],RAX MOV EDI,dword ptr [RSP + 0x54] CALL 0x00133b60 MOV RDI,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x30],RAX MOV qword ptr [RSP + 0x38],RDX MOV RSI,qword ptr [RSP + 0x70] MOV RDX,qword ptr [RSP + 0x78] MOV R8,qword ptr [RSP + 0x30] MOV R9,qword ptr [RSP + 0x38] MOV ECX,0x32 CALL 0x00131f00 CMP EAX,0x0 JGE 0x00156f2d JMP 0x00156fdd LAB_00156f2d: JMP 0x00156fc1 LAB_00156f32: MOV dword ptr [RSP + 0x6c],0x0 LAB_00156f3a: MOV EAX,dword ptr [RSP + 0x6c] CMP EAX,dword ptr [RSP + 0x8c] JGE 0x00156fbf MOV RAX,qword ptr [RSP + 0x90] MOV qword ptr [RSP],RAX MOV EAX,dword ptr [RSP + 0x6c] MOV dword ptr [RSP + 0xc],EAX MOV RAX,qword ptr [RSP + 0x80] MOVSXD RCX,dword ptr [RSP + 0x6c] SHL RCX,0x4 ADD RAX,RCX MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x8] CALL 0x001216d0 MOV RDI,qword ptr [RSP] MOV ECX,dword ptr [RSP + 0xc] MOV qword ptr [RSP + 0x20],RAX MOV qword ptr [RSP + 0x28],RDX MOV RSI,qword ptr [RSP + 0x70] MOV RDX,qword ptr [RSP + 0x78] MOV R8,qword ptr [RSP + 0x20] MOV R9,qword ptr [RSP + 0x28] CALL 0x00133350 CMP EAX,0x0 JGE 0x00156fad JMP 0x00156fdd LAB_00156fad: JMP 0x00156faf LAB_00156faf: MOV EAX,dword ptr [RSP + 0x6c] ADD EAX,0x1 MOV dword ptr [RSP + 0x6c],EAX JMP 0x00156f3a LAB_00156fbf: JMP 0x00156fc1 LAB_00156fc1: MOV RAX,qword ptr [RSP + 0x70] MOV qword ptr [RSP + 0xa8],RAX MOV RAX,qword ptr [RSP + 0x78] MOV qword ptr [RSP + 0xb0],RAX JMP 0x0015700b LAB_00156fdd: MOV RDI,qword ptr [RSP + 0x90] MOV RSI,qword ptr [RSP + 0x70] MOV RDX,qword ptr [RSP + 0x78] CALL 0x00123c90 MOV dword ptr [RSP + 0xa8],0x0 MOV qword ptr [RSP + 0xb0],0x6 LAB_0015700b: MOV RAX,qword ptr [RSP + 0xa8] MOV RDX,qword ptr [RSP + 0xb0] ADD RSP,0xb8 RET
int1 [16] js_array_constructor (int8 param_1,int8 param_2,int8 param_3,int param_4,int8 *param_5) { int8 uVar1; int iVar2; int1 auVar3 [16]; int4 local_64; int1 local_60 [16]; int local_4c; int1 local_48 [16]; int8 *local_38; int local_2c; int8 local_28; int8 local_20; int8 local_18; int4 local_10; int4 uStack_c; int8 local_8; local_38 = param_5; local_2c = param_4; local_28 = param_1; local_20 = param_2; local_18 = param_3; local_60 = js_create_from_ctor(param_1,param_2,param_3,2); local_48 = local_60; iVar2 = JS_IsException(local_60._0_8_,local_60._8_8_); if (iVar2 != 0) { local_10 = local_48._0_4_; uStack_c = local_48._4_4_; local_8 = local_48._8_8_; goto LAB_0015700b; } if (local_2c == 1) { iVar2 = JS_IsNumber(*local_38,local_38[1]); uVar1 = local_28; if (iVar2 == 0) goto LAB_00156f32; auVar3 = js_dup(*local_38,local_38[1]); iVar2 = JS_ToArrayLengthFree(uVar1,&local_64,auVar3._0_8_,auVar3._8_8_,1); uVar1 = local_28; if (iVar2 != 0) { LAB_00156fdd: JS_FreeValue(local_28,local_48._0_8_,local_48._8_8_); local_10 = 0; local_8 = 6; goto LAB_0015700b; } auVar3 = js_uint32(local_64); iVar2 = JS_SetProperty(uVar1,local_48._0_8_,local_48._8_8_,0x32,auVar3._0_8_,auVar3._8_8_); if (iVar2 < 0) goto LAB_00156fdd; } else { LAB_00156f32: for (local_4c = 0; uVar1 = local_28, iVar2 = local_4c, local_4c < local_2c; local_4c = local_4c + 1) { auVar3 = js_dup(local_38[(long)local_4c * 2],(local_38 + (long)local_4c * 2)[1]); iVar2 = JS_SetPropertyUint32 (uVar1,local_48._0_8_,local_48._8_8_,iVar2,auVar3._0_8_,auVar3._8_8_); if (iVar2 < 0) goto LAB_00156fdd; } } local_10 = local_48._0_4_; uStack_c = local_48._4_4_; local_8 = local_48._8_8_; LAB_0015700b: auVar3._4_4_ = uStack_c; auVar3._0_4_ = local_10; auVar3._8_8_ = local_8; return auVar3; }
38,715
format_literal(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
monkey531[P]llama/common/json-schema-to-grammar.cpp
static std::string format_literal(const std::string & literal) { std::string escaped = replacePattern(literal, GRAMMAR_LITERAL_ESCAPE_RE, [&](const std::smatch & match) { char c = match.str()[0]; return GRAMMAR_LITERAL_ESCAPES.at(c); }); return "\"" + escaped + "\""; }
O2
cpp
format_literal(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x98, %rsp movq %rdi, 0x28(%rsp) xorps %xmm0, %xmm0 leaq 0x50(%rsp), %rcx movaps %xmm0, (%rcx) leaq 0x190(%rip), %rax # 0xa84e4 movq %rax, 0x18(%rcx) leaq 0x1d7(%rip), %rax # 0xa8536 movq %rax, 0x10(%rcx) movq %rsp, %r15 movaps %xmm0, 0x10(%r15) movaps %xmm0, (%r15) leaq 0x40(%rsp), %rax movq %rax, -0x10(%rax) andq $0x0, -0x8(%rax) movb $0x0, (%rax) movq (%rsi), %r14 movq 0x8(%rsi), %r12 addq %r14, %r12 leaq 0x7b43f(%rip), %r13 # 0x1237d0 leaq 0x30(%rsp), %rbp leaq 0x78(%rsp), %rbx movq %r14, %rdi movq %r12, %rsi movq %r15, %rdx movq %r13, %rcx xorl %r8d, %r8d callq 0x6e28a testb %al, %al je 0xa841a movq %r15, %rdi xorl %esi, %esi callq 0x7de06 addq %r14, %rax movq %rbp, %rdi movq %r14, %rsi movq %rax, %rdx callq 0xae7ea movq %rbx, %rdi leaq 0x50(%rsp), %rsi movq %r15, %rdx callq 0xae800 movq %rbp, %rdi movq %rbx, %rsi callq 0x278e0 movq %rbx, %rdi callq 0x27998 movq 0x8(%rsp), %rcx movq %rcx, %rax subq (%rsp), %rax cqto pushq $0x18 popq %rsi idivq %rsi leaq -0x18(%rcx), %rdx addq $-0x48, %rcx cmpq $0x4, %rax cmovaeq %rdx, %rcx movq (%rcx), %r14 jmp 0xa839b leaq 0x30(%rsp), %rdi movq %r14, %rsi movq %r12, %rdx callq 0xae7ea movq %rsp, %rdi callq 0x4e878 leaq 0x50(%rsp), %rdi callq 0x463f0 leaq 0x30b21(%rip), %rsi # 0xd8f64 movq %rsp, %rdi leaq 0x30(%rsp), %rdx callq 0x2c251 leaq 0x30b0d(%rip), %rdx # 0xd8f64 movq %rsp, %rsi movq 0x28(%rsp), %rbx movq %rbx, %rdi callq 0x2c232 movq %rsp, %rdi callq 0x27998 leaq 0x30(%rsp), %rdi callq 0x27998 movq %rbx, %rax addq $0x98, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movq %rsp, %rdi callq 0x27998 jmp 0xa849e movq %rax, %rbx leaq 0x30(%rsp), %rdi callq 0x27998 jmp 0xa84dc jmp 0xa84bd movq %rax, %rbx leaq 0x78(%rsp), %rdi callq 0x27998 jmp 0xa84c0 jmp 0xa84bd movq %rax, %rbx leaq 0x30(%rsp), %rdi callq 0x27998 movq %rsp, %rdi callq 0x4e878 leaq 0x50(%rsp), %rdi callq 0x463f0 movq %rbx, %rdi callq 0x27660
_ZL14format_literalRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 98h mov [rsp+0C8h+var_A0], rdi xorps xmm0, xmm0 lea rcx, [rsp+0C8h+var_78] movaps xmmword ptr [rcx], xmm0 lea rax, _ZNSt17_Function_handlerIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_13match_resultsIN9__gnu_cxx17__normal_iteratorIPKcS5_EESaINS0_9sub_matchISB_EEEEEEZL14format_literalRKS5_E3$_0E9_M_invokeERKSt9_Any_dataSH_; std::_Function_handler<std::string ()(std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>> const&),format_literal(std::string const&)::$_0>::_M_invoke(std::_Any_data const&,std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>> const&) mov [rcx+18h], rax lea rax, _ZNSt17_Function_handlerIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_13match_resultsIN9__gnu_cxx17__normal_iteratorIPKcS5_EESaINS0_9sub_matchISB_EEEEEEZL14format_literalRKS5_E3$_0E10_M_managerERSt9_Any_dataRKSN_St18_Manager_operation; std::_Function_handler<std::string ()(std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>> const&),format_literal(std::string const&)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov [rcx+10h], rax mov r15, rsp movaps xmmword ptr [r15+10h], xmm0 movaps xmmword ptr [r15], xmm0 lea rax, [rsp+0C8h+var_88] mov [rax-10h], rax and qword ptr [rax-8], 0 mov byte ptr [rax], 0 mov r14, [rsi] mov r12, [rsi+8] add r12, r14 lea r13, _Z25GRAMMAR_LITERAL_ESCAPE_REB5cxx11; GRAMMAR_LITERAL_ESCAPE_RE lea rbp, [rsp+0C8h+var_98] lea rbx, [rsp+0C8h+var_50] loc_A839B: mov rdi, r14 mov rsi, r12 mov rdx, r15 mov rcx, r13 xor r8d, r8d call _ZNSt8__detail17__regex_algo_implIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESaINS5_9sub_matchISB_EEEcNS5_12regex_traitsIcEELNS_20_RegexExecutorPolicyE0ELb0EEEbT_SI_RNS5_13match_resultsISI_T0_EERKNS5_11basic_regexIT1_T2_EENSt15regex_constants15match_flag_typeE; std::__detail::__regex_algo_impl<__gnu_cxx::__normal_iterator<char const*,std::string>,std::allocator<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>,char,std::regex_traits<char>,(std::__detail::_RegexExecutorPolicy)0,false>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>> &,std::basic_regex<char,std::regex_traits<char>> const&,std::regex_constants::match_flag_type) test al, al jz short loc_A841A mov rdi, r15 xor esi, esi call _ZNKSt7__cxx1113match_resultsIN9__gnu_cxx17__normal_iteratorIPKcNS_12basic_stringIcSt11char_traitsIcESaIcEEEEESaINS_9sub_matchISA_EEEE8positionEm; std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>>::position(ulong) add rax, r14 mov rdi, rbp mov rsi, r14 mov rdx, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendIN9__gnu_cxx17__normal_iteratorIPKcS4_EEvEERS4_T_SC_; std::string::append<__gnu_cxx::__normal_iterator<char const*,std::string>,void>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>) mov rdi, rbx lea rsi, [rsp+0C8h+var_78] mov rdx, r15 call _ZNKSt8functionIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_13match_resultsIN9__gnu_cxx17__normal_iteratorIPKcS5_EESaINS0_9sub_matchISB_EEEEEEEclESH_; std::function<std::string ()(std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>> const&)>::operator()(std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>> const&) mov rdi, rbp mov rsi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&) mov rdi, rbx; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rcx, [rsp+0C8h+var_C0] mov rax, rcx sub rax, [rsp+0C8h+var_C8] cqo push 18h pop rsi idiv rsi lea rdx, [rcx-18h] add rcx, 0FFFFFFFFFFFFFFB8h cmp rax, 4 cmovnb rcx, rdx mov r14, [rcx] jmp short loc_A839B loc_A841A: lea rdi, [rsp+0C8h+var_98] mov rsi, r14 mov rdx, r12 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendIN9__gnu_cxx17__normal_iteratorIPKcS4_EEvEERS4_T_SC_; std::string::append<__gnu_cxx::__normal_iterator<char const*,std::string>,void>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>) mov rdi, rsp call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIN9__gnu_cxx17__normal_iteratorIPKcNS0_12basic_stringIcSt11char_traitsIcESaIcEEEEEEESaISC_EED2Ev; std::_Vector_base<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~_Vector_base() lea rdi, [rsp+0C8h+var_78]; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() lea rsi, aName_2+9; "\"" mov rdi, rsp lea rdx, [rsp+0C8h+var_98] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&) lea rdx, aName_2+9; "\"" mov rsi, rsp mov rbx, [rsp+0C8h+var_A0] mov rdi, rbx call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*) mov rdi, rsp; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+0C8h+var_98]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rax, rbx add rsp, 98h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax mov rdi, rsp; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_A849E mov rbx, rax loc_A849E: lea rdi, [rsp+arg_28]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_A84DC jmp short loc_A84BD mov rbx, rax lea rdi, [rsp+arg_70]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_A84C0 jmp short $+2 loc_A84BD: mov rbx, rax loc_A84C0: lea rdi, [rsp+arg_28]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, rsp call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIN9__gnu_cxx17__normal_iteratorIPKcNS0_12basic_stringIcSt11char_traitsIcESaIcEEEEEEESaISC_EED2Ev; std::_Vector_base<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~_Vector_base() lea rdi, [rsp+arg_48]; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() loc_A84DC: mov rdi, rbx call __Unwind_Resume
long long format_literal(long long a1, long long *a2) { long long v2; // r14 long long v3; // r12 long long v4; // rax long long *v5; // rcx long long v6; // rbx long long v8[5]; // [rsp+0h] [rbp-C8h] BYREF long long v9; // [rsp+28h] [rbp-A0h] _QWORD v10[2]; // [rsp+30h] [rbp-98h] BYREF char v11; // [rsp+40h] [rbp-88h] BYREF __int128 v12; // [rsp+50h] [rbp-78h] BYREF long long ( *v13)(); // [rsp+60h] [rbp-68h] long long ( *v14)(); // [rsp+68h] [rbp-60h] _BYTE v15[80]; // [rsp+78h] [rbp-50h] BYREF v9 = a1; v12 = 0LL; v14 = std::_Function_handler<std::string ()(std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>> const&),format_literal(std::string const&)::$_0>::_M_invoke; v13 = std::_Function_handler<std::string ()(std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>> const&),format_literal(std::string const&)::$_0>::_M_manager; memset(v8, 0, 32); v10[0] = &v11; v10[1] = 0LL; v11 = 0; v2 = *a2; v3 = *a2 + a2[1]; while ( std::__detail::__regex_algo_impl<__gnu_cxx::__normal_iterator<char const*,std::string>,std::allocator<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>,char,std::regex_traits<char>,(std::__detail::_RegexExecutorPolicy)0,false>( v2, v3, (long long)v8, (long long)&GRAMMAR_LITERAL_ESCAPE_RE[abi:cxx11], 0) ) { v4 = std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>>::position(v8, 0LL); std::string::append<__gnu_cxx::__normal_iterator<char const*,std::string>,void>(v10, v2, v2 + v4); std::function<std::string ()(std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>> const&)>::operator()( v15, &v12, v8); std::string::append(v10, v15); std::string::~string(v15); v5 = (long long *)(v8[1] - 72); if ( (unsigned long long)((v8[1] - v8[0]) / 24) >= 4 ) v5 = (long long *)(v8[1] - 24); v2 = *v5; } std::string::append<__gnu_cxx::__normal_iterator<char const*,std::string>,void>(v10, v2, v3); std::_Vector_base<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~_Vector_base(v8); std::_Function_base::~_Function_base((std::_Function_base *)&v12); std::operator+<char>((long long)v8, (long long)"\"", (long long)v10); v6 = v9; std::operator+<char>(v9, (long long)v8, (long long)"\""); std::string::~string(v8); std::string::~string(v10); return v6; }
format_literal: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x98 MOV qword ptr [RSP + 0x28],RDI XORPS XMM0,XMM0 LEA RCX,[RSP + 0x50] MOVAPS xmmword ptr [RCX],XMM0 LEA RAX,[0x1a84e4] MOV qword ptr [RCX + 0x18],RAX LEA RAX,[0x1a8536] MOV qword ptr [RCX + 0x10],RAX MOV R15,RSP MOVAPS xmmword ptr [R15 + 0x10],XMM0 MOVAPS xmmword ptr [R15],XMM0 LEA RAX,[RSP + 0x40] MOV qword ptr [RAX + -0x10],RAX AND qword ptr [RAX + -0x8],0x0 MOV byte ptr [RAX],0x0 MOV R14,qword ptr [RSI] MOV R12,qword ptr [RSI + 0x8] ADD R12,R14 LEA R13,[0x2237d0] LEA RBP,[RSP + 0x30] LEA RBX,[RSP + 0x78] LAB_001a839b: MOV RDI,R14 MOV RSI,R12 MOV RDX,R15 MOV RCX,R13 XOR R8D,R8D CALL 0x0016e28a TEST AL,AL JZ 0x001a841a MOV RDI,R15 XOR ESI,ESI CALL 0x0017de06 ADD RAX,R14 MOV RDI,RBP MOV RSI,R14 MOV RDX,RAX CALL 0x001ae7ea LAB_001a83ce: MOV RDI,RBX LEA RSI,[RSP + 0x50] MOV RDX,R15 CALL 0x001ae800 LAB_001a83de: MOV RDI,RBP MOV RSI,RBX CALL 0x001278e0 MOV RDI,RBX CALL 0x00127998 MOV RCX,qword ptr [RSP + 0x8] MOV RAX,RCX SUB RAX,qword ptr [RSP] CQO PUSH 0x18 POP RSI IDIV RSI LEA RDX,[RCX + -0x18] ADD RCX,-0x48 CMP RAX,0x4 CMOVNC RCX,RDX MOV R14,qword ptr [RCX] JMP 0x001a839b LAB_001a841a: LEA RDI,[RSP + 0x30] MOV RSI,R14 MOV RDX,R12 CALL 0x001ae7ea MOV RDI,RSP CALL 0x0014e878 LEA RDI,[RSP + 0x50] CALL 0x001463f0 LAB_001a843c: LEA RSI,[0x1d8f64] MOV RDI,RSP LEA RDX,[RSP + 0x30] CALL 0x0012c251 LAB_001a8450: LEA RDX,[0x1d8f64] MOV RSI,RSP MOV RBX,qword ptr [RSP + 0x28] MOV RDI,RBX CALL 0x0012c232 LAB_001a8467: MOV RDI,RSP CALL 0x00127998 LEA RDI,[RSP + 0x30] CALL 0x00127998 MOV RAX,RBX ADD RSP,0x98 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* format_literal(std::__cxx11::string const&) */ string * format_literal(string *param_1) { string *psVar1; bool bVar2; long lVar3; long *plVar4; long *in_RSI; long lVar5; long lVar6; long local_c8; long lStack_c0; int8 local_b8; int8 uStack_b0; string *local_a0; int1 *local_98; int8 local_90; int1 local_88 [16]; int8 local_78; int8 uStack_70; code *local_68; code *local_60; function<std::__cxx11::string(std::__cxx11::match_results<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>>const&)> local_50 [32]; local_78 = 0; uStack_70 = 0; local_60 = std:: _Function_handler<std::__cxx11::string(std::__cxx11::match_results<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>>const&),format_literal(std::__cxx11::string_const&)::$_0> ::_M_invoke; local_68 = std:: _Function_handler<std::__cxx11::string(std::__cxx11::match_results<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>>const&),format_literal(std::__cxx11::string_const&)::$_0> ::_M_manager; local_b8 = 0; uStack_b0 = 0; local_c8 = 0; lStack_c0 = 0; local_98 = local_88; local_90 = 0; local_88[0] = 0; lVar6 = *in_RSI; lVar5 = in_RSI[1] + lVar6; local_a0 = param_1; while( true ) { /* try { // try from 001a839b to 001a83cd has its CatchHandler @ 001a84bd */ bVar2 = std::__detail:: __regex_algo_impl<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>,char,std::__cxx11::regex_traits<char>,(std::__detail::_RegexExecutorPolicy)0,false> (lVar6,lVar5,&local_c8,GRAMMAR_LITERAL_ESCAPE_RE_abi_cxx11_,0); if (!bVar2) break; lVar3 = std::__cxx11:: match_results<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>> ::position((match_results<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>> *)&local_c8,0); std::__cxx11::string:: append<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,void> ((string *)&local_98,lVar6,lVar3 + lVar6); /* try { // try from 001a83ce to 001a83dd has its CatchHandler @ 001a84bb */ std:: function<std::__cxx11::string(std::__cxx11::match_results<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>>const&)> ::operator()(local_50,(match_results *)&local_78); /* try { // try from 001a83de to 001a83e8 has its CatchHandler @ 001a84ac */ std::__cxx11::string::append((string *)&local_98); std::__cxx11::string::~string((string *)local_50); plVar4 = (long *)(lStack_c0 + -0x48); if (3 < (ulong)((lStack_c0 - local_c8) / 0x18)) { plVar4 = (long *)(lStack_c0 + -0x18); } lVar6 = *plVar4; } /* try { // try from 001a841a to 001a8429 has its CatchHandler @ 001a84aa */ std::__cxx11::string::append<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,void> ((string *)&local_98,lVar6,lVar5); std:: _Vector_base<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>> ::~_Vector_base((_Vector_base<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>> *)&local_c8); std::_Function_base::~_Function_base((_Function_base *)&local_78); /* try { // try from 001a843c to 001a844f has its CatchHandler @ 001a849b */ std::operator+((char *)&local_c8,(string *)&DAT_001d8f64); psVar1 = local_a0; /* try { // try from 001a8450 to 001a8466 has its CatchHandler @ 001a848e */ std::operator+(local_a0,(char *)&local_c8); std::__cxx11::string::~string((string *)&local_c8); std::__cxx11::string::~string((string *)&local_98); return psVar1; }
38,716
format_literal(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
monkey531[P]llama/common/json-schema-to-grammar.cpp
static std::string format_literal(const std::string & literal) { std::string escaped = replacePattern(literal, GRAMMAR_LITERAL_ESCAPE_RE, [&](const std::smatch & match) { char c = match.str()[0]; return GRAMMAR_LITERAL_ESCAPES.at(c); }); return "\"" + escaped + "\""; }
O3
cpp
format_literal(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movq %rdx, %r14 movq %rsi, %r15 movq %rdi, 0x80(%rsp) xorps %xmm0, %xmm0 leaq 0x60(%rsp), %rcx movaps %xmm0, (%rcx) leaq 0x2ef(%rip), %rax # 0xe1668 movq %rax, 0x18(%rcx) leaq 0x366(%rip), %rax # 0xe16ea movq %rax, 0x10(%rcx) movq %rsp, %r12 movaps %xmm0, 0x10(%r12) movaps %xmm0, (%r12) leaq 0x30(%rsp), %rax movq %rax, -0x10(%rax) movq $0x0, -0x8(%rax) movb $0x0, (%rax) addq %rsi, %r14 leaq 0x763cc(%rip), %r13 # 0x157780 leaq 0x20(%rsp), %rbp leaq 0x40(%rsp), %rbx movq %r15, %rdi movq %r14, %rsi movq %r12, %rdx movq %r13, %rcx xorl %r8d, %r8d callq 0x9392f testb %al, %al je 0xe1498 movq (%rsp), %rax movq 0x8(%rsp), %rcx movq %rcx, %rdx subq %rax, %rdx leaq -0x48(%rcx), %rsi cmpq $0x48, %rdx movq %rax, %rdx cmoveq %rsi, %rdx cmpq %rax, %rcx cmoveq %rsi, %rdx movq (%rdx), %r8 subq 0x18(%rsp), %r8 movq 0x28(%rsp), %rsi movq %rbp, %rdi xorl %edx, %edx movq %r15, %rcx callq 0x1ddf0 cmpq $0x0, 0x70(%rsp) je 0xe1593 movq %rbx, %rdi leaq 0x60(%rsp), %rsi movq %r12, %rdx callq *0x78(%rsp) movq 0x40(%rsp), %rsi movq 0x48(%rsp), %rdx movq %rbp, %rdi callq 0x1d310 movq 0x40(%rsp), %rdi leaq 0x50(%rsp), %rax cmpq %rax, %rdi je 0xe1462 movq 0x50(%rsp), %rsi incq %rsi callq 0x1dc50 movq 0x8(%rsp), %rax movq %rax, %rcx subq (%rsp), %rcx sarq $0x3, %rcx movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB imulq %rdx, %rcx leaq -0x18(%rax), %rdx addq $-0x48, %rax cmpq $0x4, %rcx cmovaeq %rdx, %rax movq (%rax), %r15 jmp 0xe13be leaq 0x20(%rsp), %rdi movq 0x8(%rdi), %rsi subq %r15, %r14 xorl %edx, %edx movq %r15, %rcx movq %r14, %r8 callq 0x1ddf0 movq (%rsp), %rdi testq %rdi, %rdi movq 0x80(%rsp), %rbx je 0xe14cf movq 0x10(%rsp), %rsi subq %rdi, %rsi callq 0x1dc50 movq 0x70(%rsp), %rax testq %rax, %rax je 0xe14e8 leaq 0x60(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax leaq 0x3ab68(%rip), %rsi # 0x11c057 movq %rsp, %rdi leaq 0x20(%rsp), %rdx callq 0x26b0d leaq 0x3ab54(%rip), %rsi # 0x11c057 movq %rsp, %rdi callq 0x1e870 leaq 0x10(%rbx), %rdx movq %rdx, (%rbx) movq (%rax), %rsi movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rsi je 0xe152d movq %rsi, (%rbx) movq (%rcx), %rdx movq %rdx, 0x10(%rbx) jmp 0xe1533 movups (%rcx), %xmm0 movups %xmm0, (%rdx) movq 0x8(%rax), %rdx movq %rdx, 0x8(%rbx) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xe1565 movq 0x10(%rsp), %rsi incq %rsi callq 0x1dc50 movq 0x20(%rsp), %rdi leaq 0x30(%rsp), %rax cmpq %rax, %rdi je 0xe1581 movq 0x30(%rsp), %rsi incq %rsi callq 0x1dc50 addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x1d3e0 jmp 0xe165f movq %rax, %rbx leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xe15c0 movq 0x10(%rsp), %rsi incq %rsi callq 0x1dc50 jmp 0xe15c0 movq %rax, %rbx movq 0x20(%rsp), %rdi leaq 0x30(%rsp), %rax cmpq %rax, %rdi je 0xe1657 movq 0x30(%rsp), %rsi incq %rsi callq 0x1dc50 jmp 0xe1657 jmp 0xe1609 jmp 0xe1609 movq %rax, %rbx movq 0x40(%rsp), %rdi leaq 0x50(%rsp), %rax cmpq %rax, %rdi je 0xe160c movq 0x50(%rsp), %rsi incq %rsi callq 0x1dc50 jmp 0xe160c jmp 0xe1609 movq %rax, %rbx movq 0x20(%rsp), %rdi leaq 0x30(%rsp), %rax cmpq %rax, %rdi je 0xe1628 movq 0x30(%rsp), %rsi incq %rsi callq 0x1dc50 movq (%rsp), %rdi testq %rdi, %rdi je 0xe163e movq 0x10(%rsp), %rsi subq %rdi, %rsi callq 0x1dc50 movq 0x70(%rsp), %rax testq %rax, %rax je 0xe1657 leaq 0x60(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq %rbx, %rdi callq 0x1e660 movq %rax, %rdi callq 0x26531 nop
_ZL14format_literalRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 88h mov r14, rdx mov r15, rsi mov [rsp+0B8h+var_38], rdi xorps xmm0, xmm0 lea rcx, [rsp+0B8h+var_58] movaps xmmword ptr [rcx], xmm0 lea rax, _ZNSt17_Function_handlerIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_13match_resultsIN9__gnu_cxx17__normal_iteratorIPKcS5_EESaINS0_9sub_matchISB_EEEEEEZL14format_literalRKS5_E3$_0E9_M_invokeERKSt9_Any_dataSH_; std::_Function_handler<std::string ()(std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>> const&),format_literal(std::string const&)::$_0>::_M_invoke(std::_Any_data const&,std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>> const&) mov [rcx+18h], rax lea rax, _ZNSt17_Function_handlerIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_13match_resultsIN9__gnu_cxx17__normal_iteratorIPKcS5_EESaINS0_9sub_matchISB_EEEEEEZL14format_literalRKS5_E3$_0E10_M_managerERSt9_Any_dataRKSN_St18_Manager_operation; std::_Function_handler<std::string ()(std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>> const&),format_literal(std::string const&)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov [rcx+10h], rax mov r12, rsp movaps xmmword ptr [r12+10h], xmm0 movaps xmmword ptr [r12], xmm0 lea rax, [rsp+0B8h+var_88] mov [rax-10h], rax mov qword ptr [rax-8], 0 mov byte ptr [rax], 0 add r14, rsi lea r13, _Z25GRAMMAR_LITERAL_ESCAPE_REB5cxx11; GRAMMAR_LITERAL_ESCAPE_RE lea rbp, [rsp+0B8h+var_98] lea rbx, [rsp+0B8h+var_78] loc_E13BE: mov rdi, r15 mov rsi, r14 mov rdx, r12 mov rcx, r13 xor r8d, r8d call _ZNSt8__detail17__regex_algo_implIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESaINS5_9sub_matchISB_EEEcNS5_12regex_traitsIcEELNS_20_RegexExecutorPolicyE0ELb0EEEbT_SI_RNS5_13match_resultsISI_T0_EERKNS5_11basic_regexIT1_T2_EENSt15regex_constants15match_flag_typeE; std::__detail::__regex_algo_impl<__gnu_cxx::__normal_iterator<char const*,std::string>,std::allocator<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>,char,std::regex_traits<char>,(std::__detail::_RegexExecutorPolicy)0,false>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>> &,std::basic_regex<char,std::regex_traits<char>> const&,std::regex_constants::match_flag_type) test al, al jz loc_E1498 mov rax, [rsp+0B8h+var_B8] mov rcx, [rsp+0B8h+var_B0] mov rdx, rcx sub rdx, rax lea rsi, [rcx-48h] cmp rdx, 48h ; 'H' mov rdx, rax cmovz rdx, rsi cmp rcx, rax cmovz rdx, rsi mov r8, [rdx] sub r8, [rsp+0B8h+var_A0] mov rsi, [rsp+0B8h+var_90] mov rdi, rbp xor edx, edx mov rcx, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong) cmp [rsp+0B8h+var_48], 0 jz loc_E1593 mov rdi, rbx lea rsi, [rsp+0B8h+var_58] mov rdx, r12 call [rsp+0B8h+var_40] mov rsi, [rsp+0B8h+var_78] mov rdx, [rsp+0B8h+var_70] mov rdi, rbp call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rdi, [rsp+0B8h+var_78]; void * lea rax, [rsp+0B8h+var_68] cmp rdi, rax jz short loc_E1462 mov rsi, [rsp+0B8h+var_68] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_E1462: mov rax, [rsp+0B8h+var_B0] mov rcx, rax sub rcx, [rsp+0B8h+var_B8] sar rcx, 3 mov rdx, 0AAAAAAAAAAAAAAABh imul rcx, rdx lea rdx, [rax-18h] add rax, 0FFFFFFFFFFFFFFB8h cmp rcx, 4 cmovnb rax, rdx mov r15, [rax] jmp loc_E13BE loc_E1498: lea rdi, [rsp+0B8h+var_98] mov rsi, [rdi+8] sub r14, r15 xor edx, edx mov rcx, r15 mov r8, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong) mov rdi, [rsp+0B8h+var_B8]; void * test rdi, rdi mov rbx, [rsp+0B8h+var_38] jz short loc_E14CF mov rsi, [rsp+0B8h+var_A8] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_E14CF: mov rax, [rsp+0B8h+var_48] test rax, rax jz short loc_E14E8 lea rdi, [rsp+0B8h+var_58] mov rsi, rdi mov edx, 3 call rax loc_E14E8: lea rsi, aName+9; "\"" mov rdi, rsp lea rdx, [rsp+0B8h+var_98] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&) lea rsi, aName+9; "\"" mov rdi, rsp call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea rdx, [rbx+10h] mov [rbx], rdx mov rsi, [rax] mov rcx, rax add rcx, 10h cmp rsi, rcx jz short loc_E152D mov [rbx], rsi mov rdx, [rcx] mov [rbx+10h], rdx jmp short loc_E1533 loc_E152D: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [rdx], xmm0 loc_E1533: mov rdx, [rax+8] mov [rbx+8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 lea rax, [rsp+0B8h+var_A8] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_E1565 mov rsi, [rsp+0B8h+var_A8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_E1565: mov rdi, [rsp+0B8h+var_98]; void * lea rax, [rsp+0B8h+var_88] cmp rdi, rax jz short loc_E1581 mov rsi, [rsp+0B8h+var_88] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_E1581: add rsp, 88h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_E1593: call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void) jmp loc_E165F mov rbx, rax lea rax, [rsp+0B8h+var_A8] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_E15C0 mov rsi, [rsp+0B8h+var_A8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_E15C0 mov rbx, rax loc_E15C0: mov rdi, [rsp+0B8h+var_98]; void * lea rax, [rsp+0B8h+var_88] cmp rdi, rax jz loc_E1657 mov rsi, [rsp+0B8h+var_88] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_E1657 jmp short loc_E1609 jmp short loc_E1609 mov rbx, rax mov rdi, [rsp+0B8h+var_78]; void * lea rax, [rsp+0B8h+var_68] cmp rdi, rax jz short loc_E160C mov rsi, [rsp+0B8h+var_68] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_E160C jmp short $+2 loc_E1609: mov rbx, rax loc_E160C: mov rdi, [rsp+0B8h+var_98]; void * lea rax, [rsp+0B8h+var_88] cmp rdi, rax jz short loc_E1628 mov rsi, [rsp+0B8h+var_88] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_E1628: mov rdi, [rsp+0B8h+var_B8]; void * test rdi, rdi jz short loc_E163E mov rsi, [rsp+0B8h+var_A8] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_E163E: mov rax, [rsp+0B8h+var_48] test rax, rax jz short loc_E1657 lea rdi, [rsp+0B8h+var_58] mov rsi, rdi mov edx, 3 call rax loc_E1657: mov rdi, rbx call __Unwind_Resume loc_E165F: mov rdi, rax call __clang_call_terminate
void format_literal(long long a1, long long a2, long long a3) { long long v3; // r15 long long v4; // r14 _QWORD *v5; // rdx long long *v6; // rax long long v7; // rbx long long v8; // rax _OWORD *v9; // rcx __int128 v10; // [rsp+0h] [rbp-B8h] BYREF __int128 v11; // [rsp+10h] [rbp-A8h] BYREF void *v12; // [rsp+20h] [rbp-98h] BYREF long long v13; // [rsp+28h] [rbp-90h] _QWORD v14[2]; // [rsp+30h] [rbp-88h] BYREF void *v15[2]; // [rsp+40h] [rbp-78h] BYREF long long v16; // [rsp+50h] [rbp-68h] BYREF __int128 v17; // [rsp+60h] [rbp-58h] BYREF long long ( *v18)(); // [rsp+70h] [rbp-48h] long long ( *v19)(); // [rsp+78h] [rbp-40h] long long v20; // [rsp+80h] [rbp-38h] v3 = a2; v20 = a1; v17 = 0LL; v19 = std::_Function_handler<std::string ()(std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>> const&),format_literal(std::string const&)::$_0>::_M_invoke; v18 = std::_Function_handler<std::string ()(std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>> const&),format_literal(std::string const&)::$_0>::_M_manager; v11 = 0LL; v10 = 0LL; v12 = v14; v13 = 0LL; LOBYTE(v14[0]) = 0; v4 = a2 + a3; while ( std::__detail::__regex_algo_impl<__gnu_cxx::__normal_iterator<char const*,std::string>,std::allocator<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>,char,std::regex_traits<char>,(std::__detail::_RegexExecutorPolicy)0,false>( v3, v4, (void **)&v10, (long long)&GRAMMAR_LITERAL_ESCAPE_RE[abi:cxx11], 0) ) { v5 = (_QWORD *)v10; if ( *((_QWORD *)&v10 + 1) - (_QWORD)v10 == 72LL ) v5 = (_QWORD *)(*((_QWORD *)&v10 + 1) - 72LL); if ( *((_QWORD *)&v10 + 1) == (_QWORD)v10 ) v5 = (_QWORD *)(*((_QWORD *)&v10 + 1) - 72LL); std::string::replace(&v12, v13, 0LL, v3, *v5 - *((_QWORD *)&v11 + 1)); if ( !v18 ) std::__throw_bad_function_call(); ((void ( *)(void **, __int128 *, __int128 *))v19)(v15, &v17, &v10); std::string::_M_append(&v12, v15[0], v15[1]); if ( v15[0] != &v16 ) operator delete(v15[0], v16 + 1); v6 = (long long *)(*((_QWORD *)&v10 + 1) - 72LL); if ( 0xAAAAAAAAAAAAAAABLL * ((long long)(*((_QWORD *)&v10 + 1) - v10) >> 3) >= 4 ) v6 = (long long *)(*((_QWORD *)&v10 + 1) - 24LL); v3 = *v6; } std::string::replace(&v12, v13, 0LL, v3, v4 - v3); v7 = v20; if ( (_QWORD)v10 ) operator delete((void *)v10, v11 - v10); if ( v18 ) ((void ( *)(__int128 *, __int128 *, long long))v18)(&v17, &v17, 3LL); std::operator+<char>((long long)&v10, (long long)"\"", &v12); v8 = std::string::append(&v10, "\""); *(_QWORD *)v7 = v7 + 16; v9 = (_OWORD *)(v8 + 16); if ( *(_QWORD *)v8 == v8 + 16 ) { *(_OWORD *)(v7 + 16) = *v9; } else { *(_QWORD *)v7 = *(_QWORD *)v8; *(_QWORD *)(v7 + 16) = *(_QWORD *)v9; } *(_QWORD *)(v7 + 8) = *(_QWORD *)(v8 + 8); *(_QWORD *)v8 = v9; *(_QWORD *)(v8 + 8) = 0LL; *(_BYTE *)(v8 + 16) = 0; if ( (__int128 *)v10 != &v11 ) operator delete((void *)v10, v11 + 1); if ( v12 != v14 ) operator delete(v12, v14[0] + 1LL); }
format_literal: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x88 MOV R14,RDX MOV R15,RSI MOV qword ptr [RSP + 0x80],RDI XORPS XMM0,XMM0 LEA RCX,[RSP + 0x60] MOVAPS xmmword ptr [RCX],XMM0 LEA RAX,[0x1e1668] MOV qword ptr [RCX + 0x18],RAX LEA RAX,[0x1e16ea] MOV qword ptr [RCX + 0x10],RAX MOV R12,RSP MOVAPS xmmword ptr [R12 + 0x10],XMM0 MOVAPS xmmword ptr [R12],XMM0 LEA RAX,[RSP + 0x30] MOV qword ptr [RAX + -0x10],RAX MOV qword ptr [RAX + -0x8],0x0 MOV byte ptr [RAX],0x0 ADD R14,RSI LEA R13,[0x257780] LEA RBP,[RSP + 0x20] LEA RBX,[RSP + 0x40] LAB_001e13be: MOV RDI,R15 MOV RSI,R14 MOV RDX,R12 MOV RCX,R13 XOR R8D,R8D CALL 0x0019392f TEST AL,AL JZ 0x001e1498 MOV RAX,qword ptr [RSP] MOV RCX,qword ptr [RSP + 0x8] MOV RDX,RCX SUB RDX,RAX LEA RSI,[RCX + -0x48] CMP RDX,0x48 MOV RDX,RAX CMOVZ RDX,RSI CMP RCX,RAX CMOVZ RDX,RSI MOV R8,qword ptr [RDX] SUB R8,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP + 0x28] MOV RDI,RBP XOR EDX,EDX MOV RCX,R15 CALL 0x0011ddf0 CMP qword ptr [RSP + 0x70],0x0 JZ 0x001e1593 LAB_001e1425: MOV RDI,RBX LEA RSI,[RSP + 0x60] MOV RDX,R12 CALL qword ptr [RSP + 0x78] MOV RSI,qword ptr [RSP + 0x40] MOV RDX,qword ptr [RSP + 0x48] LAB_001e143e: MOV RDI,RBP CALL 0x0011d310 MOV RDI,qword ptr [RSP + 0x40] LEA RAX,[RSP + 0x50] CMP RDI,RAX JZ 0x001e1462 MOV RSI,qword ptr [RSP + 0x50] INC RSI CALL 0x0011dc50 LAB_001e1462: MOV RAX,qword ptr [RSP + 0x8] MOV RCX,RAX SUB RCX,qword ptr [RSP] SAR RCX,0x3 MOV RDX,-0x5555555555555555 IMUL RCX,RDX LEA RDX,[RAX + -0x18] ADD RAX,-0x48 CMP RCX,0x4 CMOVNC RAX,RDX MOV R15,qword ptr [RAX] JMP 0x001e13be LAB_001e1498: LEA RDI,[RSP + 0x20] MOV RSI,qword ptr [RDI + 0x8] SUB R14,R15 LAB_001e14a4: XOR EDX,EDX MOV RCX,R15 MOV R8,R14 CALL 0x0011ddf0 MOV RDI,qword ptr [RSP] TEST RDI,RDI MOV RBX,qword ptr [RSP + 0x80] JZ 0x001e14cf MOV RSI,qword ptr [RSP + 0x10] SUB RSI,RDI CALL 0x0011dc50 LAB_001e14cf: MOV RAX,qword ptr [RSP + 0x70] TEST RAX,RAX JZ 0x001e14e8 LAB_001e14d9: LEA RDI,[RSP + 0x60] MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_001e14e8: LEA RSI,[0x21c057] MOV RDI,RSP LEA RDX,[RSP + 0x20] CALL 0x00126b0d LAB_001e14fc: LEA RSI,[0x21c057] MOV RDI,RSP CALL 0x0011e870 LEA RDX,[RBX + 0x10] MOV qword ptr [RBX],RDX MOV RSI,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RSI,RCX JZ 0x001e152d MOV qword ptr [RBX],RSI MOV RDX,qword ptr [RCX] MOV qword ptr [RBX + 0x10],RDX JMP 0x001e1533 LAB_001e152d: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [RDX],XMM0 LAB_001e1533: MOV RDX,qword ptr [RAX + 0x8] MOV qword ptr [RBX + 0x8],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LEA RAX,[RSP + 0x10] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001e1565 MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x0011dc50 LAB_001e1565: MOV RDI,qword ptr [RSP + 0x20] LEA RAX,[RSP + 0x30] CMP RDI,RAX JZ 0x001e1581 MOV RSI,qword ptr [RSP + 0x30] INC RSI CALL 0x0011dc50 LAB_001e1581: ADD RSP,0x88 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001e1593: CALL 0x0011d3e0
/* format_literal(std::__cxx11::string const&) */ void format_literal(string *param_1) { string *psVar1; bool bVar2; ulong *puVar3; int8 *puVar4; long *plVar5; long in_RDX; ulong in_RSI; long lVar6; long *local_b8; long lStack_b0; long local_a8 [2]; int1 *local_98; ulong local_90; int1 local_88; int7 uStack_87; long *local_78 [2]; long local_68 [2]; int8 local_58; int8 uStack_50; code *local_48; code *local_40; string *local_38; local_58 = 0; uStack_50 = 0; local_40 = std:: _Function_handler<std::__cxx11::string(std::__cxx11::match_results<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>>const&),format_literal(std::__cxx11::string_const&)::$_0> ::_M_invoke; local_48 = std:: _Function_handler<std::__cxx11::string(std::__cxx11::match_results<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>>const&),format_literal(std::__cxx11::string_const&)::$_0> ::_M_manager; local_a8[0] = 0; local_a8[1] = 0; local_b8 = (long *)0x0; lStack_b0 = 0; local_98 = &local_88; local_90 = 0; local_88 = 0; lVar6 = in_RDX + in_RSI; local_38 = param_1; while( true ) { /* try { // try from 001e13be to 001e1418 has its CatchHandler @ 001e1609 */ bVar2 = std::__detail:: __regex_algo_impl<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>,char,std::__cxx11::regex_traits<char>,(std::__detail::_RegexExecutorPolicy)0,false> (in_RSI,lVar6,&local_b8,GRAMMAR_LITERAL_ESCAPE_RE_abi_cxx11_,0); if (!bVar2) { /* try { // try from 001e14a4 to 001e14b0 has its CatchHandler @ 001e15e2 */ std::__cxx11::string::replace((ulong)&local_98,local_90,(char *)0x0,in_RSI); psVar1 = local_38; if (local_b8 != (long *)0x0) { operator_delete(local_b8,local_a8[0] - (long)local_b8); } if (local_48 != (code *)0x0) { /* try { // try from 001e14d9 to 001e14e7 has its CatchHandler @ 001e1598 */ (*local_48)(&local_58,&local_58,3); } /* try { // try from 001e14e8 to 001e14fb has its CatchHandler @ 001e15bd */ std::operator+((char *)&local_b8,(string *)&DAT_0021c057); /* try { // try from 001e14fc to 001e150a has its CatchHandler @ 001e159d */ puVar4 = (int8 *)std::__cxx11::string::append((char *)&local_b8); *(string **)psVar1 = psVar1 + 0x10; plVar5 = puVar4 + 2; if ((long *)*puVar4 == plVar5) { lVar6 = puVar4[3]; *(long *)(psVar1 + 0x10) = *plVar5; *(long *)(psVar1 + 0x18) = lVar6; } else { *(long **)psVar1 = (long *)*puVar4; *(long *)(psVar1 + 0x10) = *plVar5; } *(int8 *)(psVar1 + 8) = puVar4[1]; *puVar4 = plVar5; puVar4[1] = 0; *(int1 *)(puVar4 + 2) = 0; if (local_b8 != local_a8) { operator_delete(local_b8,local_a8[0] + 1); } if (local_98 != &local_88) { operator_delete(local_98,CONCAT71(uStack_87,local_88) + 1); } return; } std::__cxx11::string::replace((ulong)&local_98,local_90,(char *)0x0,in_RSI); if (local_48 == (code *)0x0) break; /* try { // try from 001e1425 to 001e1433 has its CatchHandler @ 001e1607 */ (*local_40)(local_78,&local_58,&local_b8); /* try { // try from 001e143e to 001e1445 has its CatchHandler @ 001e15e6 */ std::__cxx11::string::_M_append((char *)&local_98,(ulong)local_78[0]); if (local_78[0] != local_68) { operator_delete(local_78[0],local_68[0] + 1); } puVar3 = (ulong *)(lStack_b0 + -0x48); if (3 < (ulong)((lStack_b0 - (long)local_b8 >> 3) * -0x5555555555555555)) { puVar3 = (ulong *)(lStack_b0 + -0x18); } in_RSI = *puVar3; } /* WARNING: Subroutine does not return */ /* try { // try from 001e1593 to 001e1597 has its CatchHandler @ 001e15e4 */ std::__throw_bad_function_call(); }
38,717
init_io_cache_share
eloqsql/mysys/mf_iocache.c
void init_io_cache_share(IO_CACHE *read_cache, IO_CACHE_SHARE *cshare, IO_CACHE *write_cache, uint num_threads) { DBUG_ENTER("init_io_cache_share"); DBUG_PRINT("io_cache_share", ("read_cache: %p share: %p " "write_cache: %p threads: %u", read_cache, cshare, write_cache, num_threads)); DBUG_ASSERT(num_threads > 1); DBUG_ASSERT(read_cache->type == READ_CACHE); DBUG_ASSERT(!write_cache || (write_cache->type == WRITE_CACHE)); mysql_mutex_init(key_IO_CACHE_SHARE_mutex, &cshare->mutex, MY_MUTEX_INIT_FAST); mysql_cond_init(key_IO_CACHE_SHARE_cond, &cshare->cond, 0); mysql_cond_init(key_IO_CACHE_SHARE_cond_writer, &cshare->cond_writer, 0); cshare->running_threads= num_threads; cshare->total_threads= num_threads; cshare->error= 0; /* Initialize. */ cshare->buffer= read_cache->buffer; cshare->read_end= NULL; /* See function comment of lock_io_cache(). */ cshare->pos_in_file= 0; /* See function comment of lock_io_cache(). */ cshare->source_cache= write_cache; /* Can be NULL. */ read_cache->share= cshare; read_cache->read_function= _my_b_cache_read_r; if (write_cache) { write_cache->share= cshare; write_cache->write_function= _my_b_cache_write_r; } DBUG_VOID_RETURN; }
O0
c
init_io_cache_share: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) jmp 0xe0dd9 jmp 0xe0ddb jmp 0xe0ddd jmp 0xe0ddf jmp 0xe0de1 jmp 0xe0de3 jmp 0xe0de5 leaq 0xba17ec(%rip), %rax # 0xc825d8 movl (%rax), %edi movq -0x10(%rbp), %rsi leaq 0xba24f7(%rip), %rdx # 0xc832f0 callq 0xe0090 leaq 0xba181f(%rip), %rax # 0xc82624 movl (%rax), %edi movq -0x10(%rbp), %rsi addq $0x48, %rsi xorl %eax, %eax movl %eax, %edx callq 0xe0ef0 leaq 0xba1809(%rip), %rax # 0xc82628 movl (%rax), %edi movq -0x10(%rbp), %rsi addq $0x80, %rsi xorl %eax, %eax movl %eax, %edx callq 0xe0ef0 movl -0x1c(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, 0xd8(%rax) movl -0x1c(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, 0xdc(%rax) movq -0x10(%rbp), %rax movl $0x0, 0xe0(%rax) movq -0x8(%rbp), %rax movq 0x20(%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0xc8(%rax) movq -0x10(%rbp), %rax movq $0x0, 0xd0(%rax) movq -0x10(%rbp), %rax movq $0x0, 0xb8(%rax) movq -0x18(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0xc0(%rax) movq -0x10(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x98(%rax) movq -0x8(%rbp), %rax leaq 0x89(%rip), %rcx # 0xe0f40 movq %rcx, 0xa0(%rax) cmpq $0x0, -0x18(%rbp) je 0xe0ee6 movq -0x10(%rbp), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x98(%rax) movq -0x18(%rbp), %rax leaq 0x491(%rip), %rcx # 0xe1370 movq %rcx, 0xa8(%rax) jmp 0xe0ee8 jmp 0xe0eea addq $0x20, %rsp popq %rbp retq
init_io_cache_share: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_1C], ecx jmp short $+2 loc_E0DD9: jmp short $+2 loc_E0DDB: jmp short $+2 loc_E0DDD: jmp short $+2 loc_E0DDF: jmp short $+2 loc_E0DE1: jmp short $+2 loc_E0DE3: jmp short $+2 loc_E0DE5: lea rax, key_IO_CACHE_SHARE_mutex mov edi, [rax] mov rsi, [rbp+var_10] lea rdx, my_fast_mutexattr call inline_mysql_mutex_init_7 lea rax, key_IO_CACHE_SHARE_cond mov edi, [rax] mov rsi, [rbp+var_10] add rsi, 48h ; 'H' xor eax, eax mov edx, eax call inline_mysql_cond_init_3 lea rax, key_IO_CACHE_SHARE_cond_writer mov edi, [rax] mov rsi, [rbp+var_10] add rsi, 80h xor eax, eax mov edx, eax call inline_mysql_cond_init_3 mov ecx, [rbp+var_1C] mov rax, [rbp+var_10] mov [rax+0D8h], ecx mov ecx, [rbp+var_1C] mov rax, [rbp+var_10] mov [rax+0DCh], ecx mov rax, [rbp+var_10] mov dword ptr [rax+0E0h], 0 mov rax, [rbp+var_8] mov rcx, [rax+20h] mov rax, [rbp+var_10] mov [rax+0C8h], rcx mov rax, [rbp+var_10] mov qword ptr [rax+0D0h], 0 mov rax, [rbp+var_10] mov qword ptr [rax+0B8h], 0 mov rcx, [rbp+var_18] mov rax, [rbp+var_10] mov [rax+0C0h], rcx mov rcx, [rbp+var_10] mov rax, [rbp+var_8] mov [rax+98h], rcx mov rax, [rbp+var_8] lea rcx, _my_b_cache_read_r mov [rax+0A0h], rcx cmp [rbp+var_18], 0 jz short loc_E0EE6 mov rcx, [rbp+var_10] mov rax, [rbp+var_18] mov [rax+98h], rcx mov rax, [rbp+var_18] lea rcx, _my_b_cache_write_r mov [rax+0A8h], rcx loc_E0EE6: jmp short $+2 loc_E0EE8: jmp short $+2 loc_E0EEA: add rsp, 20h pop rbp retn
_QWORD * init_io_cache_share(_QWORD *a1, long long a2, _QWORD *a3, int a4) { _QWORD *result; // rax inline_mysql_mutex_init_7(key_IO_CACHE_SHARE_mutex, (_QWORD *)a2, (long long)&my_fast_mutexattr); inline_mysql_cond_init_3(key_IO_CACHE_SHARE_cond, a2 + 72, 0LL); inline_mysql_cond_init_3(key_IO_CACHE_SHARE_cond_writer, a2 + 128, 0LL); *(_DWORD *)(a2 + 216) = a4; *(_DWORD *)(a2 + 220) = a4; *(_DWORD *)(a2 + 224) = 0; *(_QWORD *)(a2 + 200) = a1[4]; *(_QWORD *)(a2 + 208) = 0LL; *(_QWORD *)(a2 + 184) = 0LL; *(_QWORD *)(a2 + 192) = a3; a1[19] = a2; result = a1; a1[20] = my_b_cache_read_r; if ( a3 ) { a3[19] = a2; result = a3; a3[21] = my_b_cache_write_r; } return result; }
init_io_cache_share: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV dword ptr [RBP + -0x1c],ECX JMP 0x001e0dd9 LAB_001e0dd9: JMP 0x001e0ddb LAB_001e0ddb: JMP 0x001e0ddd LAB_001e0ddd: JMP 0x001e0ddf LAB_001e0ddf: JMP 0x001e0de1 LAB_001e0de1: JMP 0x001e0de3 LAB_001e0de3: JMP 0x001e0de5 LAB_001e0de5: LEA RAX,[0xd825d8] MOV EDI,dword ptr [RAX] MOV RSI,qword ptr [RBP + -0x10] LEA RDX,[0xd832f0] CALL 0x001e0090 LEA RAX,[0xd82624] MOV EDI,dword ptr [RAX] MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0x48 XOR EAX,EAX MOV EDX,EAX CALL 0x001e0ef0 LEA RAX,[0xd82628] MOV EDI,dword ptr [RAX] MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0x80 XOR EAX,EAX MOV EDX,EAX CALL 0x001e0ef0 MOV ECX,dword ptr [RBP + -0x1c] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0xd8],ECX MOV ECX,dword ptr [RBP + -0x1c] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0xdc],ECX MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0xe0],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x20] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0xc8],RCX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0xd0],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0xb8],0x0 MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0xc0],RCX MOV RCX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x98],RCX MOV RAX,qword ptr [RBP + -0x8] LEA RCX,[0x1e0f40] MOV qword ptr [RAX + 0xa0],RCX CMP qword ptr [RBP + -0x18],0x0 JZ 0x001e0ee6 MOV RCX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x98],RCX MOV RAX,qword ptr [RBP + -0x18] LEA RCX,[0x1e1370] MOV qword ptr [RAX + 0xa8],RCX LAB_001e0ee6: JMP 0x001e0ee8 LAB_001e0ee8: JMP 0x001e0eea LAB_001e0eea: ADD RSP,0x20 POP RBP RET
void init_io_cache_share(long param_1,long param_2,long param_3,int4 param_4) { inline_mysql_mutex_init(key_IO_CACHE_SHARE_mutex,param_2,&my_fast_mutexattr); inline_mysql_cond_init(key_IO_CACHE_SHARE_cond,param_2 + 0x48,0); inline_mysql_cond_init(key_IO_CACHE_SHARE_cond_writer,param_2 + 0x80,0); *(int4 *)(param_2 + 0xd8) = param_4; *(int4 *)(param_2 + 0xdc) = param_4; *(int4 *)(param_2 + 0xe0) = 0; *(int8 *)(param_2 + 200) = *(int8 *)(param_1 + 0x20); *(int8 *)(param_2 + 0xd0) = 0; *(int8 *)(param_2 + 0xb8) = 0; *(long *)(param_2 + 0xc0) = param_3; *(long *)(param_1 + 0x98) = param_2; *(code **)(param_1 + 0xa0) = _my_b_cache_read_r; if (param_3 != 0) { *(long *)(param_3 + 0x98) = param_2; *(code **)(param_3 + 0xa8) = _my_b_cache_write_r; } return; }
38,718
minja::simple_function(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::Value&)> const&)
llama.cpp/common/minja/minja.hpp
static Value simple_function(const std::string & fn_name, const std::vector<std::string> & params, const std::function<Value(const std::shared_ptr<Context> &, Value & args)> & fn) { std::map<std::string, size_t> named_positions; for (size_t i = 0, n = params.size(); i < n; i++) named_positions[params[i]] = i; return Value::callable([=](const std::shared_ptr<Context> & context, ArgumentsValue & args) -> Value { auto args_obj = Value::object(); std::vector<bool> provided_args(params.size()); for (size_t i = 0, n = args.args.size(); i < n; i++) { auto & arg = args.args[i]; if (i < params.size()) { args_obj.set(params[i], arg); provided_args[i] = true; } else { throw std::runtime_error("Too many positional params for " + fn_name); } } for (auto & [name, value] : args.kwargs) { auto named_pos_it = named_positions.find(name); if (named_pos_it == named_positions.end()) { throw std::runtime_error("Unknown argument " + name + " for function " + fn_name); } provided_args[named_pos_it->second] = true; args_obj.set(name, value); } return fn(context, args_obj); }); }
O3
cpp
minja::simple_function(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::Value&)> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xe8, %rsp movq %rcx, 0x28(%rsp) movq %rdx, %r15 movq %rsi, %r14 movq %rdi, 0x20(%rsp) leaq 0xc0(%rsp), %rax movl $0x0, (%rax) xorl %ecx, %ecx movq %rcx, 0x8(%rax) movq %rax, 0x10(%rax) movq %rax, 0x18(%rax) movq %rcx, 0x20(%rax) movq 0x8(%rdx), %rbp subq (%rdx), %rbp je 0x54d6e sarq $0x5, %rbp cmpq $0x1, %rbp adcq $0x0, %rbp xorl %ebx, %ebx leaq 0xb8(%rsp), %r13 xorl %r12d, %r12d movq (%r15), %rsi addq %rbx, %rsi movq %r13, %rdi callq 0x7844e movq %r12, (%rax) incq %r12 addq $0x20, %rbx cmpq %r12, %rbp jne 0x54d51 leaq 0x30(%rsp), %rdi movq %r15, %rsi callq 0x393c6 leaq 0x48(%rsp), %rdi leaq 0x58(%rsp), %r13 movq %r13, -0x10(%r13) movq (%r14), %rsi movq 0x8(%r14), %rdx addq %rsi, %rdx callq 0x40a2c leaq 0x68(%rsp), %r14 leaq 0xb8(%rsp), %rsi movq %r14, %rdi callq 0x78840 leaq 0x98(%rsp), %r15 movq %r15, %rdi movq 0x28(%rsp), %rsi callq 0x784e2 xorps %xmm0, %xmm0 movaps %xmm0, 0x10(%rsp) movaps %xmm0, (%rsp) movl $0x88, %edi callq 0x1c160 movq %rax, %r12 leaq 0x30(%rsp), %rsi movq %rax, %rdi callq 0x393c6 leaq 0x18(%r12), %rdi leaq 0x28(%r12), %rbp movq %rbp, 0x18(%r12) movq 0x48(%rsp), %rsi movq 0x50(%rsp), %rdx addq %rsi, %rdx callq 0x40a2c leaq 0x40(%r12), %rax movq 0x78(%rsp), %rdx testq %rdx, %rdx je 0x54e55 leaq 0x70(%rsp), %rdi movl (%rdi), %ecx movq %rdx, 0x48(%r12) movq 0x10(%rdi), %r8 movq 0x18(%rdi), %rsi movq %rax, 0x8(%rdx) leaq 0x90(%rsp), %rdx movq (%rdx), %rax movq %rax, 0x60(%r12) movq $0x0, -0x18(%rdx) movq %rdi, -0x10(%rdx) movq %rdi, -0x8(%rdx) movq %r8, %rax jmp 0x54e68 movq $0x0, 0x48(%r12) leaq 0x60(%r12), %rdx xorl %ecx, %ecx movq %rax, %rsi movq %rax, 0x50(%r12) movq %rsi, 0x58(%r12) movq $0x0, (%rdx) movl %ecx, 0x40(%r12) leaq 0x68(%r12), %rdi movq %r15, %rsi callq 0x784e2 movq %rsp, %rsi movq %r12, (%rsi) leaq 0x1c8(%rip), %rax # 0x55060 movq %rax, 0x18(%rsi) leaq 0x7cb(%rip), %rax # 0x5566e movq %rax, 0x10(%rsi) movq 0x20(%rsp), %rdi callq 0x72a46 movq 0x10(%rsp), %rax testq %rax, %rax je 0x54ec8 movq %rsp, %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq 0xa8(%rsp), %rax testq %rax, %rax je 0x54ee2 movq %r15, %rdi movq %r15, %rsi movl $0x3, %edx callq *%rax movq %r14, %rdi callq 0x78aa2 movq 0x48(%rsp), %rdi cmpq %r13, %rdi je 0x54f01 movq 0x58(%rsp), %rsi incq %rsi callq 0x1c110 leaq 0x30(%rsp), %rdi callq 0x2a79a leaq 0xb8(%rsp), %rdi callq 0x78aa2 addq $0xe8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x54fa9 jmp 0x54fa9 movq %rax, %rbx movq 0x10(%rsp), %rax testq %rax, %rax je 0x54fb4 movq %rsp, %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax jmp 0x54fb4 jmp 0x54fa9 movq %rax, %rbx movq %r12, %rdi addq $0x38, %rdi callq 0x78aa2 movq 0x18(%r12), %rdi cmpq %rbp, %rdi je 0x54f76 movq (%rbp), %rsi incq %rsi callq 0x1c110 jmp 0x54f76 movq %rax, %rbx movq %r12, %rdi callq 0x2a79a jmp 0x54f83 movq %rax, %rbx movl $0x88, %esi movq %r12, %rdi callq 0x1c110 movq 0x10(%rsp), %rax testq %rax, %rax je 0x54fb4 movq %rsp, %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax jmp 0x54fb4 movq %rax, %rdi callq 0x2a81a movq %rax, %rbx leaq 0x30(%rsp), %rdi callq 0x55012 jmp 0x54ffd movq %rax, %rbx movq %r14, %rdi callq 0x78aa2 jmp 0x54fd0 movq %rax, %rbx movq 0x48(%rsp), %rdi cmpq %r13, %rdi je 0x54fec movq 0x58(%rsp), %rsi incq %rsi callq 0x1c110 jmp 0x54fec movq %rax, %rbx leaq 0x30(%rsp), %rdi callq 0x2a79a jmp 0x54ffd jmp 0x54ffa movq %rax, %rbx leaq 0xb8(%rsp), %rdi callq 0x78aa2 movq %rbx, %rdi callq 0x1c7d0
_ZN5minjaL15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS5_SaIS5_EERKSt8functionIFNS_5ValueERKSt10shared_ptrINS_7ContextEERSE_EE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0E8h mov [rsp+118h+var_F0], rcx mov r15, rdx mov r14, rsi mov [rsp+118h+var_F8], rdi lea rax, [rsp+118h+var_58] mov dword ptr [rax], 0 xor ecx, ecx mov [rax+8], rcx mov [rax+10h], rax mov [rax+18h], rax mov [rax+20h], rcx mov rbp, [rdx+8] sub rbp, [rdx] jz short loc_54D6E sar rbp, 5 cmp rbp, 1 adc rbp, 0 xor ebx, ebx lea r13, [rsp+118h+var_60] xor r12d, r12d loc_54D51: mov rsi, [r15] add rsi, rbx mov rdi, r13 call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmSt4lessIS5_ESaISt4pairIKS5_mEEEixERS9_; std::map<std::string,ulong>::operator[](std::string const&) mov [rax], r12 inc r12 add rbx, 20h ; ' ' cmp rbp, r12 jnz short loc_54D51 loc_54D6E: lea rdi, [rsp+118h+var_E8] mov rsi, r15 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&) lea rdi, [rsp+118h+var_D0] lea r13, [rsp+118h+var_C0] mov [r13-10h], r13 mov rsi, [r14] mov rdx, [r14+8] add rdx, rsi call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea r14, [rsp+118h+var_B0] lea rsi, [rsp+118h+var_60] mov rdi, r14 call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EEC2ERKSE_; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::_Rb_tree(std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>> const&) lea r15, [rsp+118h+var_80] mov rdi, r15 mov rsi, [rsp+118h+var_F0] call _ZNSt8functionIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERS1_EEC2ERKS9_; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function(std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&) xorps xmm0, xmm0 movaps [rsp+118h+var_108], xmm0 movaps [rsp+118h+var_118], xmm0 mov edi, 88h; unsigned __int64 call __Znwm; operator new(ulong) mov r12, rax lea rsi, [rsp+118h+var_E8] mov rdi, rax call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&) lea rdi, [r12+18h] lea rbp, [r12+28h] mov [r12+18h], rbp mov rsi, [rsp+118h+var_D0] mov rdx, [rsp+118h+var_C8] add rdx, rsi call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea rax, [r12+40h] mov rdx, [rsp+118h+var_A0] test rdx, rdx jz short loc_54E55 lea rdi, [rsp+118h+var_A8] mov ecx, [rdi] mov [r12+48h], rdx mov r8, [rdi+10h] mov rsi, [rdi+18h] mov [rdx+8], rax lea rdx, [rsp+118h+var_88] mov rax, [rdx] mov [r12+60h], rax mov qword ptr [rdx-18h], 0 mov [rdx-10h], rdi mov [rdx-8], rdi mov rax, r8 jmp short loc_54E68 loc_54E55: mov qword ptr [r12+48h], 0 lea rdx, [r12+60h] xor ecx, ecx mov rsi, rax loc_54E68: mov [r12+50h], rax mov [r12+58h], rsi mov qword ptr [rdx], 0 mov [r12+40h], ecx lea rdi, [r12+68h] mov rsi, r15 call _ZNSt8functionIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERS1_EEC2ERKS9_; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function(std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&) mov rsi, rsp mov [rsi], r12 lea rax, _ZNSt17_Function_handlerIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERNS0_14ArgumentsValueEEZNS0_L15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorISF_SaISF_EERKSt8functionIFS1_S6_RS1_EEE3$_0E9_M_invokeERKSt9_Any_dataS6_S8_; std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_invoke(std::_Any_data const&,std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &) mov [rsi+18h], rax lea rax, _ZNSt17_Function_handlerIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERNS0_14ArgumentsValueEEZNS0_L15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorISF_SaISF_EERKSt8functionIFS1_S6_RS1_EEE3$_0E10_M_managerERSt9_Any_dataRKSV_St18_Manager_operation; std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov [rsi+10h], rax mov rdi, [rsp+118h+var_F8] call _ZN5minja5Value8callableERKSt8functionIFS0_RKSt10shared_ptrINS_7ContextEERNS_14ArgumentsValueEEE; minja::Value::callable(std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)> const&) mov rax, qword ptr [rsp+118h+var_108] test rax, rax jz short loc_54EC8 mov rdi, rsp mov rsi, rdi mov edx, 3 call rax loc_54EC8: mov rax, [rsp+118h+var_70] test rax, rax jz short loc_54EE2 mov rdi, r15 mov rsi, r15 mov edx, 3 call rax loc_54EE2: mov rdi, r14 call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree() mov rdi, [rsp+118h+var_D0]; void * cmp rdi, r13 jz short loc_54F01 mov rsi, [rsp+118h+var_C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_54F01: lea rdi, [rsp+118h+var_E8] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() lea rdi, [rsp+118h+var_60] call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree() add rsp, 0E8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_54FA9 jmp short loc_54FA9 mov rbx, rax mov rax, qword ptr [rsp+118h+var_108] test rax, rax jz short loc_54FB4 mov rdi, rsp mov rsi, rdi mov edx, 3 call rax jmp short loc_54FB4 jmp short loc_54FA9 mov rbx, rax mov rdi, r12 add rdi, 38h ; '8' call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree() mov rdi, [r12+18h]; void * cmp rdi, rbp jz short loc_54F76 mov rsi, [rbp+0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_54F76 mov rbx, rax loc_54F76: mov rdi, r12 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() jmp short loc_54F83 mov rbx, rax loc_54F83: mov esi, 88h; unsigned __int64 mov rdi, r12; void * call __ZdlPvm; operator delete(void *,ulong) mov rax, qword ptr [rsp+118h+var_108] test rax, rax jz short loc_54FB4 mov rdi, rsp mov rsi, rdi mov edx, 3 call rax jmp short loc_54FB4 loc_54FA9: mov rdi, rax call __clang_call_terminate mov rbx, rax loc_54FB4: lea rdi, [rsp+118h+var_E8] call _ZZN5minjaL15simple_functionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS5_SaIS5_EERKSt8functionIFNS_5ValueERKSt10shared_ptrINS_7ContextEERSE_EEEN3$_0D2Ev; minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0::~$_0() jmp short loc_54FFD mov rbx, rax mov rdi, r14 call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree() jmp short loc_54FD0 mov rbx, rax loc_54FD0: mov rdi, [rsp+118h+var_D0]; void * cmp rdi, r13 jz short loc_54FEC mov rsi, [rsp+118h+var_C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_54FEC mov rbx, rax loc_54FEC: lea rdi, [rsp+118h+var_E8] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() jmp short loc_54FFD jmp short $+2 loc_54FFA: mov rbx, rax loc_54FFD: lea rdi, [rsp+118h+var_60] call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,ulong>,std::_Select1st<std::pair<std::string const,ulong>>,std::less<std::string>,std::allocator<std::pair<std::string const,ulong>>>::~_Rb_tree() mov rdi, rbx call __Unwind_Resume
long long minja::simple_function(long long a1, long long a2, _QWORD *a3, long long a4) { long long v5; // rbp long long v6; // rbp long long v7; // rbx long long v8; // r12 long long v9; // r12 long long v10; // rax long long v11; // rdx int v12; // ecx int *v13; // r8 int *v14; // rsi long long *v15; // rdx __int128 v17; // [rsp+0h] [rbp-118h] BYREF __int128 v18; // [rsp+10h] [rbp-108h] long long v19; // [rsp+20h] [rbp-F8h] long long v20; // [rsp+28h] [rbp-F0h] _QWORD v21[3]; // [rsp+30h] [rbp-E8h] BYREF void *v22[2]; // [rsp+48h] [rbp-D0h] BYREF _QWORD v23[2]; // [rsp+58h] [rbp-C0h] BYREF _BYTE v24[8]; // [rsp+68h] [rbp-B0h] BYREF int v25; // [rsp+70h] [rbp-A8h] BYREF long long v26; // [rsp+78h] [rbp-A0h] int *v27; // [rsp+80h] [rbp-98h] int *v28; // [rsp+88h] [rbp-90h] long long v29; // [rsp+90h] [rbp-88h] BYREF _BYTE v30[16]; // [rsp+98h] [rbp-80h] BYREF void ( *v31)(_BYTE *, _BYTE *, long long); // [rsp+A8h] [rbp-70h] _BYTE v32[8]; // [rsp+B8h] [rbp-60h] BYREF int v33; // [rsp+C0h] [rbp-58h] BYREF long long v34; // [rsp+C8h] [rbp-50h] int *v35; // [rsp+D0h] [rbp-48h] int *v36; // [rsp+D8h] [rbp-40h] long long v37; // [rsp+E0h] [rbp-38h] v20 = a4; v19 = a1; v33 = 0; v34 = 0LL; v35 = &v33; v36 = &v33; v37 = 0LL; v5 = a3[1] - *a3; if ( v5 ) { v6 = (v5 >> 5 == 0) + (v5 >> 5); v7 = 0LL; v8 = 0LL; do { *(_QWORD *)std::map<std::string,unsigned long>::operator[](v32, v7 + *a3) = v8++; v7 += 32LL; } while ( v6 != v8 ); } std::vector<std::string>::vector((long long)v21, a3); v22[0] = v23; std::string::_M_construct<char *>((long long)v22, *(_BYTE **)a2, *(_QWORD *)a2 + *(_QWORD *)(a2 + 8)); std::_Rb_tree<std::string,std::pair<std::string const,unsigned long>,std::_Select1st<std::pair<std::string const,unsigned long>>,std::less<std::string>,std::allocator<std::pair<std::string const,unsigned long>>>::_Rb_tree( v24, v32); std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function(v30, v20); v18 = 0LL; v17 = 0LL; v9 = operator new(0x88uLL); std::vector<std::string>::vector(v9, v21); *(_QWORD *)(v9 + 24) = v9 + 40; std::string::_M_construct<char *>(v9 + 24, (_BYTE *)v22[0], (long long)v22[0] + (unsigned long long)v22[1]); v10 = v9 + 64; v11 = v26; if ( v26 ) { v12 = v25; *(_QWORD *)(v9 + 72) = v26; v13 = v27; v14 = v28; *(_QWORD *)(v11 + 8) = v10; v15 = &v29; *(_QWORD *)(v9 + 96) = v29; v26 = 0LL; v27 = &v25; v28 = &v25; v10 = (long long)v13; } else { *(_QWORD *)(v9 + 72) = 0LL; v15 = (long long *)(v9 + 96); v12 = 0; v14 = (int *)(v9 + 64); } *(_QWORD *)(v9 + 80) = v10; *(_QWORD *)(v9 + 88) = v14; *v15 = 0LL; *(_DWORD *)(v9 + 64) = v12; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)>::function(v9 + 104, v30); *(_QWORD *)&v17 = v9; *((_QWORD *)&v18 + 1) = std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_invoke; *(_QWORD *)&v18 = std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_manager; minja::Value::callable(v19); if ( std::_Function_handler<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &),minja::simple_function(std::string const&,std::vector<std::string> const&,std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::Value&)> const&)::$_0>::_M_manager ) ((void ( *)(__int128 *, __int128 *, long long))v18)(&v17, &v17, 3LL); if ( v31 ) v31(v30, v30, 3LL); std::_Rb_tree<std::string,std::pair<std::string const,unsigned long>,std::_Select1st<std::pair<std::string const,unsigned long>>,std::less<std::string>,std::allocator<std::pair<std::string const,unsigned long>>>::~_Rb_tree(v24); if ( v22[0] != v23 ) operator delete(v22[0], v23[0] + 1LL); std::vector<std::string>::~vector((long long)v21); return std::_Rb_tree<std::string,std::pair<std::string const,unsigned long>,std::_Select1st<std::pair<std::string const,unsigned long>>,std::less<std::string>,std::allocator<std::pair<std::string const,unsigned long>>>::~_Rb_tree(v32); }
simple_function: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xe8 MOV qword ptr [RSP + 0x28],RCX MOV R15,RDX MOV R14,RSI MOV qword ptr [RSP + 0x20],RDI LEA RAX,[RSP + 0xc0] MOV dword ptr [RAX],0x0 XOR ECX,ECX MOV qword ptr [RAX + 0x8],RCX MOV qword ptr [RAX + 0x10],RAX MOV qword ptr [RAX + 0x18],RAX MOV qword ptr [RAX + 0x20],RCX MOV RBP,qword ptr [RDX + 0x8] SUB RBP,qword ptr [RDX] JZ 0x00154d6e SAR RBP,0x5 CMP RBP,0x1 ADC RBP,0x0 XOR EBX,EBX LEA R13,[RSP + 0xb8] XOR R12D,R12D LAB_00154d51: MOV RSI,qword ptr [R15] ADD RSI,RBX LAB_00154d57: MOV RDI,R13 CALL 0x0017844e MOV qword ptr [RAX],R12 INC R12 ADD RBX,0x20 CMP RBP,R12 JNZ 0x00154d51 LAB_00154d6e: LEA RDI,[RSP + 0x30] MOV RSI,R15 CALL 0x001393c6 LEA RDI,[RSP + 0x48] LEA R13,[RSP + 0x58] MOV qword ptr [R13 + -0x10],R13 MOV RSI,qword ptr [R14] MOV RDX,qword ptr [R14 + 0x8] ADD RDX,RSI LAB_00154d93: CALL 0x00140a2c LEA R14,[RSP + 0x68] LAB_00154d9d: LEA RSI,[RSP + 0xb8] MOV RDI,R14 CALL 0x00178840 LEA R15,[RSP + 0x98] LAB_00154db5: MOV RDI,R15 MOV RSI,qword ptr [RSP + 0x28] CALL 0x001784e2 XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP + 0x10],XMM0 MOVAPS xmmword ptr [RSP],XMM0 LAB_00154dce: MOV EDI,0x88 CALL 0x0011c160 LAB_00154dd8: MOV R12,RAX LEA RSI,[RSP + 0x30] MOV RDI,RAX CALL 0x001393c6 LEA RDI,[R12 + 0x18] LEA RBP,[R12 + 0x28] MOV qword ptr [R12 + 0x18],RBP MOV RSI,qword ptr [RSP + 0x48] MOV RDX,qword ptr [RSP + 0x50] ADD RDX,RSI LAB_00154e04: CALL 0x00140a2c LEA RAX,[R12 + 0x40] MOV RDX,qword ptr [RSP + 0x78] TEST RDX,RDX JZ 0x00154e55 LEA RDI,[RSP + 0x70] MOV ECX,dword ptr [RDI] MOV qword ptr [R12 + 0x48],RDX MOV R8,qword ptr [RDI + 0x10] MOV RSI,qword ptr [RDI + 0x18] MOV qword ptr [RDX + 0x8],RAX LEA RDX,[RSP + 0x90] MOV RAX,qword ptr [RDX] MOV qword ptr [R12 + 0x60],RAX MOV qword ptr [RDX + -0x18],0x0 MOV qword ptr [RDX + -0x10],RDI MOV qword ptr [RDX + -0x8],RDI MOV RAX,R8 JMP 0x00154e68 LAB_00154e55: MOV qword ptr [R12 + 0x48],0x0 LEA RDX,[R12 + 0x60] XOR ECX,ECX MOV RSI,RAX LAB_00154e68: MOV qword ptr [R12 + 0x50],RAX MOV qword ptr [R12 + 0x58],RSI MOV qword ptr [RDX],0x0 MOV dword ptr [R12 + 0x40],ECX LEA RDI,[R12 + 0x68] LAB_00154e83: MOV RSI,R15 CALL 0x001784e2 MOV RSI,RSP MOV qword ptr [RSI],R12 LEA RAX,[0x155060] MOV qword ptr [RSI + 0x18],RAX LEA RAX,[0x15566e] MOV qword ptr [RSI + 0x10],RAX LAB_00154ea7: MOV RDI,qword ptr [RSP + 0x20] CALL 0x00172a46 MOV RAX,qword ptr [RSP + 0x10] TEST RAX,RAX JZ 0x00154ec8 LAB_00154ebb: MOV RDI,RSP MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_00154ec8: MOV RAX,qword ptr [RSP + 0xa8] TEST RAX,RAX JZ 0x00154ee2 LAB_00154ed5: MOV RDI,R15 MOV RSI,R15 MOV EDX,0x3 CALL RAX LAB_00154ee2: MOV RDI,R14 CALL 0x00178aa2 MOV RDI,qword ptr [RSP + 0x48] CMP RDI,R13 JZ 0x00154f01 MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x0011c110 LAB_00154f01: LEA RDI,[RSP + 0x30] CALL 0x0012a79a LEA RDI,[RSP + 0xb8] CALL 0x00178aa2 ADD RSP,0xe8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* minja::simple_function(std::__cxx11::string const&, std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > > const&, std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::Value&)> const&) */ void __thiscall minja::simple_function(minja *this,string *param_1,vector *param_2,function *param_3) { long *plVar1; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *this_00; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *pvVar2; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *pvVar3; long lVar4; long lVar5; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *pvVar6; long lVar7; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_118; int8 uStack_110; code *local_108; code *pcStack_100; minja *local_f8; function *local_f0; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_e8 [24]; long *local_d0; long local_c8; long local_c0 [2]; _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>> local_b0 [8]; int4 local_a8 [2]; long local_a0; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_98; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_90; int8 local_88; function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)> local_80 [16]; code *local_70; map<std::__cxx11::string,unsigned_long,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>> local_60 [8]; int4 local_58 [2]; int8 local_50; int4 *local_48; int4 *local_40; int8 local_38; local_48 = local_58; local_58[0] = 0; local_50 = 0; local_38 = 0; local_f8 = this; local_f0 = param_3; local_40 = local_48; if (*(long *)(param_2 + 8) - *(long *)param_2 != 0) { lVar5 = *(long *)(param_2 + 8) - *(long *)param_2 >> 5; lVar4 = 0; lVar7 = 0; do { /* try { // try from 00154d57 to 00154d5e has its CatchHandler @ 00154ffa */ plVar1 = (long *)std:: map<std::__cxx11::string,unsigned_long,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>> ::operator[](local_60,(string *)(*(long *)param_2 + lVar4)); *plVar1 = lVar7; lVar7 = lVar7 + 1; lVar4 = lVar4 + 0x20; } while (lVar5 + (ulong)(lVar5 == 0) != lVar7); } /* try { // try from 00154d6e to 00154d7a has its CatchHandler @ 00154ff8 */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector(local_e8,param_2); local_d0 = local_c0; /* try { // try from 00154d93 to 00154d97 has its CatchHandler @ 00154fe9 */ std::__cxx11::string::_M_construct<char*> (&local_d0,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1); /* try { // try from 00154d9d to 00154dac has its CatchHandler @ 00154fcd */ std:: _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>> ::_Rb_tree(local_b0,(_Rb_tree *)local_60); /* try { // try from 00154db5 to 00154dc1 has its CatchHandler @ 00154fc0 */ std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)>::function (local_80,local_f0); local_108 = (code *)0x0; pcStack_100 = (code *)0x0; local_118 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)0x0; uStack_110 = 0; /* try { // try from 00154dce to 00154dd7 has its CatchHandler @ 00154fb1 */ this_00 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)operator_new(0x88); /* try { // try from 00154dd8 to 00154de7 has its CatchHandler @ 00154f80 */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector (this_00,(vector *)local_e8); *(vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> **)(this_00 + 0x18) = this_00 + 0x28; /* try { // try from 00154e04 to 00154e08 has its CatchHandler @ 00154f73 */ std::__cxx11::string::_M_construct<char*>(this_00 + 0x18,local_d0,local_c8 + (long)local_d0); pvVar2 = this_00 + 0x40; if (local_a0 == 0) { *(int8 *)(this_00 + 0x48) = 0; pvVar3 = this_00 + 0x60; local_a8[0] = 0; pvVar6 = pvVar2; } else { *(long *)(this_00 + 0x48) = local_a0; *(vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> **)(local_a0 + 8) = pvVar2; pvVar3 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_88; *(int8 *)(this_00 + 0x60) = local_88; local_a0 = 0; pvVar2 = local_98; pvVar6 = local_90; local_98 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_a8; local_90 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_a8; } *(vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> **)(this_00 + 0x50) = pvVar2; *(vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> **)(this_00 + 0x58) = pvVar6; *(int8 *)pvVar3 = 0; *(int4 *)(this_00 + 0x40) = local_a8[0]; /* try { // try from 00154e83 to 00154e8a has its CatchHandler @ 00154f4c */ std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)>::function ((function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)> *) (this_00 + 0x68),local_80); pcStack_100 = std:: _Function_handler<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&),minja::simple_function(std::__cxx11::string_const&,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&,std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)>const&)::$_0> ::_M_invoke; local_108 = std:: _Function_handler<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&),minja::simple_function(std::__cxx11::string_const&,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&,std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::Value&)>const&)::$_0> ::_M_manager; local_118 = this_00; /* try { // try from 00154ea7 to 00154eb0 has its CatchHandler @ 00154f2e */ Value::callable((Value *)local_f8,(function *)&local_118); if (local_108 != (code *)0x0) { /* try { // try from 00154ebb to 00154ec7 has its CatchHandler @ 00154f2c */ (*local_108)(&local_118,&local_118,3); } if (local_70 != (code *)0x0) { /* try { // try from 00154ed5 to 00154ee1 has its CatchHandler @ 00154f2a */ (*local_70)(local_80,local_80,3); } std:: _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>> ::~_Rb_tree(local_b0); if (local_d0 != local_c0) { operator_delete(local_d0,local_c0[0] + 1); } std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector(local_e8); std:: _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>> ::~_Rb_tree((_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::_Select1st<std::pair<std::__cxx11::string_const,unsigned_long>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>> *)local_60); return; }
38,719
js_string_codePointAt
bluesky950520[P]quickjs/quickjs.c
static JSValue js_string_codePointAt(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSValue val, ret; JSString *p; int idx, c; val = JS_ToStringCheckObject(ctx, this_val); if (JS_IsException(val)) return val; p = JS_VALUE_GET_STRING(val); if (JS_ToInt32Sat(ctx, &idx, argv[0])) { JS_FreeValue(ctx, val); return JS_EXCEPTION; } if (idx < 0 || idx >= p->len) { ret = JS_UNDEFINED; } else { c = string_getc(p, &idx); ret = js_int32(c); } JS_FreeValue(ctx, val); return ret; }
O2
c
js_string_codePointAt: pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x10, %rsp movq %r8, %r12 movq %rdi, %r15 callq 0x3de40 movq %rax, %rbx movq %rdx, %r14 cmpl $0x6, %r14d je 0x6b2a5 movq (%r12), %rdx movq 0x8(%r12), %rcx leaq 0xc(%rsp), %rsi movq %r15, %rdi callq 0x24eed testl %eax, %eax je 0x6b2b9 pushq $0x6 popq %r12 xorl %r13d, %r13d movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx callq 0x1bbce movq %r13, %rbx movq %r12, %r14 movq %rbx, %rax movq %r14, %rdx addq $0x10, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movl 0xc(%rsp), %eax pushq $0x3 popq %r12 testl %eax, %eax js 0x6b28e movl $0x7fffffff, %ecx # imm = 0x7FFFFFFF andl 0x4(%rbx), %ecx cmpl %ecx, %eax jae 0x6b28e leaq 0xc(%rsp), %rsi movq %rbx, %rdi callq 0x455d8 movl %eax, %r13d xorl %r12d, %r12d jmp 0x6b291
js_string_codePointAt: push r15 push r14 push r13 push r12 push rbx sub rsp, 10h mov r12, r8 mov r15, rdi call JS_ToStringCheckObject mov rbx, rax mov r14, rdx cmp r14d, 6 jz short loc_6B2A5 mov rdx, [r12] mov rcx, [r12+8] lea rsi, [rsp+38h+var_2C] mov rdi, r15 call JS_ToInt32Sat test eax, eax jz short loc_6B2B9 push 6 pop r12 loc_6B28E: xor r13d, r13d loc_6B291: mov rdi, r15 mov rsi, rbx mov rdx, r14 call JS_FreeValue mov rbx, r13 mov r14, r12 loc_6B2A5: mov rax, rbx mov rdx, r14 add rsp, 10h pop rbx pop r12 pop r13 pop r14 pop r15 retn loc_6B2B9: mov eax, [rsp+38h+var_2C] push 3 pop r12 test eax, eax js short loc_6B28E mov ecx, 7FFFFFFFh and ecx, [rbx+4] cmp eax, ecx jnb short loc_6B28E lea rsi, [rsp+38h+var_2C] mov rdi, rbx call string_getc mov r13d, eax xor r12d, r12d jmp short loc_6B291
long long js_string_codePointAt( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { long long v15; // rbx long long v16; // rdx long long v17; // r14 long long v18; // r13 int v20[11]; // [rsp+Ch] [rbp-2Ch] BYREF v15 = JS_ToStringCheckObject(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14); v17 = v16; if ( (_DWORD)v16 != 6 ) { if ( (unsigned int)JS_ToInt32Sat(a1, (long long)v20, *(_DWORD **)a5, *(_QWORD *)(a5 + 8)) || v20[0] < 0 || v20[0] >= (*(_DWORD *)(v15 + 4) & 0x7FFFFFFFu) ) { v18 = 0LL; } else { v18 = (unsigned int)string_getc(v15, v20); } JS_FreeValue(a1, v15, v17); return v18; } return v15; }
js_string_codePointAt: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x10 MOV R12,R8 MOV R15,RDI CALL 0x0013de40 MOV RBX,RAX MOV R14,RDX CMP R14D,0x6 JZ 0x0016b2a5 MOV RDX,qword ptr [R12] MOV RCX,qword ptr [R12 + 0x8] LEA RSI,[RSP + 0xc] MOV RDI,R15 CALL 0x00124eed TEST EAX,EAX JZ 0x0016b2b9 PUSH 0x6 POP R12 LAB_0016b28e: XOR R13D,R13D LAB_0016b291: MOV RDI,R15 MOV RSI,RBX MOV RDX,R14 CALL 0x0011bbce MOV RBX,R13 MOV R14,R12 LAB_0016b2a5: MOV RAX,RBX MOV RDX,R14 ADD RSP,0x10 POP RBX POP R12 POP R13 POP R14 POP R15 RET LAB_0016b2b9: MOV EAX,dword ptr [RSP + 0xc] PUSH 0x3 POP R12 TEST EAX,EAX JS 0x0016b28e MOV ECX,0x7fffffff AND ECX,dword ptr [RBX + 0x4] CMP EAX,ECX JNC 0x0016b28e LEA RSI,[RSP + 0xc] MOV RDI,RBX CALL 0x001455d8 MOV R13D,EAX XOR R12D,R12D JMP 0x0016b291
int1 [16] js_string_codePointAt(int8 param_1) { int1 auVar1 [16]; int iVar2; uint uVar3; long lVar4; int8 *in_R8; ulong uVar5; int1 auVar6 [16]; int8 uStack_40; uint local_2c; auVar6 = JS_ToStringCheckObject(); lVar4 = auVar6._0_8_; if (auVar6._8_4_ == 6) { return auVar6; } iVar2 = JS_ToInt32Sat(param_1,&local_2c,*in_R8,in_R8[1]); if (iVar2 == 0) { uStack_40 = 3; if ((-1 < (int)local_2c) && (uStack_40 = 3, local_2c < (*(uint *)(lVar4 + 4) & 0x7fffffff))) { uVar3 = string_getc(lVar4,&local_2c); uVar5 = (ulong)uVar3; uStack_40 = 0; goto LAB_0016b291; } } else { uStack_40 = 6; } uVar5 = 0; LAB_0016b291: auVar1._8_8_ = uStack_40; auVar1._0_8_ = uVar5; JS_FreeValue(param_1,lVar4,auVar6._8_8_); return auVar1; }
38,720
my_strnxfrm_8bit_bin
eloqsql/strings/ctype-bin.c
static size_t my_strnxfrm_8bit_bin(CHARSET_INFO *cs, uchar * dst, size_t dstlen, uint nweights, const uchar *src, size_t srclen, uint flags) { set_if_smaller(srclen, dstlen); set_if_smaller(srclen, nweights); if (srclen && dst != src) memcpy(dst, src, srclen); return my_strxfrm_pad_desc_and_reverse(cs, dst, dst + srclen, dst + dstlen, (uint)(nweights - srclen), flags, 0); }
O0
c
my_strnxfrm_8bit_bin: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movl 0x10(%rbp), %eax movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) movq -0x30(%rbp), %rax cmpq -0x18(%rbp), %rax jbe 0x40064 movq -0x18(%rbp), %rax movq %rax, -0x30(%rbp) jmp 0x40066 jmp 0x40068 movq -0x30(%rbp), %rax movl -0x1c(%rbp), %ecx cmpq %rcx, %rax jbe 0x4007b movl -0x1c(%rbp), %eax movq %rax, -0x30(%rbp) jmp 0x4007d cmpq $0x0, -0x30(%rbp) je 0x4009f movq -0x10(%rbp), %rax cmpq -0x28(%rbp), %rax je 0x4009f movq -0x10(%rbp), %rdi movq -0x28(%rbp), %rsi movq -0x30(%rbp), %rdx callq 0x25270 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x10(%rbp), %rdx addq -0x30(%rbp), %rdx movq -0x10(%rbp), %rcx addq -0x18(%rbp), %rcx movl -0x1c(%rbp), %eax subq -0x30(%rbp), %rax movl %eax, %r8d movl 0x10(%rbp), %r9d xorl %eax, %eax movl $0x0, (%rsp) callq 0x4bde0 addq $0x40, %rsp popq %rbp retq nopl (%rax)
my_strnxfrm_8bit_bin: push rbp mov rbp, rsp sub rsp, 40h mov eax, [rbp+arg_0] mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_1C], ecx mov [rbp+var_28], r8 mov [rbp+var_30], r9 mov rax, [rbp+var_30] cmp rax, [rbp+var_18] jbe short loc_40064 mov rax, [rbp+var_18] mov [rbp+var_30], rax loc_40064: jmp short $+2 loc_40066: jmp short $+2 loc_40068: mov rax, [rbp+var_30] mov ecx, [rbp+var_1C] cmp rax, rcx jbe short loc_4007B mov eax, [rbp+var_1C] mov [rbp+var_30], rax loc_4007B: jmp short $+2 loc_4007D: cmp [rbp+var_30], 0 jz short loc_4009F mov rax, [rbp+var_10] cmp rax, [rbp+var_28] jz short loc_4009F mov rdi, [rbp+var_10] mov rsi, [rbp+var_28] mov rdx, [rbp+var_30] call _memcpy loc_4009F: mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_10] add rdx, [rbp+var_30] mov rcx, [rbp+var_10] add rcx, [rbp+var_18] mov eax, [rbp+var_1C] sub rax, [rbp+var_30] mov r8d, eax mov r9d, [rbp+arg_0] xor eax, eax mov [rsp+40h+var_40], 0 call my_strxfrm_pad_desc_and_reverse add rsp, 40h pop rbp retn
long long my_strnxfrm_8bit_bin( int a1, long long a2, unsigned long long a3, unsigned int a4, long long a5, unsigned long long a6, int a7) { unsigned long long v8; // [rsp+10h] [rbp-30h] int v10; // [rsp+28h] [rbp-18h] v10 = a3; v8 = a6; if ( a6 > a3 ) v8 = a3; if ( v8 > a4 ) v8 = a4; if ( v8 && a2 != a5 ) memcpy(a2, a5, v8); return my_strxfrm_pad_desc_and_reverse(a1, a2, (int)v8 + (int)a2, v10 + (int)a2, a4 - (unsigned int)v8, a7, 0); }
my_strnxfrm_8bit_bin: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV EAX,dword ptr [RBP + 0x10] MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV dword ptr [RBP + -0x1c],ECX MOV qword ptr [RBP + -0x28],R8 MOV qword ptr [RBP + -0x30],R9 MOV RAX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RBP + -0x18] JBE 0x00140064 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x30],RAX LAB_00140064: JMP 0x00140066 LAB_00140066: JMP 0x00140068 LAB_00140068: MOV RAX,qword ptr [RBP + -0x30] MOV ECX,dword ptr [RBP + -0x1c] CMP RAX,RCX JBE 0x0014007b MOV EAX,dword ptr [RBP + -0x1c] MOV qword ptr [RBP + -0x30],RAX LAB_0014007b: JMP 0x0014007d LAB_0014007d: CMP qword ptr [RBP + -0x30],0x0 JZ 0x0014009f MOV RAX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RBP + -0x28] JZ 0x0014009f MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x28] MOV RDX,qword ptr [RBP + -0x30] CALL 0x00125270 LAB_0014009f: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x10] ADD RDX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x10] ADD RCX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RBP + -0x1c] SUB RAX,qword ptr [RBP + -0x30] MOV R8D,EAX MOV R9D,dword ptr [RBP + 0x10] XOR EAX,EAX MOV dword ptr [RSP],0x0 CALL 0x0014bde0 ADD RSP,0x40 POP RBP RET
void my_strnxfrm_8bit_bin (int8 param_1,void *param_2,ulong param_3,uint param_4,void *param_5, ulong param_6,int4 param_7) { int8 local_38; local_38 = param_6; if (param_3 < param_6) { local_38 = param_3; } if (param_4 < local_38) { local_38 = (ulong)param_4; } if ((local_38 != 0) && (param_2 != param_5)) { memcpy(param_2,param_5,local_38); } my_strxfrm_pad_desc_and_reverse (param_1,param_2,(long)param_2 + local_38,(long)param_2 + param_3, param_4 - (int)local_38,param_7,0); return; }
38,721
my_strnxfrm_8bit_bin
eloqsql/strings/ctype-bin.c
static size_t my_strnxfrm_8bit_bin(CHARSET_INFO *cs, uchar * dst, size_t dstlen, uint nweights, const uchar *src, size_t srclen, uint flags) { set_if_smaller(srclen, dstlen); set_if_smaller(srclen, nweights); if (srclen && dst != src) memcpy(dst, src, srclen); return my_strxfrm_pad_desc_and_reverse(cs, dst, dst + srclen, dst + dstlen, (uint)(nweights - srclen), flags, 0); }
O3
c
my_strnxfrm_8bit_bin: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %r9, %r13 movl %ecx, %ebx movq %rdx, %r14 movq %rsi, %r12 movq %rdi, %r15 movl 0x10(%rbp), %r9d cmpq %rdx, %r13 cmovaeq %rdx, %r13 movl %ecx, %eax cmpq %rax, %r13 cmovaeq %rax, %r13 testq %r13, %r13 sete %al cmpq %r8, %rsi sete %cl orb %al, %cl jne 0x34c7a movq %r12, %rdi movq %r8, %rsi movq %r13, %rdx callq 0x242a0 movl 0x10(%rbp), %r9d leaq (%r12,%r13), %rdx addq %r12, %r14 subl %r13d, %ebx movl $0x0, (%rsp) movq %r15, %rdi movq %r12, %rsi movq %r14, %rcx movl %ebx, %r8d callq 0x3cff0 addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_strnxfrm_8bit_bin: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r13, r9 mov ebx, ecx mov r14, rdx mov r12, rsi mov r15, rdi mov r9d, [rbp+arg_0] cmp r13, rdx cmovnb r13, rdx mov eax, ecx cmp r13, rax cmovnb r13, rax test r13, r13 setz al cmp rsi, r8 setz cl or cl, al jnz short loc_34C7A mov rdi, r12 mov rsi, r8 mov rdx, r13 call _memcpy mov r9d, [rbp+arg_0] loc_34C7A: lea rdx, [r12+r13] add r14, r12 sub ebx, r13d mov [rsp+30h+var_30], 0 mov rdi, r15 mov rsi, r12 mov rcx, r14 mov r8d, ebx call my_strxfrm_pad_desc_and_reverse add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long my_strnxfrm_8bit_bin( int a1, long long a2, unsigned long long a3, unsigned int a4, long long a5, unsigned long long a6, int a7) { int v9; // r14d int v10; // r9d v9 = a3; v10 = a7; if ( a6 >= a3 ) a6 = a3; if ( a6 >= a4 ) a6 = a4; if ( a6 != 0 && a2 != a5 ) { memcpy(a2, a5, a6); v10 = a7; } return my_strxfrm_pad_desc_and_reverse(a1, a2, (int)a2 + (int)a6, (int)a2 + v9, a4 - (unsigned int)a6, v10, 0); }
my_strnxfrm_8bit_bin: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R13,R9 MOV EBX,ECX MOV R14,RDX MOV R12,RSI MOV R15,RDI MOV R9D,dword ptr [RBP + 0x10] CMP R13,RDX CMOVNC R13,RDX MOV EAX,ECX CMP R13,RAX CMOVNC R13,RAX TEST R13,R13 SETZ AL CMP RSI,R8 SETZ CL OR CL,AL JNZ 0x00134c7a MOV RDI,R12 MOV RSI,R8 MOV RDX,R13 CALL 0x001242a0 MOV R9D,dword ptr [RBP + 0x10] LAB_00134c7a: LEA RDX,[R12 + R13*0x1] ADD R14,R12 SUB EBX,R13D MOV dword ptr [RSP],0x0 MOV RDI,R15 MOV RSI,R12 MOV RCX,R14 MOV R8D,EBX CALL 0x0013cff0 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void my_strnxfrm_8bit_bin (int8 param_1,void *param_2,ulong param_3,uint param_4,void *param_5, ulong param_6,int4 param_7) { int8 in_RAX; uint uVar1; uVar1 = (uint)((ulong)in_RAX >> 0x20); if (param_3 <= param_6) { param_6 = param_3; } if (param_4 <= param_6) { param_6 = (ulong)param_4; } if (param_2 != param_5 && param_6 != 0) { memcpy(param_2,param_5,param_6); } my_strxfrm_pad_desc_and_reverse (param_1,param_2,(long)param_2 + param_6,param_3 + (long)param_2,param_4 - (int)param_6, param_7,(ulong)uVar1 << 0x20); return; }
38,722
gguf_kv::get_ne() const
monkey531[P]llama/ggml/src/gguf.cpp
size_t get_ne() const { if (type == GGUF_TYPE_STRING) { const size_t ne = data_string.size(); GGML_ASSERT(is_array || ne == 1); return ne; } const size_t type_size = gguf_type_size(type); GGML_ASSERT(data.size() % type_size == 0); const size_t ne = data.size() / type_size; GGML_ASSERT(is_array || ne == 1); return ne; }
O0
cpp
gguf_kv::get_ne() const: subq $0x38, %rsp movq %rdi, 0x28(%rsp) movq 0x28(%rsp), %rax movq %rax, 0x8(%rsp) cmpl $0x8, 0x24(%rax) jne 0x94322 movq 0x8(%rsp), %rdi addq $0x40, %rdi callq 0x471c0 movq %rax, %rcx movq 0x8(%rsp), %rax movq %rcx, 0x20(%rsp) testb $0x1, 0x20(%rax) jne 0x94313 cmpq $0x1, 0x20(%rsp) je 0x94313 leaq 0x2f718(%rip), %rdi # 0xc3a11 movl $0xab, %esi leaq 0x202fc(%rip), %rdx # 0xb4601 leaq 0x2fd95(%rip), %rcx # 0xc40a1 movb $0x0, %al callq 0x46770 movq 0x20(%rsp), %rax movq %rax, 0x30(%rsp) jmp 0x943cf movq 0x8(%rsp), %rax movl 0x24(%rax), %edi callq 0x471f0 movq 0x8(%rsp), %rdi movq %rax, 0x18(%rsp) addq $0x28, %rdi callq 0x47380 xorl %ecx, %ecx movl %ecx, %edx divq 0x18(%rsp) cmpq $0x0, %rdx je 0x94372 leaq 0x2f6b9(%rip), %rdi # 0xc3a11 movl $0xaf, %esi leaq 0x2029d(%rip), %rdx # 0xb4601 leaq 0x2fbe3(%rip), %rcx # 0xc3f4e movb $0x0, %al callq 0x46770 movq 0x8(%rsp), %rdi addq $0x28, %rdi callq 0x47380 xorl %ecx, %ecx movl %ecx, %edx divq 0x18(%rsp) movq %rax, %rcx movq 0x8(%rsp), %rax movq %rcx, 0x10(%rsp) testb $0x1, 0x20(%rax) jne 0x943c5 cmpq $0x1, 0x10(%rsp) je 0x943c5 leaq 0x2f666(%rip), %rdi # 0xc3a11 movl $0xb1, %esi leaq 0x2024a(%rip), %rdx # 0xb4601 leaq 0x2fce3(%rip), %rcx # 0xc40a1 movb $0x0, %al callq 0x46770 movq 0x10(%rsp), %rax movq %rax, 0x30(%rsp) movq 0x30(%rsp), %rax addq $0x38, %rsp retq nopl (%rax)
_ZNK7gguf_kv6get_neEv: sub rsp, 38h mov [rsp+38h+var_10], rdi mov rax, [rsp+38h+var_10] mov [rsp+38h+var_30], rax cmp dword ptr [rax+24h], 8 jnz short loc_94322 mov rdi, [rsp+38h+var_30] add rdi, 40h ; '@' call __ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv; std::vector<std::string>::size(void) mov rcx, rax mov rax, [rsp+38h+var_30] mov [rsp+38h+var_18], rcx test byte ptr [rax+20h], 1 jnz short loc_94313 cmp [rsp+38h+var_18], 1 jz short loc_94313 lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"... mov esi, 0ABh lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aIsArrayNe1; "is_array || ne == 1" mov al, 0 call _ggml_abort loc_94313: mov rax, [rsp+38h+var_18] mov [rsp+38h+var_8], rax jmp loc_943CF loc_94322: mov rax, [rsp+38h+var_30] mov edi, [rax+24h] call __Z14gguf_type_size9gguf_type; gguf_type_size(gguf_type) mov rdi, [rsp+38h+var_30] mov [rsp+38h+var_20], rax add rdi, 28h ; '(' call __ZNKSt6vectorIaSaIaEE4sizeEv; std::vector<signed char>::size(void) xor ecx, ecx mov edx, ecx div [rsp+38h+var_20] cmp rdx, 0 jz short loc_94372 lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"... mov esi, 0AFh lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aCtxKvKeyIdData+10h; "data.size() % type_size == 0" mov al, 0 call _ggml_abort loc_94372: mov rdi, [rsp+38h+var_30] add rdi, 28h ; '(' call __ZNKSt6vectorIaSaIaEE4sizeEv; std::vector<signed char>::size(void) xor ecx, ecx mov edx, ecx div [rsp+38h+var_20] mov rcx, rax mov rax, [rsp+38h+var_30] mov [rsp+38h+var_28], rcx test byte ptr [rax+20h], 1 jnz short loc_943C5 cmp [rsp+38h+var_28], 1 jz short loc_943C5 lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"... mov esi, 0B1h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aIsArrayNe1; "is_array || ne == 1" mov al, 0 call _ggml_abort loc_943C5: mov rax, [rsp+38h+var_28] mov [rsp+38h+var_8], rax loc_943CF: mov rax, [rsp+38h+var_8] add rsp, 38h retn
unsigned long long gguf_kv::get_ne(gguf_kv *this) { long long v1; // rcx unsigned long long v2; // rcx unsigned long long v4; // [rsp+18h] [rbp-20h] if ( *((_DWORD *)this + 9) == 8 ) { v1 = std::vector<std::string>::size((char *)this + 64); if ( (*((_BYTE *)this + 32) & 1) == 0 && v1 != 1 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/ggml/src/gguf.cpp", 171, (long long)"GGML_ASSERT(%s) failed", "is_array || ne == 1"); return v1; } else { v4 = gguf_type_size(*((_DWORD *)this + 9)); if ( std::vector<signed char>::size((char *)this + 40) % v4 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/ggml/src/gguf.cpp", 175, (long long)"GGML_ASSERT(%s) failed", "data.size() % type_size == 0"); v2 = std::vector<signed char>::size((char *)this + 40) / v4; if ( (*((_BYTE *)this + 32) & 1) == 0 && v2 != 1 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/ggml/src/gguf.cpp", 177, (long long)"GGML_ASSERT(%s) failed", "is_array || ne == 1"); return v2; } }
get_ne: SUB RSP,0x38 MOV qword ptr [RSP + 0x28],RDI MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x8],RAX CMP dword ptr [RAX + 0x24],0x8 JNZ 0x00194322 MOV RDI,qword ptr [RSP + 0x8] ADD RDI,0x40 CALL 0x001471c0 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x20],RCX TEST byte ptr [RAX + 0x20],0x1 JNZ 0x00194313 CMP qword ptr [RSP + 0x20],0x1 JZ 0x00194313 LEA RDI,[0x1c3a11] MOV ESI,0xab LEA RDX,[0x1b4601] LEA RCX,[0x1c40a1] MOV AL,0x0 CALL 0x00146770 LAB_00194313: MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x30],RAX JMP 0x001943cf LAB_00194322: MOV RAX,qword ptr [RSP + 0x8] MOV EDI,dword ptr [RAX + 0x24] CALL 0x001471f0 MOV RDI,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x18],RAX ADD RDI,0x28 CALL 0x00147380 XOR ECX,ECX MOV EDX,ECX DIV qword ptr [RSP + 0x18] CMP RDX,0x0 JZ 0x00194372 LEA RDI,[0x1c3a11] MOV ESI,0xaf LEA RDX,[0x1b4601] LEA RCX,[0x1c3f4e] MOV AL,0x0 CALL 0x00146770 LAB_00194372: MOV RDI,qword ptr [RSP + 0x8] ADD RDI,0x28 CALL 0x00147380 XOR ECX,ECX MOV EDX,ECX DIV qword ptr [RSP + 0x18] MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x10],RCX TEST byte ptr [RAX + 0x20],0x1 JNZ 0x001943c5 CMP qword ptr [RSP + 0x10],0x1 JZ 0x001943c5 LEA RDI,[0x1c3a11] MOV ESI,0xb1 LEA RDX,[0x1b4601] LEA RCX,[0x1c40a1] MOV AL,0x0 CALL 0x00146770 LAB_001943c5: MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x30],RAX LAB_001943cf: MOV RAX,qword ptr [RSP + 0x30] ADD RSP,0x38 RET
/* gguf_kv::get_ne() const */ ulong __thiscall gguf_kv::get_ne(gguf_kv *this) { ulong uVar1; ulong uVar2; ulong local_8; if (*(int *)(this + 0x24) == 8) { local_8 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::size ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *) (this + 0x40)); if ((((byte)this[0x20] & 1) == 0) && (local_8 != 1)) { ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/ggml/src/gguf.cpp",0xab, "GGML_ASSERT(%s) failed","is_array || ne == 1"); } } else { uVar1 = gguf_type_size(*(int4 *)(this + 0x24)); uVar2 = std::vector<signed_char,std::allocator<signed_char>>::size ((vector<signed_char,std::allocator<signed_char>> *)(this + 0x28)); if (uVar2 % uVar1 != 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/ggml/src/gguf.cpp",0xaf, "GGML_ASSERT(%s) failed"); } local_8 = std::vector<signed_char,std::allocator<signed_char>>::size ((vector<signed_char,std::allocator<signed_char>> *)(this + 0x28)); local_8 = local_8 / uVar1; if ((((byte)this[0x20] & 1) == 0) && (local_8 != 1)) { ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/ggml/src/gguf.cpp",0xb1, "GGML_ASSERT(%s) failed","is_array || ne == 1"); } } return local_8; }
38,723
UpdateMusicStream
csit-sgu[P]mit-game-2025-team-tyler/Libraries/raylib/src/raudio.c
void UpdateMusicStream(Music music) { if (music.stream.buffer == NULL) return; ma_mutex_lock(&AUDIO.System.lock); unsigned int subBufferSizeInFrames = music.stream.buffer->sizeInFrames/2; // On first call of this function we lazily pre-allocated a temp buffer to read audio files/memory data in int frameSize = music.stream.channels*music.stream.sampleSize/8; unsigned int pcmSize = subBufferSizeInFrames*frameSize; if (AUDIO.System.pcmBufferSize < pcmSize) { RL_FREE(AUDIO.System.pcmBuffer); AUDIO.System.pcmBuffer = RL_CALLOC(1, pcmSize); AUDIO.System.pcmBufferSize = pcmSize; } // Check both sub-buffers to check if they require refilling for (int i = 0; i < 2; i++) { if (!music.stream.buffer->isSubBufferProcessed[i]) continue; // No refilling required, move to next sub-buffer unsigned int framesLeft = music.frameCount - music.stream.buffer->framesProcessed; // Frames left to be processed unsigned int framesToStream = 0; // Total frames to be streamed if ((framesLeft >= subBufferSizeInFrames) || music.looping) framesToStream = subBufferSizeInFrames; else framesToStream = framesLeft; int frameCountStillNeeded = framesToStream; int frameCountReadTotal = 0; switch (music.ctxType) { #if defined(SUPPORT_FILEFORMAT_WAV) case MUSIC_AUDIO_WAV: { if (music.stream.sampleSize == 16) { while (true) { int frameCountRead = (int)drwav_read_pcm_frames_s16((drwav *)music.ctxData, frameCountStillNeeded, (short *)((char *)AUDIO.System.pcmBuffer + frameCountReadTotal*frameSize)); frameCountReadTotal += frameCountRead; frameCountStillNeeded -= frameCountRead; if (frameCountStillNeeded == 0) break; else drwav_seek_to_first_pcm_frame((drwav *)music.ctxData); } } else if (music.stream.sampleSize == 32) { while (true) { int frameCountRead = (int)drwav_read_pcm_frames_f32((drwav *)music.ctxData, frameCountStillNeeded, (float *)((char *)AUDIO.System.pcmBuffer + frameCountReadTotal*frameSize)); frameCountReadTotal += frameCountRead; frameCountStillNeeded -= frameCountRead; if (frameCountStillNeeded == 0) break; else drwav_seek_to_first_pcm_frame((drwav *)music.ctxData); } } } break; #endif #if defined(SUPPORT_FILEFORMAT_OGG) case MUSIC_AUDIO_OGG: { while (true) { int frameCountRead = stb_vorbis_get_samples_short_interleaved((stb_vorbis *)music.ctxData, music.stream.channels, (short *)((char *)AUDIO.System.pcmBuffer + frameCountReadTotal*frameSize), frameCountStillNeeded*music.stream.channels); frameCountReadTotal += frameCountRead; frameCountStillNeeded -= frameCountRead; if (frameCountStillNeeded == 0) break; else stb_vorbis_seek_start((stb_vorbis *)music.ctxData); } } break; #endif #if defined(SUPPORT_FILEFORMAT_MP3) case MUSIC_AUDIO_MP3: { while (true) { int frameCountRead = (int)drmp3_read_pcm_frames_f32((drmp3 *)music.ctxData, frameCountStillNeeded, (float *)((char *)AUDIO.System.pcmBuffer + frameCountReadTotal*frameSize)); frameCountReadTotal += frameCountRead; frameCountStillNeeded -= frameCountRead; if (frameCountStillNeeded == 0) break; else drmp3_seek_to_start_of_stream((drmp3 *)music.ctxData); } } break; #endif #if defined(SUPPORT_FILEFORMAT_QOA) case MUSIC_AUDIO_QOA: { unsigned int frameCountRead = qoaplay_decode((qoaplay_desc *)music.ctxData, (float *)AUDIO.System.pcmBuffer, framesToStream); frameCountReadTotal += frameCountRead; /* while (true) { int frameCountRead = (int)qoaplay_decode((qoaplay_desc *)music.ctxData, (float *)((char *)AUDIO.System.pcmBuffer + frameCountReadTotal*frameSize), frameCountStillNeeded); frameCountReadTotal += frameCountRead; frameCountStillNeeded -= frameCountRead; if (frameCountStillNeeded == 0) break; else qoaplay_rewind((qoaplay_desc *)music.ctxData); } */ } break; #endif #if defined(SUPPORT_FILEFORMAT_FLAC) case MUSIC_AUDIO_FLAC: { while (true) { int frameCountRead = (int)drflac_read_pcm_frames_s16((drflac *)music.ctxData, frameCountStillNeeded, (short *)((char *)AUDIO.System.pcmBuffer + frameCountReadTotal*frameSize)); frameCountReadTotal += frameCountRead; frameCountStillNeeded -= frameCountRead; if (frameCountStillNeeded == 0) break; else drflac__seek_to_first_frame((drflac *)music.ctxData); } } break; #endif #if defined(SUPPORT_FILEFORMAT_XM) case MUSIC_MODULE_XM: { // NOTE: Internally we consider 2 channels generation, so sampleCount/2 if (AUDIO_DEVICE_FORMAT == ma_format_f32) jar_xm_generate_samples((jar_xm_context_t *)music.ctxData, (float *)AUDIO.System.pcmBuffer, framesToStream); else if (AUDIO_DEVICE_FORMAT == ma_format_s16) jar_xm_generate_samples_16bit((jar_xm_context_t *)music.ctxData, (short *)AUDIO.System.pcmBuffer, framesToStream); else if (AUDIO_DEVICE_FORMAT == ma_format_u8) jar_xm_generate_samples_8bit((jar_xm_context_t *)music.ctxData, (char *)AUDIO.System.pcmBuffer, framesToStream); //jar_xm_reset((jar_xm_context_t *)music.ctxData); } break; #endif #if defined(SUPPORT_FILEFORMAT_MOD) case MUSIC_MODULE_MOD: { // NOTE: 3rd parameter (nbsample) specify the number of stereo 16bits samples you want, so sampleCount/2 jar_mod_fillbuffer((jar_mod_context_t *)music.ctxData, (short *)AUDIO.System.pcmBuffer, framesToStream, 0); //jar_mod_seek_start((jar_mod_context_t *)music.ctxData); } break; #endif default: break; } UpdateAudioStreamInLockedState(music.stream, AUDIO.System.pcmBuffer, framesToStream); music.stream.buffer->framesProcessed = music.stream.buffer->framesProcessed%music.frameCount; if (framesLeft <= subBufferSizeInFrames) { if (!music.looping) { ma_mutex_unlock(&AUDIO.System.lock); // Streaming is ending, we filled latest frames from input StopMusicStream(music); return; } } } ma_mutex_unlock(&AUDIO.System.lock); }
O2
c
UpdateMusicStream: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq 0x90(%rsp), %r15 testq %r15, %r15 je 0x3cb4e leaq 0x90(%rsp), %rbx leaq 0xe828d(%rip), %rdi # 0x124b48 callq 0x97c0 movl 0x160(%r15), %r12d shrl %r12d movl 0x14(%rbx), %r13d movl 0x18(%rbx), %ebx movl %r13d, 0x30(%rsp) imull %ebx, %r13d shrl $0x3, %r13d movl %r13d, %r14d imull %r12d, %r14d cmpq %r14, 0xe828c(%rip) # 0x124b78 jae 0x3c913 movq 0xe828b(%rip), %rdi # 0x124b80 callq 0x9640 pushq $0x1 popq %rdi movq %r14, %rsi callq 0x9320 movq %rax, 0xe8274(%rip) # 0x124b80 movq %r14, 0xe8265(%rip) # 0x124b78 leaq 0x90(%rsp), %rax movl 0x20(%rax), %ecx movb 0x24(%rax), %dl movl 0x28(%rax), %esi movq 0x30(%rax), %r14 xorl %eax, %eax decl %esi movq %rsi, 0x40(%rsp) movq %r15, 0x48(%rsp) movl %r12d, 0x38(%rsp) movl %ecx, 0x34(%rsp) movb %dl, 0x2f(%rsp) cmpq $0x2, %rax je 0x3cb34 cmpb $0x1, 0x15c(%r15,%rax) jne 0x3caf1 movq %rax, 0x50(%rsp) subl 0x168(%r15), %ecx testb $0x1, %dl movl %ecx, %ebp cmovnel %r12d, %ebp movl %ecx, 0x3c(%rsp) cmpl %r12d, %ecx cmovael %r12d, %ebp cmpl $0x6, 0x40(%rsp) ja 0x3ca94 movq 0x40(%rsp), %rax leaq 0x78eb5(%rip), %rcx # 0xb5848 movslq (%rcx,%rax,4), %rax addq %rcx, %rax movl %ebp, %edx jmpq *%rax movl 0x30(%rsp), %eax cmpl $0x10, %eax je 0x3caf9 cmpl $0x20, %eax jne 0x3ca94 xorl %r12d, %r12d movl %ebp, %r15d movslq %r15d, %r15 movl %r12d, %eax imull %r13d, %eax movslq %eax, %rdx addq 0xe81b2(%rip), %rdx # 0x124b80 movq %r14, %rdi movq %r15, %rsi callq 0x2a900 subl %eax, %r15d je 0x3ca94 addl %eax, %r12d movq %r14, %rdi callq 0x294dc jmp 0x3c9ba xorl %r12d, %r12d movl %ebp, %r15d movslq %r15d, %r15 movl %r12d, %eax imull %r13d, %eax movslq %eax, %rdx addq 0xe8177(%rip), %rdx # 0x124b80 movq %r14, %rdi movq %r15, %rsi callq 0x342fe subl %eax, %r15d je 0x3ca94 addl %eax, %r12d movq %r14, %rdi callq 0x34733 jmp 0x3c9f5 movq 0xe8153(%rip), %rsi # 0x124b80 movq %r14, %rdi xorl %ecx, %ecx callq 0x38ec8 jmp 0x3ca94 xorl %r15d, %r15d movl %ebp, %r12d movl %r15d, %eax imull %r13d, %eax movslq %eax, %rdx addq 0xe8130(%rip), %rdx # 0x124b80 movl %r12d, %ecx imull %ebx, %ecx movq %r14, %rdi movl %ebx, %esi callq 0x30d9e subl %eax, %r12d je 0x3ca94 addl %eax, %r15d movq %r14, %rdi callq 0x2ff7d jmp 0x3ca3f movq 0xe8107(%rip), %rsi # 0x124b80 movq %r14, %rdi movl %ebp, %edx callq 0x36167 jmp 0x3ca94 movq 0xe80f4(%rip), %rsi # 0x124b80 movq %r14, %rdi callq 0x3635f movq 0xe80e5(%rip), %rdi # 0x124b80 leaq 0x90(%rsp), %rax movups (%rax), %xmm0 movups 0x10(%rax), %xmm1 movups %xmm1, 0x10(%rsp) movups %xmm0, (%rsp) movl %ebp, %esi callq 0x3cb7c movq 0x48(%rsp), %r15 movl 0x168(%r15), %eax xorl %edx, %edx movl 0x34(%rsp), %ecx divl %ecx movl %edx, 0x168(%r15) movl 0x38(%rsp), %r12d cmpl %r12d, 0x3c(%rsp) seta %al movb 0x2f(%rsp), %dl orb %dl, %al testb $0x1, %al movq 0x50(%rsp), %rax je 0x3cb5d incq %rax jmp 0x3c943 xorl %r12d, %r12d movl %ebp, %r15d movslq %r15d, %r15 movl %r12d, %eax imull %r13d, %eax movslq %eax, %rdx addq 0xe806d(%rip), %rdx # 0x124b80 movq %r14, %rdi movq %r15, %rsi callq 0x2a122 subl %eax, %r15d je 0x3ca94 addl %eax, %r12d movq %r14, %rdi callq 0x294dc jmp 0x3caff leaq 0xe800d(%rip), %rdi # 0x124b48 addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x93b0 addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0xe7fe4(%rip), %rdi # 0x124b48 callq 0x93b0 addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x3c768
UpdateMusicStream: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 58h mov r15, [rsp+88h+arg_0] test r15, r15 jz loc_3CB4E lea rbx, [rsp+88h+arg_0] lea rdi, unk_124B48 call _pthread_mutex_lock mov r12d, [r15+160h] shr r12d, 1 mov r13d, [rbx+14h] mov ebx, [rbx+18h] mov [rsp+88h+var_58], r13d imul r13d, ebx shr r13d, 3 mov r14d, r13d imul r14d, r12d cmp qword ptr cs:xmmword_124B78, r14 jnb short loc_3C913 mov rdi, qword ptr cs:xmmword_124B78+8 call _free push 1 pop rdi mov rsi, r14 call _calloc mov qword ptr cs:xmmword_124B78+8, rax mov qword ptr cs:xmmword_124B78, r14 loc_3C913: lea rax, [rsp+88h+arg_0] mov ecx, [rax+20h] mov dl, [rax+24h] mov esi, [rax+28h] mov r14, [rax+30h] xor eax, eax dec esi mov [rsp+88h+var_48], rsi mov [rsp+88h+var_40], r15 mov [rsp+88h+var_50], r12d mov [rsp+88h+var_54], ecx mov [rsp+88h+var_59], dl loc_3C943: cmp rax, 2 jz loc_3CB34 cmp byte ptr [r15+rax+15Ch], 1 jnz loc_3CAF1 mov [rsp+88h+var_38], rax sub ecx, [r15+168h] test dl, 1 mov ebp, ecx cmovnz ebp, r12d mov [rsp+88h+var_4C], ecx cmp ecx, r12d cmovnb ebp, r12d cmp dword ptr [rsp+88h+var_48], 6; switch 7 cases ja def_3C99C; jumptable 000000000003C99C default case, case 2 mov rax, [rsp+88h+var_48] lea rcx, jpt_3C99C movsxd rax, ds:(jpt_3C99C - 0B5848h)[rcx+rax*4] add rax, rcx mov edx, ebp jmp rax; switch jump loc_3C99E: mov eax, [rsp+88h+var_58]; jumptable 000000000003C99C case 0 cmp eax, 10h jz loc_3CAF9 cmp eax, 20h ; ' ' jnz def_3C99C; jumptable 000000000003C99C default case, case 2 xor r12d, r12d mov r15d, ebp loc_3C9BA: movsxd r15, r15d mov eax, r12d imul eax, r13d movsxd rdx, eax add rdx, qword ptr cs:xmmword_124B78+8 mov rdi, r14 mov rsi, r15 call drwav_read_pcm_frames_f32 sub r15d, eax jz def_3C99C; jumptable 000000000003C99C default case, case 2 add r12d, eax mov rdi, r14 call drwav_seek_to_first_pcm_frame jmp short loc_3C9BA loc_3C9EF: xor r12d, r12d; jumptable 000000000003C99C case 3 mov r15d, ebp loc_3C9F5: movsxd r15, r15d mov eax, r12d imul eax, r13d movsxd rdx, eax add rdx, qword ptr cs:xmmword_124B78+8 mov rdi, r14 mov rsi, r15 call drmp3_read_pcm_frames_f32 sub r15d, eax jz short def_3C99C; jumptable 000000000003C99C default case, case 2 add r12d, eax mov rdi, r14 call drmp3_seek_to_start_of_stream jmp short loc_3C9F5 loc_3CA26: mov rsi, qword ptr cs:xmmword_124B78+8; jumptable 000000000003C99C case 6 mov rdi, r14 xor ecx, ecx call jar_mod_fillbuffer jmp short def_3C99C; jumptable 000000000003C99C default case, case 2 loc_3CA39: xor r15d, r15d; jumptable 000000000003C99C case 1 mov r12d, ebp loc_3CA3F: mov eax, r15d imul eax, r13d movsxd rdx, eax add rdx, qword ptr cs:xmmword_124B78+8 mov ecx, r12d imul ecx, ebx mov rdi, r14 mov esi, ebx call stb_vorbis_get_samples_short_interleaved sub r12d, eax jz short def_3C99C; jumptable 000000000003C99C default case, case 2 add r15d, eax mov rdi, r14 call stb_vorbis_seek_start jmp short loc_3CA3F loc_3CA72: mov rsi, qword ptr cs:xmmword_124B78+8; jumptable 000000000003C99C case 4 mov rdi, r14 mov edx, ebp call qoaplay_decode jmp short def_3C99C; jumptable 000000000003C99C default case, case 2 loc_3CA85: mov rsi, qword ptr cs:xmmword_124B78+8; jumptable 000000000003C99C case 5 mov rdi, r14 call jar_xm_generate_samples def_3C99C: mov rdi, qword ptr cs:xmmword_124B78+8; jumptable 000000000003C99C default case, case 2 lea rax, [rsp+88h+arg_0] movups xmm0, xmmword ptr [rax] movups xmm1, xmmword ptr [rax+10h] movups [rsp+88h+var_78], xmm1 movups [rsp+88h+var_88], xmm0 mov esi, ebp call UpdateAudioStreamInLockedState mov r15, [rsp+88h+var_40] mov eax, [r15+168h] xor edx, edx mov ecx, [rsp+88h+var_54] div ecx mov [r15+168h], edx mov r12d, [rsp+88h+var_50] cmp [rsp+88h+var_4C], r12d setnbe al mov dl, [rsp+88h+var_59] or al, dl test al, 1 mov rax, [rsp+88h+var_38] jz short loc_3CB5D loc_3CAF1: inc rax jmp loc_3C943 loc_3CAF9: xor r12d, r12d mov r15d, ebp loc_3CAFF: movsxd r15, r15d mov eax, r12d imul eax, r13d movsxd rdx, eax add rdx, qword ptr cs:xmmword_124B78+8 mov rdi, r14 mov rsi, r15 call drwav_read_pcm_frames_s16 sub r15d, eax jz def_3C99C; jumptable 000000000003C99C default case, case 2 add r12d, eax mov rdi, r14 call drwav_seek_to_first_pcm_frame jmp short loc_3CAFF loc_3CB34: lea rdi, unk_124B48 add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp _pthread_mutex_unlock loc_3CB4E: add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_3CB5D: lea rdi, unk_124B48 call _pthread_mutex_unlock add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp StopMusicStream
void UpdateMusicStream( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, long long a7, int a8, long long a9, int a10, long long a11, int a12, unsigned __int16 *a13) { long long v13; // r15 int v14; // r8d int v15; // r9d unsigned int v16; // r12d unsigned int v17; // r13d int v18; // ecx char v19; // dl long long v20; // rax unsigned int v21; // ecx unsigned int v22; // ebp unsigned int v23; // edx int v24; // r12d signed int v25; // r15d int pcm_frames_f32; // eax int v27; // r12d signed int v28; // r15d int v29; // eax int v30; // r15d unsigned int v31; // r12d int samples_short_interleaved; // eax int v33; // r12d signed int v34; // r15d int pcm_frames_s16; // eax long long v36; // rdx long long v37; // rcx long long v38; // r8 long long v39; // r9 unsigned int v40; // [rsp+38h] [rbp-50h] unsigned int v41; // [rsp+3Ch] [rbp-4Ch] long long v42; // [rsp+50h] [rbp-38h] v13 = a7; if ( a7 ) { pthread_mutex_lock(&unk_124B48); v16 = *(_DWORD *)(a7 + 352) >> 1; v17 = (unsigned int)(a10 * HIDWORD(a9)) >> 3; if ( (unsigned long long)xmmword_124B78 < v16 * v17 ) { free(*((_QWORD *)&xmmword_124B78 + 1)); *((_QWORD *)&xmmword_124B78 + 1) = calloc(1LL, v16 * v17); *(_QWORD *)&xmmword_124B78 = v16 * v17; } v18 = a11; v19 = BYTE4(a11); v20 = 0LL; v40 = v16; while ( 1 ) { if ( v20 == 2 ) { pthread_mutex_unlock(&unk_124B48); return; } if ( *(_BYTE *)(v13 + v20 + 348) == 1 ) { v42 = v20; v21 = v18 - *(_DWORD *)(v13 + 360); v22 = v21; if ( (v19 & 1) != 0 ) v22 = v16; v41 = v21; if ( v21 >= v16 ) v22 = v16; v23 = v22; switch ( a12 ) { case 1: if ( HIDWORD(a9) == 16 ) { v33 = 0; v34 = v22; while ( 1 ) { pcm_frames_s16 = drwav_read_pcm_frames_s16( a13, v34, *((_QWORD *)&xmmword_124B78 + 1) + (int)(v17 * v33)); v34 -= pcm_frames_s16; if ( !v34 ) break; v33 += pcm_frames_s16; drwav_seek_to_first_pcm_frame((long long)a13); } } else if ( HIDWORD(a9) == 32 ) { v24 = 0; v25 = v22; while ( 1 ) { pcm_frames_f32 = drwav_read_pcm_frames_f32( a13, v25, *((_QWORD *)&xmmword_124B78 + 1) + (int)(v17 * v24)); v25 -= pcm_frames_f32; if ( !v25 ) break; v24 += pcm_frames_f32; drwav_seek_to_first_pcm_frame((long long)a13); } } break; case 2: v30 = 0; v31 = v22; while ( 1 ) { samples_short_interleaved = stb_vorbis_get_samples_short_interleaved( (unsigned int *)a13, a10, (_WORD *)(*((_QWORD *)&xmmword_124B78 + 1) + (int)(v17 * v30)), a10 * v31); v31 -= samples_short_interleaved; if ( !v31 ) break; v30 += samples_short_interleaved; stb_vorbis_seek_start((long long)a13); } break; case 4: v27 = 0; v28 = v22; while ( 1 ) { v29 = drmp3_read_pcm_frames_f32((long long)a13, v28, *((_QWORD *)&xmmword_124B78 + 1) + (int)(v17 * v27)); v28 -= v29; if ( !v28 ) break; v27 += v29; drmp3_seek_to_start_of_stream(a13); } break; case 5: qoaplay_decode((long long)a13, *((long long *)&xmmword_124B78 + 1), v22); break; case 6: jar_xm_generate_samples((long long)a13, *((long long *)&xmmword_124B78 + 1), v22); break; case 7: jar_mod_fillbuffer(a13, *((long long *)&xmmword_124B78 + 1), v22, 0LL); break; default: break; } UpdateAudioStreamInLockedState(DWORD2(xmmword_124B78), v22, v23, v21, v14, v15, a7); v13 = a7; v18 = a11; *(_DWORD *)(a7 + 360) %= (unsigned int)a11; v16 = v40; v19 = BYTE4(a11); v20 = v42; if ( !(BYTE4(a11) & 1 | (v41 > v40)) ) break; } ++v20; } pthread_mutex_unlock(&unk_124B48); StopMusicStream((long long)&unk_124B48, v22, v36, v37, v38, v39, a7, a8, a9, a10, a11, a12, a13); } }
UpdateMusicStream: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x58 MOV R15,qword ptr [RSP + 0x90] TEST R15,R15 JZ 0x0013cb4e LEA RBX,[RSP + 0x90] LEA RDI,[0x224b48] CALL 0x001097c0 MOV R12D,dword ptr [R15 + 0x160] SHR R12D,0x1 MOV R13D,dword ptr [RBX + 0x14] MOV EBX,dword ptr [RBX + 0x18] MOV dword ptr [RSP + 0x30],R13D IMUL R13D,EBX SHR R13D,0x3 MOV R14D,R13D IMUL R14D,R12D CMP qword ptr [0x00224b78],R14 JNC 0x0013c913 MOV RDI,qword ptr [0x00224b80] CALL 0x00109640 PUSH 0x1 POP RDI MOV RSI,R14 CALL 0x00109320 MOV qword ptr [0x00224b80],RAX MOV qword ptr [0x00224b78],R14 LAB_0013c913: LEA RAX,[RSP + 0x90] MOV ECX,dword ptr [RAX + 0x20] MOV DL,byte ptr [RAX + 0x24] MOV ESI,dword ptr [RAX + 0x28] MOV R14,qword ptr [RAX + 0x30] XOR EAX,EAX DEC ESI MOV qword ptr [RSP + 0x40],RSI MOV qword ptr [RSP + 0x48],R15 MOV dword ptr [RSP + 0x38],R12D MOV dword ptr [RSP + 0x34],ECX MOV byte ptr [RSP + 0x2f],DL LAB_0013c943: CMP RAX,0x2 JZ 0x0013cb34 CMP byte ptr [R15 + RAX*0x1 + 0x15c],0x1 JNZ 0x0013caf1 MOV qword ptr [RSP + 0x50],RAX SUB ECX,dword ptr [R15 + 0x168] TEST DL,0x1 MOV EBP,ECX CMOVNZ EBP,R12D MOV dword ptr [RSP + 0x3c],ECX CMP ECX,R12D CMOVNC EBP,R12D CMP dword ptr [RSP + 0x40],0x6 JA 0x0013ca94 MOV RAX,qword ptr [RSP + 0x40] LEA RCX,[0x1b5848] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX MOV EDX,EBP switchD: JMP RAX caseD_1: MOV EAX,dword ptr [RSP + 0x30] CMP EAX,0x10 JZ 0x0013caf9 CMP EAX,0x20 JNZ 0x0013ca94 XOR R12D,R12D MOV R15D,EBP LAB_0013c9ba: MOVSXD R15,R15D MOV EAX,R12D IMUL EAX,R13D MOVSXD RDX,EAX ADD RDX,qword ptr [0x00224b80] MOV RDI,R14 MOV RSI,R15 CALL 0x0012a900 SUB R15D,EAX JZ 0x0013ca94 ADD R12D,EAX MOV RDI,R14 CALL 0x001294dc JMP 0x0013c9ba caseD_4: XOR R12D,R12D MOV R15D,EBP LAB_0013c9f5: MOVSXD R15,R15D MOV EAX,R12D IMUL EAX,R13D MOVSXD RDX,EAX ADD RDX,qword ptr [0x00224b80] MOV RDI,R14 MOV RSI,R15 CALL 0x001342fe SUB R15D,EAX JZ 0x0013ca94 ADD R12D,EAX MOV RDI,R14 CALL 0x00134733 JMP 0x0013c9f5 caseD_7: MOV RSI,qword ptr [0x00224b80] MOV RDI,R14 XOR ECX,ECX CALL 0x00138ec8 JMP 0x0013ca94 caseD_2: XOR R15D,R15D MOV R12D,EBP LAB_0013ca3f: MOV EAX,R15D IMUL EAX,R13D MOVSXD RDX,EAX ADD RDX,qword ptr [0x00224b80] MOV ECX,R12D IMUL ECX,EBX MOV RDI,R14 MOV ESI,EBX CALL 0x00130d9e SUB R12D,EAX JZ 0x0013ca94 ADD R15D,EAX MOV RDI,R14 CALL 0x0012ff7d JMP 0x0013ca3f caseD_5: MOV RSI,qword ptr [0x00224b80] MOV RDI,R14 MOV EDX,EBP CALL 0x00136167 JMP 0x0013ca94 caseD_6: MOV RSI,qword ptr [0x00224b80] MOV RDI,R14 CALL 0x0013635f caseD_3: MOV RDI,qword ptr [0x00224b80] LEA RAX,[RSP + 0x90] MOVUPS XMM0,xmmword ptr [RAX] MOVUPS XMM1,xmmword ptr [RAX + 0x10] MOVUPS xmmword ptr [RSP + 0x10],XMM1 MOVUPS xmmword ptr [RSP],XMM0 MOV ESI,EBP CALL 0x0013cb7c MOV R15,qword ptr [RSP + 0x48] MOV EAX,dword ptr [R15 + 0x168] XOR EDX,EDX MOV ECX,dword ptr [RSP + 0x34] DIV ECX MOV dword ptr [R15 + 0x168],EDX MOV R12D,dword ptr [RSP + 0x38] CMP dword ptr [RSP + 0x3c],R12D SETA AL MOV DL,byte ptr [RSP + 0x2f] OR AL,DL TEST AL,0x1 MOV RAX,qword ptr [RSP + 0x50] JZ 0x0013cb5d LAB_0013caf1: INC RAX JMP 0x0013c943 LAB_0013caf9: XOR R12D,R12D MOV R15D,EBP LAB_0013caff: MOVSXD R15,R15D MOV EAX,R12D IMUL EAX,R13D MOVSXD RDX,EAX ADD RDX,qword ptr [0x00224b80] MOV RDI,R14 MOV RSI,R15 CALL 0x0012a122 SUB R15D,EAX JZ 0x0013ca94 ADD R12D,EAX MOV RDI,R14 CALL 0x001294dc JMP 0x0013caff LAB_0013cb34: LEA RDI,[0x224b48] ADD RSP,0x58 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x001093b0 LAB_0013cb4e: ADD RSP,0x58 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0013cb5d: LEA RDI,[0x224b48] CALL 0x001093b0 ADD RSP,0x58 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x0013c768
void UpdateMusicStream(void) { uint uVar1; int iVar2; long lVar3; uint uVar4; uint uVar5; int iVar6; uint uVar7; ulong __size; uint uVar8; long in_stack_00000008; int8 in_stack_00000018; int in_stack_00000020; uint uStack0000000000000028; int4 in_stack_00000030; int8 in_stack_00000038; if (in_stack_00000008 == 0) { return; } pthread_mutex_lock((pthread_mutex_t *)(AUDIO + 0x12b8)); uVar5 = *(uint *)(in_stack_00000008 + 0x160) >> 1; uVar7 = (uint)(in_stack_00000018._4_4_ * in_stack_00000020) >> 3; __size = (ulong)(uVar7 * uVar5); if ((ulong)AUDIO._4840_8_ < __size) { free((void *)AUDIO._4848_8_); AUDIO._4848_8_ = calloc(1,__size); AUDIO._4840_8_ = __size; } lVar3 = 0; do { if (lVar3 == 2) { pthread_mutex_unlock((pthread_mutex_t *)(AUDIO + 0x12b8)); return; } if (*(char *)(in_stack_00000008 + 0x15c + lVar3) == '\x01') { uVar4 = uStack0000000000000028 - *(int *)(in_stack_00000008 + 0x168); uVar1 = uVar4; if ((_uStack0000000000000028 & 0x100000000) != 0) { uVar1 = uVar5; } if (uVar5 <= uVar4) { uVar1 = uVar5; } switch(in_stack_00000030) { case 1: if (in_stack_00000018._4_4_ == 0x10) { iVar6 = 0; uVar8 = uVar1; while( true ) { iVar2 = drwav_read_pcm_frames_s16 (in_stack_00000038,(long)(int)uVar8, (long)(int)(iVar6 * uVar7) + AUDIO._4848_8_); uVar8 = uVar8 - iVar2; if (uVar8 == 0) break; iVar6 = iVar6 + iVar2; drwav_seek_to_first_pcm_frame(in_stack_00000038); } } else if (in_stack_00000018._4_4_ == 0x20) { iVar6 = 0; uVar8 = uVar1; while( true ) { iVar2 = drwav_read_pcm_frames_f32 (in_stack_00000038,(long)(int)uVar8, (long)(int)(iVar6 * uVar7) + AUDIO._4848_8_); uVar8 = uVar8 - iVar2; if (uVar8 == 0) break; iVar6 = iVar6 + iVar2; drwav_seek_to_first_pcm_frame(in_stack_00000038); } } break; case 2: iVar6 = 0; uVar8 = uVar1; while( true ) { iVar2 = stb_vorbis_get_samples_short_interleaved (in_stack_00000038,in_stack_00000020, (long)(int)(iVar6 * uVar7) + AUDIO._4848_8_,uVar8 * in_stack_00000020); uVar8 = uVar8 - iVar2; if (uVar8 == 0) break; iVar6 = iVar6 + iVar2; stb_vorbis_seek_start(in_stack_00000038); } break; case 4: iVar6 = 0; uVar8 = uVar1; while( true ) { iVar2 = drmp3_read_pcm_frames_f32 (in_stack_00000038,(long)(int)uVar8, (long)(int)(iVar6 * uVar7) + AUDIO._4848_8_); uVar8 = uVar8 - iVar2; if (uVar8 == 0) break; iVar6 = iVar6 + iVar2; drmp3_seek_to_start_of_stream(in_stack_00000038); } break; case 5: qoaplay_decode(in_stack_00000038,AUDIO._4848_8_,uVar1); break; case 6: jar_xm_generate_samples(in_stack_00000038,AUDIO._4848_8_); break; case 7: jar_mod_fillbuffer(in_stack_00000038,AUDIO._4848_8_,uVar1,0); } UpdateAudioStreamInLockedState(AUDIO._4848_8_,uVar1); *(uint *)(in_stack_00000008 + 0x168) = *(uint *)(in_stack_00000008 + 0x168) % uStack0000000000000028; if (uVar4 <= uVar5 && (_uStack0000000000000028 & 0x100000000) == 0) { pthread_mutex_unlock((pthread_mutex_t *)(AUDIO + 0x12b8)); StopMusicStream(); return; } } lVar3 = lVar3 + 1; } while( true ); }
38,724
ma_scan_remember_block_record
eloqsql/storage/maria/ma_blockrec.c
int _ma_scan_remember_block_record(MARIA_HA *info, MARIA_RECORD_POS *lastpos) { uchar *bitmap_buff; DBUG_ENTER("_ma_scan_remember_block_record"); if (!(info->scan_save)) { if (!(info->scan_save= my_malloc(PSI_INSTRUMENT_ME, ALIGN_SIZE(sizeof(*info->scan_save)) + info->s->block_size * 2, MYF(MY_WME)))) DBUG_RETURN(HA_ERR_OUT_OF_MEM); info->scan_save->bitmap_buff= ((uchar*) info->scan_save + ALIGN_SIZE(sizeof(*info->scan_save))); } /* For checking if pages have changed since we last read it */ info->scan.row_changes= info->row_changes; /* Remember used bitmap and used head page */ bitmap_buff= info->scan_save->bitmap_buff; memcpy(info->scan_save, &info->scan, sizeof(*info->scan_save)); info->scan_save->bitmap_buff= bitmap_buff; memcpy(bitmap_buff, info->scan.bitmap_buff, info->s->block_size * 2); /* Point to the last read row */ *lastpos= info->cur_row.nextpos - 1; info->scan_save->dir+= DIR_ENTRY_SIZE; DBUG_RETURN(0); }
O3
c
ma_scan_remember_block_record: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movq 0x280(%rdi), %rdi testq %rdi, %rdi jne 0x371e2 movq (%rbx), %rax movl 0x7bc(%rax), %esi addl %esi, %esi addq $0x60, %rsi movl $0x10, %edx xorl %edi, %edi callq 0xbf321 movq %rax, 0x280(%rbx) testq %rax, %rax je 0x3724e movq %rax, %rcx addq $0x60, %rcx movq %rcx, (%rax) movq 0x280(%rbx), %rdi movq 0x3f0(%rbx), %rax leaq 0x220(%rbx), %rsi movq %rax, 0x278(%rbx) movq (%rdi), %r15 movl $0x60, %edx callq 0x2a0b0 movq 0x280(%rbx), %rax movq %r15, (%rax) movq 0x220(%rbx), %rsi movq (%rbx), %rax movl 0x7bc(%rax), %edx addl %edx, %edx movq %r15, %rdi callq 0x2a0b0 movq 0xa0(%rbx), %rax decq %rax movq %rax, (%r14) movq 0x280(%rbx), %rax addq $0x4, 0x20(%rax) xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq movl $0x80, %eax jmp 0x37243
_ma_scan_remember_block_record: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov r14, rsi mov rbx, rdi mov rdi, [rdi+280h] test rdi, rdi jnz short loc_371E2 mov rax, [rbx] mov esi, [rax+7BCh] add esi, esi add rsi, 60h ; '`' mov edx, 10h xor edi, edi call my_malloc mov [rbx+280h], rax test rax, rax jz short loc_3724E mov rcx, rax add rcx, 60h ; '`' mov [rax], rcx mov rdi, [rbx+280h] loc_371E2: mov rax, [rbx+3F0h] lea rsi, [rbx+220h] mov [rbx+278h], rax mov r15, [rdi] mov edx, 60h ; '`' call _memcpy mov rax, [rbx+280h] mov [rax], r15 mov rsi, [rbx+220h] mov rax, [rbx] mov edx, [rax+7BCh] add edx, edx mov rdi, r15 call _memcpy mov rax, [rbx+0A0h] dec rax mov [r14], rax mov rax, [rbx+280h] add qword ptr [rax+20h], 4 xor eax, eax loc_37243: add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn loc_3724E: mov eax, 80h jmp short loc_37243
long long ma_scan_remember_block_record(_QWORD *a1, _QWORD *a2) { long long *v3; // rdi _QWORD *v4; // rax long long v5; // r15 v3 = (long long *)a1[80]; if ( !v3 ) { v4 = (_QWORD *)my_malloc(0LL, (unsigned int)(2 * *(_DWORD *)(*a1 + 1980LL)) + 96LL, 16LL); a1[80] = v4; if ( !v4 ) return 128LL; *v4 = v4 + 12; v3 = (long long *)a1[80]; } a1[79] = a1[126]; v5 = *v3; memcpy(v3, a1 + 68, 96LL); *(_QWORD *)a1[80] = v5; memcpy(v5, a1[68], (unsigned int)(2 * *(_DWORD *)(*a1 + 1980LL))); *a2 = a1[20] - 1LL; *(_QWORD *)(a1[80] + 32LL) += 4LL; return 0LL; }
_ma_scan_remember_block_record: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI MOV RDI,qword ptr [RDI + 0x280] TEST RDI,RDI JNZ 0x001371e2 MOV RAX,qword ptr [RBX] MOV ESI,dword ptr [RAX + 0x7bc] ADD ESI,ESI ADD RSI,0x60 MOV EDX,0x10 XOR EDI,EDI CALL 0x001bf321 MOV qword ptr [RBX + 0x280],RAX TEST RAX,RAX JZ 0x0013724e MOV RCX,RAX ADD RCX,0x60 MOV qword ptr [RAX],RCX MOV RDI,qword ptr [RBX + 0x280] LAB_001371e2: MOV RAX,qword ptr [RBX + 0x3f0] LEA RSI,[RBX + 0x220] MOV qword ptr [RBX + 0x278],RAX MOV R15,qword ptr [RDI] MOV EDX,0x60 CALL 0x0012a0b0 MOV RAX,qword ptr [RBX + 0x280] MOV qword ptr [RAX],R15 MOV RSI,qword ptr [RBX + 0x220] MOV RAX,qword ptr [RBX] MOV EDX,dword ptr [RAX + 0x7bc] ADD EDX,EDX MOV RDI,R15 CALL 0x0012a0b0 MOV RAX,qword ptr [RBX + 0xa0] DEC RAX MOV qword ptr [R14],RAX MOV RAX,qword ptr [RBX + 0x280] ADD qword ptr [RAX + 0x20],0x4 XOR EAX,EAX LAB_00137243: ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET LAB_0013724e: MOV EAX,0x80 JMP 0x00137243
int8 _ma_scan_remember_block_record(long *param_1,long *param_2) { void *__dest; long *plVar1; int8 *__dest_00; __dest_00 = (int8 *)param_1[0x50]; if (__dest_00 == (int8 *)0x0) { plVar1 = (long *)my_malloc(0,(ulong)(uint)(*(int *)(*param_1 + 0x7bc) * 2) + 0x60,0x10); param_1[0x50] = (long)plVar1; if (plVar1 == (long *)0x0) { return 0x80; } *plVar1 = (long)(plVar1 + 0xc); __dest_00 = (int8 *)param_1[0x50]; } param_1[0x4f] = param_1[0x7e]; __dest = (void *)*__dest_00; memcpy(__dest_00,param_1 + 0x44,0x60); *(void **)param_1[0x50] = __dest; memcpy(__dest,(void *)param_1[0x44],(ulong)(uint)(*(int *)(*param_1 + 0x7bc) * 2)); *param_2 = param_1[0x14] + -1; *(long *)(param_1[0x50] + 0x20) = *(long *)(param_1[0x50] + 0x20) + 4; return 0; }
38,725
thr_unlock
eloqsql/mysys/thr_lock.c
void thr_unlock(THR_LOCK_DATA *data, uint unlock_flags) { THR_LOCK *lock=data->lock; enum thr_lock_type lock_type=data->type; DBUG_ENTER("thr_unlock"); DBUG_PRINT("lock",("data: %p thread: %lu lock: %p", data, (ulong) data->owner->thread_id, lock)); mysql_mutex_lock(&lock->mutex); check_locks(lock,"start of release lock", lock_type, 0); if (((*data->prev)=data->next)) /* remove from lock-list */ data->next->prev= data->prev; else if (lock_type <= TL_READ_NO_INSERT) lock->read.last=data->prev; else if (lock_type == TL_WRITE_DELAYED && data->cond) { /* This only happens in extreme circumstances when a write delayed lock that is waiting for a lock */ lock->write_wait.last=data->prev; /* Put it on wait queue */ } else lock->write.last=data->prev; if (unlock_flags & THR_UNLOCK_UPDATE_STATUS) { /* External lock was not called; Update or restore status */ if (lock_type >= TL_WRITE_CONCURRENT_INSERT) { if (lock->update_status) (*lock->update_status)(data->status_param); } else { if (lock->restore_status) (*lock->restore_status)(data->status_param); } } if (lock_type == TL_READ_NO_INSERT) lock->read_no_write_count--; data->type=TL_UNLOCK; /* Mark unlocked */ wake_up_waiters(lock); mysql_mutex_unlock(&lock->mutex); DBUG_VOID_RETURN; }
O3
c
thr_unlock: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %esi, %r12d movq %rdi, %r15 movq 0x18(%rdi), %r14 movl 0x40(%rdi), %r13d leaq 0x18(%r14), %rbx cmpq $0x0, 0x58(%r14) jne 0xa27fe movq %rbx, %rdi callq 0x29220 movq 0x8(%r15), %rax movq 0x10(%r15), %rcx movq %rax, (%rcx) testq %rax, %rax je 0xa2755 movq 0x10(%r15), %rcx movq %rcx, 0x10(%rax) jmp 0xa2790 cmpl $0x5, %r13d jg 0xa2765 movq 0x10(%r15), %rax movq %rax, 0x78(%r14) jmp 0xa2790 cmpl $0x9, %r13d jne 0xa2785 cmpq $0x0, 0x20(%r15) je 0xa2785 movq 0x10(%r15), %rax movq %rax, 0x88(%r14) testb $0x1, %r12b jne 0xa279c jmp 0xa27cf movq 0x10(%r15), %rax movq %rax, 0x98(%r14) testb $0x1, %r12b je 0xa27c2 cmpl $0x8, %r13d jl 0xa27b0 movq 0xc0(%r14), %rax testq %rax, %rax je 0xa27cf movq 0x28(%r15), %rdi callq *%rax jmp 0xa27cf movq 0xc8(%r14), %rax testq %rax, %rax je 0xa27c2 movq 0x28(%r15), %rdi callq *%rax cmpl $0x5, %r13d jne 0xa27cf decl 0xa8(%r14) movl $0x0, 0x40(%r15) movq %r14, %rdi callq 0xa2829 movq 0x58(%r14), %rdi testq %rdi, %rdi jne 0xa2817 movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x291e0 leaq 0x39ffb(%rip), %rsi # 0xdc800 movq %rbx, %rdi movl $0x3c0, %edx # imm = 0x3C0 callq 0x2eb8f jmp 0xa273b leaq 0x2e37f2(%rip), %rax # 0x386010 movq (%rax), %rax callq *0x160(%rax) jmp 0xa27e8
thr_unlock: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r12d, esi mov r15, rdi mov r14, [rdi+18h] mov r13d, [rdi+40h] lea rbx, [r14+18h] cmp qword ptr [r14+58h], 0 jnz loc_A27FE mov rdi, rbx call _pthread_mutex_lock loc_A273B: mov rax, [r15+8] mov rcx, [r15+10h] mov [rcx], rax test rax, rax jz short loc_A2755 mov rcx, [r15+10h] mov [rax+10h], rcx jmp short loc_A2790 loc_A2755: cmp r13d, 5 jg short loc_A2765 mov rax, [r15+10h] mov [r14+78h], rax jmp short loc_A2790 loc_A2765: cmp r13d, 9 jnz short loc_A2785 cmp qword ptr [r15+20h], 0 jz short loc_A2785 mov rax, [r15+10h] mov [r14+88h], rax test r12b, 1 jnz short loc_A279C jmp short loc_A27CF loc_A2785: mov rax, [r15+10h] mov [r14+98h], rax loc_A2790: test r12b, 1 jz short loc_A27C2 cmp r13d, 8 jl short loc_A27B0 loc_A279C: mov rax, [r14+0C0h] test rax, rax jz short loc_A27CF mov rdi, [r15+28h] call rax jmp short loc_A27CF loc_A27B0: mov rax, [r14+0C8h] test rax, rax jz short loc_A27C2 mov rdi, [r15+28h] call rax loc_A27C2: cmp r13d, 5 jnz short loc_A27CF dec dword ptr [r14+0A8h] loc_A27CF: mov dword ptr [r15+40h], 0 mov rdi, r14 call wake_up_waiters mov rdi, [r14+58h] test rdi, rdi jnz short loc_A2817 loc_A27E8: mov rdi, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp _pthread_mutex_unlock loc_A27FE: lea rsi, aWorkspaceLlm4b_23; "/workspace/llm4binary/github2025/eloqsq"... mov rdi, rbx mov edx, 3C0h call psi_mutex_lock jmp loc_A273B loc_A2817: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_A27E8
long long thr_unlock(long long a1, char a2) { long long v2; // r14 int v3; // r13d long long v4; // rax void ( *v5)(_QWORD); // rax void ( *v6)(_QWORD); // rax long long v7; // rdi v2 = *(_QWORD *)(a1 + 24); v3 = *(_DWORD *)(a1 + 64); if ( *(_QWORD *)(v2 + 88) ) psi_mutex_lock(v2 + 24, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c", 0x3C0u); else pthread_mutex_lock(v2 + 24); v4 = *(_QWORD *)(a1 + 8); **(_QWORD **)(a1 + 16) = v4; if ( v4 ) { *(_QWORD *)(v4 + 16) = *(_QWORD *)(a1 + 16); } else if ( v3 > 5 ) { if ( v3 == 9 && *(_QWORD *)(a1 + 32) ) { *(_QWORD *)(v2 + 136) = *(_QWORD *)(a1 + 16); if ( (a2 & 1) == 0 ) goto LABEL_20; goto LABEL_14; } *(_QWORD *)(v2 + 152) = *(_QWORD *)(a1 + 16); } else { *(_QWORD *)(v2 + 120) = *(_QWORD *)(a1 + 16); } if ( (a2 & 1) != 0 ) { if ( v3 >= 8 ) { LABEL_14: v5 = *(void ( **)(_QWORD))(v2 + 192); if ( v5 ) v5(*(_QWORD *)(a1 + 40)); goto LABEL_20; } v6 = *(void ( **)(_QWORD))(v2 + 200); if ( v6 ) v6(*(_QWORD *)(a1 + 40)); } if ( v3 == 5 ) --*(_DWORD *)(v2 + 168); LABEL_20: *(_DWORD *)(a1 + 64) = 0; wake_up_waiters(v2); v7 = *(_QWORD *)(v2 + 88); if ( v7 ) ((void ( *)(long long))PSI_server[44])(v7); return pthread_mutex_unlock(v2 + 24); }
thr_unlock: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R12D,ESI MOV R15,RDI MOV R14,qword ptr [RDI + 0x18] MOV R13D,dword ptr [RDI + 0x40] LEA RBX,[R14 + 0x18] CMP qword ptr [R14 + 0x58],0x0 JNZ 0x001a27fe MOV RDI,RBX CALL 0x00129220 LAB_001a273b: MOV RAX,qword ptr [R15 + 0x8] MOV RCX,qword ptr [R15 + 0x10] MOV qword ptr [RCX],RAX TEST RAX,RAX JZ 0x001a2755 MOV RCX,qword ptr [R15 + 0x10] MOV qword ptr [RAX + 0x10],RCX JMP 0x001a2790 LAB_001a2755: CMP R13D,0x5 JG 0x001a2765 MOV RAX,qword ptr [R15 + 0x10] MOV qword ptr [R14 + 0x78],RAX JMP 0x001a2790 LAB_001a2765: CMP R13D,0x9 JNZ 0x001a2785 CMP qword ptr [R15 + 0x20],0x0 JZ 0x001a2785 MOV RAX,qword ptr [R15 + 0x10] MOV qword ptr [R14 + 0x88],RAX TEST R12B,0x1 JNZ 0x001a279c JMP 0x001a27cf LAB_001a2785: MOV RAX,qword ptr [R15 + 0x10] MOV qword ptr [R14 + 0x98],RAX LAB_001a2790: TEST R12B,0x1 JZ 0x001a27c2 CMP R13D,0x8 JL 0x001a27b0 LAB_001a279c: MOV RAX,qword ptr [R14 + 0xc0] TEST RAX,RAX JZ 0x001a27cf MOV RDI,qword ptr [R15 + 0x28] CALL RAX JMP 0x001a27cf LAB_001a27b0: MOV RAX,qword ptr [R14 + 0xc8] TEST RAX,RAX JZ 0x001a27c2 MOV RDI,qword ptr [R15 + 0x28] CALL RAX LAB_001a27c2: CMP R13D,0x5 JNZ 0x001a27cf DEC dword ptr [R14 + 0xa8] LAB_001a27cf: MOV dword ptr [R15 + 0x40],0x0 MOV RDI,R14 CALL 0x001a2829 MOV RDI,qword ptr [R14 + 0x58] TEST RDI,RDI JNZ 0x001a2817 LAB_001a27e8: MOV RDI,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x001291e0 LAB_001a27fe: LEA RSI,[0x1dc800] MOV RDI,RBX MOV EDX,0x3c0 CALL 0x0012eb8f JMP 0x001a273b LAB_001a2817: LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x001a27e8
void thr_unlock(long param_1,uint param_2) { pthread_mutex_t *__mutex; int iVar1; long lVar2; long lVar3; lVar2 = *(long *)(param_1 + 0x18); iVar1 = *(int *)(param_1 + 0x40); __mutex = (pthread_mutex_t *)(lVar2 + 0x18); if (*(long *)(lVar2 + 0x58) == 0) { pthread_mutex_lock(__mutex); } else { psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c",0x3c0); } lVar3 = *(long *)(param_1 + 8); **(long **)(param_1 + 0x10) = lVar3; if (lVar3 == 0) { if (iVar1 < 6) { *(int8 *)(lVar2 + 0x78) = *(int8 *)(param_1 + 0x10); goto LAB_001a2790; } if ((iVar1 != 9) || (*(long *)(param_1 + 0x20) == 0)) { *(int8 *)(lVar2 + 0x98) = *(int8 *)(param_1 + 0x10); goto LAB_001a2790; } *(int8 *)(lVar2 + 0x88) = *(int8 *)(param_1 + 0x10); if ((param_2 & 1) == 0) goto LAB_001a27cf; LAB_001a279c: if (*(code **)(lVar2 + 0xc0) != (code *)0x0) { (**(code **)(lVar2 + 0xc0))(*(int8 *)(param_1 + 0x28)); } } else { *(int8 *)(lVar3 + 0x10) = *(int8 *)(param_1 + 0x10); LAB_001a2790: if ((param_2 & 1) != 0) { if (7 < iVar1) goto LAB_001a279c; if (*(code **)(lVar2 + 200) != (code *)0x0) { (**(code **)(lVar2 + 200))(*(int8 *)(param_1 + 0x28)); } } if (iVar1 == 5) { *(int *)(lVar2 + 0xa8) = *(int *)(lVar2 + 0xa8) + -1; } } LAB_001a27cf: *(int4 *)(param_1 + 0x40) = 0; wake_up_waiters(lVar2); if (*(long *)(lVar2 + 0x58) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(__mutex); return; }
38,726
js_callsite_finalizer
bluesky950520[P]quickjs/quickjs.c
static void js_callsite_finalizer(JSRuntime *rt, JSValue val) { JSCallSiteData *csd = JS_GetOpaque(val, JS_CLASS_CALL_SITE); if (csd) { JS_FreeValueRT(rt, csd->filename); JS_FreeValueRT(rt, csd->func); JS_FreeValueRT(rt, csd->func_name); js_free_rt(rt, csd); } }
O2
c
js_callsite_finalizer: pushq %r14 pushq %rbx pushq %rax cmpl $-0x1, %edx jne 0x72ebe cmpw $0x3c, 0x6(%rsi) jne 0x72ebe movq 0x30(%rsi), %r14 testq %r14, %r14 je 0x72ebe movq %rdi, %rbx movq (%r14), %rsi movq 0x8(%r14), %rdx callq 0x1bbe1 movq 0x10(%r14), %rsi movq 0x18(%r14), %rdx movq %rbx, %rdi callq 0x1bbe1 movq 0x20(%r14), %rsi movq 0x28(%r14), %rdx movq %rbx, %rdi callq 0x1bbe1 movq %rbx, %rdi movq %r14, %rsi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x1ac7b addq $0x8, %rsp popq %rbx popq %r14 retq
js_callsite_finalizer: push r14 push rbx push rax cmp edx, 0FFFFFFFFh jnz short loc_72EBE cmp word ptr [rsi+6], 3Ch ; '<' jnz short loc_72EBE mov r14, [rsi+30h] test r14, r14 jz short loc_72EBE mov rbx, rdi mov rsi, [r14] mov rdx, [r14+8] call JS_FreeValueRT mov rsi, [r14+10h] mov rdx, [r14+18h] mov rdi, rbx call JS_FreeValueRT mov rsi, [r14+20h] mov rdx, [r14+28h] mov rdi, rbx call JS_FreeValueRT mov rdi, rbx mov rsi, r14 add rsp, 8 pop rbx pop r14 jmp js_free_rt loc_72EBE: add rsp, 8 pop rbx pop r14 retn
long long js_callsite_finalizer(long long a1, long long a2, int a3) { long long v3; // r14 long long result; // rax if ( a3 == -1 && *(_WORD *)(a2 + 6) == 60 ) { v3 = *(_QWORD *)(a2 + 48); if ( v3 ) { JS_FreeValueRT(a1, *(unsigned int **)v3, *(_QWORD *)(v3 + 8)); JS_FreeValueRT(a1, *(unsigned int **)(v3 + 16), *(_QWORD *)(v3 + 24)); JS_FreeValueRT(a1, *(unsigned int **)(v3 + 32), *(_QWORD *)(v3 + 40)); return js_free_rt(a1, v3); } } return result; }
js_callsite_finalizer: PUSH R14 PUSH RBX PUSH RAX CMP EDX,-0x1 JNZ 0x00172ebe CMP word ptr [RSI + 0x6],0x3c JNZ 0x00172ebe MOV R14,qword ptr [RSI + 0x30] TEST R14,R14 JZ 0x00172ebe MOV RBX,RDI MOV RSI,qword ptr [R14] MOV RDX,qword ptr [R14 + 0x8] CALL 0x0011bbe1 MOV RSI,qword ptr [R14 + 0x10] MOV RDX,qword ptr [R14 + 0x18] MOV RDI,RBX CALL 0x0011bbe1 MOV RSI,qword ptr [R14 + 0x20] MOV RDX,qword ptr [R14 + 0x28] MOV RDI,RBX CALL 0x0011bbe1 MOV RDI,RBX MOV RSI,R14 ADD RSP,0x8 POP RBX POP R14 JMP 0x0011ac7b LAB_00172ebe: ADD RSP,0x8 POP RBX POP R14 RET
void js_callsite_finalizer(int8 param_1,long param_2,int param_3) { int8 *puVar1; if (((param_3 == -1) && (*(short *)(param_2 + 6) == 0x3c)) && (puVar1 = *(int8 **)(param_2 + 0x30), puVar1 != (int8 *)0x0)) { JS_FreeValueRT(param_1,*puVar1,puVar1[1]); JS_FreeValueRT(param_1,puVar1[2],puVar1[3]); JS_FreeValueRT(param_1,puVar1[4],puVar1[5]); js_free_rt(param_1,puVar1); return; } return; }
38,727
minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const
monkey531[P]llama/common/minja.hpp
Value do_evaluate(const std::shared_ptr<Context> & context) const override { if (!left) throw std::runtime_error("BinaryOpExpr.left is null"); if (!right) throw std::runtime_error("BinaryOpExpr.right is null"); auto l = left->evaluate(context); auto do_eval = [&](const Value & l) -> Value { if (op == Op::Is || op == Op::IsNot) { auto t = dynamic_cast<VariableExpr*>(right.get()); if (!t) throw std::runtime_error("Right side of 'is' operator must be a variable"); auto eval = [&]() { const auto & name = t->get_name(); if (name == "none") return l.is_null(); if (name == "boolean") return l.is_boolean(); if (name == "integer") return l.is_number_integer(); if (name == "float") return l.is_number_float(); if (name == "number") return l.is_number(); if (name == "string") return l.is_string(); if (name == "mapping") return l.is_object(); if (name == "iterable") return l.is_iterable(); if (name == "sequence") return l.is_array(); if (name == "defined") return !l.is_null(); throw std::runtime_error("Unknown type for 'is' operator: " + name); }; auto value = eval(); return Value(op == Op::Is ? value : !value); } if (op == Op::And) { if (!l.to_bool()) return Value(false); return right->evaluate(context).to_bool(); } else if (op == Op::Or) { if (l.to_bool()) return l; return right->evaluate(context); } auto r = right->evaluate(context); switch (op) { case Op::StrConcat: return l.to_str() + r.to_str(); case Op::Add: return l + r; case Op::Sub: return l - r; case Op::Mul: return l * r; case Op::Div: return l / r; case Op::MulMul: return std::pow(l.get<double>(), r.get<double>()); case Op::DivDiv: return l.get<int64_t>() / r.get<int64_t>(); case Op::Mod: return l.get<int64_t>() % r.get<int64_t>(); case Op::Eq: return l == r; case Op::Ne: return l != r; case Op::Lt: return l < r; case Op::Gt: return l > r; case Op::Le: return l <= r; case Op::Ge: return l >= r; case Op::In: return (r.is_array() || r.is_object()) && r.contains(l); case Op::NotIn: return !(r.is_array() && r.contains(l)); default: break; } throw std::runtime_error("Unknown binary operator"); }; if (l.is_callable()) { return Value::callable([l, do_eval](const std::shared_ptr<Context> & context, ArgumentsValue & args) { auto ll = l.call(context, args); return do_eval(ll); //args[0].second); }); } else { return do_eval(l); } }
O2
cpp
minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const: pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0xe8, %rsp movq %rsi, %r15 movq 0x20(%rsi), %rsi testq %rsi, %rsi je 0x8c055 cmpq $0x0, 0x30(%r15) je 0x8c071 movq %rdx, %r14 movq %rdi, %rbx leaq 0x38(%rsp), %r12 movq %r12, %rdi callq 0x7f442 movq %r15, 0x8(%rsp) movq %r14, 0x10(%rsp) cmpq $0x0, 0x30(%r12) je 0x8c027 leaq 0x88(%rsp), %rdi leaq 0x38(%rsp), %rsi callq 0x850a8 movups 0x8(%rsp), %xmm0 leaq 0x88(%rsp), %rsi movups %xmm0, 0x50(%rsi) leaq 0x18(%rsp), %rdi callq 0x8c178 leaq 0x18(%rsp), %rsi movq %rbx, %rdi callq 0x8c12c leaq 0x18(%rsp), %rdi callq 0x463f0 leaq 0x88(%rsp), %rdi callq 0x7f6d2 jmp 0x8c039 leaq 0x8(%rsp), %rsi leaq 0x38(%rsp), %rdx movq %rbx, %rdi callq 0x8c1c0 leaq 0x38(%rsp), %rdi callq 0x7f6d2 movq %rbx, %rax addq $0xe8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq pushq $0x10 popq %rdi callq 0x265e0 movq %rax, %r14 leaq 0x46ca3(%rip), %rsi # 0xd2d0a movq %rax, %rdi callq 0x26420 jmp 0x8c08b pushq $0x10 popq %rdi callq 0x265e0 movq %rax, %r14 leaq 0x46ca1(%rip), %rsi # 0xd2d24 movq %rax, %rdi callq 0x26420 movq 0x95f5e(%rip), %rsi # 0x121ff0 movq 0x95ebf(%rip), %rdx # 0x121f58 movq %r14, %rdi callq 0x275b0 jmp 0x8c0d3 jmp 0x8c0a5 movq %rax, %rbx movq %r14, %rdi callq 0x268f0 jmp 0x8c0e0 movq %rax, %rbx leaq 0x18(%rsp), %rdi callq 0x463f0 jmp 0x8c0c4 movq %rax, %rbx leaq 0x88(%rsp), %rdi callq 0x7f6d2 jmp 0x8c0d6 movq %rax, %rbx leaq 0x38(%rsp), %rdi callq 0x7f6d2 movq %rbx, %rdi callq 0x27660
_ZNK5minja12BinaryOpExpr11do_evaluateERKSt10shared_ptrINS_7ContextEE: push r15 push r14 push r12 push rbx sub rsp, 0E8h mov r15, rsi mov rsi, [rsi+20h] test rsi, rsi jz loc_8C055 cmp qword ptr [r15+30h], 0 jz loc_8C071 mov r14, rdx mov rbx, rdi lea r12, [rsp+108h+var_D0] mov rdi, r12 call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&) mov qword ptr [rsp+108h+var_100], r15 mov qword ptr [rsp+108h+var_100+8], r14 cmp qword ptr [r12+30h], 0 jz short loc_8C027 lea rdi, [rsp+108h+var_80]; this lea rsi, [rsp+108h+var_D0]; minja::Value * call _ZN5minja5ValueC2ERKS0_; minja::Value::Value(minja::Value const&) movups xmm0, [rsp+108h+var_100] lea rsi, [rsp+108h+var_80] movups xmmword ptr [rsi+50h], xmm0 lea rdi, [rsp+108h+var_F0] call _ZNSt8functionIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERNS0_14ArgumentsValueEEEC2IZNKS0_12BinaryOpExpr11do_evaluateES6_EUlS6_S8_E_vEEOT_; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>::function<minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&)::{lambda(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)#1},void>(minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&)::{lambda(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)#1} &&) lea rsi, [rsp+108h+var_F0] mov rdi, rbx call _ZN5minja5Value8callableERKSt8functionIFS0_RKSt10shared_ptrINS_7ContextEERNS_14ArgumentsValueEEE; minja::Value::callable(std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)> const&) lea rdi, [rsp+108h+var_F0]; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() lea rdi, [rsp+108h+var_80]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() jmp short loc_8C039 loc_8C027: lea rsi, [rsp+108h+var_100] lea rdx, [rsp+108h+var_D0] mov rdi, rbx; this call _ZZNK5minja12BinaryOpExpr11do_evaluateERKSt10shared_ptrINS_7ContextEEENKUlRKNS_5ValueEE_clES8_; minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&)::{lambda(minja::Value const&)#1}::operator()(minja::Value const&) loc_8C039: lea rdi, [rsp+108h+var_D0]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() mov rax, rbx add rsp, 0E8h pop rbx pop r12 pop r14 pop r15 retn loc_8C055: push 10h pop rdi; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aBinaryopexprLe; "BinaryOpExpr.left is null" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) jmp short loc_8C08B loc_8C071: push 10h pop rdi; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aBinaryopexprRi; "BinaryOpExpr.right is null" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) loc_8C08B: mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, r14; void * call ___cxa_throw jmp short loc_8C0D3 jmp short $+2 loc_8C0A5: mov rbx, rax mov rdi, r14; void * call ___cxa_free_exception jmp short loc_8C0E0 mov rbx, rax lea rdi, [rsp+108h+var_F0]; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() jmp short loc_8C0C4 mov rbx, rax loc_8C0C4: lea rdi, [rsp+108h+var_80]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() jmp short loc_8C0D6 loc_8C0D3: mov rbx, rax loc_8C0D6: lea rdi, [rsp+108h+var_D0]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() loc_8C0E0: mov rdi, rbx call __Unwind_Resume
minja::Value * minja::BinaryOpExpr::do_evaluate(minja::Value *this, long long a2, long long a3) { void (***v4)(void); // rsi int v6; // edx int v7; // ecx int v8; // r8d int v9; // r9d std::runtime_error *exception; // r14 __int128 v12; // [rsp+8h] [rbp-100h] _BYTE v13[32]; // [rsp+18h] [rbp-F0h] BYREF _BYTE v14[48]; // [rsp+38h] [rbp-D0h] BYREF long long v15; // [rsp+68h] [rbp-A0h] _BYTE v16[80]; // [rsp+88h] [rbp-80h] BYREF __int128 v17; // [rsp+D8h] [rbp-30h] v4 = *(void (****)(void))(a2 + 32); if ( !v4 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "BinaryOpExpr.left is null"); goto LABEL_9; } if ( !*(_QWORD *)(a2 + 48) ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "BinaryOpExpr.right is null"); LABEL_9: __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } minja::Expression::evaluate((long long)v14, v4); *(_QWORD *)&v12 = a2; *((_QWORD *)&v12 + 1) = a3; if ( v15 ) { minja::Value::Value((minja::Value *)v16, (const minja::Value *)v14); v17 = v12; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>::function<minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&)::{lambda(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)#1},void>(v13); minja::Value::callable((_DWORD)this, (unsigned int)v13, v6, v7, v8, v9); std::_Function_base::~_Function_base((std::_Function_base *)v13); minja::Value::~Value((minja::Value *)v16); } else { minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&)const::{lambda(minja::Value const&)#1}::operator()(this); } minja::Value::~Value((minja::Value *)v14); return this; }
do_evaluate: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0xe8 MOV R15,RSI MOV RSI,qword ptr [RSI + 0x20] TEST RSI,RSI JZ 0x0018c055 CMP qword ptr [R15 + 0x30],0x0 JZ 0x0018c071 MOV R14,RDX MOV RBX,RDI LEA R12,[RSP + 0x38] MOV RDI,R12 CALL 0x0017f442 MOV qword ptr [RSP + 0x8],R15 MOV qword ptr [RSP + 0x10],R14 CMP qword ptr [R12 + 0x30],0x0 JZ 0x0018c027 LAB_0018bfd4: LEA RDI,[RSP + 0x88] LEA RSI,[RSP + 0x38] CALL 0x001850a8 MOVUPS XMM0,xmmword ptr [RSP + 0x8] LEA RSI,[RSP + 0x88] MOVUPS xmmword ptr [RSI + 0x50],XMM0 LAB_0018bff7: LEA RDI,[RSP + 0x18] CALL 0x0018c178 LAB_0018c001: LEA RSI,[RSP + 0x18] MOV RDI,RBX CALL 0x0018c12c LEA RDI,[RSP + 0x18] CALL 0x001463f0 LEA RDI,[RSP + 0x88] CALL 0x0017f6d2 JMP 0x0018c039 LAB_0018c027: LEA RSI,[RSP + 0x8] LEA RDX,[RSP + 0x38] MOV RDI,RBX CALL 0x0018c1c0 LAB_0018c039: LEA RDI,[RSP + 0x38] CALL 0x0017f6d2 MOV RAX,RBX ADD RSP,0xe8 POP RBX POP R12 POP R14 POP R15 RET LAB_0018c055: PUSH 0x10 POP RDI CALL 0x001265e0 MOV R14,RAX LAB_0018c060: LEA RSI,[0x1d2d0a] MOV RDI,RAX CALL 0x00126420 LAB_0018c06f: JMP 0x0018c08b LAB_0018c071: PUSH 0x10 POP RDI CALL 0x001265e0 MOV R14,RAX LAB_0018c07c: LEA RSI,[0x1d2d24] MOV RDI,RAX CALL 0x00126420 LAB_0018c08b: MOV RSI,qword ptr [0x00221ff0] MOV RDX,qword ptr [0x00221f58] MOV RDI,R14 CALL 0x001275b0
/* minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const */ shared_ptr * minja::BinaryOpExpr::do_evaluate(shared_ptr *param_1) { runtime_error *this; int8 in_RDX; long in_RSI; long local_100; int8 uStack_f8; _lambda_std__shared_ptr<minja::Context>_const__minja__ArgumentsValue___1_ local_f0 [32]; Expression local_d0 [48]; long local_a0; Value local_80 [80]; long local_30; int8 uStack_28; if (*(shared_ptr **)(in_RSI + 0x20) == (shared_ptr *)0x0) { this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0018c060 to 0018c06e has its CatchHandler @ 0018c0a5 */ std::runtime_error::runtime_error(this,"BinaryOpExpr.left is null"); } else { if (*(long *)(in_RSI + 0x30) != 0) { Expression::evaluate(local_d0,*(shared_ptr **)(in_RSI + 0x20)); if (local_a0 == 0) { /* try { // try from 0018c027 to 0018c038 has its CatchHandler @ 0018c0a1 */ const::{lambda(minja::Value_const&)#1}::operator() ((_lambda_minja__Value_const___1_ *)param_1,(Value *)&local_100); } else { /* try { // try from 0018bfd4 to 0018bfe5 has its CatchHandler @ 0018c0d3 */ local_100 = in_RSI; uStack_f8 = in_RDX; Value::Value(local_80,(Value *)local_d0); local_30 = local_100; uStack_28 = uStack_f8; /* try { // try from 0018bff7 to 0018c000 has its CatchHandler @ 0018c0c1 */ std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&)>:: function<minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context>const&)const::_lambda(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&)_1_,void> (local_f0); /* try { // try from 0018c001 to 0018c00d has its CatchHandler @ 0018c0b2 */ Value::callable((function *)param_1); std::_Function_base::~_Function_base((_Function_base *)local_f0); Value::~Value(local_80); } Value::~Value((Value *)local_d0); return param_1; } this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0018c07c to 0018c08a has its CatchHandler @ 0018c0a3 */ std::runtime_error::runtime_error(this,"BinaryOpExpr.right is null"); } /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_00221ff0,PTR__runtime_error_00221f58); }
38,728
js_bigint_toString
bluesky950520[P]quickjs/quickjs.c
static JSValue js_bigint_toString(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSValue val; int base; JSValue ret; val = js_thisBigIntValue(ctx, this_val); if (JS_IsException(val)) return val; if (argc == 0 || JS_IsUndefined(argv[0])) { base = 10; } else { base = js_get_radix(ctx, argv[0]); if (base < 0) goto fail; } ret = js_bigint_to_string1(ctx, val, base); JS_FreeValue(ctx, val); return ret; fail: JS_FreeValue(ctx, val); return JS_EXCEPTION; }
O0
c
js_bigint_toString: subq $0x88, %rsp movq %rsi, 0x68(%rsp) movq %rdx, 0x70(%rsp) movq %rdi, 0x60(%rsp) movl %ecx, 0x5c(%rsp) movq %r8, 0x50(%rsp) movq 0x60(%rsp), %rdi movq 0x68(%rsp), %rsi movq 0x70(%rsp), %rdx callq 0xbc200 movq %rax, 0x18(%rsp) movq %rdx, 0x20(%rsp) movq 0x18(%rsp), %rax movq %rax, 0x40(%rsp) movq 0x20(%rsp), %rax movq %rax, 0x48(%rsp) movq 0x40(%rsp), %rdi movq 0x48(%rsp), %rsi callq 0x22a00 cmpl $0x0, %eax je 0xbc0c1 movq 0x40(%rsp), %rax movq %rax, 0x78(%rsp) movq 0x48(%rsp), %rax movq %rax, 0x80(%rsp) jmp 0xbc198 cmpl $0x0, 0x5c(%rsp) je 0xbc0de movq 0x50(%rsp), %rax movq (%rax), %rdi movq 0x8(%rax), %rsi callq 0x2cfa0 cmpl $0x0, %eax je 0xbc0e8 movl $0xa, 0x3c(%rsp) jmp 0xbc10d movq 0x60(%rsp), %rdi movq 0x50(%rsp), %rax movq (%rax), %rsi movq 0x8(%rax), %rdx callq 0xbc2e0 movl %eax, 0x3c(%rsp) cmpl $0x0, 0x3c(%rsp) jge 0xbc10b jmp 0xbc170 jmp 0xbc10d movq 0x60(%rsp), %rdi movl 0x3c(%rsp), %ecx movq 0x40(%rsp), %rsi movq 0x48(%rsp), %rdx callq 0x61600 movq %rax, 0x8(%rsp) movq %rdx, 0x10(%rsp) movq 0x8(%rsp), %rax movq %rax, 0x28(%rsp) movq 0x10(%rsp), %rax movq %rax, 0x30(%rsp) movq 0x60(%rsp), %rdi movq 0x40(%rsp), %rsi movq 0x48(%rsp), %rdx callq 0x229d0 movq 0x28(%rsp), %rax movq %rax, 0x78(%rsp) movq 0x30(%rsp), %rax movq %rax, 0x80(%rsp) jmp 0xbc198 movq 0x60(%rsp), %rdi movq 0x40(%rsp), %rsi movq 0x48(%rsp), %rdx callq 0x229d0 movl $0x0, 0x78(%rsp) movq $0x6, 0x80(%rsp) movq 0x78(%rsp), %rax movq 0x80(%rsp), %rdx addq $0x88, %rsp retq nopl (%rax)
js_bigint_toString: sub rsp, 88h mov [rsp+88h+var_20], rsi mov [rsp+88h+var_18], rdx mov [rsp+88h+var_28], rdi mov [rsp+88h+var_2C], ecx mov [rsp+88h+var_38], r8 mov rdi, [rsp+88h+var_28] mov rsi, [rsp+88h+var_20] mov rdx, [rsp+88h+var_18] call js_thisBigIntValue mov [rsp+88h+var_70], rax mov [rsp+88h+var_68], rdx mov rax, [rsp+88h+var_70] mov [rsp+88h+var_48], rax mov rax, [rsp+88h+var_68] mov [rsp+88h+var_40], rax mov rdi, [rsp+88h+var_48] mov rsi, [rsp+88h+var_40] call JS_IsException_1 cmp eax, 0 jz short loc_BC0C1 mov rax, [rsp+88h+var_48] mov [rsp+88h+var_10], rax mov rax, [rsp+88h+var_40] mov [rsp+88h+var_8], rax jmp loc_BC198 loc_BC0C1: cmp [rsp+88h+var_2C], 0 jz short loc_BC0DE mov rax, [rsp+88h+var_38] mov rdi, [rax] mov rsi, [rax+8] call JS_IsUndefined_0 cmp eax, 0 jz short loc_BC0E8 loc_BC0DE: mov [rsp+88h+var_4C], 0Ah jmp short loc_BC10D loc_BC0E8: mov rdi, [rsp+88h+var_28] mov rax, [rsp+88h+var_38] mov rsi, [rax] mov rdx, [rax+8] call js_get_radix mov [rsp+88h+var_4C], eax cmp [rsp+88h+var_4C], 0 jge short loc_BC10B jmp short loc_BC170 loc_BC10B: jmp short $+2 loc_BC10D: mov rdi, [rsp+88h+var_28] mov ecx, [rsp+88h+var_4C] mov rsi, [rsp+88h+var_48] mov rdx, [rsp+88h+var_40] call js_bigint_to_string1 mov [rsp+88h+var_80], rax mov [rsp+88h+var_78], rdx mov rax, [rsp+88h+var_80] mov [rsp+88h+var_60], rax mov rax, [rsp+88h+var_78] mov [rsp+88h+var_58], rax mov rdi, [rsp+88h+var_28] mov rsi, [rsp+88h+var_48] mov rdx, [rsp+88h+var_40] call JS_FreeValue mov rax, [rsp+88h+var_60] mov [rsp+88h+var_10], rax mov rax, [rsp+88h+var_58] mov [rsp+88h+var_8], rax jmp short loc_BC198 loc_BC170: mov rdi, [rsp+88h+var_28] mov rsi, [rsp+88h+var_48] mov rdx, [rsp+88h+var_40] call JS_FreeValue mov dword ptr [rsp+88h+var_10], 0 mov [rsp+88h+var_8], 6 loc_BC198: mov rax, [rsp+88h+var_10] mov rdx, [rsp+88h+var_8] add rsp, 88h retn
long long js_bigint_toString(long long a1, long long a2, long long a3, int a4, long long *a5) { long long v5; // rdx long long v6; // rax long long v8; // [rsp+18h] [rbp-70h] long long v9; // [rsp+28h] [rbp-60h] signed int radix; // [rsp+3Ch] [rbp-4Ch] long long v11; // [rsp+48h] [rbp-40h] long long v14; // [rsp+78h] [rbp-10h] v8 = js_thisBigIntValue(a1, a2, a3); v11 = v5; if ( JS_IsException_1(v8, v5) ) return v8; if ( a4 && !JS_IsUndefined_0(*a5, a5[1]) ) { radix = js_get_radix(a1, *a5, a5[1]); if ( radix < 0 ) { JS_FreeValue(a1, v8, v11); LODWORD(v14) = 0; return v14; } v6 = js_bigint_to_string1(a1, v8, v11, radix); } else { v6 = js_bigint_to_string1(a1, v8, v11, 0xAu); } v9 = v6; JS_FreeValue(a1, v8, v11); return v9; }
js_bigint_toString: SUB RSP,0x88 MOV qword ptr [RSP + 0x68],RSI MOV qword ptr [RSP + 0x70],RDX MOV qword ptr [RSP + 0x60],RDI MOV dword ptr [RSP + 0x5c],ECX MOV qword ptr [RSP + 0x50],R8 MOV RDI,qword ptr [RSP + 0x60] MOV RSI,qword ptr [RSP + 0x68] MOV RDX,qword ptr [RSP + 0x70] CALL 0x001bc200 MOV qword ptr [RSP + 0x18],RAX MOV qword ptr [RSP + 0x20],RDX MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x40],RAX MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x48],RAX MOV RDI,qword ptr [RSP + 0x40] MOV RSI,qword ptr [RSP + 0x48] CALL 0x00122a00 CMP EAX,0x0 JZ 0x001bc0c1 MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x78],RAX MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0x80],RAX JMP 0x001bc198 LAB_001bc0c1: CMP dword ptr [RSP + 0x5c],0x0 JZ 0x001bc0de MOV RAX,qword ptr [RSP + 0x50] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x8] CALL 0x0012cfa0 CMP EAX,0x0 JZ 0x001bc0e8 LAB_001bc0de: MOV dword ptr [RSP + 0x3c],0xa JMP 0x001bc10d LAB_001bc0e8: MOV RDI,qword ptr [RSP + 0x60] MOV RAX,qword ptr [RSP + 0x50] MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x8] CALL 0x001bc2e0 MOV dword ptr [RSP + 0x3c],EAX CMP dword ptr [RSP + 0x3c],0x0 JGE 0x001bc10b JMP 0x001bc170 LAB_001bc10b: JMP 0x001bc10d LAB_001bc10d: MOV RDI,qword ptr [RSP + 0x60] MOV ECX,dword ptr [RSP + 0x3c] MOV RSI,qword ptr [RSP + 0x40] MOV RDX,qword ptr [RSP + 0x48] CALL 0x00161600 MOV qword ptr [RSP + 0x8],RAX MOV qword ptr [RSP + 0x10],RDX MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x28],RAX MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x30],RAX MOV RDI,qword ptr [RSP + 0x60] MOV RSI,qword ptr [RSP + 0x40] MOV RDX,qword ptr [RSP + 0x48] CALL 0x001229d0 MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x78],RAX MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x80],RAX JMP 0x001bc198 LAB_001bc170: MOV RDI,qword ptr [RSP + 0x60] MOV RSI,qword ptr [RSP + 0x40] MOV RDX,qword ptr [RSP + 0x48] CALL 0x001229d0 MOV dword ptr [RSP + 0x78],0x0 MOV qword ptr [RSP + 0x80],0x6 LAB_001bc198: MOV RAX,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RSP + 0x80] ADD RSP,0x88 RET
int1 [16] js_bigint_toString(int8 param_1,int8 param_2,int8 param_3,int param_4, int8 *param_5) { int iVar1; int1 auVar3 [16]; int local_4c; int4 local_10; int4 uStack_c; int8 local_8; int8 uVar2; auVar3 = js_thisBigIntValue(param_1,param_2,param_3); uVar2 = auVar3._8_8_; auVar3._0_8_ = auVar3._0_8_; iVar1 = JS_IsException(auVar3._0_8_,uVar2); if (iVar1 == 0) { if ((param_4 == 0) || (iVar1 = JS_IsUndefined(*param_5,param_5[1]), iVar1 != 0)) { local_4c = 10; } else { local_4c = js_get_radix(param_1,*param_5,param_5[1]); if (local_4c < 0) { JS_FreeValue(param_1,auVar3._0_8_,uVar2); local_10 = 0; local_8 = 6; goto LAB_001bc198; } } auVar3 = js_bigint_to_string1(param_1,auVar3._0_8_,uVar2,local_4c); local_8 = auVar3._8_8_; JS_FreeValue(param_1,auVar3._0_8_,uVar2); local_10 = auVar3._0_4_; uStack_c = auVar3._4_4_; } else { local_10 = auVar3._0_4_; uStack_c = auVar3._4_4_; local_8 = uVar2; } LAB_001bc198: auVar3._4_4_ = uStack_c; auVar3._0_4_ = local_10; auVar3._8_8_ = local_8; return auVar3; }
38,729
mj_checkPos
aimrt_mujoco_sim/_deps/mujoco-src/src/engine/engine_forward.c
void mj_checkPos(const mjModel* m, mjData* d) { for (int i=0; i < m->nq; i++) { if (mju_isBad(d->qpos[i])) { mj_warning(d, mjWARN_BADQPOS, i); mj_resetData(m, d); d->warning[mjWARN_BADQPOS].number++; d->warning[mjWARN_BADQPOS].lastinfo = i; return; } } }
O3
c
mj_checkPos: cmpl $0x0, (%rdi) jle 0x53f90 pushq %r15 pushq %r14 pushq %rbx movq %rsi, %rbx movq %rdi, %r14 xorl %r15d, %r15d movq 0x27778(%rbx), %rax vmovsd (%rax,%r15,8), %xmm0 callq 0x2da60 testl %eax, %eax jne 0x53f63 incq %r15 movslq (%r14), %rax cmpq %rax, %r15 jl 0x53f40 jmp 0x53f8b movq %rbx, %rdi movl $0x4, %esi movl %r15d, %edx callq 0x2d3c0 movq %r14, %rdi movq %rbx, %rsi callq 0x2da70 incl 0x46c(%rbx) movl %r15d, 0x468(%rbx) popq %rbx popq %r14 popq %r15 retq
mj_checkPos: cmp dword ptr [rdi], 0 jle short locret_53F90 push r15 push r14 push rbx mov rbx, rsi mov r14, rdi xor r15d, r15d loc_53F40: mov rax, [rbx+27778h] vmovsd xmm0, qword ptr [rax+r15*8] call _mju_isBad test eax, eax jnz short loc_53F63 inc r15 movsxd rax, dword ptr [r14] cmp r15, rax jl short loc_53F40 jmp short loc_53F8B loc_53F63: mov rdi, rbx mov esi, 4 mov edx, r15d call _mj_warning mov rdi, r14 mov rsi, rbx call _mj_resetData inc dword ptr [rbx+46Ch] mov [rbx+468h], r15d loc_53F8B: pop rbx pop r14 pop r15 locret_53F90: retn
void mj_checkPos(int *a1, long long a2) { if ( *a1 > 0 ) { _R15 = 0LL; while ( 1 ) { _RAX = *(_QWORD *)(a2 + 161656); __asm { vmovsd xmm0, qword ptr [rax+r15*8] } if ( (unsigned int)mju_isBad(*(double *)&_XMM0) ) break; if ( ++_R15 >= *a1 ) return; } mj_warning(a2, 4LL, (unsigned int)_R15); mj_resetData(a1, a2); ++*(_DWORD *)(a2 + 1132); *(_DWORD *)(a2 + 1128) = _R15; } }
mj_checkPos: CMP dword ptr [RDI],0x0 JLE 0x00153f90 PUSH R15 PUSH R14 PUSH RBX MOV RBX,RSI MOV R14,RDI XOR R15D,R15D LAB_00153f40: MOV RAX,qword ptr [RBX + 0x27778] VMOVSD XMM0,qword ptr [RAX + R15*0x8] CALL 0x0012da60 TEST EAX,EAX JNZ 0x00153f63 INC R15 MOVSXD RAX,dword ptr [R14] CMP R15,RAX JL 0x00153f40 JMP 0x00153f8b LAB_00153f63: MOV RDI,RBX MOV ESI,0x4 MOV EDX,R15D CALL 0x0012d3c0 MOV RDI,R14 MOV RSI,RBX CALL 0x0012da70 INC dword ptr [RBX + 0x46c] MOV dword ptr [RBX + 0x468],R15D LAB_00153f8b: POP RBX POP R14 POP R15 LAB_00153f90: RET
void mj_checkPos(int *param_1,long param_2) { int iVar1; ulong uVar2; if (0 < *param_1) { uVar2 = 0; do { iVar1 = mju_isBad(*(int8 *)(*(long *)(param_2 + 0x27778) + uVar2 * 8)); if (iVar1 != 0) { mj_warning(param_2,4,uVar2 & 0xffffffff); mj_resetData(param_1,param_2); *(int *)(param_2 + 0x46c) = *(int *)(param_2 + 0x46c) + 1; *(int *)(param_2 + 0x468) = (int)uVar2; return; } uVar2 = uVar2 + 1; } while ((long)uVar2 < (long)*param_1); } return; }
38,730
bool testing::internal::ParseFlag<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*)
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest.cc
static bool ParseFlag(const char* str, const char* flag_name, String* value) { // Gets the value of the flag as a string. const char* const value_str = ParseFlagValue(str, flag_name, false); // Aborts if the parsing failed. if (value_str == nullptr) return false; // Sets *value to the value of the flag. *value = value_str; return true; }
O0
cpp
bool testing::internal::ParseFlag<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*): subq $0x28, %rsp movq %rdi, 0x18(%rsp) movq %rsi, 0x10(%rsp) movq %rdx, 0x8(%rsp) movq 0x18(%rsp), %rdi movq 0x10(%rsp), %rsi xorl %edx, %edx callq 0xdbf60 movq %rax, (%rsp) cmpq $0x0, (%rsp) jne 0xe2086 movb $0x0, 0x27(%rsp) jmp 0xe2099 movq (%rsp), %rsi movq 0x8(%rsp), %rdi callq 0xe3450 movb $0x1, 0x27(%rsp) movb 0x27(%rsp), %al andb $0x1, %al addq $0x28, %rsp retq nopw %cs:(%rax,%rax)
_ZN7testing8internalL9ParseFlagINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbPKcS9_PT_: sub rsp, 28h mov [rsp+28h+var_10], rdi mov [rsp+28h+var_18], rsi mov [rsp+28h+var_20], rdx mov rdi, [rsp+28h+var_10]; this mov rsi, [rsp+28h+var_18]; char * xor edx, edx; char * call _ZN7testing8internalL14ParseFlagValueEPKcS2_b; testing::internal::ParseFlagValue(char const*,char const*,bool) mov [rsp+28h+var_28], rax cmp [rsp+28h+var_28], 0 jnz short loc_E2086 mov [rsp+28h+var_1], 0 jmp short loc_E2099 loc_E2086: mov rsi, [rsp+28h+var_28] mov rdi, [rsp+28h+var_20] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc; std::string::operator=(char const*) mov [rsp+28h+var_1], 1 loc_E2099: mov al, [rsp+28h+var_1] and al, 1 add rsp, 28h retn
char testing::internal::ParseFlag<std::string>(testing::internal *a1, const char *a2, long long a3) { _BYTE *v4; // [rsp+0h] [rbp-28h] v4 = testing::internal::ParseFlagValue(a1, a2, 0LL); if ( !v4 ) return 0; std::string::operator=(a3, v4); return 1; }
ParseFlag<std::__cxx11::string>: SUB RSP,0x28 MOV qword ptr [RSP + 0x18],RDI MOV qword ptr [RSP + 0x10],RSI MOV qword ptr [RSP + 0x8],RDX MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP + 0x10] XOR EDX,EDX CALL 0x001dbf60 MOV qword ptr [RSP],RAX CMP qword ptr [RSP],0x0 JNZ 0x001e2086 MOV byte ptr [RSP + 0x27],0x0 JMP 0x001e2099 LAB_001e2086: MOV RSI,qword ptr [RSP] MOV RDI,qword ptr [RSP + 0x8] CALL 0x001e3450 MOV byte ptr [RSP + 0x27],0x1 LAB_001e2099: MOV AL,byte ptr [RSP + 0x27] AND AL,0x1 ADD RSP,0x28 RET
/* bool testing::internal::ParseFlag<std::__cxx11::string >(char const*, char const*, std::__cxx11::string*) */ bool testing::internal::ParseFlag<std::__cxx11::string>(char *param_1,char *param_2,string *param_3) { char *pcVar1; pcVar1 = (char *)ParseFlagValue(param_1,param_2,false); if (pcVar1 != (char *)0x0) { std::__cxx11::string::operator=(param_3,pcVar1); } return pcVar1 != (char *)0x0; }
38,731
str_to_datetime_or_date
eloqsql/client/../sql-common/my_time.c
my_bool str_to_datetime_or_date(const char *str, size_t length, MYSQL_TIME *l_time, ulonglong flags, MYSQL_TIME_STATUS *status) { my_bool neg; uint number_of_fields; const char *endptr; DBUG_ASSERT(C_FLAGS_OK(flags)); my_time_status_init(status); return find_body(&neg, str, length, l_time, &status->warnings, &str, &length) || str_to_datetime_or_date_body(str, length, l_time, flags, TRUE, status, &number_of_fields, &endptr) || set_neg(neg, status, l_time); }
O3
c
str_to_datetime_or_date: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x30, %rsp movq %r8, %rbx movq %rcx, %r12 movq %rdx, %r14 movq %rsi, %rdx movq %rdi, %rsi leaq -0x38(%rbp), %r9 movq %rdi, (%r9) leaq -0x30(%rbp), %rax movq %rdx, (%rax) movq $0x0, (%r8) movl $0x0, 0x8(%r8) subq $0x8, %rsp leaq -0x21(%rbp), %rdi movq %r14, %rcx pushq %rax callq 0x450fb addq $0x10, %rsp movb $0x1, %r15b testb %al, %al jne 0x45fe3 movq -0x38(%rbp), %rdi movq -0x30(%rbp), %rsi leaq -0x48(%rbp), %rax leaq -0x3c(%rbp), %r10 movq %r14, %rdx movq %r12, %rcx movl $0x1, %r8d movq %rbx, %r9 pushq %rax pushq %r10 callq 0x452db addq $0x10, %rsp testb %al, %al jne 0x45fe3 movb -0x21(%rbp), %al movb %al, 0x20(%r14) testb %al, %al je 0x45fdb cmpl $0x2, 0x24(%r14) jne 0x45fe0 xorl %r15d, %r15d jmp 0x45fe3 orb $0x2, (%rbx) movl %r15d, %eax addq $0x30, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
str_to_datetime_or_date: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 30h mov rbx, r8 mov r12, rcx mov r14, rdx mov rdx, rsi mov rsi, rdi lea r9, [rbp+var_38] mov [r9], rdi lea rax, [rbp+var_30] mov [rax], rdx mov qword ptr [r8], 0 mov dword ptr [r8+8], 0 sub rsp, 8 lea rdi, [rbp+var_21] mov rcx, r14 push rax call _ZL9find_bodyPcPKcmP13st_mysql_timePiPS1_Pm; find_body(char *,char const*,ulong,st_mysql_time *,int *,char const**,ulong *) add rsp, 10h mov r15b, 1 test al, al jnz short loc_45FE3 mov rdi, [rbp+var_38] mov rsi, [rbp+var_30] lea rax, [rbp+var_48] lea r10, [rbp+var_3C] mov rdx, r14 mov rcx, r12 mov r8d, 1 mov r9, rbx push rax push r10 call _ZL28str_to_datetime_or_date_bodyPKcmP13st_mysql_timeycP20st_mysql_time_statusPjPS0_; str_to_datetime_or_date_body(char const*,ulong,st_mysql_time *,ulong long,char,st_mysql_time_status *,uint *,char const**) add rsp, 10h test al, al jnz short loc_45FE3 mov al, [rbp+var_21] mov [r14+20h], al test al, al jz short loc_45FDB cmp dword ptr [r14+24h], 2 jnz short loc_45FE0 loc_45FDB: xor r15d, r15d jmp short loc_45FE3 loc_45FE0: or byte ptr [rbx], 2 loc_45FE3: mov eax, r15d add rsp, 30h pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long str_to_datetime_or_date(char *a1, long long a2, long long a3, int a4, int *a5) { unsigned int v5; // r15d bool v9; // al char *v11; // [rsp+10h] [rbp-48h] BYREF unsigned int v12; // [rsp+1Ch] [rbp-3Ch] BYREF char *v13; // [rsp+20h] [rbp-38h] BYREF long long v14; // [rsp+28h] [rbp-30h] BYREF bool v15; // [rsp+37h] [rbp-21h] BYREF v13 = a1; v14 = a2; *(_QWORD *)a5 = 0LL; a5[2] = 0; LOBYTE(v5) = 1; if ( !find_body(&v15, (unsigned __int8 *)a1, a2, a3, a5, &v13, &v14) && !str_to_datetime_or_date_body(v13, v14, a3, a4, 1, a5, &v12, &v11) ) { v9 = v15; *(_BYTE *)(a3 + 32) = v15; if ( v9 && *(_DWORD *)(a3 + 36) != 2 ) *(_BYTE *)a5 |= 2u; else return 0; } return v5; }
str_to_datetime_or_date: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x30 MOV RBX,R8 MOV R12,RCX MOV R14,RDX MOV RDX,RSI MOV RSI,RDI LEA R9,[RBP + -0x38] MOV qword ptr [R9],RDI LEA RAX,[RBP + -0x30] MOV qword ptr [RAX],RDX MOV qword ptr [R8],0x0 MOV dword ptr [R8 + 0x8],0x0 SUB RSP,0x8 LEA RDI,[RBP + -0x21] MOV RCX,R14 PUSH RAX CALL 0x001450fb ADD RSP,0x10 MOV R15B,0x1 TEST AL,AL JNZ 0x00145fe3 MOV RDI,qword ptr [RBP + -0x38] MOV RSI,qword ptr [RBP + -0x30] LEA RAX,[RBP + -0x48] LEA R10,[RBP + -0x3c] MOV RDX,R14 MOV RCX,R12 MOV R8D,0x1 MOV R9,RBX PUSH RAX PUSH R10 CALL 0x001452db ADD RSP,0x10 TEST AL,AL JNZ 0x00145fe3 MOV AL,byte ptr [RBP + -0x21] MOV byte ptr [R14 + 0x20],AL TEST AL,AL JZ 0x00145fdb CMP dword ptr [R14 + 0x24],0x2 JNZ 0x00145fe0 LAB_00145fdb: XOR R15D,R15D JMP 0x00145fe3 LAB_00145fe0: OR byte ptr [RBX],0x2 LAB_00145fe3: MOV EAX,R15D ADD RSP,0x30 POP RBX POP R12 POP R14 POP R15 POP RBP RET
ulong str_to_datetime_or_date (char *param_1,ulong param_2,st_mysql_time *param_3,ulonglong param_4, st_mysql_time_status *param_5) { char cVar1; int8 unaff_R15; ulong uVar2; char *local_50; uint local_44; char *local_40; ulong local_38; st_mysql_time local_29; *(int8 *)param_5 = 0; *(int4 *)(param_5 + 8) = 0; local_40 = param_1; local_38 = param_2; cVar1 = find_body((char *)&local_29,param_1,param_2,param_3,(int *)param_5,&local_40,&local_38); uVar2 = CONCAT71((int7)((ulong)unaff_R15 >> 8),1); if (cVar1 == '\0') { cVar1 = str_to_datetime_or_date_body (local_40,local_38,param_3,param_4,'\x01',param_5,&local_44,&local_50); if (cVar1 == '\0') { param_3[0x20] = local_29; if ((local_29 == (st_mysql_time)0x0) || (*(int *)(param_3 + 0x24) == 2)) { uVar2 = 0; } else { *param_5 = (st_mysql_time_status)((byte)*param_5 | 2); } } } return uVar2 & 0xffffffff; }
38,732
inline_mysql_cond_signal
eloqsql/include/mysql/psi/mysql_thread.h
static inline int inline_mysql_cond_signal( mysql_cond_t *that) { int result; #ifdef HAVE_PSI_COND_INTERFACE if (psi_likely(that->m_psi != NULL)) PSI_COND_CALL(signal_cond)(that->m_psi); #endif result= pthread_cond_signal(&that->m_cond); return result; }
O0
c
inline_mysql_cond_signal: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax cmpq $0x0, 0x30(%rax) setne %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0xff7bb leaq 0x1c0911(%rip), %rax # 0x2c00b8 movq (%rax), %rax movq 0x170(%rax), %rax movq -0x8(%rbp), %rcx movq 0x30(%rcx), %rdi callq *%rax movq -0x8(%rbp), %rdi callq 0x2a580 movl %eax, -0xc(%rbp) movl -0xc(%rbp), %eax addq $0x10, %rsp popq %rbp retq
inline_mysql_cond_signal_5: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rax, [rbp+var_8] cmp qword ptr [rax+30h], 0 setnz al and al, 1 movzx eax, al cmp eax, 0 setnz al and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_FF7BB lea rax, PSI_server mov rax, [rax] mov rax, [rax+170h] mov rcx, [rbp+var_8] mov rdi, [rcx+30h] call rax loc_FF7BB: mov rdi, [rbp+var_8] call _pthread_cond_signal mov [rbp+var_C], eax mov eax, [rbp+var_C] add rsp, 10h pop rbp retn
long long inline_mysql_cond_signal_5(long long a1) { if ( *(_QWORD *)(a1 + 48) ) ((void ( *)(_QWORD))PSI_server[46])(*(_QWORD *)(a1 + 48)); return (unsigned int)pthread_cond_signal(a1); }
inline_mysql_cond_signal: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x30],0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x001ff7bb LEA RAX,[0x3c00b8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x170] MOV RCX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RCX + 0x30] CALL RAX LAB_001ff7bb: MOV RDI,qword ptr [RBP + -0x8] CALL 0x0012a580 MOV dword ptr [RBP + -0xc],EAX MOV EAX,dword ptr [RBP + -0xc] ADD RSP,0x10 POP RBP RET
int inline_mysql_cond_signal(pthread_cond_t *param_1) { int iVar1; if (param_1[1].__align != 0) { (**(code **)(PSI_server + 0x170))(param_1[1].__align); } iVar1 = pthread_cond_signal(param_1); return iVar1; }
38,733
JS_GetFunctionRealm
bluesky950520[P]quickjs/quickjs.c
static JSContext *JS_GetFunctionRealm(JSContext *ctx, JSValue func_obj) { JSObject *p; JSContext *realm; if (JS_VALUE_GET_TAG(func_obj) != JS_TAG_OBJECT) return ctx; p = JS_VALUE_GET_OBJ(func_obj); switch(p->class_id) { case JS_CLASS_C_FUNCTION: realm = p->u.cfunc.realm; break; case JS_CLASS_BYTECODE_FUNCTION: case JS_CLASS_GENERATOR_FUNCTION: case JS_CLASS_ASYNC_FUNCTION: case JS_CLASS_ASYNC_GENERATOR_FUNCTION: { JSFunctionBytecode *b; b = p->u.func.function_bytecode; realm = b->realm; } break; case JS_CLASS_PROXY: { JSProxyData *s = p->u.opaque; if (!s) return ctx; if (s->is_revoked) { JS_ThrowTypeErrorRevokedProxy(ctx); return NULL; } else { realm = JS_GetFunctionRealm(ctx, s->target); } } break; case JS_CLASS_BOUND_FUNCTION: { JSBoundFunction *bf = p->u.bound_function; realm = JS_GetFunctionRealm(ctx, bf->func_obj); } break; default: realm = ctx; break; } return realm; }
O0
c
JS_GetFunctionRealm: subq $0x68, %rsp movq %rsi, 0x50(%rsp) movq %rdx, 0x58(%rsp) movq %rdi, 0x48(%rsp) movq 0x58(%rsp), %rax cmpl $-0x1, %eax je 0x948dc movq 0x48(%rsp), %rax movq %rax, 0x60(%rsp) jmp 0x949f6 movq 0x50(%rsp), %rax movq %rax, 0x40(%rsp) movq 0x40(%rsp), %rax movzwl 0x6(%rax), %eax addl $-0xc, %eax movl %eax, %ecx movq %rcx, 0x8(%rsp) subl $0x2c, %eax ja 0x949e2 movq 0x8(%rsp), %rax leaq 0x7516e(%rip), %rcx # 0x109a7c movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq 0x40(%rsp), %rax movq 0x30(%rax), %rax movq %rax, 0x38(%rsp) jmp 0x949ec movq 0x40(%rsp), %rax movq 0x30(%rax), %rax movq %rax, 0x30(%rsp) movq 0x30(%rsp), %rax movq 0x48(%rax), %rax movq %rax, 0x38(%rsp) jmp 0x949ec movq 0x40(%rsp), %rax movq 0x30(%rax), %rax movq %rax, 0x28(%rsp) cmpq $0x0, 0x28(%rsp) jne 0x94970 movq 0x48(%rsp), %rax movq %rax, 0x60(%rsp) jmp 0x949f6 movq 0x28(%rsp), %rax cmpb $0x0, 0x21(%rax) je 0x9499a movq 0x48(%rsp), %rdi callq 0x5ef60 movq %rax, 0x18(%rsp) movq %rdx, 0x20(%rsp) movq $0x0, 0x60(%rsp) jmp 0x949f6 movq 0x48(%rsp), %rdi movq 0x28(%rsp), %rax movq (%rax), %rsi movq 0x8(%rax), %rdx callq 0x948b0 movq %rax, 0x38(%rsp) jmp 0x949ec movq 0x40(%rsp), %rax movq 0x30(%rax), %rax movq %rax, 0x10(%rsp) movq 0x48(%rsp), %rdi movq 0x10(%rsp), %rax movq (%rax), %rsi movq 0x8(%rax), %rdx callq 0x948b0 movq %rax, 0x38(%rsp) jmp 0x949ec movq 0x48(%rsp), %rax movq %rax, 0x38(%rsp) movq 0x38(%rsp), %rax movq %rax, 0x60(%rsp) movq 0x60(%rsp), %rax addq $0x68, %rsp retq
JS_GetFunctionRealm: sub rsp, 68h mov [rsp+68h+var_18], rsi mov [rsp+68h+var_10], rdx mov [rsp+68h+var_20], rdi mov rax, [rsp+68h+var_10] cmp eax, 0FFFFFFFFh jz short loc_948DC mov rax, [rsp+68h+var_20] mov [rsp+68h+var_8], rax jmp loc_949F6 loc_948DC: mov rax, [rsp+68h+var_18] mov [rsp+68h+var_28], rax mov rax, [rsp+68h+var_28] movzx eax, word ptr [rax+6] add eax, 0FFFFFFF4h; switch 45 cases mov ecx, eax mov [rsp+68h+var_60], rcx sub eax, 2Ch ja def_94915; jumptable 0000000000094915 default case, cases 15,17-47,49-51,53-55 mov rax, [rsp+68h+var_60] lea rcx, jpt_94915 movsxd rax, ds:(jpt_94915 - 109A7Ch)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_94917: mov rax, [rsp+68h+var_28]; jumptable 0000000000094915 case 12 mov rax, [rax+30h] mov [rsp+68h+var_30], rax jmp loc_949EC loc_9492A: mov rax, [rsp+68h+var_28]; jumptable 0000000000094915 cases 13,16,52,56 mov rax, [rax+30h] mov [rsp+68h+var_38], rax mov rax, [rsp+68h+var_38] mov rax, [rax+48h] mov [rsp+68h+var_30], rax jmp loc_949EC loc_9494B: mov rax, [rsp+68h+var_28]; jumptable 0000000000094915 case 48 mov rax, [rax+30h] mov [rsp+68h+var_40], rax cmp [rsp+68h+var_40], 0 jnz short loc_94970 mov rax, [rsp+68h+var_20] mov [rsp+68h+var_8], rax jmp loc_949F6 loc_94970: mov rax, [rsp+68h+var_40] cmp byte ptr [rax+21h], 0 jz short loc_9499A mov rdi, [rsp+68h+var_20] call JS_ThrowTypeErrorRevokedProxy mov [rsp+68h+var_50], rax mov [rsp+68h+var_48], rdx mov [rsp+68h+var_8], 0 jmp short loc_949F6 loc_9499A: mov rdi, [rsp+68h+var_20] mov rax, [rsp+68h+var_40] mov rsi, [rax] mov rdx, [rax+8] call JS_GetFunctionRealm mov [rsp+68h+var_30], rax jmp short loc_949EC loc_949B7: mov rax, [rsp+68h+var_28]; jumptable 0000000000094915 case 14 mov rax, [rax+30h] mov [rsp+68h+var_58], rax mov rdi, [rsp+68h+var_20] mov rax, [rsp+68h+var_58] mov rsi, [rax] mov rdx, [rax+8] call JS_GetFunctionRealm mov [rsp+68h+var_30], rax jmp short loc_949EC def_94915: mov rax, [rsp+68h+var_20]; jumptable 0000000000094915 default case, cases 15,17-47,49-51,53-55 mov [rsp+68h+var_30], rax loc_949EC: mov rax, [rsp+68h+var_30] mov [rsp+68h+var_8], rax loc_949F6: mov rax, [rsp+68h+var_8] add rsp, 68h retn
long long JS_GetFunctionRealm( long long a1, long long a2, long long a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, long long a12, long long a13, long long a14) { long long v15; // [rsp+28h] [rbp-40h] long long FunctionRealm; // [rsp+38h] [rbp-30h] long long v17; // [rsp+60h] [rbp-8h] if ( (_DWORD)a3 != -1 ) return a1; switch ( *(_WORD *)(a2 + 6) ) { case 0xC: FunctionRealm = *(_QWORD *)(a2 + 48); goto LABEL_13; case 0xD: case 0x10: case 0x34: case 0x38: FunctionRealm = *(_QWORD *)(*(_QWORD *)(a2 + 48) + 72LL); goto LABEL_13; case 0xE: FunctionRealm = JS_GetFunctionRealm(a1, **(_QWORD **)(a2 + 48), *(_QWORD *)(*(_QWORD *)(a2 + 48) + 8LL)); goto LABEL_13; case 0x30: v15 = *(_QWORD *)(a2 + 48); if ( v15 ) { if ( *(_BYTE *)(v15 + 33) ) { JS_ThrowTypeErrorRevokedProxy( a1, a4, a5, a6, a7, a8, a9, a10, a11, a2, a3, (unsigned int)*(unsigned __int16 *)(a2 + 6) - 12, a13, a14); v17 = 0LL; } else { FunctionRealm = JS_GetFunctionRealm(a1, *(_QWORD *)v15, *(_QWORD *)(v15 + 8)); LABEL_13: v17 = FunctionRealm; } } else { v17 = a1; } break; default: FunctionRealm = a1; goto LABEL_13; } return v17; }
JS_GetFunctionRealm: SUB RSP,0x68 MOV qword ptr [RSP + 0x50],RSI MOV qword ptr [RSP + 0x58],RDX MOV qword ptr [RSP + 0x48],RDI MOV RAX,qword ptr [RSP + 0x58] CMP EAX,-0x1 JZ 0x001948dc MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0x60],RAX JMP 0x001949f6 LAB_001948dc: MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RSP + 0x40],RAX MOV RAX,qword ptr [RSP + 0x40] MOVZX EAX,word ptr [RAX + 0x6] ADD EAX,-0xc MOV ECX,EAX MOV qword ptr [RSP + 0x8],RCX SUB EAX,0x2c JA 0x001949e2 MOV RAX,qword ptr [RSP + 0x8] LEA RCX,[0x209a7c] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_c: MOV RAX,qword ptr [RSP + 0x40] MOV RAX,qword ptr [RAX + 0x30] MOV qword ptr [RSP + 0x38],RAX JMP 0x001949ec caseD_d: MOV RAX,qword ptr [RSP + 0x40] MOV RAX,qword ptr [RAX + 0x30] MOV qword ptr [RSP + 0x30],RAX MOV RAX,qword ptr [RSP + 0x30] MOV RAX,qword ptr [RAX + 0x48] MOV qword ptr [RSP + 0x38],RAX JMP 0x001949ec caseD_30: MOV RAX,qword ptr [RSP + 0x40] MOV RAX,qword ptr [RAX + 0x30] MOV qword ptr [RSP + 0x28],RAX CMP qword ptr [RSP + 0x28],0x0 JNZ 0x00194970 MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0x60],RAX JMP 0x001949f6 LAB_00194970: MOV RAX,qword ptr [RSP + 0x28] CMP byte ptr [RAX + 0x21],0x0 JZ 0x0019499a MOV RDI,qword ptr [RSP + 0x48] CALL 0x0015ef60 MOV qword ptr [RSP + 0x18],RAX MOV qword ptr [RSP + 0x20],RDX MOV qword ptr [RSP + 0x60],0x0 JMP 0x001949f6 LAB_0019499a: MOV RDI,qword ptr [RSP + 0x48] MOV RAX,qword ptr [RSP + 0x28] MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x8] CALL 0x001948b0 MOV qword ptr [RSP + 0x38],RAX JMP 0x001949ec caseD_e: MOV RAX,qword ptr [RSP + 0x40] MOV RAX,qword ptr [RAX + 0x30] MOV qword ptr [RSP + 0x10],RAX MOV RDI,qword ptr [RSP + 0x48] MOV RAX,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x8] CALL 0x001948b0 MOV qword ptr [RSP + 0x38],RAX JMP 0x001949ec caseD_f: MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0x38],RAX LAB_001949ec: MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x60],RAX LAB_001949f6: MOV RAX,qword ptr [RSP + 0x60] ADD RSP,0x68 RET
int8 JS_GetFunctionRealm(int8 param_1,long param_2,int param_3) { int8 *puVar1; int8 local_30; if (param_3 != -1) { return param_1; } switch(*(int2 *)(param_2 + 6)) { case 0xc: local_30 = *(int8 *)(param_2 + 0x30); break; case 0xd: case 0x10: case 0x34: case 0x38: local_30 = *(int8 *)(*(long *)(param_2 + 0x30) + 0x48); break; case 0xe: local_30 = JS_GetFunctionRealm(param_1,**(int8 **)(param_2 + 0x30), (*(int8 **)(param_2 + 0x30))[1]); break; default: local_30 = param_1; break; case 0x30: puVar1 = *(int8 **)(param_2 + 0x30); if (puVar1 == (int8 *)0x0) { return param_1; } if (*(char *)((long)puVar1 + 0x21) != '\0') { JS_ThrowTypeErrorRevokedProxy(param_1); return 0; } local_30 = JS_GetFunctionRealm(param_1,*puVar1,puVar1[1]); } return local_30; }
38,734
JS_GetFunctionRealm
bluesky950520[P]quickjs/quickjs.c
static JSContext *JS_GetFunctionRealm(JSContext *ctx, JSValue func_obj) { JSObject *p; JSContext *realm; if (JS_VALUE_GET_TAG(func_obj) != JS_TAG_OBJECT) return ctx; p = JS_VALUE_GET_OBJ(func_obj); switch(p->class_id) { case JS_CLASS_C_FUNCTION: realm = p->u.cfunc.realm; break; case JS_CLASS_BYTECODE_FUNCTION: case JS_CLASS_GENERATOR_FUNCTION: case JS_CLASS_ASYNC_FUNCTION: case JS_CLASS_ASYNC_GENERATOR_FUNCTION: { JSFunctionBytecode *b; b = p->u.func.function_bytecode; realm = b->realm; } break; case JS_CLASS_PROXY: { JSProxyData *s = p->u.opaque; if (!s) return ctx; if (s->is_revoked) { JS_ThrowTypeErrorRevokedProxy(ctx); return NULL; } else { realm = JS_GetFunctionRealm(ctx, s->target); } } break; case JS_CLASS_BOUND_FUNCTION: { JSBoundFunction *bf = p->u.bound_function; realm = JS_GetFunctionRealm(ctx, bf->func_obj); } break; default: realm = ctx; break; } return realm; }
O1
c
JS_GetFunctionRealm: pushq %rax leaq 0x473f3(%rip), %rax # 0x9b668 movq %rsi, (%rsp) cmpl $-0x1, %edx jne 0x542e8 movq (%rsp), %rcx movzwl 0x6(%rcx), %edx cmpl $0x2f, %edx jg 0x542a2 addl $-0xc, %edx cmpl $0x4, %edx ja 0x542e8 movslq (%rax,%rdx,4), %rdx addq %rax, %rdx jmpq *%rdx movq 0x30(%rcx), %rcx jmp 0x542b6 cmpl $0x30, %edx jne 0x542be movq 0x30(%rcx), %rcx testq %rcx, %rcx je 0x542e8 cmpb $0x0, 0x21(%rcx) jne 0x542d8 movq (%rcx), %rsi movl 0x8(%rcx), %edx jmp 0x54275 cmpl $0x34, %edx je 0x542c8 cmpl $0x38, %edx jne 0x542e8 movq 0x30(%rcx), %rax movq 0x48(%rax), %rdi jmp 0x542e8 movq 0x30(%rcx), %rdi jmp 0x542e8 leaq 0x49610(%rip), %rsi # 0x9d8ef xorl %eax, %eax callq 0x21953 xorl %edi, %edi movq %rdi, %rax popq %rcx retq
JS_GetFunctionRealm: push rax lea rax, jpt_5429A loc_54275: mov [rsp+8+var_8], rsi cmp edx, 0FFFFFFFFh jnz short def_5429A; jumptable 000000000005429A default case, case 15 mov rcx, [rsp+8+var_8] movzx edx, word ptr [rcx+6] cmp edx, 2Fh ; '/' jg short loc_542A2 add edx, 0FFFFFFF4h; switch 5 cases cmp edx, 4 ja short def_5429A; jumptable 000000000005429A default case, case 15 movsxd rdx, ds:(jpt_5429A - 9B668h)[rax+rdx*4] add rdx, rax jmp rdx; switch jump loc_5429C: mov rcx, [rcx+30h]; jumptable 000000000005429A case 14 jmp short loc_542B6 loc_542A2: cmp edx, 30h ; '0' jnz short loc_542BE mov rcx, [rcx+30h] test rcx, rcx jz short def_5429A; jumptable 000000000005429A default case, case 15 cmp byte ptr [rcx+21h], 0 jnz short loc_542D8 loc_542B6: mov rsi, [rcx] mov edx, [rcx+8] jmp short loc_54275 loc_542BE: cmp edx, 34h ; '4' jz short loc_542C8; jumptable 000000000005429A cases 13,16 cmp edx, 38h ; '8' jnz short def_5429A; jumptable 000000000005429A default case, case 15 loc_542C8: mov rax, [rcx+30h]; jumptable 000000000005429A cases 13,16 mov rdi, [rax+48h] jmp short def_5429A; jumptable 000000000005429A default case, case 15 loc_542D2: mov rdi, [rcx+30h]; jumptable 000000000005429A case 12 jmp short def_5429A; jumptable 000000000005429A default case, case 15 loc_542D8: lea rsi, aRevokedProxy; "revoked proxy" xor eax, eax call JS_ThrowTypeError xor edi, edi def_5429A: mov rax, rdi; jumptable 000000000005429A default case, case 15 pop rcx retn
long long JS_GetFunctionRealm( long long a1, long long a2, int a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, long long a12, long long a13, long long a14) { long long v14; // rdx long long v15; // rcx while ( a3 == -1 ) { v14 = *(unsigned __int16 *)(a2 + 6); if ( *(unsigned __int16 *)(a2 + 6) <= 0x2Fu ) { switch ( *(_WORD *)(a2 + 6) ) { case 0xC: a1 = *(_QWORD *)(a2 + 48); break; case 0xD: case 0x10: return *(_QWORD *)(*(_QWORD *)(a2 + 48) + 72LL); case 0xE: v15 = *(_QWORD *)(a2 + 48); goto LABEL_8; default: return a1; } return a1; } if ( (_DWORD)v14 != 48 ) { if ( (_DWORD)v14 == 52 || (_DWORD)v14 == 56 ) return *(_QWORD *)(*(_QWORD *)(a2 + 48) + 72LL); return a1; } v15 = *(_QWORD *)(a2 + 48); if ( !v15 ) return a1; if ( *(_BYTE *)(v15 + 33) ) { JS_ThrowTypeError(a1, (long long)"revoked proxy", v14, v15, a13, a14, a4, a5, a6, a7, a8, a9, a10, a11, a2); return 0LL; } LABEL_8: a2 = *(_QWORD *)v15; a3 = *(_DWORD *)(v15 + 8); } return a1; }
JS_GetFunctionRealm: PUSH RAX LEA RAX,[0x19b668] LAB_00154275: MOV qword ptr [RSP],RSI CMP EDX,-0x1 JNZ 0x001542e8 MOV RCX,qword ptr [RSP] MOVZX EDX,word ptr [RCX + 0x6] CMP EDX,0x2f JG 0x001542a2 ADD EDX,-0xc CMP EDX,0x4 JA 0x001542e8 MOVSXD RDX,dword ptr [RAX + RDX*0x4] ADD RDX,RAX switchD: JMP RDX caseD_e: MOV RCX,qword ptr [RCX + 0x30] JMP 0x001542b6 LAB_001542a2: CMP EDX,0x30 JNZ 0x001542be MOV RCX,qword ptr [RCX + 0x30] TEST RCX,RCX JZ 0x001542e8 CMP byte ptr [RCX + 0x21],0x0 JNZ 0x001542d8 LAB_001542b6: MOV RSI,qword ptr [RCX] MOV EDX,dword ptr [RCX + 0x8] JMP 0x00154275 LAB_001542be: CMP EDX,0x34 JZ 0x001542c8 CMP EDX,0x38 JNZ 0x001542e8 caseD_d: MOV RAX,qword ptr [RCX + 0x30] MOV RDI,qword ptr [RAX + 0x48] JMP 0x001542e8 caseD_c: MOV RDI,qword ptr [RCX + 0x30] JMP 0x001542e8 LAB_001542d8: LEA RSI,[0x19d8ef] XOR EAX,EAX CALL 0x00121953 XOR EDI,EDI caseD_f: MOV RAX,RDI POP RCX RET
int8 JS_GetFunctionRealm(int8 param_1,long param_2,int param_3) { ushort uVar1; long *plVar2; while (param_3 == -1) { uVar1 = *(ushort *)(param_2 + 6); if (uVar1 < 0x30) { switch(uVar1) { case 0xc: return *(int8 *)(param_2 + 0x30); case 0xd: case 0x10: switchD_0015429a_caseD_d: return *(int8 *)(*(long *)(param_2 + 0x30) + 0x48); case 0xe: plVar2 = *(long **)(param_2 + 0x30); break; default: goto switchD_0015429a_caseD_f; } } else { if (uVar1 != 0x30) { if ((uVar1 != 0x34) && (uVar1 != 0x38)) { return param_1; } goto switchD_0015429a_caseD_d; } plVar2 = *(long **)(param_2 + 0x30); if (plVar2 == (long *)0x0) { return param_1; } if (*(char *)((long)plVar2 + 0x21) != '\0') { JS_ThrowTypeError(param_1,"revoked proxy"); return 0; } } param_2 = *plVar2; param_3 = (int)plVar2[1]; } switchD_0015429a_caseD_f: return param_1; }
38,735
JS_GetFunctionRealm
bluesky950520[P]quickjs/quickjs.c
static JSContext *JS_GetFunctionRealm(JSContext *ctx, JSValue func_obj) { JSObject *p; JSContext *realm; if (JS_VALUE_GET_TAG(func_obj) != JS_TAG_OBJECT) return ctx; p = JS_VALUE_GET_OBJ(func_obj); switch(p->class_id) { case JS_CLASS_C_FUNCTION: realm = p->u.cfunc.realm; break; case JS_CLASS_BYTECODE_FUNCTION: case JS_CLASS_GENERATOR_FUNCTION: case JS_CLASS_ASYNC_FUNCTION: case JS_CLASS_ASYNC_GENERATOR_FUNCTION: { JSFunctionBytecode *b; b = p->u.func.function_bytecode; realm = b->realm; } break; case JS_CLASS_PROXY: { JSProxyData *s = p->u.opaque; if (!s) return ctx; if (s->is_revoked) { JS_ThrowTypeErrorRevokedProxy(ctx); return NULL; } else { realm = JS_GetFunctionRealm(ctx, s->target); } } break; case JS_CLASS_BOUND_FUNCTION: { JSBoundFunction *bf = p->u.bound_function; realm = JS_GetFunctionRealm(ctx, bf->func_obj); } break; default: realm = ctx; break; } return realm; }
O3
c
JS_GetFunctionRealm: cmpl $-0x1, %edx jne 0x571f7 pushq %rax leaq 0x474d6(%rip), %rax # 0x9e660 movzwl 0x6(%rsi), %ecx cmpl $0x2f, %ecx jg 0x571aa addl $-0xc, %ecx cmpl $0x4, %ecx ja 0x571f3 movslq (%rax,%rcx,4), %rcx addq %rax, %rcx jmpq *%rcx movq 0x30(%rsi), %rcx jmp 0x571be cmpl $0x30, %ecx jne 0x571c9 movq 0x30(%rsi), %rcx testq %rcx, %rcx je 0x571f3 cmpb $0x0, 0x21(%rcx) jne 0x571e3 movq (%rcx), %rsi cmpl $-0x1, 0x8(%rcx) je 0x5718a jmp 0x571f3 cmpl $0x34, %ecx je 0x571d3 cmpl $0x38, %ecx jne 0x571f3 movq 0x30(%rsi), %rax movq 0x48(%rax), %rdi jmp 0x571f3 movq 0x30(%rsi), %rdi jmp 0x571f3 leaq 0x496d5(%rip), %rsi # 0xa08bf xorl %eax, %eax callq 0x2214f xorl %edi, %edi addq $0x8, %rsp movq %rdi, %rax retq
JS_GetFunctionRealm: cmp edx, 0FFFFFFFFh jnz short loc_571F7 push rax lea rax, jpt_571A2 loc_5718A: movzx ecx, word ptr [rsi+6] cmp ecx, 2Fh ; '/' jg short loc_571AA add ecx, 0FFFFFFF4h; switch 5 cases cmp ecx, 4 ja short def_571A2; jumptable 00000000000571A2 default case, case 15 movsxd rcx, ds:(jpt_571A2 - 9E660h)[rax+rcx*4] add rcx, rax jmp rcx; switch jump loc_571A4: mov rcx, [rsi+30h]; jumptable 00000000000571A2 case 14 jmp short loc_571BE loc_571AA: cmp ecx, 30h ; '0' jnz short loc_571C9 mov rcx, [rsi+30h] test rcx, rcx jz short def_571A2; jumptable 00000000000571A2 default case, case 15 cmp byte ptr [rcx+21h], 0 jnz short loc_571E3 loc_571BE: mov rsi, [rcx] cmp dword ptr [rcx+8], 0FFFFFFFFh jz short loc_5718A jmp short def_571A2; jumptable 00000000000571A2 default case, case 15 loc_571C9: cmp ecx, 34h ; '4' jz short loc_571D3; jumptable 00000000000571A2 cases 13,16 cmp ecx, 38h ; '8' jnz short def_571A2; jumptable 00000000000571A2 default case, case 15 loc_571D3: mov rax, [rsi+30h]; jumptable 00000000000571A2 cases 13,16 mov rdi, [rax+48h] jmp short def_571A2; jumptable 00000000000571A2 default case, case 15 loc_571DD: mov rdi, [rsi+30h]; jumptable 00000000000571A2 case 12 jmp short def_571A2; jumptable 00000000000571A2 default case, case 15 loc_571E3: lea rsi, aRevokedProxy; "revoked proxy" xor eax, eax call JS_ThrowTypeError xor edi, edi def_571A2: add rsp, 8; jumptable 00000000000571A2 default case, case 15 loc_571F7: mov rax, rdi retn
long long JS_GetFunctionRealm( long long a1, long long a2, long long a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, long long a12, long long a13, long long a14) { char v14; // al unsigned int v15; // ecx long long v16; // rcx if ( (_DWORD)a3 == -1 ) { while ( 1 ) { v15 = *(unsigned __int16 *)(a2 + 6); if ( v15 <= 0x2F ) { switch ( *(_WORD *)(a2 + 6) ) { case 0xC: a1 = *(_QWORD *)(a2 + 48); break; case 0xD: case 0x10: return *(_QWORD *)(*(_QWORD *)(a2 + 48) + 72LL); case 0xE: v16 = *(_QWORD *)(a2 + 48); goto LABEL_8; default: return a1; } return a1; } if ( v15 != 48 ) break; v16 = *(_QWORD *)(a2 + 48); if ( !v16 ) return a1; if ( *(_BYTE *)(v16 + 33) ) { JS_ThrowTypeError(a1, (long long)"revoked proxy", a3, v16, a13, a14, a4, a5, a6, a7, a8, a9, a10, a11, v14); return 0LL; } LABEL_8: a2 = *(_QWORD *)v16; if ( *(_DWORD *)(v16 + 8) != -1 ) return a1; } if ( v15 == 52 || v15 == 56 ) return *(_QWORD *)(*(_QWORD *)(a2 + 48) + 72LL); } return a1; }
JS_GetFunctionRealm: CMP EDX,-0x1 JNZ 0x001571f7 PUSH RAX LEA RAX,[0x19e660] LAB_0015718a: MOVZX ECX,word ptr [RSI + 0x6] CMP ECX,0x2f JG 0x001571aa ADD ECX,-0xc CMP ECX,0x4 JA 0x001571f3 MOVSXD RCX,dword ptr [RAX + RCX*0x4] ADD RCX,RAX switchD: JMP RCX caseD_e: MOV RCX,qword ptr [RSI + 0x30] JMP 0x001571be LAB_001571aa: CMP ECX,0x30 JNZ 0x001571c9 MOV RCX,qword ptr [RSI + 0x30] TEST RCX,RCX JZ 0x001571f3 CMP byte ptr [RCX + 0x21],0x0 JNZ 0x001571e3 LAB_001571be: MOV RSI,qword ptr [RCX] CMP dword ptr [RCX + 0x8],-0x1 JZ 0x0015718a JMP 0x001571f3 LAB_001571c9: CMP ECX,0x34 JZ 0x001571d3 CMP ECX,0x38 JNZ 0x001571f3 caseD_d: MOV RAX,qword ptr [RSI + 0x30] MOV RDI,qword ptr [RAX + 0x48] JMP 0x001571f3 caseD_c: MOV RDI,qword ptr [RSI + 0x30] JMP 0x001571f3 LAB_001571e3: LEA RSI,[0x1a08bf] XOR EAX,EAX CALL 0x0012214f XOR EDI,EDI caseD_f: ADD RSP,0x8 LAB_001571f7: MOV RAX,RDI RET
int8 JS_GetFunctionRealm(int8 param_1,long param_2,int param_3) { ushort uVar1; long *plVar2; if (param_3 != -1) { return param_1; } do { uVar1 = *(ushort *)(param_2 + 6); if (uVar1 < 0x30) { switch(uVar1) { case 0xc: return *(int8 *)(param_2 + 0x30); case 0xd: case 0x10: switchD_001571a2_caseD_d: return *(int8 *)(*(long *)(param_2 + 0x30) + 0x48); case 0xe: plVar2 = *(long **)(param_2 + 0x30); break; default: goto LAB_001571f7; } } else { if (uVar1 != 0x30) { if ((uVar1 != 0x34) && (uVar1 != 0x38)) { return param_1; } goto switchD_001571a2_caseD_d; } plVar2 = *(long **)(param_2 + 0x30); if (plVar2 == (long *)0x0) { return param_1; } if (*(char *)((long)plVar2 + 0x21) != '\0') { JS_ThrowTypeError(param_1,"revoked proxy"); return 0; } } param_2 = *plVar2; } while ((int)plVar2[1] == -1); LAB_001571f7: return param_1; }
38,736
mi_ft_parse
eloqsql/storage/myisam/ft_update.c
uint _mi_ft_parse(TREE *parsed, MI_INFO *info, uint keynr, const uchar *record, MYSQL_FTPARSER_PARAM *param, MEM_ROOT *mem_root) { FT_SEG_ITERATOR ftsi; struct st_mysql_ftparser *parser; DBUG_ENTER("_mi_ft_parse"); _mi_ft_segiterator_init(info, keynr, record, &ftsi); ft_parse_init(parsed, info->s->keyinfo[keynr].seg->charset); parser= info->s->keyinfo[keynr].parser; while (_mi_ft_segiterator(&ftsi)) { if (ftsi.pos) if (ft_parse(parsed, (uchar *)ftsi.pos, ftsi.len, parser, param, mem_root)) DBUG_RETURN(1); } DBUG_RETURN(0); }
O0
c
mi_ft_parse: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq %r9, -0x38(%rbp) movq -0x18(%rbp), %rdi movl -0x1c(%rbp), %esi movq -0x28(%rbp), %rdx leaq -0x58(%rbp), %rcx callq 0xa2410 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rax movq (%rax), %rax movq 0x218(%rax), %rax movl -0x1c(%rbp), %ecx imulq $0x70, %rcx, %rcx addq %rcx, %rax movq 0x28(%rax), %rax movq (%rax), %rsi callq 0xa1e50 movq -0x18(%rbp), %rax movq (%rax), %rax movq 0x218(%rax), %rax movl -0x1c(%rbp), %ecx imulq $0x70, %rcx, %rcx addq %rcx, %rax movq 0x38(%rax), %rax movq %rax, -0x60(%rbp) leaq -0x58(%rbp), %rdi callq 0xa24d0 cmpl $0x0, %eax je 0xa2750 cmpq $0x0, -0x40(%rbp) je 0xa274e movq -0x10(%rbp), %rdi movq -0x40(%rbp), %rsi movl -0x54(%rbp), %edx movq -0x60(%rbp), %rcx movq -0x30(%rbp), %r8 movq -0x38(%rbp), %r9 callq 0xa1f00 cmpl $0x0, %eax je 0xa274c jmp 0xa2743 movl $0x1, -0x4(%rbp) jmp 0xa2759 jmp 0xa274e jmp 0xa270b jmp 0xa2752 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_mi_ft_parse: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_1C], edx mov [rbp+var_28], rcx mov [rbp+var_30], r8 mov [rbp+var_38], r9 mov rdi, [rbp+var_18] mov esi, [rbp+var_1C] mov rdx, [rbp+var_28] lea rcx, [rbp+var_58] call _mi_ft_segiterator_init mov rdi, [rbp+var_10] mov rax, [rbp+var_18] mov rax, [rax] mov rax, [rax+218h] mov ecx, [rbp+var_1C] imul rcx, 70h ; 'p' add rax, rcx mov rax, [rax+28h] mov rsi, [rax] call ft_parse_init mov rax, [rbp+var_18] mov rax, [rax] mov rax, [rax+218h] mov ecx, [rbp+var_1C] imul rcx, 70h ; 'p' add rax, rcx mov rax, [rax+38h] mov [rbp+var_60], rax loc_A270B: lea rdi, [rbp+var_58] call _mi_ft_segiterator cmp eax, 0 jz short loc_A2750 cmp [rbp+var_40], 0 jz short loc_A274E mov rdi, [rbp+var_10] mov rsi, [rbp+var_40] mov edx, [rbp+var_54] mov rcx, [rbp+var_60] mov r8, [rbp+var_30] mov r9, [rbp+var_38] call ft_parse cmp eax, 0 jz short loc_A274C jmp short $+2 loc_A2743: mov [rbp+var_4], 1 jmp short loc_A2759 loc_A274C: jmp short $+2 loc_A274E: jmp short loc_A270B loc_A2750: jmp short $+2 loc_A2752: mov [rbp+var_4], 0 loc_A2759: mov eax, [rbp+var_4] add rsp, 60h pop rbp retn
long long mi_ft_parse(_QWORD *a1, long long a2, unsigned int a3, long long a4, _QWORD *a5, long long a6) { long long v7; // [rsp+0h] [rbp-60h] _BYTE v8[4]; // [rsp+8h] [rbp-58h] BYREF int v9; // [rsp+Ch] [rbp-54h] long long v10; // [rsp+20h] [rbp-40h] long long v11; // [rsp+28h] [rbp-38h] _QWORD *v12; // [rsp+30h] [rbp-30h] long long v13; // [rsp+38h] [rbp-28h] unsigned int v14; // [rsp+44h] [rbp-1Ch] long long v15; // [rsp+48h] [rbp-18h] _QWORD *v16; // [rsp+50h] [rbp-10h] v16 = a1; v15 = a2; v14 = a3; v13 = a4; v12 = a5; v11 = a6; mi_ft_segiterator_init(a2, a3, a4, (long long)v8); ft_parse_init(v16, **(_QWORD **)(112LL * v14 + *(_QWORD *)(*(_QWORD *)v15 + 536LL) + 40)); v7 = *(_QWORD *)(112LL * v14 + *(_QWORD *)(*(_QWORD *)v15 + 536LL) + 56); while ( (unsigned int)mi_ft_segiterator((long long)v8) ) { if ( v10 && (unsigned int)ft_parse((long long)v16, v10, v9, v7, v12, v11) ) return 1; } return 0; }
_mi_ft_parse: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV dword ptr [RBP + -0x1c],EDX MOV qword ptr [RBP + -0x28],RCX MOV qword ptr [RBP + -0x30],R8 MOV qword ptr [RBP + -0x38],R9 MOV RDI,qword ptr [RBP + -0x18] MOV ESI,dword ptr [RBP + -0x1c] MOV RDX,qword ptr [RBP + -0x28] LEA RCX,[RBP + -0x58] CALL 0x001a2410 MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x218] MOV ECX,dword ptr [RBP + -0x1c] IMUL RCX,RCX,0x70 ADD RAX,RCX MOV RAX,qword ptr [RAX + 0x28] MOV RSI,qword ptr [RAX] CALL 0x001a1e50 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x218] MOV ECX,dword ptr [RBP + -0x1c] IMUL RCX,RCX,0x70 ADD RAX,RCX MOV RAX,qword ptr [RAX + 0x38] MOV qword ptr [RBP + -0x60],RAX LAB_001a270b: LEA RDI,[RBP + -0x58] CALL 0x001a24d0 CMP EAX,0x0 JZ 0x001a2750 CMP qword ptr [RBP + -0x40],0x0 JZ 0x001a274e MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x40] MOV EDX,dword ptr [RBP + -0x54] MOV RCX,qword ptr [RBP + -0x60] MOV R8,qword ptr [RBP + -0x30] MOV R9,qword ptr [RBP + -0x38] CALL 0x001a1f00 CMP EAX,0x0 JZ 0x001a274c JMP 0x001a2743 LAB_001a2743: MOV dword ptr [RBP + -0x4],0x1 JMP 0x001a2759 LAB_001a274c: JMP 0x001a274e LAB_001a274e: JMP 0x001a270b LAB_001a2750: JMP 0x001a2752 LAB_001a2752: MOV dword ptr [RBP + -0x4],0x0 LAB_001a2759: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x60 POP RBP RET
int4 _mi_ft_parse(int8 param_1,long *param_2,uint param_3,int8 param_4,int8 param_5, int8 param_6) { int8 uVar1; int iVar2; int1 local_60 [4]; int4 local_5c; long local_48; int8 local_40; int8 local_38; int8 local_30; uint local_24; long *local_20; int8 local_18; local_40 = param_6; local_38 = param_5; local_30 = param_4; local_24 = param_3; local_20 = param_2; local_18 = param_1; _mi_ft_segiterator_init(param_2,param_3,param_4,local_60); ft_parse_init(local_18,**(int8 **) (*(long *)(*local_20 + 0x218) + (ulong)local_24 * 0x70 + 0x28)); uVar1 = *(int8 *)(*(long *)(*local_20 + 0x218) + (ulong)local_24 * 0x70 + 0x38); do { iVar2 = _mi_ft_segiterator(local_60); if (iVar2 == 0) { return 0; } } while ((local_48 == 0) || (iVar2 = ft_parse(local_18,local_48,local_5c,uVar1,local_38,local_40), iVar2 == 0)); return 1; }
38,737
google::protobuf::compiler::cpp::ServiceGenerator::GenerateDeclarations(google::protobuf::io::Printer*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/cpp/service.cc
void ServiceGenerator::GenerateDeclarations(io::Printer* printer) { Formatter format(printer, vars_); // Forward-declare the stub type. format( "class $classname$_Stub;\n" "\n"); GenerateInterface(printer); GenerateStubDefinition(printer); }
O0
cpp
google::protobuf::compiler::cpp::ServiceGenerator::GenerateDeclarations(google::protobuf::io::Printer*): subq $0x68, %rsp movq %rdi, 0x60(%rsp) movq %rsi, 0x58(%rsp) movq 0x60(%rsp), %rdx movq %rdx, (%rsp) movq 0x58(%rsp), %rsi addq $0x8, %rdx leaq 0x20(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0xdf0d0 movq 0x8(%rsp), %rdi leaq 0x291a06(%rip), %rsi # 0x3c5911 callq 0x5ae90 jmp 0x133f12 movq (%rsp), %rdi movq 0x58(%rsp), %rsi callq 0x133f70 jmp 0x133f22 movq (%rsp), %rdi movq 0x58(%rsp), %rsi callq 0x134050 jmp 0x133f32 leaq 0x20(%rsp), %rdi callq 0xdf130 addq $0x68, %rsp retq movq %rax, %rcx movl %edx, %eax movq %rcx, 0x18(%rsp) movl %eax, 0x14(%rsp) leaq 0x20(%rsp), %rdi callq 0xdf130 movq 0x18(%rsp), %rdi callq 0x21700 nopw %cs:(%rax,%rax)
_ZN6google8protobuf8compiler3cpp16ServiceGenerator20GenerateDeclarationsEPNS0_2io7PrinterE: sub rsp, 68h mov [rsp+68h+var_8], rdi mov [rsp+68h+var_10], rsi mov rdx, [rsp+68h+var_8] mov [rsp+68h+var_68], rdx mov rsi, [rsp+68h+var_10] add rdx, 8 lea rdi, [rsp+68h+var_48] mov [rsp+68h+var_60], rdi call _ZN6google8protobuf8compiler3cpp9FormatterC2EPNS0_2io7PrinterERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESD_St4lessISD_ESaISt4pairIKSD_SD_EEE; google::protobuf::compiler::cpp::Formatter::Formatter(google::protobuf::io::Printer *,std::map<std::string,std::string> const&) mov rdi, [rsp+68h+var_60] lea rsi, aClassClassname_1; "class $classname$_Stub;\n\n" call _ZNK6google8protobuf8compiler3cpp9FormatterclIJEEEvPKcDpRKT_ jmp short $+2 loc_133F12: mov rdi, [rsp+68h+var_68]; this mov rsi, [rsp+68h+var_10]; google::protobuf::io::Printer * call _ZN6google8protobuf8compiler3cpp16ServiceGenerator17GenerateInterfaceEPNS0_2io7PrinterE; google::protobuf::compiler::cpp::ServiceGenerator::GenerateInterface(google::protobuf::io::Printer *) jmp short $+2 loc_133F22: mov rdi, [rsp+68h+var_68]; this mov rsi, [rsp+68h+var_10]; google::protobuf::io::Printer * call _ZN6google8protobuf8compiler3cpp16ServiceGenerator22GenerateStubDefinitionEPNS0_2io7PrinterE; google::protobuf::compiler::cpp::ServiceGenerator::GenerateStubDefinition(google::protobuf::io::Printer *) jmp short $+2 loc_133F32: lea rdi, [rsp+68h+var_48]; this call _ZN6google8protobuf8compiler3cpp9FormatterD2Ev; google::protobuf::compiler::cpp::Formatter::~Formatter() add rsp, 68h retn mov rcx, rax mov eax, edx mov [rsp+arg_10], rcx mov [rsp+arg_C], eax lea rdi, [rsp+arg_18]; this call _ZN6google8protobuf8compiler3cpp9FormatterD2Ev; google::protobuf::compiler::cpp::Formatter::~Formatter() mov rdi, [rsp+arg_10] call __Unwind_Resume
void google::protobuf::compiler::cpp::ServiceGenerator::GenerateDeclarations( google::protobuf::compiler::cpp::ServiceGenerator *this, google::protobuf::io::Printer *a2, long long a3, long long a4, long long a5, long long a6) { int v6; // edx int v7; // ecx int v8; // r8d int v9; // r9d _QWORD v10[7]; // [rsp+20h] [rbp-48h] BYREF google::protobuf::io::Printer *v11; // [rsp+58h] [rbp-10h] google::protobuf::compiler::cpp::ServiceGenerator *v12; // [rsp+60h] [rbp-8h] v12 = this; v11 = a2; google::protobuf::compiler::cpp::Formatter::Formatter(v10, (long long)a2, (long long)this + 8, a4, a5, a6); google::protobuf::compiler::cpp::Formatter::operator()<>( (unsigned int)v10, (unsigned int)"class $classname$_Stub;\n\n", v6, v7, v8, v9); google::protobuf::compiler::cpp::ServiceGenerator::GenerateInterface(this, v11); google::protobuf::compiler::cpp::ServiceGenerator::GenerateStubDefinition(this, v11); google::protobuf::compiler::cpp::Formatter::~Formatter((google::protobuf::compiler::cpp::Formatter *)v10); }
38,738
google::protobuf::compiler::cpp::ServiceGenerator::GenerateDeclarations(google::protobuf::io::Printer*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/cpp/service.cc
void ServiceGenerator::GenerateDeclarations(io::Printer* printer) { Formatter format(printer, vars_); // Forward-declare the stub type. format( "class $classname$_Stub;\n" "\n"); GenerateInterface(printer); GenerateStubDefinition(printer); }
O3
cpp
google::protobuf::compiler::cpp::ServiceGenerator::GenerateDeclarations(google::protobuf::io::Printer*): pushq %r15 pushq %r14 pushq %rbx subq $0x40, %rsp movq %rsi, %r14 movq %rdi, %r15 leaq 0x8(%rdi), %rsi leaq 0x10(%rsp), %rbx movq %r14, -0x8(%rbx) movq %rbx, %rdi callq 0x7e61e leaq 0x11a3d8(%rip), %rsi # 0x1b6e41 leaq 0x8(%rsp), %rdi callq 0x39938 movq %r15, %rdi movq %r14, %rsi callq 0x9caae movq %r15, %rdi movq %r14, %rsi callq 0x9cb58 movq %rbx, %rdi callq 0x2e5e0 addq $0x40, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %r14 movq %rbx, %rdi callq 0x2e5e0 movq %r14, %rdi callq 0x1f860
_ZN6google8protobuf8compiler3cpp16ServiceGenerator20GenerateDeclarationsEPNS0_2io7PrinterE: push r15 push r14 push rbx sub rsp, 40h mov r14, rsi mov r15, rdi lea rsi, [rdi+8] lea rbx, [rsp+58h+var_48] mov [rbx-8], r14 mov rdi, rbx call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EEC2ERKSE_; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::_Rb_tree(std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>> const&) lea rsi, aClassClassname_1; "class $classname$_Stub;\n\n" lea rdi, [rsp+58h+var_50] call _ZNK6google8protobuf8compiler3cpp9FormatterclIJEEEvPKcDpRKT_ mov rdi, r15; this mov rsi, r14; google::protobuf::io::Printer * call _ZN6google8protobuf8compiler3cpp16ServiceGenerator17GenerateInterfaceEPNS0_2io7PrinterE; google::protobuf::compiler::cpp::ServiceGenerator::GenerateInterface(google::protobuf::io::Printer *) mov rdi, r15; this mov rsi, r14; google::protobuf::io::Printer * call _ZN6google8protobuf8compiler3cpp16ServiceGenerator22GenerateStubDefinitionEPNS0_2io7PrinterE; google::protobuf::compiler::cpp::ServiceGenerator::GenerateStubDefinition(google::protobuf::io::Printer *) mov rdi, rbx call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree() add rsp, 40h pop rbx pop r14 pop r15 retn mov r14, rax mov rdi, rbx call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree() mov rdi, r14 call __Unwind_Resume
long long google::protobuf::compiler::cpp::ServiceGenerator::GenerateDeclarations( google::protobuf::compiler::cpp::ServiceGenerator *this, google::protobuf::io::Printer *a2) { long long result; // rax google::protobuf::io::Printer *v3; // [rsp+8h] [rbp-50h] BYREF _BYTE v4[72]; // [rsp+10h] [rbp-48h] BYREF v3 = a2; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::_Rb_tree( (long long)v4, (long long)this + 8); google::protobuf::compiler::cpp::Formatter::operator()<>(&v3, "class $classname$_Stub;\n\n"); google::protobuf::compiler::cpp::ServiceGenerator::GenerateInterface(this, a2); result = google::protobuf::compiler::cpp::ServiceGenerator::GenerateStubDefinition(this, a2); std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree((long long)v4); return result; }
GenerateDeclarations: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x40 MOV R14,RSI MOV R15,RDI LEA RSI,[RDI + 0x8] LEA RBX,[RSP + 0x10] MOV qword ptr [RBX + -0x8],R14 MOV RDI,RBX CALL 0x0017e61e LAB_0019ca62: LEA RSI,[0x2b6e41] LEA RDI,[RSP + 0x8] CALL 0x00139938 MOV RDI,R15 MOV RSI,R14 CALL 0x0019caae MOV RDI,R15 MOV RSI,R14 CALL 0x0019cb58 LAB_0019ca89: MOV RDI,RBX CALL 0x0012e5e0 ADD RSP,0x40 POP RBX POP R14 POP R15 RET
/* google::protobuf::compiler::cpp::ServiceGenerator::GenerateDeclarations(google::protobuf::io::Printer*) */ void __thiscall google::protobuf::compiler::cpp::ServiceGenerator::GenerateDeclarations (ServiceGenerator *this,Printer *param_1) { Printer *local_50; _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>> local_48 [48]; local_50 = param_1; std:: _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>> ::_Rb_tree(local_48,(_Rb_tree *)(this + 8)); /* try { // try from 0019ca62 to 0019ca88 has its CatchHandler @ 0019ca9b */ Formatter::operator()<>((Formatter *)&local_50,"class $classname$_Stub;\n\n"); GenerateInterface(this,param_1); GenerateStubDefinition(this,param_1); std:: _Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>> ::~_Rb_tree(local_48); return; }
38,739
nglog::LogDestination::WaitForSinks(nglog::internal::LogMessageData*)
ng-log[P]ng-log/src/logging.cc
inline void LogDestination::WaitForSinks(internal::LogMessageData* data) { std::shared_lock<SinkMutex> l{sink_mutex_}; if (sinks_) { for (size_t i = sinks_->size(); i-- > 0;) { (*sinks_)[i]->WaitTillSent(); } } const bool send_to_sink = (data->send_method_ == &LogMessage::SendToSink) || (data->send_method_ == &LogMessage::SendToSinkAndLog); if (send_to_sink && data->sink_ != nullptr) { data->sink_->WaitTillSent(); } }
O2
cpp
nglog::LogDestination::WaitForSinks(nglog::internal::LogMessageData*): pushq %r14 pushq %rbx subq $0x18, %rsp movq %rdi, %rbx leaq 0x20dfd(%rip), %rdi # 0x2ebb8 movq %rdi, 0x8(%rsp) movb $0x1, 0x10(%rsp) callq 0xf02c movq 0x20ddf(%rip), %rax # 0x2ebb0 testq %rax, %rax je 0xddfd movq 0x8(%rax), %r14 subq (%rax), %r14 sarq $0x3, %r14 subq $0x1, %r14 jb 0xddfd movq 0x20dc2(%rip), %rax # 0x2ebb0 movq (%rax), %rax movq (%rax,%r14,8), %rdi movq (%rdi), %rax callq *0x18(%rax) jmp 0xdde1 movq 0x76a0(%rbx), %rax cmpq 0x201e5(%rip), %rax # 0x2dff0 setne %cl cmpq 0x20193(%rip), %rax # 0x2dfa8 setne %al testb %al, %cl jne 0xde38 cmpq $0x0, 0x76a8(%rbx) jne 0xde38 movq 0x76b0(%rbx), %rdi testq %rdi, %rdi je 0xde38 movq (%rdi), %rax callq *0x18(%rax) leaq 0x8(%rsp), %rdi callq 0xf01c addq $0x18, %rsp popq %rbx popq %r14 retq jmp 0xde4c movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0xf01c movq %rbx, %rdi callq 0x7a00 nop
_ZN5nglog14LogDestination12WaitForSinksEPNS_8internal14LogMessageDataE: push r14 push rbx sub rsp, 18h mov rbx, rdi lea rdi, _ZN5nglog14LogDestination11sink_mutex_E; this mov [rsp+28h+var_20], rdi mov [rsp+28h+var_18], 1 call _ZNSt22__shared_mutex_pthread11lock_sharedEv; std::__shared_mutex_pthread::lock_shared(void) mov rax, cs:_ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_ test rax, rax jz short loc_DDFD mov r14, [rax+8] sub r14, [rax] sar r14, 3 loc_DDE1: sub r14, 1 jb short loc_DDFD mov rax, cs:_ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_ mov rax, [rax] mov rdi, [rax+r14*8] mov rax, [rdi] call qword ptr [rax+18h] jmp short loc_DDE1 loc_DDFD: mov rax, [rbx+76A0h] cmp rax, cs:_ZN5nglog10LogMessage10SendToSinkEv_ptr setnz cl cmp rax, cs:_ZN5nglog10LogMessage16SendToSinkAndLogEv_ptr setnz al test cl, al jnz short loc_DE38 cmp qword ptr [rbx+76A8h], 0 jnz short loc_DE38 mov rdi, [rbx+76B0h] test rdi, rdi jz short loc_DE38 mov rax, [rdi] call qword ptr [rax+18h] loc_DE38: lea rdi, [rsp+28h+var_20] call _ZNSt11shared_lockISt12shared_mutexED2Ev; std::shared_lock<std::shared_mutex>::~shared_lock() add rsp, 18h pop rbx pop r14 retn jmp short $+2 loc_DE4C: mov rbx, rax lea rdi, [rsp+arg_0] call _ZNSt11shared_lockISt12shared_mutexED2Ev; std::shared_lock<std::shared_mutex>::~shared_lock() mov rdi, rbx call __Unwind_Resume
long long nglog::LogDestination::WaitForSinks( nglog::LogDestination *this, nglog::internal::LogMessageData *a2) { long long i; // r14 long long v4; // rdi void *v6; // [rsp+8h] [rbp-20h] BYREF char v7; // [rsp+10h] [rbp-18h] v6 = &nglog::LogDestination::sink_mutex_; v7 = 1; std::__shared_mutex_pthread::lock_shared((std::__shared_mutex_pthread *)&nglog::LogDestination::sink_mutex_); if ( nglog::LogDestination::sinks_ ) { for ( i = (long long)(*(_QWORD *)(nglog::LogDestination::sinks_ + 8) - *(_QWORD *)nglog::LogDestination::sinks_) >> 3; i-- != 0; (*(void ( **)(_QWORD, nglog::internal::LogMessageData *))(**(_QWORD **)(*(_QWORD *)nglog::LogDestination::sinks_ + 8 * i) + 24LL))( *(_QWORD *)(*(_QWORD *)nglog::LogDestination::sinks_ + 8 * i), a2) ) { ; } } if ( (*((_QWORD *)this + 3796) == (_QWORD)nglog::LogMessage::SendToSinkAndLog || *((_QWORD *)this + 3796) == (_QWORD)nglog::LogMessage::SendToSink) && !*((_QWORD *)this + 3797) ) { v4 = *((_QWORD *)this + 3798); if ( v4 ) (*(void ( **)(long long, nglog::internal::LogMessageData *))(*(_QWORD *)v4 + 24LL))(v4, a2); } return std::shared_lock<std::shared_mutex>::~shared_lock(&v6, a2); }
WaitForSinks: PUSH R14 PUSH RBX SUB RSP,0x18 MOV RBX,RDI LEA RDI,[0x12ebb8] MOV qword ptr [RSP + 0x8],RDI MOV byte ptr [RSP + 0x10],0x1 CALL 0x0010f02c MOV RAX,qword ptr [0x0012ebb0] TEST RAX,RAX JZ 0x0010ddfd MOV R14,qword ptr [RAX + 0x8] SUB R14,qword ptr [RAX] SAR R14,0x3 LAB_0010dde1: SUB R14,0x1 JC 0x0010ddfd MOV RAX,qword ptr [0x0012ebb0] MOV RAX,qword ptr [RAX] MOV RDI,qword ptr [RAX + R14*0x8] MOV RAX,qword ptr [RDI] LAB_0010ddf8: CALL qword ptr [RAX + 0x18] JMP 0x0010dde1 LAB_0010ddfd: MOV RAX,qword ptr [RBX + 0x76a0] CMP RAX,qword ptr [0x0012dff0] SETNZ CL CMP RAX,qword ptr [0x0012dfa8] SETNZ AL TEST CL,AL JNZ 0x0010de38 CMP qword ptr [RBX + 0x76a8],0x0 JNZ 0x0010de38 MOV RDI,qword ptr [RBX + 0x76b0] TEST RDI,RDI JZ 0x0010de38 MOV RAX,qword ptr [RDI] LAB_0010de35: CALL qword ptr [RAX + 0x18] LAB_0010de38: LEA RDI,[RSP + 0x8] CALL 0x0010f01c ADD RSP,0x18 POP RBX POP R14 RET
/* nglog::LogDestination::WaitForSinks(nglog::internal::LogMessageData*) */ void nglog::LogDestination::WaitForSinks(LogMessageData *param_1) { long lVar1; bool bVar2; int1 *local_20; int1 local_18; local_20 = sink_mutex_; local_18 = 1; std::__shared_mutex_pthread::lock_shared((__shared_mutex_pthread *)sink_mutex_); if (sinks_ != (long *)0x0) { lVar1 = sinks_[1] - *sinks_ >> 3; while (bVar2 = lVar1 != 0, lVar1 = lVar1 + -1, bVar2) { /* try { // try from 0010ddf8 to 0010ddfa has its CatchHandler @ 0010de4c */ (**(code **)(**(long **)(*sinks_ + lVar1 * 8) + 0x18))(); } } if (((*(int **)(param_1 + 0x76a0) == PTR_SendToSink_0012dff0 || *(int **)(param_1 + 0x76a0) == PTR_SendToSinkAndLog_0012dfa8) && (*(long *)(param_1 + 0x76a8) == 0)) && (*(long **)(param_1 + 0x76b0) != (long *)0x0)) { /* try { // try from 0010de35 to 0010de37 has its CatchHandler @ 0010de4a */ (**(code **)(**(long **)(param_1 + 0x76b0) + 0x18))(); } std::shared_lock<std::shared_mutex>::~shared_lock((shared_lock<std::shared_mutex> *)&local_20); return; }
38,740
testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::GetOrCreateValue() const
seiftnesse[P]memoryallocator/build_O2/_deps/googletest-src/googletest/include/gtest/internal/gtest-port.h
T* GetOrCreateValue() const { ThreadLocalValueHolderBase* const holder = static_cast<ThreadLocalValueHolderBase*>(pthread_getspecific(key_)); if (holder != nullptr) { return CheckedDowncastToActualType<ValueHolder>(holder)->pointer(); } ValueHolder* const new_holder = default_factory_->MakeNewHolder(); ThreadLocalValueHolderBase* const holder_base = new_holder; GTEST_CHECK_POSIX_SUCCESS_(pthread_setspecific(key_, holder_base)); return new_holder->pointer(); }
O2
c
testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::GetOrCreateValue() const: pushq %rbp pushq %r14 pushq %rbx subq $0x10, %rsp movq %rdi, %r14 movl (%rdi), %edi callq 0x98b0 testq %rax, %rax je 0x2da9c movq %rax, %rdi callq 0x2db2e movq %rax, %rbx jmp 0x2db09 movq 0x8(%r14), %rdi movq (%rdi), %rax callq *0x10(%rax) movq %rax, %rbx movl (%r14), %edi movq %rax, %rsi callq 0x90f0 testl %eax, %eax je 0x2db09 movl %eax, %ebp leaq 0x67b0(%rip), %rdx # 0x34271 leaq 0xc(%rsp), %rdi pushq $0x3 popq %rsi movl $0x6f5, %ecx # imm = 0x6F5 callq 0x14baa movq 0x1f50e(%rip), %rdi # 0x4cfe8 leaq 0x6a94(%rip), %rsi # 0x34575 callq 0x94b0 leaq 0x6832(%rip), %rsi # 0x3431f movq %rax, %rdi callq 0x94b0 movq %rax, %rdi movl %ebp, %esi callq 0x99b0 leaq 0xc(%rsp), %rdi callq 0x14c6e addq $0x8, %rbx movq %rbx, %rax addq $0x10, %rsp popq %rbx popq %r14 popq %rbp retq movq %rax, %rbx leaq 0xc(%rsp), %rdi callq 0x14c6e movq %rbx, %rdi callq 0x99d0
_ZNK7testing8internal11ThreadLocalIPNS_31TestPartResultReporterInterfaceEE16GetOrCreateValueEv: push rbp push r14 push rbx sub rsp, 10h mov r14, rdi mov edi, [rdi] call _pthread_getspecific test rax, rax jz short loc_2DA9C mov rdi, rax; lpsrc call _ZN7testing8internal27CheckedDowncastToActualTypeINS0_11ThreadLocalIPNS_31TestPartResultReporterInterfaceEE11ValueHolderENS0_26ThreadLocalValueHolderBaseEEEPT_PT0_; testing::internal::CheckedDowncastToActualType<testing::internal::ThreadLocal<testing::TestPartResultReporterInterface *>::ValueHolder,testing::internal::ThreadLocalValueHolderBase>(testing::internal::ThreadLocalValueHolderBase *) mov rbx, rax jmp short loc_2DB09 loc_2DA9C: mov rdi, [r14+8] mov rax, [rdi] call qword ptr [rax+10h] mov rbx, rax mov edi, [r14] mov rsi, rax call _pthread_setspecific test eax, eax jz short loc_2DB09 mov ebp, eax lea rdx, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"... lea rdi, [rsp+28h+var_1C] push 3 pop rsi mov ecx, 6F5h call _ZN7testing8internal8GTestLogC2ENS0_16GTestLogSeverityEPKci; testing::internal::GTestLog::GTestLog(testing::internal::GTestLogSeverity,char const*,int) mov rdi, cs:_ZSt4cerr_ptr lea rsi, aPthreadSetspec_0; "pthread_setspecific(key_, holder_base)" call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) lea rsi, aFailedWithErro; "failed with error " mov rdi, rax call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov rdi, rax mov esi, ebp call __ZNSolsEi; std::ostream::operator<<(int) lea rdi, [rsp+28h+var_1C]; this call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog() loc_2DB09: add rbx, 8 mov rax, rbx add rsp, 10h pop rbx pop r14 pop rbp retn mov rbx, rax lea rdi, [rsp+arg_4]; this call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog() mov rdi, rbx call __Unwind_Resume
long long testing::internal::ThreadLocal<testing::TestPartResultReporterInterface *>::GetOrCreateValue( unsigned int *a1) { void *v1; // rax long long v2; // rbx unsigned int v3; // eax unsigned int v4; // ebp long long v5; // rax long long v6; // rax _DWORD v8[7]; // [rsp+Ch] [rbp-1Ch] BYREF v1 = (void *)pthread_getspecific(*a1); if ( v1 ) { v2 = testing::internal::CheckedDowncastToActualType<testing::internal::ThreadLocal<testing::TestPartResultReporterInterface *>::ValueHolder,testing::internal::ThreadLocalValueHolderBase>(v1); } else { v2 = (*(long long ( **)(_QWORD))(**((_QWORD **)a1 + 1) + 16LL))(*((_QWORD *)a1 + 1)); v3 = pthread_setspecific(*a1, v2); if ( v3 ) { v4 = v3; testing::internal::GTestLog::GTestLog( v8, 3, "/workspace/llm4binary/github/2025_star3/seiftnesse[P]memoryallocator/build_O2/_deps/googletest-src/googletest/in" "clude/gtest/internal/gtest-port.h", 1781); v5 = std::operator<<<std::char_traits<char>>(&std::cerr, "pthread_setspecific(key_, holder_base)"); v6 = std::operator<<<std::char_traits<char>>(v5, "failed with error "); std::ostream::operator<<(v6, v4); testing::internal::GTestLog::~GTestLog((testing::internal::GTestLog *)v8); } } return v2 + 8; }
GetOrCreateValue: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x10 MOV R14,RDI MOV EDI,dword ptr [RDI] CALL 0x001098b0 TEST RAX,RAX JZ 0x0012da9c MOV RDI,RAX CALL 0x0012db2e MOV RBX,RAX JMP 0x0012db09 LAB_0012da9c: MOV RDI,qword ptr [R14 + 0x8] MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x10] MOV RBX,RAX MOV EDI,dword ptr [R14] MOV RSI,RAX CALL 0x001090f0 TEST EAX,EAX JZ 0x0012db09 MOV EBP,EAX LEA RDX,[0x134271] LEA RDI,[RSP + 0xc] PUSH 0x3 POP RSI MOV ECX,0x6f5 CALL 0x00114baa LAB_0012dad3: MOV RDI,qword ptr [0x0014cfe8] LEA RSI,[0x134575] CALL 0x001094b0 LEA RSI,[0x13431f] MOV RDI,RAX CALL 0x001094b0 MOV RDI,RAX MOV ESI,EBP CALL 0x001099b0 LAB_0012daff: LEA RDI,[RSP + 0xc] CALL 0x00114c6e LAB_0012db09: ADD RBX,0x8 MOV RAX,RBX ADD RSP,0x10 POP RBX POP R14 POP RBP RET
/* testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::GetOrCreateValue() const */ ValueHolder * __thiscall testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::GetOrCreateValue (ThreadLocal<testing::TestPartResultReporterInterface*> *this) { int iVar1; ThreadLocalValueHolderBase *pTVar2; ValueHolder *__pointer; ostream *poVar3; GTestLog local_1c [4]; pTVar2 = (ThreadLocalValueHolderBase *)pthread_getspecific(*(pthread_key_t *)this); if (pTVar2 == (ThreadLocalValueHolderBase *)0x0) { __pointer = (ValueHolder *)(**(code **)(**(long **)(this + 8) + 0x10))(); iVar1 = pthread_setspecific(*(pthread_key_t *)this,__pointer); if (iVar1 != 0) { GTestLog::GTestLog(local_1c,3, "/workspace/llm4binary/github/2025_star3/seiftnesse[P]memoryallocator/build_O2/_deps/googletest-src/googletest/include/gtest/internal/gtest-port.h" ,0x6f5); /* try { // try from 0012dad3 to 0012dafe has its CatchHandler @ 0012db19 */ poVar3 = std::operator<<((ostream *)PTR_cerr_0014cfe8,"pthread_setspecific(key_, holder_base)" ); poVar3 = std::operator<<(poVar3,"failed with error "); std::ostream::operator<<(poVar3,iVar1); GTestLog::~GTestLog(local_1c); } } else { __pointer = CheckedDowncastToActualType<testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::ValueHolder,testing::internal::ThreadLocalValueHolderBase> (pTVar2); } return __pointer + 8; }
38,741
JS_GetAnyOpaque
bluesky950520[P]quickjs/quickjs.c
void *JS_GetAnyOpaque(JSValue obj, JSClassID *class_id) { JSObject *p; if (JS_VALUE_GET_TAG(obj) != JS_TAG_OBJECT) { *class_id = 0; return NULL; } p = JS_VALUE_GET_OBJ(obj); *class_id = p->class_id; return p->u.opaque; }
O0
c
JS_GetAnyOpaque: movq %rdi, -0x18(%rsp) movq %rsi, -0x10(%rsp) movq %rdx, -0x20(%rsp) movq -0x10(%rsp), %rax cmpl $-0x1, %eax je 0x384bf movq -0x20(%rsp), %rax movl $0x0, (%rax) movq $0x0, -0x8(%rsp) jmp 0x384e7 movq -0x18(%rsp), %rax movq %rax, -0x28(%rsp) movq -0x28(%rsp), %rax movzwl 0x6(%rax), %ecx movq -0x20(%rsp), %rax movl %ecx, (%rax) movq -0x28(%rsp), %rax movq 0x30(%rax), %rax movq %rax, -0x8(%rsp) movq -0x8(%rsp), %rax retq nopl (%rax)
JS_GetAnyOpaque: mov [rsp+var_18], rdi mov [rsp+var_10], rsi mov [rsp+var_20], rdx mov rax, [rsp+var_10] cmp eax, 0FFFFFFFFh jz short loc_384BF mov rax, [rsp+var_20] mov dword ptr [rax], 0 mov [rsp+var_8], 0 jmp short loc_384E7 loc_384BF: mov rax, [rsp+var_18] mov [rsp+var_28], rax mov rax, [rsp+var_28] movzx ecx, word ptr [rax+6] mov rax, [rsp+var_20] mov [rax], ecx mov rax, [rsp+var_28] mov rax, [rax+30h] mov [rsp+var_8], rax loc_384E7: mov rax, [rsp+var_8] retn
long long JS_GetAnyOpaque(long long a1, int a2, _DWORD *a3) { if ( a2 == -1 ) { *a3 = *(unsigned __int16 *)(a1 + 6); return *(_QWORD *)(a1 + 48); } else { *a3 = 0; return 0LL; } }
JS_GetAnyOpaque: MOV qword ptr [RSP + -0x18],RDI MOV qword ptr [RSP + -0x10],RSI MOV qword ptr [RSP + -0x20],RDX MOV RAX,qword ptr [RSP + -0x10] CMP EAX,-0x1 JZ 0x001384bf MOV RAX,qword ptr [RSP + -0x20] MOV dword ptr [RAX],0x0 MOV qword ptr [RSP + -0x8],0x0 JMP 0x001384e7 LAB_001384bf: MOV RAX,qword ptr [RSP + -0x18] MOV qword ptr [RSP + -0x28],RAX MOV RAX,qword ptr [RSP + -0x28] MOVZX ECX,word ptr [RAX + 0x6] MOV RAX,qword ptr [RSP + -0x20] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RSP + -0x28] MOV RAX,qword ptr [RAX + 0x30] MOV qword ptr [RSP + -0x8],RAX LAB_001384e7: MOV RAX,qword ptr [RSP + -0x8] RET
int8 JS_GetAnyOpaque(long param_1,int param_2,uint *param_3) { int8 local_8; if (param_2 == -1) { *param_3 = (uint)*(ushort *)(param_1 + 6); local_8 = *(int8 *)(param_1 + 0x30); } else { *param_3 = 0; local_8 = 0; } return local_8; }
38,742
JS_GetAnyOpaque
bluesky950520[P]quickjs/quickjs.c
void *JS_GetAnyOpaque(JSValue obj, JSClassID *class_id) { JSObject *p; if (JS_VALUE_GET_TAG(obj) != JS_TAG_OBJECT) { *class_id = 0; return NULL; } p = JS_VALUE_GET_OBJ(obj); *class_id = p->class_id; return p->u.opaque; }
O1
c
JS_GetAnyOpaque: movq %rdi, -0x8(%rsp) cmpl $-0x1, %esi jne 0x2764a movq -0x8(%rsp), %rax movzwl 0x6(%rax), %ecx movl %ecx, (%rdx) movq 0x30(%rax), %rax retq movl $0x0, (%rdx) xorl %eax, %eax retq
JS_GetAnyOpaque: mov [rsp+var_8], rdi cmp esi, 0FFFFFFFFh jnz short loc_2764A mov rax, [rsp+var_8] movzx ecx, word ptr [rax+6] mov [rdx], ecx mov rax, [rax+30h] retn loc_2764A: mov dword ptr [rdx], 0 xor eax, eax retn
long long JS_GetAnyOpaque(long long a1, int a2, _DWORD *a3) { if ( a2 == -1 ) { *a3 = *(unsigned __int16 *)(a1 + 6); return *(_QWORD *)(a1 + 48); } else { *a3 = 0; return 0LL; } }
JS_GetAnyOpaque: MOV qword ptr [RSP + -0x8],RDI CMP ESI,-0x1 JNZ 0x0012764a MOV RAX,qword ptr [RSP + -0x8] MOVZX ECX,word ptr [RAX + 0x6] MOV dword ptr [RDX],ECX MOV RAX,qword ptr [RAX + 0x30] RET LAB_0012764a: MOV dword ptr [RDX],0x0 XOR EAX,EAX RET
int8 JS_GetAnyOpaque(long param_1,int param_2,uint *param_3) { if (param_2 == -1) { *param_3 = (uint)*(ushort *)(param_1 + 6); return *(int8 *)(param_1 + 0x30); } *param_3 = 0; return 0; }
38,743
common_chat_verify_template(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool)
monkey531[P]llama/common/common.cpp
bool common_chat_verify_template(const std::string & tmpl, bool use_jinja) { if (use_jinja) { try { auto chat_template = common_chat_template(tmpl, "<s>", "</s>"); common_chat_inputs inputs; inputs.messages = json::array({{ {"role", "user"}, {"content", "test"}, }}); common_chat_params_init(chat_template, inputs); return true; } catch (const std::exception & e) { LOG_ERR("%s: failed to apply template: %s\n", __func__, e.what()); return false; } } llama_chat_message chat[] = {{"user", "test"}}; const int res = llama_chat_apply_template(tmpl.c_str(), chat, 1, true, nullptr, 0); return res >= 0; }
O2
cpp
common_chat_verify_template(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x240, %rsp # imm = 0x240 movq %rdi, %rbx testl %esi, %esi je 0x56365 leaq 0x5c09e(%rip), %rsi # 0xb2236 leaq 0xc0(%rsp), %rdi leaq 0x80(%rsp), %rdx callq 0x26f76 leaq 0x5c086(%rip), %rsi # 0xb223a leaq 0x8(%rsp), %rdi leaq 0x50(%rsp), %rdx callq 0x26f76 leaq 0x130(%rsp), %rdi leaq 0xc0(%rsp), %rdx leaq 0x8(%rsp), %rcx movq %rbx, %rsi callq 0x58654 leaq 0x8(%rsp), %rdi callq 0x241d8 leaq 0xc0(%rsp), %rdi callq 0x241d8 leaq 0xc0(%rsp), %rdi callq 0x5bbf2 leaq 0x5c034(%rip), %rsi # 0xb223f leaq 0x80(%rsp), %rdi callq 0x5bc4a leaq 0x98(%rsp), %rdi leaq 0x5c01d(%rip), %rsi # 0xb2244 callq 0x5bc4a leaq 0x8(%rsp), %r15 leaq 0x80(%rsp), %rsi pushq $0x2 popq %rdx movq %r15, %rdi callq 0x5bc5a leaq 0x20(%rsp), %r15 leaq 0x5bff9(%rip), %rsi # 0xb2249 leaq 0x50(%rsp), %rdi callq 0x5bc72 leaq 0x68(%rsp), %rdi leaq 0x5bfeb(%rip), %rsi # 0xb2251 callq 0x5bc4a leaq 0x50(%rsp), %rsi pushq $0x2 popq %rdx movq %r15, %rdi callq 0x5bc5a leaq 0x38(%rsp), %rdi leaq 0x8(%rsp), %rsi pushq $0x2 popq %rdx callq 0x5bc5a leaq 0xb0(%rsp), %rdi leaq 0x38(%rsp), %rsi pushq $0x1 popq %rdx callq 0x5bc36 leaq 0xc0(%rsp), %rdi leaq 0xb0(%rsp), %rbx movq %rbx, %rsi callq 0x3f8ba movq %rbx, %rdi callq 0x3cd34 leaq 0x38(%rsp), %rdi callq 0x3cd34 pushq $0x18 popq %rbx leaq (%rsp,%rbx), %rdi addq $0x8, %rdi callq 0x3cd34 addq $-0x18, %rbx cmpq $-0x18, %rbx jne 0x562cf pushq $0x18 popq %rbx leaq (%rsp,%rbx), %rdi addq $0x50, %rdi callq 0x3cd34 addq $-0x18, %rbx cmpq $-0x18, %rbx jne 0x562e9 pushq $0x18 popq %rbx leaq (%rsp,%rbx), %rdi addq $0x80, %rdi callq 0x3cd34 addq $-0x18, %rbx cmpq $-0x18, %rbx jne 0x56303 leaq 0x1b8(%rsp), %rdi leaq 0x130(%rsp), %rsi leaq 0xc0(%rsp), %rdx callq 0x99822 leaq 0x1b8(%rsp), %rdi callq 0x5bc82 leaq 0xc0(%rsp), %rdi callq 0x5bcb8 leaq 0x130(%rsp), %rdi callq 0x5bcea movb $0x1, %al jmp 0x56390 movaps 0xa3ed4(%rip), %xmm0 # 0xfa240 leaq 0x130(%rsp), %rsi movaps %xmm0, (%rsi) movq (%rbx), %rdi pushq $0x1 popq %rdx pushq $0x1 popq %rcx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x23d40 testl %eax, %eax setns %al addq $0x240, %rsp # imm = 0x240 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq jmp 0x56479 movq %rdx, %r14 movq %rax, %rbx leaq 0x38(%rsp), %rdi callq 0x3cd34 jmp 0x563bd movq %rdx, %r14 movq %rax, %rbx pushq $0x18 popq %r12 leaq (%rsp,%r12), %rdi addq $0x8, %rdi callq 0x3cd34 addq $-0x18, %r12 cmpq $-0x18, %r12 jne 0x563c1 xorl %ebp, %ebp jmp 0x563e5 movq %rdx, %r14 movq %rax, %rbx movb $0x1, %bpl pushq $0x18 popq %r12 leaq (%rsp,%r12), %rdi addq $0x50, %rdi callq 0x3cd34 addq $-0x18, %r12 cmpq $-0x18, %r12 jne 0x563e9 jmp 0x5641f movq %rdx, %r14 movq %rax, %rbx leaq 0x50(%rsp), %rdi callq 0x3cd34 jmp 0x5641c jmp 0x56416 movq %rdx, %r14 movq %rax, %rbx movb $0x1, %bpl pushq $0x18 popq %r12 leaq (%rsp,%r12), %rdi addq $0x80, %rdi callq 0x3cd34 addq $-0x18, %r12 cmpq $-0x18, %r12 jne 0x56423 leaq 0x8(%rsp), %r12 cmpq %r15, %r12 setne %al andb %al, %bpl cmpb $0x1, %bpl jne 0x5647f addq $-0x18, %r15 movq %r15, %rdi callq 0x3cd34 cmpq %r12, %r15 jne 0x56451 jmp 0x5647f movq %rdx, %r14 movq %rax, %rbx leaq 0x80(%rsp), %rdi callq 0x3cd34 jmp 0x5647f movq %rdx, %r14 movq %rax, %rbx leaq 0xc0(%rsp), %rdi callq 0x5bcb8 leaq 0x130(%rsp), %rdi callq 0x5bcea cmpl $0x1, %r14d jne 0x564f9 movq %rbx, %rdi callq 0x23380 movq %rax, %r14 leaq 0xa6f97(%rip), %rax # 0xfd448 cmpl $0x0, (%rax) js 0x564e5 callq 0x95f0e movq %rax, %rbx movq (%r14), %rax movq %r14, %rdi callq *0x10(%rax) leaq 0x5bd88(%rip), %rdx # 0xb2256 leaq 0x5bda3(%rip), %rcx # 0xb2278 pushq $0x4 popq %rsi movq %rbx, %rdi movq %rax, %r8 xorl %eax, %eax callq 0x95fa6 callq 0x23e70 xorl %eax, %eax jmp 0x56390 movq %rax, %rbx callq 0x23e70 movq %rbx, %rdi callq 0x23fa0 movq %rax, %rdi callq 0x27215 movq %rdx, %r14 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x241d8 jmp 0x56521 movq %rdx, %r14 movq %rax, %rbx leaq 0xc0(%rsp), %rdi callq 0x241d8 jmp 0x56499 movq %rdx, %r14 movq %rax, %rbx jmp 0x56499
_Z27common_chat_verify_templateRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb: push rbp; int push r15; int push r14; int push r12; char push rbx; int sub rsp, 240h mov rbx, rdi test esi, esi jz loc_56365 lea rsi, aS_0; "<s>" lea rdi, [rsp+268h+var_1A8] lea rdx, [rsp+268h+var_1E8] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rsi, aS_1; "</s>" lea rdi, [rsp+268h+var_260] lea rdx, [rsp+268h+var_218] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rdi, [rsp+268h+var_138]; int lea rdx, [rsp+268h+var_1A8]; int lea rcx, [rsp+268h+var_260]; int mov rsi, rbx; int call _ZN5minja13chat_templateC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_; minja::chat_template::chat_template(std::string const&,std::string const&,std::string const&) lea rdi, [rsp+268h+var_260]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+268h+var_1A8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+268h+var_1A8]; this call _ZN18common_chat_inputsC2Ev; common_chat_inputs::common_chat_inputs(void) lea rsi, aRole; "role" lea rdi, [rsp+268h+var_1E8] call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ lea rdi, [rsp+268h+var_1D0] lea rsi, aUser; "user" call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ lea r15, [rsp+268h+var_260] lea rsi, [rsp+268h+var_1E8] push 2 pop rdx mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ESt16initializer_listISG_E; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::json_ref(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>) lea r15, [rsp+268h+var_248] lea rsi, aContent; "content" lea rdi, [rsp+268h+var_218] call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA8_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ lea rdi, [rsp+268h+var_200] lea rsi, aTest; "test" call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ lea rsi, [rsp+268h+var_218] push 2 pop rdx mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ESt16initializer_listISG_E; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::json_ref(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>) lea rdi, [rsp+268h+var_230] lea rsi, [rsp+268h+var_260] push 2 pop rdx call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ESt16initializer_listISG_E; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::json_ref(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>) lea rdi, [rsp+268h+var_1B8] lea rsi, [rsp+268h+var_230] push 1 pop rdx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5arrayESt16initializer_listINS0_6detail8json_refISD_EEE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::array(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>) lea rdi, [rsp+268h+var_1A8] lea rbx, [rsp+268h+var_1B8] mov rsi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() lea rdi, [rsp+268h+var_230] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() push 18h pop rbx loc_562CF: lea rdi, [rsp+rbx+268h+var_268] add rdi, 8 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() add rbx, 0FFFFFFFFFFFFFFE8h cmp rbx, 0FFFFFFFFFFFFFFE8h jnz short loc_562CF push 18h pop rbx loc_562E9: lea rdi, [rsp+rbx+268h+var_268] add rdi, 50h ; 'P' call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() add rbx, 0FFFFFFFFFFFFFFE8h cmp rbx, 0FFFFFFFFFFFFFFE8h jnz short loc_562E9 push 18h pop rbx loc_56303: lea rdi, [rsp+rbx+268h+var_268] add rdi, 80h call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() add rbx, 0FFFFFFFFFFFFFFE8h cmp rbx, 0FFFFFFFFFFFFFFE8h jnz short loc_56303 lea rdi, [rsp+268h+var_B0]; this lea rsi, [rsp+268h+var_138]; common_chat_inputs * lea rdx, [rsp+268h+var_1A8] call _Z23common_chat_params_initRKN5minja13chat_templateERK18common_chat_inputs; common_chat_params_init(minja::chat_template const&,common_chat_inputs const&) lea rdi, [rsp+268h+var_B0]; this call _ZN18common_chat_paramsD2Ev; common_chat_params::~common_chat_params() lea rdi, [rsp+268h+var_1A8]; this call _ZN18common_chat_inputsD2Ev; common_chat_inputs::~common_chat_inputs() lea rdi, [rsp+268h+var_138]; this call _ZN5minja13chat_templateD2Ev; minja::chat_template::~chat_template() mov al, 1 jmp short loc_56390 loc_56365: movaps xmm0, xmmword ptr cs:off_FA240; "user" lea rsi, [rsp+268h+var_138] movaps xmmword ptr [rsi], xmm0 mov rdi, [rbx] push 1 pop rdx push 1 pop rcx xor r8d, r8d xor r9d, r9d call _llama_chat_apply_template test eax, eax setns al loc_56390: add rsp, 240h pop rbx pop r12 pop r14 pop r15 pop rbp retn jmp loc_56479 mov r14, rdx mov rbx, rax lea rdi, [rsp+268h+var_230] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() jmp short loc_563BD mov r14, rdx mov rbx, rax loc_563BD: push 18h pop r12 loc_563C1: lea rdi, [rsp+r12+268h+var_268] add rdi, 8 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() add r12, 0FFFFFFFFFFFFFFE8h cmp r12, 0FFFFFFFFFFFFFFE8h jnz short loc_563C1 xor ebp, ebp jmp short loc_563E5 mov r14, rdx mov rbx, rax mov bpl, 1 loc_563E5: push 18h pop r12 loc_563E9: lea rdi, [rsp+r12+268h+var_268] add rdi, 50h ; 'P' call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() add r12, 0FFFFFFFFFFFFFFE8h cmp r12, 0FFFFFFFFFFFFFFE8h jnz short loc_563E9 jmp short loc_5641F mov r14, rdx mov rbx, rax lea rdi, [rsp+268h+var_218] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() jmp short loc_5641C jmp short $+2 loc_56416: mov r14, rdx mov rbx, rax loc_5641C: mov bpl, 1 loc_5641F: push 18h pop r12 loc_56423: lea rdi, [rsp+r12+268h+var_268] add rdi, 80h call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() add r12, 0FFFFFFFFFFFFFFE8h cmp r12, 0FFFFFFFFFFFFFFE8h jnz short loc_56423 lea r12, [rsp+268h+var_260] cmp r12, r15 setnz al and bpl, al cmp bpl, 1 jnz short loc_5647F loc_56451: add r15, 0FFFFFFFFFFFFFFE8h mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() cmp r15, r12 jnz short loc_56451 jmp short loc_5647F mov r14, rdx mov rbx, rax lea rdi, [rsp+268h+var_1E8] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() jmp short loc_5647F loc_56479: mov r14, rdx mov rbx, rax loc_5647F: lea rdi, [rsp+268h+var_1A8]; this call _ZN18common_chat_inputsD2Ev; common_chat_inputs::~common_chat_inputs() lea rdi, [rsp+268h+var_138]; this call _ZN5minja13chat_templateD2Ev; minja::chat_template::~chat_template() loc_56499: cmp r14d, 1 jnz short loc_564F9 mov rdi, rbx; void * call ___cxa_begin_catch mov r14, rax lea rax, common_log_verbosity_thold cmp dword ptr [rax], 0 js short loc_564E5 call _Z15common_log_mainv; common_log_main(void) mov rbx, rax mov rax, [r14] mov rdi, r14 call qword ptr [rax+10h] lea rdx, aSFailedToApply_0; "%s: failed to apply template: %s\n" lea rcx, aCommonChatVeri; "common_chat_verify_template" push 4 pop rsi mov rdi, rbx mov r8, rax xor eax, eax call _Z14common_log_addP10common_log14ggml_log_levelPKcz; common_log_add(common_log *,ggml_log_level,char const*,...) loc_564E5: call ___cxa_end_catch xor eax, eax jmp loc_56390 mov rbx, rax call ___cxa_end_catch loc_564F9: mov rdi, rbx call __Unwind_Resume mov rdi, rax call __clang_call_terminate mov r14, rdx mov rbx, rax lea rdi, [rsp+268h+var_260]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_56521 mov r14, rdx mov rbx, rax loc_56521: lea rdi, [rsp+268h+var_1A8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp loc_56499 mov r14, rdx mov rbx, rax jmp loc_56499
bool common_chat_verify_template(_QWORD *a1, int a2) { long long i; // rbx long long j; // rbx long long k; // rbx _QWORD v6[3]; // [rsp+8h] [rbp-260h] BYREF _BYTE v7[24]; // [rsp+20h] [rbp-248h] BYREF _BYTE v8[24]; // [rsp+38h] [rbp-230h] BYREF _BYTE v9[24]; // [rsp+50h] [rbp-218h] BYREF _BYTE v10[24]; // [rsp+68h] [rbp-200h] BYREF _BYTE v11[24]; // [rsp+80h] [rbp-1E8h] BYREF _BYTE v12[24]; // [rsp+98h] [rbp-1D0h] BYREF _BYTE v13[16]; // [rsp+B0h] [rbp-1B8h] BYREF _QWORD v14[14]; // [rsp+C0h] [rbp-1A8h] BYREF _OWORD v15[8]; // [rsp+130h] [rbp-138h] BYREF _BYTE v16[176]; // [rsp+1B8h] [rbp-B0h] BYREF if ( a2 ) { std::string::basic_string<std::allocator<char>>(v14, (long long)"<s>"); std::string::basic_string<std::allocator<char>>(v6, (long long)"</s>"); minja::chat_template::chat_template(v15, a1, v14, v6); std::string::~string(v6); std::string::~string(v14); common_chat_inputs::common_chat_inputs((common_chat_inputs *)v14); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_( v11, "role"); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_( v12, "user"); nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::json_ref( v6, v11, 2LL); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA8_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_( v9, "content"); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_( v10, "test"); nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::json_ref( v7, v9, 2LL); nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::json_ref( v8, v6, 2LL); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::array( v13, v8, 1LL); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=( (long long)v14, (long long)v13); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v13); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v8); for ( i = 3LL; i != -3; i -= 3LL ) nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)&v6[i]); for ( j = 24LL; j != -24; j -= 24LL ) nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)&v9[j]); for ( k = 24LL; k != -24; k -= 24LL ) nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)&v11[k]); common_chat_params_init((const minja::chat_template *)v16, (const common_chat_inputs *)v15); common_chat_params::~common_chat_params((common_chat_params *)v16); common_chat_inputs::~common_chat_inputs((common_chat_inputs *)v14); minja::chat_template::~chat_template((minja::chat_template *)v15); return 1; } else { v15[0] = *(_OWORD *)off_FA240; return (int)llama_chat_apply_template(*a1, v15, 1LL, 1LL, 0LL, 0LL) >= 0; } }
common_chat_verify_template: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x240 MOV RBX,RDI TEST ESI,ESI JZ 0x00156365 LAB_00156191: LEA RSI,[0x1b2236] LEA RDI,[RSP + 0xc0] LEA RDX,[RSP + 0x80] CALL 0x00126f76 LAB_001561ad: LEA RSI,[0x1b223a] LEA RDI,[RSP + 0x8] LEA RDX,[RSP + 0x50] CALL 0x00126f76 LAB_001561c3: LEA RDI,[RSP + 0x130] LEA RDX,[RSP + 0xc0] LEA RCX,[RSP + 0x8] MOV RSI,RBX CALL 0x00158654 LEA RDI,[RSP + 0x8] CALL 0x001241d8 LEA RDI,[RSP + 0xc0] CALL 0x001241d8 LEA RDI,[RSP + 0xc0] CALL 0x0015bbf2 LAB_00156204: LEA RSI,[0x1b223f] LEA RDI,[RSP + 0x80] CALL 0x0015bc4a LEA RDI,[RSP + 0x98] LAB_00156220: LEA RSI,[0x1b2244] CALL 0x0015bc4a LAB_0015622c: LEA R15,[RSP + 0x8] LEA RSI,[RSP + 0x80] PUSH 0x2 POP RDX MOV RDI,R15 CALL 0x0015bc5a LEA R15,[RSP + 0x20] LAB_00156249: LEA RSI,[0x1b2249] LEA RDI,[RSP + 0x50] CALL 0x0015bc72 LEA RDI,[RSP + 0x68] LAB_0015625f: LEA RSI,[0x1b2251] CALL 0x0015bc4a LAB_0015626b: LEA RSI,[RSP + 0x50] PUSH 0x2 POP RDX MOV RDI,R15 CALL 0x0015bc5a LAB_0015627b: LEA RDI,[RSP + 0x38] LEA RSI,[RSP + 0x8] PUSH 0x2 POP RDX CALL 0x0015bc5a LAB_0015628d: LEA RDI,[RSP + 0xb0] LEA RSI,[RSP + 0x38] PUSH 0x1 POP RDX CALL 0x0015bc36 LEA RDI,[RSP + 0xc0] LEA RBX,[RSP + 0xb0] MOV RSI,RBX CALL 0x0013f8ba MOV RDI,RBX CALL 0x0013cd34 LEA RDI,[RSP + 0x38] CALL 0x0013cd34 PUSH 0x18 POP RBX LAB_001562cf: LEA RDI,[RSP + RBX*0x1] ADD RDI,0x8 CALL 0x0013cd34 ADD RBX,-0x18 CMP RBX,-0x18 JNZ 0x001562cf PUSH 0x18 POP RBX LAB_001562e9: LEA RDI,[RSP + RBX*0x1] ADD RDI,0x50 CALL 0x0013cd34 ADD RBX,-0x18 CMP RBX,-0x18 JNZ 0x001562e9 PUSH 0x18 POP RBX LAB_00156303: LEA RDI,[RSP + RBX*0x1] ADD RDI,0x80 CALL 0x0013cd34 ADD RBX,-0x18 CMP RBX,-0x18 JNZ 0x00156303 LAB_0015631d: LEA RDI,[RSP + 0x1b8] LEA RSI,[RSP + 0x130] LEA RDX,[RSP + 0xc0] CALL 0x00199822 LAB_0015633a: LEA RDI,[RSP + 0x1b8] CALL 0x0015bc82 LEA RDI,[RSP + 0xc0] CALL 0x0015bcb8 LEA RDI,[RSP + 0x130] CALL 0x0015bcea MOV AL,0x1 JMP 0x00156390 LAB_00156365: MOVAPS XMM0,xmmword ptr [0x001fa240] LEA RSI,[RSP + 0x130] MOVAPS xmmword ptr [RSI],XMM0 MOV RDI,qword ptr [RBX] PUSH 0x1 POP RDX PUSH 0x1 POP RCX XOR R8D,R8D XOR R9D,R9D CALL 0x00123d40 TEST EAX,EAX SETNS AL LAB_00156390: ADD RSP,0x240 POP RBX POP R12 POP R14 POP R15 POP RBP RET
/* common_chat_verify_template(std::__cxx11::string const&, bool) */ bool common_chat_verify_template(string *param_1,bool param_2) { int iVar1; long lVar2; int7 in_register_00000031; bool bVar3; string local_260 [24]; int1 local_248 [24]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_230 [24]; allocator local_218 [24]; int1 local_200 [24]; allocator local_1e8 [24]; int1 local_1d0 [24]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_1b8 [16]; string local_1a8 [112]; int4 local_138; int4 uStack_134; int4 uStack_130; int4 uStack_12c; chat_template local_b0 [136]; if ((int)CONCAT71(in_register_00000031,param_2) == 0) { local_138 = PTR_DAT_001fa240._0_4_; uStack_134 = PTR_DAT_001fa240._4_4_; uStack_130 = PTR_DAT_001fa248._0_4_; uStack_12c = PTR_DAT_001fa248._4_4_; iVar1 = llama_chat_apply_template(*(int8 *)param_1,&local_138,1,1,0,0); bVar3 = -1 < iVar1; } else { /* try { // try from 00156191 to 001561ac has its CatchHandler @ 00156533 */ std::__cxx11::string::string<std::allocator<char>>(local_1a8,"<s>",local_1e8); /* try { // try from 001561ad to 001561c2 has its CatchHandler @ 0015651b */ std::__cxx11::string::string<std::allocator<char>>(local_260,"</s>",local_218); /* try { // try from 001561c3 to 001561df has its CatchHandler @ 00156509 */ minja::chat_template::chat_template((chat_template *)&local_138,param_1,local_1a8,local_260); std::__cxx11::string::~string(local_260); std::__cxx11::string::~string(local_1a8); common_chat_inputs::common_chat_inputs((common_chat_inputs *)local_1a8); /* try { // try from 00156204 to 00156217 has its CatchHandler @ 00156479 */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ (local_1e8,&DAT_001b223f); /* try { // try from 00156220 to 0015622b has its CatchHandler @ 00156464 */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ (local_1d0,&DAT_001b2244); /* try { // try from 0015622c to 00156243 has its CatchHandler @ 00156416 */ nlohmann::json_abi_v3_11_3::detail:: json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::json_ref(local_260,local_1e8,2); /* try { // try from 00156249 to 00156259 has its CatchHandler @ 00156414 */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA8_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ (local_218,"content"); /* try { // try from 0015625f to 0015626a has its CatchHandler @ 00156402 */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ (local_200,&DAT_001b2251); /* try { // try from 0015626b to 0015627a has its CatchHandler @ 001563dc */ nlohmann::json_abi_v3_11_3::detail:: json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::json_ref(local_248,local_218,2); /* try { // try from 0015627b to 0015628c has its CatchHandler @ 001563b7 */ nlohmann::json_abi_v3_11_3::detail:: json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::json_ref(local_230,local_260,2); /* try { // try from 0015628d to 001562a1 has its CatchHandler @ 001563a5 */ nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::array(local_1b8,local_230,1); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)local_1a8,local_1b8); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::~basic_json(local_1b8); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::~basic_json(local_230); lVar2 = 0x18; do { nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::~basic_json((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)(local_260 + lVar2)); lVar2 = lVar2 + -0x18; } while (lVar2 != -0x18); lVar2 = 0x18; do { nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::~basic_json((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)(local_218 + lVar2)); lVar2 = lVar2 + -0x18; } while (lVar2 != -0x18); lVar2 = 0x18; do { nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::~basic_json((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)(local_1e8 + lVar2)); lVar2 = lVar2 + -0x18; } while (lVar2 != -0x18); /* try { // try from 0015631d to 00156339 has its CatchHandler @ 001563a0 */ common_chat_params_init(local_b0,(common_chat_inputs *)&local_138); common_chat_params::~common_chat_params((common_chat_params *)local_b0); common_chat_inputs::~common_chat_inputs((common_chat_inputs *)local_1a8); minja::chat_template::~chat_template((chat_template *)&local_138); bVar3 = true; } return bVar3; }
38,744
bf_normalize_and_round
bluesky950520[P]quickjs/libbf.c
int bf_normalize_and_round(bf_t *r, limb_t prec1, bf_flags_t flags) { limb_t l, v, a; int shift, ret; slimb_t i; // bf_print_str("bf_renorm", r); l = r->len; while (l > 0 && r->tab[l - 1] == 0) l--; if (l == 0) { /* zero */ r->expn = BF_EXP_ZERO; bf_resize(r, 0); /* cannot fail */ ret = 0; } else { r->expn -= (r->len - l) * LIMB_BITS; /* shift to have the MSB set to '1' */ v = r->tab[l - 1]; shift = clz(v); if (shift != 0) { v = 0; for(i = 0; i < l; i++) { a = r->tab[i]; r->tab[i] = (a << shift) | (v >> (LIMB_BITS - shift)); v = a; } r->expn -= shift; } ret = __bf_round(r, prec1, flags, l, 0); } // bf_print_str("r_final", r); return ret; }
O0
c
bf_normalize_and_round: subq $0x48, %rsp movq %rdi, 0x40(%rsp) movq %rsi, 0x38(%rsp) movl %edx, 0x34(%rsp) movq 0x40(%rsp), %rax movq 0x18(%rax), %rax movq %rax, 0x28(%rsp) xorl %eax, %eax cmpq $0x0, 0x28(%rsp) movb %al, 0x7(%rsp) jbe 0xec73c movq 0x40(%rsp), %rax movq 0x20(%rax), %rax movq 0x28(%rsp), %rcx subq $0x1, %rcx cmpq $0x0, (%rax,%rcx,8) sete %al movb %al, 0x7(%rsp) movb 0x7(%rsp), %al testb $0x1, %al jne 0xec746 jmp 0xec756 movq 0x28(%rsp), %rax addq $-0x1, %rax movq %rax, 0x28(%rsp) jmp 0xec710 cmpq $0x0, 0x28(%rsp) jne 0xec78c movq 0x40(%rsp), %rax movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000 movq %rcx, 0x10(%rax) movq 0x40(%rsp), %rdi xorl %eax, %eax movl %eax, %esi callq 0xec2c0 movl $0x0, 0x10(%rsp) jmp 0xec89b movq 0x40(%rsp), %rax movq 0x18(%rax), %rdx subq 0x28(%rsp), %rdx shlq $0x6, %rdx movq 0x40(%rsp), %rax movq 0x10(%rax), %rcx subq %rdx, %rcx movq %rcx, 0x10(%rax) movq 0x40(%rsp), %rax movq 0x20(%rax), %rax movq 0x28(%rsp), %rcx subq $0x1, %rcx movq (%rax,%rcx,8), %rax movq %rax, 0x20(%rsp) movq 0x20(%rsp), %rdi callq 0xec450 movl %eax, 0x14(%rsp) cmpl $0x0, 0x14(%rsp) je 0xec87c movq $0x0, 0x20(%rsp) movq $0x0, 0x8(%rsp) movq 0x8(%rsp), %rax cmpq 0x28(%rsp), %rax jae 0xec867 movq 0x40(%rsp), %rax movq 0x20(%rax), %rax movq 0x8(%rsp), %rcx movq (%rax,%rcx,8), %rax movq %rax, 0x18(%rsp) movq 0x18(%rsp), %rdx movl 0x14(%rsp), %eax movl %eax, %ecx shlq %cl, %rdx movq 0x20(%rsp), %rax movl $0x40, %ecx subl 0x14(%rsp), %ecx movl %ecx, %ecx shrq %cl, %rax orq %rax, %rdx movq 0x40(%rsp), %rax movq 0x20(%rax), %rax movq 0x8(%rsp), %rcx movq %rdx, (%rax,%rcx,8) movq 0x18(%rsp), %rax movq %rax, 0x20(%rsp) movq 0x8(%rsp), %rax addq $0x1, %rax movq %rax, 0x8(%rsp) jmp 0xec7f4 movslq 0x14(%rsp), %rdx movq 0x40(%rsp), %rax movq 0x10(%rax), %rcx subq %rdx, %rcx movq %rcx, 0x10(%rax) movq 0x40(%rsp), %rdi movq 0x38(%rsp), %rsi movl 0x34(%rsp), %edx movq 0x28(%rsp), %rcx xorl %r8d, %r8d callq 0xec8b0 movl %eax, 0x10(%rsp) movl 0x10(%rsp), %eax addq $0x48, %rsp retq nopw %cs:(%rax,%rax)
bf_normalize_and_round: sub rsp, 48h mov [rsp+48h+var_8], rdi mov [rsp+48h+var_10], rsi mov [rsp+48h+var_14], edx mov rax, [rsp+48h+var_8] mov rax, [rax+18h] mov [rsp+48h+var_20], rax loc_EC710: xor eax, eax cmp [rsp+48h+var_20], 0 mov [rsp+48h+var_41], al jbe short loc_EC73C mov rax, [rsp+48h+var_8] mov rax, [rax+20h] mov rcx, [rsp+48h+var_20] sub rcx, 1 cmp qword ptr [rax+rcx*8], 0 setz al mov [rsp+48h+var_41], al loc_EC73C: mov al, [rsp+48h+var_41] test al, 1 jnz short loc_EC746 jmp short loc_EC756 loc_EC746: mov rax, [rsp+48h+var_20] add rax, 0FFFFFFFFFFFFFFFFh mov [rsp+48h+var_20], rax jmp short loc_EC710 loc_EC756: cmp [rsp+48h+var_20], 0 jnz short loc_EC78C mov rax, [rsp+48h+var_8] mov rcx, 8000000000000000h mov [rax+10h], rcx mov rdi, [rsp+48h+var_8] xor eax, eax mov esi, eax call bf_resize mov [rsp+48h+var_38], 0 jmp loc_EC89B loc_EC78C: mov rax, [rsp+48h+var_8] mov rdx, [rax+18h] sub rdx, [rsp+48h+var_20] shl rdx, 6 mov rax, [rsp+48h+var_8] mov rcx, [rax+10h] sub rcx, rdx mov [rax+10h], rcx mov rax, [rsp+48h+var_8] mov rax, [rax+20h] mov rcx, [rsp+48h+var_20] sub rcx, 1 mov rax, [rax+rcx*8] mov [rsp+48h+var_28], rax mov rdi, [rsp+48h+var_28] call clz mov [rsp+48h+var_34], eax cmp [rsp+48h+var_34], 0 jz loc_EC87C mov [rsp+48h+var_28], 0 mov [rsp+48h+var_40], 0 loc_EC7F4: mov rax, [rsp+48h+var_40] cmp rax, [rsp+48h+var_20] jnb short loc_EC867 mov rax, [rsp+48h+var_8] mov rax, [rax+20h] mov rcx, [rsp+48h+var_40] mov rax, [rax+rcx*8] mov [rsp+48h+var_30], rax mov rdx, [rsp+48h+var_30] mov eax, [rsp+48h+var_34] mov ecx, eax shl rdx, cl mov rax, [rsp+48h+var_28] mov ecx, 40h ; '@' sub ecx, [rsp+48h+var_34] mov ecx, ecx shr rax, cl or rdx, rax mov rax, [rsp+48h+var_8] mov rax, [rax+20h] mov rcx, [rsp+48h+var_40] mov [rax+rcx*8], rdx mov rax, [rsp+48h+var_30] mov [rsp+48h+var_28], rax mov rax, [rsp+48h+var_40] add rax, 1 mov [rsp+48h+var_40], rax jmp short loc_EC7F4 loc_EC867: movsxd rdx, [rsp+48h+var_34] mov rax, [rsp+48h+var_8] mov rcx, [rax+10h] sub rcx, rdx mov [rax+10h], rcx loc_EC87C: mov rdi, [rsp+48h+var_8] mov rsi, [rsp+48h+var_10] mov edx, [rsp+48h+var_14] mov rcx, [rsp+48h+var_20] xor r8d, r8d call __bf_round mov [rsp+48h+var_38], eax loc_EC89B: mov eax, [rsp+48h+var_38] add rsp, 48h retn
long long bf_normalize_and_round(_QWORD *a1, long long a2, unsigned int a3) { bool v4; // [rsp+7h] [rbp-41h] unsigned long long j; // [rsp+8h] [rbp-40h] int v7; // [rsp+14h] [rbp-34h] unsigned long long v8; // [rsp+18h] [rbp-30h] unsigned long long v9; // [rsp+20h] [rbp-28h] unsigned long long i; // [rsp+28h] [rbp-20h] for ( i = a1[3]; ; --i ) { v4 = 0; if ( i ) v4 = *(_QWORD *)(a1[4] + 8 * (i - 1)) == 0LL; if ( !v4 ) break; } if ( i ) { a1[2] -= (a1[3] - i) << 6; v7 = clz(*(_QWORD *)(a1[4] + 8 * (i - 1))); if ( v7 ) { v9 = 0LL; for ( j = 0LL; j < i; ++j ) { v8 = *(_QWORD *)(a1[4] + 8 * j); *(_QWORD *)(a1[4] + 8 * j) = (v9 >> (64 - (unsigned __int8)v7)) | (v8 << v7); v9 = v8; } a1[2] -= v7; } return (unsigned int)_bf_round(a1, a2, a3, i, 0LL); } else { a1[2] = 0x8000000000000000LL; bf_resize(a1, 0LL); return 0; } }
bf_normalize_and_round: SUB RSP,0x48 MOV qword ptr [RSP + 0x40],RDI MOV qword ptr [RSP + 0x38],RSI MOV dword ptr [RSP + 0x34],EDX MOV RAX,qword ptr [RSP + 0x40] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RSP + 0x28],RAX LAB_001ec710: XOR EAX,EAX CMP qword ptr [RSP + 0x28],0x0 MOV byte ptr [RSP + 0x7],AL JBE 0x001ec73c MOV RAX,qword ptr [RSP + 0x40] MOV RAX,qword ptr [RAX + 0x20] MOV RCX,qword ptr [RSP + 0x28] SUB RCX,0x1 CMP qword ptr [RAX + RCX*0x8],0x0 SETZ AL MOV byte ptr [RSP + 0x7],AL LAB_001ec73c: MOV AL,byte ptr [RSP + 0x7] TEST AL,0x1 JNZ 0x001ec746 JMP 0x001ec756 LAB_001ec746: MOV RAX,qword ptr [RSP + 0x28] ADD RAX,-0x1 MOV qword ptr [RSP + 0x28],RAX JMP 0x001ec710 LAB_001ec756: CMP qword ptr [RSP + 0x28],0x0 JNZ 0x001ec78c MOV RAX,qword ptr [RSP + 0x40] MOV RCX,-0x8000000000000000 MOV qword ptr [RAX + 0x10],RCX MOV RDI,qword ptr [RSP + 0x40] XOR EAX,EAX MOV ESI,EAX CALL 0x001ec2c0 MOV dword ptr [RSP + 0x10],0x0 JMP 0x001ec89b LAB_001ec78c: MOV RAX,qword ptr [RSP + 0x40] MOV RDX,qword ptr [RAX + 0x18] SUB RDX,qword ptr [RSP + 0x28] SHL RDX,0x6 MOV RAX,qword ptr [RSP + 0x40] MOV RCX,qword ptr [RAX + 0x10] SUB RCX,RDX MOV qword ptr [RAX + 0x10],RCX MOV RAX,qword ptr [RSP + 0x40] MOV RAX,qword ptr [RAX + 0x20] MOV RCX,qword ptr [RSP + 0x28] SUB RCX,0x1 MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RSP + 0x20],RAX MOV RDI,qword ptr [RSP + 0x20] CALL 0x001ec450 MOV dword ptr [RSP + 0x14],EAX CMP dword ptr [RSP + 0x14],0x0 JZ 0x001ec87c MOV qword ptr [RSP + 0x20],0x0 MOV qword ptr [RSP + 0x8],0x0 LAB_001ec7f4: MOV RAX,qword ptr [RSP + 0x8] CMP RAX,qword ptr [RSP + 0x28] JNC 0x001ec867 MOV RAX,qword ptr [RSP + 0x40] MOV RAX,qword ptr [RAX + 0x20] MOV RCX,qword ptr [RSP + 0x8] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RSP + 0x18],RAX MOV RDX,qword ptr [RSP + 0x18] MOV EAX,dword ptr [RSP + 0x14] MOV ECX,EAX SHL RDX,CL MOV RAX,qword ptr [RSP + 0x20] MOV ECX,0x40 SUB ECX,dword ptr [RSP + 0x14] MOV ECX,ECX SHR RAX,CL OR RDX,RAX MOV RAX,qword ptr [RSP + 0x40] MOV RAX,qword ptr [RAX + 0x20] MOV RCX,qword ptr [RSP + 0x8] MOV qword ptr [RAX + RCX*0x8],RDX MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x20],RAX MOV RAX,qword ptr [RSP + 0x8] ADD RAX,0x1 MOV qword ptr [RSP + 0x8],RAX JMP 0x001ec7f4 LAB_001ec867: MOVSXD RDX,dword ptr [RSP + 0x14] MOV RAX,qword ptr [RSP + 0x40] MOV RCX,qword ptr [RAX + 0x10] SUB RCX,RDX MOV qword ptr [RAX + 0x10],RCX LAB_001ec87c: MOV RDI,qword ptr [RSP + 0x40] MOV RSI,qword ptr [RSP + 0x38] MOV EDX,dword ptr [RSP + 0x34] MOV RCX,qword ptr [RSP + 0x28] XOR R8D,R8D CALL 0x001ec8b0 MOV dword ptr [RSP + 0x10],EAX LAB_001ec89b: MOV EAX,dword ptr [RSP + 0x10] ADD RSP,0x48 RET
int4 bf_normalize_and_round(long param_1,int8 param_2,int4 param_3) { ulong uVar1; int iVar2; bool bVar3; int8 local_40; int4 local_38; int8 local_28; int8 local_20; local_20 = *(ulong *)(param_1 + 0x18); while( true ) { bVar3 = false; if (local_20 != 0) { bVar3 = *(long *)(*(long *)(param_1 + 0x20) + (local_20 - 1) * 8) == 0; } if (!bVar3) break; local_20 = local_20 - 1; } if (local_20 == 0) { *(int8 *)(param_1 + 0x10) = 0x8000000000000000; bf_resize(param_1,0); local_38 = 0; } else { *(ulong *)(param_1 + 0x10) = *(long *)(param_1 + 0x10) + (*(long *)(param_1 + 0x18) - local_20) * -0x40; iVar2 = clz(*(int8 *)(*(long *)(param_1 + 0x20) + (local_20 - 1) * 8)); if (iVar2 != 0) { local_28 = 0; for (local_40 = 0; local_40 < local_20; local_40 = local_40 + 1) { uVar1 = *(ulong *)(*(long *)(param_1 + 0x20) + local_40 * 8); *(ulong *)(*(long *)(param_1 + 0x20) + local_40 * 8) = uVar1 << ((byte)iVar2 & 0x3f) | local_28 >> (0x40 - (byte)iVar2 & 0x3f); local_28 = uVar1; } *(long *)(param_1 + 0x10) = *(long *)(param_1 + 0x10) - (long)iVar2; } local_38 = __bf_round(param_1,param_2,param_3,local_20,0); } return local_38; }
38,745
testing::internal::ParameterizedTestSuiteRegistry::~ParameterizedTestSuiteRegistry()
seiftnesse[P]memoryallocator/build_O2/_deps/googletest-src/googletest/include/gtest/internal/gtest-param-util.h
~ParameterizedTestSuiteRegistry() { for (auto& test_suite_info : test_suite_infos_) { delete test_suite_info; } }
O2
c
testing::internal::ParameterizedTestSuiteRegistry::~ParameterizedTestSuiteRegistry(): pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx movq (%rdi), %r14 movq 0x8(%rdi), %r15 cmpq %r15, %r14 je 0x28fa6 movq (%r14), %rdi testq %rdi, %rdi je 0x28fa0 movq (%rdi), %rax callq *0x8(%rax) addq $0x8, %r14 jmp 0x28f8d movq %rbx, %rdi popq %rbx popq %r14 popq %r15 jmp 0x2bc5e nop
_ZN7testing8internal30ParameterizedTestSuiteRegistryD2Ev: push r15 push r14 push rbx mov rbx, rdi mov r14, [rdi] mov r15, [rdi+8] loc_28F8D: cmp r14, r15 jz short loc_28FA6 mov rdi, [r14] test rdi, rdi jz short loc_28FA0 mov rax, [rdi] call qword ptr [rax+8] loc_28FA0: add r14, 8 jmp short loc_28F8D loc_28FA6: mov rdi, rbx pop rbx pop r14 pop r15 jmp _ZNSt12_Vector_baseIPN7testing8internal30ParameterizedTestSuiteInfoBaseESaIS3_EED2Ev; std::_Vector_base<testing::internal::ParameterizedTestSuiteInfoBase *>::~_Vector_base()
void testing::internal::ParameterizedTestSuiteRegistry::~ParameterizedTestSuiteRegistry( testing::internal::ParameterizedTestSuiteRegistry *this) { _QWORD *v1; // r14 _QWORD *v2; // r15 v1 = *(_QWORD **)this; v2 = (_QWORD *)*((_QWORD *)this + 1); while ( v1 != v2 ) { if ( *v1 ) (*(void ( **)(_QWORD))(*(_QWORD *)*v1 + 8LL))(*v1); ++v1; } std::_Vector_base<testing::internal::ParameterizedTestSuiteInfoBase *>::~_Vector_base(this); }
~ParameterizedTestSuiteRegistry: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RDI MOV R14,qword ptr [RDI] MOV R15,qword ptr [RDI + 0x8] LAB_00128f8d: CMP R14,R15 JZ 0x00128fa6 MOV RDI,qword ptr [R14] TEST RDI,RDI JZ 0x00128fa0 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_00128fa0: ADD R14,0x8 JMP 0x00128f8d LAB_00128fa6: MOV RDI,RBX POP RBX POP R14 POP R15 JMP 0x0012bc5e
/* testing::internal::ParameterizedTestSuiteRegistry::~ParameterizedTestSuiteRegistry() */ void __thiscall testing::internal::ParameterizedTestSuiteRegistry::~ParameterizedTestSuiteRegistry (ParameterizedTestSuiteRegistry *this) { long *plVar1; long *plVar2; plVar1 = *(long **)(this + 8); for (plVar2 = *(long **)this; plVar2 != plVar1; plVar2 = plVar2 + 1) { if ((long *)*plVar2 != (long *)0x0) { (**(code **)(*(long *)*plVar2 + 8))(); } } std:: _Vector_base<testing::internal::ParameterizedTestSuiteInfoBase*,std::allocator<testing::internal::ParameterizedTestSuiteInfoBase*>> ::~_Vector_base((_Vector_base<testing::internal::ParameterizedTestSuiteInfoBase*,std::allocator<testing::internal::ParameterizedTestSuiteInfoBase*>> *)this); return; }
38,746
void fmt::v10::detail::bigint::multiply<unsigned __int128, 0>(unsigned __int128)
aimrt_mujoco_sim/_deps/fmt-src/include/fmt/core.h
constexpr auto size() const noexcept -> size_t { return size_; }
O3
c
void fmt::v10::detail::bigint::multiply<unsigned __int128, 0>(unsigned __int128): movq 0x10(%rdi), %r9 testq %r9, %r9 je 0xa1976 pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %rcx movq %rdi, %rbx movq 0x8(%rdi), %r10 movq %rdx, %r11 shrq $0x20, %r11 shlq $0x20, %rcx xorl %r14d, %r14d xorl %r15d, %r15d xorl %r12d, %r12d movl (%r10,%r12,4), %r8d movq %r8, %rax mulq %rsi movq %rdx, %rdi movl %r14d, %r13d addq %rax, %r13 adcq $0x0, %rdi movq %r11, %rbp imulq %r8, %rbp movq %rcx, %rax mulq %r8 addq %rbp, %rdx movq %rdi, %r8 shldq $0x20, %r13, %rdi shrq $0x20, %r8 shrdq $0x20, %r15, %r14 shrq $0x20, %r15 addq %rax, %r14 adcq %rdx, %r15 addq %rdi, %r14 adcq %r8, %r15 movl %r13d, (%r10,%r12,4) incq %r12 cmpq %r12, %r9 jne 0xa18d2 movq %r14, %rax orq %r15, %rax je 0xa1968 leaq 0x1(%r9), %rsi cmpq %rsi, 0x18(%rbx) jae 0xa1948 movq (%rbx), %rax movq %rbx, %rdi callq *(%rax) movq 0x10(%rbx), %r9 leaq 0x1(%r9), %rsi movq 0x8(%rbx), %rax movq %rsi, 0x10(%rbx) movl %r14d, (%rax,%r9,4) shrdq $0x20, %r15, %r14 shrq $0x20, %r15 movq %r14, %rax orq %r15, %rax movq %rsi, %r9 jne 0xa192e addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
_ZN3fmt3v106detail6bigint8multiplyIoTnNSt9enable_ifIXoosr3std7is_sameIT_mEE5valuesr3std7is_sameIS5_oEE5valueEiE4typeELi0EEEvS5_: mov r9, [rdi+10h] test r9, r9 jz locret_A1976 push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rcx, rdx mov rbx, rdi mov r10, [rdi+8] mov r11, rdx shr r11, 20h shl rcx, 20h xor r14d, r14d xor r15d, r15d xor r12d, r12d loc_A18D2: mov r8d, [r10+r12*4] mov rax, r8 mul rsi mov rdi, rdx mov r13d, r14d add r13, rax adc rdi, 0 mov rbp, r11 imul rbp, r8 mov rax, rcx mul r8 add rdx, rbp mov r8, rdi shld rdi, r13, 20h shr r8, 20h shrd r14, r15, 20h shr r15, 20h add r14, rax adc r15, rdx add r14, rdi adc r15, r8 mov [r10+r12*4], r13d inc r12 cmp r9, r12 jnz short loc_A18D2 mov rax, r14 or rax, r15 jz short loc_A1968 loc_A192E: lea rsi, [r9+1] cmp [rbx+18h], rsi jnb short loc_A1948 mov rax, [rbx] mov rdi, rbx call qword ptr [rax] mov r9, [rbx+10h] lea rsi, [r9+1] loc_A1948: mov rax, [rbx+8] mov [rbx+10h], rsi mov [rax+r9*4], r14d shrd r14, r15, 20h shr r15, 20h mov rax, r14 or rax, r15 mov r9, rsi jnz short loc_A192E loc_A1968: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp locret_A1976: retn
long long ZN3fmt3v106detail6bigint8multiplyIoTnNSt9enable_ifIXoosr3std7is_sameIT_mEE5valuesr3std7is_sameIS5_oEE5valueEiE4typeELi0EEEvS5_( long long a1, unsigned long long a2, unsigned long long a3) { long long v3; // r9 long long v4; // r10 long long v5; // r12 signed __int128 v6; // kr10_16 unsigned __int128 v7; // kr00_16 long long result; // rax long long v9; // rsi long long v10; // rax unsigned long long v11; // r14 unsigned __int128 v12; // rt0 v3 = *(_QWORD *)(a1 + 16); if ( v3 ) { v4 = *(_QWORD *)(a1 + 8); v5 = 0LL; v6 = 0uLL; do { v7 = a2 * (unsigned __int128)*(unsigned int *)(v4 + 4 * v5) + (unsigned int)v6; v6 = (v7 >> 32) + __PAIR128__(HIDWORD(a3), a3 << 32) * *(unsigned int *)(v4 + 4 * v5) + ((unsigned __int128)v6 >> 32); *(_DWORD *)(v4 + 4 * v5++) = v7; } while ( v3 != v5 ); result = *((_QWORD *)&v6 + 1) | v6; if ( v6 != 0 ) { do { v9 = v3 + 1; if ( *(_QWORD *)(a1 + 24) < (unsigned long long)(v3 + 1) ) { (**(void ( ***)(long long))a1)(a1); v3 = *(_QWORD *)(a1 + 16); v9 = v3 + 1; } v10 = *(_QWORD *)(a1 + 8); *(_QWORD *)(a1 + 16) = v9; *(_DWORD *)(v10 + 4 * v3) = v6; v12 = v6; v11 = v6 >> 32; result = HIDWORD(*((_QWORD *)&v6 + 1)) | v11; v3 = v9; v6 = __PAIR128__(HIDWORD(*((_QWORD *)&v6 + 1)), v11); } while ( v12 >> 32 != 0 ); } } return result; }
_ZN3fmt3v106detail6bigint8multiplyIoTnNSt9enable_ifIXoosr3std7is_sameIT_mEE5valuesr3std7is_sameIS5_oEE5valueEiE4typeELi0EEEvS5_: MOV R9,qword ptr [RDI + 0x10] TEST R9,R9 JZ 0x001a1976 PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RCX,RDX MOV RBX,RDI MOV R10,qword ptr [RDI + 0x8] MOV R11,RDX SHR R11,0x20 SHL RCX,0x20 XOR R14D,R14D XOR R15D,R15D XOR R12D,R12D LAB_001a18d2: MOV R8D,dword ptr [R10 + R12*0x4] MOV RAX,R8 MUL RSI MOV RDI,RDX MOV R13D,R14D ADD R13,RAX ADC RDI,0x0 MOV RBP,R11 IMUL RBP,R8 MOV RAX,RCX MUL R8 ADD RDX,RBP MOV R8,RDI SHLD RDI,R13,0x20 SHR R8,0x20 SHRD R14,R15,0x20 SHR R15,0x20 ADD R14,RAX ADC R15,RDX ADD R14,RDI ADC R15,R8 MOV dword ptr [R10 + R12*0x4],R13D INC R12 CMP R9,R12 JNZ 0x001a18d2 MOV RAX,R14 OR RAX,R15 JZ 0x001a1968 LAB_001a192e: LEA RSI,[R9 + 0x1] CMP qword ptr [RBX + 0x18],RSI JNC 0x001a1948 MOV RAX,qword ptr [RBX] MOV RDI,RBX CALL qword ptr [RAX] MOV R9,qword ptr [RBX + 0x10] LEA RSI,[R9 + 0x1] LAB_001a1948: MOV RAX,qword ptr [RBX + 0x8] MOV qword ptr [RBX + 0x10],RSI MOV dword ptr [RAX + R9*0x4],R14D SHRD R14,R15,0x20 SHR R15,0x20 MOV RAX,R14 OR RAX,R15 MOV R9,RSI JNZ 0x001a192e LAB_001a1968: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP LAB_001a1976: RET
void _ZN3fmt3v106detail6bigint8multiplyIoTnNSt9enable_ifIXoosr3std7is_sameIT_mEE5valuesr3std7is_sameIS5_oEE5valueEiE4typeELi0EEEvS5_ (int8 *param_1,ulong param_2,ulong param_3) { long lVar1; int1 auVar2 [16]; int1 auVar3 [16]; int1 auVar4 [16]; int1 auVar5 [16]; int1 auVar6 [16]; int1 auVar7 [16]; int1 auVar8 [16]; ulong uVar9; ulong uVar10; ulong uVar11; uVar10 = param_1[2]; if (uVar10 != 0) { lVar1 = param_1[1]; auVar7 = ZEXT816(0); uVar11 = 0; do { uVar9 = CONCAT44(0,*(uint *)(lVar1 + uVar11 * 4)); auVar2._8_8_ = 0; auVar2._0_8_ = uVar9; auVar4._8_8_ = 0; auVar4._0_8_ = param_2; auVar6._8_8_ = 0; auVar6._0_8_ = auVar7._0_8_ & 0xffffffff; auVar6 = auVar2 * auVar4 + auVar6; auVar3._8_8_ = 0; auVar3._0_8_ = param_3 << 0x20; auVar5._8_8_ = 0; auVar5._0_8_ = uVar9; auVar8._8_8_ = SUB168(auVar3 * auVar5,8) + (param_3 >> 0x20) * uVar9; auVar8._0_8_ = SUB168(auVar3 * auVar5,0); auVar7 = (auVar6 >> 0x20) + (auVar7 >> 0x20) + auVar8; *(int *)(lVar1 + uVar11 * 4) = auVar6._0_4_; uVar11 = uVar11 + 1; } while (uVar10 != uVar11); if (auVar7._0_8_ != 0 || auVar7._8_8_ != 0) { do { uVar9 = auVar7._0_8_; uVar11 = uVar10 + 1; if ((ulong)param_1[3] < uVar11) { (**(code **)*param_1)(param_1); uVar10 = param_1[2]; uVar11 = uVar10 + 1; } param_1[2] = uVar11; *(int *)(param_1[1] + uVar10 * 4) = auVar7._0_4_; auVar3 = auVar7 & (int1 [16])0xffffffff; auVar2 = auVar7 >> 0x20; auVar7 = auVar7 >> 0x20; uVar10 = uVar11; } while ((uVar9 >> 0x20 != 0 || auVar3 != (int1 [16])0x0) || auVar2._8_8_ != 0); } } return; }
38,747
R3D_SetLightSize
r3d/src/r3d_lighting.c
void R3D_SetLightSize(R3D_Light id, float size) { r3d_get_and_check_light(light, id); light->size = size; }
O3
c
R3D_SetLightSize: pushq %rbp movq %rsp, %rbp movl %edi, %edx testl %edi, %edi je 0xbe316 leaq 0xf1944(%rip), %rax # 0x1afc20 cmpl %edx, 0x168(%rax) jbe 0xbe316 movq 0x128(%rax), %rsi leal -0x1(%rdx), %ecx cmpb $0x1, (%rsi,%rcx) jne 0xbe316 movq 0x108(%rax), %rsi cmpq %rcx, 0x110(%rax) setbe %dil testq %rsi, %rsi sete %r8b orb %dil, %r8b cmpb $0x1, %r8b jne 0xbe32a leaq 0x53ac6(%rip), %rsi # 0x111de3 movl $0x5, %edi xorl %eax, %eax popq %rbp jmp 0xa9c29 imulq 0x120(%rax), %rcx movss %xmm0, 0x98(%rsi,%rcx) popq %rbp retq
R3D_SetLightSize: push rbp mov rbp, rsp mov edx, edi test edi, edi jz short loc_BE316 lea rax, R3D cmp [rax+168h], edx jbe short loc_BE316 mov rsi, [rax+128h] lea ecx, [rdx-1] cmp byte ptr [rsi+rcx], 1 jnz short loc_BE316 mov rsi, [rax+108h] cmp [rax+110h], rcx setbe dil test rsi, rsi setz r8b or r8b, dil cmp r8b, 1 jnz short loc_BE32A loc_BE316: lea rsi, aLightIdIIsNotV; "Light [ID %i] is not valid" mov edi, 5 xor eax, eax pop rbp jmp TraceLog loc_BE32A: imul rcx, [rax+120h] movss dword ptr [rsi+rcx+98h], xmm0 pop rbp retn
void R3D_SetLightSize(unsigned int a1, float a2) { unsigned long long v2; // rcx long long v3; // rsi if ( a1 && *((_DWORD *)&R3D + 90) > a1 && (v2 = a1 - 1, *(_BYTE *)(*((_QWORD *)&R3D + 37) + v2) == 1) && (v3 = *((_QWORD *)&R3D + 33), *((_QWORD *)&R3D + 34) > v2 && v3 != 0) ) { *(float *)(v3 + *((_QWORD *)&R3D + 36) * v2 + 152) = a2; } else { TraceLog(5, (long long)"Light [ID %i] is not valid", a1); } }
R3D_SetLightSize: PUSH RBP MOV RBP,RSP MOV EDX,EDI TEST EDI,EDI JZ 0x001be316 LEA RAX,[0x2afc20] CMP dword ptr [RAX + 0x168],EDX JBE 0x001be316 MOV RSI,qword ptr [RAX + 0x128] LEA ECX,[RDX + -0x1] CMP byte ptr [RSI + RCX*0x1],0x1 JNZ 0x001be316 MOV RSI,qword ptr [RAX + 0x108] CMP qword ptr [RAX + 0x110],RCX SETBE DIL TEST RSI,RSI SETZ R8B OR R8B,DIL CMP R8B,0x1 JNZ 0x001be32a LAB_001be316: LEA RSI,[0x211de3] MOV EDI,0x5 XOR EAX,EAX POP RBP JMP 0x001a9c29 LAB_001be32a: IMUL RCX,qword ptr [RAX + 0x120] MOVSS dword ptr [RSI + RCX*0x1 + 0x98],XMM0 POP RBP RET
void R3D_SetLightSize(int4 param_1,uint param_2) { ulong uVar1; if (((param_2 != 0) && (param_2 < DAT_002afd88)) && (uVar1 = (ulong)(param_2 - 1), *(char *)(DAT_002afd48 + uVar1) == '\x01')) { if (DAT_002afd28 != 0 && uVar1 < DAT_002afd30) { *(int4 *)(DAT_002afd28 + 0x98 + uVar1 * DAT_002afd40) = param_1; return; } } TraceLog(5,"Light [ID %i] is not valid"); return; }
38,748
dbuf_realloc
bluesky950520[P]quickjs/cutils.c
int dbuf_realloc(DynBuf *s, size_t new_size) { size_t size; uint8_t *new_buf; if (new_size > s->allocated_size) { if (s->error) return -1; size = s->allocated_size * 3 / 2; if (size > new_size) new_size = size; new_buf = s->realloc_func(s->opaque, s->buf, new_size); if (!new_buf) { s->error = TRUE; return -1; } s->buf = new_buf; s->allocated_size = new_size; } return 0; }
O0
c
dbuf_realloc: subq $0x28, %rsp movq %rdi, 0x18(%rsp) movq %rsi, 0x10(%rsp) movq 0x10(%rsp), %rax movq 0x18(%rsp), %rcx cmpq 0x10(%rcx), %rax jbe 0x1e4ae movq 0x18(%rsp), %rax cmpl $0x0, 0x18(%rax) je 0x1e42a movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF jmp 0x1e4b6 movq 0x18(%rsp), %rax imulq $0x3, 0x10(%rax), %rax shrq %rax movq %rax, 0x8(%rsp) movq 0x8(%rsp), %rax cmpq 0x10(%rsp), %rax jbe 0x1e452 movq 0x8(%rsp), %rax movq %rax, 0x10(%rsp) movq 0x18(%rsp), %rax movq 0x20(%rax), %rax movq 0x18(%rsp), %rcx movq 0x28(%rcx), %rdi movq 0x18(%rsp), %rcx movq (%rcx), %rsi movq 0x10(%rsp), %rdx callq *%rax movq %rax, (%rsp) cmpq $0x0, (%rsp) jne 0x1e494 movq 0x18(%rsp), %rax movl $0x1, 0x18(%rax) movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF jmp 0x1e4b6 movq (%rsp), %rcx movq 0x18(%rsp), %rax movq %rcx, (%rax) movq 0x10(%rsp), %rcx movq 0x18(%rsp), %rax movq %rcx, 0x10(%rax) movl $0x0, 0x24(%rsp) movl 0x24(%rsp), %eax addq $0x28, %rsp retq nop
dbuf_realloc: sub rsp, 28h mov [rsp+28h+var_10], rdi mov [rsp+28h+var_18], rsi mov rax, [rsp+28h+var_18] mov rcx, [rsp+28h+var_10] cmp rax, [rcx+10h] jbe loc_1E4AE mov rax, [rsp+28h+var_10] cmp dword ptr [rax+18h], 0 jz short loc_1E42A mov [rsp+28h+var_4], 0FFFFFFFFh jmp loc_1E4B6 loc_1E42A: mov rax, [rsp+28h+var_10] imul rax, [rax+10h], 3 shr rax, 1 mov [rsp+28h+var_20], rax mov rax, [rsp+28h+var_20] cmp rax, [rsp+28h+var_18] jbe short loc_1E452 mov rax, [rsp+28h+var_20] mov [rsp+28h+var_18], rax loc_1E452: mov rax, [rsp+28h+var_10] mov rax, [rax+20h] mov rcx, [rsp+28h+var_10] mov rdi, [rcx+28h] mov rcx, [rsp+28h+var_10] mov rsi, [rcx] mov rdx, [rsp+28h+var_18] call rax mov [rsp+28h+var_28], rax cmp [rsp+28h+var_28], 0 jnz short loc_1E494 mov rax, [rsp+28h+var_10] mov dword ptr [rax+18h], 1 mov [rsp+28h+var_4], 0FFFFFFFFh jmp short loc_1E4B6 loc_1E494: mov rcx, [rsp+28h+var_28] mov rax, [rsp+28h+var_10] mov [rax], rcx mov rcx, [rsp+28h+var_18] mov rax, [rsp+28h+var_10] mov [rax+10h], rcx loc_1E4AE: mov [rsp+28h+var_4], 0 loc_1E4B6: mov eax, [rsp+28h+var_4] add rsp, 28h retn
long long dbuf_realloc(long long a1, unsigned long long a2) { long long v3; // [rsp+0h] [rbp-28h] unsigned long long v4; // [rsp+10h] [rbp-18h] v4 = a2; if ( a2 <= *(_QWORD *)(a1 + 16) ) return 0; if ( !*(_DWORD *)(a1 + 24) ) { if ( (unsigned long long)(3LL * *(_QWORD *)(a1 + 16)) >> 1 > a2 ) v4 = (unsigned long long)(3LL * *(_QWORD *)(a1 + 16)) >> 1; v3 = (*(long long ( **)(_QWORD, _QWORD, unsigned long long))(a1 + 32))( *(_QWORD *)(a1 + 40), *(_QWORD *)a1, v4); if ( !v3 ) { *(_DWORD *)(a1 + 24) = 1; return (unsigned int)-1; } *(_QWORD *)a1 = v3; *(_QWORD *)(a1 + 16) = v4; return 0; } return (unsigned int)-1; }
dbuf_realloc: SUB RSP,0x28 MOV qword ptr [RSP + 0x18],RDI MOV qword ptr [RSP + 0x10],RSI MOV RAX,qword ptr [RSP + 0x10] MOV RCX,qword ptr [RSP + 0x18] CMP RAX,qword ptr [RCX + 0x10] JBE 0x0011e4ae MOV RAX,qword ptr [RSP + 0x18] CMP dword ptr [RAX + 0x18],0x0 JZ 0x0011e42a MOV dword ptr [RSP + 0x24],0xffffffff JMP 0x0011e4b6 LAB_0011e42a: MOV RAX,qword ptr [RSP + 0x18] IMUL RAX,qword ptr [RAX + 0x10],0x3 SHR RAX,0x1 MOV qword ptr [RSP + 0x8],RAX MOV RAX,qword ptr [RSP + 0x8] CMP RAX,qword ptr [RSP + 0x10] JBE 0x0011e452 MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x10],RAX LAB_0011e452: MOV RAX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RAX + 0x20] MOV RCX,qword ptr [RSP + 0x18] MOV RDI,qword ptr [RCX + 0x28] MOV RCX,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RCX] MOV RDX,qword ptr [RSP + 0x10] CALL RAX MOV qword ptr [RSP],RAX CMP qword ptr [RSP],0x0 JNZ 0x0011e494 MOV RAX,qword ptr [RSP + 0x18] MOV dword ptr [RAX + 0x18],0x1 MOV dword ptr [RSP + 0x24],0xffffffff JMP 0x0011e4b6 LAB_0011e494: MOV RCX,qword ptr [RSP] MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RAX + 0x10],RCX LAB_0011e4ae: MOV dword ptr [RSP + 0x24],0x0 LAB_0011e4b6: MOV EAX,dword ptr [RSP + 0x24] ADD RSP,0x28 RET
int4 dbuf_realloc(long *param_1,ulong param_2) { ulong uVar1; long lVar2; ulong local_18; if ((ulong)param_1[2] < param_2) { if ((int)param_1[3] != 0) { return 0xffffffff; } uVar1 = (ulong)(param_1[2] * 3) >> 1; local_18 = param_2; if (param_2 < uVar1) { local_18 = uVar1; } lVar2 = (*(code *)param_1[4])(param_1[5],*param_1,local_18); if (lVar2 == 0) { *(int4 *)(param_1 + 3) = 1; return 0xffffffff; } *param_1 = lVar2; param_1[2] = local_18; } return 0; }
38,749
dbuf_realloc
bluesky950520[P]quickjs/cutils.c
int dbuf_realloc(DynBuf *s, size_t new_size) { size_t size; uint8_t *new_buf; if (new_size > s->allocated_size) { if (s->error) return -1; size = s->allocated_size * 3 / 2; if (size > new_size) new_size = size; new_buf = s->realloc_func(s->opaque, s->buf, new_size); if (!new_buf) { s->error = TRUE; return -1; } s->buf = new_buf; s->allocated_size = new_size; } return 0; }
O2
c
dbuf_realloc: pushq %r15 pushq %r14 pushq %rbx movq 0x10(%rdi), %rax xorl %ebx, %ebx cmpq %rsi, %rax jae 0x15c2f movq %rdi, %r14 pushq $-0x1 popq %rbx cmpl $0x0, 0x18(%rdi) jne 0x15c2f leaq (%rax,%rax,2), %r15 shrq %r15 cmpq %rsi, %r15 cmovbeq %rsi, %r15 movq (%r14), %rsi movq 0x28(%r14), %rdi movq %r15, %rdx callq *0x20(%r14) testq %rax, %rax je 0x15c27 movq %rax, (%r14) movq %r15, 0x10(%r14) xorl %ebx, %ebx jmp 0x15c2f movl $0x1, 0x18(%r14) movl %ebx, %eax popq %rbx popq %r14 popq %r15 retq
dbuf_realloc: push r15 push r14 push rbx mov rax, [rdi+10h] xor ebx, ebx cmp rax, rsi jnb short loc_15C2F mov r14, rdi push 0FFFFFFFFFFFFFFFFh pop rbx cmp dword ptr [rdi+18h], 0 jnz short loc_15C2F lea r15, [rax+rax*2] shr r15, 1 cmp r15, rsi cmovbe r15, rsi mov rsi, [r14] mov rdi, [r14+28h] mov rdx, r15 call qword ptr [r14+20h] test rax, rax jz short loc_15C27 mov [r14], rax mov [r14+10h], r15 xor ebx, ebx jmp short loc_15C2F loc_15C27: mov dword ptr [r14+18h], 1 loc_15C2F: mov eax, ebx pop rbx pop r14 pop r15 retn
long long dbuf_realloc(long long a1, unsigned long long a2) { unsigned long long v2; // rax unsigned int v3; // ebx unsigned long long v4; // r15 long long v5; // rax v2 = *(_QWORD *)(a1 + 16); v3 = 0; if ( v2 < a2 ) { v3 = -1; if ( !*(_DWORD *)(a1 + 24) ) { v4 = (3 * v2) >> 1; if ( v4 <= a2 ) v4 = a2; v5 = (*(long long ( **)(_QWORD, _QWORD, unsigned long long))(a1 + 32))( *(_QWORD *)(a1 + 40), *(_QWORD *)a1, v4); if ( v5 ) { *(_QWORD *)a1 = v5; *(_QWORD *)(a1 + 16) = v4; return 0; } else { *(_DWORD *)(a1 + 24) = 1; } } } return v3; }
dbuf_realloc: PUSH R15 PUSH R14 PUSH RBX MOV RAX,qword ptr [RDI + 0x10] XOR EBX,EBX CMP RAX,RSI JNC 0x00115c2f MOV R14,RDI PUSH -0x1 POP RBX CMP dword ptr [RDI + 0x18],0x0 JNZ 0x00115c2f LEA R15,[RAX + RAX*0x2] SHR R15,0x1 CMP R15,RSI CMOVBE R15,RSI MOV RSI,qword ptr [R14] MOV RDI,qword ptr [R14 + 0x28] MOV RDX,R15 CALL qword ptr [R14 + 0x20] TEST RAX,RAX JZ 0x00115c27 MOV qword ptr [R14],RAX MOV qword ptr [R14 + 0x10],R15 XOR EBX,EBX JMP 0x00115c2f LAB_00115c27: MOV dword ptr [R14 + 0x18],0x1 LAB_00115c2f: MOV EAX,EBX POP RBX POP R14 POP R15 RET
int4 dbuf_realloc(long *param_1,ulong param_2) { long lVar1; int4 uVar2; ulong uVar3; uVar2 = 0; if ((ulong)param_1[2] < param_2) { uVar2 = 0xffffffff; if ((int)param_1[3] == 0) { uVar3 = (ulong)(param_1[2] * 3) >> 1; if (uVar3 <= param_2) { uVar3 = param_2; } lVar1 = (*(code *)param_1[4])(param_1[5],*param_1,uVar3); if (lVar1 == 0) { *(int4 *)(param_1 + 3) = 1; } else { *param_1 = lVar1; param_1[2] = uVar3; uVar2 = 0; } } } return uVar2; }
38,750
string_from[abi:cxx11](llama_context const*, std::vector<int, std::allocator<int>> const&)
monkey531[P]llama/common/common.cpp
std::string string_from(const struct llama_context * ctx, const std::vector<llama_token> & tokens) { std::stringstream buf; buf << "[ "; bool first = true; for (const auto & token : tokens) { if (!first) { buf << ", "; } else { first = false; } auto detokenized = common_token_to_piece(ctx, token); detokenized.erase( std::remove_if( detokenized.begin(), detokenized.end(), [](const unsigned char c) { return !std::isprint(c); }), detokenized.end()); buf << "'" << detokenized << "'" << ":" << std::to_string(token); } buf << " ]"; return buf.str(); }
O3
cpp
string_from[abi:cxx11](llama_context const*, std::vector<int, std::allocator<int>> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1e8, %rsp # imm = 0x1E8 movq %rdx, %rbx movq %rsi, 0x58(%rsp) movq %rdi, 0x48(%rsp) leaq 0x60(%rsp), %rdi callq 0x1a660 leaq 0x70(%rsp), %r14 leaq 0x7befc(%rip), %rsi # 0xeee4f movl $0x2, %edx movq %r14, %rdi callq 0x1aa00 movq (%rbx), %r13 movq 0x8(%rbx), %rax movq %rax, 0x50(%rsp) cmpq %rax, %r13 je 0x7322d movb $0x1, %al testb $0x1, %al jne 0x72f8f movl $0x2, %edx movq %r14, %rdi leaq 0x7c866(%rip), %rsi # 0xef7f0 callq 0x1aa00 movl (%r13), %ebx movq 0x58(%rsp), %rdi callq 0x1a7b0 movq %rax, %rdi callq 0x1b140 leaq 0x8(%rsp), %rdi movq %rax, %rsi movl %ebx, %edx movl $0x1, %ecx callq 0x760c9 movq 0x8(%rsp), %r15 movq 0x10(%rsp), %rax leaq (%r15,%rax), %rbx movq %rax, %r14 sarq $0x2, %r14 movq %r15, %rbp testq %r14, %r14 jle 0x73037 andq $-0x4, %rax movq %rax, %rbp addq %r15, %rbp incq %r14 leaq 0x3(%r15), %r12 movzbl -0x3(%r12), %edi callq 0x1afa0 testl %eax, %eax je 0x7308c movzbl -0x2(%r12), %edi callq 0x1afa0 testl %eax, %eax je 0x73092 movzbl -0x1(%r12), %edi callq 0x1afa0 testl %eax, %eax je 0x73098 movzbl (%r12), %edi callq 0x1afa0 testl %eax, %eax je 0x7309b decq %r14 addq $0x4, %r12 cmpq $0x1, %r14 jg 0x72fe7 movq %rbx, %rax subq %rbp, %rax cmpq $0x1, %rax je 0x73078 cmpq $0x2, %rax leaq 0x70(%rsp), %r14 je 0x73068 cmpq $0x3, %rax jne 0x73225 movzbl (%rbp), %edi callq 0x1afa0 testl %eax, %eax je 0x73087 incq %rbp movzbl (%rbp), %edi callq 0x1afa0 testl %eax, %eax je 0x73087 incq %rbp movzbl (%rbp), %edi callq 0x1afa0 testl %eax, %eax cmovneq %rbx, %rbp movq %rbp, %r12 jmp 0x7309b addq $-0x3, %r12 jmp 0x7309b addq $-0x2, %r12 jmp 0x7309b decq %r12 cmpq %rbx, %r12 sete %al leaq 0x1(%r12), %r14 cmpq %rbx, %r14 sete %cl orb %al, %cl jne 0x730d4 movb (%r14), %bpl movzbl %bpl, %edi callq 0x1afa0 testl %eax, %eax je 0x730c7 movb %bpl, (%r12) incq %r12 incq %r14 cmpq %rbx, %r14 jne 0x730b0 movq 0x8(%rsp), %r15 leaq 0x70(%rsp), %r14 movq %r12, %rax subq %r15, %rax movq %rax, 0x10(%rsp) movb $0x0, (%r12) movl $0x1, %edx movq %r14, %rdi leaq 0x7ae12(%rip), %rsi # 0xedf0a callq 0x1aa00 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx movq %r14, %rdi callq 0x1aa00 movq %rax, %r12 movl $0x1, %edx movq %rax, %rdi leaq 0x7ade9(%rip), %rsi # 0xedf0a callq 0x1aa00 movl $0x1, %edx movq %r12, %rdi leaq 0x7c806(%rip), %rsi # 0xef93b callq 0x1aa00 movl (%r13), %ebp movl %ebp, %ebx negl %ebx cmovsl %ebp, %ebx movl $0x1, %r15d cmpl $0xa, %ebx jb 0x73196 movl $0x4, %r15d movl %ebx, %eax cmpl $0x63, %eax jbe 0x7318d cmpl $0x3e7, %eax # imm = 0x3E7 jbe 0x73193 cmpl $0x2710, %eax # imm = 0x2710 jb 0x73196 movl %eax, %ecx movl $0xd1b71759, %edx # imm = 0xD1B71759 imulq %rdx, %rcx shrq $0x2d, %rcx addl $0x4, %r15d cmpl $0x1869f, %eax # imm = 0x1869F movl %ecx, %eax ja 0x73158 addl $-0x3, %r15d jmp 0x73196 addl $-0x2, %r15d jmp 0x73196 decl %r15d shrl $0x1f, %ebp leal (%r15,%rbp), %esi leaq 0x38(%rsp), %rax movq %rax, 0x28(%rsp) leaq 0x28(%rsp), %rdi movl $0x2d, %edx callq 0x1aa30 addq 0x28(%rsp), %rbp movq %rbp, %rdi movl %r15d, %esi movl %ebx, %edx callq 0x59287 movq 0x28(%rsp), %rsi movq 0x30(%rsp), %rdx movq %r12, %rdi callq 0x1aa00 movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x731f6 movq 0x38(%rsp), %rsi incq %rsi callq 0x1a8e0 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x73212 movq 0x18(%rsp), %rsi incq %rsi callq 0x1a8e0 addq $0x4, %r13 xorl %eax, %eax cmpq 0x50(%rsp), %r13 jne 0x72f77 jmp 0x7322d movq %rbx, %r12 jmp 0x730d9 leaq 0x7323a(%rip), %rsi # 0xe646e movl $0x2, %edx movq %r14, %rdi callq 0x1aa00 movq 0x48(%rsp), %rbx leaq 0x78(%rsp), %rsi movq %rbx, %rdi callq 0x1adb0 movq 0xb8cce(%rip), %rsi # 0x12bf28 leaq 0x60(%rsp), %rdi callq 0x1a6a0 leaq 0xe0(%rsp), %rdi callq 0x1a2c0 movq %rbx, %rax addq $0x1e8, %rsp # imm = 0x1E8 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x732af jmp 0x732af jmp 0x732af jmp 0x732b4 movq %rax, %rbx movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x732b7 movq 0x38(%rsp), %rsi incq %rsi callq 0x1a8e0 jmp 0x732b7 movq %rax, %rbx jmp 0x732d3 movq %rax, %rbx movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x732d3 movq 0x18(%rsp), %rsi incq %rsi callq 0x1a8e0 movq 0xb8c4e(%rip), %rsi # 0x12bf28 leaq 0x60(%rsp), %rdi callq 0x1a6a0 leaq 0xe0(%rsp), %rdi callq 0x1a2c0 movq %rbx, %rdi callq 0x1af90
_Z11string_fromB5cxx11PK13llama_contextRKSt6vectorIiSaIiEE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 1E8h mov rbx, rdx mov [rsp+218h+var_1C0], rsi mov [rsp+218h+var_1D0], rdi lea rdi, [rsp+218h+var_1B8] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void) lea r14, [rsp+218h+var_1A8] lea rsi, asc_EEE4F; "[ " mov edx, 2 mov rdi, r14 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov r13, [rbx] mov rax, [rbx+8] mov [rsp+218h+var_1C8], rax cmp r13, rax jz loc_7322D mov al, 1 loc_72F77: test al, 1 jnz short loc_72F8F mov edx, 2 mov rdi, r14 lea rsi, aZuD+6; ", " call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) loc_72F8F: mov ebx, [r13+0] mov rdi, [rsp+218h+var_1C0] call _llama_get_model mov rdi, rax call _llama_model_get_vocab lea rdi, [rsp+218h+var_210] mov rsi, rax mov edx, ebx mov ecx, 1 call _Z21common_token_to_pieceB5cxx11PK11llama_vocabib; common_token_to_piece(llama_vocab const*,int,bool) mov r15, [rsp+218h+var_210] mov rax, [rsp+218h+var_208] lea rbx, [r15+rax] mov r14, rax sar r14, 2 mov rbp, r15 test r14, r14 jle short loc_73037 and rax, 0FFFFFFFFFFFFFFFCh mov rbp, rax add rbp, r15 inc r14 lea r12, [r15+3] loc_72FE7: movzx edi, byte ptr [r12-3] call _isprint test eax, eax jz loc_7308C movzx edi, byte ptr [r12-2] call _isprint test eax, eax jz loc_73092 movzx edi, byte ptr [r12-1] call _isprint test eax, eax jz short loc_73098 movzx edi, byte ptr [r12] call _isprint test eax, eax jz short loc_7309B dec r14 add r12, 4 cmp r14, 1 jg short loc_72FE7 loc_73037: mov rax, rbx sub rax, rbp cmp rax, 1 jz short loc_73078 cmp rax, 2 lea r14, [rsp+218h+var_1A8] jz short loc_73068 cmp rax, 3 jnz loc_73225 movzx edi, byte ptr [rbp+0] call _isprint test eax, eax jz short loc_73087 inc rbp loc_73068: movzx edi, byte ptr [rbp+0] call _isprint test eax, eax jz short loc_73087 inc rbp loc_73078: movzx edi, byte ptr [rbp+0] call _isprint test eax, eax cmovnz rbp, rbx loc_73087: mov r12, rbp jmp short loc_7309B loc_7308C: add r12, 0FFFFFFFFFFFFFFFDh jmp short loc_7309B loc_73092: add r12, 0FFFFFFFFFFFFFFFEh jmp short loc_7309B loc_73098: dec r12 loc_7309B: cmp r12, rbx setz al lea r14, [r12+1] cmp r14, rbx setz cl or cl, al jnz short loc_730D4 loc_730B0: mov bpl, [r14] movzx edi, bpl call _isprint test eax, eax jz short loc_730C7 mov [r12], bpl inc r12 loc_730C7: inc r14 cmp r14, rbx jnz short loc_730B0 mov r15, [rsp+218h+var_210] loc_730D4: lea r14, [rsp+218h+var_1A8] loc_730D9: mov rax, r12 sub rax, r15 mov [rsp+218h+var_208], rax mov byte ptr [r12], 0 mov edx, 1 mov rdi, r14 lea rsi, asc_EDF08+2; "'" call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rsi, [rsp+218h+var_210] mov rdx, [rsp+218h+var_208] mov rdi, r14 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov r12, rax mov edx, 1 mov rdi, rax lea rsi, asc_EDF08+2; "'" call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov edx, 1 mov rdi, r12 lea rsi, aArgumentNeedle_0+11h; ":" call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov ebp, [r13+0] mov ebx, ebp neg ebx cmovs ebx, ebp mov r15d, 1 cmp ebx, 0Ah jb short loc_73196 mov r15d, 4 mov eax, ebx loc_73158: cmp eax, 63h ; 'c' jbe short loc_7318D cmp eax, 3E7h jbe short loc_73193 cmp eax, 2710h jb short loc_73196 mov ecx, eax mov edx, 0D1B71759h imul rcx, rdx shr rcx, 2Dh add r15d, 4 cmp eax, 1869Fh mov eax, ecx ja short loc_73158 add r15d, 0FFFFFFFDh jmp short loc_73196 loc_7318D: add r15d, 0FFFFFFFEh jmp short loc_73196 loc_73193: dec r15d loc_73196: shr ebp, 1Fh lea esi, [r15+rbp] lea rax, [rsp+218h+var_1E0] mov [rsp+218h+var_1F0], rax lea rdi, [rsp+218h+var_1F0] mov edx, 2Dh ; '-' call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char) add rbp, [rsp+218h+var_1F0] mov rdi, rbp mov esi, r15d mov edx, ebx call _ZNSt8__detail18__to_chars_10_implIjEEvPcjT_; std::__detail::__to_chars_10_impl<uint>(char *,uint,uint) mov rsi, [rsp+218h+var_1F0] mov rdx, [rsp+218h+var_1E8] mov rdi, r12 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rdi, [rsp+218h+var_1F0]; void * lea rax, [rsp+218h+var_1E0] cmp rdi, rax jz short loc_731F6 mov rsi, [rsp+218h+var_1E0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_731F6: mov rdi, [rsp+218h+var_210]; void * lea rax, [rsp+218h+var_200] cmp rdi, rax jz short loc_73212 mov rsi, [rsp+218h+var_200] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_73212: add r13, 4 xor eax, eax cmp r13, [rsp+218h+var_1C8] jnz loc_72F77 jmp short loc_7322D loc_73225: mov r12, rbx jmp loc_730D9 loc_7322D: lea rsi, asc_E646C+2; " ]" mov edx, 2 mov rdi, r14 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rbx, [rsp+218h+var_1D0] lea rsi, [rsp+218h+var_1A0] mov rdi, rbx call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+218h+var_1B8] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream() lea rdi, [rsp+218h+var_138]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() mov rax, rbx add rsp, 1E8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_732AF jmp short loc_732AF jmp short loc_732AF jmp short loc_732B4 mov rbx, rax mov rdi, [rsp+arg_20]; void * lea rax, [rsp+arg_30] cmp rdi, rax jz short loc_732B7 mov rsi, [rsp+arg_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_732B7 loc_732AF: mov rbx, rax jmp short loc_732D3 loc_732B4: mov rbx, rax loc_732B7: mov rdi, [rsp+arg_0]; void * lea rax, [rsp+arg_10] cmp rdi, rax jz short loc_732D3 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_732D3: mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+arg_58] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream() lea rdi, [rsp+arg_D8]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() mov rdi, rbx call __Unwind_Resume
long long string_from[abi:cxx11](long long a1, long long a2, unsigned int **a3) { char *v4; // rsi unsigned int *v5; // r13 char v6; // al unsigned int v7; // ebx long long model; // rax long long vocab; // rax _BYTE *v10; // r15 char *v11; // rbx char *v12; // rbp long long v13; // r14 char *v14; // r12 signed long long v15; // rax char *v16; // r14 char v17; // bp long long v18; // r12 unsigned int v19; // ebx int v20; // r15d unsigned int v21; // eax bool v22; // cc unsigned int v23; // ebp long long v24; // rbx void *v26; // [rsp+8h] [rbp-210h] BYREF long long v27; // [rsp+10h] [rbp-208h] long long v28; // [rsp+18h] [rbp-200h] BYREF void *v29[2]; // [rsp+28h] [rbp-1F0h] BYREF _QWORD v30[2]; // [rsp+38h] [rbp-1E0h] BYREF long long v31; // [rsp+48h] [rbp-1D0h] unsigned int *v32; // [rsp+50h] [rbp-1C8h] long long v33; // [rsp+58h] [rbp-1C0h] _BYTE v34[16]; // [rsp+60h] [rbp-1B8h] BYREF char v35[8]; // [rsp+70h] [rbp-1A8h] BYREF char v36[104]; // [rsp+78h] [rbp-1A0h] BYREF char v37[312]; // [rsp+E0h] [rbp-138h] BYREF v33 = a2; v31 = a1; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v34); v4 = "[ "; std::__ostream_insert<char,std::char_traits<char>>(v35, "[ ", 2LL); v5 = *a3; v32 = a3[1]; if ( v5 != v32 ) { v6 = 1; while ( 1 ) { if ( (v6 & 1) == 0 ) { v4 = ", "; std::__ostream_insert<char,std::char_traits<char>>(v35, ", ", 2LL); } v7 = *v5; model = llama_get_model(v33); vocab = llama_model_get_vocab(model, v4); common_token_to_piece[abi:cxx11](&v26, vocab, v7, 1LL); v10 = v26; v11 = (char *)v26 + v27; v12 = (char *)v26; if ( v27 >> 2 > 0 ) break; LABEL_12: v15 = v11 - v12; if ( v11 - v12 == 1 ) goto LABEL_19; if ( v15 == 2 ) goto LABEL_17; if ( v15 == 3 ) { if ( (unsigned int)isprint((unsigned __int8)*v12) ) { ++v12; LABEL_17: if ( (unsigned int)isprint((unsigned __int8)*v12) ) { ++v12; LABEL_19: if ( (unsigned int)isprint((unsigned __int8)*v12) ) v12 = v11; } } v14 = v12; LABEL_25: v16 = v14 + 1; if ( v14 != v11 && v14 + 1 != v11 ) { do { v17 = *v16; if ( (unsigned int)isprint((unsigned __int8)*v16) ) *v14++ = v17; ++v16; } while ( v16 != v11 ); v10 = v26; } goto LABEL_30; } v14 = v11; LABEL_30: v27 = v14 - v10; *v14 = 0; std::__ostream_insert<char,std::char_traits<char>>(v35, "'", 1LL); v18 = std::__ostream_insert<char,std::char_traits<char>>(v35, v26, v27); std::__ostream_insert<char,std::char_traits<char>>(v18, "'", 1LL); std::__ostream_insert<char,std::char_traits<char>>(v18, ":", 1LL); v19 = -*v5; if ( (int)*v5 > 0 ) v19 = *v5; v20 = 1; if ( v19 >= 0xA ) { v20 = 4; v21 = v19; while ( 1 ) { if ( v21 <= 0x63 ) { v20 -= 2; goto LABEL_41; } if ( v21 <= 0x3E7 ) break; if ( v21 < 0x2710 ) goto LABEL_41; v20 += 4; v22 = v21 <= 0x1869F; v21 /= 0x2710u; if ( v22 ) { v20 -= 3; goto LABEL_41; } } --v20; } LABEL_41: v23 = *v5 >> 31; v29[0] = v30; std::string::_M_construct(v29, v20 + v23, 45LL); std::__detail::__to_chars_10_impl<unsigned int>((char *)v29[0] + v23, v20, v19); v4 = (char *)v29[0]; std::__ostream_insert<char,std::char_traits<char>>(v18, v29[0], v29[1]); if ( v29[0] != v30 ) { v4 = (char *)(v30[0] + 1LL); operator delete(v29[0], v30[0] + 1LL); } if ( v26 != &v28 ) { v4 = (char *)(v28 + 1); operator delete(v26, v28 + 1); } ++v5; v6 = 0; if ( v5 == v32 ) goto LABEL_48; } v12 = (char *)v26 + (v27 & 0xFFFFFFFFFFFFFFFCLL); v13 = (v27 >> 2) + 1; v14 = (char *)v26 + 3; while ( 1 ) { if ( !(unsigned int)isprint((unsigned __int8)*(v14 - 3)) ) { v14 -= 3; goto LABEL_25; } if ( !(unsigned int)isprint((unsigned __int8)*(v14 - 2)) ) { v14 -= 2; goto LABEL_25; } if ( !(unsigned int)isprint((unsigned __int8)*(v14 - 1)) ) break; if ( !(unsigned int)isprint((unsigned __int8)*v14) ) goto LABEL_25; --v13; v14 += 4; if ( v13 <= 1 ) goto LABEL_12; } --v14; goto LABEL_25; } LABEL_48: std::__ostream_insert<char,std::char_traits<char>>(v35, " ]", 2LL); v24 = v31; std::stringbuf::str(v31, v36); std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream( v34, &`VTT for'std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>); std::ios_base::~ios_base((std::ios_base *)v37); return v24; }
string_from[abi:cxx11]: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x1e8 MOV RBX,RDX MOV qword ptr [RSP + 0x58],RSI MOV qword ptr [RSP + 0x48],RDI LEA RDI,[RSP + 0x60] CALL 0x0011a660 LEA R14,[RSP + 0x70] LAB_00172f4c: LEA RSI,[0x1eee4f] MOV EDX,0x2 MOV RDI,R14 CALL 0x0011aa00 MOV R13,qword ptr [RBX] MOV RAX,qword ptr [RBX + 0x8] MOV qword ptr [RSP + 0x50],RAX CMP R13,RAX JZ 0x0017322d MOV AL,0x1 LAB_00172f77: TEST AL,0x1 JNZ 0x00172f8f LAB_00172f7b: MOV EDX,0x2 MOV RDI,R14 LEA RSI,[0x1ef7f0] CALL 0x0011aa00 LAB_00172f8f: MOV EBX,dword ptr [R13] LAB_00172f93: MOV RDI,qword ptr [RSP + 0x58] CALL 0x0011a7b0 MOV RDI,RAX CALL 0x0011b140 LEA RDI,[RSP + 0x8] MOV RSI,RAX MOV EDX,EBX MOV ECX,0x1 CALL 0x001760c9 MOV R15,qword ptr [RSP + 0x8] MOV RAX,qword ptr [RSP + 0x10] LEA RBX,[R15 + RAX*0x1] MOV R14,RAX SAR R14,0x2 MOV RBP,R15 TEST R14,R14 JLE 0x00173037 AND RAX,-0x4 MOV RBP,RAX ADD RBP,R15 INC R14 LEA R12,[R15 + 0x3] LAB_00172fe7: MOVZX EDI,byte ptr [R12 + -0x3] CALL 0x0011afa0 TEST EAX,EAX JZ 0x0017308c MOVZX EDI,byte ptr [R12 + -0x2] CALL 0x0011afa0 TEST EAX,EAX JZ 0x00173092 MOVZX EDI,byte ptr [R12 + -0x1] CALL 0x0011afa0 TEST EAX,EAX JZ 0x00173098 MOVZX EDI,byte ptr [R12] CALL 0x0011afa0 TEST EAX,EAX JZ 0x0017309b DEC R14 ADD R12,0x4 CMP R14,0x1 JG 0x00172fe7 LAB_00173037: MOV RAX,RBX SUB RAX,RBP CMP RAX,0x1 JZ 0x00173078 CMP RAX,0x2 LEA R14,[RSP + 0x70] JZ 0x00173068 CMP RAX,0x3 JNZ 0x00173225 MOVZX EDI,byte ptr [RBP] CALL 0x0011afa0 TEST EAX,EAX JZ 0x00173087 INC RBP LAB_00173068: MOVZX EDI,byte ptr [RBP] CALL 0x0011afa0 TEST EAX,EAX JZ 0x00173087 INC RBP LAB_00173078: MOVZX EDI,byte ptr [RBP] CALL 0x0011afa0 TEST EAX,EAX CMOVNZ RBP,RBX LAB_00173087: MOV R12,RBP JMP 0x0017309b LAB_0017308c: ADD R12,-0x3 JMP 0x0017309b LAB_00173092: ADD R12,-0x2 JMP 0x0017309b LAB_00173098: DEC R12 LAB_0017309b: CMP R12,RBX SETZ AL LEA R14,[R12 + 0x1] CMP R14,RBX SETZ CL OR CL,AL JNZ 0x001730d4 LAB_001730b0: MOV BPL,byte ptr [R14] MOVZX EDI,BPL CALL 0x0011afa0 TEST EAX,EAX JZ 0x001730c7 MOV byte ptr [R12],BPL INC R12 LAB_001730c7: INC R14 CMP R14,RBX JNZ 0x001730b0 MOV R15,qword ptr [RSP + 0x8] LAB_001730d4: LEA R14,[RSP + 0x70] LAB_001730d9: MOV RAX,R12 SUB RAX,R15 MOV qword ptr [RSP + 0x10],RAX MOV byte ptr [R12],0x0 LAB_001730e9: MOV EDX,0x1 MOV RDI,R14 LEA RSI,[0x1edf0a] CALL 0x0011aa00 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] MOV RDI,R14 CALL 0x0011aa00 MOV R12,RAX MOV EDX,0x1 MOV RDI,RAX LEA RSI,[0x1edf0a] CALL 0x0011aa00 MOV EDX,0x1 MOV RDI,R12 LEA RSI,[0x1ef93b] CALL 0x0011aa00 MOV EBP,dword ptr [R13] MOV EBX,EBP NEG EBX CMOVS EBX,EBP MOV R15D,0x1 CMP EBX,0xa JC 0x00173196 MOV R15D,0x4 MOV EAX,EBX LAB_00173158: CMP EAX,0x63 JBE 0x0017318d CMP EAX,0x3e7 JBE 0x00173193 CMP EAX,0x2710 JC 0x00173196 MOV ECX,EAX MOV EDX,0xd1b71759 IMUL RCX,RDX SHR RCX,0x2d ADD R15D,0x4 CMP EAX,0x1869f MOV EAX,ECX JA 0x00173158 ADD R15D,-0x3 JMP 0x00173196 LAB_0017318d: ADD R15D,-0x2 JMP 0x00173196 LAB_00173193: DEC R15D LAB_00173196: SHR EBP,0x1f LEA ESI,[R15 + RBP*0x1] LEA RAX,[RSP + 0x38] MOV qword ptr [RSP + 0x28],RAX LAB_001731a7: LEA RDI,[RSP + 0x28] MOV EDX,0x2d CALL 0x0011aa30 ADD RBP,qword ptr [RSP + 0x28] MOV RDI,RBP MOV ESI,R15D MOV EDX,EBX CALL 0x00159287 MOV RSI,qword ptr [RSP + 0x28] MOV RDX,qword ptr [RSP + 0x30] LAB_001731d2: MOV RDI,R12 CALL 0x0011aa00 MOV RDI,qword ptr [RSP + 0x28] LEA RAX,[RSP + 0x38] CMP RDI,RAX JZ 0x001731f6 MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x0011a8e0 LAB_001731f6: MOV RDI,qword ptr [RSP + 0x8] LEA RAX,[RSP + 0x18] CMP RDI,RAX JZ 0x00173212 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011a8e0 LAB_00173212: ADD R13,0x4 XOR EAX,EAX CMP R13,qword ptr [RSP + 0x50] JNZ 0x00172f77 JMP 0x0017322d LAB_00173225: MOV R12,RBX JMP 0x001730d9 LAB_0017322d: LEA RSI,[0x1e646e] MOV EDX,0x2 MOV RDI,R14 CALL 0x0011aa00 MOV RBX,qword ptr [RSP + 0x48] LEA RSI,[RSP + 0x78] MOV RDI,RBX CALL 0x0011adb0 LAB_00173253: MOV RSI,qword ptr [0x0022bf28] LEA RDI,[RSP + 0x60] CALL 0x0011a6a0 LEA RDI,[RSP + 0xe0] CALL 0x0011a2c0 MOV RAX,RBX ADD RSP,0x1e8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* string_from[abi:cxx11](llama_context const*, std::vector<int, std::allocator<int> > const&) */ llama_context * string_from_abi_cxx11_(llama_context *param_1,vector *param_2) { byte *pbVar1; byte bVar2; uint uVar3; uint uVar4; llama_context *plVar5; uint uVar6; bool bVar7; int iVar8; uint uVar9; int8 uVar10; ostream *poVar11; ulong uVar12; int8 *in_RDX; byte *pbVar13; byte *pbVar14; uint *puVar15; long lVar16; uint uVar17; byte *pbVar18; byte *local_210; ulong local_208; long local_200 [2]; long *local_1f0; long local_1e8; long local_1e0 [2]; llama_context *local_1d0; uint *local_1c8; vector *local_1c0; stringstream local_1b8 [16]; ostream local_1a8 [112]; ios_base local_138 [264]; local_1d0 = param_1; local_1c0 = param_2; std::__cxx11::stringstream::stringstream(local_1b8); /* try { // try from 00172f4c to 00172f5f has its CatchHandler @ 00173286 */ std::__ostream_insert<char,std::char_traits<char>>(local_1a8,"[ ",2); puVar15 = (uint *)*in_RDX; local_1c8 = (uint *)in_RDX[1]; if (puVar15 != local_1c8) { bVar7 = true; do { if (!bVar7) { /* try { // try from 00172f7b to 00172f8e has its CatchHandler @ 0017328a */ std::__ostream_insert<char,std::char_traits<char>>(local_1a8,", ",2); } uVar3 = *puVar15; /* try { // try from 00172f93 to 00172fb8 has its CatchHandler @ 001732af */ uVar10 = llama_get_model(local_1c0); iVar8 = llama_model_get_vocab(uVar10); common_token_to_piece_abi_cxx11_((llama_vocab *)&local_210,iVar8,SUB41(uVar3,0)); pbVar18 = local_210; pbVar1 = local_210 + local_208; pbVar13 = local_210; if (0 < (long)local_208 >> 2) { pbVar13 = local_210 + (local_208 & 0xfffffffffffffffc); lVar16 = ((long)local_208 >> 2) + 1; pbVar14 = local_210 + 3; do { iVar8 = isprint((uint)pbVar14[-3]); if (iVar8 == 0) { pbVar14 = pbVar14 + -3; goto LAB_0017309b; } iVar8 = isprint((uint)pbVar14[-2]); if (iVar8 == 0) { pbVar14 = pbVar14 + -2; goto LAB_0017309b; } iVar8 = isprint((uint)pbVar14[-1]); if (iVar8 == 0) { pbVar14 = pbVar14 + -1; goto LAB_0017309b; } iVar8 = isprint((uint)*pbVar14); if (iVar8 == 0) goto LAB_0017309b; lVar16 = lVar16 + -1; pbVar14 = pbVar14 + 4; } while (1 < lVar16); } lVar16 = (long)pbVar1 - (long)pbVar13; if (lVar16 == 1) { LAB_00173078: iVar8 = isprint((uint)*pbVar13); pbVar14 = pbVar13; if (iVar8 != 0) { pbVar14 = pbVar1; } LAB_0017309b: pbVar13 = pbVar14 + 1; if (pbVar13 != pbVar1 && pbVar14 != pbVar1) { do { bVar2 = *pbVar13; iVar8 = isprint((uint)bVar2); if (iVar8 != 0) { *pbVar14 = bVar2; pbVar14 = pbVar14 + 1; } pbVar13 = pbVar13 + 1; pbVar18 = local_210; } while (pbVar13 != pbVar1); } } else { if (lVar16 == 2) { LAB_00173068: iVar8 = isprint((uint)*pbVar13); pbVar14 = pbVar13; if (iVar8 != 0) { pbVar13 = pbVar13 + 1; goto LAB_00173078; } goto LAB_0017309b; } pbVar14 = pbVar1; if (lVar16 == 3) { iVar8 = isprint((uint)*pbVar13); pbVar14 = pbVar13; if (iVar8 != 0) { pbVar13 = pbVar13 + 1; goto LAB_00173068; } goto LAB_0017309b; } } local_208 = (long)pbVar14 - (long)pbVar18; *pbVar14 = 0; /* try { // try from 001730e9 to 00173139 has its CatchHandler @ 001732b4 */ std::__ostream_insert<char,std::char_traits<char>>(local_1a8,"\'",1); poVar11 = std::__ostream_insert<char,std::char_traits<char>> (local_1a8,(char *)local_210,local_208); std::__ostream_insert<char,std::char_traits<char>>(poVar11,"\'",1); std::__ostream_insert<char,std::char_traits<char>>(poVar11,":",1); uVar3 = *puVar15; uVar4 = -uVar3; if (0 < (int)uVar3) { uVar4 = uVar3; } uVar17 = 1; if (9 < uVar4) { uVar12 = (ulong)uVar4; uVar6 = 4; do { uVar17 = uVar6; uVar9 = (uint)uVar12; if (uVar9 < 100) { uVar17 = uVar17 - 2; goto LAB_00173196; } if (uVar9 < 1000) { uVar17 = uVar17 - 1; goto LAB_00173196; } if (uVar9 < 10000) goto LAB_00173196; uVar12 = uVar12 / 10000; uVar6 = uVar17 + 4; } while (99999 < uVar9); uVar17 = uVar17 + 1; } LAB_00173196: local_1f0 = local_1e0; /* try { // try from 001731a7 to 001731b5 has its CatchHandler @ 0017328c */ std::__cxx11::string::_M_construct ((ulong)&local_1f0,(char)uVar17 - (char)((int)uVar3 >> 0x1f)); std::__detail::__to_chars_10_impl<unsigned_int> ((char *)((long)local_1f0 + (ulong)(uVar3 >> 0x1f)),uVar17,uVar4); /* try { // try from 001731d2 to 001731d9 has its CatchHandler @ 0017328e */ std::__ostream_insert<char,std::char_traits<char>>(poVar11,(char *)local_1f0,local_1e8); if (local_1f0 != local_1e0) { operator_delete(local_1f0,local_1e0[0] + 1); } if (local_210 != (byte *)local_200) { operator_delete(local_210,local_200[0] + 1); } puVar15 = puVar15 + 1; bVar7 = false; } while (puVar15 != local_1c8); } /* try { // try from 0017322d to 00173252 has its CatchHandler @ 00173288 */ std::__ostream_insert<char,std::char_traits<char>>(local_1a8," ]",2); plVar5 = local_1d0; std::__cxx11::stringbuf::str(); std::__cxx11::stringstream::~stringstream(local_1b8); std::ios_base::~ios_base(local_138); return plVar5; }
38,751
mysql_real_connect_start_internal
eloqsql/libmariadb/libmariadb/mariadb_async.c
static void mysql_real_connect_start_internal(void *d) { MK_ASYNC_INTERNAL_BODY( mysql_real_connect, (parms->mysql, parms->host, parms->user, parms->passwd, parms->db, parms->port, parms->unix_socket, parms->client_flags), parms->mysql, MYSQL *, r_ptr) }
O3
c
mysql_real_connect_start_internal: pushq %rbp movq %rsp, %rbp pushq %rbx subq $0x18, %rsp movq (%rdi), %rax movq 0x8(%rdi), %rsi movq 0x480(%rax), %rcx movq 0x28(%rcx), %rbx movq 0x10(%rdi), %rdx movq 0x18(%rdi), %rcx movq 0x20(%rdi), %r8 movl 0x28(%rdi), %r9d movups 0x30(%rdi), %xmm0 movups %xmm0, (%rsp) movq %rax, %rdi callq 0x1ce6a movq %rax, 0x8(%rbx) movl $0x0, (%rbx) addq $0x18, %rsp popq %rbx popq %rbp retq
mysql_real_connect_start_internal: push rbp mov rbp, rsp push rbx sub rsp, 18h mov rax, [rdi] mov rsi, [rdi+8] mov rcx, [rax+480h] mov rbx, [rcx+28h] mov rdx, [rdi+10h] mov rcx, [rdi+18h] mov r8, [rdi+20h] mov r9d, [rdi+28h] movups xmm0, xmmword ptr [rdi+30h] movups [rsp+20h+var_20], xmm0 mov rdi, rax call mysql_real_connect mov [rbx+8], rax mov dword ptr [rbx], 0 add rsp, 18h pop rbx pop rbp retn
long long mysql_real_connect_start_internal( __m128 *a1, double a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9) { long long v9; // rbx long long result; // rax v9 = *(_QWORD *)(*(_QWORD *)(a1->m128_u64[0] + 1152) + 40LL); result = mysql_real_connect( a1->m128_u64[0], a1->m128_i64[1], a1[1].m128_i64[0], a1[1].m128_i64[1], a1[2].m128_i64[0], a1[2].m128_u32[2], a1[3], a3, a4, a5, a6, a7, a8, a9, a1[3].m128_i64[0], a1[3].m128_i64[1]); *(_QWORD *)(v9 + 8) = result; *(_DWORD *)v9 = 0; return result; }
mysql_real_connect_start_internal: PUSH RBP MOV RBP,RSP PUSH RBX SUB RSP,0x18 MOV RAX,qword ptr [RDI] MOV RSI,qword ptr [RDI + 0x8] MOV RCX,qword ptr [RAX + 0x480] MOV RBX,qword ptr [RCX + 0x28] MOV RDX,qword ptr [RDI + 0x10] MOV RCX,qword ptr [RDI + 0x18] MOV R8,qword ptr [RDI + 0x20] MOV R9D,dword ptr [RDI + 0x28] MOVUPS XMM0,xmmword ptr [RDI + 0x30] MOVUPS xmmword ptr [RSP],XMM0 MOV RDI,RAX CALL 0x0011ce6a MOV qword ptr [RBX + 0x8],RAX MOV dword ptr [RBX],0x0 ADD RSP,0x18 POP RBX POP RBP RET
void mysql_real_connect_start_internal(long *param_1) { int4 *puVar1; int8 uVar2; puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28); uVar2 = mysql_real_connect(*param_1,param_1[1],param_1[2],param_1[3],param_1[4],(int)param_1[5], (int)param_1[6],(int)param_1[7]); *(int8 *)(puVar1 + 2) = uVar2; *puVar1 = 0; return; }
38,752
mcp::tool_builder::tool_builder(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
hkr04[P]cpp-mcp/src/mcp_tool.cpp
tool_builder::tool_builder(const std::string& name) : name_(name) { }
O1
cpp
mcp::tool_builder::tool_builder(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbx movq %rdi, %rbx leaq 0x10(%rdi), %rax movq %rax, (%rdi) movq (%rsi), %rax movq 0x8(%rsi), %rdx addq %rax, %rdx movq %rax, %rsi callq 0xf9c0 leaq 0x30(%rbx), %rax movq %rax, 0x20(%rbx) movq $0x0, 0x28(%rbx) xorl %eax, %eax movb %al, 0x30(%rbx) movb %al, 0x40(%rbx) xorps %xmm0, %xmm0 movups %xmm0, 0x48(%rbx) movups %xmm0, 0x58(%rbx) popq %rbx retq
_ZN3mcp12tool_builderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push rbx; Alternative name is 'mcp::tool_builder::tool_builder(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)' mov rbx, rdi lea rax, [rdi+10h] mov [rdi], rax mov rax, [rsi] mov rdx, [rsi+8] add rdx, rax mov rsi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea rax, [rbx+30h] mov [rbx+20h], rax mov qword ptr [rbx+28h], 0 xor eax, eax mov [rbx+30h], al mov [rbx+40h], al xorps xmm0, xmm0 movups xmmword ptr [rbx+48h], xmm0 movups xmmword ptr [rbx+58h], xmm0 pop rbx retn
long long mcp::tool_builder::tool_builder(long long a1, long long a2) { long long result; // rax *(_QWORD *)a1 = a1 + 16; std::string::_M_construct<char *>((_QWORD *)a1, *(_BYTE **)a2, *(_QWORD *)a2 + *(_QWORD *)(a2 + 8)); *(_QWORD *)(a1 + 32) = a1 + 48; *(_QWORD *)(a1 + 40) = 0LL; result = 0LL; *(_BYTE *)(a1 + 48) = 0; *(_BYTE *)(a1 + 64) = 0; *(_OWORD *)(a1 + 72) = 0LL; *(_OWORD *)(a1 + 88) = 0LL; return result; }
tool_builder: PUSH RBX MOV RBX,RDI LEA RAX,[RDI + 0x10] MOV qword ptr [RDI],RAX MOV RAX,qword ptr [RSI] MOV RDX,qword ptr [RSI + 0x8] ADD RDX,RAX MOV RSI,RAX CALL 0x0010f9c0 LEA RAX,[RBX + 0x30] MOV qword ptr [RBX + 0x20],RAX MOV qword ptr [RBX + 0x28],0x0 XOR EAX,EAX MOV byte ptr [RBX + 0x30],AL MOV byte ptr [RBX + 0x40],AL XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x48],XMM0 MOVUPS xmmword ptr [RBX + 0x58],XMM0 POP RBX RET
/* mcp::tool_builder::tool_builder(std::__cxx11::string const&) */ void __thiscall mcp::tool_builder::tool_builder(tool_builder *this,string *param_1) { *(tool_builder **)this = this + 0x10; std::__cxx11::string::_M_construct<char*> (this,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1); *(tool_builder **)(this + 0x20) = this + 0x30; *(int8 *)(this + 0x28) = 0; this[0x30] = (tool_builder)0x0; this[0x40] = (tool_builder)0x0; *(int8 *)(this + 0x48) = 0; *(int8 *)(this + 0x50) = 0; *(int8 *)(this + 0x58) = 0; *(int8 *)(this + 0x60) = 0; return; }
38,753
nglog::LogMessage::SendToSyslogAndLog()
ng-log[P]ng-log/src/logging.cc
void LogMessage::SendToSyslogAndLog() { #ifdef HAVE_SYSLOG_H // Before any calls to syslog(), make a single call to openlog() static bool openlog_already_called = false; if (!openlog_already_called) { openlog(tools::ProgramInvocationShortName(), LOG_CONS | LOG_NDELAY | LOG_PID, LOG_USER); openlog_already_called = true; } // This array maps Google severity levels to syslog levels const int SEVERITY_TO_LEVEL[] = {LOG_INFO, LOG_WARNING, LOG_ERR, LOG_EMERG}; syslog(LOG_USER | SEVERITY_TO_LEVEL[static_cast<int>(data_->severity_)], "%.*s", static_cast<int>(data_->num_chars_to_syslog_), data_->message_text_ + data_->num_prefix_chars_); SendToLog(); #else LOG(ERROR) << "No syslog support: message=" << data_->message_text_; #endif }
O1
cpp
nglog::LogMessage::SendToSyslogAndLog(): pushq %rbx movq %rdi, %rbx cmpb $0x0, 0x3ab24(%rip) # 0x56259 jne 0x1b755 callq 0x313df movq %rax, %rdi movl $0xb, %esi movl $0x8, %edx callq 0x8520 movb $0x1, 0x3ab04(%rip) # 0x56259 movq 0x8(%rbx), %rax movslq 0x7698(%rax), %rcx leaq 0x1a2a9(%rip), %rdx # 0x35a10 movl (%rdx,%rcx,4), %edi orl $0x8, %edi movl 0x76c8(%rax), %edx movq 0x76b8(%rax), %rcx addq %rax, %rcx addq $0x4, %rcx leaq 0x1937c(%rip), %rsi # 0x34b04 xorl %eax, %eax callq 0x80d0 movq %rbx, %rdi popq %rbx jmp 0x1a8ca
_ZN5nglog10LogMessage18SendToSyslogAndLogEv: push rbx mov rbx, rdi cmp cs:_ZZN5nglog10LogMessage18SendToSyslogAndLogEvE22openlog_already_called, 0; nglog::LogMessage::SendToSyslogAndLog(void)::openlog_already_called jnz short loc_1B755 call _ZN5nglog5tools26ProgramInvocationShortNameEv; nglog::tools::ProgramInvocationShortName(void) mov rdi, rax mov esi, 0Bh mov edx, 8 call _openlog mov cs:_ZZN5nglog10LogMessage18SendToSyslogAndLogEvE22openlog_already_called, 1; nglog::LogMessage::SendToSyslogAndLog(void)::openlog_already_called loc_1B755: mov rax, [rbx+8] movsxd rcx, dword ptr [rax+7698h] lea rdx, unk_35A10 mov edi, [rdx+rcx*4] or edi, 8 mov edx, [rax+76C8h] mov rcx, [rax+76B8h] add rcx, rax add rcx, 4 lea rsi, aS; "%.*s" xor eax, eax call _syslog mov rdi, rbx; this pop rbx jmp _ZN5nglog10LogMessage9SendToLogEv; nglog::LogMessage::SendToLog(void)
long long nglog::LogMessage::SendToSyslogAndLog(nglog::LogMessage *this) { long long v1; // rax if ( !nglog::LogMessage::SendToSyslogAndLog(void)::openlog_already_called ) { v1 = nglog::tools::ProgramInvocationShortName(this); openlog(v1, 11LL, 8LL); nglog::LogMessage::SendToSyslogAndLog(void)::openlog_already_called = 1; } syslog( dword_35A10[*(int *)(*((_QWORD *)this + 1) + 30360LL)] | 8u, "%.*s", *(_DWORD *)(*((_QWORD *)this + 1) + 30408LL), (const char *)(*((_QWORD *)this + 1) + *(_QWORD *)(*((_QWORD *)this + 1) + 30392LL) + 4LL)); return nglog::LogMessage::SendToLog(this); }
SendToSyslogAndLog: PUSH RBX MOV RBX,RDI CMP byte ptr [0x00156259],0x0 JNZ 0x0011b755 CALL 0x001313df MOV RDI,RAX MOV ESI,0xb MOV EDX,0x8 CALL 0x00108520 MOV byte ptr [0x00156259],0x1 LAB_0011b755: MOV RAX,qword ptr [RBX + 0x8] MOVSXD RCX,dword ptr [RAX + 0x7698] LEA RDX,[0x135a10] MOV EDI,dword ptr [RDX + RCX*0x4] OR EDI,0x8 MOV EDX,dword ptr [RAX + 0x76c8] MOV RCX,qword ptr [RAX + 0x76b8] ADD RCX,RAX ADD RCX,0x4 LEA RSI,[0x134b04] XOR EAX,EAX CALL 0x001080d0 MOV RDI,RBX POP RBX JMP 0x0011a8ca
/* nglog::LogMessage::SendToSyslogAndLog() */ void __thiscall nglog::LogMessage::SendToSyslogAndLog(LogMessage *this) { long lVar1; char *__ident; if (SendToSyslogAndLog()::openlog_already_called == '\0') { __ident = (char *)tools::ProgramInvocationShortName(); openlog(__ident,0xb,8); SendToSyslogAndLog()::openlog_already_called = '\x01'; } lVar1 = *(long *)(this + 8); syslog(*(uint *)(&DAT_00135a10 + (long)*(int *)(lVar1 + 0x7698) * 4) | 8,"%.*s", (ulong)*(uint *)(lVar1 + 0x76c8),*(long *)(lVar1 + 0x76b8) + lVar1 + 4); SendToLog(this); return; }
38,754
nglog::LogMessage::SendToSyslogAndLog()
ng-log[P]ng-log/src/logging.cc
void LogMessage::SendToSyslogAndLog() { #ifdef HAVE_SYSLOG_H // Before any calls to syslog(), make a single call to openlog() static bool openlog_already_called = false; if (!openlog_already_called) { openlog(tools::ProgramInvocationShortName(), LOG_CONS | LOG_NDELAY | LOG_PID, LOG_USER); openlog_already_called = true; } // This array maps Google severity levels to syslog levels const int SEVERITY_TO_LEVEL[] = {LOG_INFO, LOG_WARNING, LOG_ERR, LOG_EMERG}; syslog(LOG_USER | SEVERITY_TO_LEVEL[static_cast<int>(data_->severity_)], "%.*s", static_cast<int>(data_->num_chars_to_syslog_), data_->message_text_ + data_->num_prefix_chars_); SendToLog(); #else LOG(ERROR) << "No syslog support: message=" << data_->message_text_; #endif }
O3
cpp
nglog::LogMessage::SendToSyslogAndLog(): pushq %rbx movq %rdi, %rbx cmpb $0x0, 0x3aa32(%rip) # 0x55259 jne 0x1a847 callq 0x3030f movq %rax, %rdi movl $0xb, %esi movl $0x8, %edx callq 0x8520 movb $0x1, 0x3aa12(%rip) # 0x55259 movq 0x8(%rbx), %rax movslq 0x7698(%rax), %rcx leaq 0x1a197(%rip), %rdx # 0x349f0 movl (%rdx,%rcx,4), %edi orl $0x8, %edi movl 0x76c8(%rax), %edx movq 0x76b8(%rax), %rcx addq %rax, %rcx addq $0x4, %rcx leaq 0x19272(%rip), %rsi # 0x33aec xorl %eax, %eax callq 0x80d0 movq %rbx, %rdi popq %rbx jmp 0x199a2
_ZN5nglog10LogMessage18SendToSyslogAndLogEv: push rbx mov rbx, rdi cmp cs:_ZZN5nglog10LogMessage18SendToSyslogAndLogEvE22openlog_already_called, 0; nglog::LogMessage::SendToSyslogAndLog(void)::openlog_already_called jnz short loc_1A847 call _ZN5nglog5tools26ProgramInvocationShortNameEv; nglog::tools::ProgramInvocationShortName(void) mov rdi, rax mov esi, 0Bh mov edx, 8 call _openlog mov cs:_ZZN5nglog10LogMessage18SendToSyslogAndLogEvE22openlog_already_called, 1; nglog::LogMessage::SendToSyslogAndLog(void)::openlog_already_called loc_1A847: mov rax, [rbx+8] movsxd rcx, dword ptr [rax+7698h] lea rdx, unk_349F0 mov edi, [rdx+rcx*4] or edi, 8 mov edx, [rax+76C8h] mov rcx, [rax+76B8h] add rcx, rax add rcx, 4 lea rsi, aS; "%.*s" xor eax, eax call _syslog mov rdi, rbx; this pop rbx jmp _ZN5nglog10LogMessage9SendToLogEv; nglog::LogMessage::SendToLog(void)
long long nglog::LogMessage::SendToSyslogAndLog(nglog::LogMessage *this) { long long v1; // rax if ( !nglog::LogMessage::SendToSyslogAndLog(void)::openlog_already_called ) { v1 = nglog::tools::ProgramInvocationShortName(this); openlog(v1, 11LL, 8LL); nglog::LogMessage::SendToSyslogAndLog(void)::openlog_already_called = 1; } syslog( dword_349F0[*(int *)(*((_QWORD *)this + 1) + 30360LL)] | 8u, "%.*s", *(_DWORD *)(*((_QWORD *)this + 1) + 30408LL), (const char *)(*((_QWORD *)this + 1) + *(_QWORD *)(*((_QWORD *)this + 1) + 30392LL) + 4LL)); return nglog::LogMessage::SendToLog(this); }
SendToSyslogAndLog: PUSH RBX MOV RBX,RDI CMP byte ptr [0x00155259],0x0 JNZ 0x0011a847 CALL 0x0013030f MOV RDI,RAX MOV ESI,0xb MOV EDX,0x8 CALL 0x00108520 MOV byte ptr [0x00155259],0x1 LAB_0011a847: MOV RAX,qword ptr [RBX + 0x8] MOVSXD RCX,dword ptr [RAX + 0x7698] LEA RDX,[0x1349f0] MOV EDI,dword ptr [RDX + RCX*0x4] OR EDI,0x8 MOV EDX,dword ptr [RAX + 0x76c8] MOV RCX,qword ptr [RAX + 0x76b8] ADD RCX,RAX ADD RCX,0x4 LEA RSI,[0x133aec] XOR EAX,EAX CALL 0x001080d0 MOV RDI,RBX POP RBX JMP 0x001199a2
/* nglog::LogMessage::SendToSyslogAndLog() */ void __thiscall nglog::LogMessage::SendToSyslogAndLog(LogMessage *this) { long lVar1; char *__ident; if (SendToSyslogAndLog()::openlog_already_called == '\0') { __ident = (char *)tools::ProgramInvocationShortName(); openlog(__ident,0xb,8); SendToSyslogAndLog()::openlog_already_called = '\x01'; } lVar1 = *(long *)(this + 8); syslog(*(uint *)(&DAT_001349f0 + (long)*(int *)(lVar1 + 0x7698) * 4) | 8,"%.*s", (ulong)*(uint *)(lVar1 + 0x76c8),*(long *)(lVar1 + 0x76b8) + lVar1 + 4); SendToLog(this); return; }
38,755
cs_enter
eloqsql/strings/ctype.c
static int cs_enter(MY_XML_PARSER *st,const char *attr, size_t len) { struct my_cs_file_info *i= (struct my_cs_file_info *)st->user_data; const struct my_cs_file_section_st *s= cs_file_sec(attr,len); int state= s ? s->state : 0; switch (state) { case 0: i->loader->reporter(WARNING_LEVEL, "Unknown LDML tag: '%.*s'", len, attr); break; case _CS_CHARSET: my_charset_file_reset_charset(i); break; case _CS_COLLATION: my_charset_file_reset_collation(i); break; case _CS_RESET: return tailoring_append(st, " &", 0, NULL); default: break; } return MY_XML_OK; }
O0
c
cs_enter: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rax movq 0x140(%rax), %rax movq %rax, -0x28(%rbp) movq -0x18(%rbp), %rdi movq -0x20(%rbp), %rsi callq 0xbd6b0 movq %rax, -0x30(%rbp) cmpq $0x0, -0x30(%rbp) je 0xbbc46 movq -0x30(%rbp), %rax movl (%rax), %eax movl %eax, -0x38(%rbp) jmp 0xbbc4d xorl %eax, %eax movl %eax, -0x38(%rbp) jmp 0xbbc4d movl -0x38(%rbp), %eax movl %eax, -0x34(%rbp) movl -0x34(%rbp), %eax movl %eax, -0x3c(%rbp) testl %eax, %eax je 0xbbc7f jmp 0xbbc5f movl -0x3c(%rbp), %eax subl $0x8, %eax je 0xbbcac jmp 0xbbc69 movl -0x3c(%rbp), %eax subl $0x9, %eax je 0xbbcb7 jmp 0xbbc73 movl -0x3c(%rbp), %eax subl $0x12d, %eax # imm = 0x12D je 0xbbcc2 jmp 0xbbcde movq -0x28(%rbp), %rax movq 0x7a8(%rax), %rax movq 0xa0(%rax), %r8 movq -0x20(%rbp), %rdx movq -0x18(%rbp), %rcx movl $0x1, %edi leaq 0x143eb(%rip), %rsi # 0xd0090 movb $0x0, %al callq *%r8 jmp 0xbbce0 movq -0x28(%rbp), %rdi callq 0xbd650 jmp 0xbbce0 movq -0x28(%rbp), %rdi callq 0xbd680 jmp 0xbbce0 movq -0x10(%rbp), %rdi leaq 0x143dc(%rip), %rsi # 0xd00a9 xorl %eax, %eax movl %eax, %ecx movq %rcx, %rdx callq 0xbd740 movl %eax, -0x4(%rbp) jmp 0xbbce7 jmp 0xbbce0 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x40, %rsp popq %rbp retq
cs_enter: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_10] mov rax, [rax+140h] mov [rbp+var_28], rax mov rdi, [rbp+var_18] mov rsi, [rbp+var_20] call cs_file_sec mov [rbp+var_30], rax cmp [rbp+var_30], 0 jz short loc_BBC46 mov rax, [rbp+var_30] mov eax, [rax] mov [rbp+var_38], eax jmp short loc_BBC4D loc_BBC46: xor eax, eax mov [rbp+var_38], eax jmp short $+2 loc_BBC4D: mov eax, [rbp+var_38] mov [rbp+var_34], eax mov eax, [rbp+var_34] mov [rbp+var_3C], eax test eax, eax jz short loc_BBC7F jmp short $+2 loc_BBC5F: mov eax, [rbp+var_3C] sub eax, 8 jz short loc_BBCAC jmp short $+2 loc_BBC69: mov eax, [rbp+var_3C] sub eax, 9 jz short loc_BBCB7 jmp short $+2 loc_BBC73: mov eax, [rbp+var_3C] sub eax, 12Dh jz short loc_BBCC2 jmp short loc_BBCDE loc_BBC7F: mov rax, [rbp+var_28] mov rax, [rax+7A8h] mov r8, [rax+0A0h] mov rdx, [rbp+var_20] mov rcx, [rbp+var_18] mov edi, 1 lea rsi, aUnknownLdmlTag; "Unknown LDML tag: '%.*s'" mov al, 0 call r8 jmp short loc_BBCE0 loc_BBCAC: mov rdi, [rbp+var_28] call my_charset_file_reset_charset jmp short loc_BBCE0 loc_BBCB7: mov rdi, [rbp+var_28] call my_charset_file_reset_collation jmp short loc_BBCE0 loc_BBCC2: mov rdi, [rbp+var_10] lea rsi, asc_D00A9; " &" xor eax, eax mov ecx, eax mov rdx, rcx call tailoring_append mov [rbp+var_4], eax jmp short loc_BBCE7 loc_BBCDE: jmp short $+2 loc_BBCE0: mov [rbp+var_4], 0 loc_BBCE7: mov eax, [rbp+var_4] add rsp, 40h pop rbp retn
long long cs_enter(long long a1, const char *a2, long long a3) { int v4; // [rsp+8h] [rbp-38h] int *v5; // [rsp+10h] [rbp-30h] long long v6; // [rsp+18h] [rbp-28h] int v7; // [rsp+20h] [rbp-20h] v7 = a3; v6 = *(_QWORD *)(a1 + 320); v5 = (int *)cs_file_sec(a2, a3); if ( v5 ) v4 = *v5; else v4 = 0; switch ( v4 ) { case 0: (*(void (**)(long long, const char *, ...))(*(_QWORD *)(v6 + 1960) + 160LL))( 1LL, "Unknown LDML tag: '%.*s'", v7, a2); return 0; case 8: my_charset_file_reset_charset(v6); return 0; case 9: my_charset_file_reset_collation(v6); return 0; } if ( v4 != 301 ) return 0; return (unsigned int)tailoring_append(a1, " &", 0LL); }
cs_enter: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x140] MOV qword ptr [RBP + -0x28],RAX MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] CALL 0x001bd6b0 MOV qword ptr [RBP + -0x30],RAX CMP qword ptr [RBP + -0x30],0x0 JZ 0x001bbc46 MOV RAX,qword ptr [RBP + -0x30] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x38],EAX JMP 0x001bbc4d LAB_001bbc46: XOR EAX,EAX MOV dword ptr [RBP + -0x38],EAX JMP 0x001bbc4d LAB_001bbc4d: MOV EAX,dword ptr [RBP + -0x38] MOV dword ptr [RBP + -0x34],EAX MOV EAX,dword ptr [RBP + -0x34] MOV dword ptr [RBP + -0x3c],EAX TEST EAX,EAX JZ 0x001bbc7f JMP 0x001bbc5f LAB_001bbc5f: MOV EAX,dword ptr [RBP + -0x3c] SUB EAX,0x8 JZ 0x001bbcac JMP 0x001bbc69 LAB_001bbc69: MOV EAX,dword ptr [RBP + -0x3c] SUB EAX,0x9 JZ 0x001bbcb7 JMP 0x001bbc73 LAB_001bbc73: MOV EAX,dword ptr [RBP + -0x3c] SUB EAX,0x12d JZ 0x001bbcc2 JMP 0x001bbcde LAB_001bbc7f: MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX + 0x7a8] MOV R8,qword ptr [RAX + 0xa0] MOV RDX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x18] MOV EDI,0x1 LEA RSI,[0x1d0090] MOV AL,0x0 CALL R8 JMP 0x001bbce0 LAB_001bbcac: MOV RDI,qword ptr [RBP + -0x28] CALL 0x001bd650 JMP 0x001bbce0 LAB_001bbcb7: MOV RDI,qword ptr [RBP + -0x28] CALL 0x001bd680 JMP 0x001bbce0 LAB_001bbcc2: MOV RDI,qword ptr [RBP + -0x10] LEA RSI,[0x1d00a9] XOR EAX,EAX MOV ECX,EAX MOV RDX,RCX CALL 0x001bd740 MOV dword ptr [RBP + -0x4],EAX JMP 0x001bbce7 LAB_001bbcde: JMP 0x001bbce0 LAB_001bbce0: MOV dword ptr [RBP + -0x4],0x0 LAB_001bbce7: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x40 POP RBP RET
int4 cs_enter(long param_1,int8 param_2,int8 param_3) { long lVar1; int4 uVar2; int *piVar3; int local_40; lVar1 = *(long *)(param_1 + 0x140); piVar3 = (int *)cs_file_sec(param_2,param_3); if (piVar3 == (int *)0x0) { local_40 = 0; } else { local_40 = *piVar3; } if (local_40 == 0) { (**(code **)(*(long *)(lVar1 + 0x7a8) + 0xa0))(1,"Unknown LDML tag: \'%.*s\'",param_3,param_2); } else if (local_40 == 8) { my_charset_file_reset_charset(lVar1); } else if (local_40 == 9) { my_charset_file_reset_collation(lVar1); } else if (local_40 == 0x12d) { uVar2 = tailoring_append(param_1,&DAT_001d00a9,0); return uVar2; } return 0; }
38,756
ggml_rms_norm_back
7CodeWizard[P]stablediffusion/ggml/src/ggml.c
struct ggml_tensor * ggml_rms_norm_back( struct ggml_context * ctx, struct ggml_tensor * a, struct ggml_tensor * b, float eps) { bool is_node = false; if (a->grad) { // TODO: implement backward is_node = true; } struct ggml_tensor * result = ggml_dup_tensor(ctx, a); ggml_set_op_params(result, &eps, sizeof(eps)); result->op = GGML_OP_RMS_NORM_BACK; result->grad = is_node ? ggml_dup_tensor(ctx, result) : NULL; result->src[0] = a; result->src[1] = b; return result; }
O0
c
ggml_rms_norm_back: subq $0x38, %rsp movq %rdi, 0x30(%rsp) movq %rsi, 0x28(%rsp) movq %rdx, 0x20(%rsp) vmovss %xmm0, 0x1c(%rsp) movb $0x0, 0x1b(%rsp) movq 0x28(%rsp), %rax cmpq $0x0, 0x98(%rax) je 0x120fc2 movb $0x1, 0x1b(%rsp) movq 0x30(%rsp), %rdi movq 0x28(%rsp), %rsi callq 0x11cfc0 movq %rax, 0x10(%rsp) movq 0x10(%rsp), %rdi leaq 0x1c(%rsp), %rsi movl $0x4, %edx callq 0x120a30 movq 0x10(%rsp), %rax movl $0x15, 0x50(%rax) testb $0x1, 0x1b(%rsp) je 0x121013 movq 0x30(%rsp), %rdi movq 0x10(%rsp), %rsi callq 0x11cfc0 movq %rax, 0x8(%rsp) jmp 0x12101c xorl %eax, %eax movq %rax, 0x8(%rsp) jmp 0x12101c movq 0x8(%rsp), %rcx movq 0x10(%rsp), %rax movq %rcx, 0x98(%rax) movq 0x28(%rsp), %rcx movq 0x10(%rsp), %rax movq %rcx, 0xa0(%rax) movq 0x20(%rsp), %rcx movq 0x10(%rsp), %rax movq %rcx, 0xa8(%rax) movq 0x10(%rsp), %rax addq $0x38, %rsp retq nopl (%rax)
ggml_rms_norm_back: sub rsp, 38h mov [rsp+38h+var_8], rdi mov [rsp+38h+var_10], rsi mov [rsp+38h+var_18], rdx vmovss [rsp+38h+var_1C], xmm0 mov [rsp+38h+var_1D], 0 mov rax, [rsp+38h+var_10] cmp qword ptr [rax+98h], 0 jz short loc_120FC2 mov [rsp+38h+var_1D], 1 loc_120FC2: mov rdi, [rsp+38h+var_8] mov rsi, [rsp+38h+var_10] call ggml_dup_tensor mov [rsp+38h+var_28], rax mov rdi, [rsp+38h+var_28] lea rsi, [rsp+38h+var_1C] mov edx, 4 call ggml_set_op_params mov rax, [rsp+38h+var_28] mov dword ptr [rax+50h], 15h test [rsp+38h+var_1D], 1 jz short loc_121013 mov rdi, [rsp+38h+var_8] mov rsi, [rsp+38h+var_28] call ggml_dup_tensor mov [rsp+38h+var_30], rax jmp short loc_12101C loc_121013: xor eax, eax mov [rsp+38h+var_30], rax jmp short $+2 loc_12101C: mov rcx, [rsp+38h+var_30] mov rax, [rsp+38h+var_28] mov [rax+98h], rcx mov rcx, [rsp+38h+var_10] mov rax, [rsp+38h+var_28] mov [rax+0A0h], rcx mov rcx, [rsp+38h+var_18] mov rax, [rsp+38h+var_28] mov [rax+0A8h], rcx mov rax, [rsp+38h+var_28] add rsp, 38h retn
long long ggml_rms_norm_back(long long a1, long long a2, long long a3, __m128 _XMM0) { long long v5; // [rsp+8h] [rbp-30h] long long v6; // [rsp+10h] [rbp-28h] bool v7; // [rsp+1Bh] [rbp-1Dh] int v8; // [rsp+1Ch] [rbp-1Ch] BYREF long long v9; // [rsp+20h] [rbp-18h] long long v10; // [rsp+28h] [rbp-10h] long long v11; // [rsp+30h] [rbp-8h] v11 = a1; v10 = a2; v9 = a3; __asm { vmovss [rsp+38h+var_1C], xmm0 } v7 = *(_QWORD *)(a2 + 152) != 0LL; v6 = ggml_dup_tensor(a1, (unsigned int *)a2); ggml_set_op_params(v6, (long long)&v8, 4LL); *(_DWORD *)(v6 + 80) = 21; if ( v7 ) v5 = ggml_dup_tensor(v11, (unsigned int *)v6); else v5 = 0LL; *(_QWORD *)(v6 + 152) = v5; *(_QWORD *)(v6 + 160) = v10; *(_QWORD *)(v6 + 168) = v9; return v6; }
38,757
ggml_rms_norm_back
7CodeWizard[P]stablediffusion/ggml/src/ggml.c
struct ggml_tensor * ggml_rms_norm_back( struct ggml_context * ctx, struct ggml_tensor * a, struct ggml_tensor * b, float eps) { bool is_node = false; if (a->grad) { // TODO: implement backward is_node = true; } struct ggml_tensor * result = ggml_dup_tensor(ctx, a); ggml_set_op_params(result, &eps, sizeof(eps)); result->op = GGML_OP_RMS_NORM_BACK; result->grad = is_node ? ggml_dup_tensor(ctx, result) : NULL; result->src[0] = a; result->src[1] = b; return result; }
O2
c
ggml_rms_norm_back: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %rbx movq %rsi, %r14 movq %rdi, %r12 leaq 0x4(%rsp), %r13 vmovss %xmm0, (%r13) movq 0x98(%rsi), %rbp callq 0x68a65 movq %rax, %r15 pushq $0x4 popq %rdx movq %rax, %rdi movq %r13, %rsi callq 0x6ab3d movl $0x15, 0x50(%r15) testq %rbp, %rbp je 0x6add8 movq %r12, %rdi movq %r15, %rsi callq 0x68a65 jmp 0x6adda xorl %eax, %eax movq %rax, 0x98(%r15) movq %r14, 0xa0(%r15) movq %rbx, 0xa8(%r15) movq %r15, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
ggml_rms_norm_back: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rdx mov r14, rsi mov r12, rdi lea r13, [rsp+38h+var_34] vmovss dword ptr [r13+0], xmm0 mov rbp, [rsi+98h] call ggml_dup_tensor mov r15, rax push 4 pop rdx mov rdi, rax mov rsi, r13 call ggml_set_op_params mov dword ptr [r15+50h], 15h test rbp, rbp jz short loc_6ADD8 mov rdi, r12 mov rsi, r15 call ggml_dup_tensor jmp short loc_6ADDA loc_6ADD8: xor eax, eax loc_6ADDA: mov [r15+98h], rax mov [r15+0A0h], r14 mov [r15+0A8h], rbx mov rax, r15 add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long ggml_rms_norm_back(long long a1, long long a2, long long a3, __m128 _XMM0) { long long v4; // rax long long v7; // rbp long long v8; // r15 long long v9; // rax _DWORD v11[13]; // [rsp+0h] [rbp-34h] BYREF v11[0] = HIDWORD(v4); _R13 = v11; __asm { vmovss dword ptr [r13+0], xmm0 } v7 = *(_QWORD *)(a2 + 152); v8 = ggml_dup_tensor(a1, (unsigned int *)a2); ggml_set_op_params(v8, (long long)v11, 4LL); *(_DWORD *)(v8 + 80) = 21; if ( v7 ) v9 = ggml_dup_tensor(a1, (unsigned int *)v8); else v9 = 0LL; *(_QWORD *)(v8 + 152) = v9; *(_QWORD *)(v8 + 160) = a2; *(_QWORD *)(v8 + 168) = a3; return v8; }
ggml_rms_norm_back: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RDX MOV R14,RSI MOV R12,RDI LEA R13,[RSP + 0x4] VMOVSS dword ptr [R13],XMM0 MOV RBP,qword ptr [RSI + 0x98] CALL 0x00168a65 MOV R15,RAX PUSH 0x4 POP RDX MOV RDI,RAX MOV RSI,R13 CALL 0x0016ab3d MOV dword ptr [R15 + 0x50],0x15 TEST RBP,RBP JZ 0x0016add8 MOV RDI,R12 MOV RSI,R15 CALL 0x00168a65 JMP 0x0016adda LAB_0016add8: XOR EAX,EAX LAB_0016adda: MOV qword ptr [R15 + 0x98],RAX MOV qword ptr [R15 + 0xa0],R14 MOV qword ptr [R15 + 0xa8],RBX MOV RAX,R15 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
long ggml_rms_norm_back(int8 param_1,long param_2,int8 param_3) { long lVar1; long lVar2; int8 uVar3; int1 local_34 [4]; lVar1 = *(long *)(param_2 + 0x98); lVar2 = ggml_dup_tensor(); ggml_set_op_params(lVar2,local_34,4); *(int4 *)(lVar2 + 0x50) = 0x15; if (lVar1 == 0) { uVar3 = 0; } else { uVar3 = ggml_dup_tensor(param_1,lVar2); } *(int8 *)(lVar2 + 0x98) = uVar3; *(long *)(lVar2 + 0xa0) = param_2; *(int8 *)(lVar2 + 0xa8) = param_3; return lVar2; }
38,758
ggml_rms_norm_back
7CodeWizard[P]stablediffusion/ggml/src/ggml.c
struct ggml_tensor * ggml_rms_norm_back( struct ggml_context * ctx, struct ggml_tensor * a, struct ggml_tensor * b, float eps) { bool is_node = false; if (a->grad) { // TODO: implement backward is_node = true; } struct ggml_tensor * result = ggml_dup_tensor(ctx, a); ggml_set_op_params(result, &eps, sizeof(eps)); result->op = GGML_OP_RMS_NORM_BACK; result->grad = is_node ? ggml_dup_tensor(ctx, result) : NULL; result->src[0] = a; result->src[1] = b; return result; }
O3
c
ggml_rms_norm_back: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdx, 0x8(%rsp) movq %rsi, %r14 movq %rdi, %r15 leaq 0x14(%rsp), %rbp vmovss %xmm0, (%rbp) movq 0x98(%rsi), %rbx movl (%rsi), %esi leaq 0x10(%r14), %rcx xorl %r13d, %r13d movl $0x4, %edx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x8d64f movq %rax, %r12 movl $0x4, %edx movq %rax, %rdi movq %rbp, %rsi callq 0x90cc8 movl $0x15, 0x50(%r12) testq %rbx, %rbx je 0x910b4 movl (%r12), %esi movq %r12, %rcx addq $0x10, %rcx movq %r15, %rdi movl $0x4, %edx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x8d64f movq %rax, %r13 movq %r13, 0x98(%r12) movq %r14, 0xa0(%r12) movq 0x8(%rsp), %rax movq %rax, 0xa8(%r12) movq %r12, %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
ggml_rms_norm_back: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov [rsp+48h+var_40], rdx mov r14, rsi mov r15, rdi lea rbp, [rsp+48h+var_34] vmovss dword ptr [rbp+0], xmm0 mov rbx, [rsi+98h] mov esi, [rsi] lea rcx, [r14+10h] xor r13d, r13d mov edx, 4 xor r8d, r8d xor r9d, r9d call ggml_new_tensor_impl mov r12, rax mov edx, 4 mov rdi, rax mov rsi, rbp call ggml_set_op_params mov dword ptr [r12+50h], 15h test rbx, rbx jz short loc_910B4 mov esi, [r12] mov rcx, r12 add rcx, 10h mov rdi, r15 mov edx, 4 xor r8d, r8d xor r9d, r9d call ggml_new_tensor_impl mov r13, rax loc_910B4: mov [r12+98h], r13 mov [r12+0A0h], r14 mov rax, [rsp+48h+var_40] mov [r12+0A8h], rax mov rax, r12 add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long ggml_rms_norm_back(long long a1, long long a2, long long a3, __m128 _XMM0, __m128 a5) { long long v6; // rbx long long v7; // r13 long long v8; // r12 _BYTE v11[52]; // [rsp+14h] [rbp-34h] BYREF _RBP = v11; __asm { vmovss dword ptr [rbp+0], xmm0 } v6 = *(_QWORD *)(a2 + 152); v7 = 0LL; v8 = ggml_new_tensor_impl(a1, *(_DWORD *)a2, 4, (_QWORD *)(a2 + 16), 0LL, 0LL, _XMM0, a5); ggml_set_op_params(v8, (long long)v11, 4LL); *(_DWORD *)(v8 + 80) = 21; if ( v6 ) v7 = ggml_new_tensor_impl(a1, *(_DWORD *)v8, 4, (_QWORD *)(v8 + 16), 0LL, 0LL, _XMM0, a5); *(_QWORD *)(v8 + 152) = v7; *(_QWORD *)(v8 + 160) = a2; *(_QWORD *)(v8 + 168) = a3; return v8; }
38,759
Overworld::Overworld(char const*)
untodesu[P]voxelius/game/server/overworld.cc
Overworld::Overworld(const char *name) : Dimension(name, -30.0f) { m_bottommost_chunk.set_limits(-64, -4); m_terrain_variation.set_limits(16, 256); compute_tree_feature(4U, m_feat_tree[0], game_voxels::oak_log, game_voxels::oak_leaves); compute_tree_feature(5U, m_feat_tree[1], game_voxels::oak_log, game_voxels::oak_leaves); compute_tree_feature(6U, m_feat_tree[2], game_voxels::oak_log, game_voxels::oak_leaves); compute_tree_feature(8U, m_feat_tree[3], game_voxels::oak_log, game_voxels::oak_leaves); }
O0
cpp
Overworld::Overworld(char const*): pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x30(%rbp) movq -0x10(%rbp), %rsi movss 0x1baa70(%rip), %xmm0 # 0x1e4914 callq 0xa1c90 movq -0x30(%rbp), %rdi leaq 0x29ebfc(%rip), %rax # 0x2c8ab0 movq %rax, (%rdi) addq $0x300, %rdi # imm = 0x300 movq %rdi, -0x28(%rbp) callq 0x2c240 jmp 0x29ec9 movq -0x30(%rbp), %rdi addq $0x338, %rdi # imm = 0x338 movq %rdi, -0x38(%rbp) callq 0x2c240 jmp 0x29edf movq -0x30(%rbp), %rdi addq $0x370, %rdi # imm = 0x370 movq %rdi, -0x40(%rbp) movl $0x2, %esi movss 0x1baa1d(%rip), %xmm0 # 0x1e4918 callq 0x2c280 jmp 0x29f02 movq -0x30(%rbp), %rax addq $0x4d0, %rax # imm = 0x4D0 movq %rax, -0x58(%rbp) movq %rax, %rcx addq $0x80, %rcx movq %rcx, -0x50(%rbp) movq %rax, -0x48(%rbp) movq -0x48(%rbp), %rdi movq %rdi, -0x60(%rbp) callq 0x2c2b0 movq -0x60(%rbp), %rax movq -0x50(%rbp), %rcx addq $0x20, %rax cmpq %rcx, %rax movq %rax, -0x48(%rbp) jne 0x29f22 movq -0x30(%rbp), %rdi addq $0x550, %rdi # imm = 0x550 callq 0x2c2f0 movq -0x30(%rbp), %rdi addq $0x338, %rdi # imm = 0x338 movl $0xffffffc0, %esi # imm = 0xFFFFFFC0 movl $0xfffffffc, %edx # imm = 0xFFFFFFFC callq 0x2c310 jmp 0x29f70 movq -0x30(%rbp), %rdi addq $0x300, %rdi # imm = 0x300 movl $0x10, %esi movl $0x100, %edx # imm = 0x100 callq 0x2c310 jmp 0x29f8c movq -0x30(%rbp), %rsi addq $0x4d0, %rsi # imm = 0x4D0 leaq 0x2a7894(%rip), %rax # 0x2d1832 movzwl (%rax), %edx leaq 0x2a7886(%rip), %rax # 0x2d182e movzwl (%rax), %ecx movl $0x4, %edi callq 0x2a0e0 jmp 0x29fb7 movq -0x30(%rbp), %rsi addq $0x4f0, %rsi # imm = 0x4F0 leaq 0x2a7869(%rip), %rax # 0x2d1832 movzwl (%rax), %edx leaq 0x2a785b(%rip), %rax # 0x2d182e movzwl (%rax), %ecx movl $0x5, %edi callq 0x2a0e0 jmp 0x29fe2 movq -0x30(%rbp), %rsi addq $0x510, %rsi # imm = 0x510 leaq 0x2a783e(%rip), %rax # 0x2d1832 movzwl (%rax), %edx leaq 0x2a7830(%rip), %rax # 0x2d182e movzwl (%rax), %ecx movl $0x6, %edi callq 0x2a0e0 jmp 0x2a00d movq -0x30(%rbp), %rsi addq $0x530, %rsi # imm = 0x530 leaq 0x2a7813(%rip), %rax # 0x2d1832 movzwl (%rax), %edx leaq 0x2a7805(%rip), %rax # 0x2d182e movzwl (%rax), %ecx movl $0x8, %edi callq 0x2a0e0 jmp 0x2a038 addq $0x70, %rsp popq %rbp retq movq %rax, %rcx movl %edx, %eax movq %rcx, -0x18(%rbp) movl %eax, -0x1c(%rbp) jmp 0x2a0c0 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x18(%rbp) movl %eax, -0x1c(%rbp) jmp 0x2a0b7 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x18(%rbp) movl %eax, -0x1c(%rbp) jmp 0x2a0ae movq %rdx, %rcx movq %rax, %rdx movq -0x58(%rbp), %rax movq %rdx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) addq $0x80, %rax movq %rax, -0x68(%rbp) movq -0x68(%rbp), %rdi addq $-0x20, %rdi movq %rdi, -0x70(%rbp) callq 0x2c390 movq -0x58(%rbp), %rcx movq -0x70(%rbp), %rax cmpq %rcx, %rax movq %rax, -0x68(%rbp) jne 0x2a083 movq -0x40(%rbp), %rdi callq 0x2c3b0 movq -0x38(%rbp), %rdi callq 0x2c410 movq -0x28(%rbp), %rdi callq 0x2c410 movq -0x30(%rbp), %rdi callq 0xa1da0 movq -0x18(%rbp), %rdi callq 0x1aff0 nopw %cs:(%rax,%rax)
_ZN9OverworldC2EPKc: push rbp; Alternative name is 'Overworld::Overworld(char const*)' mov rbp, rsp sub rsp, 70h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rdi, [rbp+var_8]; this mov [rbp+var_30], rdi mov rsi, [rbp+var_10]; char * movss xmm0, cs:flt_1E4914; float call _ZN9DimensionC2EPKcf; Dimension::Dimension(char const*,float) mov rdi, [rbp+var_30] lea rax, off_2C8AB0 mov [rdi], rax add rdi, 300h; this mov [rbp+var_28], rdi call _ZN9ConfigIntC2Ev; ConfigInt::ConfigInt(void) jmp short $+2 loc_29EC9: mov rdi, [rbp+var_30] add rdi, 338h; this mov [rbp+var_38], rdi call _ZN9ConfigIntC2Ev; ConfigInt::ConfigInt(void) jmp short $+2 loc_29EDF: mov rdi, [rbp+var_30] add rdi, 370h mov [rbp+var_40], rdi mov esi, 2 movss xmm0, cs:dword_1E4918 call _ZN7emhash87HashMapIN3glm3vecILi2EiLNS1_9qualifierE0EEE18Overworld_MetadataSt4hashIS4_ESt8equal_toIS4_EEC2Ejf; emhash8::HashMap<glm::vec<2,int,(glm::qualifier)0>,Overworld_Metadata,std::hash<glm::vec<2,int,(glm::qualifier)0>>,std::equal_to<glm::vec<2,int,(glm::qualifier)0>>>::HashMap(uint,float) jmp short $+2 loc_29F02: mov rax, [rbp+var_30] add rax, 4D0h mov [rbp+var_58], rax mov rcx, rax add rcx, 80h mov [rbp+var_50], rcx mov [rbp+var_48], rax loc_29F22: mov rdi, [rbp+var_48]; this mov [rbp+var_60], rdi call _ZN7FeatureC2Ev; Feature::Feature(void) mov rax, [rbp+var_60] mov rcx, [rbp+var_50] add rax, 20h ; ' ' cmp rax, rcx mov [rbp+var_48], rax jnz short loc_29F22 mov rdi, [rbp+var_30] add rdi, 550h; this call _ZNSt5mutexC2Ev; std::mutex::mutex(void) mov rdi, [rbp+var_30] add rdi, 338h mov esi, 0FFFFFFC0h mov edx, 0FFFFFFFCh call _ZN12ConfigNumberIiE10set_limitsEii; ConfigNumber<int>::set_limits(int,int) jmp short $+2 loc_29F70: mov rdi, [rbp+var_30] add rdi, 300h mov esi, 10h mov edx, 100h call _ZN12ConfigNumberIiE10set_limitsEii; ConfigNumber<int>::set_limits(int,int) jmp short $+2 loc_29F8C: mov rsi, [rbp+var_30] add rsi, 4D0h; Feature * lea rax, _ZN11game_voxels7oak_logE; game_voxels::oak_log movzx edx, word ptr [rax]; unsigned __int16 lea rax, _ZN11game_voxels10oak_leavesE; game_voxels::oak_leaves movzx ecx, word ptr [rax]; unsigned __int16 mov edi, 4; unsigned int call _ZL20compute_tree_featurejR7Featurett; compute_tree_feature(uint,Feature &,ushort,ushort) jmp short $+2 loc_29FB7: mov rsi, [rbp+var_30] add rsi, 4F0h; Feature * lea rax, _ZN11game_voxels7oak_logE; game_voxels::oak_log movzx edx, word ptr [rax]; unsigned __int16 lea rax, _ZN11game_voxels10oak_leavesE; game_voxels::oak_leaves movzx ecx, word ptr [rax]; unsigned __int16 mov edi, 5; unsigned int call _ZL20compute_tree_featurejR7Featurett; compute_tree_feature(uint,Feature &,ushort,ushort) jmp short $+2 loc_29FE2: mov rsi, [rbp+var_30] add rsi, 510h; Feature * lea rax, _ZN11game_voxels7oak_logE; game_voxels::oak_log movzx edx, word ptr [rax]; unsigned __int16 lea rax, _ZN11game_voxels10oak_leavesE; game_voxels::oak_leaves movzx ecx, word ptr [rax]; unsigned __int16 mov edi, 6; unsigned int call _ZL20compute_tree_featurejR7Featurett; compute_tree_feature(uint,Feature &,ushort,ushort) jmp short $+2 loc_2A00D: mov rsi, [rbp+var_30] add rsi, 530h; Feature * lea rax, _ZN11game_voxels7oak_logE; game_voxels::oak_log movzx edx, word ptr [rax]; unsigned __int16 lea rax, _ZN11game_voxels10oak_leavesE; game_voxels::oak_leaves movzx ecx, word ptr [rax]; unsigned __int16 mov edi, 8; unsigned int call _ZL20compute_tree_featurejR7Featurett; compute_tree_feature(uint,Feature &,ushort,ushort) jmp short $+2 loc_2A038: add rsp, 70h pop rbp retn mov rcx, rax mov eax, edx mov [rbp+var_18], rcx mov [rbp+var_1C], eax jmp short loc_2A0C0 mov rcx, rax mov eax, edx mov [rbp+var_18], rcx mov [rbp+var_1C], eax jmp short loc_2A0B7 mov rcx, rax mov eax, edx mov [rbp+var_18], rcx mov [rbp+var_1C], eax jmp short loc_2A0AE mov rcx, rdx mov rdx, rax mov rax, [rbp+var_58] mov [rbp+var_18], rdx mov [rbp+var_1C], ecx add rax, 80h mov [rbp+var_68], rax loc_2A083: mov rdi, [rbp+var_68] add rdi, 0FFFFFFFFFFFFFFE0h; this mov [rbp+var_70], rdi call _ZN7FeatureD2Ev; Feature::~Feature() mov rcx, [rbp+var_58] mov rax, [rbp+var_70] cmp rax, rcx mov [rbp+var_68], rax jnz short loc_2A083 mov rdi, [rbp+var_40] call _ZN7emhash87HashMapIN3glm3vecILi2EiLNS1_9qualifierE0EEE18Overworld_MetadataSt4hashIS4_ESt8equal_toIS4_EED2Ev; emhash8::HashMap<glm::vec<2,int,(glm::qualifier)0>,Overworld_Metadata,std::hash<glm::vec<2,int,(glm::qualifier)0>>,std::equal_to<glm::vec<2,int,(glm::qualifier)0>>>::~HashMap() loc_2A0AE: mov rdi, [rbp+var_38]; this call _ZN9ConfigIntD2Ev; ConfigInt::~ConfigInt() loc_2A0B7: mov rdi, [rbp+var_28]; this call _ZN9ConfigIntD2Ev; ConfigInt::~ConfigInt() loc_2A0C0: mov rdi, [rbp+var_30]; this call _ZN9DimensionD2Ev; Dimension::~Dimension() mov rdi, [rbp+var_18] call __Unwind_Resume
void Overworld::Overworld(Overworld *this, const char *a2) { Feature *v2; // [rsp+28h] [rbp-48h] Dimension::Dimension(this, a2, -30.0); *(_QWORD *)this = off_2C8AB0; ConfigInt::ConfigInt((Overworld *)((char *)this + 768)); ConfigInt::ConfigInt((Overworld *)((char *)this + 824)); emhash8::HashMap<glm::vec<2,int,(glm::qualifier)0>,Overworld_Metadata,std::hash<glm::vec<2,int,(glm::qualifier)0>>,std::equal_to<glm::vec<2,int,(glm::qualifier)0>>>::HashMap( (char *)this + 880, 2LL, 0.80000001); v2 = (Overworld *)((char *)this + 1232); do { Feature::Feature(v2); v2 = (Feature *)((char *)v2 + 32); } while ( v2 != (Overworld *)((char *)this + 1360) ); std::mutex::mutex((Overworld *)((char *)this + 1360)); ConfigNumber<int>::set_limits((char *)this + 824, 4294967232LL, 4294967292LL); ConfigNumber<int>::set_limits((char *)this + 768, 16LL, 256LL); compute_tree_feature(4u, (Overworld *)((char *)this + 1232), game_voxels::oak_log, game_voxels::oak_leaves); compute_tree_feature(5u, (Overworld *)((char *)this + 1264), game_voxels::oak_log, game_voxels::oak_leaves); compute_tree_feature(6u, (Overworld *)((char *)this + 1296), game_voxels::oak_log, game_voxels::oak_leaves); compute_tree_feature(8u, (Overworld *)((char *)this + 1328), game_voxels::oak_log, game_voxels::oak_leaves); }
Overworld: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RDI,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x30],RDI MOV RSI,qword ptr [RBP + -0x10] MOVSS XMM0,dword ptr [0x002e4914] CALL 0x001a1c90 MOV RDI,qword ptr [RBP + -0x30] LEA RAX,[0x3c8ab0] MOV qword ptr [RDI],RAX ADD RDI,0x300 MOV qword ptr [RBP + -0x28],RDI LAB_00129ec2: CALL 0x0012c240 JMP 0x00129ec9 LAB_00129ec9: MOV RDI,qword ptr [RBP + -0x30] ADD RDI,0x338 MOV qword ptr [RBP + -0x38],RDI LAB_00129ed8: CALL 0x0012c240 JMP 0x00129edf LAB_00129edf: MOV RDI,qword ptr [RBP + -0x30] ADD RDI,0x370 MOV qword ptr [RBP + -0x40],RDI LAB_00129eee: MOV ESI,0x2 MOVSS XMM0,dword ptr [0x002e4918] CALL 0x0012c280 JMP 0x00129f02 LAB_00129f02: MOV RAX,qword ptr [RBP + -0x30] ADD RAX,0x4d0 MOV qword ptr [RBP + -0x58],RAX MOV RCX,RAX ADD RCX,0x80 MOV qword ptr [RBP + -0x50],RCX MOV qword ptr [RBP + -0x48],RAX LAB_00129f22: MOV RDI,qword ptr [RBP + -0x48] MOV qword ptr [RBP + -0x60],RDI CALL 0x0012c2b0 MOV RAX,qword ptr [RBP + -0x60] MOV RCX,qword ptr [RBP + -0x50] ADD RAX,0x20 CMP RAX,RCX MOV qword ptr [RBP + -0x48],RAX JNZ 0x00129f22 MOV RDI,qword ptr [RBP + -0x30] ADD RDI,0x550 CALL 0x0012c2f0 MOV RDI,qword ptr [RBP + -0x30] ADD RDI,0x338 LAB_00129f5f: MOV ESI,0xffffffc0 MOV EDX,0xfffffffc CALL 0x0012c310 JMP 0x00129f70 LAB_00129f70: MOV RDI,qword ptr [RBP + -0x30] ADD RDI,0x300 MOV ESI,0x10 MOV EDX,0x100 CALL 0x0012c310 JMP 0x00129f8c LAB_00129f8c: MOV RSI,qword ptr [RBP + -0x30] ADD RSI,0x4d0 LEA RAX,[0x3d1832] MOVZX EDX,word ptr [RAX] LEA RAX,[0x3d182e] MOVZX ECX,word ptr [RAX] MOV EDI,0x4 CALL 0x0012a0e0 JMP 0x00129fb7 LAB_00129fb7: MOV RSI,qword ptr [RBP + -0x30] ADD RSI,0x4f0 LEA RAX,[0x3d1832] MOVZX EDX,word ptr [RAX] LEA RAX,[0x3d182e] MOVZX ECX,word ptr [RAX] MOV EDI,0x5 CALL 0x0012a0e0 JMP 0x00129fe2 LAB_00129fe2: MOV RSI,qword ptr [RBP + -0x30] ADD RSI,0x510 LEA RAX,[0x3d1832] MOVZX EDX,word ptr [RAX] LEA RAX,[0x3d182e] MOVZX ECX,word ptr [RAX] MOV EDI,0x6 CALL 0x0012a0e0 JMP 0x0012a00d LAB_0012a00d: MOV RSI,qword ptr [RBP + -0x30] ADD RSI,0x530 LEA RAX,[0x3d1832] MOVZX EDX,word ptr [RAX] LEA RAX,[0x3d182e] MOVZX ECX,word ptr [RAX] MOV EDI,0x8 CALL 0x0012a0e0 LAB_0012a036: JMP 0x0012a038 LAB_0012a038: ADD RSP,0x70 POP RBP RET
/* Overworld::Overworld(char const*) */ void __thiscall Overworld::Overworld(Overworld *this,char *param_1) { Feature *local_50; Dimension::Dimension((Dimension *)this,param_1,DAT_002e4914); *(int ***)this = &PTR__Overworld_003c8ab0; /* try { // try from 00129ec2 to 00129ec6 has its CatchHandler @ 0012a03e */ ConfigInt::ConfigInt((ConfigInt *)(this + 0x300)); /* try { // try from 00129ed8 to 00129edc has its CatchHandler @ 0012a04c */ ConfigInt::ConfigInt((ConfigInt *)(this + 0x338)); /* try { // try from 00129eee to 00129eff has its CatchHandler @ 0012a05a */ emhash8:: HashMap<glm::vec<2,int,(glm::qualifier)0>,Overworld_Metadata,std::hash<glm::vec<2,int,(glm::qualifier)0>>,std::equal_to<glm::vec<2,int,(glm::qualifier)0>>> ::HashMap((HashMap<glm::vec<2,int,(glm::qualifier)0>,Overworld_Metadata,std::hash<glm::vec<2,int,(glm::qualifier)0>>,std::equal_to<glm::vec<2,int,(glm::qualifier)0>>> *)(this + 0x370),2,DAT_002e4918); local_50 = (Feature *)(this + 0x4d0); do { Feature::Feature(local_50); local_50 = local_50 + 0x20; } while (local_50 != (Feature *)(this + 0x550)); std::mutex::mutex((mutex *)(this + 0x550)); /* try { // try from 00129f5f to 0012a035 has its CatchHandler @ 0012a068 */ ConfigNumber<int>::set_limits((ConfigNumber<int> *)(this + 0x338),-0x40,-4); ConfigNumber<int>::set_limits((ConfigNumber<int> *)(this + 0x300),0x10,0x100); compute_tree_feature(4,(Feature *)(this + 0x4d0),game_voxels::oak_log,game_voxels::oak_leaves); compute_tree_feature(5,(Feature *)(this + 0x4f0),game_voxels::oak_log,game_voxels::oak_leaves); compute_tree_feature(6,(Feature *)(this + 0x510),game_voxels::oak_log,game_voxels::oak_leaves); compute_tree_feature(8,(Feature *)(this + 0x530),game_voxels::oak_log,game_voxels::oak_leaves); return; }
38,760
common_sampler_print[abi:cxx11](common_sampler const*)
monkey531[P]llama/common/sampling.cpp
std::string common_sampler_print(const struct common_sampler * gsmpl) { std::string result = "logits "; for (int i = 0; i < llama_sampler_chain_n(gsmpl->chain); i++) { const auto * smpl = llama_sampler_chain_get(gsmpl->chain, i); result += std::string("-> ") + llama_sampler_name(smpl) + " "; } return result; }
O3
cpp
common_sampler_print[abi:cxx11](common_sampler const*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp movq %rsi, %r14 leaq 0x10(%rdi), %rax movq %rax, 0x8(%rsp) movq %rax, (%rdi) leaq 0x20cbb(%rip), %rsi # 0xeee7b leaq 0x20cbb(%rip), %rdx # 0xeee82 movq %rdi, 0x10(%rsp) callq 0x22402 leaq 0x48(%rsp), %rbx xorl %ebp, %ebp leaq 0x28(%rsp), %r12 leaq 0x58(%rsp), %r13 movq 0x140(%r14), %rdi callq 0x1af80 cmpl %eax, %ebp jge 0xce334 movq 0x140(%r14), %rdi movl %ebp, %esi callq 0x1a9c0 movq %rax, %r15 leaq 0x68(%rsp), %rax movq %rax, 0x58(%rsp) movq %r13, %rdi leaq 0x273cd(%rip), %rsi # 0xf55e8 leaq 0x273c9(%rip), %rdx # 0xf55eb callq 0x22402 movq %r15, %rdi callq 0x1a370 movq %r13, %rdi movq %rax, %rsi callq 0x1b0e0 movq %rbx, 0x38(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0xce25d movq %rdx, 0x38(%rsp) movq (%rcx), %rdx movq %rdx, 0x48(%rsp) jmp 0xce263 movups (%rcx), %xmm0 movups %xmm0, (%rbx) movq 0x8(%rax), %rdx movq %rdx, 0x40(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x38(%rsp), %rdi leaq 0x21413(%rip), %rsi # 0xef69a callq 0x1b0e0 movq %r12, 0x18(%rsp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0xce2af movq %rdx, 0x18(%rsp) movq (%rcx), %rdx movq %rdx, 0x28(%rsp) jmp 0xce2b7 movups (%rcx), %xmm0 movups %xmm0, (%r12) movq 0x8(%rax), %rdx movq %rdx, 0x20(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq 0x18(%rsp), %rsi movq 0x20(%rsp), %rdx movq 0x10(%rsp), %rdi callq 0x1a270 movq 0x18(%rsp), %rdi cmpq %r12, %rdi je 0xce2fa movq 0x28(%rsp), %rsi incq %rsi callq 0x1a8e0 movq 0x38(%rsp), %rdi cmpq %rbx, %rdi je 0xce311 movq 0x48(%rsp), %rsi incq %rsi callq 0x1a8e0 movq 0x58(%rsp), %rdi leaq 0x68(%rsp), %rax cmpq %rax, %rdi je 0xce32d movq 0x68(%rsp), %rsi incq %rsi callq 0x1a8e0 incl %ebp jmp 0xce1e2 movq 0x10(%rsp), %rax addq $0x78, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0xce384 movq %rax, %r14 movq 0x18(%rsp), %rdi cmpq %r12, %rdi je 0xce369 movq 0x28(%rsp), %rsi incq %rsi callq 0x1a8e0 jmp 0xce369 movq %rax, %r14 movq 0x38(%rsp), %rdi cmpq %rbx, %rdi je 0xce38c movq 0x48(%rsp), %rsi incq %rsi callq 0x1a8e0 jmp 0xce38c jmp 0xce384 movq %rax, %r14 jmp 0xce3a8 movq %rax, %r14 movq 0x58(%rsp), %rdi leaq 0x68(%rsp), %rax cmpq %rax, %rdi je 0xce3a8 movq 0x68(%rsp), %rsi incq %rsi callq 0x1a8e0 movq 0x8(%rsp), %rax movq 0x10(%rsp), %rcx movq (%rcx), %rdi cmpq %rax, %rdi je 0xce3c5 movq (%rax), %rsi incq %rsi callq 0x1a8e0 movq %r14, %rdi callq 0x1af90
_Z20common_sampler_printB5cxx11PK14common_sampler: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 78h mov r14, rsi lea rax, [rdi+10h] mov [rsp+0A8h+var_A0], rax mov [rdi], rax lea rsi, aLogits+2; "logits " lea rdx, aLogits+9; "" mov [rsp+0A8h+var_98], rdi call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rbx, [rsp+0A8h+var_60] xor ebp, ebp lea r12, [rsp+0A8h+var_80] lea r13, [rsp+0A8h+var_50] loc_CE1E2: mov rdi, [r14+140h] call _llama_sampler_chain_n cmp ebp, eax jge loc_CE334 mov rdi, [r14+140h] mov esi, ebp call _llama_sampler_chain_get mov r15, rax lea rax, [rsp+0A8h+var_40] mov [rsp+0A8h+var_50], rax mov rdi, r13 lea rsi, asc_F55E8; "-> " lea rdx, asc_F55E8+3; "" call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov rdi, r15 call _llama_sampler_name mov rdi, r13 mov rsi, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov [rsp+0A8h+var_70], rbx mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jz short loc_CE25D mov [rsp+0A8h+var_70], rdx mov rdx, [rcx] mov [rsp+0A8h+var_60], rdx jmp short loc_CE263 loc_CE25D: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [rbx], xmm0 loc_CE263: mov rdx, [rax+8] mov [rsp+0A8h+var_68], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 lea rdi, [rsp+0A8h+var_70] lea rsi, aForMessageInMe+144h; " " call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov [rsp+0A8h+var_90], r12 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jz short loc_CE2AF mov [rsp+0A8h+var_90], rdx mov rdx, [rcx] mov [rsp+0A8h+var_80], rdx jmp short loc_CE2B7 loc_CE2AF: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r12], xmm0 loc_CE2B7: mov rdx, [rax+8] mov [rsp+0A8h+var_88], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 mov rsi, [rsp+0A8h+var_90] mov rdx, [rsp+0A8h+var_88] mov rdi, [rsp+0A8h+var_98] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rdi, [rsp+0A8h+var_90]; void * cmp rdi, r12 jz short loc_CE2FA mov rsi, [rsp+0A8h+var_80] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_CE2FA: mov rdi, [rsp+0A8h+var_70]; void * cmp rdi, rbx jz short loc_CE311 mov rsi, [rsp+0A8h+var_60] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_CE311: mov rdi, [rsp+0A8h+var_50]; void * lea rax, [rsp+0A8h+var_40] cmp rdi, rax jz short loc_CE32D mov rsi, [rsp+0A8h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_CE32D: inc ebp jmp loc_CE1E2 loc_CE334: mov rax, [rsp+0A8h+var_98] add rsp, 78h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_CE384 mov r14, rax mov rdi, [rsp+arg_10]; void * cmp rdi, r12 jz short loc_CE369 mov rsi, [rsp+arg_20] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_CE369 mov r14, rax loc_CE369: mov rdi, [rsp+arg_30]; void * cmp rdi, rbx jz short loc_CE38C mov rsi, [rsp+arg_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_CE38C jmp short $+2 loc_CE384: mov r14, rax jmp short loc_CE3A8 mov r14, rax loc_CE38C: mov rdi, [rsp+arg_50]; void * lea rax, [rsp+arg_60] cmp rdi, rax jz short loc_CE3A8 mov rsi, [rsp+arg_60] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_CE3A8: mov rax, [rsp+arg_0] mov rcx, [rsp+arg_8] mov rdi, [rcx]; void * cmp rdi, rax jz short loc_CE3C5 mov rsi, [rax] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_CE3C5: mov rdi, r14 call __Unwind_Resume
_QWORD * common_sampler_print[abi:cxx11](_QWORD *a1, long long a2) { int i; // ebp long long v3; // r15 long long v4; // rax long long v5; // rax __int128 *v6; // rcx long long v7; // rax __int128 *v8; // rcx __int128 *v10; // [rsp+18h] [rbp-90h] long long v11; // [rsp+20h] [rbp-88h] __int128 v12; // [rsp+28h] [rbp-80h] BYREF void *v13[2]; // [rsp+38h] [rbp-70h] BYREF __int128 v14; // [rsp+48h] [rbp-60h] BYREF void *v15[2]; // [rsp+58h] [rbp-50h] BYREF _QWORD v16[8]; // [rsp+68h] [rbp-40h] BYREF *a1 = a1 + 2; std::string::_M_construct<char const*>((long long)a1, "logits ", (long long)""); for ( i = 0; i < (int)llama_sampler_chain_n(*(_QWORD *)(a2 + 320)); ++i ) { v3 = llama_sampler_chain_get(*(_QWORD *)(a2 + 320), (unsigned int)i); v15[0] = v16; std::string::_M_construct<char const*>((long long)v15, "-> ", (long long)""); v4 = llama_sampler_name(v3); v5 = std::string::append(v15, v4); v13[0] = &v14; v6 = (__int128 *)(v5 + 16); if ( *(_QWORD *)v5 == v5 + 16 ) { v14 = *v6; } else { v13[0] = *(void **)v5; *(_QWORD *)&v14 = *(_QWORD *)v6; } v13[1] = *(void **)(v5 + 8); *(_QWORD *)v5 = v6; *(_QWORD *)(v5 + 8) = 0LL; *(_BYTE *)(v5 + 16) = 0; v7 = std::string::append(v13, " "); v10 = &v12; v8 = (__int128 *)(v7 + 16); if ( *(_QWORD *)v7 == v7 + 16 ) { v12 = *v8; } else { v10 = *(__int128 **)v7; *(_QWORD *)&v12 = *(_QWORD *)v8; } v11 = *(_QWORD *)(v7 + 8); *(_QWORD *)v7 = v8; *(_QWORD *)(v7 + 8) = 0LL; *(_BYTE *)(v7 + 16) = 0; std::string::_M_append(a1, v10, v11); if ( v10 != &v12 ) operator delete(v10, v12 + 1); if ( v13[0] != &v14 ) operator delete(v13[0], v14 + 1); if ( v15[0] != v16 ) operator delete(v15[0], v16[0] + 1LL); } return a1; }
common_sampler_print[abi:cxx11]: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x78 MOV R14,RSI LEA RAX,[RDI + 0x10] MOV qword ptr [RSP + 0x8],RAX MOV qword ptr [RDI],RAX LEA RSI,[0x1eee7b] LEA RDX,[0x1eee82] MOV qword ptr [RSP + 0x10],RDI CALL 0x00122402 LEA RBX,[RSP + 0x48] XOR EBP,EBP LEA R12,[RSP + 0x28] LEA R13,[RSP + 0x58] LAB_001ce1e2: MOV RDI,qword ptr [R14 + 0x140] LAB_001ce1e9: CALL 0x0011af80 CMP EBP,EAX JGE 0x001ce334 MOV RDI,qword ptr [R14 + 0x140] LAB_001ce1fd: MOV ESI,EBP CALL 0x0011a9c0 MOV R15,RAX LEA RAX,[RSP + 0x68] MOV qword ptr [RSP + 0x58],RAX LAB_001ce211: MOV RDI,R13 LEA RSI,[0x1f55e8] LEA RDX,[0x1f55eb] CALL 0x00122402 LAB_001ce227: MOV RDI,R15 CALL 0x0011a370 MOV RDI,R13 MOV RSI,RAX CALL 0x0011b0e0 MOV qword ptr [RSP + 0x38],RBX MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JZ 0x001ce25d MOV qword ptr [RSP + 0x38],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x48],RDX JMP 0x001ce263 LAB_001ce25d: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [RBX],XMM0 LAB_001ce263: MOV RDX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x40],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LAB_001ce27b: LEA RDI,[RSP + 0x38] LEA RSI,[0x1ef69a] CALL 0x0011b0e0 MOV qword ptr [RSP + 0x18],R12 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JZ 0x001ce2af MOV qword ptr [RSP + 0x18],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x28],RDX JMP 0x001ce2b7 LAB_001ce2af: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R12],XMM0 LAB_001ce2b7: MOV RDX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x20],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 MOV RSI,qword ptr [RSP + 0x18] MOV RDX,qword ptr [RSP + 0x20] LAB_001ce2d9: MOV RDI,qword ptr [RSP + 0x10] CALL 0x0011a270 LAB_001ce2e3: MOV RDI,qword ptr [RSP + 0x18] CMP RDI,R12 JZ 0x001ce2fa MOV RSI,qword ptr [RSP + 0x28] INC RSI CALL 0x0011a8e0 LAB_001ce2fa: MOV RDI,qword ptr [RSP + 0x38] CMP RDI,RBX JZ 0x001ce311 MOV RSI,qword ptr [RSP + 0x48] INC RSI CALL 0x0011a8e0 LAB_001ce311: MOV RDI,qword ptr [RSP + 0x58] LEA RAX,[RSP + 0x68] CMP RDI,RAX JZ 0x001ce32d MOV RSI,qword ptr [RSP + 0x68] INC RSI CALL 0x0011a8e0 LAB_001ce32d: INC EBP JMP 0x001ce1e2 LAB_001ce334: MOV RAX,qword ptr [RSP + 0x10] ADD RSP,0x78 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* common_sampler_print[abi:cxx11](common_sampler const*) */ common_sampler * common_sampler_print_abi_cxx11_(common_sampler *param_1) { int iVar1; int8 uVar2; long *plVar3; long *plVar4; int iVar5; long in_RSI; long *local_90; long local_80; long lStack_78; long *local_70; long local_68; long local_60; long lStack_58; long *local_50 [2]; long local_40 [2]; *(common_sampler **)param_1 = param_1 + 0x10; std::__cxx11::string::_M_construct<char_const*>(param_1,"logits ",""); iVar5 = 0; while( true ) { /* try { // try from 001ce1e9 to 001ce1ed has its CatchHandler @ 001ce384 */ iVar1 = llama_sampler_chain_n(*(int8 *)(in_RSI + 0x140)); if (iVar1 <= iVar5) break; /* try { // try from 001ce1fd to 001ce203 has its CatchHandler @ 001ce348 */ uVar2 = llama_sampler_chain_get(*(int8 *)(in_RSI + 0x140),iVar5); local_50[0] = local_40; /* try { // try from 001ce211 to 001ce226 has its CatchHandler @ 001ce382 */ std::__cxx11::string::_M_construct<char_const*>(local_50,&DAT_001f55e8,&DAT_001f55eb); /* try { // try from 001ce227 to 001ce239 has its CatchHandler @ 001ce389 */ llama_sampler_name(uVar2); plVar3 = (long *)std::__cxx11::string::append((char *)local_50); plVar4 = plVar3 + 2; if ((long *)*plVar3 == plVar4) { local_60 = *plVar4; lStack_58 = plVar3[3]; local_70 = &local_60; } else { local_60 = *plVar4; local_70 = (long *)*plVar3; } local_68 = plVar3[1]; *plVar3 = (long)plVar4; plVar3[1] = 0; *(int1 *)(plVar3 + 2) = 0; /* try { // try from 001ce27b to 001ce28b has its CatchHandler @ 001ce366 */ plVar3 = (long *)std::__cxx11::string::append((char *)&local_70); plVar4 = plVar3 + 2; if ((long *)*plVar3 == plVar4) { local_80 = *plVar4; lStack_78 = plVar3[3]; local_90 = &local_80; } else { local_80 = *plVar4; local_90 = (long *)*plVar3; } *plVar3 = (long)plVar4; plVar3[1] = 0; *(int1 *)(plVar3 + 2) = 0; /* try { // try from 001ce2d9 to 001ce2e2 has its CatchHandler @ 001ce34a */ std::__cxx11::string::_M_append((char *)param_1,(ulong)local_90); if (local_90 != &local_80) { operator_delete(local_90,local_80 + 1); } if (local_70 != &local_60) { operator_delete(local_70,local_60 + 1); } if (local_50[0] != local_40) { operator_delete(local_50[0],local_40[0] + 1); } iVar5 = iVar5 + 1; } return param_1; }
38,761
LefDefParser::defiNonDefault::layerSpacingVal(int) const
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiNonDefault.cpp
int defiNonDefault::layerSpacingVal(int index) const { char msg[160]; if (index < 0 || index >= numLayers_) { sprintf (msg, "ERROR (DEFPARS-6090): The index number %d specified for the NONDEFAULT LAYER is invalid.\nValid index is from 0 to %d. Specify a valid index number and then try again.", index, numLayers_); defiError(0, 6090, msg, defData); return 0; } return (int)spacing_[index]; }
O3
cpp
LefDefParser::defiNonDefault::layerSpacingVal(int) const: pushq %rbp pushq %r14 pushq %rbx subq $0xa0, %rsp movl %esi, %edx movq %rdi, %rbx testl %esi, %esi setns %al movl 0xc(%rdi), %ecx cmpl %esi, %ecx setg %sil testb %sil, %al je 0x2bf42 movq 0x40(%rbx), %rax movl %edx, %ecx cvttsd2si (%rax,%rcx,8), %ebp jmp 0x2bf6e leaq 0x19a64(%rip), %rsi # 0x459ad xorl %ebp, %ebp movq %rsp, %r14 movq %r14, %rdi xorl %eax, %eax callq 0x7060 movq 0xb8(%rbx), %rcx xorl %edi, %edi movl $0x17ca, %esi # imm = 0x17CA movq %r14, %rdx callq 0x1bb18 movl %ebp, %eax addq $0xa0, %rsp popq %rbx popq %r14 popq %rbp retq
_ZNK12LefDefParser14defiNonDefault15layerSpacingValEi: push rbp push r14 push rbx sub rsp, 0A0h mov edx, esi mov rbx, rdi test esi, esi setns al mov ecx, [rdi+0Ch] cmp ecx, esi setnle sil test al, sil jz short loc_2BF42 mov rax, [rbx+40h] mov ecx, edx cvttsd2si ebp, qword ptr [rax+rcx*8] jmp short loc_2BF6E loc_2BF42: lea rsi, aErrorDefpars60_8; "ERROR (DEFPARS-6090): The index number "... xor ebp, ebp mov r14, rsp mov rdi, r14 xor eax, eax call _sprintf mov rcx, [rbx+0B8h]; LefDefParser::defrData * xor edi, edi; this mov esi, 17CAh; int mov rdx, r14; char * call _ZN12LefDefParser9defiErrorEiiPKcPNS_8defrDataE; LefDefParser::defiError(int,int,char const*,LefDefParser::defrData *) loc_2BF6E: mov eax, ebp add rsp, 0A0h pop rbx pop r14 pop rbp retn
long long LefDefParser::defiNonDefault::layerSpacingVal(LefDefParser::defiNonDefault *this, signed int a2) { int v2; // ecx unsigned int v3; // ebp LefDefParser::defrData *v4; // r8 char v6[184]; // [rsp+0h] [rbp-B8h] BYREF v2 = *((_DWORD *)this + 3); if ( v2 > a2 && a2 >= 0 ) { return (unsigned int)(int)*(double *)(*((_QWORD *)this + 8) + 8LL * (unsigned int)a2); } else { v3 = 0; sprintf( v6, "ERROR (DEFPARS-6090): The index number %d specified for the NONDEFAULT LAYER is invalid.\n" "Valid index is from 0 to %d. Specify a valid index number and then try again.", a2, v2); LefDefParser::defiError(0LL, 6090, v6, *((LefDefParser::defrData **)this + 23), v4); } return v3; }
layerSpacingVal: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0xa0 MOV EDX,ESI MOV RBX,RDI TEST ESI,ESI SETNS AL MOV ECX,dword ptr [RDI + 0xc] CMP ECX,ESI SETG SIL TEST AL,SIL JZ 0x0012bf42 MOV RAX,qword ptr [RBX + 0x40] MOV ECX,EDX CVTTSD2SI EBP,qword ptr [RAX + RCX*0x8] JMP 0x0012bf6e LAB_0012bf42: LEA RSI,[0x1459ad] XOR EBP,EBP MOV R14,RSP MOV RDI,R14 XOR EAX,EAX CALL 0x00107060 MOV RCX,qword ptr [RBX + 0xb8] XOR EDI,EDI MOV ESI,0x17ca MOV RDX,R14 CALL 0x0011bb18 LAB_0012bf6e: MOV EAX,EBP ADD RSP,0xa0 POP RBX POP R14 POP RBP RET
/* LefDefParser::defiNonDefault::layerSpacingVal(int) const */ int __thiscall LefDefParser::defiNonDefault::layerSpacingVal(defiNonDefault *this,int param_1) { int iVar1; char acStack_b8 [160]; if (param_1 < 0 || *(int *)(this + 0xc) <= param_1) { iVar1 = 0; sprintf(acStack_b8, "ERROR (DEFPARS-6090): The index number %d specified for the NONDEFAULT LAYER is invalid.\nValid index is from 0 to %d. Specify a valid index number and then try again." ); defiError(0,0x17ca,acStack_b8,*(defrData **)(this + 0xb8)); } else { iVar1 = (int)*(double *)(*(long *)(this + 0x40) + (ulong)(uint)param_1 * 8); } return iVar1; }
38,762
my_8bit_charset_flags_from_data
eloqsql/strings/ctype-simple.c
uint my_8bit_charset_flags_from_data(CHARSET_INFO *cs) { uint flags= 0; if (my_charset_is_8bit_pure_ascii(cs)) flags|= MY_CS_PUREASCII; if (!my_charset_is_ascii_compatible(cs)) flags|= MY_CS_NONASCII; return flags; }
O0
c
my_8bit_charset_flags_from_data: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movl $0x0, -0xc(%rbp) movq -0x8(%rbp), %rdi callq 0x3d090 cmpb $0x0, %al je 0x3d06b movl -0xc(%rbp), %eax orl $0x1000, %eax # imm = 0x1000 movl %eax, -0xc(%rbp) movq -0x8(%rbp), %rdi callq 0x3d0f0 cmpb $0x0, %al jne 0x3d083 movl -0xc(%rbp), %eax orl $0x2000, %eax # imm = 0x2000 movl %eax, -0xc(%rbp) movl -0xc(%rbp), %eax addq $0x10, %rsp popq %rbp retq nopl (%rax)
my_8bit_charset_flags_from_data: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov [rbp+var_C], 0 mov rdi, [rbp+var_8] call my_charset_is_8bit_pure_ascii cmp al, 0 jz short loc_3D06B mov eax, [rbp+var_C] or eax, 1000h mov [rbp+var_C], eax loc_3D06B: mov rdi, [rbp+var_8] call my_charset_is_ascii_compatible cmp al, 0 jnz short loc_3D083 mov eax, [rbp+var_C] or eax, 2000h mov [rbp+var_C], eax loc_3D083: mov eax, [rbp+var_C] add rsp, 10h pop rbp retn
long long my_8bit_charset_flags_from_data(long long a1) { unsigned int v2; // [rsp+4h] [rbp-Ch] v2 = 0; if ( (unsigned __int8)my_charset_is_8bit_pure_ascii(a1) ) v2 = 4096; if ( !(unsigned __int8)my_charset_is_ascii_compatible(a1) ) v2 |= 0x2000u; return v2; }
my_8bit_charset_flags_from_data: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],0x0 MOV RDI,qword ptr [RBP + -0x8] CALL 0x0013d090 CMP AL,0x0 JZ 0x0013d06b MOV EAX,dword ptr [RBP + -0xc] OR EAX,0x1000 MOV dword ptr [RBP + -0xc],EAX LAB_0013d06b: MOV RDI,qword ptr [RBP + -0x8] CALL 0x0013d0f0 CMP AL,0x0 JNZ 0x0013d083 MOV EAX,dword ptr [RBP + -0xc] OR EAX,0x2000 MOV dword ptr [RBP + -0xc],EAX LAB_0013d083: MOV EAX,dword ptr [RBP + -0xc] ADD RSP,0x10 POP RBP RET
uint my_8bit_charset_flags_from_data(int8 param_1) { char cVar1; int4 local_14; local_14 = 0; cVar1 = my_charset_is_8bit_pure_ascii(param_1); if (cVar1 != '\0') { local_14 = 0x1000; } cVar1 = my_charset_is_ascii_compatible(param_1); if (cVar1 == '\0') { local_14 = local_14 | 0x2000; } return local_14; }
38,763
minja::CommentTemplateToken::CommentTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
monkey531[P]llama/common/minja.hpp
CommentTemplateToken(const Location & location, SpaceHandling pre, SpaceHandling post, const std::string& t) : TemplateToken(Type::Comment, location, pre, post), text(t) {}
O3
cpp
minja::CommentTemplateToken::CommentTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx leaq 0x9e9bf(%rip), %r15 # 0xda1c8 addq $0x10, %r15 movq %r15, (%rdi) movl $0xc, 0x8(%rdi) movq (%rsi), %rax movq %rax, 0x10(%rdi) movq 0x8(%rsi), %rax movq %rax, 0x18(%rdi) testq %rax, %rax je 0x3b840 movq 0xa0766(%rip), %rdi # 0xdbf98 cmpb $0x0, (%rdi) je 0x3b83c incl 0x8(%rax) jmp 0x3b840 lock incl 0x8(%rax) movq 0x10(%rsi), %rax movq %rax, 0x20(%rbx) movl %edx, 0x28(%rbx) movl %ecx, 0x2c(%rbx) leaq 0x9e92b(%rip), %rax # 0xda180 addq $0x10, %rax movq %rax, (%rbx) leaq 0x30(%rbx), %rdi leaq 0x40(%rbx), %rax movq %rax, 0x30(%rbx) movq (%r8), %rsi movq 0x8(%r8), %rdx addq %rsi, %rdx callq 0x35dc6 popq %rbx popq %r14 popq %r15 retq movq %rax, %r14 movq %r15, (%rbx) movq 0x18(%rbx), %rdi testq %rdi, %rdi je 0x3b891 callq 0x2f20e movq %r14, %rdi callq 0x18bb0 nop
_ZN5minja20CommentTemplateTokenC2ERKNS_8LocationENS_13SpaceHandlingES4_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push r15 push r14 push rbx mov rbx, rdi lea r15, _ZTVN5minja13TemplateTokenE; `vtable for'minja::TemplateToken add r15, 10h mov [rdi], r15 mov dword ptr [rdi+8], 0Ch mov rax, [rsi] mov [rdi+10h], rax mov rax, [rsi+8] mov [rdi+18h], rax test rax, rax jz short loc_3B840 mov rdi, cs:__libc_single_threaded_ptr cmp byte ptr [rdi], 0 jz short loc_3B83C inc dword ptr [rax+8] jmp short loc_3B840 loc_3B83C: lock inc dword ptr [rax+8] loc_3B840: mov rax, [rsi+10h] mov [rbx+20h], rax mov [rbx+28h], edx mov [rbx+2Ch], ecx lea rax, _ZTVN5minja20CommentTemplateTokenE; `vtable for'minja::CommentTemplateToken add rax, 10h mov [rbx], rax lea rdi, [rbx+30h] lea rax, [rbx+40h] mov [rbx+30h], rax mov rsi, [r8] mov rdx, [r8+8] add rdx, rsi call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) pop rbx pop r14 pop r15 retn mov r14, rax mov [rbx], r15 mov rdi, [rbx+18h] test rdi, rdi jz short loc_3B891 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_3B891: mov rdi, r14 call __Unwind_Resume
long long minja::CommentTemplateToken::CommentTemplateToken( long long a1, _QWORD *a2, int a3, int a4, long long a5) { long long v5; // rax *(_QWORD *)a1 = &`vtable for'minja::TemplateToken + 2; *(_DWORD *)(a1 + 8) = 12; *(_QWORD *)(a1 + 16) = *a2; v5 = a2[1]; *(_QWORD *)(a1 + 24) = v5; if ( v5 ) { if ( _libc_single_threaded ) ++*(_DWORD *)(v5 + 8); else _InterlockedIncrement((volatile signed __int32 *)(v5 + 8)); } *(_QWORD *)(a1 + 32) = a2[2]; *(_DWORD *)(a1 + 40) = a3; *(_DWORD *)(a1 + 44) = a4; *(_QWORD *)a1 = &`vtable for'minja::CommentTemplateToken + 2; *(_QWORD *)(a1 + 48) = a1 + 64; return std::string::_M_construct<char *>(a1 + 48, *(_BYTE **)a5, *(_QWORD *)a5 + *(_QWORD *)(a5 + 8)); }
CommentTemplateToken: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RDI LEA R15,[0x1da1c8] ADD R15,0x10 MOV qword ptr [RDI],R15 MOV dword ptr [RDI + 0x8],0xc MOV RAX,qword ptr [RSI] MOV qword ptr [RDI + 0x10],RAX MOV RAX,qword ptr [RSI + 0x8] MOV qword ptr [RDI + 0x18],RAX TEST RAX,RAX JZ 0x0013b840 MOV RDI,qword ptr [0x001dbf98] CMP byte ptr [RDI],0x0 JZ 0x0013b83c INC dword ptr [RAX + 0x8] JMP 0x0013b840 LAB_0013b83c: INC.LOCK dword ptr [RAX + 0x8] LAB_0013b840: MOV RAX,qword ptr [RSI + 0x10] MOV qword ptr [RBX + 0x20],RAX MOV dword ptr [RBX + 0x28],EDX MOV dword ptr [RBX + 0x2c],ECX LEA RAX,[0x1da180] ADD RAX,0x10 MOV qword ptr [RBX],RAX LEA RDI,[RBX + 0x30] LEA RAX,[RBX + 0x40] MOV qword ptr [RBX + 0x30],RAX MOV RSI,qword ptr [R8] MOV RDX,qword ptr [R8 + 0x8] ADD RDX,RSI LAB_0013b872: CALL 0x00135dc6 LAB_0013b877: POP RBX POP R14 POP R15 RET
/* minja::CommentTemplateToken::CommentTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::__cxx11::string const&) */ void __thiscall minja::CommentTemplateToken::CommentTemplateToken (CommentTemplateToken *this,int8 *param_1,int4 param_3,int4 param_4, long *param_5) { long lVar1; *(int ***)this = &PTR__TemplateToken_001da1d8; *(int4 *)(this + 8) = 0xc; *(int8 *)(this + 0x10) = *param_1; lVar1 = param_1[1]; *(long *)(this + 0x18) = lVar1; if (lVar1 != 0) { if (*PTR___libc_single_threaded_001dbf98 == '\0') { LOCK(); *(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1; UNLOCK(); } else { *(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1; } } *(int8 *)(this + 0x20) = param_1[2]; *(int4 *)(this + 0x28) = param_3; *(int4 *)(this + 0x2c) = param_4; *(int ***)this = &PTR__CommentTemplateToken_001da190; *(CommentTemplateToken **)(this + 0x30) = this + 0x40; /* try { // try from 0013b872 to 0013b876 has its CatchHandler @ 0013b87d */ std::__cxx11::string::_M_construct<char*>(this + 0x30,*param_5,param_5[1] + *param_5); return; }
38,764
FindPeaksCppTest_ThresholdFiltering_Test::TestBody()
giladroyz[P]FindPeaks/tests/test_find_peaks_cpp.cpp
TEST_F(FindPeaksCppTest, ThresholdFiltering) { PeakConditions conditions; conditions.set_threshold(1.5); // Peak must exceed neighbors by at least 1.5 auto peaks = find_peaks(simple_signal, conditions); for (const auto& peak : peaks) { EXPECT_GE(peak.threshold.left_threshold, 1.5); EXPECT_GE(peak.threshold.right_threshold, 1.5); } }
O3
cpp
FindPeaksCppTest_ThresholdFiltering_Test::TestBody(): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xc8, %rsp leaq 0x10(%rdi), %rsi movaps 0x33ec0(%rip), %xmm0 # 0x40010 leaq 0x40(%rsp), %rdx movups %xmm0, 0x8(%rdx) movaps 0x33ed0(%rip), %xmm1 # 0x40030 movups %xmm1, 0x20(%rdx) movq $0x1, 0x30(%rdx) movups %xmm0, 0x40(%rdx) movups %xmm0, 0x58(%rdx) xorl %eax, %eax movq %rax, 0x68(%rdx) movabsq $0x3fe0000000000000, %rcx # imm = 0x3FE0000000000000 movq %rcx, 0x70(%rdx) movq %rax, 0x78(%rdx) movq $-0x1, 0x80(%rdx) leaq 0x28(%rsp), %rbx movq %rbx, %rdi callq 0x3d274 movq (%rbx), %r15 movq 0x8(%rbx), %r12 cmpq %r12, %r15 je 0xc312 leaq 0x34141(%rip), %r13 # 0x402fc leaq 0x10(%rsp), %rbp leaq 0x8(%rsp), %rbx leaq 0x20(%rsp), %r14 leaq 0x28(%r15), %rcx movabsq $0x3ff8000000000000, %rax # imm = 0x3FF8000000000000 movq %rax, 0x8(%rsp) movq %rbp, %rdi leaq 0x3418e(%rip), %rsi # 0x40375 movq %r13, %rdx movq %rbx, %r8 callq 0xd6e7 cmpb $0x0, 0x10(%rsp) jne 0xc251 movq %rbx, %rdi callq 0x1c968 movq 0x18(%rsp), %rax leaq 0x37171(%rip), %r8 # 0x4337e testq %rax, %rax je 0xc215 movq (%rax), %r8 movq %r14, %rdi movl $0x1, %esi leaq 0x33f20(%rip), %rdx # 0x40144 movl $0x71, %ecx callq 0x18b88 movq %r14, %rdi movq %rbx, %rsi callq 0x1651e movq %r14, %rdi callq 0x18bf4 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0xc251 movq (%rdi), %rax callq *0x8(%rax) movq 0x18(%rsp), %rsi testq %rsi, %rsi je 0xc265 leaq 0x18(%rsp), %rdi callq 0xdb84 leaq 0x30(%r15), %rcx movabsq $0x3ff8000000000000, %rax # imm = 0x3FF8000000000000 movq %rax, 0x8(%rsp) movq %rbp, %rdi leaq 0x34111(%rip), %rsi # 0x40393 movq %r13, %rdx movq %rbx, %r8 callq 0xd6e7 cmpb $0x0, 0x10(%rsp) jne 0xc2ec movq %rbx, %rdi callq 0x1c968 movq 0x18(%rsp), %rax leaq 0x370d6(%rip), %r8 # 0x4337e testq %rax, %rax je 0xc2b0 movq (%rax), %r8 movq %r14, %rdi movl $0x1, %esi leaq 0x33e85(%rip), %rdx # 0x40144 movl $0x72, %ecx callq 0x18b88 movq %r14, %rdi movq %rbx, %rsi callq 0x1651e movq %r14, %rdi callq 0x18bf4 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0xc2ec movq (%rdi), %rax callq *0x8(%rax) movq 0x18(%rsp), %rsi testq %rsi, %rsi je 0xc300 leaq 0x18(%rsp), %rdi callq 0xdb84 addq $0x70, %r15 cmpq %r12, %r15 jne 0xc1ca movq 0x28(%rsp), %r15 testq %r15, %r15 je 0xc327 movq 0x38(%rsp), %rsi subq %r15, %rsi movq %r15, %rdi callq 0x84e0 addq $0xc8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0xc344 jmp 0xc349 jmp 0xc33f movq %rax, %rbx jmp 0xc356 movq %rax, %rbx jmp 0xc366 movq %rax, %rbx leaq 0x20(%rsp), %rdi callq 0x18bf4 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0xc366 movq (%rdi), %rax callq *0x8(%rax) movq 0x18(%rsp), %rsi testq %rsi, %rsi je 0xc381 leaq 0x18(%rsp), %rdi callq 0xdb84 jmp 0xc381 jmp 0xc37e movq %rax, %rbx movq 0x28(%rsp), %rdi testq %rdi, %rdi je 0xc398 movq 0x38(%rsp), %rsi subq %rdi, %rsi callq 0x84e0 movq %rbx, %rdi callq 0x8990
_ZN40FindPeaksCppTest_ThresholdFiltering_Test8TestBodyEv: push rbp; int push r15; int push r14; int push r13; int push r12; int push rbx; int sub rsp, 0C8h lea rsi, [rdi+10h]; int movaps xmm0, cs:xmmword_40010 lea rdx, [rsp+0F8h+var_B8]; int movups xmmword ptr [rdx+8], xmm0 movaps xmm1, cs:xmmword_40030 movups xmmword ptr [rdx+20h], xmm1 mov qword ptr [rdx+30h], 1 movups xmmword ptr [rdx+40h], xmm0 movups xmmword ptr [rdx+58h], xmm0 xor eax, eax mov [rdx+68h], rax mov rcx, 3FE0000000000000h; int mov [rdx+70h], rcx mov [rdx+78h], rax mov qword ptr [rdx+80h], 0FFFFFFFFFFFFFFFFh lea rbx, [rsp+0F8h+var_D0] mov rdi, rbx; int call _ZN9findPeaks10find_peaksERKSt6vectorIdSaIdEENS_14PeakConditionsE; findPeaks::find_peaks(std::vector<double> const&,findPeaks::PeakConditions) mov r15, [rbx] mov r12, [rbx+8] cmp r15, r12 jz loc_C312 lea r13, a15; "1.5" lea rbp, [rsp+0F8h+var_E8] lea rbx, [rsp+0F8h+var_F0] lea r14, [rsp+0F8h+var_D8] loc_C1CA: lea rcx, [r15+28h] mov rax, 3FF8000000000000h mov [rsp+0F8h+var_F0], rax mov rdi, rbp; this lea rsi, aPeakThresholdL; "peak.threshold.left_threshold" mov rdx, r13 mov r8, rbx call _ZN7testing8internal11CmpHelperGEIddEENS_15AssertionResultEPKcS4_RKT_RKT0_; testing::internal::CmpHelperGE<double,double>(char const*,char const*,double const&,double const&) cmp [rsp+0F8h+var_E8], 0 jnz short loc_C251 mov rdi, rbx; this call _ZN7testing7MessageC2Ev; testing::Message::Message(void) mov rax, [rsp+0F8h+var_E0] lea r8, aSFromSSMsTotal+1Ah; "" test rax, rax jz short loc_C215 mov r8, [rax] loc_C215: mov rdi, r14 mov esi, 1 lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov ecx, 71h ; 'q' call _ZN7testing8internal12AssertHelperC2ENS_14TestPartResult4TypeEPKciS5_; testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type,char const*,int,char const*) mov rdi, r14 mov rsi, rbx call _ZNK7testing8internal12AssertHelperaSERKNS_7MessageE; testing::internal::AssertHelper::operator=(testing::Message const&) mov rdi, r14; this call _ZN7testing8internal12AssertHelperD2Ev; testing::internal::AssertHelper::~AssertHelper() mov rdi, [rsp+0F8h+var_F0] test rdi, rdi jz short loc_C251 mov rax, [rdi] call qword ptr [rax+8] loc_C251: mov rsi, [rsp+0F8h+var_E0] test rsi, rsi jz short loc_C265 lea rdi, [rsp+0F8h+var_E0] call _ZNKSt14default_deleteINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS5_; std::default_delete<std::string>::operator()(std::string*) loc_C265: lea rcx, [r15+30h] mov rax, 3FF8000000000000h mov [rsp+0F8h+var_F0], rax mov rdi, rbp; this lea rsi, aPeakThresholdR; "peak.threshold.right_threshold" mov rdx, r13 mov r8, rbx call _ZN7testing8internal11CmpHelperGEIddEENS_15AssertionResultEPKcS4_RKT_RKT0_; testing::internal::CmpHelperGE<double,double>(char const*,char const*,double const&,double const&) cmp [rsp+0F8h+var_E8], 0 jnz short loc_C2EC mov rdi, rbx; this call _ZN7testing7MessageC2Ev; testing::Message::Message(void) mov rax, [rsp+0F8h+var_E0] lea r8, aSFromSSMsTotal+1Ah; "" test rax, rax jz short loc_C2B0 mov r8, [rax] loc_C2B0: mov rdi, r14 mov esi, 1 lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov ecx, 72h ; 'r' call _ZN7testing8internal12AssertHelperC2ENS_14TestPartResult4TypeEPKciS5_; testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type,char const*,int,char const*) mov rdi, r14 mov rsi, rbx call _ZNK7testing8internal12AssertHelperaSERKNS_7MessageE; testing::internal::AssertHelper::operator=(testing::Message const&) mov rdi, r14; this call _ZN7testing8internal12AssertHelperD2Ev; testing::internal::AssertHelper::~AssertHelper() mov rdi, [rsp+0F8h+var_F0] test rdi, rdi jz short loc_C2EC mov rax, [rdi] call qword ptr [rax+8] loc_C2EC: mov rsi, [rsp+0F8h+var_E0] test rsi, rsi jz short loc_C300 lea rdi, [rsp+0F8h+var_E0] call _ZNKSt14default_deleteINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS5_; std::default_delete<std::string>::operator()(std::string*) loc_C300: add r15, 70h ; 'p' cmp r15, r12 jnz loc_C1CA mov r15, qword ptr [rsp+0F8h+var_D0] loc_C312: test r15, r15 jz short loc_C327 mov rsi, [rsp+0F8h+var_C0] sub rsi, r15; unsigned __int64 mov rdi, r15; void * call __ZdlPvm; operator delete(void *,ulong) loc_C327: add rsp, 0C8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_C344 jmp short loc_C349 jmp short $+2 loc_C33F: mov rbx, rax jmp short loc_C356 loc_C344: mov rbx, rax jmp short loc_C366 loc_C349: mov rbx, rax lea rdi, [rsp+arg_18]; this call _ZN7testing8internal12AssertHelperD2Ev; testing::internal::AssertHelper::~AssertHelper() loc_C356: mov rdi, [rsp+arg_0] test rdi, rdi jz short loc_C366 mov rax, [rdi] call qword ptr [rax+8] loc_C366: mov rsi, [rsp+arg_10] test rsi, rsi jz short loc_C381 lea rdi, [rsp+arg_10] call _ZNKSt14default_deleteINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS5_; std::default_delete<std::string>::operator()(std::string*) jmp short loc_C381 jmp short $+2 loc_C37E: mov rbx, rax loc_C381: mov rdi, [rsp+arg_20]; void * test rdi, rdi jz short loc_C398 mov rsi, [rsp+arg_30] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_C398: mov rdi, rbx call __Unwind_Resume
TestBody: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xc8 LEA RSI,[RDI + 0x10] MOVAPS XMM0,xmmword ptr [0x00140010] LEA RDX,[RSP + 0x40] MOVUPS xmmword ptr [RDX + 0x8],XMM0 MOVAPS XMM1,xmmword ptr [0x00140030] MOVUPS xmmword ptr [RDX + 0x20],XMM1 MOV qword ptr [RDX + 0x30],0x1 MOVUPS xmmword ptr [RDX + 0x40],XMM0 MOVUPS xmmword ptr [RDX + 0x58],XMM0 XOR EAX,EAX MOV qword ptr [RDX + 0x68],RAX MOV RCX,0x3fe0000000000000 MOV qword ptr [RDX + 0x70],RCX MOV qword ptr [RDX + 0x78],RAX MOV qword ptr [RDX + 0x80],-0x1 LEA RBX,[RSP + 0x28] MOV RDI,RBX CALL 0x0013d274 MOV R15,qword ptr [RBX] MOV R12,qword ptr [RBX + 0x8] CMP R15,R12 JZ 0x0010c312 LEA R13,[0x1402fc] LEA RBP,[RSP + 0x10] LEA RBX,[RSP + 0x8] LEA R14,[RSP + 0x20] LAB_0010c1ca: LEA RCX,[R15 + 0x28] MOV RAX,0x3ff8000000000000 MOV qword ptr [RSP + 0x8],RAX LAB_0010c1dd: MOV RDI,RBP LEA RSI,[0x140375] MOV RDX,R13 MOV R8,RBX CALL 0x0010d6e7 CMP byte ptr [RSP + 0x10],0x0 JNZ 0x0010c251 LAB_0010c1f9: MOV RDI,RBX CALL 0x0011c968 MOV RAX,qword ptr [RSP + 0x18] LEA R8,[0x14337e] TEST RAX,RAX JZ 0x0010c215 MOV R8,qword ptr [RAX] LAB_0010c215: MOV RDI,R14 MOV ESI,0x1 LEA RDX,[0x140144] MOV ECX,0x71 CALL 0x00118b88 LAB_0010c22e: MOV RDI,R14 MOV RSI,RBX CALL 0x0011651e LAB_0010c239: MOV RDI,R14 CALL 0x00118bf4 MOV RDI,qword ptr [RSP + 0x8] TEST RDI,RDI JZ 0x0010c251 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_0010c251: MOV RSI,qword ptr [RSP + 0x18] TEST RSI,RSI JZ 0x0010c265 LEA RDI,[RSP + 0x18] CALL 0x0010db84 LAB_0010c265: LEA RCX,[R15 + 0x30] MOV RAX,0x3ff8000000000000 MOV qword ptr [RSP + 0x8],RAX LAB_0010c278: MOV RDI,RBP LEA RSI,[0x140393] MOV RDX,R13 MOV R8,RBX CALL 0x0010d6e7 CMP byte ptr [RSP + 0x10],0x0 JNZ 0x0010c2ec LAB_0010c294: MOV RDI,RBX CALL 0x0011c968 MOV RAX,qword ptr [RSP + 0x18] LEA R8,[0x14337e] TEST RAX,RAX JZ 0x0010c2b0 MOV R8,qword ptr [RAX] LAB_0010c2b0: MOV RDI,R14 MOV ESI,0x1 LEA RDX,[0x140144] MOV ECX,0x72 CALL 0x00118b88 LAB_0010c2c9: MOV RDI,R14 MOV RSI,RBX CALL 0x0011651e LAB_0010c2d4: MOV RDI,R14 CALL 0x00118bf4 MOV RDI,qword ptr [RSP + 0x8] TEST RDI,RDI JZ 0x0010c2ec MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_0010c2ec: MOV RSI,qword ptr [RSP + 0x18] TEST RSI,RSI JZ 0x0010c300 LEA RDI,[RSP + 0x18] CALL 0x0010db84 LAB_0010c300: ADD R15,0x70 CMP R15,R12 JNZ 0x0010c1ca MOV R15,qword ptr [RSP + 0x28] LAB_0010c312: TEST R15,R15 JZ 0x0010c327 MOV RSI,qword ptr [RSP + 0x38] SUB RSI,R15 MOV RDI,R15 CALL 0x001084e0 LAB_0010c327: ADD RSP,0xc8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* FindPeaksCppTest_ThresholdFiltering_Test::TestBody() */ void __thiscall FindPeaksCppTest_ThresholdFiltering_Test::TestBody(FindPeaksCppTest_ThresholdFiltering_Test *this) { char *pcVar1; void *pvVar2; long *local_f0; internal local_e8 [8]; string *local_e0; AssertHelper local_d8 [8]; void *local_d0; void *local_c8; long local_c0; int4 local_b0; int4 uStack_ac; int4 uStack_a8; int4 uStack_a4; int4 local_98; int4 uStack_94; int4 uStack_90; int4 uStack_8c; int8 local_88; int4 local_78; int4 uStack_74; int4 uStack_70; int4 uStack_6c; int4 local_60; int4 uStack_5c; int4 uStack_58; int4 uStack_54; int8 local_50; int8 local_48; int8 local_40; int8 local_38; local_b0 = _DAT_00140010; uStack_ac = _UNK_00140014; uStack_a8 = _UNK_00140018; uStack_a4 = _UNK_0014001c; local_98 = _DAT_00140030; uStack_94 = _UNK_00140034; uStack_90 = _UNK_00140038; uStack_8c = _UNK_0014003c; local_88 = 1; local_78 = _DAT_00140010; uStack_74 = _UNK_00140014; uStack_70 = _UNK_00140018; uStack_6c = _UNK_0014001c; local_60 = _DAT_00140010; uStack_5c = _UNK_00140014; uStack_58 = _UNK_00140018; uStack_54 = _UNK_0014001c; local_50 = 0; local_48 = 0x3fe0000000000000; local_40 = 0; local_38 = 0xffffffffffffffff; findPeaks::find_peaks((findPeaks *)&local_d0,this + 0x10); if (local_d0 != local_c8) { pvVar2 = local_d0; do { local_f0 = (long *)&DAT_3ff8000000000000; /* try { // try from 0010c1dd to 0010c1f1 has its CatchHandler @ 0010c37c */ testing::internal::CmpHelperGE<double,double> (local_e8,"peak.threshold.left_threshold","1.5",(double *)((long)pvVar2 + 0x28), (double *)&local_f0); if (local_e8[0] == (internal)0x0) { /* try { // try from 0010c1f9 to 0010c200 has its CatchHandler @ 0010c339 */ testing::Message::Message((Message *)&local_f0); pcVar1 = ""; if (local_e0 != (string *)0x0) { pcVar1 = *(char **)local_e0; } /* try { // try from 0010c215 to 0010c22d has its CatchHandler @ 0010c33f */ testing::internal::AssertHelper::AssertHelper (local_d8,1, "/workspace/llm4binary/github/2025_star3/giladroyz[P]FindPeaks/tests/test_find_peaks_cpp.cpp" ,0x71,pcVar1); /* try { // try from 0010c22e to 0010c238 has its CatchHandler @ 0010c33b */ testing::internal::AssertHelper::operator=(local_d8,(Message *)&local_f0); testing::internal::AssertHelper::~AssertHelper(local_d8); if (local_f0 != (long *)0x0) { (**(code **)(*local_f0 + 8))(); } } if (local_e0 != (string *)0x0) { std::default_delete<std::__cxx11::string>::operator() ((default_delete<std::__cxx11::string> *)&local_e0,local_e0); } local_f0 = (long *)&DAT_3ff8000000000000; /* try { // try from 0010c278 to 0010c28c has its CatchHandler @ 0010c37e */ testing::internal::CmpHelperGE<double,double> (local_e8,"peak.threshold.right_threshold","1.5",(double *)((long)pvVar2 + 0x30), (double *)&local_f0); if (local_e8[0] == (internal)0x0) { /* try { // try from 0010c294 to 0010c29b has its CatchHandler @ 0010c344 */ testing::Message::Message((Message *)&local_f0); pcVar1 = ""; if (local_e0 != (string *)0x0) { pcVar1 = *(char **)local_e0; } /* try { // try from 0010c2b0 to 0010c2c8 has its CatchHandler @ 0010c33d */ testing::internal::AssertHelper::AssertHelper (local_d8,1, "/workspace/llm4binary/github/2025_star3/giladroyz[P]FindPeaks/tests/test_find_peaks_cpp.cpp" ,0x72,pcVar1); /* try { // try from 0010c2c9 to 0010c2d3 has its CatchHandler @ 0010c349 */ testing::internal::AssertHelper::operator=(local_d8,(Message *)&local_f0); testing::internal::AssertHelper::~AssertHelper(local_d8); if (local_f0 != (long *)0x0) { (**(code **)(*local_f0 + 8))(); } } if (local_e0 != (string *)0x0) { std::default_delete<std::__cxx11::string>::operator() ((default_delete<std::__cxx11::string> *)&local_e0,local_e0); } pvVar2 = (void *)((long)pvVar2 + 0x70); } while (pvVar2 != local_c8); } if (local_d0 != (void *)0x0) { operator_delete(local_d0,local_c0 - (long)local_d0); } return; }
38,765
User_var_log_event::User_var_log_event(unsigned char const*, unsigned int, Format_description_log_event const*)
eloqsql/sql/log_event.cc
User_var_log_event:: User_var_log_event(const uchar *buf, uint event_len, const Format_description_log_event* description_event) :Log_event(buf, description_event) #ifndef MYSQL_CLIENT , deferred(false), query_id(0) #endif { bool error= false; const uchar *buf_start= buf, *buf_end= buf + event_len; /* The Post-Header is empty. The Variable Data part begins immediately. */ buf+= description_event->common_header_len + description_event->post_header_len[USER_VAR_EVENT-1]; name_len= uint4korr(buf); /* Avoid reading out of buffer */ if ((buf - buf_start) + UV_NAME_LEN_SIZE + name_len > event_len) { error= true; goto err; } name= (char *) buf + UV_NAME_LEN_SIZE; /* We don't know yet is_null value, so we must assume that name_len may have the bigger value possible, is_null= True and there is no payload for val, or even that name_len is 0. */ if (name + name_len + UV_VAL_IS_NULL > (char*) buf_end) { error= true; goto err; } buf+= UV_NAME_LEN_SIZE + name_len; is_null= (bool) *buf; flags= User_var_log_event::UNDEF_F; // defaults to UNDEF_F if (is_null) { type= STRING_RESULT; charset_number= my_charset_bin.number; val_len= 0; val= 0; } else { val= (char *) (buf + UV_VAL_IS_NULL + UV_VAL_TYPE_SIZE + UV_CHARSET_NUMBER_SIZE + UV_VAL_LEN_SIZE); if (val > (char*) buf_end) { error= true; goto err; } type= (Item_result) buf[UV_VAL_IS_NULL]; charset_number= uint4korr(buf + UV_VAL_IS_NULL + UV_VAL_TYPE_SIZE); val_len= uint4korr(buf + UV_VAL_IS_NULL + UV_VAL_TYPE_SIZE + UV_CHARSET_NUMBER_SIZE); /** We need to check if this is from an old server that did not pack information for flags. We do this by checking if there are extra bytes after the packed value. If there are we take the extra byte and it's value is assumed to contain the flags value. Old events will not have this extra byte, thence, we keep the flags set to UNDEF_F. */ size_t bytes_read= (val + val_len) - (char*) buf_start; if (bytes_read > event_len) { error= true; goto err; } if ((data_written - bytes_read) > 0) { flags= (uint) *(buf + UV_VAL_IS_NULL + UV_VAL_TYPE_SIZE + UV_CHARSET_NUMBER_SIZE + UV_VAL_LEN_SIZE + val_len); } } err: if (unlikely(error)) name= 0; }
O3
cpp
User_var_log_event::User_var_log_event(unsigned char const*, unsigned int, Format_description_log_event const*): pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rcx, %r15 movl %edx, %r12d movq %rsi, %r14 movq %rdi, %rbx movq %rcx, %rdx callq 0x47c04 leaq 0x3117f6(%rip), %rax # 0x35b880 movq %rax, (%rbx) movl %r12d, %eax movzbl 0xcd(%r15), %edx movq 0xd0(%r15), %rcx movzbl 0xd(%rcx), %esi addq %r14, %rdx leaq (%rdx,%rsi), %rcx movl (%rsi,%rdx), %edx movq %rdx, 0x98(%rbx) movq %rdx, %rsi subq %r14, %rsi addq %rcx, %rsi addq $0x4, %rsi cmpq %rax, %rsi ja 0x4a0e2 leaq (%r14,%rax), %rsi leaq 0x4(%rcx), %rdi movq %rdi, 0x90(%rbx) leaq (%rcx,%rdx), %rdi addq $0x5, %rdi cmpq %rsi, %rdi jbe 0x4a0f6 movq $0x0, 0x90(%rbx) popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq cmpb $0x0, 0x4(%rcx,%rdx) setne 0xb8(%rbx) movb $0x0, 0xb9(%rbx) je 0x4a130 movl $0x0, 0xb0(%rbx) leaq 0x328f34(%rip), %rax # 0x373050 movl (%rax), %eax movl %eax, 0xb4(%rbx) xorps %xmm0, %xmm0 movups %xmm0, 0xa0(%rbx) jmp 0x4a0ed addq %rdx, %rcx leaq 0xe(%rcx), %rdx movq %rdx, 0xa0(%rbx) cmpq %rsi, %rdx ja 0x4a0e2 movzbl 0x5(%rcx), %esi movl %esi, 0xb0(%rbx) movl 0x6(%rcx), %esi movl %esi, 0xb4(%rbx) movl 0xa(%rcx), %ecx movq %rcx, 0xa8(%rbx) addq %rcx, %rdx movq %rdx, %rcx subq %r14, %rcx cmpq %rax, %rcx ja 0x4a0e2 cmpq %rcx, 0x38(%rbx) je 0x4a0ed movb (%rdx), %al movb %al, 0xb9(%rbx) jmp 0x4a0ed nop
_ZN18User_var_log_eventC2EPKhjPK28Format_description_log_event: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov r15, rcx mov r12d, edx mov r14, rsi mov rbx, rdi mov rdx, rcx call _ZN9Log_eventC2EPKhPK28Format_description_log_event; Log_event::Log_event(uchar const*,Format_description_log_event const*) lea rax, off_35B880 mov [rbx], rax mov eax, r12d movzx edx, byte ptr [r15+0CDh] mov rcx, [r15+0D0h] movzx esi, byte ptr [rcx+0Dh] add rdx, r14 lea rcx, [rdx+rsi] mov edx, [rsi+rdx] mov [rbx+98h], rdx mov rsi, rdx sub rsi, r14 add rsi, rcx add rsi, 4 cmp rsi, rax ja short loc_4A0E2 lea rsi, [r14+rax] lea rdi, [rcx+4] mov [rbx+90h], rdi lea rdi, [rcx+rdx] add rdi, 5 cmp rdi, rsi jbe short loc_4A0F6 loc_4A0E2: mov qword ptr [rbx+90h], 0 loc_4A0ED: pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_4A0F6: cmp byte ptr [rcx+rdx+4], 0 setnz byte ptr [rbx+0B8h] mov byte ptr [rbx+0B9h], 0 jz short loc_4A130 mov dword ptr [rbx+0B0h], 0 lea rax, my_charset_bin mov eax, [rax] mov [rbx+0B4h], eax xorps xmm0, xmm0 movups xmmword ptr [rbx+0A0h], xmm0 jmp short loc_4A0ED loc_4A130: add rcx, rdx lea rdx, [rcx+0Eh] mov [rbx+0A0h], rdx cmp rdx, rsi ja short loc_4A0E2 movzx esi, byte ptr [rcx+5] mov [rbx+0B0h], esi mov esi, [rcx+6] mov [rbx+0B4h], esi mov ecx, [rcx+0Ah] mov [rbx+0A8h], rcx add rdx, rcx mov rcx, rdx sub rcx, r14 cmp rcx, rax ja loc_4A0E2 cmp [rbx+38h], rcx jz loc_4A0ED mov al, [rdx] mov [rbx+0B9h], al jmp loc_4A0ED
void User_var_log_event::User_var_log_event( User_var_log_event *this, const unsigned __int8 *a2, unsigned int a3, const Format_description_log_event *a4) { const unsigned __int8 *v6; // rcx long long v7; // rdx bool v8; // zf const unsigned __int8 *v9; // rcx const unsigned __int8 *v10; // rdx long long v11; // rcx const unsigned __int8 *v12; // rdx Log_event::Log_event(this, a2, a4); *(_QWORD *)this = &off_35B880; v6 = &a2[*((unsigned __int8 *)a4 + 205) + *(unsigned __int8 *)(*((_QWORD *)a4 + 26) + 13LL)]; v7 = *(unsigned int *)v6; *((_QWORD *)this + 19) = v7; if ( (unsigned long long)&v6[v7 - (_QWORD)a2 + 4] > a3 ) goto LABEL_3; *((_QWORD *)this + 18) = v6 + 4; if ( &v6[v7 + 5] > &a2[a3] ) goto LABEL_3; v8 = v6[v7 + 4] == 0; *((_BYTE *)this + 184) = v6[v7 + 4] != 0; *((_BYTE *)this + 185) = 0; if ( !v8 ) { *((_DWORD *)this + 44) = 0; *((_DWORD *)this + 45) = my_charset_bin; *((_OWORD *)this + 10) = 0LL; return; } v9 = &v6[v7]; v10 = v9 + 14; *((_QWORD *)this + 20) = v9 + 14; if ( v9 + 14 > &a2[a3] || (*((_DWORD *)this + 44) = v9[5], *((_DWORD *)this + 45) = *(_DWORD *)(v9 + 6), v11 = *(unsigned int *)(v9 + 10), *((_QWORD *)this + 21) = v11, v12 = &v10[v11], v12 - a2 > (unsigned long long)a3) ) { LABEL_3: *((_QWORD *)this + 18) = 0LL; } else if ( *((_QWORD *)this + 7) != v12 - a2 ) { *((_BYTE *)this + 185) = *v12; } }
User_var_log_event: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV R15,RCX MOV R12D,EDX MOV R14,RSI MOV RBX,RDI MOV RDX,RCX CALL 0x00147c04 LEA RAX,[0x45b880] MOV qword ptr [RBX],RAX MOV EAX,R12D MOVZX EDX,byte ptr [R15 + 0xcd] MOV RCX,qword ptr [R15 + 0xd0] MOVZX ESI,byte ptr [RCX + 0xd] ADD RDX,R14 LEA RCX,[RDX + RSI*0x1] MOV EDX,dword ptr [RSI + RDX*0x1] MOV qword ptr [RBX + 0x98],RDX MOV RSI,RDX SUB RSI,R14 ADD RSI,RCX ADD RSI,0x4 CMP RSI,RAX JA 0x0014a0e2 LEA RSI,[R14 + RAX*0x1] LEA RDI,[RCX + 0x4] MOV qword ptr [RBX + 0x90],RDI LEA RDI,[RCX + RDX*0x1] ADD RDI,0x5 CMP RDI,RSI JBE 0x0014a0f6 LAB_0014a0e2: MOV qword ptr [RBX + 0x90],0x0 LAB_0014a0ed: POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_0014a0f6: CMP byte ptr [RCX + RDX*0x1 + 0x4],0x0 SETNZ byte ptr [RBX + 0xb8] MOV byte ptr [RBX + 0xb9],0x0 JZ 0x0014a130 MOV dword ptr [RBX + 0xb0],0x0 LEA RAX,[0x473050] MOV EAX,dword ptr [RAX] MOV dword ptr [RBX + 0xb4],EAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0xa0],XMM0 JMP 0x0014a0ed LAB_0014a130: ADD RCX,RDX LEA RDX,[RCX + 0xe] MOV qword ptr [RBX + 0xa0],RDX CMP RDX,RSI JA 0x0014a0e2 MOVZX ESI,byte ptr [RCX + 0x5] MOV dword ptr [RBX + 0xb0],ESI MOV ESI,dword ptr [RCX + 0x6] MOV dword ptr [RBX + 0xb4],ESI MOV ECX,dword ptr [RCX + 0xa] MOV qword ptr [RBX + 0xa8],RCX ADD RDX,RCX MOV RCX,RDX SUB RCX,R14 CMP RCX,RAX JA 0x0014a0e2 CMP qword ptr [RBX + 0x38],RCX JZ 0x0014a0ed MOV AL,byte ptr [RDX] MOV byte ptr [RBX + 0xb9],AL JMP 0x0014a0ed
/* User_var_log_event::User_var_log_event(unsigned char const*, unsigned int, Format_description_log_event const*) */ void __thiscall User_var_log_event::User_var_log_event (User_var_log_event *this,uchar *param_1,uint param_2, Format_description_log_event *param_3) { uchar *puVar1; uchar uVar2; uint uVar3; long lVar4; User_var_log_event *pUVar5; ulong uVar6; User_var_log_event *pUVar7; Log_event::Log_event((Log_event *)this,param_1,param_3); *(int ***)this = &PTR_print_0045b880; pUVar5 = (User_var_log_event *)(ulong)param_2; lVar4 = (ulong)*(byte *)(*(long *)(param_3 + 0xd0) + 0xd) + (ulong)(byte)param_3[0xcd]; uVar6 = (ulong)*(uint *)(param_1 + (ulong)*(byte *)(*(long *)(param_3 + 0xd0) + 0xd) + (ulong)(byte)param_3[0xcd]); *(ulong *)(this + 0x98) = uVar6; if ((User_var_log_event *)(param_1 + (uVar6 - (long)param_1) + lVar4 + 4) <= pUVar5) { *(uchar **)(this + 0x90) = param_1 + lVar4 + 4; if (param_1 + uVar6 + lVar4 + 5 <= param_1 + (long)pUVar5) { uVar2 = param_1[uVar6 + lVar4 + 4]; this[0xb8] = (User_var_log_event)(uVar2 != '\0'); this[0xb9] = (User_var_log_event)0x0; if (uVar2 != '\0') { *(int4 *)(this + 0xb0) = 0; *(int4 *)(this + 0xb4) = my_charset_bin; *(int8 *)(this + 0xa0) = 0; *(int8 *)(this + 0xa8) = 0; return; } lVar4 = uVar6 + lVar4; puVar1 = param_1 + lVar4 + 0xe; *(uchar **)(this + 0xa0) = puVar1; if (puVar1 <= param_1 + (long)pUVar5) { *(uint *)(this + 0xb0) = (uint)param_1[lVar4 + 5]; *(int4 *)(this + 0xb4) = *(int4 *)(param_1 + lVar4 + 6); uVar3 = *(uint *)(param_1 + lVar4 + 10); *(ulong *)(this + 0xa8) = (ulong)uVar3; pUVar7 = (User_var_log_event *)(puVar1 + uVar3); if (pUVar7 + -(long)param_1 <= pUVar5) { if (*(User_var_log_event **)(this + 0x38) == pUVar7 + -(long)param_1) { return; } this[0xb9] = *pUVar7; return; } } } } *(int8 *)(this + 0x90) = 0; return; }
38,766
ELFIO::elf_header_impl<ELFIO::Elf64_Ehdr>::elf_header_impl(ELFIO::endianess_convertor*, unsigned char)
EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/include/elfio/elfio_header.hpp
elf_header_impl( endianess_convertor* convertor_, unsigned char encoding ) { convertor = convertor_; std::fill_n( reinterpret_cast<char*>( &header ), sizeof( header ), '\0' ); header.e_ident[EI_MAG0] = ELFMAG0; header.e_ident[EI_MAG1] = ELFMAG1; header.e_ident[EI_MAG2] = ELFMAG2; header.e_ident[EI_MAG3] = ELFMAG3; header.e_ident[EI_CLASS] = elf_header_impl_types<T>::file_class; header.e_ident[EI_DATA] = encoding; header.e_ident[EI_VERSION] = EV_CURRENT; header.e_version = (*convertor)( (Elf_Word)EV_CURRENT ); header.e_ehsize = ( sizeof( header ) ); header.e_ehsize = (*convertor)( header.e_ehsize ); header.e_shstrndx = (*convertor)( (Elf_Half)1 ); header.e_phentsize = sizeof( typename elf_header_impl_types<T>::Phdr_type ); header.e_shentsize = sizeof( typename elf_header_impl_types<T>::Shdr_type ); header.e_phentsize = (*convertor)( header.e_phentsize ); header.e_shentsize = (*convertor)( header.e_shentsize ); }
O0
cpp
ELFIO::elf_header_impl<ELFIO::Elf64_Ehdr>::elf_header_impl(ELFIO::endianess_convertor*, unsigned char): subq $0x18, %rsp movq %rdi, 0x10(%rsp) movq 0x10(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x18330 movq 0x8(%rsp), %rdi callq 0x151c0 addq $0x18, %rsp retq nopw (%rax,%rax)
_ZN5ELFIO15elf_header_implINS_10Elf32_EhdrEED0Ev: sub rsp, 18h mov [rsp+18h+var_8], rdi mov rdi, [rsp+18h+var_8] mov [rsp+18h+var_10], rdi call _ZN5ELFIO15elf_header_implINS_10Elf32_EhdrEED2Ev; ELFIO::elf_header_impl<ELFIO::Elf32_Ehdr>::~elf_header_impl() mov rdi, [rsp+18h+var_10]; void * call __ZdlPv; operator delete(void *) add rsp, 18h retn
void ELFIO::elf_header_impl<ELFIO::Elf32_Ehdr>::~elf_header_impl(ELFIO::elf_header *a1) { ELFIO::elf_header_impl<ELFIO::Elf32_Ehdr>::~elf_header_impl(a1); operator delete(a1); }
~elf_header_impl: SUB RSP,0x18 MOV qword ptr [RSP + 0x10],RDI MOV RDI,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x8],RDI CALL 0x00118330 MOV RDI,qword ptr [RSP + 0x8] CALL 0x001151c0 ADD RSP,0x18 RET
/* ELFIO::elf_header_impl<ELFIO::Elf32_Ehdr>::~elf_header_impl() */ void __thiscall ELFIO::elf_header_impl<ELFIO::Elf32_Ehdr>::~elf_header_impl (elf_header_impl<ELFIO::Elf32_Ehdr> *this) { ~elf_header_impl(this); operator_delete(this); return; }
38,767
ELFIO::elf_header_impl<ELFIO::Elf64_Ehdr>::elf_header_impl(ELFIO::endianess_convertor*, unsigned char)
EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/include/elfio/elfio_header.hpp
elf_header_impl( endianess_convertor* convertor_, unsigned char encoding ) { convertor = convertor_; std::fill_n( reinterpret_cast<char*>( &header ), sizeof( header ), '\0' ); header.e_ident[EI_MAG0] = ELFMAG0; header.e_ident[EI_MAG1] = ELFMAG1; header.e_ident[EI_MAG2] = ELFMAG2; header.e_ident[EI_MAG3] = ELFMAG3; header.e_ident[EI_CLASS] = elf_header_impl_types<T>::file_class; header.e_ident[EI_DATA] = encoding; header.e_ident[EI_VERSION] = EV_CURRENT; header.e_version = (*convertor)( (Elf_Word)EV_CURRENT ); header.e_ehsize = ( sizeof( header ) ); header.e_ehsize = (*convertor)( header.e_ehsize ); header.e_shstrndx = (*convertor)( (Elf_Half)1 ); header.e_phentsize = sizeof( typename elf_header_impl_types<T>::Phdr_type ); header.e_shentsize = sizeof( typename elf_header_impl_types<T>::Shdr_type ); header.e_phentsize = (*convertor)( header.e_phentsize ); header.e_shentsize = (*convertor)( header.e_shentsize ); }
O1
cpp
ELFIO::elf_header_impl<ELFIO::Elf64_Ehdr>::elf_header_impl(ELFIO::endianess_convertor*, unsigned char): jmp 0xb1a0 nop
_ZN5ELFIO15elf_header_implINS_10Elf32_EhdrEED0Ev: jmp __ZdlPv; operator delete(void *)
// attributes: thunk void ELFIO::elf_header_impl<ELFIO::Elf32_Ehdr>::~elf_header_impl(void *a1) { operator delete(a1); }
~elf_header_impl: JMP 0x0010b1a0
/* ELFIO::elf_header_impl<ELFIO::Elf32_Ehdr>::~elf_header_impl() */ void __thiscall ELFIO::elf_header_impl<ELFIO::Elf32_Ehdr>::~elf_header_impl (elf_header_impl<ELFIO::Elf32_Ehdr> *this) { (*(code *)PTR_operator_delete_0011c0d0)(); return; }
38,768
ELFIO::elf_header_impl<ELFIO::Elf64_Ehdr>::elf_header_impl(ELFIO::endianess_convertor*, unsigned char)
EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/include/elfio/elfio_header.hpp
elf_header_impl( endianess_convertor* convertor_, unsigned char encoding ) { convertor = convertor_; std::fill_n( reinterpret_cast<char*>( &header ), sizeof( header ), '\0' ); header.e_ident[EI_MAG0] = ELFMAG0; header.e_ident[EI_MAG1] = ELFMAG1; header.e_ident[EI_MAG2] = ELFMAG2; header.e_ident[EI_MAG3] = ELFMAG3; header.e_ident[EI_CLASS] = elf_header_impl_types<T>::file_class; header.e_ident[EI_DATA] = encoding; header.e_ident[EI_VERSION] = EV_CURRENT; header.e_version = (*convertor)( (Elf_Word)EV_CURRENT ); header.e_ehsize = ( sizeof( header ) ); header.e_ehsize = (*convertor)( header.e_ehsize ); header.e_shstrndx = (*convertor)( (Elf_Half)1 ); header.e_phentsize = sizeof( typename elf_header_impl_types<T>::Phdr_type ); header.e_shentsize = sizeof( typename elf_header_impl_types<T>::Shdr_type ); header.e_phentsize = (*convertor)( header.e_phentsize ); header.e_shentsize = (*convertor)( header.e_shentsize ); }
O2
cpp
ELFIO::elf_header_impl<ELFIO::Elf64_Ehdr>::elf_header_impl(ELFIO::endianess_convertor*, unsigned char): jmp 0xc180 nop
_ZN5ELFIO15elf_header_implINS_10Elf32_EhdrEED0Ev: jmp __ZdlPv; operator delete(void *)
// attributes: thunk void ELFIO::elf_header_impl<ELFIO::Elf32_Ehdr>::~elf_header_impl(void *a1) { operator delete(a1); }
~elf_header_impl: JMP 0x0010c180
/* ELFIO::elf_header_impl<ELFIO::Elf32_Ehdr>::~elf_header_impl() */ void __thiscall ELFIO::elf_header_impl<ELFIO::Elf32_Ehdr>::~elf_header_impl (elf_header_impl<ELFIO::Elf32_Ehdr> *this) { (*(code *)PTR_operator_delete_0011c0c0)(); return; }
38,769
ELFIO::elf_header_impl<ELFIO::Elf64_Ehdr>::elf_header_impl(ELFIO::endianess_convertor*, unsigned char)
EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/include/elfio/elfio_header.hpp
elf_header_impl( endianess_convertor* convertor_, unsigned char encoding ) { convertor = convertor_; std::fill_n( reinterpret_cast<char*>( &header ), sizeof( header ), '\0' ); header.e_ident[EI_MAG0] = ELFMAG0; header.e_ident[EI_MAG1] = ELFMAG1; header.e_ident[EI_MAG2] = ELFMAG2; header.e_ident[EI_MAG3] = ELFMAG3; header.e_ident[EI_CLASS] = elf_header_impl_types<T>::file_class; header.e_ident[EI_DATA] = encoding; header.e_ident[EI_VERSION] = EV_CURRENT; header.e_version = (*convertor)( (Elf_Word)EV_CURRENT ); header.e_ehsize = ( sizeof( header ) ); header.e_ehsize = (*convertor)( header.e_ehsize ); header.e_shstrndx = (*convertor)( (Elf_Half)1 ); header.e_phentsize = sizeof( typename elf_header_impl_types<T>::Phdr_type ); header.e_shentsize = sizeof( typename elf_header_impl_types<T>::Shdr_type ); header.e_phentsize = (*convertor)( header.e_phentsize ); header.e_shentsize = (*convertor)( header.e_shentsize ); }
O3
cpp
ELFIO::elf_header_impl<ELFIO::Elf64_Ehdr>::elf_header_impl(ELFIO::endianess_convertor*, unsigned char): jmp 0xb1a0 nop
_ZN5ELFIO15elf_header_implINS_10Elf64_EhdrEED0Ev: jmp __ZdlPv; operator delete(void *)
// attributes: thunk void ELFIO::elf_header_impl<ELFIO::Elf64_Ehdr>::~elf_header_impl(void *a1) { operator delete(a1); }
~elf_header_impl: JMP 0x0010b1a0
/* ELFIO::elf_header_impl<ELFIO::Elf64_Ehdr>::~elf_header_impl() */ void __thiscall ELFIO::elf_header_impl<ELFIO::Elf64_Ehdr>::~elf_header_impl (elf_header_impl<ELFIO::Elf64_Ehdr> *this) { (*(code *)PTR_operator_delete_0011c0d0)(); return; }
38,770
google::protobuf::io::IstreamInputStream::~IstreamInputStream()
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/io/zero_copy_stream_impl.h
class PROTOBUF_EXPORT IstreamInputStream PROTOBUF_FUTURE_FINAL : public ZeroCopyInputStream { public: // Creates a stream that reads from the given C++ istream. // If a block_size is given, it specifies the number of bytes that // should be read and returned with each call to Next(). Otherwise, // a reasonable default is used. explicit IstreamInputStream(std::istream* stream, int block_size = -1); // implements ZeroCopyInputStream ---------------------------------- bool Next(const void** data, int* size) override; void BackUp(int count) override; bool Skip(int count) override; int64_t ByteCount() const override; private: class PROTOBUF_EXPORT CopyingIstreamInputStream PROTOBUF_FUTURE_FINAL : public CopyingInputStream { public: CopyingIstreamInputStream(std::istream* input); ~CopyingIstreamInputStream() override; // implements CopyingInputStream --------------------------------- int Read(void* buffer, int size) override; // (We use the default implementation of Skip().) private: // The stream. std::istream* input_; GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(CopyingIstreamInputStream); }
O0
c
google::protobuf::io::IstreamInputStream::~IstreamInputStream(): subq $0x18, %rsp movq %rdi, 0x10(%rsp) movq 0x10(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x1b1840 movq 0x8(%rsp), %rdi callq 0x13400 addq $0x18, %rsp retq nopw (%rax,%rax)
_ZN6google8protobuf2io18IstreamInputStreamD0Ev: sub rsp, 18h mov [rsp+18h+var_8], rdi mov rdi, [rsp+18h+var_8]; this mov [rsp+18h+var_10], rdi call _ZN6google8protobuf2io18IstreamInputStreamD2Ev; google::protobuf::io::IstreamInputStream::~IstreamInputStream() mov rdi, [rsp+18h+var_10]; void * call __ZdlPv; operator delete(void *) add rsp, 18h retn
void google::protobuf::io::IstreamInputStream::~IstreamInputStream( google::protobuf::io::IstreamInputStream *this) { google::protobuf::io::IstreamInputStream::~IstreamInputStream(this); operator delete(this); }
38,771
google::protobuf::io::IstreamInputStream::~IstreamInputStream()
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/io/zero_copy_stream_impl.h
class PROTOBUF_EXPORT IstreamInputStream PROTOBUF_FUTURE_FINAL : public ZeroCopyInputStream { public: // Creates a stream that reads from the given C++ istream. // If a block_size is given, it specifies the number of bytes that // should be read and returned with each call to Next(). Otherwise, // a reasonable default is used. explicit IstreamInputStream(std::istream* stream, int block_size = -1); // implements ZeroCopyInputStream ---------------------------------- bool Next(const void** data, int* size) override; void BackUp(int count) override; bool Skip(int count) override; int64_t ByteCount() const override; private: class PROTOBUF_EXPORT CopyingIstreamInputStream PROTOBUF_FUTURE_FINAL : public CopyingInputStream { public: CopyingIstreamInputStream(std::istream* input); ~CopyingIstreamInputStream() override; // implements CopyingInputStream --------------------------------- int Read(void* buffer, int size) override; // (We use the default implementation of Skip().) private: // The stream. std::istream* input_; GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(CopyingIstreamInputStream); }
O3
c
google::protobuf::io::IstreamInputStream::~IstreamInputStream(): pushq %rbx movq %rdi, %rbx leaq 0x558eb(%rip), %rax # 0x101670 movq %rax, (%rdi) addq $0x18, %rdi callq 0x9d2a4 movq %rbx, %rdi popq %rbx jmp 0xf330
_ZN6google8protobuf2io18IstreamInputStreamD0Ev: push rbx mov rbx, rdi lea rax, off_101670 mov [rdi], rax add rdi, 18h; this call _ZN6google8protobuf2io25CopyingInputStreamAdaptorD2Ev; google::protobuf::io::CopyingInputStreamAdaptor::~CopyingInputStreamAdaptor() mov rdi, rbx; void * pop rbx jmp __ZdlPv; operator delete(void *)
void google::protobuf::io::IstreamInputStream::~IstreamInputStream( google::protobuf::io::IstreamInputStream *this) { *(_QWORD *)this = off_101670; google::protobuf::io::CopyingInputStreamAdaptor::~CopyingInputStreamAdaptor((google::protobuf::io::IstreamInputStream *)((char *)this + 24)); operator delete(this); }
~IstreamInputStream: PUSH RBX MOV RBX,RDI LEA RAX,[0x201670] MOV qword ptr [RDI],RAX ADD RDI,0x18 CALL 0x0019d2a4 MOV RDI,RBX POP RBX JMP 0x0010f330
/* google::protobuf::io::IstreamInputStream::~IstreamInputStream() */ void __thiscall google::protobuf::io::IstreamInputStream::~IstreamInputStream(IstreamInputStream *this) { *(int ***)this = &PTR__IstreamInputStream_00201670; CopyingInputStreamAdaptor::~CopyingInputStreamAdaptor((CopyingInputStreamAdaptor *)(this + 0x18)); operator_delete(this); return; }
38,772
read_next_extent
eloqsql/storage/maria/ma_blockrec.c
static uchar *read_next_extent(MARIA_HA *info, MARIA_EXTENT_CURSOR *extent, uchar **end_of_data) { MARIA_SHARE *share= info->s; uchar *buff, *data; MARIA_PINNED_PAGE page_link; enum pagecache_page_lock lock; DBUG_ENTER("read_next_extent"); if (!extent->page_count) { uint page_count; if (!--extent->extent_count) goto crashed; extent->extent+= ROW_EXTENT_SIZE; extent->page= page_korr(extent->extent); page_count= (uint2korr(extent->extent+ROW_EXTENT_PAGE_SIZE) & ~START_EXTENT_BIT); if (!page_count) goto crashed; extent->tail= page_count & TAIL_BIT; if (extent->tail) extent->tail_row_nr= page_count & ~TAIL_BIT; else extent->page_count= page_count; DBUG_PRINT("info",("New extent. Page: %lu page_count: %u tail_flag: %d", (ulong) extent->page, extent->page_count, extent->tail != 0)); } extent->first_extent= 0; lock= PAGECACHE_LOCK_LEFT_UNLOCKED; if (extent->tail) lock= extent->lock_for_tail_pages; buff= pagecache_read(share->pagecache, &info->dfile, extent->page, 0, info->buff, share->page_type, lock, &page_link.link); if (lock != PAGECACHE_LOCK_LEFT_UNLOCKED) { /* Read during UNDO */ page_link.unlock= PAGECACHE_LOCK_WRITE_UNLOCK; page_link.changed= buff != 0; push_dynamic(&info->pinned_pages, (void*) &page_link); } if (!buff) { /* check if we tried to read over end of file (ie: bad data in record) */ if ((extent->page + 1) * share->block_size > share->state.state.data_file_length) goto crashed; DBUG_RETURN(0); } if (!extent->tail) { /* Full data page */ if ((buff[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK) != BLOB_PAGE) goto crashed; extent->page++; /* point to next page */ extent->page_count--; *end_of_data= buff + share->block_size - PAGE_SUFFIX_SIZE; info->cur_row.full_page_count++; /* For maria_chk */ DBUG_RETURN(extent->data_start= buff + FULL_PAGE_HEADER_SIZE(share)); } /* Found tail */ if ((buff[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK) != TAIL_PAGE) goto crashed; *(extent->tail_positions++)= ma_recordpos(extent->page, extent->tail_row_nr); info->cur_row.tail_count++; /* For maria_chk */ if (!(data= get_record_position(share, buff, extent->tail_row_nr, end_of_data))) goto crashed; extent->data_start= data; extent->page_count= 0; /* No more data in extent */ DBUG_RETURN(data); crashed: DBUG_ASSERT(!maria_assert_if_crashed_table); _ma_set_fatal_error(info, HA_ERR_WRONG_IN_RECORD); DBUG_PRINT("error", ("wrong extent information")); DBUG_RETURN(0); }
O0
c
read_next_extent: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x28(%rbp) movq -0x18(%rbp), %rax cmpl $0x0, 0x20(%rax) jne 0x78313 movq -0x18(%rbp), %rcx movl 0x28(%rcx), %eax addl $-0x1, %eax movl %eax, 0x28(%rcx) cmpl $0x0, %eax jne 0x78294 jmp 0x78526 movq -0x18(%rbp), %rax movq (%rax), %rcx addq $0x7, %rcx movq %rcx, (%rax) movq -0x18(%rbp), %rax movq (%rax), %rdi callq 0x7a040 movq %rax, %rcx movq -0x18(%rbp), %rax movq %rcx, 0x18(%rax) movq -0x18(%rbp), %rax movq (%rax), %rax movzwl 0x5(%rax), %eax andl $0xffffbfff, %eax # imm = 0xFFFFBFFF movl %eax, -0x58(%rbp) cmpl $0x0, -0x58(%rbp) jne 0x782d7 jmp 0x78526 movl -0x58(%rbp), %ecx andl $0x8000, %ecx # imm = 0x8000 movq -0x18(%rbp), %rax movl %ecx, 0x2c(%rax) movq -0x18(%rbp), %rax cmpl $0x0, 0x2c(%rax) je 0x78303 movl -0x58(%rbp), %ecx andl $0xffff7fff, %ecx # imm = 0xFFFF7FFF movq -0x18(%rbp), %rax movl %ecx, 0x30(%rax) jmp 0x7830d movl -0x58(%rbp), %ecx movq -0x18(%rbp), %rax movl %ecx, 0x20(%rax) jmp 0x7830f jmp 0x78311 jmp 0x78313 movq -0x18(%rbp), %rax movb $0x0, 0x34(%rax) movl $0x0, -0x54(%rbp) movq -0x18(%rbp), %rax cmpl $0x0, 0x2c(%rax) je 0x78336 movq -0x18(%rbp), %rax movl 0x24(%rax), %eax movl %eax, -0x54(%rbp) movq -0x28(%rbp), %rax movq 0x600(%rax), %rdi movq -0x10(%rbp), %rsi addq $0x470, %rsi # imm = 0x470 movq -0x18(%rbp), %rax movq 0x18(%rax), %rdx movq -0x10(%rbp), %rax movq 0x378(%rax), %r8 movq -0x28(%rbp), %rax movl 0x7d4(%rax), %r9d movl -0x54(%rbp), %r10d leaq -0x50(%rbp), %rax xorl %ecx, %ecx movl %r10d, (%rsp) movq %rax, 0x8(%rsp) callq 0x2d970 movq %rax, -0x30(%rbp) cmpl $0x0, -0x54(%rbp) je 0x783b7 movl $0x6, -0x48(%rbp) cmpq $0x0, -0x30(%rbp) setne %al andb $0x1, %al movzbl %al, %eax movb %al, -0x40(%rbp) movq -0x10(%rbp), %rdi addq $0x2e8, %rdi # imm = 0x2E8 leaq -0x50(%rbp), %rsi callq 0xda940 cmpq $0x0, -0x30(%rbp) jne 0x783f6 movq -0x18(%rbp), %rax movq 0x18(%rax), %rax addq $0x1, %rax movq -0x28(%rbp), %rcx movl 0x7bc(%rcx), %ecx imulq %rcx, %rax movq -0x28(%rbp), %rcx cmpq 0x40(%rcx), %rax jbe 0x783e7 jmp 0x78526 jmp 0x783e9 movq $0x0, -0x8(%rbp) jmp 0x78544 movq -0x18(%rbp), %rax cmpl $0x0, 0x2c(%rax) jne 0x7848c movq -0x30(%rbp), %rax movzbl 0x7(%rax), %eax andl $0x7, %eax cmpl $0x3, %eax je 0x78419 jmp 0x78526 movq -0x18(%rbp), %rax movq 0x18(%rax), %rcx addq $0x1, %rcx movq %rcx, 0x18(%rax) movq -0x18(%rbp), %rax movl 0x20(%rax), %ecx addl $-0x1, %ecx movl %ecx, 0x20(%rax) movq -0x30(%rbp), %rcx movq -0x28(%rbp), %rax movl 0x7bc(%rax), %eax addq %rax, %rcx addq $-0x4, %rcx movq -0x20(%rbp), %rax movq %rcx, (%rax) movq -0x10(%rbp), %rax movl 0x130(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x130(%rax) movq -0x30(%rbp), %rax movq -0x28(%rbp), %rcx movl 0xc18(%rcx), %ecx addl $0x8, %ecx movl %ecx, %ecx addq %rcx, %rax movq -0x18(%rbp), %rcx movq %rax, 0x8(%rcx) movq %rax, -0x8(%rbp) jmp 0x78544 movq -0x30(%rbp), %rax movzbl 0x7(%rax), %eax andl $0x7, %eax cmpl $0x2, %eax je 0x784a1 jmp 0x78526 movq -0x18(%rbp), %rax movq 0x18(%rax), %rdi movq -0x18(%rbp), %rax movl 0x30(%rax), %esi callq 0x79430 movq %rax, %rcx movq -0x18(%rbp), %rdx movq 0x10(%rdx), %rax movq %rax, %rsi addq $0x8, %rsi movq %rsi, 0x10(%rdx) movq %rcx, (%rax) movq -0x10(%rbp), %rax movl 0x134(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x134(%rax) movq -0x28(%rbp), %rdi movq -0x30(%rbp), %rsi movq -0x18(%rbp), %rax movl 0x30(%rax), %edx movq -0x20(%rbp), %rcx callq 0x78670 movq %rax, -0x38(%rbp) cmpq $0x0, %rax jne 0x78505 jmp 0x78526 movq -0x38(%rbp), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x18(%rbp), %rax movl $0x0, 0x20(%rax) movq -0x38(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x78544 jmp 0x78528 jmp 0x7852a movq -0x10(%rbp), %rdi movl $0x7f, %esi callq 0x338b0 jmp 0x7853a jmp 0x7853c movq $0x0, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x70, %rsp popq %rbp retq nop
read_next_extent: push rbp mov rbp, rsp sub rsp, 70h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_28], rax mov rax, [rbp+var_18] cmp dword ptr [rax+20h], 0 jnz loc_78313 mov rcx, [rbp+var_18] mov eax, [rcx+28h] add eax, 0FFFFFFFFh mov [rcx+28h], eax cmp eax, 0 jnz short loc_78294 jmp loc_78526 loc_78294: mov rax, [rbp+var_18] mov rcx, [rax] add rcx, 7 mov [rax], rcx mov rax, [rbp+var_18] mov rdi, [rax] call uint5korr_1 mov rcx, rax mov rax, [rbp+var_18] mov [rax+18h], rcx mov rax, [rbp+var_18] mov rax, [rax] movzx eax, word ptr [rax+5] and eax, 0FFFFBFFFh mov [rbp+var_58], eax cmp [rbp+var_58], 0 jnz short loc_782D7 jmp loc_78526 loc_782D7: mov ecx, [rbp+var_58] and ecx, 8000h mov rax, [rbp+var_18] mov [rax+2Ch], ecx mov rax, [rbp+var_18] cmp dword ptr [rax+2Ch], 0 jz short loc_78303 mov ecx, [rbp+var_58] and ecx, 0FFFF7FFFh mov rax, [rbp+var_18] mov [rax+30h], ecx jmp short loc_7830D loc_78303: mov ecx, [rbp+var_58] mov rax, [rbp+var_18] mov [rax+20h], ecx loc_7830D: jmp short $+2 loc_7830F: jmp short $+2 loc_78311: jmp short $+2 loc_78313: mov rax, [rbp+var_18] mov byte ptr [rax+34h], 0 mov [rbp+var_54], 0 mov rax, [rbp+var_18] cmp dword ptr [rax+2Ch], 0 jz short loc_78336 mov rax, [rbp+var_18] mov eax, [rax+24h] mov [rbp+var_54], eax loc_78336: mov rax, [rbp+var_28] mov rdi, [rax+600h] mov rsi, [rbp+var_10] add rsi, 470h mov rax, [rbp+var_18] mov rdx, [rax+18h] mov rax, [rbp+var_10] mov r8, [rax+378h] mov rax, [rbp+var_28] mov r9d, [rax+7D4h] mov r10d, [rbp+var_54] lea rax, [rbp+var_50] xor ecx, ecx mov [rsp+70h+var_70], r10d mov [rsp+70h+var_68], rax call pagecache_read mov [rbp+var_30], rax cmp [rbp+var_54], 0 jz short loc_783B7 mov [rbp+var_48], 6 cmp [rbp+var_30], 0 setnz al and al, 1 movzx eax, al mov [rbp+var_40], al mov rdi, [rbp+var_10] add rdi, 2E8h lea rsi, [rbp+var_50] call insert_dynamic loc_783B7: cmp [rbp+var_30], 0 jnz short loc_783F6 mov rax, [rbp+var_18] mov rax, [rax+18h] add rax, 1 mov rcx, [rbp+var_28] mov ecx, [rcx+7BCh] imul rax, rcx mov rcx, [rbp+var_28] cmp rax, [rcx+40h] jbe short loc_783E7 jmp loc_78526 loc_783E7: jmp short $+2 loc_783E9: mov [rbp+var_8], 0 jmp loc_78544 loc_783F6: mov rax, [rbp+var_18] cmp dword ptr [rax+2Ch], 0 jnz loc_7848C mov rax, [rbp+var_30] movzx eax, byte ptr [rax+7] and eax, 7 cmp eax, 3 jz short loc_78419 jmp loc_78526 loc_78419: mov rax, [rbp+var_18] mov rcx, [rax+18h] add rcx, 1 mov [rax+18h], rcx mov rax, [rbp+var_18] mov ecx, [rax+20h] add ecx, 0FFFFFFFFh mov [rax+20h], ecx mov rcx, [rbp+var_30] mov rax, [rbp+var_28] mov eax, [rax+7BCh] add rcx, rax add rcx, 0FFFFFFFFFFFFFFFCh mov rax, [rbp+var_20] mov [rax], rcx mov rax, [rbp+var_10] mov ecx, [rax+130h] add ecx, 1 mov [rax+130h], ecx mov rax, [rbp+var_30] mov rcx, [rbp+var_28] mov ecx, [rcx+0C18h] add ecx, 8 mov ecx, ecx add rax, rcx mov rcx, [rbp+var_18] mov [rcx+8], rax mov [rbp+var_8], rax jmp loc_78544 loc_7848C: mov rax, [rbp+var_30] movzx eax, byte ptr [rax+7] and eax, 7 cmp eax, 2 jz short loc_784A1 jmp loc_78526 loc_784A1: mov rax, [rbp+var_18] mov rdi, [rax+18h] mov rax, [rbp+var_18] mov esi, [rax+30h] call ma_recordpos mov rcx, rax mov rdx, [rbp+var_18] mov rax, [rdx+10h] mov rsi, rax add rsi, 8 mov [rdx+10h], rsi mov [rax], rcx mov rax, [rbp+var_10] mov ecx, [rax+134h] add ecx, 1 mov [rax+134h], ecx mov rdi, [rbp+var_28] mov rsi, [rbp+var_30] mov rax, [rbp+var_18] mov edx, [rax+30h] mov rcx, [rbp+var_20] call get_record_position mov [rbp+var_38], rax cmp rax, 0 jnz short loc_78505 jmp short loc_78526 loc_78505: mov rcx, [rbp+var_38] mov rax, [rbp+var_18] mov [rax+8], rcx mov rax, [rbp+var_18] mov dword ptr [rax+20h], 0 mov rax, [rbp+var_38] mov [rbp+var_8], rax jmp short loc_78544 loc_78526: jmp short $+2 loc_78528: jmp short $+2 loc_7852A: mov rdi, [rbp+var_10] mov esi, 7Fh call _ma_set_fatal_error jmp short $+2 loc_7853A: jmp short $+2 loc_7853C: mov [rbp+var_8], 0 loc_78544: mov rax, [rbp+var_8] add rsp, 70h pop rbp retn
long long read_next_extent(_DWORD *a1, long long a2, long long a3, long long a4, long long a5, int a6) { long long v6; // rcx int v7; // eax long long v8; // rax long long v9; // rcx long long *v10; // rax int v12; // [rsp+18h] [rbp-58h] unsigned int v13; // [rsp+1Ch] [rbp-54h] char v14[8]; // [rsp+20h] [rbp-50h] BYREF int v15; // [rsp+28h] [rbp-48h] bool v16; // [rsp+30h] [rbp-40h] long long record_position; // [rsp+38h] [rbp-38h] long long v18; // [rsp+40h] [rbp-30h] long long v19; // [rsp+48h] [rbp-28h] _QWORD *v20; // [rsp+50h] [rbp-20h] long long v21; // [rsp+58h] [rbp-18h] _DWORD *v22; // [rsp+60h] [rbp-10h] v22 = a1; v21 = a2; v20 = (_QWORD *)a3; v19 = *(_QWORD *)a1; if ( !*(_DWORD *)(a2 + 32) ) { v6 = v21; v7 = *(_DWORD *)(v21 + 40) - 1; *(_DWORD *)(v21 + 40) = v7; if ( !v7 ) goto LABEL_20; *(_QWORD *)v21 += 7LL; v6 = uint5korr_1(*(_QWORD *)v21); *(_QWORD *)(v21 + 24) = v6; v12 = *(_WORD *)(*(_QWORD *)v21 + 5LL) & 0xBFFF; if ( (*(_WORD *)(*(_QWORD *)v21 + 5LL) & 0xBFFF) == 0 ) goto LABEL_20; *(_DWORD *)(v21 + 44) = *(_WORD *)(*(_QWORD *)v21 + 5LL) & 0x8000; if ( *(_DWORD *)(v21 + 44) ) *(_DWORD *)(v21 + 48) = v12 & 0xFFFF7FFF; else *(_DWORD *)(v21 + 32) = v12; } *(_BYTE *)(v21 + 52) = 0; v13 = 0; if ( *(_DWORD *)(v21 + 44) ) v13 = *(_DWORD *)(v21 + 36); v18 = pagecache_read( *(_QWORD **)(v19 + 1536), (long long)(v22 + 284), *(_QWORD *)(v21 + 24), 0, *((_QWORD *)v22 + 111), *(_DWORD *)(v19 + 2004), v13, v14); if ( v13 ) { v15 = 6; v16 = v18 != 0; insert_dynamic(v22 + 186, v14); } if ( v18 ) { if ( *(_DWORD *)(v21 + 44) ) { if ( (*(_BYTE *)(v18 + 7) & 7) == 2 ) { v9 = ma_recordpos(*(_QWORD *)(v21 + 24), *(unsigned int *)(v21 + 48)); v10 = *(long long **)(v21 + 16); *(_QWORD *)(v21 + 16) = v10 + 1; *v10 = v9; ++v22[77]; record_position = get_record_position(v19, v18, *(unsigned int *)(v21 + 48), v20); if ( record_position ) { *(_QWORD *)(v21 + 8) = record_position; *(_DWORD *)(v21 + 32) = 0; return record_position; } } } else if ( (*(_BYTE *)(v18 + 7) & 7) == 3 ) { ++*(_QWORD *)(v21 + 24); --*(_DWORD *)(v21 + 32); *v20 = *(unsigned int *)(v19 + 1980) + v18 - 4; ++v22[76]; v8 = (unsigned int)(*(_DWORD *)(v19 + 3096) + 8) + v18; *(_QWORD *)(v21 + 8) = v8; return v8; } LABEL_20: ma_set_fatal_error(v22, 127, a3, v6, a5, a6); return 0LL; } v6 = v19; if ( (unsigned long long)*(unsigned int *)(v19 + 1980) * (*(_QWORD *)(v21 + 24) + 1LL) > *(_QWORD *)(v19 + 64) ) goto LABEL_20; return 0LL; }
read_next_extent: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x18] CMP dword ptr [RAX + 0x20],0x0 JNZ 0x00178313 MOV RCX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RCX + 0x28] ADD EAX,-0x1 MOV dword ptr [RCX + 0x28],EAX CMP EAX,0x0 JNZ 0x00178294 JMP 0x00178526 LAB_00178294: MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RAX] ADD RCX,0x7 MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x18] MOV RDI,qword ptr [RAX] CALL 0x0017a040 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x18],RCX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOVZX EAX,word ptr [RAX + 0x5] AND EAX,0xffffbfff MOV dword ptr [RBP + -0x58],EAX CMP dword ptr [RBP + -0x58],0x0 JNZ 0x001782d7 JMP 0x00178526 LAB_001782d7: MOV ECX,dword ptr [RBP + -0x58] AND ECX,0x8000 MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x2c],ECX MOV RAX,qword ptr [RBP + -0x18] CMP dword ptr [RAX + 0x2c],0x0 JZ 0x00178303 MOV ECX,dword ptr [RBP + -0x58] AND ECX,0xffff7fff MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x30],ECX JMP 0x0017830d LAB_00178303: MOV ECX,dword ptr [RBP + -0x58] MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x20],ECX LAB_0017830d: JMP 0x0017830f LAB_0017830f: JMP 0x00178311 LAB_00178311: JMP 0x00178313 LAB_00178313: MOV RAX,qword ptr [RBP + -0x18] MOV byte ptr [RAX + 0x34],0x0 MOV dword ptr [RBP + -0x54],0x0 MOV RAX,qword ptr [RBP + -0x18] CMP dword ptr [RAX + 0x2c],0x0 JZ 0x00178336 MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0x24] MOV dword ptr [RBP + -0x54],EAX LAB_00178336: MOV RAX,qword ptr [RBP + -0x28] MOV RDI,qword ptr [RAX + 0x600] MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0x470 MOV RAX,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RAX + 0x18] MOV RAX,qword ptr [RBP + -0x10] MOV R8,qword ptr [RAX + 0x378] MOV RAX,qword ptr [RBP + -0x28] MOV R9D,dword ptr [RAX + 0x7d4] MOV R10D,dword ptr [RBP + -0x54] LEA RAX,[RBP + -0x50] XOR ECX,ECX MOV dword ptr [RSP],R10D MOV qword ptr [RSP + 0x8],RAX CALL 0x0012d970 MOV qword ptr [RBP + -0x30],RAX CMP dword ptr [RBP + -0x54],0x0 JZ 0x001783b7 MOV dword ptr [RBP + -0x48],0x6 CMP qword ptr [RBP + -0x30],0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL MOV byte ptr [RBP + -0x40],AL MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x2e8 LEA RSI,[RBP + -0x50] CALL 0x001da940 LAB_001783b7: CMP qword ptr [RBP + -0x30],0x0 JNZ 0x001783f6 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x18] ADD RAX,0x1 MOV RCX,qword ptr [RBP + -0x28] MOV ECX,dword ptr [RCX + 0x7bc] IMUL RAX,RCX MOV RCX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RCX + 0x40] JBE 0x001783e7 JMP 0x00178526 LAB_001783e7: JMP 0x001783e9 LAB_001783e9: MOV qword ptr [RBP + -0x8],0x0 JMP 0x00178544 LAB_001783f6: MOV RAX,qword ptr [RBP + -0x18] CMP dword ptr [RAX + 0x2c],0x0 JNZ 0x0017848c MOV RAX,qword ptr [RBP + -0x30] MOVZX EAX,byte ptr [RAX + 0x7] AND EAX,0x7 CMP EAX,0x3 JZ 0x00178419 JMP 0x00178526 LAB_00178419: MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RAX + 0x18] ADD RCX,0x1 MOV qword ptr [RAX + 0x18],RCX MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RAX + 0x20] ADD ECX,-0x1 MOV dword ptr [RAX + 0x20],ECX MOV RCX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x28] MOV EAX,dword ptr [RAX + 0x7bc] ADD RCX,RAX ADD RCX,-0x4 MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RAX + 0x130] ADD ECX,0x1 MOV dword ptr [RAX + 0x130],ECX MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x28] MOV ECX,dword ptr [RCX + 0xc18] ADD ECX,0x8 MOV ECX,ECX ADD RAX,RCX MOV RCX,qword ptr [RBP + -0x18] MOV qword ptr [RCX + 0x8],RAX MOV qword ptr [RBP + -0x8],RAX JMP 0x00178544 LAB_0017848c: MOV RAX,qword ptr [RBP + -0x30] MOVZX EAX,byte ptr [RAX + 0x7] AND EAX,0x7 CMP EAX,0x2 JZ 0x001784a1 JMP 0x00178526 LAB_001784a1: MOV RAX,qword ptr [RBP + -0x18] MOV RDI,qword ptr [RAX + 0x18] MOV RAX,qword ptr [RBP + -0x18] MOV ESI,dword ptr [RAX + 0x30] CALL 0x00179430 MOV RCX,RAX MOV RDX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RDX + 0x10] MOV RSI,RAX ADD RSI,0x8 MOV qword ptr [RDX + 0x10],RSI MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RAX + 0x134] ADD ECX,0x1 MOV dword ptr [RAX + 0x134],ECX MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x18] MOV EDX,dword ptr [RAX + 0x30] MOV RCX,qword ptr [RBP + -0x20] CALL 0x00178670 MOV qword ptr [RBP + -0x38],RAX CMP RAX,0x0 JNZ 0x00178505 JMP 0x00178526 LAB_00178505: MOV RCX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x20],0x0 MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x8],RAX JMP 0x00178544 LAB_00178526: JMP 0x00178528 LAB_00178528: JMP 0x0017852a LAB_0017852a: MOV RDI,qword ptr [RBP + -0x10] MOV ESI,0x7f CALL 0x001338b0 JMP 0x0017853a LAB_0017853a: JMP 0x0017853c LAB_0017853c: MOV qword ptr [RBP + -0x8],0x0 LAB_00178544: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x70 POP RBP RET
long read_next_extent(long *param_1,long *param_2,long *param_3) { int8 *puVar1; int iVar2; uint uVar3; long lVar4; ulong uVar5; int8 uVar6; int local_5c; int1 local_58 [8]; int4 local_50; int1 local_48; int8 local_40; long local_38; long local_30; long *local_28; long *local_20; long *local_18; local_30 = *param_1; local_28 = param_3; local_20 = param_2; local_18 = param_1; if ((int)param_2[4] == 0) { iVar2 = (int)param_2[5] + -1; *(int *)(param_2 + 5) = iVar2; if (iVar2 == 0) goto LAB_00178526; *param_2 = *param_2 + 7; lVar4 = uint5korr(*param_2); local_20[3] = lVar4; uVar3 = (uint)*(ushort *)(*local_20 + 5); if ((*(ushort *)(*local_20 + 5) & 0xbfff) == 0) goto LAB_00178526; *(uint *)((long)local_20 + 0x2c) = uVar3 & 0x8000; if (*(int *)((long)local_20 + 0x2c) == 0) { *(uint *)(local_20 + 4) = uVar3 & 0xffffbfff; } else { *(uint *)(local_20 + 6) = uVar3 & 0xffff3fff; } } *(int1 *)((long)local_20 + 0x34) = 0; local_5c = 0; if (*(int *)((long)local_20 + 0x2c) != 0) { local_5c = *(int *)((long)local_20 + 0x24); } local_38 = pagecache_read(*(int8 *)(local_30 + 0x600),local_18 + 0x8e,local_20[3],0, local_18[0x6f],*(int4 *)(local_30 + 0x7d4),local_5c,local_58); if (local_5c != 0) { local_50 = 6; local_48 = local_38 != 0; insert_dynamic(local_18 + 0x5d,local_58); } if (local_38 == 0) { uVar5 = (local_20[3] + 1) * (ulong)*(uint *)(local_30 + 0x7bc); if (uVar5 < *(ulong *)(local_30 + 0x40) || uVar5 - *(ulong *)(local_30 + 0x40) == 0) { return 0; } } else if (*(int *)((long)local_20 + 0x2c) == 0) { if ((*(byte *)(local_38 + 7) & 7) == 3) { local_20[3] = local_20[3] + 1; *(int *)(local_20 + 4) = (int)local_20[4] + -1; *local_28 = local_38 + (ulong)*(uint *)(local_30 + 0x7bc) + -4; *(int *)(local_18 + 0x26) = (int)local_18[0x26] + 1; local_38 = local_38 + (ulong)(*(int *)(local_30 + 0xc18) + 8); local_20[1] = local_38; return local_38; } } else if ((*(byte *)(local_38 + 7) & 7) == 2) { uVar6 = ma_recordpos(local_20[3],(int)local_20[6]); puVar1 = (int8 *)local_20[2]; local_20[2] = (long)(puVar1 + 1); *puVar1 = uVar6; *(int *)((long)local_18 + 0x134) = *(int *)((long)local_18 + 0x134) + 1; lVar4 = get_record_position(local_30,local_38,(int)local_20[6],local_28); if (lVar4 != 0) { local_20[1] = lVar4; *(int4 *)(local_20 + 4) = 0; return lVar4; } local_40 = 0; } LAB_00178526: _ma_set_fatal_error(local_18,0x7f); return 0; }
38,773
sqr_fp6
corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/fp12_tower.c
static void sqr_fp6(vec384fp6 ret, const vec384fp6 a) { vec768x s0, m01, m12, s2, rx; sqr_fp2x2(s0, a[0]); mul_fp2x2(m01, a[0], a[1]); add_fp2x2(m01, m01, m01); mul_fp2x2(m12, a[1], a[2]); add_fp2x2(m12, m12, m12); sqr_fp2x2(s2, a[2]); /* ret[2] = (a0 + a1 + a2)^2 - a0^2 - a2^2 - 2*(a0*a1) - 2*(a1*a2) = a1^2 + 2*(a0*a2) */ add_fp2(ret[2], a[2], a[1]); add_fp2(ret[2], ret[2], a[0]); sqr_fp2x2(rx, ret[2]); sub_fp2x2(rx, rx, s0); sub_fp2x2(rx, rx, s2); sub_fp2x2(rx, rx, m01); sub_fp2x2(rx, rx, m12); redc_fp2x2(ret[2], rx); /* ret[0] = a0^2 + 2*(a1*a2)*(u+1) */ mul_by_u_plus_1_fp2x2(rx, m12); add_fp2x2(rx, rx, s0); redc_fp2x2(ret[0], rx); /* ret[1] = a2^2*(u+1) + 2*(a0*a1) */ mul_by_u_plus_1_fp2x2(rx, s2); add_fp2x2(rx, rx, m01); redc_fp2x2(ret[1], rx); }
O0
c
sqr_fp6: pushq %rbp movq %rsp, %rbp subq $0x3d0, %rsp # imm = 0x3D0 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) leaq -0xd0(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0x38830 leaq -0x190(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x10(%rbp), %rdx addq $0x60, %rdx callq 0x38580 leaq -0x190(%rbp), %rdi leaq -0x190(%rbp), %rsi leaq -0x190(%rbp), %rdx callq 0x38680 leaq -0x250(%rbp), %rdi movq -0x10(%rbp), %rsi addq $0x60, %rsi movq -0x10(%rbp), %rdx addq $0xc0, %rdx callq 0x38580 leaq -0x250(%rbp), %rdi leaq -0x250(%rbp), %rsi leaq -0x250(%rbp), %rdx callq 0x38680 leaq -0x310(%rbp), %rdi movq -0x10(%rbp), %rsi addq $0xc0, %rsi callq 0x38830 movq -0x8(%rbp), %rdi addq $0xc0, %rdi movq -0x10(%rbp), %rsi addq $0xc0, %rsi movq -0x10(%rbp), %rdx addq $0x60, %rdx callq 0x31000 movq -0x8(%rbp), %rdi addq $0xc0, %rdi movq -0x8(%rbp), %rsi addq $0xc0, %rsi movq -0x10(%rbp), %rdx callq 0x31000 leaq -0x3d0(%rbp), %rdi movq -0x8(%rbp), %rsi addq $0xc0, %rsi callq 0x38830 leaq -0x3d0(%rbp), %rdi leaq -0x3d0(%rbp), %rsi leaq -0xd0(%rbp), %rdx callq 0x385c0 leaq -0x3d0(%rbp), %rdi leaq -0x3d0(%rbp), %rsi leaq -0x310(%rbp), %rdx callq 0x385c0 leaq -0x3d0(%rbp), %rdi leaq -0x3d0(%rbp), %rsi leaq -0x190(%rbp), %rdx callq 0x385c0 leaq -0x3d0(%rbp), %rdi leaq -0x3d0(%rbp), %rsi leaq -0x250(%rbp), %rdx callq 0x385c0 movq -0x8(%rbp), %rdi addq $0xc0, %rdi leaq -0x3d0(%rbp), %rsi callq 0x386e0 leaq -0x3d0(%rbp), %rdi leaq -0x250(%rbp), %rsi callq 0x38620 leaq -0x3d0(%rbp), %rdi leaq -0x3d0(%rbp), %rsi leaq -0xd0(%rbp), %rdx callq 0x38680 movq -0x8(%rbp), %rdi leaq -0x3d0(%rbp), %rsi callq 0x386e0 leaq -0x3d0(%rbp), %rdi leaq -0x310(%rbp), %rsi callq 0x38620 leaq -0x3d0(%rbp), %rdi leaq -0x3d0(%rbp), %rsi leaq -0x190(%rbp), %rdx callq 0x38680 movq -0x8(%rbp), %rdi addq $0x60, %rdi leaq -0x3d0(%rbp), %rsi callq 0x386e0 addq $0x3d0, %rsp # imm = 0x3D0 popq %rbp retq nopw %cs:(%rax,%rax) nop
sqr_fp6: push rbp mov rbp, rsp sub rsp, 3D0h mov [rbp+var_8], rdi mov [rbp+var_10], rsi lea rdi, [rbp+var_D0] mov rsi, [rbp+var_10] call sqr_fp2x2 lea rdi, [rbp+var_190] mov rsi, [rbp+var_10] mov rdx, [rbp+var_10] add rdx, 60h ; '`' call mul_fp2x2 lea rdi, [rbp+var_190] lea rsi, [rbp+var_190] lea rdx, [rbp+var_190] call add_fp2x2 lea rdi, [rbp+var_250] mov rsi, [rbp+var_10] add rsi, 60h ; '`' mov rdx, [rbp+var_10] add rdx, 0C0h call mul_fp2x2 lea rdi, [rbp+var_250] lea rsi, [rbp+var_250] lea rdx, [rbp+var_250] call add_fp2x2 lea rdi, [rbp+var_310] mov rsi, [rbp+var_10] add rsi, 0C0h call sqr_fp2x2 mov rdi, [rbp+var_8] add rdi, 0C0h mov rsi, [rbp+var_10] add rsi, 0C0h mov rdx, [rbp+var_10] add rdx, 60h ; '`' call add_fp2 mov rdi, [rbp+var_8] add rdi, 0C0h mov rsi, [rbp+var_8] add rsi, 0C0h mov rdx, [rbp+var_10] call add_fp2 lea rdi, [rbp+var_3D0] mov rsi, [rbp+var_8] add rsi, 0C0h call sqr_fp2x2 lea rdi, [rbp+var_3D0] lea rsi, [rbp+var_3D0] lea rdx, [rbp+var_D0] call _sub_fp2x2 lea rdi, [rbp+var_3D0] lea rsi, [rbp+var_3D0] lea rdx, [rbp+var_310] call _sub_fp2x2 lea rdi, [rbp+var_3D0] lea rsi, [rbp+var_3D0] lea rdx, [rbp+var_190] call _sub_fp2x2 lea rdi, [rbp+var_3D0] lea rsi, [rbp+var_3D0] lea rdx, [rbp+var_250] call _sub_fp2x2 mov rdi, [rbp+var_8] add rdi, 0C0h lea rsi, [rbp+var_3D0] call redc_fp2x2 lea rdi, [rbp+var_3D0] lea rsi, [rbp+var_250] call mul_by_u_plus_1_fp2x2 lea rdi, [rbp+var_3D0] lea rsi, [rbp+var_3D0] lea rdx, [rbp+var_D0] call add_fp2x2 mov rdi, [rbp+var_8] lea rsi, [rbp+var_3D0] call redc_fp2x2 lea rdi, [rbp+var_3D0] lea rsi, [rbp+var_310] call mul_by_u_plus_1_fp2x2 lea rdi, [rbp+var_3D0] lea rsi, [rbp+var_3D0] lea rdx, [rbp+var_190] call add_fp2x2 mov rdi, [rbp+var_8] add rdi, 60h ; '`' lea rsi, [rbp+var_3D0] call redc_fp2x2 add rsp, 3D0h pop rbp retn
long long sqr_fp6(long long a1, long long a2) { _BYTE v3[192]; // [rsp+0h] [rbp-3D0h] BYREF _BYTE v4[192]; // [rsp+C0h] [rbp-310h] BYREF _BYTE v5[192]; // [rsp+180h] [rbp-250h] BYREF _BYTE v6[192]; // [rsp+240h] [rbp-190h] BYREF _BYTE v7[192]; // [rsp+300h] [rbp-D0h] BYREF long long v8; // [rsp+3C0h] [rbp-10h] long long v9; // [rsp+3C8h] [rbp-8h] v9 = a1; v8 = a2; sqr_fp2x2((long long)v7, a2); mul_fp2x2((long long)v6, v8, v8 + 96); add_fp2x2((long long)v6, (long long)v6, (long long)v6); mul_fp2x2((long long)v5, v8 + 96, v8 + 192); add_fp2x2((long long)v5, (long long)v5, (long long)v5); sqr_fp2x2((long long)v4, v8 + 192); add_fp2(v9 + 192, v8 + 192, v8 + 96); add_fp2(v9 + 192, v9 + 192, v8); sqr_fp2x2((long long)v3, v9 + 192); sub_fp2x2((long long)v3, (long long)v3, (long long)v7); sub_fp2x2((long long)v3, (long long)v3, (long long)v4); sub_fp2x2((long long)v3, (long long)v3, (long long)v6); sub_fp2x2((long long)v3, (long long)v3, (long long)v5); redc_fp2x2(v9 + 192, (long long)v3); mul_by_u_plus_1_fp2x2((long long)v3, (long long)v5); add_fp2x2((long long)v3, (long long)v3, (long long)v7); redc_fp2x2(v9, (long long)v3); mul_by_u_plus_1_fp2x2((long long)v3, (long long)v4); add_fp2x2((long long)v3, (long long)v3, (long long)v6); return redc_fp2x2(v9 + 96, (long long)v3); }
sqr_fp6: PUSH RBP MOV RBP,RSP SUB RSP,0x3d0 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI LEA RDI,[RBP + -0xd0] MOV RSI,qword ptr [RBP + -0x10] CALL 0x00138830 LEA RDI,[RBP + -0x190] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x10] ADD RDX,0x60 CALL 0x00138580 LEA RDI,[RBP + -0x190] LEA RSI,[RBP + -0x190] LEA RDX,[RBP + -0x190] CALL 0x00138680 LEA RDI,[RBP + -0x250] MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0x60 MOV RDX,qword ptr [RBP + -0x10] ADD RDX,0xc0 CALL 0x00138580 LEA RDI,[RBP + -0x250] LEA RSI,[RBP + -0x250] LEA RDX,[RBP + -0x250] CALL 0x00138680 LEA RDI,[RBP + -0x310] MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0xc0 CALL 0x00138830 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0xc0 MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0xc0 MOV RDX,qword ptr [RBP + -0x10] ADD RDX,0x60 CALL 0x00131000 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0xc0 MOV RSI,qword ptr [RBP + -0x8] ADD RSI,0xc0 MOV RDX,qword ptr [RBP + -0x10] CALL 0x00131000 LEA RDI,[RBP + -0x3d0] MOV RSI,qword ptr [RBP + -0x8] ADD RSI,0xc0 CALL 0x00138830 LEA RDI,[RBP + -0x3d0] LEA RSI,[RBP + -0x3d0] LEA RDX,[RBP + -0xd0] CALL 0x001385c0 LEA RDI,[RBP + -0x3d0] LEA RSI,[RBP + -0x3d0] LEA RDX,[RBP + -0x310] CALL 0x001385c0 LEA RDI,[RBP + -0x3d0] LEA RSI,[RBP + -0x3d0] LEA RDX,[RBP + -0x190] CALL 0x001385c0 LEA RDI,[RBP + -0x3d0] LEA RSI,[RBP + -0x3d0] LEA RDX,[RBP + -0x250] CALL 0x001385c0 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0xc0 LEA RSI,[RBP + -0x3d0] CALL 0x001386e0 LEA RDI,[RBP + -0x3d0] LEA RSI,[RBP + -0x250] CALL 0x00138620 LEA RDI,[RBP + -0x3d0] LEA RSI,[RBP + -0x3d0] LEA RDX,[RBP + -0xd0] CALL 0x00138680 MOV RDI,qword ptr [RBP + -0x8] LEA RSI,[RBP + -0x3d0] CALL 0x001386e0 LEA RDI,[RBP + -0x3d0] LEA RSI,[RBP + -0x310] CALL 0x00138620 LEA RDI,[RBP + -0x3d0] LEA RSI,[RBP + -0x3d0] LEA RDX,[RBP + -0x190] CALL 0x00138680 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x60 LEA RSI,[RBP + -0x3d0] CALL 0x001386e0 ADD RSP,0x3d0 POP RBP RET
void sqr_fp6(long param_1,long param_2) { int1 local_3d8 [192]; int1 local_318 [192]; int1 local_258 [192]; int1 local_198 [192]; int1 local_d8 [192]; long local_18; long local_10; local_18 = param_2; local_10 = param_1; sqr_fp2x2(local_d8,param_2); mul_fp2x2(local_198,local_18,local_18 + 0x60); add_fp2x2(local_198,local_198,local_198); mul_fp2x2(local_258,local_18 + 0x60,local_18 + 0xc0); add_fp2x2(local_258,local_258,local_258); sqr_fp2x2(local_318,local_18 + 0xc0); add_fp2(local_10 + 0xc0,local_18 + 0xc0,local_18 + 0x60); add_fp2(local_10 + 0xc0,local_10 + 0xc0,local_18); sqr_fp2x2(local_3d8,local_10 + 0xc0); sub_fp2x2(local_3d8,local_3d8,local_d8); sub_fp2x2(local_3d8,local_3d8,local_318); sub_fp2x2(local_3d8,local_3d8,local_198); sub_fp2x2(local_3d8,local_3d8,local_258); redc_fp2x2(local_10 + 0xc0,local_3d8); mul_by_u_plus_1_fp2x2(local_3d8,local_258); add_fp2x2(local_3d8,local_3d8,local_d8); redc_fp2x2(local_10,local_3d8); mul_by_u_plus_1_fp2x2(local_3d8,local_318); add_fp2x2(local_3d8,local_3d8,local_198); redc_fp2x2(local_10 + 0x60,local_3d8); return; }
38,774
nglog::LogDestination::RemoveLogSink(nglog::LogSink*)
ng-log[P]ng-log/src/logging.cc
inline void LogDestination::RemoveLogSink(LogSink* destination) { // Prevent any subtle race conditions by wrapping a mutex lock around // all this stuff. SinkLock l{sink_mutex_}; // This doesn't keep the sinks in order, but who cares? if (sinks_) { sinks_->erase(std::remove(sinks_->begin(), sinks_->end(), destination), sinks_->end()); } }
O0
cpp
nglog::LogDestination::RemoveLogSink(nglog::LogSink*): pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x8(%rbp) leaq -0x10(%rbp), %rdi leaq 0x5824e(%rip), %rsi # 0x70d68 callq 0x17b00 leaq 0x5823a(%rip), %rdi # 0x70d60 callq 0x1c150 testb $0x1, %al jne 0x18b34 jmp 0x18bfb leaq 0x58225(%rip), %rdi # 0x70d60 movq %rdi, -0x68(%rbp) callq 0x1c180 movq -0x68(%rbp), %rdi movq %rax, -0x70(%rbp) callq 0x1c180 movq %rax, %rdi callq 0x1dde0 movq -0x68(%rbp), %rdi movq %rax, -0x28(%rbp) callq 0x1c180 movq %rax, %rdi callq 0x1dc70 movq %rax, -0x30(%rbp) movq -0x28(%rbp), %rdi movq -0x30(%rbp), %rsi leaq -0x8(%rbp), %rdx callq 0x1e1e0 movq %rax, -0x60(%rbp) jmp 0x18b89 movq -0x60(%rbp), %rax movq %rax, -0x20(%rbp) leaq -0x18(%rbp), %rdi leaq -0x20(%rbp), %rsi callq 0x1e230 leaq 0x581bb(%rip), %rdi # 0x70d60 callq 0x1c180 movq %rax, %rdi callq 0x1dc70 movq %rax, -0x50(%rbp) leaq -0x48(%rbp), %rdi leaq -0x50(%rbp), %rsi callq 0x1e230 movq -0x70(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x48(%rbp), %rdx callq 0x1e150 movq %rax, -0x78(%rbp) jmp 0x18bda movq -0x78(%rbp), %rax movq %rax, -0x58(%rbp) jmp 0x18bfb movq %rax, %rcx movl %edx, %eax movq %rcx, -0x38(%rbp) movl %eax, -0x3c(%rbp) leaq -0x10(%rbp), %rdi callq 0x17b60 jmp 0x18c0d leaq -0x10(%rbp), %rdi callq 0x17b60 addq $0x80, %rsp popq %rbp retq movq -0x38(%rbp), %rdi callq 0x9d00 nopw %cs:(%rax,%rax)
_ZN5nglog14LogDestination13RemoveLogSinkEPNS_7LogSinkE: push rbp mov rbp, rsp sub rsp, 80h mov [rbp+var_8], rdi lea rdi, [rbp+var_10] lea rsi, _ZN5nglog14LogDestination11sink_mutex_E; nglog::LogDestination::sink_mutex_ call _ZNSt10lock_guardISt12shared_mutexEC2ERS0_; std::lock_guard<std::shared_mutex>::lock_guard(std::shared_mutex&) lea rdi, _ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_ call _ZNKSt10unique_ptrISt6vectorIPN5nglog7LogSinkESaIS3_EESt14default_deleteIS5_EEcvbEv; std::unique_ptr<std::vector<nglog::LogSink *>>::operator bool(void) test al, 1 jnz short loc_18B34 jmp loc_18BFB loc_18B34: lea rdi, _ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_ mov [rbp+var_68], rdi call _ZNKSt10unique_ptrISt6vectorIPN5nglog7LogSinkESaIS3_EESt14default_deleteIS5_EEptEv; std::unique_ptr<std::vector<nglog::LogSink *>>::operator->(void) mov rdi, [rbp+var_68] mov [rbp+var_70], rax call _ZNKSt10unique_ptrISt6vectorIPN5nglog7LogSinkESaIS3_EESt14default_deleteIS5_EEptEv; std::unique_ptr<std::vector<nglog::LogSink *>>::operator->(void) mov rdi, rax call _ZNSt6vectorIPN5nglog7LogSinkESaIS2_EE5beginEv; std::vector<nglog::LogSink *>::begin(void) mov rdi, [rbp+var_68] mov [rbp+var_28], rax call _ZNKSt10unique_ptrISt6vectorIPN5nglog7LogSinkESaIS3_EESt14default_deleteIS5_EEptEv; std::unique_ptr<std::vector<nglog::LogSink *>>::operator->(void) mov rdi, rax call _ZNSt6vectorIPN5nglog7LogSinkESaIS2_EE3endEv; std::vector<nglog::LogSink *>::end(void) mov [rbp+var_30], rax mov rdi, [rbp+var_28] mov rsi, [rbp+var_30] lea rdx, [rbp+var_8] call _ZSt6removeIN9__gnu_cxx17__normal_iteratorIPPN5nglog7LogSinkESt6vectorIS4_SaIS4_EEEES4_ET_SA_SA_RKT0_; std::remove<__gnu_cxx::__normal_iterator<nglog::LogSink **,std::vector<nglog::LogSink *>>,nglog::LogSink *>(__gnu_cxx::__normal_iterator<nglog::LogSink **,std::vector<nglog::LogSink *>>,__gnu_cxx::__normal_iterator<nglog::LogSink **,std::vector<nglog::LogSink *>>,nglog::LogSink * const&) mov [rbp+var_60], rax jmp short $+2 loc_18B89: mov rax, [rbp+var_60] mov [rbp+var_20], rax lea rdi, [rbp+var_18] lea rsi, [rbp+var_20] call _ZN9__gnu_cxx17__normal_iteratorIPKPN5nglog7LogSinkESt6vectorIS3_SaIS3_EEEC2IPS3_EERKNS0_IT_NS_11__enable_ifIXsr3std10__are_sameISC_SB_EE7__valueES8_E6__typeEEE lea rdi, _ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_ call _ZNKSt10unique_ptrISt6vectorIPN5nglog7LogSinkESaIS3_EESt14default_deleteIS5_EEptEv; std::unique_ptr<std::vector<nglog::LogSink *>>::operator->(void) mov rdi, rax call _ZNSt6vectorIPN5nglog7LogSinkESaIS2_EE3endEv; std::vector<nglog::LogSink *>::end(void) mov [rbp+var_50], rax lea rdi, [rbp+var_48] lea rsi, [rbp+var_50] call _ZN9__gnu_cxx17__normal_iteratorIPKPN5nglog7LogSinkESt6vectorIS3_SaIS3_EEEC2IPS3_EERKNS0_IT_NS_11__enable_ifIXsr3std10__are_sameISC_SB_EE7__valueES8_E6__typeEEE mov rdi, [rbp+var_70] mov rsi, [rbp+var_18] mov rdx, [rbp+var_48] call _ZNSt6vectorIPN5nglog7LogSinkESaIS2_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS2_S4_EES9_; std::vector<nglog::LogSink *>::erase(__gnu_cxx::__normal_iterator<nglog::LogSink * const*,std::vector<nglog::LogSink *>>,__gnu_cxx::__normal_iterator<nglog::LogSink * const*,std::vector<nglog::LogSink *>>) mov [rbp+var_78], rax jmp short $+2 loc_18BDA: mov rax, [rbp+var_78] mov [rbp+var_58], rax jmp short loc_18BFB mov rcx, rax mov eax, edx mov [rbp+var_38], rcx mov [rbp+var_3C], eax lea rdi, [rbp+var_10] call _ZNSt10lock_guardISt12shared_mutexED2Ev; std::lock_guard<std::shared_mutex>::~lock_guard() jmp short loc_18C0D loc_18BFB: lea rdi, [rbp+var_10] call _ZNSt10lock_guardISt12shared_mutexED2Ev; std::lock_guard<std::shared_mutex>::~lock_guard() add rsp, 80h pop rbp retn loc_18C0D: mov rdi, [rbp+var_38] call __Unwind_Resume
long long nglog::LogDestination::RemoveLogSink(nglog::LogDestination *this, nglog::LogSink *a2) { long long v2; // rax long long v3; // rax long long v4; // rax long long v6; // [rsp+10h] [rbp-70h] long long v7; // [rsp+30h] [rbp-50h] BYREF long long v8; // [rsp+38h] [rbp-48h] BYREF long long v9; // [rsp+50h] [rbp-30h] long long v10; // [rsp+58h] [rbp-28h] long long v11; // [rsp+60h] [rbp-20h] BYREF long long v12; // [rsp+68h] [rbp-18h] BYREF std::shared_mutex *v13; // [rsp+70h] [rbp-10h] BYREF nglog::LogDestination *v14; // [rsp+78h] [rbp-8h] BYREF v14 = this; std::lock_guard<std::shared_mutex>::lock_guard(&v13, (std::shared_mutex *)&nglog::LogDestination::sink_mutex_); if ( (std::unique_ptr<std::vector<nglog::LogSink *>>::operator bool(&nglog::LogDestination::sinks_) & 1) != 0 ) { v6 = std::unique_ptr<std::vector<nglog::LogSink *>>::operator->(&nglog::LogDestination::sinks_); v2 = std::unique_ptr<std::vector<nglog::LogSink *>>::operator->(&nglog::LogDestination::sinks_); v10 = std::vector<nglog::LogSink *>::begin(v2); v3 = std::unique_ptr<std::vector<nglog::LogSink *>>::operator->(&nglog::LogDestination::sinks_); v9 = std::vector<nglog::LogSink *>::end(v3); v11 = std::remove<__gnu_cxx::__normal_iterator<nglog::LogSink **,std::vector<nglog::LogSink *>>,nglog::LogSink *>( v10, v9, &v14); __gnu_cxx::__normal_iterator<nglog::LogSink * const*,std::vector<nglog::LogSink *>>::__normal_iterator<nglog::LogSink **>( &v12, &v11); v4 = std::unique_ptr<std::vector<nglog::LogSink *>>::operator->(&nglog::LogDestination::sinks_); v7 = std::vector<nglog::LogSink *>::end(v4); __gnu_cxx::__normal_iterator<nglog::LogSink * const*,std::vector<nglog::LogSink *>>::__normal_iterator<nglog::LogSink **>( &v8, &v7); std::vector<nglog::LogSink *>::erase(v6, v12, v8); } return std::lock_guard<std::shared_mutex>::~lock_guard(&v13); }
RemoveLogSink: PUSH RBP MOV RBP,RSP SUB RSP,0x80 MOV qword ptr [RBP + -0x8],RDI LEA RDI,[RBP + -0x10] LEA RSI,[0x170d68] CALL 0x00117b00 LEA RDI,[0x170d60] CALL 0x0011c150 TEST AL,0x1 JNZ 0x00118b34 JMP 0x00118bfb LAB_00118b34: LEA RDI,[0x170d60] MOV qword ptr [RBP + -0x68],RDI CALL 0x0011c180 MOV RDI,qword ptr [RBP + -0x68] MOV qword ptr [RBP + -0x70],RAX CALL 0x0011c180 MOV RDI,RAX CALL 0x0011dde0 MOV RDI,qword ptr [RBP + -0x68] MOV qword ptr [RBP + -0x28],RAX CALL 0x0011c180 MOV RDI,RAX CALL 0x0011dc70 MOV qword ptr [RBP + -0x30],RAX MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x30] LAB_00118b7a: LEA RDX,[RBP + -0x8] CALL 0x0011e1e0 MOV qword ptr [RBP + -0x60],RAX JMP 0x00118b89 LAB_00118b89: MOV RAX,qword ptr [RBP + -0x60] MOV qword ptr [RBP + -0x20],RAX LEA RDI,[RBP + -0x18] LEA RSI,[RBP + -0x20] CALL 0x0011e230 LEA RDI,[0x170d60] CALL 0x0011c180 MOV RDI,RAX CALL 0x0011dc70 MOV qword ptr [RBP + -0x50],RAX LEA RDI,[RBP + -0x48] LEA RSI,[RBP + -0x50] CALL 0x0011e230 MOV RDI,qword ptr [RBP + -0x70] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x48] CALL 0x0011e150 LAB_00118bd4: MOV qword ptr [RBP + -0x78],RAX JMP 0x00118bda LAB_00118bda: MOV RAX,qword ptr [RBP + -0x78] MOV qword ptr [RBP + -0x58],RAX JMP 0x00118bfb LAB_00118bfb: LEA RDI,[RBP + -0x10] CALL 0x00117b60 ADD RSP,0x80 POP RBP RET
/* nglog::LogDestination::RemoveLogSink(nglog::LogSink*) */ void nglog::LogDestination::RemoveLogSink(LogSink *param_1) { bool bVar1; vector<nglog::LogSink*,std::allocator<nglog::LogSink*>> *pvVar2; vector<nglog::LogSink*,std::allocator<nglog::LogSink*>> *pvVar3; int8 local_58; int8 local_50 [3]; int8 local_38; int8 local_30; int8 local_28; int8 local_20; lock_guard<std::shared_mutex> local_18 [8]; LogSink *local_10; local_10 = param_1; std::lock_guard<std::shared_mutex>::lock_guard(local_18,(shared_mutex *)sink_mutex_); bVar1 = std::unique_ptr::operator_cast_to_bool((unique_ptr *)&sinks_); if (bVar1) { pvVar2 = (vector<nglog::LogSink*,std::allocator<nglog::LogSink*>> *) std:: unique_ptr<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>,std::default_delete<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>>> ::operator->((unique_ptr<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>,std::default_delete<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>>> *)&sinks_); pvVar3 = (vector<nglog::LogSink*,std::allocator<nglog::LogSink*>> *) std:: unique_ptr<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>,std::default_delete<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>>> ::operator->((unique_ptr<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>,std::default_delete<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>>> *)&sinks_); local_30 = std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>::begin(pvVar3); pvVar3 = (vector<nglog::LogSink*,std::allocator<nglog::LogSink*>> *) std:: unique_ptr<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>,std::default_delete<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>>> ::operator->((unique_ptr<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>,std::default_delete<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>>> *)&sinks_); local_38 = std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>::end(pvVar3); /* try { // try from 00118b7a to 00118bd3 has its CatchHandler @ 00118be4 */ local_28 = std:: remove<__gnu_cxx::__normal_iterator<nglog::LogSink**,std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>>,nglog::LogSink*> (local_30,local_38,&local_10); __gnu_cxx:: __normal_iterator<nglog::LogSink*const*,std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>> ::__normal_iterator<nglog::LogSink**> ((__normal_iterator<nglog::LogSink*const*,std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>> *)&local_20,(__normal_iterator *)&local_28); pvVar3 = (vector<nglog::LogSink*,std::allocator<nglog::LogSink*>> *) std:: unique_ptr<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>,std::default_delete<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>>> ::operator->((unique_ptr<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>,std::default_delete<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>>> *)&sinks_); local_58 = std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>::end(pvVar3); __gnu_cxx:: __normal_iterator<nglog::LogSink*const*,std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>> ::__normal_iterator<nglog::LogSink**> ((__normal_iterator<nglog::LogSink*const*,std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>> *)local_50,(__normal_iterator *)&local_58); std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>::erase(pvVar2,local_20,local_50[0]) ; } std::lock_guard<std::shared_mutex>::~lock_guard(local_18); return; }
38,775
my_coll_parser_scan_shift_sequence
eloqsql/strings/ctype-uca.c
static int my_coll_parser_scan_shift_sequence(MY_COLL_RULE_PARSER *p) { MY_COLL_RULE before_extend; memset(&p->rule.curr, 0, sizeof(p->rule.curr)); /* Scan single shift character or contraction */ if (!my_coll_parser_scan_character_list(p, p->rule.curr, MY_UCA_MAX_CONTRACTION, "Contraction")) return 0; before_extend= p->rule; /* Remember the part before "/" */ /* Append the part after "/" as expansion */ if (my_coll_parser_curr(p)->term == MY_COLL_LEXEM_EXTEND) { my_coll_parser_scan(p); if (!my_coll_parser_scan_character_list(p, p->rule.base, MY_UCA_MAX_EXPANSION, "Expansion")) return 0; } else if (my_coll_parser_curr(p)->term == MY_COLL_LEXEM_CONTEXT) { /* We support 2-character long context sequences only: one character is the previous context, plus the current character. It's OK as Unicode's CLDR does not have longer examples. */ my_coll_parser_scan(p); p->rule.with_context= TRUE; if (!my_coll_parser_scan_character_list(p, p->rule.curr + 1, 1, "context")) return 0; } /* Add rule to the rule list */ if (my_coll_rules_add(p->rules, &p->rule)) return 0; p->rule= before_extend; /* Restore to the state before "/" */ return 1; }
O0
c
my_coll_parser_scan_shift_sequence: pushq %rbp movq %rsp, %rbp subq $0xb0, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rdi addq $0x50, %rdi addq $0x50, %rdi xorl %esi, %esi movl $0x30, %edx callq 0x27310 movq -0x10(%rbp), %rdi movq -0x10(%rbp), %rsi addq $0x50, %rsi addq $0x50, %rsi movl $0x6, %edx leaq 0x30656(%rip), %rcx # 0x123b59 callq 0xf3af0 cmpl $0x0, %eax jne 0xf3519 movl $0x0, -0x4(%rbp) jmp 0xf3618 movq -0x10(%rbp), %rsi addq $0x50, %rsi leaq -0xb0(%rbp), %rdi movl $0xa0, %edx callq 0x270d0 movq -0x10(%rbp), %rdi callq 0xf2b30 cmpl $0x8, (%rax) jne 0xf3579 movq -0x10(%rbp), %rdi callq 0xf3310 movq -0x10(%rbp), %rdi movq -0x10(%rbp), %rsi addq $0x50, %rsi movl $0xa, %edx leaq 0x3041b(%rip), %rcx # 0x12397c callq 0xf3af0 cmpl $0x0, %eax jne 0xf3577 movl $0x0, -0x4(%rbp) jmp 0xf3618 jmp 0xf35d2 movq -0x10(%rbp), %rdi callq 0xf2b30 cmpl $0x9, (%rax) jne 0xf35d0 movq -0x10(%rbp), %rdi callq 0xf3310 movq -0x10(%rbp), %rax movb $0x1, 0xe8(%rax) movq -0x10(%rbp), %rdi movq -0x10(%rbp), %rsi addq $0x50, %rsi addq $0x50, %rsi addq $0x8, %rsi movl $0x1, %edx leaq 0x310dc(%rip), %rcx # 0x124697 callq 0xf3af0 cmpl $0x0, %eax jne 0xf35ce movl $0x0, -0x4(%rbp) jmp 0xf3618 jmp 0xf35d0 jmp 0xf35d2 movq -0x10(%rbp), %rax movq 0xf0(%rax), %rdi movq -0x10(%rbp), %rsi addq $0x50, %rsi callq 0xf3e40 cmpl $0x0, %eax je 0xf35f8 movl $0x0, -0x4(%rbp) jmp 0xf3618 movq -0x10(%rbp), %rdi addq $0x50, %rdi leaq -0xb0(%rbp), %rsi movl $0xa0, %edx callq 0x270d0 movl $0x1, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0xb0, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_coll_parser_scan_shift_sequence: push rbp mov rbp, rsp sub rsp, 0B0h mov [rbp+var_10], rdi mov rdi, [rbp+var_10] add rdi, 50h ; 'P' add rdi, 50h ; 'P' xor esi, esi mov edx, 30h ; '0' call _memset mov rdi, [rbp+var_10] mov rsi, [rbp+var_10] add rsi, 50h ; 'P' add rsi, 50h ; 'P' mov edx, 6 lea rcx, aContraction; "Contraction" call my_coll_parser_scan_character_list cmp eax, 0 jnz short loc_F3519 mov [rbp+var_4], 0 jmp loc_F3618 loc_F3519: mov rsi, [rbp+var_10] add rsi, 50h ; 'P' lea rdi, [rbp+var_B0] mov edx, 0A0h call _memcpy mov rdi, [rbp+var_10] call my_coll_parser_curr cmp dword ptr [rax], 8 jnz short loc_F3579 mov rdi, [rbp+var_10] call my_coll_parser_scan mov rdi, [rbp+var_10] mov rsi, [rbp+var_10] add rsi, 50h ; 'P' mov edx, 0Ah lea rcx, aExpansion; "Expansion" call my_coll_parser_scan_character_list cmp eax, 0 jnz short loc_F3577 mov [rbp+var_4], 0 jmp loc_F3618 loc_F3577: jmp short loc_F35D2 loc_F3579: mov rdi, [rbp+var_10] call my_coll_parser_curr cmp dword ptr [rax], 9 jnz short loc_F35D0 mov rdi, [rbp+var_10] call my_coll_parser_scan mov rax, [rbp+var_10] mov byte ptr [rax+0E8h], 1 mov rdi, [rbp+var_10] mov rsi, [rbp+var_10] add rsi, 50h ; 'P' add rsi, 50h ; 'P' add rsi, 8 mov edx, 1 lea rcx, aCharsetsCharse_52+23h; "context" call my_coll_parser_scan_character_list cmp eax, 0 jnz short loc_F35CE mov [rbp+var_4], 0 jmp short loc_F3618 loc_F35CE: jmp short $+2 loc_F35D0: jmp short $+2 loc_F35D2: mov rax, [rbp+var_10] mov rdi, [rax+0F0h] mov rsi, [rbp+var_10] add rsi, 50h ; 'P' call my_coll_rules_add cmp eax, 0 jz short loc_F35F8 mov [rbp+var_4], 0 jmp short loc_F3618 loc_F35F8: mov rdi, [rbp+var_10] add rdi, 50h ; 'P' lea rsi, [rbp+var_B0] mov edx, 0A0h call _memcpy mov [rbp+var_4], 1 loc_F3618: mov eax, [rbp+var_4] add rsp, 0B0h pop rbp retn
long long my_coll_parser_scan_shift_sequence(long long a1) { _BYTE v2[160]; // [rsp+0h] [rbp-B0h] BYREF long long v3; // [rsp+A0h] [rbp-10h] v3 = a1; memset(a1 + 160, 0LL, 48LL); if ( (unsigned int)my_coll_parser_scan_character_list(v3, v3 + 160, 6LL, "Contraction") ) { memcpy(v2, v3 + 80, sizeof(v2)); if ( *(_DWORD *)my_coll_parser_curr(v3) == 8 ) { my_coll_parser_scan(v3); if ( !(unsigned int)my_coll_parser_scan_character_list(v3, v3 + 80, 10LL, "Expansion") ) return 0; } else if ( *(_DWORD *)my_coll_parser_curr(v3) == 9 ) { my_coll_parser_scan(v3); *(_BYTE *)(v3 + 232) = 1; if ( !(unsigned int)my_coll_parser_scan_character_list(v3, v3 + 168, 1LL, "context") ) return 0; } if ( (unsigned int)my_coll_rules_add(*(_QWORD *)(v3 + 240), v3 + 80) ) { return 0; } else { memcpy(v3 + 80, v2, 160LL); return 1; } } else { return 0; } }
my_coll_parser_scan_shift_sequence: PUSH RBP MOV RBP,RSP SUB RSP,0xb0 MOV qword ptr [RBP + -0x10],RDI MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x50 ADD RDI,0x50 XOR ESI,ESI MOV EDX,0x30 CALL 0x00127310 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0x50 ADD RSI,0x50 MOV EDX,0x6 LEA RCX,[0x223b59] CALL 0x001f3af0 CMP EAX,0x0 JNZ 0x001f3519 MOV dword ptr [RBP + -0x4],0x0 JMP 0x001f3618 LAB_001f3519: MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0x50 LEA RDI,[RBP + -0xb0] MOV EDX,0xa0 CALL 0x001270d0 MOV RDI,qword ptr [RBP + -0x10] CALL 0x001f2b30 CMP dword ptr [RAX],0x8 JNZ 0x001f3579 MOV RDI,qword ptr [RBP + -0x10] CALL 0x001f3310 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0x50 MOV EDX,0xa LEA RCX,[0x22397c] CALL 0x001f3af0 CMP EAX,0x0 JNZ 0x001f3577 MOV dword ptr [RBP + -0x4],0x0 JMP 0x001f3618 LAB_001f3577: JMP 0x001f35d2 LAB_001f3579: MOV RDI,qword ptr [RBP + -0x10] CALL 0x001f2b30 CMP dword ptr [RAX],0x9 JNZ 0x001f35d0 MOV RDI,qword ptr [RBP + -0x10] CALL 0x001f3310 MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0xe8],0x1 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0x50 ADD RSI,0x50 ADD RSI,0x8 MOV EDX,0x1 LEA RCX,[0x224697] CALL 0x001f3af0 CMP EAX,0x0 JNZ 0x001f35ce MOV dword ptr [RBP + -0x4],0x0 JMP 0x001f3618 LAB_001f35ce: JMP 0x001f35d0 LAB_001f35d0: JMP 0x001f35d2 LAB_001f35d2: MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0xf0] MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0x50 CALL 0x001f3e40 CMP EAX,0x0 JZ 0x001f35f8 MOV dword ptr [RBP + -0x4],0x0 JMP 0x001f3618 LAB_001f35f8: MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x50 LEA RSI,[RBP + -0xb0] MOV EDX,0xa0 CALL 0x001270d0 MOV dword ptr [RBP + -0x4],0x1 LAB_001f3618: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0xb0 POP RBP RET
int4 my_coll_parser_scan_shift_sequence(long param_1) { int iVar1; int *piVar2; int1 local_b8 [160]; long local_18; int4 local_c; local_18 = param_1; memset((void *)(param_1 + 0xa0),0,0x30); iVar1 = my_coll_parser_scan_character_list(local_18,local_18 + 0xa0,6,"Contraction"); if (iVar1 == 0) { local_c = 0; } else { memcpy(local_b8,(void *)(local_18 + 0x50),0xa0); piVar2 = (int *)my_coll_parser_curr(local_18); if (*piVar2 == 8) { my_coll_parser_scan(local_18); iVar1 = my_coll_parser_scan_character_list(local_18,local_18 + 0x50,10,"Expansion"); if (iVar1 == 0) { return 0; } } else { piVar2 = (int *)my_coll_parser_curr(local_18); if (*piVar2 == 9) { my_coll_parser_scan(local_18); *(int1 *)(local_18 + 0xe8) = 1; iVar1 = my_coll_parser_scan_character_list(local_18,local_18 + 0xa8,1,"context"); if (iVar1 == 0) { return 0; } } } iVar1 = my_coll_rules_add(*(int8 *)(local_18 + 0xf0),local_18 + 0x50); if (iVar1 == 0) { memcpy((void *)(local_18 + 0x50),local_b8,0xa0); local_c = 1; } else { local_c = 0; } } return local_c; }
38,776
JS_ToBigInt1
bluesky950520[P]quickjs/quickjs.c
static bf_t *JS_ToBigInt1(JSContext *ctx, bf_t *buf, JSValue val) { uint32_t tag; bf_t *r; JSBigInt *p; tag = JS_VALUE_GET_NORM_TAG(val); switch(tag) { case JS_TAG_INT: case JS_TAG_BOOL: case JS_TAG_NULL: r = buf; bf_init(ctx->bf_ctx, r); if (bf_set_si(r, JS_VALUE_GET_INT(val))) goto fail; break; case JS_TAG_FLOAT64: r = buf; bf_init(ctx->bf_ctx, r); if (bf_set_float64(r, JS_VALUE_GET_FLOAT64(val))) { fail: bf_delete(r); return NULL; } break; case JS_TAG_BIG_INT: p = JS_VALUE_GET_PTR(val); r = &p->num; break; case JS_TAG_UNDEFINED: default: r = buf; bf_init(ctx->bf_ctx, r); bf_set_nan(r); break; } return r; }
O1
c
JS_ToBigInt1: pushq %rbx subq $0x10, %rsp movq %rsi, %rbx movq %rdx, (%rsp) cmpl $0x3, %ecx jae 0x424c7 movq 0x1d0(%rdi), %rdi movq %rbx, %rsi callq 0x83e3c movslq (%rsp), %rsi movq %rbx, %rdi callq 0x83fc9 jmp 0x424f3 cmpl $-0x9, %ecx je 0x42518 cmpl $0x7, %ecx jne 0x42522 movq %rdx, 0x8(%rsp) movq 0x1d0(%rdi), %rdi movq %rbx, %rsi callq 0x83e3c movq %rbx, %rdi movsd 0x8(%rsp), %xmm0 callq 0x87a12 testl %eax, %eax je 0x42539 movq (%rbx), %rax testq %rax, %rax je 0x42514 movq 0x20(%rbx), %rsi testq %rsi, %rsi je 0x42514 movq (%rax), %rdi xorl %ebx, %ebx xorl %edx, %edx callq *0x8(%rax) jmp 0x42539 xorl %ebx, %ebx jmp 0x42539 movq (%rsp), %rbx addq $0x8, %rbx jmp 0x42539 movq 0x1d0(%rdi), %rdi movq %rbx, %rsi callq 0x83e3c movq %rbx, %rdi callq 0x83f8c movq %rbx, %rax addq $0x10, %rsp popq %rbx retq
JS_ToBigInt1: push rbx sub rsp, 10h mov rbx, rsi mov [rsp+18h+var_18], rdx cmp ecx, 3 jnb short loc_424C7 mov rdi, [rdi+1D0h] mov rsi, rbx call bf_init movsxd rsi, dword ptr [rsp+18h+var_18] mov rdi, rbx call bf_set_si jmp short loc_424F3 loc_424C7: cmp ecx, 0FFFFFFF7h jz short loc_42518 cmp ecx, 7 jnz short loc_42522 mov [rsp+18h+var_10], rdx mov rdi, [rdi+1D0h] mov rsi, rbx call bf_init mov rdi, rbx movsd xmm0, [rsp+18h+var_10] call bf_set_float64 loc_424F3: test eax, eax jz short loc_42539 mov rax, [rbx] test rax, rax jz short loc_42514 mov rsi, [rbx+20h] test rsi, rsi jz short loc_42514 mov rdi, [rax] xor ebx, ebx xor edx, edx call qword ptr [rax+8] jmp short loc_42539 loc_42514: xor ebx, ebx jmp short loc_42539 loc_42518: mov rbx, [rsp+18h+var_18] add rbx, 8 jmp short loc_42539 loc_42522: mov rdi, [rdi+1D0h] mov rsi, rbx call bf_init mov rdi, rbx call bf_set_nan loc_42539: mov rax, rbx add rsp, 10h pop rbx retn
_QWORD * JS_ToBigInt1(long long a1, _QWORD *a2, long long a3, unsigned int a4) { _QWORD *v4; // rbx int v5; // eax long long v6; // rax long long v7; // rsi int v9; // [rsp+0h] [rbp-18h] v4 = a2; v9 = a3; if ( a4 >= 3 ) { if ( a4 == -9 ) return (_QWORD *)(a3 + 8); if ( a4 != 7 ) { bf_init(*(_QWORD *)(a1 + 464), a2); bf_set_nan(a2); return v4; } bf_init(*(_QWORD *)(a1 + 464), a2); v5 = bf_set_float64(a2, *(double *)&a3); } else { bf_init(*(_QWORD *)(a1 + 464), a2); v5 = bf_set_si(a2, v9); } if ( v5 ) { v6 = *a2; if ( *a2 && (v7 = a2[4]) != 0 ) { v4 = 0LL; (*(void ( **)(_QWORD, long long, _QWORD))(v6 + 8))(*(_QWORD *)v6, v7, 0LL); } else { return 0LL; } } return v4; }
JS_ToBigInt1: PUSH RBX SUB RSP,0x10 MOV RBX,RSI MOV qword ptr [RSP],RDX CMP ECX,0x3 JNC 0x001424c7 MOV RDI,qword ptr [RDI + 0x1d0] MOV RSI,RBX CALL 0x00183e3c MOVSXD RSI,dword ptr [RSP] MOV RDI,RBX CALL 0x00183fc9 JMP 0x001424f3 LAB_001424c7: CMP ECX,-0x9 JZ 0x00142518 CMP ECX,0x7 JNZ 0x00142522 MOV qword ptr [RSP + 0x8],RDX MOV RDI,qword ptr [RDI + 0x1d0] MOV RSI,RBX CALL 0x00183e3c MOV RDI,RBX MOVSD XMM0,qword ptr [RSP + 0x8] CALL 0x00187a12 LAB_001424f3: TEST EAX,EAX JZ 0x00142539 MOV RAX,qword ptr [RBX] TEST RAX,RAX JZ 0x00142514 MOV RSI,qword ptr [RBX + 0x20] TEST RSI,RSI JZ 0x00142514 MOV RDI,qword ptr [RAX] XOR EBX,EBX XOR EDX,EDX CALL qword ptr [RAX + 0x8] JMP 0x00142539 LAB_00142514: XOR EBX,EBX JMP 0x00142539 LAB_00142518: MOV RBX,qword ptr [RSP] ADD RBX,0x8 JMP 0x00142539 LAB_00142522: MOV RDI,qword ptr [RDI + 0x1d0] MOV RSI,RBX CALL 0x00183e3c MOV RDI,RBX CALL 0x00183f8c LAB_00142539: MOV RAX,RBX ADD RSP,0x10 POP RBX RET
long * JS_ToBigInt1(long param_1,long *param_2,long param_3,uint param_4) { long *plVar1; int8 *puVar2; int iVar3; int local_18; if (param_4 < 3) { bf_init(*(int8 *)(param_1 + 0x1d0),param_2); local_18 = (int)param_3; iVar3 = bf_set_si(param_2,(long)local_18); } else { if (param_4 == 0xfffffff7) { return (long *)(param_3 + 8); } if (param_4 != 7) { bf_init(*(int8 *)(param_1 + 0x1d0),param_2); bf_set_nan(param_2); return param_2; } bf_init(*(int8 *)(param_1 + 0x1d0),param_2); iVar3 = bf_set_float64(param_3,param_2); } if (iVar3 != 0) { puVar2 = (int8 *)*param_2; if ((puVar2 == (int8 *)0x0) || (plVar1 = param_2 + 4, *plVar1 == 0)) { param_2 = (long *)0x0; } else { param_2 = (long *)0x0; (*(code *)puVar2[1])(*puVar2,*plVar1,0); } } return param_2; }
38,777
JS_ToBigInt1
bluesky950520[P]quickjs/quickjs.c
static bf_t *JS_ToBigInt1(JSContext *ctx, bf_t *buf, JSValue val) { uint32_t tag; bf_t *r; JSBigInt *p; tag = JS_VALUE_GET_NORM_TAG(val); switch(tag) { case JS_TAG_INT: case JS_TAG_BOOL: case JS_TAG_NULL: r = buf; bf_init(ctx->bf_ctx, r); if (bf_set_si(r, JS_VALUE_GET_INT(val))) goto fail; break; case JS_TAG_FLOAT64: r = buf; bf_init(ctx->bf_ctx, r); if (bf_set_float64(r, JS_VALUE_GET_FLOAT64(val))) { fail: bf_delete(r); return NULL; } break; case JS_TAG_BIG_INT: p = JS_VALUE_GET_PTR(val); r = &p->num; break; case JS_TAG_UNDEFINED: default: r = buf; bf_init(ctx->bf_ctx, r); bf_set_nan(r); break; } return r; }
O3
c
JS_ToBigInt1: pushq %r14 pushq %rbx pushq %rax movq %rdx, %r14 movq %rsi, %rbx cmpl $0x3, %ecx jae 0x4410c movq 0x1d0(%rdi), %rdi movq %rbx, %rsi callq 0x8685d movslq %r14d, %rsi movq %rbx, %rdi callq 0x869ea jmp 0x44136 cmpl $-0x9, %ecx je 0x4415b cmpl $0x7, %ecx jne 0x44164 movq %r14, (%rsp) movq 0x1d0(%rdi), %rdi movq %rbx, %rsi callq 0x8685d movq %rbx, %rdi movsd (%rsp), %xmm0 callq 0x8a58a testl %eax, %eax je 0x4417b movq (%rbx), %rax testq %rax, %rax je 0x44157 movq 0x20(%rbx), %rsi testq %rsi, %rsi je 0x44157 movq (%rax), %rdi xorl %ebx, %ebx xorl %edx, %edx callq *0x8(%rax) jmp 0x4417b xorl %ebx, %ebx jmp 0x4417b addq $0x8, %r14 movq %r14, %rbx jmp 0x4417b movq 0x1d0(%rdi), %rdi movq %rbx, %rsi callq 0x8685d movq %rbx, %rdi callq 0x869ad movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r14 retq
JS_ToBigInt1: push r14 push rbx push rax mov r14, rdx mov rbx, rsi cmp ecx, 3 jnb short loc_4410C mov rdi, [rdi+1D0h] mov rsi, rbx call bf_init movsxd rsi, r14d mov rdi, rbx call bf_set_si jmp short loc_44136 loc_4410C: cmp ecx, 0FFFFFFF7h jz short loc_4415B cmp ecx, 7 jnz short loc_44164 mov [rsp+18h+var_18], r14 mov rdi, [rdi+1D0h] mov rsi, rbx call bf_init mov rdi, rbx movsd xmm0, [rsp+18h+var_18] call bf_set_float64 loc_44136: test eax, eax jz short loc_4417B mov rax, [rbx] test rax, rax jz short loc_44157 mov rsi, [rbx+20h] test rsi, rsi jz short loc_44157 mov rdi, [rax] xor ebx, ebx xor edx, edx call qword ptr [rax+8] jmp short loc_4417B loc_44157: xor ebx, ebx jmp short loc_4417B loc_4415B: add r14, 8 mov rbx, r14 jmp short loc_4417B loc_44164: mov rdi, [rdi+1D0h] mov rsi, rbx call bf_init mov rdi, rbx call bf_set_nan loc_4417B: mov rax, rbx add rsp, 8 pop rbx pop r14 retn
_QWORD * JS_ToBigInt1(long long a1, _QWORD *a2, long long a3, unsigned int a4) { int v4; // r14d _QWORD *v5; // rbx int v6; // eax long long v7; // rax long long v8; // rsi v4 = a3; v5 = a2; if ( a4 >= 3 ) { if ( a4 == -9 ) return (_QWORD *)(a3 + 8); if ( a4 != 7 ) { bf_init(*(_QWORD *)(a1 + 464), a2); bf_set_nan(a2); return v5; } bf_init(*(_QWORD *)(a1 + 464), a2); v6 = bf_set_float64(a2, *(double *)&a3); } else { bf_init(*(_QWORD *)(a1 + 464), a2); v6 = bf_set_si(a2, v4); } if ( v6 ) { v7 = *a2; if ( *a2 && (v8 = a2[4]) != 0 ) { v5 = 0LL; (*(void ( **)(_QWORD, long long, _QWORD))(v7 + 8))(*(_QWORD *)v7, v8, 0LL); } else { return 0LL; } } return v5; }
JS_ToBigInt1: PUSH R14 PUSH RBX PUSH RAX MOV R14,RDX MOV RBX,RSI CMP ECX,0x3 JNC 0x0014410c MOV RDI,qword ptr [RDI + 0x1d0] MOV RSI,RBX CALL 0x0018685d MOVSXD RSI,R14D MOV RDI,RBX CALL 0x001869ea JMP 0x00144136 LAB_0014410c: CMP ECX,-0x9 JZ 0x0014415b CMP ECX,0x7 JNZ 0x00144164 MOV qword ptr [RSP],R14 MOV RDI,qword ptr [RDI + 0x1d0] MOV RSI,RBX CALL 0x0018685d MOV RDI,RBX MOVSD XMM0,qword ptr [RSP] CALL 0x0018a58a LAB_00144136: TEST EAX,EAX JZ 0x0014417b MOV RAX,qword ptr [RBX] TEST RAX,RAX JZ 0x00144157 MOV RSI,qword ptr [RBX + 0x20] TEST RSI,RSI JZ 0x00144157 MOV RDI,qword ptr [RAX] XOR EBX,EBX XOR EDX,EDX CALL qword ptr [RAX + 0x8] JMP 0x0014417b LAB_00144157: XOR EBX,EBX JMP 0x0014417b LAB_0014415b: ADD R14,0x8 MOV RBX,R14 JMP 0x0014417b LAB_00144164: MOV RDI,qword ptr [RDI + 0x1d0] MOV RSI,RBX CALL 0x0018685d MOV RDI,RBX CALL 0x001869ad LAB_0014417b: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R14 RET
long * JS_ToBigInt1(long param_1,long *param_2,long param_3,uint param_4) { long *plVar1; int8 *puVar2; int iVar3; if (param_4 < 3) { bf_init(*(int8 *)(param_1 + 0x1d0),param_2); iVar3 = bf_set_si(param_2,(long)(int)param_3); } else { if (param_4 == 0xfffffff7) { return (long *)(param_3 + 8); } if (param_4 != 7) { bf_init(*(int8 *)(param_1 + 0x1d0),param_2); bf_set_nan(param_2); return param_2; } bf_init(*(int8 *)(param_1 + 0x1d0),param_2); iVar3 = bf_set_float64(param_3,param_2); } if (iVar3 != 0) { puVar2 = (int8 *)*param_2; if ((puVar2 == (int8 *)0x0) || (plVar1 = param_2 + 4, *plVar1 == 0)) { param_2 = (long *)0x0; } else { param_2 = (long *)0x0; (*(code *)puVar2[1])(*puVar2,*plVar1,0); } } return param_2; }
38,778
minja::Value::to_int() const
monkey531[P]llama/common/minja.hpp
int64_t to_int() const { if (is_null()) return 0; if (is_boolean()) return get<bool>() ? 1 : 0; if (is_number()) return static_cast<int64_t>(get<double>()); if (is_string()) { try { return std::stol(get<std::string>()); } catch (const std::exception &) { return 0; } } return 0; }
O2
cpp
minja::Value::to_int() const: pushq %r14 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx callq 0x6f26a testb %al, %al je 0x8dd77 xorl %ebx, %ebx jmp 0x8ddcf movb 0x40(%rbx), %al cmpb $0x4, %al jne 0x8dd8b movq %rbx, %rdi callq 0x6f5fe movzbl %al, %ebx jmp 0x8ddcf leal -0x5(%rax), %ecx cmpb $0x2, %cl ja 0x8dda2 movq %rbx, %rdi callq 0x6eb9c cvttsd2si %xmm0, %rbx jmp 0x8ddcf cmpb $0x3, %al jne 0x8dd73 leaq 0x8(%rsp), %rdi movq %rbx, %rsi callq 0x6f6b4 leaq 0x8(%rsp), %rdi pushq $0xa popq %rdx xorl %esi, %esi callq 0x8de0f movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x25298 movq %rbx, %rax addq $0x28, %rsp popq %rbx popq %r14 retq movq %rdx, %r14 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x25298 jmp 0x8ddf2 movq %rdx, %r14 movq %rax, %rbx movq %rbx, %rdi cmpl $0x1, %r14d jne 0x8de0a callq 0x24390 callq 0x24eb0 jmp 0x8dd73 callq 0x25010
_ZNK5minja5Value6to_intEv: push r14 push rbx sub rsp, 28h mov rbx, rdi call _ZNK5minja5Value7is_nullEv; minja::Value::is_null(void) test al, al jz short loc_8DD77 loc_8DD73: xor ebx, ebx jmp short loc_8DDCF loc_8DD77: mov al, [rbx+40h] cmp al, 4 jnz short loc_8DD8B mov rdi, rbx call _ZNK5minja5Value3getIbEET_v; minja::Value::get<bool>(void) movzx ebx, al jmp short loc_8DDCF loc_8DD8B: lea ecx, [rax-5] cmp cl, 2 ja short loc_8DDA2 mov rdi, rbx call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) cvttsd2si rbx, xmm0 jmp short loc_8DDCF loc_8DDA2: cmp al, 3 jnz short loc_8DD73 lea rdi, [rsp+38h+var_30] mov rsi, rbx call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void) lea rdi, [rsp+38h+var_30] push 0Ah pop rdx xor esi, esi call _ZNSt7__cxx114stolERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi; std::stol(std::string const&,ulong *,int) mov rbx, rax lea rdi, [rsp+38h+var_30]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_8DDCF: mov rax, rbx add rsp, 28h pop rbx pop r14 retn mov r14, rdx mov rbx, rax lea rdi, [rsp+38h+var_30]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_8DDF2 mov r14, rdx mov rbx, rax loc_8DDF2: mov rdi, rbx; void * cmp r14d, 1 jnz short loc_8DE0A call ___cxa_begin_catch call ___cxa_end_catch jmp loc_8DD73 loc_8DE0A: call __Unwind_Resume
long long minja::Value::to_int(minja::Value *this, double a2) { long long v2; // rbx char v3; // al _BYTE v5[48]; // [rsp+8h] [rbp-30h] BYREF if ( !minja::Value::is_null(this) ) { v3 = *((_BYTE *)this + 64); if ( v3 == 4 ) return (unsigned __int8)minja::Value::get<bool>(this); if ( (unsigned __int8)(v3 - 5) <= 2u ) { minja::Value::get<double>(this); return (unsigned int)(int)a2; } if ( v3 == 3 ) { minja::Value::get<std::string>((long long)v5, this); v2 = std::stol(v5, 0LL, 10LL); std::string::~string(v5); return v2; } } return 0LL; }
to_int: PUSH R14 PUSH RBX SUB RSP,0x28 MOV RBX,RDI CALL 0x0016f26a TEST AL,AL JZ 0x0018dd77 LAB_0018dd73: XOR EBX,EBX JMP 0x0018ddcf LAB_0018dd77: MOV AL,byte ptr [RBX + 0x40] CMP AL,0x4 JNZ 0x0018dd8b MOV RDI,RBX CALL 0x0016f5fe MOVZX EBX,AL JMP 0x0018ddcf LAB_0018dd8b: LEA ECX,[RAX + -0x5] CMP CL,0x2 JA 0x0018dda2 MOV RDI,RBX CALL 0x0016eb9c CVTTSD2SI RBX,XMM0 JMP 0x0018ddcf LAB_0018dda2: CMP AL,0x3 JNZ 0x0018dd73 LAB_0018dda6: LEA RDI,[RSP + 0x8] MOV RSI,RBX CALL 0x0016f6b4 LAB_0018ddb3: LEA RDI,[RSP + 0x8] PUSH 0xa POP RDX XOR ESI,ESI CALL 0x0018de0f LAB_0018ddc2: MOV RBX,RAX LEA RDI,[RSP + 0x8] CALL 0x00125298 LAB_0018ddcf: MOV RAX,RBX ADD RSP,0x28 POP RBX POP R14 RET
/* minja::Value::to_int() const */ ulong __thiscall minja::Value::to_int(Value *this) { Value VVar1; char cVar2; bool bVar3; ulong uVar4; double dVar5; string local_30 [32]; cVar2 = is_null(this); if (cVar2 == '\0') { VVar1 = this[0x40]; if (VVar1 == (Value)0x4) { bVar3 = get<bool>(this); return (ulong)bVar3; } if ((byte)((char)VVar1 - 5U) < 3) { dVar5 = get<double>(this); return (long)dVar5; } if (VVar1 == (Value)0x3) { /* try { // try from 0018dda6 to 0018ddb2 has its CatchHandler @ 0018ddec */ get<std::__cxx11::string>(); /* try { // try from 0018ddb3 to 0018ddc1 has its CatchHandler @ 0018ddda */ uVar4 = std::__cxx11::stol(local_30,(ulong *)0x0,10); std::__cxx11::string::~string(local_30); return uVar4; } } return 0; }
38,779
ma_calc_bin_pack_key_length
eloqsql/storage/maria/ma_search.c
int _ma_calc_bin_pack_key_length(const MARIA_KEY *int_key, uint nod_flag, uchar *next_key, uchar *org_key, uchar *prev_key, MARIA_KEY_PARAM *s_temp) { uint length,key_length,ref_length; const uchar *key= int_key->data; s_temp->totlength= key_length= (int_key->data_length + int_key->ref_length+ nod_flag); #ifdef HAVE_valgrind s_temp->n_length= s_temp->n_ref_length=0; /* For valgrind */ #endif s_temp->key=key; s_temp->prev_key=org_key; if (prev_key) /* If not first key in block */ { /* pack key against previous key */ /* As keys may be identical when running a sort in maria_chk, we have to guard against the case where keys may be identical */ const uchar *end; end=key+key_length; for ( ; *key == *prev_key && key < end; key++,prev_key++) ; s_temp->ref_length= ref_length=(uint) (key-s_temp->key); length=key_length - ref_length + get_pack_length(ref_length); } else { /* No previous key */ s_temp->ref_length=ref_length=0; length=key_length+1; } if ((s_temp->next_key_pos=next_key)) /* If another key after */ { /* pack key against next key */ uint next_length,next_length_pack; get_key_pack_length(next_length,next_length_pack,next_key); /* If first key and next key is packed (only on delete) */ if (!prev_key && org_key && next_length) { const uchar *end; for (key= s_temp->key, end=key+next_length ; *key == *org_key && key < end; key++,org_key++) ; ref_length= (uint) (key - s_temp->key); } if (next_length > ref_length) { /* We put a key with different case between two keys with the same prefix Extend next key to have same prefix as this key */ s_temp->n_ref_length= ref_length; s_temp->prev_length= next_length-ref_length; s_temp->prev_key+= ref_length; return s_temp->move_length= ((int) (length+ s_temp->prev_length - next_length_pack + get_pack_length(ref_length))); } /* Check how many characters are identical to next key */ key= s_temp->key+next_length; s_temp->prev_length= 0; while (*key++ == *next_key++) ; if ((ref_length= (uint) (key - s_temp->key)-1) == next_length) { s_temp->next_key_pos=0; return (s_temp->move_length= length); /* Can't pack next key */ } s_temp->n_ref_length=ref_length; return s_temp->move_length= (int) (length-(ref_length - next_length) - next_length_pack + get_pack_length(ref_length)); } return (s_temp->move_length= (int) length); }
O3
c
ma_calc_bin_pack_key_length: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %esi, %eax movq (%rdi), %rsi addl 0x10(%rdi), %eax addl 0x14(%rdi), %eax movl %eax, 0x30(%r9) movq %rsi, (%r9) movq %rcx, 0x8(%r9) testq %r8, %r8 je 0x408c3 movb (%rsi), %dil cmpb (%r8), %dil sete %dil testl %eax, %eax setne %r11b andb %dil, %r11b movq %rsi, %r10 cmpb $0x1, %r11b jne 0x408a5 movl %eax, %edi addq %rsi, %rdi leaq 0x1(%rsi), %rbx leaq 0x1(%r8), %r11 movb (%rbx), %r14b leaq 0x1(%rbx), %r10 cmpb (%r11), %r14b jne 0x408a2 incq %r11 cmpq %rdi, %rbx movq %r10, %rbx jb 0x4088b decq %r10 subl %esi, %r10d movl %r10d, 0x20(%r9) subl %r10d, %eax xorl %edi, %edi cmpl $0xff, %r10d setae %dil leal (%rax,%rdi,2), %eax incl %eax jmp 0x408d0 movl $0x0, 0x20(%r9) incl %eax xorl %r10d, %r10d movq %rdx, 0x10(%r9) testq %rdx, %rdx je 0x409d6 movzbl (%rdx), %r11d cmpl $0xff, %r11d je 0x408f6 movl $0xffffffff, %edi # imm = 0xFFFFFFFF movl $0x1, %ebx jmp 0x4090c movzwl 0x1(%rdx), %edi rolw $0x8, %di movzwl %di, %r11d movl $0xfffffffd, %edi # imm = 0xFFFFFFFD movl $0x3, %ebx testq %rcx, %rcx je 0x40951 testq %r8, %r8 jne 0x40951 testl %r11d, %r11d je 0x40951 movb (%rsi), %r8b movq %rsi, %r10 cmpb (%rcx), %r8b jne 0x4094e movl %r11d, %r8d addq %rsi, %r8 leaq 0x1(%rsi), %r15 leaq 0x1(%rcx), %r14 movb (%r15), %r12b leaq 0x1(%r15), %r10 cmpb (%r14), %r12b jne 0x4094b incq %r14 cmpq %r8, %r15 movq %r10, %r15 jb 0x40934 decq %r10 subl %esi, %r10d movl %r11d, %r8d subl %r10d, %r8d jbe 0x40983 movl %r10d, 0x28(%r9) movl %r8d, 0x38(%r9) movl %r10d, %edx addq %rdx, %rcx movq %rcx, 0x8(%r9) xorl %ecx, %ecx cmpl $0xff, %r10d setae %cl addl %eax, %edi addl %r8d, %edi leal (%rdi,%rcx,2), %eax incl %eax jmp 0x409d6 addq %rbx, %rdx movl %r11d, %r8d addq %r8, %rsi movl $0x0, 0x38(%r9) xorl %ecx, %ecx movq %rcx, %r10 movb (%rsi,%rcx), %r11b incq %rcx cmpb (%rdx,%r10), %r11b je 0x40996 cmpl $0x1, %ecx jne 0x409b5 movq $0x0, 0x10(%r9) jmp 0x409d6 leaq (%r8,%rcx), %rdx decq %rdx movl %edx, 0x28(%r9) xorl %esi, %esi cmpl $0xff, %edx setae %sil addl %edi, %eax leal (%rax,%rsi,2), %eax subl %ecx, %eax addl $0x2, %eax movl %eax, 0x44(%r9) popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
_ma_calc_bin_pack_key_length: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov eax, esi mov rsi, [rdi] add eax, [rdi+10h] add eax, [rdi+14h] mov [r9+30h], eax mov [r9], rsi mov [r9+8], rcx test r8, r8 jz short loc_408C3 mov dil, [rsi] cmp dil, [r8] setz dil test eax, eax setnz r11b and r11b, dil mov r10, rsi cmp r11b, 1 jnz short loc_408A5 mov edi, eax add rdi, rsi lea rbx, [rsi+1] lea r11, [r8+1] loc_4088B: mov r14b, [rbx] lea r10, [rbx+1] cmp r14b, [r11] jnz short loc_408A2 inc r11 cmp rbx, rdi mov rbx, r10 jb short loc_4088B loc_408A2: dec r10 loc_408A5: sub r10d, esi mov [r9+20h], r10d sub eax, r10d xor edi, edi cmp r10d, 0FFh setnb dil lea eax, [rax+rdi*2] inc eax jmp short loc_408D0 loc_408C3: mov dword ptr [r9+20h], 0 inc eax xor r10d, r10d loc_408D0: mov [r9+10h], rdx test rdx, rdx jz loc_409D6 movzx r11d, byte ptr [rdx] cmp r11d, 0FFh jz short loc_408F6 mov edi, 0FFFFFFFFh mov ebx, 1 jmp short loc_4090C loc_408F6: movzx edi, word ptr [rdx+1] rol di, 8 movzx r11d, di mov edi, 0FFFFFFFDh mov ebx, 3 loc_4090C: test rcx, rcx jz short loc_40951 test r8, r8 jnz short loc_40951 test r11d, r11d jz short loc_40951 mov r8b, [rsi] mov r10, rsi cmp r8b, [rcx] jnz short loc_4094E mov r8d, r11d add r8, rsi lea r15, [rsi+1] lea r14, [rcx+1] loc_40934: mov r12b, [r15] lea r10, [r15+1] cmp r12b, [r14] jnz short loc_4094B inc r14 cmp r15, r8 mov r15, r10 jb short loc_40934 loc_4094B: dec r10 loc_4094E: sub r10d, esi loc_40951: mov r8d, r11d sub r8d, r10d jbe short loc_40983 mov [r9+28h], r10d mov [r9+38h], r8d mov edx, r10d add rcx, rdx mov [r9+8], rcx xor ecx, ecx cmp r10d, 0FFh setnb cl add edi, eax add edi, r8d lea eax, [rdi+rcx*2] inc eax jmp short loc_409D6 loc_40983: add rdx, rbx mov r8d, r11d add rsi, r8 mov dword ptr [r9+38h], 0 xor ecx, ecx loc_40996: mov r10, rcx mov r11b, [rsi+rcx] inc rcx cmp r11b, [rdx+r10] jz short loc_40996 cmp ecx, 1 jnz short loc_409B5 mov qword ptr [r9+10h], 0 jmp short loc_409D6 loc_409B5: lea rdx, [r8+rcx] dec rdx mov [r9+28h], edx xor esi, esi cmp edx, 0FFh setnb sil add eax, edi lea eax, [rax+rsi*2] sub eax, ecx add eax, 2 loc_409D6: mov [r9+44h], eax pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long ma_calc_bin_pack_key_length( long long a1, int a2, unsigned __int8 *a3, _BYTE *a4, _BYTE *a5, long long a6) { _BYTE *v7; // rsi unsigned int v8; // eax int v9; // r10d _BYTE *v10; // rbx _BYTE *v11; // r11 int v12; // r10d bool v13; // cf unsigned int v14; // r10d long long result; // rax unsigned int v16; // r11d int v17; // edi long long v18; // rbx int v19; // r10d _BYTE *v20; // r15 _BYTE *v21; // r14 int v22; // r10d int v23; // r8d unsigned __int8 *v24; // rdx unsigned int v25; // r8d _BYTE *v26; // rsi long long v27; // rcx long long v28; // r10 char v29; // r11 unsigned int v30; // edx v7 = *(_BYTE **)a1; v8 = *(_DWORD *)(a1 + 20) + *(_DWORD *)(a1 + 16) + a2; *(_DWORD *)(a6 + 48) = v8; *(_QWORD *)a6 = v7; *(_QWORD *)(a6 + 8) = a4; if ( a5 ) { v9 = (int)v7; if ( *v7 == *a5 && v8 != 0 ) { v10 = v7 + 1; v11 = a5 + 1; do { v12 = (_DWORD)v10 + 1; if ( *v10 != *v11 ) break; ++v11; v13 = v10++ < &v7[v8]; } while ( v13 ); v9 = v12 - 1; } v14 = v9 - (_DWORD)v7; *(_DWORD *)(a6 + 32) = v14; result = v8 - v14 + 2 * (v14 >= 0xFF) + 1; } else { *(_DWORD *)(a6 + 32) = 0; result = v8 + 1; v14 = 0; } *(_QWORD *)(a6 + 16) = a3; if ( a3 ) { v16 = *a3; if ( v16 == 255 ) { v16 = (unsigned __int16)__ROL2__(*(_WORD *)(a3 + 1), 8); v17 = -3; v18 = 3LL; } else { v17 = -1; v18 = 1LL; } if ( a4 && !a5 && v16 ) { v19 = (int)v7; if ( *v7 == *a4 ) { v20 = v7 + 1; v21 = a4 + 1; do { v22 = (_DWORD)v20 + 1; if ( *v20 != *v21 ) break; ++v21; v13 = v20++ < &v7[v16]; } while ( v13 ); v19 = v22 - 1; } v14 = v19 - (_DWORD)v7; } v23 = v16 - v14; if ( v16 <= v14 ) { v24 = &a3[v18]; v25 = v16; v26 = &v7[v16]; *(_DWORD *)(a6 + 56) = 0; v27 = 0LL; do { v28 = v27; v29 = v26[v27++]; } while ( v29 == v24[v28] ); if ( (_DWORD)v27 == 1 ) { *(_QWORD *)(a6 + 16) = 0LL; } else { v30 = v25 + v27 - 1; *(_DWORD *)(a6 + 40) = v30; result = v17 + (_DWORD)result + 2 * (v30 >= 0xFF) - (unsigned int)v27 + 2; } } else { *(_DWORD *)(a6 + 40) = v14; *(_DWORD *)(a6 + 56) = v23; *(_QWORD *)(a6 + 8) = &a4[v14]; result = v23 + (_DWORD)result + v17 + 2 * (unsigned int)(v14 >= 0xFF) + 1; } } *(_DWORD *)(a6 + 68) = result; return result; }
_ma_calc_bin_pack_key_length: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV EAX,ESI MOV RSI,qword ptr [RDI] ADD EAX,dword ptr [RDI + 0x10] ADD EAX,dword ptr [RDI + 0x14] MOV dword ptr [R9 + 0x30],EAX MOV qword ptr [R9],RSI MOV qword ptr [R9 + 0x8],RCX TEST R8,R8 JZ 0x001408c3 MOV DIL,byte ptr [RSI] CMP DIL,byte ptr [R8] SETZ DIL TEST EAX,EAX SETNZ R11B AND R11B,DIL MOV R10,RSI CMP R11B,0x1 JNZ 0x001408a5 MOV EDI,EAX ADD RDI,RSI LEA RBX,[RSI + 0x1] LEA R11,[R8 + 0x1] LAB_0014088b: MOV R14B,byte ptr [RBX] LEA R10,[RBX + 0x1] CMP R14B,byte ptr [R11] JNZ 0x001408a2 INC R11 CMP RBX,RDI MOV RBX,R10 JC 0x0014088b LAB_001408a2: DEC R10 LAB_001408a5: SUB R10D,ESI MOV dword ptr [R9 + 0x20],R10D SUB EAX,R10D XOR EDI,EDI CMP R10D,0xff SETNC DIL LEA EAX,[RAX + RDI*0x2] INC EAX JMP 0x001408d0 LAB_001408c3: MOV dword ptr [R9 + 0x20],0x0 INC EAX XOR R10D,R10D LAB_001408d0: MOV qword ptr [R9 + 0x10],RDX TEST RDX,RDX JZ 0x001409d6 MOVZX R11D,byte ptr [RDX] CMP R11D,0xff JZ 0x001408f6 MOV EDI,0xffffffff MOV EBX,0x1 JMP 0x0014090c LAB_001408f6: MOVZX EDI,word ptr [RDX + 0x1] ROL DI,0x8 MOVZX R11D,DI MOV EDI,0xfffffffd MOV EBX,0x3 LAB_0014090c: TEST RCX,RCX JZ 0x00140951 TEST R8,R8 JNZ 0x00140951 TEST R11D,R11D JZ 0x00140951 MOV R8B,byte ptr [RSI] MOV R10,RSI CMP R8B,byte ptr [RCX] JNZ 0x0014094e MOV R8D,R11D ADD R8,RSI LEA R15,[RSI + 0x1] LEA R14,[RCX + 0x1] LAB_00140934: MOV R12B,byte ptr [R15] LEA R10,[R15 + 0x1] CMP R12B,byte ptr [R14] JNZ 0x0014094b INC R14 CMP R15,R8 MOV R15,R10 JC 0x00140934 LAB_0014094b: DEC R10 LAB_0014094e: SUB R10D,ESI LAB_00140951: MOV R8D,R11D SUB R8D,R10D JBE 0x00140983 MOV dword ptr [R9 + 0x28],R10D MOV dword ptr [R9 + 0x38],R8D MOV EDX,R10D ADD RCX,RDX MOV qword ptr [R9 + 0x8],RCX XOR ECX,ECX CMP R10D,0xff SETNC CL ADD EDI,EAX ADD EDI,R8D LEA EAX,[RDI + RCX*0x2] INC EAX JMP 0x001409d6 LAB_00140983: ADD RDX,RBX MOV R8D,R11D ADD RSI,R8 MOV dword ptr [R9 + 0x38],0x0 XOR ECX,ECX LAB_00140996: MOV R10,RCX MOV R11B,byte ptr [RSI + RCX*0x1] INC RCX CMP R11B,byte ptr [RDX + R10*0x1] JZ 0x00140996 CMP ECX,0x1 JNZ 0x001409b5 MOV qword ptr [R9 + 0x10],0x0 JMP 0x001409d6 LAB_001409b5: LEA RDX,[R8 + RCX*0x1] DEC RDX MOV dword ptr [R9 + 0x28],EDX XOR ESI,ESI CMP EDX,0xff SETNC SIL ADD EAX,EDI LEA EAX,[RAX + RSI*0x2] SUB EAX,ECX ADD EAX,0x2 LAB_001409d6: MOV dword ptr [R9 + 0x44],EAX POP RBX POP R12 POP R14 POP R15 POP RBP RET
void _ma_calc_bin_pack_key_length (int8 *param_1,int param_2,byte *param_3,char *param_4,char *param_5, int8 *param_6) { char *pcVar1; char *pcVar2; long lVar3; long lVar4; uint uVar5; long lVar6; long lVar7; char *pcVar8; long lVar9; int iVar10; int iVar11; int iVar12; uint uVar13; int iVar14; char *pcVar15; bool bVar16; pcVar2 = (char *)*param_1; uVar5 = param_2 + *(int *)(param_1 + 2) + *(int *)((long)param_1 + 0x14); *(uint *)(param_6 + 6) = uVar5; *param_6 = pcVar2; param_6[1] = param_4; iVar11 = (int)pcVar2; if (param_5 == (char *)0x0) { *(int4 *)(param_6 + 4) = 0; uVar13 = 0; } else { iVar12 = iVar11; if (uVar5 != 0 && *pcVar2 == *param_5) { pcVar15 = param_5 + 1; pcVar8 = pcVar2 + 1; do { pcVar1 = pcVar8 + 1; if (*pcVar8 != *pcVar15) break; pcVar15 = pcVar15 + 1; bVar16 = pcVar8 < pcVar2 + uVar5; pcVar8 = pcVar1; } while (bVar16); iVar12 = (int)pcVar1 + -1; } uVar13 = iVar12 - iVar11; *(uint *)(param_6 + 4) = uVar13; uVar5 = (uVar5 - uVar13) + (uint)(0xfe < uVar13) * 2; } iVar12 = uVar5 + 1; param_6[2] = param_3; if (param_3 != (byte *)0x0) { uVar5 = (uint)*param_3; if (*param_3 == 0xff) { uVar5 = (uint)(ushort)(*(ushort *)(param_3 + 1) << 8 | *(ushort *)(param_3 + 1) >> 8); iVar10 = -3; lVar9 = 3; } else { iVar10 = -1; lVar9 = 1; } if (((param_4 != (char *)0x0) && (param_5 == (char *)0x0)) && (uVar5 != 0)) { iVar14 = iVar11; if (*pcVar2 == *param_4) { pcVar15 = param_4 + 1; pcVar8 = pcVar2 + 1; do { pcVar1 = pcVar8 + 1; if (*pcVar8 != *pcVar15) break; pcVar15 = pcVar15 + 1; bVar16 = pcVar8 < pcVar2 + uVar5; pcVar8 = pcVar1; } while (bVar16); iVar14 = (int)pcVar1 + -1; } uVar13 = iVar14 - iVar11; } iVar11 = uVar5 - uVar13; if (uVar5 < uVar13 || iVar11 == 0) { *(int4 *)(param_6 + 7) = 0; lVar6 = 0; do { lVar4 = lVar6 + (ulong)uVar5; lVar7 = lVar6 + 1; lVar3 = lVar6 + lVar9; lVar6 = lVar7; } while (pcVar2[lVar4] == param_3[lVar3]); iVar11 = (int)lVar7; if (iVar11 == 1) { param_6[2] = 0; } else { uVar5 = (uVar5 + iVar11) - 1; *(uint *)(param_6 + 5) = uVar5; iVar12 = ((iVar12 + iVar10 + (uint)(0xfe < uVar5) * 2) - iVar11) + 2; } } else { *(uint *)(param_6 + 5) = uVar13; *(int *)(param_6 + 7) = iVar11; param_6[1] = param_4 + uVar13; iVar12 = iVar10 + iVar12 + iVar11 + (uint)(0xfe < uVar13) * 2 + 1; } } *(int *)((long)param_6 + 0x44) = iVar12; return; }
38,780
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::key(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
monkey531[P]llama/common/json.hpp
bool key(string_t& val) { BasicJsonType k = BasicJsonType(val); // check callback for key const bool keep = callback(static_cast<int>(ref_stack.size()), parse_event_t::key, k); key_keep_stack.push_back(keep); // add discarded value at given key and store the reference for later if (keep && ref_stack.back()) { object_element = &(ref_stack.back()->m_data.m_value.object->operator[](val) = discarded); } return true; }
O0
cpp
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::key(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&): subq $0x78, %rsp movq %rdi, 0x70(%rsp) movq %rsi, 0x68(%rsp) movq 0x70(%rsp), %rax movq %rax, 0x10(%rsp) movq 0x68(%rsp), %rsi leaq 0x58(%rsp), %rdi movq %rdi, 0x20(%rsp) callq 0xf7820 movq 0x10(%rsp), %rdi movq %rdi, %rax subq $-0x80, %rax movq %rax, 0x18(%rsp) addq $0x8, %rdi callq 0xf3a90 movq 0x18(%rsp), %rdi movq 0x20(%rsp), %rcx movl %eax, %esi movl $0x4, %edx callq 0xf3a30 movb %al, 0x2f(%rsp) jmp 0xf2fc2 movq 0x10(%rsp), %rdi movb 0x2f(%rsp), %al andb $0x1, %al movb %al, 0x57(%rsp) addq $0x48, %rdi movzbl 0x57(%rsp), %esi andl $0x1, %esi callq 0x71190 jmp 0xf2fe4 testb $0x1, 0x57(%rsp) je 0xf3096 movq 0x10(%rsp), %rdi addq $0x8, %rdi callq 0xf4080 cmpq $0x0, (%rax) je 0xf3096 movq 0x10(%rsp), %rsi addq $0xa8, %rsi leaq 0x30(%rsp), %rdi callq 0xcb4a0 jmp 0xf301f movq 0x10(%rsp), %rdi addq $0x8, %rdi callq 0xf4080 movq (%rax), %rax movq 0x8(%rax), %rdi movq 0x68(%rsp), %rsi callq 0xf78a0 movq %rax, 0x8(%rsp) jmp 0xf3045 movq 0x8(%rsp), %rdi leaq 0x30(%rsp), %rsi callq 0xcafc0 movq %rax, %rcx movq 0x10(%rsp), %rax movq %rcx, 0x70(%rax) leaq 0x30(%rsp), %rdi callq 0xcb040 jmp 0xf3096 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x48(%rsp) movl %eax, 0x44(%rsp) jmp 0xf30a9 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x48(%rsp) movl %eax, 0x44(%rsp) leaq 0x30(%rsp), %rdi callq 0xcb040 jmp 0xf30a9 leaq 0x58(%rsp), %rdi callq 0xcb040 movb $0x1, %al andb $0x1, %al addq $0x78, %rsp retq leaq 0x58(%rsp), %rdi callq 0xcb040 movq 0x48(%rsp), %rdi callq 0x56a10 nopl (%rax)
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE3keyERSB_: sub rsp, 78h mov [rsp+78h+var_8], rdi mov [rsp+78h+var_10], rsi mov rax, [rsp+78h+var_8] mov [rsp+78h+var_68], rax mov rsi, [rsp+78h+var_10] lea rdi, [rsp+78h+var_20] mov [rsp+78h+var_58], rdi call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_ mov rdi, [rsp+78h+var_68] mov rax, rdi sub rax, 0FFFFFFFFFFFFFF80h mov [rsp+78h+var_60], rax add rdi, 8 call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4sizeEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::size(void) mov rdi, [rsp+78h+var_60] mov rcx, [rsp+78h+var_58] mov esi, eax mov edx, 4 call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::operator()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &) mov [rsp+78h+var_49], al jmp short $+2 loc_F2FC2: mov rdi, [rsp+78h+var_68] mov al, [rsp+78h+var_49] and al, 1 mov [rsp+78h+var_21], al add rdi, 48h ; 'H' movzx esi, [rsp+78h+var_21] and esi, 1 call _ZNSt6vectorIbSaIbEE9push_backEb; std::vector<bool>::push_back(bool) jmp short $+2 loc_F2FE4: test [rsp+78h+var_21], 1 jz loc_F3096 mov rdi, [rsp+78h+var_68] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) cmp qword ptr [rax], 0 jz loc_F3096 mov rsi, [rsp+78h+var_68] add rsi, 0A8h lea rdi, [rsp+78h+var_48] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) jmp short $+2 loc_F301F: mov rdi, [rsp+78h+var_68] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *>>::back(void) mov rax, [rax] mov rdi, [rax+8] mov rsi, [rsp+78h+var_10] call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEEixERSH_; nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator[](std::string const&) mov [rsp+78h+var_70], rax jmp short $+2 loc_F3045: mov rdi, [rsp+78h+var_70] lea rsi, [rsp+78h+var_48] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rcx, rax mov rax, [rsp+78h+var_68] mov [rax+70h], rcx lea rdi, [rsp+78h+var_48] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() jmp short loc_F3096 mov rcx, rax mov eax, edx mov [rsp+arg_40], rcx mov [rsp+arg_3C], eax jmp short loc_F30A9 mov rcx, rax mov eax, edx mov [rsp+arg_40], rcx mov [rsp+arg_3C], eax lea rdi, [rsp+arg_28] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() jmp short loc_F30A9 loc_F3096: lea rdi, [rsp+78h+var_20] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() mov al, 1 and al, 1 add rsp, 78h retn loc_F30A9: lea rdi, [rsp+arg_50] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() mov rdi, [rsp+arg_40] call __Unwind_Resume
char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::key( long long a1, long long a2, int a3, int a4, int a5, int a6) { unsigned int v6; // eax long long v7; // rax int v8; // edx int v9; // ecx int v10; // r8d int v11; // r9d int v13; // [rsp+0h] [rbp-78h] int v14; // [rsp+8h] [rbp-70h] long long v15; // [rsp+8h] [rbp-70h] long long v16; // [rsp+10h] [rbp-68h] _BYTE v17[39]; // [rsp+30h] [rbp-48h] BYREF char v18; // [rsp+57h] [rbp-21h] _BYTE v19[16]; // [rsp+58h] [rbp-20h] BYREF long long v20; // [rsp+68h] [rbp-10h] long long v21; // [rsp+70h] [rbp-8h] v21 = a1; v20 = a2; ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_( (unsigned int)v19, a2, a3, a4, a5, a6); v6 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::size(a1 + 8); v18 = std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::operator()( a1 + 128, v6, 4LL, v19) & 1; std::vector<bool>::push_back(a1 + 72, v18); if ( (v18 & 1) != 0 && *(_QWORD *)std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8) ) { nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( (long long)v17, a1 + 168); v7 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *>>::back(a1 + 8); v15 = nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator[]( *(_QWORD *)(*(_QWORD *)v7 + 8LL), v20, v8, v9, v10, v11, v13, v14, a1, (int)a1 + 128, (unsigned int)v19); *(_QWORD *)(v16 + 112) = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=( v15, (long long)v17); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v17); } nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v19); return 1; }
key: SUB RSP,0x78 MOV qword ptr [RSP + 0x70],RDI MOV qword ptr [RSP + 0x68],RSI MOV RAX,qword ptr [RSP + 0x70] MOV qword ptr [RSP + 0x10],RAX MOV RSI,qword ptr [RSP + 0x68] LEA RDI,[RSP + 0x58] MOV qword ptr [RSP + 0x20],RDI CALL 0x001f7820 MOV RDI,qword ptr [RSP + 0x10] MOV RAX,RDI SUB RAX,-0x80 MOV qword ptr [RSP + 0x18],RAX ADD RDI,0x8 CALL 0x001f3a90 MOV RDI,qword ptr [RSP + 0x18] MOV RCX,qword ptr [RSP + 0x20] MOV ESI,EAX LAB_001f2fb2: MOV EDX,0x4 CALL 0x001f3a30 MOV byte ptr [RSP + 0x2f],AL JMP 0x001f2fc2 LAB_001f2fc2: MOV RDI,qword ptr [RSP + 0x10] MOV AL,byte ptr [RSP + 0x2f] AND AL,0x1 MOV byte ptr [RSP + 0x57],AL ADD RDI,0x48 MOVZX ESI,byte ptr [RSP + 0x57] AND ESI,0x1 CALL 0x00171190 JMP 0x001f2fe4 LAB_001f2fe4: TEST byte ptr [RSP + 0x57],0x1 JZ 0x001f3096 MOV RDI,qword ptr [RSP + 0x10] ADD RDI,0x8 CALL 0x001f4080 CMP qword ptr [RAX],0x0 JZ 0x001f3096 MOV RSI,qword ptr [RSP + 0x10] ADD RSI,0xa8 LEA RDI,[RSP + 0x30] CALL 0x001cb4a0 JMP 0x001f301f LAB_001f301f: MOV RDI,qword ptr [RSP + 0x10] ADD RDI,0x8 CALL 0x001f4080 MOV RAX,qword ptr [RAX] MOV RDI,qword ptr [RAX + 0x8] MOV RSI,qword ptr [RSP + 0x68] LAB_001f3039: CALL 0x001f78a0 LAB_001f303e: MOV qword ptr [RSP + 0x8],RAX JMP 0x001f3045 LAB_001f3045: MOV RDI,qword ptr [RSP + 0x8] LEA RSI,[RSP + 0x30] CALL 0x001cafc0 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RAX + 0x70],RCX LEA RDI,[RSP + 0x30] CALL 0x001cb040 JMP 0x001f3096 LAB_001f3096: LEA RDI,[RSP + 0x58] CALL 0x001cb040 MOV AL,0x1 AND AL,0x1 ADD RSP,0x78 RET
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::key(std::__cxx11::string&) */ int8 __thiscall nlohmann::json_abi_v3_11_3::detail:: json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::key(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *this,string *param_1) { int4 uVar1; long *plVar2; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *pbVar3; int8 uVar4; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_48 [39]; byte local_21; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_20 [16]; string *local_10; json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *local_8; local_10 = param_1; local_8 = this; _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_ (local_20,param_1); uVar1 = std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::size((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); /* try { // try from 001f2fb2 to 001f301c has its CatchHandler @ 001f306c */ local_21 = std:: function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)> ::operator()((function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)> *)(this + 0x80),uVar1,4,local_20); local_21 = local_21 & 1; std::vector<bool,std::allocator<bool>>::push_back ((vector<bool,std::allocator<bool>> *)(this + 0x48),(bool)local_21); if ((local_21 & 1) != 0) { plVar2 = (long *)std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); if (*plVar2 != 0) { basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(local_48,this + 0xa8); plVar2 = (long *)std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); /* try { // try from 001f3039 to 001f303d has its CatchHandler @ 001f307c */ pbVar3 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::operator[](*(ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> **)(*plVar2 + 8),local_10); uVar4 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=(pbVar3,local_48); *(int8 *)(this + 0x70) = uVar4; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::~basic_json(local_48); } } basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::~basic_json(local_20); return 1; }
38,781
get_simple_key_cache_statistics
eloqsql/mysys/mf_keycache.c
static void get_simple_key_cache_statistics(SIMPLE_KEY_CACHE_CB *keycache, uint partition_no __attribute__((unused)), KEY_CACHE_STATISTICS *keycache_stats) { DBUG_ENTER("simple_get_key_cache_statistics"); keycache_stats->mem_size= (longlong) keycache->key_cache_mem_size; keycache_stats->block_size= (longlong) keycache->key_cache_block_size; keycache_stats->blocks_used= keycache->blocks_used; keycache_stats->blocks_unused= keycache->blocks_unused; keycache_stats->blocks_changed= keycache->global_blocks_changed; keycache_stats->blocks_warm= keycache->warm_blocks; keycache_stats->read_requests= keycache->global_cache_r_requests; keycache_stats->reads= keycache->global_cache_read; keycache_stats->write_requests= keycache->global_cache_w_requests; keycache_stats->writes= keycache->global_cache_write; DBUG_VOID_RETURN; }
O3
c
get_simple_key_cache_statistics: pushq %rbp movq %rsp, %rbp movq 0x8(%rdi), %rax movq %rax, (%rdx) movl 0x18(%rdi), %eax movq %rax, 0x8(%rdx) movq 0x50(%rdi), %rax movq %rax, 0x10(%rdx) movq 0x58(%rdi), %rax movq %rax, 0x18(%rdx) movq 0x138(%rdi), %rax movq %rax, 0x20(%rdx) movq 0x68(%rdi), %rax movq %rax, 0x28(%rdx) movq 0x150(%rdi), %rax movq %rax, 0x30(%rdx) movq 0x158(%rdi), %rax movq %rax, 0x38(%rdx) movq 0x140(%rdi), %rax movq %rax, 0x40(%rdx) movq 0x148(%rdi), %rax movq %rax, 0x48(%rdx) popq %rbp retq
get_simple_key_cache_statistics: push rbp mov rbp, rsp mov rax, [rdi+8] mov [rdx], rax mov eax, [rdi+18h] mov [rdx+8], rax mov rax, [rdi+50h] mov [rdx+10h], rax mov rax, [rdi+58h] mov [rdx+18h], rax mov rax, [rdi+138h] mov [rdx+20h], rax mov rax, [rdi+68h] mov [rdx+28h], rax mov rax, [rdi+150h] mov [rdx+30h], rax mov rax, [rdi+158h] mov [rdx+38h], rax mov rax, [rdi+140h] mov [rdx+40h], rax mov rax, [rdi+148h] mov [rdx+48h], rax pop rbp retn
long long get_simple_key_cache_statistics(long long a1, long long a2, _QWORD *a3) { long long result; // rax *a3 = *(_QWORD *)(a1 + 8); a3[1] = *(unsigned int *)(a1 + 24); a3[2] = *(_QWORD *)(a1 + 80); a3[3] = *(_QWORD *)(a1 + 88); a3[4] = *(_QWORD *)(a1 + 312); a3[5] = *(_QWORD *)(a1 + 104); a3[6] = *(_QWORD *)(a1 + 336); a3[7] = *(_QWORD *)(a1 + 344); a3[8] = *(_QWORD *)(a1 + 320); result = *(_QWORD *)(a1 + 328); a3[9] = result; return result; }
get_simple_key_cache_statistics: PUSH RBP MOV RBP,RSP MOV RAX,qword ptr [RDI + 0x8] MOV qword ptr [RDX],RAX MOV EAX,dword ptr [RDI + 0x18] MOV qword ptr [RDX + 0x8],RAX MOV RAX,qword ptr [RDI + 0x50] MOV qword ptr [RDX + 0x10],RAX MOV RAX,qword ptr [RDI + 0x58] MOV qword ptr [RDX + 0x18],RAX MOV RAX,qword ptr [RDI + 0x138] MOV qword ptr [RDX + 0x20],RAX MOV RAX,qword ptr [RDI + 0x68] MOV qword ptr [RDX + 0x28],RAX MOV RAX,qword ptr [RDI + 0x150] MOV qword ptr [RDX + 0x30],RAX MOV RAX,qword ptr [RDI + 0x158] MOV qword ptr [RDX + 0x38],RAX MOV RAX,qword ptr [RDI + 0x140] MOV qword ptr [RDX + 0x40],RAX MOV RAX,qword ptr [RDI + 0x148] MOV qword ptr [RDX + 0x48],RAX POP RBP RET
void get_simple_key_cache_statistics(long param_1,int8 param_2,int8 *param_3) { *param_3 = *(int8 *)(param_1 + 8); param_3[1] = (ulong)*(uint *)(param_1 + 0x18); param_3[2] = *(int8 *)(param_1 + 0x50); param_3[3] = *(int8 *)(param_1 + 0x58); param_3[4] = *(int8 *)(param_1 + 0x138); param_3[5] = *(int8 *)(param_1 + 0x68); param_3[6] = *(int8 *)(param_1 + 0x150); param_3[7] = *(int8 *)(param_1 + 0x158); param_3[8] = *(int8 *)(param_1 + 0x140); param_3[9] = *(int8 *)(param_1 + 0x148); return; }
38,782
Elevetor::del_stair(int)
LeafBlue[P]myElevetor/elevetor.cpp
int Elevetor::del_stair(int this_stair) { action_list.erase( std::remove(action_list.begin(),action_list.end(),this_stair), action_list.end() ); return action_list.size(); }
O1
cpp
Elevetor::del_stair(int): pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rdi, %rbx leaq 0x4(%rsp), %r14 movl %esi, (%r14) leaq 0x68(%rdi), %r15 movq %r15, %rdi callq 0x9576 movq %rax, %r12 movq %r15, %rdi callq 0x959e movq %r12, %rdi movq %rax, %rsi movq %r14, %rdx callq 0x99b2 movq %rax, %r14 movq %r15, %rdi callq 0x959e movq %r15, %rdi movq %r14, %rsi movq %rax, %rdx callq 0x94de movl 0x78(%rbx), %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
_ZN8Elevetor9del_stairEi: push r15 push r14 push r12 push rbx push rax mov rbx, rdi lea r14, [rsp+28h+var_24] mov [r14], esi lea r15, [rdi+68h] mov rdi, r15 call _ZN5QListIiE5beginEv; QList<int>::begin(void) mov r12, rax mov rdi, r15 call _ZN5QListIiE3endEv; QList<int>::end(void) mov rdi, r12 mov rsi, rax mov rdx, r14 call _ZSt11__remove_ifIN5QListIiE8iteratorEN9__gnu_cxx5__ops16_Iter_equals_valIKiEEET_S8_S8_T0_; std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>>(QList<int>::iterator,QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>) mov r14, rax mov rdi, r15 call _ZN5QListIiE3endEv; QList<int>::end(void) mov rdi, r15 mov rsi, r14 mov rdx, rax call _ZN5QListIiE5eraseENS0_14const_iteratorES1_; QList<int>::erase(QList<int>::const_iterator,QList<int>::const_iterator) mov eax, [rbx+78h] add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
long long Elevetor::del_stair(Elevetor *this, int a2) { long long v2; // r12 long long v3; // rax long long v4; // r14 long long v5; // rax _DWORD v7[9]; // [rsp+0h] [rbp-24h] BYREF v7[0] = a2; v2 = QList<int>::begin((char *)this + 104); v3 = QList<int>::end((char *)this + 104); v4 = std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>>(v2, v3, v7); v5 = QList<int>::end((char *)this + 104); QList<int>::erase((char *)this + 104, v4, v5); return *((unsigned int *)this + 30); }
del_stair: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RDI LEA R14,[RSP + 0x4] MOV dword ptr [R14],ESI LEA R15,[RDI + 0x68] MOV RDI,R15 CALL 0x00109576 MOV R12,RAX MOV RDI,R15 CALL 0x0010959e MOV RDI,R12 MOV RSI,RAX MOV RDX,R14 CALL 0x001099b2 MOV R14,RAX MOV RDI,R15 CALL 0x0010959e MOV RDI,R15 MOV RSI,R14 MOV RDX,RAX CALL 0x001094de MOV EAX,dword ptr [RBX + 0x78] ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
/* Elevetor::del_stair(int) */ int4 Elevetor::del_stair(int param_1) { QList<int> *this; int8 uVar1; int8 uVar2; int4 in_register_0000003c; int1 local_24 [4]; this = (QList<int> *)(CONCAT44(in_register_0000003c,param_1) + 0x68); uVar1 = QList<int>::begin(this); uVar2 = QList<int>::end(this); uVar1 = std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int_const>> (uVar1,uVar2,local_24); uVar2 = QList<int>::end(this); QList<int>::erase(this,uVar1,uVar2); return *(int4 *)(CONCAT44(in_register_0000003c,param_1) + 0x78); }
38,783
Elevetor::del_stair(int)
LeafBlue[P]myElevetor/elevetor.cpp
int Elevetor::del_stair(int this_stair) { action_list.erase( std::remove(action_list.begin(),action_list.end(),this_stair), action_list.end() ); return action_list.size(); }
O2
cpp
Elevetor::del_stair(int): pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rdi, %rbx leaq 0x4(%rsp), %r14 movl %esi, (%r14) leaq 0x68(%rdi), %r15 movq %r15, %rdi callq 0x8712 movq %rax, %r12 movq %r15, %rdi callq 0x8722 movq %r12, %rdi movq %rax, %rsi movq %r14, %rdx callq 0x8b58 movq %rax, %r14 movq %r15, %rdi callq 0x8722 movq %r15, %rdi movq %r14, %rsi movq %rax, %rdx callq 0x86e2 movl 0x78(%rbx), %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
_ZN8Elevetor9del_stairEi: push r15 push r14 push r12 push rbx push rax mov rbx, rdi lea r14, [rsp+28h+var_24] mov [r14], esi lea r15, [rdi+68h] mov rdi, r15 call _ZN5QListIiE5beginEv; QList<int>::begin(void) mov r12, rax mov rdi, r15 call _ZN5QListIiE3endEv; QList<int>::end(void) mov rdi, r12 mov rsi, rax mov rdx, r14 call _ZSt11__remove_ifIN5QListIiE8iteratorEN9__gnu_cxx5__ops16_Iter_equals_valIKiEEET_S8_S8_T0_; std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>>(QList<int>::iterator,QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>) mov r14, rax mov rdi, r15 call _ZN5QListIiE3endEv; QList<int>::end(void) mov rdi, r15 mov rsi, r14 mov rdx, rax call _ZN5QListIiE5eraseENS0_14const_iteratorES1_; QList<int>::erase(QList<int>::const_iterator,QList<int>::const_iterator) mov eax, [rbx+78h] add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
long long Elevetor::del_stair(Elevetor *this) { long long v1; // r12 long long v2; // rax long long v3; // r14 long long v4; // rax v1 = QList<int>::begin((char *)this + 104); v2 = QList<int>::end((char *)this + 104); v3 = std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>>(v1, v2); v4 = QList<int>::end((char *)this + 104); QList<int>::erase((char *)this + 104, v3, v4); return *((unsigned int *)this + 30); }
del_stair: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RDI LEA R14,[RSP + 0x4] MOV dword ptr [R14],ESI LEA R15,[RDI + 0x68] MOV RDI,R15 CALL 0x00108712 MOV R12,RAX MOV RDI,R15 CALL 0x00108722 MOV RDI,R12 MOV RSI,RAX MOV RDX,R14 CALL 0x00108b58 MOV R14,RAX MOV RDI,R15 CALL 0x00108722 MOV RDI,R15 MOV RSI,R14 MOV RDX,RAX CALL 0x001086e2 MOV EAX,dword ptr [RBX + 0x78] ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
/* Elevetor::del_stair(int) */ int4 Elevetor::del_stair(int param_1) { QList<int> *this; int8 uVar1; int8 uVar2; int4 in_register_0000003c; int1 local_24 [4]; this = (QList<int> *)(CONCAT44(in_register_0000003c,param_1) + 0x68); uVar1 = QList<int>::begin(this); uVar2 = QList<int>::end(this); uVar1 = std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int_const>> (uVar1,uVar2,local_24); uVar2 = QList<int>::end(this); QList<int>::erase(this,uVar1,uVar2); return *(int4 *)(CONCAT44(in_register_0000003c,param_1) + 0x78); }
38,784
Elevetor::del_stair(int)
LeafBlue[P]myElevetor/elevetor.cpp
int Elevetor::del_stair(int this_stair) { action_list.erase( std::remove(action_list.begin(),action_list.end(),this_stair), action_list.end() ); return action_list.size(); }
O3
cpp
Elevetor::del_stair(int): pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rdi, %rbx leaq 0x4(%rsp), %r14 movl %esi, (%r14) leaq 0x68(%rdi), %r15 movq %r15, %rdi callq 0x94aa movq %rax, %r12 movq %r15, %rdi callq 0x94d2 movq %r12, %rdi movq %rax, %rsi movq %r14, %rdx callq 0x9890 movq %rax, %r14 movq %r15, %rdi callq 0x94d2 movq %r15, %rdi movq %r14, %rsi movq %rax, %rdx callq 0x9400 movl 0x78(%rbx), %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
_ZN8Elevetor9del_stairEi: push r15 push r14 push r12 push rbx push rax mov rbx, rdi lea r14, [rsp+28h+var_24] mov [r14], esi lea r15, [rdi+68h] mov rdi, r15 call _ZN5QListIiE5beginEv; QList<int>::begin(void) mov r12, rax mov rdi, r15 call _ZN5QListIiE3endEv; QList<int>::end(void) mov rdi, r12 mov rsi, rax mov rdx, r14 call _ZSt11__remove_ifIN5QListIiE8iteratorEN9__gnu_cxx5__ops16_Iter_equals_valIKiEEET_S8_S8_T0_; std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>>(QList<int>::iterator,QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>) mov r14, rax mov rdi, r15 call _ZN5QListIiE3endEv; QList<int>::end(void) mov rdi, r15 mov rsi, r14 mov rdx, rax call _ZN5QListIiE5eraseENS0_14const_iteratorES1_; QList<int>::erase(QList<int>::const_iterator,QList<int>::const_iterator) mov eax, [rbx+78h] add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
long long Elevetor::del_stair(Elevetor *this, int a2) { long long v2; // r12 long long v3; // rax long long v4; // r14 long long v5; // rax _DWORD v7[9]; // [rsp+0h] [rbp-24h] BYREF v7[0] = a2; v2 = QList<int>::begin((char *)this + 104); v3 = QList<int>::end((char *)this + 104); v4 = std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>>(v2, v3, v7); v5 = QList<int>::end((char *)this + 104); QList<int>::erase((char *)this + 104, v4, v5); return *((unsigned int *)this + 30); }
del_stair: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RDI LEA R14,[RSP + 0x4] MOV dword ptr [R14],ESI LEA R15,[RDI + 0x68] MOV RDI,R15 CALL 0x001094aa MOV R12,RAX MOV RDI,R15 CALL 0x001094d2 MOV RDI,R12 MOV RSI,RAX MOV RDX,R14 CALL 0x00109890 MOV R14,RAX MOV RDI,R15 CALL 0x001094d2 MOV RDI,R15 MOV RSI,R14 MOV RDX,RAX CALL 0x00109400 MOV EAX,dword ptr [RBX + 0x78] ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
/* Elevetor::del_stair(int) */ int4 Elevetor::del_stair(int param_1) { QList<int> *this; int8 uVar1; int8 uVar2; int4 in_register_0000003c; int1 local_24 [4]; this = (QList<int> *)(CONCAT44(in_register_0000003c,param_1) + 0x68); uVar1 = QList<int>::begin(this); uVar2 = QList<int>::end(this); uVar1 = std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int_const>> (uVar1,uVar2,local_24); uVar2 = QList<int>::end(this); QList<int>::erase(this,uVar1,uVar2); return *(int4 *)(CONCAT44(in_register_0000003c,param_1) + 0x78); }
38,785
js_loadScript
bluesky950520[P]quickjs/quickjs-libc.c
static JSValue js_loadScript(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { uint8_t *buf; const char *filename; JSValue ret; size_t buf_len; filename = JS_ToCString(ctx, argv[0]); if (!filename) return JS_EXCEPTION; buf = js_load_file(ctx, &buf_len, filename); if (!buf) { JS_ThrowReferenceError(ctx, "could not load '%s'", filename); JS_FreeCString(ctx, filename); return JS_EXCEPTION; } ret = JS_Eval(ctx, (char *)buf, buf_len, filename, JS_EVAL_TYPE_GLOBAL); js_free(ctx, buf); JS_FreeCString(ctx, filename); return ret; }
O0
c
js_loadScript: subq $0x88, %rsp movq %rsi, 0x68(%rsp) movq %rdx, 0x70(%rsp) movq %rdi, 0x60(%rsp) movl %ecx, 0x5c(%rsp) movq %r8, 0x50(%rsp) movq 0x60(%rsp), %rdi movq 0x50(%rsp), %rax movq (%rax), %rsi movq 0x8(%rax), %rdx callq 0x147e0 movq %rax, 0x40(%rsp) cmpq $0x0, 0x40(%rsp) jne 0x14eeb movl $0x0, 0x78(%rsp) movq $0x6, 0x80(%rsp) jmp 0x14fc2 movq 0x60(%rsp), %rdi movq 0x40(%rsp), %rdx leaq 0x28(%rsp), %rsi callq 0xfed0 movq %rax, 0x48(%rsp) cmpq $0x0, 0x48(%rsp) jne 0x14f53 movq 0x60(%rsp), %rdi movq 0x40(%rsp), %rdx leaq 0xf4e95(%rip), %rsi # 0x109db2 movb $0x0, %al callq 0x2d3f0 movq %rax, 0x18(%rsp) movq %rdx, 0x20(%rsp) movq 0x60(%rsp), %rdi movq 0x40(%rsp), %rsi callq 0x29e50 movl $0x0, 0x78(%rsp) movq $0x6, 0x80(%rsp) jmp 0x14fc2 movq 0x60(%rsp), %rdi movq 0x48(%rsp), %rsi movq 0x28(%rsp), %rdx movq 0x40(%rsp), %rcx xorl %r8d, %r8d callq 0x4ad00 movq %rax, 0x8(%rsp) movq %rdx, 0x10(%rsp) movq 0x8(%rsp), %rax movq %rax, 0x30(%rsp) movq 0x10(%rsp), %rax movq %rax, 0x38(%rsp) movq 0x60(%rsp), %rdi movq 0x48(%rsp), %rsi callq 0x21db0 movq 0x60(%rsp), %rdi movq 0x40(%rsp), %rsi callq 0x29e50 movq 0x30(%rsp), %rax movq %rax, 0x78(%rsp) movq 0x38(%rsp), %rax movq %rax, 0x80(%rsp) movq 0x78(%rsp), %rax movq 0x80(%rsp), %rdx addq $0x88, %rsp retq nopw (%rax,%rax)
js_loadScript: sub rsp, 88h mov [rsp+88h+var_20], rsi mov [rsp+88h+var_18], rdx mov [rsp+88h+var_28], rdi mov [rsp+88h+var_2C], ecx mov [rsp+88h+var_38], r8 mov rdi, [rsp+88h+var_28] mov rax, [rsp+88h+var_38] mov rsi, [rax] mov rdx, [rax+8] call JS_ToCString mov [rsp+88h+var_48], rax cmp [rsp+88h+var_48], 0 jnz short loc_14EEB mov dword ptr [rsp+88h+var_10], 0 mov [rsp+88h+var_8], 6 jmp loc_14FC2 loc_14EEB: mov rdi, [rsp+88h+var_28] mov rdx, [rsp+88h+var_48] lea rsi, [rsp+88h+var_60] call js_load_file mov [rsp+88h+var_40], rax cmp [rsp+88h+var_40], 0 jnz short loc_14F53 mov rdi, [rsp+88h+var_28] mov rdx, [rsp+88h+var_48] lea rsi, aCouldNotLoadS_0; "could not load '%s'" mov al, 0 call JS_ThrowReferenceError mov [rsp+88h+var_70], rax mov [rsp+88h+var_68], rdx mov rdi, [rsp+88h+var_28] mov rsi, [rsp+88h+var_48] call JS_FreeCString mov dword ptr [rsp+88h+var_10], 0 mov [rsp+88h+var_8], 6 jmp short loc_14FC2 loc_14F53: mov rdi, [rsp+88h+var_28] mov rsi, [rsp+88h+var_40] mov rdx, [rsp+88h+var_60] mov rcx, [rsp+88h+var_48] xor r8d, r8d call JS_Eval mov [rsp+88h+var_80], rax mov [rsp+88h+var_78], rdx mov rax, [rsp+88h+var_80] mov [rsp+88h+var_58], rax mov rax, [rsp+88h+var_78] mov [rsp+88h+var_50], rax mov rdi, [rsp+88h+var_28] mov rsi, [rsp+88h+var_40] call js_free mov rdi, [rsp+88h+var_28] mov rsi, [rsp+88h+var_48] call JS_FreeCString mov rax, [rsp+88h+var_58] mov [rsp+88h+var_10], rax mov rax, [rsp+88h+var_50] mov [rsp+88h+var_8], rax loc_14FC2: mov rax, [rsp+88h+var_10] mov rdx, [rsp+88h+var_8] add rsp, 88h retn
long long js_loadScript(long long a1, long long a2, long long a3, int a4, long long *a5) { int v5; // ecx int v6; // r8d int v7; // r9d long long v8; // rdx long long v10; // [rsp+28h] [rbp-60h] BYREF long long v11; // [rsp+30h] [rbp-58h] long long v12; // [rsp+38h] [rbp-50h] long long v13; // [rsp+40h] [rbp-48h] long long v14; // [rsp+48h] [rbp-40h] long long *v15; // [rsp+50h] [rbp-38h] int v16; // [rsp+5Ch] [rbp-2Ch] long long v17; // [rsp+60h] [rbp-28h] long long v18; // [rsp+68h] [rbp-20h] long long v19; // [rsp+70h] [rbp-18h] long long v20; // [rsp+78h] [rbp-10h] long long v21; // [rsp+80h] [rbp-8h] v18 = a2; v19 = a3; v17 = a1; v16 = a4; v15 = a5; v13 = JS_ToCString(a1, *a5, a5[1]); if ( v13 ) { v14 = js_load_file(v17, &v10, v13); if ( v14 ) { v11 = JS_Eval(v17, v14, v10, v13, 0LL); v12 = v8; js_free(v17, v14); JS_FreeCString(v17, v13); v20 = v11; v21 = v12; } else { JS_ThrowReferenceError(v17, (unsigned int)"could not load '%s'", v13, v5, v6, v7); JS_FreeCString(v17, v13); LODWORD(v20) = 0; v21 = 6LL; } } else { LODWORD(v20) = 0; v21 = 6LL; } return v20; }
js_loadScript: SUB RSP,0x88 MOV qword ptr [RSP + 0x68],RSI MOV qword ptr [RSP + 0x70],RDX MOV qword ptr [RSP + 0x60],RDI MOV dword ptr [RSP + 0x5c],ECX MOV qword ptr [RSP + 0x50],R8 MOV RDI,qword ptr [RSP + 0x60] MOV RAX,qword ptr [RSP + 0x50] MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x8] CALL 0x001147e0 MOV qword ptr [RSP + 0x40],RAX CMP qword ptr [RSP + 0x40],0x0 JNZ 0x00114eeb MOV dword ptr [RSP + 0x78],0x0 MOV qword ptr [RSP + 0x80],0x6 JMP 0x00114fc2 LAB_00114eeb: MOV RDI,qword ptr [RSP + 0x60] MOV RDX,qword ptr [RSP + 0x40] LEA RSI,[RSP + 0x28] CALL 0x0010fed0 MOV qword ptr [RSP + 0x48],RAX CMP qword ptr [RSP + 0x48],0x0 JNZ 0x00114f53 MOV RDI,qword ptr [RSP + 0x60] MOV RDX,qword ptr [RSP + 0x40] LEA RSI,[0x209db2] MOV AL,0x0 CALL 0x0012d3f0 MOV qword ptr [RSP + 0x18],RAX MOV qword ptr [RSP + 0x20],RDX MOV RDI,qword ptr [RSP + 0x60] MOV RSI,qword ptr [RSP + 0x40] CALL 0x00129e50 MOV dword ptr [RSP + 0x78],0x0 MOV qword ptr [RSP + 0x80],0x6 JMP 0x00114fc2 LAB_00114f53: MOV RDI,qword ptr [RSP + 0x60] MOV RSI,qword ptr [RSP + 0x48] MOV RDX,qword ptr [RSP + 0x28] MOV RCX,qword ptr [RSP + 0x40] XOR R8D,R8D CALL 0x0014ad00 MOV qword ptr [RSP + 0x8],RAX MOV qword ptr [RSP + 0x10],RDX MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x30],RAX MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x38],RAX MOV RDI,qword ptr [RSP + 0x60] MOV RSI,qword ptr [RSP + 0x48] CALL 0x00121db0 MOV RDI,qword ptr [RSP + 0x60] MOV RSI,qword ptr [RSP + 0x40] CALL 0x00129e50 MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x78],RAX MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x80],RAX LAB_00114fc2: MOV RAX,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RSP + 0x80] ADD RSP,0x88 RET
int1 [16] js_loadScript(int8 param_1,int8 param_2,int8 param_3,int4 param_4, int8 *param_5) { int1 auVar1 [16]; int8 local_60; int1 local_58 [16]; long local_48; long local_40; int8 *local_38; int4 local_2c; int8 local_28; int8 local_20; int8 local_18; int4 local_10; int4 uStack_c; int8 local_8; local_38 = param_5; local_2c = param_4; local_28 = param_1; local_20 = param_2; local_18 = param_3; local_48 = JS_ToCString(param_1,*param_5,param_5[1]); if (local_48 == 0) { local_10 = 0; local_8 = 6; } else { local_40 = js_load_file(local_28,&local_60,local_48); if (local_40 == 0) { JS_ThrowReferenceError(local_28,"could not load \'%s\'",local_48); JS_FreeCString(local_28,local_48); local_10 = 0; local_8 = 6; } else { local_58 = JS_Eval(local_28,local_40,local_60,local_48,0); js_free(local_28,local_40); JS_FreeCString(local_28,local_48); local_10 = local_58._0_4_; uStack_c = local_58._4_4_; local_8 = local_58._8_8_; } } auVar1._4_4_ = uStack_c; auVar1._0_4_ = local_10; auVar1._8_8_ = local_8; return auVar1; }
38,786
js_loadScript
bluesky950520[P]quickjs/quickjs-libc.c
static JSValue js_loadScript(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { uint8_t *buf; const char *filename; JSValue ret; size_t buf_len; filename = JS_ToCString(ctx, argv[0]); if (!filename) return JS_EXCEPTION; buf = js_load_file(ctx, &buf_len, filename); if (!buf) { JS_ThrowReferenceError(ctx, "could not load '%s'", filename); JS_FreeCString(ctx, filename); return JS_EXCEPTION; } ret = JS_Eval(ctx, (char *)buf, buf_len, filename, JS_EVAL_TYPE_GLOBAL); js_free(ctx, buf); JS_FreeCString(ctx, filename); return ret; }
O2
c
js_loadScript: pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rdi, %r14 movq (%r8), %rsi movq 0x8(%r8), %rdx callq 0x11a6c pushq $0x6 popq %rbx testq %rax, %rax je 0x11e19 movq %rax, %r15 leaq 0x8(%rsp), %rsi movq %r14, %rdi movq %rax, %rdx callq 0xf70c testq %rax, %rax je 0x11e1e movq %rax, %r12 movq 0x8(%rsp), %rdx movq %r14, %rdi movq %rax, %rsi movq %r15, %rcx xorl %r8d, %r8d callq 0x29a09 movq %rax, %r13 movq %rdx, %rbx movq %r14, %rdi movq %r12, %rsi callq 0x1726e movq %r14, %rdi movq %r15, %rsi callq 0x1b057 movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000 andq %r13, %rax movl %r13d, %r12d jmp 0x11e42 xorl %r12d, %r12d jmp 0x11e40 leaq 0x70e21(%rip), %rsi # 0x82c46 xorl %r12d, %r12d movq %r14, %rdi movq %r15, %rdx xorl %eax, %eax callq 0x1c6df movq %r14, %rdi movq %r15, %rsi callq 0x1b057 xorl %eax, %eax orq %rax, %r12 movq %r12, %rax movq %rbx, %rdx addq $0x10, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq
js_loadScript: push r15 push r14 push r13 push r12 push rbx sub rsp, 10h mov r14, rdi mov rsi, [r8] mov rdx, [r8+8] call JS_ToCString push 6 pop rbx test rax, rax jz short loc_11E19 mov r15, rax lea rsi, [rsp+38h+var_30] mov rdi, r14 mov rdx, rax call js_load_file test rax, rax jz short loc_11E1E mov r12, rax mov rdx, [rsp+38h+var_30] mov rdi, r14 mov rsi, rax mov rcx, r15 xor r8d, r8d call JS_Eval mov r13, rax mov rbx, rdx mov rdi, r14 mov rsi, r12 call js_free mov rdi, r14 mov rsi, r15 call JS_FreeCString mov rax, 0FFFFFFFF00000000h and rax, r13 mov r12d, r13d jmp short loc_11E42 loc_11E19: xor r12d, r12d jmp short loc_11E40 loc_11E1E: lea rsi, aCouldNotLoadS_0; "could not load '%s'" xor r12d, r12d mov rdi, r14 mov rdx, r15 xor eax, eax call JS_ThrowReferenceError mov rdi, r14 mov rsi, r15 call JS_FreeCString loc_11E40: xor eax, eax loc_11E42: or r12, rax mov rax, r12 mov rdx, rbx add rsp, 10h pop rbx pop r12 pop r13 pop r14 pop r15 retn
unsigned long long js_loadScript(long long a1, long long a2, long long a3, long long a4, long long *a5) { long long v5; // rax long long v6; // r15 long long file; // rax int v8; // ecx int v9; // r8d int v10; // r9d long long v11; // r12 long long v12; // r13 unsigned long long v13; // rax long long v14; // r12 long long v16[6]; // [rsp+8h] [rbp-30h] BYREF v5 = JS_ToCString(a1, *a5, a5[1]); if ( !v5 ) { v14 = 0LL; LABEL_6: v13 = 0LL; return v13 | v14; } v6 = v5; file = js_load_file(a1, v16, v5); if ( !file ) { v14 = 0LL; JS_ThrowReferenceError(a1, (unsigned int)"could not load '%s'", v6, v8, v9, v10); JS_FreeCString(a1, v6); goto LABEL_6; } v11 = file; v12 = JS_Eval(a1, file, v16[0], v6, 0LL); js_free(a1, v11); JS_FreeCString(a1, v6); v13 = v12 & 0xFFFFFFFF00000000LL; v14 = (unsigned int)v12; return v13 | v14; }
js_loadScript: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x10 MOV R14,RDI MOV RSI,qword ptr [R8] MOV RDX,qword ptr [R8 + 0x8] CALL 0x00111a6c PUSH 0x6 POP RBX TEST RAX,RAX JZ 0x00111e19 MOV R15,RAX LEA RSI,[RSP + 0x8] MOV RDI,R14 MOV RDX,RAX CALL 0x0010f70c TEST RAX,RAX JZ 0x00111e1e MOV R12,RAX MOV RDX,qword ptr [RSP + 0x8] MOV RDI,R14 MOV RSI,RAX MOV RCX,R15 XOR R8D,R8D CALL 0x00129a09 MOV R13,RAX MOV RBX,RDX MOV RDI,R14 MOV RSI,R12 CALL 0x0011726e MOV RDI,R14 MOV RSI,R15 CALL 0x0011b057 MOV RAX,-0x100000000 AND RAX,R13 MOV R12D,R13D JMP 0x00111e42 LAB_00111e19: XOR R12D,R12D JMP 0x00111e40 LAB_00111e1e: LEA RSI,[0x182c46] XOR R12D,R12D MOV RDI,R14 MOV RDX,R15 XOR EAX,EAX CALL 0x0011c6df MOV RDI,R14 MOV RSI,R15 CALL 0x0011b057 LAB_00111e40: XOR EAX,EAX LAB_00111e42: OR R12,RAX MOV RAX,R12 MOV RDX,RBX ADD RSP,0x10 POP RBX POP R12 POP R13 POP R14 POP R15 RET
int1 [16] js_loadScript(int8 param_1) { long lVar1; long lVar2; ulong uVar3; int8 uVar4; int8 *in_R8; ulong uVar5; int1 auVar6 [16]; int8 local_30; lVar1 = JS_ToCString(param_1,*in_R8,in_R8[1]); uVar4 = 6; if (lVar1 != 0) { lVar2 = js_load_file(param_1,&local_30,lVar1); if (lVar2 != 0) { auVar6 = JS_Eval(param_1,lVar2,local_30,lVar1,0); uVar4 = auVar6._8_8_; js_free(param_1,lVar2); JS_FreeCString(param_1,lVar1); uVar3 = auVar6._0_8_ & 0xffffffff00000000; uVar5 = auVar6._0_8_ & 0xffffffff; goto LAB_00111e42; } JS_ThrowReferenceError(param_1,"could not load \'%s\'",lVar1); JS_FreeCString(param_1,lVar1); } uVar5 = 0; uVar3 = 0; LAB_00111e42: auVar6._8_8_ = uVar4; auVar6._0_8_ = uVar5 | uVar3; return auVar6; }
38,787
js_loadScript
bluesky950520[P]quickjs/quickjs-libc.c
static JSValue js_loadScript(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { uint8_t *buf; const char *filename; JSValue ret; size_t buf_len; filename = JS_ToCString(ctx, argv[0]); if (!filename) return JS_EXCEPTION; buf = js_load_file(ctx, &buf_len, filename); if (!buf) { JS_ThrowReferenceError(ctx, "could not load '%s'", filename); JS_FreeCString(ctx, filename); return JS_EXCEPTION; } ret = JS_Eval(ctx, (char *)buf, buf_len, filename, JS_EVAL_TYPE_GLOBAL); js_free(ctx, buf); JS_FreeCString(ctx, filename); return ret; }
O3
c
js_loadScript: pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rdi, %r14 movq (%r8), %rdx movq 0x8(%r8), %rcx xorl %r12d, %r12d xorl %esi, %esi xorl %r8d, %r8d callq 0x21353 movl $0x6, %ebx testq %rax, %rax je 0x17a48 movq %rax, %r15 leaq 0x8(%rsp), %rsi movq %r14, %rdi movq %rax, %rdx callq 0x151b0 testq %rax, %rax je 0x17a26 movq %rax, %r12 movq 0x8(%rsp), %rdx movq %r14, %rdi movq %rax, %rsi movq %r15, %rcx xorl %r8d, %r8d callq 0x32612 movq %rax, %r13 movq %rdx, %rbx movq %r14, %rdi movq %r12, %rsi callq 0x1d481 movq %r14, %rdi movq %r15, %rsi callq 0x21629 movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000 andq %r13, %rax movl %r13d, %r12d jmp 0x17a4a leaq 0x87219(%rip), %rsi # 0x9ec46 xorl %r12d, %r12d movq %r14, %rdi movq %r15, %rdx xorl %eax, %eax callq 0x22e21 movq %r14, %rdi movq %r15, %rsi callq 0x21629 xorl %eax, %eax orq %rax, %r12 movq %r12, %rax movq %rbx, %rdx addq $0x10, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq
js_loadScript: push r15 push r14 push r13 push r12 push rbx sub rsp, 10h mov r14, rdi mov rdx, [r8] mov rcx, [r8+8] xor r12d, r12d xor esi, esi xor r8d, r8d call JS_ToCStringLen2 mov ebx, 6 test rax, rax jz loc_17A48 mov r15, rax lea rsi, [rsp+38h+var_30] mov rdi, r14 mov rdx, rax call js_load_file test rax, rax jz short loc_17A26 mov r12, rax mov rdx, [rsp+38h+var_30] mov rdi, r14 mov rsi, rax mov rcx, r15 xor r8d, r8d call JS_Eval mov r13, rax mov rbx, rdx mov rdi, r14 mov rsi, r12 call js_free mov rdi, r14 mov rsi, r15 call JS_FreeCString mov rax, 0FFFFFFFF00000000h and rax, r13 mov r12d, r13d jmp short loc_17A4A loc_17A26: lea rsi, aCouldNotLoadS_0; "could not load '%s'" xor r12d, r12d mov rdi, r14 mov rdx, r15 xor eax, eax call JS_ThrowReferenceError mov rdi, r14 mov rsi, r15 call JS_FreeCString loc_17A48: xor eax, eax loc_17A4A: or r12, rax mov rax, r12 mov rdx, rbx add rsp, 10h pop rbx pop r12 pop r13 pop r14 pop r15 retn
unsigned long long js_loadScript(long long a1, long long a2, long long a3, long long a4, _QWORD *a5) { long long v5; // r12 long long v6; // rax long long v7; // r15 long long file; // rax int v9; // ecx int v10; // r8d int v11; // r9d long long v12; // r12 long long v13; // r13 unsigned long long v14; // rax long long v16[6]; // [rsp+8h] [rbp-30h] BYREF v5 = 0LL; v6 = JS_ToCStringLen2(a1, 0LL, *a5, a5[1], 0LL); if ( !v6 ) goto LABEL_5; v7 = v6; file = js_load_file(a1, v16, v6); if ( !file ) { v5 = 0LL; JS_ThrowReferenceError(a1, (unsigned int)"could not load '%s'", v7, v9, v10, v11); JS_FreeCString(a1, v7); LABEL_5: v14 = 0LL; return v14 | v5; } v12 = file; v13 = JS_Eval(a1, file, v16[0], v7, 0LL); js_free(a1, v12); JS_FreeCString(a1, v7); v14 = v13 & 0xFFFFFFFF00000000LL; v5 = (unsigned int)v13; return v14 | v5; }
js_loadScript: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x10 MOV R14,RDI MOV RDX,qword ptr [R8] MOV RCX,qword ptr [R8 + 0x8] XOR R12D,R12D XOR ESI,ESI XOR R8D,R8D CALL 0x00121353 MOV EBX,0x6 TEST RAX,RAX JZ 0x00117a48 MOV R15,RAX LEA RSI,[RSP + 0x8] MOV RDI,R14 MOV RDX,RAX CALL 0x001151b0 TEST RAX,RAX JZ 0x00117a26 MOV R12,RAX MOV RDX,qword ptr [RSP + 0x8] MOV RDI,R14 MOV RSI,RAX MOV RCX,R15 XOR R8D,R8D CALL 0x00132612 MOV R13,RAX MOV RBX,RDX MOV RDI,R14 MOV RSI,R12 CALL 0x0011d481 MOV RDI,R14 MOV RSI,R15 CALL 0x00121629 MOV RAX,-0x100000000 AND RAX,R13 MOV R12D,R13D JMP 0x00117a4a LAB_00117a26: LEA RSI,[0x19ec46] XOR R12D,R12D MOV RDI,R14 MOV RDX,R15 XOR EAX,EAX CALL 0x00122e21 MOV RDI,R14 MOV RSI,R15 CALL 0x00121629 LAB_00117a48: XOR EAX,EAX LAB_00117a4a: OR R12,RAX MOV RAX,R12 MOV RDX,RBX ADD RSP,0x10 POP RBX POP R12 POP R13 POP R14 POP R15 RET
int1 [16] js_loadScript(int8 param_1) { long lVar1; long lVar2; ulong uVar3; int8 uVar4; int8 *in_R8; ulong uVar5; int1 auVar6 [16]; int8 local_30; lVar1 = JS_ToCStringLen2(param_1,0,*in_R8,in_R8[1],0); uVar4 = 6; if (lVar1 != 0) { lVar2 = js_load_file(param_1,&local_30,lVar1); if (lVar2 != 0) { auVar6 = JS_Eval(param_1,lVar2,local_30,lVar1,0); uVar4 = auVar6._8_8_; js_free(param_1,lVar2); JS_FreeCString(param_1,lVar1); uVar3 = auVar6._0_8_ & 0xffffffff00000000; uVar5 = auVar6._0_8_ & 0xffffffff; goto LAB_00117a4a; } JS_ThrowReferenceError(param_1,"could not load \'%s\'",lVar1); JS_FreeCString(param_1,lVar1); } uVar5 = 0; uVar3 = 0; LAB_00117a4a: auVar6._8_8_ = uVar4; auVar6._0_8_ = uVar5 | uVar3; return auVar6; }
38,788
call_setter
bluesky950520[P]quickjs/quickjs.c
static int call_setter(JSContext *ctx, JSObject *setter, JSValue this_obj, JSValue val, int flags) { JSValue ret, func; if (likely(setter)) { func = JS_MKPTR(JS_TAG_OBJECT, setter); /* Note: the field could be removed in the setter */ func = js_dup(func); ret = JS_CallFree(ctx, func, this_obj, 1, &val); JS_FreeValue(ctx, val); if (JS_IsException(ret)) return -1; JS_FreeValue(ctx, ret); return TRUE; } else { JS_FreeValue(ctx, val); if ((flags & JS_PROP_THROW) || ((flags & JS_PROP_THROW_STRICT) && is_strict_mode(ctx))) { JS_ThrowTypeError(ctx, "no setter for property"); return -1; } return FALSE; } }
O0
c
call_setter: subq $0xa8, %rsp movl 0xb0(%rsp), %eax movq %rdx, 0x90(%rsp) movq %rcx, 0x98(%rsp) movq %r8, 0x80(%rsp) movq %r9, 0x88(%rsp) movq %rdi, 0x78(%rsp) movq %rsi, 0x70(%rsp) cmpq $0x0, 0x70(%rsp) setne %al xorb $-0x1, %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x60d90 movq 0x70(%rsp), %rax movq %rax, 0x40(%rsp) movq $-0x1, 0x48(%rsp) movq 0x40(%rsp), %rax movq %rax, 0x50(%rsp) movq 0x48(%rsp), %rax movq %rax, 0x58(%rsp) movq 0x50(%rsp), %rdi movq 0x58(%rsp), %rsi callq 0x216d0 movq %rax, 0x30(%rsp) movq %rdx, 0x38(%rsp) movq 0x30(%rsp), %rax movq %rax, 0x50(%rsp) movq 0x38(%rsp), %rax movq %rax, 0x58(%rsp) movq 0x78(%rsp), %rdi movq 0x50(%rsp), %rsi movq 0x58(%rsp), %rdx movq 0x90(%rsp), %rcx movq 0x98(%rsp), %r8 movl $0x1, %r9d leaq 0x80(%rsp), %rax movq %rax, (%rsp) callq 0x2e280 movq %rax, 0x20(%rsp) movq %rdx, 0x28(%rsp) movq 0x20(%rsp), %rax movq %rax, 0x60(%rsp) movq 0x28(%rsp), %rax movq %rax, 0x68(%rsp) movq 0x78(%rsp), %rdi movq 0x80(%rsp), %rsi movq 0x88(%rsp), %rdx callq 0x23c90 movq 0x60(%rsp), %rdi movq 0x68(%rsp), %rsi callq 0x23cc0 cmpl $0x0, %eax je 0x60d6c movl $0xffffffff, 0xa4(%rsp) # imm = 0xFFFFFFFF jmp 0x60e10 movq 0x78(%rsp), %rdi movq 0x60(%rsp), %rsi movq 0x68(%rsp), %rdx callq 0x23c90 movl $0x1, 0xa4(%rsp) jmp 0x60e10 movq 0x78(%rsp), %rdi movq 0x80(%rsp), %rsi movq 0x88(%rsp), %rdx callq 0x23c90 movl 0xb0(%rsp), %eax andl $0x4000, %eax # imm = 0x4000 cmpl $0x0, %eax jne 0x60ddb movl 0xb0(%rsp), %eax andl $0x8000, %eax # imm = 0x8000 cmpl $0x0, %eax je 0x60e05 movq 0x78(%rsp), %rdi callq 0x37f40 cmpl $0x0, %eax je 0x60e05 movq 0x78(%rsp), %rdi leaq 0xad399(%rip), %rsi # 0x10e180 movb $0x0, %al callq 0x2d300 movq %rax, 0x10(%rsp) movq %rdx, 0x18(%rsp) movl $0xffffffff, 0xa4(%rsp) # imm = 0xFFFFFFFF jmp 0x60e10 movl $0x0, 0xa4(%rsp) movl 0xa4(%rsp), %eax addq $0xa8, %rsp retq nop
call_setter: sub rsp, 0A8h mov eax, [rsp+0A8h+arg_0] mov [rsp+0A8h+var_18], rdx mov [rsp+0A8h+var_10], rcx mov [rsp+0A8h+var_28], r8 mov [rsp+0A8h+var_20], r9 mov [rsp+0A8h+var_30], rdi mov [rsp+0A8h+var_38], rsi cmp [rsp+0A8h+var_38], 0 setnz al xor al, 0FFh xor al, 0FFh and al, 1 movzx eax, al cdqe cmp rax, 0 jz loc_60D90 mov rax, [rsp+0A8h+var_38] mov [rsp+0A8h+var_68], rax mov [rsp+0A8h+var_60], 0FFFFFFFFFFFFFFFFh mov rax, [rsp+0A8h+var_68] mov [rsp+0A8h+var_58], rax mov rax, [rsp+0A8h+var_60] mov [rsp+0A8h+var_50], rax mov rdi, [rsp+0A8h+var_58] mov rsi, [rsp+0A8h+var_50] call js_dup mov [rsp+0A8h+var_78], rax mov [rsp+0A8h+var_70], rdx mov rax, [rsp+0A8h+var_78] mov [rsp+0A8h+var_58], rax mov rax, [rsp+0A8h+var_70] mov [rsp+0A8h+var_50], rax mov rdi, [rsp+0A8h+var_30] mov rsi, [rsp+0A8h+var_58] mov rdx, [rsp+0A8h+var_50] mov rcx, [rsp+0A8h+var_18] mov r8, [rsp+0A8h+var_10] mov r9d, 1 lea rax, [rsp+0A8h+var_28] mov [rsp+0A8h+var_A8], rax call JS_CallFree mov [rsp+0A8h+var_88], rax mov [rsp+0A8h+var_80], rdx mov rax, [rsp+0A8h+var_88] mov [rsp+0A8h+var_48], rax mov rax, [rsp+0A8h+var_80] mov [rsp+0A8h+var_40], rax mov rdi, [rsp+0A8h+var_30] mov rsi, [rsp+0A8h+var_28] mov rdx, [rsp+0A8h+var_20] call JS_FreeValue mov rdi, [rsp+0A8h+var_48] mov rsi, [rsp+0A8h+var_40] call JS_IsException_1 cmp eax, 0 jz short loc_60D6C mov [rsp+0A8h+var_4], 0FFFFFFFFh jmp loc_60E10 loc_60D6C: mov rdi, [rsp+0A8h+var_30] mov rsi, [rsp+0A8h+var_48] mov rdx, [rsp+0A8h+var_40] call JS_FreeValue mov [rsp+0A8h+var_4], 1 jmp loc_60E10 loc_60D90: mov rdi, [rsp+0A8h+var_30] mov rsi, [rsp+0A8h+var_28] mov rdx, [rsp+0A8h+var_20] call JS_FreeValue mov eax, [rsp+0A8h+arg_0] and eax, 4000h cmp eax, 0 jnz short loc_60DDB mov eax, [rsp+0A8h+arg_0] and eax, 8000h cmp eax, 0 jz short loc_60E05 mov rdi, [rsp+0A8h+var_30] call is_strict_mode cmp eax, 0 jz short loc_60E05 loc_60DDB: mov rdi, [rsp+0A8h+var_30] lea rsi, aNoSetterForPro; "no setter for property" mov al, 0 call JS_ThrowTypeError mov [rsp+0A8h+var_98], rax mov [rsp+0A8h+var_90], rdx mov [rsp+0A8h+var_4], 0FFFFFFFFh jmp short loc_60E10 loc_60E05: mov [rsp+0A8h+var_4], 0 loc_60E10: mov eax, [rsp+0A8h+var_4] add rsp, 0A8h retn
long long call_setter( long long a1, _DWORD *a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, double a11, double a12, __m128 a13, __m128 a14, __int16 a15) { long long v15; // rdx long long v16; // rdx long long v17; // rdx long long v18; // rcx long long v19; // r8 long long v20; // r9 __m128 v21; // xmm4 __m128 v22; // xmm5 char v24; // [rsp+0h] [rbp-A8h] long long v25; // [rsp+20h] [rbp-88h] _DWORD *v26; // [rsp+30h] [rbp-78h] long long v27; // [rsp+68h] [rbp-40h] long long v28; // [rsp+80h] [rbp-28h] BYREF long long v29; // [rsp+88h] [rbp-20h] long long v30; // [rsp+90h] [rbp-18h] long long v31; // [rsp+98h] [rbp-10h] v30 = a3; v31 = a4; v28 = a5; v29 = a6; if ( a2 ) { v26 = js_dup(a2, 0xFFFFFFFF); v25 = JS_CallFree(a1, (long long)v26, v15, v30, v31, 1, (long long)&v28); v27 = v16; JS_FreeValue(a1, v28, v29); if ( JS_IsException_1(v25, v27) ) { return (unsigned int)-1; } else { JS_FreeValue(a1, v25, v27); return 1; } } else { JS_FreeValue(a1, v28, v29); if ( (a15 & 0x4000) != 0 || a15 < 0 && is_strict_mode(a1) ) { JS_ThrowTypeError( a1, (long long)"no setter for property", v17, v18, v19, v20, a7, a8, a9, a10, v21, v22, a13, a14, v24); return (unsigned int)-1; } else { return 0; } } }
call_setter: SUB RSP,0xa8 MOV EAX,dword ptr [RSP + 0xb0] MOV qword ptr [RSP + 0x90],RDX MOV qword ptr [RSP + 0x98],RCX MOV qword ptr [RSP + 0x80],R8 MOV qword ptr [RSP + 0x88],R9 MOV qword ptr [RSP + 0x78],RDI MOV qword ptr [RSP + 0x70],RSI CMP qword ptr [RSP + 0x70],0x0 SETNZ AL XOR AL,0xff XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x00160d90 MOV RAX,qword ptr [RSP + 0x70] MOV qword ptr [RSP + 0x40],RAX MOV qword ptr [RSP + 0x48],-0x1 MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x50],RAX MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0x58],RAX MOV RDI,qword ptr [RSP + 0x50] MOV RSI,qword ptr [RSP + 0x58] CALL 0x001216d0 MOV qword ptr [RSP + 0x30],RAX MOV qword ptr [RSP + 0x38],RDX MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x50],RAX MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x58],RAX MOV RDI,qword ptr [RSP + 0x78] MOV RSI,qword ptr [RSP + 0x50] MOV RDX,qword ptr [RSP + 0x58] MOV RCX,qword ptr [RSP + 0x90] MOV R8,qword ptr [RSP + 0x98] MOV R9D,0x1 LEA RAX,[RSP + 0x80] MOV qword ptr [RSP],RAX CALL 0x0012e280 MOV qword ptr [RSP + 0x20],RAX MOV qword ptr [RSP + 0x28],RDX MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x60],RAX MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x68],RAX MOV RDI,qword ptr [RSP + 0x78] MOV RSI,qword ptr [RSP + 0x80] MOV RDX,qword ptr [RSP + 0x88] CALL 0x00123c90 MOV RDI,qword ptr [RSP + 0x60] MOV RSI,qword ptr [RSP + 0x68] CALL 0x00123cc0 CMP EAX,0x0 JZ 0x00160d6c MOV dword ptr [RSP + 0xa4],0xffffffff JMP 0x00160e10 LAB_00160d6c: MOV RDI,qword ptr [RSP + 0x78] MOV RSI,qword ptr [RSP + 0x60] MOV RDX,qword ptr [RSP + 0x68] CALL 0x00123c90 MOV dword ptr [RSP + 0xa4],0x1 JMP 0x00160e10 LAB_00160d90: MOV RDI,qword ptr [RSP + 0x78] MOV RSI,qword ptr [RSP + 0x80] MOV RDX,qword ptr [RSP + 0x88] CALL 0x00123c90 MOV EAX,dword ptr [RSP + 0xb0] AND EAX,0x4000 CMP EAX,0x0 JNZ 0x00160ddb MOV EAX,dword ptr [RSP + 0xb0] AND EAX,0x8000 CMP EAX,0x0 JZ 0x00160e05 MOV RDI,qword ptr [RSP + 0x78] CALL 0x00137f40 CMP EAX,0x0 JZ 0x00160e05 LAB_00160ddb: MOV RDI,qword ptr [RSP + 0x78] LEA RSI,[0x20e180] MOV AL,0x0 CALL 0x0012d300 MOV qword ptr [RSP + 0x10],RAX MOV qword ptr [RSP + 0x18],RDX MOV dword ptr [RSP + 0xa4],0xffffffff JMP 0x00160e10 LAB_00160e05: MOV dword ptr [RSP + 0xa4],0x0 LAB_00160e10: MOV EAX,dword ptr [RSP + 0xa4] ADD RSP,0xa8 RET
int4 call_setter(int8 param_1,long param_2,int8 param_3,int8 param_4,int8 param_5 ,int8 param_6,uint param_7) { int iVar1; int1 auVar2 [16]; int8 local_28; int8 local_20; int8 local_18; int8 local_10; int4 local_4; local_28 = param_5; local_20 = param_6; local_18 = param_3; local_10 = param_4; if (param_2 == 0) { JS_FreeValue(param_1,param_5,param_6); if (((param_7 & 0x4000) == 0) && (((param_7 & 0x8000) == 0 || (iVar1 = is_strict_mode(param_1), iVar1 == 0)))) { local_4 = 0; } else { JS_ThrowTypeError(param_1,"no setter for property"); local_4 = 0xffffffff; } return local_4; } auVar2 = js_dup(param_2,0xffffffffffffffff); auVar2 = JS_CallFree(param_1,auVar2._0_8_,auVar2._8_8_,local_18,local_10,1,&local_28); JS_FreeValue(param_1,local_28,local_20); iVar1 = JS_IsException(auVar2._0_8_,auVar2._8_8_); if (iVar1 != 0) { return 0xffffffff; } JS_FreeValue(param_1,auVar2._0_8_,auVar2._8_8_); return 1; }
38,789
call_setter
bluesky950520[P]quickjs/quickjs.c
static int call_setter(JSContext *ctx, JSObject *setter, JSValue this_obj, JSValue val, int flags) { JSValue ret, func; if (likely(setter)) { func = JS_MKPTR(JS_TAG_OBJECT, setter); /* Note: the field could be removed in the setter */ func = js_dup(func); ret = JS_CallFree(ctx, func, this_obj, 1, &val); JS_FreeValue(ctx, val); if (JS_IsException(ret)) return -1; JS_FreeValue(ctx, ret); return TRUE; } else { JS_FreeValue(ctx, val); if ((flags & JS_PROP_THROW) || ((flags & JS_PROP_THROW_STRICT) && is_strict_mode(ctx))) { JS_ThrowTypeError(ctx, "no setter for property"); return -1; } return FALSE; } }
O1
c
call_setter: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x20, %rsp movq %rdi, %rbx movq %r8, 0x10(%rsp) movq %r9, 0x18(%rsp) testq %rsi, %rsi je 0x3da49 movq %rcx, %rax movq %rdx, %rcx incl (%rsi) leaq 0x10(%rsp), %r12 movq %r12, (%rsp) movq %rbx, %rdi movq $-0x1, %rdx movq %rax, %r8 movl $0x1, %r9d callq 0x22c9d movq %rax, %r14 movq %rdx, %r15 movq (%r12), %rsi movq 0x8(%r12), %rdx movq 0x18(%rbx), %rdi callq 0x1d8c6 movl $0xffffffff, %eax # imm = 0xFFFFFFFF cmpl $0x6, %r15d je 0x3da3c movq 0x18(%rbx), %rdi movq %r14, %rsi movq %r15, %rdx callq 0x1d8c6 movl $0x1, %eax addq $0x20, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movl 0x50(%rsp), %ebp movq 0x18(%rbx), %rdi movq %r8, %rsi movq %r9, %rdx callq 0x1d8c6 btl $0xe, %ebp jb 0x3da7f xorl %eax, %eax testw %bp, %bp jns 0x3da3c movq 0x18(%rbx), %rcx movq 0x108(%rcx), %rcx testq %rcx, %rcx je 0x3da3c cmpl $0x0, 0x40(%rcx) jns 0x3da3c leaq 0x61696(%rip), %rsi # 0x9f11c movq %rbx, %rdi xorl %eax, %eax callq 0x22567 movl $0xffffffff, %eax # imm = 0xFFFFFFFF jmp 0x3da3c
call_setter: push rbp push r15 push r14 push r12 push rbx sub rsp, 20h mov rbx, rdi mov [rsp+48h+var_38], r8 mov [rsp+48h+var_30], r9 test rsi, rsi jz short loc_3DA49 mov rax, rcx mov rcx, rdx inc dword ptr [rsi] lea r12, [rsp+48h+var_38] mov [rsp+48h+var_48], r12 mov rdi, rbx mov rdx, 0FFFFFFFFFFFFFFFFh mov r8, rax mov r9d, 1 call JS_CallFree mov r14, rax mov r15, rdx mov rsi, [r12] mov rdx, [r12+8] mov rdi, [rbx+18h] call JS_FreeValueRT mov eax, 0FFFFFFFFh cmp r15d, 6 jz short loc_3DA3C mov rdi, [rbx+18h] mov rsi, r14 mov rdx, r15 call JS_FreeValueRT mov eax, 1 loc_3DA3C: add rsp, 20h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_3DA49: mov ebp, [rsp+48h+arg_0] mov rdi, [rbx+18h] mov rsi, r8 mov rdx, r9 call JS_FreeValueRT bt ebp, 0Eh jb short loc_3DA7F xor eax, eax test bp, bp jns short loc_3DA3C mov rcx, [rbx+18h] mov rcx, [rcx+108h] test rcx, rcx jz short loc_3DA3C cmp dword ptr [rcx+40h], 0 jns short loc_3DA3C loc_3DA7F: lea rsi, aNoSetterForPro; "no setter for property" mov rdi, rbx xor eax, eax call JS_ThrowTypeError mov eax, 0FFFFFFFFh jmp short loc_3DA3C
long long call_setter( long long a1, _DWORD *a2, int a3, int a4, _DWORD *a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, double a11, double a12, __m128 a13, __m128 a14, __int16 a15) { _DWORD *v15; // r14 long long v16; // rdx long long v17; // r15 long long result; // rax long long v19; // rdx long long v20; // rcx long long v21; // r8 long long v22; // r9 __m128 v23; // xmm4 __m128 v24; // xmm5 char v25; // [rsp+0h] [rbp-48h] _DWORD *v26; // [rsp+10h] [rbp-38h] BYREF long long v27; // [rsp+18h] [rbp-30h] v26 = a5; v27 = a6; if ( a2 ) { ++*a2; v15 = (_DWORD *)JS_CallFree(a1, a2, -1LL, a3, a4, 1, (long long)&v26); v17 = v16; JS_FreeValueRT(*(_QWORD *)(a1 + 24), v26, v27); result = 0xFFFFFFFFLL; if ( (_DWORD)v17 != 6 ) { JS_FreeValueRT(*(_QWORD *)(a1 + 24), v15, v17); return 1LL; } } else { JS_FreeValueRT(*(_QWORD *)(a1 + 24), a5, a6); if ( (a15 & 0x4000) != 0 || (result = 0LL, a15 < 0) && (v20 = *(_QWORD *)(*(_QWORD *)(a1 + 24) + 264LL)) != 0 && *(int *)(v20 + 64) < 0 ) { JS_ThrowTypeError( a1, (long long)"no setter for property", v19, v20, v21, v22, a7, a8, a9, a10, v23, v24, a13, a14, v25); return 0xFFFFFFFFLL; } } return result; }
38,790
call_setter
bluesky950520[P]quickjs/quickjs.c
static int call_setter(JSContext *ctx, JSObject *setter, JSValue this_obj, JSValue val, int flags) { JSValue ret, func; if (likely(setter)) { func = JS_MKPTR(JS_TAG_OBJECT, setter); /* Note: the field could be removed in the setter */ func = js_dup(func); ret = JS_CallFree(ctx, func, this_obj, 1, &val); JS_FreeValue(ctx, val); if (JS_IsException(ret)) return -1; JS_FreeValue(ctx, ret); return TRUE; } else { JS_FreeValue(ctx, val); if ((flags & JS_PROP_THROW) || ((flags & JS_PROP_THROW_STRICT) && is_strict_mode(ctx))) { JS_ThrowTypeError(ctx, "no setter for property"); return -1; } return FALSE; } }
O2
c
call_setter: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x20, %rsp movq %rdi, %rbx movq %r8, 0x10(%rsp) movq %r9, 0x18(%rsp) testq %rsi, %rsi je 0x36260 movq %rcx, %rax movq %rdx, %rcx incl (%rsi) leaq 0x10(%rsp), %r12 movq %r12, (%rsp) pushq $-0x1 popq %rdx pushq $0x1 popq %rbp movq %rbx, %rdi movq %rax, %r8 movl %ebp, %r9d callq 0x1cd8e movq %rax, %r14 movq %rdx, %r15 movq (%r12), %rsi movq 0x8(%r12), %rdx movq %rbx, %rdi callq 0x1801e cmpl $0x6, %r15d jne 0x36243 pushq $-0x1 popq %rbp jmp 0x36251 movq %rbx, %rdi movq %r14, %rsi movq %r15, %rdx callq 0x1801e movl %ebp, %eax addq $0x20, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movl 0x50(%rsp), %r14d movq %rbx, %rdi movq %r8, %rsi movq %r9, %rdx callq 0x1801e btl $0xe, %r14d jb 0x36298 xorl %ebp, %ebp testw %r14w, %r14w jns 0x36251 movq 0x18(%rbx), %rax movq 0x108(%rax), %rax testq %rax, %rax je 0x36251 cmpl $0x0, 0x40(%rax) jns 0x36251 leaq 0x4fdcd(%rip), %rsi # 0x8606c movq %rbx, %rdi xorl %eax, %eax callq 0x1c64d jmp 0x3623e
call_setter: push rbp push r15 push r14 push r12 push rbx sub rsp, 20h mov rbx, rdi mov [rsp+48h+var_38], r8 mov [rsp+48h+var_30], r9 test rsi, rsi jz short loc_36260 mov rax, rcx mov rcx, rdx inc dword ptr [rsi] lea r12, [rsp+48h+var_38] mov [rsp+48h+var_48], r12 push 0FFFFFFFFFFFFFFFFh pop rdx push 1 pop rbp mov rdi, rbx mov r8, rax mov r9d, ebp call JS_CallFree mov r14, rax mov r15, rdx mov rsi, [r12] mov rdx, [r12+8] mov rdi, rbx call JS_FreeValue cmp r15d, 6 jnz short loc_36243 loc_3623E: push 0FFFFFFFFFFFFFFFFh pop rbp jmp short loc_36251 loc_36243: mov rdi, rbx mov rsi, r14 mov rdx, r15 call JS_FreeValue loc_36251: mov eax, ebp add rsp, 20h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_36260: mov r14d, [rsp+48h+arg_0] mov rdi, rbx mov rsi, r8 mov rdx, r9 call JS_FreeValue bt r14d, 0Eh jb short loc_36298 xor ebp, ebp test r14w, r14w jns short loc_36251 mov rax, [rbx+18h] mov rax, [rax+108h] test rax, rax jz short loc_36251 cmp dword ptr [rax+40h], 0 jns short loc_36251 loc_36298: lea rsi, aNoSetterForPro; "no setter for property" mov rdi, rbx xor eax, eax call JS_ThrowTypeError jmp short loc_3623E
long long call_setter( long long a1, _DWORD *a2, int a3, int a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, double a11, double a12, __m128 a13, __m128 a14, __int16 a15) { unsigned int v15; // ebp long long v16; // r14 long long v17; // rdx long long v18; // r15 long long v20; // rdx long long v21; // rcx long long v22; // r8 long long v23; // r9 __m128 v24; // xmm4 __m128 v25; // xmm5 long long v26; // rax char v27; // [rsp+0h] [rbp-48h] long long v28; // [rsp+10h] [rbp-38h] BYREF long long v29; // [rsp+18h] [rbp-30h] v28 = a5; v29 = a6; if ( a2 ) { ++*a2; v15 = 1; v16 = JS_CallFree(a1, (long long)a2, -1LL, a3, a4, 1, (long long)&v28); v18 = v17; JS_FreeValue(a1, v28, v29); if ( (_DWORD)v18 != 6 ) { JS_FreeValue(a1, v16, v18); return v15; } return (unsigned int)-1; } JS_FreeValue(a1, a5, a6); if ( (a15 & 0x4000) != 0 || (v15 = 0, a15 < 0) && (v26 = *(_QWORD *)(*(_QWORD *)(a1 + 24) + 264LL)) != 0 && *(int *)(v26 + 64) < 0 ) { JS_ThrowTypeError( a1, (long long)"no setter for property", v20, v21, v22, v23, a7, a8, a9, a10, v24, v25, a13, a14, v27); return (unsigned int)-1; } return v15; }
call_setter: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x20 MOV RBX,RDI MOV qword ptr [RSP + 0x10],R8 MOV qword ptr [RSP + 0x18],R9 TEST RSI,RSI JZ 0x00136260 MOV RAX,RCX MOV RCX,RDX INC dword ptr [RSI] LEA R12,[RSP + 0x10] MOV qword ptr [RSP],R12 PUSH -0x1 POP RDX PUSH 0x1 POP RBP MOV RDI,RBX MOV R8,RAX MOV R9D,EBP CALL 0x0011cd8e MOV R14,RAX MOV R15,RDX MOV RSI,qword ptr [R12] MOV RDX,qword ptr [R12 + 0x8] MOV RDI,RBX CALL 0x0011801e CMP R15D,0x6 JNZ 0x00136243 LAB_0013623e: PUSH -0x1 POP RBP JMP 0x00136251 LAB_00136243: MOV RDI,RBX MOV RSI,R14 MOV RDX,R15 CALL 0x0011801e LAB_00136251: MOV EAX,EBP ADD RSP,0x20 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_00136260: MOV R14D,dword ptr [RSP + 0x50] MOV RDI,RBX MOV RSI,R8 MOV RDX,R9 CALL 0x0011801e BT R14D,0xe JC 0x00136298 XOR EBP,EBP TEST R14W,R14W JNS 0x00136251 MOV RAX,qword ptr [RBX + 0x18] MOV RAX,qword ptr [RAX + 0x108] TEST RAX,RAX JZ 0x00136251 CMP dword ptr [RAX + 0x40],0x0 JNS 0x00136251 LAB_00136298: LEA RSI,[0x18606c] MOV RDI,RBX XOR EAX,EAX CALL 0x0011c64d JMP 0x0013623e
int4 call_setter(long param_1,int *param_2,int8 param_3,int8 param_4,int8 param_5, int8 param_6,uint param_7) { long lVar1; int1 auVar2 [16]; int8 local_38; int8 local_30; local_38 = param_5; local_30 = param_6; if (param_2 == (int *)0x0) { JS_FreeValue(param_1,param_5,param_6); if ((param_7 >> 0xe & 1) == 0) { if (-1 < (short)param_7) { return 0; } lVar1 = *(long *)(*(long *)(param_1 + 0x18) + 0x108); if (lVar1 == 0) { return 0; } if (-1 < *(int *)(lVar1 + 0x40)) { return 0; } } JS_ThrowTypeError(param_1,"no setter for property"); } else { *param_2 = *param_2 + 1; auVar2 = JS_CallFree(param_1,param_2,0xffffffffffffffff,param_3,param_4,1,&local_38); JS_FreeValue(param_1,local_38,local_30); if (auVar2._8_4_ != 6) { JS_FreeValue(param_1,auVar2._0_8_,auVar2._8_8_); return 1; } } return 0xffffffff; }
38,791
my_thread_destroy_common_mutex
eloqsql/mysys/my_thr_init.c
void my_thread_destroy_common_mutex(void) { mysql_mutex_destroy(&THR_LOCK_open); mysql_mutex_destroy(&THR_LOCK_lock); mysql_mutex_destroy(&THR_LOCK_myisam); mysql_mutex_destroy(&THR_LOCK_myisam_mmap); mysql_mutex_destroy(&THR_LOCK_heap); mysql_mutex_destroy(&THR_LOCK_net); mysql_mutex_destroy(&THR_LOCK_charset); #if !defined(HAVE_LOCALTIME_R) || !defined(HAVE_GMTIME_R) mysql_mutex_destroy(&LOCK_localtime_r); #endif }
O0
c
my_thread_destroy_common_mutex: pushq %rbp movq %rsp, %rbp leaq 0x3c6d05(%rip), %rdi # 0x3ff750 callq 0x38aa0 leaq 0x3c6d41(%rip), %rdi # 0x3ff798 callq 0x38aa0 leaq 0x3c6d7d(%rip), %rdi # 0x3ff7e0 callq 0x38aa0 leaq 0x3c6db9(%rip), %rdi # 0x3ff828 callq 0x38aa0 leaq 0x3c6df5(%rip), %rdi # 0x3ff870 callq 0x38aa0 leaq 0x3c6e31(%rip), %rdi # 0x3ff8b8 callq 0x38aa0 leaq 0x3c6e6d(%rip), %rdi # 0x3ff900 callq 0x38aa0 popq %rbp retq nopw (%rax,%rax)
my_thread_destroy_common_mutex: push rbp mov rbp, rsp lea rdi, THR_LOCK_open call inline_mysql_mutex_destroy lea rdi, THR_LOCK_lock call inline_mysql_mutex_destroy lea rdi, THR_LOCK_myisam call inline_mysql_mutex_destroy lea rdi, THR_LOCK_myisam_mmap call inline_mysql_mutex_destroy lea rdi, THR_LOCK_heap call inline_mysql_mutex_destroy lea rdi, THR_LOCK_net call inline_mysql_mutex_destroy lea rdi, THR_LOCK_charset call inline_mysql_mutex_destroy pop rbp retn
long long my_thread_destroy_common_mutex() { inline_mysql_mutex_destroy(&THR_LOCK_open); inline_mysql_mutex_destroy(&THR_LOCK_lock); inline_mysql_mutex_destroy(&THR_LOCK_myisam); inline_mysql_mutex_destroy(&THR_LOCK_myisam_mmap); inline_mysql_mutex_destroy(&THR_LOCK_heap); inline_mysql_mutex_destroy(&THR_LOCK_net); return inline_mysql_mutex_destroy(&THR_LOCK_charset); }
my_thread_destroy_common_mutex: PUSH RBP MOV RBP,RSP LEA RDI,[0x4ff750] CALL 0x00138aa0 LEA RDI,[0x4ff798] CALL 0x00138aa0 LEA RDI,[0x4ff7e0] CALL 0x00138aa0 LEA RDI,[0x4ff828] CALL 0x00138aa0 LEA RDI,[0x4ff870] CALL 0x00138aa0 LEA RDI,[0x4ff8b8] CALL 0x00138aa0 LEA RDI,[0x4ff900] CALL 0x00138aa0 POP RBP RET
void my_thread_destroy_common_mutex(void) { inline_mysql_mutex_destroy(THR_LOCK_open); inline_mysql_mutex_destroy(THR_LOCK_lock); inline_mysql_mutex_destroy(THR_LOCK_myisam); inline_mysql_mutex_destroy(THR_LOCK_myisam_mmap); inline_mysql_mutex_destroy(THR_LOCK_heap); inline_mysql_mutex_destroy(THR_LOCK_net); inline_mysql_mutex_destroy(THR_LOCK_charset); return; }
38,792
ma_unlock_key_del
eloqsql/storage/maria/ma_key_recover.c
void _ma_unlock_key_del(MARIA_HA *info) { DBUG_ASSERT(info->key_del_used); if (info->key_del_used == 1) /* Ignore insert-with-append */ { MARIA_SHARE *share= info->s; mysql_mutex_lock(&share->key_del_lock); share->key_del_used= 0; share->state.key_del= share->key_del_current; mysql_mutex_unlock(&share->key_del_lock); mysql_cond_signal(&share->key_del_cond); } info->key_del_used= 0; }
O3
c
ma_unlock_key_del: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx cmpb $0x1, 0x67e(%rdi) jne 0x5aa79 movq (%rbx), %r14 leaq 0x938(%r14), %r15 cmpq $0x0, 0x978(%r14) jne 0x5aa8b movq %r15, %rdi callq 0x29220 movb $0x0, 0x7e9(%r14) movq 0x700(%r14), %rax movq %rax, 0x120(%r14) movq 0x978(%r14), %rdi testq %rdi, %rdi jne 0x5aaa1 movq %r15, %rdi callq 0x291e0 movq 0x9b0(%r14), %rdi addq $0x980, %r14 # imm = 0x980 testq %rdi, %rdi jne 0x5aab3 movq %r14, %rdi callq 0x295c0 movb $0x0, 0x67e(%rbx) addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq leaq 0x7fdb1(%rip), %rsi # 0xda843 movq %r15, %rdi movl $0x59a, %edx # imm = 0x59A callq 0x2eb8f jmp 0x5aa34 leaq 0x32b568(%rip), %rax # 0x386010 movq (%rax), %rax callq *0x160(%rax) jmp 0x5aa56 leaq 0x32b556(%rip), %rax # 0x386010 movq (%rax), %rax callq *0x170(%rax) jmp 0x5aa71 nopl (%rax)
_ma_unlock_key_del: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov rbx, rdi cmp byte ptr [rdi+67Eh], 1 jnz short loc_5AA79 mov r14, [rbx] lea r15, [r14+938h] cmp qword ptr [r14+978h], 0 jnz short loc_5AA8B mov rdi, r15 call _pthread_mutex_lock loc_5AA34: mov byte ptr [r14+7E9h], 0 mov rax, [r14+700h] mov [r14+120h], rax mov rdi, [r14+978h] test rdi, rdi jnz short loc_5AAA1 loc_5AA56: mov rdi, r15 call _pthread_mutex_unlock mov rdi, [r14+9B0h] add r14, 980h test rdi, rdi jnz short loc_5AAB3 loc_5AA71: mov rdi, r14 call _pthread_cond_signal loc_5AA79: mov byte ptr [rbx+67Eh], 0 add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn loc_5AA8B: lea rsi, aWorkspaceLlm4b_31; "/workspace/llm4binary/github2025/eloqsq"... mov rdi, r15 mov edx, 59Ah call psi_mutex_lock jmp short loc_5AA34 loc_5AAA1: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_5AA56 loc_5AAB3: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+170h] jmp short loc_5AA71
long long ma_unlock_key_del(_BYTE *a1) { long long v2; // r14 long long v3; // r15 long long v4; // rdi long long v5; // rdi long long v6; // r14 long long result; // rax if ( a1[1662] == 1 ) { v2 = *(_QWORD *)a1; v3 = *(_QWORD *)a1 + 2360LL; if ( *(_QWORD *)(*(_QWORD *)a1 + 2424LL) ) psi_mutex_lock( *(_QWORD *)a1 + 2360LL, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_key_recover.c", 0x59Au); else pthread_mutex_lock(*(_QWORD *)a1 + 2360LL); *(_BYTE *)(v2 + 2025) = 0; *(_QWORD *)(v2 + 288) = *(_QWORD *)(v2 + 1792); v4 = *(_QWORD *)(v2 + 2424); if ( v4 ) ((void ( *)(long long))PSI_server[44])(v4); pthread_mutex_unlock(v3); v5 = *(_QWORD *)(v2 + 2480); v6 = v2 + 2432; if ( v5 ) ((void ( *)(long long))PSI_server[46])(v5); result = pthread_cond_signal(v6); } a1[1662] = 0; return result; }
_ma_unlock_key_del: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI CMP byte ptr [RDI + 0x67e],0x1 JNZ 0x0015aa79 MOV R14,qword ptr [RBX] LEA R15,[R14 + 0x938] CMP qword ptr [R14 + 0x978],0x0 JNZ 0x0015aa8b MOV RDI,R15 CALL 0x00129220 LAB_0015aa34: MOV byte ptr [R14 + 0x7e9],0x0 MOV RAX,qword ptr [R14 + 0x700] MOV qword ptr [R14 + 0x120],RAX MOV RDI,qword ptr [R14 + 0x978] TEST RDI,RDI JNZ 0x0015aaa1 LAB_0015aa56: MOV RDI,R15 CALL 0x001291e0 MOV RDI,qword ptr [R14 + 0x9b0] ADD R14,0x980 TEST RDI,RDI JNZ 0x0015aab3 LAB_0015aa71: MOV RDI,R14 CALL 0x001295c0 LAB_0015aa79: MOV byte ptr [RBX + 0x67e],0x0 ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET LAB_0015aa8b: LEA RSI,[0x1da843] MOV RDI,R15 MOV EDX,0x59a CALL 0x0012eb8f JMP 0x0015aa34 LAB_0015aaa1: LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x0015aa56 LAB_0015aab3: LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x170] JMP 0x0015aa71
void _ma_unlock_key_del(long *param_1) { pthread_mutex_t *__mutex; long lVar1; if (*(char *)((long)param_1 + 0x67e) == '\x01') { lVar1 = *param_1; __mutex = (pthread_mutex_t *)(lVar1 + 0x938); if (*(long *)(lVar1 + 0x978) == 0) { pthread_mutex_lock(__mutex); } else { psi_mutex_lock(__mutex, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_key_recover.c",0x59a ); } *(int1 *)(lVar1 + 0x7e9) = 0; *(int8 *)(lVar1 + 0x120) = *(int8 *)(lVar1 + 0x700); if (*(long *)(lVar1 + 0x978) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(__mutex); if (*(long *)(lVar1 + 0x9b0) != 0) { (**(code **)(PSI_server + 0x170))(); } pthread_cond_signal((pthread_cond_t *)(lVar1 + 0x980)); } *(int1 *)((long)param_1 + 0x67e) = 0; return; }
38,793
stbi_info
llama.cpp/examples/llava/../../common/stb_image.h
STBIDEF int stbi_info(char const *filename, int *x, int *y, int *comp) { FILE *f = stbi__fopen(filename, "rb"); int result; if (!f) return stbi__err("can't fopen", "Unable to open file"); result = stbi_info_from_file(f, x, y, comp); fclose(f); return result; }
O3
c
stbi_info: pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rcx, %rbx movq %rdx, %r14 movq %rsi, %r15 leaq 0x2b089(%rip), %rsi # 0x45539 callq 0x15da0 testq %rax, %rax je 0x1a4dc movq %rax, %r12 movq %rax, %rdi movq %r15, %rsi movq %r14, %rdx movq %rbx, %rcx callq 0x1a504 movl %eax, %ebx movq %r12, %rdi callq 0x154c0 movl %ebx, %eax jmp 0x1a4f8 movq %fs:0x0, %rax leaq 0x2bc00(%rip), %rcx # 0x460ef movq %rcx, -0x20(%rax) xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
stbi_info: push r15 push r14 push r12 push rbx push rax mov rbx, rcx mov r14, rdx mov r15, rsi lea rsi, aRb; "rb" call _fopen test rax, rax jz short loc_1A4DC mov r12, rax mov rdi, rax mov rsi, r15 mov rdx, r14 mov rcx, rbx call stbi_info_from_file mov ebx, eax mov rdi, r12 call _fclose mov eax, ebx jmp short loc_1A4F8 loc_1A4DC: mov rax, fs:0 lea rcx, aCanTFopen; "can't fopen" mov [rax-20h], rcx xor eax, eax loc_1A4F8: add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
long long stbi_info(long long a1, long long a2, long long a3, long long a4) { long long v6; // rax long long v7; // r12 unsigned int v8; // ebx v6 = fopen(a1, "rb"); if ( v6 ) { v7 = v6; v8 = stbi_info_from_file(v6, a2, a3, a4); fclose(v7); return v8; } else { *(_QWORD *)(__readfsqword(0) - 32) = "can't fopen"; return 0LL; } }
stbi_info: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RCX MOV R14,RDX MOV R15,RSI LEA RSI,[0x145539] CALL 0x00115da0 TEST RAX,RAX JZ 0x0011a4dc MOV R12,RAX MOV RDI,RAX MOV RSI,R15 MOV RDX,R14 MOV RCX,RBX CALL 0x0011a504 MOV EBX,EAX MOV RDI,R12 CALL 0x001154c0 MOV EAX,EBX JMP 0x0011a4f8 LAB_0011a4dc: MOV RAX,qword ptr FS:[0x0] LEA RCX,[0x1460ef] MOV qword ptr [RAX + -0x20],RCX XOR EAX,EAX LAB_0011a4f8: ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
int4 stbi_info(char *param_1,int8 param_2,int8 param_3,int8 param_4) { int4 uVar1; FILE *__stream; long *in_FS_OFFSET; __stream = fopen(param_1,"rb"); if (__stream == (FILE *)0x0) { *(char **)(*in_FS_OFFSET + -0x20) = "can\'t fopen"; uVar1 = 0; } else { uVar1 = stbi_info_from_file(__stream,param_2,param_3,param_4); fclose(__stream); } return uVar1; }
38,794
my_uuid_init
eloqsql/mysys/my_uuid.c
void my_uuid_init(ulong seed1, ulong seed2) { uchar *mac= uuid_suffix+2; ulonglong now; if (my_uuid_inited) return; my_uuid_inited= 1; now= my_interval_timer()/100 + interval_timer_offset; nanoseq= 0; if (my_gethwaddr(mac)) { uint i; /* Generating random "hardware addr" Specs explicitly specify that node identifier should NOT correlate with a clock_seq value, so we use a separate randominit() here. */ /* purecov: begin inspected */ my_rnd_init(&uuid_rand, (ulong) (seed2+ now/2), (ulong) (now+rand())); for (i=0; i < array_elements(uuid_suffix) -2 ; i++) mac[i]= (uchar)(my_rnd(&uuid_rand)*255); /* purecov: end */ } my_rnd_init(&uuid_rand, (ulong) (seed1 + now), (ulong) (now/2+ getpid())); set_clock_seq(); mysql_mutex_init(key_LOCK_uuid_generator, &LOCK_uuid_generator, MY_MUTEX_INIT_FAST); }
O0
c
my_uuid_init: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) leaq 0xb847f1(%rip), %rax # 0xc83638 addq $0x2, %rax movq %rax, -0x18(%rbp) cmpb $0x0, 0xb847ea(%rip) # 0xc83640 je 0xfee5d jmp 0xfef65 movb $0x1, 0xb847dc(%rip) # 0xc83640 callq 0xf00a0 movl $0x64, %ecx xorl %edx, %edx divq %rcx addq 0xb847ce(%rip), %rax # 0xc83648 movq %rax, -0x20(%rbp) movl $0x0, 0xb847c8(%rip) # 0xc83650 movq -0x18(%rbp), %rdi callq 0x103650 cmpb $0x0, %al je 0xfef0f movq -0x10(%rbp), %rax movq -0x20(%rbp), %rcx shrq %rcx addq %rcx, %rax movq %rax, -0x30(%rbp) movq -0x20(%rbp), %rax movq %rax, -0x38(%rbp) callq 0x2a750 movq -0x38(%rbp), %rdx movq -0x30(%rbp), %rsi cltq addq %rax, %rdx leaq 0xb84790(%rip), %rdi # 0xc83658 callq 0x103a00 movl $0x0, -0x24(%rbp) cmpl $0x6, -0x24(%rbp) jae 0xfef0d leaq 0xb84777(%rip), %rdi # 0xc83658 callq 0x103a80 movsd 0x59de2(%rip), %xmm1 # 0x158cd0 mulsd %xmm1, %xmm0 cvttsd2si %xmm0, %eax movb %al, %dl movq -0x18(%rbp), %rax movl -0x24(%rbp), %ecx movb %dl, (%rax,%rcx) movl -0x24(%rbp), %eax addl $0x1, %eax movl %eax, -0x24(%rbp) jmp 0xfeed4 jmp 0xfef0f movq -0x8(%rbp), %rax addq -0x20(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x20(%rbp), %rax shrq %rax movq %rax, -0x48(%rbp) callq 0x2a8b0 movq -0x48(%rbp), %rdx movq -0x40(%rbp), %rsi cltq addq %rax, %rdx leaq 0xb84719(%rip), %rdi # 0xc83658 callq 0x103a00 callq 0xff4e0 leaq 0xb83a08(%rip), %rax # 0xc82958 movl (%rax), %edi leaq 0xb8471f(%rip), %rsi # 0xc83678 leaq 0xb846d0(%rip), %rdx # 0xc83630 callq 0xfef70 addq $0x50, %rsp popq %rbp retq nopl (%rax,%rax)
my_uuid_init: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_8], rdi mov [rbp+var_10], rsi lea rax, uuid_suffix add rax, 2 mov [rbp+var_18], rax cmp cs:my_uuid_inited, 0 jz short loc_FEE5D jmp loc_FEF65 loc_FEE5D: mov cs:my_uuid_inited, 1 call my_interval_timer mov ecx, 64h ; 'd' xor edx, edx div rcx add rax, cs:interval_timer_offset mov [rbp+var_20], rax mov cs:nanoseq, 0 mov rdi, [rbp+var_18] call my_gethwaddr cmp al, 0 jz short loc_FEF0F mov rax, [rbp+var_10] mov rcx, [rbp+var_20] shr rcx, 1 add rax, rcx mov [rbp+var_30], rax mov rax, [rbp+var_20] mov [rbp+var_38], rax call _rand mov rdx, [rbp+var_38] mov rsi, [rbp+var_30] cdqe add rdx, rax lea rdi, uuid_rand call my_rnd_init mov [rbp+var_24], 0 loc_FEED4: cmp [rbp+var_24], 6 jnb short loc_FEF0D lea rdi, uuid_rand call my_rnd movsd xmm1, cs:qword_158CD0 mulsd xmm0, xmm1 cvttsd2si eax, xmm0 mov dl, al mov rax, [rbp+var_18] mov ecx, [rbp+var_24] mov [rax+rcx], dl mov eax, [rbp+var_24] add eax, 1 mov [rbp+var_24], eax jmp short loc_FEED4 loc_FEF0D: jmp short $+2 loc_FEF0F: mov rax, [rbp+var_8] add rax, [rbp+var_20] mov [rbp+var_40], rax mov rax, [rbp+var_20] shr rax, 1 mov [rbp+var_48], rax call _getpid mov rdx, [rbp+var_48] mov rsi, [rbp+var_40] cdqe add rdx, rax lea rdi, uuid_rand call my_rnd_init call set_clock_seq lea rax, key_LOCK_uuid_generator mov edi, [rax] lea rsi, LOCK_uuid_generator lea rdx, my_fast_mutexattr call inline_mysql_mutex_init_12 loc_FEF65: add rsp, 50h pop rbp retn
char * my_uuid_init(long long a1, long long a2) { char *result; // rax unsigned long long v3; // rax int v4; // eax int v5; // eax unsigned int i; // [rsp+2Ch] [rbp-24h] unsigned long long v7; // [rsp+30h] [rbp-20h] char *v8; // [rsp+38h] [rbp-18h] result = (char *)&uuid_suffix + 2; v8 = (char *)&uuid_suffix + 2; if ( !my_uuid_inited ) { my_uuid_inited = 1; v3 = my_interval_timer(); v7 = interval_timer_offset + v3 / 0x64; nanoseq = 0; if ( (unsigned __int8)my_gethwaddr(v8, a2, v3 % 0x64) ) { v4 = rand(); my_rnd_init(&uuid_rand, (v7 >> 1) + a2, v4 + v7); for ( i = 0; i < 6; ++i ) v8[i] = (int)(my_rnd(&uuid_rand) * 255.0); } v5 = getpid(); my_rnd_init(&uuid_rand, v7 + a1, v5 + (v7 >> 1)); set_clock_seq(); return (char *)inline_mysql_mutex_init_12(key_LOCK_uuid_generator, &LOCK_uuid_generator, &my_fast_mutexattr); } return result; }
my_uuid_init: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI LEA RAX,[0xd83638] ADD RAX,0x2 MOV qword ptr [RBP + -0x18],RAX CMP byte ptr [0x00d83640],0x0 JZ 0x001fee5d JMP 0x001fef65 LAB_001fee5d: MOV byte ptr [0x00d83640],0x1 CALL 0x001f00a0 MOV ECX,0x64 XOR EDX,EDX DIV RCX ADD RAX,qword ptr [0x00d83648] MOV qword ptr [RBP + -0x20],RAX MOV dword ptr [0x00d83650],0x0 MOV RDI,qword ptr [RBP + -0x18] CALL 0x00203650 CMP AL,0x0 JZ 0x001fef0f MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x20] SHR RCX,0x1 ADD RAX,RCX MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x38],RAX CALL 0x0012a750 MOV RDX,qword ptr [RBP + -0x38] MOV RSI,qword ptr [RBP + -0x30] CDQE ADD RDX,RAX LEA RDI,[0xd83658] CALL 0x00203a00 MOV dword ptr [RBP + -0x24],0x0 LAB_001feed4: CMP dword ptr [RBP + -0x24],0x6 JNC 0x001fef0d LEA RDI,[0xd83658] CALL 0x00203a80 MOVSD XMM1,qword ptr [0x00258cd0] MULSD XMM0,XMM1 CVTTSD2SI EAX,XMM0 MOV DL,AL MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RBP + -0x24] MOV byte ptr [RAX + RCX*0x1],DL MOV EAX,dword ptr [RBP + -0x24] ADD EAX,0x1 MOV dword ptr [RBP + -0x24],EAX JMP 0x001feed4 LAB_001fef0d: JMP 0x001fef0f LAB_001fef0f: MOV RAX,qword ptr [RBP + -0x8] ADD RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x20] SHR RAX,0x1 MOV qword ptr [RBP + -0x48],RAX CALL 0x0012a8b0 MOV RDX,qword ptr [RBP + -0x48] MOV RSI,qword ptr [RBP + -0x40] CDQE ADD RDX,RAX LEA RDI,[0xd83658] CALL 0x00203a00 CALL 0x001ff4e0 LEA RAX,[0xd82958] MOV EDI,dword ptr [RAX] LEA RSI,[0xd83678] LEA RDX,[0xd83630] CALL 0x001fef70 LAB_001fef65: ADD RSP,0x50 POP RBP RET
void my_uuid_init(long param_1,long param_2) { char cVar1; int iVar2; __pid_t _Var3; ulong uVar4; double dVar5; uint local_2c; if (my_uuid_inited == '\0') { my_uuid_inited = '\x01'; uVar4 = my_interval_timer(); uVar4 = uVar4 / 100 + interval_timer_offset; nanoseq = 0; cVar1 = my_gethwaddr(0xd8363a); if (cVar1 != '\0') { iVar2 = rand(); my_rnd_init(uuid_rand,param_2 + (uVar4 >> 1),uVar4 + (long)iVar2); for (local_2c = 0; local_2c < 6; local_2c = local_2c + 1) { dVar5 = (double)my_rnd(uuid_rand); *(char *)((long)&uuid_suffix + (ulong)local_2c + 2) = (char)(int)(dVar5 * DAT_00258cd0); } } _Var3 = getpid(); my_rnd_init(uuid_rand,param_1 + uVar4,(uVar4 >> 1) + (long)_Var3); set_clock_seq(); inline_mysql_mutex_init(key_LOCK_uuid_generator,LOCK_uuid_generator,&my_fast_mutexattr); } return; }
38,795
ma_apply_redo_index_free_page
eloqsql/storage/maria/ma_key_recover.c
uint _ma_apply_redo_index_free_page(MARIA_HA *info, LSN lsn, const uchar *header) { pgcache_page_no_t page= page_korr(header); pgcache_page_no_t free_page= page_korr(header + PAGE_STORE_SIZE); my_off_t old_link; MARIA_PINNED_PAGE page_link; MARIA_SHARE *share= info->s; uchar *buff; int result; DBUG_ENTER("_ma_apply_redo_index_free_page"); DBUG_PRINT("enter", ("page: %lu free_page: %lu", (ulong) page, (ulong) free_page)); share->state.changed|= (STATE_CHANGED | STATE_NOT_OPTIMIZED_KEYS | STATE_NOT_SORTED_PAGES | STATE_NOT_ZEROFILLED | STATE_NOT_MOVABLE); if (cmp_translog_addr(lsn, share->state.is_of_horizon) >= 0) share->state.key_del= (my_off_t) page * share->block_size; old_link= ((free_page != IMPOSSIBLE_PAGE_NO) ? (my_off_t) free_page * share->block_size : HA_OFFSET_ERROR); if (!(buff= pagecache_read(share->pagecache, &share->kfile, page, 0, 0, PAGECACHE_PLAIN_PAGE, PAGECACHE_LOCK_WRITE, &page_link.link))) { result= (uint) my_errno; _ma_set_fatal_error(info, my_errno); goto err; } if (lsn_korr(buff) >= lsn) { /* Already applied */ check_skipped_lsn(info, lsn_korr(buff), 0, page); result= 0; goto err; } /* Free page */ bzero(buff + LSN_STORE_SIZE, share->keypage_header - LSN_STORE_SIZE); _ma_store_keynr(share, buff, (uchar) MARIA_DELETE_KEY_NR); _ma_store_page_used(share, buff, share->keypage_header + 8); mi_sizestore(buff + share->keypage_header, old_link); #ifdef IDENTICAL_PAGES_AFTER_RECOVERY { bzero(buff + share->keypage_header + 8, share->block_size - share->keypage_header - 8 - KEYPAGE_CHECKSUM_SIZE); } #endif /* Mark page to be unlocked and written at _ma_unpin_all_pages() */ page_link.unlock= PAGECACHE_LOCK_WRITE_UNLOCK; page_link.changed= 1; push_dynamic(&info->pinned_pages, (void*) &page_link); DBUG_RETURN(0); err: pagecache_unlock_by_link(share->pagecache, page_link.link, PAGECACHE_LOCK_WRITE_UNLOCK, PAGECACHE_UNPIN, LSN_IMPOSSIBLE, LSN_IMPOSSIBLE, 0, FALSE); DBUG_RETURN(result); }
O0
c
ma_apply_redo_index_free_page: pushq %rbp movq %rsp, %rbp subq $0xb0, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x20(%rbp), %rdi callq 0x70c80 movq %rax, -0x28(%rbp) movq -0x20(%rbp), %rdi addq $0x5, %rdi callq 0x70c80 movq %rax, -0x30(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x58(%rbp) jmp 0x70cf2 movq -0x58(%rbp), %rax movl 0x170(%rax), %ecx orl $0x1b1, %ecx # imm = 0x1B1 movl %ecx, 0x170(%rax) movq -0x18(%rbp), %rax movq -0x58(%rbp), %rcx subq 0x180(%rcx), %rax cmpq $0x0, %rax jl 0x70d3a movq -0x28(%rbp), %rcx movq -0x58(%rbp), %rax movl 0x7bc(%rax), %eax imulq %rax, %rcx movq -0x58(%rbp), %rax movq %rcx, 0x120(%rax) movabsq $0xffffffffff, %rax # imm = 0xFFFFFFFFFF cmpq %rax, -0x30(%rbp) je 0x70d65 movq -0x30(%rbp), %rax movq -0x58(%rbp), %rcx movl 0x7bc(%rcx), %ecx imulq %rcx, %rax movq %rax, -0x90(%rbp) jmp 0x70d75 movq $-0x1, %rax movq %rax, -0x90(%rbp) jmp 0x70d75 movq -0x90(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x58(%rbp), %rax movq 0x600(%rax), %rdi movq -0x58(%rbp), %rsi addq $0x750, %rsi # imm = 0x750 movq -0x28(%rbp), %rdx leaq -0x50(%rbp), %rax xorl %ecx, %ecx xorl %r8d, %r8d movl $0x1, %r9d movl $0x4, (%rsp) movq %rax, 0x8(%rsp) callq 0x589a0 movq %rax, -0x60(%rbp) cmpq $0x0, %rax jne 0x70df1 callq 0xf55f0 movl (%rax), %eax movl %eax, -0x64(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x98(%rbp) callq 0xf55f0 movq -0x98(%rbp), %rdi movl (%rax), %esi callq 0x2e940 jmp 0x71026 movq -0x60(%rbp), %rax movzbl (%rax), %eax movq -0x60(%rbp), %rcx movzbl 0x1(%rcx), %ecx shll $0x8, %ecx orl %ecx, %eax movq -0x60(%rbp), %rcx movzbl 0x2(%rcx), %ecx shll $0x10, %ecx orl %ecx, %eax movl %eax, %eax shlq $0x20, %rax movq -0x60(%rbp), %rcx movl 0x3(%rcx), %ecx orq %rcx, %rax cmpq -0x18(%rbp), %rax jl 0x70e76 movq -0x10(%rbp), %rdi movq -0x60(%rbp), %rax movzbl (%rax), %eax movq -0x60(%rbp), %rcx movzbl 0x1(%rcx), %ecx shll $0x8, %ecx orl %ecx, %eax movq -0x60(%rbp), %rcx movzbl 0x2(%rcx), %ecx shll $0x10, %ecx orl %ecx, %eax movl %eax, %eax movl %eax, %esi shlq $0x20, %rsi movq -0x60(%rbp), %rax movl 0x3(%rax), %eax orq %rax, %rsi movq -0x28(%rbp), %rcx xorl %edx, %edx callq 0x4f800 movl $0x0, -0x64(%rbp) jmp 0x71026 movq -0x60(%rbp), %rdi addq $0x7, %rdi movq -0x58(%rbp), %rax movl 0x744(%rax), %eax subl $0x7, %eax movl %eax, %eax movl %eax, %edx xorl %esi, %esi callq 0x2a2b0 movq -0x60(%rbp), %rax movq -0x58(%rbp), %rcx movl 0x744(%rcx), %ecx subl $0x1, %ecx subl $0x1, %ecx subl $0x2, %ecx movl %ecx, %ecx movb $-0x1, (%rax,%rcx) movq -0x58(%rbp), %rax movl 0x744(%rax), %eax addl $0x8, %eax movl %eax, -0x68(%rbp) movl -0x68(%rbp), %eax movb %al, %dl movq -0x60(%rbp), %rax movq -0x58(%rbp), %rcx movl 0x744(%rcx), %ecx movb %dl, -0x1(%rax,%rcx) movl -0x68(%rbp), %eax shrl $0x8, %eax movb %al, %dl movq -0x60(%rbp), %rax movq -0x58(%rbp), %rcx movl 0x744(%rcx), %ecx movb %dl, -0x2(%rax,%rcx) movq -0x38(%rbp), %rax movq %rax, -0x70(%rbp) movq -0x38(%rbp), %rax shrq $0x20, %rax movq %rax, -0x78(%rbp) movq -0x78(%rbp), %rax movq %rax, -0x80(%rbp) movq -0x80(%rbp), %rax movb %al, %dl movq -0x60(%rbp), %rax movq -0x58(%rbp), %rcx movl 0x744(%rcx), %ecx movb %dl, 0x3(%rax,%rcx) movq -0x80(%rbp), %rax shrq $0x8, %rax movb %al, %dl movq -0x60(%rbp), %rax movq -0x58(%rbp), %rcx movl 0x744(%rcx), %ecx movb %dl, 0x2(%rax,%rcx) movq -0x80(%rbp), %rax shrq $0x10, %rax movb %al, %dl movq -0x60(%rbp), %rax movq -0x58(%rbp), %rcx movl 0x744(%rcx), %ecx movb %dl, 0x1(%rax,%rcx) movq -0x80(%rbp), %rax shrq $0x18, %rax movb %al, %dl movq -0x60(%rbp), %rax movq -0x58(%rbp), %rcx movl 0x744(%rcx), %ecx movb %dl, (%rax,%rcx) movq -0x70(%rbp), %rax movq %rax, -0x88(%rbp) movq -0x88(%rbp), %rax movb %al, %dl movq -0x60(%rbp), %rax movq -0x58(%rbp), %rcx movl 0x744(%rcx), %ecx movb %dl, 0x7(%rax,%rcx) movq -0x88(%rbp), %rax shrq $0x8, %rax movb %al, %dl movq -0x60(%rbp), %rax movq -0x58(%rbp), %rcx movl 0x744(%rcx), %ecx movb %dl, 0x6(%rax,%rcx) movq -0x88(%rbp), %rax shrq $0x10, %rax movb %al, %dl movq -0x60(%rbp), %rax movq -0x58(%rbp), %rcx movl 0x744(%rcx), %ecx movb %dl, 0x5(%rax,%rcx) movq -0x88(%rbp), %rax shrq $0x18, %rax movb %al, %dl movq -0x60(%rbp), %rax movq -0x58(%rbp), %rcx movl 0x744(%rcx), %ecx movb %dl, 0x4(%rax,%rcx) movl $0x6, -0x48(%rbp) movb $0x1, -0x40(%rbp) movq -0x10(%rbp), %rdi addq $0x2e8, %rdi # imm = 0x2E8 leaq -0x50(%rbp), %rsi callq 0xd9f10 movl $0x0, -0x4(%rbp) jmp 0x71063 movq -0x58(%rbp), %rax movq 0x600(%rax), %rdi movq -0x50(%rbp), %rsi movl $0x6, %edx movl $0x3, %ecx xorl %eax, %eax movl %eax, %r9d xorl %eax, %eax movq %r9, %r8 movl $0x0, (%rsp) movl $0x0, 0x8(%rsp) callq 0x58740 movl -0x64(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0xb0, %rsp popq %rbp retq nop
_ma_apply_redo_index_free_page: push rbp mov rbp, rsp sub rsp, 0B0h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rdi, [rbp+var_20] call uint5korr_0 mov [rbp+var_28], rax mov rdi, [rbp+var_20] add rdi, 5 call uint5korr_0 mov [rbp+var_30], rax mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_58], rax jmp short $+2 loc_70CF2: mov rax, [rbp+var_58] mov ecx, [rax+170h] or ecx, 1B1h mov [rax+170h], ecx mov rax, [rbp+var_18] mov rcx, [rbp+var_58] sub rax, [rcx+180h] cmp rax, 0 jl short loc_70D3A mov rcx, [rbp+var_28] mov rax, [rbp+var_58] mov eax, [rax+7BCh] imul rcx, rax mov rax, [rbp+var_58] mov [rax+120h], rcx loc_70D3A: mov rax, 0FFFFFFFFFFh cmp [rbp+var_30], rax jz short loc_70D65 mov rax, [rbp+var_30] mov rcx, [rbp+var_58] mov ecx, [rcx+7BCh] imul rax, rcx mov [rbp+var_90], rax jmp short loc_70D75 loc_70D65: mov rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_90], rax jmp short $+2 loc_70D75: mov rax, [rbp+var_90] mov [rbp+var_38], rax mov rax, [rbp+var_58] mov rdi, [rax+600h] mov rsi, [rbp+var_58] add rsi, 750h mov rdx, [rbp+var_28] lea rax, [rbp+var_50] xor ecx, ecx xor r8d, r8d mov r9d, 1 mov [rsp+0B0h+var_B0], 4 mov [rsp+0B0h+var_A8], rax call pagecache_read mov [rbp+var_60], rax cmp rax, 0 jnz short loc_70DF1 call _my_thread_var mov eax, [rax] mov [rbp+var_64], eax mov rax, [rbp+var_10] mov [rbp+var_98], rax call _my_thread_var mov rdi, [rbp+var_98] mov esi, [rax] call _ma_set_fatal_error jmp loc_71026 loc_70DF1: mov rax, [rbp+var_60] movzx eax, byte ptr [rax] mov rcx, [rbp+var_60] movzx ecx, byte ptr [rcx+1] shl ecx, 8 or eax, ecx mov rcx, [rbp+var_60] movzx ecx, byte ptr [rcx+2] shl ecx, 10h or eax, ecx mov eax, eax shl rax, 20h mov rcx, [rbp+var_60] mov ecx, [rcx+3] or rax, rcx cmp rax, [rbp+var_18] jl short loc_70E76 mov rdi, [rbp+var_10] mov rax, [rbp+var_60] movzx eax, byte ptr [rax] mov rcx, [rbp+var_60] movzx ecx, byte ptr [rcx+1] shl ecx, 8 or eax, ecx mov rcx, [rbp+var_60] movzx ecx, byte ptr [rcx+2] shl ecx, 10h or eax, ecx mov eax, eax mov esi, eax shl rsi, 20h mov rax, [rbp+var_60] mov eax, [rax+3] or rsi, rax mov rcx, [rbp+var_28] xor edx, edx call check_skipped_lsn mov [rbp+var_64], 0 jmp loc_71026 loc_70E76: mov rdi, [rbp+var_60] add rdi, 7 mov rax, [rbp+var_58] mov eax, [rax+744h] sub eax, 7 mov eax, eax mov edx, eax xor esi, esi call _memset mov rax, [rbp+var_60] mov rcx, [rbp+var_58] mov ecx, [rcx+744h] sub ecx, 1 sub ecx, 1 sub ecx, 2 mov ecx, ecx mov byte ptr [rax+rcx], 0FFh mov rax, [rbp+var_58] mov eax, [rax+744h] add eax, 8 mov [rbp+var_68], eax mov eax, [rbp+var_68] mov dl, al mov rax, [rbp+var_60] mov rcx, [rbp+var_58] mov ecx, [rcx+744h] mov [rax+rcx-1], dl mov eax, [rbp+var_68] shr eax, 8 mov dl, al mov rax, [rbp+var_60] mov rcx, [rbp+var_58] mov ecx, [rcx+744h] mov [rax+rcx-2], dl mov rax, [rbp+var_38] mov [rbp+var_70], rax mov rax, [rbp+var_38] shr rax, 20h mov [rbp+var_78], rax mov rax, [rbp+var_78] mov [rbp+var_80], rax mov rax, [rbp+var_80] mov dl, al mov rax, [rbp+var_60] mov rcx, [rbp+var_58] mov ecx, [rcx+744h] mov [rax+rcx+3], dl mov rax, [rbp+var_80] shr rax, 8 mov dl, al mov rax, [rbp+var_60] mov rcx, [rbp+var_58] mov ecx, [rcx+744h] mov [rax+rcx+2], dl mov rax, [rbp+var_80] shr rax, 10h mov dl, al mov rax, [rbp+var_60] mov rcx, [rbp+var_58] mov ecx, [rcx+744h] mov [rax+rcx+1], dl mov rax, [rbp+var_80] shr rax, 18h mov dl, al mov rax, [rbp+var_60] mov rcx, [rbp+var_58] mov ecx, [rcx+744h] mov [rax+rcx], dl mov rax, [rbp+var_70] mov [rbp+var_88], rax mov rax, [rbp+var_88] mov dl, al mov rax, [rbp+var_60] mov rcx, [rbp+var_58] mov ecx, [rcx+744h] mov [rax+rcx+7], dl mov rax, [rbp+var_88] shr rax, 8 mov dl, al mov rax, [rbp+var_60] mov rcx, [rbp+var_58] mov ecx, [rcx+744h] mov [rax+rcx+6], dl mov rax, [rbp+var_88] shr rax, 10h mov dl, al mov rax, [rbp+var_60] mov rcx, [rbp+var_58] mov ecx, [rcx+744h] mov [rax+rcx+5], dl mov rax, [rbp+var_88] shr rax, 18h mov dl, al mov rax, [rbp+var_60] mov rcx, [rbp+var_58] mov ecx, [rcx+744h] mov [rax+rcx+4], dl mov [rbp+var_48], 6 mov [rbp+var_40], 1 mov rdi, [rbp+var_10] add rdi, 2E8h lea rsi, [rbp+var_50] call insert_dynamic mov [rbp+var_4], 0 jmp short loc_71063 loc_71026: mov rax, [rbp+var_58] mov rdi, [rax+600h] mov rsi, [rbp+var_50] mov edx, 6 mov ecx, 3 xor eax, eax mov r9d, eax xor eax, eax mov r8, r9 mov [rsp+0B0h+var_B0], 0 mov dword ptr [rsp+0B0h+var_A8], 0 call pagecache_unlock_by_link mov eax, [rbp+var_64] mov [rbp+var_4], eax loc_71063: mov eax, [rbp+var_4] add rsp, 0B0h pop rbp retn
long long ma_apply_redo_index_free_page(_QWORD *a1, signed long long a2, unsigned int *a3, double a4) { int *v4; // rax long long v5; // rdx long long v6; // rcx long long v7; // r8 int v8; // r9d _DWORD *v10; // [rsp+18h] [rbp-98h] long long v11; // [rsp+20h] [rbp-90h] unsigned long long v12; // [rsp+30h] [rbp-80h] int v13; // [rsp+40h] [rbp-70h] int v14; // [rsp+48h] [rbp-68h] _BYTE v15[12]; // [rsp+4Ch] [rbp-64h] long long v16; // [rsp+58h] [rbp-58h] long long v17; // [rsp+60h] [rbp-50h] BYREF int v18; // [rsp+68h] [rbp-48h] char v19; // [rsp+70h] [rbp-40h] unsigned long long v20; // [rsp+78h] [rbp-38h] unsigned long long v21; // [rsp+80h] [rbp-30h] unsigned long long v22; // [rsp+88h] [rbp-28h] unsigned int *v23; // [rsp+90h] [rbp-20h] signed long long v24; // [rsp+98h] [rbp-18h] _DWORD *v25; // [rsp+A0h] [rbp-10h] v25 = a1; v24 = a2; v23 = a3; v22 = uint5korr_0(a3); v21 = uint5korr_0((unsigned int *)((char *)v23 + 5)); v16 = *a1; *(_DWORD *)(v16 + 368) |= 0x1B1u; if ( v24 - *(_QWORD *)(v16 + 384) >= 0 ) *(_QWORD *)(v16 + 288) = *(unsigned int *)(v16 + 1980) * v22; if ( v21 == 0xFFFFFFFFFFLL ) v11 = -1LL; else v11 = *(unsigned int *)(v16 + 1980) * v21; v20 = v11; *(_QWORD *)&v15[4] = pagecache_read(*(_QWORD **)(v16 + 1536), v16 + 1872, v22, 0, 0LL, 1, a4, 4u, (char *)&v17); if ( !*(_QWORD *)&v15[4] ) { *(_QWORD *)v15 = *(unsigned int *)my_thread_var(a4); v10 = v25; v4 = (int *)my_thread_var(a4); ma_set_fatal_error(v10, *v4, v5, v6, v7, v8); LABEL_11: pagecache_unlock_by_link(*(_QWORD **)(v16 + 1536), v17, 6, 3, 0LL, 0LL, 0, 0); return *(unsigned int *)v15; } if ( (long long)(*(unsigned int *)(*(_QWORD *)&v15[4] + 3LL) | ((unsigned long long)((*(unsigned __int8 *)(*(_QWORD *)&v15[4] + 2LL) << 16) | (unsigned int)(unsigned __int16)**(_WORD **)&v15[4]) << 32)) >= v24 ) { check_skipped_lsn( (long long)v25, *(unsigned int *)(*(_QWORD *)&v15[4] + 3LL) | ((unsigned long long)((*(unsigned __int8 *)(*(_QWORD *)&v15[4] + 2LL) << 16) | (unsigned int)(unsigned __int16)**(_WORD **)&v15[4]) << 32), 0, v22); *(_DWORD *)v15 = 0; goto LABEL_11; } memset(*(_QWORD *)&v15[4] + 7LL, 0LL, (unsigned int)(*(_DWORD *)(v16 + 1860) - 7)); *(_BYTE *)(*(_QWORD *)&v15[4] + (unsigned int)(*(_DWORD *)(v16 + 1860) - 4)) = -1; v14 = *(_DWORD *)(v16 + 1860) + 8; *(_BYTE *)(*(_QWORD *)&v15[4] + *(unsigned int *)(v16 + 1860) - 1LL) = v14; *(_BYTE *)(*(_QWORD *)&v15[4] + *(unsigned int *)(v16 + 1860) - 2LL) = BYTE1(v14); v13 = v20; v12 = HIDWORD(v20); *(_BYTE *)(*(_QWORD *)&v15[4] + *(unsigned int *)(v16 + 1860) + 3LL) = BYTE4(v20); *(_BYTE *)(*(_QWORD *)&v15[4] + *(unsigned int *)(v16 + 1860) + 2LL) = BYTE1(v12); *(_BYTE *)(*(_QWORD *)&v15[4] + *(unsigned int *)(v16 + 1860) + 1LL) = BYTE2(v12); *(_BYTE *)(*(_QWORD *)&v15[4] + *(unsigned int *)(v16 + 1860)) = BYTE3(v12); *(_BYTE *)(*(_QWORD *)&v15[4] + *(unsigned int *)(v16 + 1860) + 7LL) = v13; *(_BYTE *)(*(_QWORD *)&v15[4] + *(unsigned int *)(v16 + 1860) + 6LL) = BYTE1(v13); *(_BYTE *)(*(_QWORD *)&v15[4] + *(unsigned int *)(v16 + 1860) + 5LL) = BYTE2(v13); *(_BYTE *)(*(_QWORD *)&v15[4] + *(unsigned int *)(v16 + 1860) + 4LL) = HIBYTE(v13); v18 = 6; v19 = 1; insert_dynamic(v25 + 186, &v17); return 0; }
_ma_apply_redo_index_free_page: PUSH RBP MOV RBP,RSP SUB RSP,0xb0 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV RDI,qword ptr [RBP + -0x20] CALL 0x00170c80 MOV qword ptr [RBP + -0x28],RAX MOV RDI,qword ptr [RBP + -0x20] ADD RDI,0x5 CALL 0x00170c80 MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x58],RAX JMP 0x00170cf2 LAB_00170cf2: MOV RAX,qword ptr [RBP + -0x58] MOV ECX,dword ptr [RAX + 0x170] OR ECX,0x1b1 MOV dword ptr [RAX + 0x170],ECX MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x58] SUB RAX,qword ptr [RCX + 0x180] CMP RAX,0x0 JL 0x00170d3a MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x58] MOV EAX,dword ptr [RAX + 0x7bc] IMUL RCX,RAX MOV RAX,qword ptr [RBP + -0x58] MOV qword ptr [RAX + 0x120],RCX LAB_00170d3a: MOV RAX,0xffffffffff CMP qword ptr [RBP + -0x30],RAX JZ 0x00170d65 MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x58] MOV ECX,dword ptr [RCX + 0x7bc] IMUL RAX,RCX MOV qword ptr [RBP + -0x90],RAX JMP 0x00170d75 LAB_00170d65: MOV RAX,-0x1 MOV qword ptr [RBP + -0x90],RAX JMP 0x00170d75 LAB_00170d75: MOV RAX,qword ptr [RBP + -0x90] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x58] MOV RDI,qword ptr [RAX + 0x600] MOV RSI,qword ptr [RBP + -0x58] ADD RSI,0x750 MOV RDX,qword ptr [RBP + -0x28] LEA RAX,[RBP + -0x50] XOR ECX,ECX XOR R8D,R8D MOV R9D,0x1 MOV dword ptr [RSP],0x4 MOV qword ptr [RSP + 0x8],RAX CALL 0x001589a0 MOV qword ptr [RBP + -0x60],RAX CMP RAX,0x0 JNZ 0x00170df1 CALL 0x001f55f0 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x64],EAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x98],RAX CALL 0x001f55f0 MOV RDI,qword ptr [RBP + -0x98] MOV ESI,dword ptr [RAX] CALL 0x0012e940 JMP 0x00171026 LAB_00170df1: MOV RAX,qword ptr [RBP + -0x60] MOVZX EAX,byte ptr [RAX] MOV RCX,qword ptr [RBP + -0x60] MOVZX ECX,byte ptr [RCX + 0x1] SHL ECX,0x8 OR EAX,ECX MOV RCX,qword ptr [RBP + -0x60] MOVZX ECX,byte ptr [RCX + 0x2] SHL ECX,0x10 OR EAX,ECX MOV EAX,EAX SHL RAX,0x20 MOV RCX,qword ptr [RBP + -0x60] MOV ECX,dword ptr [RCX + 0x3] OR RAX,RCX CMP RAX,qword ptr [RBP + -0x18] JL 0x00170e76 MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x60] MOVZX EAX,byte ptr [RAX] MOV RCX,qword ptr [RBP + -0x60] MOVZX ECX,byte ptr [RCX + 0x1] SHL ECX,0x8 OR EAX,ECX MOV RCX,qword ptr [RBP + -0x60] MOVZX ECX,byte ptr [RCX + 0x2] SHL ECX,0x10 OR EAX,ECX MOV EAX,EAX MOV ESI,EAX SHL RSI,0x20 MOV RAX,qword ptr [RBP + -0x60] MOV EAX,dword ptr [RAX + 0x3] OR RSI,RAX MOV RCX,qword ptr [RBP + -0x28] XOR EDX,EDX CALL 0x0014f800 MOV dword ptr [RBP + -0x64],0x0 JMP 0x00171026 LAB_00170e76: MOV RDI,qword ptr [RBP + -0x60] ADD RDI,0x7 MOV RAX,qword ptr [RBP + -0x58] MOV EAX,dword ptr [RAX + 0x744] SUB EAX,0x7 MOV EAX,EAX MOV EDX,EAX XOR ESI,ESI CALL 0x0012a2b0 MOV RAX,qword ptr [RBP + -0x60] MOV RCX,qword ptr [RBP + -0x58] MOV ECX,dword ptr [RCX + 0x744] SUB ECX,0x1 SUB ECX,0x1 SUB ECX,0x2 MOV ECX,ECX MOV byte ptr [RAX + RCX*0x1],0xff MOV RAX,qword ptr [RBP + -0x58] MOV EAX,dword ptr [RAX + 0x744] ADD EAX,0x8 MOV dword ptr [RBP + -0x68],EAX MOV EAX,dword ptr [RBP + -0x68] MOV DL,AL MOV RAX,qword ptr [RBP + -0x60] MOV RCX,qword ptr [RBP + -0x58] MOV ECX,dword ptr [RCX + 0x744] MOV byte ptr [RAX + RCX*0x1 + -0x1],DL MOV EAX,dword ptr [RBP + -0x68] SHR EAX,0x8 MOV DL,AL MOV RAX,qword ptr [RBP + -0x60] MOV RCX,qword ptr [RBP + -0x58] MOV ECX,dword ptr [RCX + 0x744] MOV byte ptr [RAX + RCX*0x1 + -0x2],DL MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x70],RAX MOV RAX,qword ptr [RBP + -0x38] SHR RAX,0x20 MOV qword ptr [RBP + -0x78],RAX MOV RAX,qword ptr [RBP + -0x78] MOV qword ptr [RBP + -0x80],RAX MOV RAX,qword ptr [RBP + -0x80] MOV DL,AL MOV RAX,qword ptr [RBP + -0x60] MOV RCX,qword ptr [RBP + -0x58] MOV ECX,dword ptr [RCX + 0x744] MOV byte ptr [RAX + RCX*0x1 + 0x3],DL MOV RAX,qword ptr [RBP + -0x80] SHR RAX,0x8 MOV DL,AL MOV RAX,qword ptr [RBP + -0x60] MOV RCX,qword ptr [RBP + -0x58] MOV ECX,dword ptr [RCX + 0x744] MOV byte ptr [RAX + RCX*0x1 + 0x2],DL MOV RAX,qword ptr [RBP + -0x80] SHR RAX,0x10 MOV DL,AL MOV RAX,qword ptr [RBP + -0x60] MOV RCX,qword ptr [RBP + -0x58] MOV ECX,dword ptr [RCX + 0x744] MOV byte ptr [RAX + RCX*0x1 + 0x1],DL MOV RAX,qword ptr [RBP + -0x80] SHR RAX,0x18 MOV DL,AL MOV RAX,qword ptr [RBP + -0x60] MOV RCX,qword ptr [RBP + -0x58] MOV ECX,dword ptr [RCX + 0x744] MOV byte ptr [RAX + RCX*0x1],DL MOV RAX,qword ptr [RBP + -0x70] MOV qword ptr [RBP + -0x88],RAX MOV RAX,qword ptr [RBP + -0x88] MOV DL,AL MOV RAX,qword ptr [RBP + -0x60] MOV RCX,qword ptr [RBP + -0x58] MOV ECX,dword ptr [RCX + 0x744] MOV byte ptr [RAX + RCX*0x1 + 0x7],DL MOV RAX,qword ptr [RBP + -0x88] SHR RAX,0x8 MOV DL,AL MOV RAX,qword ptr [RBP + -0x60] MOV RCX,qword ptr [RBP + -0x58] MOV ECX,dword ptr [RCX + 0x744] MOV byte ptr [RAX + RCX*0x1 + 0x6],DL MOV RAX,qword ptr [RBP + -0x88] SHR RAX,0x10 MOV DL,AL MOV RAX,qword ptr [RBP + -0x60] MOV RCX,qword ptr [RBP + -0x58] MOV ECX,dword ptr [RCX + 0x744] MOV byte ptr [RAX + RCX*0x1 + 0x5],DL MOV RAX,qword ptr [RBP + -0x88] SHR RAX,0x18 MOV DL,AL MOV RAX,qword ptr [RBP + -0x60] MOV RCX,qword ptr [RBP + -0x58] MOV ECX,dword ptr [RCX + 0x744] MOV byte ptr [RAX + RCX*0x1 + 0x4],DL MOV dword ptr [RBP + -0x48],0x6 MOV byte ptr [RBP + -0x40],0x1 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x2e8 LEA RSI,[RBP + -0x50] CALL 0x001d9f10 MOV dword ptr [RBP + -0x4],0x0 JMP 0x00171063 LAB_00171026: MOV RAX,qword ptr [RBP + -0x58] MOV RDI,qword ptr [RAX + 0x600] MOV RSI,qword ptr [RBP + -0x50] MOV EDX,0x6 MOV ECX,0x3 XOR EAX,EAX MOV R9D,EAX XOR EAX,EAX MOV R8,R9 MOV dword ptr [RSP],0x0 MOV dword ptr [RSP + 0x8],0x0 CALL 0x00158740 MOV EAX,dword ptr [RBP + -0x64] MOV dword ptr [RBP + -0x4],EAX LAB_00171063: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0xb0 POP RBP RET
int4 _ma_apply_redo_index_free_page(long *param_1,long param_2,long param_3) { long lVar1; long *plVar2; int iVar3; int3 *puVar4; int4 *puVar5; int8 *puVar6; long local_98; int4 local_6c; int8 local_58; int4 local_50; int1 local_48; long local_40; long local_38; long local_30; long local_28; long local_20; long *local_18; local_28 = param_3; local_20 = param_2; local_18 = param_1; local_30 = uint5korr(param_3); local_38 = uint5korr(local_28 + 5); lVar1 = *local_18; *(uint *)(lVar1 + 0x170) = *(uint *)(lVar1 + 0x170) | 0x1b1; if (-1 < local_20 - *(long *)(lVar1 + 0x180)) { *(ulong *)(lVar1 + 0x120) = local_30 * (ulong)*(uint *)(lVar1 + 0x7bc); } if (local_38 == 0xffffffffff) { local_98 = -1; } else { local_98 = local_38 * (ulong)*(uint *)(lVar1 + 0x7bc); } local_40 = local_98; puVar6 = &local_58; puVar4 = (int3 *) pagecache_read(*(int8 *)(lVar1 + 0x600),lVar1 + 0x750,local_30,0,0,1,4,puVar6); if (puVar4 == (int3 *)0x0) { puVar5 = (int4 *)_my_thread_var(); plVar2 = local_18; local_6c = *puVar5; puVar5 = (int4 *)_my_thread_var(); _ma_set_fatal_error(plVar2,*puVar5); } else { if ((long)(ulong)CONCAT34(*puVar4,*(int4 *)((long)puVar4 + 3)) < local_20) { memset((void *)((long)puVar4 + 7),0,(ulong)(*(int *)(lVar1 + 0x744) - 7)); *(int1 *)((long)puVar4 + (ulong)(*(int *)(lVar1 + 0x744) - 4)) = 0xff; iVar3 = *(int *)(lVar1 + 0x744) + 8; *(char *)((long)puVar4 + ((ulong)*(uint *)(lVar1 + 0x744) - 1)) = (char)iVar3; *(char *)((long)puVar4 + ((ulong)*(uint *)(lVar1 + 0x744) - 2)) = (char)((uint)iVar3 >> 8); *(char *)((long)puVar4 + (ulong)*(uint *)(lVar1 + 0x744) + 3) = (char)((ulong)local_40 >> 0x20); *(char *)((long)puVar4 + (ulong)*(uint *)(lVar1 + 0x744) + 2) = (char)((ulong)local_40 >> 0x28); *(char *)((long)puVar4 + (ulong)*(uint *)(lVar1 + 0x744) + 1) = (char)((ulong)local_40 >> 0x30); *(char *)((long)puVar4 + (ulong)*(uint *)(lVar1 + 0x744)) = (char)((ulong)local_40 >> 0x38); *(char *)((long)puVar4 + (ulong)*(uint *)(lVar1 + 0x744) + 7) = (char)local_40; *(char *)((long)puVar4 + (ulong)*(uint *)(lVar1 + 0x744) + 6) = (char)((ulong)local_40 >> 8); *(char *)((long)puVar4 + (ulong)*(uint *)(lVar1 + 0x744) + 5) = (char)((ulong)local_40 >> 0x10); *(char *)((long)puVar4 + (ulong)*(uint *)(lVar1 + 0x744) + 4) = (char)((ulong)local_40 >> 0x18); local_50 = 6; local_48 = 1; insert_dynamic(local_18 + 0x5d,&local_58); return 0; } check_skipped_lsn(local_18,(ulong)CONCAT34(*puVar4,*(int4 *)((long)puVar4 + 3)),0,local_30 ); local_6c = 0; } pagecache_unlock_by_link (*(int8 *)(lVar1 + 0x600),local_58,6,3,0,0,0,(ulong)puVar6 & 0xffffffff00000000); return local_6c; }
38,796
ma_apply_redo_index_free_page
eloqsql/storage/maria/ma_key_recover.c
uint _ma_apply_redo_index_free_page(MARIA_HA *info, LSN lsn, const uchar *header) { pgcache_page_no_t page= page_korr(header); pgcache_page_no_t free_page= page_korr(header + PAGE_STORE_SIZE); my_off_t old_link; MARIA_PINNED_PAGE page_link; MARIA_SHARE *share= info->s; uchar *buff; int result; DBUG_ENTER("_ma_apply_redo_index_free_page"); DBUG_PRINT("enter", ("page: %lu free_page: %lu", (ulong) page, (ulong) free_page)); share->state.changed|= (STATE_CHANGED | STATE_NOT_OPTIMIZED_KEYS | STATE_NOT_SORTED_PAGES | STATE_NOT_ZEROFILLED | STATE_NOT_MOVABLE); if (cmp_translog_addr(lsn, share->state.is_of_horizon) >= 0) share->state.key_del= (my_off_t) page * share->block_size; old_link= ((free_page != IMPOSSIBLE_PAGE_NO) ? (my_off_t) free_page * share->block_size : HA_OFFSET_ERROR); if (!(buff= pagecache_read(share->pagecache, &share->kfile, page, 0, 0, PAGECACHE_PLAIN_PAGE, PAGECACHE_LOCK_WRITE, &page_link.link))) { result= (uint) my_errno; _ma_set_fatal_error(info, my_errno); goto err; } if (lsn_korr(buff) >= lsn) { /* Already applied */ check_skipped_lsn(info, lsn_korr(buff), 0, page); result= 0; goto err; } /* Free page */ bzero(buff + LSN_STORE_SIZE, share->keypage_header - LSN_STORE_SIZE); _ma_store_keynr(share, buff, (uchar) MARIA_DELETE_KEY_NR); _ma_store_page_used(share, buff, share->keypage_header + 8); mi_sizestore(buff + share->keypage_header, old_link); #ifdef IDENTICAL_PAGES_AFTER_RECOVERY { bzero(buff + share->keypage_header + 8, share->block_size - share->keypage_header - 8 - KEYPAGE_CHECKSUM_SIZE); } #endif /* Mark page to be unlocked and written at _ma_unpin_all_pages() */ page_link.unlock= PAGECACHE_LOCK_WRITE_UNLOCK; page_link.changed= 1; push_dynamic(&info->pinned_pages, (void*) &page_link); DBUG_RETURN(0); err: pagecache_unlock_by_link(share->pagecache, page_link.link, PAGECACHE_LOCK_WRITE_UNLOCK, PAGECACHE_UNPIN, LSN_IMPOSSIBLE, LSN_IMPOSSIBLE, 0, FALSE); DBUG_RETURN(result); }
O3
c
ma_apply_redo_index_free_page: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rsi, %r14 movq %rdi, %r15 movl (%rdx), %eax movl 0x5(%rdx), %ecx movzbl 0x4(%rdx), %r12d shlq $0x20, %r12 orq %rax, %r12 movzbl 0x9(%rdx), %eax movq (%rdi), %r13 orl $0x1b1, 0x170(%r13) # imm = 0x1B1 shlq $0x20, %rax orq %rcx, %rax cmpq %rsi, 0x180(%r13) jg 0x59c83 movl 0x7bc(%r13), %ecx imulq %r12, %rcx movq %rcx, 0x120(%r13) movq $-0x1, %rdx movabsq $0xffffffffff, %rcx # imm = 0xFFFFFFFFFF cmpq %rcx, %rax je 0x59ca7 movl 0x7bc(%r13), %ecx imulq %rcx, %rax movq %rax, %rdx movq %rdx, -0x30(%rbp) movq 0x600(%r13), %rdi leaq 0x750(%r13), %rsi leaq -0x48(%rbp), %rax movq %r12, %rdx xorl %ecx, %ecx xorl %r8d, %r8d movl $0x1, %r9d pushq %rax pushq $0x4 callq 0x4ce7e addq $0x10, %rsp testq %rax, %rax je 0x59de5 movq %rax, %rbx movzwl (%rax), %eax shlq $0x20, %rax movzbl 0x2(%rbx), %ecx shlq $0x30, %rcx orq %rax, %rcx movl 0x3(%rbx), %esi orq %rcx, %rsi cmpq %r14, %rsi jge 0x59dfe movq %rbx, %rdi addq $0x7, %rdi movl 0x744(%r13), %edx addl $-0x7, %edx xorl %r14d, %r14d xorl %esi, %esi callq 0x292b0 movl 0x744(%r13), %eax addl $-0x4, %eax movb $-0x1, (%rbx,%rax) movl 0x744(%r13), %eax leal 0x8(%rax), %ecx movb %cl, -0x1(%rbx,%rax) movl 0x744(%r13), %eax movb %ch, -0x2(%rbx,%rax) movq -0x30(%rbp), %rdx movq %rdx, %rax shrq $0x20, %rax movl 0x744(%r13), %ecx movb %al, 0x3(%rbx,%rcx) movq %rdx, %rax shrq $0x28, %rax movl 0x744(%r13), %ecx movb %al, 0x2(%rbx,%rcx) movq %rdx, %rax shrq $0x30, %rax movl 0x744(%r13), %ecx movb %al, 0x1(%rbx,%rcx) movq %rdx, %rax shrq $0x38, %rax movl 0x744(%r13), %ecx movb %al, (%rbx,%rcx) movl 0x744(%r13), %eax movb %dl, 0x7(%rbx,%rax) movl 0x744(%r13), %eax movb %dh, 0x6(%rbx,%rax) movl %edx, %eax shrl $0x10, %eax movl 0x744(%r13), %ecx movb %al, 0x5(%rbx,%rcx) shrl $0x18, %edx movl 0x744(%r13), %eax movb %dl, 0x4(%rbx,%rax) leaq -0x48(%rbp), %rsi movl $0x6, 0x8(%rsi) movb $0x1, 0x10(%rsi) addq $0x2e8, %r15 # imm = 0x2E8 movq %r15, %rdi callq 0x914f6 jmp 0x59e36 callq 0xa13e6 movl (%rax), %r14d callq 0xa13e6 movl (%rax), %esi movq %r15, %rdi callq 0x32af4 jmp 0x59e0e xorl %r14d, %r14d movq %r15, %rdi xorl %edx, %edx movq %r12, %rcx callq 0x47a8d movq 0x600(%r13), %rdi movq -0x48(%rbp), %rsi xorl %eax, %eax movl $0x6, %edx movl $0x3, %ecx xorl %r8d, %r8d xorl %r9d, %r9d pushq %rax pushq %rax callq 0x4cb99 addq $0x10, %rsp movl %r14d, %eax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ma_apply_redo_index_free_page: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov r14, rsi mov r15, rdi mov eax, [rdx] mov ecx, [rdx+5] movzx r12d, byte ptr [rdx+4] shl r12, 20h or r12, rax movzx eax, byte ptr [rdx+9] mov r13, [rdi] or dword ptr [r13+170h], 1B1h shl rax, 20h or rax, rcx cmp [r13+180h], rsi jg short loc_59C83 mov ecx, [r13+7BCh] imul rcx, r12 mov [r13+120h], rcx loc_59C83: mov rdx, 0FFFFFFFFFFFFFFFFh mov rcx, 0FFFFFFFFFFh cmp rax, rcx jz short loc_59CA7 mov ecx, [r13+7BCh] imul rax, rcx mov rdx, rax loc_59CA7: mov [rbp+var_30], rdx mov rdi, [r13+600h] lea rsi, [r13+750h] lea rax, [rbp+var_48] mov rdx, r12 xor ecx, ecx xor r8d, r8d mov r9d, 1 push rax push 4 call pagecache_read add rsp, 10h test rax, rax jz loc_59DE5 mov rbx, rax movzx eax, word ptr [rax] shl rax, 20h movzx ecx, byte ptr [rbx+2] shl rcx, 30h or rcx, rax mov esi, [rbx+3] or rsi, rcx cmp rsi, r14 jge loc_59DFE mov rdi, rbx add rdi, 7 mov edx, [r13+744h] add edx, 0FFFFFFF9h xor r14d, r14d xor esi, esi call _memset mov eax, [r13+744h] add eax, 0FFFFFFFCh mov byte ptr [rbx+rax], 0FFh mov eax, [r13+744h] lea ecx, [rax+8] mov [rbx+rax-1], cl mov eax, [r13+744h] mov [rbx+rax-2], ch mov rdx, [rbp+var_30] mov rax, rdx shr rax, 20h mov ecx, [r13+744h] mov [rbx+rcx+3], al mov rax, rdx shr rax, 28h mov ecx, [r13+744h] mov [rbx+rcx+2], al mov rax, rdx shr rax, 30h mov ecx, [r13+744h] mov [rbx+rcx+1], al mov rax, rdx shr rax, 38h mov ecx, [r13+744h] mov [rbx+rcx], al mov eax, [r13+744h] mov [rbx+rax+7], dl mov eax, [r13+744h] mov [rbx+rax+6], dh mov eax, edx shr eax, 10h mov ecx, [r13+744h] mov [rbx+rcx+5], al shr edx, 18h mov eax, [r13+744h] mov [rbx+rax+4], dl lea rsi, [rbp+var_48] mov dword ptr [rsi+8], 6 mov byte ptr [rsi+10h], 1 add r15, 2E8h mov rdi, r15 call insert_dynamic jmp short loc_59E36 loc_59DE5: call _my_thread_var mov r14d, [rax] call _my_thread_var mov esi, [rax] mov rdi, r15 call _ma_set_fatal_error jmp short loc_59E0E loc_59DFE: xor r14d, r14d mov rdi, r15 xor edx, edx mov rcx, r12 call check_skipped_lsn loc_59E0E: mov rdi, [r13+600h] mov rsi, [rbp+var_48] xor eax, eax mov edx, 6 mov ecx, 3 xor r8d, r8d xor r9d, r9d push rax push rax call pagecache_unlock_by_link add rsp, 10h loc_59E36: mov eax, r14d add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long ma_apply_redo_index_free_page(_DWORD *a1, signed long long a2, unsigned int *a3) { long long v5; // rcx unsigned long long v6; // r12 long long v7; // rax long long v8; // r13 long long v9; // rax long long v10; // rdx long long v11; // rdi unsigned __int16 *v12; // rax unsigned __int16 *v13; // rbx signed long long v14; // rsi unsigned int v15; // r14d long long v16; // rax long long v17; // rdx int *v18; // rax long long v19; // rdx long long v20; // rcx long long v21; // r8 int v22; // r9d long long v24; // [rsp+8h] [rbp-48h] BYREF int v25; // [rsp+10h] [rbp-40h] char v26; // [rsp+18h] [rbp-38h] long long v27; // [rsp+20h] [rbp-30h] v5 = *(unsigned int *)((char *)a3 + 5); v6 = *a3 | ((unsigned long long)*((unsigned __int8 *)a3 + 4) << 32); v7 = *((unsigned __int8 *)a3 + 9); v8 = *(_QWORD *)a1; *(_DWORD *)(v8 + 368) |= 0x1B1u; v9 = v5 | (v7 << 32); if ( *(_QWORD *)(v8 + 384) <= a2 ) *(_QWORD *)(v8 + 288) = v6 * *(unsigned int *)(v8 + 1980); v10 = -1LL; if ( v9 != 0xFFFFFFFFFFLL ) v10 = *(unsigned int *)(v8 + 1980) * v9; v27 = v10; v11 = *(_QWORD *)(v8 + 1536); v12 = (unsigned __int16 *)pagecache_read(v11, v8 + 1872, v6, 0, 0LL, 1, 4u, &v24); if ( !v12 ) { v15 = *(_DWORD *)my_thread_var(v11); v18 = (int *)my_thread_var(v11); ma_set_fatal_error(a1, *v18, v19, v20, v21, v22); LABEL_10: pagecache_unlock_by_link(*(_QWORD *)(v8 + 1536), v24, 6, 3, 0LL, 0LL, 0); return v15; } v13 = v12; v14 = ((unsigned long long)*v12 << 32) | ((unsigned long long)*((unsigned __int8 *)v12 + 2) << 48) | *(unsigned int *)((char *)v12 + 3); if ( v14 >= a2 ) { v15 = 0; check_skipped_lsn((long long)a1, v14, 0, v6); goto LABEL_10; } v15 = 0; memset((char *)v12 + 7, 0LL, (unsigned int)(*(_DWORD *)(v8 + 1860) - 7)); *((_BYTE *)v13 + (unsigned int)(*(_DWORD *)(v8 + 1860) - 4)) = -1; v16 = *(unsigned int *)(v8 + 1860); *((_BYTE *)v13 + v16 - 1) = v16 + 8; *((_BYTE *)v13 + *(unsigned int *)(v8 + 1860) - 2) = (unsigned __int16)(v16 + 8) >> 8; v17 = v27; *((_BYTE *)v13 + *(unsigned int *)(v8 + 1860) + 3) = BYTE4(v27); *((_BYTE *)v13 + *(unsigned int *)(v8 + 1860) + 2) = BYTE5(v17); *((_BYTE *)v13 + *(unsigned int *)(v8 + 1860) + 1) = BYTE6(v17); *((_BYTE *)v13 + *(unsigned int *)(v8 + 1860)) = HIBYTE(v17); *((_BYTE *)v13 + *(unsigned int *)(v8 + 1860) + 7) = v17; *((_BYTE *)v13 + *(unsigned int *)(v8 + 1860) + 6) = BYTE1(v17); *((_BYTE *)v13 + *(unsigned int *)(v8 + 1860) + 5) = BYTE2(v17); *((_BYTE *)v13 + *(unsigned int *)(v8 + 1860) + 4) = BYTE3(v17); v25 = 6; v26 = 1; insert_dynamic(a1 + 186, &v24); return v15; }
_ma_apply_redo_index_free_page: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV R14,RSI MOV R15,RDI MOV EAX,dword ptr [RDX] MOV ECX,dword ptr [RDX + 0x5] MOVZX R12D,byte ptr [RDX + 0x4] SHL R12,0x20 OR R12,RAX MOVZX EAX,byte ptr [RDX + 0x9] MOV R13,qword ptr [RDI] OR dword ptr [R13 + 0x170],0x1b1 SHL RAX,0x20 OR RAX,RCX CMP qword ptr [R13 + 0x180],RSI JG 0x00159c83 MOV ECX,dword ptr [R13 + 0x7bc] IMUL RCX,R12 MOV qword ptr [R13 + 0x120],RCX LAB_00159c83: MOV RDX,-0x1 MOV RCX,0xffffffffff CMP RAX,RCX JZ 0x00159ca7 MOV ECX,dword ptr [R13 + 0x7bc] IMUL RAX,RCX MOV RDX,RAX LAB_00159ca7: MOV qword ptr [RBP + -0x30],RDX MOV RDI,qword ptr [R13 + 0x600] LEA RSI,[R13 + 0x750] LEA RAX,[RBP + -0x48] MOV RDX,R12 XOR ECX,ECX XOR R8D,R8D MOV R9D,0x1 PUSH RAX PUSH 0x4 CALL 0x0014ce7e ADD RSP,0x10 TEST RAX,RAX JZ 0x00159de5 MOV RBX,RAX MOVZX EAX,word ptr [RAX] SHL RAX,0x20 MOVZX ECX,byte ptr [RBX + 0x2] SHL RCX,0x30 OR RCX,RAX MOV ESI,dword ptr [RBX + 0x3] OR RSI,RCX CMP RSI,R14 JGE 0x00159dfe MOV RDI,RBX ADD RDI,0x7 MOV EDX,dword ptr [R13 + 0x744] ADD EDX,-0x7 XOR R14D,R14D XOR ESI,ESI CALL 0x001292b0 MOV EAX,dword ptr [R13 + 0x744] ADD EAX,-0x4 MOV byte ptr [RBX + RAX*0x1],0xff MOV EAX,dword ptr [R13 + 0x744] LEA ECX,[RAX + 0x8] MOV byte ptr [RBX + RAX*0x1 + -0x1],CL MOV EAX,dword ptr [R13 + 0x744] MOV byte ptr [RBX + RAX*0x1 + -0x2],CH MOV RDX,qword ptr [RBP + -0x30] MOV RAX,RDX SHR RAX,0x20 MOV ECX,dword ptr [R13 + 0x744] MOV byte ptr [RBX + RCX*0x1 + 0x3],AL MOV RAX,RDX SHR RAX,0x28 MOV ECX,dword ptr [R13 + 0x744] MOV byte ptr [RBX + RCX*0x1 + 0x2],AL MOV RAX,RDX SHR RAX,0x30 MOV ECX,dword ptr [R13 + 0x744] MOV byte ptr [RBX + RCX*0x1 + 0x1],AL MOV RAX,RDX SHR RAX,0x38 MOV ECX,dword ptr [R13 + 0x744] MOV byte ptr [RBX + RCX*0x1],AL MOV EAX,dword ptr [R13 + 0x744] MOV byte ptr [RBX + RAX*0x1 + 0x7],DL MOV EAX,dword ptr [R13 + 0x744] MOV byte ptr [RBX + RAX*0x1 + 0x6],DH MOV EAX,EDX SHR EAX,0x10 MOV ECX,dword ptr [R13 + 0x744] MOV byte ptr [RBX + RCX*0x1 + 0x5],AL SHR EDX,0x18 MOV EAX,dword ptr [R13 + 0x744] MOV byte ptr [RBX + RAX*0x1 + 0x4],DL LEA RSI,[RBP + -0x48] MOV dword ptr [RSI + 0x8],0x6 MOV byte ptr [RSI + 0x10],0x1 ADD R15,0x2e8 MOV RDI,R15 CALL 0x001914f6 JMP 0x00159e36 LAB_00159de5: CALL 0x001a13e6 MOV R14D,dword ptr [RAX] CALL 0x001a13e6 MOV ESI,dword ptr [RAX] MOV RDI,R15 CALL 0x00132af4 JMP 0x00159e0e LAB_00159dfe: XOR R14D,R14D MOV RDI,R15 XOR EDX,EDX MOV RCX,R12 CALL 0x00147a8d LAB_00159e0e: MOV RDI,qword ptr [R13 + 0x600] MOV RSI,qword ptr [RBP + -0x48] XOR EAX,EAX MOV EDX,0x6 MOV ECX,0x3 XOR R8D,R8D XOR R9D,R9D PUSH RAX PUSH RAX CALL 0x0014cb99 ADD RSP,0x10 LAB_00159e36: MOV EAX,R14D ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int4 _ma_apply_redo_index_free_page(long *param_1,long param_2,uint5 *param_3) { long lVar1; uint5 uVar2; ushort *puVar3; int4 *puVar4; int iVar5; ulong uVar6; ulong uVar7; int4 uVar8; int8 local_50; int4 local_48; int1 local_40; long local_38; uVar7 = (ulong)*param_3; uVar2 = *(uint5 *)((long)param_3 + 5); lVar1 = *param_1; *(uint *)(lVar1 + 0x170) = *(uint *)(lVar1 + 0x170) | 0x1b1; if (*(long *)(lVar1 + 0x180) <= param_2) { *(ulong *)(lVar1 + 0x120) = *(uint *)(lVar1 + 0x7bc) * uVar7; } local_38 = -1; if ((ulong)uVar2 != 0xffffffffff) { local_38 = (ulong)uVar2 * (ulong)*(uint *)(lVar1 + 0x7bc); } puVar3 = (ushort *) pagecache_read(*(int8 *)(lVar1 + 0x600),lVar1 + 0x750,uVar7,0,0,1,4,&local_50); if (puVar3 == (ushort *)0x0) { puVar4 = (int4 *)_my_thread_var(); uVar8 = *puVar4; puVar4 = (int4 *)_my_thread_var(); _ma_set_fatal_error(param_1,*puVar4); } else { uVar6 = (ulong)*(uint *)((long)puVar3 + 3) | (ulong)(byte)puVar3[1] << 0x30 | (ulong)*puVar3 << 0x20; if ((long)uVar6 < param_2) { memset((void *)((long)puVar3 + 7),0,(ulong)(*(int *)(lVar1 + 0x744) - 7)); *(int1 *)((long)puVar3 + (ulong)(*(int *)(lVar1 + 0x744) - 4)) = 0xff; iVar5 = *(uint *)(lVar1 + 0x744) + 8; *(char *)((long)puVar3 + ((ulong)*(uint *)(lVar1 + 0x744) - 1)) = (char)iVar5; *(char *)((long)puVar3 + ((ulong)*(uint *)(lVar1 + 0x744) - 2)) = (char)((uint)iVar5 >> 8); *(char *)((long)puVar3 + (ulong)*(uint *)(lVar1 + 0x744) + 3) = (char)((ulong)local_38 >> 0x20); *(char *)((long)puVar3 + (ulong)*(uint *)(lVar1 + 0x744) + 2) = (char)((ulong)local_38 >> 0x28); *(char *)((long)puVar3 + (ulong)*(uint *)(lVar1 + 0x744) + 1) = (char)((ulong)local_38 >> 0x30); *(char *)((long)puVar3 + (ulong)*(uint *)(lVar1 + 0x744)) = (char)((ulong)local_38 >> 0x38); *(char *)((long)puVar3 + (ulong)*(uint *)(lVar1 + 0x744) + 7) = (char)local_38; *(char *)((long)puVar3 + (ulong)*(uint *)(lVar1 + 0x744) + 6) = (char)((ulong)local_38 >> 8); *(char *)((long)puVar3 + (ulong)*(uint *)(lVar1 + 0x744) + 5) = (char)((ulong)local_38 >> 0x10); *(char *)((long)puVar3 + (ulong)*(uint *)(lVar1 + 0x744) + 4) = (char)((ulong)local_38 >> 0x18); local_48 = 6; local_40 = 1; insert_dynamic(param_1 + 0x5d); return 0; } uVar8 = 0; check_skipped_lsn(param_1,uVar6,0,uVar7); } pagecache_unlock_by_link(*(int8 *)(lVar1 + 0x600),local_50,6,3,0,0,0,0); return uVar8; }
38,797
DestroyInstance(VkInstance_T*, VkAllocationCallbacks const*)
HansKristian-Work[P]pyroveil/layer/pyroveil.cpp
static VKAPI_ATTR void VKAPI_CALL DestroyInstance(VkInstance instance, const VkAllocationCallbacks *pAllocator) { void *key = getDispatchKey(instance); auto *layer = getLayerData(key, instanceData); layer->getTable()->DestroyInstance(instance, pAllocator); std::lock_guard<std::mutex> holder{ globalLock }; destroyLayerData(key, instanceData); }
O1
cpp
DestroyInstance(VkInstance_T*, VkAllocationCallbacks const*): pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq (%rdi), %rbx movq %rbx, %rax xorl %edx, %edx divq 0x55970a(%rip) # 0x5e3fd0 movq 0x5596fb(%rip), %rax # 0x5e3fc8 movq (%rax,%rdx,8), %rax movq (%rax), %rcx cmpq %rbx, 0x8(%rcx) je 0x8a8e2 movq %rcx, %rax movq (%rcx), %rcx jmp 0x8a8d4 movq (%rax), %rax movq 0x10(%rax), %rax callq *0x8(%rax) leaq 0x559745(%rip), %rdi # 0x5e4038 callq 0x80290 testl %eax, %eax jne 0x8a98a movq 0x5596c9(%rip), %rdi # 0x5e3fd0 xorl %r9d, %r9d movq %rbx, %rax xorl %edx, %edx divq %rdi movq 0x5596af(%rip), %rax # 0x5e3fc8 movq (%rax,%rdx,8), %rax testq %rax, %rax je 0x8a960 movq (%rax), %r8 movq %rax, %r9 cmpq %rbx, 0x8(%r8) je 0x8a960 movq %rdx, %rcx movq %r8, %r10 movq (%r8), %r8 testq %r8, %r8 je 0x8a95d movq 0x8(%r8), %rsi movq %rsi, %rax xorl %edx, %edx divq %rdi movl $0x0, %r9d cmpq %rcx, %rdx jne 0x8a960 movq %r10, %r9 cmpq %rbx, %rsi jne 0x8a931 jmp 0x8a960 xorl %r9d, %r9d testq %r9, %r9 je 0x8a96a movq (%r9), %rsi jmp 0x8a96c xorl %esi, %esi leaq 0x559655(%rip), %rdi # 0x5e3fc8 callq 0x8e5b4 leaq 0x5596b9(%rip), %rdi # 0x5e4038 addq $0x8, %rsp popq %rbx popq %rbp jmp 0x7efe0 movl %eax, %edi callq 0x7ee10 movq %rax, %rbx leaq 0x55969d(%rip), %rdi # 0x5e4038 callq 0x7efe0 movq %rbx, %rdi callq 0x809f0
_ZL15DestroyInstanceP12VkInstance_TPK21VkAllocationCallbacks: push rbp mov rbp, rsp push rbx push rax mov rbx, [rdi] mov rax, rbx xor edx, edx div cs:qword_5E3FD0 mov rax, cs:_ZL12instanceData; instanceData mov rax, [rax+rdx*8] mov rcx, [rax] loc_8A8D4: cmp [rcx+8], rbx jz short loc_8A8E2 mov rax, rcx mov rcx, [rcx] jmp short loc_8A8D4 loc_8A8E2: mov rax, [rax] mov rax, [rax+10h] call qword ptr [rax+8] lea rdi, _ZL10globalLock; globalLock call _pthread_mutex_lock test eax, eax jnz loc_8A98A mov rdi, cs:qword_5E3FD0 xor r9d, r9d mov rax, rbx xor edx, edx div rdi mov rax, cs:_ZL12instanceData; instanceData mov rax, [rax+rdx*8] test rax, rax jz short loc_8A960 mov r8, [rax] mov r9, rax cmp [r8+8], rbx jz short loc_8A960 mov rcx, rdx loc_8A931: mov r10, r8 mov r8, [r8] test r8, r8 jz short loc_8A95D mov rsi, [r8+8] mov rax, rsi xor edx, edx div rdi mov r9d, 0 cmp rdx, rcx jnz short loc_8A960 mov r9, r10 cmp rsi, rbx jnz short loc_8A931 jmp short loc_8A960 loc_8A95D: xor r9d, r9d loc_8A960: test r9, r9 jz short loc_8A96A mov rsi, [r9] jmp short loc_8A96C loc_8A96A: xor esi, esi loc_8A96C: lea rdi, _ZL12instanceData; instanceData call _ZNSt10_HashtableIPvSt4pairIKS0_St10unique_ptrI8InstanceSt14default_deleteIS4_EEESaIS8_ENSt8__detail10_Select1stESt8equal_toIS0_ESt4hashIS0_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb0ELb0ELb1EEEE5eraseENSA_20_Node_const_iteratorIS8_Lb0ELb0EEE; std::_Hashtable<void *,std::pair<void * const,std::unique_ptr<Instance>>,std::allocator<std::pair<void * const,std::unique_ptr<Instance>>>,std::__detail::_Select1st,std::equal_to<void *>,std::hash<void *>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::erase(std::__detail::_Node_const_iterator<std::pair<void * const,std::unique_ptr<Instance>>,false,false>) lea rdi, _ZL10globalLock; globalLock add rsp, 8 pop rbx pop rbp jmp _pthread_mutex_unlock loc_8A98A: mov edi, eax; int call __ZSt20__throw_system_errori; std::__throw_system_error(int) mov rbx, rax lea rdi, _ZL10globalLock; globalLock call _pthread_mutex_unlock mov rdi, rbx call __Unwind_Resume
long long DestroyInstance(unsigned long long *a1) { unsigned long long v1; // rbx _QWORD *v2; // rax _QWORD *i; // rcx int v4; // eax long long *v5; // r9 long long **v6; // rax long long *v7; // r8 long long *v8; // r10 long long v9; // rsi v1 = *a1; v2 = *(_QWORD **)(instanceData + 8 * (*a1 % qword_5E3FD0)); for ( i = (_QWORD *)*v2; i[1] != v1; i = (_QWORD *)*i ) v2 = i; (*(void ( **)(unsigned long long *))(*(_QWORD *)(*v2 + 16LL) + 8LL))(a1); v4 = pthread_mutex_lock(&globalLock); if ( v4 ) std::__throw_system_error(v4); v5 = 0LL; v6 = *(long long ***)(instanceData + 8 * (v1 % qword_5E3FD0)); if ( v6 ) { v7 = *v6; v5 = *(long long **)(instanceData + 8 * (v1 % qword_5E3FD0)); if ( (*v6)[1] != v1 ) { while ( 1 ) { v8 = v7; v7 = (long long *)*v7; if ( !v7 ) break; v5 = 0LL; if ( v7[1] % (unsigned long long)qword_5E3FD0 == v1 % qword_5E3FD0 ) { v5 = v8; if ( v7[1] != v1 ) continue; } goto LABEL_12; } v5 = 0LL; } } LABEL_12: if ( v5 ) v9 = *v5; else v9 = 0LL; std::_Hashtable<void *,std::pair<void * const,std::unique_ptr<Instance>>,std::allocator<std::pair<void * const,std::unique_ptr<Instance>>>,std::__detail::_Select1st,std::equal_to<void *>,std::hash<void *>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::erase( &instanceData, v9); return pthread_mutex_unlock(&globalLock); }
DestroyInstance: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RBX,qword ptr [RDI] MOV RAX,RBX XOR EDX,EDX DIV qword ptr [0x006e3fd0] MOV RAX,qword ptr [0x006e3fc8] MOV RAX,qword ptr [RAX + RDX*0x8] MOV RCX,qword ptr [RAX] LAB_0018a8d4: CMP qword ptr [RCX + 0x8],RBX JZ 0x0018a8e2 MOV RAX,RCX MOV RCX,qword ptr [RCX] JMP 0x0018a8d4 LAB_0018a8e2: MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x10] CALL qword ptr [RAX + 0x8] LEA RDI,[0x6e4038] CALL 0x00180290 TEST EAX,EAX JNZ 0x0018a98a MOV RDI,qword ptr [0x006e3fd0] XOR R9D,R9D MOV RAX,RBX XOR EDX,EDX DIV RDI MOV RAX,qword ptr [0x006e3fc8] MOV RAX,qword ptr [RAX + RDX*0x8] TEST RAX,RAX JZ 0x0018a960 MOV R8,qword ptr [RAX] MOV R9,RAX CMP qword ptr [R8 + 0x8],RBX JZ 0x0018a960 MOV RCX,RDX LAB_0018a931: MOV R10,R8 MOV R8,qword ptr [R8] TEST R8,R8 JZ 0x0018a95d MOV RSI,qword ptr [R8 + 0x8] MOV RAX,RSI XOR EDX,EDX DIV RDI MOV R9D,0x0 CMP RDX,RCX JNZ 0x0018a960 MOV R9,R10 CMP RSI,RBX JNZ 0x0018a931 JMP 0x0018a960 LAB_0018a95d: XOR R9D,R9D LAB_0018a960: TEST R9,R9 JZ 0x0018a96a MOV RSI,qword ptr [R9] JMP 0x0018a96c LAB_0018a96a: XOR ESI,ESI LAB_0018a96c: LEA RDI,[0x6e3fc8] CALL 0x0018e5b4 LAB_0018a978: LEA RDI,[0x6e4038] ADD RSP,0x8 POP RBX POP RBP JMP 0x0017efe0 LAB_0018a98a: MOV EDI,EAX CALL 0x0017ee10
/* DestroyInstance(VkInstance_T*, VkAllocationCallbacks const*) */ void DestroyInstance(VkInstance_T *param_1,VkAllocationCallbacks *param_2) { ulong uVar1; long *plVar2; int iVar3; long *plVar4; long *plVar5; long lVar6; uVar1 = *(ulong *)param_1; plVar4 = *(long **)(instanceData + (uVar1 % DAT_006e3fd0) * 8); for (plVar5 = (long *)*plVar4; plVar5[1] != uVar1; plVar5 = (long *)*plVar5) { plVar4 = plVar5; } (**(code **)(*(long *)(*plVar4 + 0x10) + 8))(); iVar3 = pthread_mutex_lock((pthread_mutex_t *)globalLock); if (iVar3 != 0) { /* WARNING: Subroutine does not return */ std::__throw_system_error(iVar3); } plVar4 = *(long **)(instanceData + (uVar1 % DAT_006e3fd0) * 8); plVar5 = (long *)0x0; if ((plVar4 != (long *)0x0) && (plVar2 = (long *)*plVar4, plVar5 = plVar4, ((long *)*plVar4)[1] != uVar1)) { while (plVar4 = plVar2, plVar2 = (long *)*plVar4, plVar2 != (long *)0x0) { plVar5 = (long *)0x0; if (((ulong)plVar2[1] % DAT_006e3fd0 != uVar1 % DAT_006e3fd0) || (plVar5 = plVar4, plVar2[1] == uVar1)) goto LAB_0018a960; } plVar5 = (long *)0x0; } LAB_0018a960: if (plVar5 == (long *)0x0) { lVar6 = 0; } else { lVar6 = *plVar5; } /* try { // try from 0018a96c to 0018a977 has its CatchHandler @ 0018a991 */ std:: _Hashtable<void*,std::pair<void*const,std::unique_ptr<Instance,std::default_delete<Instance>>>,std::allocator<std::pair<void*const,std::unique_ptr<Instance,std::default_delete<Instance>>>>,std::__detail::_Select1st,std::equal_to<void*>,std::hash<void*>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> ::erase((_Hashtable<void*,std::pair<void*const,std::unique_ptr<Instance,std::default_delete<Instance>>>,std::allocator<std::pair<void*const,std::unique_ptr<Instance,std::default_delete<Instance>>>>,std::__detail::_Select1st,std::equal_to<void*>,std::hash<void*>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> *)&instanceData,lVar6); pthread_mutex_unlock((pthread_mutex_t *)globalLock); return; }
38,798
check_mb_utf8mb3_sequence
eloqsql/libmariadb/libmariadb/ma_charset.c
static unsigned int check_mb_utf8mb3_sequence(const char *start, const char *end) { uchar c; if (start >= end) { return 0; } c = (uchar) start[0]; if (c < 0x80) { return 1; /* single byte character */ } if (c < 0xC2) { return 0; /* invalid mb character */ } if (c < 0xE0) { if (start + 2 > end) { return 0; /* too small */ } if (!(((uchar)start[1] ^ 0x80) < 0x40)) { return 0; } return 2; } if (c < 0xF0) { if (start + 3 > end) { return 0; /* too small */ } if (!(((uchar)start[1] ^ 0x80) < 0x40 && ((uchar)start[2] ^ 0x80) < 0x40 && (c >= 0xE1 || (uchar)start[1] >= 0xA0))) { return 0; /* invalid utf8 character */ } return 3; } return 0; }
O0
c
check_mb_utf8mb3_sequence: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rax cmpq -0x18(%rbp), %rax jb 0x5ed02 movl $0x0, -0x4(%rbp) jmp 0x5edfe movq -0x10(%rbp), %rax movb (%rax), %al movb %al, -0x19(%rbp) movzbl -0x19(%rbp), %eax cmpl $0x80, %eax jge 0x5ed22 movl $0x1, -0x4(%rbp) jmp 0x5edfe movzbl -0x19(%rbp), %eax cmpl $0xc2, %eax jge 0x5ed39 movl $0x0, -0x4(%rbp) jmp 0x5edfe movzbl -0x19(%rbp), %eax cmpl $0xe0, %eax jge 0x5ed85 movq -0x10(%rbp), %rax addq $0x2, %rax cmpq -0x18(%rbp), %rax jbe 0x5ed5e movl $0x0, -0x4(%rbp) jmp 0x5edfe movq -0x10(%rbp), %rax movzbl 0x1(%rax), %eax xorl $0x80, %eax cmpl $0x40, %eax jl 0x5ed7c movl $0x0, -0x4(%rbp) jmp 0x5edfe movl $0x2, -0x4(%rbp) jmp 0x5edfe movzbl -0x19(%rbp), %eax cmpl $0xf0, %eax jge 0x5edf7 movq -0x10(%rbp), %rax addq $0x3, %rax cmpq -0x18(%rbp), %rax jbe 0x5eda7 movl $0x0, -0x4(%rbp) jmp 0x5edfe movq -0x10(%rbp), %rax movzbl 0x1(%rax), %eax xorl $0x80, %eax cmpl $0x40, %eax jge 0x5ede5 movq -0x10(%rbp), %rax movzbl 0x2(%rax), %eax xorl $0x80, %eax cmpl $0x40, %eax jge 0x5ede5 movzbl -0x19(%rbp), %eax cmpl $0xe1, %eax jge 0x5edee movq -0x10(%rbp), %rax movzbl 0x1(%rax), %eax cmpl $0xa0, %eax jge 0x5edee movl $0x0, -0x4(%rbp) jmp 0x5edfe movl $0x3, -0x4(%rbp) jmp 0x5edfe movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopw %cs:(%rax,%rax)
check_mb_utf8mb3_sequence: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rax, [rbp+var_10] cmp rax, [rbp+var_18] jb short loc_5ED02 mov [rbp+var_4], 0 jmp loc_5EDFE loc_5ED02: mov rax, [rbp+var_10] mov al, [rax] mov [rbp+var_19], al movzx eax, [rbp+var_19] cmp eax, 80h jge short loc_5ED22 mov [rbp+var_4], 1 jmp loc_5EDFE loc_5ED22: movzx eax, [rbp+var_19] cmp eax, 0C2h jge short loc_5ED39 mov [rbp+var_4], 0 jmp loc_5EDFE loc_5ED39: movzx eax, [rbp+var_19] cmp eax, 0E0h jge short loc_5ED85 mov rax, [rbp+var_10] add rax, 2 cmp rax, [rbp+var_18] jbe short loc_5ED5E mov [rbp+var_4], 0 jmp loc_5EDFE loc_5ED5E: mov rax, [rbp+var_10] movzx eax, byte ptr [rax+1] xor eax, 80h cmp eax, 40h ; '@' jl short loc_5ED7C mov [rbp+var_4], 0 jmp loc_5EDFE loc_5ED7C: mov [rbp+var_4], 2 jmp short loc_5EDFE loc_5ED85: movzx eax, [rbp+var_19] cmp eax, 0F0h jge short loc_5EDF7 mov rax, [rbp+var_10] add rax, 3 cmp rax, [rbp+var_18] jbe short loc_5EDA7 mov [rbp+var_4], 0 jmp short loc_5EDFE loc_5EDA7: mov rax, [rbp+var_10] movzx eax, byte ptr [rax+1] xor eax, 80h cmp eax, 40h ; '@' jge short loc_5EDE5 mov rax, [rbp+var_10] movzx eax, byte ptr [rax+2] xor eax, 80h cmp eax, 40h ; '@' jge short loc_5EDE5 movzx eax, [rbp+var_19] cmp eax, 0E1h jge short loc_5EDEE mov rax, [rbp+var_10] movzx eax, byte ptr [rax+1] cmp eax, 0A0h jge short loc_5EDEE loc_5EDE5: mov [rbp+var_4], 0 jmp short loc_5EDFE loc_5EDEE: mov [rbp+var_4], 3 jmp short loc_5EDFE loc_5EDF7: mov [rbp+var_4], 0 loc_5EDFE: mov eax, [rbp+var_4] pop rbp retn
long long check_mb_utf8mb3_sequence(unsigned __int8 *a1, unsigned long long a2) { unsigned __int8 v3; // [rsp+1h] [rbp-19h] if ( (unsigned long long)a1 < a2 ) { v3 = *a1; if ( *a1 >= 0x80u ) { if ( v3 >= 0xC2u ) { if ( v3 >= 0xE0u ) { if ( v3 >= 0xF0u ) { return 0; } else if ( (unsigned long long)(a1 + 3) <= a2 ) { if ( (a1[1] ^ 0x80) < 64 && (a1[2] ^ 0x80) < 64 && (v3 >= 0xE1u || a1[1] >= 0xA0u) ) return 3; else return 0; } else { return 0; } } else if ( (unsigned long long)(a1 + 2) <= a2 ) { if ( (a1[1] ^ 0x80) < 64 ) return 2; else return 0; } else { return 0; } } else { return 0; } } else { return 1; } } else { return 0; } }
check_mb_utf8mb3_sequence: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV RAX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RBP + -0x18] JC 0x0015ed02 MOV dword ptr [RBP + -0x4],0x0 JMP 0x0015edfe LAB_0015ed02: MOV RAX,qword ptr [RBP + -0x10] MOV AL,byte ptr [RAX] MOV byte ptr [RBP + -0x19],AL MOVZX EAX,byte ptr [RBP + -0x19] CMP EAX,0x80 JGE 0x0015ed22 MOV dword ptr [RBP + -0x4],0x1 JMP 0x0015edfe LAB_0015ed22: MOVZX EAX,byte ptr [RBP + -0x19] CMP EAX,0xc2 JGE 0x0015ed39 MOV dword ptr [RBP + -0x4],0x0 JMP 0x0015edfe LAB_0015ed39: MOVZX EAX,byte ptr [RBP + -0x19] CMP EAX,0xe0 JGE 0x0015ed85 MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x2 CMP RAX,qword ptr [RBP + -0x18] JBE 0x0015ed5e MOV dword ptr [RBP + -0x4],0x0 JMP 0x0015edfe LAB_0015ed5e: MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX + 0x1] XOR EAX,0x80 CMP EAX,0x40 JL 0x0015ed7c MOV dword ptr [RBP + -0x4],0x0 JMP 0x0015edfe LAB_0015ed7c: MOV dword ptr [RBP + -0x4],0x2 JMP 0x0015edfe LAB_0015ed85: MOVZX EAX,byte ptr [RBP + -0x19] CMP EAX,0xf0 JGE 0x0015edf7 MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x3 CMP RAX,qword ptr [RBP + -0x18] JBE 0x0015eda7 MOV dword ptr [RBP + -0x4],0x0 JMP 0x0015edfe LAB_0015eda7: MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX + 0x1] XOR EAX,0x80 CMP EAX,0x40 JGE 0x0015ede5 MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX + 0x2] XOR EAX,0x80 CMP EAX,0x40 JGE 0x0015ede5 MOVZX EAX,byte ptr [RBP + -0x19] CMP EAX,0xe1 JGE 0x0015edee MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX + 0x1] CMP EAX,0xa0 JGE 0x0015edee LAB_0015ede5: MOV dword ptr [RBP + -0x4],0x0 JMP 0x0015edfe LAB_0015edee: MOV dword ptr [RBP + -0x4],0x3 JMP 0x0015edfe LAB_0015edf7: MOV dword ptr [RBP + -0x4],0x0 LAB_0015edfe: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 check_mb_utf8mb3_sequence(byte *param_1,byte *param_2) { byte bVar1; int4 local_c; if (param_1 < param_2) { bVar1 = *param_1; if (bVar1 < 0x80) { local_c = 1; } else if (bVar1 < 0xc2) { local_c = 0; } else if (bVar1 < 0xe0) { if (param_2 < param_1 + 2) { local_c = 0; } else if ((param_1[1] ^ 0x80) < 0x40) { local_c = 2; } else { local_c = 0; } } else if (bVar1 < 0xf0) { if (param_2 < param_1 + 3) { local_c = 0; } else if ((((param_1[1] ^ 0x80) < 0x40) && ((param_1[2] ^ 0x80) < 0x40)) && ((0xe0 < bVar1 || (0x9f < param_1[1])))) { local_c = 3; } else { local_c = 0; } } else { local_c = 0; } } else { local_c = 0; } return local_c; }
38,799
ma_get_dynamic
eloqsql/libmariadb/libmariadb/ma_array.c
void ma_get_dynamic(DYNAMIC_ARRAY *array, void * element, uint idx) { if (idx >= array->elements) { memset(element, 0, array->size_of_element); return; } memcpy(element,array->buffer+idx*array->size_of_element, (size_t) array->size_of_element); }
O0
c
ma_get_dynamic: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movl -0x14(%rbp), %eax movq -0x8(%rbp), %rcx cmpl 0x8(%rcx), %eax jb 0x1b495 movq -0x10(%rbp), %rdi movq -0x8(%rbp), %rax movl 0x14(%rax), %eax movl %eax, %edx xorl %esi, %esi callq 0x17330 jmp 0x1b4be movq -0x10(%rbp), %rdi movq -0x8(%rbp), %rax movq (%rax), %rsi movl -0x14(%rbp), %eax movq -0x8(%rbp), %rcx imull 0x14(%rcx), %eax movl %eax, %eax addq %rax, %rsi movq -0x8(%rbp), %rax movl 0x14(%rax), %eax movl %eax, %edx callq 0x174a0 addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
ma_get_dynamic: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx mov eax, [rbp+var_14] mov rcx, [rbp+var_8] cmp eax, [rcx+8] jb short loc_1B495 mov rdi, [rbp+var_10] mov rax, [rbp+var_8] mov eax, [rax+14h] mov edx, eax xor esi, esi call _memset jmp short loc_1B4BE loc_1B495: mov rdi, [rbp+var_10] mov rax, [rbp+var_8] mov rsi, [rax] mov eax, [rbp+var_14] mov rcx, [rbp+var_8] imul eax, [rcx+14h] mov eax, eax add rsi, rax mov rax, [rbp+var_8] mov eax, [rax+14h] mov edx, eax call _memcpy loc_1B4BE: add rsp, 20h pop rbp retn
long long ma_get_dynamic(long long a1, long long a2, unsigned int a3) { if ( a3 < *(_DWORD *)(a1 + 8) ) return memcpy(a2, *(_DWORD *)(a1 + 20) * a3 + *(_QWORD *)a1, *(unsigned int *)(a1 + 20)); else return memset(a2, 0LL, *(unsigned int *)(a1 + 20)); }
ma_get_dynamic: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX MOV EAX,dword ptr [RBP + -0x14] MOV RCX,qword ptr [RBP + -0x8] CMP EAX,dword ptr [RCX + 0x8] JC 0x0011b495 MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x14] MOV EDX,EAX XOR ESI,ESI CALL 0x00117330 JMP 0x0011b4be LAB_0011b495: MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RAX] MOV EAX,dword ptr [RBP + -0x14] MOV RCX,qword ptr [RBP + -0x8] IMUL EAX,dword ptr [RCX + 0x14] MOV EAX,EAX ADD RSI,RAX MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x14] MOV EDX,EAX CALL 0x001174a0 LAB_0011b4be: ADD RSP,0x20 POP RBP RET
void ma_get_dynamic(long *param_1,void *param_2,uint param_3) { if (param_3 < *(uint *)(param_1 + 1)) { memcpy(param_2,(void *)(*param_1 + (ulong)(param_3 * *(int *)((long)param_1 + 0x14))), (ulong)*(uint *)((long)param_1 + 0x14)); } else { memset(param_2,0,(ulong)*(uint *)((long)param_1 + 0x14)); } return; }