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
31,300
OpenSubdiv::v3_6_0::Vtr::internal::TriRefinement::populateFaceVertexCountsAndOffsets()
NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/triRefinement.cpp
void TriRefinement::populateFaceVertexCountsAndOffsets() { _child->_faceVertCountsAndOffsets.resize(_child->getNumFaces() * 2, 3); for (int i = 0; i < _child->getNumFaces(); ++i) { _child->_faceVertCountsAndOffsets[i*2 + 1] = i * 3; } }
O1
cpp
OpenSubdiv::v3_6_0::Vtr::internal::TriRefinement::populateFaceVertexCountsAndOffsets(): pushq %rbx subq $0x10, %rsp movq %rdi, %rbx movq 0x10(%rdi), %rdi movslq (%rdi), %rsi addq $0x18, %rdi addq %rsi, %rsi leaq 0xc(%rsp), %rdx movl $0x3, (%rdx) callq 0x38f90 movq 0x10(%rbx), %rax cmpl $0x0, (%rax) jle 0x4b213 movq 0x18(%rax), %rcx xorl %edx, %edx xorl %esi, %esi movl %edx, 0x4(%rcx,%rsi,8) incq %rsi movslq (%rax), %rdi addl $0x3, %edx cmpq %rdi, %rsi jl 0x4b201 addq $0x10, %rsp popq %rbx retq nop
_ZN10OpenSubdiv6v3_6_03Vtr8internal13TriRefinement34populateFaceVertexCountsAndOffsetsEv: push rbx sub rsp, 10h mov rbx, rdi mov rdi, [rdi+10h] movsxd rsi, dword ptr [rdi] add rdi, 18h add rsi, rsi lea rdx, [rsp+18h+var_C] mov dword ptr [rdx], 3 call __ZNSt6vectorIiSaIiEE6resizeEmRKi; std::vector<int>::resize(ulong,int const&) mov rax, [rbx+10h] cmp dword ptr [rax], 0 jle short loc_4B213 mov rcx, [rax+18h] xor edx, edx xor esi, esi loc_4B201: mov [rcx+rsi*8+4], edx inc rsi movsxd rdi, dword ptr [rax] add edx, 3 cmp rsi, rdi jl short loc_4B201 loc_4B213: add rsp, 10h pop rbx retn
int * OpenSubdiv::v3_6_0::Vtr::internal::TriRefinement::populateFaceVertexCountsAndOffsets( OpenSubdiv::v3_6_0::Vtr::internal::TriRefinement *this) { int *v2; // rdi long long v3; // rsi int *result; // rax long long v5; // rcx int v6; // edx long long v7; // rsi int v8[3]; // [rsp+Ch] [rbp-Ch] BYREF v2 = (int *)*((_QWORD *)this + 2); v3 = *v2; v8[0] = 3; std::vector<int>::resize(v2 + 6, 2 * v3, v8); result = (int *)*((_QWORD *)this + 2); if ( *result > 0 ) { v5 = *((_QWORD *)result + 3); v6 = 0; v7 = 0LL; do { *(_DWORD *)(v5 + 8 * v7++ + 4) = v6; v6 += 3; } while ( v7 < *result ); } return result; }
populateFaceVertexCountsAndOffsets: PUSH RBX SUB RSP,0x10 MOV RBX,RDI MOV RDI,qword ptr [RDI + 0x10] MOVSXD RSI,dword ptr [RDI] ADD RDI,0x18 ADD RSI,RSI LEA RDX,[RSP + 0xc] MOV dword ptr [RDX],0x3 CALL 0x00138f90 MOV RAX,qword ptr [RBX + 0x10] CMP dword ptr [RAX],0x0 JLE 0x0014b213 MOV RCX,qword ptr [RAX + 0x18] XOR EDX,EDX XOR ESI,ESI LAB_0014b201: MOV dword ptr [RCX + RSI*0x8 + 0x4],EDX INC RSI MOVSXD RDI,dword ptr [RAX] ADD EDX,0x3 CMP RSI,RDI JL 0x0014b201 LAB_0014b213: ADD RSP,0x10 POP RBX RET
/* OpenSubdiv::v3_6_0::Vtr::internal::TriRefinement::populateFaceVertexCountsAndOffsets() */ void __thiscall OpenSubdiv::v3_6_0::Vtr::internal::TriRefinement::populateFaceVertexCountsAndOffsets (TriRefinement *this) { int *piVar1; long lVar2; int iVar3; long lVar4; int local_c; local_c = 3; std::vector<int,std::allocator<int>>::resize ((vector<int,std::allocator<int>> *)(*(int **)(this + 0x10) + 6), (long)**(int **)(this + 0x10) * 2,&local_c); piVar1 = *(int **)(this + 0x10); if (0 < *piVar1) { lVar2 = *(long *)(piVar1 + 6); iVar3 = 0; lVar4 = 0; do { *(int *)(lVar2 + 4 + lVar4 * 8) = iVar3; lVar4 = lVar4 + 1; iVar3 = iVar3 + 3; } while (lVar4 < *piVar1); } return; }
31,301
OpenSubdiv::v3_6_0::Vtr::internal::TriRefinement::populateFaceVertexCountsAndOffsets()
NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/triRefinement.cpp
void TriRefinement::populateFaceVertexCountsAndOffsets() { _child->_faceVertCountsAndOffsets.resize(_child->getNumFaces() * 2, 3); for (int i = 0; i < _child->getNumFaces(); ++i) { _child->_faceVertCountsAndOffsets[i*2 + 1] = i * 3; } }
O2
cpp
OpenSubdiv::v3_6_0::Vtr::internal::TriRefinement::populateFaceVertexCountsAndOffsets(): pushq %rbx subq $0x10, %rsp movq %rdi, %rbx movq 0x10(%rdi), %rdi movslq (%rdi), %rsi addq $0x18, %rdi addq %rsi, %rsi leaq 0xc(%rsp), %rdx movl $0x3, (%rdx) callq 0x50850 movq 0x10(%rbx), %rax xorl %ecx, %ecx xorl %edx, %edx movslq (%rax), %rsi cmpq %rsi, %rdx jge 0x62f82 movq 0x18(%rax), %rsi movl %ecx, 0x4(%rsi,%rdx,8) incq %rdx addl $0x3, %ecx jmp 0x62f6a addq $0x10, %rsp popq %rbx retq
_ZN10OpenSubdiv6v3_6_03Vtr8internal13TriRefinement34populateFaceVertexCountsAndOffsetsEv: push rbx sub rsp, 10h mov rbx, rdi mov rdi, [rdi+10h] movsxd rsi, dword ptr [rdi] add rdi, 18h add rsi, rsi lea rdx, [rsp+18h+var_C] mov dword ptr [rdx], 3 call __ZNSt6vectorIiSaIiEE6resizeEmRKi; std::vector<int>::resize(ulong,int const&) mov rax, [rbx+10h] xor ecx, ecx xor edx, edx loc_62F6A: movsxd rsi, dword ptr [rax] cmp rdx, rsi jge short loc_62F82 mov rsi, [rax+18h] mov [rsi+rdx*8+4], ecx inc rdx add ecx, 3 jmp short loc_62F6A loc_62F82: add rsp, 10h pop rbx retn
int * OpenSubdiv::v3_6_0::Vtr::internal::TriRefinement::populateFaceVertexCountsAndOffsets( OpenSubdiv::v3_6_0::Vtr::internal::TriRefinement *this) { int *v2; // rdi long long v3; // rsi int *result; // rax int v5; // ecx long long i; // rdx int v7[3]; // [rsp+Ch] [rbp-Ch] BYREF v2 = (int *)*((_QWORD *)this + 2); v3 = *v2; v7[0] = 3; std::vector<int>::resize(v2 + 6, 2 * v3, v7); result = (int *)*((_QWORD *)this + 2); v5 = 0; for ( i = 0LL; i < *result; ++i ) { *(_DWORD *)(*((_QWORD *)result + 3) + 8 * i + 4) = v5; v5 += 3; } return result; }
populateFaceVertexCountsAndOffsets: PUSH RBX SUB RSP,0x10 MOV RBX,RDI MOV RDI,qword ptr [RDI + 0x10] MOVSXD RSI,dword ptr [RDI] ADD RDI,0x18 ADD RSI,RSI LEA RDX,[RSP + 0xc] MOV dword ptr [RDX],0x3 CALL 0x00150850 MOV RAX,qword ptr [RBX + 0x10] XOR ECX,ECX XOR EDX,EDX LAB_00162f6a: MOVSXD RSI,dword ptr [RAX] CMP RDX,RSI JGE 0x00162f82 MOV RSI,qword ptr [RAX + 0x18] MOV dword ptr [RSI + RDX*0x8 + 0x4],ECX INC RDX ADD ECX,0x3 JMP 0x00162f6a LAB_00162f82: ADD RSP,0x10 POP RBX RET
/* OpenSubdiv::v3_6_0::Vtr::internal::TriRefinement::populateFaceVertexCountsAndOffsets() */ void __thiscall OpenSubdiv::v3_6_0::Vtr::internal::TriRefinement::populateFaceVertexCountsAndOffsets (TriRefinement *this) { int *piVar1; int iVar2; long lVar3; int local_c; local_c = 3; std::vector<int,std::allocator<int>>::resize ((vector<int,std::allocator<int>> *)(*(int **)(this + 0x10) + 6), (long)**(int **)(this + 0x10) * 2,&local_c); piVar1 = *(int **)(this + 0x10); iVar2 = 0; for (lVar3 = 0; lVar3 < *piVar1; lVar3 = lVar3 + 1) { *(int *)(*(long *)(piVar1 + 6) + 4 + lVar3 * 8) = iVar2; iVar2 = iVar2 + 3; } return; }
31,302
OpenSubdiv::v3_6_0::Vtr::internal::TriRefinement::populateFaceVertexCountsAndOffsets()
NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/triRefinement.cpp
void TriRefinement::populateFaceVertexCountsAndOffsets() { _child->_faceVertCountsAndOffsets.resize(_child->getNumFaces() * 2, 3); for (int i = 0; i < _child->getNumFaces(); ++i) { _child->_faceVertCountsAndOffsets[i*2 + 1] = i * 3; } }
O3
cpp
OpenSubdiv::v3_6_0::Vtr::internal::TriRefinement::populateFaceVertexCountsAndOffsets(): pushq %rbx subq $0x10, %rsp movq %rdi, %rbx movq 0x10(%rdi), %rdi movslq (%rdi), %rsi addq $0x18, %rdi addq %rsi, %rsi leaq 0xc(%rsp), %rdx movl $0x3, (%rdx) callq 0x38f80 movq 0x10(%rbx), %rax cmpl $0x0, (%rax) jle 0x4d817 movq 0x18(%rax), %rcx xorl %edx, %edx xorl %esi, %esi movl %edx, 0x4(%rcx,%rsi,8) incq %rsi movslq (%rax), %rdi addl $0x3, %edx cmpq %rdi, %rsi jl 0x4d805 addq $0x10, %rsp popq %rbx retq nop
_ZN10OpenSubdiv6v3_6_03Vtr8internal13TriRefinement34populateFaceVertexCountsAndOffsetsEv: push rbx sub rsp, 10h mov rbx, rdi mov rdi, [rdi+10h] movsxd rsi, dword ptr [rdi] add rdi, 18h add rsi, rsi lea rdx, [rsp+18h+var_C] mov dword ptr [rdx], 3 call __ZNSt6vectorIiSaIiEE6resizeEmRKi; std::vector<int>::resize(ulong,int const&) mov rax, [rbx+10h] cmp dword ptr [rax], 0 jle short loc_4D817 mov rcx, [rax+18h] xor edx, edx xor esi, esi loc_4D805: mov [rcx+rsi*8+4], edx inc rsi movsxd rdi, dword ptr [rax] add edx, 3 cmp rsi, rdi jl short loc_4D805 loc_4D817: add rsp, 10h pop rbx retn
int * OpenSubdiv::v3_6_0::Vtr::internal::TriRefinement::populateFaceVertexCountsAndOffsets( OpenSubdiv::v3_6_0::Vtr::internal::TriRefinement *this) { int *v2; // rdi long long v3; // rsi int *result; // rax long long v5; // rcx int v6; // edx long long v7; // rsi int v8[3]; // [rsp+Ch] [rbp-Ch] BYREF v2 = (int *)*((_QWORD *)this + 2); v3 = *v2; v8[0] = 3; std::vector<int>::resize(v2 + 6, 2 * v3, v8); result = (int *)*((_QWORD *)this + 2); if ( *result > 0 ) { v5 = *((_QWORD *)result + 3); v6 = 0; v7 = 0LL; do { *(_DWORD *)(v5 + 8 * v7++ + 4) = v6; v6 += 3; } while ( v7 < *result ); } return result; }
populateFaceVertexCountsAndOffsets: PUSH RBX SUB RSP,0x10 MOV RBX,RDI MOV RDI,qword ptr [RDI + 0x10] MOVSXD RSI,dword ptr [RDI] ADD RDI,0x18 ADD RSI,RSI LEA RDX,[RSP + 0xc] MOV dword ptr [RDX],0x3 CALL 0x00138f80 MOV RAX,qword ptr [RBX + 0x10] CMP dword ptr [RAX],0x0 JLE 0x0014d817 MOV RCX,qword ptr [RAX + 0x18] XOR EDX,EDX XOR ESI,ESI LAB_0014d805: MOV dword ptr [RCX + RSI*0x8 + 0x4],EDX INC RSI MOVSXD RDI,dword ptr [RAX] ADD EDX,0x3 CMP RSI,RDI JL 0x0014d805 LAB_0014d817: ADD RSP,0x10 POP RBX RET
/* OpenSubdiv::v3_6_0::Vtr::internal::TriRefinement::populateFaceVertexCountsAndOffsets() */ void __thiscall OpenSubdiv::v3_6_0::Vtr::internal::TriRefinement::populateFaceVertexCountsAndOffsets (TriRefinement *this) { int *piVar1; long lVar2; int iVar3; long lVar4; int local_c; local_c = 3; std::vector<int,std::allocator<int>>::resize ((vector<int,std::allocator<int>> *)(*(int **)(this + 0x10) + 6), (long)**(int **)(this + 0x10) * 2,&local_c); piVar1 = *(int **)(this + 0x10); if (0 < *piVar1) { lVar2 = *(long *)(piVar1 + 6); iVar3 = 0; lVar4 = 0; do { *(int *)(lVar2 + 4 + lVar4 * 8) = iVar3; lVar4 = lVar4 + 1; iVar3 = iVar3 + 3; } while (lVar4 < *piVar1); } return; }
31,303
my_tosort_unicode
eloqsql/strings/ctype-utf8.c
static inline void my_tosort_unicode(MY_UNICASE_INFO *uni_plane, my_wc_t *wc, uint flags) { if (*wc <= uni_plane->maxchar) { MY_UNICASE_CHARACTER *page; if ((page= uni_plane->page[*wc >> 8])) *wc= (flags & MY_CS_LOWER_SORT) ? page[*wc & 0xFF].tolower : page[*wc & 0xFF].sort; } else { *wc= MY_CS_REPLACEMENT_CHARACTER; } }
O0
c
my_tosort_unicode: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq -0x8(%rbp), %rcx cmpq (%rcx), %rax ja 0x6beed movq -0x8(%rbp), %rax movq 0x8(%rax), %rax movq -0x10(%rbp), %rcx movq (%rcx), %rcx shrq $0x8, %rcx movq (%rax,%rcx,8), %rax movq %rax, -0x20(%rbp) cmpq $0x0, %rax je 0x6beeb movl -0x14(%rbp), %eax andl $0x8000, %eax # imm = 0x8000 cmpl $0x0, %eax je 0x6bebe movq -0x20(%rbp), %rax movq -0x10(%rbp), %rcx movq (%rcx), %rcx andq $0xff, %rcx imulq $0xc, %rcx, %rcx addq %rcx, %rax movl 0x4(%rax), %eax movl %eax, -0x24(%rbp) jmp 0x6bedd movq -0x20(%rbp), %rax movq -0x10(%rbp), %rcx movq (%rcx), %rcx andq $0xff, %rcx imulq $0xc, %rcx, %rcx addq %rcx, %rax movl 0x8(%rax), %eax movl %eax, -0x24(%rbp) movl -0x24(%rbp), %eax movl %eax, %eax movl %eax, %ecx movq -0x10(%rbp), %rax movq %rcx, (%rax) jmp 0x6bef8 movq -0x10(%rbp), %rax movq $0xfffd, (%rax) # imm = 0xFFFD popq %rbp retq nopw (%rax,%rax)
my_tosort_unicode: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx mov rax, [rbp+var_10] mov rax, [rax] mov rcx, [rbp+var_8] cmp rax, [rcx] ja short loc_6BEED mov rax, [rbp+var_8] mov rax, [rax+8] mov rcx, [rbp+var_10] mov rcx, [rcx] shr rcx, 8 mov rax, [rax+rcx*8] mov [rbp+var_20], rax cmp rax, 0 jz short loc_6BEEB mov eax, [rbp+var_14] and eax, 8000h cmp eax, 0 jz short loc_6BEBE mov rax, [rbp+var_20] mov rcx, [rbp+var_10] mov rcx, [rcx] and rcx, 0FFh imul rcx, 0Ch add rax, rcx mov eax, [rax+4] mov [rbp+var_24], eax jmp short loc_6BEDD loc_6BEBE: mov rax, [rbp+var_20] mov rcx, [rbp+var_10] mov rcx, [rcx] and rcx, 0FFh imul rcx, 0Ch add rax, rcx mov eax, [rax+8] mov [rbp+var_24], eax loc_6BEDD: mov eax, [rbp+var_24] mov eax, eax mov ecx, eax mov rax, [rbp+var_10] mov [rax], rcx loc_6BEEB: jmp short loc_6BEF8 loc_6BEED: mov rax, [rbp+var_10] mov qword ptr [rax], 0FFFDh loc_6BEF8: pop rbp retn
_QWORD * my_tosort_unicode(_QWORD *a1, _QWORD *a2, __int16 a3) { _QWORD *result; // rax unsigned int v4; // [rsp+0h] [rbp-24h] if ( *a2 > *a1 ) { result = a2; *a2 = 65533LL; } else { result = *(_QWORD **)(a1[1] + 8LL * (*a2 >> 8)); if ( result ) { if ( a3 < 0 ) v4 = *((_DWORD *)result + 3 * (unsigned __int8)*a2 + 1); else v4 = *((_DWORD *)result + 3 * (unsigned __int8)*a2 + 2); result = a2; *a2 = v4; } } return result; }
my_tosort_unicode: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,qword ptr [RCX] JA 0x0016beed MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX] SHR RCX,0x8 MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0x20],RAX CMP RAX,0x0 JZ 0x0016beeb MOV EAX,dword ptr [RBP + -0x14] AND EAX,0x8000 CMP EAX,0x0 JZ 0x0016bebe MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX] AND RCX,0xff IMUL RCX,RCX,0xc ADD RAX,RCX MOV EAX,dword ptr [RAX + 0x4] MOV dword ptr [RBP + -0x24],EAX JMP 0x0016bedd LAB_0016bebe: MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX] AND RCX,0xff IMUL RCX,RCX,0xc ADD RAX,RCX MOV EAX,dword ptr [RAX + 0x8] MOV dword ptr [RBP + -0x24],EAX LAB_0016bedd: MOV EAX,dword ptr [RBP + -0x24] MOV EAX,EAX MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX LAB_0016beeb: JMP 0x0016bef8 LAB_0016beed: MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],0xfffd LAB_0016bef8: POP RBP RET
void my_tosort_unicode(ulong *param_1,ulong *param_2,uint param_3) { long lVar1; uint local_2c; if (*param_1 < *param_2) { *param_2 = 0xfffd; } else { lVar1 = *(long *)(param_1[1] + (*param_2 >> 8) * 8); if (lVar1 != 0) { if ((param_3 & 0x8000) == 0) { local_2c = *(uint *)(lVar1 + (*param_2 & 0xff) * 0xc + 8); } else { local_2c = *(uint *)(lVar1 + (*param_2 & 0xff) * 0xc + 4); } *param_2 = (ulong)local_2c; } } return; }
31,304
LefDefParser::lefGetDoubleDefine(char const*, double*)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lef_keywords.cpp
inline int lefGetDoubleDefine(const char* name, double* value) { map<string, double, lefCompareStrings>::iterator search = lefData->define_set.find(strip_case(name)); if ( search != lefData->define_set.end()) { *value = search->second; return TRUE; } return FALSE; }
O0
cpp
LefDefParser::lefGetDoubleDefine(char const*, double*): subq $0x58, %rsp movq %rdi, 0x48(%rsp) movq %rsi, 0x40(%rsp) leaq 0x6811b(%rip), %rax # 0xa2740 movq (%rax), %rax addq $0x1688, %rax # imm = 0x1688 movq %rax, (%rsp) movq 0x48(%rsp), %rsi leaq 0x30(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x39f40 movq (%rsp), %rdi movq 0x8(%rsp), %rsi callq 0x3afa0 movq %rax, 0x10(%rsp) jmp 0x3a65b movq 0x10(%rsp), %rax movq %rax, 0x38(%rsp) leaq 0x30(%rsp), %rdi callq 0x23d0 leaq 0x680ca(%rip), %rax # 0xa2740 movq (%rax), %rdi addq $0x1688, %rdi # imm = 0x1688 callq 0x3aff0 movq %rax, 0x18(%rsp) leaq 0x38(%rsp), %rdi leaq 0x18(%rsp), %rsi callq 0x3afd0 testb $0x1, %al jne 0x3a69f jmp 0x3a6db leaq 0x38(%rsp), %rdi callq 0x3b020 movsd 0x8(%rax), %xmm0 movq 0x40(%rsp), %rax movsd %xmm0, (%rax) movl $0x1, 0x54(%rsp) jmp 0x3a6e3 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x28(%rsp) movl %eax, 0x24(%rsp) leaq 0x30(%rsp), %rdi callq 0x23d0 jmp 0x3a6ec movl $0x0, 0x54(%rsp) movl 0x54(%rsp), %eax addq $0x58, %rsp retq movq 0x28(%rsp), %rdi callq 0x2420 nopw %cs:(%rax,%rax)
_ZN12LefDefParser18lefGetDoubleDefineEPKcPd: sub rsp, 58h mov [rsp+58h+var_10], rdi mov [rsp+58h+var_18], rsi lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData mov rax, [rax] add rax, 1688h mov [rsp+58h+var_58], rax mov rsi, [rsp+58h+var_10]; char * lea rdi, [rsp+58h+var_28]; this mov [rsp+58h+var_50], rdi call _ZN12LefDefParser10strip_caseEPKc; LefDefParser::strip_case(char const*) mov rdi, [rsp+58h+var_58] mov rsi, [rsp+58h+var_50] call _ZNSt3mapISsdN12LefDefParser17lefCompareStringsESaISt4pairIKSsdEEE4findERS3_; std::map<std::string,double,LefDefParser::lefCompareStrings,std::allocator<std::pair<std::string const,double>>>::find(std::string const&) mov [rsp+58h+var_48], rax jmp short $+2 loc_3A65B: mov rax, [rsp+58h+var_48] mov [rsp+58h+var_20], rax lea rdi, [rsp+58h+var_28]; this call __ZNSsD1Ev; std::string::~string() lea rax, _ZN12LefDefParser7lefDataE; LefDefParser::lefData mov rdi, [rax] add rdi, 1688h call _ZNSt3mapISsdN12LefDefParser17lefCompareStringsESaISt4pairIKSsdEEE3endEv; std::map<std::string,double,LefDefParser::lefCompareStrings,std::allocator<std::pair<std::string const,double>>>::end(void) mov [rsp+58h+var_40], rax lea rdi, [rsp+58h+var_20] lea rsi, [rsp+58h+var_40] call _ZStneRKSt17_Rb_tree_iteratorISt4pairIKSsdEES5_; std::operator!=(std::_Rb_tree_iterator<std::pair<std::string const,double>> const&,std::_Rb_tree_iterator<std::pair<std::string const,double>> const&) test al, 1 jnz short loc_3A69F jmp short loc_3A6DB loc_3A69F: lea rdi, [rsp+58h+var_20] call _ZNKSt17_Rb_tree_iteratorISt4pairIKSsdEEptEv; std::_Rb_tree_iterator<std::pair<std::string const,double>>::operator->(void) movsd xmm0, qword ptr [rax+8] mov rax, [rsp+58h+var_18] movsd qword ptr [rax], xmm0 mov [rsp+58h+var_4], 1 jmp short loc_3A6E3 mov rcx, rax mov eax, edx mov [rsp+arg_20], rcx mov [rsp+arg_1C], eax lea rdi, [rsp+arg_28]; this call __ZNSsD1Ev; std::string::~string() jmp short loc_3A6EC loc_3A6DB: mov [rsp+58h+var_4], 0 loc_3A6E3: mov eax, [rsp+58h+var_4] add rsp, 58h retn loc_3A6EC: mov rdi, [rsp+arg_20] call __Unwind_Resume
long long LefDefParser::lefGetDoubleDefine(LefDefParser *this, char *a2, double *a3) { long long v3; // rax long long v5; // [rsp+0h] [rbp-58h] long long v6[3]; // [rsp+18h] [rbp-40h] BYREF _BYTE v7[8]; // [rsp+30h] [rbp-28h] BYREF long long v8; // [rsp+38h] [rbp-20h] BYREF char *v9; // [rsp+40h] [rbp-18h] char *v10; // [rsp+48h] [rbp-10h] v10 = (char *)this; v9 = a2; v5 = LefDefParser::lefData + 5768LL; LefDefParser::strip_case((LefDefParser *)v7, (const char *)this); v8 = std::map<std::string,double,LefDefParser::lefCompareStrings,std::allocator<std::pair<std::string const,double>>>::find( v5, v7); std::string::~string((std::string *)v7); v6[0] = std::map<std::string,double,LefDefParser::lefCompareStrings,std::allocator<std::pair<std::string const,double>>>::end(LefDefParser::lefData + 5768LL); if ( (std::operator!=(&v8, v6) & 1) != 0 ) { v3 = std::_Rb_tree_iterator<std::pair<std::string const,double>>::operator->(&v8); *(_QWORD *)v9 = *(_QWORD *)(v3 + 8); return 1; } else { return 0; } }
lefGetDoubleDefine: SUB RSP,0x58 MOV qword ptr [RSP + 0x48],RDI MOV qword ptr [RSP + 0x40],RSI LEA RAX,[0x1a2740] MOV RAX,qword ptr [RAX] ADD RAX,0x1688 MOV qword ptr [RSP],RAX MOV RSI,qword ptr [RSP + 0x48] LEA RDI,[RSP + 0x30] MOV qword ptr [RSP + 0x8],RDI CALL 0x00139f40 MOV RDI,qword ptr [RSP] MOV RSI,qword ptr [RSP + 0x8] LAB_0013a64f: CALL 0x0013afa0 LAB_0013a654: MOV qword ptr [RSP + 0x10],RAX JMP 0x0013a65b LAB_0013a65b: MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x38],RAX LEA RDI,[RSP + 0x30] CALL 0x001023d0 LEA RAX,[0x1a2740] MOV RDI,qword ptr [RAX] ADD RDI,0x1688 CALL 0x0013aff0 MOV qword ptr [RSP + 0x18],RAX LEA RDI,[RSP + 0x38] LEA RSI,[RSP + 0x18] CALL 0x0013afd0 TEST AL,0x1 JNZ 0x0013a69f JMP 0x0013a6db LAB_0013a69f: LEA RDI,[RSP + 0x38] CALL 0x0013b020 MOVSD XMM0,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RSP + 0x40] MOVSD qword ptr [RAX],XMM0 MOV dword ptr [RSP + 0x54],0x1 JMP 0x0013a6e3 LAB_0013a6db: MOV dword ptr [RSP + 0x54],0x0 LAB_0013a6e3: MOV EAX,dword ptr [RSP + 0x54] ADD RSP,0x58 RET
/* LefDefParser::lefGetDoubleDefine(char const*, double*) */ bool LefDefParser::lefGetDoubleDefine(char *param_1,double *param_2) { map<std::string,double,LefDefParser::lefCompareStrings,std::allocator<std::pair<std::string_const,double>>> *this; ulong uVar1; long lVar2; bool bVar3; int8 local_40 [3]; LefDefParser local_28 [8]; int8 local_20; double *local_18; char *local_10; this = (map<std::string,double,LefDefParser::lefCompareStrings,std::allocator<std::pair<std::string_const,double>>> *)(lefData + 0x1688); local_18 = param_2; local_10 = param_1; strip_case(local_28,param_1); /* try { // try from 0013a64f to 0013a653 has its CatchHandler @ 0013a6c1 */ local_20 = std:: map<std::string,double,LefDefParser::lefCompareStrings,std::allocator<std::pair<std::string_const,double>>> ::find(this,(string *)local_28); std::string::~string((string *)local_28); local_40[0] = std:: map<std::string,double,LefDefParser::lefCompareStrings,std::allocator<std::pair<std::string_const,double>>> ::end((map<std::string,double,LefDefParser::lefCompareStrings,std::allocator<std::pair<std::string_const,double>>> *)(lefData + 0x1688)); uVar1 = std::operator!=((_Rb_tree_iterator *)&local_20,(_Rb_tree_iterator *)local_40); bVar3 = (uVar1 & 1) != 0; if (bVar3) { lVar2 = std::_Rb_tree_iterator<std::pair<std::string_const,double>>::operator-> ((_Rb_tree_iterator<std::pair<std::string_const,double>> *)&local_20); *local_18 = *(double *)(lVar2 + 8); } return bVar3; }
31,305
ma_print_error
eloqsql/storage/maria/ma_info.c
void _ma_print_error(MARIA_HA *info, int error, my_bool write_to_log) { DBUG_ENTER("_ma_print_error"); DBUG_PRINT("error", ("error: %d log: %d", error, write_to_log)); if (!info->error_count++ || !maria_in_ha_maria || write_to_log) { MARIA_SHARE *share= info->s; _ma_report_error(error, (share->index_file_name.length ? &share->index_file_name : &share->unique_file_name), MYF(write_to_log ? ME_ERROR_LOG : 0)); } DBUG_VOID_RETURN; }
O3
c
ma_print_error: pushq %rbp movq %rsp, %rbp movl 0x628(%rdi), %eax leal 0x1(%rax), %ecx movl %ecx, 0x628(%rdi) testb %dl, %dl jne 0x368fb testl %eax, %eax je 0x368fb leaq 0x3c61a8(%rip), %rax # 0x3fca9c cmpb $0x0, (%rax) je 0x368fb popq %rbp retq xorl %eax, %eax testb %dl, %dl setne %al movq (%rdi), %rcx xorl %edx, %edx cmpq $0x0, 0x5d8(%rcx) setne %dl shll $0x5, %edx addq %rdx, %rcx addq $0x5b0, %rcx # imm = 0x5B0 shll $0x6, %eax movl %esi, %edi movq %rcx, %rsi movq %rax, %rdx popq %rbp jmp 0x36874
_ma_print_error: push rbp mov rbp, rsp mov eax, [rdi+628h] lea ecx, [rax+1] mov [rdi+628h], ecx test dl, dl jnz short loc_368FB test eax, eax jz short loc_368FB lea rax, maria_in_ha_maria cmp byte ptr [rax], 0 jz short loc_368FB pop rbp retn loc_368FB: xor eax, eax test dl, dl setnz al mov rcx, [rdi] xor edx, edx cmp qword ptr [rcx+5D8h], 0 setnz dl shl edx, 5 add rcx, rdx add rcx, 5B0h shl eax, 6 mov edi, esi mov rsi, rcx mov rdx, rax pop rbp jmp _ma_report_error
void * ma_print_error(_DWORD *a1, int a2, char a3, long long a4, long long a5, int a6) { int v6; // eax void *result; // rax _QWORD *v8; // rcx v6 = a1[394]; a1[394] = v6 + 1; if ( a3 || !v6 || (result = &maria_in_ha_maria, !maria_in_ha_maria) ) { v8 = (_QWORD *)(32 * (unsigned int)(*(_QWORD *)(*(_QWORD *)a1 + 1496LL) != 0LL) + *(_QWORD *)a1 + 1456LL); return (void *)ma_report_error(a2, v8, (unsigned __int8)(a3 != 0) << 6, (long long)v8, a5, a6); } return result; }
_ma_print_error: PUSH RBP MOV RBP,RSP MOV EAX,dword ptr [RDI + 0x628] LEA ECX,[RAX + 0x1] MOV dword ptr [RDI + 0x628],ECX TEST DL,DL JNZ 0x001368fb TEST EAX,EAX JZ 0x001368fb LEA RAX,[0x4fca9c] CMP byte ptr [RAX],0x0 JZ 0x001368fb POP RBP RET LAB_001368fb: XOR EAX,EAX TEST DL,DL SETNZ AL MOV RCX,qword ptr [RDI] XOR EDX,EDX CMP qword ptr [RCX + 0x5d8],0x0 SETNZ DL SHL EDX,0x5 ADD RCX,RDX ADD RCX,0x5b0 SHL EAX,0x6 MOV EDI,ESI MOV RSI,RCX MOV RDX,RAX POP RBP JMP 0x00136874
void _ma_print_error(long *param_1,int4 param_2,char param_3) { long lVar1; lVar1 = param_1[0xc5]; *(int *)(param_1 + 0xc5) = (int)lVar1 + 1; if (((param_3 == '\0') && ((int)lVar1 != 0)) && (maria_in_ha_maria != '\0')) { return; } _ma_report_error(param_2,*param_1 + (ulong)(*(long *)(*param_1 + 0x5d8) != 0) * 0x20 + 0x5b0, (ulong)(param_3 != '\0') << 6); return; }
31,306
create_rwlock(PFS_rwlock_class*, void const*)
eloqsql/storage/perfschema/pfs_instr.cc
PFS_rwlock* create_rwlock(PFS_rwlock_class *klass, const void *identity) { PFS_rwlock *pfs; pfs_dirty_state dirty_state; pfs= global_rwlock_container.allocate(& dirty_state); if (pfs != NULL) { pfs->m_identity= identity; pfs->m_class= klass; pfs->m_enabled= klass->m_enabled && flag_global_instrumentation; pfs->m_timed= klass->m_timed; pfs->m_rwlock_stat.reset(); pfs->m_writer= NULL; pfs->m_readers= 0; pfs->m_last_written= 0; pfs->m_last_read= 0; pfs->m_lock.dirty_to_allocated(& dirty_state); if (klass->is_singleton()) klass->m_singleton= pfs; } return pfs; }
O0
cpp
create_rwlock(PFS_rwlock_class*, void const*): pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) leaq 0x11518d9(%rip), %rdi # 0x1e0f540 leaq -0x1c(%rbp), %rsi callq 0xcc2620 movq %rax, -0x18(%rbp) cmpq $0x0, -0x18(%rbp) je 0xcbdd39 movq -0x10(%rbp), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x10(%rax) movq -0x8(%rbp), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x18(%rax) movq -0x8(%rbp), %rcx xorl %eax, %eax testb $0x1, 0x4(%rcx) movb %al, -0x1d(%rbp) je 0xcbdcb2 leaq 0x1147c93(%rip), %rax # 0x1e05940 movb (%rax), %al movb %al, -0x1d(%rbp) movb -0x1d(%rbp), %cl movq -0x18(%rbp), %rax andb $0x1, %cl movb %cl, 0x4(%rax) movq -0x8(%rbp), %rax movb 0x5(%rax), %cl movq -0x18(%rbp), %rax andb $0x1, %cl movb %cl, 0x5(%rax) movq -0x18(%rbp), %rdi addq $0x20, %rdi callq 0xcc29d0 movq -0x18(%rbp), %rax movq $0x0, 0x40(%rax) movq -0x18(%rbp), %rax movl $0x0, 0x48(%rax) movq -0x18(%rbp), %rax movq $0x0, 0x50(%rax) movq -0x18(%rbp), %rax movq $0x0, 0x58(%rax) movq -0x18(%rbp), %rdi leaq -0x1c(%rbp), %rsi callq 0xcb0e60 movq -0x8(%rbp), %rdi callq 0xcc25b0 testb $0x1, %al jne 0xcbdd28 jmp 0xcbdd37 movq -0x18(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0xc0(%rax) jmp 0xcbdd39 movq -0x18(%rbp), %rax addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_Z13create_rwlockP16PFS_rwlock_classPKv: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_10], rsi lea rdi, global_rwlock_container lea rsi, [rbp+var_1C] call _ZN29PFS_buffer_scalable_containerI10PFS_rwlockLi1024ELi1024E24PFS_buffer_default_arrayIS0_E28PFS_buffer_default_allocatorIS0_EE8allocateEP15pfs_dirty_state; PFS_buffer_scalable_container<PFS_rwlock,1024,1024,PFS_buffer_default_array<PFS_rwlock>,PFS_buffer_default_allocator<PFS_rwlock>>::allocate(pfs_dirty_state *) mov [rbp+var_18], rax cmp [rbp+var_18], 0 jz loc_CBDD39 mov rcx, [rbp+var_10] mov rax, [rbp+var_18] mov [rax+10h], rcx mov rcx, [rbp+var_8] mov rax, [rbp+var_18] mov [rax+18h], rcx mov rcx, [rbp+var_8] xor eax, eax test byte ptr [rcx+4], 1 mov [rbp+var_1D], al jz short loc_CBDCB2 lea rax, flag_global_instrumentation mov al, [rax] mov [rbp+var_1D], al loc_CBDCB2: mov cl, [rbp+var_1D] mov rax, [rbp+var_18] and cl, 1 mov [rax+4], cl mov rax, [rbp+var_8] mov cl, [rax+5] mov rax, [rbp+var_18] and cl, 1 mov [rax+5], cl mov rdi, [rbp+var_18] add rdi, 20h ; ' '; this call _ZN15PFS_rwlock_stat5resetEv; PFS_rwlock_stat::reset(void) mov rax, [rbp+var_18] mov qword ptr [rax+40h], 0 mov rax, [rbp+var_18] mov dword ptr [rax+48h], 0 mov rax, [rbp+var_18] mov qword ptr [rax+50h], 0 mov rax, [rbp+var_18] mov qword ptr [rax+58h], 0 mov rdi, [rbp+var_18] lea rsi, [rbp+var_1C] call _ZN8pfs_lock18dirty_to_allocatedEPK15pfs_dirty_state; pfs_lock::dirty_to_allocated(pfs_dirty_state const*) mov rdi, [rbp+var_8]; this call _ZNK15PFS_instr_class12is_singletonEv; PFS_instr_class::is_singleton(void) test al, 1 jnz short loc_CBDD28 jmp short loc_CBDD37 loc_CBDD28: mov rcx, [rbp+var_18] mov rax, [rbp+var_8] mov [rax+0C0h], rcx loc_CBDD37: jmp short $+2 loc_CBDD39: mov rax, [rbp+var_18] add rsp, 20h pop rbp retn
PFS_atomic * create_rwlock(PFS_instr_class *a1, long long a2) { unsigned int v2; // edx char v4; // [rsp+3h] [rbp-1Dh] int v5; // [rsp+4h] [rbp-1Ch] BYREF PFS_atomic *v6; // [rsp+8h] [rbp-18h] long long v7; // [rsp+10h] [rbp-10h] PFS_instr_class *v8; // [rsp+18h] [rbp-8h] v8 = a1; v7 = a2; v6 = (PFS_atomic *)PFS_buffer_scalable_container<PFS_rwlock,1024,1024,PFS_buffer_default_array<PFS_rwlock>,PFS_buffer_default_allocator<PFS_rwlock>>::allocate( &global_rwlock_container, &v5); if ( v6 ) { *((_QWORD *)v6 + 2) = v7; *((_QWORD *)v6 + 3) = v8; v4 = 0; if ( (*((_BYTE *)v8 + 4) & 1) != 0 ) v4 = flag_global_instrumentation; *((_BYTE *)v6 + 4) = v4 & 1; *((_BYTE *)v6 + 5) = *((_BYTE *)v8 + 5) & 1; PFS_rwlock_stat::reset((PFS_atomic *)((char *)v6 + 32)); *((_QWORD *)v6 + 8) = 0LL; *((_DWORD *)v6 + 18) = 0; *((_QWORD *)v6 + 10) = 0LL; *((_QWORD *)v6 + 11) = 0LL; pfs_lock::dirty_to_allocated(v6, &v5, v2); if ( (PFS_instr_class::is_singleton(v8) & 1) != 0 ) *((_QWORD *)v8 + 24) = v6; } return v6; }
_mi_delete_dynamic_record: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RDI,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RAX + 0x170] XOR EDX,EDX CALL 0x00cbdc80 ADD RSP,0x10 POP RBP RET
void _mi_delete_dynamic_record(long param_1) { delete_dynamic_record(param_1,*(int8 *)(param_1 + 0x170),0); return; }
31,307
mysql_real_query
eloqsql/libmariadb/libmariadb/mariadb_lib.c
int STDCALL mysql_real_query(MYSQL *mysql, const char *query, unsigned long length) { my_bool skip_result= OPT_EXT_VAL(mysql, multi_command); if (length == (unsigned long)-1) length= (unsigned long)strlen(query); free_old_query(mysql); if (ma_simple_command(mysql, COM_QUERY,query,length,1,0)) return(-1); if (!skip_result && !mysql->options.extension->skip_read_response) return(mysql->methods->db_read_query_result(mysql)); return(0); }
O3
c
mysql_real_query: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %rbx movq 0x480(%rdi), %rax testq %rax, %rax je 0x8a5f6 cmpb $0x0, 0xa8(%rax) setne %r13b jmp 0x8a5f9 xorl %r13d, %r13d cmpq $-0x1, %r15 jne 0x8a60a movq %r14, %rdi callq 0x39400 movq %rax, %r15 movq %rbx, %rdi callq 0x8b1a6 movq 0x4d0(%rbx), %rax xorl %r12d, %r12d movq %rbx, %rdi movl $0x3, %esi movq %r14, %rdx movq %r15, %rcx movl $0x1, %r8d xorl %r9d, %r9d callq *0x10(%rax) xorl %ecx, %ecx testl %eax, %eax setne %al orb %al, %r13b testb $0x1, %r13b je 0x8a64f movb %al, %cl negl %ecx movl %ecx, %r12d jmp 0x8a65f movq 0x480(%rbx), %rax cmpb $0x0, 0x148(%rax) je 0x8a671 movl %r12d, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq 0x4d0(%rbx), %rax movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmpq *0x20(%rax)
mysql_real_query: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r15, rdx mov r14, rsi mov rbx, rdi mov rax, [rdi+480h] test rax, rax jz short loc_8A5F6 cmp byte ptr [rax+0A8h], 0 setnz r13b jmp short loc_8A5F9 loc_8A5F6: xor r13d, r13d loc_8A5F9: cmp r15, 0FFFFFFFFFFFFFFFFh jnz short loc_8A60A mov rdi, r14 call _strlen mov r15, rax loc_8A60A: mov rdi, rbx call free_old_query mov rax, [rbx+4D0h] xor r12d, r12d mov rdi, rbx mov esi, 3 mov rdx, r14 mov rcx, r15 mov r8d, 1 xor r9d, r9d call qword ptr [rax+10h] xor ecx, ecx test eax, eax setnz al or r13b, al test r13b, 1 jz short loc_8A64F mov cl, al neg ecx mov r12d, ecx jmp short loc_8A65F loc_8A64F: mov rax, [rbx+480h] cmp byte ptr [rax+148h], 0 jz short loc_8A671 loc_8A65F: mov eax, r12d add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_8A671: mov rax, [rbx+4D0h] mov rdi, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp qword ptr [rax+20h]
long long mysql_real_query(long long a1, long long a2, long long a3) { long long v3; // rax long long v4; // r15 long long v5; // rax bool v6; // r13 unsigned int v7; // r12d int v8; // eax long long v9; // rdx int v10; // ecx bool v11; // al long long v13; // [rsp-8h] [rbp-30h] v13 = v3; v4 = a3; v5 = *(_QWORD *)(a1 + 1152); if ( v5 ) v6 = *(_BYTE *)(v5 + 168) != 0; else v6 = 0; if ( a3 == -1 ) v4 = strlen(a2); free_old_query(a1); v7 = 0; v8 = (*(long long ( **)(long long, long long, long long, long long, long long, _QWORD, long long))(*(_QWORD *)(a1 + 1232) + 16LL))( a1, 3LL, a2, v4, 1LL, 0LL, v13); v10 = 0; v11 = v8 != 0; if ( v11 || v6 ) { LOBYTE(v10) = v11; return (unsigned int)-v10; } if ( *(_BYTE *)(*(_QWORD *)(a1 + 1152) + 328LL) ) return v7; return (*(long long ( **)(long long, long long, long long, _QWORD))(*(_QWORD *)(a1 + 1232) + 32LL))( a1, 3LL, v9, 0LL); }
mysql_real_query: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R15,RDX MOV R14,RSI MOV RBX,RDI MOV RAX,qword ptr [RDI + 0x480] TEST RAX,RAX JZ 0x0018a5f6 CMP byte ptr [RAX + 0xa8],0x0 SETNZ R13B JMP 0x0018a5f9 LAB_0018a5f6: XOR R13D,R13D LAB_0018a5f9: CMP R15,-0x1 JNZ 0x0018a60a MOV RDI,R14 CALL 0x00139400 MOV R15,RAX LAB_0018a60a: MOV RDI,RBX CALL 0x0018b1a6 MOV RAX,qword ptr [RBX + 0x4d0] XOR R12D,R12D MOV RDI,RBX MOV ESI,0x3 MOV RDX,R14 MOV RCX,R15 MOV R8D,0x1 XOR R9D,R9D CALL qword ptr [RAX + 0x10] XOR ECX,ECX TEST EAX,EAX SETNZ AL OR R13B,AL TEST R13B,0x1 JZ 0x0018a64f MOV CL,AL NEG ECX MOV R12D,ECX JMP 0x0018a65f LAB_0018a64f: MOV RAX,qword ptr [RBX + 0x480] CMP byte ptr [RAX + 0x148],0x0 JZ 0x0018a671 LAB_0018a65f: MOV EAX,R12D ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0018a671: MOV RAX,qword ptr [RBX + 0x4d0] MOV RDI,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP qword ptr [RAX + 0x20]
ulong mysql_real_query(long param_1,char *param_2,size_t param_3) { int iVar1; ulong uVar2; uint uVar3; bool bVar4; if (*(long *)(param_1 + 0x480) == 0) { bVar4 = false; } else { bVar4 = *(char *)(*(long *)(param_1 + 0x480) + 0xa8) != '\0'; } if (param_3 == 0xffffffffffffffff) { param_3 = strlen(param_2); } free_old_query(param_1); uVar3 = 0; iVar1 = (**(code **)(*(long *)(param_1 + 0x4d0) + 0x10))(param_1,3,param_2,param_3,1,0); if (bVar4 || iVar1 != 0) { uVar3 = -(uint)(iVar1 != 0); } else if (*(char *)(*(long *)(param_1 + 0x480) + 0x148) == '\0') { /* WARNING: Could not recover jumptable at 0x0018a689. Too many branches */ /* WARNING: Treating indirect jump as call */ uVar2 = (**(code **)(*(long *)(param_1 + 0x4d0) + 0x20))(param_1); return uVar2; } return (ulong)uVar3; }
31,308
js_parse_from_clause
bluesky950520[P]quickjs/quickjs.c
static __exception JSAtom js_parse_from_clause(JSParseState *s) { JSAtom module_name; if (!token_is_pseudo_keyword(s, JS_ATOM_from)) { js_parse_error(s, "from clause expected"); return JS_ATOM_NULL; } if (next_token(s)) return JS_ATOM_NULL; if (s->token.val != TOK_STRING) { js_parse_error(s, "string expected"); return JS_ATOM_NULL; } module_name = JS_ValueToAtom(s->ctx, s->token.u.str.str); if (module_name == JS_ATOM_NULL) return JS_ATOM_NULL; if (next_token(s)) { JS_FreeAtom(s->ctx, module_name); return JS_ATOM_NULL; } return module_name; }
O0
c
js_parse_from_clause: subq $0x18, %rsp movq %rdi, 0x8(%rsp) movq 0x8(%rsp), %rdi movl $0x7b, %esi callq 0xa5bf0 cmpl $0x0, %eax jne 0xb766d movq 0x8(%rsp), %rdi leaq 0x5eecf(%rip), %rsi # 0x116528 movb $0x0, %al callq 0x4e980 movl $0x0, 0x14(%rsp) jmp 0xb7712 movq 0x8(%rsp), %rdi callq 0xa32b0 cmpl $0x0, %eax je 0xb7689 movl $0x0, 0x14(%rsp) jmp 0xb7712 movq 0x8(%rsp), %rax cmpl $-0x7f, 0x20(%rax) je 0xb76b1 movq 0x8(%rsp), %rdi leaq 0x5d02a(%rip), %rsi # 0x1146ca movb $0x0, %al callq 0x4e980 movl $0x0, 0x14(%rsp) jmp 0xb7712 movq 0x8(%rsp), %rax movq (%rax), %rdi movq 0x8(%rsp), %rax movq 0x38(%rax), %rsi movq 0x40(%rax), %rdx callq 0x374f0 movl %eax, 0x4(%rsp) cmpl $0x0, 0x4(%rsp) jne 0xb76e0 movl $0x0, 0x14(%rsp) jmp 0xb7712 movq 0x8(%rsp), %rdi callq 0xa32b0 cmpl $0x0, %eax je 0xb770a movq 0x8(%rsp), %rax movq (%rax), %rdi movl 0x4(%rsp), %esi callq 0x2f330 movl $0x0, 0x14(%rsp) jmp 0xb7712 movl 0x4(%rsp), %eax movl %eax, 0x14(%rsp) movl 0x14(%rsp), %eax addq $0x18, %rsp retq nopl (%rax,%rax)
js_parse_from_clause: sub rsp, 18h mov [rsp+18h+var_10], rdi mov rdi, [rsp+18h+var_10] mov esi, 7Bh ; '{' call token_is_pseudo_keyword cmp eax, 0 jnz short loc_B766D mov rdi, [rsp+18h+var_10] lea rsi, aFromClauseExpe; "from clause expected" mov al, 0 call js_parse_error mov [rsp+18h+var_4], 0 jmp loc_B7712 loc_B766D: mov rdi, [rsp+18h+var_10] call next_token cmp eax, 0 jz short loc_B7689 mov [rsp+18h+var_4], 0 jmp loc_B7712 loc_B7689: mov rax, [rsp+18h+var_10] cmp dword ptr [rax+20h], 0FFFFFF81h jz short loc_B76B1 mov rdi, [rsp+18h+var_10] lea rsi, aStringExpected; "string expected" mov al, 0 call js_parse_error mov [rsp+18h+var_4], 0 jmp short loc_B7712 loc_B76B1: mov rax, [rsp+18h+var_10] mov rdi, [rax] mov rax, [rsp+18h+var_10] mov rsi, [rax+38h] mov rdx, [rax+40h] call JS_ValueToAtom mov [rsp+18h+var_14], eax cmp [rsp+18h+var_14], 0 jnz short loc_B76E0 mov [rsp+18h+var_4], 0 jmp short loc_B7712 loc_B76E0: mov rdi, [rsp+18h+var_10] call next_token cmp eax, 0 jz short loc_B770A mov rax, [rsp+18h+var_10] mov rdi, [rax] mov esi, [rsp+18h+var_14] call JS_FreeAtom mov [rsp+18h+var_4], 0 jmp short loc_B7712 loc_B770A: mov eax, [rsp+18h+var_14] mov [rsp+18h+var_4], eax loc_B7712: mov eax, [rsp+18h+var_4] add rsp, 18h retn
long long js_parse_from_clause( long long a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, double a6, double a7, __m128 a8, __m128 a9) { long long v9; // rdx long long v10; // rcx long long v11; // r8 long long v12; // r9 __m128 v13; // xmm4 __m128 v14; // xmm5 long long v15; // rdx long long v16; // rcx long long v17; // r8 long long v18; // r9 __m128 v19; // xmm4 __m128 v20; // xmm5 double v21; // xmm4_8 double v22; // xmm5_8 char v24; // [rsp+0h] [rbp-18h] unsigned int v25; // [rsp+4h] [rbp-14h] if ( (unsigned int)token_is_pseudo_keyword((_DWORD *)a1, 123) ) { if ( (unsigned int)next_token( (long long *)a1, a2, a3, a4, a5, *(double *)v13.m128_u64, *(double *)v14.m128_u64, a8, a9) ) { return 0; } else if ( *(_DWORD *)(a1 + 32) == -127 ) { v25 = JS_ValueToAtom(*(_QWORD *)a1, *(_QWORD *)(a1 + 56), *(_QWORD *)(a1 + 64)); if ( v25 ) { if ( (unsigned int)next_token((long long *)a1, a2, a3, a4, a5, v21, v22, a8, a9) ) { JS_FreeAtom(*(_QWORD *)a1, v25); return 0; } else { return v25; } } else { return 0; } } else { js_parse_error( (_QWORD *)a1, (long long)"string expected", v15, v16, v17, v18, a2, a3, a4, a5, v19, v20, a8, a9, v24); return 0; } } else { js_parse_error( (_QWORD *)a1, (long long)"from clause expected", v9, v10, v11, v12, a2, a3, a4, a5, v13, v14, a8, a9, v24); return 0; } }
js_parse_from_clause: SUB RSP,0x18 MOV qword ptr [RSP + 0x8],RDI MOV RDI,qword ptr [RSP + 0x8] MOV ESI,0x7b CALL 0x001a5bf0 CMP EAX,0x0 JNZ 0x001b766d MOV RDI,qword ptr [RSP + 0x8] LEA RSI,[0x216528] MOV AL,0x0 CALL 0x0014e980 MOV dword ptr [RSP + 0x14],0x0 JMP 0x001b7712 LAB_001b766d: MOV RDI,qword ptr [RSP + 0x8] CALL 0x001a32b0 CMP EAX,0x0 JZ 0x001b7689 MOV dword ptr [RSP + 0x14],0x0 JMP 0x001b7712 LAB_001b7689: MOV RAX,qword ptr [RSP + 0x8] CMP dword ptr [RAX + 0x20],-0x7f JZ 0x001b76b1 MOV RDI,qword ptr [RSP + 0x8] LEA RSI,[0x2146ca] MOV AL,0x0 CALL 0x0014e980 MOV dword ptr [RSP + 0x14],0x0 JMP 0x001b7712 LAB_001b76b1: MOV RAX,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RAX + 0x38] MOV RDX,qword ptr [RAX + 0x40] CALL 0x001374f0 MOV dword ptr [RSP + 0x4],EAX CMP dword ptr [RSP + 0x4],0x0 JNZ 0x001b76e0 MOV dword ptr [RSP + 0x14],0x0 JMP 0x001b7712 LAB_001b76e0: MOV RDI,qword ptr [RSP + 0x8] CALL 0x001a32b0 CMP EAX,0x0 JZ 0x001b770a MOV RAX,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RAX] MOV ESI,dword ptr [RSP + 0x4] CALL 0x0012f330 MOV dword ptr [RSP + 0x14],0x0 JMP 0x001b7712 LAB_001b770a: MOV EAX,dword ptr [RSP + 0x4] MOV dword ptr [RSP + 0x14],EAX LAB_001b7712: MOV EAX,dword ptr [RSP + 0x14] ADD RSP,0x18 RET
int js_parse_from_clause(int8 *param_1) { int iVar1; int local_4; iVar1 = token_is_pseudo_keyword(param_1,0x7b); if (iVar1 == 0) { js_parse_error(param_1,"from clause expected"); local_4 = 0; } else { iVar1 = next_token(param_1); if (iVar1 == 0) { if (*(int *)(param_1 + 4) == -0x7f) { local_4 = JS_ValueToAtom(*param_1,param_1[7],param_1[8]); if (local_4 == 0) { local_4 = 0; } else { iVar1 = next_token(param_1); if (iVar1 != 0) { JS_FreeAtom(*param_1,local_4); local_4 = 0; } } } else { js_parse_error(param_1,"string expected"); local_4 = 0; } } else { local_4 = 0; } } return local_4; }
31,309
js_parse_from_clause
bluesky950520[P]quickjs/quickjs.c
static __exception JSAtom js_parse_from_clause(JSParseState *s) { JSAtom module_name; if (!token_is_pseudo_keyword(s, JS_ATOM_from)) { js_parse_error(s, "from clause expected"); return JS_ATOM_NULL; } if (next_token(s)) return JS_ATOM_NULL; if (s->token.val != TOK_STRING) { js_parse_error(s, "string expected"); return JS_ATOM_NULL; } module_name = JS_ValueToAtom(s->ctx, s->token.u.str.str); if (module_name == JS_ATOM_NULL) return JS_ATOM_NULL; if (next_token(s)) { JS_FreeAtom(s->ctx, module_name); return JS_ATOM_NULL; } return module_name; }
O2
c
js_parse_from_clause: pushq %rbp pushq %r14 pushq %rbx movq %rdi, %r14 pushq $0x7b popq %rsi callq 0x556da testl %eax, %eax je 0x5f4e7 movq %r14, %rdi callq 0x535fe xorl %ebx, %ebx testl %eax, %eax jne 0x5f503 cmpl $-0x7f, 0x20(%r14) jne 0x5f4f0 movq (%r14), %rdi movq 0x38(%r14), %rsi movq 0x40(%r14), %rdx callq 0x21c6c testl %eax, %eax je 0x5f503 movl %eax, %ebp movq %r14, %rdi callq 0x535fe testl %eax, %eax je 0x5f50a movq (%r14), %rdi movl %ebp, %esi callq 0x1e545 jmp 0x5f503 leaq 0x2bf88(%rip), %rsi # 0x8b476 jmp 0x5f4f7 leaq 0x2a137(%rip), %rsi # 0x8962e xorl %ebx, %ebx movq %r14, %rdi xorl %eax, %eax callq 0x2c007 movl %ebx, %eax popq %rbx popq %r14 popq %rbp retq movl %ebp, %ebx jmp 0x5f503
js_parse_from_clause: push rbp push r14 push rbx mov r14, rdi push 7Bh ; '{' pop rsi call token_is_pseudo_keyword test eax, eax jz short loc_5F4E7 mov rdi, r14 call next_token xor ebx, ebx test eax, eax jnz short loc_5F503 cmp dword ptr [r14+20h], 0FFFFFF81h jnz short loc_5F4F0 mov rdi, [r14] mov rsi, [r14+38h] mov rdx, [r14+40h] call JS_ValueToAtom test eax, eax jz short loc_5F503 mov ebp, eax mov rdi, r14 call next_token test eax, eax jz short loc_5F50A mov rdi, [r14] mov esi, ebp call JS_FreeAtom jmp short loc_5F503 loc_5F4E7: lea rsi, aFromClauseExpe; "from clause expected" jmp short loc_5F4F7 loc_5F4F0: lea rsi, aStringExpected; "string expected" loc_5F4F7: xor ebx, ebx mov rdi, r14 xor eax, eax call js_parse_error loc_5F503: mov eax, ebx pop rbx pop r14 pop rbp retn loc_5F50A: mov ebx, ebp jmp short loc_5F503
long long js_parse_from_clause( long long a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, double a6, double a7, __m128 a8, __m128 a9) { long long v9; // rdx long long v10; // rcx long long v11; // r8 long long v12; // r9 __m128 v13; // xmm4 __m128 v14; // xmm5 unsigned int v15; // ebx long long v16; // rsi unsigned int v17; // eax long long v18; // rdx long long v19; // rcx long long v20; // r8 long long v21; // r9 __m128 v22; // xmm4 __m128 v23; // xmm5 unsigned int v24; // ebp const char *v25; // rsi char v27; // [rsp+0h] [rbp-18h] if ( !token_is_pseudo_keyword((_DWORD *)a1, 123) ) { v25 = "from clause expected"; LABEL_9: v15 = 0; js_parse_error((long long *)a1, (long long)v25, v9, v10, v11, v12, a2, a3, a4, a5, v13, v14, a8, a9, v27); return v15; } v15 = 0; if ( (unsigned int)next_token(a1, 123LL, v9, a2, a3, a4, a5, v13, v14, a8, a9, v10, v11, v12) ) return v15; if ( *(_DWORD *)(a1 + 32) != -127 ) { v25 = "string expected"; goto LABEL_9; } v16 = *(_QWORD *)(a1 + 56); v17 = JS_ValueToAtom(*(_QWORD *)a1, v16, *(_QWORD *)(a1 + 64)); if ( v17 ) { v24 = v17; if ( (unsigned int)next_token(a1, v16, v18, a2, a3, a4, a5, v22, v23, a8, a9, v19, v20, v21) ) JS_FreeAtom(*(_QWORD *)a1, v24); else return v24; } return v15; }
js_parse_from_clause: PUSH RBP PUSH R14 PUSH RBX MOV R14,RDI PUSH 0x7b POP RSI CALL 0x001556da TEST EAX,EAX JZ 0x0015f4e7 MOV RDI,R14 CALL 0x001535fe XOR EBX,EBX TEST EAX,EAX JNZ 0x0015f503 CMP dword ptr [R14 + 0x20],-0x7f JNZ 0x0015f4f0 MOV RDI,qword ptr [R14] MOV RSI,qword ptr [R14 + 0x38] MOV RDX,qword ptr [R14 + 0x40] CALL 0x00121c6c TEST EAX,EAX JZ 0x0015f503 MOV EBP,EAX MOV RDI,R14 CALL 0x001535fe TEST EAX,EAX JZ 0x0015f50a MOV RDI,qword ptr [R14] MOV ESI,EBP CALL 0x0011e545 JMP 0x0015f503 LAB_0015f4e7: LEA RSI,[0x18b476] JMP 0x0015f4f7 LAB_0015f4f0: LEA RSI,[0x18962e] LAB_0015f4f7: XOR EBX,EBX MOV RDI,R14 XOR EAX,EAX CALL 0x0012c007 LAB_0015f503: MOV EAX,EBX POP RBX POP R14 POP RBP RET LAB_0015f50a: MOV EBX,EBP JMP 0x0015f503
int js_parse_from_clause(int8 *param_1) { int iVar1; int iVar2; char *pcVar3; iVar1 = token_is_pseudo_keyword(param_1,0x7b); if (iVar1 == 0) { pcVar3 = "from clause expected"; } else { iVar1 = next_token(param_1); if (iVar1 != 0) { return 0; } if (*(int *)(param_1 + 4) == -0x7f) { iVar1 = JS_ValueToAtom(*param_1,param_1[7],param_1[8]); if (iVar1 == 0) { return 0; } iVar2 = next_token(param_1); if (iVar2 == 0) { return iVar1; } JS_FreeAtom(*param_1,iVar1); return 0; } pcVar3 = "string expected"; } js_parse_error(param_1,pcVar3); return 0; }
31,310
gguf_set_arr_data
7CodeWizard[P]stablediffusion/ggml/src/ggml.c
void gguf_set_arr_data(struct gguf_context * ctx, const char * key, enum gguf_type type, const void * data, int n) { const int idx = gguf_get_or_add_key(ctx, key); ctx->kv[idx].type = GGUF_TYPE_ARRAY; ctx->kv[idx].value.arr.type = type; ctx->kv[idx].value.arr.n = n; ctx->kv[idx].value.arr.data = malloc(n*GGUF_TYPE_SIZE[type]); memcpy(ctx->kv[idx].value.arr.data, data, n*GGUF_TYPE_SIZE[type]); }
O1
c
gguf_set_arr_data: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %r8d, %ebp movq %rcx, %rbx movl %edx, %r14d movq %rdi, %r15 callq 0x9def5 movq 0x18(%r15), %rcx cltq shlq $0x4, %rax leaq (%rax,%rax,2), %r13 movl $0x9, 0x10(%rcx,%r13) movl %r14d, 0x18(%rcx,%r13) movslq %ebp, %r12 movq 0x18(%r15), %rax movq %r12, 0x20(%rax,%r13) movl %r14d, %eax leaq 0x2764b(%rip), %rcx # 0xc5850 imulq (%rcx,%rax,8), %r12 movq %r12, %rdi callq 0xa7c0 movq 0x18(%r15), %rcx movq %rax, 0x28(%rcx,%r13) movq 0x18(%r15), %rax movq 0x28(%rax,%r13), %rdi movq %rbx, %rsi movq %r12, %rdx addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0xa4c0
gguf_set_arr_data: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov ebp, r8d mov rbx, rcx mov r14d, edx mov r15, rdi call gguf_get_or_add_key mov rcx, [r15+18h] cdqe shl rax, 4 lea r13, [rax+rax*2] mov dword ptr [rcx+r13+10h], 9 mov [rcx+r13+18h], r14d movsxd r12, ebp mov rax, [r15+18h] mov [rax+r13+20h], r12 mov eax, r14d lea rcx, GGUF_TYPE_SIZE imul r12, [rcx+rax*8] mov rdi, r12 call _malloc mov rcx, [r15+18h] mov [rcx+r13+28h], rax mov rax, [r15+18h] mov rdi, [rax+r13+28h] mov rsi, rbx mov rdx, r12 add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp _memcpy
long long gguf_set_arr_data(long long a1, long long a2, int a3, long long a4, int a5) { int v8; // eax long long v9; // rcx long long v10; // r13 long long v11; // r12 v8 = gguf_get_or_add_key(a1, a2); v9 = *(_QWORD *)(a1 + 24); v10 = 48LL * v8; *(_DWORD *)(v9 + v10 + 16) = 9; *(_DWORD *)(v9 + v10 + 24) = a3; *(_QWORD *)(*(_QWORD *)(a1 + 24) + v10 + 32) = a5; v11 = GGUF_TYPE_SIZE[a3] * a5; *(_QWORD *)(*(_QWORD *)(a1 + 24) + v10 + 40) = malloc(v11); return memcpy(*(_QWORD *)(*(_QWORD *)(a1 + 24) + v10 + 40), a4, v11); }
31,311
gguf_set_arr_data
7CodeWizard[P]stablediffusion/ggml/src/ggml.c
void gguf_set_arr_data(struct gguf_context * ctx, const char * key, enum gguf_type type, const void * data, int n) { const int idx = gguf_get_or_add_key(ctx, key); ctx->kv[idx].type = GGUF_TYPE_ARRAY; ctx->kv[idx].value.arr.type = type; ctx->kv[idx].value.arr.n = n; ctx->kv[idx].value.arr.data = malloc(n*GGUF_TYPE_SIZE[type]); memcpy(ctx->kv[idx].value.arr.data, data, n*GGUF_TYPE_SIZE[type]); }
O2
c
gguf_set_arr_data: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %r8d, %ebp movq %rcx, %rbx movl %edx, %r14d movq %rdi, %r15 callq 0x78294 movq 0x18(%r15), %rcx cltq imulq $0x30, %rax, %r13 movl $0x9, 0x10(%rcx,%r13) movl %r14d, 0x18(%rcx,%r13) movslq %ebp, %r12 movq 0x18(%r15), %rax movq %r12, 0x20(%rax,%r13) movl %r14d, %eax leaq 0x29074(%rip), %rcx # 0xa15e0 imulq (%rcx,%rax,8), %r12 movq %r12, %rdi callq 0xa7e0 movq 0x18(%r15), %rcx movq %rax, 0x28(%rcx,%r13) movq 0x18(%r15), %rax movq 0x28(%rax,%r13), %rdi movq %rbx, %rsi movq %r12, %rdx addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0xa4c0
gguf_set_arr_data: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov ebp, r8d mov rbx, rcx mov r14d, edx mov r15, rdi call gguf_get_or_add_key mov rcx, [r15+18h] cdqe imul r13, rax, 30h ; '0' mov dword ptr [rcx+r13+10h], 9 mov [rcx+r13+18h], r14d movsxd r12, ebp mov rax, [r15+18h] mov [rax+r13+20h], r12 mov eax, r14d lea rcx, GGUF_TYPE_SIZE imul r12, [rcx+rax*8] mov rdi, r12 call _malloc mov rcx, [r15+18h] mov [rcx+r13+28h], rax mov rax, [r15+18h] mov rdi, [rax+r13+28h] mov rsi, rbx mov rdx, r12 add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp _memcpy
long long gguf_set_arr_data(long long a1, long long a2, int a3, long long a4, int a5) { int v8; // eax long long v9; // rcx long long v10; // r13 long long v11; // r12 v8 = gguf_get_or_add_key(a1, a2); v9 = *(_QWORD *)(a1 + 24); v10 = 48LL * v8; *(_DWORD *)(v9 + v10 + 16) = 9; *(_DWORD *)(v9 + v10 + 24) = a3; *(_QWORD *)(*(_QWORD *)(a1 + 24) + v10 + 32) = a5; v11 = GGUF_TYPE_SIZE[a3] * a5; *(_QWORD *)(*(_QWORD *)(a1 + 24) + v10 + 40) = malloc(v11); return memcpy(*(_QWORD *)(*(_QWORD *)(a1 + 24) + v10 + 40), a4, v11); }
gguf_set_arr_data: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV EBP,R8D MOV RBX,RCX MOV R14D,EDX MOV R15,RDI CALL 0x00178294 MOV RCX,qword ptr [R15 + 0x18] CDQE IMUL R13,RAX,0x30 MOV dword ptr [RCX + R13*0x1 + 0x10],0x9 MOV dword ptr [RCX + R13*0x1 + 0x18],R14D MOVSXD R12,EBP MOV RAX,qword ptr [R15 + 0x18] MOV qword ptr [RAX + R13*0x1 + 0x20],R12 MOV EAX,R14D LEA RCX,[0x1a15e0] IMUL R12,qword ptr [RCX + RAX*0x8] MOV RDI,R12 CALL 0x0010a7e0 MOV RCX,qword ptr [R15 + 0x18] MOV qword ptr [RCX + R13*0x1 + 0x28],RAX MOV RAX,qword ptr [R15 + 0x18] MOV RDI,qword ptr [RAX + R13*0x1 + 0x28] MOV RSI,RBX MOV RDX,R12 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x0010a4c0
void gguf_set_arr_data(long param_1,int8 param_2,uint param_3,void *param_4,int param_5) { long lVar1; int iVar2; void *pvVar3; size_t __size; long lVar4; iVar2 = gguf_get_or_add_key(); lVar1 = *(long *)(param_1 + 0x18); lVar4 = (long)iVar2 * 0x30; *(int4 *)(lVar1 + 0x10 + lVar4) = 9; *(uint *)(lVar1 + 0x18 + lVar4) = param_3; *(long *)(*(long *)(param_1 + 0x18) + 0x20 + lVar4) = (long)param_5; __size = (long)param_5 * *(long *)(GGUF_TYPE_SIZE + (ulong)param_3 * 8); pvVar3 = malloc(__size); *(void **)(*(long *)(param_1 + 0x18) + 0x28 + lVar4) = pvVar3; memcpy(*(void **)(*(long *)(param_1 + 0x18) + 0x28 + lVar4),param_4,__size); return; }
31,312
set_dynamic
eloqsql/mysys/array.c
my_bool set_dynamic(DYNAMIC_ARRAY *array, const void *element, uint idx) { if (idx >= array->elements) { if (idx >= array->max_element && allocate_dynamic(array, idx)) return TRUE; bzero((uchar*) (array->buffer+array->elements*array->size_of_element), (idx - array->elements)*array->size_of_element); array->elements=idx+1; } memcpy(array->buffer+(idx * array->size_of_element),element, (size_t) array->size_of_element); return FALSE; }
O3
c
set_dynamic: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movl %edx, %r14d movq %rsi, %rbx movq %rdi, %r15 movl 0x8(%rdi), %eax cmpl %edx, %eax ja 0x4d0a6 cmpl %r14d, 0xc(%r15) ja 0x4d083 movq %r15, %rdi movl %r14d, %esi callq 0x4d0c9 movl %eax, %ecx movb $0x1, %al testb %cl, %cl jne 0x4d0be movl 0x8(%r15), %eax movl 0x14(%r15), %ecx movl %r14d, %edx subl %eax, %edx imull %ecx, %edx movl %ecx, %edi imull %eax, %edi addq (%r15), %rdi xorl %esi, %esi callq 0x281b0 leal 0x1(%r14), %eax movl %eax, 0x8(%r15) movl 0x14(%r15), %edx imull %edx, %r14d addq (%r15), %r14 movq %r14, %rdi movq %rbx, %rsi callq 0x282a0 xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
set_dynamic: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov r14d, edx mov rbx, rsi mov r15, rdi mov eax, [rdi+8] cmp eax, edx ja short loc_4D0A6 cmp [r15+0Ch], r14d ja short loc_4D083 mov rdi, r15 mov esi, r14d call allocate_dynamic mov ecx, eax mov al, 1 test cl, cl jnz short loc_4D0BE mov eax, [r15+8] loc_4D083: mov ecx, [r15+14h] mov edx, r14d sub edx, eax imul edx, ecx mov edi, ecx imul edi, eax add rdi, [r15] xor esi, esi call _memset lea eax, [r14+1] mov [r15+8], eax loc_4D0A6: mov edx, [r15+14h] imul r14d, edx add r14, [r15] mov rdi, r14 mov rsi, rbx call _memcpy xor eax, eax loc_4D0BE: add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
char set_dynamic(long long a1, long long a2, unsigned int a3) { unsigned int v4; // eax char dynamic; // cl char result; // al v4 = *(_DWORD *)(a1 + 8); if ( v4 <= a3 ) { if ( *(_DWORD *)(a1 + 12) <= a3 ) { dynamic = allocate_dynamic(a1, a3); result = 1; if ( dynamic ) return result; v4 = *(_DWORD *)(a1 + 8); } memset(*(_QWORD *)a1 + v4 * *(_DWORD *)(a1 + 20), 0LL, *(_DWORD *)(a1 + 20) * (a3 - v4)); *(_DWORD *)(a1 + 8) = a3 + 1; } memcpy(*(_QWORD *)a1 + *(_DWORD *)(a1 + 20) * a3, a2, *(unsigned int *)(a1 + 20)); return 0; }
set_dynamic: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV R14D,EDX MOV RBX,RSI MOV R15,RDI MOV EAX,dword ptr [RDI + 0x8] CMP EAX,EDX JA 0x0014d0a6 CMP dword ptr [R15 + 0xc],R14D JA 0x0014d083 MOV RDI,R15 MOV ESI,R14D CALL 0x0014d0c9 MOV ECX,EAX MOV AL,0x1 TEST CL,CL JNZ 0x0014d0be MOV EAX,dword ptr [R15 + 0x8] LAB_0014d083: MOV ECX,dword ptr [R15 + 0x14] MOV EDX,R14D SUB EDX,EAX IMUL EDX,ECX MOV EDI,ECX IMUL EDI,EAX ADD RDI,qword ptr [R15] XOR ESI,ESI CALL 0x001281b0 LEA EAX,[R14 + 0x1] MOV dword ptr [R15 + 0x8],EAX LAB_0014d0a6: MOV EDX,dword ptr [R15 + 0x14] IMUL R14D,EDX ADD R14,qword ptr [R15] MOV RDI,R14 MOV RSI,RBX CALL 0x001282a0 XOR EAX,EAX LAB_0014d0be: ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
int8 set_dynamic(long *param_1,void *param_2,uint param_3) { char cVar1; uint uVar2; uVar2 = *(uint *)(param_1 + 1); if (uVar2 <= param_3) { if (*(uint *)((long)param_1 + 0xc) <= param_3) { cVar1 = allocate_dynamic(param_1); if (cVar1 != '\0') { return 1; } uVar2 = *(uint *)(param_1 + 1); } memset((void *)((ulong)(*(int *)((long)param_1 + 0x14) * uVar2) + *param_1),0, (ulong)((param_3 - uVar2) * *(int *)((long)param_1 + 0x14))); *(uint *)(param_1 + 1) = param_3 + 1; } memcpy((void *)((ulong)(param_3 * *(uint *)((long)param_1 + 0x14)) + *param_1),param_2, (ulong)*(uint *)((long)param_1 + 0x14)); return 0; }
31,313
js_parse_error
bluesky950520[P]quickjs/quickjs.c
int __attribute__((format(printf, 2, 3))) js_parse_error(JSParseState *s, const char *fmt, ...) { JSContext *ctx = s->ctx; va_list ap; int backtrace_flags; va_start(ap, fmt); JS_ThrowError2(ctx, JS_SYNTAX_ERROR, fmt, ap, FALSE); va_end(ap); backtrace_flags = 0; if (s->cur_func && s->cur_func->backtrace_barrier) backtrace_flags = JS_BACKTRACE_FLAG_SINGLE_LEVEL; build_backtrace(ctx, ctx->rt->current_exception, JS_UNDEFINED, s->filename, s->line_num, s->col_num, backtrace_flags); return -1; }
O1
c
js_parse_error: pushq %r15 pushq %r14 pushq %rbx subq $0xd0, %rsp movq %rsi, %r10 movq %rdi, %r14 leaq 0x20(%rsp), %rsi movq %rdx, 0x10(%rsi) movq %rcx, 0x18(%rsi) movq %r8, 0x20(%rsi) movq %r9, 0x28(%rsi) testb %al, %al je 0x2fd4b movaps %xmm0, 0x50(%rsp) movaps %xmm1, 0x60(%rsp) movaps %xmm2, 0x70(%rsp) movaps %xmm3, 0x80(%rsp) movaps %xmm4, 0x90(%rsp) movaps %xmm5, 0xa0(%rsp) movaps %xmm6, 0xb0(%rsp) movaps %xmm7, 0xc0(%rsp) movq (%rdi), %rbx movq %rsp, %rcx movq %rsi, 0x10(%rcx) leaq 0xf0(%rsp), %rax movq %rax, 0x8(%rcx) movabsq $0x3000000010, %rax # imm = 0x3000000010 movq %rax, (%rcx) xorl %r15d, %r15d movq %rbx, %rdi movl $0x3, %esi movq %r10, %rdx xorl %r8d, %r8d callq 0x2fdef movq 0x90(%r14), %rax testq %rax, %rax je 0x2fda1 xorl %r15d, %r15d cmpl $0x0, 0x80(%rax) setne %r15b addl %r15d, %r15d movq 0x18(%rbx), %rax movq 0x18(%r14), %r9 movl 0x10(%r14), %r10d movl 0x14(%r14), %r11d movq 0xf0(%rax), %rsi movq 0xf8(%rax), %rdx subq $0x8, %rsp movl $0x3, %r8d movq %rbx, %rdi xorl %ecx, %ecx pushq %r15 pushq %r11 pushq %r10 callq 0x2fe72 addq $0x20, %rsp movl $0xffffffff, %eax # imm = 0xFFFFFFFF addq $0xd0, %rsp popq %rbx popq %r14 popq %r15 retq
js_parse_error: push r15 push r14 push rbx sub rsp, 0D0h mov r10, rsi mov r14, rdi lea rsi, [rsp+0E8h+var_C8] mov [rsi+10h], rdx mov [rsi+18h], rcx mov [rsi+20h], r8 mov [rsi+28h], r9 test al, al jz short loc_2FD4B movaps [rsp+0E8h+var_98], xmm0 movaps [rsp+0E8h+var_88], xmm1 movaps [rsp+0E8h+var_78], xmm2 movaps [rsp+0E8h+var_68], xmm3 movaps [rsp+0E8h+var_58], xmm4 movaps [rsp+0E8h+var_48], xmm5 movaps [rsp+0E8h+var_38], xmm6 movaps [rsp+0E8h+var_28], xmm7 loc_2FD4B: mov rbx, [rdi] mov rcx, rsp mov [rcx+10h], rsi lea rax, [rsp+0E8h+arg_0] mov [rcx+8], rax mov rax, 3000000010h mov [rcx], rax xor r15d, r15d mov rdi, rbx mov esi, 3 mov rdx, r10 xor r8d, r8d call JS_ThrowError2 mov rax, [r14+90h] test rax, rax jz short loc_2FDA1 xor r15d, r15d cmp dword ptr [rax+80h], 0 setnz r15b add r15d, r15d loc_2FDA1: mov rax, [rbx+18h] mov r9, [r14+18h] mov r10d, [r14+10h] mov r11d, [r14+14h] mov rsi, [rax+0F0h] mov rdx, [rax+0F8h] sub rsp, 8 mov r8d, 3 mov rdi, rbx xor ecx, ecx push r15 push r11 push r10 call build_backtrace add rsp, 20h mov eax, 0FFFFFFFFh add rsp, 0D0h pop rbx pop r14 pop r15 retn
long long js_parse_error( 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, char a15) { long long v15; // rbx int v16; // r15d long long v17; // rax _QWORD v19[4]; // [rsp+0h] [rbp-E8h] BYREF char v20; // [rsp+20h] [rbp-C8h] BYREF long long v21; // [rsp+30h] [rbp-B8h] long long v22; // [rsp+38h] [rbp-B0h] long long v23; // [rsp+40h] [rbp-A8h] long long v24; // [rsp+48h] [rbp-A0h] __m128 v25; // [rsp+50h] [rbp-98h] __m128 v26; // [rsp+60h] [rbp-88h] __m128 v27; // [rsp+70h] [rbp-78h] __m128 v28; // [rsp+80h] [rbp-68h] __m128 v29; // [rsp+90h] [rbp-58h] __m128 v30; // [rsp+A0h] [rbp-48h] __m128 v31; // [rsp+B0h] [rbp-38h] __m128 v32; // [rsp+C0h] [rbp-28h] v25 = a7; v26 = a8; v27 = a9; v28 = a10; v29 = a11; v30 = a12; v31 = a13; v32 = a14; v21 = a3; v22 = a4; v23 = a5; v24 = a6; v15 = *a1; v19[2] = &v20; v19[1] = &a15; v19[0] = 0x3000000010LL; v16 = 0; JS_ThrowError2(v15, 3LL, a2, v19, 0LL); v17 = a1[18]; if ( v17 ) v16 = 2 * (*(_DWORD *)(v17 + 128) != 0); build_backtrace( v15, *(_QWORD *)(*(_QWORD *)(v15 + 24) + 240LL), *(_QWORD *)(*(_QWORD *)(v15 + 24) + 248LL), 0, 3, a1[3], *((_DWORD *)a1 + 4), *((_DWORD *)a1 + 5), v16); return 0xFFFFFFFFLL; }
31,314
js_parse_error
bluesky950520[P]quickjs/quickjs.c
int __attribute__((format(printf, 2, 3))) js_parse_error(JSParseState *s, const char *fmt, ...) { JSContext *ctx = s->ctx; va_list ap; int backtrace_flags; va_start(ap, fmt); JS_ThrowError2(ctx, JS_SYNTAX_ERROR, fmt, ap, FALSE); va_end(ap); backtrace_flags = 0; if (s->cur_func && s->cur_func->backtrace_barrier) backtrace_flags = JS_BACKTRACE_FLAG_SINGLE_LEVEL; build_backtrace(ctx, ctx->rt->current_exception, JS_UNDEFINED, s->filename, s->line_num, s->col_num, backtrace_flags); return -1; }
O2
c
js_parse_error: pushq %r15 pushq %r14 pushq %rbx subq $0xd0, %rsp movq %rsi, %r10 movq %rdi, %r14 leaq 0x20(%rsp), %rsi movq %rdx, 0x10(%rsi) movq %rcx, 0x18(%rsi) movq %r8, 0x20(%rsi) movq %r9, 0x28(%rsi) testb %al, %al je 0x284b9 movaps %xmm0, 0x50(%rsp) movaps %xmm1, 0x60(%rsp) movaps %xmm2, 0x70(%rsp) movaps %xmm3, 0x80(%rsp) movaps %xmm4, 0x90(%rsp) movaps %xmm5, 0xa0(%rsp) movaps %xmm6, 0xb0(%rsp) movaps %xmm7, 0xc0(%rsp) movq (%rdi), %rbx movq %rsp, %rcx movq %rsi, 0x10(%rcx) leaq 0xf0(%rsp), %rax movq %rax, 0x8(%rcx) movabsq $0x3000000010, %rax # imm = 0x3000000010 movq %rax, (%rcx) pushq $0x3 popq %rsi xorl %r15d, %r15d movq %rbx, %rdi movq %r10, %rdx xorl %r8d, %r8d callq 0x28557 movq 0x90(%r14), %rax testq %rax, %rax je 0x2850d xorl %r15d, %r15d cmpl $0x0, 0x80(%rax) setne %r15b addl %r15d, %r15d movq 0x18(%rbx), %rax movq 0x18(%r14), %r9 movl 0x10(%r14), %r10d movl 0x14(%r14), %r11d movq 0xf0(%rax), %rsi movq 0xf8(%rax), %rdx subq $0x8, %rsp pushq $0x3 popq %r8 movq %rbx, %rdi xorl %ecx, %ecx pushq %r15 pushq %r11 pushq %r10 callq 0x285b2 addq $0x20, %rsp pushq $-0x1 popq %rax addq $0xd0, %rsp popq %rbx popq %r14 popq %r15 retq
js_parse_error: push r15 push r14 push rbx sub rsp, 0D0h mov r10, rsi mov r14, rdi lea rsi, [rsp+0E8h+var_C8] mov [rsi+10h], rdx mov [rsi+18h], rcx mov [rsi+20h], r8 mov [rsi+28h], r9 test al, al jz short loc_284B9 movaps [rsp+0E8h+var_98], xmm0 movaps [rsp+0E8h+var_88], xmm1 movaps [rsp+0E8h+var_78], xmm2 movaps [rsp+0E8h+var_68], xmm3 movaps [rsp+0E8h+var_58], xmm4 movaps [rsp+0E8h+var_48], xmm5 movaps [rsp+0E8h+var_38], xmm6 movaps [rsp+0E8h+var_28], xmm7 loc_284B9: mov rbx, [rdi] mov rcx, rsp mov [rcx+10h], rsi lea rax, [rsp+0E8h+arg_0] mov [rcx+8], rax mov rax, 3000000010h mov [rcx], rax push 3 pop rsi xor r15d, r15d mov rdi, rbx mov rdx, r10 xor r8d, r8d call JS_ThrowError2 mov rax, [r14+90h] test rax, rax jz short loc_2850D xor r15d, r15d cmp dword ptr [rax+80h], 0 setnz r15b add r15d, r15d loc_2850D: mov rax, [rbx+18h] mov r9, [r14+18h] mov r10d, [r14+10h] mov r11d, [r14+14h] mov rsi, [rax+0F0h] mov rdx, [rax+0F8h] sub rsp, 8 push 3 pop r8 mov rdi, rbx xor ecx, ecx push r15 push r11 push r10 call build_backtrace add rsp, 20h push 0FFFFFFFFFFFFFFFFh pop rax add rsp, 0D0h pop rbx pop r14 pop r15 retn
long long js_parse_error( 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, char a15) { long long v15; // rbx int v16; // r15d long long v17; // rax _QWORD v19[4]; // [rsp+0h] [rbp-E8h] BYREF char v20; // [rsp+20h] [rbp-C8h] BYREF long long v21; // [rsp+30h] [rbp-B8h] long long v22; // [rsp+38h] [rbp-B0h] long long v23; // [rsp+40h] [rbp-A8h] long long v24; // [rsp+48h] [rbp-A0h] __m128 v25; // [rsp+50h] [rbp-98h] __m128 v26; // [rsp+60h] [rbp-88h] __m128 v27; // [rsp+70h] [rbp-78h] __m128 v28; // [rsp+80h] [rbp-68h] __m128 v29; // [rsp+90h] [rbp-58h] __m128 v30; // [rsp+A0h] [rbp-48h] __m128 v31; // [rsp+B0h] [rbp-38h] __m128 v32; // [rsp+C0h] [rbp-28h] v25 = a7; v26 = a8; v27 = a9; v28 = a10; v29 = a11; v30 = a12; v31 = a13; v32 = a14; v21 = a3; v22 = a4; v23 = a5; v24 = a6; v15 = *a1; v19[2] = &v20; v19[1] = &a15; v19[0] = 0x3000000010LL; v16 = 0; JS_ThrowError2(v15, 3LL, a2, v19, 0LL); v17 = a1[18]; if ( v17 ) v16 = 2 * (*(_DWORD *)(v17 + 128) != 0); build_backtrace( v15, *(_QWORD *)(*(_QWORD *)(v15 + 24) + 240LL), *(_QWORD *)(*(_QWORD *)(v15 + 24) + 248LL), 0, 3, a1[3], *((_DWORD *)a1 + 4), *((_DWORD *)a1 + 5), v16); return -1LL; }
js_parse_error: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0xd0 MOV R10,RSI MOV R14,RDI LEA RSI,[RSP + 0x20] MOV qword ptr [RSI + 0x10],RDX MOV qword ptr [RSI + 0x18],RCX MOV qword ptr [RSI + 0x20],R8 MOV qword ptr [RSI + 0x28],R9 TEST AL,AL JZ 0x001284b9 MOVAPS xmmword ptr [RSP + 0x50],XMM0 MOVAPS xmmword ptr [RSP + 0x60],XMM1 MOVAPS xmmword ptr [RSP + 0x70],XMM2 MOVAPS xmmword ptr [RSP + 0x80],XMM3 MOVAPS xmmword ptr [RSP + 0x90],XMM4 MOVAPS xmmword ptr [RSP + 0xa0],XMM5 MOVAPS xmmword ptr [RSP + 0xb0],XMM6 MOVAPS xmmword ptr [RSP + 0xc0],XMM7 LAB_001284b9: MOV RBX,qword ptr [RDI] MOV RCX,RSP MOV qword ptr [RCX + 0x10],RSI LEA RAX,[RSP + 0xf0] MOV qword ptr [RCX + 0x8],RAX MOV RAX,0x3000000010 MOV qword ptr [RCX],RAX PUSH 0x3 POP RSI XOR R15D,R15D MOV RDI,RBX MOV RDX,R10 XOR R8D,R8D CALL 0x00128557 MOV RAX,qword ptr [R14 + 0x90] TEST RAX,RAX JZ 0x0012850d XOR R15D,R15D CMP dword ptr [RAX + 0x80],0x0 SETNZ R15B ADD R15D,R15D LAB_0012850d: MOV RAX,qword ptr [RBX + 0x18] MOV R9,qword ptr [R14 + 0x18] MOV R10D,dword ptr [R14 + 0x10] MOV R11D,dword ptr [R14 + 0x14] MOV RSI,qword ptr [RAX + 0xf0] MOV RDX,qword ptr [RAX + 0xf8] SUB RSP,0x8 PUSH 0x3 POP R8 MOV RDI,RBX XOR ECX,ECX PUSH R15 PUSH R11 PUSH R10 CALL 0x001285b2 ADD RSP,0x20 PUSH -0x1 POP RAX ADD RSP,0xd0 POP RBX POP R14 POP R15 RET
int8 js_parse_error(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8, long *param_9,int8 param_10,int8 param_11,int8 param_12, int8 param_13,int8 param_14) { long lVar1; char in_AL; char cVar2; int8 local_e8; int1 *local_e0; int1 *local_d8; int1 local_c8 [16]; int8 local_b8; int8 local_b0; int8 local_a8; int8 local_a0; int8 local_98; int8 local_88; int8 local_78; int8 local_68; int8 local_58; int8 local_48; int8 local_38; int8 local_28; local_d8 = local_c8; if (in_AL != '\0') { local_98 = param_1; local_88 = param_2; local_78 = param_3; local_68 = param_4; local_58 = param_5; local_48 = param_6; local_38 = param_7; local_28 = param_8; } lVar1 = *param_9; local_e0 = &stack0x00000008; local_e8 = 0x3000000010; cVar2 = '\0'; local_b8 = param_11; local_b0 = param_12; local_a8 = param_13; local_a0 = param_14; JS_ThrowError2(lVar1,3,param_10,&local_e8,0); if (param_9[0x12] != 0) { cVar2 = (*(int *)(param_9[0x12] + 0x80) != 0) * '\x02'; } build_backtrace(lVar1,*(int8 *)(*(long *)(lVar1 + 0x18) + 0xf0), *(int8 *)(*(long *)(lVar1 + 0x18) + 0xf8),0,3,param_9[3],(int)param_9[2], *(int4 *)((long)param_9 + 0x14),cVar2); return 0xffffffffffffffff; }
31,315
stbi__jpeg_reset(stbi__jpeg*)
monkey531[P]llama/examples/llava/../../common/stb_image.h
static void stbi__jpeg_reset(stbi__jpeg *j) { j->code_bits = 0; j->code_buffer = 0; j->nomore = 0; j->img_comp[0].dc_pred = j->img_comp[1].dc_pred = j->img_comp[2].dc_pred = j->img_comp[3].dc_pred = 0; j->marker = STBI__MARKER_none; j->todo = j->restart_interval ? j->restart_interval : 0x7fffffff; j->eob_run = 0; // no more than 1<<31 MCUs if no restart_interal? that's plenty safe, // since we don't even allow 1<<30 pixels }
O2
c
stbi__jpeg_reset(stbi__jpeg*): andq $0x0, 0x4820(%rdi) andl $0x0, 0x482c(%rdi) andl $0x0, 0x47d8(%rdi) andl $0x0, 0x4778(%rdi) andl $0x0, 0x4718(%rdi) andl $0x0, 0x46b8(%rdi) movb $-0x1, 0x4828(%rdi) movl 0x4868(%rdi), %eax testl %eax, %eax movl $0x7fffffff, %ecx # imm = 0x7FFFFFFF cmovnel %eax, %ecx movl %ecx, 0x486c(%rdi) andl $0x0, 0x4844(%rdi) retq
_ZL16stbi__jpeg_resetP10stbi__jpeg: and qword ptr [rdi+4820h], 0 and dword ptr [rdi+482Ch], 0 and dword ptr [rdi+47D8h], 0 and dword ptr [rdi+4778h], 0 and dword ptr [rdi+4718h], 0 and dword ptr [rdi+46B8h], 0 mov byte ptr [rdi+4828h], 0FFh mov eax, [rdi+4868h] test eax, eax mov ecx, 7FFFFFFFh cmovnz ecx, eax mov [rdi+486Ch], ecx and dword ptr [rdi+4844h], 0 retn
long long stbi__jpeg_reset(long long a1) { long long result; // rax int v2; // ecx *(_QWORD *)(a1 + 18464) = 0LL; *(_DWORD *)(a1 + 18476) = 0; *(_DWORD *)(a1 + 18392) = 0; *(_DWORD *)(a1 + 18296) = 0; *(_DWORD *)(a1 + 18200) = 0; *(_DWORD *)(a1 + 18104) = 0; *(_BYTE *)(a1 + 18472) = -1; result = *(unsigned int *)(a1 + 18536); v2 = 0x7FFFFFFF; if ( (_DWORD)result ) v2 = *(_DWORD *)(a1 + 18536); *(_DWORD *)(a1 + 18540) = v2; *(_DWORD *)(a1 + 18500) = 0; return result; }
stbi__jpeg_reset: AND qword ptr [RDI + 0x4820],0x0 AND dword ptr [RDI + 0x482c],0x0 AND dword ptr [RDI + 0x47d8],0x0 AND dword ptr [RDI + 0x4778],0x0 AND dword ptr [RDI + 0x4718],0x0 AND dword ptr [RDI + 0x46b8],0x0 MOV byte ptr [RDI + 0x4828],0xff MOV EAX,dword ptr [RDI + 0x4868] TEST EAX,EAX MOV ECX,0x7fffffff CMOVNZ ECX,EAX MOV dword ptr [RDI + 0x486c],ECX AND dword ptr [RDI + 0x4844],0x0 RET
/* stbi__jpeg_reset(stbi__jpeg*) */ void stbi__jpeg_reset(stbi__jpeg *param_1) { int iVar1; *(int8 *)(param_1 + 0x4820) = 0; *(int4 *)(param_1 + 0x482c) = 0; *(int4 *)(param_1 + 0x47d8) = 0; *(int4 *)(param_1 + 0x4778) = 0; *(int4 *)(param_1 + 0x4718) = 0; *(int4 *)(param_1 + 0x46b8) = 0; param_1[0x4828] = (stbi__jpeg)0xff; iVar1 = 0x7fffffff; if (*(int *)(param_1 + 0x4868) != 0) { iVar1 = *(int *)(param_1 + 0x4868); } *(int *)(param_1 + 0x486c) = iVar1; *(int4 *)(param_1 + 0x4844) = 0; return; }
31,316
nlohmann::json_abi_v3_11_3::detail::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>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>> 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>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, 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::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>&)>, bool, bool)
monkey531[P]llama/common/json.hpp
static ::nlohmann::detail::parser<basic_json, InputAdapterType> parser( InputAdapterType adapter, detail::parser_callback_t<basic_json>cb = nullptr, const bool allow_exceptions = true, const bool ignore_comments = false ) { return ::nlohmann::detail::parser<basic_json, InputAdapterType>(std::move(adapter), std::move(cb), allow_exceptions, ignore_comments); }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::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>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>> 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>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, 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::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>&)>, bool, bool): pushq %rbx subq $0x30, %rsp movq %rdi, %rbx movq %rsi, 0x20(%rsp) movq %rdx, 0x28(%rsp) xorps %xmm0, %xmm0 movaps %xmm0, (%rsp) movq $0x0, 0x10(%rsp) movq 0x18(%rcx), %rax movq %rax, 0x18(%rsp) movq 0x10(%rcx), %rax testq %rax, %rax je 0x57313 movups (%rcx), %xmm1 addq $0x10, %rcx movaps %xmm1, (%rsp) movq %rax, 0x10(%rsp) movups %xmm0, (%rcx) movzbl %r8b, %ecx movzbl %r9b, %r8d leaq 0x20(%rsp), %rsi movq %rsp, %rdx movq %rbx, %rdi callq 0x57e2c movq 0x10(%rsp), %rax testq %rax, %rax je 0x57342 movq %rsp, %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq %rbx, %rax addq $0x30, %rsp popq %rbx retq jmp 0x5736f movq %rax, %rbx movq 0x10(%rsp), %rax testq %rax, %rax je 0x57367 movq %rsp, %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq %rbx, %rdi callq 0x1af20 movq %rax, %rdi callq 0x20769 nop
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6parserINS0_6detail22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcS9_EEEEEENSF_6parserISD_T_EESO_St8functionIFbiNSF_13parse_event_tERSD_EEbb: push rbx sub rsp, 30h mov rbx, rdi mov [rsp+38h+var_18], rsi mov [rsp+38h+var_10], rdx xorps xmm0, xmm0 movaps [rsp+38h+var_38], xmm0 mov [rsp+38h+var_28], 0 mov rax, [rcx+18h] mov [rsp+38h+var_20], rax mov rax, [rcx+10h] test rax, rax jz short loc_57313 movups xmm1, xmmword ptr [rcx] add rcx, 10h movaps [rsp+38h+var_38], xmm1 mov [rsp+38h+var_28], rax movups xmmword ptr [rcx], xmm0 loc_57313: movzx ecx, r8b movzx r8d, r9b lea rsi, [rsp+38h+var_18] mov rdx, rsp mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEEC2EOSM_St8functionIFbiNS1_13parse_event_tERSF_EEbb; nlohmann::json_abi_v3_11_3::detail::parser<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parser(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>&&,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>&)>,bool,bool) mov rax, [rsp+38h+var_28] test rax, rax jz short loc_57342 mov rdi, rsp mov rsi, rdi mov edx, 3 call rax loc_57342: mov rax, rbx add rsp, 30h pop rbx retn jmp short loc_5736F mov rbx, rax mov rax, [rsp+38h+var_28] test rax, rax jz short loc_57367 mov rdi, rsp mov rsi, rdi mov edx, 3 call rax loc_57367: mov rdi, rbx call __Unwind_Resume loc_5736F: mov rdi, rax call __clang_call_terminate
long long 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>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>( long long a1, long long a2, long long a3, __int128 *a4, unsigned __int8 a5, unsigned __int8 a6) { void ( *v6)(__int128 *, __int128 *, long long); // rax __int128 v8; // [rsp+0h] [rbp-38h] BYREF void ( *v9)(__int128 *, __int128 *, long long); // [rsp+10h] [rbp-28h] long long v10; // [rsp+18h] [rbp-20h] _QWORD v11[3]; // [rsp+20h] [rbp-18h] BYREF v11[0] = a2; v11[1] = a3; v8 = 0LL; v9 = 0LL; v10 = *((_QWORD *)a4 + 3); v6 = (void ( *)(__int128 *, __int128 *, long long))*((_QWORD *)a4 + 2); if ( v6 ) { v8 = *a4; v9 = v6; a4[1] = 0LL; } ((void ( *)(long long, _QWORD *, __int128 *, _QWORD, _QWORD))nlohmann::json_abi_v3_11_3::detail::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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parser)( a1, v11, &v8, a5, a6); if ( v9 ) v9(&v8, &v8, 3LL); return a1; }
parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>: PUSH RBX SUB RSP,0x30 MOV RBX,RDI MOV qword ptr [RSP + 0x20],RSI MOV qword ptr [RSP + 0x28],RDX XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP],XMM0 MOV qword ptr [RSP + 0x10],0x0 MOV RAX,qword ptr [RCX + 0x18] MOV qword ptr [RSP + 0x18],RAX MOV RAX,qword ptr [RCX + 0x10] TEST RAX,RAX JZ 0x00157313 MOVUPS XMM1,xmmword ptr [RCX] ADD RCX,0x10 MOVAPS xmmword ptr [RSP],XMM1 MOV qword ptr [RSP + 0x10],RAX MOVUPS xmmword ptr [RCX],XMM0 LAB_00157313: MOVZX ECX,R8B MOVZX R8D,R9B LEA RSI,[RSP + 0x20] MOV RDX,RSP MOV RDI,RBX CALL 0x00157e2c MOV RAX,qword ptr [RSP + 0x10] TEST RAX,RAX JZ 0x00157342 LAB_00157335: MOV RDI,RSP MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_00157342: MOV RAX,RBX ADD RSP,0x30 POP RBX RET
/* nlohmann::json_abi_v3_11_3::detail::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>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, 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>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::string > > >(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::string > >, 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>&)>, bool, bool) */ 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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,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> :: parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> (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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> *param_1,int8 param_2,int8 param_3,int8 *param_4,int1 param_5, int1 param_6) { code *pcVar1; int8 local_38; int8 uStack_30; code *local_28; int8 local_20; int8 local_18; int8 local_10; local_38 = 0; uStack_30 = 0; local_28 = (code *)0x0; local_20 = param_4[3]; pcVar1 = (code *)param_4[2]; if (pcVar1 != (code *)0x0) { local_38 = *param_4; uStack_30 = param_4[1]; param_4[2] = 0; param_4[3] = 0; local_28 = pcVar1; } /* try { // try from 00157313 to 0015732a has its CatchHandler @ 0015734d */ local_18 = param_2; local_10 = param_3; detail:: 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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::parser(param_1,&local_18,&local_38,param_5,param_6); if (local_28 != (code *)0x0) { /* try { // try from 00157335 to 00157341 has its CatchHandler @ 0015734b */ (*local_28)(&local_38,&local_38,3); } return param_1; }
31,317
my_strcasecmp_utf8mb4
eloqsql/strings/ctype-utf8.c
static int my_strcasecmp_utf8mb4(CHARSET_INFO *cs, const char *s, const char *t) { MY_UNICASE_INFO *uni_plane= cs->caseinfo; while (s[0] && t[0]) { my_wc_t s_wc,t_wc; if ((uchar) s[0] < 128) { /* s[0] is between 0 and 127. It represents a single byte character. Convert it into weight according to collation. */ s_wc= my_unicase_default_page00[(uchar) s[0]].tolower; s++; } else { int res= my_mb_wc_utf8mb4_no_range(cs, &s_wc, (const uchar*) s); /* In the case of wrong multibyte sequence we will call strcmp() for byte-to-byte comparison. */ if (res <= 0) return strcmp(s, t); s+= res; my_tolower_utf8mb4(uni_plane, &s_wc); } /* Do the same for the second string */ if ((uchar) t[0] < 128) { /* Convert single byte character into weight */ t_wc= my_unicase_default_page00[(uchar) t[0]].tolower; t++; } else { int res= my_mb_wc_utf8mb4_no_range(cs, &t_wc, (const uchar*) t); if (res <= 0) return strcmp(s, t); t+= res; my_tolower_utf8mb4(uni_plane, &t_wc); } /* Now we have two weights, let's compare them */ if ( s_wc != t_wc ) return ((int) s_wc) - ((int) t_wc); } return ((int) (uchar) s[0]) - ((int) (uchar) t[0]); }
O0
c
my_strcasecmp_utf8mb4: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rax movq 0x78(%rax), %rax movq %rax, -0x28(%rbp) movq -0x18(%rbp), %rax movsbl (%rax), %ecx xorl %eax, %eax cmpl $0x0, %ecx movb %al, -0x41(%rbp) je 0xc8d01 movq -0x20(%rbp), %rax movsbl (%rax), %eax cmpl $0x0, %eax setne %al movb %al, -0x41(%rbp) movb -0x41(%rbp), %al testb $0x1, %al jne 0xc8d0d jmp 0xc8e36 movq -0x18(%rbp), %rax movzbl (%rax), %eax cmpl $0x80, %eax jge 0xc8d47 movq -0x18(%rbp), %rax movzbl (%rax), %eax movl %eax, %ecx leaq 0x3030d5(%rip), %rax # 0x3cbe00 imulq $0xc, %rcx, %rcx addq %rcx, %rax movl 0x4(%rax), %eax movq %rax, -0x30(%rbp) movq -0x18(%rbp), %rax addq $0x1, %rax movq %rax, -0x18(%rbp) jmp 0xc8d94 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rdx leaq -0x30(%rbp), %rsi callq 0xc8440 movl %eax, -0x3c(%rbp) cmpl $0x0, -0x3c(%rbp) jg 0xc8d76 movq -0x18(%rbp), %rdi movq -0x20(%rbp), %rsi callq 0x28490 movl %eax, -0x4(%rbp) jmp 0xc8e49 movl -0x3c(%rbp), %ecx movq -0x18(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x18(%rbp) movq -0x28(%rbp), %rdi leaq -0x30(%rbp), %rsi callq 0xc8830 movq -0x20(%rbp), %rax movzbl (%rax), %eax cmpl $0x80, %eax jge 0xc8dce movq -0x20(%rbp), %rax movzbl (%rax), %eax movl %eax, %ecx leaq 0x30304e(%rip), %rax # 0x3cbe00 imulq $0xc, %rcx, %rcx addq %rcx, %rax movl 0x4(%rax), %eax movq %rax, -0x38(%rbp) movq -0x20(%rbp), %rax addq $0x1, %rax movq %rax, -0x20(%rbp) jmp 0xc8e18 movq -0x10(%rbp), %rdi movq -0x20(%rbp), %rdx leaq -0x38(%rbp), %rsi callq 0xc8440 movl %eax, -0x40(%rbp) cmpl $0x0, -0x40(%rbp) jg 0xc8dfa movq -0x18(%rbp), %rdi movq -0x20(%rbp), %rsi callq 0x28490 movl %eax, -0x4(%rbp) jmp 0xc8e49 movl -0x40(%rbp), %ecx movq -0x20(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x20(%rbp) movq -0x28(%rbp), %rdi leaq -0x38(%rbp), %rsi callq 0xc8830 movq -0x30(%rbp), %rax cmpq -0x38(%rbp), %rax je 0xc8e31 movq -0x30(%rbp), %rax movq -0x38(%rbp), %rcx subl %ecx, %eax movl %eax, -0x4(%rbp) jmp 0xc8e49 jmp 0xc8ce0 movq -0x18(%rbp), %rax movzbl (%rax), %eax movq -0x20(%rbp), %rcx movzbl (%rcx), %ecx subl %ecx, %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x50, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_strcasecmp_utf8mb4: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_10] mov rax, [rax+78h] mov [rbp+var_28], rax loc_C8CE0: mov rax, [rbp+var_18] movsx ecx, byte ptr [rax] xor eax, eax cmp ecx, 0 mov [rbp+var_41], al jz short loc_C8D01 mov rax, [rbp+var_20] movsx eax, byte ptr [rax] cmp eax, 0 setnz al mov [rbp+var_41], al loc_C8D01: mov al, [rbp+var_41] test al, 1 jnz short loc_C8D0D jmp loc_C8E36 loc_C8D0D: mov rax, [rbp+var_18] movzx eax, byte ptr [rax] cmp eax, 80h jge short loc_C8D47 mov rax, [rbp+var_18] movzx eax, byte ptr [rax] mov ecx, eax lea rax, my_unicase_default_page00 imul rcx, 0Ch add rax, rcx mov eax, [rax+4] mov [rbp+var_30], rax mov rax, [rbp+var_18] add rax, 1 mov [rbp+var_18], rax jmp short loc_C8D94 loc_C8D47: mov rdi, [rbp+var_10] mov rdx, [rbp+var_18] lea rsi, [rbp+var_30] call my_mb_wc_utf8mb4_no_range mov [rbp+var_3C], eax cmp [rbp+var_3C], 0 jg short loc_C8D76 mov rdi, [rbp+var_18] mov rsi, [rbp+var_20] call _strcmp mov [rbp+var_4], eax jmp loc_C8E49 loc_C8D76: mov ecx, [rbp+var_3C] mov rax, [rbp+var_18] movsxd rcx, ecx add rax, rcx mov [rbp+var_18], rax mov rdi, [rbp+var_28] lea rsi, [rbp+var_30] call my_tolower_utf8mb4 loc_C8D94: mov rax, [rbp+var_20] movzx eax, byte ptr [rax] cmp eax, 80h jge short loc_C8DCE mov rax, [rbp+var_20] movzx eax, byte ptr [rax] mov ecx, eax lea rax, my_unicase_default_page00 imul rcx, 0Ch add rax, rcx mov eax, [rax+4] mov [rbp+var_38], rax mov rax, [rbp+var_20] add rax, 1 mov [rbp+var_20], rax jmp short loc_C8E18 loc_C8DCE: mov rdi, [rbp+var_10] mov rdx, [rbp+var_20] lea rsi, [rbp+var_38] call my_mb_wc_utf8mb4_no_range mov [rbp+var_40], eax cmp [rbp+var_40], 0 jg short loc_C8DFA mov rdi, [rbp+var_18] mov rsi, [rbp+var_20] call _strcmp mov [rbp+var_4], eax jmp short loc_C8E49 loc_C8DFA: mov ecx, [rbp+var_40] mov rax, [rbp+var_20] movsxd rcx, ecx add rax, rcx mov [rbp+var_20], rax mov rdi, [rbp+var_28] lea rsi, [rbp+var_38] call my_tolower_utf8mb4 loc_C8E18: mov rax, [rbp+var_30] cmp rax, [rbp+var_38] jz short loc_C8E31 mov rax, [rbp+var_30] mov rcx, [rbp+var_38] sub eax, ecx mov [rbp+var_4], eax jmp short loc_C8E49 loc_C8E31: jmp loc_C8CE0 loc_C8E36: mov rax, [rbp+var_18] movzx eax, byte ptr [rax] mov rcx, [rbp+var_20] movzx ecx, byte ptr [rcx] sub eax, ecx mov [rbp+var_4], eax loc_C8E49: mov eax, [rbp+var_4] add rsp, 50h pop rbp retn
long long my_strcasecmp_utf8mb4(long long a1, unsigned __int8 *a2, unsigned __int8 *a3) { bool v4; // [rsp+Fh] [rbp-41h] int v5; // [rsp+10h] [rbp-40h] int v6; // [rsp+14h] [rbp-3Ch] unsigned long long v7; // [rsp+18h] [rbp-38h] BYREF unsigned long long v8; // [rsp+20h] [rbp-30h] BYREF _QWORD *v9; // [rsp+28h] [rbp-28h] unsigned __int8 *v10; // [rsp+30h] [rbp-20h] unsigned __int8 *v11; // [rsp+38h] [rbp-18h] long long v12; // [rsp+40h] [rbp-10h] v12 = a1; v11 = a2; v10 = a3; v9 = *(_QWORD **)(a1 + 120); while ( 1 ) { v4 = 0; if ( *v11 ) v4 = *v10 != 0; if ( !v4 ) break; if ( *v11 >= 0x80u ) { v6 = my_mb_wc_utf8mb4_no_range(v12, &v8, v11); if ( v6 <= 0 ) return (unsigned int)strcmp(v11, v10); v11 += v6; my_tolower_utf8mb4(v9, &v8); } else { v8 = my_unicase_default_page00[3 * *v11++ + 1]; } if ( *v10 >= 0x80u ) { v5 = my_mb_wc_utf8mb4_no_range(v12, &v7, v10); if ( v5 <= 0 ) return (unsigned int)strcmp(v11, v10); v10 += v5; my_tolower_utf8mb4(v9, &v7); } else { v7 = my_unicase_default_page00[3 * *v10++ + 1]; } if ( v8 != v7 ) return (unsigned int)(v8 - v7); } return (unsigned int)(*v11 - *v10); }
my_strcasecmp_utf8mb4: PUSH RBP MOV RBP,RSP SUB RSP,0x50 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 + 0x78] MOV qword ptr [RBP + -0x28],RAX LAB_001c8ce0: MOV RAX,qword ptr [RBP + -0x18] MOVSX ECX,byte ptr [RAX] XOR EAX,EAX CMP ECX,0x0 MOV byte ptr [RBP + -0x41],AL JZ 0x001c8d01 MOV RAX,qword ptr [RBP + -0x20] MOVSX EAX,byte ptr [RAX] CMP EAX,0x0 SETNZ AL MOV byte ptr [RBP + -0x41],AL LAB_001c8d01: MOV AL,byte ptr [RBP + -0x41] TEST AL,0x1 JNZ 0x001c8d0d JMP 0x001c8e36 LAB_001c8d0d: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] CMP EAX,0x80 JGE 0x001c8d47 MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] MOV ECX,EAX LEA RAX,[0x4cbe00] IMUL RCX,RCX,0xc ADD RAX,RCX MOV EAX,dword ptr [RAX + 0x4] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x1 MOV qword ptr [RBP + -0x18],RAX JMP 0x001c8d94 LAB_001c8d47: MOV RDI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] LEA RSI,[RBP + -0x30] CALL 0x001c8440 MOV dword ptr [RBP + -0x3c],EAX CMP dword ptr [RBP + -0x3c],0x0 JG 0x001c8d76 MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] CALL 0x00128490 MOV dword ptr [RBP + -0x4],EAX JMP 0x001c8e49 LAB_001c8d76: MOV ECX,dword ptr [RBP + -0x3c] MOV RAX,qword ptr [RBP + -0x18] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x18],RAX MOV RDI,qword ptr [RBP + -0x28] LEA RSI,[RBP + -0x30] CALL 0x001c8830 LAB_001c8d94: MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX] CMP EAX,0x80 JGE 0x001c8dce MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX] MOV ECX,EAX LEA RAX,[0x4cbe00] IMUL RCX,RCX,0xc ADD RAX,RCX MOV EAX,dword ptr [RAX + 0x4] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x1 MOV qword ptr [RBP + -0x20],RAX JMP 0x001c8e18 LAB_001c8dce: MOV RDI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x20] LEA RSI,[RBP + -0x38] CALL 0x001c8440 MOV dword ptr [RBP + -0x40],EAX CMP dword ptr [RBP + -0x40],0x0 JG 0x001c8dfa MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] CALL 0x00128490 MOV dword ptr [RBP + -0x4],EAX JMP 0x001c8e49 LAB_001c8dfa: MOV ECX,dword ptr [RBP + -0x40] MOV RAX,qword ptr [RBP + -0x20] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x20],RAX MOV RDI,qword ptr [RBP + -0x28] LEA RSI,[RBP + -0x38] CALL 0x001c8830 LAB_001c8e18: MOV RAX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RBP + -0x38] JZ 0x001c8e31 MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x38] SUB EAX,ECX MOV dword ptr [RBP + -0x4],EAX JMP 0x001c8e49 LAB_001c8e31: JMP 0x001c8ce0 LAB_001c8e36: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX] MOV RCX,qword ptr [RBP + -0x20] MOVZX ECX,byte ptr [RCX] SUB EAX,ECX MOV dword ptr [RBP + -0x4],EAX LAB_001c8e49: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x50 POP RBP RET
int my_strcasecmp_utf8mb4(long param_1,byte *param_2,byte *param_3) { int iVar1; bool bVar2; ulong local_40; ulong local_38; int8 local_30; byte *local_28; byte *local_20; long local_18; local_30 = *(int8 *)(param_1 + 0x78); local_28 = param_3; local_20 = param_2; local_18 = param_1; do { bVar2 = false; if (*local_20 != 0) { bVar2 = *local_28 != 0; } if (!bVar2) { return (uint)*local_20 - (uint)*local_28; } if (*local_20 < 0x80) { local_38 = (ulong)*(uint *)(my_unicase_default_page00 + (ulong)*local_20 * 0xc + 4); local_20 = local_20 + 1; } else { iVar1 = my_mb_wc_utf8mb4_no_range(local_18,&local_38,local_20); if (iVar1 < 1) { iVar1 = strcmp((char *)local_20,(char *)local_28); return iVar1; } local_20 = local_20 + iVar1; my_tolower_utf8mb4(local_30,&local_38); } if (*local_28 < 0x80) { local_40 = (ulong)*(uint *)(my_unicase_default_page00 + (ulong)*local_28 * 0xc + 4); local_28 = local_28 + 1; } else { iVar1 = my_mb_wc_utf8mb4_no_range(local_18,&local_40,local_28); if (iVar1 < 1) { iVar1 = strcmp((char *)local_20,(char *)local_28); return iVar1; } local_28 = local_28 + iVar1; my_tolower_utf8mb4(local_30,&local_40); } } while (local_38 == local_40); return (int)local_38 - (int)local_40; }
31,318
minja::Parser::peekSymbols(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&) const
monkey531[P]llama/common/minja.hpp
MacroNode(const Location & location, std::shared_ptr<VariableExpr> && n, Expression::Parameters && p, std::shared_ptr<TemplateNode> && b) : TemplateNode(location), name(std::move(n)), params(std::move(p)), body(std::move(b)) { for (size_t i = 0; i < params.size(); ++i) { const auto & name = params[i].first; if (!name.empty()) { named_param_positions[name] = i; } } }
O1
cpp
minja::Parser::peekSymbols(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&) const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq (%rsi), %r15 movq 0x8(%rsi), %rax movq %rax, (%rsp) cmpq %rax, %r15 setne %bpl je 0x8f24d movq %rdi, %rbx movq 0x18(%rbx), %r14 movq 0x20(%rbx), %rsi subq %rsi, %r14 movq 0x8(%r15), %r13 cmpq %r13, %r14 jl 0x8f20b movq 0x8(%r15), %rdx addq %rsi, %rdx leaq 0x18(%rsp), %rax movq %rax, 0x8(%rsp) leaq 0x8(%rsp), %rdi callq 0x74eae movq 0x10(%rsp), %rdx cmpq 0x8(%r15), %rdx jne 0x8f20b testq %rdx, %rdx je 0x8f248 movq (%r15), %rsi movq 0x8(%rsp), %rdi callq 0x1b980 testl %eax, %eax sete %r12b jmp 0x8f20e xorl %r12d, %r12d cmpq %r13, %r14 jl 0x8f22f movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x8f22f movq 0x18(%rsp), %rsi incq %rsi callq 0x1b940 testb %r12b, %r12b jne 0x8f24d addq $0x20, %r15 cmpq (%rsp), %r15 setne %bpl jne 0x8f1b7 jmp 0x8f24d movb $0x1, %r12b jmp 0x8f20e andb $0x1, %bpl movl %ebp, %eax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZNK5minja6Parser11peekSymbolsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov r15, [rsi] mov rax, [rsi+8] mov [rsp+58h+var_58], rax cmp r15, rax setnz bpl jz loc_8F24D mov rbx, rdi loc_8F1B7: mov r14, [rbx+18h] mov rsi, [rbx+20h] sub r14, rsi mov r13, [r15+8] cmp r14, r13 jl short loc_8F20B mov rdx, [r15+8] add rdx, rsi lea rax, [rsp+58h+var_40] mov [rsp+58h+var_50], rax lea rdi, [rsp+58h+var_50] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIN9__gnu_cxx17__normal_iteratorIPKcS4_EEEEvT_SB_St20forward_iterator_tag; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::forward_iterator_tag) mov rdx, [rsp+58h+var_48] cmp rdx, [r15+8] jnz short loc_8F20B test rdx, rdx jz short loc_8F248 mov rsi, [r15] mov rdi, [rsp+58h+var_50] call _bcmp test eax, eax setz r12b jmp short loc_8F20E loc_8F20B: xor r12d, r12d loc_8F20E: cmp r14, r13 jl short loc_8F22F mov rdi, [rsp+58h+var_50]; void * lea rax, [rsp+58h+var_40] cmp rdi, rax jz short loc_8F22F mov rsi, [rsp+58h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_8F22F: test r12b, r12b jnz short loc_8F24D add r15, 20h ; ' ' cmp r15, [rsp+58h+var_58] setnz bpl jnz loc_8F1B7 jmp short loc_8F24D loc_8F248: mov r12b, 1 jmp short loc_8F20E loc_8F24D: and bpl, 1 mov eax, ebp add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long minja::Parser::peekSymbols(long long a1, _QWORD *a2) { unsigned int v2; // ebp _QWORD *v3; // r15 _BYTE *v4; // rsi long long v5; // r14 long long v6; // r13 long long v7; // rdx bool v8; // r12 _QWORD *v10; // [rsp+0h] [rbp-58h] void *v11; // [rsp+8h] [rbp-50h] BYREF long long v12; // [rsp+10h] [rbp-48h] _QWORD v13[8]; // [rsp+18h] [rbp-40h] BYREF v3 = (_QWORD *)*a2; v10 = (_QWORD *)a2[1]; LOBYTE(v2) = *a2 != (_QWORD)v10; if ( (_QWORD *)*a2 != v10 ) { do { v4 = *(_BYTE **)(a1 + 32); v5 = *(_QWORD *)(a1 + 24) - (_QWORD)v4; v6 = v3[1]; if ( v5 >= v6 && (v7 = (long long)&v4[v3[1]], v11 = v13, std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(&v11, v4, v7), v12 == v3[1]) ) { if ( v12 ) v8 = (unsigned int)bcmp(v11, *v3) == 0; else v8 = 1; } else { v8 = 0; } if ( v5 >= v6 && v11 != v13 ) operator delete(v11, v13[0] + 1LL); if ( v8 ) break; v3 += 4; LOBYTE(v2) = v3 != v10; } while ( v3 != v10 ); } LOBYTE(v2) = v2 & 1; return v2; }
peekSymbols: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV R15,qword ptr [RSI] MOV RAX,qword ptr [RSI + 0x8] MOV qword ptr [RSP],RAX CMP R15,RAX SETNZ BPL JZ 0x0018f24d MOV RBX,RDI LAB_0018f1b7: MOV R14,qword ptr [RBX + 0x18] MOV RSI,qword ptr [RBX + 0x20] SUB R14,RSI MOV R13,qword ptr [R15 + 0x8] CMP R14,R13 JL 0x0018f20b MOV RDX,qword ptr [R15 + 0x8] ADD RDX,RSI LEA RAX,[RSP + 0x18] MOV qword ptr [RSP + 0x8],RAX LEA RDI,[RSP + 0x8] CALL 0x00174eae MOV RDX,qword ptr [RSP + 0x10] CMP RDX,qword ptr [R15 + 0x8] JNZ 0x0018f20b TEST RDX,RDX JZ 0x0018f248 MOV RSI,qword ptr [R15] MOV RDI,qword ptr [RSP + 0x8] CALL 0x0011b980 TEST EAX,EAX SETZ R12B JMP 0x0018f20e LAB_0018f20b: XOR R12D,R12D LAB_0018f20e: CMP R14,R13 JL 0x0018f22f MOV RDI,qword ptr [RSP + 0x8] LEA RAX,[RSP + 0x18] CMP RDI,RAX JZ 0x0018f22f MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011b940 LAB_0018f22f: TEST R12B,R12B JNZ 0x0018f24d ADD R15,0x20 CMP R15,qword ptr [RSP] SETNZ BPL JNZ 0x0018f1b7 JMP 0x0018f24d LAB_0018f248: MOV R12B,0x1 JMP 0x0018f20e LAB_0018f24d: AND BPL,0x1 MOV EAX,EBP ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* minja::Parser::peekSymbols(std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > > const&) const */ ulong __thiscall minja::Parser::peekSymbols(Parser *this,vector *param_1) { int8 *puVar1; long lVar2; long lVar3; long lVar4; int iVar5; int8 unaff_RBP; int8 *puVar6; bool bVar7; long *local_50; size_t local_48; long local_40 [2]; puVar1 = *(int8 **)(param_1 + 8); for (puVar6 = *(int8 **)param_1; puVar6 != puVar1; puVar6 = puVar6 + 4) { lVar2 = *(long *)(this + 0x18); lVar3 = *(long *)(this + 0x20); lVar4 = puVar6[1]; if (lVar2 - lVar3 < lVar4) { LAB_0018f20b: bVar7 = false; } else { local_50 = local_40; std::__cxx11::string:: _M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>> (&local_50,lVar3,puVar6[1] + lVar3); if (local_48 != puVar6[1]) goto LAB_0018f20b; if (local_48 == 0) { bVar7 = true; } else { iVar5 = bcmp(local_50,(void *)*puVar6,local_48); bVar7 = iVar5 == 0; } } if ((lVar4 <= lVar2 - lVar3) && (local_50 != local_40)) { operator_delete(local_50,local_40[0] + 1); } if (bVar7) break; } return CONCAT71((int7)((ulong)unaff_RBP >> 8),puVar6 != puVar1) & 0xffffffff; }
31,319
minja::Parser::peekSymbols(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&) const
monkey531[P]llama/common/minja.hpp
MacroNode(const Location & location, std::shared_ptr<VariableExpr> && n, Expression::Parameters && p, std::shared_ptr<TemplateNode> && b) : TemplateNode(location), name(std::move(n)), params(std::move(p)), body(std::move(b)) { for (size_t i = 0; i < params.size(); ++i) { const auto & name = params[i].first; if (!name.empty()) { named_param_positions[name] = i; } } }
O2
cpp
minja::Parser::peekSymbols(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&) const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %r8, %r15 movq %rcx, %r12 movq %rdx, %r13 movq %rdi, %rbx callq 0x72dec leaq 0x87006(%rip), %rax # 0xfd468 addq $0x10, %rax movq %rax, (%rbx) leaq 0x28(%rbx), %rax movq %rax, 0x10(%rsp) andq $0x0, 0x28(%rbx) movups (%r13), %xmm0 andq $0x0, 0x8(%r13) movups %xmm0, 0x20(%rbx) andq $0x0, (%r13) movups (%r12), %xmm0 movups %xmm0, 0x30(%rbx) movq 0x10(%r12), %rax movq %rax, 0x40(%rbx) xorps %xmm0, %xmm0 andq $0x0, 0x10(%r12) movups %xmm0, (%r12) andq $0x0, 0x50(%rbx) movups (%r15), %xmm1 andq $0x0, 0x8(%r15) movups %xmm1, 0x48(%rbx) andq $0x0, (%r15) leaq 0x30(%rbx), %rax movq %rax, 0x8(%rsp) leaq 0x50(%rbx), %r12 leaq 0x58(%rbx), %r13 leaq 0x88(%rbx), %rax movq %rax, 0x58(%rbx) movq $0x1, 0x60(%rbx) movups %xmm0, 0x68(%rbx) movl $0x3f800000, 0x78(%rbx) # imm = 0x3F800000 movups %xmm0, 0x80(%rbx) xorl %ebp, %ebp pushq $0x30 popq %r14 xorl %r15d, %r15d movq 0x30(%rbx), %rsi movq 0x38(%rbx), %rax subq %rsi, %rax cqto idivq %r14 cmpq %rax, %r15 jae 0x76533 cmpq $0x0, 0x8(%rsi,%rbp) je 0x7652a addq %rbp, %rsi movq %r13, %rdi callq 0x7672c movq %r15, (%rax) incq %r15 addq $0x30, %rbp jmp 0x764ff addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbp movq %r13, %rdi callq 0x76b6e movq %r12, %rdi callq 0x4f7fe movq 0x8(%rsp), %rdi callq 0x61304 movq 0x10(%rsp), %rdi callq 0x4f7fe movq %rbx, %rdi callq 0x77a66 movq %rbp, %rdi callq 0x23fd0 nop
_ZN5minja9MacroNodeC2ERKNS_8LocationEOSt10shared_ptrINS_12VariableExprEEOSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES4_INS_10ExpressionEEESaISI_EEOS4_INS_12TemplateNodeEE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r15, r8 mov r12, rcx mov r13, rdx mov rbx, rdi call _ZN5minja12TemplateNodeC2ERKNS_8LocationE; minja::TemplateNode::TemplateNode(minja::Location const&) lea rax, _ZTVN5minja9MacroNodeE; `vtable for'minja::MacroNode add rax, 10h mov [rbx], rax lea rax, [rbx+28h] mov [rsp+48h+var_38], rax and qword ptr [rbx+28h], 0 movups xmm0, xmmword ptr [r13+0] and qword ptr [r13+8], 0 movups xmmword ptr [rbx+20h], xmm0 and qword ptr [r13+0], 0 movups xmm0, xmmword ptr [r12] movups xmmword ptr [rbx+30h], xmm0 mov rax, [r12+10h] mov [rbx+40h], rax xorps xmm0, xmm0 and qword ptr [r12+10h], 0 movups xmmword ptr [r12], xmm0 and qword ptr [rbx+50h], 0 movups xmm1, xmmword ptr [r15] and qword ptr [r15+8], 0 movups xmmword ptr [rbx+48h], xmm1 and qword ptr [r15], 0 lea rax, [rbx+30h] mov [rsp+48h+var_40], rax lea r12, [rbx+50h] lea r13, [rbx+58h] lea rax, [rbx+88h] mov [rbx+58h], rax mov qword ptr [rbx+60h], 1 movups xmmword ptr [rbx+68h], xmm0 mov dword ptr [rbx+78h], 3F800000h movups xmmword ptr [rbx+80h], xmm0 xor ebp, ebp push 30h ; '0' pop r14 xor r15d, r15d loc_764FF: mov rsi, [rbx+30h] mov rax, [rbx+38h] sub rax, rsi cqo idiv r14 cmp r15, rax jnb short loc_76533 cmp qword ptr [rsi+rbp+8], 0 jz short loc_7652A add rsi, rbp mov rdi, r13 call _ZNSt8__detail9_Map_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS6_mESaIS9_ENS_10_Select1stESt8equal_toIS6_ESt4hashIS6_ENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb1ELb0ELb1EEELb1EEixERS8_; std::__detail::_Map_base<std::string,std::pair<std::string const,ulong>,std::allocator<std::pair<std::string const,ulong>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>,true>::operator[](std::string const&) mov [rax], r15 loc_7652A: inc r15 add rbp, 30h ; '0' jmp short loc_764FF loc_76533: add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbp, rax mov rdi, r13 call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESaIS8_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEED2Ev; std::_Hashtable<std::string,std::pair<std::string const,ulong>,std::allocator<std::pair<std::string const,ulong>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::~_Hashtable() mov rdi, r12 call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() mov rdi, [rsp+arg_0] call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN5minja10ExpressionEEESaISB_EED2Ev; std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::~vector() mov rdi, [rsp+arg_8] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() mov rdi, rbx; this call _ZN5minja12TemplateNodeD2Ev; minja::TemplateNode::~TemplateNode() mov rdi, rbp call __Unwind_Resume
unsigned long long minja::MacroNode::MacroNode(long long a1, _QWORD *a2, __int128 *a3, long long a4, __int128 *a5) { int v8; // ecx int v9; // r8d int v10; // r9d __int128 v11; // xmm0 __int128 v12; // xmm1 long long v13; // rbp unsigned long long i; // r15 long long v15; // rsi unsigned long long result; // rax char v17; // [rsp+0h] [rbp-48h] minja::TemplateNode::TemplateNode((_QWORD *)a1, a2); *(_QWORD *)a1 = &`vtable for'minja::MacroNode + 2; *(_QWORD *)(a1 + 40) = 0LL; v11 = *a3; *((_QWORD *)a3 + 1) = 0LL; *(_OWORD *)(a1 + 32) = v11; *(_QWORD *)a3 = 0LL; *(_OWORD *)(a1 + 48) = *(_OWORD *)a4; *(_QWORD *)(a1 + 64) = *(_QWORD *)(a4 + 16); *(_QWORD *)(a4 + 16) = 0LL; *(_OWORD *)a4 = 0LL; *(_QWORD *)(a1 + 80) = 0LL; v12 = *a5; *((_QWORD *)a5 + 1) = 0LL; *(_OWORD *)(a1 + 72) = v12; *(_QWORD *)a5 = 0LL; *(_QWORD *)(a1 + 88) = a1 + 136; *(_QWORD *)(a1 + 96) = 1LL; *(_OWORD *)(a1 + 104) = 0LL; *(_DWORD *)(a1 + 120) = 1065353216; *(_OWORD *)(a1 + 128) = 0LL; v13 = 0LL; for ( i = 0LL; ; ++i ) { v15 = *(_QWORD *)(a1 + 48); result = (*(_QWORD *)(a1 + 56) - v15) / 48; if ( i >= result ) break; if ( *(_QWORD *)(v15 + v13 + 8) ) *(_QWORD *)std::__detail::_Map_base<std::string,std::pair<std::string const,unsigned long>,std::allocator<std::pair<std::string const,unsigned long>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>,true>::operator[]( (int)a1 + 88, (int)v13 + (int)v15, (*(_QWORD *)(a1 + 56) - v15) % 48, v8, v9, v10, v17) = i; v13 += 48LL; } return result; }
MacroNode: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R15,R8 MOV R12,RCX MOV R13,RDX MOV RBX,RDI CALL 0x00172dec LEA RAX,[0x1fd468] ADD RAX,0x10 MOV qword ptr [RBX],RAX LEA RAX,[RBX + 0x28] MOV qword ptr [RSP + 0x10],RAX AND qword ptr [RBX + 0x28],0x0 MOVUPS XMM0,xmmword ptr [R13] AND qword ptr [R13 + 0x8],0x0 MOVUPS xmmword ptr [RBX + 0x20],XMM0 AND qword ptr [R13],0x0 MOVUPS XMM0,xmmword ptr [R12] MOVUPS xmmword ptr [RBX + 0x30],XMM0 MOV RAX,qword ptr [R12 + 0x10] MOV qword ptr [RBX + 0x40],RAX XORPS XMM0,XMM0 AND qword ptr [R12 + 0x10],0x0 MOVUPS xmmword ptr [R12],XMM0 AND qword ptr [RBX + 0x50],0x0 MOVUPS XMM1,xmmword ptr [R15] AND qword ptr [R15 + 0x8],0x0 MOVUPS xmmword ptr [RBX + 0x48],XMM1 AND qword ptr [R15],0x0 LEA RAX,[RBX + 0x30] MOV qword ptr [RSP + 0x8],RAX LEA R12,[RBX + 0x50] LEA R13,[RBX + 0x58] LEA RAX,[RBX + 0x88] MOV qword ptr [RBX + 0x58],RAX MOV qword ptr [RBX + 0x60],0x1 MOVUPS xmmword ptr [RBX + 0x68],XMM0 MOV dword ptr [RBX + 0x78],0x3f800000 MOVUPS xmmword ptr [RBX + 0x80],XMM0 XOR EBP,EBP PUSH 0x30 POP R14 XOR R15D,R15D LAB_001764ff: MOV RSI,qword ptr [RBX + 0x30] MOV RAX,qword ptr [RBX + 0x38] SUB RAX,RSI CQO IDIV R14 CMP R15,RAX JNC 0x00176533 CMP qword ptr [RSI + RBP*0x1 + 0x8],0x0 JZ 0x0017652a ADD RSI,RBP LAB_0017651f: MOV RDI,R13 CALL 0x0017672c LAB_00176527: MOV qword ptr [RAX],R15 LAB_0017652a: INC R15 ADD RBP,0x30 JMP 0x001764ff LAB_00176533: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* minja::MacroNode::MacroNode(minja::Location const&, std::shared_ptr<minja::VariableExpr>&&, std::vector<std::pair<std::__cxx11::string, std::shared_ptr<minja::Expression> >, std::allocator<std::pair<std::__cxx11::string, std::shared_ptr<minja::Expression> > > >&&, std::shared_ptr<minja::TemplateNode>&&) */ void __thiscall minja::MacroNode::MacroNode (MacroNode *this,Location *param_1,shared_ptr *param_2,vector *param_3,shared_ptr *param_4 ) { long lVar1; int8 uVar2; ulong *puVar3; long lVar4; ulong uVar5; TemplateNode::TemplateNode((TemplateNode *)this,param_1); *(int ***)this = &PTR_do_render_001fd478; *(int8 *)(this + 0x28) = 0; uVar2 = *(int8 *)(param_2 + 8); *(int8 *)(param_2 + 8) = 0; *(int8 *)(this + 0x20) = *(int8 *)param_2; *(int8 *)(this + 0x28) = uVar2; *(int8 *)param_2 = 0; uVar2 = *(int8 *)(param_3 + 8); *(int8 *)(this + 0x30) = *(int8 *)param_3; *(int8 *)(this + 0x38) = uVar2; *(int8 *)(this + 0x40) = *(int8 *)(param_3 + 0x10); *(int8 *)(param_3 + 0x10) = 0; *(int8 *)param_3 = 0; *(int8 *)(param_3 + 8) = 0; *(int8 *)(this + 0x50) = 0; uVar2 = *(int8 *)(param_4 + 8); *(int8 *)(param_4 + 8) = 0; *(int8 *)(this + 0x48) = *(int8 *)param_4; *(int8 *)(this + 0x50) = uVar2; *(int8 *)param_4 = 0; *(MacroNode **)(this + 0x58) = this + 0x88; *(int8 *)(this + 0x60) = 1; *(int8 *)(this + 0x68) = 0; *(int8 *)(this + 0x70) = 0; *(int4 *)(this + 0x78) = 0x3f800000; *(int8 *)(this + 0x80) = 0; *(int8 *)(this + 0x88) = 0; lVar4 = 0; for (uVar5 = 0; lVar1 = *(long *)(this + 0x30), uVar5 < (ulong)((*(long *)(this + 0x38) - lVar1) / 0x30); uVar5 = uVar5 + 1) { if (*(long *)(lVar1 + 8 + lVar4) != 0) { /* try { // try from 0017651f to 00176526 has its CatchHandler @ 00176542 */ puVar3 = (ulong *)std::__detail:: _Map_base<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>,true> ::operator[]((_Map_base<std::__cxx11::string,std::pair<std::__cxx11::string_const,unsigned_long>,std::allocator<std::pair<std::__cxx11::string_const,unsigned_long>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>,true> *)(this + 0x58),(string *)(lVar1 + lVar4)); *puVar3 = uVar5; } lVar4 = lVar4 + 0x30; } return; }
31,320
minja::Parser::peekSymbols(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&) const
monkey531[P]llama/common/minja.hpp
MacroNode(const Location & location, std::shared_ptr<VariableExpr> && n, Expression::Parameters && p, std::shared_ptr<TemplateNode> && b) : TemplateNode(location), name(std::move(n)), params(std::move(p)), body(std::move(b)) { for (size_t i = 0; i < params.size(); ++i) { const auto & name = params[i].first; if (!name.empty()) { named_param_positions[name] = i; } } }
O3
cpp
minja::Parser::peekSymbols(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&) const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq (%rsi), %r12 movq 0x8(%rsi), %r13 cmpq %r13, %r12 je 0x897d7 movq %rdi, %rbx leaq 0x18(%rsp), %rbp movq 0x18(%rbx), %rax movq 0x20(%rbx), %rsi subq %rsi, %rax movq 0x8(%r12), %rdx cmpq %rdx, %rax jl 0x897ca addq %rsi, %rdx movq %rbp, 0x8(%rsp) leaq 0x8(%rsp), %rdi callq 0x70172 movq 0x10(%rsp), %rdx cmpq 0x8(%r12), %rdx jne 0x897a3 movq 0x8(%rsp), %r15 testq %rdx, %rdx je 0x897ad movq (%r12), %rsi movq %r15, %rdi callq 0x1a930 testl %eax, %eax sete %r14b jmp 0x897b0 movq 0x8(%rsp), %r15 xorl %r14d, %r14d jmp 0x897b0 movb $0x1, %r14b cmpq %rbp, %r15 je 0x897c5 movq 0x18(%rsp), %rsi incq %rsi movq %r15, %rdi callq 0x1a8f0 testb %r14b, %r14b jne 0x897db addq $0x20, %r12 cmpq %r13, %r12 jne 0x89752 xorl %eax, %eax jmp 0x897dd movb $0x1, %al addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZNK5minja6Parser11peekSymbolsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov r12, [rsi] mov r13, [rsi+8] cmp r12, r13 jz loc_897D7 mov rbx, rdi lea rbp, [rsp+58h+var_40] loc_89752: mov rax, [rbx+18h] mov rsi, [rbx+20h] sub rax, rsi mov rdx, [r12+8] cmp rax, rdx jl short loc_897CA add rdx, rsi mov [rsp+58h+var_50], rbp lea rdi, [rsp+58h+var_50] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIN9__gnu_cxx17__normal_iteratorIPKcS4_EEEEvT_SB_St20forward_iterator_tag; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::forward_iterator_tag) mov rdx, [rsp+58h+var_48] cmp rdx, [r12+8] jnz short loc_897A3 mov r15, [rsp+58h+var_50] test rdx, rdx jz short loc_897AD mov rsi, [r12] mov rdi, r15 call _bcmp test eax, eax setz r14b jmp short loc_897B0 loc_897A3: mov r15, [rsp+58h+var_50] xor r14d, r14d jmp short loc_897B0 loc_897AD: mov r14b, 1 loc_897B0: cmp r15, rbp jz short loc_897C5 mov rsi, [rsp+58h+var_40] inc rsi; unsigned __int64 mov rdi, r15; void * call __ZdlPvm; operator delete(void *,ulong) loc_897C5: test r14b, r14b jnz short loc_897DB loc_897CA: add r12, 20h ; ' ' cmp r12, r13 jnz loc_89752 loc_897D7: xor eax, eax jmp short loc_897DD loc_897DB: mov al, 1 loc_897DD: add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
char minja::Parser::peekSymbols(long long a1, _QWORD *a2) { _QWORD *v2; // r12 _QWORD *v3; // r13 _BYTE *v4; // rsi long long v5; // rdx _QWORD *v6; // r15 bool v7; // r14 void *v9; // [rsp+8h] [rbp-50h] BYREF long long v10; // [rsp+10h] [rbp-48h] _QWORD v11[8]; // [rsp+18h] [rbp-40h] BYREF v2 = (_QWORD *)*a2; v3 = (_QWORD *)a2[1]; if ( (_QWORD *)*a2 == v3 ) return 0; while ( 1 ) { v4 = *(_BYTE **)(a1 + 32); v5 = v2[1]; if ( *(_QWORD *)(a1 + 24) - (_QWORD)v4 >= v5 ) { v9 = v11; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>( (long long)&v9, v4, (long long)&v4[v5]); if ( v10 == v2[1] ) { v6 = v9; v7 = !v10 || (unsigned int)bcmp(v9, *v2) == 0; } else { v6 = v9; v7 = 0; } if ( v6 != v11 ) operator delete(v6, v11[0] + 1LL); if ( v7 ) break; } v2 += 4; if ( v2 == v3 ) return 0; } return 1; }
31,321
set_prealloc_root
eloqsql/mysys/my_alloc.c
void set_prealloc_root(MEM_ROOT *root, char *ptr) { USED_MEM *next; for (next=root->used; next ; next=next->next) { if ((char*) next <= ptr && (char*) next + next->size > ptr) { root->pre_alloc=next; return; } } for (next=root->free ; next ; next=next->next) { if ((char*) next <= ptr && (char*) next + next->size > ptr) { root->pre_alloc=next; return; } } }
O0
c
set_prealloc_root: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x18(%rbp) cmpq $0x0, -0x18(%rbp) je 0xedc48 movq -0x18(%rbp), %rax cmpq -0x10(%rbp), %rax ja 0xedc39 movq -0x18(%rbp), %rax movq -0x18(%rbp), %rcx addq 0x10(%rcx), %rax cmpq -0x10(%rbp), %rax jbe 0xedc39 movq -0x18(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x10(%rax) jmp 0xedc93 jmp 0xedc3b movq -0x18(%rbp), %rax movq (%rax), %rax movq %rax, -0x18(%rbp) jmp 0xedc08 movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x18(%rbp) cmpq $0x0, -0x18(%rbp) je 0xedc93 movq -0x18(%rbp), %rax cmpq -0x10(%rbp), %rax ja 0xedc84 movq -0x18(%rbp), %rax movq -0x18(%rbp), %rcx addq 0x10(%rcx), %rax cmpq -0x10(%rbp), %rax jbe 0xedc84 movq -0x18(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x10(%rax) jmp 0xedc93 jmp 0xedc86 movq -0x18(%rbp), %rax movq (%rax), %rax movq %rax, -0x18(%rbp) jmp 0xedc53 popq %rbp retq nopw %cs:(%rax,%rax)
set_prealloc_root: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] mov rax, [rax+8] mov [rbp+var_18], rax loc_EDC08: cmp [rbp+var_18], 0 jz short loc_EDC48 mov rax, [rbp+var_18] cmp rax, [rbp+var_10] ja short loc_EDC39 mov rax, [rbp+var_18] mov rcx, [rbp+var_18] add rax, [rcx+10h] cmp rax, [rbp+var_10] jbe short loc_EDC39 mov rcx, [rbp+var_18] mov rax, [rbp+var_8] mov [rax+10h], rcx jmp short loc_EDC93 loc_EDC39: jmp short $+2 loc_EDC3B: mov rax, [rbp+var_18] mov rax, [rax] mov [rbp+var_18], rax jmp short loc_EDC08 loc_EDC48: mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_18], rax loc_EDC53: cmp [rbp+var_18], 0 jz short loc_EDC93 mov rax, [rbp+var_18] cmp rax, [rbp+var_10] ja short loc_EDC84 mov rax, [rbp+var_18] mov rcx, [rbp+var_18] add rax, [rcx+10h] cmp rax, [rbp+var_10] jbe short loc_EDC84 mov rcx, [rbp+var_18] mov rax, [rbp+var_8] mov [rax+10h], rcx jmp short loc_EDC93 loc_EDC84: jmp short $+2 loc_EDC86: mov rax, [rbp+var_18] mov rax, [rax] mov [rbp+var_18], rax jmp short loc_EDC53 loc_EDC93: pop rbp retn
_QWORD * set_prealloc_root(_QWORD *a1, unsigned long long a2) { _QWORD *result; // rax _QWORD *i; // [rsp+0h] [rbp-18h] _QWORD *j; // [rsp+0h] [rbp-18h] for ( i = (_QWORD *)a1[1]; i; i = (_QWORD *)*i ) { if ( (unsigned long long)i <= a2 && (unsigned long long)i + i[2] > a2 ) { result = a1; a1[2] = i; return result; } } result = (_QWORD *)*a1; for ( j = (_QWORD *)*a1; j; j = (_QWORD *)*j ) { if ( (unsigned long long)j <= a2 && (unsigned long long)j + j[2] > a2 ) { result = a1; a1[2] = j; return result; } result = (_QWORD *)*j; } return result; }
set_prealloc_root: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x18],RAX LAB_001edc08: CMP qword ptr [RBP + -0x18],0x0 JZ 0x001edc48 MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x10] JA 0x001edc39 MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x18] ADD RAX,qword ptr [RCX + 0x10] CMP RAX,qword ptr [RBP + -0x10] JBE 0x001edc39 MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x10],RCX JMP 0x001edc93 LAB_001edc39: JMP 0x001edc3b LAB_001edc3b: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x18],RAX JMP 0x001edc08 LAB_001edc48: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x18],RAX LAB_001edc53: CMP qword ptr [RBP + -0x18],0x0 JZ 0x001edc93 MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x10] JA 0x001edc84 MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x18] ADD RAX,qword ptr [RCX + 0x10] CMP RAX,qword ptr [RBP + -0x10] JBE 0x001edc84 MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x10],RCX JMP 0x001edc93 LAB_001edc84: JMP 0x001edc86 LAB_001edc86: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x18],RAX JMP 0x001edc53 LAB_001edc93: POP RBP RET
void set_prealloc_root(int8 *param_1,int8 *param_2) { int8 *local_20; local_20 = (int8 *)param_1[1]; while( true ) { if (local_20 == (int8 *)0x0) { local_20 = (int8 *)*param_1; while( true ) { if (local_20 == (int8 *)0x0) { return; } if ((local_20 <= param_2) && (param_2 < (int8 *)((long)local_20 + local_20[2]))) break; local_20 = (int8 *)*local_20; } param_1[2] = local_20; return; } if ((local_20 <= param_2) && (param_2 < (int8 *)((long)local_20 + local_20[2]))) break; local_20 = (int8 *)*local_20; } param_1[2] = local_20; return; }
31,322
skip_trailing_space
eloqsql/strings/strings_def.h
static inline const uchar *skip_trailing_space(const uchar *ptr,size_t len) { const uchar *end= ptr + len; if (len > 20) { const uchar *end_words= (const uchar *)(intptr) (((ulonglong)(intptr)end) / SIZEOF_INT * SIZEOF_INT); const uchar *start_words= (const uchar *)(intptr) ((((ulonglong)(intptr)ptr) + SIZEOF_INT - 1) / SIZEOF_INT * SIZEOF_INT); DBUG_ASSERT(((ulonglong)(intptr)ptr) >= SIZEOF_INT); if (end_words > ptr) { while (end > end_words && end[-1] == 0x20) end--; if (end[-1] == 0x20 && start_words < end_words) while (end > start_words && ((unsigned *)end)[-1] == SPACE_INT) end -= SIZEOF_INT; } } while (end > ptr && end[-1] == 0x20) end--; return (end); }
O0
c
skip_trailing_space: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax addq -0x10(%rbp), %rax movq %rax, -0x18(%rbp) cmpq $0x14, -0x10(%rbp) jbe 0x5e3fa movq -0x18(%rbp), %rax shrq $0x2, %rax shlq $0x2, %rax movq %rax, -0x20(%rbp) movq -0x8(%rbp), %rax addq $0x4, %rax subq $0x1, %rax shrq $0x2, %rax shlq $0x2, %rax movq %rax, -0x28(%rbp) jmp 0x5e35d movq -0x20(%rbp), %rax cmpq -0x8(%rbp), %rax jbe 0x5e3f8 jmp 0x5e36d movq -0x18(%rbp), %rcx xorl %eax, %eax cmpq -0x20(%rbp), %rcx movb %al, -0x29(%rbp) jbe 0x5e38d movq -0x18(%rbp), %rax movzbl -0x1(%rax), %eax cmpl $0x20, %eax sete %al movb %al, -0x29(%rbp) movb -0x29(%rbp), %al testb $0x1, %al jne 0x5e396 jmp 0x5e3a4 movq -0x18(%rbp), %rax addq $-0x1, %rax movq %rax, -0x18(%rbp) jmp 0x5e36d movq -0x18(%rbp), %rax movzbl -0x1(%rax), %eax cmpl $0x20, %eax jne 0x5e3f6 movq -0x28(%rbp), %rax cmpq -0x20(%rbp), %rax jae 0x5e3f6 jmp 0x5e3bd movq -0x18(%rbp), %rcx xorl %eax, %eax cmpq -0x28(%rbp), %rcx movb %al, -0x2a(%rbp) jbe 0x5e3dd movq -0x18(%rbp), %rax cmpl $0x20202020, -0x4(%rax) # imm = 0x20202020 sete %al movb %al, -0x2a(%rbp) movb -0x2a(%rbp), %al testb $0x1, %al jne 0x5e3e6 jmp 0x5e3f4 movq -0x18(%rbp), %rax addq $-0x4, %rax movq %rax, -0x18(%rbp) jmp 0x5e3bd jmp 0x5e3f6 jmp 0x5e3f8 jmp 0x5e3fa jmp 0x5e3fc movq -0x18(%rbp), %rcx xorl %eax, %eax cmpq -0x8(%rbp), %rcx movb %al, -0x2b(%rbp) jbe 0x5e41c movq -0x18(%rbp), %rax movzbl -0x1(%rax), %eax cmpl $0x20, %eax sete %al movb %al, -0x2b(%rbp) movb -0x2b(%rbp), %al testb $0x1, %al jne 0x5e425 jmp 0x5e433 movq -0x18(%rbp), %rax addq $-0x1, %rax movq %rax, -0x18(%rbp) jmp 0x5e3fc movq -0x18(%rbp), %rax popq %rbp retq nopl (%rax)
skip_trailing_space_2: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] add rax, [rbp+var_10] mov [rbp+var_18], rax cmp [rbp+var_10], 14h jbe loc_5E3FA mov rax, [rbp+var_18] shr rax, 2 shl rax, 2 mov [rbp+var_20], rax mov rax, [rbp+var_8] add rax, 4 sub rax, 1 shr rax, 2 shl rax, 2 mov [rbp+var_28], rax jmp short $+2 loc_5E35D: mov rax, [rbp+var_20] cmp rax, [rbp+var_8] jbe loc_5E3F8 jmp short $+2 loc_5E36D: mov rcx, [rbp+var_18] xor eax, eax cmp rcx, [rbp+var_20] mov [rbp+var_29], al jbe short loc_5E38D mov rax, [rbp+var_18] movzx eax, byte ptr [rax-1] cmp eax, 20h ; ' ' setz al mov [rbp+var_29], al loc_5E38D: mov al, [rbp+var_29] test al, 1 jnz short loc_5E396 jmp short loc_5E3A4 loc_5E396: mov rax, [rbp+var_18] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_18], rax jmp short loc_5E36D loc_5E3A4: mov rax, [rbp+var_18] movzx eax, byte ptr [rax-1] cmp eax, 20h ; ' ' jnz short loc_5E3F6 mov rax, [rbp+var_28] cmp rax, [rbp+var_20] jnb short loc_5E3F6 jmp short $+2 loc_5E3BD: mov rcx, [rbp+var_18] xor eax, eax cmp rcx, [rbp+var_28] mov [rbp+var_2A], al jbe short loc_5E3DD mov rax, [rbp+var_18] cmp dword ptr [rax-4], 20202020h setz al mov [rbp+var_2A], al loc_5E3DD: mov al, [rbp+var_2A] test al, 1 jnz short loc_5E3E6 jmp short loc_5E3F4 loc_5E3E6: mov rax, [rbp+var_18] add rax, 0FFFFFFFFFFFFFFFCh mov [rbp+var_18], rax jmp short loc_5E3BD loc_5E3F4: jmp short $+2 loc_5E3F6: jmp short $+2 loc_5E3F8: jmp short $+2 loc_5E3FA: jmp short $+2 loc_5E3FC: mov rcx, [rbp+var_18] xor eax, eax cmp rcx, [rbp+var_8] mov [rbp+var_2B], al jbe short loc_5E41C mov rax, [rbp+var_18] movzx eax, byte ptr [rax-1] cmp eax, 20h ; ' ' setz al mov [rbp+var_2B], al loc_5E41C: mov al, [rbp+var_2B] test al, 1 jnz short loc_5E425 jmp short loc_5E433 loc_5E425: mov rax, [rbp+var_18] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_18], rax jmp short loc_5E3FC loc_5E433: mov rax, [rbp+var_18] pop rbp retn
unsigned long long skip_trailing_space_2(unsigned long long a1, unsigned long long a2) { bool v3; // [rsp+1h] [rbp-2Bh] bool v4; // [rsp+2h] [rbp-2Ah] bool v5; // [rsp+3h] [rbp-29h] unsigned long long v6; // [rsp+4h] [rbp-28h] unsigned long long v7; // [rsp+Ch] [rbp-20h] unsigned long long v8; // [rsp+14h] [rbp-18h] v8 = a2 + a1; if ( a2 > 0x14 ) { v7 = 4 * (v8 >> 2); v6 = 4 * ((a1 + 3) >> 2); if ( v7 > a1 ) { while ( 1 ) { v5 = 0; if ( v8 > v7 ) v5 = *(_BYTE *)(v8 - 1) == 32; if ( !v5 ) break; --v8; } if ( *(_BYTE *)(v8 - 1) == 32 && v6 < v7 ) { while ( 1 ) { v4 = 0; if ( v8 > v6 ) v4 = *(_DWORD *)(v8 - 4) == 538976288; if ( !v4 ) break; v8 -= 4LL; } } } } while ( 1 ) { v3 = 0; if ( v8 > a1 ) v3 = *(_BYTE *)(v8 - 1) == 32; if ( !v3 ) break; --v8; } return v8; }
skip_trailing_space: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] ADD RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x18],RAX CMP qword ptr [RBP + -0x10],0x14 JBE 0x0015e3fa MOV RAX,qword ptr [RBP + -0x18] SHR RAX,0x2 SHL RAX,0x2 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x4 SUB RAX,0x1 SHR RAX,0x2 SHL RAX,0x2 MOV qword ptr [RBP + -0x28],RAX JMP 0x0015e35d LAB_0015e35d: MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x8] JBE 0x0015e3f8 JMP 0x0015e36d LAB_0015e36d: MOV RCX,qword ptr [RBP + -0x18] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x20] MOV byte ptr [RBP + -0x29],AL JBE 0x0015e38d MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + -0x1] CMP EAX,0x20 SETZ AL MOV byte ptr [RBP + -0x29],AL LAB_0015e38d: MOV AL,byte ptr [RBP + -0x29] TEST AL,0x1 JNZ 0x0015e396 JMP 0x0015e3a4 LAB_0015e396: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,-0x1 MOV qword ptr [RBP + -0x18],RAX JMP 0x0015e36d LAB_0015e3a4: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + -0x1] CMP EAX,0x20 JNZ 0x0015e3f6 MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x20] JNC 0x0015e3f6 JMP 0x0015e3bd LAB_0015e3bd: MOV RCX,qword ptr [RBP + -0x18] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x28] MOV byte ptr [RBP + -0x2a],AL JBE 0x0015e3dd MOV RAX,qword ptr [RBP + -0x18] CMP dword ptr [RAX + -0x4],0x20202020 SETZ AL MOV byte ptr [RBP + -0x2a],AL LAB_0015e3dd: MOV AL,byte ptr [RBP + -0x2a] TEST AL,0x1 JNZ 0x0015e3e6 JMP 0x0015e3f4 LAB_0015e3e6: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,-0x4 MOV qword ptr [RBP + -0x18],RAX JMP 0x0015e3bd LAB_0015e3f4: JMP 0x0015e3f6 LAB_0015e3f6: JMP 0x0015e3f8 LAB_0015e3f8: JMP 0x0015e3fa LAB_0015e3fa: JMP 0x0015e3fc LAB_0015e3fc: MOV RCX,qword ptr [RBP + -0x18] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x8] MOV byte ptr [RBP + -0x2b],AL JBE 0x0015e41c MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + -0x1] CMP EAX,0x20 SETZ AL MOV byte ptr [RBP + -0x2b],AL LAB_0015e41c: MOV AL,byte ptr [RBP + -0x2b] TEST AL,0x1 JNZ 0x0015e425 JMP 0x0015e433 LAB_0015e425: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,-0x1 MOV qword ptr [RBP + -0x18],RAX JMP 0x0015e3fc LAB_0015e433: MOV RAX,qword ptr [RBP + -0x18] POP RBP RET
ulong skip_trailing_space(ulong param_1,ulong param_2) { ulong uVar1; ulong uVar2; bool bVar3; ulong local_20; local_20 = param_1 + param_2; if (0x14 < param_2) { uVar1 = local_20 & 0xfffffffffffffffc; uVar2 = param_1 + 3 & 0xfffffffffffffffc; if (param_1 < uVar1) { while( true ) { bVar3 = false; if (uVar1 < local_20) { bVar3 = *(char *)(local_20 - 1) == ' '; } if (!bVar3) break; local_20 = local_20 - 1; } if ((*(char *)(local_20 - 1) == ' ') && (uVar2 < uVar1)) { while( true ) { bVar3 = false; if (uVar2 < local_20) { bVar3 = *(int *)(local_20 - 4) == 0x20202020; } if (!bVar3) break; local_20 = local_20 - 4; } } } } while( true ) { bVar3 = false; if (param_1 < local_20) { bVar3 = *(char *)(local_20 - 1) == ' '; } if (!bVar3) break; local_20 = local_20 - 1; } return local_20; }
31,323
LefDefParser::defiIOTiming::setVariable(char const*, double, double)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiIOTiming.cpp
void defiIOTiming::setVariable(const char* riseFall, double min, double max) { if (*riseFall == 'R') { hasVariableRise_ = 1; variableRiseMin_ = min; variableRiseMax_ = max; } else if (*riseFall == 'F') { hasVariableFall_ = 1; variableFallMin_ = min; variableFallMax_ = max; } else { defiError(0, 6060, "ERROR (DEFPARS-6060): Invalid value specified for IOTIMING rise/fall. The valid value for rise is 'R' and for fall is 'F'. Specify a valid value and then try again.", defData); } }
O0
cpp
LefDefParser::defiIOTiming::setVariable(char const*, double, double): subq $0x28, %rsp movq %rdi, 0x20(%rsp) movq %rsi, 0x18(%rsp) movsd %xmm0, 0x10(%rsp) movsd %xmm1, 0x8(%rsp) movq 0x20(%rsp), %rax movq %rax, (%rsp) movq 0x18(%rsp), %rax movsbl (%rax), %eax cmpl $0x52, %eax jne 0x17450 movq (%rsp), %rax movb $0x1, 0x49(%rax) movsd 0x10(%rsp), %xmm0 movsd %xmm0, 0x60(%rax) movsd 0x8(%rsp), %xmm0 movsd %xmm0, 0x70(%rax) jmp 0x1749d movq 0x18(%rsp), %rax movsbl (%rax), %eax cmpl $0x46, %eax jne 0x1747d movq (%rsp), %rax movb $0x1, 0x4a(%rax) movsd 0x10(%rsp), %xmm0 movsd %xmm0, 0x58(%rax) movsd 0x8(%rsp), %xmm0 movsd %xmm0, 0x68(%rax) jmp 0x1749b movq (%rsp), %rax movq 0xa8(%rax), %rcx xorl %edi, %edi movl $0x17ac, %esi # imm = 0x17AC leaq 0x5755d(%rip), %rdx # 0x6e9f3 callq 0x277e0 jmp 0x1749d addq $0x28, %rsp retq nopw %cs:(%rax,%rax)
_ZN12LefDefParser12defiIOTiming11setVariableEPKcdd: sub rsp, 28h mov [rsp+28h+var_8], rdi mov [rsp+28h+var_10], rsi movsd [rsp+28h+var_18], xmm0 movsd [rsp+28h+var_20], xmm1 mov rax, [rsp+28h+var_8] mov [rsp+28h+var_28], rax mov rax, [rsp+28h+var_10] movsx eax, byte ptr [rax] cmp eax, 52h ; 'R' jnz short loc_17450 mov rax, [rsp+28h+var_28] mov byte ptr [rax+49h], 1 movsd xmm0, [rsp+28h+var_18] movsd qword ptr [rax+60h], xmm0 movsd xmm0, [rsp+28h+var_20] movsd qword ptr [rax+70h], xmm0 jmp short loc_1749D loc_17450: mov rax, [rsp+28h+var_10] movsx eax, byte ptr [rax] cmp eax, 46h ; 'F' jnz short loc_1747D mov rax, [rsp+28h+var_28] mov byte ptr [rax+4Ah], 1 movsd xmm0, [rsp+28h+var_18] movsd qword ptr [rax+58h], xmm0 movsd xmm0, [rsp+28h+var_20] movsd qword ptr [rax+68h], xmm0 jmp short loc_1749B loc_1747D: mov rax, [rsp+28h+var_28] mov rcx, [rax+0A8h]; char * xor edi, edi; this mov esi, 17ACh; int lea rdx, aErrorDefpars60; "ERROR (DEFPARS-6060): Invalid value spe"... call _ZN12LefDefParser9defiErrorEiiPKcPNS_8defrDataE; LefDefParser::defiError(int,int,char const*,LefDefParser::defrData *) loc_1749B: jmp short $+2 loc_1749D: add rsp, 28h retn
LefDefParser::defiIOTiming * LefDefParser::defiIOTiming::setVariable( const char **this, const char *a2, double a3, double a4, long long a5, long long a6, LefDefParser::defrData *a7) { LefDefParser::defiIOTiming *result; // rax if ( *a2 == 82 ) { result = (LefDefParser::defiIOTiming *)this; *((_BYTE *)this + 73) = 1; *((double *)this + 12) = a3; *((double *)this + 14) = a4; } else if ( *a2 == 70 ) { result = (LefDefParser::defiIOTiming *)this; *((_BYTE *)this + 74) = 1; *((double *)this + 11) = a3; *((double *)this + 13) = a4; } else { return (LefDefParser::defiIOTiming *)LefDefParser::defiError( 0LL, 6060, (int)"ERROR (DEFPARS-6060): Invalid value specified for IOTIMING rise/fall. Th" "e valid value for rise is 'R' and for fall is 'F'. Specify a valid value" " and then try again.", this[21], a7); } return result; }
setVariable: SUB RSP,0x28 MOV qword ptr [RSP + 0x20],RDI MOV qword ptr [RSP + 0x18],RSI MOVSD qword ptr [RSP + 0x10],XMM0 MOVSD qword ptr [RSP + 0x8],XMM1 MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP],RAX MOV RAX,qword ptr [RSP + 0x18] MOVSX EAX,byte ptr [RAX] CMP EAX,0x52 JNZ 0x00117450 MOV RAX,qword ptr [RSP] MOV byte ptr [RAX + 0x49],0x1 MOVSD XMM0,qword ptr [RSP + 0x10] MOVSD qword ptr [RAX + 0x60],XMM0 MOVSD XMM0,qword ptr [RSP + 0x8] MOVSD qword ptr [RAX + 0x70],XMM0 JMP 0x0011749d LAB_00117450: MOV RAX,qword ptr [RSP + 0x18] MOVSX EAX,byte ptr [RAX] CMP EAX,0x46 JNZ 0x0011747d MOV RAX,qword ptr [RSP] MOV byte ptr [RAX + 0x4a],0x1 MOVSD XMM0,qword ptr [RSP + 0x10] MOVSD qword ptr [RAX + 0x58],XMM0 MOVSD XMM0,qword ptr [RSP + 0x8] MOVSD qword ptr [RAX + 0x68],XMM0 JMP 0x0011749b LAB_0011747d: MOV RAX,qword ptr [RSP] MOV RCX,qword ptr [RAX + 0xa8] XOR EDI,EDI MOV ESI,0x17ac LEA RDX,[0x16e9f3] CALL 0x001277e0 LAB_0011749b: JMP 0x0011749d LAB_0011749d: ADD RSP,0x28 RET
/* LefDefParser::defiIOTiming::setVariable(char const*, double, double) */ void __thiscall LefDefParser::defiIOTiming::setVariable (defiIOTiming *this,char *param_1,double param_2,double param_3) { if (*param_1 == 'R') { this[0x49] = (defiIOTiming)0x1; *(double *)(this + 0x60) = param_2; *(double *)(this + 0x70) = param_3; } else if (*param_1 == 'F') { this[0x4a] = (defiIOTiming)0x1; *(double *)(this + 0x58) = param_2; *(double *)(this + 0x68) = param_3; } else { defiError(0,0x17ac, "ERROR (DEFPARS-6060): Invalid value specified for IOTIMING rise/fall. The valid value for rise is \'R\' and for fall is \'F\'. Specify a valid value and then try again." ,*(defrData **)(this + 0xa8)); } return; }
31,324
Catch::RunContext::handleUnfinishedSections()
AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.cpp
void RunContext::handleUnfinishedSections() { // If sections ended prematurely due to an exception we stored their // infos here so we can tear them down outside the unwind process. for (auto it = m_unfinishedSections.rbegin(), itEnd = m_unfinishedSections.rend(); it != itEnd; ++it) sectionEnded(CATCH_MOVE(*it)); m_unfinishedSections.clear(); }
O3
cpp
Catch::RunContext::handleUnfinishedSections(): pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax leaq 0x180(%rdi), %rbx movq 0x180(%rdi), %r14 movq 0x188(%rdi), %r12 cmpq %r14, %r12 je 0x600f5 movq %rdi, %r15 addq $-0x58, %r12 movq (%r15), %rax movq %r15, %rdi movq %r12, %rsi callq *0x18(%rax) cmpq %r14, %r12 jne 0x600dd movq (%rbx), %r14 movq %rbx, %rdi movq %r14, %rsi addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 jmp 0x87ca4 nop
_ZN5Catch10RunContext24handleUnfinishedSectionsEv: push r15 push r14 push r12 push rbx push rax lea rbx, [rdi+180h] mov r14, [rdi+180h] mov r12, [rdi+188h] cmp r12, r14 jz short loc_600F5 mov r15, rdi loc_600DD: add r12, 0FFFFFFFFFFFFFFA8h mov rax, [r15] mov rdi, r15 mov rsi, r12 call qword ptr [rax+18h] cmp r12, r14 jnz short loc_600DD mov r14, [rbx] loc_600F5: mov rdi, rbx mov rsi, r14 add rsp, 8 pop rbx pop r12 pop r14 pop r15 jmp _ZNSt6vectorIN5Catch14SectionEndInfoESaIS1_EE15_M_erase_at_endEPS1_; std::vector<Catch::SectionEndInfo>::_M_erase_at_end(Catch::SectionEndInfo*)
long long Catch::RunContext::handleUnfinishedSections(Catch::RunContext *this) { long long *v1; // rbx long long v2; // r14 long long v3; // r12 v1 = (long long *)((char *)this + 384); v2 = *((_QWORD *)this + 48); v3 = *((_QWORD *)this + 49); if ( v3 != v2 ) { do { v3 -= 88LL; (*(void ( **)(Catch::RunContext *, long long))(*(_QWORD *)this + 24LL))(this, v3); } while ( v3 != v2 ); v2 = *v1; } return std::vector<Catch::SectionEndInfo>::_M_erase_at_end(v1, v2); }
handleUnfinishedSections: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX LEA RBX,[RDI + 0x180] MOV R14,qword ptr [RDI + 0x180] MOV R12,qword ptr [RDI + 0x188] CMP R12,R14 JZ 0x001600f5 MOV R15,RDI LAB_001600dd: ADD R12,-0x58 MOV RAX,qword ptr [R15] MOV RDI,R15 MOV RSI,R12 CALL qword ptr [RAX + 0x18] CMP R12,R14 JNZ 0x001600dd MOV R14,qword ptr [RBX] LAB_001600f5: MOV RDI,RBX MOV RSI,R14 ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 JMP 0x00187ca4
/* Catch::RunContext::handleUnfinishedSections() */ void __thiscall Catch::RunContext::handleUnfinishedSections(RunContext *this) { SectionEndInfo *pSVar1; SectionEndInfo *pSVar2; pSVar2 = *(SectionEndInfo **)(this + 0x180); pSVar1 = *(SectionEndInfo **)(this + 0x188); if (pSVar1 != pSVar2) { do { pSVar1 = pSVar1 + -0x58; (**(code **)(*(long *)this + 0x18))(this,pSVar1); } while (pSVar1 != pSVar2); pSVar2 = *(SectionEndInfo **)(this + 0x180); } std::vector<Catch::SectionEndInfo,std::allocator<Catch::SectionEndInfo>>::_M_erase_at_end ((vector<Catch::SectionEndInfo,std::allocator<Catch::SectionEndInfo>> *)(this + 0x180), pSVar2); return; }
31,325
ggml_sqr_impl
7CodeWizard[P]stablediffusion/ggml/src/ggml.c
static struct ggml_tensor * ggml_sqr_impl( struct ggml_context * ctx, struct ggml_tensor * a, bool inplace) { bool is_node = false; if (!inplace && (a->grad)) { is_node = true; } struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a); result->op = GGML_OP_SQR; result->grad = is_node ? ggml_dup_tensor(ctx, result) : NULL; result->src[0] = a; return result; }
O0
c
ggml_sqr_impl: subq $0x38, %rsp movb %dl, %al movq %rdi, 0x30(%rsp) movq %rsi, 0x28(%rsp) andb $0x1, %al movb %al, 0x27(%rsp) movb $0x0, 0x26(%rsp) testb $0x1, 0x27(%rsp) jne 0x11fab6 movq 0x28(%rsp), %rax cmpq $0x0, 0x98(%rax) je 0x11fab6 movb $0x1, 0x26(%rsp) testb $0x1, 0x27(%rsp) je 0x11fad3 movq 0x30(%rsp), %rdi movq 0x28(%rsp), %rsi callq 0x11e7e0 movq %rax, 0x10(%rsp) jmp 0x11fae7 movq 0x30(%rsp), %rdi movq 0x28(%rsp), %rsi callq 0x11cfc0 movq %rax, 0x10(%rsp) movq 0x10(%rsp), %rax movq %rax, 0x18(%rsp) movq 0x18(%rsp), %rax movl $0x8, 0x50(%rax) testb $0x1, 0x26(%rsp) je 0x11fb1a movq 0x30(%rsp), %rdi movq 0x18(%rsp), %rsi callq 0x11cfc0 movq %rax, 0x8(%rsp) jmp 0x11fb23 xorl %eax, %eax movq %rax, 0x8(%rsp) jmp 0x11fb23 movq 0x8(%rsp), %rcx movq 0x18(%rsp), %rax movq %rcx, 0x98(%rax) movq 0x28(%rsp), %rcx movq 0x18(%rsp), %rax movq %rcx, 0xa0(%rax) movq 0x18(%rsp), %rax addq $0x38, %rsp retq nop
ggml_sqr_impl: sub rsp, 38h mov al, dl mov [rsp+38h+var_8], rdi mov [rsp+38h+var_10], rsi and al, 1 mov [rsp+38h+var_11], al mov [rsp+38h+var_12], 0 test [rsp+38h+var_11], 1 jnz short loc_11FAB6 mov rax, [rsp+38h+var_10] cmp qword ptr [rax+98h], 0 jz short loc_11FAB6 mov [rsp+38h+var_12], 1 loc_11FAB6: test [rsp+38h+var_11], 1 jz short loc_11FAD3 mov rdi, [rsp+38h+var_8] mov rsi, [rsp+38h+var_10] call ggml_view_tensor mov [rsp+38h+var_28], rax jmp short loc_11FAE7 loc_11FAD3: mov rdi, [rsp+38h+var_8] mov rsi, [rsp+38h+var_10] call ggml_dup_tensor mov [rsp+38h+var_28], rax loc_11FAE7: mov rax, [rsp+38h+var_28] mov [rsp+38h+var_20], rax mov rax, [rsp+38h+var_20] mov dword ptr [rax+50h], 8 test [rsp+38h+var_12], 1 jz short loc_11FB1A mov rdi, [rsp+38h+var_8] mov rsi, [rsp+38h+var_20] call ggml_dup_tensor mov [rsp+38h+var_30], rax jmp short loc_11FB23 loc_11FB1A: xor eax, eax mov [rsp+38h+var_30], rax jmp short $+2 loc_11FB23: mov rcx, [rsp+38h+var_30] mov rax, [rsp+38h+var_20] mov [rax+98h], rcx mov rcx, [rsp+38h+var_10] mov rax, [rsp+38h+var_20] mov [rax+0A0h], rcx mov rax, [rsp+38h+var_20] add rsp, 38h retn
long long ggml_sqr_impl( long long a1, long long a2, char a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, double a8, double a9, __m128 a10, __m128 a11) { long long v12; // [rsp+8h] [rbp-30h] long long v13; // [rsp+10h] [rbp-28h] bool v14; // [rsp+26h] [rbp-12h] v14 = 0; if ( (a3 & 1) != 0 ) { v13 = (long long)ggml_view_tensor(a1, a2, a4, a5, a6, a7, a8, a9, a10, a11); } else { v14 = *(_QWORD *)(a2 + 152) != 0LL; v13 = ggml_dup_tensor(a1, (unsigned int *)a2); } *(_DWORD *)(v13 + 80) = 8; if ( v14 ) v12 = ggml_dup_tensor(a1, (unsigned int *)v13); else v12 = 0LL; *(_QWORD *)(v13 + 152) = v12; *(_QWORD *)(v13 + 160) = a2; return v13; }
31,326
ggml_sqr_impl
7CodeWizard[P]stablediffusion/ggml/src/ggml.c
static struct ggml_tensor * ggml_sqr_impl( struct ggml_context * ctx, struct ggml_tensor * a, bool inplace) { bool is_node = false; if (!inplace && (a->grad)) { is_node = true; } struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a); result->op = GGML_OP_SQR; result->grad = is_node ? ggml_dup_tensor(ctx, result) : NULL; result->src[0] = a; return result; }
O2
c
ggml_sqr_impl: pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r15 testl %edx, %edx je 0x6a3fe movq %r15, %rdi movq %rbx, %rsi callq 0x69922 movq %rax, %r14 movl $0x8, 0x50(%rax) jmp 0x6a42c movq 0x98(%rbx), %r12 movq %r15, %rdi movq %rbx, %rsi callq 0x68a65 movq %rax, %r14 movl $0x8, 0x50(%rax) testq %r12, %r12 je 0x6a42c movq %r15, %rdi movq %r14, %rsi callq 0x68a65 jmp 0x6a42e xorl %eax, %eax movq %rax, 0x98(%r14) movq %rbx, 0xa0(%r14) movq %r14, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
ggml_sqr_impl: push r15 push r14 push r12 push rbx push rax mov rbx, rsi mov r15, rdi test edx, edx jz short loc_6A3FE mov rdi, r15 mov rsi, rbx call ggml_view_tensor mov r14, rax mov dword ptr [rax+50h], 8 jmp short loc_6A42C loc_6A3FE: mov r12, [rbx+98h] mov rdi, r15 mov rsi, rbx call ggml_dup_tensor mov r14, rax mov dword ptr [rax+50h], 8 test r12, r12 jz short loc_6A42C mov rdi, r15 mov rsi, r14 call ggml_dup_tensor jmp short loc_6A42E loc_6A42C: xor eax, eax loc_6A42E: mov [r14+98h], rax mov [r14+0A0h], rbx mov rax, r14 add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
long long ggml_sqr_impl( long long a1, long long a2, int a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, double a8, double a9, __m128 a10, __m128 a11) { long long v11; // r14 long long v12; // r12 unsigned int *v13; // rax long long v14; // rax if ( a3 ) { v11 = ggml_view_tensor(a1, a2, a4, a5, a6, a7, a8, a9, a10, a11); *(_DWORD *)(v11 + 80) = 8; LABEL_5: v14 = 0LL; goto LABEL_6; } v12 = *(_QWORD *)(a2 + 152); v13 = (unsigned int *)ggml_dup_tensor(a1, (unsigned int *)a2); v11 = (long long)v13; v13[20] = 8; if ( !v12 ) goto LABEL_5; v14 = ggml_dup_tensor(a1, v13); LABEL_6: *(_QWORD *)(v11 + 152) = v14; *(_QWORD *)(v11 + 160) = a2; return v11; }
ggml_sqr_impl: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RSI MOV R15,RDI TEST EDX,EDX JZ 0x0016a3fe MOV RDI,R15 MOV RSI,RBX CALL 0x00169922 MOV R14,RAX MOV dword ptr [RAX + 0x50],0x8 JMP 0x0016a42c LAB_0016a3fe: MOV R12,qword ptr [RBX + 0x98] MOV RDI,R15 MOV RSI,RBX CALL 0x00168a65 MOV R14,RAX MOV dword ptr [RAX + 0x50],0x8 TEST R12,R12 JZ 0x0016a42c MOV RDI,R15 MOV RSI,R14 CALL 0x00168a65 JMP 0x0016a42e LAB_0016a42c: XOR EAX,EAX LAB_0016a42e: MOV qword ptr [R14 + 0x98],RAX MOV qword ptr [R14 + 0xa0],RBX MOV RAX,R14 ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
long ggml_sqr_impl(int8 param_1,long param_2,int param_3) { long lVar1; long lVar2; int8 uVar3; if (param_3 == 0) { lVar1 = *(long *)(param_2 + 0x98); lVar2 = ggml_dup_tensor(param_1,param_2); *(int4 *)(lVar2 + 0x50) = 8; if (lVar1 != 0) { uVar3 = ggml_dup_tensor(param_1,lVar2); goto LAB_0016a42e; } } else { lVar2 = ggml_view_tensor(param_1,param_2); *(int4 *)(lVar2 + 0x50) = 8; } uVar3 = 0; LAB_0016a42e: *(int8 *)(lVar2 + 0x98) = uVar3; *(long *)(lVar2 + 0xa0) = param_2; return lVar2; }
31,327
ftb_check_phrase
eloqsql/storage/myisam/ft_boolean_search.c
static int _ftb_check_phrase(FTB *ftb, const uchar *document, uint len, FTB_EXPR *ftbe, struct st_mysql_ftparser *parser) { MY_FTB_PHRASE_PARAM ftb_param; MYSQL_FTPARSER_PARAM *param; DBUG_ENTER("_ftb_check_phrase"); DBUG_ASSERT(parser); if (! (param= ftparser_call_initializer(ftb->info, ftb->keynr, 1))) DBUG_RETURN(0); ftb_param.phrase= ftbe->phrase; ftb_param.document= ftbe->document; ftb_param.cs= ftb->charset; ftb_param.phrase_length= list_length(ftbe->phrase); ftb_param.document_length= 1; ftb_param.match= 0; param->mysql_parse= ftb_check_phrase_internal; param->mysql_add_word= ftb_phrase_add_word; param->mysql_ftparam= (void *)&ftb_param; param->cs= ftb->charset; param->doc= (char *) document; param->length= len; param->flags= 0; param->mode= MYSQL_FTPARSER_WITH_STOPWORDS; if (unlikely(parser->parse(param))) return -1; DBUG_RETURN(ftb_param.match ? 1 : 0); }
O0
c
ftb_check_phrase: 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) jmp 0x9ff0d movq -0x10(%rbp), %rax movq 0x8(%rax), %rdi movq -0x10(%rbp), %rax movl 0x340(%rax), %esi movl $0x1, %edx callq 0xa28c0 movq %rax, -0x60(%rbp) cmpq $0x0, %rax jne 0x9ff41 jmp 0x9ff35 movl $0x0, -0x4(%rbp) jmp 0xa0027 movq -0x28(%rbp), %rax movq 0x30(%rax), %rax movq %rax, -0x58(%rbp) movq -0x28(%rbp), %rax movq 0x38(%rax), %rax movq %rax, -0x50(%rbp) movq -0x10(%rbp), %rax movq 0x10(%rax), %rax movq %rax, -0x48(%rbp) movq -0x28(%rbp), %rax movq 0x30(%rax), %rdi callq 0xdf570 movl %eax, -0x40(%rbp) movl $0x1, -0x3c(%rbp) movl $0x0, -0x38(%rbp) movq -0x60(%rbp), %rax leaq 0xa2(%rip), %rcx # 0xa0030 movq %rcx, (%rax) movq -0x60(%rbp), %rax leaq 0x114(%rip), %rcx # 0xa00b0 movq %rcx, 0x8(%rax) movq -0x60(%rbp), %rax leaq -0x58(%rbp), %rcx movq %rcx, 0x18(%rax) movq -0x10(%rbp), %rax movq 0x10(%rax), %rcx movq -0x60(%rbp), %rax movq %rcx, 0x20(%rax) movq -0x18(%rbp), %rcx movq -0x60(%rbp), %rax movq %rcx, 0x28(%rax) movl -0x1c(%rbp), %ecx movq -0x60(%rbp), %rax movl %ecx, 0x30(%rax) movq -0x60(%rbp), %rax movl $0x0, 0x34(%rax) movq -0x60(%rbp), %rax movl $0x1, 0x38(%rax) movq -0x30(%rbp), %rax movq 0x8(%rax), %rax movq -0x60(%rbp), %rdi callq *%rax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0xa0012 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0xa0027 jmp 0xa0014 movl -0x38(%rbp), %edx xorl %eax, %eax movl $0x1, %ecx cmpl $0x0, %edx cmovnel %ecx, %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x60, %rsp popq %rbp retq
_ftb_check_phrase: 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 jmp short $+2 loc_9FF0D: mov rax, [rbp+var_10] mov rdi, [rax+8] mov rax, [rbp+var_10] mov esi, [rax+340h] mov edx, 1 call ftparser_call_initializer mov [rbp+var_60], rax cmp rax, 0 jnz short loc_9FF41 jmp short $+2 loc_9FF35: mov [rbp+var_4], 0 jmp loc_A0027 loc_9FF41: mov rax, [rbp+var_28] mov rax, [rax+30h] mov [rbp+var_58], rax mov rax, [rbp+var_28] mov rax, [rax+38h] mov [rbp+var_50], rax mov rax, [rbp+var_10] mov rax, [rax+10h] mov [rbp+var_48], rax mov rax, [rbp+var_28] mov rdi, [rax+30h] call list_length mov [rbp+var_40], eax mov [rbp+var_3C], 1 mov [rbp+var_38], 0 mov rax, [rbp+var_60] lea rcx, ftb_check_phrase_internal mov [rax], rcx mov rax, [rbp+var_60] lea rcx, ftb_phrase_add_word mov [rax+8], rcx mov rax, [rbp+var_60] lea rcx, [rbp+var_58] mov [rax+18h], rcx mov rax, [rbp+var_10] mov rcx, [rax+10h] mov rax, [rbp+var_60] mov [rax+20h], rcx mov rcx, [rbp+var_18] mov rax, [rbp+var_60] mov [rax+28h], rcx mov ecx, [rbp+var_1C] mov rax, [rbp+var_60] mov [rax+30h], ecx mov rax, [rbp+var_60] mov dword ptr [rax+34h], 0 mov rax, [rbp+var_60] mov dword ptr [rax+38h], 1 mov rax, [rbp+var_30] mov rax, [rax+8] mov rdi, [rbp+var_60] call rax cmp eax, 0 setnz al and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_A0012 mov [rbp+var_4], 0FFFFFFFFh jmp short loc_A0027 loc_A0012: jmp short $+2 loc_A0014: mov edx, [rbp+var_38] xor eax, eax mov ecx, 1 cmp edx, 0 cmovnz eax, ecx mov [rbp+var_4], eax loc_A0027: mov eax, [rbp+var_4] add rsp, 60h pop rbp retn
long long ftb_check_phrase(long long a1, long long a2, int a3, long long a4, long long a5) { long long v6; // [rsp+0h] [rbp-60h] _QWORD v7[3]; // [rsp+8h] [rbp-58h] BYREF int v8; // [rsp+20h] [rbp-40h] int v9; // [rsp+24h] [rbp-3Ch] int v10; // [rsp+28h] [rbp-38h] long long v11; // [rsp+30h] [rbp-30h] long long v12; // [rsp+38h] [rbp-28h] int v13; // [rsp+44h] [rbp-1Ch] long long v14; // [rsp+48h] [rbp-18h] long long v15; // [rsp+50h] [rbp-10h] v15 = a1; v14 = a2; v13 = a3; v12 = a4; v11 = a5; v6 = ftparser_call_initializer(*(_QWORD *)(v15 + 8), *(unsigned int *)(v15 + 832), 1LL); if ( v6 ) { v7[0] = *(_QWORD *)(v12 + 48); v7[1] = *(_QWORD *)(v12 + 56); v7[2] = *(_QWORD *)(v15 + 16); v8 = list_length(*(_QWORD *)(v12 + 48)); v9 = 1; v10 = 0; *(_QWORD *)v6 = ftb_check_phrase_internal; *(_QWORD *)(v6 + 8) = ftb_phrase_add_word; *(_QWORD *)(v6 + 24) = v7; *(_QWORD *)(v6 + 32) = *(_QWORD *)(v15 + 16); *(_QWORD *)(v6 + 40) = v14; *(_DWORD *)(v6 + 48) = v13; *(_DWORD *)(v6 + 52) = 0; *(_DWORD *)(v6 + 56) = 1; if ( (*(unsigned int ( **)(long long))(v11 + 8))(v6) ) return (unsigned int)-1; else return v10 != 0; } else { return 0; } }
_ftb_check_phrase: 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 JMP 0x0019ff0d LAB_0019ff0d: MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RAX + 0x340] MOV EDX,0x1 CALL 0x001a28c0 MOV qword ptr [RBP + -0x60],RAX CMP RAX,0x0 JNZ 0x0019ff41 JMP 0x0019ff35 LAB_0019ff35: MOV dword ptr [RBP + -0x4],0x0 JMP 0x001a0027 LAB_0019ff41: MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX + 0x30] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX + 0x38] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x28] MOV RDI,qword ptr [RAX + 0x30] CALL 0x001df570 MOV dword ptr [RBP + -0x40],EAX MOV dword ptr [RBP + -0x3c],0x1 MOV dword ptr [RBP + -0x38],0x0 MOV RAX,qword ptr [RBP + -0x60] LEA RCX,[0x1a0030] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x60] LEA RCX,[0x1a00b0] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x60] LEA RCX,[RBP + -0x58] MOV qword ptr [RAX + 0x18],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x10] MOV RAX,qword ptr [RBP + -0x60] MOV qword ptr [RAX + 0x20],RCX MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x60] MOV qword ptr [RAX + 0x28],RCX MOV ECX,dword ptr [RBP + -0x1c] MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0x30],ECX MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0x34],0x0 MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0x38],0x1 MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x8] MOV RDI,qword ptr [RBP + -0x60] CALL RAX CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x001a0012 MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x001a0027 LAB_001a0012: JMP 0x001a0014 LAB_001a0014: MOV EDX,dword ptr [RBP + -0x38] XOR EAX,EAX MOV ECX,0x1 CMP EDX,0x0 CMOVNZ EAX,ECX MOV dword ptr [RBP + -0x4],EAX LAB_001a0027: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x60 POP RBP RET
uint _ftb_check_phrase(long param_1,int8 param_2,int4 param_3,long param_4,long param_5) { int iVar1; int8 *puVar2; int8 local_60; int8 local_58; int8 local_50; int4 local_48; int4 local_44; int local_40; long local_38; long local_30; int4 local_24; int8 local_20; long local_18; uint local_c; local_38 = param_5; local_30 = param_4; local_24 = param_3; local_20 = param_2; local_18 = param_1; puVar2 = (int8 *) ftparser_call_initializer (*(int8 *)(param_1 + 8),*(int4 *)(param_1 + 0x340),1); if (puVar2 == (int8 *)0x0) { local_c = 0; } else { local_60 = *(int8 *)(local_30 + 0x30); local_58 = *(int8 *)(local_30 + 0x38); local_50 = *(int8 *)(local_18 + 0x10); local_48 = list_length(*(int8 *)(local_30 + 0x30)); local_44 = 1; local_40 = 0; *puVar2 = ftb_check_phrase_internal; puVar2[1] = ftb_phrase_add_word; puVar2[3] = &local_60; puVar2[4] = *(int8 *)(local_18 + 0x10); puVar2[5] = local_20; *(int4 *)(puVar2 + 6) = local_24; *(int4 *)((long)puVar2 + 0x34) = 0; *(int4 *)(puVar2 + 7) = 1; iVar1 = (**(code **)(local_38 + 8))(puVar2); if (iVar1 == 0) { local_c = (uint)(local_40 != 0); } else { local_c = 0xffffffff; } } return local_c; }
31,328
js_os_readdir
bluesky950520[P]quickjs/quickjs-libc.c
static JSValue js_os_readdir(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { const char *path; DIR *f; struct dirent *d; JSValue obj; int err; uint32_t len; path = JS_ToCString(ctx, argv[0]); if (!path) return JS_EXCEPTION; obj = JS_NewArray(ctx); if (JS_IsException(obj)) { JS_FreeCString(ctx, path); return JS_EXCEPTION; } f = opendir(path); if (!f) err = errno; else err = 0; JS_FreeCString(ctx, path); if (!f) goto done; len = 0; for(;;) { errno = 0; d = readdir(f); if (!d) { err = errno; break; } JS_DefinePropertyValueUint32(ctx, obj, len++, JS_NewString(ctx, d->d_name), JS_PROP_C_W_E); } closedir(f); done: return make_obj_error(ctx, obj, err); }
O2
c
js_os_readdir: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdi, %rbx movq (%r8), %rsi movq 0x8(%r8), %rdx callq 0x11a6c pushq $0x6 popq %r12 testq %rax, %rax je 0x1427e movq %rax, %r13 movq %rbx, %rdi callq 0x1b2bb movq %rax, 0x10(%rsp) movq %rdx, %r15 cmpl $0x6, %r15d jne 0x14287 movq %rbx, %rdi movq %r13, %rsi callq 0x1b057 xorl %eax, %eax xorl %ecx, %ecx jmp 0x14333 movq %r13, %rdi callq 0xe240 movq %rax, %r12 xorl %ebp, %ebp testq %rax, %rax jne 0x142a0 callq 0xe0b0 movl (%rax), %ebp movq %rbx, %rdi movq %r13, %rsi callq 0x1b057 testq %r12, %r12 je 0x1430f xorl %ebp, %ebp callq 0xe0b0 movq %rax, %r13 andl $0x0, (%r13) movq %r12, %rdi callq 0xe640 testq %rax, %rax je 0x14303 leal 0x1(%rbp), %r14d addq $0x13, %rax movq %rbx, %rdi movq %rax, %rsi callq 0xf98d movq %rdx, %r9 movl $0x7, (%rsp) movq %rbx, %rdi movq 0x10(%rsp), %rsi movq %r15, %rdx movl %ebp, %ecx movq %rax, %r8 callq 0x20972 movl %r14d, %ebp jmp 0x142ba movl (%r13), %ebp movq %r12, %rdi callq 0xe410 movq %rbx, %rdi movq 0x10(%rsp), %rsi movq %r15, %rdx movl %ebp, %ecx callq 0x157db movq %rdx, %r12 movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %rax, %rcx movl %eax, %eax orq %rcx, %rax movq %r12, %rdx addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
js_os_readdir: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov rbx, rdi mov rsi, [r8] mov rdx, [r8+8] call JS_ToCString push 6 pop r12 test rax, rax jz short loc_1427E mov r13, rax mov rdi, rbx call JS_NewArray mov [rsp+48h+var_38], rax mov r15, rdx cmp r15d, 6 jnz short loc_14287 mov rdi, rbx mov rsi, r13 call JS_FreeCString loc_1427E: xor eax, eax xor ecx, ecx jmp loc_14333 loc_14287: mov rdi, r13 call _opendir mov r12, rax xor ebp, ebp test rax, rax jnz short loc_142A0 call ___errno_location mov ebp, [rax] loc_142A0: mov rdi, rbx mov rsi, r13 call JS_FreeCString test r12, r12 jz short loc_1430F xor ebp, ebp call ___errno_location mov r13, rax loc_142BA: and dword ptr [r13+0], 0 mov rdi, r12 call _readdir test rax, rax jz short loc_14303 lea r14d, [rbp+1] add rax, 13h mov rdi, rbx mov rsi, rax call JS_NewString mov r9, rdx mov [rsp+48h+var_48], 7 mov rdi, rbx mov rsi, [rsp+48h+var_38] mov rdx, r15 mov ecx, ebp mov r8, rax call JS_DefinePropertyValueUint32 mov ebp, r14d jmp short loc_142BA loc_14303: mov ebp, [r13+0] mov rdi, r12 call _closedir loc_1430F: mov rdi, rbx mov rsi, [rsp+48h+var_38] mov rdx, r15 mov ecx, ebp call make_obj_error mov r12, rdx mov rcx, 0FFFFFFFF00000000h and rcx, rax mov eax, eax loc_14333: or rax, rcx mov rdx, r12 add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
unsigned long long js_os_readdir(long long a1, long long a2, long long a3, long long a4, long long *a5) { long long v5; // rax long long v6; // r13 long long v7; // rdx long long v8; // r15 long long obj_error; // rax unsigned long long v10; // rcx long long v11; // r12 unsigned int v12; // ebp int v13; // ebp unsigned int *v14; // r13 long long v15; // rax int v16; // eax int v17; // edx long long v19; // [rsp+10h] [rbp-38h] v5 = JS_ToCString(a1, *a5, a5[1]); if ( !v5 ) goto LABEL_4; v6 = v5; v19 = JS_NewArray(a1); v8 = v7; if ( (_DWORD)v7 == 6 ) { JS_FreeCString(a1, v6); LABEL_4: obj_error = 0LL; v10 = 0LL; return v10 | obj_error; } v11 = opendir(v6); v12 = 0; if ( !v11 ) v12 = *(_DWORD *)__errno_location(v6); JS_FreeCString(a1, v6); if ( v11 ) { v13 = 0; v14 = (unsigned int *)__errno_location(a1); while ( 1 ) { *v14 = 0; v15 = readdir(v11); if ( !v15 ) break; v16 = JS_NewString(a1, v15 + 19); JS_DefinePropertyValueUint32(a1, v19, v8, v13++, v16, v17, 7); } v12 = *v14; closedir(v11); } obj_error = make_obj_error(a1, v19, v8, v12); v10 = obj_error & 0xFFFFFFFF00000000LL; obj_error = (unsigned int)obj_error; return v10 | obj_error; }
js_os_readdir: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV RBX,RDI MOV RSI,qword ptr [R8] MOV RDX,qword ptr [R8 + 0x8] CALL 0x00111a6c PUSH 0x6 POP R12 TEST RAX,RAX JZ 0x0011427e MOV R13,RAX MOV RDI,RBX CALL 0x0011b2bb MOV qword ptr [RSP + 0x10],RAX MOV R15,RDX CMP R15D,0x6 JNZ 0x00114287 MOV RDI,RBX MOV RSI,R13 CALL 0x0011b057 LAB_0011427e: XOR EAX,EAX XOR ECX,ECX JMP 0x00114333 LAB_00114287: MOV RDI,R13 CALL 0x0010e240 MOV R12,RAX XOR EBP,EBP TEST RAX,RAX JNZ 0x001142a0 CALL 0x0010e0b0 MOV EBP,dword ptr [RAX] LAB_001142a0: MOV RDI,RBX MOV RSI,R13 CALL 0x0011b057 TEST R12,R12 JZ 0x0011430f XOR EBP,EBP CALL 0x0010e0b0 MOV R13,RAX LAB_001142ba: AND dword ptr [R13],0x0 MOV RDI,R12 CALL 0x0010e640 TEST RAX,RAX JZ 0x00114303 LEA R14D,[RBP + 0x1] ADD RAX,0x13 MOV RDI,RBX MOV RSI,RAX CALL 0x0010f98d MOV R9,RDX MOV dword ptr [RSP],0x7 MOV RDI,RBX MOV RSI,qword ptr [RSP + 0x10] MOV RDX,R15 MOV ECX,EBP MOV R8,RAX CALL 0x00120972 MOV EBP,R14D JMP 0x001142ba LAB_00114303: MOV EBP,dword ptr [R13] MOV RDI,R12 CALL 0x0010e410 LAB_0011430f: MOV RDI,RBX MOV RSI,qword ptr [RSP + 0x10] MOV RDX,R15 MOV ECX,EBP CALL 0x001157db MOV R12,RDX MOV RCX,-0x100000000 AND RCX,RAX MOV EAX,EAX LAB_00114333: OR RAX,RCX MOV RDX,R12 ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int1 [16] js_os_readdir(int8 param_1) { char *__name; ulong uVar1; DIR *__dirp; int *piVar2; dirent *pdVar3; ulong uVar4; int iVar5; int8 *in_R8; int8 uVar6; int1 auVar7 [16]; int1 auVar8 [16]; __name = (char *)JS_ToCString(param_1,*in_R8,in_R8[1]); uVar6 = 6; if (__name != (char *)0x0) { auVar7 = JS_NewArray(param_1); if (auVar7._8_4_ != 6) { __dirp = opendir(__name); iVar5 = 0; if (__dirp == (DIR *)0x0) { piVar2 = __errno_location(); iVar5 = *piVar2; } JS_FreeCString(param_1,__name); if (__dirp != (DIR *)0x0) { piVar2 = __errno_location(); iVar5 = 0; while( true ) { *piVar2 = 0; pdVar3 = readdir(__dirp); if (pdVar3 == (dirent *)0x0) break; auVar8 = JS_NewString(param_1,pdVar3->d_name); JS_DefinePropertyValueUint32 (param_1,auVar7._0_8_,auVar7._8_8_,iVar5,auVar8._0_8_,auVar8._8_8_,7); iVar5 = iVar5 + 1; } iVar5 = *piVar2; closedir(__dirp); } auVar7 = make_obj_error(param_1,auVar7._0_8_,auVar7._8_8_,iVar5); uVar6 = auVar7._8_8_; uVar4 = auVar7._0_8_ & 0xffffffff00000000; uVar1 = auVar7._0_8_ & 0xffffffff; goto LAB_00114333; } JS_FreeCString(param_1,__name); } uVar1 = 0; uVar4 = 0; LAB_00114333: auVar7._0_8_ = uVar1 | uVar4; auVar7._8_8_ = uVar6; return auVar7; }
31,329
thr_lock_data_init
eloqsql/mysys/thr_lock.c
void thr_lock_data_init(THR_LOCK *lock,THR_LOCK_DATA *data, void *param) { data->lock=lock; data->type=TL_UNLOCK; data->owner= 0; /* no owner yet */ data->status_param=param; data->cond=0; data->priority= 0; data->debug_print_param= 0; }
O0
c
thr_lock_data_init: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x18(%rax) movq -0x10(%rbp), %rax movl $0x0, 0x40(%rax) movq -0x10(%rbp), %rax movq $0x0, (%rax) movq -0x18(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x28(%rax) movq -0x10(%rbp), %rax movq $0x0, 0x20(%rax) movq -0x10(%rbp), %rax movl $0x0, 0x48(%rax) movq -0x10(%rbp), %rax movq $0x0, 0x30(%rax) popq %rbp retq nopw %cs:(%rax,%rax)
thr_lock_data_init: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov rcx, [rbp+var_8] mov rax, [rbp+var_10] mov [rax+18h], rcx mov rax, [rbp+var_10] mov dword ptr [rax+40h], 0 mov rax, [rbp+var_10] mov qword ptr [rax], 0 mov rcx, [rbp+var_18] mov rax, [rbp+var_10] mov [rax+28h], rcx mov rax, [rbp+var_10] mov qword ptr [rax+20h], 0 mov rax, [rbp+var_10] mov dword ptr [rax+48h], 0 mov rax, [rbp+var_10] mov qword ptr [rax+30h], 0 pop rbp retn
long long thr_lock_data_init(long long a1, long long a2, long long a3) { long long result; // rax *(_QWORD *)(a2 + 24) = a1; *(_DWORD *)(a2 + 64) = 0; *(_QWORD *)a2 = 0LL; *(_QWORD *)(a2 + 40) = a3; *(_QWORD *)(a2 + 32) = 0LL; *(_DWORD *)(a2 + 72) = 0; result = a2; *(_QWORD *)(a2 + 48) = 0LL; return result; }
thr_lock_data_init: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV RCX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x18],RCX MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x40],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],0x0 MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x28],RCX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x20],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x48],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x30],0x0 POP RBP RET
void thr_lock_data_init(int8 param_1,int8 *param_2,int8 param_3) { param_2[3] = param_1; *(int4 *)(param_2 + 8) = 0; *param_2 = 0; param_2[5] = param_3; param_2[4] = 0; *(int4 *)(param_2 + 9) = 0; param_2[6] = 0; return; }
31,330
insert_at
eloqsql/mysys/queues.c
static void insert_at(QUEUE *queue, uchar *element, uint idx) { uint next_index, offset_to_key= queue->offset_to_key; uint offset_to_queue_pos= queue->offset_to_queue_pos; /* max_at_top swaps the comparison if we want to order by desc */ while ((next_index= idx >> 1) > 0 && queue->compare(queue->first_cmp_arg, element + offset_to_key, queue->root[next_index] + offset_to_key) * queue->max_at_top < 0) { queue->root[idx]= queue->root[next_index]; if (offset_to_queue_pos) (*(uint*) (queue->root[idx] + offset_to_queue_pos-1))= idx; idx= next_index; } queue->root[idx]= element; if (offset_to_queue_pos) (*(uint*) (element + offset_to_queue_pos-1))= idx; }
O3
c
insert_at: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %edx, %r15d movq %rdi, %r14 movl 0x1c(%rdi), %r13d cmpl $0x2, %edx movq %rsi, -0x30(%rbp) jae 0x26f1f movl %r15d, %ebx jmp 0x26f77 movl 0x18(%r14), %r12d leaq (%rsi,%r12), %rax movq %rax, -0x38(%rbp) movl %r15d, %ebx shrl %ebx movq (%r14), %rax movq 0x8(%r14), %rdi movq (%rax,%rbx,8), %rdx addq %r12, %rdx movq -0x38(%rbp), %rsi callq *0x28(%r14) imull 0x24(%r14), %eax testl %eax, %eax jns 0x26f1a movq (%r14), %rcx movq (%rcx,%rbx,8), %rdx movl %r15d, %eax movq %rdx, (%rcx,%rax,8) testq %r13, %r13 je 0x26f6e movq (%r14), %rcx movq (%rcx,%rax,8), %rax movl %r15d, -0x1(%rax,%r13) cmpl $0x3, %r15d movl %ebx, %r15d ja 0x26f2e movq (%r14), %rax movl %ebx, %ecx movq -0x30(%rbp), %rdx movq %rdx, (%rax,%rcx,8) testq %r13, %r13 je 0x26f8e movl %ebx, -0x1(%rdx,%r13) addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
insert_at: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r15d, edx mov r14, rdi mov r13d, [rdi+1Ch] cmp edx, 2 mov [rbp+var_30], rsi jnb short loc_26F1F loc_26F1A: mov ebx, r15d jmp short loc_26F77 loc_26F1F: mov r12d, [r14+18h] lea rax, [rsi+r12] mov [rbp+var_38], rax mov ebx, r15d loc_26F2E: shr ebx, 1 mov rax, [r14] mov rdi, [r14+8] mov rdx, [rax+rbx*8] add rdx, r12 mov rsi, [rbp+var_38] call qword ptr [r14+28h] imul eax, [r14+24h] test eax, eax jns short loc_26F1A mov rcx, [r14] mov rdx, [rcx+rbx*8] mov eax, r15d mov [rcx+rax*8], rdx test r13, r13 jz short loc_26F6E mov rcx, [r14] mov rax, [rcx+rax*8] mov [rax+r13-1], r15d loc_26F6E: cmp r15d, 3 mov r15d, ebx ja short loc_26F2E loc_26F77: mov rax, [r14] mov ecx, ebx mov rdx, [rbp+var_30] mov [rax+rcx*8], rdx test r13, r13 jz short loc_26F8E mov [rdx+r13-1], ebx loc_26F8E: add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long insert_at(long long *a1, long long a2, unsigned int a3) { unsigned int v3; // r15d long long v4; // r13 long long v5; // rbx long long v6; // r12 bool v7; // cc long long result; // rax v3 = a3; v4 = *((unsigned int *)a1 + 7); if ( a3 >= 2 ) { v6 = *((unsigned int *)a1 + 6); LODWORD(v5) = a3; while ( 1 ) { v5 = (unsigned int)v5 >> 1; if ( (int)(*((_DWORD *)a1 + 9) * ((long long ( *)(long long, long long, long long))a1[5])( a1[1], a2 + v6, v6 + *(_QWORD *)(*a1 + 8 * v5))) >= 0 ) break; *(_QWORD *)(*a1 + 8LL * v3) = *(_QWORD *)(*a1 + 8 * v5); if ( v4 ) *(_DWORD *)(*(_QWORD *)(*a1 + 8LL * v3) + v4 - 1) = v3; v7 = v3 <= 3; v3 = v5; if ( v7 ) goto LABEL_8; } } LODWORD(v5) = v3; LABEL_8: result = *a1; *(_QWORD *)(*a1 + 8LL * (unsigned int)v5) = a2; if ( v4 ) *(_DWORD *)(a2 + v4 - 1) = v5; return result; }
insert_at: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R15D,EDX MOV R14,RDI MOV R13D,dword ptr [RDI + 0x1c] CMP EDX,0x2 MOV qword ptr [RBP + -0x30],RSI JNC 0x00126f1f LAB_00126f1a: MOV EBX,R15D JMP 0x00126f77 LAB_00126f1f: MOV R12D,dword ptr [R14 + 0x18] LEA RAX,[RSI + R12*0x1] MOV qword ptr [RBP + -0x38],RAX MOV EBX,R15D LAB_00126f2e: SHR EBX,0x1 MOV RAX,qword ptr [R14] MOV RDI,qword ptr [R14 + 0x8] MOV RDX,qword ptr [RAX + RBX*0x8] ADD RDX,R12 MOV RSI,qword ptr [RBP + -0x38] CALL qword ptr [R14 + 0x28] IMUL EAX,dword ptr [R14 + 0x24] TEST EAX,EAX JNS 0x00126f1a MOV RCX,qword ptr [R14] MOV RDX,qword ptr [RCX + RBX*0x8] MOV EAX,R15D MOV qword ptr [RCX + RAX*0x8],RDX TEST R13,R13 JZ 0x00126f6e MOV RCX,qword ptr [R14] MOV RAX,qword ptr [RCX + RAX*0x8] MOV dword ptr [RAX + R13*0x1 + -0x1],R15D LAB_00126f6e: CMP R15D,0x3 MOV R15D,EBX JA 0x00126f2e LAB_00126f77: MOV RAX,qword ptr [R14] MOV ECX,EBX MOV RDX,qword ptr [RBP + -0x30] MOV qword ptr [RAX + RCX*0x8],RDX TEST R13,R13 JZ 0x00126f8e MOV dword ptr [RDX + R13*0x1 + -0x1],EBX LAB_00126f8e: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void insert_at(long *param_1,long param_2,uint param_3) { uint uVar1; ulong uVar2; int iVar3; ulong uVar4; ulong uVar5; uint uVar6; uVar4 = (ulong)param_3; uVar5 = (ulong)*(uint *)((long)param_1 + 0x1c); if (1 < param_3) { uVar1 = *(uint *)(param_1 + 3); do { uVar2 = uVar4 >> 1; iVar3 = (*(code *)param_1[5]) (param_1[1],param_2 + (ulong)uVar1, *(long *)(*param_1 + uVar2 * 8) + (ulong)uVar1); if (-1 < iVar3 * *(int *)((long)param_1 + 0x24)) break; uVar6 = (uint)uVar4; *(int8 *)(*param_1 + uVar4 * 8) = *(int8 *)(*param_1 + uVar2 * 8); if (uVar5 != 0) { *(uint *)(*(long *)(*param_1 + uVar4 * 8) + -1 + uVar5) = uVar6; } uVar4 = uVar2; } while (3 < uVar6); } *(long *)(*param_1 + uVar4 * 8) = param_2; if (uVar5 != 0) { *(int *)(param_2 + -1 + uVar5) = (int)uVar4; } return; }
31,331
my_uni_utf8mb3_no_range
eloqsql/strings/ctype-utf8.c
static int my_uni_utf8mb3_no_range(CHARSET_INFO *cs __attribute__((unused)), my_wc_t wc, uchar *r) { int count; if (wc < 0x80) count= 1; else if (wc < 0x800) count= 2; else if (wc < 0x10000) count= 3; else return MY_CS_ILUNI; switch (count) { case 3: r[2]= (uchar) (0x80 | (wc & 0x3f)); wc= wc >> 6; wc |= 0x800; /* fall through */ case 2: r[1]= (uchar) (0x80 | (wc & 0x3f)); wc= wc >> 6; wc |= 0xc0; /* fall through */ case 1: r[0]= (uchar) wc; } return count; }
O0
c
my_uni_utf8mb3_no_range: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) cmpq $0x80, -0x18(%rbp) jae 0xb5b73 movl $0x1, -0x24(%rbp) jmp 0xb5ba9 cmpq $0x800, -0x18(%rbp) # imm = 0x800 jae 0xb5b86 movl $0x2, -0x24(%rbp) jmp 0xb5ba7 cmpq $0x10000, -0x18(%rbp) # imm = 0x10000 jae 0xb5b99 movl $0x3, -0x24(%rbp) jmp 0xb5ba5 movl $0x0, -0x4(%rbp) jmp 0xb5c3e jmp 0xb5ba7 jmp 0xb5ba9 movl -0x24(%rbp), %eax movl %eax, -0x28(%rbp) subl $0x1, %eax je 0xb5c2c jmp 0xb5bb6 movl -0x28(%rbp), %eax subl $0x2, %eax je 0xb5bfb jmp 0xb5bc0 movl -0x28(%rbp), %eax subl $0x3, %eax jne 0xb5c38 jmp 0xb5bca movq -0x18(%rbp), %rax andq $0x3f, %rax orq $0x80, %rax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, 0x2(%rax) movq -0x18(%rbp), %rax shrq $0x6, %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax orq $0x800, %rax # imm = 0x800 movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax andq $0x3f, %rax orq $0x80, %rax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, 0x1(%rax) movq -0x18(%rbp), %rax shrq $0x6, %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax orq $0xc0, %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, (%rax) movl -0x24(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopw %cs:(%rax,%rax)
my_uni_utf8mb3_no_range: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx cmp [rbp+var_18], 80h jnb short loc_B5B73 mov [rbp+var_24], 1 jmp short loc_B5BA9 loc_B5B73: cmp [rbp+var_18], 800h jnb short loc_B5B86 mov [rbp+var_24], 2 jmp short loc_B5BA7 loc_B5B86: cmp [rbp+var_18], 10000h jnb short loc_B5B99 mov [rbp+var_24], 3 jmp short loc_B5BA5 loc_B5B99: mov [rbp+var_4], 0 jmp loc_B5C3E loc_B5BA5: jmp short $+2 loc_B5BA7: jmp short $+2 loc_B5BA9: mov eax, [rbp+var_24] mov [rbp+var_28], eax sub eax, 1 jz short loc_B5C2C jmp short $+2 loc_B5BB6: mov eax, [rbp+var_28] sub eax, 2 jz short loc_B5BFB jmp short $+2 loc_B5BC0: mov eax, [rbp+var_28] sub eax, 3 jnz short loc_B5C38 jmp short $+2 loc_B5BCA: mov rax, [rbp+var_18] and rax, 3Fh or rax, 80h mov cl, al mov rax, [rbp+var_20] mov [rax+2], cl mov rax, [rbp+var_18] shr rax, 6 mov [rbp+var_18], rax mov rax, [rbp+var_18] or rax, 800h mov [rbp+var_18], rax loc_B5BFB: mov rax, [rbp+var_18] and rax, 3Fh or rax, 80h mov cl, al mov rax, [rbp+var_20] mov [rax+1], cl mov rax, [rbp+var_18] shr rax, 6 mov [rbp+var_18], rax mov rax, [rbp+var_18] or rax, 0C0h mov [rbp+var_18], rax loc_B5C2C: mov rax, [rbp+var_18] mov cl, al mov rax, [rbp+var_20] mov [rax], cl loc_B5C38: mov eax, [rbp+var_24] mov [rbp+var_4], eax loc_B5C3E: mov eax, [rbp+var_4] pop rbp retn
long long my_uni_utf8mb3_no_range(long long a1, unsigned long long a2, _BYTE *a3) { unsigned int v4; // [rsp+4h] [rbp-24h] unsigned long long v5; // [rsp+10h] [rbp-18h] v5 = a2; if ( a2 >= 0x80 ) { if ( a2 >= 0x800 ) { if ( a2 >= 0x10000 ) return 0; v4 = 3; } else { v4 = 2; } } else { v4 = 1; } if ( v4 != 1 ) { if ( v4 != 2 ) { a3[2] = a2 & 0x3F | 0x80; v5 = (a2 >> 6) | 0x800; } a3[1] = v5 & 0x3F | 0x80; v5 = (v5 >> 6) | 0xC0; } *a3 = v5; return v4; }
my_uni_utf8mb3_no_range: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX CMP qword ptr [RBP + -0x18],0x80 JNC 0x001b5b73 MOV dword ptr [RBP + -0x24],0x1 JMP 0x001b5ba9 LAB_001b5b73: CMP qword ptr [RBP + -0x18],0x800 JNC 0x001b5b86 MOV dword ptr [RBP + -0x24],0x2 JMP 0x001b5ba7 LAB_001b5b86: CMP qword ptr [RBP + -0x18],0x10000 JNC 0x001b5b99 MOV dword ptr [RBP + -0x24],0x3 JMP 0x001b5ba5 LAB_001b5b99: MOV dword ptr [RBP + -0x4],0x0 JMP 0x001b5c3e LAB_001b5ba5: JMP 0x001b5ba7 LAB_001b5ba7: JMP 0x001b5ba9 LAB_001b5ba9: MOV EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x28],EAX SUB EAX,0x1 JZ 0x001b5c2c JMP 0x001b5bb6 LAB_001b5bb6: MOV EAX,dword ptr [RBP + -0x28] SUB EAX,0x2 JZ 0x001b5bfb JMP 0x001b5bc0 LAB_001b5bc0: MOV EAX,dword ptr [RBP + -0x28] SUB EAX,0x3 JNZ 0x001b5c38 JMP 0x001b5bca LAB_001b5bca: MOV RAX,qword ptr [RBP + -0x18] AND RAX,0x3f OR RAX,0x80 MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x2],CL MOV RAX,qword ptr [RBP + -0x18] SHR RAX,0x6 MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x18] OR RAX,0x800 MOV qword ptr [RBP + -0x18],RAX LAB_001b5bfb: MOV RAX,qword ptr [RBP + -0x18] AND RAX,0x3f OR RAX,0x80 MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x1],CL MOV RAX,qword ptr [RBP + -0x18] SHR RAX,0x6 MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x18] OR RAX,0xc0 MOV qword ptr [RBP + -0x18],RAX LAB_001b5c2c: MOV RAX,qword ptr [RBP + -0x18] MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX],CL LAB_001b5c38: MOV EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x4],EAX LAB_001b5c3e: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int my_uni_utf8mb3_no_range(int8 param_1,ulong param_2,int1 *param_3) { int local_2c; ulong local_20; if (param_2 < 0x80) { local_2c = 1; } else if (param_2 < 0x800) { local_2c = 2; } else { if (0xffff < param_2) { return 0; } local_2c = 3; } local_20 = param_2; if (local_2c != 1) { if (local_2c != 2) { if (local_2c != 3) { return local_2c; } param_3[2] = (byte)param_2 & 0x3f | 0x80; local_20 = param_2 >> 6 | 0x800; } param_3[1] = (byte)local_20 & 0x3f | 0x80; local_20 = local_20 >> 6 | 0xc0; } *param_3 = (char)local_20; return local_2c; }
31,332
my_strntoull_8bit
eloqsql/strings/ctype-simple.c
ulonglong my_strntoull_8bit(CHARSET_INFO *cs, const char *nptr, size_t l, int base, char **endptr, int *err) { int negative; register ulonglong cutoff; register uint cutlim; register ulonglong i; register const char *s, *e; const char *save; int overflow; *err= 0; /* Initialize error indicator */ s = nptr; e = nptr+l; for(; s<e && my_isspace(cs,*s); s++); if (s == e) { goto noconv; } if (*s == '-') { negative = 1; ++s; } else if (*s == '+') { negative = 0; ++s; } else negative = 0; save = s; cutoff = (~(ulonglong) 0) / (unsigned long int) base; cutlim = (uint) ((~(ulonglong) 0) % (unsigned long int) base); overflow = 0; i = 0; for ( ; s != e; s++) { register uchar c= *s; if (c>='0' && c<='9') c -= '0'; else if (c>='A' && c<='Z') c = c - 'A' + 10; else if (c>='a' && c<='z') c = c - 'a' + 10; else break; if (c >= base) break; if (i > cutoff || (i == cutoff && c > cutlim)) overflow = 1; else { i *= (ulonglong) base; i += c; } } if (s == save) goto noconv; if (endptr != NULL) *endptr = (char *) s; if (overflow) { err[0]= ERANGE; return (~(ulonglong) 0); } return (negative ? -((longlong) i) : (longlong) i); noconv: err[0]= EDOM; if (endptr != NULL) *endptr = (char *) nptr; return 0L; }
O3
c
my_strntoull_8bit: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movl $0x0, (%r9) leaq (%rsi,%rdx), %r11 movq %rsi, %r10 testq %rdx, %rdx jle 0x584e5 movq 0x40(%rdi), %rax movq %rsi, %r10 movzbl (%r10), %edx testb $0x8, 0x1(%rax,%rdx) je 0x584e5 incq %r10 cmpq %r11, %r10 jb 0x584d2 cmpq %r11, %r10 je 0x585cd movb (%r10), %dil leal -0x2b(%rdi), %eax andb $-0x3, %al cmpb $0x1, %al adcq $0x0, %r10 movslq %ecx, %rbx movq $-0x1, %rax xorl %edx, %edx movq %rbx, -0x38(%rbp) divq %rbx xorl %r12d, %r12d cmpq %r11, %r10 je 0x585aa movq %rdi, -0x30(%rbp) movq %r10, %r14 xorl %r15d, %r15d movq %r15, %rdi movl %r12d, %r13d movb (%r14), %r12b leal -0x30(%r12), %ebx cmpb $0xa, %bl jb 0x58559 leal -0x41(%r12), %ebx cmpb $0x19, %bl ja 0x58548 addb $-0x37, %r12b jmp 0x58556 leal -0x61(%r12), %ebx cmpb $0x19, %bl ja 0x58598 addb $-0x57, %r12b movl %r12d, %ebx movzbl %bl, %ebx cmpl %ecx, %ebx jge 0x58598 movl $0x1, %r12d cmpq %rax, %rdi jbe 0x58570 movq %rdi, %r15 jmp 0x58587 jne 0x58579 movq %rax, %r15 cmpl %edx, %ebx ja 0x58587 imulq -0x38(%rbp), %rdi movl %ebx, %r15d addq %rdi, %r15 movl %r13d, %r12d incq %r14 cmpq %r11, %r14 jne 0x58525 movq %r15, %rdi movq %r11, %r14 movl %r12d, %r13d testl %r13d, %r13d sete %al movq %rdi, %r12 movq %r14, %r11 movq -0x30(%rbp), %rdi jmp 0x585ac movb $0x1, %al cmpq %r10, %r11 je 0x585cd testq %r8, %r8 je 0x585b9 movq %r11, (%r8) testb %al, %al je 0x585e0 movq %r12, %rax negq %rax cmpb $0x2d, %dil cmovneq %r12, %rax jmp 0x585ee movl $0x21, (%r9) testq %r8, %r8 je 0x585dc movq %rsi, (%r8) xorl %eax, %eax jmp 0x585ee movl $0x22, (%r9) movq $-0x1, %rax popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_strntoull_8bit: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx mov dword ptr [r9], 0 lea r11, [rsi+rdx] mov r10, rsi test rdx, rdx jle short loc_584E5 mov rax, [rdi+40h] mov r10, rsi loc_584D2: movzx edx, byte ptr [r10] test byte ptr [rax+rdx+1], 8 jz short loc_584E5 inc r10 cmp r10, r11 jb short loc_584D2 loc_584E5: cmp r10, r11 jz loc_585CD mov dil, [r10] lea eax, [rdi-2Bh] and al, 0FDh cmp al, 1 adc r10, 0 movsxd rbx, ecx mov rax, 0FFFFFFFFFFFFFFFFh xor edx, edx mov [rbp+var_38], rbx div rbx xor r12d, r12d cmp r10, r11 jz loc_585AA mov [rbp+var_30], rdi mov r14, r10 xor r15d, r15d loc_58525: mov rdi, r15 mov r13d, r12d mov r12b, [r14] lea ebx, [r12-30h] cmp bl, 0Ah jb short loc_58559 lea ebx, [r12-41h] cmp bl, 19h ja short loc_58548 add r12b, 0C9h jmp short loc_58556 loc_58548: lea ebx, [r12-61h] cmp bl, 19h ja short loc_58598 add r12b, 0A9h loc_58556: mov ebx, r12d loc_58559: movzx ebx, bl cmp ebx, ecx jge short loc_58598 mov r12d, 1 cmp rdi, rax jbe short loc_58570 mov r15, rdi jmp short loc_58587 loc_58570: jnz short loc_58579 mov r15, rax cmp ebx, edx ja short loc_58587 loc_58579: imul rdi, [rbp+var_38] mov r15d, ebx add r15, rdi mov r12d, r13d loc_58587: inc r14 cmp r14, r11 jnz short loc_58525 mov rdi, r15 mov r14, r11 mov r13d, r12d loc_58598: test r13d, r13d setz al mov r12, rdi mov r11, r14 mov rdi, [rbp+var_30] jmp short loc_585AC loc_585AA: mov al, 1 loc_585AC: cmp r11, r10 jz short loc_585CD test r8, r8 jz short loc_585B9 mov [r8], r11 loc_585B9: test al, al jz short loc_585E0 mov rax, r12 neg rax cmp dil, 2Dh ; '-' cmovnz rax, r12 jmp short loc_585EE loc_585CD: mov dword ptr [r9], 21h ; '!' test r8, r8 jz short loc_585DC mov [r8], rsi loc_585DC: xor eax, eax jmp short loc_585EE loc_585E0: mov dword ptr [r9], 22h ; '"' mov rax, 0FFFFFFFFFFFFFFFFh loc_585EE: pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long my_strntoull_8bit( long long a1, unsigned __int8 *a2, long long a3, int a4, unsigned __int8 **a5, _DWORD *a6) { unsigned __int8 *v6; // r11 unsigned __int8 *v7; // r10 unsigned __int8 v8; // di unsigned __int8 *v9; // r10 unsigned long long v10; // rax unsigned long long v11; // r12 unsigned __int8 *v12; // r14 unsigned long long v13; // r15 unsigned long long v14; // rdi int v15; // r13d unsigned __int8 v16; // r12 unsigned __int8 v17; // bl unsigned __int8 v18; // r12 bool v19; // al long long result; // rax unsigned __int8 v21; // [rsp+8h] [rbp-30h] *a6 = 0; v6 = &a2[a3]; v7 = a2; if ( a3 > 0 ) { v7 = a2; do { if ( (*(_BYTE *)(*(_QWORD *)(a1 + 64) + *v7 + 1LL) & 8) == 0 ) break; ++v7; } while ( v7 < v6 ); } if ( v7 == v6 ) goto LABEL_30; v8 = *v7; v9 = &v7[((*v7 - 43) & 0xFD) == 0]; v10 = 0xFFFFFFFFFFFFFFFFLL / a4; v11 = 0LL; if ( v9 == v6 ) { v19 = 1; } else { v21 = v8; v12 = v9; v13 = 0LL; while ( 1 ) { v14 = v13; v15 = v11; v16 = *v12; v17 = *v12 - 48; if ( v17 >= 0xAu ) { if ( (unsigned __int8)(v16 - 65) > 0x19u ) { if ( (unsigned __int8)(v16 - 97) > 0x19u ) break; v18 = v16 - 87; } else { v18 = v16 - 55; } v17 = v18; } if ( v17 >= a4 ) break; LODWORD(v11) = 1; if ( v13 <= v10 ) { if ( v13 != v10 || (v13 = 0xFFFFFFFFFFFFFFFFLL / a4, v17 <= (unsigned int)(0xFFFFFFFFFFFFFFFFLL % a4)) ) { v13 = a4 * v14 + v17; LODWORD(v11) = v15; } } if ( ++v12 == v6 ) { v14 = v13; v12 = &a2[a3]; v15 = v11; break; } } v19 = v15 == 0; v11 = v14; v6 = v12; v8 = v21; } if ( v6 == v9 ) { LABEL_30: *a6 = 33; if ( a5 ) *a5 = a2; return 0LL; } else { if ( a5 ) *a5 = v6; if ( v19 ) { result = -(long long)v11; if ( v8 != 45 ) return v11; } else { *a6 = 34; return -1LL; } } return result; }
my_strntoull_8bit: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX MOV dword ptr [R9],0x0 LEA R11,[RSI + RDX*0x1] MOV R10,RSI TEST RDX,RDX JLE 0x001584e5 MOV RAX,qword ptr [RDI + 0x40] MOV R10,RSI LAB_001584d2: MOVZX EDX,byte ptr [R10] TEST byte ptr [RAX + RDX*0x1 + 0x1],0x8 JZ 0x001584e5 INC R10 CMP R10,R11 JC 0x001584d2 LAB_001584e5: CMP R10,R11 JZ 0x001585cd MOV DIL,byte ptr [R10] LEA EAX,[RDI + -0x2b] AND AL,0xfd CMP AL,0x1 ADC R10,0x0 MOVSXD RBX,ECX MOV RAX,-0x1 XOR EDX,EDX MOV qword ptr [RBP + -0x38],RBX DIV RBX XOR R12D,R12D CMP R10,R11 JZ 0x001585aa MOV qword ptr [RBP + -0x30],RDI MOV R14,R10 XOR R15D,R15D LAB_00158525: MOV RDI,R15 MOV R13D,R12D MOV R12B,byte ptr [R14] LEA EBX,[R12 + -0x30] CMP BL,0xa JC 0x00158559 LEA EBX,[R12 + -0x41] CMP BL,0x19 JA 0x00158548 ADD R12B,0xc9 JMP 0x00158556 LAB_00158548: LEA EBX,[R12 + -0x61] CMP BL,0x19 JA 0x00158598 ADD R12B,0xa9 LAB_00158556: MOV EBX,R12D LAB_00158559: MOVZX EBX,BL CMP EBX,ECX JGE 0x00158598 MOV R12D,0x1 CMP RDI,RAX JBE 0x00158570 MOV R15,RDI JMP 0x00158587 LAB_00158570: JNZ 0x00158579 MOV R15,RAX CMP EBX,EDX JA 0x00158587 LAB_00158579: IMUL RDI,qword ptr [RBP + -0x38] MOV R15D,EBX ADD R15,RDI MOV R12D,R13D LAB_00158587: INC R14 CMP R14,R11 JNZ 0x00158525 MOV RDI,R15 MOV R14,R11 MOV R13D,R12D LAB_00158598: TEST R13D,R13D SETZ AL MOV R12,RDI MOV R11,R14 MOV RDI,qword ptr [RBP + -0x30] JMP 0x001585ac LAB_001585aa: MOV AL,0x1 LAB_001585ac: CMP R11,R10 JZ 0x001585cd TEST R8,R8 JZ 0x001585b9 MOV qword ptr [R8],R11 LAB_001585b9: TEST AL,AL JZ 0x001585e0 MOV RAX,R12 NEG RAX CMP DIL,0x2d CMOVNZ RAX,R12 JMP 0x001585ee LAB_001585cd: MOV dword ptr [R9],0x21 TEST R8,R8 JZ 0x001585dc MOV qword ptr [R8],RSI LAB_001585dc: XOR EAX,EAX JMP 0x001585ee LAB_001585e0: MOV dword ptr [R9],0x22 MOV RAX,-0x1 LAB_001585ee: POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
ulong my_strntoull_8bit(long param_1,byte *param_2,long param_3,int param_4,ulong *param_5, int4 *param_6) { byte bVar1; byte bVar2; int1 auVar3 [16]; int1 auVar4 [16]; ulong uVar5; ulong uVar6; ulong uVar7; byte *pbVar8; byte *pbVar9; byte bVar10; ulong uVar11; ulong uVar12; int iVar13; byte *pbVar14; bool bVar15; *param_6 = 0; pbVar9 = param_2 + param_3; pbVar8 = param_2; if (0 < param_3) { do { if ((*(byte *)(*(long *)(param_1 + 0x40) + 1 + (ulong)*pbVar8) & 8) == 0) break; pbVar8 = pbVar8 + 1; } while (pbVar8 < pbVar9); } if (pbVar8 != pbVar9) { bVar1 = *pbVar8; pbVar8 = pbVar8 + ((bVar1 - 0x2b & 0xfd) == 0); auVar3._8_8_ = 0; auVar3._0_8_ = (long)param_4; auVar4 = ZEXT816(0) << 0x40 | ZEXT816(0xffffffffffffffff); uVar6 = SUB168(auVar4 / auVar3,0); uVar7 = 0; if (pbVar8 == pbVar9) { bVar15 = true; } else { uVar11 = uVar7; pbVar14 = pbVar8; uVar7 = 0; do { iVar13 = (int)uVar11; bVar2 = *pbVar14; bVar10 = bVar2 - 0x30; if (9 < bVar10) { if ((byte)(bVar2 + 0xbf) < 0x1a) { bVar10 = bVar2 - 0x37; } else { if (0x19 < (byte)(bVar2 + 0x9f)) goto LAB_00158598; bVar10 = bVar2 + 0xa9; } } if (param_4 <= (int)(uint)bVar10) goto LAB_00158598; uVar12 = 1; uVar5 = uVar7; if ((uVar7 <= uVar6) && ((uVar7 != uVar6 || (uVar5 = uVar6, (uint)bVar10 <= SUB164(auVar4 % auVar3,0))))) { uVar12 = uVar11; uVar5 = (ulong)bVar10 + uVar7 * (long)param_4; } uVar7 = uVar5; pbVar14 = pbVar14 + 1; uVar11 = uVar12; } while (pbVar14 != pbVar9); iVar13 = (int)uVar12; pbVar14 = pbVar9; LAB_00158598: pbVar9 = pbVar14; bVar15 = iVar13 == 0; } if (pbVar9 != pbVar8) { if (param_5 != (ulong *)0x0) { *param_5 = (ulong)pbVar9; } if (bVar15) { if (bVar1 == 0x2d) { return -uVar7; } return uVar7; } *param_6 = 0x22; return 0xffffffffffffffff; } } *param_6 = 0x21; if (param_5 != (ulong *)0x0) { *param_5 = (ulong)param_2; } return 0; }
31,333
Tools::operator*(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, long)
cosmotop/src/cosmotop_tools_shared.cpp
std::string operator*(const string& str, int64_t n) { if (n < 1 or str.empty()) { return ""; } else if (n == 1) { return str; } string new_str; new_str.reserve(str.size() * n); for (; n > 0; n--) new_str.append(str); return new_str; }
O0
cpp
Tools::operator*(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, long): subq $0x68, %rsp movq %rdi, 0x8(%rsp) movq %rdi, %rax movq %rax, 0x10(%rsp) movq %rdi, 0x40(%rsp) movq %rsi, 0x38(%rsp) movq %rdx, 0x30(%rsp) cmpq $0x1, 0x30(%rsp) jl 0xf2af8 movq 0x38(%rsp), %rdi callq 0x54420 testb $0x1, %al jne 0xf2af8 jmp 0xf2b4b movq 0x8(%rsp), %rdi leaq 0x2f(%rsp), %rdx movq %rdx, 0x48(%rsp) movq 0x48(%rsp), %rax movq %rax, 0x60(%rsp) leaq 0x22861c(%rip), %rsi # 0x31b134 callq 0x33160 jmp 0xf2b1f leaq 0x2f(%rsp), %rax movq %rax, 0x50(%rsp) jmp 0xf2bf9 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x20(%rsp) movl %eax, 0x1c(%rsp) leaq 0x2f(%rsp), %rax movq %rax, 0x58(%rsp) jmp 0xf2c03 cmpq $0x1, 0x30(%rsp) jne 0xf2b67 movq 0x8(%rsp), %rdi movq 0x38(%rsp), %rsi callq 0x388d0 jmp 0xf2bf9 jmp 0xf2b69 movq 0x8(%rsp), %rdi movb $0x0, 0x1b(%rsp) callq 0x3c220 movq 0x38(%rsp), %rdi callq 0x392f0 movq 0x8(%rsp), %rdi movq %rax, %rsi movq 0x30(%rsp), %rax imulq %rax, %rsi callq 0x393c0 jmp 0xf2b9a jmp 0xf2b9c cmpq $0x0, 0x30(%rsp) jle 0xf2be1 movq 0x8(%rsp), %rdi movq 0x38(%rsp), %rsi callq 0x39930 jmp 0xf2bb5 jmp 0xf2bb7 movq 0x30(%rsp), %rax addq $-0x1, %rax movq %rax, 0x30(%rsp) jmp 0xf2b9c movq 0x8(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x20(%rsp) movl %eax, 0x1c(%rsp) callq 0x332b0 jmp 0xf2c03 movb $0x1, 0x1b(%rsp) testb $0x1, 0x1b(%rsp) jne 0xf2bf7 movq 0x8(%rsp), %rdi callq 0x332b0 jmp 0xf2bf9 movq 0x10(%rsp), %rax addq $0x68, %rsp retq movq 0x20(%rsp), %rdi callq 0x16950 nopl (%rax)
_ZN5ToolsmlERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEl: sub rsp, 68h mov [rsp+68h+var_60], rdi mov rax, rdi mov [rsp+68h+var_58], rax mov [rsp+68h+var_28], rdi mov [rsp+68h+var_30], rsi mov [rsp+68h+var_38], rdx cmp [rsp+68h+var_38], 1 jl short loc_F2AF8 mov rdi, [rsp+68h+var_30] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void) test al, 1 jnz short loc_F2AF8 jmp short loc_F2B4B loc_F2AF8: mov rdi, [rsp+68h+var_60] lea rdx, [rsp+68h+var_39] mov [rsp+68h+var_20], rdx mov rax, [rsp+68h+var_20] mov [rsp+68h+var_8], rax lea rsi, byte_31B134 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_F2B1F: lea rax, [rsp+68h+var_39] mov [rsp+68h+var_18], rax jmp loc_F2BF9 mov rcx, rax mov eax, edx mov [rsp+arg_18], rcx mov [rsp+arg_14], eax lea rax, [rsp+arg_27] mov [rsp+arg_50], rax jmp loc_F2C03 loc_F2B4B: cmp [rsp+68h+var_38], 1 jnz short loc_F2B67 mov rdi, [rsp+68h+var_60] mov rsi, [rsp+68h+var_30] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&) jmp loc_F2BF9 loc_F2B67: jmp short $+2 loc_F2B69: mov rdi, [rsp+68h+var_60] mov [rsp+68h+var_4D], 0 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev; std::string::basic_string(void) mov rdi, [rsp+68h+var_30] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv; std::string::size(void) mov rdi, [rsp+68h+var_60] mov rsi, rax mov rax, [rsp+68h+var_38] imul rsi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) jmp short $+2 loc_F2B9A: jmp short $+2 loc_F2B9C: cmp [rsp+68h+var_38], 0 jle short loc_F2BE1 mov rdi, [rsp+68h+var_60] mov rsi, [rsp+68h+var_30] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&) jmp short $+2 loc_F2BB5: jmp short $+2 loc_F2BB7: mov rax, [rsp+68h+var_38] add rax, 0FFFFFFFFFFFFFFFFh mov [rsp+68h+var_38], rax jmp short loc_F2B9C mov rdi, [rsp+arg_0]; void * mov rcx, rax mov eax, edx mov [rsp+arg_18], rcx mov [rsp+arg_14], eax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_F2C03 loc_F2BE1: mov [rsp+68h+var_4D], 1 test [rsp+68h+var_4D], 1 jnz short loc_F2BF7 mov rdi, [rsp+68h+var_60]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_F2BF7: jmp short $+2 loc_F2BF9: mov rax, [rsp+68h+var_58] add rsp, 68h retn loc_F2C03: mov rdi, [rsp+arg_18] call __Unwind_Resume
_QWORD * Tools::operator*(_QWORD *a1, long long a2, long long a3) { long long v3; // rax char v5; // [rsp+2Fh] [rbp-39h] BYREF long long v6; // [rsp+30h] [rbp-38h] long long v7; // [rsp+38h] [rbp-30h] _QWORD *v8; // [rsp+40h] [rbp-28h] char *v9; // [rsp+48h] [rbp-20h] char *v10; // [rsp+50h] [rbp-18h] char *v11; // [rsp+60h] [rbp-8h] v8 = a1; v7 = a2; v6 = a3; if ( a3 < 1 || std::string::empty(v7) ) { v9 = &v5; v11 = &v5; std::string::basic_string<std::allocator<char>>((long long)a1, (long long)&byte_31B134, (long long)&v5); v10 = &v5; } else if ( v6 == 1 ) { std::string::basic_string((long long)a1, v7); } else { std::string::basic_string(a1); v3 = std::string::size(v7); std::string::reserve(a1, v6 * v3); while ( v6 > 0 ) { std::string::append((long long)a1, v7); --v6; } } return a1; }
operator*: SUB RSP,0x68 MOV qword ptr [RSP + 0x8],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x10],RAX MOV qword ptr [RSP + 0x40],RDI MOV qword ptr [RSP + 0x38],RSI MOV qword ptr [RSP + 0x30],RDX CMP qword ptr [RSP + 0x30],0x1 JL 0x001f2af8 MOV RDI,qword ptr [RSP + 0x38] CALL 0x00154420 TEST AL,0x1 JNZ 0x001f2af8 JMP 0x001f2b4b LAB_001f2af8: MOV RDI,qword ptr [RSP + 0x8] LEA RDX,[RSP + 0x2f] MOV qword ptr [RSP + 0x48],RDX MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0x60],RAX LAB_001f2b11: LEA RSI,[0x41b134] CALL 0x00133160 LAB_001f2b1d: JMP 0x001f2b1f LAB_001f2b1f: LEA RAX,[RSP + 0x2f] MOV qword ptr [RSP + 0x50],RAX JMP 0x001f2bf9 LAB_001f2b4b: CMP qword ptr [RSP + 0x30],0x1 JNZ 0x001f2b67 MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RSP + 0x38] CALL 0x001388d0 JMP 0x001f2bf9 LAB_001f2b67: JMP 0x001f2b69 LAB_001f2b69: MOV RDI,qword ptr [RSP + 0x8] MOV byte ptr [RSP + 0x1b],0x0 CALL 0x0013c220 MOV RDI,qword ptr [RSP + 0x38] CALL 0x001392f0 MOV RDI,qword ptr [RSP + 0x8] MOV RSI,RAX MOV RAX,qword ptr [RSP + 0x30] IMUL RSI,RAX LAB_001f2b93: CALL 0x001393c0 JMP 0x001f2b9a LAB_001f2b9a: JMP 0x001f2b9c LAB_001f2b9c: CMP qword ptr [RSP + 0x30],0x0 JLE 0x001f2be1 MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RSP + 0x38] CALL 0x00139930 LAB_001f2bb3: JMP 0x001f2bb5 LAB_001f2bb5: JMP 0x001f2bb7 LAB_001f2bb7: MOV RAX,qword ptr [RSP + 0x30] ADD RAX,-0x1 MOV qword ptr [RSP + 0x30],RAX JMP 0x001f2b9c LAB_001f2be1: MOV byte ptr [RSP + 0x1b],0x1 TEST byte ptr [RSP + 0x1b],0x1 JNZ 0x001f2bf7 MOV RDI,qword ptr [RSP + 0x8] CALL 0x001332b0 LAB_001f2bf7: JMP 0x001f2bf9 LAB_001f2bf9: MOV RAX,qword ptr [RSP + 0x10] ADD RSP,0x68 RET
/* WARNING: Removing unreachable block (ram,0x001f2bed) */ /* Tools::TEMPNAMEPLACEHOLDERVALUE(std::__cxx11::string const&, long) */ Tools * __thiscall Tools::operator*(Tools *this,string *param_1,long param_2) { ulong uVar1; long lVar2; allocator local_39; long local_38; string *local_30; Tools *local_28; allocator *local_20; allocator *local_8; local_38 = param_2; local_30 = param_1; local_28 = this; if ((param_2 < 1) || (uVar1 = std::__cxx11::string::empty(param_1), (uVar1 & 1) != 0)) { local_20 = &local_39; local_8 = local_20; /* try { // try from 001f2b11 to 001f2b1c has its CatchHandler @ 001f2b2e */ std::__cxx11::string::string<std::allocator<char>>((string *)this,"",local_20); } else if (local_38 == 1) { std::__cxx11::string::string((string *)this,local_30); } else { std::__cxx11::string::string((string *)this); lVar2 = std::__cxx11::string::size(local_30); /* try { // try from 001f2b93 to 001f2bb2 has its CatchHandler @ 001f2bc7 */ std::__cxx11::string::reserve((string *)this,lVar2 * local_38); for (; 0 < local_38; local_38 = local_38 + -1) { std::__cxx11::string::append((string *)this,local_30); } } return this; }
31,334
js_fmin
bluesky950520[P]quickjs/quickjs.c
static double js_fmin(double a, double b) { if (a == 0 && b == 0) { JSFloat64Union a1, b1; a1.d = a; b1.d = b; a1.u64 |= b1.u64; return a1.d; } else { return fmin(a, b); } }
O0
c
js_fmin: movsd %xmm0, -0x10(%rsp) movsd %xmm1, -0x18(%rsp) movsd -0x10(%rsp), %xmm0 xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jne 0xd9113 jp 0xd9113 movsd -0x18(%rsp), %xmm0 xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jne 0xd9113 jp 0xd9113 movsd -0x10(%rsp), %xmm0 movsd %xmm0, -0x20(%rsp) movsd -0x18(%rsp), %xmm0 movsd %xmm0, -0x28(%rsp) movq -0x28(%rsp), %rax orq -0x20(%rsp), %rax movq %rax, -0x20(%rsp) movsd -0x20(%rsp), %xmm0 movsd %xmm0, -0x8(%rsp) jmp 0xd9143 movsd -0x10(%rsp), %xmm3 movsd -0x18(%rsp), %xmm2 movaps %xmm2, %xmm4 movaps %xmm3, %xmm0 cmpunordsd %xmm0, %xmm0 movaps %xmm0, %xmm1 pand %xmm4, %xmm1 minsd %xmm3, %xmm2 pandn %xmm2, %xmm0 por %xmm1, %xmm0 movsd %xmm0, -0x8(%rsp) movsd -0x8(%rsp), %xmm0 retq nopw (%rax,%rax)
js_fmin: movsd [rsp+var_10], xmm0 movsd [rsp+var_18], xmm1 movsd xmm0, [rsp+var_10] xorps xmm1, xmm1 ucomisd xmm0, xmm1 jnz short loc_D9113 jp short loc_D9113 movsd xmm0, [rsp+var_18] xorps xmm1, xmm1 ucomisd xmm0, xmm1 jnz short loc_D9113 jp short loc_D9113 movsd xmm0, [rsp+var_10] movsd [rsp+var_20], xmm0 movsd xmm0, [rsp+var_18] movsd [rsp+var_28], xmm0 mov rax, [rsp+var_28] or rax, [rsp+var_20] mov [rsp+var_20], rax movsd xmm0, [rsp+var_20] movsd [rsp+var_8], xmm0 jmp short loc_D9143 loc_D9113: movsd xmm3, [rsp+var_10] movsd xmm2, [rsp+var_18] movaps xmm4, xmm2 movaps xmm0, xmm3 cmpunordsd xmm0, xmm0 movaps xmm1, xmm0 pand xmm1, xmm4 minsd xmm2, xmm3 pandn xmm0, xmm2 por xmm0, xmm1 movsd [rsp+var_8], xmm0 loc_D9143: movsd xmm0, [rsp+var_8] retn
double js_fmin(double a1, double a2) { __m128i v2; // xmm2 __m128i v3; // xmm0 double v6; // [rsp+20h] [rbp-8h] if ( a1 == 0.0 && a2 == 0.0 ) { *(_QWORD *)&v6 = *(_QWORD *)&a1 | *(_QWORD *)&a2; } else { v2 = (__m128i)*(unsigned long long *)&a2; v3 = (__m128i)_mm_cmpunord_sd((__m128d)*(unsigned long long *)&a1, (__m128d)*(unsigned long long *)&a1); *(double *)v2.m128i_i64 = fmin(a2, a1); *(_QWORD *)&v6 = _mm_or_si128(_mm_andnot_si128(v3, v2), _mm_and_si128(v3, (__m128i)*(unsigned long long *)&a2)).m128i_u64[0]; } return v6; }
js_fmin: MOVSD qword ptr [RSP + -0x10],XMM0 MOVSD qword ptr [RSP + -0x18],XMM1 MOVSD XMM0,qword ptr [RSP + -0x10] XORPS XMM1,XMM1 UCOMISD XMM0,XMM1 JNZ 0x001d9113 JP 0x001d9113 MOVSD XMM0,qword ptr [RSP + -0x18] XORPS XMM1,XMM1 UCOMISD XMM0,XMM1 JNZ 0x001d9113 JP 0x001d9113 MOVSD XMM0,qword ptr [RSP + -0x10] MOVSD qword ptr [RSP + -0x20],XMM0 MOVSD XMM0,qword ptr [RSP + -0x18] MOVSD qword ptr [RSP + -0x28],XMM0 MOV RAX,qword ptr [RSP + -0x28] OR RAX,qword ptr [RSP + -0x20] MOV qword ptr [RSP + -0x20],RAX MOVSD XMM0,qword ptr [RSP + -0x20] MOVSD qword ptr [RSP + -0x8],XMM0 JMP 0x001d9143 LAB_001d9113: MOVSD XMM3,qword ptr [RSP + -0x10] MOVSD XMM2,qword ptr [RSP + -0x18] MOVAPS XMM4,XMM2 MOVAPS XMM0,XMM3 CMPUNORDSD XMM0,XMM0 MOVAPS XMM1,XMM0 PAND XMM1,XMM4 MINSD XMM2,XMM3 PANDN XMM0,XMM2 POR XMM0,XMM1 MOVSD qword ptr [RSP + -0x8],XMM0 LAB_001d9143: MOVSD XMM0,qword ptr [RSP + -0x8] RET
ulong js_fmin(double param_1,double param_2) { int4 uVar1; int4 uVar2; int8 local_8; if ((((param_1 != 0.0) || (NAN(param_1))) || (param_2 != 0.0)) || (NAN(param_2))) { uVar1 = SUB84(param_2,0); uVar2 = (int)((ulong)param_2 >> 0x20); if (param_1 <= param_2) { uVar1 = SUB84(param_1,0); uVar2 = (int)((ulong)param_1 >> 0x20); } local_8 = ~-(ulong)NAN(param_1) & CONCAT44(uVar2,uVar1) | -(ulong)NAN(param_1) & (ulong)param_2; } else { local_8 = (ulong)param_2 | (ulong)param_1; } return local_8; }
31,335
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; }
O2
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 0x50473 movq %rdi, %r14 subq %rbx, %rdx pushq $0x60 popq %rcx movq %rdx, %rax cqto idivq %rcx movq %rax, %r15 movq (%rdi), %rax movq %rax, (%rsp) imulq $0x60, %r15, %r13 addq %rbx, %r13 movq %r13, %r12 negq %r12 movq %rbx, %rbp cmpq 0x8(%r14), %r13 je 0x5044d movq %rbp, %rdi callq 0x4a2ec movq %rbp, %rdi movq %r13, %rsi callq 0x50486 addq $0x60, %rbp addq $0x60, %r13 addq $-0x60, %r12 jmp 0x50426 subq (%rsp), %rbx addq (%r14), %r12 negq %r12 movq %r12, %rax cqto pushq $0x60 popq %rcx idivq %rcx subq %r15, %rax movq %r14, %rdi movq %rax, %rsi callq 0x504b0 addq (%r14), %rbx movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
_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_50473 mov r14, rdi sub rdx, rbx push 60h ; '`' pop rcx mov rax, rdx cqo idiv rcx mov r15, rax mov rax, [rdi] mov [rsp+38h+var_38], rax imul r13, r15, 60h ; '`' add r13, rbx mov r12, r13 neg r12 mov rbp, rbx loc_50426: cmp r13, [r14+8] jz short loc_5044D mov rdi, rbp 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, rbp 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 rbp, 60h ; '`' add r13, 60h ; '`' add r12, 0FFFFFFFFFFFFFFA0h jmp short loc_50426 loc_5044D: sub rbx, [rsp+38h+var_38] add r12, [r14] neg r12 mov rax, r12 cqo push 60h ; '`' pop rcx idiv rcx sub rax, r15 mov rdi, r14 mov rsi, rax 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_50473: 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 long long v5; // r13 long long v6; // r12 long long v7; // rbp long long v9; // [rsp+0h] [rbp-38h] v3 = a2; if ( a2 != a3 ) { v4 = (a3 - a2) / 96; v9 = *a1; v5 = a2 + 96 * v4; v6 = -v5; v7 = a2; while ( v5 != a1[1] ) { 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); 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, v5); v7 += 96LL; v5 += 96LL; v6 -= 96LL; } 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, -(*a1 + v6) / 96 - v4, -(*a1 + v6) % 96); return *a1 + a2 - 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 0x00150473 MOV R14,RDI SUB RDX,RBX PUSH 0x60 POP RCX MOV RAX,RDX CQO IDIV RCX MOV R15,RAX MOV RAX,qword ptr [RDI] MOV qword ptr [RSP],RAX IMUL R13,R15,0x60 ADD R13,RBX MOV R12,R13 NEG R12 MOV RBP,RBX LAB_00150426: CMP R13,qword ptr [R14 + 0x8] JZ 0x0015044d MOV RDI,RBP CALL 0x0014a2ec MOV RDI,RBP MOV RSI,R13 CALL 0x00150486 ADD RBP,0x60 ADD R13,0x60 ADD R12,-0x60 JMP 0x00150426 LAB_0015044d: SUB RBX,qword ptr [RSP] ADD R12,qword ptr [R14] NEG R12 MOV RAX,R12 CQO PUSH 0x60 POP RCX IDIV RCX SUB RAX,R15 MOV RDI,R14 MOV RSI,RAX CALL 0x001504b0 ADD RBX,qword ptr [R14] LAB_00150473: 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; long lVar2; 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; long lVar3; pair *ppVar4; if (param_2 != param_3) { lVar2 = ((long)param_3 - (long)param_2) / 0x60; lVar1 = *(long *)this; ppVar4 = (pair *)(param_2 + lVar2 * 0x60); lVar3 = -(long)ppVar4; this_00 = param_2; for (; ppVar4 != *(pair **)(this + 8); ppVar4 = ppVar4 + 0x60) { 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,ppVar4); this_00 = this_00 + 0x60; lVar3 = lVar3 + -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,-(lVar3 + *(long *)this) / 0x60 - lVar2); param_2 = param_2 + (*(long *)this - lVar1); } return param_2; }
31,336
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; }
O3
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 subq $0x18, %rsp movq %rsi, %rbx cmpq %rdx, %rsi je 0x49e00 movq %rdx, %r15 movq %rdi, %r14 movq %rdx, %rax subq %rbx, %rax sarq $0x4, %rax movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB imulq %rcx, %rax movq %rax, 0x10(%rsp) movq (%rdi), %rax movq %rax, 0x8(%rsp) leaq 0x10(%rbx), %rbp movq %rdx, %r12 negq %r12 cmpq 0x8(%r14), %r15 je 0x49dd0 leaq 0x10(%rbp), %r13 movq %r13, %rdi xorl %esi, %esi callq 0x3d7c0 movq %r13, %rdi callq 0x4a3ae movq -0x10(%rbp), %rdi cmpq %rdi, %rbp je 0x49db6 movq (%rbp), %rsi incq %rsi callq 0x186a0 leaq -0x10(%rbp), %rdi movq %r15, %rsi callq 0x49e12 addq $0x30, %r15 addq $0x30, %rbp addq $-0x30, %r12 jmp 0x49d85 subq 0x8(%rsp), %rbx addq (%r14), %r12 negq %r12 sarq $0x4, %r12 movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB imulq %rax, %r12 subq 0x10(%rsp), %r12 movq %r14, %rdi movq %r12, %rsi callq 0x49e6a addq (%r14), %rbx movq %rbx, %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5eraseEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEESP_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov rbx, rsi cmp rsi, rdx jz loc_49E00 mov r15, rdx mov r14, rdi mov rax, rdx sub rax, rbx sar rax, 4 mov rcx, 0AAAAAAAAAAAAAAABh imul rax, rcx mov [rsp+48h+var_38], rax mov rax, [rdi] mov [rsp+48h+var_40], rax lea rbp, [rbx+10h] mov r12, rdx neg r12 loc_49D85: cmp r15, [r14+8] jz short loc_49DD0 lea r13, [rbp+10h] mov rdi, r13 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; 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>::assert_invariant(bool) mov rdi, r13 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; 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>::data::~data() mov rdi, [rbp-10h]; void * cmp rbp, rdi jz short loc_49DB6 mov rsi, [rbp+0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_49DB6: lea rdi, [rbp-10h] mov rsi, r15 call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEEC2EOSG_; 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>>::pair(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>>&&) add r15, 30h ; '0' add rbp, 30h ; '0' add r12, 0FFFFFFFFFFFFFFD0h jmp short loc_49D85 loc_49DD0: sub rbx, [rsp+48h+var_40] add r12, [r14] neg r12 sar r12, 4 mov rax, 0AAAAAAAAAAAAAAABh imul r12, rax sub r12, [rsp+48h+var_38] mov rdi, r14 mov rsi, r12 call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE6resizeEm; std::vector<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>>>::resize(ulong) add rbx, [r14] loc_49E00: mov rax, rbx add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long 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>>>>::erase( long long *a1, long long a2, long long a3) { long long v3; // rbx long long v4; // r15 char *v6; // rbp long long v7; // r12 char *v8; // rdi long long v10; // [rsp+8h] [rbp-40h] unsigned long long v11; // [rsp+10h] [rbp-38h] v3 = a2; if ( a2 != a3 ) { v4 = a3; v11 = 0xAAAAAAAAAAAAAAABLL * ((a3 - a2) >> 4); v10 = *a1; v6 = (char *)(a2 + 16); v7 = -a3; while ( v4 != a1[1] ) { 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>::assert_invariant(v6 + 16); 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>::data::~data(v6 + 16); v8 = (char *)*((_QWORD *)v6 - 2); if ( v6 != v8 ) operator delete(v8, *(_QWORD *)v6 + 1LL); 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>>::pair( v6 - 16, v4); v4 += 48LL; v6 += 48; v7 -= 48LL; } std::vector<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>>>::resize( a1, 0xAAAAAAAAAAAAAAABLL * (-(*a1 + v7) >> 4) - v11); return *a1 + a2 - v10; } return v3; }
erase: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV RBX,RSI CMP RSI,RDX JZ 0x00149e00 MOV R15,RDX MOV R14,RDI MOV RAX,RDX SUB RAX,RBX SAR RAX,0x4 MOV RCX,-0x5555555555555555 IMUL RAX,RCX MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RDI] MOV qword ptr [RSP + 0x8],RAX LEA RBP,[RBX + 0x10] MOV R12,RDX NEG R12 LAB_00149d85: CMP R15,qword ptr [R14 + 0x8] JZ 0x00149dd0 LEA R13,[RBP + 0x10] MOV RDI,R13 XOR ESI,ESI CALL 0x0013d7c0 MOV RDI,R13 CALL 0x0014a3ae MOV RDI,qword ptr [RBP + -0x10] CMP RBP,RDI JZ 0x00149db6 MOV RSI,qword ptr [RBP] INC RSI CALL 0x001186a0 LAB_00149db6: LEA RDI,[RBP + -0x10] MOV RSI,R15 CALL 0x00149e12 ADD R15,0x30 ADD RBP,0x30 ADD R12,-0x30 JMP 0x00149d85 LAB_00149dd0: SUB RBX,qword ptr [RSP + 0x8] ADD R12,qword ptr [R14] NEG R12 SAR R12,0x4 MOV RAX,-0x5555555555555555 IMUL R12,RAX SUB R12,qword ptr [RSP + 0x10] MOV RDI,R14 MOV RSI,R12 CALL 0x00149e6a ADD RBX,qword ptr [R14] LAB_00149e00: MOV RAX,RBX ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* nlohmann::json_abi_v3_11_3::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> > > >::erase(__gnu_cxx::__normal_iterator<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> >*, std::vector<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> >, 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> > > > >, __gnu_cxx::__normal_iterator<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> >*, std::vector<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> >, 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> > > > >) */ pair * __thiscall nlohmann::json_abi_v3_11_3:: 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>>>> ::erase(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>>>> *this,pair *param_2,pair *param_3) { long lVar1; long lVar2; pair *ppVar3; long lVar4; if (param_2 != param_3) { lVar2 = (long)param_3 - (long)param_2; lVar1 = *(long *)this; ppVar3 = param_2 + 0x10; lVar4 = -(long)param_3; for (; param_3 != *(pair **)(this + 8); param_3 = param_3 + 0x30) { 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> ::assert_invariant(SUB81((data *)(ppVar3 + 0x10),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> ::data::~data((data *)(ppVar3 + 0x10)); if (ppVar3 != *(pair **)(ppVar3 + -0x10)) { operator_delete(*(pair **)(ppVar3 + -0x10),*(long *)ppVar3 + 1); } 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>> ::pair((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>> *)(ppVar3 + -0x10),param_3); ppVar3 = ppVar3 + 0x30; lVar4 = lVar4 + -0x30; } std:: vector<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>>,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>>>> ::resize((vector<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>>,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>>>> *)this,(-(lVar4 + *(long *)this) >> 4) * -0x5555555555555555 + (lVar2 >> 4) * 0x5555555555555555); param_2 = param_2 + (*(long *)this - lVar1); } return param_2; }
31,337
nlohmann::json_abi_v3_11_3::detail::lexer<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>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::skip_bom()
llama.cpp/common/json.hpp
bool skip_bom() { if (get() == 0xEF) { // check if we completely parse the BOM return get() == 0xBB && get() == 0xBF; } // the first character is not the beginning of the BOM; unget it to // process is later unget(); return true; }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::lexer<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>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::skip_bom(): pushq %rbx movq %rdi, %rbx callq 0x1e9d6 cmpl $0xef, %eax je 0x6558a movq %rbx, %rdi callq 0x65e80 movb $0x1, %al popq %rbx retq movq %rbx, %rdi callq 0x1e9d6 cmpl $0xbb, %eax je 0x6559d xorl %eax, %eax jmp 0x65588 movq %rbx, %rdi callq 0x1e9d6 cmpl $0xbf, %eax sete %al jmp 0x65588 nop
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE8skip_bomEv: push rbx mov rbx, rdi call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) cmp eax, 0EFh jz short loc_6558A mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5ungetEv; nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget(void) mov al, 1 loc_65588: pop rbx retn loc_6558A: mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) cmp eax, 0BBh jz short loc_6559D xor eax, eax jmp short loc_65588 loc_6559D: mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) cmp eax, 0BFh setz al jmp short loc_65588
bool nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::skip_bom( __m128i *a1) { if ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1) == 239 ) return (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1) == 187 && (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1) == 191; nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget(a1); return 1; }
skip_bom: PUSH RBX MOV RBX,RDI CALL 0x0011e9d6 CMP EAX,0xef JZ 0x0016558a MOV RDI,RBX CALL 0x00165e80 MOV AL,0x1 LAB_00165588: POP RBX RET LAB_0016558a: MOV RDI,RBX CALL 0x0011e9d6 CMP EAX,0xbb JZ 0x0016559d XOR EAX,EAX JMP 0x00165588 LAB_0016559d: MOV RDI,RBX CALL 0x0011e9d6 CMP EAX,0xbf SETZ AL JMP 0x00165588
/* nlohmann::json_abi_v3_11_3::detail::lexer<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>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::string > > >::skip_bom() */ bool __thiscall nlohmann::json_abi_v3_11_3::detail:: lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::skip_bom(lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> *this) { int iVar1; bool bVar2; iVar1 = get(this); if (iVar1 == 0xef) { iVar1 = get(this); if (iVar1 == 0xbb) { iVar1 = get(this); bVar2 = iVar1 == 0xbf; } else { bVar2 = false; } } else { unget(this); bVar2 = true; } return bVar2; }
31,338
FrozenCLIPEmbedderWithCustomWords::compute(int, std::vector<int, std::allocator<int>>, ggml_tensor*, ggml_tensor*)
7CodeWizard[P]stablediffusion/clip.hpp
void compute(const int n_threads, std::vector<int> tokens, ggml_tensor* hidden_state_output, ggml_tensor* pooled_output = NULL) { auto get_graph = [&]() -> struct ggml_cgraph* { return build_graph(compute_allocr, tokens, false); }; GGMLModule::compute(get_graph, n_threads, hidden_state_output); if (version == VERSION_XL && pooled_output != NULL) { auto get_graph = [&]() -> struct ggml_cgraph* { return build_graph(compute_allocr, tokens, true); }; GGMLModule::compute(get_graph, n_threads, pooled_output); } }
O0
cpp
FrozenCLIPEmbedderWithCustomWords::compute(int, std::vector<int, std::allocator<int>>, ggml_tensor*, ggml_tensor*): subq $0xb8, %rsp movq %rdx, 0x8(%rsp) movq %rdi, 0xb0(%rsp) movl %esi, 0xac(%rsp) movq %rdx, 0xa0(%rsp) movq %rcx, 0x98(%rsp) movq %r8, 0x90(%rsp) movq 0xb0(%rsp), %rax movq %rax, 0x10(%rsp) movq %rax, 0x80(%rsp) movq %rdx, 0x88(%rsp) leaq 0x60(%rsp), %rdi movq %rdi, 0x18(%rsp) leaq 0x80(%rsp), %rsi callq 0x82c90 movq 0x10(%rsp), %rdi movq 0x18(%rsp), %rsi movl 0xac(%rsp), %edx movq 0x98(%rsp), %rcx callq 0x69b30 jmp 0x759c7 leaq 0x60(%rsp), %rdi callq 0x66640 movq 0x10(%rsp), %rax cmpl $0x2, 0x68(%rax) jne 0x75a75 cmpq $0x0, 0x90(%rsp) je 0x75a75 movq 0x10(%rsp), %rcx movq 0x8(%rsp), %rax movq %rcx, 0x40(%rsp) movq %rax, 0x48(%rsp) leaq 0x20(%rsp), %rdi movq %rdi, (%rsp) leaq 0x40(%rsp), %rsi callq 0x82d20 movq 0x10(%rsp), %rdi movq (%rsp), %rsi movl 0xac(%rsp), %edx movq 0x90(%rsp), %rcx callq 0x69b30 jmp 0x75a35 leaq 0x20(%rsp), %rdi callq 0x66640 jmp 0x75a75 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x58(%rsp) movl %eax, 0x54(%rsp) leaq 0x60(%rsp), %rdi callq 0x66640 jmp 0x75a7d movq %rax, %rcx movl %edx, %eax movq %rcx, 0x58(%rsp) movl %eax, 0x54(%rsp) leaq 0x20(%rsp), %rdi callq 0x66640 jmp 0x75a7d addq $0xb8, %rsp retq movq 0x58(%rsp), %rdi callq 0xbd30 nopw (%rax,%rax)
_ZN33FrozenCLIPEmbedderWithCustomWords7computeEiSt6vectorIiSaIiEEP11ggml_tensorS4_: sub rsp, 0B8h mov [rsp+0B8h+var_B0], rdx mov [rsp+0B8h+var_8], rdi mov [rsp+0B8h+var_C], esi mov [rsp+0B8h+var_18], rdx mov [rsp+0B8h+var_20], rcx mov [rsp+0B8h+var_28], r8 mov rax, [rsp+0B8h+var_8] mov [rsp+0B8h+var_A8], rax mov [rsp+0B8h+var_38], rax mov [rsp+0B8h+var_30], rdx lea rdi, [rsp+0B8h+var_58] mov [rsp+0B8h+var_A0], rdi lea rsi, [rsp+0B8h+var_38] call _ZNSt8functionIFP11ggml_cgraphvEEC2IRZN33FrozenCLIPEmbedderWithCustomWords7computeEiSt6vectorIiSaIiEEP11ggml_tensorSA_EUlvE_vEEOT_; std::function<ggml_cgraph * ()(void)>::function<FrozenCLIPEmbedderWithCustomWords::compute(int,std::vector<int>,ggml_tensor *,ggml_tensor *)::{lambda(void)#1} &,void>(FrozenCLIPEmbedderWithCustomWords::compute(int,std::vector<int>,ggml_tensor *,ggml_tensor *)::{lambda(void)#1} &) mov rdi, [rsp+0B8h+var_A8] mov rsi, [rsp+0B8h+var_A0] mov edx, [rsp+0B8h+var_C] mov rcx, [rsp+0B8h+var_20] call _ZN10GGMLModule7computeESt8functionIFP11ggml_cgraphvEEiP11ggml_tensor; GGMLModule::compute(std::function<ggml_cgraph * ()(void)>,int,ggml_tensor *) jmp short $+2 loc_759C7: lea rdi, [rsp+0B8h+var_58] call _ZNSt8functionIFP11ggml_cgraphvEED2Ev; std::function<ggml_cgraph * ()(void)>::~function() mov rax, [rsp+0B8h+var_A8] cmp dword ptr [rax+68h], 2 jnz loc_75A75 cmp [rsp+0B8h+var_28], 0 jz loc_75A75 mov rcx, [rsp+0B8h+var_A8] mov rax, [rsp+0B8h+var_B0] mov [rsp+0B8h+var_78], rcx mov [rsp+0B8h+var_70], rax lea rdi, [rsp+0B8h+var_98] mov [rsp+0B8h+var_B8], rdi lea rsi, [rsp+0B8h+var_78] call _ZNSt8functionIFP11ggml_cgraphvEEC2IRZN33FrozenCLIPEmbedderWithCustomWords7computeEiSt6vectorIiSaIiEEP11ggml_tensorSA_EUlvE0_vEEOT_; std::function<ggml_cgraph * ()(void)>::function<FrozenCLIPEmbedderWithCustomWords::compute(int,std::vector<int>,ggml_tensor *,ggml_tensor *)::{lambda(void)#2} &,void>(FrozenCLIPEmbedderWithCustomWords::compute(int,std::vector<int>,ggml_tensor *,ggml_tensor *)::{lambda(void)#2} &) mov rdi, [rsp+0B8h+var_A8] mov rsi, [rsp+0B8h+var_B8] mov edx, [rsp+0B8h+var_C] mov rcx, [rsp+0B8h+var_28] call _ZN10GGMLModule7computeESt8functionIFP11ggml_cgraphvEEiP11ggml_tensor; GGMLModule::compute(std::function<ggml_cgraph * ()(void)>,int,ggml_tensor *) jmp short $+2 loc_75A35: lea rdi, [rsp+0B8h+var_98] call _ZNSt8functionIFP11ggml_cgraphvEED2Ev; std::function<ggml_cgraph * ()(void)>::~function() jmp short loc_75A75 mov rcx, rax mov eax, edx mov [rsp+arg_50], rcx mov [rsp+arg_4C], eax lea rdi, [rsp+arg_58] call _ZNSt8functionIFP11ggml_cgraphvEED2Ev; std::function<ggml_cgraph * ()(void)>::~function() jmp short loc_75A7D mov rcx, rax mov eax, edx mov [rsp+arg_50], rcx mov [rsp+arg_4C], eax lea rdi, [rsp+arg_18] call _ZNSt8functionIFP11ggml_cgraphvEED2Ev; std::function<ggml_cgraph * ()(void)>::~function() jmp short loc_75A7D loc_75A75: add rsp, 0B8h retn loc_75A7D: mov rdi, [rsp+arg_50] call __Unwind_Resume
std::_Function_base * FrozenCLIPEmbedderWithCustomWords::compute( long long a1, unsigned int a2, long long a3, long long a4, long long a5) { std::_Function_base *result; // rax long long (*v7[4])(void); // [rsp+20h] [rbp-98h] BYREF _QWORD v8[4]; // [rsp+40h] [rbp-78h] BYREF long long (*v9[4])(void); // [rsp+60h] [rbp-58h] BYREF _QWORD v10[2]; // [rsp+80h] [rbp-38h] BYREF long long v11; // [rsp+90h] [rbp-28h] long long v12; // [rsp+98h] [rbp-20h] long long v13; // [rsp+A0h] [rbp-18h] unsigned int v14; // [rsp+ACh] [rbp-Ch] long long v15; // [rsp+B0h] [rbp-8h] v15 = a1; v14 = a2; v13 = a3; v12 = a4; v11 = a5; v10[0] = a1; v10[1] = a3; std::function<ggml_cgraph * ()(void)>::function<FrozenCLIPEmbedderWithCustomWords::compute(int,std::vector<int>,ggml_tensor *,ggml_tensor *)::{lambda(void)#1} &,void>( v9, v10); GGMLModule::compute(a1, v9, v14, v12); std::function<ggml_cgraph * ()(void)>::~function((std::_Function_base *)v9); result = (std::_Function_base *)a1; if ( *(_DWORD *)(a1 + 104) == 2 ) { if ( v11 ) { v8[0] = a1; v8[1] = a3; std::function<ggml_cgraph * ()(void)>::function<FrozenCLIPEmbedderWithCustomWords::compute(int,std::vector<int>,ggml_tensor *,ggml_tensor *)::{lambda(void)#2} &,void>( v7, v8); GGMLModule::compute(a1, v7, v14, v11); return std::function<ggml_cgraph * ()(void)>::~function((std::_Function_base *)v7); } } return result; }
compute: SUB RSP,0xb8 MOV qword ptr [RSP + 0x8],RDX MOV qword ptr [RSP + 0xb0],RDI MOV dword ptr [RSP + 0xac],ESI MOV qword ptr [RSP + 0xa0],RDX MOV qword ptr [RSP + 0x98],RCX MOV qword ptr [RSP + 0x90],R8 MOV RAX,qword ptr [RSP + 0xb0] MOV qword ptr [RSP + 0x10],RAX MOV qword ptr [RSP + 0x80],RAX MOV qword ptr [RSP + 0x88],RDX LEA RDI,[RSP + 0x60] MOV qword ptr [RSP + 0x18],RDI LEA RSI,[RSP + 0x80] CALL 0x00182c90 MOV RDI,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RSP + 0x18] MOV EDX,dword ptr [RSP + 0xac] MOV RCX,qword ptr [RSP + 0x98] LAB_001759c0: CALL 0x00169b30 JMP 0x001759c7 LAB_001759c7: LEA RDI,[RSP + 0x60] CALL 0x00166640 MOV RAX,qword ptr [RSP + 0x10] CMP dword ptr [RAX + 0x68],0x2 JNZ 0x00175a75 CMP qword ptr [RSP + 0x90],0x0 JZ 0x00175a75 MOV RCX,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x40],RCX MOV qword ptr [RSP + 0x48],RAX LEA RDI,[RSP + 0x20] MOV qword ptr [RSP],RDI LEA RSI,[RSP + 0x40] CALL 0x00182d20 MOV RDI,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RSP] MOV EDX,dword ptr [RSP + 0xac] MOV RCX,qword ptr [RSP + 0x90] LAB_00175a2e: CALL 0x00169b30 LAB_00175a33: JMP 0x00175a35 LAB_00175a35: LEA RDI,[RSP + 0x20] CALL 0x00166640 JMP 0x00175a75 LAB_00175a75: ADD RSP,0xb8 RET
/* FrozenCLIPEmbedderWithCustomWords::compute(int, std::vector<int, std::allocator<int> >, ggml_tensor*, ggml_tensor*) */ void __thiscall FrozenCLIPEmbedderWithCustomWords::compute (FrozenCLIPEmbedderWithCustomWords *this,int4 param_1,int8 param_3, int8 param_4,long param_5) { function<ggml_cgraph*()> local_98 [32]; FrozenCLIPEmbedderWithCustomWords *local_78; int8 local_70; function<ggml_cgraph*()> local_58 [32]; FrozenCLIPEmbedderWithCustomWords *local_38; int8 local_30; long local_28; int8 local_20; int8 local_18; int4 local_c; FrozenCLIPEmbedderWithCustomWords *local_8; local_38 = this; local_30 = param_3; local_28 = param_5; local_20 = param_4; local_18 = param_3; local_c = param_1; local_8 = this; std::function<ggml_cgraph*()>:: function<FrozenCLIPEmbedderWithCustomWords::compute(int,std::vector<int,std::allocator<int>>,ggml_tensor*,ggml_tensor*)::_lambda()_1_&,void> (local_58,(_lambda___1_ *)&local_38); /* try { // try from 001759c0 to 001759c4 has its CatchHandler @ 00175a41 */ GGMLModule::compute((GGMLModule *)this,local_58,local_c,local_20); std::function<ggml_cgraph*()>::~function(local_58); if ((*(int *)(this + 0x68) == 2) && (local_28 != 0)) { local_78 = this; local_70 = param_3; std::function<ggml_cgraph*()>:: function<FrozenCLIPEmbedderWithCustomWords::compute(int,std::vector<int,std::allocator<int>>,ggml_tensor*,ggml_tensor*)::_lambda()_2_&,void> (local_98,(_lambda___2_ *)&local_78); /* try { // try from 00175a2e to 00175a32 has its CatchHandler @ 00175a5b */ GGMLModule::compute((GGMLModule *)this,local_98,local_c,local_28); std::function<ggml_cgraph*()>::~function(local_98); } return; }
31,339
FrozenCLIPEmbedderWithCustomWords::compute(int, std::vector<int, std::allocator<int>>, ggml_tensor*, ggml_tensor*)
7CodeWizard[P]stablediffusion/clip.hpp
void compute(const int n_threads, std::vector<int> tokens, ggml_tensor* hidden_state_output, ggml_tensor* pooled_output = NULL) { auto get_graph = [&]() -> struct ggml_cgraph* { return build_graph(compute_allocr, tokens, false); }; GGMLModule::compute(get_graph, n_threads, hidden_state_output); if (version == VERSION_XL && pooled_output != NULL) { auto get_graph = [&]() -> struct ggml_cgraph* { return build_graph(compute_allocr, tokens, true); }; GGMLModule::compute(get_graph, n_threads, pooled_output); } }
O2
cpp
FrozenCLIPEmbedderWithCustomWords::compute(int, std::vector<int, std::allocator<int>>, ggml_tensor*, ggml_tensor*): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x40, %rsp movq %r8, %r14 movq %rdx, %r12 movl %esi, %ebp movq %rdi, %r15 leaq 0x20(%rsp), %rbx movq %rdi, (%rbx) movq %rdx, 0x8(%rbx) leaq 0x376c(%rip), %rax # 0x35cc4 movq %rax, 0x18(%rbx) leaq 0x3767(%rip), %rax # 0x35cca movq %rax, 0x10(%rbx) movq %rbx, %rsi movl %ebp, %edx callq 0x2e91e leaq 0x20(%rsp), %rdi callq 0x3937c testq %r14, %r14 je 0x325bf cmpl $0x2, 0x68(%r15) jne 0x325bf movq %rsp, %rbx movq %r15, (%rbx) movq %r12, 0x8(%rbx) leaq 0x37e2(%rip), %rax # 0x35d7a movq %rax, 0x18(%rbx) leaq 0x37dd(%rip), %rax # 0x35d80 movq %rax, 0x10(%rbx) movq %r15, %rdi movq %rbx, %rsi movl %ebp, %edx movq %r14, %rcx callq 0x2e91e movq %rsp, %rdi callq 0x3937c addq $0x40, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq jmp 0x325ce movq %rax, %r14 movq %rbx, %rdi callq 0x3937c movq %r14, %rdi callq 0xaab0 nop
_ZN33FrozenCLIPEmbedderWithCustomWords7computeEiSt6vectorIiSaIiEEP11ggml_tensorS4_: push rbp push r15 push r14 push r12 push rbx sub rsp, 40h mov r14, r8 mov r12, rdx mov ebp, esi mov r15, rdi lea rbx, [rsp+68h+var_48] mov [rbx], rdi mov [rbx+8], rdx lea rax, _ZNSt17_Function_handlerIFP11ggml_cgraphvEZN33FrozenCLIPEmbedderWithCustomWords7computeEiSt6vectorIiSaIiEEP11ggml_tensorS8_EUlvE_E9_M_invokeERKSt9_Any_data; std::_Function_handler<ggml_cgraph * ()(void),FrozenCLIPEmbedderWithCustomWords::compute(int,std::vector<int>,ggml_tensor *,ggml_tensor *)::{lambda(void)#1}>::_M_invoke(std::_Any_data const&) mov [rbx+18h], rax lea rax, _ZNSt17_Function_handlerIFP11ggml_cgraphvEZN33FrozenCLIPEmbedderWithCustomWords7computeEiSt6vectorIiSaIiEEP11ggml_tensorS8_EUlvE_E10_M_managerERSt9_Any_dataRKSB_St18_Manager_operation; std::_Function_handler<ggml_cgraph * ()(void),FrozenCLIPEmbedderWithCustomWords::compute(int,std::vector<int>,ggml_tensor *,ggml_tensor *)::{lambda(void)#1}>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov [rbx+10h], rax mov rsi, rbx mov edx, ebp call _ZN10GGMLModule7computeESt8functionIFP11ggml_cgraphvEEiP11ggml_tensor; GGMLModule::compute(std::function<ggml_cgraph * ()(void)>,int,ggml_tensor *) lea rdi, [rsp+68h+var_48]; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() test r14, r14 jz short loc_325BF cmp dword ptr [r15+68h], 2 jnz short loc_325BF mov rbx, rsp mov [rbx], r15 mov [rbx+8], r12 lea rax, _ZNSt17_Function_handlerIFP11ggml_cgraphvEZN33FrozenCLIPEmbedderWithCustomWords7computeEiSt6vectorIiSaIiEEP11ggml_tensorS8_EUlvE0_E9_M_invokeERKSt9_Any_data; std::_Function_handler<ggml_cgraph * ()(void),FrozenCLIPEmbedderWithCustomWords::compute(int,std::vector<int>,ggml_tensor *,ggml_tensor *)::{lambda(void)#2}>::_M_invoke(std::_Any_data const&) mov [rbx+18h], rax lea rax, _ZNSt17_Function_handlerIFP11ggml_cgraphvEZN33FrozenCLIPEmbedderWithCustomWords7computeEiSt6vectorIiSaIiEEP11ggml_tensorS8_EUlvE0_E10_M_managerERSt9_Any_dataRKSB_St18_Manager_operation; std::_Function_handler<ggml_cgraph * ()(void),FrozenCLIPEmbedderWithCustomWords::compute(int,std::vector<int>,ggml_tensor *,ggml_tensor *)::{lambda(void)#2}>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov [rbx+10h], rax mov rdi, r15 mov rsi, rbx mov edx, ebp mov rcx, r14 call _ZN10GGMLModule7computeESt8functionIFP11ggml_cgraphvEEiP11ggml_tensor; GGMLModule::compute(std::function<ggml_cgraph * ()(void)>,int,ggml_tensor *) mov rdi, rsp; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() loc_325BF: add rsp, 40h pop rbx pop r12 pop r14 pop r15 pop rbp retn jmp short $+2 loc_325CE: mov r14, rax mov rdi, rbx; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() mov rdi, r14 call __Unwind_Resume
void FrozenCLIPEmbedderWithCustomWords::compute( long long a1, unsigned int a2, long long a3, long long a4, long long a5) { _QWORD v7[4]; // [rsp+0h] [rbp-68h] BYREF _QWORD v8[9]; // [rsp+20h] [rbp-48h] BYREF v8[0] = a1; v8[1] = a3; v8[3] = std::_Function_handler<ggml_cgraph * ()(void),FrozenCLIPEmbedderWithCustomWords::compute(int,std::vector<int>,ggml_tensor *,ggml_tensor *)::{lambda(void)#1}>::_M_invoke; v8[2] = std::_Function_handler<ggml_cgraph * ()(void),FrozenCLIPEmbedderWithCustomWords::compute(int,std::vector<int>,ggml_tensor *,ggml_tensor *)::{lambda(void)#1}>::_M_manager; GGMLModule::compute(a1, (long long)v8, a2, a4); std::_Function_base::~_Function_base((std::_Function_base *)v8); if ( a5 ) { if ( *(_DWORD *)(a1 + 104) == 2 ) { v7[0] = a1; v7[1] = a3; v7[3] = std::_Function_handler<ggml_cgraph * ()(void),FrozenCLIPEmbedderWithCustomWords::compute(int,std::vector<int>,ggml_tensor *,ggml_tensor *)::{lambda(void)#2}>::_M_invoke; v7[2] = std::_Function_handler<ggml_cgraph * ()(void),FrozenCLIPEmbedderWithCustomWords::compute(int,std::vector<int>,ggml_tensor *,ggml_tensor *)::{lambda(void)#2}>::_M_manager; GGMLModule::compute(a1, (long long)v7, a2, a5); std::_Function_base::~_Function_base((std::_Function_base *)v7); } } }
compute: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x40 MOV R14,R8 MOV R12,RDX MOV EBP,ESI MOV R15,RDI LEA RBX,[RSP + 0x20] MOV qword ptr [RBX],RDI MOV qword ptr [RBX + 0x8],RDX LEA RAX,[0x135cc4] MOV qword ptr [RBX + 0x18],RAX LEA RAX,[0x135cca] MOV qword ptr [RBX + 0x10],RAX LAB_00132567: MOV RSI,RBX MOV EDX,EBP CALL 0x0012e91e LEA RDI,[RSP + 0x20] CALL 0x0013937c TEST R14,R14 JZ 0x001325bf CMP dword ptr [R15 + 0x68],0x2 JNZ 0x001325bf MOV RBX,RSP MOV qword ptr [RBX],R15 MOV qword ptr [RBX + 0x8],R12 LEA RAX,[0x135d7a] MOV qword ptr [RBX + 0x18],RAX LEA RAX,[0x135d80] MOV qword ptr [RBX + 0x10],RAX LAB_001325a7: MOV RDI,R15 MOV RSI,RBX MOV EDX,EBP MOV RCX,R14 CALL 0x0012e91e LAB_001325b7: MOV RDI,RSP CALL 0x0013937c LAB_001325bf: ADD RSP,0x40 POP RBX POP R12 POP R14 POP R15 POP RBP RET
/* FrozenCLIPEmbedderWithCustomWords::compute(int, std::vector<int, std::allocator<int> >, ggml_tensor*, ggml_tensor*) */ void __thiscall FrozenCLIPEmbedderWithCustomWords::compute (FrozenCLIPEmbedderWithCustomWords *this,int4 param_1,int8 param_3, int8 param_4,long param_5) { FrozenCLIPEmbedderWithCustomWords *local_68; int8 local_60; code *local_58; code *local_50; FrozenCLIPEmbedderWithCustomWords *local_48; int8 local_40; code *local_38; code *local_30; local_30 = std:: _Function_handler<ggml_cgraph*(),FrozenCLIPEmbedderWithCustomWords::compute(int,std::vector<int,std::allocator<int>>,ggml_tensor*,ggml_tensor*)::{lambda()#1}> ::_M_invoke; local_38 = std:: _Function_handler<ggml_cgraph*(),FrozenCLIPEmbedderWithCustomWords::compute(int,std::vector<int,std::allocator<int>>,ggml_tensor*,ggml_tensor*)::{lambda()#1}> ::_M_manager; local_48 = this; local_40 = param_3; /* try { // try from 00132567 to 00132570 has its CatchHandler @ 001325ce */ GGMLModule::compute((GGMLModule *)this,&local_48,param_1); std::_Function_base::~_Function_base((_Function_base *)&local_48); if ((param_5 != 0) && (*(int *)(this + 0x68) == 2)) { local_50 = std:: _Function_handler<ggml_cgraph*(),FrozenCLIPEmbedderWithCustomWords::compute(int,std::vector<int,std::allocator<int>>,ggml_tensor*,ggml_tensor*)::{lambda()#2}> ::_M_invoke; local_58 = std:: _Function_handler<ggml_cgraph*(),FrozenCLIPEmbedderWithCustomWords::compute(int,std::vector<int,std::allocator<int>>,ggml_tensor*,ggml_tensor*)::{lambda()#2}> ::_M_manager; local_68 = this; local_60 = param_3; /* try { // try from 001325a7 to 001325b6 has its CatchHandler @ 001325cc */ GGMLModule::compute((GGMLModule *)this,&local_68,param_1,param_5); std::_Function_base::~_Function_base((_Function_base *)&local_68); } return; }
31,340
FrozenCLIPEmbedderWithCustomWords::compute(int, std::vector<int, std::allocator<int>>, ggml_tensor*, ggml_tensor*)
7CodeWizard[P]stablediffusion/clip.hpp
void compute(const int n_threads, std::vector<int> tokens, ggml_tensor* hidden_state_output, ggml_tensor* pooled_output = NULL) { auto get_graph = [&]() -> struct ggml_cgraph* { return build_graph(compute_allocr, tokens, false); }; GGMLModule::compute(get_graph, n_threads, hidden_state_output); if (version == VERSION_XL && pooled_output != NULL) { auto get_graph = [&]() -> struct ggml_cgraph* { return build_graph(compute_allocr, tokens, true); }; GGMLModule::compute(get_graph, n_threads, pooled_output); } }
O3
cpp
FrozenCLIPEmbedderWithCustomWords::compute(int, std::vector<int, std::allocator<int>>, ggml_tensor*, ggml_tensor*): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x48, %rsp movq %r8, %rbx movq %rdx, %r15 movl %esi, %ebp movq %rdi, %r14 leaq 0x28(%rsp), %rsi movq %rdi, (%rsi) movq %rdx, 0x8(%rsi) leaq 0x4e28(%rip), %rax # 0x52936 movq %rax, 0x18(%rsi) leaq 0x4e23(%rip), %rax # 0x5293c movq %rax, 0x10(%rsi) movl %ebp, %edx callq 0x48afa movq 0x38(%rsp), %rax testq %rax, %rax je 0x4db3d leaq 0x28(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax testq %rbx, %rbx je 0x4db91 cmpl $0x2, 0x68(%r14) jne 0x4db91 leaq 0x8(%rsp), %rsi movq %r14, (%rsi) movq %r15, 0x8(%rsi) leaq 0x4e82(%rip), %rax # 0x529de movq %rax, 0x18(%rsi) leaq 0x4e7d(%rip), %rax # 0x529e4 movq %rax, 0x10(%rsi) movq %r14, %rdi movl %ebp, %edx movq %rbx, %rcx callq 0x48afa movq 0x18(%rsp), %rax testq %rax, %rax je 0x4db91 leaq 0x8(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax addq $0x48, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq jmp 0x4dbe4 movq %rax, %rbx movq 0x18(%rsp), %rax testq %rax, %rax je 0x4dbdc leaq 0x8(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax jmp 0x4dbdc jmp 0x4dbe4 jmp 0x4dbe4 movq %rax, %rbx movq 0x38(%rsp), %rax testq %rax, %rax je 0x4dbdc leaq 0x28(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq %rbx, %rdi callq 0xaad0 movq %rax, %rdi callq 0x36331
_ZN33FrozenCLIPEmbedderWithCustomWords7computeEiSt6vectorIiSaIiEEP11ggml_tensorS4_: push rbp push r15 push r14 push rbx sub rsp, 48h mov rbx, r8 mov r15, rdx mov ebp, esi mov r14, rdi lea rsi, [rsp+68h+var_40] mov [rsi], rdi mov [rsi+8], rdx lea rax, _ZNSt17_Function_handlerIFP11ggml_cgraphvEZN33FrozenCLIPEmbedderWithCustomWords7computeEiSt6vectorIiSaIiEEP11ggml_tensorS8_EUlvE_E9_M_invokeERKSt9_Any_data; std::_Function_handler<ggml_cgraph * ()(void),FrozenCLIPEmbedderWithCustomWords::compute(int,std::vector<int>,ggml_tensor *,ggml_tensor *)::{lambda(void)#1}>::_M_invoke(std::_Any_data const&) mov [rsi+18h], rax lea rax, _ZNSt17_Function_handlerIFP11ggml_cgraphvEZN33FrozenCLIPEmbedderWithCustomWords7computeEiSt6vectorIiSaIiEEP11ggml_tensorS8_EUlvE_E10_M_managerERSt9_Any_dataRKSB_St18_Manager_operation; std::_Function_handler<ggml_cgraph * ()(void),FrozenCLIPEmbedderWithCustomWords::compute(int,std::vector<int>,ggml_tensor *,ggml_tensor *)::{lambda(void)#1}>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov [rsi+10h], rax mov edx, ebp call _ZN10GGMLModule7computeESt8functionIFP11ggml_cgraphvEEiP11ggml_tensor; GGMLModule::compute(std::function<ggml_cgraph * ()(void)>,int,ggml_tensor *) mov rax, [rsp+68h+var_30] test rax, rax jz short loc_4DB3D lea rdi, [rsp+68h+var_40] mov rsi, rdi mov edx, 3 call rax loc_4DB3D: test rbx, rbx jz short loc_4DB91 cmp dword ptr [r14+68h], 2 jnz short loc_4DB91 lea rsi, [rsp+68h+var_60] mov [rsi], r14 mov [rsi+8], r15 lea rax, _ZNSt17_Function_handlerIFP11ggml_cgraphvEZN33FrozenCLIPEmbedderWithCustomWords7computeEiSt6vectorIiSaIiEEP11ggml_tensorS8_EUlvE0_E9_M_invokeERKSt9_Any_data; std::_Function_handler<ggml_cgraph * ()(void),FrozenCLIPEmbedderWithCustomWords::compute(int,std::vector<int>,ggml_tensor *,ggml_tensor *)::{lambda(void)#2}>::_M_invoke(std::_Any_data const&) mov [rsi+18h], rax lea rax, _ZNSt17_Function_handlerIFP11ggml_cgraphvEZN33FrozenCLIPEmbedderWithCustomWords7computeEiSt6vectorIiSaIiEEP11ggml_tensorS8_EUlvE0_E10_M_managerERSt9_Any_dataRKSB_St18_Manager_operation; std::_Function_handler<ggml_cgraph * ()(void),FrozenCLIPEmbedderWithCustomWords::compute(int,std::vector<int>,ggml_tensor *,ggml_tensor *)::{lambda(void)#2}>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov [rsi+10h], rax mov rdi, r14 mov edx, ebp mov rcx, rbx call _ZN10GGMLModule7computeESt8functionIFP11ggml_cgraphvEEiP11ggml_tensor; GGMLModule::compute(std::function<ggml_cgraph * ()(void)>,int,ggml_tensor *) mov rax, [rsp+68h+var_50] test rax, rax jz short loc_4DB91 lea rdi, [rsp+68h+var_60] mov rsi, rdi mov edx, 3 call rax loc_4DB91: add rsp, 48h pop rbx pop r14 pop r15 pop rbp retn jmp short loc_4DBE4 mov rbx, rax mov rax, [rsp+68h+var_50] test rax, rax jz short loc_4DBDC lea rdi, [rsp+68h+var_60] mov rsi, rdi mov edx, 3 call rax jmp short loc_4DBDC jmp short loc_4DBE4 jmp short loc_4DBE4 mov rbx, rax mov rax, [rsp+68h+var_30] test rax, rax jz short loc_4DBDC lea rdi, [rsp+68h+var_40] mov rsi, rdi mov edx, 3 call rax loc_4DBDC: mov rdi, rbx call __Unwind_Resume loc_4DBE4: mov rdi, rax call __clang_call_terminate
long long FrozenCLIPEmbedderWithCustomWords::compute( long long a1, unsigned int a2, long long a3, long long a4, long long a5) { long long result; // rax _QWORD v8[2]; // [rsp+8h] [rbp-60h] BYREF long long ( *v9)(); // [rsp+18h] [rbp-50h] long long ( *v10)(); // [rsp+20h] [rbp-48h] _QWORD v11[2]; // [rsp+28h] [rbp-40h] BYREF long long ( *v12)(); // [rsp+38h] [rbp-30h] long long ( *v13)(); // [rsp+40h] [rbp-28h] v11[0] = a1; v11[1] = a3; v13 = std::_Function_handler<ggml_cgraph * ()(void),FrozenCLIPEmbedderWithCustomWords::compute(int,std::vector<int>,ggml_tensor *,ggml_tensor *)::{lambda(void)#1}>::_M_invoke; v12 = std::_Function_handler<ggml_cgraph * ()(void),FrozenCLIPEmbedderWithCustomWords::compute(int,std::vector<int>,ggml_tensor *,ggml_tensor *)::{lambda(void)#1}>::_M_manager; GGMLModule::compute(a1, (long long)v11, a2, a4); result = (long long)v12; if ( v12 ) result = ((long long ( *)(_QWORD *, _QWORD *, long long))v12)(v11, v11, 3LL); if ( a5 && *(_DWORD *)(a1 + 104) == 2 ) { v8[0] = a1; v8[1] = a3; v10 = std::_Function_handler<ggml_cgraph * ()(void),FrozenCLIPEmbedderWithCustomWords::compute(int,std::vector<int>,ggml_tensor *,ggml_tensor *)::{lambda(void)#2}>::_M_invoke; v9 = std::_Function_handler<ggml_cgraph * ()(void),FrozenCLIPEmbedderWithCustomWords::compute(int,std::vector<int>,ggml_tensor *,ggml_tensor *)::{lambda(void)#2}>::_M_manager; GGMLModule::compute(a1, (long long)v8, a2, a5); result = (long long)v9; if ( v9 ) return ((long long ( *)(_QWORD *, _QWORD *, long long))v9)(v8, v8, 3LL); } return result; }
31,341
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2(char*, int&, int&, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp)
monkey531[P]llama/common/json.hpp
inline void grisu2(char* buf, int& len, int& decimal_exponent, diyfp m_minus, diyfp v, diyfp m_plus) { JSON_ASSERT(m_plus.e == m_minus.e); JSON_ASSERT(m_plus.e == v.e); // --------(-----------------------+-----------------------)-------- (A) // m- v m+ // // --------------------(-----------+-----------------------)-------- (B) // m- v m+ // // First scale v (and m- and m+) such that the exponent is in the range // [alpha, gamma]. const cached_power cached = get_cached_power_for_binary_exponent(m_plus.e); const diyfp c_minus_k(cached.f, cached.e); // = c ~= 10^-k // The exponent of the products is = v.e + c_minus_k.e + q and is in the range [alpha,gamma] const diyfp w = diyfp::mul(v, c_minus_k); const diyfp w_minus = diyfp::mul(m_minus, c_minus_k); const diyfp w_plus = diyfp::mul(m_plus, c_minus_k); // ----(---+---)---------------(---+---)---------------(---+---)---- // w- w w+ // = c*m- = c*v = c*m+ // // diyfp::mul rounds its result and c_minus_k is approximated too. w, w- and // w+ are now off by a small amount. // In fact: // // w - v * 10^k < 1 ulp // // To account for this inaccuracy, add resp. subtract 1 ulp. // // --------+---[---------------(---+---)---------------]---+-------- // w- M- w M+ w+ // // Now any number in [M-, M+] (bounds included) will round to w when input, // regardless of how the input rounding algorithm breaks ties. // // And digit_gen generates the shortest possible such number in [M-, M+]. // Note that this does not mean that Grisu2 always generates the shortest // possible number in the interval (m-, m+). const diyfp M_minus(w_minus.f + 1, w_minus.e); const diyfp M_plus (w_plus.f - 1, w_plus.e ); decimal_exponent = -cached.k; // = -(-k) = k grisu2_digit_gen(buf, len, decimal_exponent, M_minus, w, M_plus); }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2(char*, int&, int&, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp movq %rcx, 0x58(%rsp) movl %r8d, 0x60(%rsp) cmpl %r8d, 0xc8(%rsp) jne 0xba47c movq %rdi, 0x20(%rsp) movq %rsi, 0x28(%rsp) movq %rdx, 0x30(%rsp) leaq 0xb0(%rsp), %r13 cmpl %r8d, 0x8(%r13) jne 0xba498 movl %r8d, %edi callq 0xba553 movq %rdx, %r12 leaq 0x68(%rsp), %r14 movq %rax, (%r14) movl %r12d, 0x8(%r14) movq %r13, %rdi movq %r14, %rsi callq 0xba694 movq %rax, %r15 movl %edx, %ebx leaq 0x58(%rsp), %rdi movq %r14, %rsi callq 0xba694 movq %rax, %r13 movl %edx, %ebp leaq 0xc0(%rsp), %rdi movq %r14, %rsi callq 0xba694 incq %r13 decq %rax shrq $0x20, %r12 negl %r12d movq 0x30(%rsp), %rcx movl %r12d, (%rcx) movq %r15, 0x48(%rsp) movl %ebx, 0x50(%rsp) movq %rax, 0x38(%rsp) movl %edx, 0x40(%rsp) movups 0x38(%rsp), %xmm0 movups %xmm0, 0x10(%rsp) movups 0x48(%rsp), %xmm0 movups %xmm0, (%rsp) movq 0x20(%rsp), %rdi movq 0x28(%rsp), %rsi movq %rcx, %rdx movq %r13, %rcx movl %ebp, %r8d callq 0xba6f0 addq $0x78, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x33f56(%rip), %rdi # 0xee3d9 leaq 0x2ded4(%rip), %rdx # 0xe835e leaq 0x39704(%rip), %rcx # 0xf3b95 movl $0x454b, %esi # imm = 0x454B jmp 0xba4b2 leaq 0x33f3a(%rip), %rdi # 0xee3d9 leaq 0x2deb8(%rip), %rdx # 0xe835e leaq 0x396fe(%rip), %rcx # 0xf3bab movl $0x454c, %esi # imm = 0x454C xorl %eax, %eax callq 0x1bf40 nop
_ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl6grisu2EPcRiS4_NS2_5diyfpES5_S5_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 78h mov [rsp+0A8h+var_50], rcx mov [rsp+0A8h+var_48], r8d cmp [rsp+0A8h+arg_18], r8d jnz loc_BA47C mov [rsp+0A8h+var_88], rdi mov [rsp+0A8h+var_80], rsi mov [rsp+0A8h+var_78], rdx lea r13, [rsp+0A8h+arg_0] cmp [r13+8], r8d jnz loc_BA498 mov edi, r8d; this call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl36get_cached_power_for_binary_exponentEi; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent(int) mov r12, rdx lea r14, [rsp+0A8h+var_40] mov [r14], rax mov [r14+8], r12d mov rdi, r13 mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp3mulERKS3_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&) mov r15, rax mov ebx, edx lea rdi, [rsp+0A8h+var_50] mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp3mulERKS3_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&) mov r13, rax mov ebp, edx lea rdi, [rsp+0A8h+arg_10] mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp3mulERKS3_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&) inc r13 dec rax shr r12, 20h neg r12d mov rcx, [rsp+0A8h+var_78] mov [rcx], r12d mov qword ptr [rsp+0A8h+var_60], r15 mov dword ptr [rsp+0A8h+var_60+8], ebx mov qword ptr [rsp+0A8h+var_70], rax mov dword ptr [rsp+0A8h+var_70+8], edx movups xmm0, xmmword ptr [rsp+0A8h+var_70] movups xmmword ptr [rsp+0A8h+var_98], xmm0; char movups xmm0, xmmword ptr [rsp+0A8h+var_60] movups xmmword ptr [rsp+0A8h+var_A8], xmm0; char mov rdi, [rsp+0A8h+var_88]; this mov rsi, [rsp+0A8h+var_80] mov rdx, rcx mov rcx, r13 mov r8d, ebp call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl16grisu2_digit_genEPcRiS4_NS2_5diyfpES5_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_digit_gen(char *,int &,int &,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp) add rsp, 78h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_BA47C: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aMPlusEMMinusE; "m_plus.e == m_minus.e" mov esi, 454Bh jmp short loc_BA4B2 loc_BA498: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aMPlusEVE; "m_plus.e == v.e" mov esi, 454Ch loc_BA4B2: xor eax, eax call _ggml_abort nop
long long nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2( nlohmann::json_abi_v3_11_3::detail::dtoa_impl *a1, int a2, _DWORD *a3, long long a4, unsigned int a5, long long a6, char a7, int a8, char a9, int a10) { long long cached_power_for_binary_exponent; // rax int v11; // rdx^4 int v12; // r12^4 int v13; // edx char v14; // r15 int v15; // edx int v16; // ebx char v17; // al int v18; // edx long long v20; // rsi long long v22; // [rsp+58h] [rbp-50h] BYREF unsigned int v23; // [rsp+60h] [rbp-48h] long long v24; // [rsp+68h] [rbp-40h] BYREF int v25; // [rsp+70h] [rbp-38h] v22 = a4; v23 = a5; if ( a10 == a5 ) { if ( a8 == a5 ) { cached_power_for_binary_exponent = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent( (nlohmann::json_abi_v3_11_3::detail::dtoa_impl *)a5, a2); v12 = v11; v24 = cached_power_for_binary_exponent; v25 = v13; v14 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(&a7, &v24); v16 = v15; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(&v22, &v24); v17 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(&a9, &v24); *a3 = -v12; return nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_digit_gen(a1, v14, v16, v17 - 1, v18); } v20 = 17740LL; ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 17740LL, "GGML_ASSERT(%s) failed", "m_plus.e == v.e"); } else { v20 = 17739LL; ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 17739LL, "GGML_ASSERT(%s) failed", "m_plus.e == m_minus.e"); } return nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", v20); }
grisu2: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x78 MOV qword ptr [RSP + 0x58],RCX MOV dword ptr [RSP + 0x60],R8D CMP dword ptr [RSP + 0xc8],R8D JNZ 0x001ba47c MOV qword ptr [RSP + 0x20],RDI MOV qword ptr [RSP + 0x28],RSI MOV qword ptr [RSP + 0x30],RDX LEA R13,[RSP + 0xb0] CMP dword ptr [R13 + 0x8],R8D JNZ 0x001ba498 MOV EDI,R8D CALL 0x001ba553 MOV R12,RDX LEA R14,[RSP + 0x68] MOV qword ptr [R14],RAX MOV dword ptr [R14 + 0x8],R12D MOV RDI,R13 MOV RSI,R14 CALL 0x001ba694 MOV R15,RAX MOV EBX,EDX LEA RDI,[RSP + 0x58] MOV RSI,R14 CALL 0x001ba694 MOV R13,RAX MOV EBP,EDX LEA RDI,[RSP + 0xc0] MOV RSI,R14 CALL 0x001ba694 INC R13 DEC RAX SHR R12,0x20 NEG R12D MOV RCX,qword ptr [RSP + 0x30] MOV dword ptr [RCX],R12D MOV qword ptr [RSP + 0x48],R15 MOV dword ptr [RSP + 0x50],EBX MOV qword ptr [RSP + 0x38],RAX MOV dword ptr [RSP + 0x40],EDX MOVUPS XMM0,xmmword ptr [RSP + 0x38] MOVUPS xmmword ptr [RSP + 0x10],XMM0 MOVUPS XMM0,xmmword ptr [RSP + 0x48] MOVUPS xmmword ptr [RSP],XMM0 MOV RDI,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RSP + 0x28] MOV RDX,RCX MOV RCX,R13 MOV R8D,EBP CALL 0x001ba6f0 ADD RSP,0x78 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001ba47c: LEA RDI,[0x1ee3d9] LEA RDX,[0x1e835e] LEA RCX,[0x1f3b95] MOV ESI,0x454b JMP 0x001ba4b2 LAB_001ba498: LEA RDI,[0x1ee3d9] LEA RDX,[0x1e835e] LEA RCX,[0x1f3bab] MOV ESI,0x454c LAB_001ba4b2: XOR EAX,EAX CALL 0x0011bf40
/* nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2(char*, int&, int&, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp) */ void nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2 (int8 param_1,int8 param_2,int *param_3,int8 param_4,int param_5, int8 param_6,int8 param_7,int param_8,int8 param_9,int param_10) { int4 uVar1; char *pcVar2; int4 extraout_EDX; int8 uVar3; int1 auVar4 [12]; int1 auVar5 [12]; int1 auVar6 [16]; int4 uStack_64; int8 local_50; int local_48; int8 local_40; int4 local_38; local_50 = param_4; local_48 = param_5; if (param_10 == param_5) { if (param_8 == param_5) { auVar6 = get_cached_power_for_binary_exponent(param_5); local_40 = auVar6._0_8_; local_38 = auVar6._8_4_; uVar1 = diyfp::mul((diyfp *)&param_7,(diyfp *)&local_40); auVar4 = diyfp::mul((diyfp *)&local_50,(diyfp *)&local_40); auVar5 = diyfp::mul((diyfp *)&param_9,(diyfp *)&local_40); *param_3 = -auVar6._12_4_; grisu2_digit_gen(param_1,param_2,param_3,auVar4._0_8_ + 1,auVar4._8_4_,param_6,uVar1, extraout_EDX,auVar5._0_8_ + -1,CONCAT44(uStack_64,auVar5._8_4_)); return; } pcVar2 = "m_plus.e == v.e"; uVar3 = 0x454c; } else { pcVar2 = "m_plus.e == m_minus.e"; uVar3 = 0x454b; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",uVar3, "GGML_ASSERT(%s) failed",pcVar2); }
31,342
my_hash_update
eloqsql/mysys/hash.c
my_bool my_hash_update(HASH *hash, uchar *record, uchar *old_key, size_t old_key_length) { uint new_index, new_pos_index, org_index, records, idx; size_t length, empty, blength; my_hash_value_type hash_nr; HASH_LINK org_link,*data,*previous,*pos; uchar *new_key; DBUG_ENTER("my_hash_update"); new_key= (uchar*) my_hash_key(hash, record, &length, 1); hash_nr= hash->hash_function(hash->charset, new_key, length); if (HASH_UNIQUE & hash->flags) { HASH_SEARCH_STATE state; uchar *found; if ((found= my_hash_first_from_hash_value(hash, hash_nr, new_key, length, &state))) { do { if (found != record) DBUG_RETURN(1); /* Duplicate entry */ } while ((found= my_hash_next(hash, new_key, length, &state))); } } data=dynamic_element(&hash->array,0,HASH_LINK*); blength=hash->blength; records=hash->records; /* Search after record with key */ idx= my_hash_mask(hash->hash_function(hash->charset, old_key, (old_key_length ? old_key_length : hash->key_length)), blength, records); org_index= idx; new_index= my_hash_mask(hash_nr, blength, records); previous=0; for (;;) { if ((pos= data+idx)->data == record) break; previous=pos; if ((idx=pos->next) == NO_RECORD) DBUG_RETURN(1); /* Not found in links */ } if (org_index == new_index) { data[idx].hash_nr= hash_nr; /* Hash number may have changed */ DBUG_RETURN(0); /* Record is in right position */ } org_link= *pos; empty=idx; /* Relink record from current chain */ if (!previous) { if (pos->next != NO_RECORD) { empty=pos->next; *pos= data[pos->next]; } } else previous->next=pos->next; /* unlink pos */ /* Move data to correct position */ if (new_index == empty) { /* At this point record is unlinked from the old chain, thus it holds random position. By the chance this position is equal to position for the first element in the new chain. That means updated record is the only record in the new chain. */ if (empty != idx) { /* Record was moved while unlinking it from the old chain. Copy data to a new position. */ data[empty]= org_link; } data[empty].next= NO_RECORD; data[empty].hash_nr= hash_nr; DBUG_RETURN(0); } pos=data+new_index; new_pos_index= my_hash_rec_mask(pos, blength, records); if (new_index != new_pos_index) { /* Other record in wrong position */ data[empty]= *pos; movelink(data,new_index,new_pos_index, (uint) empty); org_link.next=NO_RECORD; data[new_index]= org_link; data[new_index].hash_nr= hash_nr; } else { /* Link in chain at right position */ org_link.next=data[new_index].next; data[empty]=org_link; data[empty].hash_nr= hash_nr; data[new_index].next= (uint) empty; } DBUG_RETURN(0); }
O0
c
my_hash_update: pushq %rbp movq %rsp, %rbp subq $0xc0, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi leaq -0x48(%rbp), %rdx movl $0x1, %ecx callq 0x2cc40 movq %rax, -0x90(%rbp) movq -0x10(%rbp), %rax movq 0x58(%rax), %rax movq -0x10(%rbp), %rcx movq 0x68(%rcx), %rdi movq -0x90(%rbp), %rsi movq -0x48(%rbp), %rdx callq *%rax movl %eax, -0x5c(%rbp) movq -0x10(%rbp), %rax movl 0x20(%rax), %eax andl $0x1, %eax cmpl $0x0, %eax je 0x2d1ca movq -0x10(%rbp), %rdi movl -0x5c(%rbp), %esi movq -0x90(%rbp), %rdx movq -0x48(%rbp), %rcx leaq -0x94(%rbp), %r8 callq 0x2c420 movq %rax, -0xa0(%rbp) cmpq $0x0, %rax je 0x2d1c8 jmp 0x2d184 movq -0xa0(%rbp), %rax cmpq -0x18(%rbp), %rax je 0x2d19c jmp 0x2d193 movb $0x1, -0x1(%rbp) jmp 0x2d4e2 jmp 0x2d19e movq -0x10(%rbp), %rdi movq -0x90(%rbp), %rsi movq -0x48(%rbp), %rdx leaq -0x94(%rbp), %rcx callq 0x2c640 movq %rax, -0xa0(%rbp) cmpq $0x0, %rax jne 0x2d184 jmp 0x2d1c8 jmp 0x2d1ca movq -0x10(%rbp), %rax movq 0x28(%rax), %rax movq %rax, -0x78(%rbp) movq -0x10(%rbp), %rax movq 0x10(%rax), %rax movq %rax, -0x58(%rbp) movq -0x10(%rbp), %rax movq 0x18(%rax), %rax movl %eax, -0x38(%rbp) movq -0x10(%rbp), %rax movq 0x58(%rax), %rax movq %rax, -0xb8(%rbp) movq -0x10(%rbp), %rax movq 0x68(%rax), %rax movq %rax, -0xb0(%rbp) movq -0x20(%rbp), %rax movq %rax, -0xa8(%rbp) cmpq $0x0, -0x28(%rbp) je 0x2d22a movq -0x28(%rbp), %rax movq %rax, -0xc0(%rbp) jmp 0x2d239 movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0xc0(%rbp) movq -0xb8(%rbp), %rax movq -0xa8(%rbp), %rsi movq -0xb0(%rbp), %rdi movq -0xc0(%rbp), %rdx callq *%rax movl %eax, %edi movq -0x58(%rbp), %rsi movl -0x38(%rbp), %eax movl %eax, %edx callq 0x2c520 movl %eax, -0x3c(%rbp) movl -0x3c(%rbp), %eax movl %eax, -0x34(%rbp) movl -0x5c(%rbp), %edi movq -0x58(%rbp), %rsi movl -0x38(%rbp), %eax movl %eax, %edx callq 0x2c520 movl %eax, -0x2c(%rbp) movq $0x0, -0x80(%rbp) movq -0x78(%rbp), %rax movl -0x3c(%rbp), %ecx shlq $0x4, %rcx addq %rcx, %rax movq %rax, -0x88(%rbp) movq 0x8(%rax), %rax cmpq -0x18(%rbp), %rax jne 0x2d2ad jmp 0x2d2d6 movq -0x88(%rbp), %rax movq %rax, -0x80(%rbp) movq -0x88(%rbp), %rax movl (%rax), %eax movl %eax, -0x3c(%rbp) cmpl $-0x1, %eax jne 0x2d2d4 jmp 0x2d2cb movb $0x1, -0x1(%rbp) jmp 0x2d4e2 jmp 0x2d28c movl -0x34(%rbp), %eax cmpl -0x2c(%rbp), %eax jne 0x2d2fb movl -0x5c(%rbp), %ecx movq -0x78(%rbp), %rax movl -0x3c(%rbp), %edx shlq $0x4, %rdx addq %rdx, %rax movl %ecx, 0x4(%rax) movb $0x0, -0x1(%rbp) jmp 0x2d4e2 movq -0x88(%rbp), %rax movq (%rax), %rcx movq %rcx, -0x70(%rbp) movq 0x8(%rax), %rax movq %rax, -0x68(%rbp) movl -0x3c(%rbp), %eax movq %rax, -0x50(%rbp) cmpq $0x0, -0x80(%rbp) jne 0x2d363 movq -0x88(%rbp), %rax cmpl $-0x1, (%rax) je 0x2d361 movq -0x88(%rbp), %rax movl (%rax), %eax movq %rax, -0x50(%rbp) movq -0x88(%rbp), %rax movq -0x78(%rbp), %rcx movq -0x88(%rbp), %rdx movl (%rdx), %edx shlq $0x4, %rdx addq %rdx, %rcx movq (%rcx), %rdx movq %rdx, (%rax) movq 0x8(%rcx), %rcx movq %rcx, 0x8(%rax) jmp 0x2d372 movq -0x88(%rbp), %rax movl (%rax), %ecx movq -0x80(%rbp), %rax movl %ecx, (%rax) movl -0x2c(%rbp), %eax cmpq -0x50(%rbp), %rax jne 0x2d3d8 movq -0x50(%rbp), %rax movl -0x3c(%rbp), %ecx cmpq %rcx, %rax je 0x2d3a5 movq -0x78(%rbp), %rax movq -0x50(%rbp), %rcx shlq $0x4, %rcx addq %rcx, %rax movq -0x70(%rbp), %rcx movq %rcx, (%rax) movq -0x68(%rbp), %rcx movq %rcx, 0x8(%rax) movq -0x78(%rbp), %rax movq -0x50(%rbp), %rcx shlq $0x4, %rcx addq %rcx, %rax movl $0xffffffff, (%rax) # imm = 0xFFFFFFFF movl -0x5c(%rbp), %ecx movq -0x78(%rbp), %rax movq -0x50(%rbp), %rdx shlq $0x4, %rdx addq %rdx, %rax movl %ecx, 0x4(%rax) movb $0x0, -0x1(%rbp) jmp 0x2d4e2 movq -0x78(%rbp), %rax movl -0x2c(%rbp), %ecx shlq $0x4, %rcx addq %rcx, %rax movq %rax, -0x88(%rbp) movq -0x88(%rbp), %rdi movq -0x58(%rbp), %rsi movl -0x38(%rbp), %eax movl %eax, %edx callq 0x2c610 movl %eax, -0x30(%rbp) movl -0x2c(%rbp), %eax cmpl -0x30(%rbp), %eax je 0x2d480 movq -0x78(%rbp), %rax movq -0x50(%rbp), %rcx shlq $0x4, %rcx addq %rcx, %rax movq -0x88(%rbp), %rcx movq (%rcx), %rdx movq %rdx, (%rax) movq 0x8(%rcx), %rcx movq %rcx, 0x8(%rax) movq -0x78(%rbp), %rdi movl -0x2c(%rbp), %esi movl -0x30(%rbp), %edx movq -0x50(%rbp), %rax movl %eax, %ecx callq 0x2ccb0 movl $0xffffffff, -0x70(%rbp) # imm = 0xFFFFFFFF movq -0x78(%rbp), %rax movl -0x2c(%rbp), %ecx shlq $0x4, %rcx addq %rcx, %rax movq -0x70(%rbp), %rcx movq %rcx, (%rax) movq -0x68(%rbp), %rcx movq %rcx, 0x8(%rax) movl -0x5c(%rbp), %ecx movq -0x78(%rbp), %rax movl -0x2c(%rbp), %edx shlq $0x4, %rdx addq %rdx, %rax movl %ecx, 0x4(%rax) jmp 0x2d4dc movq -0x78(%rbp), %rax movl -0x2c(%rbp), %ecx shlq $0x4, %rcx addq %rcx, %rax movl (%rax), %eax movl %eax, -0x70(%rbp) movq -0x78(%rbp), %rax movq -0x50(%rbp), %rcx shlq $0x4, %rcx addq %rcx, %rax movq -0x70(%rbp), %rcx movq %rcx, (%rax) movq -0x68(%rbp), %rcx movq %rcx, 0x8(%rax) movl -0x5c(%rbp), %ecx movq -0x78(%rbp), %rax movq -0x50(%rbp), %rdx shlq $0x4, %rdx addq %rdx, %rax movl %ecx, 0x4(%rax) movq -0x50(%rbp), %rax movl %eax, %ecx movq -0x78(%rbp), %rax movl -0x2c(%rbp), %edx shlq $0x4, %rdx addq %rdx, %rax movl %ecx, (%rax) jmp 0x2d4de movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0xc0, %rsp popq %rbp retq nop
my_hash_update: push rbp mov rbp, rsp sub rsp, 0C0h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] lea rdx, [rbp+var_48] mov ecx, 1 call my_hash_key mov [rbp+var_90], rax mov rax, [rbp+var_10] mov rax, [rax+58h] mov rcx, [rbp+var_10] mov rdi, [rcx+68h] mov rsi, [rbp+var_90] mov rdx, [rbp+var_48] call rax mov [rbp+var_5C], eax mov rax, [rbp+var_10] mov eax, [rax+20h] and eax, 1 cmp eax, 0 jz short loc_2D1CA mov rdi, [rbp+var_10] mov esi, [rbp+var_5C] mov rdx, [rbp+var_90] mov rcx, [rbp+var_48] lea r8, [rbp+var_94] call my_hash_first_from_hash_value mov [rbp+var_A0], rax cmp rax, 0 jz short loc_2D1C8 jmp short $+2 loc_2D184: mov rax, [rbp+var_A0] cmp rax, [rbp+var_18] jz short loc_2D19C jmp short $+2 loc_2D193: mov [rbp+var_1], 1 jmp loc_2D4E2 loc_2D19C: jmp short $+2 loc_2D19E: mov rdi, [rbp+var_10] mov rsi, [rbp+var_90] mov rdx, [rbp+var_48] lea rcx, [rbp+var_94] call my_hash_next mov [rbp+var_A0], rax cmp rax, 0 jnz short loc_2D184 jmp short $+2 loc_2D1C8: jmp short $+2 loc_2D1CA: mov rax, [rbp+var_10] mov rax, [rax+28h] mov [rbp+var_78], rax mov rax, [rbp+var_10] mov rax, [rax+10h] mov [rbp+var_58], rax mov rax, [rbp+var_10] mov rax, [rax+18h] mov [rbp+var_38], eax mov rax, [rbp+var_10] mov rax, [rax+58h] mov [rbp+var_B8], rax mov rax, [rbp+var_10] mov rax, [rax+68h] mov [rbp+var_B0], rax mov rax, [rbp+var_20] mov [rbp+var_A8], rax cmp [rbp+var_28], 0 jz short loc_2D22A mov rax, [rbp+var_28] mov [rbp+var_C0], rax jmp short loc_2D239 loc_2D22A: mov rax, [rbp+var_10] mov rax, [rax+8] mov [rbp+var_C0], rax loc_2D239: mov rax, [rbp+var_B8] mov rsi, [rbp+var_A8] mov rdi, [rbp+var_B0] mov rdx, [rbp+var_C0] call rax mov edi, eax mov rsi, [rbp+var_58] mov eax, [rbp+var_38] mov edx, eax call my_hash_mask mov [rbp+var_3C], eax mov eax, [rbp+var_3C] mov [rbp+var_34], eax mov edi, [rbp+var_5C] mov rsi, [rbp+var_58] mov eax, [rbp+var_38] mov edx, eax call my_hash_mask mov [rbp+var_2C], eax mov [rbp+var_80], 0 loc_2D28C: mov rax, [rbp+var_78] mov ecx, [rbp+var_3C] shl rcx, 4 add rax, rcx mov [rbp+var_88], rax mov rax, [rax+8] cmp rax, [rbp+var_18] jnz short loc_2D2AD jmp short loc_2D2D6 loc_2D2AD: mov rax, [rbp+var_88] mov [rbp+var_80], rax mov rax, [rbp+var_88] mov eax, [rax] mov [rbp+var_3C], eax cmp eax, 0FFFFFFFFh jnz short loc_2D2D4 jmp short $+2 loc_2D2CB: mov [rbp+var_1], 1 jmp loc_2D4E2 loc_2D2D4: jmp short loc_2D28C loc_2D2D6: mov eax, [rbp+var_34] cmp eax, [rbp+var_2C] jnz short loc_2D2FB mov ecx, [rbp+var_5C] mov rax, [rbp+var_78] mov edx, [rbp+var_3C] shl rdx, 4 add rax, rdx mov [rax+4], ecx mov [rbp+var_1], 0 jmp loc_2D4E2 loc_2D2FB: mov rax, [rbp+var_88] mov rcx, [rax] mov [rbp+var_70], rcx mov rax, [rax+8] mov [rbp+var_68], rax mov eax, [rbp+var_3C] mov [rbp+var_50], rax cmp [rbp+var_80], 0 jnz short loc_2D363 mov rax, [rbp+var_88] cmp dword ptr [rax], 0FFFFFFFFh jz short loc_2D361 mov rax, [rbp+var_88] mov eax, [rax] mov [rbp+var_50], rax mov rax, [rbp+var_88] mov rcx, [rbp+var_78] mov rdx, [rbp+var_88] mov edx, [rdx] shl rdx, 4 add rcx, rdx mov rdx, [rcx] mov [rax], rdx mov rcx, [rcx+8] mov [rax+8], rcx loc_2D361: jmp short loc_2D372 loc_2D363: mov rax, [rbp+var_88] mov ecx, [rax] mov rax, [rbp+var_80] mov [rax], ecx loc_2D372: mov eax, [rbp+var_2C] cmp rax, [rbp+var_50] jnz short loc_2D3D8 mov rax, [rbp+var_50] mov ecx, [rbp+var_3C] cmp rax, rcx jz short loc_2D3A5 mov rax, [rbp+var_78] mov rcx, [rbp+var_50] shl rcx, 4 add rax, rcx mov rcx, [rbp+var_70] mov [rax], rcx mov rcx, [rbp+var_68] mov [rax+8], rcx loc_2D3A5: mov rax, [rbp+var_78] mov rcx, [rbp+var_50] shl rcx, 4 add rax, rcx mov dword ptr [rax], 0FFFFFFFFh mov ecx, [rbp+var_5C] mov rax, [rbp+var_78] mov rdx, [rbp+var_50] shl rdx, 4 add rax, rdx mov [rax+4], ecx mov [rbp+var_1], 0 jmp loc_2D4E2 loc_2D3D8: mov rax, [rbp+var_78] mov ecx, [rbp+var_2C] shl rcx, 4 add rax, rcx mov [rbp+var_88], rax mov rdi, [rbp+var_88] mov rsi, [rbp+var_58] mov eax, [rbp+var_38] mov edx, eax call my_hash_rec_mask mov [rbp+var_30], eax mov eax, [rbp+var_2C] cmp eax, [rbp+var_30] jz short loc_2D480 mov rax, [rbp+var_78] mov rcx, [rbp+var_50] shl rcx, 4 add rax, rcx mov rcx, [rbp+var_88] mov rdx, [rcx] mov [rax], rdx mov rcx, [rcx+8] mov [rax+8], rcx mov rdi, [rbp+var_78] mov esi, [rbp+var_2C] mov edx, [rbp+var_30] mov rax, [rbp+var_50] mov ecx, eax call movelink mov dword ptr [rbp+var_70], 0FFFFFFFFh mov rax, [rbp+var_78] mov ecx, [rbp+var_2C] shl rcx, 4 add rax, rcx mov rcx, [rbp+var_70] mov [rax], rcx mov rcx, [rbp+var_68] mov [rax+8], rcx mov ecx, [rbp+var_5C] mov rax, [rbp+var_78] mov edx, [rbp+var_2C] shl rdx, 4 add rax, rdx mov [rax+4], ecx jmp short loc_2D4DC loc_2D480: mov rax, [rbp+var_78] mov ecx, [rbp+var_2C] shl rcx, 4 add rax, rcx mov eax, [rax] mov dword ptr [rbp+var_70], eax mov rax, [rbp+var_78] mov rcx, [rbp+var_50] shl rcx, 4 add rax, rcx mov rcx, [rbp+var_70] mov [rax], rcx mov rcx, [rbp+var_68] mov [rax+8], rcx mov ecx, [rbp+var_5C] mov rax, [rbp+var_78] mov rdx, [rbp+var_50] shl rdx, 4 add rax, rdx mov [rax+4], ecx mov rax, [rbp+var_50] mov ecx, eax mov rax, [rbp+var_78] mov edx, [rbp+var_2C] shl rdx, 4 add rax, rdx mov [rax], ecx loc_2D4DC: jmp short $+2 loc_2D4DE: mov [rbp+var_1], 0 loc_2D4E2: mov al, [rbp+var_1] add rsp, 0C0h pop rbp retn
char my_hash_update(_QWORD *a1, long long a2, long long a3, long long a4) { unsigned int v4; // eax unsigned int *v5; // rax _QWORD *v6; // rcx _QWORD *v7; // rax _QWORD *v8; // rax unsigned int *v9; // rcx _QWORD *v10; // rax _QWORD *v11; // rax long long ( *v13)(long long, long long, long long); // [rsp+8h] [rbp-B8h] long long v14; // [rsp+10h] [rbp-B0h] long long v15; // [rsp+20h] [rbp-A0h] unsigned int v16; // [rsp+2Ch] [rbp-94h] BYREF long long v17; // [rsp+30h] [rbp-90h] unsigned int *v18; // [rsp+38h] [rbp-88h] _DWORD *v19; // [rsp+40h] [rbp-80h] long long v20; // [rsp+48h] [rbp-78h] long long v21; // [rsp+50h] [rbp-70h] long long v22; // [rsp+58h] [rbp-68h] unsigned int v23; // [rsp+64h] [rbp-5Ch] unsigned long long v24; // [rsp+68h] [rbp-58h] long long v25; // [rsp+70h] [rbp-50h] long long v26; // [rsp+78h] [rbp-48h] BYREF unsigned int v27; // [rsp+84h] [rbp-3Ch] unsigned int v28; // [rsp+88h] [rbp-38h] unsigned int v29; // [rsp+8Ch] [rbp-34h] unsigned int v30; // [rsp+90h] [rbp-30h] unsigned int v31; // [rsp+94h] [rbp-2Ch] long long v32; // [rsp+98h] [rbp-28h] long long v33; // [rsp+A0h] [rbp-20h] long long v34; // [rsp+A8h] [rbp-18h] _QWORD *v35; // [rsp+B0h] [rbp-10h] v35 = a1; v34 = a2; v33 = a3; v32 = a4; v17 = my_hash_key((long long)a1, a2, &v26, 1); v23 = ((long long ( *)(_QWORD, long long, long long))v35[11])(v35[13], v17, v26); if ( (v35[4] & 1) != 0 && (v15 = my_hash_first_from_hash_value(v35, v23, v17, v26, &v16)) != 0 ) { while ( v15 == v34 ) { v15 = my_hash_next((long long)v35, v17, v26, &v16); if ( !v15 ) goto LABEL_6; } return 1; } else { LABEL_6: v20 = v35[5]; v24 = v35[2]; v28 = v35[3]; v13 = (long long ( *)(long long, long long, long long))v35[11]; v14 = v35[13]; if ( v32 ) v4 = v13(v14, v33, v32); else v4 = v13(v14, v33, v35[1]); v27 = my_hash_mask(v4, v24, v28); v29 = v27; v31 = my_hash_mask(v23, v24, v28); v19 = 0LL; while ( 1 ) { v18 = (unsigned int *)(16LL * v27 + v20); if ( *((_QWORD *)v18 + 1) == v34 ) break; v19 = v18; v27 = *v18; if ( v27 == -1 ) return 1; } if ( v29 == v31 ) { *(_DWORD *)(16LL * v27 + v20 + 4) = v23; return 0; } else { v21 = *(_QWORD *)v18; v22 = *((_QWORD *)v18 + 1); v25 = v27; if ( v19 ) { *v19 = *v18; } else if ( *v18 != -1 ) { v25 = *v18; v5 = v18; v6 = (_QWORD *)(16LL * *v18 + v20); *(_QWORD *)v18 = *v6; *((_QWORD *)v5 + 1) = v6[1]; } if ( v31 == v25 ) { if ( v25 != v27 ) { v7 = (_QWORD *)(16 * v25 + v20); *v7 = v21; v7[1] = v22; } *(_DWORD *)(16 * v25 + v20) = -1; *(_DWORD *)(16 * v25 + v20 + 4) = v23; return 0; } else { v18 = (unsigned int *)(16LL * v31 + v20); v30 = my_hash_rec_mask((long long)v18, v24, v28); if ( v31 == v30 ) { LODWORD(v21) = *(_DWORD *)(16LL * v31 + v20); v11 = (_QWORD *)(16 * v25 + v20); *v11 = v21; v11[1] = v22; *(_DWORD *)(16 * v25 + v20 + 4) = v23; *(_DWORD *)(16LL * v31 + v20) = v25; } else { v8 = (_QWORD *)(16 * v25 + v20); v9 = v18; *v8 = *(_QWORD *)v18; v8[1] = *((_QWORD *)v9 + 1); movelink(v20, v31, v30, v25); LODWORD(v21) = -1; v10 = (_QWORD *)(16LL * v31 + v20); *v10 = v21; v10[1] = v22; *(_DWORD *)(16LL * v31 + v20 + 4) = v23; } return 0; } } } }
my_hash_update: PUSH RBP MOV RBP,RSP SUB RSP,0xc0 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] LEA RDX,[RBP + -0x48] MOV ECX,0x1 CALL 0x0012cc40 MOV qword ptr [RBP + -0x90],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x58] MOV RCX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RCX + 0x68] MOV RSI,qword ptr [RBP + -0x90] MOV RDX,qword ptr [RBP + -0x48] CALL RAX MOV dword ptr [RBP + -0x5c],EAX MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x20] AND EAX,0x1 CMP EAX,0x0 JZ 0x0012d1ca MOV RDI,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RBP + -0x5c] MOV RDX,qword ptr [RBP + -0x90] MOV RCX,qword ptr [RBP + -0x48] LEA R8,[RBP + -0x94] CALL 0x0012c420 MOV qword ptr [RBP + -0xa0],RAX CMP RAX,0x0 JZ 0x0012d1c8 JMP 0x0012d184 LAB_0012d184: MOV RAX,qword ptr [RBP + -0xa0] CMP RAX,qword ptr [RBP + -0x18] JZ 0x0012d19c JMP 0x0012d193 LAB_0012d193: MOV byte ptr [RBP + -0x1],0x1 JMP 0x0012d4e2 LAB_0012d19c: JMP 0x0012d19e LAB_0012d19e: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x90] MOV RDX,qword ptr [RBP + -0x48] LEA RCX,[RBP + -0x94] CALL 0x0012c640 MOV qword ptr [RBP + -0xa0],RAX CMP RAX,0x0 JNZ 0x0012d184 JMP 0x0012d1c8 LAB_0012d1c8: JMP 0x0012d1ca LAB_0012d1ca: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x78],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x18] MOV dword ptr [RBP + -0x38],EAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x58] MOV qword ptr [RBP + -0xb8],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x68] MOV qword ptr [RBP + -0xb0],RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0xa8],RAX CMP qword ptr [RBP + -0x28],0x0 JZ 0x0012d22a MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0xc0],RAX JMP 0x0012d239 LAB_0012d22a: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0xc0],RAX LAB_0012d239: MOV RAX,qword ptr [RBP + -0xb8] MOV RSI,qword ptr [RBP + -0xa8] MOV RDI,qword ptr [RBP + -0xb0] MOV RDX,qword ptr [RBP + -0xc0] CALL RAX MOV EDI,EAX MOV RSI,qword ptr [RBP + -0x58] MOV EAX,dword ptr [RBP + -0x38] MOV EDX,EAX CALL 0x0012c520 MOV dword ptr [RBP + -0x3c],EAX MOV EAX,dword ptr [RBP + -0x3c] MOV dword ptr [RBP + -0x34],EAX MOV EDI,dword ptr [RBP + -0x5c] MOV RSI,qword ptr [RBP + -0x58] MOV EAX,dword ptr [RBP + -0x38] MOV EDX,EAX CALL 0x0012c520 MOV dword ptr [RBP + -0x2c],EAX MOV qword ptr [RBP + -0x80],0x0 LAB_0012d28c: MOV RAX,qword ptr [RBP + -0x78] MOV ECX,dword ptr [RBP + -0x3c] SHL RCX,0x4 ADD RAX,RCX MOV qword ptr [RBP + -0x88],RAX MOV RAX,qword ptr [RAX + 0x8] CMP RAX,qword ptr [RBP + -0x18] JNZ 0x0012d2ad JMP 0x0012d2d6 LAB_0012d2ad: MOV RAX,qword ptr [RBP + -0x88] MOV qword ptr [RBP + -0x80],RAX MOV RAX,qword ptr [RBP + -0x88] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x3c],EAX CMP EAX,-0x1 JNZ 0x0012d2d4 JMP 0x0012d2cb LAB_0012d2cb: MOV byte ptr [RBP + -0x1],0x1 JMP 0x0012d4e2 LAB_0012d2d4: JMP 0x0012d28c LAB_0012d2d6: MOV EAX,dword ptr [RBP + -0x34] CMP EAX,dword ptr [RBP + -0x2c] JNZ 0x0012d2fb MOV ECX,dword ptr [RBP + -0x5c] MOV RAX,qword ptr [RBP + -0x78] MOV EDX,dword ptr [RBP + -0x3c] SHL RDX,0x4 ADD RAX,RDX MOV dword ptr [RAX + 0x4],ECX MOV byte ptr [RBP + -0x1],0x0 JMP 0x0012d4e2 LAB_0012d2fb: MOV RAX,qword ptr [RBP + -0x88] MOV RCX,qword ptr [RAX] MOV qword ptr [RBP + -0x70],RCX MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x68],RAX MOV EAX,dword ptr [RBP + -0x3c] MOV qword ptr [RBP + -0x50],RAX CMP qword ptr [RBP + -0x80],0x0 JNZ 0x0012d363 MOV RAX,qword ptr [RBP + -0x88] CMP dword ptr [RAX],-0x1 JZ 0x0012d361 MOV RAX,qword ptr [RBP + -0x88] MOV EAX,dword ptr [RAX] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x88] MOV RCX,qword ptr [RBP + -0x78] MOV RDX,qword ptr [RBP + -0x88] MOV EDX,dword ptr [RDX] SHL RDX,0x4 ADD RCX,RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RAX],RDX MOV RCX,qword ptr [RCX + 0x8] MOV qword ptr [RAX + 0x8],RCX LAB_0012d361: JMP 0x0012d372 LAB_0012d363: MOV RAX,qword ptr [RBP + -0x88] MOV ECX,dword ptr [RAX] MOV RAX,qword ptr [RBP + -0x80] MOV dword ptr [RAX],ECX LAB_0012d372: MOV EAX,dword ptr [RBP + -0x2c] CMP RAX,qword ptr [RBP + -0x50] JNZ 0x0012d3d8 MOV RAX,qword ptr [RBP + -0x50] MOV ECX,dword ptr [RBP + -0x3c] CMP RAX,RCX JZ 0x0012d3a5 MOV RAX,qword ptr [RBP + -0x78] MOV RCX,qword ptr [RBP + -0x50] SHL RCX,0x4 ADD RAX,RCX MOV RCX,qword ptr [RBP + -0x70] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RBP + -0x68] MOV qword ptr [RAX + 0x8],RCX LAB_0012d3a5: MOV RAX,qword ptr [RBP + -0x78] MOV RCX,qword ptr [RBP + -0x50] SHL RCX,0x4 ADD RAX,RCX MOV dword ptr [RAX],0xffffffff MOV ECX,dword ptr [RBP + -0x5c] MOV RAX,qword ptr [RBP + -0x78] MOV RDX,qword ptr [RBP + -0x50] SHL RDX,0x4 ADD RAX,RDX MOV dword ptr [RAX + 0x4],ECX MOV byte ptr [RBP + -0x1],0x0 JMP 0x0012d4e2 LAB_0012d3d8: MOV RAX,qword ptr [RBP + -0x78] MOV ECX,dword ptr [RBP + -0x2c] SHL RCX,0x4 ADD RAX,RCX MOV qword ptr [RBP + -0x88],RAX MOV RDI,qword ptr [RBP + -0x88] MOV RSI,qword ptr [RBP + -0x58] MOV EAX,dword ptr [RBP + -0x38] MOV EDX,EAX CALL 0x0012c610 MOV dword ptr [RBP + -0x30],EAX MOV EAX,dword ptr [RBP + -0x2c] CMP EAX,dword ptr [RBP + -0x30] JZ 0x0012d480 MOV RAX,qword ptr [RBP + -0x78] MOV RCX,qword ptr [RBP + -0x50] SHL RCX,0x4 ADD RAX,RCX MOV RCX,qword ptr [RBP + -0x88] MOV RDX,qword ptr [RCX] MOV qword ptr [RAX],RDX MOV RCX,qword ptr [RCX + 0x8] MOV qword ptr [RAX + 0x8],RCX MOV RDI,qword ptr [RBP + -0x78] MOV ESI,dword ptr [RBP + -0x2c] MOV EDX,dword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x50] MOV ECX,EAX CALL 0x0012ccb0 MOV dword ptr [RBP + -0x70],0xffffffff MOV RAX,qword ptr [RBP + -0x78] MOV ECX,dword ptr [RBP + -0x2c] SHL RCX,0x4 ADD RAX,RCX MOV RCX,qword ptr [RBP + -0x70] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RBP + -0x68] MOV qword ptr [RAX + 0x8],RCX MOV ECX,dword ptr [RBP + -0x5c] MOV RAX,qword ptr [RBP + -0x78] MOV EDX,dword ptr [RBP + -0x2c] SHL RDX,0x4 ADD RAX,RDX MOV dword ptr [RAX + 0x4],ECX JMP 0x0012d4dc LAB_0012d480: MOV RAX,qword ptr [RBP + -0x78] MOV ECX,dword ptr [RBP + -0x2c] SHL RCX,0x4 ADD RAX,RCX MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x70],EAX MOV RAX,qword ptr [RBP + -0x78] MOV RCX,qword ptr [RBP + -0x50] SHL RCX,0x4 ADD RAX,RCX MOV RCX,qword ptr [RBP + -0x70] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RBP + -0x68] MOV qword ptr [RAX + 0x8],RCX MOV ECX,dword ptr [RBP + -0x5c] MOV RAX,qword ptr [RBP + -0x78] MOV RDX,qword ptr [RBP + -0x50] SHL RDX,0x4 ADD RAX,RDX MOV dword ptr [RAX + 0x4],ECX MOV RAX,qword ptr [RBP + -0x50] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x78] MOV EDX,dword ptr [RBP + -0x2c] SHL RDX,0x4 ADD RAX,RDX MOV dword ptr [RAX],ECX LAB_0012d4dc: JMP 0x0012d4de LAB_0012d4de: MOV byte ptr [RBP + -0x1],0x0 LAB_0012d4e2: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0xc0 POP RBP RET
int1 my_hash_update(long param_1,long param_2,int8 param_3,long param_4) { int4 uVar1; long lVar2; uint *puVar3; int8 *puVar4; long local_c8; int1 local_9c [4]; int8 local_98; int8 *local_90; uint *local_88; long local_80; int8 local_78; int8 local_70; int4 local_64; int8 local_60; ulong local_58; int8 local_50; uint local_44; int4 local_40; uint local_3c; uint local_38; uint local_34; long local_30; int8 local_28; long local_20; long local_18; local_30 = param_4; local_28 = param_3; local_20 = param_2; local_18 = param_1; local_98 = my_hash_key(param_1,param_2,&local_50,1); local_64 = (**(code **)(local_18 + 0x58))(*(int8 *)(local_18 + 0x68),local_98,local_50); if ((*(uint *)(local_18 + 0x20) & 1) != 0) { lVar2 = my_hash_first_from_hash_value(local_18,local_64,local_98,local_50,local_9c); while (lVar2 != 0) { if (lVar2 != local_20) { return 1; } lVar2 = my_hash_next(local_18,local_98,local_50,local_9c); } } local_80 = *(long *)(local_18 + 0x28); local_60 = *(int8 *)(local_18 + 0x10); local_40 = (int4)*(int8 *)(local_18 + 0x18); if (local_30 == 0) { local_c8 = *(long *)(local_18 + 8); } else { local_c8 = local_30; } uVar1 = (**(code **)(local_18 + 0x58))(*(int8 *)(local_18 + 0x68),local_28,local_c8); local_44 = my_hash_mask(uVar1,local_60,local_40); local_3c = local_44; local_34 = my_hash_mask(local_64,local_60,local_40); local_88 = (uint *)0x0; while (puVar3 = (uint *)(local_80 + (ulong)local_44 * 0x10), *(long *)(puVar3 + 2) != local_20) { local_44 = *puVar3; local_88 = puVar3; if (local_44 == 0xffffffff) { return 1; } } if (local_3c == local_34) { *(int4 *)(local_80 + (ulong)local_44 * 0x10 + 4) = local_64; return 0; } local_78 = *(int8 *)puVar3; local_70 = *(int8 *)(puVar3 + 2); local_58 = (ulong)local_44; if (local_88 == (uint *)0x0) { if (*puVar3 != 0xffffffff) { local_58 = (ulong)*puVar3; puVar4 = (int8 *)(local_80 + (ulong)*puVar3 * 0x10); *(int8 *)puVar3 = *puVar4; *(int8 *)(puVar3 + 2) = puVar4[1]; } } else { *local_88 = *puVar3; } if (local_34 == local_58) { if (local_58 != local_44) { puVar4 = (int8 *)(local_80 + local_58 * 0x10); *puVar4 = local_78; puVar4[1] = local_70; } *(int4 *)(local_80 + local_58 * 0x10) = 0xffffffff; *(int4 *)(local_80 + local_58 * 0x10 + 4) = local_64; return 0; } local_90 = (int8 *)(local_80 + (ulong)local_34 * 0x10); local_38 = my_hash_rec_mask(local_90,local_60,local_40); if (local_34 == local_38) { local_78 = CONCAT44(local_78._4_4_,*(int4 *)(local_80 + (ulong)local_34 * 0x10)); puVar4 = (int8 *)(local_80 + local_58 * 0x10); *puVar4 = local_78; puVar4[1] = local_70; *(int4 *)(local_80 + local_58 * 0x10 + 4) = local_64; *(int *)(local_80 + (ulong)local_34 * 0x10) = (int)local_58; } else { puVar4 = (int8 *)(local_80 + local_58 * 0x10); *puVar4 = *local_90; puVar4[1] = local_90[1]; movelink(local_80,local_34,local_38,local_58 & 0xffffffff); local_78 = CONCAT44(local_78._4_4_,0xffffffff); puVar4 = (int8 *)(local_80 + (ulong)local_34 * 0x10); *puVar4 = local_78; puVar4[1] = local_70; *(int4 *)(local_80 + (ulong)local_34 * 0x10 + 4) = local_64; } return 0; }
31,343
my_b_append
eloqsql/mysys/mf_iocache.c
int my_b_append(IO_CACHE *info, const uchar *Buffer, size_t Count) { size_t rest_length,length; MEM_CHECK_DEFINED(Buffer, Count); /* Assert that we cannot come here with a shared cache. If we do one day, we might need to add a call to copy_to_read_buffer(). */ DBUG_ASSERT(!info->share); DBUG_ASSERT(!(info->myflags & MY_ENCRYPT)); lock_append_buffer(info); rest_length= (size_t) (info->write_end - info->write_pos); if (Count <= rest_length) goto end; memcpy(info->write_pos, Buffer, rest_length); Buffer+=rest_length; Count-=rest_length; info->write_pos+=rest_length; if (my_b_flush_io_cache(info,0)) { unlock_append_buffer(info); return 1; } if (Count >= IO_SIZE) { /* Fill first intern buffer */ length= IO_ROUND_DN(Count); if (mysql_file_write(info->file,Buffer, length, info->myflags | MY_NABP)) { unlock_append_buffer(info); return info->error= -1; } Count-=length; Buffer+=length; info->end_of_file+=length; } end: memcpy(info->write_pos,Buffer,(size_t) Count); info->write_pos+=Count; unlock_append_buffer(info); return 0; }
O0
c
my_b_append: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) jmp 0xad7a6 jmp 0xad7a8 jmp 0xad7aa movq -0x10(%rbp), %rdi addq $0x50, %rdi leaq 0x6ab89(%rip), %rsi # 0x118342 movl $0x62b, %edx # imm = 0x62B callq 0xad4f0 movq -0x10(%rbp), %rax movq 0x48(%rax), %rax movq -0x10(%rbp), %rcx movq 0x40(%rcx), %rcx subq %rcx, %rax movq %rax, -0x28(%rbp) movq -0x20(%rbp), %rax cmpq -0x28(%rbp), %rax ja 0xad7e9 jmp 0xad8fb movq -0x10(%rbp), %rax movq 0x40(%rax), %rdi movq -0x18(%rbp), %rsi movq -0x28(%rbp), %rdx callq 0x3b0c0 movq -0x28(%rbp), %rax addq -0x18(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x28(%rbp), %rcx movq -0x20(%rbp), %rax subq %rcx, %rax movq %rax, -0x20(%rbp) movq -0x28(%rbp), %rcx movq -0x10(%rbp), %rax addq 0x40(%rax), %rcx movq %rcx, 0x40(%rax) movq -0x10(%rbp), %rdi xorl %esi, %esi callq 0xac910 cmpl $0x0, %eax je 0xad852 movq -0x10(%rbp), %rdi addq $0x50, %rdi callq 0xad620 movl $0x1, -0x4(%rbp) jmp 0xad934 cmpq $0x1000, -0x20(%rbp) # imm = 0x1000 jb 0xad8f9 movabsq $0xfffff000, %rax # imm = 0xFFFFF000 andq -0x20(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x10(%rbp), %rax movl 0xd4(%rax), %edx movq -0x18(%rbp), %rcx movq -0x30(%rbp), %r8 movq -0x10(%rbp), %rax movq 0xf8(%rax), %r9 orq $0x4, %r9 leaq 0x6aaa8(%rip), %rdi # 0x118342 movl $0x63b, %esi # imm = 0x63B callq 0xad940 cmpq $0x0, %rax je 0xad8ce movq -0x10(%rbp), %rdi addq $0x50, %rdi callq 0xad620 movq -0x10(%rbp), %rax movl $0xffffffff, 0xe4(%rax) # imm = 0xFFFFFFFF movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0xad934 movq -0x30(%rbp), %rcx movq -0x20(%rbp), %rax subq %rcx, %rax movq %rax, -0x20(%rbp) movq -0x30(%rbp), %rax addq -0x18(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x30(%rbp), %rcx movq -0x10(%rbp), %rax addq 0x8(%rax), %rcx movq %rcx, 0x8(%rax) jmp 0xad8fb movq -0x10(%rbp), %rax movq 0x40(%rax), %rdi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx callq 0x3b0c0 movq -0x20(%rbp), %rcx movq -0x10(%rbp), %rax addq 0x40(%rax), %rcx movq %rcx, 0x40(%rax) movq -0x10(%rbp), %rdi addq $0x50, %rdi callq 0xad620 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nopl (%rax)
my_b_append: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx jmp short $+2 loc_AD7A6: jmp short $+2 loc_AD7A8: jmp short $+2 loc_AD7AA: mov rdi, [rbp+var_10] add rdi, 50h ; 'P' lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 62Bh call inline_mysql_mutex_lock_0 mov rax, [rbp+var_10] mov rax, [rax+48h] mov rcx, [rbp+var_10] mov rcx, [rcx+40h] sub rax, rcx mov [rbp+var_28], rax mov rax, [rbp+var_20] cmp rax, [rbp+var_28] ja short loc_AD7E9 jmp loc_AD8FB loc_AD7E9: mov rax, [rbp+var_10] mov rdi, [rax+40h] mov rsi, [rbp+var_18] mov rdx, [rbp+var_28] call _memcpy mov rax, [rbp+var_28] add rax, [rbp+var_18] mov [rbp+var_18], rax mov rcx, [rbp+var_28] mov rax, [rbp+var_20] sub rax, rcx mov [rbp+var_20], rax mov rcx, [rbp+var_28] mov rax, [rbp+var_10] add rcx, [rax+40h] mov [rax+40h], rcx mov rdi, [rbp+var_10] xor esi, esi call my_b_flush_io_cache cmp eax, 0 jz short loc_AD852 mov rdi, [rbp+var_10] add rdi, 50h ; 'P' call inline_mysql_mutex_unlock_0 mov [rbp+var_4], 1 jmp loc_AD934 loc_AD852: cmp [rbp+var_20], 1000h jb loc_AD8F9 mov rax, 0FFFFF000h and rax, [rbp+var_20] mov [rbp+var_30], rax mov rax, [rbp+var_10] mov edx, [rax+0D4h] mov rcx, [rbp+var_18] mov r8, [rbp+var_30] mov rax, [rbp+var_10] mov r9, [rax+0F8h] or r9, 4 lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github2025/eloqsq"... mov esi, 63Bh call inline_mysql_file_write cmp rax, 0 jz short loc_AD8CE mov rdi, [rbp+var_10] add rdi, 50h ; 'P' call inline_mysql_mutex_unlock_0 mov rax, [rbp+var_10] mov dword ptr [rax+0E4h], 0FFFFFFFFh mov [rbp+var_4], 0FFFFFFFFh jmp short loc_AD934 loc_AD8CE: mov rcx, [rbp+var_30] mov rax, [rbp+var_20] sub rax, rcx mov [rbp+var_20], rax mov rax, [rbp+var_30] add rax, [rbp+var_18] mov [rbp+var_18], rax mov rcx, [rbp+var_30] mov rax, [rbp+var_10] add rcx, [rax+8] mov [rax+8], rcx loc_AD8F9: jmp short $+2 loc_AD8FB: mov rax, [rbp+var_10] mov rdi, [rax+40h] mov rsi, [rbp+var_18] mov rdx, [rbp+var_20] call _memcpy mov rcx, [rbp+var_20] mov rax, [rbp+var_10] add rcx, [rax+40h] mov [rax+40h], rcx mov rdi, [rbp+var_10] add rdi, 50h ; 'P' call inline_mysql_mutex_unlock_0 mov [rbp+var_4], 0 loc_AD934: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long my_b_append(long long a1, long long a2, unsigned long long a3) { long long v4; // [rsp+0h] [rbp-30h] unsigned long long v5; // [rsp+8h] [rbp-28h] long long v7; // [rsp+18h] [rbp-18h] v7 = a2; inline_mysql_mutex_lock_0(a1 + 80, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c", 0x62Bu); v5 = *(_QWORD *)(a1 + 72) - *(_QWORD *)(a1 + 64); if ( a3 <= v5 ) goto LABEL_8; memcpy(*(_QWORD *)(a1 + 64), a2, v5); v7 = a2 + v5; a3 -= v5; *(_QWORD *)(a1 + 64) += v5; if ( !(unsigned int)my_b_flush_io_cache(a1, 0) ) { if ( a3 >= 0x1000 ) { v4 = (unsigned int)a3 & 0xFFFFF000; if ( inline_mysql_file_write( "/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c", 1595LL, *(unsigned int *)(a1 + 212), v7, v4, *(_QWORD *)(a1 + 248) | 4LL) ) { inline_mysql_mutex_unlock_0(a1 + 80); *(_DWORD *)(a1 + 228) = -1; return (unsigned int)-1; } a3 -= v4; v7 += v4; *(_QWORD *)(a1 + 8) += v4; } LABEL_8: memcpy(*(_QWORD *)(a1 + 64), v7, a3); *(_QWORD *)(a1 + 64) += a3; inline_mysql_mutex_unlock_0(a1 + 80); return 0; } inline_mysql_mutex_unlock_0(a1 + 80); return 1; }
my_b_append: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX JMP 0x001ad7a6 LAB_001ad7a6: JMP 0x001ad7a8 LAB_001ad7a8: JMP 0x001ad7aa LAB_001ad7aa: MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x50 LEA RSI,[0x218342] MOV EDX,0x62b CALL 0x001ad4f0 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x48] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX + 0x40] SUB RAX,RCX MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x28] JA 0x001ad7e9 JMP 0x001ad8fb LAB_001ad7e9: MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x40] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x28] CALL 0x0013b0c0 MOV RAX,qword ptr [RBP + -0x28] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x18],RAX MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x20] SUB RAX,RCX MOV qword ptr [RBP + -0x20],RAX MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x10] ADD RCX,qword ptr [RAX + 0x40] MOV qword ptr [RAX + 0x40],RCX MOV RDI,qword ptr [RBP + -0x10] XOR ESI,ESI CALL 0x001ac910 CMP EAX,0x0 JZ 0x001ad852 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x50 CALL 0x001ad620 MOV dword ptr [RBP + -0x4],0x1 JMP 0x001ad934 LAB_001ad852: CMP qword ptr [RBP + -0x20],0x1000 JC 0x001ad8f9 MOV RAX,0xfffff000 AND RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RAX + 0xd4] MOV RCX,qword ptr [RBP + -0x18] MOV R8,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x10] MOV R9,qword ptr [RAX + 0xf8] OR R9,0x4 LEA RDI,[0x218342] MOV ESI,0x63b CALL 0x001ad940 CMP RAX,0x0 JZ 0x001ad8ce MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x50 CALL 0x001ad620 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0xe4],0xffffffff MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x001ad934 LAB_001ad8ce: MOV RCX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x20] SUB RAX,RCX MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x30] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x18],RAX MOV RCX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x10] ADD RCX,qword ptr [RAX + 0x8] MOV qword ptr [RAX + 0x8],RCX LAB_001ad8f9: JMP 0x001ad8fb LAB_001ad8fb: MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x40] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] CALL 0x0013b0c0 MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x10] ADD RCX,qword ptr [RAX + 0x40] MOV qword ptr [RAX + 0x40],RCX MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x50 CALL 0x001ad620 MOV dword ptr [RBP + -0x4],0x0 LAB_001ad934: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
int4 my_b_append(long param_1,void *param_2,ulong param_3) { int iVar1; ulong uVar2; long lVar3; size_t local_28; void *local_20; inline_mysql_mutex_lock (param_1 + 0x50,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",0x62b); uVar2 = *(long *)(param_1 + 0x48) - *(long *)(param_1 + 0x40); local_28 = param_3; local_20 = param_2; if (uVar2 < param_3) { memcpy(*(void **)(param_1 + 0x40),param_2,uVar2); local_20 = (void *)(uVar2 + (long)param_2); local_28 = param_3 - uVar2; *(ulong *)(param_1 + 0x40) = uVar2 + *(long *)(param_1 + 0x40); iVar1 = my_b_flush_io_cache(param_1,0); if (iVar1 != 0) { inline_mysql_mutex_unlock(param_1 + 0x50); return 1; } if (0xfff < local_28) { uVar2 = local_28 & 0xfffff000; lVar3 = inline_mysql_file_write ("/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",0x63b, *(int4 *)(param_1 + 0xd4),local_20,uVar2, *(ulong *)(param_1 + 0xf8) | 4); if (lVar3 != 0) { inline_mysql_mutex_unlock(param_1 + 0x50); *(int4 *)(param_1 + 0xe4) = 0xffffffff; return 0xffffffff; } local_28 = local_28 - uVar2; local_20 = (void *)(uVar2 + (long)local_20); *(ulong *)(param_1 + 8) = uVar2 + *(long *)(param_1 + 8); } } memcpy(*(void **)(param_1 + 0x40),local_20,local_28); *(size_t *)(param_1 + 0x40) = local_28 + *(long *)(param_1 + 0x40); inline_mysql_mutex_unlock(param_1 + 0x50); return 0; }
31,344
testing::internal::UnitTestImpl::UnitTestImpl(testing::UnitTest*)
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest.cc
UnitTestImpl::UnitTestImpl(UnitTest* parent) : parent_(parent), GTEST_DISABLE_MSC_WARNINGS_PUSH_(4355 /* using this in initializer */) default_global_test_part_result_reporter_(this), default_per_thread_test_part_result_reporter_(this), GTEST_DISABLE_MSC_WARNINGS_POP_() global_test_part_result_reporter_( &default_global_test_part_result_reporter_), per_thread_test_part_result_reporter_( &default_per_thread_test_part_result_reporter_), parameterized_test_registry_(), parameterized_tests_registered_(false), last_death_test_suite_(-1), current_test_suite_(nullptr), current_test_info_(nullptr), ad_hoc_test_result_(), os_stack_trace_getter_(nullptr), post_flag_parse_init_performed_(false), random_seed_(0), // Will be overridden by the flag before first use. random_(0), // Will be reseeded before first use. start_timestamp_(0), elapsed_time_(0), #ifdef GTEST_HAS_DEATH_TEST death_test_factory_(new DefaultDeathTestFactory), #endif // Will be overridden by the flag before first use. catch_exceptions_(false) { listeners()->SetDefaultResultPrinter(new PrettyUnitTestResultPrinter); }
O0
cpp
testing::internal::UnitTestImpl::UnitTestImpl(testing::UnitTest*): subq $0xd8, %rsp movq %rdi, 0xd0(%rsp) movq %rsi, 0xc8(%rsp) movq 0xd0(%rsp), %rdi movq %rdi, 0xa0(%rsp) leaq 0xa1802(%rip), %rax # 0x183db0 addq $0x10, %rax movq %rax, (%rdi) movq 0xc8(%rsp), %rax movq %rax, 0x8(%rdi) addq $0x10, %rdi movq %rdi, 0x98(%rsp) callq 0xebd50 movq 0xa0(%rsp), %rsi movq %rsi, %rdi addq $0x30, %rdi movq %rdi, 0xa8(%rsp) callq 0xc8570 jmp 0xe25f0 movq 0xa0(%rsp), %rsi movq %rsi, %rdi addq $0x40, %rdi movq %rdi, 0x90(%rsp) callq 0xc86c0 jmp 0xe260e movq 0xa0(%rsp), %rdi movq %rdi, %rax addq $0x30, %rax movq %rax, 0x50(%rdi) addq $0x58, %rdi movq %rdi, 0x88(%rsp) callq 0xef6f0 jmp 0xe2634 movq 0xa0(%rsp), %rax movq %rax, %rdi addq $0x90, %rdi movq %rdi, 0x80(%rsp) addq $0x40, %rax movq %rax, 0xb0(%rsp) leaq 0xb0(%rsp), %rsi callq 0xf2b60 jmp 0xe2669 movq 0xa0(%rsp), %rdi addq $0xa0, %rdi movq %rdi, 0x40(%rsp) callq 0xf2bf0 movq 0xa0(%rsp), %rdi addq $0xb8, %rdi movq %rdi, 0x48(%rsp) callq 0xf2c00 movq 0xa0(%rsp), %rdi addq $0xd0, %rdi movq %rdi, 0x50(%rsp) callq 0xf2c10 movq 0xa0(%rsp), %rdi addq $0x108, %rdi # imm = 0x108 movq %rdi, 0x58(%rsp) callq 0xf1100 movq 0xa0(%rsp), %rax movq %rax, %rdi addq $0x120, %rdi # imm = 0x120 movq %rdi, 0x60(%rsp) xorps %xmm0, %xmm0 movups %xmm0, 0x160(%rax) movups %xmm0, 0x150(%rax) movups %xmm0, 0x140(%rax) movups %xmm0, 0x130(%rax) movups %xmm0, 0x120(%rax) callq 0xf2c20 movq 0xa0(%rsp), %rdi addq $0x170, %rdi # imm = 0x170 movq %rdi, 0x68(%rsp) callq 0xf2c50 movq 0xa0(%rsp), %rdi addq $0x1a0, %rdi # imm = 0x1A0 movq %rdi, 0x70(%rsp) callq 0xed030 movq 0xa0(%rsp), %rdi movb $0x0, 0x1d0(%rdi) movl $0xffffffff, 0x1d4(%rdi) # imm = 0xFFFFFFFF movq $0x0, 0x1d8(%rdi) movq $0x0, 0x1e0(%rdi) addq $0x1e8, %rdi # imm = 0x1E8 movq %rdi, 0x78(%rsp) callq 0xcd570 jmp 0xe2783 movq 0xa0(%rsp), %rdi addq $0x268, %rdi # imm = 0x268 movq %rdi, 0x38(%rsp) callq 0xe1430 jmp 0xe279e movq 0xa0(%rsp), %rdi movq $0x0, 0x280(%rdi) movb $0x0, 0x288(%rdi) movl $0x0, 0x28c(%rdi) addq $0x290, %rdi # imm = 0x290 xorl %esi, %esi callq 0xf2c60 jmp 0xe27d2 movq 0xa0(%rsp), %rdi movq $0x0, 0x298(%rdi) movq $0x0, 0x2a0(%rdi) addq $0x2a8, %rdi # imm = 0x2A8 movq %rdi, 0x20(%rsp) callq 0xf2c80 movq 0xa0(%rsp), %rax addq $0x2b0, %rax # imm = 0x2B0 movq %rax, 0x28(%rsp) movl $0x8, %edi callq 0x16700 movq %rax, 0x30(%rsp) jmp 0xe2825 movq 0x30(%rsp), %rdi callq 0xf2cb0 movq 0x28(%rsp), %rdi movq 0x30(%rsp), %rsi callq 0xf2ce0 movq 0xa0(%rsp), %rdi addq $0x2b8, %rdi # imm = 0x2B8 movq %rdi, 0x18(%rsp) callq 0xf2d10 jmp 0xe2859 movq 0xa0(%rsp), %rdi movb $0x0, 0x2c8(%rdi) callq 0xeb4e0 movq %rax, 0x10(%rsp) jmp 0xe2874 movl $0x8, %edi callq 0x16700 movq %rax, 0x8(%rsp) jmp 0xe2885 movq 0x8(%rsp), %rdi callq 0xf2d80 movq 0x10(%rsp), %rdi movq 0x8(%rsp), %rsi callq 0xe1590 jmp 0xe28a0 addq $0xd8, %rsp retq movq %rax, %rcx movl %edx, %eax movq %rcx, 0xc0(%rsp) movl %eax, 0xbc(%rsp) jmp 0xe2a3d movq %rax, %rcx movl %edx, %eax movq %rcx, 0xc0(%rsp) movl %eax, 0xbc(%rsp) jmp 0xe2a30 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xc0(%rsp) movl %eax, 0xbc(%rsp) jmp 0xe2a23 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xc0(%rsp) movl %eax, 0xbc(%rsp) jmp 0xe2a16 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xc0(%rsp) movl %eax, 0xbc(%rsp) jmp 0xe29c3 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xc0(%rsp) movl %eax, 0xbc(%rsp) jmp 0xe29b9 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xc0(%rsp) movl %eax, 0xbc(%rsp) jmp 0xe29af movq %rax, %rcx movl %edx, %eax movq %rcx, 0xc0(%rsp) movl %eax, 0xbc(%rsp) jmp 0xe29a5 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xc0(%rsp) movl %eax, 0xbc(%rsp) jmp 0xe299b movq 0x18(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0xc0(%rsp) movl %eax, 0xbc(%rsp) callq 0xf2db0 movq 0x28(%rsp), %rdi callq 0xf2e80 movq 0x20(%rsp), %rdi callq 0xf2ee0 movq 0x38(%rsp), %rdi callq 0xe14c0 movq 0x78(%rsp), %rdi callq 0xcd5d0 movq 0x70(%rsp), %rdi callq 0xed420 movq 0x68(%rsp), %rdi callq 0xf2f40 movq 0x60(%rsp), %rdi callq 0xf2f50 movq 0x58(%rsp), %rdi callq 0xf1110 movq 0x50(%rsp), %rdi callq 0xf3000 movq 0x48(%rsp), %rdi callq 0xf3010 movq 0x40(%rsp), %rdi callq 0xf3070 movq 0x80(%rsp), %rdi callq 0xf30d0 movq 0x88(%rsp), %rdi callq 0xef8b0 movq 0x90(%rsp), %rdi callq 0xf31a0 movq 0xa8(%rsp), %rdi callq 0xf31b0 movq 0x98(%rsp), %rdi callq 0xebbf0 movq 0xc0(%rsp), %rdi callq 0x16cf0 nopw (%rax,%rax)
_ZN7testing8internal12UnitTestImplC2EPNS_8UnitTestE: sub rsp, 0D8h mov [rsp+0D8h+var_8], rdi mov [rsp+0D8h+var_10], rsi mov rdi, [rsp+0D8h+var_8] mov [rsp+0D8h+var_38], rdi lea rax, _ZTVN7testing8internal12UnitTestImplE; `vtable for'testing::internal::UnitTestImpl add rax, 10h mov [rdi], rax mov rax, [rsp+0D8h+var_10] mov [rdi+8], rax add rdi, 10h; this mov [rsp+0D8h+var_40], rdi call _ZN7testing8internal8FilePathC2Ev; testing::internal::FilePath::FilePath(void) mov rsi, [rsp+0D8h+var_38]; testing::internal::UnitTestImpl * mov rdi, rsi add rdi, 30h ; '0'; this mov [rsp+0D8h+var_30], rdi call _ZN7testing8internal35DefaultGlobalTestPartResultReporterC2EPNS0_12UnitTestImplE; testing::internal::DefaultGlobalTestPartResultReporter::DefaultGlobalTestPartResultReporter(testing::internal::UnitTestImpl *) jmp short $+2 loc_E25F0: mov rsi, [rsp+0D8h+var_38]; testing::internal::UnitTestImpl * mov rdi, rsi add rdi, 40h ; '@'; this mov [rsp+0D8h+var_48], rdi call _ZN7testing8internal38DefaultPerThreadTestPartResultReporterC2EPNS0_12UnitTestImplE; testing::internal::DefaultPerThreadTestPartResultReporter::DefaultPerThreadTestPartResultReporter(testing::internal::UnitTestImpl *) jmp short $+2 loc_E260E: mov rdi, [rsp+0D8h+var_38] mov rax, rdi add rax, 30h ; '0' mov [rdi+50h], rax add rdi, 58h ; 'X'; this mov [rsp+0D8h+var_50], rdi call _ZN7testing8internal5MutexC2Ev; testing::internal::Mutex::Mutex(void) jmp short $+2 loc_E2634: mov rax, [rsp+0D8h+var_38] mov rdi, rax add rdi, 90h; int mov [rsp+0D8h+var_58], rdi add rax, 40h ; '@' mov qword ptr [rsp+0D8h+var_28], rax lea rsi, [rsp+0D8h+var_28]; int call _ZN7testing8internal11ThreadLocalIPNS_31TestPartResultReporterInterfaceEEC2ERKS3_; testing::internal::ThreadLocal<testing::TestPartResultReporterInterface *>::ThreadLocal(testing::TestPartResultReporterInterface * const&) jmp short $+2 loc_E2669: mov rdi, [rsp+0D8h+var_38] add rdi, 0A0h mov [rsp+0D8h+var_98], rdi call _ZNSt6vectorIPN7testing11EnvironmentESaIS2_EEC2Ev; std::vector<testing::Environment *>::vector(void) mov rdi, [rsp+0D8h+var_38] add rdi, 0B8h mov [rsp+0D8h+var_90], rdi call _ZNSt6vectorIPN7testing9TestSuiteESaIS2_EEC2Ev; std::vector<testing::TestSuite *>::vector(void) mov rdi, [rsp+0D8h+var_38] add rdi, 0D0h mov [rsp+0D8h+var_88], rdi call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7testing9TestSuiteESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEEC2Ev; std::unordered_map<std::string,testing::TestSuite *>::unordered_map(void) mov rdi, [rsp+0D8h+var_38] add rdi, 108h mov [rsp+0D8h+var_80], rdi call _ZNSt6vectorIiSaIiEEC2Ev; std::vector<int>::vector(void) mov rax, [rsp+0D8h+var_38] mov rdi, rax add rdi, 120h; this mov [rsp+0D8h+var_78], rdi xorps xmm0, xmm0 movups xmmword ptr [rax+160h], xmm0 movups xmmword ptr [rax+150h], xmm0 movups xmmword ptr [rax+140h], xmm0 movups xmmword ptr [rax+130h], xmm0 movups xmmword ptr [rax+120h], xmm0 call _ZN7testing8internal30ParameterizedTestSuiteRegistryC2Ev; testing::internal::ParameterizedTestSuiteRegistry::ParameterizedTestSuiteRegistry(void) mov rdi, [rsp+0D8h+var_38] add rdi, 170h; this mov [rsp+0D8h+var_70], rdi call _ZN7testing8internal34TypeParameterizedTestSuiteRegistryC2Ev; testing::internal::TypeParameterizedTestSuiteRegistry::TypeParameterizedTestSuiteRegistry(void) mov rdi, [rsp+0D8h+var_38] add rdi, 1A0h mov [rsp+0D8h+var_68], rdi call _ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EEC2Ev; std::set<std::string>::set(void) mov rdi, [rsp+0D8h+var_38] mov byte ptr [rdi+1D0h], 0 mov dword ptr [rdi+1D4h], 0FFFFFFFFh mov qword ptr [rdi+1D8h], 0 mov qword ptr [rdi+1E0h], 0 add rdi, 1E8h; this mov [rsp+0D8h+var_60], rdi call _ZN7testing10TestResultC2Ev; testing::TestResult::TestResult(void) jmp short $+2 loc_E2783: mov rdi, [rsp+0D8h+var_38] add rdi, 268h; this mov [rsp+0D8h+var_A0], rdi call _ZN7testing18TestEventListenersC2Ev; testing::TestEventListeners::TestEventListeners(void) jmp short $+2 loc_E279E: mov rdi, [rsp+0D8h+var_38] mov qword ptr [rdi+280h], 0 mov byte ptr [rdi+288h], 0 mov dword ptr [rdi+28Ch], 0 add rdi, 290h; this xor esi, esi; unsigned int call _ZN7testing8internal6RandomC2Ej; testing::internal::Random::Random(uint) jmp short $+2 loc_E27D2: mov rdi, [rsp+0D8h+var_38] mov qword ptr [rdi+298h], 0 mov qword ptr [rdi+2A0h], 0 add rdi, 2A8h mov [rsp+0D8h+var_B8], rdi call _ZNSt10unique_ptrIN7testing8internal24InternalRunDeathTestFlagESt14default_deleteIS2_EEC2IS4_vEEv; std::unique_ptr<testing::internal::InternalRunDeathTestFlag>::unique_ptr<std::default_delete<testing::internal::InternalRunDeathTestFlag>,void>(void) mov rax, [rsp+0D8h+var_38] add rax, 2B0h mov [rsp+0D8h+var_B0], rax mov edi, 8; unsigned __int64 call __Znwm; operator new(ulong) mov [rsp+0D8h+var_A8], rax jmp short $+2 loc_E2825: mov rdi, [rsp+0D8h+var_A8]; this call _ZN7testing8internal23DefaultDeathTestFactoryC2Ev; testing::internal::DefaultDeathTestFactory::DefaultDeathTestFactory(void) mov rdi, [rsp+0D8h+var_B0] mov rsi, [rsp+0D8h+var_A8] call _ZNSt10unique_ptrIN7testing8internal16DeathTestFactoryESt14default_deleteIS2_EEC2IS4_vEEPS2_; std::unique_ptr<testing::internal::DeathTestFactory>::unique_ptr<std::default_delete<testing::internal::DeathTestFactory>,void>(testing::internal::DeathTestFactory*) mov rdi, [rsp+0D8h+var_38] add rdi, 2B8h mov [rsp+0D8h+var_C0], rdi call _ZN7testing8internal11ThreadLocalISt6vectorINS0_9TraceInfoESaIS3_EEEC2Ev; testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo>>::ThreadLocal(void) jmp short $+2 loc_E2859: mov rdi, [rsp+0D8h+var_38]; this mov byte ptr [rdi+2C8h], 0 call _ZN7testing8internal12UnitTestImpl9listenersEv; testing::internal::UnitTestImpl::listeners(void) mov [rsp+0D8h+var_C8], rax jmp short $+2 loc_E2874: mov edi, 8; unsigned __int64 call __Znwm; operator new(ulong) mov [rsp+0D8h+var_D0], rax jmp short $+2 loc_E2885: mov rdi, [rsp+0D8h+var_D0]; this call _ZN7testing8internal27PrettyUnitTestResultPrinterC2Ev; testing::internal::PrettyUnitTestResultPrinter::PrettyUnitTestResultPrinter(void) mov rdi, [rsp+0D8h+var_C8]; this mov rsi, [rsp+0D8h+var_D0]; testing::TestEventListener * call _ZN7testing18TestEventListeners23SetDefaultResultPrinterEPNS_17TestEventListenerE; testing::TestEventListeners::SetDefaultResultPrinter(testing::TestEventListener *) jmp short $+2 loc_E28A0: add rsp, 0D8h retn mov rcx, rax mov eax, edx mov [rsp+arg_B8], rcx mov [rsp+arg_B4], eax jmp loc_E2A3D mov rcx, rax mov eax, edx mov [rsp+arg_B8], rcx mov [rsp+arg_B4], eax jmp loc_E2A30 mov rcx, rax mov eax, edx mov [rsp+arg_B8], rcx mov [rsp+arg_B4], eax jmp loc_E2A23 mov rcx, rax mov eax, edx mov [rsp+arg_B8], rcx mov [rsp+arg_B4], eax jmp loc_E2A16 mov rcx, rax mov eax, edx mov [rsp+arg_B8], rcx mov [rsp+arg_B4], eax jmp loc_E29C3 mov rcx, rax mov eax, edx mov [rsp+arg_B8], rcx mov [rsp+arg_B4], eax jmp short loc_E29B9 mov rcx, rax mov eax, edx mov [rsp+arg_B8], rcx mov [rsp+arg_B4], eax jmp short loc_E29AF mov rcx, rax mov eax, edx mov [rsp+arg_B8], rcx mov [rsp+arg_B4], eax jmp short loc_E29A5 mov rcx, rax mov eax, edx mov [rsp+arg_B8], rcx mov [rsp+arg_B4], eax jmp short loc_E299B mov rdi, qword ptr [rsp+arg_10]; int mov rcx, rax mov eax, edx mov [rsp+arg_B8], rcx mov [rsp+arg_B4], eax call _ZN7testing8internal11ThreadLocalISt6vectorINS0_9TraceInfoESaIS3_EEED2Ev; testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo>>::~ThreadLocal() loc_E299B: mov rdi, [rsp+arg_20] call _ZNSt10unique_ptrIN7testing8internal16DeathTestFactoryESt14default_deleteIS2_EED2Ev; std::unique_ptr<testing::internal::DeathTestFactory>::~unique_ptr() loc_E29A5: mov rdi, [rsp+arg_18] call _ZNSt10unique_ptrIN7testing8internal24InternalRunDeathTestFlagESt14default_deleteIS2_EED2Ev; std::unique_ptr<testing::internal::InternalRunDeathTestFlag>::~unique_ptr() loc_E29AF: mov rdi, [rsp+arg_30]; this call _ZN7testing18TestEventListenersD2Ev; testing::TestEventListeners::~TestEventListeners() loc_E29B9: mov rdi, [rsp+arg_70]; this call _ZN7testing10TestResultD2Ev; testing::TestResult::~TestResult() loc_E29C3: mov rdi, [rsp+arg_68] call _ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EED2Ev; std::set<std::string>::~set() mov rdi, [rsp+arg_60]; this call _ZN7testing8internal34TypeParameterizedTestSuiteRegistryD2Ev; testing::internal::TypeParameterizedTestSuiteRegistry::~TypeParameterizedTestSuiteRegistry() mov rdi, [rsp+arg_58]; this call _ZN7testing8internal30ParameterizedTestSuiteRegistryD2Ev; testing::internal::ParameterizedTestSuiteRegistry::~ParameterizedTestSuiteRegistry() mov rdi, [rsp+arg_50] call _ZNSt6vectorIiSaIiEED2Ev; std::vector<int>::~vector() mov rdi, [rsp+arg_48] call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7testing9TestSuiteESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEED2Ev; std::unordered_map<std::string,testing::TestSuite *>::~unordered_map() mov rdi, [rsp+arg_40] call _ZNSt6vectorIPN7testing9TestSuiteESaIS2_EED2Ev; std::vector<testing::TestSuite *>::~vector() mov rdi, [rsp+arg_38] call _ZNSt6vectorIPN7testing11EnvironmentESaIS2_EED2Ev; std::vector<testing::Environment *>::~vector() mov rdi, qword ptr [rsp+arg_78]; int call _ZN7testing8internal11ThreadLocalIPNS_31TestPartResultReporterInterfaceEED2Ev; testing::internal::ThreadLocal<testing::TestPartResultReporterInterface *>::~ThreadLocal() loc_E2A16: mov rdi, [rsp+arg_80]; this call _ZN7testing8internal5MutexD2Ev; testing::internal::Mutex::~Mutex() loc_E2A23: mov rdi, [rsp+arg_88]; this call _ZN7testing8internal38DefaultPerThreadTestPartResultReporterD2Ev; testing::internal::DefaultPerThreadTestPartResultReporter::~DefaultPerThreadTestPartResultReporter() loc_E2A30: mov rdi, [rsp+arg_A0]; this call _ZN7testing8internal35DefaultGlobalTestPartResultReporterD2Ev; testing::internal::DefaultGlobalTestPartResultReporter::~DefaultGlobalTestPartResultReporter() loc_E2A3D: mov rdi, [rsp+arg_90]; this call _ZN7testing8internal8FilePathD2Ev; testing::internal::FilePath::~FilePath() mov rdi, [rsp+arg_B8] call __Unwind_Resume
testing::TestEventListener * testing::internal::UnitTestImpl::UnitTestImpl( testing::internal::UnitTestImpl *this, testing::UnitTest *a2) { int v2; // edx int v3; // ecx int v4; // r8d int v5; // r9d int v7; // [rsp+0h] [rbp-D8h] testing::internal::PrettyUnitTestResultPrinter *v8; // [rsp+8h] [rbp-D0h] testing::internal::PrettyUnitTestResultPrinter *v9; // [rsp+8h] [rbp-D0h] int v10; // [rsp+10h] [rbp-C8h] testing::TestEventListeners *v11; // [rsp+10h] [rbp-C8h] long long v12; // [rsp+18h] [rbp-C0h] testing::internal::DefaultDeathTestFactory *v13; // [rsp+30h] [rbp-A8h] int v15[2]; // [rsp+B0h] [rbp-28h] BYREF testing::UnitTest *v16; // [rsp+C8h] [rbp-10h] testing::internal::UnitTestImpl *v17; // [rsp+D0h] [rbp-8h] v17 = this; v16 = a2; *(_QWORD *)this = &`vtable for'testing::internal::UnitTestImpl + 2; *((_QWORD *)this + 1) = v16; testing::internal::FilePath::FilePath((testing::internal::UnitTestImpl *)((char *)this + 16)); testing::internal::DefaultGlobalTestPartResultReporter::DefaultGlobalTestPartResultReporter( (testing::internal::UnitTestImpl *)((char *)this + 48), this); testing::internal::DefaultPerThreadTestPartResultReporter::DefaultPerThreadTestPartResultReporter( (testing::internal::UnitTestImpl *)((char *)this + 64), this); *((_QWORD *)this + 10) = (char *)this + 48; testing::internal::Mutex::Mutex((testing::internal::UnitTestImpl *)((char *)this + 88)); *(_QWORD *)v15 = (char *)this + 64; testing::internal::ThreadLocal<testing::TestPartResultReporterInterface *>::ThreadLocal( (_DWORD)this + 144, (int)v15, v2, v3, v4, v5, v7, v8, v10, v12); std::vector<testing::Environment *>::vector(); std::vector<testing::TestSuite *>::vector(); std::unordered_map<std::string,testing::TestSuite *>::unordered_map(); std::vector<int>::vector(); *((_OWORD *)this + 22) = 0LL; *((_OWORD *)this + 21) = 0LL; *((_OWORD *)this + 20) = 0LL; *((_OWORD *)this + 19) = 0LL; *((_OWORD *)this + 18) = 0LL; testing::internal::ParameterizedTestSuiteRegistry::ParameterizedTestSuiteRegistry((testing::internal::UnitTestImpl *)((char *)this + 288)); testing::internal::TypeParameterizedTestSuiteRegistry::TypeParameterizedTestSuiteRegistry((testing::internal::UnitTestImpl *)((char *)this + 368)); std::set<std::string>::set((char *)this + 416); *((_BYTE *)this + 464) = 0; *((_DWORD *)this + 117) = -1; *((_QWORD *)this + 59) = 0LL; *((_QWORD *)this + 60) = 0LL; testing::TestResult::TestResult((testing::internal::UnitTestImpl *)((char *)this + 488)); testing::TestEventListeners::TestEventListeners((testing::internal::UnitTestImpl *)((char *)this + 616)); *((_QWORD *)this + 80) = 0LL; *((_BYTE *)this + 648) = 0; *((_DWORD *)this + 163) = 0; testing::internal::Random::Random((testing::internal::UnitTestImpl *)((char *)this + 656), 0); *((_QWORD *)this + 83) = 0LL; *((_QWORD *)this + 84) = 0LL; std::unique_ptr<testing::internal::InternalRunDeathTestFlag>::unique_ptr<std::default_delete<testing::internal::InternalRunDeathTestFlag>,void>(); v13 = (testing::internal::DefaultDeathTestFactory *)operator new(8uLL); testing::internal::DefaultDeathTestFactory::DefaultDeathTestFactory(v13); std::unique_ptr<testing::internal::DeathTestFactory>::unique_ptr<std::default_delete<testing::internal::DeathTestFactory>,void>( (char *)this + 688, v13); testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo>>::ThreadLocal(); *((_BYTE *)this + 712) = 0; v11 = (testing::TestEventListeners *)testing::internal::UnitTestImpl::listeners(this); v9 = (testing::internal::PrettyUnitTestResultPrinter *)operator new(8uLL); testing::internal::PrettyUnitTestResultPrinter::PrettyUnitTestResultPrinter(v9); return testing::TestEventListeners::SetDefaultResultPrinter(v11, v9); }
UnitTestImpl: SUB RSP,0xd8 MOV qword ptr [RSP + 0xd0],RDI MOV qword ptr [RSP + 0xc8],RSI MOV RDI,qword ptr [RSP + 0xd0] MOV qword ptr [RSP + 0xa0],RDI LEA RAX,[0x283db0] ADD RAX,0x10 MOV qword ptr [RDI],RAX MOV RAX,qword ptr [RSP + 0xc8] MOV qword ptr [RDI + 0x8],RAX ADD RDI,0x10 MOV qword ptr [RSP + 0x98],RDI CALL 0x001ebd50 MOV RSI,qword ptr [RSP + 0xa0] MOV RDI,RSI ADD RDI,0x30 MOV qword ptr [RSP + 0xa8],RDI LAB_001e25e9: CALL 0x001c8570 JMP 0x001e25f0 LAB_001e25f0: MOV RSI,qword ptr [RSP + 0xa0] MOV RDI,RSI ADD RDI,0x40 MOV qword ptr [RSP + 0x90],RDI LAB_001e2607: CALL 0x001c86c0 JMP 0x001e260e LAB_001e260e: MOV RDI,qword ptr [RSP + 0xa0] MOV RAX,RDI ADD RAX,0x30 MOV qword ptr [RDI + 0x50],RAX ADD RDI,0x58 MOV qword ptr [RSP + 0x88],RDI LAB_001e262d: CALL 0x001ef6f0 JMP 0x001e2634 LAB_001e2634: MOV RAX,qword ptr [RSP + 0xa0] MOV RDI,RAX ADD RDI,0x90 MOV qword ptr [RSP + 0x80],RDI ADD RAX,0x40 MOV qword ptr [RSP + 0xb0],RAX LAB_001e265a: LEA RSI,[RSP + 0xb0] CALL 0x001f2b60 JMP 0x001e2669 LAB_001e2669: MOV RDI,qword ptr [RSP + 0xa0] ADD RDI,0xa0 MOV qword ptr [RSP + 0x40],RDI CALL 0x001f2bf0 MOV RDI,qword ptr [RSP + 0xa0] ADD RDI,0xb8 MOV qword ptr [RSP + 0x48],RDI CALL 0x001f2c00 MOV RDI,qword ptr [RSP + 0xa0] ADD RDI,0xd0 MOV qword ptr [RSP + 0x50],RDI CALL 0x001f2c10 MOV RDI,qword ptr [RSP + 0xa0] ADD RDI,0x108 MOV qword ptr [RSP + 0x58],RDI CALL 0x001f1100 MOV RAX,qword ptr [RSP + 0xa0] MOV RDI,RAX ADD RDI,0x120 MOV qword ptr [RSP + 0x60],RDI XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + 0x160],XMM0 MOVUPS xmmword ptr [RAX + 0x150],XMM0 MOVUPS xmmword ptr [RAX + 0x140],XMM0 MOVUPS xmmword ptr [RAX + 0x130],XMM0 MOVUPS xmmword ptr [RAX + 0x120],XMM0 CALL 0x001f2c20 MOV RDI,qword ptr [RSP + 0xa0] ADD RDI,0x170 MOV qword ptr [RSP + 0x68],RDI CALL 0x001f2c50 MOV RDI,qword ptr [RSP + 0xa0] ADD RDI,0x1a0 MOV qword ptr [RSP + 0x70],RDI CALL 0x001ed030 MOV RDI,qword ptr [RSP + 0xa0] MOV byte ptr [RDI + 0x1d0],0x0 MOV dword ptr [RDI + 0x1d4],0xffffffff MOV qword ptr [RDI + 0x1d8],0x0 MOV qword ptr [RDI + 0x1e0],0x0 ADD RDI,0x1e8 MOV qword ptr [RSP + 0x78],RDI LAB_001e277c: CALL 0x001cd570 JMP 0x001e2783 LAB_001e2783: MOV RDI,qword ptr [RSP + 0xa0] ADD RDI,0x268 MOV qword ptr [RSP + 0x38],RDI LAB_001e2797: CALL 0x001e1430 JMP 0x001e279e LAB_001e279e: MOV RDI,qword ptr [RSP + 0xa0] MOV qword ptr [RDI + 0x280],0x0 MOV byte ptr [RDI + 0x288],0x0 MOV dword ptr [RDI + 0x28c],0x0 ADD RDI,0x290 LAB_001e27c9: XOR ESI,ESI CALL 0x001f2c60 JMP 0x001e27d2 LAB_001e27d2: MOV RDI,qword ptr [RSP + 0xa0] MOV qword ptr [RDI + 0x298],0x0 MOV qword ptr [RDI + 0x2a0],0x0 ADD RDI,0x2a8 MOV qword ptr [RSP + 0x20],RDI CALL 0x001f2c80 MOV RAX,qword ptr [RSP + 0xa0] ADD RAX,0x2b0 MOV qword ptr [RSP + 0x28],RAX LAB_001e2814: MOV EDI,0x8 CALL 0x00116700 MOV qword ptr [RSP + 0x30],RAX JMP 0x001e2825 LAB_001e2825: MOV RDI,qword ptr [RSP + 0x30] CALL 0x001f2cb0 MOV RDI,qword ptr [RSP + 0x28] MOV RSI,qword ptr [RSP + 0x30] CALL 0x001f2ce0 MOV RDI,qword ptr [RSP + 0xa0] ADD RDI,0x2b8 MOV qword ptr [RSP + 0x18],RDI LAB_001e2852: CALL 0x001f2d10 JMP 0x001e2859 LAB_001e2859: MOV RDI,qword ptr [RSP + 0xa0] MOV byte ptr [RDI + 0x2c8],0x0 LAB_001e2868: CALL 0x001eb4e0 MOV qword ptr [RSP + 0x10],RAX JMP 0x001e2874 LAB_001e2874: MOV EDI,0x8 CALL 0x00116700 MOV qword ptr [RSP + 0x8],RAX JMP 0x001e2885 LAB_001e2885: MOV RDI,qword ptr [RSP + 0x8] CALL 0x001f2d80 MOV RDI,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RSP + 0x8] CALL 0x001e1590 LAB_001e289e: JMP 0x001e28a0 LAB_001e28a0: ADD RSP,0xd8 RET
/* testing::internal::UnitTestImpl::UnitTestImpl(testing::UnitTest*) */ void __thiscall testing::internal::UnitTestImpl::UnitTestImpl(UnitTestImpl *this,UnitTest *param_1) { DefaultDeathTestFactory *this_00; TestEventListeners *this_01; PrettyUnitTestResultPrinter *this_02; UnitTestImpl *local_28 [3]; UnitTest *local_10; UnitTestImpl *local_8; *(int ***)this = &PTR__UnitTestImpl_00283dc0; *(UnitTest **)(this + 8) = param_1; local_10 = param_1; local_8 = this; FilePath::FilePath((FilePath *)(this + 0x10)); /* try { // try from 001e25e9 to 001e25ed has its CatchHandler @ 001e28a8 */ DefaultGlobalTestPartResultReporter::DefaultGlobalTestPartResultReporter ((DefaultGlobalTestPartResultReporter *)(this + 0x30),this); /* try { // try from 001e2607 to 001e260b has its CatchHandler @ 001e28c1 */ DefaultPerThreadTestPartResultReporter::DefaultPerThreadTestPartResultReporter ((DefaultPerThreadTestPartResultReporter *)(this + 0x40),this); *(UnitTestImpl **)(this + 0x50) = this + 0x30; /* try { // try from 001e262d to 001e2631 has its CatchHandler @ 001e28da */ Mutex::Mutex((Mutex *)(this + 0x58)); local_28[0] = this + 0x40; /* try { // try from 001e265a to 001e2666 has its CatchHandler @ 001e28f3 */ ThreadLocal<testing::TestPartResultReporterInterface*>::ThreadLocal ((ThreadLocal<testing::TestPartResultReporterInterface*> *)(this + 0x90), (TestPartResultReporterInterface **)local_28); std::vector<testing::Environment*,std::allocator<testing::Environment*>>::vector ((vector<testing::Environment*,std::allocator<testing::Environment*>> *)(this + 0xa0)); std::vector<testing::TestSuite*,std::allocator<testing::TestSuite*>>::vector ((vector<testing::TestSuite*,std::allocator<testing::TestSuite*>> *)(this + 0xb8)); std:: unordered_map<std::__cxx11::string,testing::TestSuite*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,testing::TestSuite*>>> ::unordered_map((unordered_map<std::__cxx11::string,testing::TestSuite*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,testing::TestSuite*>>> *)(this + 0xd0)); std::vector<int,std::allocator<int>>::vector((vector<int,std::allocator<int>> *)(this + 0x108)); *(int8 *)(this + 0x160) = 0; *(int8 *)(this + 0x168) = 0; *(int8 *)(this + 0x150) = 0; *(int8 *)(this + 0x158) = 0; *(int8 *)(this + 0x140) = 0; *(int8 *)(this + 0x148) = 0; *(int8 *)(this + 0x130) = 0; *(int8 *)(this + 0x138) = 0; *(int8 *)(this + 0x120) = 0; *(int8 *)(this + 0x128) = 0; ParameterizedTestSuiteRegistry::ParameterizedTestSuiteRegistry ((ParameterizedTestSuiteRegistry *)(this + 0x120)); TypeParameterizedTestSuiteRegistry::TypeParameterizedTestSuiteRegistry ((TypeParameterizedTestSuiteRegistry *)(this + 0x170)); std:: set<std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>>:: set((set<std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>> *)(this + 0x1a0)); this[0x1d0] = (UnitTestImpl)0x0; *(int4 *)(this + 0x1d4) = 0xffffffff; *(int8 *)(this + 0x1d8) = 0; *(int8 *)(this + 0x1e0) = 0; /* try { // try from 001e277c to 001e2780 has its CatchHandler @ 001e290c */ TestResult::TestResult((TestResult *)(this + 0x1e8)); /* try { // try from 001e2797 to 001e279b has its CatchHandler @ 001e2925 */ TestEventListeners::TestEventListeners((TestEventListeners *)(this + 0x268)); *(int8 *)(this + 0x280) = 0; this[0x288] = (UnitTestImpl)0x0; *(int4 *)(this + 0x28c) = 0; /* try { // try from 001e27c9 to 001e27cf has its CatchHandler @ 001e293b */ Random::Random((Random *)(this + 0x290),0); *(int8 *)(this + 0x298) = 0; *(int8 *)(this + 0x2a0) = 0; std:: unique_ptr<testing::internal::InternalRunDeathTestFlag,std::default_delete<testing::internal::InternalRunDeathTestFlag>> ::unique_ptr<std::default_delete<testing::internal::InternalRunDeathTestFlag>,void> ((unique_ptr<testing::internal::InternalRunDeathTestFlag,std::default_delete<testing::internal::InternalRunDeathTestFlag>> *)(this + 0x2a8)); /* try { // try from 001e2814 to 001e281d has its CatchHandler @ 001e2951 */ this_00 = (DefaultDeathTestFactory *)operator_new(8); DefaultDeathTestFactory::DefaultDeathTestFactory(this_00); std:: unique_ptr<testing::internal::DeathTestFactory,std::default_delete<testing::internal::DeathTestFactory>> ::unique_ptr<std::default_delete<testing::internal::DeathTestFactory>,void> ((unique_ptr<testing::internal::DeathTestFactory,std::default_delete<testing::internal::DeathTestFactory>> *)(this + 0x2b0),(DeathTestFactory *)this_00); /* try { // try from 001e2852 to 001e2856 has its CatchHandler @ 001e2967 */ ThreadLocal<std::vector<testing::internal::TraceInfo,std::allocator<testing::internal::TraceInfo>>> ::ThreadLocal((ThreadLocal<std::vector<testing::internal::TraceInfo,std::allocator<testing::internal::TraceInfo>>> *)(this + 0x2b8)); this[0x2c8] = (UnitTestImpl)0x0; /* try { // try from 001e2868 to 001e289d has its CatchHandler @ 001e297d */ this_01 = (TestEventListeners *)listeners(this); this_02 = (PrettyUnitTestResultPrinter *)operator_new(8); PrettyUnitTestResultPrinter::PrettyUnitTestResultPrinter(this_02); TestEventListeners::SetDefaultResultPrinter(this_01,(TestEventListener *)this_02); return; }
31,345
SettingValue_InputString::layout() const
untodesu[P]voxelius/game/client/settings.cc
void SettingValue_InputString::layout(void) const { ImGuiInputTextFlags flags; std::string current_value = value->get(); if(allow_whitespace) flags = ImGuiInputTextFlags_AllowTabInput; else flags = 0; if(ImGui::InputText(wid.c_str(), &current_value, flags)) { value->set(current_value.c_str()); } layout_label(); layout_tooltip(); }
O1
cpp
SettingValue_InputString::layout() const: pushq %r14 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx movq 0x98(%rdi), %rdi callq 0x13053a leaq 0x8(%rsp), %r14 leaq 0x7(%rsp), %rdx movq %r14, %rdi movq %rax, %rsi callq 0x30012 movzbl 0xa0(%rbx), %edx shll $0x5, %edx movq 0x78(%rbx), %rdi movq %r14, %rsi xorl %ecx, %ecx xorl %r8d, %r8d callq 0xcc00c testb %al, %al je 0x686d5 movq 0x98(%rbx), %rdi movq 0x8(%rsp), %rsi callq 0x130506 movss 0x12d87f(%rip), %xmm1 # 0x195f5c xorps %xmm0, %xmm0 callq 0x10f0da movq 0x30(%rbx), %rdi xorl %esi, %esi callq 0xcc66c movq %rbx, %rdi callq 0x68138 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x68713 movq 0x18(%rsp), %rsi incq %rsi callq 0x268d0 addq $0x28, %rsp popq %rbx popq %r14 retq movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x68739 movq 0x18(%rsp), %rsi incq %rsi callq 0x268d0 movq %rbx, %rdi callq 0x26fe0 nop
_ZNK24SettingValue_InputString6layoutEv: push r14 push rbx sub rsp, 28h mov rbx, rdi mov rdi, [rdi+98h]; this call _ZNK12ConfigString3getEv; ConfigString::get(void) lea r14, [rsp+38h+var_30] lea rdx, [rsp+38h+var_31] mov rdi, r14 mov rsi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) movzx edx, byte ptr [rbx+0A0h] shl edx, 5 mov rdi, [rbx+78h] mov rsi, r14 xor ecx, ecx xor r8d, r8d call _ZN5ImGui9InputTextEPKcPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiPFiP26ImGuiInputTextCallbackDataEPv; ImGui::InputText(char const*,std::string *,int,int (*)(ImGuiInputTextCallbackData *),void *) test al, al jz short loc_686D5 mov rdi, [rbx+98h]; this mov rsi, [rsp+38h+var_30]; char * call _ZN12ConfigString3setEPKc; ConfigString::set(char const*) loc_686D5: movss xmm1, cs:flt_195F5C; float xorps xmm0, xmm0; float call _ZN5ImGui8SameLineEff; ImGui::SameLine(float,float) mov rdi, [rbx+30h]; this xor esi, esi; char * call _ZN5ImGui15TextUnformattedEPKcS1_; ImGui::TextUnformatted(char const*,char const*) mov rdi, rbx; this call _ZNK12SettingValue14layout_tooltipEv; SettingValue::layout_tooltip(void) lea rax, [rsp+38h+var_20] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_68713 mov rsi, [rsp+38h+var_20] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_68713: add rsp, 28h pop rbx pop r14 retn mov rbx, rax lea rax, [rsp+arg_10] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_68739 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_68739: mov rdi, rbx call __Unwind_Resume
void SettingValue_InputString::layout(ConfigString **this) { long long v2; // rax ConfigString *v3; // rdi const char *v4; // rdx char *v5[2]; // [rsp+8h] [rbp-30h] BYREF long long v6; // [rsp+18h] [rbp-20h] BYREF v2 = ConfigString::get(this[19]); std::string::basic_string<std::allocator<char>>(v5, v2); v3 = this[15]; if ( (unsigned __int8)ImGui::InputText(v3, v5, 32 * (unsigned int)*((unsigned __int8 *)this + 160), 0LL, 0LL) ) { v3 = this[19]; ConfigString::set(v3, v5[0]); } ImGui::SameLine(v3, 0.0, -1.0); ImGui::TextUnformatted(this[6], 0LL, v4); SettingValue::layout_tooltip(this, 0LL); if ( (long long *)v5[0] != &v6 ) operator delete(v5[0], v6 + 1); }
layout: PUSH R14 PUSH RBX SUB RSP,0x28 MOV RBX,RDI MOV RDI,qword ptr [RDI + 0x98] CALL 0x0023053a LEA R14,[RSP + 0x8] LEA RDX,[RSP + 0x7] MOV RDI,R14 MOV RSI,RAX CALL 0x00130012 MOVZX EDX,byte ptr [RBX + 0xa0] SHL EDX,0x5 MOV RDI,qword ptr [RBX + 0x78] LAB_001686b3: MOV RSI,R14 XOR ECX,ECX XOR R8D,R8D CALL 0x001cc00c TEST AL,AL JZ 0x001686d5 MOV RDI,qword ptr [RBX + 0x98] MOV RSI,qword ptr [RSP + 0x8] CALL 0x00230506 LAB_001686d5: MOVSS XMM1,dword ptr [0x00295f5c] XORPS XMM0,XMM0 CALL 0x0020f0da MOV RDI,qword ptr [RBX + 0x30] XOR ESI,ESI CALL 0x001cc66c MOV RDI,RBX CALL 0x00168138 LAB_001686f8: LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00168713 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001268d0 LAB_00168713: ADD RSP,0x28 POP RBX POP R14 RET
/* SettingValue_InputString::layout() const */ void __thiscall SettingValue_InputString::layout(SettingValue_InputString *this) { char cVar1; char *pcVar2; allocator local_31; long *local_30 [2]; long local_20 [2]; pcVar2 = (char *)ConfigString::get(*(ConfigString **)(this + 0x98)); std::__cxx11::string::string<std::allocator<char>>((string *)local_30,pcVar2,&local_31); /* try { // try from 001686b3 to 001686f7 has its CatchHandler @ 0016871b */ cVar1 = ImGui::InputText(*(char **)(this + 0x78),(string *)local_30,(uint)(byte)this[0xa0] << 5, (_func_int_ImGuiInputTextCallbackData_ptr *)0x0,(void *)0x0); if (cVar1 != '\0') { ConfigString::set(*(ConfigString **)(this + 0x98),(char *)local_30[0]); } ImGui::SameLine(0.0,DAT_00295f5c); ImGui::TextUnformatted(*(char **)(this + 0x30),(char *)0x0); SettingValue::layout_tooltip((SettingValue *)this); if (local_30[0] != local_20) { operator_delete(local_30[0],local_20[0] + 1); } return; }
31,346
SettingValue_InputString::layout() const
untodesu[P]voxelius/game/client/settings.cc
void SettingValue_InputString::layout(void) const { ImGuiInputTextFlags flags; std::string current_value = value->get(); if(allow_whitespace) flags = ImGuiInputTextFlags_AllowTabInput; else flags = 0; if(ImGui::InputText(wid.c_str(), &current_value, flags)) { value->set(current_value.c_str()); } layout_label(); layout_tooltip(); }
O3
cpp
SettingValue_InputString::layout() const: pushq %r14 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx movq 0x98(%rdi), %rdi callq 0x12d72e leaq 0x8(%rsp), %r14 leaq 0x7(%rsp), %rdx movq %r14, %rdi movq %rax, %rsi callq 0x2f9b0 movzbl 0xa0(%rbx), %edx shll $0x5, %edx movq 0x78(%rbx), %rdi movq %r14, %rsi xorl %ecx, %ecx xorl %r8d, %r8d callq 0xcc008 testb %al, %al je 0x6909d movq 0x98(%rbx), %rdi movq 0x8(%rsp), %rsi callq 0x12d6fa movss 0x129ee7(%rip), %xmm1 # 0x192f8c xorps %xmm0, %xmm0 callq 0x10cf35 movq 0x30(%rbx), %rdi xorl %esi, %esi callq 0xcc66d movq %rbx, %rdi callq 0x68b00 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x690db movq 0x18(%rsp), %rsi incq %rsi callq 0x268e0 addq $0x28, %rsp popq %rbx popq %r14 retq movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x69101 movq 0x18(%rsp), %rsi incq %rsi callq 0x268e0 movq %rbx, %rdi callq 0x26ff0 nop
_ZNK24SettingValue_InputString6layoutEv: push r14 push rbx sub rsp, 28h mov rbx, rdi mov rdi, [rdi+98h]; this call _ZNK12ConfigString3getEv; ConfigString::get(void) lea r14, [rsp+38h+var_30] lea rdx, [rsp+38h+var_31] mov rdi, r14 mov rsi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) movzx edx, byte ptr [rbx+0A0h] shl edx, 5 mov rdi, [rbx+78h] mov rsi, r14 xor ecx, ecx xor r8d, r8d call _ZN5ImGui9InputTextEPKcPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiPFiP26ImGuiInputTextCallbackDataEPv; ImGui::InputText(char const*,std::string *,int,int (*)(ImGuiInputTextCallbackData *),void *) test al, al jz short loc_6909D mov rdi, [rbx+98h]; this mov rsi, [rsp+38h+var_30]; char * call _ZN12ConfigString3setEPKc; ConfigString::set(char const*) loc_6909D: movss xmm1, cs:flt_192F8C; float xorps xmm0, xmm0; float call _ZN5ImGui8SameLineEff; ImGui::SameLine(float,float) mov rdi, [rbx+30h]; this xor esi, esi; char * call _ZN5ImGui15TextUnformattedEPKcS1_; ImGui::TextUnformatted(char const*,char const*) mov rdi, rbx; this call _ZNK12SettingValue14layout_tooltipEv; SettingValue::layout_tooltip(void) lea rax, [rsp+38h+var_20] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_690DB mov rsi, [rsp+38h+var_20] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_690DB: add rsp, 28h pop rbx pop r14 retn mov rbx, rax lea rax, [rsp+arg_10] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_69101 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_69101: mov rdi, rbx call __Unwind_Resume
void SettingValue_InputString::layout(ConfigString **this) { long long v2; // rax ConfigString *v3; // rdi const char *v4; // rdx char *v5[2]; // [rsp+8h] [rbp-30h] BYREF long long v6; // [rsp+18h] [rbp-20h] BYREF v2 = ConfigString::get(this[19]); std::string::basic_string<std::allocator<char>>(v5, v2); v3 = this[15]; if ( (unsigned __int8)ImGui::InputText(v3, v5, 32 * (unsigned int)*((unsigned __int8 *)this + 160), 0LL, 0LL) ) { v3 = this[19]; ConfigString::set(v3, v5[0]); } ImGui::SameLine(v3, 0.0, -1.0); ImGui::TextUnformatted(this[6], 0LL, v4); SettingValue::layout_tooltip(this, 0LL); if ( (long long *)v5[0] != &v6 ) operator delete(v5[0], v6 + 1); }
layout: PUSH R14 PUSH RBX SUB RSP,0x28 MOV RBX,RDI MOV RDI,qword ptr [RDI + 0x98] CALL 0x0022d72e LEA R14,[RSP + 0x8] LEA RDX,[RSP + 0x7] MOV RDI,R14 MOV RSI,RAX CALL 0x0012f9b0 MOVZX EDX,byte ptr [RBX + 0xa0] SHL EDX,0x5 MOV RDI,qword ptr [RBX + 0x78] LAB_0016907b: MOV RSI,R14 XOR ECX,ECX XOR R8D,R8D CALL 0x001cc008 TEST AL,AL JZ 0x0016909d MOV RDI,qword ptr [RBX + 0x98] MOV RSI,qword ptr [RSP + 0x8] CALL 0x0022d6fa LAB_0016909d: MOVSS XMM1,dword ptr [0x00292f8c] XORPS XMM0,XMM0 CALL 0x0020cf35 MOV RDI,qword ptr [RBX + 0x30] XOR ESI,ESI CALL 0x001cc66d MOV RDI,RBX CALL 0x00168b00 LAB_001690c0: LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001690db MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001268e0 LAB_001690db: ADD RSP,0x28 POP RBX POP R14 RET
/* SettingValue_InputString::layout() const */ void __thiscall SettingValue_InputString::layout(SettingValue_InputString *this) { char cVar1; char *pcVar2; allocator local_31; long *local_30 [2]; long local_20 [2]; pcVar2 = (char *)ConfigString::get(*(ConfigString **)(this + 0x98)); std::__cxx11::string::string<std::allocator<char>>((string *)local_30,pcVar2,&local_31); /* try { // try from 0016907b to 001690bf has its CatchHandler @ 001690e3 */ cVar1 = ImGui::InputText(*(char **)(this + 0x78),(string *)local_30,(uint)(byte)this[0xa0] << 5, (_func_int_ImGuiInputTextCallbackData_ptr *)0x0,(void *)0x0); if (cVar1 != '\0') { ConfigString::set(*(ConfigString **)(this + 0x98),(char *)local_30[0]); } ImGui::SameLine(0.0,DAT_00292f8c); ImGui::TextUnformatted(*(char **)(this + 0x30),(char *)0x0); SettingValue::layout_tooltip((SettingValue *)this); if (local_30[0] != local_20) { operator_delete(local_30[0],local_20[0] + 1); } return; }
31,347
pvio_socket_fast_send
eloqsql/libmariadb/plugins/pvio/pvio_socket.c
int pvio_socket_fast_send(MARIADB_PVIO *pvio) { int r= 0; struct st_pvio_socket *csock= NULL; if (!pvio || !pvio->data) return 1; csock= (struct st_pvio_socket *)pvio->data; /* Setting IP_TOS is not recommended on Windows. See http://msdn.microsoft.com/en-us/library/windows/desktop/ms738586(v=vs.85).aspx */ #if !defined(_WIN32) && defined(IPTOS_THROUGHPUT) { int tos = IPTOS_THROUGHPUT; r= setsockopt(csock->socket, IPPROTO_IP, IP_TOS, (const void *)&tos, sizeof(tos)); } #endif /* !_WIN32 && IPTOS_THROUGHPUT */ if (!r) { int opt = 1; /* turn off nagle algorithm */ r= setsockopt(csock->socket, IPPROTO_TCP, TCP_NODELAY, #ifdef _WIN32 (const char *)&opt, (int)sizeof(opt)); #else (const void *)&opt, sizeof(opt)); #endif } return r; }
O3
c
pvio_socket_fast_send: movl $0x1, %eax testq %rdi, %rdi je 0x2fda2 pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq (%rdi), %rbx testq %rbx, %rbx je 0x2fd9c leaq -0x10(%rbp), %rcx movl $0x8, (%rcx) movl (%rbx), %edi xorl %esi, %esi movl $0x1, %edx movl $0x4, %r8d callq 0x137b0 testl %eax, %eax jne 0x2fd9c leaq -0xc(%rbp), %rcx movl $0x1, (%rcx) movl (%rbx), %edi movl $0x6, %esi movl $0x1, %edx movl $0x4, %r8d callq 0x137b0 addq $0x8, %rsp popq %rbx popq %rbp retq
pvio_socket_fast_send: mov eax, 1 test rdi, rdi jz short locret_2FDA2 push rbp mov rbp, rsp push rbx push rax mov rbx, [rdi] test rbx, rbx jz short loc_2FD9C lea rcx, [rbp-10h] mov dword ptr [rcx], 8 mov edi, [rbx] xor esi, esi mov edx, 1 mov r8d, 4 call _setsockopt test eax, eax jnz short loc_2FD9C lea rcx, [rbp-0Ch] mov dword ptr [rcx], 1 mov edi, [rbx] mov esi, 6 mov edx, 1 mov r8d, 4 call _setsockopt loc_2FD9C: add rsp, 8 pop rbx pop rbp locret_2FDA2: retn
long long pvio_socket_fast_send(unsigned int **a1) { long long result; // rax unsigned int *v2; // rbx _QWORD v3[3]; // [rsp-18h] [rbp-18h] BYREF result = 1LL; if ( a1 ) { v3[0] = 1LL; v2 = *a1; if ( *a1 ) { LODWORD(v3[0]) = 8; result = setsockopt(*v2, 0LL, 1LL, v3, 4LL); if ( !(_DWORD)result ) { HIDWORD(v3[0]) = 1; return setsockopt(*v2, 6LL, 1LL, (char *)v3 + 4, 4LL); } } } return result; }
pvio_socket_fast_send: MOV EAX,0x1 TEST RDI,RDI JZ 0x0012fda2 PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RBX,qword ptr [RDI] TEST RBX,RBX JZ 0x0012fd9c LEA RCX,[RBP + -0x10] MOV dword ptr [RCX],0x8 MOV EDI,dword ptr [RBX] XOR ESI,ESI MOV EDX,0x1 MOV R8D,0x4 CALL 0x001137b0 TEST EAX,EAX JNZ 0x0012fd9c LEA RCX,[RBP + -0xc] MOV dword ptr [RCX],0x1 MOV EDI,dword ptr [RBX] MOV ESI,0x6 MOV EDX,0x1 MOV R8D,0x4 CALL 0x001137b0 LAB_0012fd9c: ADD RSP,0x8 POP RBX POP RBP LAB_0012fda2: RET
void pvio_socket_fast_send(int8 *param_1) { int *piVar1; int iVar2; int8 local_18; if ((param_1 != (int8 *)0x0) && (piVar1 = (int *)*param_1, piVar1 != (int *)0x0)) { local_18 = 8; iVar2 = setsockopt(*piVar1,0,1,&local_18,4); if (iVar2 == 0) { local_18 = CONCAT44(1,(int4)local_18); setsockopt(*piVar1,6,1,(void *)((long)&local_18 + 4),4); } } return; }
31,348
mimi_residual_vector_quantizer::mimi_residual_vector_quantizer(ggml_easy::ctx&)
ngxson[P]ggml-easy/demo/kyutai-mimi.cpp
mimi_residual_vector_quantizer(ggml_easy::ctx & ctx) { semantic_inp_proj = ctx.get_weight("quantizer.semantic_rvq.input_proj.weight"); semantic_out_proj = ctx.get_weight("quantizer.semantic_rvq.output_proj.weight"); for (int i = 0; i < mimi_config.n_semantic_components; i++) { semantic_components.push_back({ .codebook_embed_sum = ctx.get_weight("quantizer.semantic_rvq.layers.%d.codebook.embed_sum", i), .codebook_cluster_usage = ctx.get_weight("quantizer.semantic_rvq.layers.%d.codebook.cluster_usage", i), }); } acoustic_inp_proj = ctx.get_weight("quantizer.acoustic_rvq.input_proj.weight"); acoustic_out_proj = ctx.get_weight("quantizer.acoustic_rvq.output_proj.weight"); for (int i = 0; i < mimi_config.n_acoustic_components; i++) { acoustic_components.push_back({ .codebook_embed_sum = ctx.get_weight("quantizer.acoustic_rvq.layers.%d.codebook.embed_sum", i), .codebook_cluster_usage = ctx.get_weight("quantizer.acoustic_rvq.layers.%d.codebook.cluster_usage", i), }); } }
O0
cpp
mimi_residual_vector_quantizer::mimi_residual_vector_quantizer(ggml_easy::ctx&): subq $0xd8, %rsp movq %rdi, 0xd0(%rsp) movq %rsi, 0xc8(%rsp) movq 0xd0(%rsp), %rdi movq %rdi, 0x78(%rsp) addq $0x8, %rdi movq %rdi, 0x70(%rsp) callq 0x1c530 movq 0x78(%rsp), %rdi addq $0x30, %rdi movq %rdi, 0x80(%rsp) callq 0x1c530 movq 0xc8(%rsp), %rdi leaq 0x13b5c(%rip), %rsi # 0x24783 xorl %eax, %eax callq 0x1b610 movq %rax, 0x88(%rsp) jmp 0x10c38 movq 0x78(%rsp), %rax movq 0x88(%rsp), %rcx movq %rcx, (%rax) movq 0xc8(%rsp), %rdi leaq 0x13b55(%rip), %rsi # 0x247ac xorl %eax, %eax callq 0x1b610 movq %rax, 0x68(%rsp) jmp 0x10c65 movq 0x78(%rsp), %rax movq 0x68(%rsp), %rcx movq %rcx, 0x20(%rax) movl $0x0, 0xb8(%rsp) movl 0xb8(%rsp), %eax cmpl 0x20909(%rip), %eax # 0x31594 jge 0x10d77 movq 0x78(%rsp), %rax addq $0x8, %rax movq %rax, 0x50(%rsp) leaq 0xa8(%rsp), %rax movq %rax, 0x58(%rsp) movq 0xc8(%rsp), %rdi movl 0xb8(%rsp), %edx leaq 0x13b14(%rip), %rsi # 0x247d6 xorl %eax, %eax callq 0x1b610 movq %rax, 0x60(%rsp) jmp 0x10cd0 movq 0x58(%rsp), %rax movq 0x60(%rsp), %rcx movq %rcx, (%rax) leaq 0xb0(%rsp), %rax movq %rax, 0x40(%rsp) movq 0xc8(%rsp), %rdi movl 0xb8(%rsp), %edx leaq 0x13b0a(%rip), %rsi # 0x2480a xorl %eax, %eax callq 0x1b610 movq %rax, 0x48(%rsp) jmp 0x10d0e movq 0x50(%rsp), %rdi movq 0x40(%rsp), %rax movq 0x48(%rsp), %rcx movq %rcx, (%rax) leaq 0xa8(%rsp), %rsi callq 0x1c540 jmp 0x10d2f jmp 0x10d31 movl 0xb8(%rsp), %eax addl $0x1, %eax movl %eax, 0xb8(%rsp) jmp 0x10c7e movq 0x80(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0xc0(%rsp) movl %eax, 0xbc(%rsp) callq 0x1c570 movq 0x70(%rsp), %rdi callq 0x1c570 jmp 0x10ea9 movq 0xc8(%rsp), %rdi leaq 0x13abc(%rip), %rsi # 0x24842 xorl %eax, %eax callq 0x1b610 movq %rax, 0x38(%rsp) jmp 0x10d94 movq 0x78(%rsp), %rax movq 0x38(%rsp), %rcx movq %rcx, 0x28(%rax) movq 0xc8(%rsp), %rdi leaq 0x13aba(%rip), %rsi # 0x2486b xorl %eax, %eax callq 0x1b610 movq %rax, 0x30(%rsp) jmp 0x10dbf movq 0x78(%rsp), %rax movq 0x30(%rsp), %rcx movq %rcx, 0x48(%rax) movl $0x0, 0xa4(%rsp) movl 0xa4(%rsp), %eax cmpl 0x207b3(%rip), %eax # 0x31598 jge 0x10ea1 movq 0x78(%rsp), %rax addq $0x30, %rax movq %rax, 0x18(%rsp) leaq 0x90(%rsp), %rax movq %rax, 0x20(%rsp) movq 0xc8(%rsp), %rdi movl 0xa4(%rsp), %edx leaq 0x13a79(%rip), %rsi # 0x24895 xorl %eax, %eax callq 0x1b610 movq %rax, 0x28(%rsp) jmp 0x10e2a movq 0x20(%rsp), %rax movq 0x28(%rsp), %rcx movq %rcx, (%rax) leaq 0x98(%rsp), %rax movq %rax, 0x8(%rsp) movq 0xc8(%rsp), %rdi movl 0xa4(%rsp), %edx leaq 0x13a6f(%rip), %rsi # 0x248c9 xorl %eax, %eax callq 0x1b610 movq %rax, 0x10(%rsp) jmp 0x10e68 movq 0x18(%rsp), %rdi movq 0x8(%rsp), %rax movq 0x10(%rsp), %rcx movq %rcx, (%rax) leaq 0x90(%rsp), %rsi callq 0x1c540 jmp 0x10e89 jmp 0x10e8b movl 0xa4(%rsp), %eax addl $0x1, %eax movl %eax, 0xa4(%rsp) jmp 0x10dd8 addq $0xd8, %rsp retq movq 0xc0(%rsp), %rdi callq 0xa930 nopw %cs:(%rax,%rax)
_ZN30mimi_residual_vector_quantizerC2ERN9ggml_easy3ctxE: sub rsp, 0D8h mov [rsp+0D8h+var_8], rdi mov [rsp+0D8h+var_10], rsi mov rdi, [rsp+0D8h+var_8] mov [rsp+0D8h+var_60], rdi add rdi, 8 mov [rsp+0D8h+var_68], rdi call _ZNSt6vectorIN30mimi_residual_vector_quantizer9componentESaIS1_EEC2Ev; std::vector<mimi_residual_vector_quantizer::component>::vector(void) mov rdi, [rsp+0D8h+var_60] add rdi, 30h ; '0' mov [rsp+0D8h+var_58], rdi call _ZNSt6vectorIN30mimi_residual_vector_quantizer9componentESaIS1_EEC2Ev; std::vector<mimi_residual_vector_quantizer::component>::vector(void) mov rdi, [rsp+0D8h+var_10]; this lea rsi, aQuantizerSeman; "quantizer.semantic_rvq.input_proj.weigh"... xor eax, eax call _ZN9ggml_easy3ctx10get_weightEPKcz; ggml_easy::ctx::get_weight(char const*,...) mov [rsp+0D8h+var_50], rax jmp short $+2 loc_10C38: mov rax, [rsp+0D8h+var_60] mov rcx, [rsp+0D8h+var_50] mov [rax], rcx mov rdi, [rsp+0D8h+var_10]; this lea rsi, aQuantizerSeman_0; "quantizer.semantic_rvq.output_proj.weig"... xor eax, eax call _ZN9ggml_easy3ctx10get_weightEPKcz; ggml_easy::ctx::get_weight(char const*,...) mov [rsp+0D8h+var_70], rax jmp short $+2 loc_10C65: mov rax, [rsp+0D8h+var_60] mov rcx, [rsp+0D8h+var_70] mov [rax+20h], rcx mov [rsp+0D8h+var_20], 0 loc_10C7E: mov eax, [rsp+0D8h+var_20] cmp eax, cs:dword_31594 jge loc_10D77 mov rax, [rsp+0D8h+var_60] add rax, 8 mov [rsp+0D8h+var_88], rax lea rax, [rsp+0D8h+var_30] mov [rsp+0D8h+var_80], rax mov rdi, [rsp+0D8h+var_10]; this mov edx, [rsp+0D8h+var_20] lea rsi, aQuantizerSeman_1; "quantizer.semantic_rvq.layers.%d.codebo"... xor eax, eax call _ZN9ggml_easy3ctx10get_weightEPKcz; ggml_easy::ctx::get_weight(char const*,...) mov [rsp+0D8h+var_78], rax jmp short $+2 loc_10CD0: mov rax, [rsp+0D8h+var_80] mov rcx, [rsp+0D8h+var_78] mov [rax], rcx lea rax, [rsp+0D8h+var_28] mov [rsp+0D8h+var_98], rax mov rdi, [rsp+0D8h+var_10]; this mov edx, [rsp+0D8h+var_20] lea rsi, aQuantizerSeman_2; "quantizer.semantic_rvq.layers.%d.codebo"... xor eax, eax call _ZN9ggml_easy3ctx10get_weightEPKcz; ggml_easy::ctx::get_weight(char const*,...) mov [rsp+0D8h+var_90], rax jmp short $+2 loc_10D0E: mov rdi, [rsp+0D8h+var_88] mov rax, [rsp+0D8h+var_98] mov rcx, [rsp+0D8h+var_90] mov [rax], rcx lea rsi, [rsp+0D8h+var_30] call _ZNSt6vectorIN30mimi_residual_vector_quantizer9componentESaIS1_EE9push_backEOS1_; std::vector<mimi_residual_vector_quantizer::component>::push_back(mimi_residual_vector_quantizer::component&&) jmp short $+2 loc_10D2F: jmp short $+2 loc_10D31: mov eax, [rsp+0D8h+var_20] add eax, 1 mov [rsp+0D8h+var_20], eax jmp loc_10C7E mov rdi, [rsp+arg_78] mov rcx, rax mov eax, edx mov [rsp+arg_B8], rcx mov [rsp+arg_B4], eax call _ZNSt6vectorIN30mimi_residual_vector_quantizer9componentESaIS1_EED2Ev; std::vector<mimi_residual_vector_quantizer::component>::~vector() mov rdi, [rsp+arg_68] call _ZNSt6vectorIN30mimi_residual_vector_quantizer9componentESaIS1_EED2Ev; std::vector<mimi_residual_vector_quantizer::component>::~vector() jmp loc_10EA9 loc_10D77: mov rdi, [rsp+0D8h+var_10]; this lea rsi, aQuantizerAcous; "quantizer.acoustic_rvq.input_proj.weigh"... xor eax, eax call _ZN9ggml_easy3ctx10get_weightEPKcz; ggml_easy::ctx::get_weight(char const*,...) mov [rsp+0D8h+var_A0], rax jmp short $+2 loc_10D94: mov rax, [rsp+0D8h+var_60] mov rcx, [rsp+0D8h+var_A0] mov [rax+28h], rcx mov rdi, [rsp+0D8h+var_10]; this lea rsi, aQuantizerAcous_0; "quantizer.acoustic_rvq.output_proj.weig"... xor eax, eax call _ZN9ggml_easy3ctx10get_weightEPKcz; ggml_easy::ctx::get_weight(char const*,...) mov [rsp+0D8h+var_A8], rax jmp short $+2 loc_10DBF: mov rax, [rsp+0D8h+var_60] mov rcx, [rsp+0D8h+var_A8] mov [rax+48h], rcx mov [rsp+0D8h+var_34], 0 loc_10DD8: mov eax, [rsp+0D8h+var_34] cmp eax, cs:dword_31598 jge loc_10EA1 mov rax, [rsp+0D8h+var_60] add rax, 30h ; '0' mov [rsp+0D8h+var_C0], rax lea rax, [rsp+0D8h+var_48] mov [rsp+0D8h+var_B8], rax mov rdi, [rsp+0D8h+var_10]; this mov edx, [rsp+0D8h+var_34] lea rsi, aQuantizerAcous_1; "quantizer.acoustic_rvq.layers.%d.codebo"... xor eax, eax call _ZN9ggml_easy3ctx10get_weightEPKcz; ggml_easy::ctx::get_weight(char const*,...) mov [rsp+0D8h+var_B0], rax jmp short $+2 loc_10E2A: mov rax, [rsp+0D8h+var_B8] mov rcx, [rsp+0D8h+var_B0] mov [rax], rcx lea rax, [rsp+0D8h+var_40] mov [rsp+0D8h+var_D0], rax mov rdi, [rsp+0D8h+var_10]; this mov edx, [rsp+0D8h+var_34] lea rsi, aQuantizerAcous_2; "quantizer.acoustic_rvq.layers.%d.codebo"... xor eax, eax call _ZN9ggml_easy3ctx10get_weightEPKcz; ggml_easy::ctx::get_weight(char const*,...) mov [rsp+0D8h+var_C8], rax jmp short $+2 loc_10E68: mov rdi, [rsp+0D8h+var_C0] mov rax, [rsp+0D8h+var_D0] mov rcx, [rsp+0D8h+var_C8] mov [rax], rcx lea rsi, [rsp+0D8h+var_48] call _ZNSt6vectorIN30mimi_residual_vector_quantizer9componentESaIS1_EE9push_backEOS1_; std::vector<mimi_residual_vector_quantizer::component>::push_back(mimi_residual_vector_quantizer::component&&) jmp short $+2 loc_10E89: jmp short $+2 loc_10E8B: mov eax, [rsp+0D8h+var_34] add eax, 1 mov [rsp+0D8h+var_34], eax jmp loc_10DD8 loc_10EA1: add rsp, 0D8h retn loc_10EA9: mov rdi, [rsp+arg_B8] call __Unwind_Resume
void mimi_residual_vector_quantizer::mimi_residual_vector_quantizer( mimi_residual_vector_quantizer *this, ggml_easy::ctx *a2) { _QWORD v2[2]; // [rsp+90h] [rbp-48h] BYREF int j; // [rsp+A4h] [rbp-34h] _QWORD v4[2]; // [rsp+A8h] [rbp-30h] BYREF int i; // [rsp+B8h] [rbp-20h] ggml_easy::ctx *v6; // [rsp+C8h] [rbp-10h] mimi_residual_vector_quantizer *v7; // [rsp+D0h] [rbp-8h] v7 = this; v6 = a2; std::vector<mimi_residual_vector_quantizer::component>::vector(); std::vector<mimi_residual_vector_quantizer::component>::vector(); *(_QWORD *)this = ggml_easy::ctx::get_weight(a2, "quantizer.semantic_rvq.input_proj.weight"); *((_QWORD *)this + 4) = ggml_easy::ctx::get_weight(v6, "quantizer.semantic_rvq.output_proj.weight"); for ( i = 0; i < dword_31594; ++i ) { v4[0] = ggml_easy::ctx::get_weight(v6, "quantizer.semantic_rvq.layers.%d.codebook.embed_sum", i); v4[1] = ggml_easy::ctx::get_weight(v6, "quantizer.semantic_rvq.layers.%d.codebook.cluster_usage", i); std::vector<mimi_residual_vector_quantizer::component>::push_back((char *)this + 8, v4); } *((_QWORD *)this + 5) = ggml_easy::ctx::get_weight(v6, "quantizer.acoustic_rvq.input_proj.weight"); *((_QWORD *)this + 9) = ggml_easy::ctx::get_weight(v6, "quantizer.acoustic_rvq.output_proj.weight"); for ( j = 0; j < dword_31598; ++j ) { v2[0] = ggml_easy::ctx::get_weight(v6, "quantizer.acoustic_rvq.layers.%d.codebook.embed_sum", j); v2[1] = ggml_easy::ctx::get_weight(v6, "quantizer.acoustic_rvq.layers.%d.codebook.cluster_usage", j); std::vector<mimi_residual_vector_quantizer::component>::push_back((char *)this + 48, v2); } }
mimi_residual_vector_quantizer: SUB RSP,0xd8 MOV qword ptr [RSP + 0xd0],RDI MOV qword ptr [RSP + 0xc8],RSI MOV RDI,qword ptr [RSP + 0xd0] MOV qword ptr [RSP + 0x78],RDI ADD RDI,0x8 MOV qword ptr [RSP + 0x70],RDI CALL 0x0011c530 MOV RDI,qword ptr [RSP + 0x78] ADD RDI,0x30 MOV qword ptr [RSP + 0x80],RDI CALL 0x0011c530 MOV RDI,qword ptr [RSP + 0xc8] LAB_00110c20: LEA RSI,[0x124783] XOR EAX,EAX CALL 0x0011b610 MOV qword ptr [RSP + 0x88],RAX JMP 0x00110c38 LAB_00110c38: MOV RAX,qword ptr [RSP + 0x78] MOV RCX,qword ptr [RSP + 0x88] MOV qword ptr [RAX],RCX MOV RDI,qword ptr [RSP + 0xc8] LEA RSI,[0x1247ac] XOR EAX,EAX CALL 0x0011b610 MOV qword ptr [RSP + 0x68],RAX JMP 0x00110c65 LAB_00110c65: MOV RAX,qword ptr [RSP + 0x78] MOV RCX,qword ptr [RSP + 0x68] MOV qword ptr [RAX + 0x20],RCX MOV dword ptr [RSP + 0xb8],0x0 LAB_00110c7e: MOV EAX,dword ptr [RSP + 0xb8] CMP EAX,dword ptr [0x00131594] JGE 0x00110d77 MOV RAX,qword ptr [RSP + 0x78] ADD RAX,0x8 MOV qword ptr [RSP + 0x50],RAX LEA RAX,[RSP + 0xa8] MOV qword ptr [RSP + 0x58],RAX MOV RDI,qword ptr [RSP + 0xc8] MOV EDX,dword ptr [RSP + 0xb8] LEA RSI,[0x1247d6] XOR EAX,EAX CALL 0x0011b610 MOV qword ptr [RSP + 0x60],RAX JMP 0x00110cd0 LAB_00110cd0: MOV RAX,qword ptr [RSP + 0x58] MOV RCX,qword ptr [RSP + 0x60] MOV qword ptr [RAX],RCX LEA RAX,[RSP + 0xb0] MOV qword ptr [RSP + 0x40],RAX MOV RDI,qword ptr [RSP + 0xc8] MOV EDX,dword ptr [RSP + 0xb8] LEA RSI,[0x12480a] XOR EAX,EAX CALL 0x0011b610 MOV qword ptr [RSP + 0x48],RAX JMP 0x00110d0e LAB_00110d0e: MOV RDI,qword ptr [RSP + 0x50] MOV RAX,qword ptr [RSP + 0x40] MOV RCX,qword ptr [RSP + 0x48] MOV qword ptr [RAX],RCX LEA RSI,[RSP + 0xa8] CALL 0x0011c540 JMP 0x00110d2f LAB_00110d2f: JMP 0x00110d31 LAB_00110d31: MOV EAX,dword ptr [RSP + 0xb8] ADD EAX,0x1 MOV dword ptr [RSP + 0xb8],EAX JMP 0x00110c7e LAB_00110d77: MOV RDI,qword ptr [RSP + 0xc8] LEA RSI,[0x124842] XOR EAX,EAX CALL 0x0011b610 MOV qword ptr [RSP + 0x38],RAX JMP 0x00110d94 LAB_00110d94: MOV RAX,qword ptr [RSP + 0x78] MOV RCX,qword ptr [RSP + 0x38] MOV qword ptr [RAX + 0x28],RCX MOV RDI,qword ptr [RSP + 0xc8] LEA RSI,[0x12486b] XOR EAX,EAX CALL 0x0011b610 MOV qword ptr [RSP + 0x30],RAX JMP 0x00110dbf LAB_00110dbf: MOV RAX,qword ptr [RSP + 0x78] MOV RCX,qword ptr [RSP + 0x30] MOV qword ptr [RAX + 0x48],RCX MOV dword ptr [RSP + 0xa4],0x0 LAB_00110dd8: MOV EAX,dword ptr [RSP + 0xa4] CMP EAX,dword ptr [0x00131598] JGE 0x00110ea1 MOV RAX,qword ptr [RSP + 0x78] ADD RAX,0x30 MOV qword ptr [RSP + 0x18],RAX LEA RAX,[RSP + 0x90] MOV qword ptr [RSP + 0x20],RAX MOV RDI,qword ptr [RSP + 0xc8] MOV EDX,dword ptr [RSP + 0xa4] LEA RSI,[0x124895] XOR EAX,EAX CALL 0x0011b610 MOV qword ptr [RSP + 0x28],RAX JMP 0x00110e2a LAB_00110e2a: MOV RAX,qword ptr [RSP + 0x20] MOV RCX,qword ptr [RSP + 0x28] MOV qword ptr [RAX],RCX LEA RAX,[RSP + 0x98] MOV qword ptr [RSP + 0x8],RAX MOV RDI,qword ptr [RSP + 0xc8] MOV EDX,dword ptr [RSP + 0xa4] LEA RSI,[0x1248c9] XOR EAX,EAX CALL 0x0011b610 MOV qword ptr [RSP + 0x10],RAX JMP 0x00110e68 LAB_00110e68: MOV RDI,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RSP + 0x8] MOV RCX,qword ptr [RSP + 0x10] MOV qword ptr [RAX],RCX LEA RSI,[RSP + 0x90] CALL 0x0011c540 LAB_00110e87: JMP 0x00110e89 LAB_00110e89: JMP 0x00110e8b LAB_00110e8b: MOV EAX,dword ptr [RSP + 0xa4] ADD EAX,0x1 MOV dword ptr [RSP + 0xa4],EAX JMP 0x00110dd8 LAB_00110ea1: ADD RSP,0xd8 RET
/* mimi_residual_vector_quantizer::mimi_residual_vector_quantizer(ggml_easy::ctx&) */ void __thiscall mimi_residual_vector_quantizer::mimi_residual_vector_quantizer (mimi_residual_vector_quantizer *this,ctx *param_1) { int8 uVar1; int8 local_48; int8 local_40; uint local_34; int8 local_30; int8 local_28; uint local_20; ctx *local_10; mimi_residual_vector_quantizer *local_8; local_10 = param_1; local_8 = this; std:: vector<mimi_residual_vector_quantizer::component,std::allocator<mimi_residual_vector_quantizer::component>> ::vector((vector<mimi_residual_vector_quantizer::component,std::allocator<mimi_residual_vector_quantizer::component>> *)(this + 8)); std:: vector<mimi_residual_vector_quantizer::component,std::allocator<mimi_residual_vector_quantizer::component>> ::vector((vector<mimi_residual_vector_quantizer::component,std::allocator<mimi_residual_vector_quantizer::component>> *)(this + 0x30)); /* try { // try from 00110c20 to 00110e86 has its CatchHandler @ 00110d47 */ uVar1 = ggml_easy::ctx::get_weight((char *)local_10,"quantizer.semantic_rvq.input_proj.weight"); *(int8 *)this = uVar1; uVar1 = ggml_easy::ctx::get_weight((char *)local_10,"quantizer.semantic_rvq.output_proj.weight"); *(int8 *)(this + 0x20) = uVar1; for (local_20 = 0; (int)local_20 < (int)mimi_config._92_4_; local_20 = local_20 + 1) { local_30 = ggml_easy::ctx::get_weight ((char *)local_10,"quantizer.semantic_rvq.layers.%d.codebook.embed_sum", (ulong)local_20); local_28 = ggml_easy::ctx::get_weight ((char *)local_10,"quantizer.semantic_rvq.layers.%d.codebook.cluster_usage" ,(ulong)local_20); std:: vector<mimi_residual_vector_quantizer::component,std::allocator<mimi_residual_vector_quantizer::component>> ::push_back((vector<mimi_residual_vector_quantizer::component,std::allocator<mimi_residual_vector_quantizer::component>> *)(this + 8),(component *)&local_30); } uVar1 = ggml_easy::ctx::get_weight((char *)local_10,"quantizer.acoustic_rvq.input_proj.weight"); *(int8 *)(this + 0x28) = uVar1; uVar1 = ggml_easy::ctx::get_weight((char *)local_10,"quantizer.acoustic_rvq.output_proj.weight"); *(int8 *)(this + 0x48) = uVar1; for (local_34 = 0; (int)local_34 < (int)mimi_config._96_4_; local_34 = local_34 + 1) { local_48 = ggml_easy::ctx::get_weight ((char *)local_10,"quantizer.acoustic_rvq.layers.%d.codebook.embed_sum", (ulong)local_34); local_40 = ggml_easy::ctx::get_weight ((char *)local_10,"quantizer.acoustic_rvq.layers.%d.codebook.cluster_usage" ,(ulong)local_34); std:: vector<mimi_residual_vector_quantizer::component,std::allocator<mimi_residual_vector_quantizer::component>> ::push_back((vector<mimi_residual_vector_quantizer::component,std::allocator<mimi_residual_vector_quantizer::component>> *)(this + 0x30),(component *)&local_48); } return; }
31,349
mimi_residual_vector_quantizer::mimi_residual_vector_quantizer(ggml_easy::ctx&)
ngxson[P]ggml-easy/demo/kyutai-mimi.cpp
mimi_residual_vector_quantizer(ggml_easy::ctx & ctx) { semantic_inp_proj = ctx.get_weight("quantizer.semantic_rvq.input_proj.weight"); semantic_out_proj = ctx.get_weight("quantizer.semantic_rvq.output_proj.weight"); for (int i = 0; i < mimi_config.n_semantic_components; i++) { semantic_components.push_back({ .codebook_embed_sum = ctx.get_weight("quantizer.semantic_rvq.layers.%d.codebook.embed_sum", i), .codebook_cluster_usage = ctx.get_weight("quantizer.semantic_rvq.layers.%d.codebook.cluster_usage", i), }); } acoustic_inp_proj = ctx.get_weight("quantizer.acoustic_rvq.input_proj.weight"); acoustic_out_proj = ctx.get_weight("quantizer.acoustic_rvq.output_proj.weight"); for (int i = 0; i < mimi_config.n_acoustic_components; i++) { acoustic_components.push_back({ .codebook_embed_sum = ctx.get_weight("quantizer.acoustic_rvq.layers.%d.codebook.embed_sum", i), .codebook_cluster_usage = ctx.get_weight("quantizer.acoustic_rvq.layers.%d.codebook.cluster_usage", i), }); } }
O3
cpp
mimi_residual_vector_quantizer::mimi_residual_vector_quantizer(ggml_easy::ctx&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rsi, %r12 movq %rdi, %rbx leaq 0x8(%rdi), %rax movq %rax, 0x20(%rsp) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%rdi) xorl %eax, %eax movq %rax, 0x18(%rdi) leaq 0x30(%rdi), %rcx movq %rcx, 0x18(%rsp) movups %xmm0, 0x30(%rdi) movq %rax, 0x40(%rdi) leaq 0x5957(%rip), %rsi # 0xd799 movq %r12, %rdi xorl %eax, %eax callq 0xa6ea movq %rax, (%rbx) leaq 0x596c(%rip), %rsi # 0xd7c2 movq %r12, %rdi xorl %eax, %eax callq 0xa6ea movq %rax, 0x20(%rbx) cmpl $0x0, 0xa661(%rip) # 0x124cc jle 0x7edf leaq 0x5978(%rip), %r13 # 0xd7ec leaq 0x59a5(%rip), %rbp # 0xd820 leaq 0x8(%rsp), %r14 xorl %r15d, %r15d movq %r12, %rdi movq %r13, %rsi movl %r15d, %edx xorl %eax, %eax callq 0xa6ea movq %rax, 0x8(%rsp) movq %r12, %rdi movq %rbp, %rsi movl %r15d, %edx xorl %eax, %eax callq 0xa6ea movq %rax, 0x10(%rsp) movq 0x10(%rbx), %rsi cmpq 0x18(%rbx), %rsi je 0x7ec6 movups 0x8(%rsp), %xmm0 movups %xmm0, (%rsi) addq $0x10, 0x10(%rbx) jmp 0x7ed3 movq 0x20(%rsp), %rdi movq %r14, %rdx callq 0xaa82 incl %r15d cmpl 0xa5ef(%rip), %r15d # 0x124cc jl 0x7e83 leaq 0x5972(%rip), %rsi # 0xd858 movq %r12, %rdi xorl %eax, %eax callq 0xa6ea movq %rax, 0x28(%rbx) leaq 0x5986(%rip), %rsi # 0xd881 movq %r12, %rdi xorl %eax, %eax callq 0xa6ea movq %rax, 0x48(%rbx) cmpl $0x0, 0xa5c0(%rip) # 0x124d0 jle 0x7f84 leaq 0x5992(%rip), %r13 # 0xd8ab leaq 0x59bf(%rip), %rbp # 0xd8df leaq 0x8(%rsp), %r14 xorl %r15d, %r15d movq %r12, %rdi movq %r13, %rsi movl %r15d, %edx xorl %eax, %eax callq 0xa6ea movq %rax, 0x8(%rsp) movq %r12, %rdi movq %rbp, %rsi movl %r15d, %edx xorl %eax, %eax callq 0xa6ea movq %rax, 0x10(%rsp) movq 0x38(%rbx), %rsi cmpq 0x40(%rbx), %rsi je 0x7f6b movups 0x8(%rsp), %xmm0 movups %xmm0, (%rsi) addq $0x10, 0x38(%rbx) jmp 0x7f78 movq 0x18(%rsp), %rdi movq %r14, %rdx callq 0xaa82 incl %r15d cmpl 0xa54e(%rip), %r15d # 0x124d0 jl 0x7f28 addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x7f97 jmp 0x7f97 movq %rax, %r14 movq 0x18(%rsp), %rax movq (%rax), %rdi testq %rdi, %rdi je 0x7fb3 movq 0x40(%rbx), %rsi subq %rdi, %rsi callq 0x4450 movq 0x20(%rsp), %rax movq (%rax), %rdi testq %rdi, %rdi je 0x7fcc movq 0x18(%rbx), %rsi subq %rdi, %rsi callq 0x4450 movq %r14, %rdi callq 0x47f0
_ZN30mimi_residual_vector_quantizerC2ERN9ggml_easy3ctxE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov r12, rsi mov rbx, rdi lea rax, [rdi+8] mov [rsp+58h+var_38], rax xorps xmm0, xmm0 movups xmmword ptr [rdi+8], xmm0 xor eax, eax mov [rdi+18h], rax lea rcx, [rdi+30h] mov [rsp+58h+var_40], rcx movups xmmword ptr [rdi+30h], xmm0 mov [rdi+40h], rax lea rsi, aQuantizerSeman; "quantizer.semantic_rvq.input_proj.weigh"... mov rdi, r12; this xor eax, eax call _ZN9ggml_easy3ctx10get_weightEPKcz; ggml_easy::ctx::get_weight(char const*,...) mov [rbx], rax lea rsi, aQuantizerSeman_0; "quantizer.semantic_rvq.output_proj.weig"... mov rdi, r12; this xor eax, eax call _ZN9ggml_easy3ctx10get_weightEPKcz; ggml_easy::ctx::get_weight(char const*,...) mov [rbx+20h], rax cmp cs:dword_124CC, 0 jle short loc_7EDF lea r13, aQuantizerSeman_1; "quantizer.semantic_rvq.layers.%d.codebo"... lea rbp, aQuantizerSeman_2; "quantizer.semantic_rvq.layers.%d.codebo"... lea r14, [rsp+58h+var_50] xor r15d, r15d loc_7E83: mov rdi, r12; this mov rsi, r13; char * mov edx, r15d xor eax, eax call _ZN9ggml_easy3ctx10get_weightEPKcz; ggml_easy::ctx::get_weight(char const*,...) mov qword ptr [rsp+58h+var_50], rax mov rdi, r12; this mov rsi, rbp; char * mov edx, r15d xor eax, eax call _ZN9ggml_easy3ctx10get_weightEPKcz; ggml_easy::ctx::get_weight(char const*,...) mov qword ptr [rsp+58h+var_50+8], rax mov rsi, [rbx+10h] cmp rsi, [rbx+18h] jz short loc_7EC6 movups xmm0, [rsp+58h+var_50] movups xmmword ptr [rsi], xmm0 add qword ptr [rbx+10h], 10h jmp short loc_7ED3 loc_7EC6: mov rdi, [rsp+58h+var_38] mov rdx, r14 call _ZNSt6vectorIN30mimi_residual_vector_quantizer9componentESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_; std::vector<mimi_residual_vector_quantizer::component>::_M_realloc_insert<mimi_residual_vector_quantizer::component>(__gnu_cxx::__normal_iterator<mimi_residual_vector_quantizer::component*,std::vector<mimi_residual_vector_quantizer::component>>,mimi_residual_vector_quantizer::component &&) loc_7ED3: inc r15d cmp r15d, cs:dword_124CC jl short loc_7E83 loc_7EDF: lea rsi, aQuantizerAcous; "quantizer.acoustic_rvq.input_proj.weigh"... mov rdi, r12; this xor eax, eax call _ZN9ggml_easy3ctx10get_weightEPKcz; ggml_easy::ctx::get_weight(char const*,...) mov [rbx+28h], rax lea rsi, aQuantizerAcous_0; "quantizer.acoustic_rvq.output_proj.weig"... mov rdi, r12; this xor eax, eax call _ZN9ggml_easy3ctx10get_weightEPKcz; ggml_easy::ctx::get_weight(char const*,...) mov [rbx+48h], rax cmp cs:dword_124D0, 0 jle short loc_7F84 lea r13, aQuantizerAcous_1; "quantizer.acoustic_rvq.layers.%d.codebo"... lea rbp, aQuantizerAcous_2; "quantizer.acoustic_rvq.layers.%d.codebo"... lea r14, [rsp+58h+var_50] xor r15d, r15d loc_7F28: mov rdi, r12; this mov rsi, r13; char * mov edx, r15d xor eax, eax call _ZN9ggml_easy3ctx10get_weightEPKcz; ggml_easy::ctx::get_weight(char const*,...) mov qword ptr [rsp+58h+var_50], rax mov rdi, r12; this mov rsi, rbp; char * mov edx, r15d xor eax, eax call _ZN9ggml_easy3ctx10get_weightEPKcz; ggml_easy::ctx::get_weight(char const*,...) mov qword ptr [rsp+58h+var_50+8], rax mov rsi, [rbx+38h] cmp rsi, [rbx+40h] jz short loc_7F6B movups xmm0, [rsp+58h+var_50] movups xmmword ptr [rsi], xmm0 add qword ptr [rbx+38h], 10h jmp short loc_7F78 loc_7F6B: mov rdi, [rsp+58h+var_40] mov rdx, r14 call _ZNSt6vectorIN30mimi_residual_vector_quantizer9componentESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_; std::vector<mimi_residual_vector_quantizer::component>::_M_realloc_insert<mimi_residual_vector_quantizer::component>(__gnu_cxx::__normal_iterator<mimi_residual_vector_quantizer::component*,std::vector<mimi_residual_vector_quantizer::component>>,mimi_residual_vector_quantizer::component &&) loc_7F78: inc r15d cmp r15d, cs:dword_124D0 jl short loc_7F28 loc_7F84: add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_7F97 jmp short $+2 loc_7F97: mov r14, rax mov rax, [rsp+arg_10] mov rdi, [rax]; void * test rdi, rdi jz short loc_7FB3 mov rsi, [rbx+40h] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_7FB3: mov rax, [rsp+arg_18] mov rdi, [rax]; void * test rdi, rdi jz short loc_7FCC mov rsi, [rbx+18h] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_7FCC: mov rdi, r14 call __Unwind_Resume
void mimi_residual_vector_quantizer::mimi_residual_vector_quantizer( mimi_residual_vector_quantizer *this, ggml_easy::ctx *a2) { int v3; // r15d _OWORD *v4; // rsi int v5; // r15d _OWORD *v6; // rsi __int128 v7; // [rsp+8h] [rbp-50h] BYREF char *v8; // [rsp+18h] [rbp-40h] char *v9; // [rsp+20h] [rbp-38h] v9 = (char *)this + 8; *(_OWORD *)((char *)this + 8) = 0LL; *((_QWORD *)this + 3) = 0LL; v8 = (char *)this + 48; *((_OWORD *)this + 3) = 0LL; *((_QWORD *)this + 8) = 0LL; *(_QWORD *)this = ggml_easy::ctx::get_weight(a2, "quantizer.semantic_rvq.input_proj.weight"); *((_QWORD *)this + 4) = ggml_easy::ctx::get_weight(a2, "quantizer.semantic_rvq.output_proj.weight"); if ( dword_124CC > 0 ) { v3 = 0; do { *(_QWORD *)&v7 = ggml_easy::ctx::get_weight(a2, "quantizer.semantic_rvq.layers.%d.codebook.embed_sum", v3); *((_QWORD *)&v7 + 1) = ggml_easy::ctx::get_weight( a2, "quantizer.semantic_rvq.layers.%d.codebook.cluster_usage", v3); v4 = (_OWORD *)*((_QWORD *)this + 2); if ( v4 == *((_OWORD **)this + 3) ) { std::vector<mimi_residual_vector_quantizer::component>::_M_realloc_insert<mimi_residual_vector_quantizer::component>( v9, v4, &v7); } else { *v4 = v7; *((_QWORD *)this + 2) += 16LL; } ++v3; } while ( v3 < dword_124CC ); } *((_QWORD *)this + 5) = ggml_easy::ctx::get_weight(a2, "quantizer.acoustic_rvq.input_proj.weight"); *((_QWORD *)this + 9) = ggml_easy::ctx::get_weight(a2, "quantizer.acoustic_rvq.output_proj.weight"); if ( dword_124D0 > 0 ) { v5 = 0; do { *(_QWORD *)&v7 = ggml_easy::ctx::get_weight(a2, "quantizer.acoustic_rvq.layers.%d.codebook.embed_sum", v5); *((_QWORD *)&v7 + 1) = ggml_easy::ctx::get_weight( a2, "quantizer.acoustic_rvq.layers.%d.codebook.cluster_usage", v5); v6 = (_OWORD *)*((_QWORD *)this + 7); if ( v6 == *((_OWORD **)this + 8) ) { std::vector<mimi_residual_vector_quantizer::component>::_M_realloc_insert<mimi_residual_vector_quantizer::component>( v8, v6, &v7); } else { *v6 = v7; *((_QWORD *)this + 7) += 16LL; } ++v5; } while ( v5 < dword_124D0 ); } }
mimi_residual_vector_quantizer: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV R12,RSI MOV RBX,RDI LEA RAX,[RDI + 0x8] MOV qword ptr [RSP + 0x20],RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI + 0x8],XMM0 XOR EAX,EAX MOV qword ptr [RDI + 0x18],RAX LEA RCX,[RDI + 0x30] MOV qword ptr [RSP + 0x18],RCX MOVUPS xmmword ptr [RDI + 0x30],XMM0 MOV qword ptr [RDI + 0x40],RAX LAB_00107e3b: LEA RSI,[0x10d799] MOV RDI,R12 XOR EAX,EAX CALL 0x0010a6ea MOV qword ptr [RBX],RAX LEA RSI,[0x10d7c2] MOV RDI,R12 XOR EAX,EAX CALL 0x0010a6ea MOV qword ptr [RBX + 0x20],RAX CMP dword ptr [0x001124cc],0x0 JLE 0x00107edf LEA R13,[0x10d7ec] LEA RBP,[0x10d820] LEA R14,[RSP + 0x8] XOR R15D,R15D LAB_00107e83: MOV RDI,R12 MOV RSI,R13 MOV EDX,R15D XOR EAX,EAX CALL 0x0010a6ea MOV qword ptr [RSP + 0x8],RAX MOV RDI,R12 MOV RSI,RBP MOV EDX,R15D XOR EAX,EAX CALL 0x0010a6ea MOV qword ptr [RSP + 0x10],RAX MOV RSI,qword ptr [RBX + 0x10] CMP RSI,qword ptr [RBX + 0x18] JZ 0x00107ec6 MOVUPS XMM0,xmmword ptr [RSP + 0x8] MOVUPS xmmword ptr [RSI],XMM0 ADD qword ptr [RBX + 0x10],0x10 JMP 0x00107ed3 LAB_00107ec6: MOV RDI,qword ptr [RSP + 0x20] MOV RDX,R14 CALL 0x0010aa82 LAB_00107ed3: INC R15D CMP R15D,dword ptr [0x001124cc] JL 0x00107e83 LAB_00107edf: LEA RSI,[0x10d858] MOV RDI,R12 XOR EAX,EAX CALL 0x0010a6ea MOV qword ptr [RBX + 0x28],RAX LEA RSI,[0x10d881] MOV RDI,R12 XOR EAX,EAX CALL 0x0010a6ea MOV qword ptr [RBX + 0x48],RAX CMP dword ptr [0x001124d0],0x0 JLE 0x00107f84 LEA R13,[0x10d8ab] LEA RBP,[0x10d8df] LEA R14,[RSP + 0x8] XOR R15D,R15D LAB_00107f28: MOV RDI,R12 MOV RSI,R13 MOV EDX,R15D XOR EAX,EAX CALL 0x0010a6ea MOV qword ptr [RSP + 0x8],RAX MOV RDI,R12 MOV RSI,RBP MOV EDX,R15D XOR EAX,EAX CALL 0x0010a6ea MOV qword ptr [RSP + 0x10],RAX MOV RSI,qword ptr [RBX + 0x38] CMP RSI,qword ptr [RBX + 0x40] JZ 0x00107f6b MOVUPS XMM0,xmmword ptr [RSP + 0x8] MOVUPS xmmword ptr [RSI],XMM0 ADD qword ptr [RBX + 0x38],0x10 JMP 0x00107f78 LAB_00107f6b: MOV RDI,qword ptr [RSP + 0x18] MOV RDX,R14 CALL 0x0010aa82 LAB_00107f78: INC R15D CMP R15D,dword ptr [0x001124d0] JL 0x00107f28 LAB_00107f84: ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* mimi_residual_vector_quantizer::mimi_residual_vector_quantizer(ggml_easy::ctx&) */ void __thiscall mimi_residual_vector_quantizer::mimi_residual_vector_quantizer (mimi_residual_vector_quantizer *this,ctx *param_1) { int8 *puVar1; int8 uVar2; uint uVar3; ulong uVar4; int8 local_50; int8 uStack_48; mimi_residual_vector_quantizer *local_40; mimi_residual_vector_quantizer *local_38; local_38 = this + 8; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; local_40 = this + 0x30; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x40) = 0; /* try { // try from 00107e3b to 00107e5f has its CatchHandler @ 00107f93 */ uVar2 = ggml_easy::ctx::get_weight((char *)param_1,"quantizer.semantic_rvq.input_proj.weight"); *(int8 *)this = uVar2; uVar2 = ggml_easy::ctx::get_weight((char *)param_1,"quantizer.semantic_rvq.output_proj.weight"); *(int8 *)(this + 0x20) = uVar2; if (0 < DAT_001124cc) { uVar4 = 0; do { /* try { // try from 00107e83 to 00107ed2 has its CatchHandler @ 00107f97 */ local_50 = ggml_easy::ctx::get_weight ((char *)param_1,"quantizer.semantic_rvq.layers.%d.codebook.embed_sum", uVar4); uStack_48 = ggml_easy::ctx::get_weight ((char *)param_1, "quantizer.semantic_rvq.layers.%d.codebook.cluster_usage",uVar4); puVar1 = *(int8 **)(this + 0x10); if (puVar1 == *(int8 **)(this + 0x18)) { std:: vector<mimi_residual_vector_quantizer::component,std::allocator<mimi_residual_vector_quantizer::component>> ::_M_realloc_insert<mimi_residual_vector_quantizer::component> ((vector<mimi_residual_vector_quantizer::component,std::allocator<mimi_residual_vector_quantizer::component>> *)local_38,puVar1,&local_50); } else { *puVar1 = local_50; puVar1[1] = uStack_48; *(long *)(this + 0x10) = *(long *)(this + 0x10) + 0x10; } uVar3 = (int)uVar4 + 1; uVar4 = (ulong)uVar3; } while ((int)uVar3 < DAT_001124cc); } /* try { // try from 00107edf to 00107f04 has its CatchHandler @ 00107f93 */ uVar2 = ggml_easy::ctx::get_weight((char *)param_1,"quantizer.acoustic_rvq.input_proj.weight"); *(int8 *)(this + 0x28) = uVar2; uVar2 = ggml_easy::ctx::get_weight((char *)param_1,"quantizer.acoustic_rvq.output_proj.weight"); *(int8 *)(this + 0x48) = uVar2; if (0 < DAT_001124d0) { uVar4 = 0; do { /* try { // try from 00107f28 to 00107f77 has its CatchHandler @ 00107f95 */ local_50 = ggml_easy::ctx::get_weight ((char *)param_1,"quantizer.acoustic_rvq.layers.%d.codebook.embed_sum", uVar4); uStack_48 = ggml_easy::ctx::get_weight ((char *)param_1, "quantizer.acoustic_rvq.layers.%d.codebook.cluster_usage",uVar4); puVar1 = *(int8 **)(this + 0x38); if (puVar1 == *(int8 **)(this + 0x40)) { std:: vector<mimi_residual_vector_quantizer::component,std::allocator<mimi_residual_vector_quantizer::component>> ::_M_realloc_insert<mimi_residual_vector_quantizer::component> ((vector<mimi_residual_vector_quantizer::component,std::allocator<mimi_residual_vector_quantizer::component>> *)local_40,puVar1,&local_50); } else { *puVar1 = local_50; puVar1[1] = uStack_48; *(long *)(this + 0x38) = *(long *)(this + 0x38) + 0x10; } uVar3 = (int)uVar4 + 1; uVar4 = (ulong)uVar3; } while ((int)uVar3 < DAT_001124d0); } return; }
31,350
pvio_socket_change_timeout
eloqsql/libmariadb/plugins/pvio/pvio_socket.c
my_bool pvio_socket_change_timeout(MARIADB_PVIO *pvio, enum enum_pvio_timeout type, int timeout) { struct timeval tm; int rc= 0; struct st_pvio_socket *csock= NULL; if (!pvio) return 1; if (!(csock= (struct st_pvio_socket *)pvio->data)) return 1; tm.tv_sec= timeout / 1000; tm.tv_usec= (timeout % 1000) * 1000; switch(type) { case PVIO_WRITE_TIMEOUT: #ifndef _WIN32 rc= setsockopt(csock->socket, SOL_SOCKET, SO_SNDTIMEO, (const char *)&tm, sizeof(tm)); #else rc= setsockopt(csock->socket, SOL_SOCKET, SO_SNDTIMEO, (const char *)&timeout, sizeof(int)); #endif break; case PVIO_READ_TIMEOUT: #ifndef _WIN32 rc= setsockopt(csock->socket, SOL_SOCKET, SO_RCVTIMEO, (const char *)&tm, sizeof(tm)); #else rc= setsockopt(csock->socket, SOL_SOCKET, SO_RCVTIMEO, (const char *)&timeout, sizeof(int)); #endif break; default: break; } return rc; }
O3
c
pvio_socket_change_timeout: movb $0x1, %al testq %rdi, %rdi je 0x3236a movq (%rdi), %rcx testq %rcx, %rcx je 0x3236a pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movslq %edx, %rax imulq $0x10624dd3, %rax, %rdx # imm = 0x10624DD3 movq %rdx, %rdi shrq $0x3f, %rdi sarq $0x26, %rdx addl %edi, %edx movslq %edx, %rdx movq %rdx, -0x10(%rbp) imull $0x3e8, %edx, %edx # imm = 0x3E8 subl %edx, %eax imull $0x3e8, %eax, %eax # imm = 0x3E8 cltq movq %rax, -0x8(%rbp) cmpl $0x2, %esi je 0x32346 cmpl $0x1, %esi jne 0x32363 movl $0x14, %edx jmp 0x3234b movl $0x15, %edx movl (%rcx), %edi leaq -0x10(%rbp), %rcx movl $0x1, %esi movl $0x10, %r8d callq 0x137c0 jmp 0x32365 xorl %eax, %eax addq $0x10, %rsp popq %rbp retq
pvio_socket_change_timeout: mov al, 1 test rdi, rdi jz short locret_3236A mov rcx, [rdi] test rcx, rcx jz short locret_3236A push rbp mov rbp, rsp sub rsp, 10h movsxd rax, edx imul rdx, rax, 10624DD3h mov rdi, rdx shr rdi, 3Fh sar rdx, 26h add edx, edi movsxd rdx, edx mov [rbp-10h], rdx imul edx, 3E8h sub eax, edx imul eax, 3E8h cdqe mov [rbp-8], rax cmp esi, 2 jz short loc_32346 cmp esi, 1 jnz short loc_32363 mov edx, 14h jmp short loc_3234B loc_32346: mov edx, 15h loc_3234B: mov edi, [rcx] lea rcx, [rbp-10h] mov esi, 1 mov r8d, 10h call _setsockopt jmp short loc_32365 loc_32363: xor eax, eax loc_32365: add rsp, 10h pop rbp locret_3236A: retn
char pvio_socket_change_timeout(unsigned int **a1, int a2, int a3) { char result; // al unsigned int *v4; // rcx long long v5; // rdx _QWORD v6[3]; // [rsp-18h] [rbp-18h] BYREF result = 1; if ( a1 ) { v4 = *a1; if ( *a1 ) { v6[0] = a3 / 1000; v6[1] = 1000 * (a3 % 1000); if ( a2 == 2 ) { v5 = 21LL; return setsockopt(*v4, 1LL, v5, v6, 16LL); } if ( a2 == 1 ) { v5 = 20LL; return setsockopt(*v4, 1LL, v5, v6, 16LL); } return 0; } } return result; }
pvio_socket_change_timeout: MOV AL,0x1 TEST RDI,RDI JZ 0x0013236a MOV RCX,qword ptr [RDI] TEST RCX,RCX JZ 0x0013236a PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOVSXD RAX,EDX IMUL RDX,RAX,0x10624dd3 MOV RDI,RDX SHR RDI,0x3f SAR RDX,0x26 ADD EDX,EDI MOVSXD RDX,EDX MOV qword ptr [RBP + -0x10],RDX IMUL EDX,EDX,0x3e8 SUB EAX,EDX IMUL EAX,EAX,0x3e8 CDQE MOV qword ptr [RBP + -0x8],RAX CMP ESI,0x2 JZ 0x00132346 CMP ESI,0x1 JNZ 0x00132363 MOV EDX,0x14 JMP 0x0013234b LAB_00132346: MOV EDX,0x15 LAB_0013234b: MOV EDI,dword ptr [RCX] LEA RCX,[RBP + -0x10] MOV ESI,0x1 MOV R8D,0x10 CALL 0x001137c0 JMP 0x00132365 LAB_00132363: XOR EAX,EAX LAB_00132365: ADD RSP,0x10 POP RBP LAB_0013236a: RET
int pvio_socket_change_timeout(int8 *param_1,int param_2,int param_3) { int iVar1; long local_18; long local_10; iVar1 = 1; if ((param_1 != (int8 *)0x0) && ((int *)*param_1 != (int *)0x0)) { local_18 = (long)(param_3 / 1000); local_10 = (long)((param_3 % 1000) * 1000); if (param_2 == 2) { iVar1 = 0x15; } else { if (param_2 != 1) { return 0; } iVar1 = 0x14; } iVar1 = setsockopt(*(int *)*param_1,1,iVar1,&local_18,0x10); } return iVar1; }
31,351
maria_ft_simple_get_word
eloqsql/storage/maria/ma_ft_parser.c
uchar maria_ft_simple_get_word(CHARSET_INFO *cs, uchar **start, const uchar *end, FT_WORD *word, my_bool skip_stopwords) { uchar *doc= *start; uint mwc, length; int ctype, mbl; DBUG_ENTER("maria_ft_simple_get_word"); do { for (;; doc+= (mbl > 0 ? mbl : (mbl < 0 ? -mbl : 1))) { if (doc >= end) DBUG_RETURN(0); mbl= my_ci_ctype(cs, &ctype, doc, end); if (true_word_char(ctype, *doc)) break; } mwc= length= 0; for (word->pos= doc; doc < end; length++, doc+= (mbl > 0 ? mbl : (mbl < 0 ? -mbl : 1))) { mbl= my_ci_ctype(cs, &ctype, doc, end); if (true_word_char(ctype, *doc)) mwc= 0; else if (!misc_word_char(*doc) || mwc) break; else mwc++; } word->len= (uint)(doc-word->pos) - mwc; if (skip_stopwords == FALSE || (length >= ft_min_word_len && length < ft_max_word_len && !is_stopword((char *) word->pos, word->len))) { *start= doc; DBUG_RETURN(1); } } while (doc < end); DBUG_RETURN(0); }
O0
c
maria_ft_simple_get_word: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movb %r8b, %al movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movb %al, -0x29(%rbp) movq -0x18(%rbp), %rax movq (%rax), %rax movq %rax, -0x38(%rbp) jmp 0x74c2b movq -0x38(%rbp), %rax cmpq -0x20(%rbp), %rax jb 0x74c40 jmp 0x74c37 movb $0x0, -0x1(%rbp) jmp 0x74e01 movq -0x10(%rbp), %rax movq 0xb8(%rax), %rax movq 0x38(%rax), %rax movq -0x10(%rbp), %rdi movq -0x38(%rbp), %rdx movq -0x20(%rbp), %rcx leaq -0x44(%rbp), %rsi callq *%rax movl %eax, -0x48(%rbp) movl -0x44(%rbp), %eax andl $0x7, %eax cmpl $0x0, %eax jne 0x74c7b movq -0x38(%rbp), %rax movzbl (%rax), %eax cmpl $0x5f, %eax jne 0x74c7d jmp 0x74cc3 jmp 0x74c7f cmpl $0x0, -0x48(%rbp) jle 0x74c8d movl -0x48(%rbp), %eax movl %eax, -0x4c(%rbp) jmp 0x74cad cmpl $0x0, -0x48(%rbp) jge 0x74c9d xorl %eax, %eax subl -0x48(%rbp), %eax movl %eax, -0x50(%rbp) jmp 0x74ca7 movl $0x1, %eax movl %eax, -0x50(%rbp) jmp 0x74ca7 movl -0x50(%rbp), %eax movl %eax, -0x4c(%rbp) movl -0x4c(%rbp), %ecx movq -0x38(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x38(%rbp) jmp 0x74c2b movl $0x0, -0x40(%rbp) movl $0x0, -0x3c(%rbp) movq -0x38(%rbp), %rcx movq -0x28(%rbp), %rax movq %rcx, (%rax) movq -0x38(%rbp), %rax cmpq -0x20(%rbp), %rax jae 0x74d7f movq -0x10(%rbp), %rax movq 0xb8(%rax), %rax movq 0x38(%rax), %rax movq -0x10(%rbp), %rdi movq -0x38(%rbp), %rdx movq -0x20(%rbp), %rcx leaq -0x44(%rbp), %rsi callq *%rax movl %eax, -0x48(%rbp) movl -0x44(%rbp), %eax andl $0x7, %eax cmpl $0x0, %eax jne 0x74d25 movq -0x38(%rbp), %rax movzbl (%rax), %eax cmpl $0x5f, %eax jne 0x74d2e movl $0x0, -0x3c(%rbp) jmp 0x74d30 jmp 0x74d7f jmp 0x74d32 movl -0x40(%rbp), %eax addl $0x1, %eax movl %eax, -0x40(%rbp) cmpl $0x0, -0x48(%rbp) jle 0x74d49 movl -0x48(%rbp), %eax movl %eax, -0x54(%rbp) jmp 0x74d69 cmpl $0x0, -0x48(%rbp) jge 0x74d59 xorl %eax, %eax subl -0x48(%rbp), %eax movl %eax, -0x58(%rbp) jmp 0x74d63 movl $0x1, %eax movl %eax, -0x58(%rbp) jmp 0x74d63 movl -0x58(%rbp), %eax movl %eax, -0x54(%rbp) movl -0x54(%rbp), %ecx movq -0x38(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x38(%rbp) jmp 0x74cdc movq -0x38(%rbp), %rax movq -0x28(%rbp), %rcx movq (%rcx), %rcx subq %rcx, %rax movl %eax, %ecx subl -0x3c(%rbp), %ecx movq -0x28(%rbp), %rax movl %ecx, 0x8(%rax) movsbl -0x29(%rbp), %eax cmpl $0x0, %eax je 0x74dda movl -0x40(%rbp), %eax leaq 0x24d2b4(%rip), %rcx # 0x2c2060 cmpq (%rcx), %rax jb 0x74deb movl -0x40(%rbp), %eax leaq 0x24d2ad(%rip), %rcx # 0x2c2068 cmpq (%rcx), %rax jae 0x74deb movq -0x28(%rbp), %rax movq (%rax), %rdi movq -0x28(%rbp), %rax movl 0x8(%rax), %eax movl %eax, %esi callq 0xa20a0 cmpl $0x0, %eax jne 0x74deb movq -0x38(%rbp), %rcx movq -0x18(%rbp), %rax movq %rcx, (%rax) movb $0x1, -0x1(%rbp) jmp 0x74e01 jmp 0x74ded movq -0x38(%rbp), %rax cmpq -0x20(%rbp), %rax jb 0x74c29 jmp 0x74dfd movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x60, %rsp popq %rbp retq nopw (%rax,%rax)
maria_ft_simple_get_word: push rbp mov rbp, rsp sub rsp, 60h mov al, r8b mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov [rbp+var_29], al mov rax, [rbp+var_18] mov rax, [rax] mov [rbp+var_38], rax loc_74C29: jmp short $+2 loc_74C2B: mov rax, [rbp+var_38] cmp rax, [rbp+var_20] jb short loc_74C40 jmp short $+2 loc_74C37: mov [rbp+var_1], 0 jmp loc_74E01 loc_74C40: mov rax, [rbp+var_10] mov rax, [rax+0B8h] mov rax, [rax+38h] mov rdi, [rbp+var_10] mov rdx, [rbp+var_38] mov rcx, [rbp+var_20] lea rsi, [rbp+var_44] call rax mov [rbp+var_48], eax mov eax, [rbp+var_44] and eax, 7 cmp eax, 0 jnz short loc_74C7B mov rax, [rbp+var_38] movzx eax, byte ptr [rax] cmp eax, 5Fh ; '_' jnz short loc_74C7D loc_74C7B: jmp short loc_74CC3 loc_74C7D: jmp short $+2 loc_74C7F: cmp [rbp+var_48], 0 jle short loc_74C8D mov eax, [rbp+var_48] mov [rbp+var_4C], eax jmp short loc_74CAD loc_74C8D: cmp [rbp+var_48], 0 jge short loc_74C9D xor eax, eax sub eax, [rbp+var_48] mov [rbp+var_50], eax jmp short loc_74CA7 loc_74C9D: mov eax, 1 mov [rbp+var_50], eax jmp short $+2 loc_74CA7: mov eax, [rbp+var_50] mov [rbp+var_4C], eax loc_74CAD: mov ecx, [rbp+var_4C] mov rax, [rbp+var_38] movsxd rcx, ecx add rax, rcx mov [rbp+var_38], rax jmp loc_74C2B loc_74CC3: mov [rbp+var_40], 0 mov [rbp+var_3C], 0 mov rcx, [rbp+var_38] mov rax, [rbp+var_28] mov [rax], rcx loc_74CDC: mov rax, [rbp+var_38] cmp rax, [rbp+var_20] jnb loc_74D7F mov rax, [rbp+var_10] mov rax, [rax+0B8h] mov rax, [rax+38h] mov rdi, [rbp+var_10] mov rdx, [rbp+var_38] mov rcx, [rbp+var_20] lea rsi, [rbp+var_44] call rax mov [rbp+var_48], eax mov eax, [rbp+var_44] and eax, 7 cmp eax, 0 jnz short loc_74D25 mov rax, [rbp+var_38] movzx eax, byte ptr [rax] cmp eax, 5Fh ; '_' jnz short loc_74D2E loc_74D25: mov [rbp+var_3C], 0 jmp short loc_74D30 loc_74D2E: jmp short loc_74D7F loc_74D30: jmp short $+2 loc_74D32: mov eax, [rbp+var_40] add eax, 1 mov [rbp+var_40], eax cmp [rbp+var_48], 0 jle short loc_74D49 mov eax, [rbp+var_48] mov [rbp+var_54], eax jmp short loc_74D69 loc_74D49: cmp [rbp+var_48], 0 jge short loc_74D59 xor eax, eax sub eax, [rbp+var_48] mov [rbp+var_58], eax jmp short loc_74D63 loc_74D59: mov eax, 1 mov [rbp+var_58], eax jmp short $+2 loc_74D63: mov eax, [rbp+var_58] mov [rbp+var_54], eax loc_74D69: mov ecx, [rbp+var_54] mov rax, [rbp+var_38] movsxd rcx, ecx add rax, rcx mov [rbp+var_38], rax jmp loc_74CDC loc_74D7F: mov rax, [rbp+var_38] mov rcx, [rbp+var_28] mov rcx, [rcx] sub rax, rcx mov ecx, eax sub ecx, [rbp+var_3C] mov rax, [rbp+var_28] mov [rax+8], ecx movsx eax, [rbp+var_29] cmp eax, 0 jz short loc_74DDA mov eax, [rbp+var_40] lea rcx, ft_min_word_len cmp rax, [rcx] jb short loc_74DEB mov eax, [rbp+var_40] lea rcx, ft_max_word_len cmp rax, [rcx] jnb short loc_74DEB mov rax, [rbp+var_28] mov rdi, [rax] mov rax, [rbp+var_28] mov eax, [rax+8] mov esi, eax call is_stopword cmp eax, 0 jnz short loc_74DEB loc_74DDA: mov rcx, [rbp+var_38] mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_1], 1 jmp short loc_74E01 loc_74DEB: jmp short $+2 loc_74DED: mov rax, [rbp+var_38] cmp rax, [rbp+var_20] jb loc_74C29 jmp short $+2 loc_74DFD: mov [rbp+var_1], 0 loc_74E01: mov al, [rbp+var_1] add rsp, 60h pop rbp retn
char maria_ft_simple_get_word(long long a1, _BYTE **a2, unsigned long long a3, long long a4, char a5) { int v6; // [rsp+8h] [rbp-58h] int v7; // [rsp+Ch] [rbp-54h] int v8; // [rsp+10h] [rbp-50h] int v9; // [rsp+14h] [rbp-4Ch] int v10; // [rsp+18h] [rbp-48h] int v11; // [rsp+18h] [rbp-48h] int v12; // [rsp+1Ch] [rbp-44h] BYREF unsigned int v13; // [rsp+20h] [rbp-40h] int v14; // [rsp+24h] [rbp-3Ch] _BYTE *v15; // [rsp+28h] [rbp-38h] char v16; // [rsp+37h] [rbp-29h] long long v17; // [rsp+38h] [rbp-28h] unsigned long long v18; // [rsp+40h] [rbp-20h] _QWORD *v19; // [rsp+48h] [rbp-18h] long long v20; // [rsp+50h] [rbp-10h] v20 = a1; v19 = a2; v18 = a3; v17 = a4; v16 = a5; v15 = *a2; do { while ( 1 ) { if ( (unsigned long long)v15 >= v18 ) return 0; v10 = (*(long long ( **)(long long, int *, _BYTE *, unsigned long long))(*(_QWORD *)(v20 + 184) + 56LL))( v20, &v12, v15, v18); if ( (v12 & 7) != 0 || *v15 == 95 ) break; if ( v10 <= 0 ) { if ( v10 >= 0 ) v8 = 1; else v8 = -v10; v9 = v8; } else { v9 = v10; } v15 += v9; } v13 = 0; v14 = 0; *(_QWORD *)v17 = v15; while ( (unsigned long long)v15 < v18 ) { v11 = (*(long long ( **)(long long, int *, _BYTE *, unsigned long long))(*(_QWORD *)(v20 + 184) + 56LL))( v20, &v12, v15, v18); if ( (v12 & 7) == 0 && *v15 != 95 ) break; v14 = 0; ++v13; if ( v11 <= 0 ) { if ( v11 >= 0 ) v6 = 1; else v6 = -v11; v7 = v6; } else { v7 = v11; } v15 += v7; } *(_DWORD *)(v17 + 8) = (_DWORD)v15 - *(_QWORD *)v17 - v14; if ( !v16 || (unsigned long long)v13 >= ft_min_word_len && (unsigned long long)v13 < ft_max_word_len && !(unsigned int)is_stopword(*(_QWORD *)v17, *(unsigned int *)(v17 + 8)) ) { *v19 = v15; return 1; } } while ( (unsigned long long)v15 < v18 ); return 0; }
maria_ft_simple_get_word: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV AL,R8B MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV byte ptr [RBP + -0x29],AL MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX LAB_00174c29: JMP 0x00174c2b LAB_00174c2b: MOV RAX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RBP + -0x20] JC 0x00174c40 JMP 0x00174c37 LAB_00174c37: MOV byte ptr [RBP + -0x1],0x0 JMP 0x00174e01 LAB_00174c40: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0xb8] MOV RAX,qword ptr [RAX + 0x38] MOV RDI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x20] LEA RSI,[RBP + -0x44] CALL RAX MOV dword ptr [RBP + -0x48],EAX MOV EAX,dword ptr [RBP + -0x44] AND EAX,0x7 CMP EAX,0x0 JNZ 0x00174c7b MOV RAX,qword ptr [RBP + -0x38] MOVZX EAX,byte ptr [RAX] CMP EAX,0x5f JNZ 0x00174c7d LAB_00174c7b: JMP 0x00174cc3 LAB_00174c7d: JMP 0x00174c7f LAB_00174c7f: CMP dword ptr [RBP + -0x48],0x0 JLE 0x00174c8d MOV EAX,dword ptr [RBP + -0x48] MOV dword ptr [RBP + -0x4c],EAX JMP 0x00174cad LAB_00174c8d: CMP dword ptr [RBP + -0x48],0x0 JGE 0x00174c9d XOR EAX,EAX SUB EAX,dword ptr [RBP + -0x48] MOV dword ptr [RBP + -0x50],EAX JMP 0x00174ca7 LAB_00174c9d: MOV EAX,0x1 MOV dword ptr [RBP + -0x50],EAX JMP 0x00174ca7 LAB_00174ca7: MOV EAX,dword ptr [RBP + -0x50] MOV dword ptr [RBP + -0x4c],EAX LAB_00174cad: MOV ECX,dword ptr [RBP + -0x4c] MOV RAX,qword ptr [RBP + -0x38] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x38],RAX JMP 0x00174c2b LAB_00174cc3: MOV dword ptr [RBP + -0x40],0x0 MOV dword ptr [RBP + -0x3c],0x0 MOV RCX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX],RCX LAB_00174cdc: MOV RAX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RBP + -0x20] JNC 0x00174d7f MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0xb8] MOV RAX,qword ptr [RAX + 0x38] MOV RDI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x20] LEA RSI,[RBP + -0x44] CALL RAX MOV dword ptr [RBP + -0x48],EAX MOV EAX,dword ptr [RBP + -0x44] AND EAX,0x7 CMP EAX,0x0 JNZ 0x00174d25 MOV RAX,qword ptr [RBP + -0x38] MOVZX EAX,byte ptr [RAX] CMP EAX,0x5f JNZ 0x00174d2e LAB_00174d25: MOV dword ptr [RBP + -0x3c],0x0 JMP 0x00174d30 LAB_00174d2e: JMP 0x00174d7f LAB_00174d30: JMP 0x00174d32 LAB_00174d32: MOV EAX,dword ptr [RBP + -0x40] ADD EAX,0x1 MOV dword ptr [RBP + -0x40],EAX CMP dword ptr [RBP + -0x48],0x0 JLE 0x00174d49 MOV EAX,dword ptr [RBP + -0x48] MOV dword ptr [RBP + -0x54],EAX JMP 0x00174d69 LAB_00174d49: CMP dword ptr [RBP + -0x48],0x0 JGE 0x00174d59 XOR EAX,EAX SUB EAX,dword ptr [RBP + -0x48] MOV dword ptr [RBP + -0x58],EAX JMP 0x00174d63 LAB_00174d59: MOV EAX,0x1 MOV dword ptr [RBP + -0x58],EAX JMP 0x00174d63 LAB_00174d63: MOV EAX,dword ptr [RBP + -0x58] MOV dword ptr [RBP + -0x54],EAX LAB_00174d69: MOV ECX,dword ptr [RBP + -0x54] MOV RAX,qword ptr [RBP + -0x38] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x38],RAX JMP 0x00174cdc LAB_00174d7f: MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RCX] SUB RAX,RCX MOV ECX,EAX SUB ECX,dword ptr [RBP + -0x3c] MOV RAX,qword ptr [RBP + -0x28] MOV dword ptr [RAX + 0x8],ECX MOVSX EAX,byte ptr [RBP + -0x29] CMP EAX,0x0 JZ 0x00174dda MOV EAX,dword ptr [RBP + -0x40] LEA RCX,[0x3c2060] CMP RAX,qword ptr [RCX] JC 0x00174deb MOV EAX,dword ptr [RBP + -0x40] LEA RCX,[0x3c2068] CMP RAX,qword ptr [RCX] JNC 0x00174deb MOV RAX,qword ptr [RBP + -0x28] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x28] MOV EAX,dword ptr [RAX + 0x8] MOV ESI,EAX CALL 0x001a20a0 CMP EAX,0x0 JNZ 0x00174deb LAB_00174dda: MOV RCX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV byte ptr [RBP + -0x1],0x1 JMP 0x00174e01 LAB_00174deb: JMP 0x00174ded LAB_00174ded: MOV RAX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RBP + -0x20] JC 0x00174c29 JMP 0x00174dfd LAB_00174dfd: MOV byte ptr [RBP + -0x1],0x0 LAB_00174e01: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x60 POP RBP RET
int1 maria_ft_simple_get_word (long param_1,int8 *param_2,char *param_3,int8 *param_4,char param_5) { int iVar1; int local_60; int local_5c; int local_58; int local_54; uint local_4c; uint local_48; int local_44; char *local_40; char local_31; int8 *local_30; char *local_28; int8 *local_20; long local_18; local_40 = (char *)*param_2; local_31 = param_5; local_30 = param_4; local_28 = param_3; local_20 = param_2; local_18 = param_1; while( true ) { while( true ) { if (local_28 <= local_40) { return 0; } local_54 = (**(code **)(*(long *)(local_18 + 0xb8) + 0x38)) (local_18,&local_4c,local_40,local_28); if (((local_4c & 7) != 0) || (*local_40 == '_')) break; if (local_54 < 1) { if (local_54 < 0) { local_58 = -local_54; } else { local_58 = 1; } local_54 = local_58; } local_40 = local_40 + local_54; } local_48 = 0; *local_30 = local_40; while ((local_44 = 0, local_40 < local_28 && ((local_5c = (**(code **)(*(long *)(local_18 + 0xb8) + 0x38)) (local_18,&local_4c,local_40,local_28), (local_4c & 7) != 0 || (*local_40 == '_'))))) { local_48 = local_48 + 1; if (local_5c < 1) { if (local_5c < 0) { local_60 = -local_5c; } else { local_60 = 1; } local_5c = local_60; } local_40 = local_40 + local_5c; } *(int *)(local_30 + 1) = ((int)local_40 - (int)*local_30) - local_44; if ((local_31 == '\0') || (((ft_min_word_len <= local_48 && (local_48 < ft_max_word_len)) && (iVar1 = is_stopword(*local_30,*(int4 *)(local_30 + 1)), iVar1 == 0)))) break; if (local_28 <= local_40) { return 0; } } *local_20 = local_40; return 1; }
31,352
init_thread_local_storage
bluesky950520[P]quickjs/run-test262.c
static void init_thread_local_storage(ThreadLocalStorage *p) { js_mutex_init(&p->agent_mutex); js_cond_init(&p->agent_cond); init_list_head(&p->agent_list); js_mutex_init(&p->report_mutex); init_list_head(&p->report_list); p->async_done = 0; }
O0
c
init_thread_local_storage: pushq %rax movq %rdi, (%rsp) movq (%rsp), %rdi callq 0x271e0 movq (%rsp), %rdi addq $0x28, %rdi callq 0x27260 movq (%rsp), %rdi addq $0x58, %rdi callq 0x16190 movq (%rsp), %rdi addq $0x68, %rdi callq 0x271e0 movq (%rsp), %rdi addq $0x90, %rdi callq 0x16190 movq (%rsp), %rax movl $0x0, 0xa0(%rax) popq %rax retq nopw %cs:(%rax,%rax)
init_thread_local_storage: push rax mov [rsp+8+var_8], rdi mov rdi, [rsp+8+var_8] call js_mutex_init mov rdi, [rsp+8+var_8] add rdi, 28h ; '(' call js_cond_init mov rdi, [rsp+8+var_8] add rdi, 58h ; 'X' call init_list_head mov rdi, [rsp+8+var_8] add rdi, 68h ; 'h' call js_mutex_init mov rdi, [rsp+8+var_8] add rdi, 90h call init_list_head mov rax, [rsp+8+var_8] mov dword ptr [rax+0A0h], 0 pop rax retn
long long init_thread_local_storage(long long a1) { js_mutex_init(a1); js_cond_init(a1 + 40); init_list_head(a1 + 88); js_mutex_init(a1 + 104); init_list_head(a1 + 144); *(_DWORD *)(a1 + 160) = 0; return a1; }
init_thread_local_storage: PUSH RAX MOV qword ptr [RSP],RDI MOV RDI,qword ptr [RSP] CALL 0x001271e0 MOV RDI,qword ptr [RSP] ADD RDI,0x28 CALL 0x00127260 MOV RDI,qword ptr [RSP] ADD RDI,0x58 CALL 0x00116190 MOV RDI,qword ptr [RSP] ADD RDI,0x68 CALL 0x001271e0 MOV RDI,qword ptr [RSP] ADD RDI,0x90 CALL 0x00116190 MOV RAX,qword ptr [RSP] MOV dword ptr [RAX + 0xa0],0x0 POP RAX RET
long init_thread_local_storage(long param_1) { js_mutex_init(param_1); js_cond_init(param_1 + 0x28); init_list_head(param_1 + 0x58); js_mutex_init(param_1 + 0x68); init_list_head(param_1 + 0x90); *(int4 *)(param_1 + 0xa0) = 0; return param_1; }
31,353
init_thread_local_storage
bluesky950520[P]quickjs/run-test262.c
static void init_thread_local_storage(ThreadLocalStorage *p) { js_mutex_init(&p->agent_mutex); js_cond_init(&p->agent_cond); init_list_head(&p->agent_list); js_mutex_init(&p->report_mutex); init_list_head(&p->report_list); p->async_done = 0; }
O2
c
init_thread_local_storage: pushq %rbx movq %rdi, %rbx callq 0x1a925 leaq 0x28(%rbx), %rdi callq 0x1a96b leaq 0x58(%rbx), %rax movq %rax, 0x58(%rbx) movq %rax, 0x60(%rbx) leaq 0x68(%rbx), %rdi callq 0x1a925 leaq 0x90(%rbx), %rax movq %rax, 0x90(%rbx) movq %rax, 0x98(%rbx) andl $0x0, 0xa0(%rbx) popq %rbx retq
init_thread_local_storage: push rbx mov rbx, rdi call js_mutex_init lea rdi, [rbx+28h] call js_cond_init lea rax, [rbx+58h] mov [rbx+58h], rax mov [rbx+60h], rax lea rdi, [rbx+68h] call js_mutex_init lea rax, [rbx+90h] mov [rbx+90h], rax mov [rbx+98h], rax and dword ptr [rbx+0A0h], 0 pop rbx retn
long long init_thread_local_storage(long long a1) { long long result; // rax ((void (*)(void))js_mutex_init)(); js_cond_init(a1 + 40); *(_QWORD *)(a1 + 88) = a1 + 88; *(_QWORD *)(a1 + 96) = a1 + 88; js_mutex_init(a1 + 104); result = a1 + 144; *(_QWORD *)(a1 + 144) = a1 + 144; *(_QWORD *)(a1 + 152) = a1 + 144; *(_DWORD *)(a1 + 160) = 0; return result; }
init_thread_local_storage: PUSH RBX MOV RBX,RDI CALL 0x0011a925 LEA RDI,[RBX + 0x28] CALL 0x0011a96b LEA RAX,[RBX + 0x58] MOV qword ptr [RBX + 0x58],RAX MOV qword ptr [RBX + 0x60],RAX LEA RDI,[RBX + 0x68] CALL 0x0011a925 LEA RAX,[RBX + 0x90] MOV qword ptr [RBX + 0x90],RAX MOV qword ptr [RBX + 0x98],RAX AND dword ptr [RBX + 0xa0],0x0 POP RBX RET
void init_thread_local_storage(long param_1) { js_mutex_init(); js_cond_init(param_1 + 0x28); *(long *)(param_1 + 0x58) = param_1 + 0x58; *(long *)(param_1 + 0x60) = param_1 + 0x58; js_mutex_init(param_1 + 0x68); *(long *)(param_1 + 0x90) = param_1 + 0x90; *(long *)(param_1 + 0x98) = param_1 + 0x90; *(int4 *)(param_1 + 0xa0) = 0; return; }
31,354
read_pack_length
eloqsql/storage/maria/ma_packrec.c
static uint read_pack_length(uint version, const uchar *buf, ulong *length) { if (buf[0] < 254) { *length= buf[0]; return 1; } else if (buf[0] == 254) { *length= uint2korr(buf + 1); return 3; } if (version == 1) /* old format */ { *length= uint3korr(buf + 1); return 4; } else { *length= uint4korr(buf + 1); return 5; } }
O0
c
read_pack_length: pushq %rbp movq %rsp, %rbp movl %edi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x10(%rbp), %rax movzbl (%rax), %eax cmpl $0xfe, %eax jge 0x49156 movq -0x10(%rbp), %rax movzbl (%rax), %eax movl %eax, %ecx movq -0x18(%rbp), %rax movq %rcx, (%rax) movl $0x1, -0x4(%rbp) jmp 0x491d3 movq -0x10(%rbp), %rax movzbl (%rax), %eax cmpl $0xfe, %eax jne 0x4917e movq -0x10(%rbp), %rax movzwl 0x1(%rax), %eax movl %eax, %ecx movq -0x18(%rbp), %rax movq %rcx, (%rax) movl $0x3, -0x4(%rbp) jmp 0x491d3 jmp 0x49180 cmpl $0x1, -0x8(%rbp) jne 0x491bc movq -0x10(%rbp), %rax movzbl 0x1(%rax), %eax movq -0x10(%rbp), %rcx movzbl 0x2(%rcx), %ecx shll $0x8, %ecx orl %ecx, %eax movq -0x10(%rbp), %rcx movzbl 0x3(%rcx), %ecx shll $0x10, %ecx orl %ecx, %eax movl %eax, %eax movl %eax, %ecx movq -0x18(%rbp), %rax movq %rcx, (%rax) movl $0x4, -0x4(%rbp) jmp 0x491d3 movq -0x10(%rbp), %rax movl 0x1(%rax), %eax movl %eax, %ecx movq -0x18(%rbp), %rax movq %rcx, (%rax) movl $0x5, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopl (%rax,%rax)
read_pack_length: push rbp mov rbp, rsp mov [rbp+var_8], edi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov rax, [rbp+var_10] movzx eax, byte ptr [rax] cmp eax, 0FEh jge short loc_49156 mov rax, [rbp+var_10] movzx eax, byte ptr [rax] mov ecx, eax mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_4], 1 jmp short loc_491D3 loc_49156: mov rax, [rbp+var_10] movzx eax, byte ptr [rax] cmp eax, 0FEh jnz short loc_4917E mov rax, [rbp+var_10] movzx eax, word ptr [rax+1] mov ecx, eax mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_4], 3 jmp short loc_491D3 loc_4917E: jmp short $+2 loc_49180: cmp [rbp+var_8], 1 jnz short loc_491BC mov rax, [rbp+var_10] movzx eax, byte ptr [rax+1] mov rcx, [rbp+var_10] movzx ecx, byte ptr [rcx+2] shl ecx, 8 or eax, ecx mov rcx, [rbp+var_10] movzx ecx, byte ptr [rcx+3] shl ecx, 10h or eax, ecx mov eax, eax mov ecx, eax mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_4], 4 jmp short loc_491D3 loc_491BC: mov rax, [rbp+var_10] mov eax, [rax+1] mov ecx, eax mov rax, [rbp+var_18] mov [rax], rcx mov [rbp+var_4], 5 loc_491D3: mov eax, [rbp+var_4] pop rbp retn
long long read_pack_length(int a1, unsigned __int8 *a2, _QWORD *a3) { if ( *a2 >= 0xFEu ) { if ( *a2 == 254 ) { *a3 = *(unsigned __int16 *)(a2 + 1); return 3; } else if ( a1 == 1 ) { *a3 = (a2[3] << 16) | (unsigned int)*(unsigned __int16 *)(a2 + 1); return 4; } else { *a3 = *(unsigned int *)(a2 + 1); return 5; } } else { *a3 = *a2; return 1; } }
read_pack_length: PUSH RBP MOV RBP,RSP MOV dword ptr [RBP + -0x8],EDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX] CMP EAX,0xfe JGE 0x00149156 MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x1 JMP 0x001491d3 LAB_00149156: MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX] CMP EAX,0xfe JNZ 0x0014917e MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,word ptr [RAX + 0x1] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x3 JMP 0x001491d3 LAB_0014917e: JMP 0x00149180 LAB_00149180: CMP dword ptr [RBP + -0x8],0x1 JNZ 0x001491bc MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX + 0x1] MOV RCX,qword ptr [RBP + -0x10] MOVZX ECX,byte ptr [RCX + 0x2] SHL ECX,0x8 OR EAX,ECX MOV RCX,qword ptr [RBP + -0x10] MOVZX ECX,byte ptr [RCX + 0x3] SHL ECX,0x10 OR EAX,ECX MOV EAX,EAX MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x4 JMP 0x001491d3 LAB_001491bc: MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x1] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV dword ptr [RBP + -0x4],0x5 LAB_001491d3: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 read_pack_length(int param_1,byte *param_2,ulong *param_3) { int4 local_c; if (*param_2 < 0xfe) { *param_3 = (ulong)*param_2; local_c = 1; } else if (*param_2 == 0xfe) { *param_3 = (ulong)*(ushort *)(param_2 + 1); local_c = 3; } else if (param_1 == 1) { *param_3 = (ulong)*(uint3 *)(param_2 + 1); local_c = 4; } else { *param_3 = (ulong)*(uint *)(param_2 + 1); local_c = 5; } return local_c; }
31,355
my_close
eloqsql/mysys/my_open.c
int my_close(File fd, myf MyFlags) { int err; char *name= NULL; DBUG_ENTER("my_close"); DBUG_PRINT("my",("fd: %d MyFlags: %lu",fd, MyFlags)); if (!(MyFlags & (MY_WME | MY_FAE))) MyFlags|= my_global_flags; if ((uint) fd < my_file_limit && my_file_info[fd].type != UNOPEN) { name= my_file_info[fd].name; my_file_info[fd].name= NULL; my_file_info[fd].type= UNOPEN; } #ifndef _WIN32 err= close(fd); #else err= my_win_close(fd); #endif if (err) { DBUG_PRINT("error",("Got error %d on close",err)); my_errno=errno; if (MyFlags & (MY_FAE | MY_WME)) my_error(EE_BADCLOSE, MYF(ME_BELL | (MyFlags & (ME_NOTE | ME_ERROR_LOG))), name,errno); } if (name) { my_free(name); } my_atomic_add32_explicit(&my_file_opened, -1, MY_MEMORY_ORDER_RELAXED); DBUG_RETURN(err); }
O0
c
my_close: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movl %edi, -0x4(%rbp) movq %rsi, -0x10(%rbp) movq $0x0, -0x20(%rbp) jmp 0x659e9 movq -0x10(%rbp), %rax andq $0x18, %rax cmpq $0x0, %rax jne 0x65a09 leaq 0x3aa3ea(%rip), %rax # 0x40fde8 movq (%rax), %rax orq -0x10(%rbp), %rax movq %rax, -0x10(%rbp) movl -0x4(%rbp), %eax leaq 0x1ae41d(%rip), %rcx # 0x213e30 cmpl (%rcx), %eax jae 0x65a86 leaq 0x1ae41a(%rip), %rax # 0x213e38 movq (%rax), %rax movslq -0x4(%rbp), %rcx shlq $0x4, %rcx addq %rcx, %rax cmpl $0x0, 0x8(%rax) je 0x65a86 leaq 0x1ae3ff(%rip), %rax # 0x213e38 movq (%rax), %rax movslq -0x4(%rbp), %rcx shlq $0x4, %rcx addq %rcx, %rax movq (%rax), %rax movq %rax, -0x20(%rbp) leaq 0x1ae3e3(%rip), %rax # 0x213e38 movq (%rax), %rax movslq -0x4(%rbp), %rcx shlq $0x4, %rcx addq %rcx, %rax movq $0x0, (%rax) leaq 0x1ae3c7(%rip), %rax # 0x213e38 movq (%rax), %rax movslq -0x4(%rbp), %rcx shlq $0x4, %rcx addq %rcx, %rax movl $0x0, 0x8(%rax) movl -0x4(%rbp), %edi callq 0x26640 movl %eax, -0x14(%rbp) cmpl $0x0, -0x14(%rbp) je 0x65af4 jmp 0x65a99 jmp 0x65a9b callq 0x26050 movl (%rax), %eax movl %eax, -0x2c(%rbp) callq 0x5a430 movl -0x2c(%rbp), %ecx movl %ecx, (%rax) movq -0x10(%rbp), %rax andq $0x18, %rax cmpq $0x0, %rax je 0x65af2 movq -0x10(%rbp), %rax andq $0x440, %rax # imm = 0x440 orq $0x4, %rax movq %rax, -0x40(%rbp) movq -0x20(%rbp), %rax movq %rax, -0x38(%rbp) callq 0x26050 movq -0x40(%rbp), %rsi movq -0x38(%rbp), %rdx movl (%rax), %ecx movl $0x4, %edi movb $0x0, %al callq 0x64910 jmp 0x65af4 cmpq $0x0, -0x20(%rbp) je 0x65b04 movq -0x20(%rbp), %rdi callq 0x592a0 movl $0xffffffff, -0x24(%rbp) # imm = 0xFFFFFFFF movl -0x24(%rbp), %eax leaq 0x3aa2df(%rip), %rcx # 0x40fdf4 lock xaddl %eax, (%rcx) movl %eax, -0x28(%rbp) movl -0x14(%rbp), %eax movl %eax, -0x44(%rbp) movl -0x44(%rbp), %eax addq $0x50, %rsp popq %rbp retq nopl (%rax,%rax)
my_close: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_4], edi mov [rbp+var_10], rsi mov [rbp+var_20], 0 jmp short $+2 loc_659E9: mov rax, [rbp+var_10] and rax, 18h cmp rax, 0 jnz short loc_65A09 lea rax, my_global_flags mov rax, [rax] or rax, [rbp+var_10] mov [rbp+var_10], rax loc_65A09: mov eax, [rbp+var_4] lea rcx, my_file_limit cmp eax, [rcx] jnb short loc_65A86 lea rax, my_file_info mov rax, [rax] movsxd rcx, [rbp+var_4] shl rcx, 4 add rax, rcx cmp dword ptr [rax+8], 0 jz short loc_65A86 lea rax, my_file_info mov rax, [rax] movsxd rcx, [rbp+var_4] shl rcx, 4 add rax, rcx mov rax, [rax] mov [rbp+var_20], rax lea rax, my_file_info mov rax, [rax] movsxd rcx, [rbp+var_4] shl rcx, 4 add rax, rcx mov qword ptr [rax], 0 lea rax, my_file_info mov rax, [rax] movsxd rcx, [rbp+var_4] shl rcx, 4 add rax, rcx mov dword ptr [rax+8], 0 loc_65A86: mov edi, [rbp+var_4] call _close mov [rbp+var_14], eax cmp [rbp+var_14], 0 jz short loc_65AF4 jmp short $+2 loc_65A99: jmp short $+2 loc_65A9B: call ___errno_location mov eax, [rax] mov [rbp+var_2C], eax call _my_thread_var mov ecx, [rbp+var_2C] mov [rax], ecx mov rax, [rbp+var_10] and rax, 18h cmp rax, 0 jz short loc_65AF2 mov rax, [rbp+var_10] and rax, 440h or rax, 4 mov [rbp+var_40], rax mov rax, [rbp+var_20] mov [rbp+var_38], rax call ___errno_location mov rsi, [rbp+var_40] mov rdx, [rbp+var_38] mov ecx, [rax] mov edi, 4 mov al, 0 call my_error loc_65AF2: jmp short $+2 loc_65AF4: cmp [rbp+var_20], 0 jz short loc_65B04 mov rdi, [rbp+var_20] call my_free loc_65B04: mov [rbp+var_24], 0FFFFFFFFh mov eax, [rbp+var_24] lea rcx, my_file_opened lock xadd [rcx], eax mov [rbp+var_28], eax mov eax, [rbp+var_14] mov [rbp+var_44], eax mov eax, [rbp+var_44] add rsp, 50h pop rbp retn
long long my_close(unsigned int a1, __int16 a2) { unsigned int *v2; // rax int v4; // [rsp+24h] [rbp-2Ch] long long v5; // [rsp+30h] [rbp-20h] unsigned int v6; // [rsp+3Ch] [rbp-14h] __int16 v7; // [rsp+40h] [rbp-10h] v7 = a2; v5 = 0LL; if ( (a2 & 0x18) == 0 ) v7 = a2 | my_global_flags; if ( a1 < my_file_limit && *((_DWORD *)my_file_info + 4 * (int)a1 + 2) ) { v5 = *((_QWORD *)my_file_info + 2 * (int)a1); *((_QWORD *)my_file_info + 2 * (int)a1) = 0LL; *((_DWORD *)my_file_info + 4 * (int)a1 + 2) = 0; } v6 = close(a1); if ( v6 ) { v4 = *(_DWORD *)__errno_location(); *(_DWORD *)my_thread_var() = v4; if ( (v7 & 0x18) != 0 ) { v2 = (unsigned int *)__errno_location(); my_error(4u, v7 & 0x440 | 4LL, v5, *v2); } } if ( v5 ) my_free(v5); _InterlockedExchangeAdd(my_file_opened, 0xFFFFFFFF); return v6; }
my_close: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV dword ptr [RBP + -0x4],EDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x20],0x0 JMP 0x001659e9 LAB_001659e9: MOV RAX,qword ptr [RBP + -0x10] AND RAX,0x18 CMP RAX,0x0 JNZ 0x00165a09 LEA RAX,[0x50fde8] MOV RAX,qword ptr [RAX] OR RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x10],RAX LAB_00165a09: MOV EAX,dword ptr [RBP + -0x4] LEA RCX,[0x313e30] CMP EAX,dword ptr [RCX] JNC 0x00165a86 LEA RAX,[0x313e38] MOV RAX,qword ptr [RAX] MOVSXD RCX,dword ptr [RBP + -0x4] SHL RCX,0x4 ADD RAX,RCX CMP dword ptr [RAX + 0x8],0x0 JZ 0x00165a86 LEA RAX,[0x313e38] MOV RAX,qword ptr [RAX] MOVSXD RCX,dword ptr [RBP + -0x4] SHL RCX,0x4 ADD RAX,RCX MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x20],RAX LEA RAX,[0x313e38] MOV RAX,qword ptr [RAX] MOVSXD RCX,dword ptr [RBP + -0x4] SHL RCX,0x4 ADD RAX,RCX MOV qword ptr [RAX],0x0 LEA RAX,[0x313e38] MOV RAX,qword ptr [RAX] MOVSXD RCX,dword ptr [RBP + -0x4] SHL RCX,0x4 ADD RAX,RCX MOV dword ptr [RAX + 0x8],0x0 LAB_00165a86: MOV EDI,dword ptr [RBP + -0x4] CALL 0x00126640 MOV dword ptr [RBP + -0x14],EAX CMP dword ptr [RBP + -0x14],0x0 JZ 0x00165af4 JMP 0x00165a99 LAB_00165a99: JMP 0x00165a9b LAB_00165a9b: CALL 0x00126050 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x2c],EAX CALL 0x0015a430 MOV ECX,dword ptr [RBP + -0x2c] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x10] AND RAX,0x18 CMP RAX,0x0 JZ 0x00165af2 MOV RAX,qword ptr [RBP + -0x10] AND RAX,0x440 OR RAX,0x4 MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x38],RAX CALL 0x00126050 MOV RSI,qword ptr [RBP + -0x40] MOV RDX,qword ptr [RBP + -0x38] MOV ECX,dword ptr [RAX] MOV EDI,0x4 MOV AL,0x0 CALL 0x00164910 LAB_00165af2: JMP 0x00165af4 LAB_00165af4: CMP qword ptr [RBP + -0x20],0x0 JZ 0x00165b04 MOV RDI,qword ptr [RBP + -0x20] CALL 0x001592a0 LAB_00165b04: MOV dword ptr [RBP + -0x24],0xffffffff MOV EAX,dword ptr [RBP + -0x24] LEA RCX,[0x50fdf4] XADD.LOCK dword ptr [RCX],EAX MOV dword ptr [RBP + -0x28],EAX MOV EAX,dword ptr [RBP + -0x14] MOV dword ptr [RBP + -0x44],EAX MOV EAX,dword ptr [RBP + -0x44] ADD RSP,0x50 POP RBP RET
int my_close(uint param_1,ulong param_2) { int iVar1; int iVar2; int *piVar3; long local_28; ulong local_18; local_28 = 0; local_18 = param_2; if ((param_2 & 0x18) == 0) { local_18 = my_global_flags | param_2; } if ((param_1 < my_file_limit) && (*(int *)(my_file_info + (long)(int)param_1 * 0x10 + 8) != 0)) { local_28 = *(long *)(my_file_info + (long)(int)param_1 * 0x10); *(int8 *)(my_file_info + (long)(int)param_1 * 0x10) = 0; *(int4 *)(my_file_info + (long)(int)param_1 * 0x10 + 8) = 0; } iVar2 = close(param_1); if (iVar2 != 0) { piVar3 = __errno_location(); iVar1 = *piVar3; piVar3 = (int *)_my_thread_var(); *piVar3 = iVar1; if ((local_18 & 0x18) != 0) { piVar3 = __errno_location(); my_error(4,local_18 & 0x440 | 4,local_28,*piVar3); } } if (local_28 != 0) { my_free(local_28); } LOCK(); my_file_opened = my_file_opened + -1; UNLOCK(); return iVar2; }
31,356
my_utf16_uni
eloqsql/strings/ctype-ucs2.c
int my_utf16_uni(CHARSET_INFO *cs __attribute__((unused)), my_wc_t *pwc, const uchar *s, const uchar *e) { return my_mb_wc_utf16_quick(pwc, s, e); }
O3
c
my_utf16_uni: pushq %rbp movq %rsp, %rbp leaq 0x2(%rdx), %r8 movl $0xffffff9a, %eax # imm = 0xFFFFFF9A cmpq %rcx, %r8 ja 0x44f3c movzbl (%rdx), %edi movl %edi, %r9d andl $-0x4, %r9d xorl %eax, %eax cmpl $0xdc, %r9d je 0x44f3c cmpl $0xd8, %r9d jne 0x44f29 leaq 0x4(%rdx), %r9 movl $0xffffff98, %eax # imm = 0xFFFFFF98 cmpq %rcx, %r9 ja 0x44f3c movzbl (%r8), %ecx movl %ecx, %r8d andl $-0x4, %r8d movl $0x0, %eax cmpl $0xdc, %r8d jne 0x44f3c shll $0x12, %edi shll $0x8, %ecx orl %edi, %ecx movzbl 0x1(%rdx), %eax shll $0xa, %eax movzbl 0x3(%rdx), %edx andl $0xc0300, %ecx # imm = 0xC0300 orl %edx, %ecx addl %eax, %ecx addl $0x10000, %ecx # imm = 0x10000 movl $0x4, %eax jmp 0x44f37 shll $0x8, %edi movzbl 0x1(%rdx), %ecx orl %edi, %ecx movl $0x2, %eax movl %ecx, %ecx movq %rcx, (%rsi) popq %rbp retq
my_utf16_uni: push rbp mov rbp, rsp lea r8, [rdx+2] mov eax, 0FFFFFF9Ah cmp r8, rcx ja loc_44F3C movzx edi, byte ptr [rdx] mov r9d, edi and r9d, 0FFFFFFFCh xor eax, eax cmp r9d, 0DCh jz short loc_44F3C cmp r9d, 0D8h jnz short loc_44F29 lea r9, [rdx+4] mov eax, 0FFFFFF98h cmp r9, rcx ja short loc_44F3C movzx ecx, byte ptr [r8] mov r8d, ecx and r8d, 0FFFFFFFCh mov eax, 0 cmp r8d, 0DCh jnz short loc_44F3C shl edi, 12h shl ecx, 8 or ecx, edi movzx eax, byte ptr [rdx+1] shl eax, 0Ah movzx edx, byte ptr [rdx+3] and ecx, 0C0300h or ecx, edx add ecx, eax add ecx, 10000h mov eax, 4 jmp short loc_44F37 loc_44F29: shl edi, 8 movzx ecx, byte ptr [rdx+1] or ecx, edi mov eax, 2 loc_44F37: mov ecx, ecx mov [rsi], rcx loc_44F3C: pop rbp retn
long long my_utf16_uni(long long a1, _QWORD *a2, unsigned __int8 *a3, unsigned long long a4) { _BYTE *v4; // r8 long long result; // rax int v6; // edi int v7; // r9d unsigned int v8; // ecx v4 = a3 + 2; result = 4294967194LL; if ( (unsigned long long)(a3 + 2) <= a4 ) { v6 = *a3; v7 = v6 & 0xFC; result = 0LL; if ( v7 != 220 ) { if ( v7 != 216 ) { v8 = (v6 << 8) | a3[1]; result = 2LL; goto LABEL_8; } result = 4294967192LL; if ( (unsigned long long)(a3 + 4) <= a4 ) { result = 0LL; if ( (*v4 & 0xFC) == 0xDC ) { v8 = (a3[1] << 10) + (a3[3] | ((v6 << 18) | ((unsigned __int8)*v4 << 8)) & 0xC0300) + 0x10000; result = 4LL; LABEL_8: *a2 = v8; } } } } return result; }
my_utf16_uni: PUSH RBP MOV RBP,RSP LEA R8,[RDX + 0x2] MOV EAX,0xffffff9a CMP R8,RCX JA 0x00144f3c MOVZX EDI,byte ptr [RDX] MOV R9D,EDI AND R9D,0xfffffffc XOR EAX,EAX CMP R9D,0xdc JZ 0x00144f3c CMP R9D,0xd8 JNZ 0x00144f29 LEA R9,[RDX + 0x4] MOV EAX,0xffffff98 CMP R9,RCX JA 0x00144f3c MOVZX ECX,byte ptr [R8] MOV R8D,ECX AND R8D,0xfffffffc MOV EAX,0x0 CMP R8D,0xdc JNZ 0x00144f3c SHL EDI,0x12 SHL ECX,0x8 OR ECX,EDI MOVZX EAX,byte ptr [RDX + 0x1] SHL EAX,0xa MOVZX EDX,byte ptr [RDX + 0x3] AND ECX,0xc0300 OR ECX,EDX ADD ECX,EAX ADD ECX,0x10000 MOV EAX,0x4 JMP 0x00144f37 LAB_00144f29: SHL EDI,0x8 MOVZX ECX,byte ptr [RDX + 0x1] OR ECX,EDI MOV EAX,0x2 LAB_00144f37: MOV ECX,ECX MOV qword ptr [RSI],RCX LAB_00144f3c: POP RBP RET
int8 my_utf16_uni(int8 param_1,ulong *param_2,byte *param_3,byte *param_4) { byte bVar1; byte bVar2; int8 uVar3; uint uVar4; uVar3 = 0xffffff9a; if (param_3 + 2 <= param_4) { bVar1 = *param_3; uVar3 = 0; if ((bVar1 & 0xfc) != 0xdc) { if ((bVar1 & 0xfc) == 0xd8) { if (param_4 < param_3 + 4) { return 0xffffff98; } bVar2 = param_3[2]; if ((bVar2 & 0xfc) != 0xdc) { return 0; } uVar4 = (((uint)bVar2 << 8 | (uint)bVar1 << 0x12) & 0xc0300 | (uint)param_3[3]) + (uint)param_3[1] * 0x400 + 0x10000; uVar3 = 4; } else { uVar4 = (uint)CONCAT11(bVar1,param_3[1]); uVar3 = 2; } *param_2 = (ulong)uVar4; } } return uVar3; }
31,357
(anonymous namespace)::DefaultLogDir()
ng-log[P]ng-log/src/flags.cc
static const char* DefaultLogDir() { constexpr const char* const names[]{"NGLOG_DIR", "TEST_TMPDIR"}; for (const char* const name : names) { const char* const env = std::getenv(name); if (env != nullptr && env[0] != '\0') { return env; } } return ""; }
O0
cpp
(anonymous namespace)::DefaultLogDir(): pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq 0x62bb1(%rip), %rax # 0x6f6e0 movq %rax, -0x20(%rbp) movq 0x62bae(%rip), %rax # 0x6f6e8 movq %rax, -0x18(%rbp) leaq -0x20(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x28(%rbp), %rax addq $0x10, %rax movq %rax, -0x38(%rbp) movq -0x30(%rbp), %rax cmpq -0x38(%rbp), %rax je 0xcba9 movq -0x30(%rbp), %rax movq (%rax), %rax movq %rax, -0x40(%rbp) movq -0x40(%rbp), %rdi callq 0x9900 movq %rax, -0x48(%rbp) cmpq $0x0, -0x48(%rbp) je 0xcb99 movq -0x48(%rbp), %rax movsbl (%rax), %eax cmpl $0x0, %eax je 0xcb99 movq -0x48(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0xcbb4 jmp 0xcb9b movq -0x30(%rbp), %rax addq $0x8, %rax movq %rax, -0x30(%rbp) jmp 0xcb5a leaq 0x41058(%rip), %rax # 0x4dc08 movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x50, %rsp popq %rbp retq nop
_ZN12_GLOBAL__N_113DefaultLogDirEv: push rbp mov rbp, rsp sub rsp, 50h mov rax, cs:off_6F6E0; "NGLOG_DIR" mov [rbp+var_20], rax mov rax, cs:off_6F6E8; "TEST_TMPDIR" mov [rbp+var_18], rax lea rax, [rbp+var_20] mov [rbp+var_28], rax mov rax, [rbp+var_28] mov [rbp+var_30], rax mov rax, [rbp+var_28] add rax, 10h mov [rbp+var_38], rax loc_CB5A: mov rax, [rbp+var_30] cmp rax, [rbp+var_38] jz short loc_CBA9 mov rax, [rbp+var_30] mov rax, [rax] mov [rbp+var_40], rax mov rdi, [rbp+var_40] call _getenv mov [rbp+var_48], rax cmp [rbp+var_48], 0 jz short loc_CB99 mov rax, [rbp+var_48] movsx eax, byte ptr [rax] cmp eax, 0 jz short loc_CB99 mov rax, [rbp+var_48] mov [rbp+var_8], rax jmp short loc_CBB4 loc_CB99: jmp short $+2 loc_CB9B: mov rax, [rbp+var_30] add rax, 8 mov [rbp+var_30], rax jmp short loc_CB5A loc_CBA9: lea rax, asc_4DC06+2; "" mov [rbp+var_8], rax loc_CBB4: mov rax, [rbp+var_8] add rsp, 50h pop rbp retn
char * `anonymous namespace'::DefaultLogDir(_anonymous_namespace_ *this) { _BYTE *v2; // [rsp+8h] [rbp-48h] long long *i; // [rsp+20h] [rbp-30h] _QWORD v4[2]; // [rsp+30h] [rbp-20h] BYREF long long v5; // [rsp+40h] [rbp-10h] BYREF v4[0] = "NGLOG_DIR"; v4[1] = "TEST_TMPDIR"; for ( i = v4; i != &v5; ++i ) { v2 = (_BYTE *)getenv(*i); if ( v2 && *v2 ) return v2; } return ""; }
DefaultLogDir: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV RAX,qword ptr [0x0016f6e0] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [0x0016f6e8] MOV qword ptr [RBP + -0x18],RAX LEA RAX,[RBP + -0x20] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x10 MOV qword ptr [RBP + -0x38],RAX LAB_0010cb5a: MOV RAX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RBP + -0x38] JZ 0x0010cba9 MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x40],RAX MOV RDI,qword ptr [RBP + -0x40] CALL 0x00109900 MOV qword ptr [RBP + -0x48],RAX CMP qword ptr [RBP + -0x48],0x0 JZ 0x0010cb99 MOV RAX,qword ptr [RBP + -0x48] MOVSX EAX,byte ptr [RAX] CMP EAX,0x0 JZ 0x0010cb99 MOV RAX,qword ptr [RBP + -0x48] MOV qword ptr [RBP + -0x8],RAX JMP 0x0010cbb4 LAB_0010cb99: JMP 0x0010cb9b LAB_0010cb9b: MOV RAX,qword ptr [RBP + -0x30] ADD RAX,0x8 MOV qword ptr [RBP + -0x30],RAX JMP 0x0010cb5a LAB_0010cba9: LEA RAX,[0x14dc08] MOV qword ptr [RBP + -0x8],RAX LAB_0010cbb4: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x50 POP RBP RET
/* (anonymous namespace)::DefaultLogDir() */ char * (anonymous_namespace)::DefaultLogDir(void) { char *pcVar1; int **local_38; int *local_28; int *local_20; int *puStack_18; char *local_10; local_28 = PTR_s_NGLOG_DIR_0016f6e0; local_20 = PTR_s_TEST_TMPDIR_0016f6e8; local_38 = &local_28; while( true ) { if (local_38 == &puStack_18) { local_10 = ""; return local_10; } pcVar1 = getenv(*local_38); if ((pcVar1 != (char *)0x0) && (*pcVar1 != '\0')) break; local_38 = local_38 + 1; } return pcVar1; }
31,358
Item_sum_count::reset_field()
eloqsql/sql/item_sum.cc
void Item_sum_count::reset_field() { DBUG_ENTER("Item_sum_count::reset_field"); uchar *res=result_field->ptr; longlong nr=0; DBUG_ASSERT (aggr->Aggrtype() != Aggregator::DISTINCT_AGGREGATOR); if (unlikely(direct_counted)) { nr= direct_count; direct_counted= FALSE; direct_reseted_field= TRUE; } else if (!args[0]->maybe_null() || !args[0]->is_null()) nr= 1; DBUG_PRINT("info", ("nr: %lld", nr)); int8store(res,nr); DBUG_VOID_RETURN; }
O0
cpp
Item_sum_count::reset_field(): pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x28(%rbp) movq 0x68(%rax), %rax movq 0x8(%rax), %rax movq %rax, -0x10(%rbp) movq $0x0, -0x18(%rbp) jmp 0xd0600a movq -0x28(%rbp), %rax movb 0x108(%rax), %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax je 0xd0603d movq -0x28(%rbp), %rax movq 0x110(%rax), %rcx movq %rcx, -0x18(%rbp) movb $0x0, 0x108(%rax) movb $0x1, 0x109(%rax) jmp 0xd06075 movq -0x28(%rbp), %rax movq 0x70(%rax), %rax movq (%rax), %rdi callq 0x7f0830 testb $0x1, %al jne 0xd06053 jmp 0xd0606b movq -0x28(%rbp), %rax movq 0x70(%rax), %rax movq (%rax), %rdi movq (%rdi), %rax callq *0x280(%rax) testb $0x1, %al jne 0xd06073 movq $0x1, -0x18(%rbp) jmp 0xd06075 jmp 0xd06077 jmp 0xd06079 jmp 0xd0607b movq -0x10(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x18(%rbp), %rcx movq -0x20(%rbp), %rax movq %rcx, (%rax) jmp 0xd06090 jmp 0xd06092 addq $0x30, %rsp popq %rbp retq nopl (%rax,%rax)
_ZN14Item_sum_count11reset_fieldEv: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov [rbp+var_28], rax mov rax, [rax+68h] mov rax, [rax+8] mov [rbp+var_10], rax mov [rbp+var_18], 0 jmp short $+2 loc_D0600A: mov rax, [rbp+var_28] mov al, [rax+108h] and al, 1 movzx eax, al cmp eax, 0 jz short loc_D0603D mov rax, [rbp+var_28] mov rcx, [rax+110h] mov [rbp+var_18], rcx mov byte ptr [rax+108h], 0 mov byte ptr [rax+109h], 1 jmp short loc_D06075 loc_D0603D: mov rax, [rbp+var_28] mov rax, [rax+70h] mov rdi, [rax]; this call _ZNK4Item10maybe_nullEv; Item::maybe_null(void) test al, 1 jnz short loc_D06053 jmp short loc_D0606B loc_D06053: mov rax, [rbp+var_28] mov rax, [rax+70h] mov rdi, [rax] mov rax, [rdi] call qword ptr [rax+280h] test al, 1 jnz short loc_D06073 loc_D0606B: mov [rbp+var_18], 1 loc_D06073: jmp short $+2 loc_D06075: jmp short $+2 loc_D06077: jmp short $+2 loc_D06079: jmp short $+2 loc_D0607B: mov rax, [rbp+var_10] mov [rbp+var_20], rax mov rcx, [rbp+var_18] mov rax, [rbp+var_20] mov [rax], rcx jmp short $+2 loc_D06090: jmp short $+2 loc_D06092: add rsp, 30h pop rbp retn
long long * Item_sum_count::reset_field(Item_sum_count *this) { long long *result; // rax long long v2; // [rsp+18h] [rbp-18h] long long *v3; // [rsp+20h] [rbp-10h] v3 = *(long long **)(*((_QWORD *)this + 13) + 8LL); v2 = 0LL; if ( (*((_BYTE *)this + 264) & 1) != 0 ) { v2 = *((_QWORD *)this + 34); *((_BYTE *)this + 264) = 0; *((_BYTE *)this + 265) = 1; } else if ( !Item::maybe_null(**((Item ***)this + 14)) || ((*(long long ( **)(_QWORD))(***((_QWORD ***)this + 14) + 640LL))(**((_QWORD **)this + 14)) & 1) == 0 ) { v2 = 1LL; } result = v3; *v3 = v2; return result; }
my_time_fraction_remainder: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI JMP 0x00d05fed LAB_00d05fed: MOV RAX,qword ptr [RBP + -0x8] MOV ECX,0x6 SUB ECX,dword ptr [RBP + -0xc] MOV ECX,ECX MOV ESI,ECX LEA RCX,[0x1c0dfa0] CQO IDIV qword ptr [RCX + RSI*0x8] MOV RAX,RDX POP RBP RET
/* my_time_fraction_remainder(long, unsigned int) */ long my_time_fraction_remainder(long param_1,uint param_2) { return param_1 % *(long *)(log_10_int + (ulong)(6 - param_2) * 8); }
31,359
plutovg_surface_create_uninitialized
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-surface.c
static plutovg_surface_t* plutovg_surface_create_uninitialized(int width, int height) { if(width > STBI_MAX_DIMENSIONS || height > STBI_MAX_DIMENSIONS) return NULL; const size_t size = width * height * 4; plutovg_surface_t* surface = malloc(size + sizeof(plutovg_surface_t)); if(surface == NULL) return NULL; surface->ref_count = 1; surface->width = width; surface->height = height; surface->stride = width * 4; surface->data = (uint8_t*)(surface + 1); return surface; }
O2
c
plutovg_surface_create_uninitialized: movl $0x1000001, %eax # imm = 0x1000001 cmpl %eax, %edi setge %cl cmpl %eax, %esi setge %al orb %cl, %al je 0x28270 xorl %eax, %eax retq pushq %rbp pushq %r14 pushq %rbx movl %esi, %ebx movl %edi, %r14d leal (,%r14,4), %ebp movl %ebp, %eax imull %esi, %eax movslq %eax, %rdi addq $0x18, %rdi callq 0xa3c0 testq %rax, %rax je 0x282b4 movl $0x1, (%rax) movl %r14d, 0x4(%rax) movl %ebx, 0x8(%rax) movl %ebp, 0xc(%rax) movq %rax, %rcx addq $0x18, %rcx movq %rcx, 0x10(%rax) jmp 0x282b6 xorl %eax, %eax popq %rbx popq %r14 popq %rbp retq
plutovg_surface_create_uninitialized: mov eax, 1000001h cmp edi, eax setnl cl cmp esi, eax setnl al or al, cl jz short loc_28270 xor eax, eax retn loc_28270: push rbp push r14 push rbx mov ebx, esi mov r14d, edi lea ebp, ds:0[r14*4] mov eax, ebp imul eax, esi movsxd rdi, eax add rdi, 18h call _malloc test rax, rax jz short loc_282B4 mov dword ptr [rax], 1 mov [rax+4], r14d mov [rax+8], ebx mov [rax+0Ch], ebp mov rcx, rax add rcx, 18h mov [rax+10h], rcx jmp short loc_282B6 loc_282B4: xor eax, eax loc_282B6: pop rbx pop r14 pop rbp retn
long long plutovg_surface_create_uninitialized(int a1, int a2) { long long result; // rax if ( a1 >= 16777217 || a2 >= 16777217 ) return 0LL; result = malloc(a2 * 4 * a1 + 24LL); if ( !result ) return 0LL; *(_DWORD *)result = 1; *(_DWORD *)(result + 4) = a1; *(_DWORD *)(result + 8) = a2; *(_DWORD *)(result + 12) = 4 * a1; *(_QWORD *)(result + 16) = result + 24; return result; }
plutovg_surface_create_uninitialized: MOV EAX,0x1000001 CMP EDI,EAX SETGE CL CMP ESI,EAX SETGE AL OR AL,CL JZ 0x00128270 XOR EAX,EAX RET LAB_00128270: PUSH RBP PUSH R14 PUSH RBX MOV EBX,ESI MOV R14D,EDI LEA EBP,[R14*0x4] MOV EAX,EBP IMUL EAX,ESI MOVSXD RDI,EAX ADD RDI,0x18 CALL 0x0010a3c0 TEST RAX,RAX JZ 0x001282b4 MOV dword ptr [RAX],0x1 MOV dword ptr [RAX + 0x4],R14D MOV dword ptr [RAX + 0x8],EBX MOV dword ptr [RAX + 0xc],EBP MOV RCX,RAX ADD RCX,0x18 MOV qword ptr [RAX + 0x10],RCX JMP 0x001282b6 LAB_001282b4: XOR EAX,EAX LAB_001282b6: POP RBX POP R14 POP RBP RET
int4 * plutovg_surface_create_uninitialized(int param_1,int param_2) { int4 *puVar1; if (0x1000000 < param_2 || 0x1000000 < param_1) { return (int4 *)0x0; } puVar1 = (int4 *)malloc((long)(param_1 * 4 * param_2) + 0x18); if (puVar1 == (int4 *)0x0) { puVar1 = (int4 *)0x0; } else { *puVar1 = 1; puVar1[1] = param_1; puVar1[2] = param_2; puVar1[3] = param_1 * 4; *(int4 **)(puVar1 + 4) = puVar1 + 6; } return puVar1; }
31,360
ggml_new_object
ngxson[P]ggml-easy/ggml/src/ggml.c
static struct ggml_object * ggml_new_object(struct ggml_context * ctx, enum ggml_object_type type, size_t size) { // always insert objects at the end of the context's memory pool struct ggml_object * obj_cur = ctx->objects_end; const size_t cur_offs = obj_cur == NULL ? 0 : obj_cur->offs; const size_t cur_size = obj_cur == NULL ? 0 : obj_cur->size; const size_t cur_end = cur_offs + cur_size; // align to GGML_MEM_ALIGN size_t size_needed = GGML_PAD(size, GGML_MEM_ALIGN); char * const mem_buffer = ctx->mem_buffer; struct ggml_object * const obj_new = (struct ggml_object *)(mem_buffer + cur_end); if (cur_end + size_needed + GGML_OBJECT_SIZE > ctx->mem_size) { GGML_LOG_WARN("%s: not enough space in the context's memory pool (needed %zu, available %zu)\n", __func__, cur_end + size_needed + GGML_OBJECT_SIZE, ctx->mem_size); #ifndef NDEBUG GGML_ABORT("not enough space in the context's memory pool"); #endif return NULL; } *obj_new = (struct ggml_object) { .offs = cur_end + GGML_OBJECT_SIZE, .size = size_needed, .next = NULL, .type = type, }; GGML_ASSERT_ALIGNED(mem_buffer + obj_new->offs); if (obj_cur != NULL) { obj_cur->next = obj_new; } else { // this is the first object in this context ctx->objects_begin = obj_new; } ctx->objects_end = obj_new; //printf("%s: inserted new object at %zu, size = %zu\n", __func__, cur_end, obj_new->size); return obj_new; }
O1
c
ggml_new_object: pushq %rbx movq 0x20(%rdi), %rax testq %rax, %rax je 0x1a06b movq (%rax), %rcx jmp 0x1a06d xorl %ecx, %ecx testq %rax, %rax je 0x1a078 movq 0x8(%rax), %r9 jmp 0x1a07b xorl %r9d, %r9d addq %rcx, %r9 addq $0xf, %rdx andq $-0x10, %rdx movq (%rdi), %r8 leaq (%rdx,%r9), %rcx addq $0x20, %rcx cmpq %r8, %rcx jbe 0x1a0b4 leaq 0x325c7(%rip), %rsi # 0x4c664 leaq 0x3260f(%rip), %rdx # 0x4c6b3 xorl %ebx, %ebx movl $0x3, %edi xorl %eax, %eax callq 0x167f0 jmp 0x1a0fc movq 0x8(%rdi), %rbx leaq 0x20(%r9), %rcx movq %rcx, (%rbx,%r9) movq %rdx, 0x8(%rbx,%r9) movq $0x0, 0x10(%rbx,%r9) movl %esi, 0x18(%rbx,%r9) movl $0x0, 0x1c(%rbx,%r9) addl %ebx, %ecx testb $0xf, %cl jne 0x1a101 addq %r9, %rbx leaq 0x18(%rdi), %rcx leaq 0x10(%rax), %rdx testq %rax, %rax cmoveq %rcx, %rdx movq %rbx, (%rdx) movq %rbx, 0x20(%rdi) movq %rbx, %rax popq %rbx retq leaq 0x30507(%rip), %rdi # 0x4a60f leaq 0x3054b(%rip), %rdx # 0x4a65a leaq 0x325ad(%rip), %rcx # 0x4c6c3 movl $0x611, %esi # imm = 0x611 xorl %eax, %eax callq 0x17c70
ggml_new_object: push rbx mov rax, [rdi+20h] test rax, rax jz short loc_1A06B mov rcx, [rax] jmp short loc_1A06D loc_1A06B: xor ecx, ecx loc_1A06D: test rax, rax jz short loc_1A078 mov r9, [rax+8] jmp short loc_1A07B loc_1A078: xor r9d, r9d loc_1A07B: add r9, rcx add rdx, 0Fh and rdx, 0FFFFFFFFFFFFFFF0h mov r8, [rdi] lea rcx, [rdx+r9] add rcx, 20h ; ' ' cmp rcx, r8 jbe short loc_1A0B4 lea rsi, aSNotEnoughSpac; "%s: not enough space in the context's m"... lea rdx, aGgmlNewObject; "ggml_new_object" xor ebx, ebx mov edi, 3 xor eax, eax call _ggml_log_internal jmp short loc_1A0FC loc_1A0B4: mov rbx, [rdi+8] lea rcx, [r9+20h] mov [rbx+r9], rcx mov [rbx+r9+8], rdx mov qword ptr [rbx+r9+10h], 0 mov [rbx+r9+18h], esi mov dword ptr [rbx+r9+1Ch], 0 add ecx, ebx test cl, 0Fh jnz short loc_1A101 add rbx, r9 lea rcx, [rdi+18h] lea rdx, [rax+10h] test rax, rax cmovz rdx, rcx mov [rdx], rbx mov [rdi+20h], rbx loc_1A0FC: mov rax, rbx pop rbx retn loc_1A101: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aUintptrTMemBuf; "((uintptr_t) (mem_buffer + obj_new->off"... mov esi, 611h xor eax, eax call _ggml_abort
long long ggml_new_object( long long *a1, int a2, long long a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11) { long long *v11; // rax long long v12; // rcx long long v13; // r9 long long v14; // r9 unsigned long long v15; // rdx long long v16; // r8 unsigned long long v17; // rcx long long v18; // rbx long long v19; // rbx long long *v20; // rdx v11 = (long long *)a1[4]; if ( v11 ) v12 = *v11; else v12 = 0LL; if ( v11 ) v13 = v11[1]; else v13 = 0LL; v14 = v12 + v13; v15 = (a3 + 15) & 0xFFFFFFFFFFFFFFF0LL; v16 = *a1; v17 = v15 + v14 + 32; if ( v17 <= *a1 ) { v19 = a1[1]; *(_QWORD *)(v19 + v14) = v14 + 32; *(_QWORD *)(v19 + v14 + 8) = v15; *(_QWORD *)(v19 + v14 + 16) = 0LL; *(_DWORD *)(v19 + v14 + 24) = a2; *(_DWORD *)(v19 + v14 + 28) = 0; if ( (((_BYTE)v19 + (_BYTE)v14 + 32) & 0xF) != 0 ) ggml_abort( (unsigned int)"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c", 1553, (unsigned int)"GGML_ASSERT(%s) failed", (unsigned int)"((uintptr_t) (mem_buffer + obj_new->offs))%GGML_MEM_ALIGN == 0", v16, v14); v18 = v14 + v19; v20 = v11 + 2; if ( !v11 ) v20 = a1 + 3; *v20 = v18; a1[4] = v18; } else { v18 = 0LL; ggml_log_internal( 3u, (long long)"%s: not enough space in the context's memory pool (needed %zu, available %zu)\n", (long long)"ggml_new_object", v17, v16, v14, a4, a5, a6, a7, a8, a9, a10, a11); } return v18; }
ggml_new_object: PUSH RBX MOV RAX,qword ptr [RDI + 0x20] TEST RAX,RAX JZ 0x0011a06b MOV RCX,qword ptr [RAX] JMP 0x0011a06d LAB_0011a06b: XOR ECX,ECX LAB_0011a06d: TEST RAX,RAX JZ 0x0011a078 MOV R9,qword ptr [RAX + 0x8] JMP 0x0011a07b LAB_0011a078: XOR R9D,R9D LAB_0011a07b: ADD R9,RCX ADD RDX,0xf AND RDX,-0x10 MOV R8,qword ptr [RDI] LEA RCX,[RDX + R9*0x1] ADD RCX,0x20 CMP RCX,R8 JBE 0x0011a0b4 LEA RSI,[0x14c664] LEA RDX,[0x14c6b3] XOR EBX,EBX MOV EDI,0x3 XOR EAX,EAX CALL 0x001167f0 JMP 0x0011a0fc LAB_0011a0b4: MOV RBX,qword ptr [RDI + 0x8] LEA RCX,[R9 + 0x20] MOV qword ptr [RBX + R9*0x1],RCX MOV qword ptr [RBX + R9*0x1 + 0x8],RDX MOV qword ptr [RBX + R9*0x1 + 0x10],0x0 MOV dword ptr [RBX + R9*0x1 + 0x18],ESI MOV dword ptr [RBX + R9*0x1 + 0x1c],0x0 ADD ECX,EBX TEST CL,0xf JNZ 0x0011a101 ADD RBX,R9 LEA RCX,[RDI + 0x18] LEA RDX,[RAX + 0x10] TEST RAX,RAX CMOVZ RDX,RCX MOV qword ptr [RDX],RBX MOV qword ptr [RDI + 0x20],RBX LAB_0011a0fc: MOV RAX,RBX POP RBX RET LAB_0011a101: LEA RDI,[0x14a60f] LEA RDX,[0x14a65a] LEA RCX,[0x14c6c3] MOV ESI,0x611 XOR EAX,EAX CALL 0x00117c70
ulong ggml_new_object(ulong *param_1,int4 param_2,long param_3) { long *plVar1; long lVar2; ulong uVar3; ulong *puVar4; ulong uVar5; long lVar6; plVar1 = (long *)param_1[4]; if (plVar1 == (long *)0x0) { lVar2 = 0; lVar6 = 0; } else { lVar2 = *plVar1; lVar6 = plVar1[1]; } lVar6 = lVar6 + lVar2; uVar3 = param_3 + 0xfU & 0xfffffffffffffff0; if (*param_1 < uVar3 + lVar6 + 0x20) { uVar5 = 0; ggml_log_internal(3, "%s: not enough space in the context\'s memory pool (needed %zu, available %zu)\n" ,"ggml_new_object"); } else { uVar5 = param_1[1]; *(long *)(uVar5 + lVar6) = lVar6 + 0x20; *(ulong *)(uVar5 + 8 + lVar6) = uVar3; *(int8 *)(uVar5 + 0x10 + lVar6) = 0; *(int4 *)(uVar5 + 0x18 + lVar6) = param_2; *(int4 *)(uVar5 + 0x1c + lVar6) = 0; if (((int)(lVar6 + 0x20) + (int)uVar5 & 0xfU) != 0) { /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c",0x611, "GGML_ASSERT(%s) failed", "((uintptr_t) (mem_buffer + obj_new->offs))%GGML_MEM_ALIGN == 0"); } uVar5 = uVar5 + lVar6; puVar4 = (ulong *)(plVar1 + 2); if (plVar1 == (long *)0x0) { puVar4 = param_1 + 3; } *puVar4 = uVar5; param_1[4] = uVar5; } return uVar5; }
31,361
ma_update_state_lsns_sub
eloqsql/storage/maria/ma_create.c
int _ma_update_state_lsns_sub(MARIA_SHARE *share, LSN lsn, TrID create_trid, my_bool do_sync, my_bool update_create_rename_lsn) { uchar buf[LSN_STORE_SIZE * 3], *ptr; uchar trid_buff[8]; File file= share->kfile.file; DBUG_ENTER("_ma_update_state_lsns_sub"); DBUG_ASSERT(file >= 0); CRASH_IF_S3_TABLE(share); if (lsn == LSN_IMPOSSIBLE) { int res; LEX_CUSTRING log_array[TRANSLOG_INTERNAL_PARTS + 1]; /* table name is logged only for information */ log_array[TRANSLOG_INTERNAL_PARTS + 0].str= (uchar *)(share->open_file_name.str); log_array[TRANSLOG_INTERNAL_PARTS + 0].length= share->open_file_name.length + 1; if ((res= translog_write_record(&lsn, LOGREC_IMPORTED_TABLE, &dummy_transaction_object, NULL, (translog_size_t) log_array[TRANSLOG_INTERNAL_PARTS + 0].length, sizeof(log_array)/sizeof(log_array[0]), log_array, NULL, NULL))) DBUG_RETURN(res); } for (ptr= buf; ptr < (buf + sizeof(buf)); ptr+= LSN_STORE_SIZE) lsn_store(ptr, lsn); share->state.skip_redo_lsn= share->state.is_of_horizon= lsn; share->state.create_trid= create_trid; mi_int8store(trid_buff, create_trid); /* Update create_rename_lsn if update was requested or if the old one had an impossible value. */ if (update_create_rename_lsn || (share->state.create_rename_lsn > lsn && lsn != LSN_IMPOSSIBLE)) { share->state.create_rename_lsn= lsn; if (share->id != 0) { /* If OP is the operation which is calling us, if table is later written, we could see in the log: FILE_ID ... REDO_OP ... REDO_INSERT. (that can happen in real life at least with OP=REPAIR). As FILE_ID will be ignored by Recovery because it is < create_rename_lsn, REDO_INSERT would be ignored too, wrongly. To avoid that, we force a LOGREC_FILE_ID to be logged at next write: */ translog_deassign_id_from_share(share); } } else lsn_store(buf, share->state.create_rename_lsn); DBUG_RETURN(my_pwrite(file, buf, sizeof(buf), sizeof(share->state.header) + MARIA_FILE_CREATE_RENAME_LSN_OFFSET, MYF(MY_NABP)) || my_pwrite(file, trid_buff, sizeof(trid_buff), sizeof(share->state.header) + MARIA_FILE_CREATE_TRID_OFFSET, MYF(MY_NABP)) || (do_sync && mysql_file_sync(file, MYF(0)))); }
O3
c
ma_update_state_lsns_sub: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xa8, %rsp movl %r8d, %r12d movl %ecx, %r14d movq %rdx, %rbx movq %rdi, %r15 movq %fs:0x28, %rax movq %rax, -0x30(%rbp) movq %rsi, -0x60(%rbp) movl 0x760(%rdi), %r13d testq %rsi, %rsi je 0x45bd9 movq %rsi, %rax shrq $0x20, %rax movq %rsi, %rcx shrq $0x28, %rcx movq %rsi, %rdx shrq $0x30, %rdx movq $-0x7, %rdi movb %al, -0x49(%rbp,%rdi) movb %cl, -0x48(%rbp,%rdi) movb %dl, -0x47(%rbp,%rdi) movl %esi, -0x46(%rbp,%rdi) addq $0x7, %rdi cmpq $0xe, %rdi jb 0x45b32 movq %rsi, 0x180(%r15) movq %rsi, 0x188(%r15) movq %rbx, 0xe0(%r15) movq %rbx, %rax shrq $0x20, %rax movb %al, -0x55(%rbp) movq %rbx, %rax shrq $0x28, %rax movb %al, -0x56(%rbp) movq %rbx, %rax shrq $0x30, %rax movb %al, -0x57(%rbp) movq %rbx, %rax shrq $0x38, %rax movb %al, -0x58(%rbp) movb %bl, -0x51(%rbp) movb %bh, -0x52(%rbp) movl %ebx, %eax shrl $0x10, %eax movb %al, -0x53(%rbp) shrl $0x18, %ebx movb %bl, -0x54(%rbp) testb %r12b, %r12b jne 0x45bb9 movq 0x178(%r15), %rax cmpq %rsi, %rax setle %cl testq %rsi, %rsi sete %dl orb %cl, %dl jne 0x45c32 movq %rsi, 0x178(%r15) cmpw $0x0, 0x620(%r15) je 0x45c53 movq %r15, %rdi callq 0x4d6a3 jmp 0x45c53 movq 0x5e0(%r15), %rax leaq -0xb0(%rbp), %rcx movq %rax, 0x20(%rcx) movq 0x5e8(%r15), %r8 incq %r8 movq %r8, 0x28(%rcx) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%rsp) movq %rcx, (%rsp) leaq 0x3b73d4(%rip), %rdx # 0x3fcfe0 leaq -0x60(%rbp), %rdi movl $0x29, %esi xorl %ecx, %ecx movl $0x3, %r9d callq 0x2a8ac testb %al, %al je 0x45cd6 movsbl %al, %ebx jmp 0x45ce1 movq %rax, %rcx shrq $0x20, %rcx movb %cl, -0x50(%rbp) movq %rax, %rcx shrq $0x28, %rcx movb %cl, -0x4f(%rbp) movq %rax, %rcx shrq $0x30, %rcx movb %cl, -0x4e(%rbp) movl %eax, -0x4d(%rbp) leaq -0x50(%rbp), %rsi movl $0x15, %edx movl $0x1c, %ecx movl $0x4, %r8d movl %r13d, %edi callq 0xa06d6 movl $0x1, %ebx testq %rax, %rax jne 0x45ce1 leaq -0x58(%rbp), %rsi movl $0x8, %edx movl $0x89, %ecx movl $0x4, %r8d movl %r13d, %edi callq 0xa06d6 testq %rax, %rax jne 0x45ce1 testb %r14b, %r14b je 0x45cdf leaq 0x34036a(%rip), %rax # 0x386010 movq (%rax), %rax leaq -0xb0(%rbp), %rdi movl %r13d, %esi movl $0x10, %edx callq *0x158(%rax) testq %rax, %rax jne 0x45d04 movl %r13d, %edi xorl %esi, %esi callq 0xa138c xorl %ebx, %ebx testl %eax, %eax setne %bl jmp 0x45ce1 movq -0x60(%rbp), %rsi jmp 0x45b16 xorl %ebx, %ebx movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0x45d1a movl %ebx, %eax addq $0xa8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq -0x64(%rbp), %rbx movq %rax, %rdi movl %r13d, %esi movq %rbx, %rdx callq 0x2a1e8 movl (%rbx), %eax jmp 0x45ccd callq 0x29270
_ma_update_state_lsns_sub: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 0A8h mov r12d, r8d mov r14d, ecx mov rbx, rdx mov r15, rdi mov rax, fs:28h mov [rbp+var_30], rax mov [rbp+var_60], rsi mov r13d, [rdi+760h] test rsi, rsi jz loc_45BD9 loc_45B16: mov rax, rsi shr rax, 20h mov rcx, rsi shr rcx, 28h mov rdx, rsi shr rdx, 30h mov rdi, 0FFFFFFFFFFFFFFF9h loc_45B32: mov [rbp+rdi+var_49], al mov [rbp+rdi+var_48], cl mov [rbp+rdi+var_47], dl mov [rbp+rdi+var_46], esi add rdi, 7 cmp rdi, 0Eh jb short loc_45B32 mov [r15+180h], rsi mov [r15+188h], rsi mov [r15+0E0h], rbx mov rax, rbx shr rax, 20h mov [rbp+var_55], al mov rax, rbx shr rax, 28h mov [rbp+var_56], al mov rax, rbx shr rax, 30h mov [rbp+var_57], al mov rax, rbx shr rax, 38h mov [rbp+var_58], al mov [rbp+var_51], bl mov [rbp+var_52], bh mov eax, ebx shr eax, 10h mov [rbp+var_53], al shr ebx, 18h mov [rbp+var_54], bl test r12b, r12b jnz short loc_45BB9 mov rax, [r15+178h] cmp rax, rsi setle cl test rsi, rsi setz dl or dl, cl jnz short loc_45C32 loc_45BB9: mov [r15+178h], rsi cmp word ptr [r15+620h], 0 jz loc_45C53 mov rdi, r15 call translog_deassign_id_from_share jmp short loc_45C53 loc_45BD9: mov rax, [r15+5E0h] lea rcx, [rbp+var_B0] mov [rcx+20h], rax mov r8, [r15+5E8h] inc r8 mov [rcx+28h], r8 xorps xmm0, xmm0 movups [rsp+0D0h+var_C8], xmm0 mov [rsp+0D0h+var_D0], rcx lea rdx, dummy_transaction_object lea rdi, [rbp+var_60] mov esi, 29h ; ')' xor ecx, ecx mov r9d, 3 call translog_write_record test al, al jz loc_45CD6 movsx ebx, al jmp loc_45CE1 loc_45C32: mov rcx, rax shr rcx, 20h mov [rbp+var_50], cl mov rcx, rax shr rcx, 28h mov [rbp+var_4F], cl mov rcx, rax shr rcx, 30h mov [rbp+var_4E], cl mov [rbp+var_4D], eax loc_45C53: lea rsi, [rbp+var_50] mov edx, 15h mov ecx, 1Ch mov r8d, 4 mov edi, r13d call my_pwrite mov ebx, 1 test rax, rax jnz short loc_45CE1 lea rsi, [rbp+var_58] mov edx, 8 mov ecx, 89h mov r8d, 4 mov edi, r13d call my_pwrite test rax, rax jnz short loc_45CE1 test r14b, r14b jz short loc_45CDF lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_B0] mov esi, r13d mov edx, 10h call qword ptr [rax+158h] test rax, rax jnz short loc_45D04 mov edi, r13d xor esi, esi call my_sync loc_45CCD: xor ebx, ebx test eax, eax setnz bl jmp short loc_45CE1 loc_45CD6: mov rsi, [rbp+var_60] jmp loc_45B16 loc_45CDF: xor ebx, ebx loc_45CE1: mov rax, fs:28h cmp rax, [rbp+var_30] jnz short loc_45D1A mov eax, ebx add rsp, 0A8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_45D04: lea rbx, [rbp+var_64] mov rdi, rax mov esi, r13d mov rdx, rbx call _ma_update_state_lsns_sub_cold_1 mov eax, [rbx] jmp short loc_45CCD loc_45D1A: call ___stack_chk_fail
long long ma_update_state_lsns_sub(long long a1, long long a2, long long a3, char a4, char a5) { unsigned int v9; // r13d unsigned long long v10; // rdi long long v11; // rax char v12; // al unsigned int v13; // ebx long long v14; // rax int v15; // eax _OWORD v17[2]; // [rsp+20h] [rbp-B0h] BYREF long long v18; // [rsp+40h] [rbp-90h] long long v19; // [rsp+48h] [rbp-88h] int v20; // [rsp+6Ch] [rbp-64h] BYREF long long v21; // [rsp+70h] [rbp-60h] BYREF _BYTE v22[8]; // [rsp+78h] [rbp-58h] BYREF _BYTE v23[3]; // [rsp+80h] [rbp-50h] BYREF int v24; // [rsp+83h] [rbp-4Dh] _BYTE v25[25]; // [rsp+87h] [rbp-49h] unsigned long long v26; // [rsp+A0h] [rbp-30h] v26 = __readfsqword(0x28u); v21 = a2; v9 = *(_DWORD *)(a1 + 1888); if ( !a2 ) { v18 = *(_QWORD *)(a1 + 1504); v19 = *(_QWORD *)(a1 + 1512) + 1LL; v12 = translog_write_record( (unsigned long long)&v21, (long long *)((char *)&qword_28 + 1), (long long)dummy_transaction_object, 0LL, v19, 3, v17, 0LL, 0LL); if ( v12 ) return (unsigned int)v12; a2 = v21; } v10 = -7LL; do { v25[v10] = BYTE4(a2); v25[v10 + 1] = BYTE5(a2); v25[v10 + 2] = BYTE6(a2); *(_DWORD *)&v25[v10 + 3] = a2; v10 += 7LL; } while ( v10 < 0xE ); *(_QWORD *)(a1 + 384) = a2; *(_QWORD *)(a1 + 392) = a2; *(_QWORD *)(a1 + 224) = a3; v22[3] = BYTE4(a3); v22[2] = BYTE5(a3); v22[1] = BYTE6(a3); v22[0] = HIBYTE(a3); v22[6] = BYTE1(a3); v22[7] = a3; v22[5] = BYTE2(a3); v22[4] = BYTE3(a3); if ( !a5 && (v11 = *(_QWORD *)(a1 + 376), v11 <= a2 || a2 == 0) ) { v23[0] = BYTE4(*(_QWORD *)(a1 + 376)); v23[1] = BYTE5(v11); v23[2] = BYTE6(v11); v24 = v11; } else { *(_QWORD *)(a1 + 376) = a2; if ( *(_WORD *)(a1 + 1568) ) translog_deassign_id_from_share(a1); } v13 = 1; if ( !my_pwrite(v9, v23, 21LL, 28LL, 4LL) && !my_pwrite(v9, v22, 8LL, 137LL, 4LL) ) { if ( a4 ) { v14 = ((long long ( *)(_OWORD *, _QWORD, long long))PSI_server[43])(v17, v9, 16LL); if ( v14 ) { ma_update_state_lsns_sub_cold_1(v14, v9, &v20); v15 = v20; } else { v15 = my_sync(v9, 0LL); } return v15 != 0; } else { return 0; } } return v13; }
_ma_update_state_lsns_sub: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xa8 MOV R12D,R8D MOV R14D,ECX MOV RBX,RDX MOV R15,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX MOV qword ptr [RBP + -0x60],RSI MOV R13D,dword ptr [RDI + 0x760] TEST RSI,RSI JZ 0x00145bd9 LAB_00145b16: MOV RAX,RSI SHR RAX,0x20 MOV RCX,RSI SHR RCX,0x28 MOV RDX,RSI SHR RDX,0x30 MOV RDI,-0x7 LAB_00145b32: MOV byte ptr [RBP + RDI*0x1 + -0x49],AL MOV byte ptr [RBP + RDI*0x1 + -0x48],CL MOV byte ptr [RBP + RDI*0x1 + -0x47],DL MOV dword ptr [RBP + RDI*0x1 + -0x46],ESI ADD RDI,0x7 CMP RDI,0xe JC 0x00145b32 MOV qword ptr [R15 + 0x180],RSI MOV qword ptr [R15 + 0x188],RSI MOV qword ptr [R15 + 0xe0],RBX MOV RAX,RBX SHR RAX,0x20 MOV byte ptr [RBP + -0x55],AL MOV RAX,RBX SHR RAX,0x28 MOV byte ptr [RBP + -0x56],AL MOV RAX,RBX SHR RAX,0x30 MOV byte ptr [RBP + -0x57],AL MOV RAX,RBX SHR RAX,0x38 MOV byte ptr [RBP + -0x58],AL MOV byte ptr [RBP + -0x51],BL MOV byte ptr [RBP + -0x52],BH MOV EAX,EBX SHR EAX,0x10 MOV byte ptr [RBP + -0x53],AL SHR EBX,0x18 MOV byte ptr [RBP + -0x54],BL TEST R12B,R12B JNZ 0x00145bb9 MOV RAX,qword ptr [R15 + 0x178] CMP RAX,RSI SETLE CL TEST RSI,RSI SETZ DL OR DL,CL JNZ 0x00145c32 LAB_00145bb9: MOV qword ptr [R15 + 0x178],RSI CMP word ptr [R15 + 0x620],0x0 JZ 0x00145c53 MOV RDI,R15 CALL 0x0014d6a3 JMP 0x00145c53 LAB_00145bd9: MOV RAX,qword ptr [R15 + 0x5e0] LEA RCX,[RBP + -0xb0] MOV qword ptr [RCX + 0x20],RAX MOV R8,qword ptr [R15 + 0x5e8] INC R8 MOV qword ptr [RCX + 0x28],R8 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RSP + 0x8],XMM0 MOV qword ptr [RSP],RCX LEA RDX,[0x4fcfe0] LEA RDI,[RBP + -0x60] MOV ESI,0x29 XOR ECX,ECX MOV R9D,0x3 CALL 0x0012a8ac TEST AL,AL JZ 0x00145cd6 MOVSX EBX,AL JMP 0x00145ce1 LAB_00145c32: MOV RCX,RAX SHR RCX,0x20 MOV byte ptr [RBP + -0x50],CL MOV RCX,RAX SHR RCX,0x28 MOV byte ptr [RBP + -0x4f],CL MOV RCX,RAX SHR RCX,0x30 MOV byte ptr [RBP + -0x4e],CL MOV dword ptr [RBP + -0x4d],EAX LAB_00145c53: LEA RSI,[RBP + -0x50] MOV EDX,0x15 MOV ECX,0x1c MOV R8D,0x4 MOV EDI,R13D CALL 0x001a06d6 MOV EBX,0x1 TEST RAX,RAX JNZ 0x00145ce1 LEA RSI,[RBP + -0x58] MOV EDX,0x8 MOV ECX,0x89 MOV R8D,0x4 MOV EDI,R13D CALL 0x001a06d6 TEST RAX,RAX JNZ 0x00145ce1 TEST R14B,R14B JZ 0x00145cdf LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0xb0] MOV ESI,R13D MOV EDX,0x10 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x00145d04 MOV EDI,R13D XOR ESI,ESI CALL 0x001a138c LAB_00145ccd: XOR EBX,EBX TEST EAX,EAX SETNZ BL JMP 0x00145ce1 LAB_00145cd6: MOV RSI,qword ptr [RBP + -0x60] JMP 0x00145b16 LAB_00145cdf: XOR EBX,EBX LAB_00145ce1: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x00145d1a MOV EAX,EBX ADD RSP,0xa8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00145d04: LEA RBX,[RBP + -0x64] MOV RDI,RAX MOV ESI,R13D MOV RDX,RBX CALL 0x0012a1e8 MOV EAX,dword ptr [RBX] JMP 0x00145ccd LAB_00145d1a: CALL 0x00129270
uint _ma_update_state_lsns_sub (long param_1,long param_2,int8 param_3,char param_4,char param_5) { int4 uVar1; char cVar2; long lVar3; uint uVar4; ulong uVar5; long in_FS_OFFSET; int1 local_b8 [32]; int8 local_98; long local_90; int local_6c; long local_68; int1 local_60; int1 local_5f; int1 local_5e; int1 local_5d; int1 local_5c; int1 local_5b; int1 local_5a; int1 local_59; int1 local_58; int1 local_57; int1 local_56; int4 local_55; int1 auStack_51 [3]; int4 auStack_4e [5]; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); uVar1 = *(int4 *)(param_1 + 0x760); local_68 = param_2; if (param_2 == 0) { local_98 = *(int8 *)(param_1 + 0x5e0); local_90 = *(long *)(param_1 + 0x5e8) + 1; cVar2 = translog_write_record(&local_68,0x29,dummy_transaction_object,0,local_90,3,local_b8,0,0) ; if (cVar2 != '\0') { uVar4 = (uint)cVar2; goto LAB_00145ce1; } } uVar5 = 0xfffffffffffffff9; do { auStack_51[uVar5] = (char)((ulong)local_68 >> 0x20); auStack_51[uVar5 + 1] = (char)((ulong)local_68 >> 0x28); auStack_51[uVar5 + 2] = (char)((ulong)local_68 >> 0x30); *(int *)(auStack_51 + uVar5 + 3) = (int)local_68; uVar5 = uVar5 + 7; } while (uVar5 < 0xe); *(long *)(param_1 + 0x180) = local_68; *(long *)(param_1 + 0x188) = local_68; *(int8 *)(param_1 + 0xe0) = param_3; local_5d = (int1)((ulong)param_3 >> 0x20); local_5e = (int1)((ulong)param_3 >> 0x28); local_5f = (int1)((ulong)param_3 >> 0x30); local_60 = (int1)((ulong)param_3 >> 0x38); local_59 = (int1)param_3; local_5a = (int1)((ulong)param_3 >> 8); local_5b = (int1)((ulong)param_3 >> 0x10); local_5c = (int1)((ulong)param_3 >> 0x18); if ((param_5 == '\0') && (lVar3 = *(long *)(param_1 + 0x178), local_68 == 0 || lVar3 <= local_68)) { local_58 = (int1)((ulong)lVar3 >> 0x20); local_57 = (int1)((ulong)lVar3 >> 0x28); local_56 = (int1)((ulong)lVar3 >> 0x30); local_55 = (int4)lVar3; } else { *(long *)(param_1 + 0x178) = local_68; if (*(short *)(param_1 + 0x620) != 0) { translog_deassign_id_from_share(param_1); } } lVar3 = my_pwrite(uVar1,&local_58,0x15,0x1c,4); uVar4 = 1; if ((lVar3 == 0) && (lVar3 = my_pwrite(uVar1,&local_60,8,0x89,4), lVar3 == 0)) { if (param_4 == '\0') { uVar4 = 0; } else { lVar3 = (**(code **)(PSI_server + 0x158))(local_b8,uVar1,0x10); if (lVar3 == 0) { local_6c = my_sync(uVar1,0); } else { _ma_update_state_lsns_sub_cold_1(lVar3,uVar1,&local_6c); } uVar4 = (uint)(local_6c != 0); } } LAB_00145ce1: if (*(long *)(in_FS_OFFSET + 0x28) != local_38) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return uVar4; }
31,362
ma_kpointer
eloqsql/storage/maria/ma_search.c
void _ma_kpointer(register MARIA_HA *info, register uchar *buff, my_off_t pos) { pos/=maria_block_size; switch (info->s->base.key_reflength) { #if SIZEOF_OFF_T > 4 case 7: mi_int7store(buff,pos); break; case 6: mi_int6store(buff,pos); break; case 5: mi_int5store(buff,pos); break; #else case 7: *buff++=0; /* fall through */ case 6: *buff++=0; /* fall through */ case 5: *buff++=0; /* fall through */ #endif case 4: mi_int4store(buff,pos); break; case 3: mi_int3store(buff,pos); break; case 2: mi_int2store(buff,(uint) pos); break; case 1: buff[0]= (uchar) pos; break; default: abort(); /* impossible */ } }
O0
c
ma_kpointer: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) leaq 0x252445(%rip), %rax # 0x2bd200 movq (%rax), %rcx movq -0x18(%rbp), %rax xorl %edx, %edx divq %rcx movq %rax, -0x18(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movl 0x3e4(%rax), %eax decl %eax movl %eax, %ecx movq %rcx, -0x68(%rbp) subl $0x6, %eax ja 0x6b011 movq -0x68(%rbp), %rax leaq 0xee0b8(%rip), %rcx # 0x158eac movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq -0x18(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x18(%rbp), %rax shrq $0x20, %rax movq %rax, -0x28(%rbp) movq -0x20(%rbp), %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x6(%rax) movq -0x20(%rbp), %rax shrq $0x8, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x5(%rax) movq -0x20(%rbp), %rax shrq $0x10, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x4(%rax) movq -0x20(%rbp), %rax shrq $0x18, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x3(%rax) movq -0x28(%rbp), %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x2(%rax) movq -0x28(%rbp), %rax shrq $0x8, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x1(%rax) movq -0x28(%rbp), %rax shrq $0x10, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, (%rax) jmp 0x6b016 movq -0x18(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x18(%rbp), %rax shrq $0x20, %rax movq %rax, -0x38(%rbp) movq -0x30(%rbp), %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x5(%rax) movq -0x30(%rbp), %rax shrq $0x8, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x4(%rax) movq -0x30(%rbp), %rax shrq $0x10, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x3(%rax) movq -0x30(%rbp), %rax shrq $0x18, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x2(%rax) movq -0x38(%rbp), %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x1(%rax) movq -0x38(%rbp), %rax shrq $0x8, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, (%rax) jmp 0x6b016 movq -0x18(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x18(%rbp), %rax shrq $0x20, %rax movq %rax, -0x48(%rbp) movq -0x40(%rbp), %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x4(%rax) movq -0x40(%rbp), %rax shrq $0x8, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x3(%rax) movq -0x40(%rbp), %rax shrq $0x10, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x2(%rax) movq -0x40(%rbp), %rax shrq $0x18, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x1(%rax) movq -0x48(%rbp), %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, (%rax) jmp 0x6b016 movq -0x18(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x50(%rbp), %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x3(%rax) movq -0x50(%rbp), %rax shrq $0x8, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x2(%rax) movq -0x50(%rbp), %rax shrq $0x10, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x1(%rax) movq -0x50(%rbp), %rax shrq $0x18, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, (%rax) jmp 0x6b016 movq -0x18(%rbp), %rax movq %rax, -0x58(%rbp) movq -0x58(%rbp), %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x2(%rax) movq -0x58(%rbp), %rax shrq $0x8, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x1(%rax) movq -0x58(%rbp), %rax shrq $0x10, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, (%rax) jmp 0x6b016 movq -0x18(%rbp), %rax movl %eax, -0x5c(%rbp) movl -0x5c(%rbp), %eax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x1(%rax) movl -0x5c(%rbp), %eax shrl $0x8, %eax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, (%rax) jmp 0x6b016 movq -0x18(%rbp), %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, (%rax) jmp 0x6b016 callq 0x2a5d0 addq $0x70, %rsp popq %rbp retq nopl (%rax)
_ma_kpointer: push rbp mov rbp, rsp sub rsp, 70h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx lea rax, maria_block_size mov rcx, [rax] mov rax, [rbp+var_18] xor edx, edx div rcx mov [rbp+var_18], rax mov rax, [rbp+var_8] mov rax, [rax] mov eax, [rax+3E4h] dec eax; switch 7 cases mov ecx, eax mov [rbp+var_68], rcx sub eax, 6 ja def_6ADFB; jumptable 000000000006ADFB default case mov rax, [rbp+var_68] lea rcx, jpt_6ADFB movsxd rax, ds:(jpt_6ADFB - 158EACh)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_6ADFD: mov rax, [rbp+var_18]; jumptable 000000000006ADFB case 7 mov [rbp+var_20], rax mov rax, [rbp+var_18] shr rax, 20h mov [rbp+var_28], rax mov rax, [rbp+var_20] mov cl, al mov rax, [rbp+var_10] mov [rax+6], cl mov rax, [rbp+var_20] shr rax, 8 mov cl, al mov rax, [rbp+var_10] mov [rax+5], cl mov rax, [rbp+var_20] shr rax, 10h mov cl, al mov rax, [rbp+var_10] mov [rax+4], cl mov rax, [rbp+var_20] shr rax, 18h mov cl, al mov rax, [rbp+var_10] mov [rax+3], cl mov rax, [rbp+var_28] mov cl, al mov rax, [rbp+var_10] mov [rax+2], cl mov rax, [rbp+var_28] shr rax, 8 mov cl, al mov rax, [rbp+var_10] mov [rax+1], cl mov rax, [rbp+var_28] shr rax, 10h mov cl, al mov rax, [rbp+var_10] mov [rax], cl jmp loc_6B016 loc_6AE84: mov rax, [rbp+var_18]; jumptable 000000000006ADFB case 6 mov [rbp+var_30], rax mov rax, [rbp+var_18] shr rax, 20h mov [rbp+var_38], rax mov rax, [rbp+var_30] mov cl, al mov rax, [rbp+var_10] mov [rax+5], cl mov rax, [rbp+var_30] shr rax, 8 mov cl, al mov rax, [rbp+var_10] mov [rax+4], cl mov rax, [rbp+var_30] shr rax, 10h mov cl, al mov rax, [rbp+var_10] mov [rax+3], cl mov rax, [rbp+var_30] shr rax, 18h mov cl, al mov rax, [rbp+var_10] mov [rax+2], cl mov rax, [rbp+var_38] mov cl, al mov rax, [rbp+var_10] mov [rax+1], cl mov rax, [rbp+var_38] shr rax, 8 mov cl, al mov rax, [rbp+var_10] mov [rax], cl jmp loc_6B016 loc_6AEFA: mov rax, [rbp+var_18]; jumptable 000000000006ADFB case 5 mov [rbp+var_40], rax mov rax, [rbp+var_18] shr rax, 20h mov [rbp+var_48], rax mov rax, [rbp+var_40] mov cl, al mov rax, [rbp+var_10] mov [rax+4], cl mov rax, [rbp+var_40] shr rax, 8 mov cl, al mov rax, [rbp+var_10] mov [rax+3], cl mov rax, [rbp+var_40] shr rax, 10h mov cl, al mov rax, [rbp+var_10] mov [rax+2], cl mov rax, [rbp+var_40] shr rax, 18h mov cl, al mov rax, [rbp+var_10] mov [rax+1], cl mov rax, [rbp+var_48] mov cl, al mov rax, [rbp+var_10] mov [rax], cl jmp loc_6B016 loc_6AF5F: mov rax, [rbp+var_18]; jumptable 000000000006ADFB case 4 mov [rbp+var_50], rax mov rax, [rbp+var_50] mov cl, al mov rax, [rbp+var_10] mov [rax+3], cl mov rax, [rbp+var_50] shr rax, 8 mov cl, al mov rax, [rbp+var_10] mov [rax+2], cl mov rax, [rbp+var_50] shr rax, 10h mov cl, al mov rax, [rbp+var_10] mov [rax+1], cl mov rax, [rbp+var_50] shr rax, 18h mov cl, al mov rax, [rbp+var_10] mov [rax], cl jmp short loc_6B016 loc_6AFA8: mov rax, [rbp+var_18]; jumptable 000000000006ADFB case 3 mov [rbp+var_58], rax mov rax, [rbp+var_58] mov cl, al mov rax, [rbp+var_10] mov [rax+2], cl mov rax, [rbp+var_58] shr rax, 8 mov cl, al mov rax, [rbp+var_10] mov [rax+1], cl mov rax, [rbp+var_58] shr rax, 10h mov cl, al mov rax, [rbp+var_10] mov [rax], cl jmp short loc_6B016 loc_6AFE0: mov rax, [rbp+var_18]; jumptable 000000000006ADFB case 2 mov [rbp+var_5C], eax mov eax, [rbp+var_5C] mov cl, al mov rax, [rbp+var_10] mov [rax+1], cl mov eax, [rbp+var_5C] shr eax, 8 mov cl, al mov rax, [rbp+var_10] mov [rax], cl jmp short loc_6B016 loc_6B003: mov rax, [rbp+var_18]; jumptable 000000000006ADFB case 1 mov cl, al mov rax, [rbp+var_10] mov [rax], cl jmp short loc_6B016 def_6ADFB: call _abort; jumptable 000000000006ADFB default case loc_6B016: add rsp, 70h pop rbp retn
_BYTE * ma_kpointer(long long a1, _BYTE *a2, unsigned long long a3) { unsigned long long v3; // rdx _BYTE *result; // rax unsigned long long v6; // [rsp+58h] [rbp-18h] v3 = a3 % *(_QWORD *)&maria_block_size; v6 = a3 / *(_QWORD *)&maria_block_size; switch ( *(_DWORD *)(*(_QWORD *)a1 + 996LL) ) { case 1: result = a2; *a2 = v6; break; case 2: a2[1] = v6; result = a2; *a2 = BYTE1(v6); break; case 3: a2[2] = v6; a2[1] = BYTE1(v6); result = a2; *a2 = BYTE2(v6); break; case 4: a2[3] = v6; a2[2] = BYTE1(v6); a2[1] = BYTE2(v6); result = a2; *a2 = BYTE3(v6); break; case 5: a2[4] = v6; a2[3] = BYTE1(v6); a2[2] = BYTE2(v6); a2[1] = BYTE3(v6); result = a2; *a2 = BYTE4(v6); break; case 6: a2[5] = v6; a2[4] = BYTE1(v6); a2[3] = BYTE2(v6); a2[2] = BYTE3(v6); a2[1] = BYTE4(v6); result = a2; *a2 = BYTE5(v6); break; case 7: a2[6] = v6; a2[5] = BYTE1(v6); a2[4] = BYTE2(v6); a2[3] = BYTE3(v6); a2[2] = BYTE4(v6); a2[1] = BYTE5(v6); result = a2; *a2 = BYTE6(v6); break; default: abort(a1, a2, v3); } return result; }
_ma_kpointer: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX LEA RAX,[0x3bd200] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x18] XOR EDX,EDX DIV RCX MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV EAX,dword ptr [RAX + 0x3e4] DEC EAX MOV ECX,EAX MOV qword ptr [RBP + -0x68],RCX SUB EAX,0x6 JA 0x0016b011 MOV RAX,qword ptr [RBP + -0x68] LEA RCX,[0x258eac] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_7: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x18] SHR RAX,0x20 MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x20] MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x6],CL MOV RAX,qword ptr [RBP + -0x20] SHR RAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x5],CL MOV RAX,qword ptr [RBP + -0x20] SHR RAX,0x10 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x4],CL MOV RAX,qword ptr [RBP + -0x20] SHR RAX,0x18 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x3],CL MOV RAX,qword ptr [RBP + -0x28] MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x2],CL MOV RAX,qword ptr [RBP + -0x28] SHR RAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x1],CL MOV RAX,qword ptr [RBP + -0x28] SHR RAX,0x10 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],CL JMP 0x0016b016 caseD_6: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x18] SHR RAX,0x20 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x30] MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x5],CL MOV RAX,qword ptr [RBP + -0x30] SHR RAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x4],CL MOV RAX,qword ptr [RBP + -0x30] SHR RAX,0x10 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x3],CL MOV RAX,qword ptr [RBP + -0x30] SHR RAX,0x18 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x2],CL MOV RAX,qword ptr [RBP + -0x38] MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x1],CL MOV RAX,qword ptr [RBP + -0x38] SHR RAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],CL JMP 0x0016b016 caseD_5: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x18] SHR RAX,0x20 MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x40] MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x4],CL MOV RAX,qword ptr [RBP + -0x40] SHR RAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x3],CL MOV RAX,qword ptr [RBP + -0x40] SHR RAX,0x10 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x2],CL MOV RAX,qword ptr [RBP + -0x40] SHR RAX,0x18 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x1],CL MOV RAX,qword ptr [RBP + -0x48] MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],CL JMP 0x0016b016 caseD_4: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x50] MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x3],CL MOV RAX,qword ptr [RBP + -0x50] SHR RAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x2],CL MOV RAX,qword ptr [RBP + -0x50] SHR RAX,0x10 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x1],CL MOV RAX,qword ptr [RBP + -0x50] SHR RAX,0x18 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],CL JMP 0x0016b016 caseD_3: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x58] MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x2],CL MOV RAX,qword ptr [RBP + -0x58] SHR RAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x1],CL MOV RAX,qword ptr [RBP + -0x58] SHR RAX,0x10 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],CL JMP 0x0016b016 caseD_2: MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RBP + -0x5c],EAX MOV EAX,dword ptr [RBP + -0x5c] MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x1],CL MOV EAX,dword ptr [RBP + -0x5c] SHR EAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],CL JMP 0x0016b016 caseD_1: MOV RAX,qword ptr [RBP + -0x18] MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],CL JMP 0x0016b016 default: CALL 0x0012a5d0 LAB_0016b016: ADD RSP,0x70 POP RBP RET
void _ma_kpointer(long *param_1,int1 *param_2,ulong param_3) { int1 uVar1; int1 uVar2; int1 uVar3; int1 uVar4; int1 uVar5; int1 uVar6; param_3 = param_3 / maria_block_size; uVar1 = (int1)param_3; uVar2 = (int1)(param_3 >> 8); uVar3 = (int1)(param_3 >> 0x10); uVar4 = (int1)(param_3 >> 0x18); uVar5 = (int1)(param_3 >> 0x20); uVar6 = (int1)(param_3 >> 0x28); switch(*(int4 *)(*param_1 + 0x3e4)) { case 1: *param_2 = uVar1; break; case 2: param_2[1] = uVar1; *param_2 = uVar2; break; case 3: param_2[2] = uVar1; param_2[1] = uVar2; *param_2 = uVar3; break; case 4: param_2[3] = uVar1; param_2[2] = uVar2; param_2[1] = uVar3; *param_2 = uVar4; break; case 5: param_2[4] = uVar1; param_2[3] = uVar2; param_2[2] = uVar3; param_2[1] = uVar4; *param_2 = uVar5; break; case 6: param_2[5] = uVar1; param_2[4] = uVar2; param_2[3] = uVar3; param_2[2] = uVar4; param_2[1] = uVar5; *param_2 = uVar6; break; case 7: param_2[6] = uVar1; param_2[5] = uVar2; param_2[4] = uVar3; param_2[3] = uVar4; param_2[2] = uVar5; param_2[1] = uVar6; *param_2 = (char)(param_3 >> 0x30); break; default: /* WARNING: Subroutine does not return */ abort(); } return; }
31,363
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [26], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char>(char const (&) [26], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char&&)
monkey531[P]llama/common/json.hpp
inline OutStringType concat(Args && ... args) { OutStringType str; str.reserve(concat_length(args...)); concat_into(str, std::forward<Args>(args)...); return str; }
O1
cpp
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [26], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char>(char const (&) [26], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char&&): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx leaq 0x10(%rdi), %r13 movq %r13, (%rdi) movq $0x0, 0x8(%rdi) movb $0x0, 0x10(%rdi) movq %rsi, %rdi callq 0x1b3f0 movq %rax, %r12 movq (%r14), %rdi callq 0x1b3f0 addq %rax, %r12 movq %rbx, %rdi movq %r12, %rsi callq 0x1bd80 movq %rbx, %rdi movq %r15, %rsi callq 0x1c0e0 movq (%r14), %rsi movq %rbx, %rdi callq 0x1c0e0 movq %rbx, %rax popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq %rax, %r14 movq (%rbx), %rdi cmpq %r13, %rdi je 0xa33e4 movq (%r13), %rsi incq %rsi callq 0x1b8e0 movq %r14, %rdi callq 0x1bf90
_ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA52_KcPS9_EEET_DpOT0_: push r15 push r14 push r13 push r12 push rbx mov r14, rdx mov r15, rsi mov rbx, rdi lea r13, [rdi+10h] mov [rdi], r13 mov qword ptr [rdi+8], 0 mov byte ptr [rdi+10h], 0 mov rdi, rsi call _strlen mov r12, rax mov rdi, [r14] call _strlen add r12, rax mov rdi, rbx mov rsi, r12 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) mov rdi, rbx mov rsi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rsi, [r14] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rax, rbx pop rbx pop r12 pop r13 pop r14 pop r15 retn mov r14, rax mov rdi, [rbx]; void * cmp rdi, r13 jz short loc_A33E4 mov rsi, [r13+0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_A33E4: mov rdi, r14 call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[52],char const*>( long long a1, long long a2, _QWORD *a3) { long long v4; // r12 long long v5; // rax *(_QWORD *)a1 = a1 + 16; *(_QWORD *)(a1 + 8) = 0LL; *(_BYTE *)(a1 + 16) = 0; v4 = strlen(a2); v5 = strlen(*a3); std::string::reserve(a1, v5 + v4); std::string::append(a1, a2); std::string::append(a1, *a3); return a1; }
concat<std::__cxx11::string,char_const(&)[52],char_const*>: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX MOV R14,RDX MOV R15,RSI MOV RBX,RDI LEA R13,[RDI + 0x10] MOV qword ptr [RDI],R13 MOV qword ptr [RDI + 0x8],0x0 MOV byte ptr [RDI + 0x10],0x0 MOV RDI,RSI CALL 0x0011b3f0 MOV R12,RAX MOV RDI,qword ptr [R14] CALL 0x0011b3f0 ADD R12,RAX LAB_001a339f: MOV RDI,RBX MOV RSI,R12 CALL 0x0011bd80 MOV RDI,RBX MOV RSI,R15 CALL 0x0011c0e0 MOV RSI,qword ptr [R14] MOV RDI,RBX CALL 0x0011c0e0 LAB_001a33c0: MOV RAX,RBX POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char const (&) [52], char const*>(char const (&) [52], char const*&&) */ detail * __thiscall nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[52],char_const*> (detail *this,char *param_1,char **param_2) { *(detail **)this = this + 0x10; *(int8 *)(this + 8) = 0; this[0x10] = (detail)0x0; strlen(param_1); strlen(*param_2); /* try { // try from 001a339f to 001a33bf has its CatchHandler @ 001a33cd */ std::__cxx11::string::reserve((ulong)this); std::__cxx11::string::append((char *)this); std::__cxx11::string::append((char *)this); return this; }
31,364
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [26], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char>(char const (&) [26], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char&&)
monkey531[P]llama/common/json.hpp
inline OutStringType concat(Args && ... args) { OutStringType str; str.reserve(concat_length(args...)); concat_into(str, std::forward<Args>(args)...); return str; }
O2
cpp
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [26], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char>(char const (&) [26], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char&&): pushq %r15 pushq %r14 pushq %rbx movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx leaq 0x10(%rdi), %rax movq %rax, (%rdi) andq $0x0, 0x8(%rdi) movb $0x0, 0x10(%rdi) movq %rsi, %rdi movq %rdx, %rsi callq 0x427fd movq %rbx, %rdi movq %rax, %rsi callq 0x23d90 movq %rbx, %rdi movq %r15, %rsi movq %r14, %rdx callq 0x8802e movq %rbx, %rax popq %rbx popq %r14 popq %r15 retq movq %rax, %r14 movq %rbx, %rdi callq 0x241c8 movq %r14, %rdi callq 0x23f90
_ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA39_KcS8_EEET_DpOT0_: push r15 push r14 push rbx mov r14, rdx mov r15, rsi mov rbx, rdi lea rax, [rdi+10h] mov [rdi], rax and qword ptr [rdi+8], 0 mov byte ptr [rdi+10h], 0 mov rdi, rsi mov rsi, rdx call _ZN8nlohmann16json_abi_v3_11_36detail13concat_lengthIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEmPKcDpRKT_; nlohmann::json_abi_v3_11_3::detail::concat_length<std::string>(char const*,std::string const&) mov rdi, rbx mov rsi, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) mov rdi, rbx mov rsi, r15 mov rdx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA39_KcJS8_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSD_OSE_DpOT1_ mov rax, rbx pop rbx pop r14 pop r15 retn mov r14, rax mov rdi, rbx; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, r14 call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[39],std::string>( long long a1, long long a2, long long a3) { long long v4; // rax *(_QWORD *)a1 = a1 + 16; *(_QWORD *)(a1 + 8) = 0LL; *(_BYTE *)(a1 + 16) = 0; v4 = nlohmann::json_abi_v3_11_3::detail::concat_length<std::string>(a2, a3); std::string::reserve(a1, v4); ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA39_KcJS8_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSD_OSE_DpOT1_( a1, a2, a3); return a1; }
concat<std::__cxx11::string,char_const(&)[39],std::__cxx11::string>: PUSH R15 PUSH R14 PUSH RBX MOV R14,RDX MOV R15,RSI MOV RBX,RDI LEA RAX,[RDI + 0x10] MOV qword ptr [RDI],RAX AND qword ptr [RDI + 0x8],0x0 MOV byte ptr [RDI + 0x10],0x0 LAB_00187f27: MOV RDI,RSI MOV RSI,RDX CALL 0x001427fd MOV RDI,RBX MOV RSI,RAX CALL 0x00123d90 MOV RDI,RBX MOV RSI,R15 MOV RDX,R14 CALL 0x0018802e LAB_00187f4b: MOV RAX,RBX POP RBX POP R14 POP R15 RET
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char const (&) [39], std::__cxx11::string >(char const (&) [39], std::__cxx11::string&&) */ detail * __thiscall nlohmann::json_abi_v3_11_3::detail:: concat<std::__cxx11::string,char_const(&)[39],std::__cxx11::string> (detail *this,char *param_1,string *param_2) { *(detail **)this = this + 0x10; *(int8 *)(this + 8) = 0; this[0x10] = (detail)0x0; /* try { // try from 00187f27 to 00187f4a has its CatchHandler @ 00187f54 */ concat_length<std::__cxx11::string>(param_1,param_2); std::__cxx11::string::reserve((ulong)this); _ZN8nlohmann16json_abi_v3_11_36detail11concat_intoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA39_KcJS8_ETnNSt9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSD_OSE_DpOT1_ (this,param_1,param_2); return this; }
31,365
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [26], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char>(char const (&) [26], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char&&)
monkey531[P]llama/common/json.hpp
inline OutStringType concat(Args && ... args) { OutStringType str; str.reserve(concat_length(args...)); concat_into(str, std::forward<Args>(args)...); return str; }
O3
cpp
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const (&) [26], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char>(char const (&) [26], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char&&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rcx, %r14 movq %rdx, %r15 movq %rsi, %r12 movq %rdi, %rbx leaq 0x10(%rdi), %rbp movq %rbp, (%rdi) movq $0x0, 0x8(%rdi) movb $0x0, 0x10(%rdi) movq %rsi, %rdi callq 0x1a3f0 movq %rax, %r13 addq 0x8(%r15), %r13 movq %r14, %rdi callq 0x1a3f0 addq %rax, %r13 movq %rbx, %rdi movq %r13, %rsi callq 0x1ad80 movq %rbx, %rdi movq %r12, %rsi callq 0x1b0e0 movq (%r15), %rsi movq 0x8(%r15), %rdx movq %rbx, %rdi callq 0x1a270 movq %rbx, %rdi movq %r14, %rsi callq 0x1b0e0 movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %r14 movq (%rbx), %rdi cmpq %rbp, %rdi je 0xaba8b movq (%rbp), %rsi incq %rsi callq 0x1a8e0 movq %r14, %rdi callq 0x1af90 nop
_ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA6_KcS8_RA12_S9_EEET_DpOT0_: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r14, rcx mov r15, rdx mov r12, rsi mov rbx, rdi lea rbp, [rdi+10h] mov [rdi], rbp mov qword ptr [rdi+8], 0 mov byte ptr [rdi+10h], 0 mov rdi, rsi call _strlen mov r13, rax add r13, [r15+8] mov rdi, r14 call _strlen add r13, rax mov rdi, rbx mov rsi, r13 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) mov rdi, rbx mov rsi, r12 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rsi, [r15] mov rdx, [r15+8] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rdi, rbx mov rsi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rax, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov r14, rax mov rdi, [rbx]; void * cmp rdi, rbp jz short loc_ABA8B mov rsi, [rbp+0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_ABA8B: mov rdi, r14 call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>( long long a1, long long a2, _QWORD *a3, long long a4) { long long v6; // r13 long long v7; // rax *(_QWORD *)a1 = a1 + 16; *(_QWORD *)(a1 + 8) = 0LL; *(_BYTE *)(a1 + 16) = 0; v6 = a3[1] + strlen(a2); v7 = strlen(a4); std::string::reserve(a1, v7 + v6); std::string::append(a1, a2); std::string::_M_append(a1, *a3, a3[1]); std::string::append(a1, a4); return a1; }
concat<std::__cxx11::string,char_const(&)[6],std::__cxx11::string,char_const(&)[12]>: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,RCX MOV R15,RDX MOV R12,RSI MOV RBX,RDI LEA RBP,[RDI + 0x10] MOV qword ptr [RDI],RBP MOV qword ptr [RDI + 0x8],0x0 MOV byte ptr [RDI + 0x10],0x0 MOV RDI,RSI CALL 0x0011a3f0 MOV R13,RAX ADD R13,qword ptr [R15 + 0x8] MOV RDI,R14 CALL 0x0011a3f0 ADD R13,RAX LAB_001aba32: MOV RDI,RBX MOV RSI,R13 CALL 0x0011ad80 MOV RDI,RBX MOV RSI,R12 CALL 0x0011b0e0 MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] MOV RDI,RBX CALL 0x0011a270 MOV RDI,RBX MOV RSI,R14 CALL 0x0011b0e0 LAB_001aba62: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* std::__cxx11::string nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string, char const (&) [6], std::__cxx11::string, char const (&) [12]>(char const (&) [6], std::__cxx11::string&&, char const (&) [12]) */ detail * __thiscall nlohmann::json_abi_v3_11_3::detail:: concat<std::__cxx11::string,char_const(&)[6],std::__cxx11::string,char_const(&)[12]> (detail *this,char *param_1,string *param_2,char *param_3) { *(detail **)this = this + 0x10; *(int8 *)(this + 8) = 0; this[0x10] = (detail)0x0; strlen(param_1); strlen(param_3); /* try { // try from 001aba32 to 001aba61 has its CatchHandler @ 001aba74 */ std::__cxx11::string::reserve((ulong)this); std::__cxx11::string::append((char *)this); std::__cxx11::string::_M_append((char *)this,*(ulong *)param_2); std::__cxx11::string::append((char *)this); return this; }
31,366
update_backward_delete_link
eloqsql/storage/myisam/mi_dynrec.c
static int update_backward_delete_link(MI_INFO *info, my_off_t delete_block, my_off_t filepos) { MI_BLOCK_INFO block_info; DBUG_ENTER("update_backward_delete_link"); if (delete_block != HA_OFFSET_ERROR) { block_info.second_read=0; if (_mi_get_block_info(&block_info,info->dfile,delete_block) & BLOCK_DELETED) { uchar buff[8]; mi_sizestore(buff,filepos); if (info->s->file_write(info,buff, 8, delete_block+12, MYF(MY_NABP))) DBUG_RETURN(1); /* Error on write */ } else { my_errno=HA_ERR_WRONG_IN_RECORD; DBUG_RETURN(1); /* Wrong delete link */ } } DBUG_RETURN(0); }
O0
c
update_backward_delete_link: pushq %rbp movq %rsp, %rbp subq $0xb0, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x78(%rbp) movq %rsi, -0x80(%rbp) movq %rdx, -0x88(%rbp) cmpq $-0x1, -0x80(%rbp) je 0xafb84 movl $0x0, -0x10(%rbp) movq -0x78(%rbp), %rax movl 0x1c0(%rax), %esi movq -0x80(%rbp), %rdx leaq -0x60(%rbp), %rdi callq 0xaec60 andl $0x4, %eax cmpl $0x0, %eax je 0xafb6e movq -0x88(%rbp), %rax movq %rax, -0x90(%rbp) movq -0x88(%rbp), %rax shrq $0x20, %rax movq %rax, -0x98(%rbp) movq -0x98(%rbp), %rax movq %rax, -0xa0(%rbp) movq -0xa0(%rbp), %rax movb %al, -0x65(%rbp) movq -0xa0(%rbp), %rax shrq $0x8, %rax movb %al, -0x66(%rbp) movq -0xa0(%rbp), %rax shrq $0x10, %rax movb %al, -0x67(%rbp) movq -0xa0(%rbp), %rax shrq $0x18, %rax movb %al, -0x68(%rbp) movq -0x90(%rbp), %rax movq %rax, -0xa8(%rbp) movq -0xa8(%rbp), %rax movb %al, -0x61(%rbp) movq -0xa8(%rbp), %rax shrq $0x8, %rax movb %al, -0x62(%rbp) movq -0xa8(%rbp), %rax shrq $0x10, %rax movb %al, -0x63(%rbp) movq -0xa8(%rbp), %rax shrq $0x18, %rax movb %al, -0x64(%rbp) movq -0x78(%rbp), %rax movq (%rax), %rax movq 0x2e8(%rax), %rax movq -0x78(%rbp), %rdi leaq -0x68(%rbp), %rsi movq -0x80(%rbp), %rcx addq $0xc, %rcx movl $0x8, %edx movl $0x4, %r8d callq *%rax cmpq $0x0, %rax je 0xafb6c jmp 0xafb63 movl $0x1, -0x6c(%rbp) jmp 0xafb8d jmp 0xafb82 callq 0xfea30 movl $0x7f, (%rax) movl $0x1, -0x6c(%rbp) jmp 0xafb8d jmp 0xafb84 jmp 0xafb86 movl $0x0, -0x6c(%rbp) movl -0x6c(%rbp), %eax movl %eax, -0xac(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0xafbb7 movl -0xac(%rbp), %eax addq $0xb0, %rsp popq %rbp retq callq 0x2a250 nopl (%rax)
update_backward_delete_link_0: push rbp mov rbp, rsp sub rsp, 0B0h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_78], rdi mov [rbp+var_80], rsi mov [rbp+var_88], rdx cmp [rbp+var_80], 0FFFFFFFFFFFFFFFFh jz loc_AFB84 mov [rbp+var_10], 0 mov rax, [rbp+var_78] mov esi, [rax+1C0h] mov rdx, [rbp+var_80] lea rdi, [rbp+var_60] call _mi_get_block_info and eax, 4 cmp eax, 0 jz loc_AFB6E mov rax, [rbp+var_88] mov [rbp+var_90], rax mov rax, [rbp+var_88] shr rax, 20h mov [rbp+var_98], rax mov rax, [rbp+var_98] mov [rbp+var_A0], rax mov rax, [rbp+var_A0] mov [rbp+var_65], al mov rax, [rbp+var_A0] shr rax, 8 mov [rbp+var_66], al mov rax, [rbp+var_A0] shr rax, 10h mov [rbp+var_67], al mov rax, [rbp+var_A0] shr rax, 18h mov [rbp+var_68], al mov rax, [rbp+var_90] mov [rbp+var_A8], rax mov rax, [rbp+var_A8] mov [rbp+var_61], al mov rax, [rbp+var_A8] shr rax, 8 mov [rbp+var_62], al mov rax, [rbp+var_A8] shr rax, 10h mov [rbp+var_63], al mov rax, [rbp+var_A8] shr rax, 18h mov [rbp+var_64], al mov rax, [rbp+var_78] mov rax, [rax] mov rax, [rax+2E8h] mov rdi, [rbp+var_78] lea rsi, [rbp+var_68] mov rcx, [rbp+var_80] add rcx, 0Ch mov edx, 8 mov r8d, 4 call rax cmp rax, 0 jz short loc_AFB6C jmp short $+2 loc_AFB63: mov [rbp+var_6C], 1 jmp short loc_AFB8D loc_AFB6C: jmp short loc_AFB82 loc_AFB6E: call _my_thread_var mov dword ptr [rax], 7Fh mov [rbp+var_6C], 1 jmp short loc_AFB8D loc_AFB82: jmp short $+2 loc_AFB84: jmp short $+2 loc_AFB86: mov [rbp+var_6C], 0 loc_AFB8D: mov eax, [rbp+var_6C] mov [rbp+var_AC], eax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_AFBB7 mov eax, [rbp+var_AC] add rsp, 0B0h pop rbp retn loc_AFBB7: call ___stack_chk_fail
_BOOL8 update_backward_delete_link_0(unsigned int *a1, long long a2, long long a3) { const char *v3; // rsi _BYTE v8[8]; // [rsp+48h] [rbp-68h] BYREF char v9[80]; // [rsp+50h] [rbp-60h] BYREF int v10; // [rsp+A0h] [rbp-10h] unsigned long long v11; // [rsp+A8h] [rbp-8h] v11 = __readfsqword(0x28u); if ( a2 == -1 ) return 0; v10 = 0; v3 = (const char *)a1[112]; if ( (mi_get_block_info(v9, v3, a2) & 4) == 0 ) { *(_DWORD *)my_thread_var(v9, v3) = 127; return 1; } v8[2] = BYTE5(a3); v8[3] = BYTE4(a3); v8[0] = HIBYTE(a3); v8[1] = BYTE6(a3); v8[6] = BYTE1(a3); v8[7] = a3; v8[4] = BYTE3(a3); v8[5] = BYTE2(a3); return (*(long long ( **)(unsigned int *, _BYTE *, long long, long long, long long))(*(_QWORD *)a1 + 744LL))( a1, v8, 8LL, a2 + 12, 4LL) != 0; }
update_backward_delete_link: PUSH RBP MOV RBP,RSP SUB RSP,0xb0 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x78],RDI MOV qword ptr [RBP + -0x80],RSI MOV qword ptr [RBP + -0x88],RDX CMP qword ptr [RBP + -0x80],-0x1 JZ 0x001afb84 MOV dword ptr [RBP + -0x10],0x0 MOV RAX,qword ptr [RBP + -0x78] MOV ESI,dword ptr [RAX + 0x1c0] MOV RDX,qword ptr [RBP + -0x80] LEA RDI,[RBP + -0x60] CALL 0x001aec60 AND EAX,0x4 CMP EAX,0x0 JZ 0x001afb6e MOV RAX,qword ptr [RBP + -0x88] MOV qword ptr [RBP + -0x90],RAX MOV RAX,qword ptr [RBP + -0x88] SHR RAX,0x20 MOV qword ptr [RBP + -0x98],RAX MOV RAX,qword ptr [RBP + -0x98] MOV qword ptr [RBP + -0xa0],RAX MOV RAX,qword ptr [RBP + -0xa0] MOV byte ptr [RBP + -0x65],AL MOV RAX,qword ptr [RBP + -0xa0] SHR RAX,0x8 MOV byte ptr [RBP + -0x66],AL MOV RAX,qword ptr [RBP + -0xa0] SHR RAX,0x10 MOV byte ptr [RBP + -0x67],AL MOV RAX,qword ptr [RBP + -0xa0] SHR RAX,0x18 MOV byte ptr [RBP + -0x68],AL MOV RAX,qword ptr [RBP + -0x90] MOV qword ptr [RBP + -0xa8],RAX MOV RAX,qword ptr [RBP + -0xa8] MOV byte ptr [RBP + -0x61],AL MOV RAX,qword ptr [RBP + -0xa8] SHR RAX,0x8 MOV byte ptr [RBP + -0x62],AL MOV RAX,qword ptr [RBP + -0xa8] SHR RAX,0x10 MOV byte ptr [RBP + -0x63],AL MOV RAX,qword ptr [RBP + -0xa8] SHR RAX,0x18 MOV byte ptr [RBP + -0x64],AL MOV RAX,qword ptr [RBP + -0x78] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x2e8] MOV RDI,qword ptr [RBP + -0x78] LEA RSI,[RBP + -0x68] MOV RCX,qword ptr [RBP + -0x80] ADD RCX,0xc MOV EDX,0x8 MOV R8D,0x4 CALL RAX CMP RAX,0x0 JZ 0x001afb6c JMP 0x001afb63 LAB_001afb63: MOV dword ptr [RBP + -0x6c],0x1 JMP 0x001afb8d LAB_001afb6c: JMP 0x001afb82 LAB_001afb6e: CALL 0x001fea30 MOV dword ptr [RAX],0x7f MOV dword ptr [RBP + -0x6c],0x1 JMP 0x001afb8d LAB_001afb82: JMP 0x001afb84 LAB_001afb84: JMP 0x001afb86 LAB_001afb86: MOV dword ptr [RBP + -0x6c],0x0 LAB_001afb8d: MOV EAX,dword ptr [RBP + -0x6c] MOV dword ptr [RBP + -0xac],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x001afbb7 MOV EAX,dword ptr [RBP + -0xac] ADD RSP,0xb0 POP RBP RET LAB_001afbb7: CALL 0x0012a250
int4 update_backward_delete_link(long *param_1,long param_2,int8 param_3) { uint uVar1; long lVar2; int4 *puVar3; long in_FS_OFFSET; int4 local_74; int1 local_70; int1 local_6f; int1 local_6e; int1 local_6d; int1 local_6c; int1 local_6b; int1 local_6a; int1 local_69; int1 local_68 [80]; int4 local_18; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); if (param_2 != -1) { local_18 = 0; uVar1 = _mi_get_block_info(local_68,(int)param_1[0x38],param_2); if ((uVar1 & 4) == 0) { puVar3 = (int4 *)_my_thread_var(); *puVar3 = 0x7f; local_74 = 1; goto LAB_001afb8d; } local_6d = (int1)((ulong)param_3 >> 0x20); local_6e = (int1)((ulong)param_3 >> 0x28); local_6f = (int1)((ulong)param_3 >> 0x30); local_70 = (int1)((ulong)param_3 >> 0x38); local_69 = (int1)param_3; local_6a = (int1)((ulong)param_3 >> 8); local_6b = (int1)((ulong)param_3 >> 0x10); local_6c = (int1)((ulong)param_3 >> 0x18); lVar2 = (**(code **)(*param_1 + 0x2e8))(param_1,&local_70,8,param_2 + 0xc,4); if (lVar2 != 0) { local_74 = 1; goto LAB_001afb8d; } } local_74 = 0; LAB_001afb8d: if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return local_74; }
31,367
nlohmann::json_abi_v3_11_3::detail::binary_reader<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>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, parse_json(__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&, __gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&, 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>&)::json_error_locator>::get_cbor_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
monkey531[P]llama/common/./json.hpp
bool get_cbor_string(string_t& result) { if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::cbor, "string"))) { return false; } switch (current) { // UTF-8 string (0x00..0x17 bytes follow) case 0x60: case 0x61: case 0x62: case 0x63: case 0x64: case 0x65: case 0x66: case 0x67: case 0x68: case 0x69: case 0x6A: case 0x6B: case 0x6C: case 0x6D: case 0x6E: case 0x6F: case 0x70: case 0x71: case 0x72: case 0x73: case 0x74: case 0x75: case 0x76: case 0x77: { return get_string(input_format_t::cbor, static_cast<unsigned int>(current) & 0x1Fu, result); } case 0x78: // UTF-8 string (one-byte uint8_t for n follows) { std::uint8_t len{}; return get_number(input_format_t::cbor, len) && get_string(input_format_t::cbor, len, result); } case 0x79: // UTF-8 string (two-byte uint16_t for n follow) { std::uint16_t len{}; return get_number(input_format_t::cbor, len) && get_string(input_format_t::cbor, len, result); } case 0x7A: // UTF-8 string (four-byte uint32_t for n follow) { std::uint32_t len{}; return get_number(input_format_t::cbor, len) && get_string(input_format_t::cbor, len, result); } case 0x7B: // UTF-8 string (eight-byte uint64_t for n follow) { std::uint64_t len{}; return get_number(input_format_t::cbor, len) && get_string(input_format_t::cbor, len, result); } case 0x7F: // UTF-8 string (indefinite length) { while (get() != 0xFF) { string_t chunk; if (!get_cbor_string(chunk)) { return false; } result.append(chunk); } return true; } default: { auto last_token = get_token_string(); return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::cbor, concat("expected length specification (0x60-0x7B) or indefinite string type (0x7F); last byte: 0x", last_token), "string"), nullptr)); } } }
O0
cpp
nlohmann::json_abi_v3_11_3::detail::binary_reader<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>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, parse_json(__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&, __gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&, 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>&)::json_error_locator>::get_cbor_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&): subq $0x158, %rsp # imm = 0x158 movq %rdi, 0x148(%rsp) movq %rsi, 0x140(%rsp) movq 0x148(%rsp), %rdi movq %rdi, 0x48(%rsp) movl $0x1, %esi leaq 0x41a3e(%rip), %rdx # 0x1c1aae callq 0x17e110 xorb $-0x1, %al xorb $-0x1, %al xorb $-0x1, %al testb $0x1, %al jne 0x180081 jmp 0x18008e movb $0x0, 0x157(%rsp) jmp 0x180554 movq 0x48(%rsp), %rax movl 0x10(%rax), %eax addl $-0x60, %eax movl %eax, %ecx movq %rcx, 0x40(%rsp) subl $0x1f, %eax ja 0x180358 movq 0x40(%rsp), %rax leaq 0x3e47b(%rip), %rcx # 0x1be530 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq 0x48(%rsp), %rdi movl 0x10(%rdi), %edx andl $0x1f, %edx movq 0x140(%rsp), %rcx movl $0x1, %esi callq 0x180ef0 andb $0x1, %al movb %al, 0x157(%rsp) jmp 0x180554 movq 0x48(%rsp), %rdi movb $0x0, 0x13f(%rsp) movl $0x1, %esi leaq 0x13f(%rsp), %rdx callq 0x17f520 movb %al, %cl xorl %eax, %eax testb $0x1, %cl movb %al, 0x3f(%rsp) jne 0x180117 jmp 0x18013c movq 0x48(%rsp), %rdi movb 0x13f(%rsp), %al movq 0x140(%rsp), %rcx movl $0x1, %esi movzbl %al, %edx callq 0x180f90 movb %al, 0x3f(%rsp) movb 0x3f(%rsp), %al andb $0x1, %al movb %al, 0x157(%rsp) jmp 0x180554 movq 0x48(%rsp), %rdi movw $0x0, 0x13c(%rsp) movl $0x1, %esi leaq 0x13c(%rsp), %rdx callq 0x17f6f0 movb %al, %cl xorl %eax, %eax testb $0x1, %cl movb %al, 0x3e(%rsp) jne 0x18017e jmp 0x1801a4 movq 0x48(%rsp), %rdi movw 0x13c(%rsp), %ax movq 0x140(%rsp), %rcx movl $0x1, %esi movzwl %ax, %edx callq 0x181030 movb %al, 0x3e(%rsp) movb 0x3e(%rsp), %al andb $0x1, %al movb %al, 0x157(%rsp) jmp 0x180554 movq 0x48(%rsp), %rdi movl $0x0, 0x138(%rsp) movl $0x1, %esi leaq 0x138(%rsp), %rdx callq 0x17f820 movb %al, %cl xorl %eax, %eax testb $0x1, %cl movb %al, 0x3d(%rsp) jne 0x1801e7 jmp 0x180209 movq 0x48(%rsp), %rdi movl 0x138(%rsp), %edx movq 0x140(%rsp), %rcx movl $0x1, %esi callq 0x180ef0 movb %al, 0x3d(%rsp) movb 0x3d(%rsp), %al andb $0x1, %al movb %al, 0x157(%rsp) jmp 0x180554 movq 0x48(%rsp), %rdi movq $0x0, 0x130(%rsp) movl $0x1, %esi leaq 0x130(%rsp), %rdx callq 0x17f950 movb %al, %cl xorl %eax, %eax testb $0x1, %cl movb %al, 0x3c(%rsp) jne 0x18024d jmp 0x180270 movq 0x48(%rsp), %rdi movq 0x130(%rsp), %rdx movq 0x140(%rsp), %rcx movl $0x1, %esi callq 0x1810d0 movb %al, 0x3c(%rsp) movb 0x3c(%rsp), %al andb $0x1, %al movb %al, 0x157(%rsp) jmp 0x180554 jmp 0x180284 movq 0x48(%rsp), %rdi callq 0x17dbb0 cmpl $0xff, %eax je 0x18034b leaq 0x110(%rsp), %rdi movq %rdi, 0x30(%rsp) callq 0x4f4e0 movq 0x48(%rsp), %rdi movq 0x30(%rsp), %rsi callq 0x180040 movb %al, 0x3b(%rsp) jmp 0x1802c0 movb 0x3b(%rsp), %al testb $0x1, %al jne 0x180305 jmp 0x1802ca movb $0x0, 0x157(%rsp) movl $0x1, 0x100(%rsp) jmp 0x180327 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x108(%rsp) movl %eax, 0x104(%rsp) leaq 0x110(%rsp), %rdi callq 0x50100 jmp 0x180565 movq 0x140(%rsp), %rdi leaq 0x110(%rsp), %rsi callq 0x4fc30 jmp 0x18031c movl $0x0, 0x100(%rsp) leaq 0x110(%rsp), %rdi callq 0x50100 movl 0x100(%rsp), %eax testl %eax, %eax je 0x180346 jmp 0x180341 jmp 0x180554 jmp 0x180284 movb $0x1, 0x157(%rsp) jmp 0x180554 movq 0x48(%rsp), %rsi leaq 0xe0(%rsp), %rdi movq %rdi, 0x10(%rsp) callq 0x17dbf0 movq 0x48(%rsp), %rcx movq 0x10(%rsp), %rdx movq 0x18(%rcx), %rax movq %rax, 0x18(%rsp) movq 0x28(%rcx), %rcx movq %rcx, 0x20(%rsp) movq %rax, 0x28(%rsp) leaq 0x408cb(%rip), %rsi # 0x1c0c62 leaq 0x78(%rsp), %rdi callq 0x18f510 jmp 0x1803a3 leaq 0x57(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x4fd90 movq 0x8(%rsp), %rdx leaq 0x416f0(%rip), %rsi # 0x1c1aae leaq 0x58(%rsp), %rdi callq 0x55120 jmp 0x1803ca movq 0x48(%rsp), %rsi leaq 0x98(%rsp), %rdi movl $0x1, %edx leaq 0x78(%rsp), %rcx leaq 0x58(%rsp), %r8 callq 0x17dcd0 jmp 0x1803ed movq 0x18(%rsp), %rdx xorl %eax, %eax movl %eax, %r8d leaq 0xb8(%rsp), %rdi movl $0x71, %esi leaq 0x98(%rsp), %rcx callq 0x18d140 jmp 0x180413 movq 0x28(%rsp), %rsi movq 0x20(%rsp), %rdi movq (%rdi), %rax movq 0x60(%rax), %rax leaq 0xe0(%rsp), %rdx leaq 0xb8(%rsp), %rcx callq *%rax movb %al, 0x7(%rsp) jmp 0x18043c movb 0x7(%rsp), %al andb $0x1, %al movb %al, 0x157(%rsp) leaq 0xb8(%rsp), %rdi callq 0xb3930 leaq 0x98(%rsp), %rdi callq 0x50100 leaq 0x58(%rsp), %rdi callq 0x50100 leaq 0x57(%rsp), %rdi callq 0x500e0 leaq 0x78(%rsp), %rdi callq 0x50100 movl $0x1, 0x100(%rsp) leaq 0xe0(%rsp), %rdi callq 0x50100 jmp 0x180554 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x108(%rsp) movl %eax, 0x104(%rsp) jmp 0x180545 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x108(%rsp) movl %eax, 0x104(%rsp) jmp 0x180531 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x108(%rsp) movl %eax, 0x104(%rsp) jmp 0x180527 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x108(%rsp) movl %eax, 0x104(%rsp) jmp 0x18051a movq %rax, %rcx movl %edx, %eax movq %rcx, 0x108(%rsp) movl %eax, 0x104(%rsp) leaq 0xb8(%rsp), %rdi callq 0xb3930 leaq 0x98(%rsp), %rdi callq 0x50100 leaq 0x58(%rsp), %rdi callq 0x50100 leaq 0x57(%rsp), %rdi callq 0x500e0 leaq 0x78(%rsp), %rdi callq 0x50100 leaq 0xe0(%rsp), %rdi callq 0x50100 jmp 0x180565 movb 0x157(%rsp), %al andb $0x1, %al addq $0x158, %rsp # imm = 0x158 retq movq 0x108(%rsp), %rdi callq 0x4f990 nopw %cs:(%rax,%rax)
_ZN8nlohmann16json_abi_v3_11_36detail13binary_readerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEZL10parse_jsonRSL_RKSL_RSF_E18json_error_locatorE15get_cbor_stringERSB_: sub rsp, 158h mov qword ptr [rsp+158h+var_10], rdi mov [rsp+158h+var_18], rsi mov rdi, qword ptr [rsp+158h+var_10] mov qword ptr [rsp+158h+var_110], rdi; int mov esi, 1 lea rdx, aDateTimeString+0Ah; "string" call _ZNK8nlohmann16json_abi_v3_11_36detail13binary_readerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEZL10parse_jsonRSL_RKSL_RSF_E18json_error_locatorE12unexpect_eofENS1_14input_format_tESK_; nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::unexpect_eof(nlohmann::json_abi_v3_11_3::detail::input_format_t,char const*) xor al, 0FFh xor al, 0FFh xor al, 0FFh test al, 1 jnz short loc_180081 jmp short loc_18008E loc_180081: mov [rsp+158h+var_1], 0 jmp loc_180554 loc_18008E: mov rax, qword ptr [rsp+158h+var_110] mov eax, [rax+10h] add eax, 0FFFFFFA0h; switch 32 cases mov ecx, eax mov qword ptr [rsp+158h+var_118], rcx; int sub eax, 1Fh ja def_1800BC; jumptable 00000000001800BC default case, cases 124-126 mov rax, qword ptr [rsp+158h+var_118] lea rcx, jpt_1800BC movsxd rax, ds:(jpt_1800BC - 1BE530h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_1800BE: mov rdi, qword ptr [rsp+158h+var_110]; jumptable 00000000001800BC cases 96-119 mov edx, [rdi+10h] and edx, 1Fh mov rcx, [rsp+158h+var_18] mov esi, 1 call _ZN8nlohmann16json_abi_v3_11_36detail13binary_readerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEZL10parse_jsonRSL_RKSL_RSF_E18json_error_locatorE10get_stringIjEEbNS1_14input_format_tET_RSB_; nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::get_string<uint>(nlohmann::json_abi_v3_11_3::detail::input_format_t,uint,std::string&) and al, 1 mov [rsp+158h+var_1], al jmp loc_180554 loc_1800E9: mov rdi, qword ptr [rsp+158h+var_110]; jumptable 00000000001800BC case 120 mov [rsp+158h+var_19], 0 mov esi, 1 lea rdx, [rsp+158h+var_19] call _ZN8nlohmann16json_abi_v3_11_36detail13binary_readerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEZL10parse_jsonRSL_RKSL_RSF_E18json_error_locatorE10get_numberIhLb0EEEbNS1_14input_format_tERT_; nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::get_number<uchar,false>(nlohmann::json_abi_v3_11_3::detail::input_format_t,uchar &) mov cl, al xor eax, eax test cl, 1 mov [rsp+158h+var_119], al jnz short loc_180117 jmp short loc_18013C loc_180117: mov rdi, qword ptr [rsp+158h+var_110] mov al, [rsp+158h+var_19] mov rcx, [rsp+158h+var_18] mov esi, 1 movzx edx, al call _ZN8nlohmann16json_abi_v3_11_36detail13binary_readerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEZL10parse_jsonRSL_RKSL_RSF_E18json_error_locatorE10get_stringIhEEbNS1_14input_format_tET_RSB_; nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::get_string<uchar>(nlohmann::json_abi_v3_11_3::detail::input_format_t,uchar,std::string&) mov [rsp+158h+var_119], al loc_18013C: mov al, [rsp+158h+var_119] and al, 1 mov [rsp+158h+var_1], al jmp loc_180554 loc_18014E: mov rdi, qword ptr [rsp+158h+var_110]; jumptable 00000000001800BC case 121 mov [rsp+158h+var_1C], 0 mov esi, 1 lea rdx, [rsp+158h+var_1C] call _ZN8nlohmann16json_abi_v3_11_36detail13binary_readerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEZL10parse_jsonRSL_RKSL_RSF_E18json_error_locatorE10get_numberItLb0EEEbNS1_14input_format_tERT_; nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::get_number<ushort,false>(nlohmann::json_abi_v3_11_3::detail::input_format_t,ushort &) mov cl, al xor eax, eax test cl, 1 mov [rsp+158h+var_11A], al jnz short loc_18017E jmp short loc_1801A4 loc_18017E: mov rdi, qword ptr [rsp+158h+var_110] mov ax, [rsp+158h+var_1C] mov rcx, [rsp+158h+var_18] mov esi, 1 movzx edx, ax call _ZN8nlohmann16json_abi_v3_11_36detail13binary_readerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEZL10parse_jsonRSL_RKSL_RSF_E18json_error_locatorE10get_stringItEEbNS1_14input_format_tET_RSB_; nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::get_string<ushort>(nlohmann::json_abi_v3_11_3::detail::input_format_t,ushort,std::string&) mov [rsp+158h+var_11A], al loc_1801A4: mov al, [rsp+158h+var_11A] and al, 1 mov [rsp+158h+var_1], al jmp loc_180554 loc_1801B6: mov rdi, qword ptr [rsp+158h+var_110]; jumptable 00000000001800BC case 122 mov [rsp+158h+var_20], 0 mov esi, 1 lea rdx, [rsp+158h+var_20] call _ZN8nlohmann16json_abi_v3_11_36detail13binary_readerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEZL10parse_jsonRSL_RKSL_RSF_E18json_error_locatorE10get_numberIjLb0EEEbNS1_14input_format_tERT_; nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::get_number<uint,false>(nlohmann::json_abi_v3_11_3::detail::input_format_t,uint &) mov cl, al xor eax, eax test cl, 1 mov [rsp+158h+var_11B], al jnz short loc_1801E7 jmp short loc_180209 loc_1801E7: mov rdi, qword ptr [rsp+158h+var_110] mov edx, [rsp+158h+var_20] mov rcx, [rsp+158h+var_18] mov esi, 1 call _ZN8nlohmann16json_abi_v3_11_36detail13binary_readerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEZL10parse_jsonRSL_RKSL_RSF_E18json_error_locatorE10get_stringIjEEbNS1_14input_format_tET_RSB_; nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::get_string<uint>(nlohmann::json_abi_v3_11_3::detail::input_format_t,uint,std::string&) mov [rsp+158h+var_11B], al loc_180209: mov al, [rsp+158h+var_11B] and al, 1 mov [rsp+158h+var_1], al jmp loc_180554 loc_18021B: mov rdi, qword ptr [rsp+158h+var_110]; jumptable 00000000001800BC case 123 mov [rsp+158h+var_28], 0 mov esi, 1 lea rdx, [rsp+158h+var_28] call _ZN8nlohmann16json_abi_v3_11_36detail13binary_readerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEZL10parse_jsonRSL_RKSL_RSF_E18json_error_locatorE10get_numberImLb0EEEbNS1_14input_format_tERT_; nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::get_number<ulong,false>(nlohmann::json_abi_v3_11_3::detail::input_format_t,ulong &) mov cl, al xor eax, eax test cl, 1 mov [rsp+158h+var_11C], al jnz short loc_18024D jmp short loc_180270 loc_18024D: mov rdi, qword ptr [rsp+158h+var_110] mov rdx, [rsp+158h+var_28] mov rcx, [rsp+158h+var_18] mov esi, 1 call _ZN8nlohmann16json_abi_v3_11_36detail13binary_readerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEZL10parse_jsonRSL_RKSL_RSF_E18json_error_locatorE10get_stringImEEbNS1_14input_format_tET_RSB_; nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::get_string<ulong>(nlohmann::json_abi_v3_11_3::detail::input_format_t,ulong,std::string&) mov [rsp+158h+var_11C], al loc_180270: mov al, [rsp+158h+var_11C] and al, 1 mov [rsp+158h+var_1], al jmp loc_180554 loc_180282: jmp short $+2; jumptable 00000000001800BC case 127 loc_180284: mov rdi, qword ptr [rsp+158h+var_110] call _ZN8nlohmann16json_abi_v3_11_36detail13binary_readerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEZL10parse_jsonRSL_RKSL_RSF_E18json_error_locatorE3getEv; nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::get(void) cmp eax, 0FFh jz loc_18034B lea rdi, [rsp+158h+var_48] mov qword ptr [rsp+158h+var_128], rdi; int call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void) mov rdi, qword ptr [rsp+158h+var_110] mov rsi, qword ptr [rsp+158h+var_128] call _ZN8nlohmann16json_abi_v3_11_36detail13binary_readerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEZL10parse_jsonRSL_RKSL_RSF_E18json_error_locatorE15get_cbor_stringERSB_; nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::get_cbor_string(std::string&) mov [rsp+158h+var_11D], al jmp short $+2 loc_1802C0: mov al, [rsp+158h+var_11D] test al, 1 jnz short loc_180305 jmp short $+2 loc_1802CA: mov [rsp+158h+var_1], 0 mov [rsp+158h+var_58], 1 jmp short loc_180327 mov rcx, rax mov eax, edx mov [rsp+arg_100], rcx mov [rsp+arg_FC], eax lea rdi, [rsp+arg_108]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp loc_180565 loc_180305: mov rdi, [rsp+158h+var_18] lea rsi, [rsp+158h+var_48] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&) jmp short $+2 loc_18031C: mov [rsp+158h+var_58], 0 loc_180327: lea rdi, [rsp+158h+var_48]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov eax, [rsp+158h+var_58] test eax, eax jz short loc_180346 jmp short $+2 loc_180341: jmp loc_180554 loc_180346: jmp loc_180284 loc_18034B: mov [rsp+158h+var_1], 1 jmp loc_180554 def_1800BC: mov rsi, qword ptr [rsp+158h+var_110]; jumptable 00000000001800BC default case, cases 124-126 lea rdi, [rsp+158h+var_78] mov qword ptr [rsp+158h+var_148], rdi; int call _ZNK8nlohmann16json_abi_v3_11_36detail13binary_readerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEZL10parse_jsonRSL_RKSL_RSF_E18json_error_locatorE16get_token_stringEv; nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::get_token_string(void) mov rcx, qword ptr [rsp+158h+var_110] mov rdx, qword ptr [rsp+158h+var_148] mov rax, [rcx+18h] mov qword ptr [rsp+158h+var_140], rax; int mov rcx, [rcx+28h] mov qword ptr [rsp+158h+var_138], rcx; int mov [rsp+158h+var_130], rax; int lea rsi, aExpectedLength_0; "expected length specification (0x60-0x7"... lea rdi, [rsp+158h+var_E0] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA90_KcRS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[90],std::string&>(char const(&)[90],std::string&) jmp short $+2 loc_1803A3: lea rdi, [rsp+158h+var_101] mov qword ptr [rsp+158h+var_150], rdi; int call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdx, qword ptr [rsp+158h+var_150] lea rsi, aDateTimeString+0Ah; "string" lea rdi, [rsp+158h+var_101+1] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_1803CA: mov rsi, qword ptr [rsp+158h+var_110] lea rdi, [rsp+158h+var_C0]; int mov edx, 1 lea rcx, [rsp+158h+var_E0] lea r8, [rsp+158h+var_101+1] call _ZNK8nlohmann16json_abi_v3_11_36detail13binary_readerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEZL10parse_jsonRSL_RKSL_RSF_E18json_error_locatorE17exception_messageENS1_14input_format_tERKSB_SV_; nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::exception_message(nlohmann::json_abi_v3_11_3::detail::input_format_t,std::string const&,std::string const&) jmp short $+2 loc_1803ED: mov rdx, qword ptr [rsp+158h+var_140] xor eax, eax mov r8d, eax lea rdi, [rsp+158h+var_A0]; char mov esi, 71h ; 'q' lea rcx, [rsp+158h+var_C0] call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_imRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ jmp short $+2 loc_180413: mov rsi, [rsp+158h+var_130] mov rdi, qword ptr [rsp+158h+var_138] mov rax, [rdi] mov rax, [rax+60h] lea rdx, [rsp+158h+var_78] lea rcx, [rsp+158h+var_A0] call rax mov [rsp+158h+var_151], al jmp short $+2 loc_18043C: mov al, [rsp+158h+var_151] and al, 1 mov [rsp+158h+var_1], al lea rdi, [rsp+158h+var_A0]; void * call _ZN8nlohmann16json_abi_v3_11_36detail11parse_errorD2Ev; nlohmann::json_abi_v3_11_3::detail::parse_error::~parse_error() lea rdi, [rsp+158h+var_C0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+158h+var_101+1]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+158h+var_101] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() lea rdi, [rsp+158h+var_E0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov [rsp+158h+var_58], 1 lea rdi, [rsp+158h+var_78]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp loc_180554 mov rcx, rax mov eax, edx mov [rsp+arg_100], rcx mov [rsp+arg_FC], eax jmp loc_180545 mov rcx, rax mov eax, edx mov [rsp+arg_100], rcx mov [rsp+arg_FC], eax jmp short loc_180531 mov rcx, rax mov eax, edx mov [rsp+arg_100], rcx mov [rsp+arg_FC], eax jmp short loc_180527 mov rcx, rax mov eax, edx mov [rsp+arg_100], rcx mov [rsp+arg_FC], eax jmp short loc_18051A mov rcx, rax mov eax, edx mov [rsp+arg_100], rcx mov [rsp+arg_FC], eax lea rdi, [rsp+arg_B0]; void * call _ZN8nlohmann16json_abi_v3_11_36detail11parse_errorD2Ev; nlohmann::json_abi_v3_11_3::detail::parse_error::~parse_error() loc_18051A: lea rdi, [rsp+arg_90]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_180527: lea rdi, [rsp+arg_50]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_180531: lea rdi, [rsp+arg_4F] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() lea rdi, [rsp+arg_70]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_180545: lea rdi, [rsp+arg_D8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_180565 loc_180554: mov al, [rsp+158h+var_1] and al, 1 add rsp, 158h retn loc_180565: mov rdi, [rsp+arg_100] call __Unwind_Resume
char nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::get_cbor_string( long long a1, long long a2) { int v2; // eax int v3; // edx int v4; // ecx int v5; // r8d int v6; // r9d int v7; // r8d int v8; // r9d int v10; // [rsp+0h] [rbp-158h] int v11[2]; // [rsp+18h] [rbp-140h] int v12[2]; // [rsp+20h] [rbp-138h] int v13[2]; // [rsp+20h] [rbp-138h] long long v14; // [rsp+28h] [rbp-130h] int v15; // [rsp+30h] [rbp-128h] char v16; // [rsp+38h] [rbp-120h] char v17; // [rsp+3Ch] [rbp-11Ch] char v18; // [rsp+3Dh] [rbp-11Bh] char v19; // [rsp+3Eh] [rbp-11Ah] char v20; // [rsp+3Fh] [rbp-119h] int v21; // [rsp+40h] [rbp-118h] int v22; // [rsp+50h] [rbp-108h] _BYTE v23[17]; // [rsp+57h] [rbp-101h] BYREF int v24; // [rsp+68h] [rbp-F0h] int v25; // [rsp+70h] [rbp-E8h] int v26; // [rsp+78h] [rbp-E0h] BYREF char v27; // [rsp+80h] [rbp-D8h] int v28; // [rsp+88h] [rbp-D0h] int v29; // [rsp+90h] [rbp-C8h] int v30[4]; // [rsp+98h] [rbp-C0h] BYREF long long v31; // [rsp+A8h] [rbp-B0h] int v32; // [rsp+B0h] [rbp-A8h] char v33[8]; // [rsp+B8h] [rbp-A0h] BYREF int v34; // [rsp+C0h] [rbp-98h] int v35; // [rsp+C8h] [rbp-90h] int v36; // [rsp+D0h] [rbp-88h] char v37; // [rsp+D8h] [rbp-80h] int v38[6]; // [rsp+E0h] [rbp-78h] BYREF char v39; // [rsp+F8h] [rbp-60h] int v40; // [rsp+100h] [rbp-58h] int v41[8]; // [rsp+110h] [rbp-48h] BYREF long long v42; // [rsp+130h] [rbp-28h] BYREF unsigned int v43; // [rsp+138h] [rbp-20h] BYREF unsigned __int16 v44; // [rsp+13Ch] [rbp-1Ch] BYREF unsigned __int8 v45; // [rsp+13Fh] [rbp-19h] BYREF long long v46; // [rsp+140h] [rbp-18h] int v47[2]; // [rsp+148h] [rbp-10h] char v48; // [rsp+157h] [rbp-1h] *(_QWORD *)v47 = a1; v46 = a2; if ( (nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::unexpect_eof( a1, 1LL, (long long)"string") & 1) != 0 ) { v2 = *(_DWORD *)(a1 + 16); v21 = v2 - 96; switch ( v2 ) { case '`': case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': case 'v': case 'w': v48 = nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::get_string<unsigned int>( a1, 1LL, *(_DWORD *)(a1 + 16) & 0x1F, v46) & 1; break; case 'x': v45 = 0; v20 = 0; if ( (nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::get_number<unsigned char,false>( a1, 1u, &v45) & 1) != 0 ) v20 = nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::get_string<unsigned char>( a1, 1LL, v45, v46); v48 = v20 & 1; break; case 'y': v44 = 0; v19 = 0; if ( (nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::get_number<unsigned short,false>( a1, 1u, &v44) & 1) != 0 ) v19 = nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::get_string<unsigned short>( a1, 1LL, v44, v46); v48 = v19 & 1; break; case 'z': v43 = 0; v18 = 0; if ( (nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::get_number<unsigned int,false>( a1, 1u, &v43) & 1) != 0 ) v18 = nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::get_string<unsigned int>( a1, 1LL, v43, v46); v48 = v18 & 1; break; case '{': v42 = 0LL; v17 = 0; if ( (nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::get_number<unsigned long,false>( a1, 1u, &v42) & 1) != 0 ) v17 = nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::get_string<unsigned long>( a1, 1LL, v42, v46); v48 = v17 & 1; break; case '\x7F': while ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::get(a1) != 255 ) { std::string::basic_string(v41); if ( (nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::get_cbor_string( a1, (unsigned int)v41, v3, v4, v5, v6) & 1) != 0 ) { std::string::append(v46, v41); v40 = 0; } else { v48 = 0; v40 = 1; } std::string::~string(v41); if ( v40 ) return v48 & 1; } v48 = 1; break; default: nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::get_token_string( (long long)v38, a1); *(_QWORD *)v11 = *(_QWORD *)(a1 + 24); *(_QWORD *)v12 = *(_QWORD *)(a1 + 40); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[90],std::string&>( (unsigned int)&v26, (unsigned int)"expected length specification (0x60-0x7B) or indefinite string type (0x7F); last byte: 0x", (unsigned int)v38, v12[0], v7, v8); std::allocator<char>::allocator( v23, "expected length specification (0x60-0x7B) or indefinite string type (0x7F); last byte: 0x"); std::string::basic_string<std::allocator<char>>((long long)&v23[1], (long long)"string", (long long)v23); nlohmann::json_abi_v3_11_3::detail::binary_reader<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,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>&)::json_error_locator>::exception_message( (long long)v30, a1, 1, (long long)&v26, (long long)&v23[1]); ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_imRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_( (char)v33, v10, (int)v23, (int)v38, v11[0], v12[0], v11[0], v15, v16, v21, a1, v22, *(int *)&v23[1], v23[9], v24, v25, v26, v27, v28, v29, v30[0], v30[2], v31, v32, v33[0], v34, v35, v36, v37, v38[0], v38[2], v38[4], v39); v48 = (*(long long ( **)(int *, long long, int *, char *))(**(_QWORD **)v13 + 96LL))( *(int **)v13, v14, v38, v33) & 1; nlohmann::json_abi_v3_11_3::detail::parse_error::~parse_error((nlohmann::json_abi_v3_11_3::detail::exception *)v33); std::string::~string(v30); std::string::~string(&v23[1]); std::allocator<char>::~allocator(v23); std::string::~string(&v26); v40 = 1; std::string::~string(v38); break; } } else { v48 = 0; } return v48 & 1; }
max_size: PUSH RAX MOV qword ptr [RSP],RDI MOV RDI,qword ptr [RSP] CALL 0x001800c0 MOV RDI,RAX CALL 0x00180080 POP RCX RET
/* std::vector<unsigned long, std::allocator<unsigned long> >::max_size() const */ void __thiscall std::vector<unsigned_long,std::allocator<unsigned_long>>::max_size (vector<unsigned_long,std::allocator<unsigned_long>> *this) { allocator *paVar1; paVar1 = (allocator *) _Vector_base<unsigned_long,std::allocator<unsigned_long>>::_M_get_Tp_allocator ((_Vector_base<unsigned_long,std::allocator<unsigned_long>> *)this); _S_max_size(paVar1); return; }
31,368
uf_blob
eloqsql/storage/maria/ma_packrec.c
static void uf_blob(MARIA_COLUMNDEF *rec, MARIA_BIT_BUFF *bit_buff, uchar *to, uchar *end) { if (get_bit(bit_buff)) bzero(to, (uint) (end-to)); else { ulong length=get_bits(bit_buff,rec->space_length_bits); uint pack_length=(uint) (end-to)-portable_sizeof_char_ptr; if (bit_buff->blob_pos+length > bit_buff->blob_end) { bit_buff->error=1; bzero(to, (end-to)); return; } decode_bytes(rec, bit_buff, bit_buff->blob_pos, bit_buff->blob_pos + length); _ma_store_blob_length(to, pack_length, length); memcpy(to+pack_length, &bit_buff->blob_pos, sizeof(uchar*)); bit_buff->blob_pos+=length; } }
O0
c
uf_blob: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq -0x10(%rbp), %rax cmpl $0x0, 0x4(%rax) je 0x376c7 movq -0x10(%rbp), %rax movl (%rax), %eax movq -0x10(%rbp), %rdx movl 0x4(%rdx), %ecx addl $-0x1, %ecx movl %ecx, 0x4(%rdx) movl $0x1, %edx shll %cl, %edx movl %edx, %ecx andl %ecx, %eax cmpl $0x0, %eax jne 0x376eb jmp 0x3770a movq -0x10(%rbp), %rdi callq 0x36310 movq -0x10(%rbp), %rax movl $0x1f, 0x4(%rax) movq -0x10(%rbp), %rax movl (%rax), %eax andl $0x80000000, %eax # imm = 0x80000000 cmpl $0x0, %eax je 0x3770a movq -0x18(%rbp), %rdi movq -0x20(%rbp), %rax movq -0x18(%rbp), %rcx subq %rcx, %rax movl %eax, %eax movl %eax, %edx xorl %esi, %esi callq 0x2a2c0 jmp 0x37809 movq -0x10(%rbp), %rax movl 0x4(%rax), %eax movq -0x8(%rbp), %rcx cmpl 0x24(%rcx), %eax jb 0x3774d movq -0x10(%rbp), %rax movl (%rax), %eax movq -0x8(%rbp), %rcx movl 0x24(%rcx), %esi movq -0x10(%rbp), %rdx movl 0x4(%rdx), %ecx subl %esi, %ecx movl %ecx, 0x4(%rdx) shrl %cl, %eax movq -0x8(%rbp), %rcx movl 0x24(%rcx), %ecx movl %ecx, %edx leaq 0x290b5b(%rip), %rcx # 0x2c82a0 andl (%rcx,%rdx,4), %eax movl %eax, -0x30(%rbp) jmp 0x37760 movq -0x10(%rbp), %rdi movq -0x8(%rbp), %rax movl 0x24(%rax), %esi callq 0x35ac0 movl %eax, -0x30(%rbp) movl -0x30(%rbp), %eax movl %eax, %eax movq %rax, -0x28(%rbp) movq -0x20(%rbp), %rax movq -0x18(%rbp), %rcx subq %rcx, %rax subl $0x8, %eax movl %eax, -0x2c(%rbp) movq -0x10(%rbp), %rax movq 0x18(%rax), %rax addq -0x28(%rbp), %rax movq -0x10(%rbp), %rcx cmpq 0x20(%rcx), %rax jbe 0x377b3 movq -0x10(%rbp), %rax movl $0x1, 0x28(%rax) movq -0x18(%rbp), %rdi movq -0x20(%rbp), %rdx movq -0x18(%rbp), %rax subq %rax, %rdx xorl %esi, %esi callq 0x2a2c0 jmp 0x37809 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x10(%rbp), %rax movq 0x18(%rax), %rdx movq -0x10(%rbp), %rax movq 0x18(%rax), %rcx addq -0x28(%rbp), %rcx callq 0x36650 movq -0x18(%rbp), %rdi movl -0x2c(%rbp), %esi movq -0x28(%rbp), %rax movl %eax, %edx callq 0x3c870 movq -0x18(%rbp), %rax movl -0x2c(%rbp), %ecx movq -0x10(%rbp), %rdx movq 0x18(%rdx), %rdx movq %rdx, (%rax,%rcx) movq -0x28(%rbp), %rcx movq -0x10(%rbp), %rax addq 0x18(%rax), %rcx movq %rcx, 0x18(%rax) addq $0x30, %rsp popq %rbp retq nop
uf_blob: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov rax, [rbp+var_10] cmp dword ptr [rax+4], 0 jz short loc_376C7 mov rax, [rbp+var_10] mov eax, [rax] mov rdx, [rbp+var_10] mov ecx, [rdx+4] add ecx, 0FFFFFFFFh mov [rdx+4], ecx mov edx, 1 shl edx, cl mov ecx, edx and eax, ecx cmp eax, 0 jnz short loc_376EB jmp short loc_3770A loc_376C7: mov rdi, [rbp+var_10] call fill_buffer mov rax, [rbp+var_10] mov dword ptr [rax+4], 1Fh mov rax, [rbp+var_10] mov eax, [rax] and eax, 80000000h cmp eax, 0 jz short loc_3770A loc_376EB: mov rdi, [rbp+var_18] mov rax, [rbp+var_20] mov rcx, [rbp+var_18] sub rax, rcx mov eax, eax mov edx, eax xor esi, esi call _memset jmp loc_37809 loc_3770A: mov rax, [rbp+var_10] mov eax, [rax+4] mov rcx, [rbp+var_8] cmp eax, [rcx+24h] jb short loc_3774D mov rax, [rbp+var_10] mov eax, [rax] mov rcx, [rbp+var_8] mov esi, [rcx+24h] mov rdx, [rbp+var_10] mov ecx, [rdx+4] sub ecx, esi mov [rdx+4], ecx shr eax, cl mov rcx, [rbp+var_8] mov ecx, [rcx+24h] mov edx, ecx lea rcx, mask and eax, [rcx+rdx*4] mov [rbp+var_30], eax jmp short loc_37760 loc_3774D: mov rdi, [rbp+var_10] mov rax, [rbp+var_8] mov esi, [rax+24h] call fill_and_get_bits mov [rbp+var_30], eax loc_37760: mov eax, [rbp+var_30] mov eax, eax mov [rbp+var_28], rax mov rax, [rbp+var_20] mov rcx, [rbp+var_18] sub rax, rcx sub eax, 8 mov [rbp+var_2C], eax mov rax, [rbp+var_10] mov rax, [rax+18h] add rax, [rbp+var_28] mov rcx, [rbp+var_10] cmp rax, [rcx+20h] jbe short loc_377B3 mov rax, [rbp+var_10] mov dword ptr [rax+28h], 1 mov rdi, [rbp+var_18] mov rdx, [rbp+var_20] mov rax, [rbp+var_18] sub rdx, rax xor esi, esi call _memset jmp short loc_37809 loc_377B3: mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rax, [rbp+var_10] mov rdx, [rax+18h] mov rax, [rbp+var_10] mov rcx, [rax+18h] add rcx, [rbp+var_28] call decode_bytes mov rdi, [rbp+var_18] mov esi, [rbp+var_2C] mov rax, [rbp+var_28] mov edx, eax call _ma_store_blob_length mov rax, [rbp+var_18] mov ecx, [rbp+var_2C] mov rdx, [rbp+var_10] mov rdx, [rdx+18h] mov [rax+rcx], rdx mov rcx, [rbp+var_28] mov rax, [rbp+var_10] add rcx, [rax+18h] mov [rax+18h], rcx loc_37809: add rsp, 30h pop rbp retn
long long uf_blob(long long a1, long long a2, long long a3, long long a4) { int v4; // eax int v5; // ecx long long result; // rax unsigned int v7; // eax int v8; // ecx unsigned int bits; // [rsp+0h] [rbp-30h] unsigned int v10; // [rsp+4h] [rbp-2Ch] if ( *(_DWORD *)(a2 + 4) ) { v4 = *(_DWORD *)a2; v5 = *(_DWORD *)(a2 + 4) - 1; *(_DWORD *)(a2 + 4) = v5; if ( ((1 << v5) & v4) == 0 ) goto LABEL_6; return memset(a3, 0LL, (unsigned int)(a4 - a3)); } fill_buffer(a2); *(_DWORD *)(a2 + 4) = 31; if ( *(int *)a2 < 0 ) return memset(a3, 0LL, (unsigned int)(a4 - a3)); LABEL_6: if ( *(_DWORD *)(a2 + 4) < *(_DWORD *)(a1 + 36) ) { bits = fill_and_get_bits((_DWORD *)a2, *(_DWORD *)(a1 + 36)); } else { v7 = *(_DWORD *)a2; v8 = *(_DWORD *)(a2 + 4) - *(_DWORD *)(a1 + 36); *(_DWORD *)(a2 + 4) = v8; bits = mask[*(unsigned int *)(a1 + 36)] & (v7 >> v8); } v10 = a4 - a3 - 8; if ( (unsigned long long)bits + *(_QWORD *)(a2 + 24) <= *(_QWORD *)(a2 + 32) ) { decode_bytes(a1, a2, *(_BYTE **)(a2 + 24), (_BYTE *)(bits + *(_QWORD *)(a2 + 24))); ma_store_blob_length(a3, v10, bits); *(_QWORD *)(a3 + v10) = *(_QWORD *)(a2 + 24); result = a2; *(_QWORD *)(a2 + 24) += bits; } else { *(_DWORD *)(a2 + 40) = 1; return memset(a3, 0LL, a4 - a3); } return result; }
uf_blob: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x4],0x0 JZ 0x001376c7 MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX] MOV RDX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RDX + 0x4] ADD ECX,-0x1 MOV dword ptr [RDX + 0x4],ECX MOV EDX,0x1 SHL EDX,CL MOV ECX,EDX AND EAX,ECX CMP EAX,0x0 JNZ 0x001376eb JMP 0x0013770a LAB_001376c7: MOV RDI,qword ptr [RBP + -0x10] CALL 0x00136310 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x4],0x1f MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX] AND EAX,0x80000000 CMP EAX,0x0 JZ 0x0013770a LAB_001376eb: MOV RDI,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x18] SUB RAX,RCX MOV EAX,EAX MOV EDX,EAX XOR ESI,ESI CALL 0x0012a2c0 JMP 0x00137809 LAB_0013770a: MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x4] MOV RCX,qword ptr [RBP + -0x8] CMP EAX,dword ptr [RCX + 0x24] JC 0x0013774d MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX] MOV RCX,qword ptr [RBP + -0x8] MOV ESI,dword ptr [RCX + 0x24] MOV RDX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RDX + 0x4] SUB ECX,ESI MOV dword ptr [RDX + 0x4],ECX SHR EAX,CL MOV RCX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RCX + 0x24] MOV EDX,ECX LEA RCX,[0x3c82a0] AND EAX,dword ptr [RCX + RDX*0x4] MOV dword ptr [RBP + -0x30],EAX JMP 0x00137760 LAB_0013774d: MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV ESI,dword ptr [RAX + 0x24] CALL 0x00135ac0 MOV dword ptr [RBP + -0x30],EAX LAB_00137760: MOV EAX,dword ptr [RBP + -0x30] MOV EAX,EAX MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x18] SUB RAX,RCX SUB EAX,0x8 MOV dword ptr [RBP + -0x2c],EAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x18] ADD RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RCX + 0x20] JBE 0x001377b3 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x28],0x1 MOV RDI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x18] SUB RDX,RAX XOR ESI,ESI CALL 0x0012a2c0 JMP 0x00137809 LAB_001377b3: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RAX + 0x18] MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x18] ADD RCX,qword ptr [RBP + -0x28] CALL 0x00136650 MOV RDI,qword ptr [RBP + -0x18] MOV ESI,dword ptr [RBP + -0x2c] MOV RAX,qword ptr [RBP + -0x28] MOV EDX,EAX CALL 0x0013c870 MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RBP + -0x2c] MOV RDX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RDX + 0x18] MOV qword ptr [RAX + RCX*0x1],RDX MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x10] ADD RCX,qword ptr [RAX + 0x18] MOV qword ptr [RAX + 0x18],RCX LAB_00137809: ADD RSP,0x30 POP RBP RET
void uf_blob(long param_1,uint *param_2,void *param_3,long param_4) { uint uVar1; ulong uVar2; uint local_38; if (param_2[1] == 0) { fill_buffer(param_2); param_2[1] = 0x1f; uVar1 = *param_2 & 0x80000000; } else { uVar1 = param_2[1]; param_2[1] = uVar1 - 1; uVar1 = *param_2 & 1 << ((byte)(uVar1 - 1) & 0x1f); } if (uVar1 == 0) { if (param_2[1] < *(uint *)(param_1 + 0x24)) { local_38 = fill_and_get_bits(param_2); } else { uVar1 = param_2[1] - *(int *)(param_1 + 0x24); param_2[1] = uVar1; local_38 = *param_2 >> ((byte)uVar1 & 0x1f) & *(uint *)(mask + (ulong)*(uint *)(param_1 + 0x24) * 4); } uVar2 = (ulong)local_38; uVar1 = ((int)param_4 - (int)param_3) - 8; if (*(ulong *)(param_2 + 8) < *(long *)(param_2 + 6) + uVar2) { param_2[10] = 1; memset(param_3,0,param_4 - (long)param_3); } else { decode_bytes(param_1,param_2,*(int8 *)(param_2 + 6),*(long *)(param_2 + 6) + uVar2); _ma_store_blob_length(param_3,uVar1,uVar2); *(int8 *)((long)param_3 + (ulong)uVar1) = *(int8 *)(param_2 + 6); *(ulong *)(param_2 + 6) = uVar2 + *(long *)(param_2 + 6); } } else { memset(param_3,0,(ulong)(uint)((int)param_4 - (int)param_3)); } return; }
31,369
my_thread_destory_thr_mutex
eloqsql/mysys/my_thr_init.c
static void my_thread_destory_thr_mutex(struct st_my_thread_var *var) { mysql_mutex_destroy(&var->mutex); mysql_cond_destroy(&var->suspend); }
O3
c
my_thread_destory_thr_mutex: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rdi, %rbx leaq 0x40(%rdi), %r14 movq 0x80(%rdi), %rdi testq %rdi, %rdi je 0x85b53 leaq 0x2e18f6(%rip), %rax # 0x367438 movq (%rax), %rax callq *0x48(%rax) movq $0x0, 0x80(%rbx) movq %r14, %rdi callq 0x27110 movq 0x38(%rbx), %rdi testq %rdi, %rdi jne 0x85b74 addq $0x8, %rbx movq %rbx, %rdi popq %rbx popq %r14 popq %rbp jmp 0x272d0 leaq 0x2e18bd(%rip), %rax # 0x367438 movq (%rax), %rax callq *0x68(%rax) movq $0x0, 0x38(%rbx) jmp 0x85b64
my_thread_destory_thr_mutex: push rbp mov rbp, rsp push r14 push rbx mov rbx, rdi lea r14, [rdi+40h] mov rdi, [rdi+80h] test rdi, rdi jz short loc_85B53 lea rax, PSI_server mov rax, [rax] call qword ptr [rax+48h] mov qword ptr [rbx+80h], 0 loc_85B53: mov rdi, r14 call _pthread_mutex_destroy mov rdi, [rbx+38h] test rdi, rdi jnz short loc_85B74 loc_85B64: add rbx, 8 mov rdi, rbx pop rbx pop r14 pop rbp jmp _pthread_cond_destroy loc_85B74: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+68h] mov qword ptr [rbx+38h], 0 jmp short loc_85B64
long long my_thread_destory_thr_mutex(long long a1) { if ( *(_QWORD *)(a1 + 128) ) { PSI_server[9](); *(_QWORD *)(a1 + 128) = 0LL; } pthread_mutex_destroy(a1 + 64); if ( *(_QWORD *)(a1 + 56) ) { PSI_server[13](); *(_QWORD *)(a1 + 56) = 0LL; } return pthread_cond_destroy(a1 + 8); }
my_thread_destory_thr_mutex: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV RBX,RDI LEA R14,[RDI + 0x40] MOV RDI,qword ptr [RDI + 0x80] TEST RDI,RDI JZ 0x00185b53 LEA RAX,[0x467438] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x48] MOV qword ptr [RBX + 0x80],0x0 LAB_00185b53: MOV RDI,R14 CALL 0x00127110 MOV RDI,qword ptr [RBX + 0x38] TEST RDI,RDI JNZ 0x00185b74 LAB_00185b64: ADD RBX,0x8 MOV RDI,RBX POP RBX POP R14 POP RBP JMP 0x001272d0 LAB_00185b74: LEA RAX,[0x467438] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x68] MOV qword ptr [RBX + 0x38],0x0 JMP 0x00185b64
void my_thread_destory_thr_mutex(long param_1) { if (*(long *)(param_1 + 0x80) != 0) { (**(code **)(PSI_server + 0x48))(); *(int8 *)(param_1 + 0x80) = 0; } pthread_mutex_destroy((pthread_mutex_t *)(param_1 + 0x40)); if (*(long *)(param_1 + 0x38) != 0) { (**(code **)(PSI_server + 0x68))(); *(int8 *)(param_1 + 0x38) = 0; } pthread_cond_destroy((pthread_cond_t *)(param_1 + 8)); return; }
31,370
translog_file_init
eloqsql/storage/maria/ma_loghandler.c
static void translog_file_init(TRANSLOG_FILE *file, uint32 number, my_bool is_sync) { pagecache_file_set_null_hooks(&file->handler); file->handler.post_read_hook= translog_page_validator; file->handler.flush_log_callback= maria_flush_log_for_page_none; file->handler.callback_data= (uchar*)file; file->number= number; file->was_recovered= 0; file->is_sync= is_sync; }
O0
c
translog_file_init: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movb %dl, %al movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movb %al, -0xd(%rbp) movq -0x8(%rbp), %rdi addq $0x8, %rdi callq 0x304e0 movq -0x8(%rbp), %rax leaq 0x6994(%rip), %rcx # 0x58ae0 movq %rcx, 0x28(%rax) movq -0x8(%rbp), %rax leaq 0xb8f5(%rip), %rcx # 0x5da50 movq %rcx, 0x40(%rax) movq -0x8(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x48(%rax) movl -0xc(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, (%rax) movq -0x8(%rbp), %rax movb $0x0, 0x50(%rax) movb -0xd(%rbp), %cl movq -0x8(%rbp), %rax movb %cl, 0x51(%rax) addq $0x10, %rsp popq %rbp retq nopl (%rax)
translog_file_init: push rbp mov rbp, rsp sub rsp, 10h mov al, dl mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_D], al mov rdi, [rbp+var_8] add rdi, 8 call pagecache_file_set_null_hooks mov rax, [rbp+var_8] lea rcx, translog_page_validator mov [rax+28h], rcx mov rax, [rbp+var_8] lea rcx, maria_flush_log_for_page_none mov [rax+40h], rcx mov rcx, [rbp+var_8] mov rax, [rbp+var_8] mov [rax+48h], rcx mov ecx, [rbp+var_C] mov rax, [rbp+var_8] mov [rax], ecx mov rax, [rbp+var_8] mov byte ptr [rax+50h], 0 mov cl, [rbp+var_D] mov rax, [rbp+var_8] mov [rax+51h], cl add rsp, 10h pop rbp retn
long long translog_file_init(long long a1, int a2, char a3) { long long result; // rax pagecache_file_set_null_hooks((_QWORD *)(a1 + 8)); *(_QWORD *)(a1 + 40) = translog_page_validator; *(_QWORD *)(a1 + 64) = maria_flush_log_for_page_none; *(_QWORD *)(a1 + 72) = a1; *(_DWORD *)a1 = a2; *(_BYTE *)(a1 + 80) = 0; result = a1; *(_BYTE *)(a1 + 81) = a3; return result; }
translog_file_init: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV AL,DL MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV byte ptr [RBP + -0xd],AL MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x8 CALL 0x001304e0 MOV RAX,qword ptr [RBP + -0x8] LEA RCX,[0x158ae0] MOV qword ptr [RAX + 0x28],RCX MOV RAX,qword ptr [RBP + -0x8] LEA RCX,[0x15da50] MOV qword ptr [RAX + 0x40],RCX MOV RCX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x48],RCX MOV ECX,dword ptr [RBP + -0xc] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x8] MOV byte ptr [RAX + 0x50],0x0 MOV CL,byte ptr [RBP + -0xd] MOV RAX,qword ptr [RBP + -0x8] MOV byte ptr [RAX + 0x51],CL ADD RSP,0x10 POP RBP RET
void translog_file_init(int4 *param_1,int4 param_2,int1 param_3) { pagecache_file_set_null_hooks(param_1 + 2); *(code **)(param_1 + 10) = translog_page_validator; *(code **)(param_1 + 0x10) = maria_flush_log_for_page_none; *(int4 **)(param_1 + 0x12) = param_1; *param_1 = param_2; *(int1 *)(param_1 + 0x14) = 0; *(int1 *)((long)param_1 + 0x51) = param_3; return; }
31,371
my_b_write
eloqsql/include/my_sys.h
static inline int my_b_write(IO_CACHE *info, const uchar *Buffer, size_t Count) { MEM_CHECK_DEFINED(Buffer, Count); if (info->write_pos + Count <= info->write_end) { if (Count) { memcpy(info->write_pos, Buffer, Count); info->write_pos+= Count; } return 0; } return _my_b_write(info, Buffer, Count); }
O0
c
my_b_write: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rax movq 0x40(%rax), %rax addq -0x20(%rbp), %rax movq -0x10(%rbp), %rcx cmpq 0x48(%rcx), %rax ja 0xb8a6f cmpq $0x0, -0x20(%rbp) je 0xb8a66 movq -0x10(%rbp), %rax movq 0x40(%rax), %rdi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx callq 0x600e0 movq -0x20(%rbp), %rcx movq -0x10(%rbp), %rax addq 0x40(%rax), %rcx movq %rcx, 0x40(%rax) movl $0x0, -0x4(%rbp) jmp 0xb8a83 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx callq 0xb7b30 movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x20, %rsp popq %rbp retq nopl (%rax)
my_b_write: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_10] mov rax, [rax+40h] add rax, [rbp+var_20] mov rcx, [rbp+var_10] cmp rax, [rcx+48h] ja short loc_B8A6F cmp [rbp+var_20], 0 jz short loc_B8A66 mov rax, [rbp+var_10] mov rdi, [rax+40h] mov rsi, [rbp+var_18] mov rdx, [rbp+var_20] call _memcpy mov rcx, [rbp+var_20] mov rax, [rbp+var_10] add rcx, [rax+40h] mov [rax+40h], rcx loc_B8A66: mov [rbp+var_4], 0 jmp short loc_B8A83 loc_B8A6F: mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] mov rdx, [rbp+var_20] call _my_b_write mov [rbp+var_4], eax loc_B8A83: mov eax, [rbp+var_4] add rsp, 20h pop rbp retn
long long my_b_write(long long a1, long long a2, long long a3) { if ( (unsigned long long)(a3 + *(_QWORD *)(a1 + 64)) > *(_QWORD *)(a1 + 72) ) { return (unsigned int)my_b_write(a1, a2, a3); } else { if ( a3 ) { memcpy(*(_QWORD *)(a1 + 64), a2, a3); *(_QWORD *)(a1 + 64) += a3; } return 0; } }
my_b_write: PUSH RBP MOV RBP,RSP SUB RSP,0x20 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 + 0x40] ADD RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RCX + 0x48] JA 0x001b8a6f CMP qword ptr [RBP + -0x20],0x0 JZ 0x001b8a66 MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x40] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] CALL 0x001600e0 MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x10] ADD RCX,qword ptr [RAX + 0x40] MOV qword ptr [RAX + 0x40],RCX LAB_001b8a66: MOV dword ptr [RBP + -0x4],0x0 JMP 0x001b8a83 LAB_001b8a6f: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] CALL 0x001b7b30 MOV dword ptr [RBP + -0x4],EAX LAB_001b8a83: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x20 POP RBP RET
int4 my_b_write(long param_1,void *param_2,size_t param_3) { int4 local_c; if (*(ulong *)(param_1 + 0x48) < *(long *)(param_1 + 0x40) + param_3) { local_c = _my_b_write(param_1,param_2,param_3); } else { if (param_3 != 0) { memcpy(*(void **)(param_1 + 0x40),param_2,param_3); *(size_t *)(param_1 + 0x40) = param_3 + *(long *)(param_1 + 0x40); } local_c = 0; } return local_c; }
31,372
common_log_main()
monkey531[P]llama/common/log.cpp
struct common_log * common_log_main() { static struct common_log log; return &log; }
O3
cpp
common_log_main(): pushq %rbx movb 0x5673a(%rip), %al # 0xec2e8 testb %al, %al je 0x95bbb leaq 0x5665f(%rip), %rax # 0xec218 popq %rbx retq leaq 0x56726(%rip), %rdi # 0xec2e8 callq 0x19c50 testl %eax, %eax je 0x95bb2 leaq 0x56646(%rip), %rdi # 0xec218 movl $0x100, %esi # imm = 0x100 callq 0x962ec leaq 0x153(%rip), %rdi # 0x95d36 leaq 0x5662e(%rip), %rsi # 0xec218 leaq 0x55ae7(%rip), %rdx # 0xeb6d8 callq 0x19600 leaq 0x566eb(%rip), %rdi # 0xec2e8 callq 0x19460 jmp 0x95bb2 movq %rax, %rbx leaq 0x566da(%rip), %rdi # 0xec2e8 callq 0x19450 movq %rbx, %rdi callq 0x19c00
_Z15common_log_mainv: push rbx mov al, cs:_ZGVZ15common_log_mainvE3log; `guard variable for'common_log_main(void)::log test al, al jz short loc_95BBB loc_95BB2: lea rax, _ZZ15common_log_mainvE3log; common_log_main(void)::log pop rbx retn loc_95BBB: lea rdi, _ZGVZ15common_log_mainvE3log; __guard * call ___cxa_guard_acquire test eax, eax jz short loc_95BB2 lea rdi, _ZZ15common_log_mainvE3log; this mov esi, 100h; unsigned __int64 call _ZN10common_logC2Em; common_log::common_log(ulong) lea rdi, _ZN10common_logD2Ev; lpfunc lea rsi, _ZZ15common_log_mainvE3log; obj lea rdx, __dso_handle; lpdso_handle call ___cxa_atexit lea rdi, _ZGVZ15common_log_mainvE3log; __guard * call ___cxa_guard_release jmp short loc_95BB2 mov rbx, rax lea rdi, _ZGVZ15common_log_mainvE3log; __guard * call ___cxa_guard_abort mov rdi, rbx call __Unwind_Resume
void *common_log_main(void) { if ( !(_BYTE)`guard variable for'common_log_main(void)::log && __cxa_guard_acquire(&`guard variable for'common_log_main(void)::log) ) { common_log::common_log((common_log *)&common_log_main(void)::log, 0x100uLL); __cxa_atexit(common_log::~common_log, &common_log_main(void)::log, &_dso_handle); __cxa_guard_release(&`guard variable for'common_log_main(void)::log); } return &common_log_main(void)::log; }
common_log_main: PUSH RBX MOV AL,byte ptr [0x001ec2e8] TEST AL,AL JZ 0x00195bbb LAB_00195bb2: LEA RAX,[0x1ec218] POP RBX RET LAB_00195bbb: LEA RDI,[0x1ec2e8] CALL 0x00119c50 TEST EAX,EAX JZ 0x00195bb2 LAB_00195bcb: LEA RDI,[0x1ec218] MOV ESI,0x100 CALL 0x001962ec LAB_00195bdc: LEA RDI,[0x195d36] LEA RSI,[0x1ec218] LEA RDX,[0x1eb6d8] CALL 0x00119600 LEA RDI,[0x1ec2e8] CALL 0x00119460 JMP 0x00195bb2
/* WARNING: Unknown calling convention -- yet parameter storage is locked */ /* common_log_main() */ int1 * common_log_main(void) { int iVar1; if (common_log_main()::log == '\0') { iVar1 = __cxa_guard_acquire(&common_log_main()::log); if (iVar1 != 0) { /* try { // try from 00195bcb to 00195bdb has its CatchHandler @ 00195c04 */ common_log::common_log((common_log *)common_log_main()::log,0x100); __cxa_atexit(common_log::~common_log,common_log_main()::log,&__dso_handle); __cxa_guard_release(&common_log_main()::log); } } return common_log_main()::log; }
31,373
nlohmann::json_abi_v3_11_3::detail::serializer<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>>::hex_bytes(unsigned char)
monkey531[P]llama/common/json.hpp
static std::string hex_bytes(std::uint8_t byte) { std::string result = "FF"; constexpr const char* nibble_to_hex = "0123456789ABCDEF"; result[0] = nibble_to_hex[byte / 16]; result[1] = nibble_to_hex[byte % 16]; return result; }
O0
cpp
nlohmann::json_abi_v3_11_3::detail::serializer<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>>::hex_bytes(unsigned char): subq $0x68, %rsp movq %rdi, 0x30(%rsp) movb %sil, %al movq %rdi, %rcx movq %rcx, 0x28(%rsp) movq %rdi, 0x60(%rsp) movb %al, 0x5f(%rsp) movb $0x0, 0x5e(%rsp) leaq 0x5d(%rsp), %rdi movq %rdi, 0x38(%rsp) callq 0x5b0b0 movq 0x30(%rsp), %rdi movq 0x38(%rsp), %rdx leaq 0x7eb0e(%rip), %rsi # 0x20c800 callq 0x629a0 jmp 0x18dcf9 leaq 0x5d(%rsp), %rdi callq 0x5b500 movq 0x30(%rsp), %rdi leaq 0x84239(%rip), %rcx # 0x211f48 movq %rcx, 0x40(%rsp) movzbl 0x5f(%rsp), %eax shrl $0x4, %eax movb (%rax,%rcx), %al movb %al, 0x1f(%rsp) xorl %eax, %eax movl %eax, %esi callq 0x5b390 movq %rax, 0x20(%rsp) jmp 0x18dd33 movq 0x30(%rsp), %rdi movq 0x20(%rsp), %rax movb 0x1f(%rsp), %cl movb %cl, (%rax) movzbl 0x5f(%rsp), %eax andl $0xf, %eax leaq 0x841f6(%rip), %rcx # 0x211f48 movb (%rax,%rcx), %al movb %al, 0xf(%rsp) movl $0x1, %esi callq 0x5b390 movq %rax, 0x10(%rsp) jmp 0x18dd6a movq 0x10(%rsp), %rax movb 0xf(%rsp), %cl movb %cl, (%rax) movb $0x1, 0x5e(%rsp) testb $0x1, 0x5e(%rsp) jne 0x18ddc1 jmp 0x18ddb7 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x50(%rsp) movl %eax, 0x4c(%rsp) leaq 0x5d(%rsp), %rdi callq 0x5b500 jmp 0x18ddcb movq 0x30(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x50(%rsp) movl %eax, 0x4c(%rsp) callq 0x5b528 jmp 0x18ddcb movq 0x30(%rsp), %rdi callq 0x5b528 movq 0x28(%rsp), %rax addq $0x68, %rsp retq movq 0x50(%rsp), %rdi callq 0x5aba0 nopw %cs:(%rax,%rax) nop
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE9hex_bytesEh: sub rsp, 68h mov [rsp+68h+var_38], rdi mov al, sil mov rcx, rdi mov [rsp+68h+var_40], rcx mov [rsp+68h+var_8], rdi mov [rsp+68h+var_9], al mov [rsp+68h+var_A], 0 lea rdi, [rsp+68h+var_B] mov [rsp+68h+var_30], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdi, [rsp+68h+var_38] mov rdx, [rsp+68h+var_30] lea rsi, aInvalidStringS_0+41h; "FF" call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_18DCF9: lea rdi, [rsp+68h+var_B] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() mov rdi, [rsp+68h+var_38] lea rcx, a0123456789abcd; "0123456789ABCDEF" mov [rsp+68h+var_28], rcx movzx eax, [rsp+68h+var_9] shr eax, 4 mov al, [rax+rcx] mov [rsp+68h+var_49], al xor eax, eax mov esi, eax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm; std::string::operator[](ulong) mov [rsp+68h+var_48], rax jmp short $+2 loc_18DD33: mov rdi, [rsp+68h+var_38] mov rax, [rsp+68h+var_48] mov cl, [rsp+68h+var_49] mov [rax], cl movzx eax, [rsp+68h+var_9] and eax, 0Fh lea rcx, a0123456789abcd; "0123456789ABCDEF" mov al, [rax+rcx] mov [rsp+68h+var_59], al mov esi, 1 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm; std::string::operator[](ulong) mov [rsp+68h+var_58], rax jmp short $+2 loc_18DD6A: mov rax, [rsp+68h+var_58] mov cl, [rsp+68h+var_59] mov [rax], cl mov [rsp+68h+var_A], 1 test [rsp+68h+var_A], 1 jnz short loc_18DDC1 jmp short loc_18DDB7 mov rcx, rax mov eax, edx mov [rsp+arg_48], rcx mov [rsp+arg_44], eax lea rdi, [rsp+arg_55] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp short loc_18DDCB mov rdi, [rsp+arg_28]; void * mov rcx, rax mov eax, edx mov [rsp+arg_48], rcx mov [rsp+arg_44], eax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_18DDCB loc_18DDB7: mov rdi, [rsp+68h+var_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_18DDC1: mov rax, [rsp+68h+var_40] add rsp, 68h retn loc_18DDCB: mov rdi, [rsp+arg_48] call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::detail::serializer<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>>::hex_bytes( long long a1, long long a2) { char v3; // [rsp+Fh] [rbp-59h] char v4; // [rsp+1Fh] [rbp-49h] _BYTE v5[2]; // [rsp+5Dh] [rbp-Bh] BYREF unsigned __int8 v6; // [rsp+5Fh] [rbp-9h] long long v7; // [rsp+60h] [rbp-8h] v7 = a1; v6 = a2; v5[1] = 0; std::allocator<char>::allocator(v5, a2); std::string::basic_string<std::allocator<char>>(a1, (long long)"FF", (long long)v5); std::allocator<char>::~allocator(v5); v4 = a0123456789abcd[v6 >> 4]; *(_BYTE *)std::string::operator[](a1, 0LL) = v4; v3 = a0123456789abcd[v6 & 0xF]; *(_BYTE *)std::string::operator[](a1, 1LL) = v3; return a1; }
31,374
nlohmann::json_abi_v3_11_3::detail::serializer<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>>::hex_bytes(unsigned char)
monkey531[P]llama/common/json.hpp
static std::string hex_bytes(std::uint8_t byte) { std::string result = "FF"; constexpr const char* nibble_to_hex = "0123456789ABCDEF"; result[0] = nibble_to_hex[byte / 16]; result[1] = nibble_to_hex[byte % 16]; return result; }
O2
cpp
nlohmann::json_abi_v3_11_3::detail::serializer<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>>::hex_bytes(unsigned char): pushq %r14 pushq %rbx pushq %rax movl %esi, %ebx movq %rdi, %r14 leaq 0x27fb8(%rip), %rsi # 0xaf258 leaq 0x7(%rsp), %rdx callq 0x27370 movl %ebx, %eax shrl $0x4, %eax leaq 0x2d287(%rip), %rcx # 0xb453d movb (%rax,%rcx), %al movq (%r14), %rdx movb %al, (%rdx) andl $0xf, %ebx movb (%rbx,%rcx), %al movq (%r14), %rcx movb %al, 0x1(%rcx) movq %r14, %rax addq $0x8, %rsp popq %rbx popq %r14 retq
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE9hex_bytesEh: push r14 push rbx push rax mov ebx, esi mov r14, rdi lea rsi, aInvalidStringS_0+41h; "FF" lea rdx, [rsp+18h+var_11] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) mov eax, ebx shr eax, 4 lea rcx, a0123456789abcd; "0123456789ABCDEF" mov al, [rax+rcx] mov rdx, [r14] mov [rdx], al and ebx, 0Fh mov al, [rbx+rcx] mov rcx, [r14] mov [rcx+1], al mov rax, r14 add rsp, 8 pop rbx pop r14 retn
_QWORD * nlohmann::json_abi_v3_11_3::detail::serializer<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>>::hex_bytes( _QWORD *a1, unsigned int a2) { std::string::basic_string<std::allocator<char>>(a1, (long long)"FF"); *(_BYTE *)*a1 = a0123456789abcd[a2 >> 4]; *(_BYTE *)(*a1 + 1LL) = a0123456789abcd[a2 & 0xF]; return a1; }
hex_bytes: PUSH R14 PUSH RBX PUSH RAX MOV EBX,ESI MOV R14,RDI LEA RSI,[0x1af258] LEA RDX,[RSP + 0x7] CALL 0x00127370 MOV EAX,EBX SHR EAX,0x4 LEA RCX,[0x1b453d] MOV AL,byte ptr [RAX + RCX*0x1] MOV RDX,qword ptr [R14] MOV byte ptr [RDX],AL AND EBX,0xf MOV AL,byte ptr [RBX + RCX*0x1] MOV RCX,qword ptr [R14] MOV byte ptr [RCX + 0x1],AL MOV RAX,R14 ADD RSP,0x8 POP RBX POP R14 RET
/* nlohmann::json_abi_v3_11_3::detail::serializer<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> >::hex_bytes(unsigned char) */ serializer<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>> * __thiscall nlohmann::json_abi_v3_11_3::detail:: serializer<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>> ::hex_bytes(serializer<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,uchar param_1) { int7 in_register_00000031; allocator local_11; std::__cxx11::string::string<std::allocator<char>>((string *)this,"FF",&local_11); **(char **)this = "0123456789ABCDEF"[(CONCAT71(in_register_00000031,param_1) & 0xffffffff) >> 4]; *(char *)(*(long *)this + 1) = "0123456789ABCDEF"[(uint)CONCAT71(in_register_00000031,param_1) & 0xf]; return this; }
31,375
translog_first_file
eloqsql/storage/maria/ma_loghandler.c
static uint32 translog_first_file(TRANSLOG_ADDRESS horizon, int is_protected) { uint min_file= 0, max_file; DBUG_ENTER("translog_first_file"); if (!is_protected) mysql_mutex_lock(&log_descriptor.purger_lock); if (log_descriptor.min_file_number && translog_is_file(log_descriptor.min_file_number)) { DBUG_PRINT("info", ("cached %lu", (ulong) log_descriptor.min_file_number)); if (!is_protected) mysql_mutex_unlock(&log_descriptor.purger_lock); DBUG_RETURN(log_descriptor.min_file_number); } max_file= LSN_FILE_NO(horizon); /* binary search for last file */ while (min_file != max_file && min_file != (max_file - 1)) { uint test= (min_file + max_file) / 2; DBUG_PRINT("info", ("min_file: %u test: %u max_file: %u", min_file, test, max_file)); if (test == max_file) test--; if (translog_is_file(test)) max_file= test; else min_file= test; } log_descriptor.min_file_number= max_file; if (!is_protected) mysql_mutex_unlock(&log_descriptor.purger_lock); DBUG_PRINT("info", ("first file :%lu", (ulong) max_file)); DBUG_ASSERT(max_file >= 1); DBUG_RETURN(max_file); }
O3
c
translog_first_file: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %esi, %r14d movq %rdi, %rbx testl %esi, %esi jne 0x44a9b cmpq $0x0, 0xbe2fe7(%rip) # 0xc27a70 jne 0x44b47 leaq 0xbe2f9a(%rip), %rdi # 0xc27a30 callq 0x2a230 movl 0xbe2f8b(%rip), %edi # 0xc27a2c testl %edi, %edi je 0x44ad7 callq 0x47e6b testb %al, %al je 0x44ad7 testl %r14d, %r14d jne 0x44acf movq 0xbe2fb6(%rip), %rdi # 0xc27a70 testq %rdi, %rdi jne 0x44b63 leaq 0xbe2f66(%rip), %rdi # 0xc27a30 callq 0x2a1f0 movl 0xbe2f57(%rip), %ebx # 0xc27a2c jmp 0x44b3c shrq $0x20, %rbx testl $0xfffffffe, %ebx # imm = 0xFFFFFFFE je 0x44b19 xorl %r12d, %r12d leal (%rbx,%r12), %r15d shrl %r15d xorl %eax, %eax cmpl %ebx, %r15d sete %al subl %eax, %r15d movl %r15d, %edi callq 0x47e6b testb %al, %al je 0x44b09 movl %r15d, %ebx jmp 0x44b0c movl %r15d, %r12d cmpl %ebx, %r12d je 0x44b19 leal -0x1(%rbx), %eax cmpl %eax, %r12d jne 0x44ae6 movl %ebx, 0xbe2f0d(%rip) # 0xc27a2c testl %r14d, %r14d jne 0x44b3c movq 0xbe2f45(%rip), %rdi # 0xc27a70 testq %rdi, %rdi jne 0x44b51 leaq 0xbe2ef9(%rip), %rdi # 0xc27a30 callq 0x2a1f0 movl %ebx, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq callq 0x2d0fd jmp 0x44a9b leaq 0x369ec0(%rip), %rax # 0x3aea18 movq (%rax), %rax callq *0x160(%rax) jmp 0x44b30 leaq 0x369eae(%rip), %rax # 0x3aea18 movq (%rax), %rax callq *0x160(%rax) jmp 0x44ac3
translog_first_file: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov r14d, esi mov rbx, rdi test esi, esi jnz short loc_44A9B cmp cs:qword_C27A70, 0 jnz loc_44B47 lea rdi, unk_C27A30 call _pthread_mutex_lock loc_44A9B: mov edi, dword ptr cs:qword_C27A28+4 test edi, edi jz short loc_44AD7 call translog_is_file test al, al jz short loc_44AD7 test r14d, r14d jnz short loc_44ACF mov rdi, cs:qword_C27A70 test rdi, rdi jnz loc_44B63 loc_44AC3: lea rdi, unk_C27A30 call _pthread_mutex_unlock loc_44ACF: mov ebx, dword ptr cs:qword_C27A28+4 jmp short loc_44B3C loc_44AD7: shr rbx, 20h test ebx, 0FFFFFFFEh jz short loc_44B19 xor r12d, r12d loc_44AE6: lea r15d, [rbx+r12] shr r15d, 1 xor eax, eax cmp r15d, ebx setz al sub r15d, eax mov edi, r15d call translog_is_file test al, al jz short loc_44B09 mov ebx, r15d jmp short loc_44B0C loc_44B09: mov r12d, r15d loc_44B0C: cmp r12d, ebx jz short loc_44B19 lea eax, [rbx-1] cmp r12d, eax jnz short loc_44AE6 loc_44B19: mov dword ptr cs:qword_C27A28+4, ebx test r14d, r14d jnz short loc_44B3C mov rdi, cs:qword_C27A70 test rdi, rdi jnz short loc_44B51 loc_44B30: lea rdi, unk_C27A30 call _pthread_mutex_unlock loc_44B3C: mov eax, ebx pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_44B47: call translog_first_file_cold_1 jmp loc_44A9B loc_44B51: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_44B30 loc_44B63: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp loc_44AC3
long long translog_first_file(unsigned long long a1, int a2) { unsigned long long v2; // rbx unsigned int v3; // r12d if ( !a2 ) { if ( qword_C27A70 ) translog_first_file_cold_1(); else pthread_mutex_lock(&unk_C27A30); } if ( HIDWORD(qword_C27A28) && (unsigned __int8)((long long (*)(void))translog_is_file)() ) { if ( !a2 ) { if ( qword_C27A70 ) PSI_server[44](); pthread_mutex_unlock(&unk_C27A30); } LODWORD(v2) = HIDWORD(qword_C27A28); } else { v2 = HIDWORD(a1); if ( (a1 & 0xFFFFFFFE00000000LL) != 0 ) { v3 = 0; do { if ( (unsigned __int8)translog_is_file((((unsigned int)v2 + v3) >> 1) - (((unsigned int)v2 + v3) >> 1 == (_DWORD)v2)) ) LODWORD(v2) = (((unsigned int)v2 + v3) >> 1) - (((unsigned int)v2 + v3) >> 1 == (_DWORD)v2); else v3 = (((unsigned int)v2 + v3) >> 1) - (((unsigned int)v2 + v3) >> 1 == (_DWORD)v2); } while ( v3 != (_DWORD)v2 && v3 != (_DWORD)v2 - 1 ); } HIDWORD(qword_C27A28) = v2; if ( !a2 ) { if ( qword_C27A70 ) PSI_server[44](); pthread_mutex_unlock(&unk_C27A30); } } return (unsigned int)v2; }
translog_first_file: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV R14D,ESI MOV RBX,RDI TEST ESI,ESI JNZ 0x00144a9b CMP qword ptr [0x00d27a70],0x0 JNZ 0x00144b47 LEA RDI,[0xd27a30] CALL 0x0012a230 LAB_00144a9b: MOV EDI,dword ptr [0x00d27a2c] TEST EDI,EDI JZ 0x00144ad7 CALL 0x00147e6b TEST AL,AL JZ 0x00144ad7 TEST R14D,R14D JNZ 0x00144acf MOV RDI,qword ptr [0x00d27a70] TEST RDI,RDI JNZ 0x00144b63 LAB_00144ac3: LEA RDI,[0xd27a30] CALL 0x0012a1f0 LAB_00144acf: MOV EBX,dword ptr [0x00d27a2c] JMP 0x00144b3c LAB_00144ad7: SHR RBX,0x20 TEST EBX,0xfffffffe JZ 0x00144b19 XOR R12D,R12D LAB_00144ae6: LEA R15D,[RBX + R12*0x1] SHR R15D,0x1 XOR EAX,EAX CMP R15D,EBX SETZ AL SUB R15D,EAX MOV EDI,R15D CALL 0x00147e6b TEST AL,AL JZ 0x00144b09 MOV EBX,R15D JMP 0x00144b0c LAB_00144b09: MOV R12D,R15D LAB_00144b0c: CMP R12D,EBX JZ 0x00144b19 LEA EAX,[RBX + -0x1] CMP R12D,EAX JNZ 0x00144ae6 LAB_00144b19: MOV dword ptr [0x00d27a2c],EBX TEST R14D,R14D JNZ 0x00144b3c MOV RDI,qword ptr [0x00d27a70] TEST RDI,RDI JNZ 0x00144b51 LAB_00144b30: LEA RDI,[0xd27a30] CALL 0x0012a1f0 LAB_00144b3c: MOV EAX,EBX POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_00144b47: CALL 0x0012d0fd JMP 0x00144a9b LAB_00144b51: LEA RAX,[0x4aea18] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x00144b30 LAB_00144b63: LEA RAX,[0x4aea18] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x00144ac3
ulong translog_first_file(ulong param_1,int param_2) { char cVar1; uint uVar2; uint uVar3; if (param_2 == 0) { if (DAT_00d27a70 == 0) { pthread_mutex_lock((pthread_mutex_t *)&DAT_00d27a30); } else { translog_first_file_cold_1(); } } if ((DAT_00d27a2c == 0) || (cVar1 = translog_is_file(), cVar1 == '\0')) { param_1 = param_1 >> 0x20; if ((param_1 & 0xfffffffe) != 0) { uVar2 = 0; do { uVar3 = (uint)param_1 + uVar2 >> 1; uVar3 = uVar3 - (uVar3 == (uint)param_1); cVar1 = translog_is_file(uVar3); if (cVar1 != '\0') { param_1 = (ulong)uVar3; uVar3 = uVar2; } uVar2 = uVar3; } while ((uVar2 != (uint)param_1) && (uVar2 != (uint)param_1 - 1)); } DAT_00d27a2c = (uint)param_1; if (param_2 == 0) { if (DAT_00d27a70 != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock((pthread_mutex_t *)&DAT_00d27a30); } } else { if (param_2 == 0) { if (DAT_00d27a70 != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock((pthread_mutex_t *)&DAT_00d27a30); } param_1 = (ulong)DAT_00d27a2c; } return param_1; }
31,376
my_mutex_init
eloqsql/mysys/thr_mutex.c
void my_mutex_init() { /* Initialize mutex attributes */ #ifdef PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP /* Set mutex type to "fast" a.k.a "adaptive" In this case the thread may steal the mutex from some other thread that is waiting for the same mutex. This will save us some context switches but may cause a thread to 'starve forever' while waiting for the mutex (not likely if the code within the mutex is short). */ pthread_mutexattr_init(&my_fast_mutexattr); pthread_mutexattr_settype(&my_fast_mutexattr, PTHREAD_MUTEX_ADAPTIVE_NP); #endif #ifdef PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP /* Set mutex type to "errorcheck" */ pthread_mutexattr_init(&my_errorcheck_mutexattr); pthread_mutexattr_settype(&my_errorcheck_mutexattr, PTHREAD_MUTEX_ERRORCHECK); #endif #if defined(SAFE_MUTEX_DEFINED) safe_mutex_global_init(); #endif }
O0
c
my_mutex_init: pushq %rbp movq %rsp, %rbp leaq 0x37f8e5(%rip), %rdi # 0x40d830 callq 0x389f0 leaq 0x37f8d9(%rip), %rdi # 0x40d830 movl $0x3, %esi callq 0x38530 leaq 0x37f8cc(%rip), %rdi # 0x40d834 callq 0x389f0 leaq 0x37f8c0(%rip), %rdi # 0x40d834 movl $0x2, %esi callq 0x38530 popq %rbp retq
my_mutex_init: push rbp mov rbp, rsp lea rdi, my_fast_mutexattr call _pthread_mutexattr_init lea rdi, my_fast_mutexattr mov esi, 3 call _pthread_mutexattr_settype lea rdi, my_errorcheck_mutexattr call _pthread_mutexattr_init lea rdi, my_errorcheck_mutexattr mov esi, 2 call _pthread_mutexattr_settype pop rbp retn
long long my_mutex_init() { pthread_mutexattr_init(&my_fast_mutexattr); pthread_mutexattr_settype(&my_fast_mutexattr, 3LL); pthread_mutexattr_init(&my_errorcheck_mutexattr); return pthread_mutexattr_settype(&my_errorcheck_mutexattr, 2LL); }
my_mutex_init: PUSH RBP MOV RBP,RSP LEA RDI,[0x50d830] CALL 0x001389f0 LEA RDI,[0x50d830] MOV ESI,0x3 CALL 0x00138530 LEA RDI,[0x50d834] CALL 0x001389f0 LEA RDI,[0x50d834] MOV ESI,0x2 CALL 0x00138530 POP RBP RET
void my_mutex_init(void) { pthread_mutexattr_init((pthread_mutexattr_t *)&my_fast_mutexattr); pthread_mutexattr_settype((pthread_mutexattr_t *)&my_fast_mutexattr,3); pthread_mutexattr_init((pthread_mutexattr_t *)&my_errorcheck_mutexattr); pthread_mutexattr_settype((pthread_mutexattr_t *)&my_errorcheck_mutexattr,2); return; }
31,377
LefDefParser::defiPin::Init()
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiPinCap.cpp
void defiPin::Init() { pinNameLength_ = 0; pinName_ = 0; netNameLength_ = 0; netName_ = 0; useLength_ = 0; use_ = 0; directionLength_ = 0; direction_ = 0; hasDirection_ = 0; hasUse_ = 0; placeType_ = 0; orient_ = 0; xl_ = 0; yl_ = 0; xh_ = 0; yh_ = 0; x_ = 0; y_ = 0; netExprLength_ = 0; // 5.6 netExpr_ = 0; // 5.6 hasNetExpr_ = 0; // 5.6 supplySensLength_ = 0; // 5.6 supplySens_ = 0; // 5.6 hasSupplySens_ = 0; // 5.6 groundSensLength_ = 0; // 5.6 groundSens_ = 0; // 5.6 hasGroundSens_ = 0; // 5.6 layers_ = 0; // 5.6 layersAllocated_ = 0; // 5.6 numLayers_ = 0; // 5.6 polygonNames_ = 0; // 5.6 numPolys_ = 0; // 5.6 polysAllocated_ = 0; // 5.6 polygons_ = 0; // 5.6 numAPinPartialMetalArea_ = 0; // 5.4 APinPartialMetalAreaAllocated_ = 0; // 5.4 APinPartialMetalArea_ = 0; APinPartialMetalAreaLayer_ = 0; numAPinPartialMetalSideArea_ = 0; // 5.4 APinPartialMetalSideAreaAllocated_ = 0; // 5.4 APinPartialMetalSideArea_ = 0; APinPartialMetalSideAreaLayer_ = 0; numAPinDiffArea_ = 0; // 5.4 APinDiffAreaAllocated_ = 0; // 5.4 APinDiffArea_ = 0; APinDiffAreaLayer_ = 0; numAPinPartialCutArea_ = 0; // 5.4 APinPartialCutAreaAllocated_ = 0; // 5.4 APinPartialCutArea_ = 0; APinPartialCutAreaLayer_ = 0; antennaModel_ = 0; viaNames_ = 0; // 5.7 viasAllocated_ = 0; // 5.7 numVias_ = 0; // 5.7 viaX_ = 0; // 5.7 viaY_ = 0; // 5.7 numPorts_ = 0; // 5.7 pinPort_ = 0; // 5.7 numAntennaModel_ = 0; antennaModelAllocated_ = 0; }
O0
cpp
LefDefParser::defiPin::Init(): movq %rdi, -0x8(%rsp) movq -0x8(%rsp), %rax movl $0x0, (%rax) movq $0x0, 0x8(%rax) movl $0x0, 0x10(%rax) movq $0x0, 0x18(%rax) movl $0x0, 0x24(%rax) movq $0x0, 0x28(%rax) movl $0x0, 0x30(%rax) movq $0x0, 0x38(%rax) movb $0x0, 0x20(%rax) movb $0x0, 0x21(%rax) movb $0x0, 0x22(%rax) movb $0x0, 0x23(%rax) movq $0x0, 0x48(%rax) movq $0x0, 0x50(%rax) movq $0x0, 0x58(%rax) movq $0x0, 0x60(%rax) movl $0x0, 0xb8(%rax) movl $0x0, 0xbc(%rax) movl $0x0, 0x170(%rax) movq $0x0, 0x178(%rax) movb $0x0, 0x174(%rax) movl $0x0, 0x180(%rax) movq $0x0, 0x188(%rax) movb $0x0, 0x184(%rax) movl $0x0, 0x190(%rax) movq $0x0, 0x198(%rax) movb $0x0, 0x194(%rax) movq $0x0, 0x40(%rax) movl $0x0, 0x78(%rax) movl $0x0, 0x7c(%rax) movq $0x0, 0x88(%rax) movl $0x0, 0xa8(%rax) movl $0x0, 0xac(%rax) movq $0x0, 0xb0(%rax) movl $0x0, 0x110(%rax) movl $0x0, 0x114(%rax) movq $0x0, 0x118(%rax) movq $0x0, 0x120(%rax) movl $0x0, 0x128(%rax) movl $0x0, 0x12c(%rax) movq $0x0, 0x130(%rax) movq $0x0, 0x138(%rax) movl $0x0, 0x140(%rax) movl $0x0, 0x144(%rax) movq $0x0, 0x148(%rax) movq $0x0, 0x150(%rax) movl $0x0, 0x158(%rax) movl $0x0, 0x15c(%rax) movq $0x0, 0x160(%rax) movq $0x0, 0x168(%rax) movq $0x0, 0x108(%rax) movq $0x0, 0xd0(%rax) movl $0x0, 0xc8(%rax) movl $0x0, 0xc4(%rax) movq $0x0, 0xd8(%rax) movq $0x0, 0xe0(%rax) movl $0x0, 0xf0(%rax) movq $0x0, 0xf8(%rax) movl $0x0, 0x100(%rax) movl $0x0, 0x104(%rax) retq nop
_ZN12LefDefParser7defiPin4InitEv: mov [rsp+var_8], rdi mov rax, [rsp+var_8] mov dword ptr [rax], 0 mov qword ptr [rax+8], 0 mov dword ptr [rax+10h], 0 mov qword ptr [rax+18h], 0 mov dword ptr [rax+24h], 0 mov qword ptr [rax+28h], 0 mov dword ptr [rax+30h], 0 mov qword ptr [rax+38h], 0 mov byte ptr [rax+20h], 0 mov byte ptr [rax+21h], 0 mov byte ptr [rax+22h], 0 mov byte ptr [rax+23h], 0 mov qword ptr [rax+48h], 0 mov qword ptr [rax+50h], 0 mov qword ptr [rax+58h], 0 mov qword ptr [rax+60h], 0 mov dword ptr [rax+0B8h], 0 mov dword ptr [rax+0BCh], 0 mov dword ptr [rax+170h], 0 mov qword ptr [rax+178h], 0 mov byte ptr [rax+174h], 0 mov dword ptr [rax+180h], 0 mov qword ptr [rax+188h], 0 mov byte ptr [rax+184h], 0 mov dword ptr [rax+190h], 0 mov qword ptr [rax+198h], 0 mov byte ptr [rax+194h], 0 mov qword ptr [rax+40h], 0 mov dword ptr [rax+78h], 0 mov dword ptr [rax+7Ch], 0 mov qword ptr [rax+88h], 0 mov dword ptr [rax+0A8h], 0 mov dword ptr [rax+0ACh], 0 mov qword ptr [rax+0B0h], 0 mov dword ptr [rax+110h], 0 mov dword ptr [rax+114h], 0 mov qword ptr [rax+118h], 0 mov qword ptr [rax+120h], 0 mov dword ptr [rax+128h], 0 mov dword ptr [rax+12Ch], 0 mov qword ptr [rax+130h], 0 mov qword ptr [rax+138h], 0 mov dword ptr [rax+140h], 0 mov dword ptr [rax+144h], 0 mov qword ptr [rax+148h], 0 mov qword ptr [rax+150h], 0 mov dword ptr [rax+158h], 0 mov dword ptr [rax+15Ch], 0 mov qword ptr [rax+160h], 0 mov qword ptr [rax+168h], 0 mov qword ptr [rax+108h], 0 mov qword ptr [rax+0D0h], 0 mov dword ptr [rax+0C8h], 0 mov dword ptr [rax+0C4h], 0 mov qword ptr [rax+0D8h], 0 mov qword ptr [rax+0E0h], 0 mov dword ptr [rax+0F0h], 0 mov qword ptr [rax+0F8h], 0 mov dword ptr [rax+100h], 0 mov dword ptr [rax+104h], 0 retn
LefDefParser::defiPin * LefDefParser::defiPin::Init(LefDefParser::defiPin *this) { LefDefParser::defiPin *result; // rax result = this; *(_DWORD *)this = 0; *((_QWORD *)this + 1) = 0LL; *((_DWORD *)this + 4) = 0; *((_QWORD *)this + 3) = 0LL; *((_DWORD *)this + 9) = 0; *((_QWORD *)this + 5) = 0LL; *((_DWORD *)this + 12) = 0; *((_QWORD *)this + 7) = 0LL; *((_BYTE *)this + 32) = 0; *((_BYTE *)this + 33) = 0; *((_BYTE *)this + 34) = 0; *((_BYTE *)this + 35) = 0; *((_QWORD *)this + 9) = 0LL; *((_QWORD *)this + 10) = 0LL; *((_QWORD *)this + 11) = 0LL; *((_QWORD *)this + 12) = 0LL; *((_DWORD *)this + 46) = 0; *((_DWORD *)this + 47) = 0; *((_DWORD *)this + 92) = 0; *((_QWORD *)this + 47) = 0LL; *((_BYTE *)this + 372) = 0; *((_DWORD *)this + 96) = 0; *((_QWORD *)this + 49) = 0LL; *((_BYTE *)this + 388) = 0; *((_DWORD *)this + 100) = 0; *((_QWORD *)this + 51) = 0LL; *((_BYTE *)this + 404) = 0; *((_QWORD *)this + 8) = 0LL; *((_DWORD *)this + 30) = 0; *((_DWORD *)this + 31) = 0; *((_QWORD *)this + 17) = 0LL; *((_DWORD *)this + 42) = 0; *((_DWORD *)this + 43) = 0; *((_QWORD *)this + 22) = 0LL; *((_DWORD *)this + 68) = 0; *((_DWORD *)this + 69) = 0; *((_QWORD *)this + 35) = 0LL; *((_QWORD *)this + 36) = 0LL; *((_DWORD *)this + 74) = 0; *((_DWORD *)this + 75) = 0; *((_QWORD *)this + 38) = 0LL; *((_QWORD *)this + 39) = 0LL; *((_DWORD *)this + 80) = 0; *((_DWORD *)this + 81) = 0; *((_QWORD *)this + 41) = 0LL; *((_QWORD *)this + 42) = 0LL; *((_DWORD *)this + 86) = 0; *((_DWORD *)this + 87) = 0; *((_QWORD *)this + 44) = 0LL; *((_QWORD *)this + 45) = 0LL; *((_QWORD *)this + 33) = 0LL; *((_QWORD *)this + 26) = 0LL; *((_DWORD *)this + 50) = 0; *((_DWORD *)this + 49) = 0; *((_QWORD *)this + 27) = 0LL; *((_QWORD *)this + 28) = 0LL; *((_DWORD *)this + 60) = 0; *((_QWORD *)this + 31) = 0LL; *((_DWORD *)this + 64) = 0; *((_DWORD *)this + 65) = 0; return result; }
Init: MOV qword ptr [RSP + -0x8],RDI MOV RAX,qword ptr [RSP + -0x8] MOV dword ptr [RAX],0x0 MOV qword ptr [RAX + 0x8],0x0 MOV dword ptr [RAX + 0x10],0x0 MOV qword ptr [RAX + 0x18],0x0 MOV dword ptr [RAX + 0x24],0x0 MOV qword ptr [RAX + 0x28],0x0 MOV dword ptr [RAX + 0x30],0x0 MOV qword ptr [RAX + 0x38],0x0 MOV byte ptr [RAX + 0x20],0x0 MOV byte ptr [RAX + 0x21],0x0 MOV byte ptr [RAX + 0x22],0x0 MOV byte ptr [RAX + 0x23],0x0 MOV qword ptr [RAX + 0x48],0x0 MOV qword ptr [RAX + 0x50],0x0 MOV qword ptr [RAX + 0x58],0x0 MOV qword ptr [RAX + 0x60],0x0 MOV dword ptr [RAX + 0xb8],0x0 MOV dword ptr [RAX + 0xbc],0x0 MOV dword ptr [RAX + 0x170],0x0 MOV qword ptr [RAX + 0x178],0x0 MOV byte ptr [RAX + 0x174],0x0 MOV dword ptr [RAX + 0x180],0x0 MOV qword ptr [RAX + 0x188],0x0 MOV byte ptr [RAX + 0x184],0x0 MOV dword ptr [RAX + 0x190],0x0 MOV qword ptr [RAX + 0x198],0x0 MOV byte ptr [RAX + 0x194],0x0 MOV qword ptr [RAX + 0x40],0x0 MOV dword ptr [RAX + 0x78],0x0 MOV dword ptr [RAX + 0x7c],0x0 MOV qword ptr [RAX + 0x88],0x0 MOV dword ptr [RAX + 0xa8],0x0 MOV dword ptr [RAX + 0xac],0x0 MOV qword ptr [RAX + 0xb0],0x0 MOV dword ptr [RAX + 0x110],0x0 MOV dword ptr [RAX + 0x114],0x0 MOV qword ptr [RAX + 0x118],0x0 MOV qword ptr [RAX + 0x120],0x0 MOV dword ptr [RAX + 0x128],0x0 MOV dword ptr [RAX + 0x12c],0x0 MOV qword ptr [RAX + 0x130],0x0 MOV qword ptr [RAX + 0x138],0x0 MOV dword ptr [RAX + 0x140],0x0 MOV dword ptr [RAX + 0x144],0x0 MOV qword ptr [RAX + 0x148],0x0 MOV qword ptr [RAX + 0x150],0x0 MOV dword ptr [RAX + 0x158],0x0 MOV dword ptr [RAX + 0x15c],0x0 MOV qword ptr [RAX + 0x160],0x0 MOV qword ptr [RAX + 0x168],0x0 MOV qword ptr [RAX + 0x108],0x0 MOV qword ptr [RAX + 0xd0],0x0 MOV dword ptr [RAX + 0xc8],0x0 MOV dword ptr [RAX + 0xc4],0x0 MOV qword ptr [RAX + 0xd8],0x0 MOV qword ptr [RAX + 0xe0],0x0 MOV dword ptr [RAX + 0xf0],0x0 MOV qword ptr [RAX + 0xf8],0x0 MOV dword ptr [RAX + 0x100],0x0 MOV dword ptr [RAX + 0x104],0x0 RET
/* LefDefParser::defiPin::Init() */ void __thiscall LefDefParser::defiPin::Init(defiPin *this) { *(int4 *)this = 0; *(int8 *)(this + 8) = 0; *(int4 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int4 *)(this + 0x24) = 0; *(int8 *)(this + 0x28) = 0; *(int4 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; this[0x20] = (defiPin)0x0; this[0x21] = (defiPin)0x0; this[0x22] = (defiPin)0x0; this[0x23] = (defiPin)0x0; *(int8 *)(this + 0x48) = 0; *(int8 *)(this + 0x50) = 0; *(int8 *)(this + 0x58) = 0; *(int8 *)(this + 0x60) = 0; *(int4 *)(this + 0xb8) = 0; *(int4 *)(this + 0xbc) = 0; *(int4 *)(this + 0x170) = 0; *(int8 *)(this + 0x178) = 0; this[0x174] = (defiPin)0x0; *(int4 *)(this + 0x180) = 0; *(int8 *)(this + 0x188) = 0; this[0x184] = (defiPin)0x0; *(int4 *)(this + 400) = 0; *(int8 *)(this + 0x198) = 0; this[0x194] = (defiPin)0x0; *(int8 *)(this + 0x40) = 0; *(int4 *)(this + 0x78) = 0; *(int4 *)(this + 0x7c) = 0; *(int8 *)(this + 0x88) = 0; *(int4 *)(this + 0xa8) = 0; *(int4 *)(this + 0xac) = 0; *(int8 *)(this + 0xb0) = 0; *(int4 *)(this + 0x110) = 0; *(int4 *)(this + 0x114) = 0; *(int8 *)(this + 0x118) = 0; *(int8 *)(this + 0x120) = 0; *(int4 *)(this + 0x128) = 0; *(int4 *)(this + 300) = 0; *(int8 *)(this + 0x130) = 0; *(int8 *)(this + 0x138) = 0; *(int4 *)(this + 0x140) = 0; *(int4 *)(this + 0x144) = 0; *(int8 *)(this + 0x148) = 0; *(int8 *)(this + 0x150) = 0; *(int4 *)(this + 0x158) = 0; *(int4 *)(this + 0x15c) = 0; *(int8 *)(this + 0x160) = 0; *(int8 *)(this + 0x168) = 0; *(int8 *)(this + 0x108) = 0; *(int8 *)(this + 0xd0) = 0; *(int4 *)(this + 200) = 0; *(int4 *)(this + 0xc4) = 0; *(int8 *)(this + 0xd8) = 0; *(int8 *)(this + 0xe0) = 0; *(int4 *)(this + 0xf0) = 0; *(int8 *)(this + 0xf8) = 0; *(int4 *)(this + 0x100) = 0; *(int4 *)(this + 0x104) = 0; return; }
31,378
atoi_octal
eloqsql/mysys/my_init.c
static ulong atoi_octal(const char *str) { long int tmp; while (*str && my_isspace(&my_charset_latin1, *str)) str++; str2int(str, (*str == '0' ? 8 : 10), /* Octalt or decimalt */ 0, INT_MAX, &tmp); return (ulong) tmp; }
O0
c
atoi_octal: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movsbl (%rax), %ecx xorl %eax, %eax cmpl $0x0, %ecx movb %al, -0x11(%rbp) je 0x27dc0 leaq 0x24ebfc(%rip), %rax # 0x2769a0 movq 0x40(%rax), %rax movq -0x8(%rbp), %rcx movzbl (%rcx), %ecx movzbl 0x1(%rax,%rcx), %eax andl $0x8, %eax cmpl $0x0, %eax setne %al movb %al, -0x11(%rbp) movb -0x11(%rbp), %al testb $0x1, %al jne 0x27dc9 jmp 0x27dd7 movq -0x8(%rbp), %rax addq $0x1, %rax movq %rax, -0x8(%rbp) jmp 0x27d8c movq -0x8(%rbp), %rdi movq -0x8(%rbp), %rax movsbl (%rax), %ecx movl $0xa, %esi movl $0x8, %eax cmpl $0x30, %ecx cmovel %eax, %esi xorl %eax, %eax movl %eax, %edx movl $0x7fffffff, %ecx # imm = 0x7FFFFFFF leaq -0x10(%rbp), %r8 callq 0x78820 movq -0x10(%rbp), %rax addq $0x20, %rsp popq %rbp retq nop
atoi_octal: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi loc_27D8C: mov rax, [rbp+var_8] movsx ecx, byte ptr [rax] xor eax, eax cmp ecx, 0 mov [rbp+var_11], al jz short loc_27DC0 lea rax, my_charset_latin1 mov rax, [rax+40h] mov rcx, [rbp+var_8] movzx ecx, byte ptr [rcx] movzx eax, byte ptr [rax+rcx+1] and eax, 8 cmp eax, 0 setnz al mov [rbp+var_11], al loc_27DC0: mov al, [rbp+var_11] test al, 1 jnz short loc_27DC9 jmp short loc_27DD7 loc_27DC9: mov rax, [rbp+var_8] add rax, 1 mov [rbp+var_8], rax jmp short loc_27D8C loc_27DD7: mov rdi, [rbp+var_8] mov rax, [rbp+var_8] movsx ecx, byte ptr [rax] mov esi, 0Ah mov eax, 8 cmp ecx, 30h ; '0' cmovz esi, eax xor eax, eax mov edx, eax mov ecx, 7FFFFFFFh lea r8, [rbp+var_10] call str2int mov rax, [rbp+var_10] add rsp, 20h pop rbp retn
long long atoi_octal(_BYTE *a1) { long long v1; // rsi bool v3; // [rsp+Fh] [rbp-11h] long long v4; // [rsp+10h] [rbp-10h] BYREF _BYTE *i; // [rsp+18h] [rbp-8h] for ( i = a1; ; ++i ) { v3 = 0; if ( *i ) v3 = (*(_BYTE *)(*((_QWORD *)&my_charset_latin1 + 8) + (unsigned __int8)*i + 1LL) & 8) != 0; if ( !v3 ) break; } v1 = 10LL; if ( *i == 48 ) v1 = 8LL; str2int(i, v1, 0LL, 0x7FFFFFFFLL, &v4); return v4; }
atoi_octal: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI LAB_00127d8c: MOV RAX,qword ptr [RBP + -0x8] MOVSX ECX,byte ptr [RAX] XOR EAX,EAX CMP ECX,0x0 MOV byte ptr [RBP + -0x11],AL JZ 0x00127dc0 LEA RAX,[0x3769a0] MOV RAX,qword ptr [RAX + 0x40] MOV RCX,qword ptr [RBP + -0x8] MOVZX ECX,byte ptr [RCX] MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0x1] AND EAX,0x8 CMP EAX,0x0 SETNZ AL MOV byte ptr [RBP + -0x11],AL LAB_00127dc0: MOV AL,byte ptr [RBP + -0x11] TEST AL,0x1 JNZ 0x00127dc9 JMP 0x00127dd7 LAB_00127dc9: MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x1 MOV qword ptr [RBP + -0x8],RAX JMP 0x00127d8c LAB_00127dd7: MOV RDI,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x8] MOVSX ECX,byte ptr [RAX] MOV ESI,0xa MOV EAX,0x8 CMP ECX,0x30 CMOVZ ESI,EAX XOR EAX,EAX MOV EDX,EAX MOV ECX,0x7fffffff LEA R8,[RBP + -0x10] CALL 0x00178820 MOV RAX,qword ptr [RBP + -0x10] ADD RSP,0x20 POP RBP RET
int8 atoi_octal(byte *param_1) { int8 uVar1; bool bVar2; int8 local_18; byte *local_10; local_10 = param_1; while( true ) { bVar2 = false; if (*local_10 != 0) { bVar2 = (PTR_ctype_latin1_003769e0[(ulong)*local_10 + 1] & 8) != 0; } if (!bVar2) break; local_10 = local_10 + 1; } uVar1 = 10; if (*local_10 == 0x30) { uVar1 = 8; } str2int(local_10,uVar1,0,0x7fffffff,&local_18); return local_18; }
31,379
inline_mysql_cond_broadcast
eloqsql/include/mysql/psi/mysql_thread.h
static inline int inline_mysql_cond_broadcast( mysql_cond_t *that) { int result; #ifdef HAVE_PSI_COND_INTERFACE if (psi_likely(that->m_psi != NULL)) PSI_COND_CALL(broadcast_cond)(that->m_psi); #endif result= pthread_cond_broadcast(&that->m_cond); return result; }
O0
c
inline_mysql_cond_broadcast: 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 0x5736b leaq 0x269e01(%rip), %rax # 0x2c1158 movq (%rax), %rax movq 0x178(%rax), %rax movq -0x8(%rbp), %rcx movq 0x30(%rcx), %rdi callq *%rax movq -0x8(%rbp), %rdi callq 0x2a6b0 movl %eax, -0xc(%rbp) movl -0xc(%rbp), %eax addq $0x10, %rsp popq %rbp retq
inline_mysql_cond_broadcast_0: 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_5736B lea rax, PSI_server mov rax, [rax] mov rax, [rax+178h] mov rcx, [rbp+var_8] mov rdi, [rcx+30h] call rax loc_5736B: mov rdi, [rbp+var_8] call _pthread_cond_broadcast mov [rbp+var_C], eax mov eax, [rbp+var_C] add rsp, 10h pop rbp retn
long long inline_mysql_cond_broadcast_0(long long a1) { if ( *(_QWORD *)(a1 + 48) ) ((void ( *)(_QWORD))PSI_server[47])(*(_QWORD *)(a1 + 48)); return (unsigned int)pthread_cond_broadcast(a1); }
inline_mysql_cond_broadcast: 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 0x0015736b LEA RAX,[0x3c1158] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x178] MOV RCX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RCX + 0x30] CALL RAX LAB_0015736b: MOV RDI,qword ptr [RBP + -0x8] CALL 0x0012a6b0 MOV dword ptr [RBP + -0xc],EAX MOV EAX,dword ptr [RBP + -0xc] ADD RSP,0x10 POP RBP RET
int inline_mysql_cond_broadcast(pthread_cond_t *param_1) { int iVar1; if (param_1[1].__align != 0) { (**(code **)(PSI_server + 0x178))(param_1[1].__align); } iVar1 = pthread_cond_broadcast(param_1); return iVar1; }
31,380
translog_prev_buffer_flush_wait
eloqsql/storage/maria/ma_loghandler.c
my_bool translog_prev_buffer_flush_wait(struct st_translog_buffer *buffer) { TRANSLOG_ADDRESS offset= buffer->offset; TRANSLOG_FILE *file= buffer->file; uint8 ver= buffer->ver; DBUG_ENTER("translog_prev_buffer_flush_wait"); DBUG_PRINT("enter", ("buffer: %p #%u offset: " LSN_FMT " " "prev sent: " LSN_FMT " prev offset: " LSN_FMT, buffer, (uint) buffer->buffer_no, LSN_IN_PARTS(buffer->offset), LSN_IN_PARTS(buffer->prev_sent_to_disk), LSN_IN_PARTS(buffer->prev_buffer_offset))); translog_buffer_lock_assert_owner(buffer); if (buffer->prev_buffer_offset != buffer->prev_sent_to_disk) { do { mysql_cond_wait(&buffer->prev_sent_to_disk_cond, &buffer->mutex); if (buffer->file != file || buffer->offset != offset || buffer->ver != ver) DBUG_RETURN(1); /* some the thread flushed the buffer already */ } while(buffer->prev_buffer_offset != buffer->prev_sent_to_disk); } DBUG_RETURN(0); }
O0
c
translog_prev_buffer_flush_wait: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax movq 0x100010(%rax), %rax movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rax movq 0x100038(%rax), %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rax movb 0x1000d9(%rax), %al movb %al, -0x21(%rbp) jmp 0x4b4c9 movq -0x10(%rbp), %rax movq 0x100020(%rax), %rax movq -0x10(%rbp), %rcx cmpq 0x1000e0(%rcx), %rax je 0x4b567 jmp 0x4b4e7 movq -0x10(%rbp), %rdi addq $0x1000e8, %rdi # imm = 0x1000E8 movq -0x10(%rbp), %rsi addq $0x100090, %rsi # imm = 0x100090 leaq 0x10f04d(%rip), %rdx # 0x15a551 movl $0xa24, %ecx # imm = 0xA24 callq 0x4b580 movq -0x10(%rbp), %rax movq 0x100038(%rax), %rax cmpq -0x20(%rbp), %rax jne 0x4b543 movq -0x10(%rbp), %rax movq 0x100010(%rax), %rax cmpq -0x18(%rbp), %rax jne 0x4b543 movq -0x10(%rbp), %rax movzbl 0x1000d9(%rax), %eax movzbl -0x21(%rbp), %ecx cmpl %ecx, %eax je 0x4b54b jmp 0x4b545 movb $0x1, -0x1(%rbp) jmp 0x4b56d jmp 0x4b54d movq -0x10(%rbp), %rax movq 0x100020(%rax), %rax movq -0x10(%rbp), %rcx cmpq 0x1000e0(%rcx), %rax jne 0x4b4e7 jmp 0x4b567 jmp 0x4b569 movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
translog_prev_buffer_flush_wait: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov rax, [rbp+var_10] mov rax, [rax+100010h] mov [rbp+var_18], rax mov rax, [rbp+var_10] mov rax, qword ptr ds:loc_100038[rax] mov [rbp+var_20], rax mov rax, [rbp+var_10] mov al, [rax+1000D9h] mov [rbp+var_21], al jmp short $+2 loc_4B4C9: mov rax, [rbp+var_10] mov rax, qword ptr ds:loc_100020[rax] mov rcx, [rbp+var_10] cmp rax, [rcx+1000E0h] jz loc_4B567 jmp short $+2 loc_4B4E7: mov rdi, [rbp+var_10] add rdi, 1000E8h mov rsi, [rbp+var_10] add rsi, 100090h lea rdx, aWorkspaceLlm4b_10; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 0A24h call inline_mysql_cond_wait_0 mov rax, [rbp+var_10] mov rax, qword ptr ds:loc_100038[rax] cmp rax, [rbp+var_20] jnz short loc_4B543 mov rax, [rbp+var_10] mov rax, [rax+100010h] cmp rax, [rbp+var_18] jnz short loc_4B543 mov rax, [rbp+var_10] movzx eax, byte ptr [rax+1000D9h] movzx ecx, [rbp+var_21] cmp eax, ecx jz short loc_4B54B loc_4B543: jmp short $+2 loc_4B545: mov [rbp+var_1], 1 jmp short loc_4B56D loc_4B54B: jmp short $+2 loc_4B54D: mov rax, [rbp+var_10] mov rax, qword ptr ds:loc_100020[rax] mov rcx, [rbp+var_10] cmp rax, [rcx+1000E0h] jnz short loc_4B4E7 jmp short $+2 loc_4B567: jmp short $+2 loc_4B569: mov [rbp+var_1], 0 loc_4B56D: mov al, [rbp+var_1] add rsp, 30h pop rbp retn
char translog_prev_buffer_flush_wait(long long a1) { unsigned __int8 v2; // [rsp+Fh] [rbp-21h] long long v3; // [rsp+10h] [rbp-20h] long long v4; // [rsp+18h] [rbp-18h] v4 = *(_QWORD *)(a1 + 1048592); v3 = *(_QWORD *)((char *)&loc_100038 + a1); v2 = *(_BYTE *)(a1 + 1048793); if ( *(_QWORD *)((char *)&loc_100020 + a1) == *(_QWORD *)(a1 + 1048800) ) return 0; while ( 1 ) { inline_mysql_cond_wait_0( a1 + 1048808, a1 + 1048720, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c", 2596LL); if ( *(_QWORD *)((char *)&loc_100038 + a1) != v3 || *(_QWORD *)(a1 + 1048592) != v4 || *(unsigned __int8 *)(a1 + 1048793) != v2 ) { break; } if ( *(_QWORD *)((char *)&loc_100020 + a1) == *(_QWORD *)(a1 + 1048800) ) return 0; } return 1; }
translog_prev_buffer_flush_wait: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x100010] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x100038] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x10] MOV AL,byte ptr [RAX + 0x1000d9] MOV byte ptr [RBP + -0x21],AL JMP 0x0014b4c9 LAB_0014b4c9: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x100020] MOV RCX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RCX + 0x1000e0] JZ 0x0014b567 JMP 0x0014b4e7 LAB_0014b4e7: MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x1000e8 MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0x100090 LEA RDX,[0x25a551] MOV ECX,0xa24 CALL 0x0014b580 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x100038] CMP RAX,qword ptr [RBP + -0x20] JNZ 0x0014b543 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x100010] CMP RAX,qword ptr [RBP + -0x18] JNZ 0x0014b543 MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX + 0x1000d9] MOVZX ECX,byte ptr [RBP + -0x21] CMP EAX,ECX JZ 0x0014b54b LAB_0014b543: JMP 0x0014b545 LAB_0014b545: MOV byte ptr [RBP + -0x1],0x1 JMP 0x0014b56d LAB_0014b54b: JMP 0x0014b54d LAB_0014b54d: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x100020] MOV RCX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RCX + 0x1000e0] JNZ 0x0014b4e7 JMP 0x0014b567 LAB_0014b567: JMP 0x0014b569 LAB_0014b569: MOV byte ptr [RBP + -0x1],0x0 LAB_0014b56d: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x30 POP RBP RET
int8 translog_prev_buffer_flush_wait(long param_1) { char cVar1; long lVar2; long lVar3; long lVar4; int1 local_9; lVar2 = *(long *)(Elf64_Ehdr_00100000.e_ident_pad + param_1 + 7); lVar3 = *(long *)(Elf64_Ehdr_00100000.e_ident_pad + param_1 + 0x2f); cVar1 = *(char *)((long)&Elf64_Phdr_ARRAY_00100040[2].p_memsz + param_1 + 1); lVar4 = *(long *)(Elf64_Ehdr_00100000.e_ident_pad + param_1 + 0x17); if (lVar4 != *(long *)((long)&Elf64_Phdr_ARRAY_00100040[2].p_align + param_1)) { do { inline_mysql_cond_wait (param_1 + 0x1000e8,param_1 + 0x100090, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",0xa24); lVar4 = *(long *)(Elf64_Ehdr_00100000.e_ident_pad + param_1 + 0x2f); if (((lVar4 != lVar3) || (lVar4 = *(long *)(Elf64_Ehdr_00100000.e_ident_pad + param_1 + 7), lVar4 != lVar2)) || (lVar4 = 0, *(char *)((long)&Elf64_Phdr_ARRAY_00100040[2].p_memsz + param_1 + 1) != cVar1)) { local_9 = 1; goto LAB_0014b56d; } lVar4 = *(long *)(Elf64_Ehdr_00100000.e_ident_pad + param_1 + 0x17); } while (lVar4 != *(long *)((long)&Elf64_Phdr_ARRAY_00100040[2].p_align + param_1)); } local_9 = 0; LAB_0014b56d: return CONCAT71((int7)((ulong)lVar4 >> 8),local_9); }
31,381
pfs_memory_free_v1
eloqsql/storage/perfschema/pfs.cc
void pfs_memory_free_v1(PSI_memory_key key, size_t size, PSI_thread *owner) { PFS_memory_class *klass= find_memory_class(key); if (klass == NULL) return; /* Do not check klass->m_enabled. Do not check flag_global_instrumentation. If a memory alloc was instrumented, the corresponding free must be instrumented. */ PFS_memory_stat *event_name_array; PFS_memory_stat *stat; uint index= klass->m_event_name_index; PFS_memory_stat_delta delta_buffer; PFS_memory_stat_delta *delta; if (flag_thread_instrumentation && ! klass->is_global()) { PFS_thread *pfs_thread= my_thread_get_THR_PFS(); if (likely(pfs_thread != NULL)) { #ifdef PFS_PARANOID PFS_thread *owner_thread= reinterpret_cast<PFS_thread*>(owner); if (owner_thread != pfs_thread) { owner_thread= sanitize_thread(owner_thread); if (owner_thread != NULL) { report_memory_accounting_error("pfs_memory_free_v1", pfs_thread, size, klass, owner_thread); } } #endif /* PFS_PARANOID */ /* Do not check pfs_thread->m_enabled. If a memory alloc was instrumented, the corresponding free must be instrumented. */ /* Aggregate to MEMORY_SUMMARY_BY_THREAD_BY_EVENT_NAME */ event_name_array= pfs_thread->write_instr_class_memory_stats(); stat= & event_name_array[index]; delta= stat->count_free(size, &delta_buffer); if (delta != NULL) { pfs_thread->carry_memory_stat_delta(delta, index); } return; } } /* Aggregate to MEMORY_SUMMARY_GLOBAL_BY_EVENT_NAME */ event_name_array= global_instr_class_memory_array; if (event_name_array) { stat= & event_name_array[index]; (void) stat->count_free(size, &delta_buffer); } return; }
O0
cpp
pfs_memory_free_v1: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movl %edi, -0x4(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movl -0x4(%rbp), %edi callq 0x437c0 movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) jne 0x55bdb jmp 0x55ca2 movq -0x20(%rbp), %rax movl 0x10(%rax), %eax movl %eax, -0x34(%rbp) leaq 0x3b6454(%rip), %rax # 0x40c040 testb $0x1, (%rax) je 0x55c68 movq -0x20(%rbp), %rdi callq 0x568a0 testb $0x1, %al jne 0x55c68 callq 0x4d760 movq %rax, -0x68(%rbp) cmpq $0x0, -0x68(%rbp) setne %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax je 0x55c66 movq -0x68(%rbp), %rdi callq 0x2cd50 movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax movl -0x34(%rbp), %ecx imulq $0x48, %rcx, %rcx addq %rcx, %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rdi movq -0x10(%rbp), %rsi leaq -0x58(%rbp), %rdx callq 0x56b40 movq %rax, -0x60(%rbp) cmpq $0x0, -0x60(%rbp) je 0x55c64 movq -0x68(%rbp), %rdi movq -0x60(%rbp), %rsi movl -0x34(%rbp), %edx callq 0x37c20 jmp 0x55ca2 jmp 0x55c68 leaq 0x3b6759(%rip), %rax # 0x40c3c8 movq (%rax), %rax movq %rax, -0x28(%rbp) cmpq $0x0, -0x28(%rbp) je 0x55ca0 movq -0x28(%rbp), %rax movl -0x34(%rbp), %ecx imulq $0x48, %rcx, %rcx addq %rcx, %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rdi movq -0x10(%rbp), %rsi leaq -0x58(%rbp), %rdx callq 0x56b40 jmp 0x55ca2 addq $0x70, %rsp popq %rbp retq nopl (%rax,%rax)
pfs_memory_free_v1: push rbp mov rbp, rsp sub rsp, 70h mov [rbp+var_4], edi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov edi, [rbp+var_4]; unsigned int call _Z17find_memory_classj; find_memory_class(uint) mov [rbp+var_20], rax cmp [rbp+var_20], 0 jnz short loc_55BDB jmp loc_55CA2 loc_55BDB: mov rax, [rbp+var_20] mov eax, [rax+10h] mov [rbp+var_34], eax lea rax, flag_thread_instrumentation test byte ptr [rax], 1 jz short loc_55C68 mov rdi, [rbp+var_20]; this call _ZNK16PFS_memory_class9is_globalEv; PFS_memory_class::is_global(void) test al, 1 jnz short loc_55C68 call _ZL21my_thread_get_THR_PFSv; my_thread_get_THR_PFS(void) mov [rbp+var_68], rax cmp [rbp+var_68], 0 setnz al and al, 1 movzx eax, al cmp eax, 0 jz short loc_55C66 mov rdi, [rbp+var_68]; this call _ZN20PFS_connection_slice30write_instr_class_memory_statsEv; PFS_connection_slice::write_instr_class_memory_stats(void) mov [rbp+var_28], rax mov rax, [rbp+var_28] mov ecx, [rbp+var_34] imul rcx, 48h ; 'H' add rax, rcx mov [rbp+var_30], rax mov rdi, [rbp+var_30]; this mov rsi, [rbp+var_10]; unsigned __int64 lea rdx, [rbp+var_58]; PFS_memory_stat_delta * call _ZN15PFS_memory_stat10count_freeEmP21PFS_memory_stat_delta; PFS_memory_stat::count_free(ulong,PFS_memory_stat_delta *) mov [rbp+var_60], rax cmp [rbp+var_60], 0 jz short loc_55C64 mov rdi, [rbp+var_68]; this mov rsi, [rbp+var_60]; PFS_memory_stat_delta * mov edx, [rbp+var_34]; unsigned int call _ZN10PFS_thread23carry_memory_stat_deltaEP21PFS_memory_stat_deltaj; PFS_thread::carry_memory_stat_delta(PFS_memory_stat_delta *,uint) loc_55C64: jmp short loc_55CA2 loc_55C66: jmp short $+2 loc_55C68: lea rax, global_instr_class_memory_array mov rax, [rax] mov [rbp+var_28], rax cmp [rbp+var_28], 0 jz short loc_55CA0 mov rax, [rbp+var_28] mov ecx, [rbp+var_34] imul rcx, 48h ; 'H' add rax, rcx mov [rbp+var_30], rax mov rdi, [rbp+var_30]; this mov rsi, [rbp+var_10]; unsigned __int64 lea rdx, [rbp+var_58]; PFS_memory_stat_delta * call _ZN15PFS_memory_stat10count_freeEmP21PFS_memory_stat_delta; PFS_memory_stat::count_free(ulong,PFS_memory_stat_delta *) loc_55CA0: jmp short $+2 loc_55CA2: add rsp, 70h pop rbp retn
PFS_memory_class * pfs_memory_free_v1(unsigned int a1, unsigned long long a2, long long a3) { PFS_memory_class *result; // rax PFS_connection_slice *THR_PFS; // [rsp+8h] [rbp-68h] _BYTE v5[36]; // [rsp+18h] [rbp-58h] BYREF unsigned int v6; // [rsp+3Ch] [rbp-34h] PFS_memory_stat *v7; // [rsp+40h] [rbp-30h] PFS_memory_stat *v8; // [rsp+48h] [rbp-28h] PFS_memory_class *v9; // [rsp+50h] [rbp-20h] long long v10; // [rsp+58h] [rbp-18h] unsigned long long v11; // [rsp+60h] [rbp-10h] unsigned int v12; // [rsp+6Ch] [rbp-4h] v12 = a1; v11 = a2; v10 = a3; result = (PFS_memory_class *)find_memory_class(a1); v9 = result; if ( result ) { v6 = *((_DWORD *)v9 + 4); if ( (flag_thread_instrumentation & 1) != 0 && (PFS_memory_class::is_global(v9) & 1) == 0 && (THR_PFS = (PFS_connection_slice *)my_thread_get_THR_PFS()) != 0LL ) { v8 = (PFS_memory_stat *)PFS_connection_slice::write_instr_class_memory_stats(THR_PFS); v7 = (PFS_memory_stat *)((char *)v8 + 72 * v6); result = (PFS_memory_class *)PFS_memory_stat::count_free(v7, v11, (PFS_memory_stat_delta *)v5); if ( result ) return PFS_thread::carry_memory_stat_delta(THR_PFS, result, v6); } else { result = global_instr_class_memory_array; v8 = global_instr_class_memory_array; if ( global_instr_class_memory_array ) { v7 = (PFS_memory_stat *)((char *)v8 + 72 * v6); return (PFS_memory_class *)PFS_memory_stat::count_free(v7, v11, (PFS_memory_stat_delta *)v5); } } } return result; }
pfs_memory_free_v1: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV dword ptr [RBP + -0x4],EDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV EDI,dword ptr [RBP + -0x4] CALL 0x001437c0 MOV qword ptr [RBP + -0x20],RAX CMP qword ptr [RBP + -0x20],0x0 JNZ 0x00155bdb JMP 0x00155ca2 LAB_00155bdb: MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX + 0x10] MOV dword ptr [RBP + -0x34],EAX LEA RAX,[0x50c040] TEST byte ptr [RAX],0x1 JZ 0x00155c68 MOV RDI,qword ptr [RBP + -0x20] CALL 0x001568a0 TEST AL,0x1 JNZ 0x00155c68 CALL 0x0014d760 MOV qword ptr [RBP + -0x68],RAX CMP qword ptr [RBP + -0x68],0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 JZ 0x00155c66 MOV RDI,qword ptr [RBP + -0x68] CALL 0x0012cd50 MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x28] MOV ECX,dword ptr [RBP + -0x34] IMUL RCX,RCX,0x48 ADD RAX,RCX MOV qword ptr [RBP + -0x30],RAX MOV RDI,qword ptr [RBP + -0x30] MOV RSI,qword ptr [RBP + -0x10] LEA RDX,[RBP + -0x58] CALL 0x00156b40 MOV qword ptr [RBP + -0x60],RAX CMP qword ptr [RBP + -0x60],0x0 JZ 0x00155c64 MOV RDI,qword ptr [RBP + -0x68] MOV RSI,qword ptr [RBP + -0x60] MOV EDX,dword ptr [RBP + -0x34] CALL 0x00137c20 LAB_00155c64: JMP 0x00155ca2 LAB_00155c66: JMP 0x00155c68 LAB_00155c68: LEA RAX,[0x50c3c8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x28],RAX CMP qword ptr [RBP + -0x28],0x0 JZ 0x00155ca0 MOV RAX,qword ptr [RBP + -0x28] MOV ECX,dword ptr [RBP + -0x34] IMUL RCX,RCX,0x48 ADD RAX,RCX MOV qword ptr [RBP + -0x30],RAX MOV RDI,qword ptr [RBP + -0x30] MOV RSI,qword ptr [RBP + -0x10] LEA RDX,[RBP + -0x58] CALL 0x00156b40 LAB_00155ca0: JMP 0x00155ca2 LAB_00155ca2: ADD RSP,0x70 POP RBP RET
void pfs_memory_free_v1(uint param_1,ulong param_2,int8 param_3) { ulong uVar1; PFS_connection_slice *this; PFS_memory_stat_delta *pPVar2; PFS_memory_stat_delta local_60 [36]; uint local_3c; PFS_memory_stat *local_38; long local_30; PFS_memory_class *local_28; int8 local_20; ulong local_18; uint local_c; local_20 = param_3; local_18 = param_2; local_c = param_1; local_28 = (PFS_memory_class *)find_memory_class(param_1); if (local_28 != (PFS_memory_class *)0x0) { local_3c = *(uint *)(local_28 + 0x10); if ((((flag_thread_instrumentation & 1) == 0) || (uVar1 = PFS_memory_class::is_global(local_28), (uVar1 & 1) != 0)) || (this = (PFS_connection_slice *)my_thread_get_THR_PFS(), this == (PFS_connection_slice *)0x0) ) { local_30 = global_instr_class_memory_array; if (global_instr_class_memory_array != 0) { local_38 = (PFS_memory_stat *)(global_instr_class_memory_array + (ulong)local_3c * 0x48); PFS_memory_stat::count_free(local_38,local_18,local_60); } } else { local_30 = PFS_connection_slice::write_instr_class_memory_stats(this); local_38 = (PFS_memory_stat *)(local_30 + (ulong)local_3c * 0x48); pPVar2 = (PFS_memory_stat_delta *)PFS_memory_stat::count_free(local_38,local_18,local_60); if (pPVar2 != (PFS_memory_stat_delta *)0x0) { PFS_thread::carry_memory_stat_delta((PFS_thread *)this,pPVar2,local_3c); } } } return; }
31,382
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>::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
monkey531[P]llama/common/json.hpp
reference operator[](typename object_t::key_type key) { // implicitly convert null value to an empty object if (is_null()) { m_data.m_type = value_t::object; m_data.m_value.object = create<object_t>(); assert_invariant(); } // operator[] only works for objects if (JSON_HEDLEY_LIKELY(is_object())) { auto result = m_data.m_value.object->emplace(std::move(key), nullptr); return set_parent(result.first->second); } JSON_THROW(type_error::create(305, detail::concat("cannot use operator[] with a string argument with ", type_name()), this)); }
O2
cpp
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>::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x28, %rsp movq %rsi, %rbx movq %rdi, %r14 movb (%rdi), %al testb %al, %al jne 0x6285f movb $0x1, (%r14) callq 0x47ee6 movq %rax, 0x8(%r14) pushq $0x1 popq %rsi movq %r14, %rdi callq 0x3c5e6 movb (%r14), %al cmpb $0x1, %al jne 0x6289f movq 0x8(%r14), %r14 movq %rsp, %r15 movq %r15, %rdi xorl %esi, %esi callq 0x2caa4 movq %r14, %rdi movq %rbx, %rsi movq %r15, %rdx callq 0x4678c movq %rax, %rbx movq %rsp, %rdi callq 0x2c014 addq $0x20, %rbx movq %rbx, %rax addq $0x28, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq pushq $0x20 popq %rdi callq 0x20380 movq %rax, %rbx movq %r14, %rdi callq 0x3cadc leaq 0x20(%rsp), %rdx movq %rax, (%rdx) leaq 0x2e375(%rip), %rsi # 0x90c36 movq %rsp, %rdi callq 0x62929 movb $0x1, %bpl movq %rsp, %rdx movq %rbx, %rdi movl $0x131, %esi # imm = 0x131 movq %r14, %rcx callq 0x4606a xorl %ebp, %ebp leaq 0x6a9f0(%rip), %rsi # 0xcd2d8 leaq -0x1a8b1(%rip), %rdx # 0x4803e movq %rbx, %rdi callq 0x20b30 movq %rax, %r14 movq %rsp, %rdi callq 0x2c014 jmp 0x62921 movq %rax, %r14 movq %rsp, %rdi callq 0x20d88 testb %bpl, %bpl jne 0x62919 jmp 0x62921 movq %rax, %r14 movq %rbx, %rdi callq 0x20510 movq %r14, %rdi callq 0x20ba0
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixES9_: push rbp; char push r15; int push r14; int push rbx; int sub rsp, 28h mov rbx, rsi mov r14, rdi mov al, [rdi] test al, al jnz short loc_6285F mov byte ptr [r14], 1 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6createINS2_IS9_SD_St4lessIvESaISt4pairIKS9_SD_EEEEJEEEPT_DpOT0_; 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>::create<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>>>>>() mov [r14+8], rax push 1 pop rsi mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; 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>::assert_invariant(bool) mov al, [r14] loc_6285F: cmp al, 1 jnz short loc_6289F mov r14, [r14+8] mov r15, rsp mov rdi, r15 xor esi, esi call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EDn; 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(decltype(nullptr)) mov rdi, r14 mov rsi, rbx mov rdx, r15 call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE7emplaceERSH_OSD_; 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>>>>::emplace(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>&&) mov rbx, rax mov rdi, rsp 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, 20h ; ' ' mov rax, rbx add rsp, 28h pop rbx pop r14 pop r15 pop rbp retn loc_6289F: push 20h ; ' ' pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; 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>::type_name(void) lea rdx, [rsp+48h+var_28] mov [rdx], rax lea rsi, aCannotUseOpera_0; "cannot use operator[] with a string arg"... mov rdi, rsp call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA51_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[51],char const*>(char const(&)[51],char const* &&) mov bpl, 1 mov rdx, rsp mov rdi, rbx; this mov esi, 131h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax mov rdi, rsp 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_62921 mov r14, rax mov rdi, rsp; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_62919 jmp short loc_62921 mov r14, rax loc_62919: mov rdi, rbx; void * call ___cxa_free_exception loc_62921: mov rdi, r14 call __Unwind_Resume
long long 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 a1, _QWORD *a2) { char v2; // al _QWORD **v3; // r14 long long v4; // rbx nlohmann::json_abi_v3_11_3::detail::type_error *exception; // rbx _QWORD v7[9]; // [rsp+0h] [rbp-48h] BYREF v2 = *(_BYTE *)a1; if ( !*(_BYTE *)a1 ) { *(_BYTE *)a1 = 1; *(_QWORD *)(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>::create<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>>>>>(); 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>::assert_invariant((char *)a1); v2 = *(_BYTE *)a1; } if ( v2 != 1 ) { exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL); v7[4] = 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>::type_name((unsigned __int8 *)a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[51],char const*>( v7, "cannot use operator[] with a string argument with "); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( exception, 305, (long long)v7); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } v3 = *(_QWORD ***)(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)v7); v4 = 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>>>>::emplace( v3, a2, (long long)v7); 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)v7); return v4 + 32; }
operator[]: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x28 MOV RBX,RSI MOV R14,RDI MOV AL,byte ptr [RDI] TEST AL,AL JNZ 0x0016285f MOV byte ptr [R14],0x1 CALL 0x00147ee6 MOV qword ptr [R14 + 0x8],RAX PUSH 0x1 POP RSI MOV RDI,R14 CALL 0x0013c5e6 MOV AL,byte ptr [R14] LAB_0016285f: CMP AL,0x1 JNZ 0x0016289f MOV R14,qword ptr [R14 + 0x8] MOV R15,RSP MOV RDI,R15 XOR ESI,ESI CALL 0x0012caa4 LAB_00162874: MOV RDI,R14 MOV RSI,RBX MOV RDX,R15 CALL 0x0014678c LAB_00162882: MOV RBX,RAX MOV RDI,RSP CALL 0x0012c014 ADD RBX,0x20 MOV RAX,RBX ADD RSP,0x28 POP RBX POP R14 POP R15 POP RBP RET LAB_0016289f: PUSH 0x20 POP RDI CALL 0x00120380 MOV RBX,RAX MOV RDI,R14 CALL 0x0013cadc LEA RDX,[RSP + 0x20] MOV qword ptr [RDX],RAX LAB_001628ba: LEA RSI,[0x190c36] MOV RDI,RSP CALL 0x00162929 MOV BPL,0x1 LAB_001628cc: MOV RDX,RSP MOV RDI,RBX MOV ESI,0x131 MOV RCX,R14 CALL 0x0014606a XOR EBP,EBP LEA RSI,[0x1cd2d8] LEA RDX,[0x14803e] MOV RDI,RBX CALL 0x00120b30
/* 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[](std::__cxx11::string) */ long __thiscall 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> *this,string *param_2) { 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>>>> *this_00; 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> bVar1; ordered_map *poVar2; long lVar3; 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> abStack_48 [32]; char *local_28; bVar1 = *this; if (bVar1 == (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> )0x0) { *this = (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> )0x1; poVar2 = create<nlohmann::json_abi_v3_11_3::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>>>>> (); *(ordered_map **)(this + 8) = poVar2; assert_invariant(SUB81(this,0)); bVar1 = *this; } if (bVar1 == (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> )0x1) { this_00 = *(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>>>> **)(this + 8); basic_json((_func_decltype_nullptr *)abStack_48); /* try { // try from 00162874 to 00162881 has its CatchHandler @ 001628f7 */ lVar3 = 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>>>> ::emplace(this_00,param_2,abStack_48); ~basic_json(abStack_48); return lVar3 + 0x20; } uVar4 = __cxa_allocate_exception(0x20); local_28 = (char *)type_name(this); /* try { // try from 001628ba to 001628c8 has its CatchHandler @ 00162916 */ detail::concat<std::__cxx11::string,char_const(&)[51],char_const*> ((detail *)abStack_48,"cannot use operator[] with a string argument with ",&local_28); /* try { // try from 001628cc to 001628f6 has its CatchHandler @ 00162904 */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar4,0x131,abStack_48,this); /* WARNING: Subroutine does not return */ __cxa_throw(uVar4,&detail::type_error::typeinfo,detail::exception::~exception); }
31,383
mi_test_if_changed
eloqsql/storage/myisam/mi_locking.c
int _mi_test_if_changed(register MI_INFO *info) { MYISAM_SHARE *share=info->s; if (share->state.process != share->last_process || share->state.unique != info->last_unique || share->state.update_count != info->last_loop) { /* Keyfile has changed */ DBUG_PRINT("info",("index file changed")); if (share->state.process != share->this_process) (void) flush_key_blocks(share->key_cache, share->kfile, &share->dirty_part_map, FLUSH_RELEASE); share->last_process=share->state.process; info->last_unique= share->state.unique; info->last_loop= share->state.update_count; info->update|= HA_STATE_WRITTEN; /* Must use file on next */ info->data_changed= 1; /* For mi_is_changed */ return 1; } return (!(info->update & HA_STATE_AKTIV) || (info->update & (HA_STATE_WRITTEN | HA_STATE_DELETED | HA_STATE_KEY_CHANGED))); }
O3
c
mi_test_if_changed: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rdi, %rbx movq (%rdi), %r14 movq 0x68(%r14), %rax cmpq 0x308(%r14), %rax jne 0x7d8f7 movq 0x70(%r14), %rcx cmpq 0x158(%rbx), %rcx jne 0x7d8f7 movq 0x78(%r14), %rcx cmpq 0x168(%rbx), %rcx jne 0x7d8f7 movl $0x8e, %ecx andl 0x1d0(%rbx), %ecx xorl %eax, %eax cmpl $0x2, %ecx setne %al jmp 0x7d956 cmpq 0x300(%r14), %rax je 0x7d923 movq 0x278(%r14), %rdi movl 0x350(%r14), %esi leaq 0x280(%r14), %rdx movl $0x1, %ecx callq 0x99999 movq 0x68(%r14), %rax movq %rax, 0x308(%r14) movq 0x70(%r14), %rax movq %rax, 0x158(%rbx) movq 0x78(%r14), %rax movq %rax, 0x168(%rbx) orb $0x4, 0x1d0(%rbx) movl $0x1, 0x1fc(%rbx) movl $0x1, %eax popq %rbx popq %r14 popq %rbp retq
_mi_test_if_changed: push rbp mov rbp, rsp push r14 push rbx mov rbx, rdi mov r14, [rdi] mov rax, [r14+68h] cmp rax, [r14+308h] jnz short loc_7D8F7 mov rcx, [r14+70h] cmp rcx, [rbx+158h] jnz short loc_7D8F7 mov rcx, [r14+78h] cmp rcx, [rbx+168h] jnz short loc_7D8F7 mov ecx, 8Eh and ecx, [rbx+1D0h] xor eax, eax cmp ecx, 2 setnz al jmp short loc_7D956 loc_7D8F7: cmp rax, [r14+300h] jz short loc_7D923 mov rdi, [r14+278h] mov esi, [r14+350h] lea rdx, [r14+280h] mov ecx, 1 call flush_key_blocks mov rax, [r14+68h] loc_7D923: mov [r14+308h], rax mov rax, [r14+70h] mov [rbx+158h], rax mov rax, [r14+78h] mov [rbx+168h], rax or byte ptr [rbx+1D0h], 4 mov dword ptr [rbx+1FCh], 1 mov eax, 1 loc_7D956: pop rbx pop r14 pop rbp retn
_BOOL8 mi_test_if_changed(long long *a1) { long long v1; // r14 long long v2; // rax v1 = *a1; v2 = *(_QWORD *)(*a1 + 104); if ( v2 == *(_QWORD *)(*a1 + 776) && *(_QWORD *)(v1 + 112) == a1[43] && *(_QWORD *)(v1 + 120) == a1[45] ) return (a1[58] & 0x8E) != 2; if ( v2 != *(_QWORD *)(v1 + 768) ) { flush_key_blocks(*(_QWORD *)(v1 + 632), *(unsigned int *)(v1 + 848), v1 + 640, 1LL); v2 = *(_QWORD *)(v1 + 104); } *(_QWORD *)(v1 + 776) = v2; a1[43] = *(_QWORD *)(v1 + 112); a1[45] = *(_QWORD *)(v1 + 120); *((_BYTE *)a1 + 464) |= 4u; *((_DWORD *)a1 + 127) = 1; return 1LL; }
_mi_test_if_changed: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV RBX,RDI MOV R14,qword ptr [RDI] MOV RAX,qword ptr [R14 + 0x68] CMP RAX,qword ptr [R14 + 0x308] JNZ 0x0017d8f7 MOV RCX,qword ptr [R14 + 0x70] CMP RCX,qword ptr [RBX + 0x158] JNZ 0x0017d8f7 MOV RCX,qword ptr [R14 + 0x78] CMP RCX,qword ptr [RBX + 0x168] JNZ 0x0017d8f7 MOV ECX,0x8e AND ECX,dword ptr [RBX + 0x1d0] XOR EAX,EAX CMP ECX,0x2 SETNZ AL JMP 0x0017d956 LAB_0017d8f7: CMP RAX,qword ptr [R14 + 0x300] JZ 0x0017d923 MOV RDI,qword ptr [R14 + 0x278] MOV ESI,dword ptr [R14 + 0x350] LEA RDX,[R14 + 0x280] MOV ECX,0x1 CALL 0x00199999 MOV RAX,qword ptr [R14 + 0x68] LAB_0017d923: MOV qword ptr [R14 + 0x308],RAX MOV RAX,qword ptr [R14 + 0x70] MOV qword ptr [RBX + 0x158],RAX MOV RAX,qword ptr [R14 + 0x78] MOV qword ptr [RBX + 0x168],RAX OR byte ptr [RBX + 0x1d0],0x4 MOV dword ptr [RBX + 0x1fc],0x1 MOV EAX,0x1 LAB_0017d956: POP RBX POP R14 POP RBP RET
bool _mi_test_if_changed(long *param_1) { long lVar1; long lVar2; bool bVar3; lVar1 = *param_1; lVar2 = *(long *)(lVar1 + 0x68); if (((lVar2 == *(long *)(lVar1 + 0x308)) && (*(long *)(lVar1 + 0x70) == param_1[0x2b])) && (*(long *)(lVar1 + 0x78) == param_1[0x2d])) { bVar3 = (*(uint *)(param_1 + 0x3a) & 0x8e) != 2; } else { if (lVar2 != *(long *)(lVar1 + 0x300)) { flush_key_blocks(*(int8 *)(lVar1 + 0x278),*(int4 *)(lVar1 + 0x350),lVar1 + 0x280,1 ); lVar2 = *(long *)(lVar1 + 0x68); } *(long *)(lVar1 + 0x308) = lVar2; param_1[0x2b] = *(long *)(lVar1 + 0x70); param_1[0x2d] = *(long *)(lVar1 + 0x78); *(byte *)(param_1 + 0x3a) = *(byte *)(param_1 + 0x3a) | 4; *(int4 *)((long)param_1 + 0x1fc) = 1; bVar3 = true; } return bVar3; }
31,384
get_present_hash_link
eloqsql/storage/maria/ma_pagecache.c
static PAGECACHE_HASH_LINK *get_present_hash_link(PAGECACHE *pagecache, PAGECACHE_FILE *file, pgcache_page_no_t pageno, PAGECACHE_HASH_LINK ***start) { reg1 PAGECACHE_HASH_LINK *hash_link; #if defined(PAGECACHE_DEBUG) int cnt; #endif DBUG_ENTER("get_present_hash_link"); DBUG_PRINT("enter", ("fd: %u pos: %lu", (uint) file->file, (ulong) pageno)); /* Find the bucket in the hash table for the pair (file, pageno); start contains the head of the bucket list, hash_link points to the first member of the list */ hash_link= *(*start= &pagecache->hash_root[PAGECACHE_HASH(pagecache, *file, pageno)]); #if defined(PAGECACHE_DEBUG) cnt= 0; #endif /* Look for an element for the pair (file, pageno) in the bucket chain */ while (hash_link && (hash_link->pageno != pageno || hash_link->file.file != file->file)) { hash_link= hash_link->next; #if defined(PAGECACHE_DEBUG) cnt++; if (! (cnt <= pagecache->hash_links_used)) { int i; for (i=0, hash_link= **start ; i < cnt ; i++, hash_link= hash_link->next) { KEYCACHE_DBUG_PRINT("get_present_hash_link", ("fd: %u pos: %lu", (uint) hash_link->file.file, (ulong) hash_link->pageno)); } } KEYCACHE_DBUG_ASSERT(cnt <= pagecache->hash_links_used); #endif } if (hash_link) { DBUG_PRINT("exit", ("hash_link: %p", hash_link)); /* Register the request for the page */ hash_link->requests++; } /* As soon as the caller will release the page cache's lock, "hash_link" will be potentially obsolete (unusable) information. */ DBUG_RETURN(hash_link); }
O0
c
get_present_hash_link: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) jmp 0x30256 movq -0x8(%rbp), %rax movq 0x88(%rax), %rax movq -0x18(%rbp), %rcx movq -0x10(%rbp), %rdx movslq 0x10(%rdx), %rdx addq %rdx, %rcx movq -0x8(%rbp), %rdx movq 0x20(%rdx), %rdx subq $0x1, %rdx andq %rdx, %rcx movq %rcx, %rdx shlq $0x3, %rdx movq %rax, %rsi addq %rdx, %rsi movq -0x20(%rbp), %rdx movq %rsi, (%rdx) movq (%rax,%rcx,8), %rax movq %rax, -0x28(%rbp) xorl %eax, %eax cmpq $0x0, -0x28(%rbp) movb %al, -0x29(%rbp) je 0x302d4 movq -0x28(%rbp), %rax movq 0x60(%rax), %rcx movb $0x1, %al cmpq -0x18(%rbp), %rcx movb %al, -0x2a(%rbp) jne 0x302ce movq -0x28(%rbp), %rax movl 0x28(%rax), %eax movq -0x10(%rbp), %rcx cmpl 0x10(%rcx), %eax setne %al movb %al, -0x2a(%rbp) movb -0x2a(%rbp), %al movb %al, -0x29(%rbp) movb -0x29(%rbp), %al testb $0x1, %al jne 0x302dd jmp 0x302ea movq -0x28(%rbp), %rax movq (%rax), %rax movq %rax, -0x28(%rbp) jmp 0x3029b cmpq $0x0, -0x28(%rbp) je 0x30302 jmp 0x302f3 jmp 0x302f5 movq -0x28(%rbp), %rax movl 0x68(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x68(%rax) jmp 0x30304 movq -0x28(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax popq %rbp retq nopw %cs:(%rax,%rax)
get_present_hash_link: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx jmp short $+2 loc_30256: mov rax, [rbp+var_8] mov rax, [rax+88h] mov rcx, [rbp+var_18] mov rdx, [rbp+var_10] movsxd rdx, dword ptr [rdx+10h] add rcx, rdx mov rdx, [rbp+var_8] mov rdx, [rdx+20h] sub rdx, 1 and rcx, rdx mov rdx, rcx shl rdx, 3 mov rsi, rax add rsi, rdx mov rdx, [rbp+var_20] mov [rdx], rsi mov rax, [rax+rcx*8] mov [rbp+var_28], rax loc_3029B: xor eax, eax cmp [rbp+var_28], 0 mov [rbp+var_29], al jz short loc_302D4 mov rax, [rbp+var_28] mov rcx, [rax+60h] mov al, 1 cmp rcx, [rbp+var_18] mov [rbp+var_2A], al jnz short loc_302CE mov rax, [rbp+var_28] mov eax, [rax+28h] mov rcx, [rbp+var_10] cmp eax, [rcx+10h] setnz al mov [rbp+var_2A], al loc_302CE: mov al, [rbp+var_2A] mov [rbp+var_29], al loc_302D4: mov al, [rbp+var_29] test al, 1 jnz short loc_302DD jmp short loc_302EA loc_302DD: mov rax, [rbp+var_28] mov rax, [rax] mov [rbp+var_28], rax jmp short loc_3029B loc_302EA: cmp [rbp+var_28], 0 jz short loc_30302 jmp short $+2 loc_302F3: jmp short $+2 loc_302F5: mov rax, [rbp+var_28] mov ecx, [rax+68h] add ecx, 1 mov [rax+68h], ecx loc_30302: jmp short $+2 loc_30304: mov rax, [rbp+var_28] mov [rbp+var_38], rax mov rax, [rbp+var_38] pop rbp retn
long long * get_present_hash_link(long long a1, long long a2, long long a3, _QWORD *a4) { long long v4; // rax long long v5; // rcx bool v7; // [rsp+Eh] [rbp-2Ah] bool v8; // [rsp+Fh] [rbp-29h] long long *i; // [rsp+10h] [rbp-28h] v4 = *(_QWORD *)(a1 + 136); v5 = (*(_QWORD *)(a1 + 32) - 1LL) & (*(int *)(a2 + 16) + a3); *a4 = 8 * v5 + v4; for ( i = *(long long **)(v4 + 8 * v5); ; i = (long long *)*i ) { v8 = 0; if ( i ) { v7 = 1; if ( i[12] == a3 ) v7 = *((_DWORD *)i + 10) != *(_DWORD *)(a2 + 16); v8 = v7; } if ( !v8 ) break; } if ( i ) ++*((_DWORD *)i + 26); return i; }
get_present_hash_link: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX JMP 0x00130256 LAB_00130256: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x88] MOV RCX,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x10] MOVSXD RDX,dword ptr [RDX + 0x10] ADD RCX,RDX MOV RDX,qword ptr [RBP + -0x8] MOV RDX,qword ptr [RDX + 0x20] SUB RDX,0x1 AND RCX,RDX MOV RDX,RCX SHL RDX,0x3 MOV RSI,RAX ADD RSI,RDX MOV RDX,qword ptr [RBP + -0x20] MOV qword ptr [RDX],RSI MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0x28],RAX LAB_0013029b: XOR EAX,EAX CMP qword ptr [RBP + -0x28],0x0 MOV byte ptr [RBP + -0x29],AL JZ 0x001302d4 MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RAX + 0x60] MOV AL,0x1 CMP RCX,qword ptr [RBP + -0x18] MOV byte ptr [RBP + -0x2a],AL JNZ 0x001302ce MOV RAX,qword ptr [RBP + -0x28] MOV EAX,dword ptr [RAX + 0x28] MOV RCX,qword ptr [RBP + -0x10] CMP EAX,dword ptr [RCX + 0x10] SETNZ AL MOV byte ptr [RBP + -0x2a],AL LAB_001302ce: MOV AL,byte ptr [RBP + -0x2a] MOV byte ptr [RBP + -0x29],AL LAB_001302d4: MOV AL,byte ptr [RBP + -0x29] TEST AL,0x1 JNZ 0x001302dd JMP 0x001302ea LAB_001302dd: MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x28],RAX JMP 0x0013029b LAB_001302ea: CMP qword ptr [RBP + -0x28],0x0 JZ 0x00130302 JMP 0x001302f3 LAB_001302f3: JMP 0x001302f5 LAB_001302f5: MOV RAX,qword ptr [RBP + -0x28] MOV ECX,dword ptr [RAX + 0x68] ADD ECX,0x1 MOV dword ptr [RAX + 0x68],ECX LAB_00130302: JMP 0x00130304 LAB_00130304: MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] POP RBP RET
int8 * get_present_hash_link(long param_1,long param_2,long param_3,long *param_4) { long lVar1; ulong uVar2; bool bVar3; int8 *local_30; lVar1 = *(long *)(param_1 + 0x88); uVar2 = param_3 + *(int *)(param_2 + 0x10) & *(long *)(param_1 + 0x20) - 1U; *param_4 = lVar1 + uVar2 * 8; local_30 = *(int8 **)(lVar1 + uVar2 * 8); while( true ) { bVar3 = false; if ((local_30 != (int8 *)0x0) && (bVar3 = true, local_30[0xc] == param_3)) { bVar3 = *(int *)(local_30 + 5) != *(int *)(param_2 + 0x10); } if (!bVar3) break; local_30 = (int8 *)*local_30; } if (local_30 != (int8 *)0x0) { *(int *)(local_30 + 0xd) = *(int *)(local_30 + 0xd) + 1; } return local_30; }
31,385
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>::size() const
monkey531[P]llama/common/json.hpp
size_type size() const noexcept { switch (m_data.m_type) { case value_t::null: { // null values are empty return 0; } case value_t::array: { // delegate call to array_t::size() return m_data.m_value.array->size(); } case value_t::object: { // delegate call to object_t::size() return m_data.m_value.object->size(); } case value_t::string: case value_t::boolean: case value_t::number_integer: case value_t::number_unsigned: case value_t::number_float: case value_t::binary: case value_t::discarded: default: { // all other types have size 1 return 1; } } }
O0
cpp
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>::size() const: subq $0x28, %rsp movq %rdi, 0x18(%rsp) movq 0x18(%rsp), %rax movq %rax, 0x8(%rsp) movzbl (%rax), %eax movq %rax, 0x10(%rsp) subq $0x9, %rax ja 0xad14d movq 0x10(%rsp), %rax leaq 0x1579d7(%rip), %rcx # 0x204ae4 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq $0x0, 0x20(%rsp) jmp 0xad156 movq 0x8(%rsp), %rax movq 0x8(%rax), %rdi callq 0xac5e0 movq %rax, 0x20(%rsp) jmp 0xad156 movq 0x8(%rsp), %rax movq 0x8(%rax), %rdi callq 0xad1e0 movq %rax, 0x20(%rsp) jmp 0xad156 jmp 0xad14d movq $0x1, 0x20(%rsp) movq 0x20(%rsp), %rax addq $0x28, %rsp retq
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4sizeEv: sub rsp, 28h mov [rsp+28h+var_10], rdi mov rax, [rsp+28h+var_10] mov [rsp+28h+var_20], rax movzx eax, byte ptr [rax] mov [rsp+28h+var_18], rax sub rax, 9; switch 10 cases ja short def_AD114; jumptable 00000000000AD114 default case mov rax, [rsp+28h+var_18] lea rcx, jpt_AD114 movsxd rax, ds:(jpt_AD114 - 204AE4h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_AD116: mov [rsp+28h+var_8], 0; jumptable 00000000000AD114 case 0 jmp short loc_AD156 loc_AD121: mov rax, [rsp+28h+var_20]; jumptable 00000000000AD114 case 2 mov rdi, [rax+8] call _ZNKSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_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>>::size(void) mov [rsp+28h+var_8], rax jmp short loc_AD156 loc_AD136: mov rax, [rsp+28h+var_20]; jumptable 00000000000AD114 case 1 mov rdi, [rax+8] call _ZNKSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE4sizeEv; std::vector<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>>>::size(void) mov [rsp+28h+var_8], rax jmp short loc_AD156 loc_AD14B: jmp short $+2; jumptable 00000000000AD114 cases 3-9 def_AD114: mov [rsp+28h+var_8], 1; jumptable 00000000000AD114 default case loc_AD156: mov rax, [rsp+28h+var_8] add rsp, 28h retn
long long 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( long long a1) { long long v2; // [rsp+20h] [rbp-8h] switch ( *(_BYTE *)a1 ) { case 0: v2 = 0LL; break; case 1: v2 = std::vector<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>>>::size(*(_QWORD *)(a1 + 8)); break; case 2: v2 = 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>>::size(*(_QWORD **)(a1 + 8)); break; default: v2 = 1LL; break; } return v2; }
size: SUB RSP,0x28 MOV qword ptr [RSP + 0x18],RDI MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x8],RAX MOVZX EAX,byte ptr [RAX] MOV qword ptr [RSP + 0x10],RAX SUB RAX,0x9 JA 0x001ad14d MOV RAX,qword ptr [RSP + 0x10] LEA RCX,[0x304ae4] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_0: MOV qword ptr [RSP + 0x20],0x0 JMP 0x001ad156 caseD_2: MOV RAX,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RAX + 0x8] CALL 0x001ac5e0 MOV qword ptr [RSP + 0x20],RAX JMP 0x001ad156 caseD_1: MOV RAX,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RAX + 0x8] CALL 0x001ad1e0 MOV qword ptr [RSP + 0x20],RAX JMP 0x001ad156 caseD_3: JMP 0x001ad14d default: MOV qword ptr [RSP + 0x20],0x1 LAB_001ad156: MOV RAX,qword ptr [RSP + 0x20] ADD RSP,0x28 RET
/* 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() const */ int8 __thiscall 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(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) { int8 local_8; switch(*this) { case (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> )0x0: local_8 = 0; break; case (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> )0x1: local_8 = std:: vector<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>>,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>>>> ::size(*(vector<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>>,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>>>> **)(this + 8)); break; case (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> )0x2: local_8 = 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)); break; case (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> )0x3: case (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> )0x4: case (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> )0x5: case (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> )0x6: case (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> )0x7: case (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> )0x8: case (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> )0x9: default: local_8 = 1; } return local_8; }
31,386
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>::size() const
monkey531[P]llama/common/json.hpp
size_type size() const noexcept { switch (m_data.m_type) { case value_t::null: { // null values are empty return 0; } case value_t::array: { // delegate call to array_t::size() return m_data.m_value.array->size(); } case value_t::object: { // delegate call to object_t::size() return m_data.m_value.object->size(); } case value_t::string: case value_t::boolean: case value_t::number_integer: case value_t::number_unsigned: case value_t::number_float: case value_t::binary: case value_t::discarded: default: { // all other types have size 1 return 1; } } }
O2
cpp
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>::size() const: movzbl (%rdi), %eax testl %eax, %eax je 0x4123a cmpl $0x1, %eax je 0x41223 cmpl $0x2, %eax jne 0x41237 movq 0x8(%rdi), %rcx movq 0x8(%rcx), %rax subq (%rcx), %rax sarq $0x4, %rax retq movq 0x8(%rdi), %rcx movq 0x8(%rcx), %rax subq (%rcx), %rax pushq $0x30 popq %rcx cqto idivq %rcx retq pushq $0x1 popq %rax retq nop
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4sizeEv: movzx eax, byte ptr [rdi] test eax, eax jz short locret_4123A cmp eax, 1 jz short loc_41223 cmp eax, 2 jnz short loc_41237 mov rcx, [rdi+8] mov rax, [rcx+8] sub rax, [rcx] sar rax, 4 retn loc_41223: mov rcx, [rdi+8] mov rax, [rcx+8] sub rax, [rcx] push 30h ; '0' pop rcx cqo idiv rcx retn loc_41237: push 1 pop rax locret_4123A: retn
long long 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( unsigned __int8 *a1) { long long result; // rax result = *a1; if ( *a1 ) { if ( (_DWORD)result == 1 ) { return (*(_QWORD *)(*((_QWORD *)a1 + 1) + 8LL) - **((_QWORD **)a1 + 1)) / 48LL; } else if ( (_DWORD)result == 2 ) { return (long long)(*(_QWORD *)(*((_QWORD *)a1 + 1) + 8LL) - **((_QWORD **)a1 + 1)) >> 4; } else { return 1LL; } } return result; }
size: MOVZX EAX,byte ptr [RDI] TEST EAX,EAX JZ 0x0014123a CMP EAX,0x1 JZ 0x00141223 CMP EAX,0x2 JNZ 0x00141237 MOV RCX,qword ptr [RDI + 0x8] MOV RAX,qword ptr [RCX + 0x8] SUB RAX,qword ptr [RCX] SAR RAX,0x4 RET LAB_00141223: MOV RCX,qword ptr [RDI + 0x8] MOV RAX,qword ptr [RCX + 0x8] SUB RAX,qword ptr [RCX] PUSH 0x30 POP RCX CQO IDIV RCX RET LAB_00141237: PUSH 0x1 POP RAX LAB_0014123a: RET
/* 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() const */ ulong __thiscall 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(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) { 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> bVar1; ulong uVar2; bVar1 = *this; uVar2 = (ulong)(byte)bVar1; if (bVar1 != (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> )0x0) { if (bVar1 == (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> )0x1) { return ((*(long **)(this + 8))[1] - **(long **)(this + 8)) / 0x30; } if (bVar1 == (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> )0x2) { return (*(long **)(this + 8))[1] - **(long **)(this + 8) >> 4; } uVar2 = 1; } return uVar2; }
31,387
platform_flash_erase
navaro[P]qoraal-tictactoe/build_O3/_deps/qoraal-src/src/example/platform.c
int32_t platform_flash_erase (uint32_t addr_start, uint32_t addr_end) { if (!_platform_flash) return E_UNEXP ; addr_start &= ~(PLATFORM_FLASH_SECTOR_SIZE - 1); if (addr_start >= _platform_flash_size) return E_PARM; if (addr_end < addr_start) return E_PARM; if (addr_end >= _platform_flash_size) addr_end = _platform_flash_size - 1; addr_end |= (PLATFORM_FLASH_SECTOR_SIZE - 1); memset((void *)(_platform_flash + addr_start), 0xFF, addr_end - addr_start + 1); return EOK; }
O3
c
platform_flash_erase: movl %edi, %ecx movq 0x25edc(%rip), %rdi # 0x41b38 testq %rdi, %rdi je 0x1bcad andl $0xfffff000, %ecx # imm = 0xFFFFF000 movl 0x25ec2(%rip), %r8d # 0x41b30 cmpl %r8d, %ecx setae %al cmpl %esi, %ecx seta %dl orb %al, %dl movl $0xfffff6ff, %eax # imm = 0xFFFFF6FF jne 0x1bcac pushq %rbp movq %rsp, %rbp leal -0x1(%r8), %edx cmpl %esi, %r8d cmoval %esi, %edx orl $0xfff, %edx # imm = 0xFFF movl %ecx, %eax addq %rax, %rdi subl %ecx, %edx incl %edx movl $0xff, %esi callq 0x6260 xorl %eax, %eax popq %rbp retq movl $0xfffff6fa, %eax # imm = 0xFFFFF6FA retq
platform_flash_erase: mov ecx, edi mov rdi, cs:_platform_flash test rdi, rdi jz short loc_1BCAD and ecx, 0FFFFF000h mov r8d, cs:_platform_flash_size cmp ecx, r8d setnb al cmp ecx, esi setnbe dl or dl, al mov eax, 0FFFFF6FFh jnz short locret_1BCAC push rbp mov rbp, rsp lea edx, [r8-1] cmp r8d, esi cmova edx, esi or edx, 0FFFh mov eax, ecx add rdi, rax sub edx, ecx inc edx mov esi, 0FFh call _memset xor eax, eax pop rbp locret_1BCAC: retn loc_1BCAD: mov eax, 0FFFFF6FAh retn
long long platform_flash_erase(int a1, unsigned int a2) { unsigned int v2; // ecx long long result; // rax int v4; // edx if ( !platform_flash ) return 4294964986LL; v2 = a1 & 0xFFFFF000; result = 4294964991LL; if ( v2 < platform_flash_size && v2 <= a2 ) { v4 = platform_flash_size - 1; if ( platform_flash_size > a2 ) v4 = a2; memset(v2 + platform_flash, 255LL, (v4 | 0xFFF) - v2 + 1); return 0LL; } return result; }
platform_flash_erase: MOV ECX,EDI MOV RDI,qword ptr [0x00141b38] TEST RDI,RDI JZ 0x0011bcad AND ECX,0xfffff000 MOV R8D,dword ptr [0x00141b30] CMP ECX,R8D SETNC AL CMP ECX,ESI SETA DL OR DL,AL MOV EAX,0xfffff6ff JNZ 0x0011bcac PUSH RBP MOV RBP,RSP LEA EDX,[R8 + -0x1] CMP R8D,ESI CMOVA EDX,ESI OR EDX,0xfff MOV EAX,ECX ADD RDI,RAX SUB EDX,ECX INC EDX MOV ESI,0xff CALL 0x00106260 XOR EAX,EAX POP RBP LAB_0011bcac: RET LAB_0011bcad: MOV EAX,0xfffff6fa RET
int8 platform_flash_erase(uint param_1,uint param_2) { int8 uVar1; uint uVar2; if (_platform_flash != 0) { param_1 = param_1 & 0xfffff000; uVar1 = 0xfffff6ff; if (param_1 <= param_2 && param_1 < _platform_flash_size) { uVar2 = _platform_flash_size - 1; if (param_2 < _platform_flash_size) { uVar2 = param_2; } memset((void *)(_platform_flash + (ulong)param_1),0xff, (ulong)(((uVar2 | 0xfff) - param_1) + 1)); uVar1 = 0; } return uVar1; } return 0xfffff6fa; }
31,388
reset_root_defaults
eloqsql/mysys/my_alloc.c
void reset_root_defaults(MEM_ROOT *mem_root, size_t block_size, size_t pre_alloc_size __attribute__((unused))) { DBUG_ENTER("reset_root_defaults"); DBUG_ASSERT(alloc_root_inited(mem_root)); mem_root->block_size= (((block_size - ALLOC_ROOT_MIN_BLOCK_SIZE) & ~1) | (mem_root->block_size & 1)); #if !(defined(HAVE_valgrind) && defined(EXTRA_DEBUG)) if (pre_alloc_size) { size_t size= pre_alloc_size + ALIGN_SIZE(sizeof(USED_MEM)); if (!mem_root->pre_alloc || mem_root->pre_alloc->size != size) { USED_MEM *mem, **prev= &mem_root->free; /* Free unused blocks, so that consequent calls to reset_root_defaults won't eat away memory. */ while (*prev) { mem= *prev; if (mem->size == size) { /* We found a suitable block, no need to do anything else */ mem_root->pre_alloc= mem; DBUG_VOID_RETURN; } if (mem->left + ALIGN_SIZE(sizeof(USED_MEM)) == mem->size) { /* remove block from the list and free it */ *prev= mem->next; my_free(mem); } else prev= &mem->next; } /* Allocate new prealloc block and add it to the end of free list */ if ((mem= (USED_MEM *) my_malloc(mem_root->m_psi_key, size, MYF(MALLOC_FLAG(mem_root-> block_size))))) { mem->size= size; mem->left= pre_alloc_size; mem->next= *prev; *prev= mem_root->pre_alloc= mem; TRASH_MEM(mem); } else { mem_root->pre_alloc= 0; } } } else #endif mem_root->pre_alloc= 0; DBUG_VOID_RETURN; }
O3
c
reset_root_defaults: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rdx, %r14 movq %rdi, %rbx andq $-0x2, %rsi movq 0x20(%rdi), %rax andl $0x1, %eax leaq (%rsi,%rax), %rdx addq $-0x28, %rdx movq %rdx, 0x20(%rdi) testq %r14, %r14 je 0xbdfd4 leaq 0x18(%r14), %r15 movq 0x10(%rbx), %rax testq %rax, %rax je 0xbdf63 cmpq %r15, 0x10(%rax) je 0xbdfe2 movq (%rbx), %rdi movq %rbx, %r12 testq %rdi, %rdi je 0xbdfa5 movq %rbx, %r12 movq 0x10(%rdi), %rax cmpq %r15, %rax je 0xbdfde movq 0x8(%rdi), %rcx addq $0x18, %rcx cmpq %rax, %rcx jne 0xbdf95 movq (%rdi), %rax movq %rax, (%r12) callq 0xc3cfa jmp 0xbdf98 movq %rdi, %r12 movq (%r12), %rdi testq %rdi, %rdi jne 0xbdf71 movq 0x20(%rbx), %rdx movl 0x38(%rbx), %edi andl $0x1, %edx shll $0x10, %edx movq %r15, %rsi callq 0xc3acd testq %rax, %rax je 0xbdfd4 movq %r15, 0x10(%rax) movq %r14, 0x8(%rax) movq (%r12), %rcx movq %rcx, (%rax) movq %rax, 0x10(%rbx) movq %rax, (%r12) jmp 0xbdfe2 movq $0x0, 0x10(%rbx) jmp 0xbdfe2 movq %rdi, 0x10(%rbx) popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
reset_root_defaults: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov r14, rdx mov rbx, rdi and rsi, 0FFFFFFFFFFFFFFFEh mov rax, [rdi+20h] and eax, 1 lea rdx, [rsi+rax] add rdx, 0FFFFFFFFFFFFFFD8h mov [rdi+20h], rdx test r14, r14 jz loc_BDFD4 lea r15, [r14+18h] mov rax, [rbx+10h] test rax, rax jz short loc_BDF63 cmp [rax+10h], r15 jz short loc_BDFE2 loc_BDF63: mov rdi, [rbx] mov r12, rbx test rdi, rdi jz short loc_BDFA5 mov r12, rbx loc_BDF71: mov rax, [rdi+10h] cmp rax, r15 jz short loc_BDFDE mov rcx, [rdi+8] add rcx, 18h cmp rcx, rax jnz short loc_BDF95 mov rax, [rdi] mov [r12], rax call my_free jmp short loc_BDF98 loc_BDF95: mov r12, rdi loc_BDF98: mov rdi, [r12] test rdi, rdi jnz short loc_BDF71 mov rdx, [rbx+20h] loc_BDFA5: mov edi, [rbx+38h] and edx, 1 shl edx, 10h mov rsi, r15 call my_malloc test rax, rax jz short loc_BDFD4 mov [rax+10h], r15 mov [rax+8], r14 mov rcx, [r12] mov [rax], rcx mov [rbx+10h], rax mov [r12], rax jmp short loc_BDFE2 loc_BDFD4: mov qword ptr [rbx+10h], 0 jmp short loc_BDFE2 loc_BDFDE: mov [rbx+10h], rdi loc_BDFE2: pop rbx pop r12 pop r14 pop r15 pop rbp retn
_QWORD * reset_root_defaults(long long a1, long long a2, long long a3) { _QWORD *result; // rax unsigned long long v6; // rdx _QWORD *v7; // r15 _QWORD *v8; // rdi _QWORD *v9; // r12 result = (_QWORD *)(*(_QWORD *)(a1 + 32) & 1LL); v6 = (unsigned long long)result + (a2 & 0xFFFFFFFFFFFFFFFELL) - 40; *(_QWORD *)(a1 + 32) = v6; if ( !a3 ) { LABEL_14: *(_QWORD *)(a1 + 16) = 0LL; return result; } v7 = (_QWORD *)(a3 + 24); result = *(_QWORD **)(a1 + 16); if ( result && (_QWORD *)result[2] == v7 ) return result; v8 = *(_QWORD **)a1; v9 = (_QWORD *)a1; if ( !*(_QWORD *)a1 ) { LABEL_12: result = (_QWORD *)my_malloc(*(unsigned int *)(a1 + 56), a3 + 24, (unsigned __int8)(v6 & 1) << 16); if ( result ) { result[2] = v7; result[1] = a3; *result = *v9; *(_QWORD *)(a1 + 16) = result; *v9 = result; return result; } goto LABEL_14; } v9 = (_QWORD *)a1; while ( 1 ) { result = (_QWORD *)v8[2]; if ( result == v7 ) break; if ( (_QWORD *)(v8[1] + 24LL) == result ) { *v9 = *v8; my_free(v8); } else { v9 = v8; } v8 = (_QWORD *)*v9; if ( !*v9 ) { v6 = *(_QWORD *)(a1 + 32); goto LABEL_12; } } *(_QWORD *)(a1 + 16) = v8; return result; }
reset_root_defaults: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV R14,RDX MOV RBX,RDI AND RSI,-0x2 MOV RAX,qword ptr [RDI + 0x20] AND EAX,0x1 LEA RDX,[RSI + RAX*0x1] ADD RDX,-0x28 MOV qword ptr [RDI + 0x20],RDX TEST R14,R14 JZ 0x001bdfd4 LEA R15,[R14 + 0x18] MOV RAX,qword ptr [RBX + 0x10] TEST RAX,RAX JZ 0x001bdf63 CMP qword ptr [RAX + 0x10],R15 JZ 0x001bdfe2 LAB_001bdf63: MOV RDI,qword ptr [RBX] MOV R12,RBX TEST RDI,RDI JZ 0x001bdfa5 MOV R12,RBX LAB_001bdf71: MOV RAX,qword ptr [RDI + 0x10] CMP RAX,R15 JZ 0x001bdfde MOV RCX,qword ptr [RDI + 0x8] ADD RCX,0x18 CMP RCX,RAX JNZ 0x001bdf95 MOV RAX,qword ptr [RDI] MOV qword ptr [R12],RAX CALL 0x001c3cfa JMP 0x001bdf98 LAB_001bdf95: MOV R12,RDI LAB_001bdf98: MOV RDI,qword ptr [R12] TEST RDI,RDI JNZ 0x001bdf71 MOV RDX,qword ptr [RBX + 0x20] LAB_001bdfa5: MOV EDI,dword ptr [RBX + 0x38] AND EDX,0x1 SHL EDX,0x10 MOV RSI,R15 CALL 0x001c3acd TEST RAX,RAX JZ 0x001bdfd4 MOV qword ptr [RAX + 0x10],R15 MOV qword ptr [RAX + 0x8],R14 MOV RCX,qword ptr [R12] MOV qword ptr [RAX],RCX MOV qword ptr [RBX + 0x10],RAX MOV qword ptr [R12],RAX JMP 0x001bdfe2 LAB_001bdfd4: MOV qword ptr [RBX + 0x10],0x0 JMP 0x001bdfe2 LAB_001bdfde: MOV qword ptr [RBX + 0x10],RDI LAB_001bdfe2: POP RBX POP R12 POP R14 POP R15 POP RBP RET
void reset_root_defaults(long *param_1,ulong param_2,long param_3) { long lVar1; long *plVar2; long lVar3; long *plVar4; long *plVar5; lVar3 = (param_2 & 0xfffffffffffffffe) + (ulong)((uint)param_1[4] & 1) + -0x28; param_1[4] = lVar3; if (param_3 != 0) { lVar1 = param_3 + 0x18; if ((param_1[2] != 0) && (*(long *)(param_1[2] + 0x10) == lVar1)) { return; } plVar2 = (long *)*param_1; plVar4 = param_1; plVar5 = param_1; if (plVar2 != (long *)0x0) { do { if (plVar2[2] == lVar1) { param_1[2] = (long)plVar2; return; } plVar5 = plVar2; if (plVar2[1] + 0x18 == plVar2[2]) { *plVar4 = *plVar2; my_free(); plVar5 = plVar4; } plVar2 = (long *)*plVar5; plVar4 = plVar5; } while (plVar2 != (long *)0x0); lVar3 = param_1[4]; } plVar2 = (long *)my_malloc((int)param_1[7],lVar1,((uint)lVar3 & 1) << 0x10); if (plVar2 != (long *)0x0) { plVar2[2] = lVar1; plVar2[1] = param_3; *plVar2 = *plVar5; param_1[2] = (long)plVar2; *plVar5 = (long)plVar2; return; } } param_1[2] = 0; return; }
31,389
get_all_kv_cache_types[abi:cxx11]()
monkey531[P]llama/common/arg.cpp
static std::string get_all_kv_cache_types() { std::ostringstream msg; for (const auto & type : kv_cache_types) { msg << ggml_type_name(type) << (&type == &kv_cache_types.back() ? "" : ", "); } return msg.str(); }
O3
cpp
get_all_kv_cache_types[abi:cxx11](): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x188, %rsp # imm = 0x188 movq %rdi, 0x8(%rsp) leaq 0x10(%rsp), %rdi callq 0x1bb70 movq 0xe0da0(%rip), %r12 # 0x12ed58 movq 0xe0da1(%rip), %r13 # 0x12ed60 cmpq %r13, %r12 je 0x4e04d leaq 0x9f907(%rip), %rbp # 0xed8d6 leaq 0xa349d(%rip), %rbx # 0xf1473 leaq 0x10(%rsp), %r14 movl (%r12), %edi callq 0x1b810 movq %rax, %r15 testq %rax, %rax je 0x4e004 movq %r15, %rdi callq 0x1b3e0 movq %r14, %rdi movq %r15, %rsi movq %rax, %rdx callq 0x1b9c0 jmp 0x4e020 movq 0x10(%rsp), %rax movq -0x18(%rax), %rax leaq (%rsp,%rax), %rdi addq $0x10, %rdi movl 0x20(%rdi), %esi orl $0x1, %esi callq 0x1bed0 movq 0xe0d39(%rip), %rax # 0x12ed60 addq $-0x4, %rax xorl %edx, %edx cmpq %rax, %r12 setne %dl movq %rbx, %rsi cmoveq %rbp, %rsi addl %edx, %edx movq %r14, %rdi callq 0x1b9c0 addq $0x4, %r12 cmpq %r13, %r12 jne 0x4dfdb leaq 0x18(%rsp), %rsi movq 0x8(%rsp), %rdi callq 0x1bd90 movq 0xdff05(%rip), %rsi # 0x12df68 leaq 0x10(%rsp), %rdi callq 0x1b490 leaq 0x80(%rsp), %rdi callq 0x1b2b0 addq $0x188, %rsp # imm = 0x188 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x4e08e movq %rax, %rbx movq 0xdfed0(%rip), %rsi # 0x12df68 leaq 0x10(%rsp), %rdi callq 0x1b490 leaq 0x80(%rsp), %rdi callq 0x1b2b0 movq %rbx, %rdi callq 0x1bf70
_ZL22get_all_kv_cache_typesB5cxx11v: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 188h mov [rsp+1B8h+var_1B0], rdi lea rdi, [rsp+1B8h+var_1A8] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void) mov r12, cs:_ZL14kv_cache_types; kv_cache_types mov r13, cs:qword_12ED60 cmp r12, r13 jz loc_4E04D lea rbp, aErrorWhileHand_0+34h; "" lea rbx, aZuD+6; ", " lea r14, [rsp+1B8h+var_1A8] loc_4DFDB: mov edi, [r12] call _ggml_type_name mov r15, rax test rax, rax jz short loc_4E004 mov rdi, r15 call _strlen mov rdi, r14 mov rsi, r15 mov rdx, rax call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) jmp short loc_4E020 loc_4E004: mov rax, [rsp+1B8h+var_1A8] mov rax, [rax-18h] lea rdi, [rsp+rax+1B8h+var_1B8] add rdi, 10h mov esi, [rdi+20h] or esi, 1 call __ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate; std::ios::clear(std::_Ios_Iostate) loc_4E020: mov rax, cs:qword_12ED60 add rax, 0FFFFFFFFFFFFFFFCh xor edx, edx cmp r12, rax setnz dl mov rsi, rbx cmovz rsi, rbp add edx, edx 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) add r12, 4 cmp r12, r13 jnz short loc_4DFDB loc_4E04D: lea rsi, [rsp+1B8h+var_1A0] mov rdi, [rsp+1B8h+var_1B0] call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+1B8h+var_1A8] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream() lea rdi, [rsp+1B8h+var_138]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() add rsp, 188h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short $+2 loc_4E08E: mov rbx, rax mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+arg_8] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream() lea rdi, [rsp+arg_78]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() mov rdi, rbx call __Unwind_Resume
void get_all_kv_cache_types[abi:cxx11](long long a1) { unsigned int *v1; // r12 long long i; // r13 long long v3; // rax long long v4; // r15 long long v5; // rax char *v6; // rsi long long v7; // [rsp+10h] [rbp-1A8h] BYREF _BYTE v8[104]; // [rsp+18h] [rbp-1A0h] BYREF _BYTE v9[312]; // [rsp+80h] [rbp-138h] BYREF std::ostringstream::basic_ostringstream(&v7); v1 = (unsigned int *)kv_cache_types; for ( i = qword_12ED60; v1 != (unsigned int *)i; ++v1 ) { v3 = ggml_type_name(*v1); v4 = v3; if ( v3 ) { v5 = strlen(v3); std::__ostream_insert<char,std::char_traits<char>>(&v7, v4, v5); } else { std::ios::clear(&v8[*(_QWORD *)(v7 - 24) - 8], *(_DWORD *)&v8[*(_QWORD *)(v7 - 24) + 24] | 1u); } v6 = ", "; if ( v1 == (unsigned int *)(qword_12ED60 - 4) ) v6 = ""; std::__ostream_insert<char,std::char_traits<char>>( &v7, v6, 2 * (unsigned int)(v1 != (unsigned int *)(qword_12ED60 - 4))); } std::stringbuf::str(a1, v8); std::ostringstream::~ostringstream(&v7, &`VTT for'std::ostringstream); std::ios_base::~ios_base((std::ios_base *)v9); }
get_all_kv_cache_types[abi:cxx11]: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x188 MOV qword ptr [RSP + 0x8],RDI LEA RDI,[RSP + 0x10] CALL 0x0011bb70 MOV R12,qword ptr [0x0022ed58] MOV R13,qword ptr [0x0022ed60] CMP R12,R13 JZ 0x0014e04d LEA RBP,[0x1ed8d6] LEA RBX,[0x1f1473] LEA R14,[RSP + 0x10] LAB_0014dfdb: MOV EDI,dword ptr [R12] LAB_0014dfdf: CALL 0x0011b810 MOV R15,RAX TEST RAX,RAX JZ 0x0014e004 MOV RDI,R15 CALL 0x0011b3e0 MOV RDI,R14 MOV RSI,R15 MOV RDX,RAX CALL 0x0011b9c0 JMP 0x0014e020 LAB_0014e004: MOV RAX,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RAX + -0x18] LEA RDI,[RSP + RAX*0x1] ADD RDI,0x10 MOV ESI,dword ptr [RDI + 0x20] OR ESI,0x1 CALL 0x0011bed0 LAB_0014e020: MOV RAX,qword ptr [0x0022ed60] ADD RAX,-0x4 XOR EDX,EDX CMP R12,RAX SETNZ DL MOV RSI,RBX CMOVZ RSI,RBP ADD EDX,EDX MOV RDI,R14 CALL 0x0011b9c0 ADD R12,0x4 CMP R12,R13 JNZ 0x0014dfdb LAB_0014e04d: LEA RSI,[RSP + 0x18] LAB_0014e052: MOV RDI,qword ptr [RSP + 0x8] CALL 0x0011bd90 LAB_0014e05c: MOV RSI,qword ptr [0x0022df68] LEA RDI,[RSP + 0x10] CALL 0x0011b490 LEA RDI,[RSP + 0x80] CALL 0x0011b2b0 ADD RSP,0x188 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* WARNING: Unknown calling convention -- yet parameter storage is locked */ /* get_all_kv_cache_types[abi:cxx11]() */ void get_all_kv_cache_types_abi_cxx11_(void) { int4 *puVar1; char *pcVar2; size_t sVar3; int4 *puVar4; long local_1a8 [4]; uint auStack_188 [20]; ios_base local_138 [264]; std::__cxx11::ostringstream::ostringstream((ostringstream *)local_1a8); puVar1 = DAT_0022ed60; if (kv_cache_types != DAT_0022ed60) { puVar4 = kv_cache_types; do { /* try { // try from 0014dfdf to 0014e043 has its CatchHandler @ 0014e08e */ pcVar2 = (char *)ggml_type_name(*puVar4); if (pcVar2 == (char *)0x0) { std::ios::clear((long)local_1a8 + *(long *)(local_1a8[0] + -0x18), *(uint *)((long)auStack_188 + *(long *)(local_1a8[0] + -0x18)) | 1); } else { sVar3 = strlen(pcVar2); std::__ostream_insert<char,std::char_traits<char>>((ostream *)local_1a8,pcVar2,sVar3); } pcVar2 = ", "; if (puVar4 == DAT_0022ed60 + -1) { pcVar2 = ""; } std::__ostream_insert<char,std::char_traits<char>> ((ostream *)local_1a8,pcVar2,(ulong)((uint)(puVar4 != DAT_0022ed60 + -1) * 2)); puVar4 = puVar4 + 1; } while (puVar4 != puVar1); } /* try { // try from 0014e052 to 0014e05b has its CatchHandler @ 0014e08c */ std::__cxx11::stringbuf::str(); std::__cxx11::ostringstream::~ostringstream((ostringstream *)local_1a8); std::ios_base::~ios_base(local_138); return; }
31,390
mi_store_bin_pack_key
eloqsql/storage/myisam/mi_search.c
void _mi_store_bin_pack_key(MI_KEYDEF *keyinfo __attribute__((unused)), register uchar *key_pos, register MI_KEY_PARAM *s_temp) { store_key_length_inc(key_pos,s_temp->ref_length); memcpy((char*) key_pos,(char*) s_temp->key+s_temp->ref_length, (size_t) s_temp->totlength-s_temp->ref_length); if (s_temp->next_key_pos) { key_pos+=(uint) (s_temp->totlength-s_temp->ref_length); store_key_length_inc(key_pos,s_temp->n_ref_length); if (s_temp->prev_length) /* If we must extend key */ { memcpy(key_pos,s_temp->prev_key,s_temp->prev_length); } } }
O3
c
mi_store_bin_pack_key: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rdx, %r14 movq %rsi, %rbx movl (%rdx), %eax cmpl $0xfe, %eax ja 0x8bea4 movb %al, (%rbx) incq %rbx jmp 0x8beb7 movb $-0x1, (%rbx) movzwl (%r14), %eax rolw $0x8, %ax movw %ax, 0x1(%rbx) addq $0x3, %rbx movl (%r14), %eax movl 0x10(%r14), %edx movq 0x20(%r14), %rsi addq %rax, %rsi subq %rax, %rdx movq %rbx, %rdi callq 0x2a0a0 cmpq $0x0, 0x30(%r14) je 0x8bf20 movl 0x8(%r14), %eax movl 0x10(%r14), %ecx subl (%r14), %ecx addq %rcx, %rbx cmpl $0xfe, %eax ja 0x8bef3 movb %al, (%rbx) incq %rbx jmp 0x8bf07 movb $-0x1, (%rbx) movzwl 0x8(%r14), %eax rolw $0x8, %ax movw %ax, 0x1(%rbx) addq $0x3, %rbx movl 0x18(%r14), %edx testq %rdx, %rdx je 0x8bf20 movq 0x28(%r14), %rsi movq %rbx, %rdi popq %rbx popq %r14 popq %rbp jmp 0x2a0a0 popq %rbx popq %r14 popq %rbp retq nopl (%rax)
_mi_store_bin_pack_key: push rbp mov rbp, rsp push r14 push rbx mov r14, rdx mov rbx, rsi mov eax, [rdx] cmp eax, 0FEh ja short loc_8BEA4 mov [rbx], al inc rbx jmp short loc_8BEB7 loc_8BEA4: mov byte ptr [rbx], 0FFh movzx eax, word ptr [r14] rol ax, 8 mov [rbx+1], ax add rbx, 3 loc_8BEB7: mov eax, [r14] mov edx, [r14+10h] mov rsi, [r14+20h] add rsi, rax sub rdx, rax mov rdi, rbx call _memcpy cmp qword ptr [r14+30h], 0 jz short loc_8BF20 mov eax, [r14+8] mov ecx, [r14+10h] sub ecx, [r14] add rbx, rcx cmp eax, 0FEh ja short loc_8BEF3 mov [rbx], al inc rbx jmp short loc_8BF07 loc_8BEF3: mov byte ptr [rbx], 0FFh movzx eax, word ptr [r14+8] rol ax, 8 mov [rbx+1], ax add rbx, 3 loc_8BF07: mov edx, [r14+18h] test rdx, rdx jz short loc_8BF20 mov rsi, [r14+28h] mov rdi, rbx pop rbx pop r14 pop rbp jmp _memcpy loc_8BF20: pop rbx pop r14 pop rbp retn
__int16 mi_store_bin_pack_key(long long a1, long long a2, unsigned int *a3) { long long v4; // rbx unsigned int v5; // eax long long v6; // rbx long long v7; // rbx if ( *a3 > 0xFE ) { *(_BYTE *)a2 = -1; *(_WORD *)(a2 + 1) = __ROL2__(*(_WORD *)a3, 8); v4 = a2 + 3; } else { *(_BYTE *)a2 = *a3; v4 = a2 + 1; } LOWORD(v5) = memcpy(v4, *a3 + *((_QWORD *)a3 + 4), a3[4] - (unsigned long long)*a3); if ( *((_QWORD *)a3 + 6) ) { v5 = a3[2]; v6 = a3[4] - *a3 + v4; if ( v5 > 0xFE ) { *(_BYTE *)v6 = -1; LOWORD(v5) = __ROL2__(*((_WORD *)a3 + 4), 8); *(_WORD *)(v6 + 1) = v5; v7 = v6 + 3; } else { *(_BYTE *)v6 = v5; v7 = v6 + 1; } if ( a3[6] ) LOWORD(v5) = memcpy(v7, *((_QWORD *)a3 + 5), a3[6]); } return v5; }
_mi_store_bin_pack_key: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV R14,RDX MOV RBX,RSI MOV EAX,dword ptr [RDX] CMP EAX,0xfe JA 0x0018bea4 MOV byte ptr [RBX],AL INC RBX JMP 0x0018beb7 LAB_0018bea4: MOV byte ptr [RBX],0xff MOVZX EAX,word ptr [R14] ROL AX,0x8 MOV word ptr [RBX + 0x1],AX ADD RBX,0x3 LAB_0018beb7: MOV EAX,dword ptr [R14] MOV EDX,dword ptr [R14 + 0x10] MOV RSI,qword ptr [R14 + 0x20] ADD RSI,RAX SUB RDX,RAX MOV RDI,RBX CALL 0x0012a0a0 CMP qword ptr [R14 + 0x30],0x0 JZ 0x0018bf20 MOV EAX,dword ptr [R14 + 0x8] MOV ECX,dword ptr [R14 + 0x10] SUB ECX,dword ptr [R14] ADD RBX,RCX CMP EAX,0xfe JA 0x0018bef3 MOV byte ptr [RBX],AL INC RBX JMP 0x0018bf07 LAB_0018bef3: MOV byte ptr [RBX],0xff MOVZX EAX,word ptr [R14 + 0x8] ROL AX,0x8 MOV word ptr [RBX + 0x1],AX ADD RBX,0x3 LAB_0018bf07: MOV EDX,dword ptr [R14 + 0x18] TEST RDX,RDX JZ 0x0018bf20 MOV RSI,qword ptr [R14 + 0x28] MOV RDI,RBX POP RBX POP R14 POP RBP JMP 0x0012a0a0 LAB_0018bf20: POP RBX POP R14 POP RBP RET
void _mi_store_bin_pack_key(int8 param_1,int1 *param_2,uint *param_3) { if (*param_3 < 0xff) { *param_2 = (char)*param_3; param_2 = param_2 + 1; } else { *param_2 = 0xff; *(ushort *)(param_2 + 1) = (ushort)*param_3 << 8 | (ushort)*param_3 >> 8; param_2 = param_2 + 3; } memcpy(param_2,(void *)(*(long *)(param_3 + 8) + (ulong)*param_3), (ulong)param_3[4] - (ulong)*param_3); if (*(long *)(param_3 + 0xc) != 0) { param_2 = param_2 + (param_3[4] - *param_3); if (param_3[2] < 0xff) { *param_2 = (char)param_3[2]; param_2 = param_2 + 1; } else { *param_2 = 0xff; *(ushort *)(param_2 + 1) = (ushort)param_3[2] << 8 | (ushort)param_3[2] >> 8; param_2 = param_2 + 3; } if ((ulong)param_3[6] != 0) { memcpy(param_2,*(void **)(param_3 + 10),(ulong)param_3[6]); return; } } return; }
31,391
strmake_root
eloqsql/mysys/my_alloc.c
char *strmake_root(MEM_ROOT *root, const char *str, size_t len) { char *pos; if ((pos=alloc_root(root,len+1))) { if (len) memcpy(pos,str,len); pos[len]=0; } return pos; }
O3
c
strmake_root: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdx, %rbx movq %rsi, %r14 leaq 0x1(%rdx), %rsi callq 0x2da67 movq %rax, %r15 testq %rax, %rax je 0x2de62 testq %rbx, %rbx je 0x2de5d movq %r15, %rdi movq %r14, %rsi movq %rbx, %rdx callq 0x24240 movb $0x0, (%r15,%rbx) movq %r15, %rax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
strmake_root: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov rbx, rdx mov r14, rsi lea rsi, [rdx+1] call alloc_root mov r15, rax test rax, rax jz short loc_2DE62 test rbx, rbx jz short loc_2DE5D mov rdi, r15 mov rsi, r14 mov rdx, rbx call _memcpy loc_2DE5D: mov byte ptr [r15+rbx], 0 loc_2DE62: mov rax, r15 add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
char * strmake_root(long long a1, long long a2, long long a3) { char *v4; // rax char *v5; // r15 v4 = alloc_root(a1, a3 + 1); v5 = v4; if ( v4 ) { if ( a3 ) memcpy(v4, a2, a3); v5[a3] = 0; } return v5; }
strmake_root: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDX MOV R14,RSI LEA RSI,[RDX + 0x1] CALL 0x0012da67 MOV R15,RAX TEST RAX,RAX JZ 0x0012de62 TEST RBX,RBX JZ 0x0012de5d MOV RDI,R15 MOV RSI,R14 MOV RDX,RBX CALL 0x00124240 LAB_0012de5d: MOV byte ptr [R15 + RBX*0x1],0x0 LAB_0012de62: MOV RAX,R15 ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
void * strmake_root(int8 param_1,void *param_2,size_t param_3) { void *__dest; __dest = (void *)alloc_root(param_1,param_3 + 1); if (__dest != (void *)0x0) { if (param_3 != 0) { memcpy(__dest,param_2,param_3); } *(int1 *)((long)__dest + param_3) = 0; } return __dest; }
31,392
JS_NewUint8Array
bluesky950520[P]quickjs/quickjs.c
JSValue JS_NewUint8Array(JSContext *ctx, uint8_t *buf, size_t len, JSFreeArrayBufferDataFunc *free_func, void *opaque, JS_BOOL is_shared) { JSClassID class_id = is_shared ? JS_CLASS_SHARED_ARRAY_BUFFER : JS_CLASS_ARRAY_BUFFER; JSValue buffer = js_array_buffer_constructor3(ctx, JS_UNDEFINED, len, NULL, class_id, buf, free_func, opaque, FALSE); return js_new_uint8array(ctx, buffer); }
O1
c
JS_NewUint8Array: pushq %rbx movq %r8, %rax movq %rcx, %r10 movq %rdx, %rcx movq %rsi, %r11 movq %rdi, %rbx cmpl $0x1, %r9d movl $0x14, %r9d sbbl $0x0, %r9d movl $0x3, %edx xorl %esi, %esi xorl %r8d, %r8d pushq $0x0 pushq %rax pushq %r10 pushq %r11 callq 0x38005 addq $0x20, %rsp movq %rbx, %rdi movq %rax, %rsi popq %rbx jmp 0x38bfd
JS_NewUint8Array: push rbx mov rax, r8 mov r10, rcx mov rcx, rdx mov r11, rsi mov rbx, rdi cmp r9d, 1 mov r9d, 14h sbb r9d, 0 mov edx, 3 xor esi, esi xor r8d, r8d push 0 push rax push r10 push r11 call js_array_buffer_constructor3 add rsp, 20h mov rdi, rbx mov rsi, rax pop rbx jmp short $+2
long long JS_NewUint8Array( long long a1, long long a2, unsigned long long a3, long long ( *a4)(), long long a5, int a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { unsigned long long v14; // rax v14 = js_array_buffer_constructor3( a1, 0LL, 3LL, a3, 0LL, 20 - (unsigned int)(a6 == 0), a7, a8, a9, a10, a11, a12, a13, a14, a2, a4, a5, 0); return js_new_uint8array(a1, v14); }
JS_NewUint8Array: PUSH RBX MOV RAX,R8 MOV R10,RCX MOV RCX,RDX MOV R11,RSI MOV RBX,RDI CMP R9D,0x1 MOV R9D,0x14 SBB R9D,0x0 MOV EDX,0x3 XOR ESI,ESI XOR R8D,R8D PUSH 0x0 PUSH RAX PUSH R10 PUSH R11 CALL 0x00138005 ADD RSP,0x20 MOV RDI,RBX MOV RSI,RAX POP RBX JMP 0x00138bfd
void JS_NewUint8Array(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int param_6) { int8 uVar1; uVar1 = js_array_buffer_constructor3 (param_1,0,3,param_3,0,0x14 - (uint)(param_6 == 0),param_2,param_4,param_5,0); js_new_uint8array(param_1,uVar1); return; }
31,393
JS_NewUint8Array
bluesky950520[P]quickjs/quickjs.c
JSValue JS_NewUint8Array(JSContext *ctx, uint8_t *buf, size_t len, JSFreeArrayBufferDataFunc *free_func, void *opaque, JS_BOOL is_shared) { JSClassID class_id = is_shared ? JS_CLASS_SHARED_ARRAY_BUFFER : JS_CLASS_ARRAY_BUFFER; JSValue buffer = js_array_buffer_constructor3(ctx, JS_UNDEFINED, len, NULL, class_id, buf, free_func, opaque, FALSE); return js_new_uint8array(ctx, buffer); }
O2
c
JS_NewUint8Array: pushq %rbx subq $0x20, %rsp movq %rdx, %rax movq %rdi, %rbx cmpl $0x1, %r9d pushq $0x14 popq %r9 sbbl $0x0, %r9d movq %r8, 0x10(%rsp) movq %rcx, 0x8(%rsp) andl $0x0, 0x18(%rsp) movq %rsi, (%rsp) pushq $0x3 popq %rdx xorl %esi, %esi movq %rax, %rcx xorl %r8d, %r8d callq 0x31235 movq %rbx, %rdi movq %rax, %rsi addq $0x20, %rsp popq %rbx jmp 0x31ded
JS_NewUint8Array: push rbx sub rsp, 20h mov rax, rdx mov rbx, rdi cmp r9d, 1 push 14h pop r9 sbb r9d, 0 mov [rsp+28h+var_18], r8 mov [rsp+28h+var_20], rcx and [rsp+28h+var_10], 0 mov [rsp+28h+var_28], rsi push 3 pop rdx xor esi, esi mov rcx, rax xor r8d, r8d call js_array_buffer_constructor3 mov rdi, rbx mov rsi, rax add rsp, 20h pop rbx jmp short $+2
long long JS_NewUint8Array( long long a1, long long a2, unsigned long long a3, long long ( *a4)(), long long a5, int a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { unsigned long long v14; // rax v14 = js_array_buffer_constructor3( a1, 0LL, 3LL, a3, 0LL, 20 - (unsigned int)(a6 == 0), a7, a8, a9, a10, a11, a12, a13, a14, a2, a4, a5, 0); return js_new_uint8array(a1, v14); }
JS_NewUint8Array: PUSH RBX SUB RSP,0x20 MOV RAX,RDX MOV RBX,RDI CMP R9D,0x1 PUSH 0x14 POP R9 SBB R9D,0x0 MOV qword ptr [RSP + 0x10],R8 MOV qword ptr [RSP + 0x8],RCX AND dword ptr [RSP + 0x18],0x0 MOV qword ptr [RSP],RSI PUSH 0x3 POP RDX XOR ESI,ESI MOV RCX,RAX XOR R8D,R8D CALL 0x00131235 MOV RDI,RBX MOV RSI,RAX ADD RSP,0x20 POP RBX JMP 0x00131ded
void JS_NewUint8Array(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int param_6) { int8 uVar1; uVar1 = js_array_buffer_constructor3 (param_1,0,3,param_3,0,0x14 - (uint)(param_6 == 0),param_2,param_4,param_5,0); js_new_uint8array(param_1,uVar1); return; }
31,394
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>::get_binary() const
monkey531[P]llama/common/json.hpp
const binary_t& get_binary() const { if (!is_binary()) { JSON_THROW(type_error::create(302, detail::concat("type must be binary, but is ", type_name()), this)); } return *get_ptr<const binary_t*>(); }
O0
cpp
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>::get_binary() const: subq $0x58, %rsp movq %rdi, 0x50(%rsp) movq 0x50(%rsp), %rdi movq %rdi, 0x10(%rsp) callq 0xeec90 testb $0x1, %al jne 0x18c7f2 movb $0x1, 0x1b(%rsp) movl $0x20, %edi callq 0x5e6b0 movq 0x10(%rsp), %rdi movq %rax, 0x8(%rsp) callq 0xef030 movq %rax, 0x28(%rsp) leaq 0x945b9(%rip), %rsi # 0x220d23 leaq 0x30(%rsp), %rdi leaq 0x28(%rsp), %rdx callq 0x1238d0 jmp 0x18c77b movq 0x10(%rsp), %rcx movq 0x8(%rsp), %rdi movl $0x12e, %esi # imm = 0x12E leaq 0x30(%rsp), %rdx callq 0x123720 jmp 0x18c796 movq 0x8(%rsp), %rdi movb $0x0, 0x1b(%rsp) leaq 0x124891(%rip), %rsi # 0x2b1038 leaq -0x9d6ce(%rip), %rdx # 0xef0e0 callq 0x5eb30 jmp 0x18c80b movq %rax, %rcx movl %edx, %eax movq %rcx, 0x20(%rsp) movl %eax, 0x1c(%rsp) jmp 0x18c7dd movq %rax, %rcx movl %edx, %eax movq %rcx, 0x20(%rsp) movl %eax, 0x1c(%rsp) leaq 0x30(%rsp), %rdi callq 0x5f5d8 testb $0x1, 0x1b(%rsp) jne 0x18c7e6 jmp 0x18c7f0 movq 0x8(%rsp), %rdi callq 0x5efd0 jmp 0x18c801 movq 0x10(%rsp), %rdi callq 0x18cd40 addq $0x58, %rsp retq movq 0x20(%rsp), %rdi callq 0x5ebf0 nopl (%rax,%rax)
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10get_binaryEv: sub rsp, 58h mov qword ptr [rsp+58h+var_8], rdi; char mov rdi, qword ptr [rsp+58h+var_8] mov qword ptr [rsp+58h+var_48], rdi; int call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_binaryEv; 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>::is_binary(void) test al, 1 jnz loc_18C7F2 mov [rsp+58h+var_3D], 1 mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rdi, qword ptr [rsp+58h+var_48] mov [rsp+58h+var_50], rax; int call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; 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>::type_name(void) mov qword ptr [rsp+58h+var_30], rax; int lea rsi, aTypeMustBeBina; "type must be binary, but is " lea rdi, [rsp+58h+var_28] lea rdx, [rsp+58h+var_30] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&) jmp short $+2 loc_18C77B: mov rcx, qword ptr [rsp+58h+var_48] mov rdi, [rsp+58h+var_50]; int mov esi, 12Eh lea rdx, [rsp+58h+var_28] call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ jmp short $+2 loc_18C796: mov rdi, [rsp+58h+var_50]; void * mov [rsp+58h+var_3D], 0 lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail10type_errorD2Ev; void (*)(void *) call ___cxa_throw jmp short loc_18C80B mov rcx, rax mov eax, edx mov [rsp+arg_18], rcx mov [rsp+arg_14], eax jmp short loc_18C7DD mov rcx, rax mov eax, edx mov [rsp+arg_18], rcx mov [rsp+arg_14], eax lea rdi, [rsp+arg_28]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_18C7DD: test [rsp+arg_13], 1 jnz short loc_18C7E6 jmp short loc_18C7F0 loc_18C7E6: mov rdi, [rsp+arg_0]; void * call ___cxa_free_exception loc_18C7F0: jmp short loc_18C801 loc_18C7F2: mov rdi, qword ptr [rsp+58h+var_48] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE7get_ptrIPKNS0_27byte_container_with_subtypeISC_EETnNSt9enable_ifIXaasr3std10is_pointerIT_EE5valuesr3std8is_constINSt14remove_pointerISK_E4typeEEE5valueEiE4typeELi0EEEDTcldtclL_ZSt7declvalIRKSD_EDTcl9__declvalISK_ELi0EEEvEE12get_impl_ptrclsr3stdE7declvalISK_EEEEv add rsp, 58h retn loc_18C801: mov rdi, [rsp+arg_18] call __Unwind_Resume loc_18C80B: nop dword ptr [rax+rax+00h]
long long 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>::get_binary( _BYTE *a1) { nlohmann::json_abi_v3_11_3::detail::type_error *exception; // [rsp+8h] [rbp-50h] int v3[2]; // [rsp+28h] [rbp-30h] BYREF char v4[32]; // [rsp+30h] [rbp-28h] BYREF char v5[8]; // [rsp+50h] [rbp-8h] *(_QWORD *)v5 = a1; if ( !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>::is_binary(a1) ) { exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL); *(_QWORD *)v3 = 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>::type_name(a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>( (long long)v4, (long long)"type must be binary, but is ", (nlohmann::json_abi_v3_11_3::detail **)v3); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( exception, 302, (long long)v4, (long long)a1); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::type_error::~type_error); } return ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE7get_ptrIPKNS0_27byte_container_with_subtypeISC_EETnNSt9enable_ifIXaasr3std10is_pointerIT_EE5valuesr3std8is_constINSt14remove_pointerISK_E4typeEEE5valueEiE4typeELi0EEEDTcldtclL_ZSt7declvalIRKSD_EDTcl9__declvalISK_ELi0EEEvEE12get_impl_ptrclsr3stdE7declvalISK_EEEEv(a1); }
31,395
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>::get_binary() const
monkey531[P]llama/common/json.hpp
const binary_t& get_binary() const { if (!is_binary()) { JSON_THROW(type_error::create(302, detail::concat("type must be binary, but is ", type_name()), this)); } return *get_ptr<const binary_t*>(); }
O2
cpp
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>::get_binary() const: pushq %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %rdi, %r14 cmpb $0x8, (%rdi) jne 0x87381 movq 0x8(%r14), %rax addq $0x30, %rsp popq %rbx popq %r14 popq %rbp retq pushq $0x20 popq %rdi callq 0x24470 movq %rax, %rbx movq %r14, %rdi callq 0x537d6 leaq 0x8(%rsp), %rdx movq %rax, (%rdx) leaq 0x32f81(%rip), %rsi # 0xba324 leaq 0x10(%rsp), %rdi callq 0x67e01 movb $0x1, %bpl leaq 0x10(%rsp), %rdx movq %rbx, %rdi movl $0x12e, %esi # imm = 0x12E movq %r14, %rcx callq 0x67d14 xorl %ebp, %ebp leaq 0x7adf2(%rip), %rsi # 0x1021c0 leaq -0x3703f(%rip), %rdx # 0x50396 movq %rbx, %rdi callq 0x24f50 movq %rax, %r14 leaq 0x10(%rsp), %rdi callq 0x25258 testb %bpl, %bpl jne 0x873f4 jmp 0x873fc movq %rax, %r14 movq %rbx, %rdi callq 0x246b0 movq %r14, %rdi callq 0x24fe0
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10get_binaryEv: push rbp; char push r14; int push rbx; int sub rsp, 30h mov r14, rdi cmp byte ptr [rdi], 8 jnz short loc_87381 mov rax, [r14+8] add rsp, 30h pop rbx pop r14 pop rbp retn loc_87381: push 20h ; ' ' pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; 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>::type_name(void) lea rdx, [rsp+48h+var_40] mov [rdx], rax lea rsi, aTypeMustBeBina; "type must be binary, but is " lea rdi, [rsp+48h+var_38] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&) mov bpl, 1 lea rdx, [rsp+48h+var_38] mov rdi, rbx; this mov esi, 12Eh; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rdi, [rsp+48h+var_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_873F4 jmp short loc_873FC mov r14, rax loc_873F4: mov rdi, rbx; void * call ___cxa_free_exception loc_873FC: mov rdi, r14 call __Unwind_Resume
long long 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>::get_binary( long long a1) { nlohmann::json_abi_v3_11_3::detail::type_error *exception; // rbx const char *v3; // [rsp+8h] [rbp-40h] BYREF _BYTE v4[56]; // [rsp+10h] [rbp-38h] BYREF if ( *(_BYTE *)a1 != 8 ) { exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL); v3 = 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>::type_name((unsigned __int8 *)a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>( (long long)v4, (long long)"type must be binary, but is ", &v3); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( exception, 302, (long long)v4); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } return *(_QWORD *)(a1 + 8); }
get_binary: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x30 MOV R14,RDI CMP byte ptr [RDI],0x8 JNZ 0x00187381 MOV RAX,qword ptr [R14 + 0x8] ADD RSP,0x30 POP RBX POP R14 POP RBP RET LAB_00187381: PUSH 0x20 POP RDI CALL 0x00124470 MOV RBX,RAX MOV RDI,R14 CALL 0x001537d6 LEA RDX,[RSP + 0x8] MOV qword ptr [RDX],RAX LAB_0018739c: LEA RSI,[0x1ba324] LEA RDI,[RSP + 0x10] CALL 0x00167e01 MOV BPL,0x1 LAB_001873b0: LEA RDX,[RSP + 0x10] MOV RDI,RBX MOV ESI,0x12e MOV RCX,R14 CALL 0x00167d14 XOR EBP,EBP LEA RSI,[0x2021c0] LEA RDX,[0x150396] MOV RDI,RBX CALL 0x00124f50
/* 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>::get_binary() const */ int8 __thiscall 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> ::get_binary(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) { int8 uVar1; char *local_40; detail local_38 [32]; if (*this == (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> )0x8) { return *(int8 *)(this + 8); } uVar1 = __cxa_allocate_exception(0x20); local_40 = (char *)type_name(this); /* try { // try from 0018739c to 001873ac has its CatchHandler @ 001873f1 */ detail::concat<std::__cxx11::string,char_const(&)[29],char_const*> (local_38,"type must be binary, but is ",&local_40); /* try { // try from 001873b0 to 001873dc has its CatchHandler @ 001873dd */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar1,0x12e,local_38,this); /* WARNING: Subroutine does not return */ __cxa_throw(uVar1,&detail::type_error::typeinfo,detail::exception::~exception); }
31,396
ma_search_last
eloqsql/storage/maria/ma_search.c
int _ma_search_last(MARIA_HA *info, MARIA_KEYDEF *keyinfo, my_off_t pos) { uchar *end_of_page; MARIA_PAGE page; DBUG_ENTER("_ma_search_last"); if (pos == HA_OFFSET_ERROR) { my_errno=HA_ERR_KEY_NOT_FOUND; /* Didn't find key */ info->cur_row.lastpos= HA_OFFSET_ERROR; DBUG_RETURN(-1); } do { if (_ma_fetch_keypage(&page, info, keyinfo, pos, PAGECACHE_LOCK_LEFT_UNLOCKED, DFLT_INIT_HITS, info->keyread_buff, 0)) { info->cur_row.lastpos= HA_OFFSET_ERROR; DBUG_RETURN(-1); } end_of_page= page.buff + page.size; } while ((pos= _ma_kpos(page.node, end_of_page)) != HA_OFFSET_ERROR); if (!_ma_get_last_key(&info->last_key, &page, end_of_page)) DBUG_RETURN(-1); info->cur_row.lastpos= _ma_row_pos_from_key(&info->last_key); info->cur_row.trid= _ma_trid_from_key(&info->last_key); info->int_keypos= info->int_maxpos= end_of_page; info->int_nod_flag= page.node; info->int_keytree_version= keyinfo->version; info->last_search_keypage= info->last_keypage; info->page_changed=info->keyread_buff_used=0; DBUG_PRINT("exit",("found key at %lu",(ulong) info->cur_row.lastpos)); DBUG_RETURN(0); }
O3
c
ma_search_last: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x40, %rsp movq %rdi, %rbx cmpq $-0x1, %rdx je 0x59221 movq %rdx, %rax movq %rsi, %r14 leaq -0x58(%rbp), %r12 movq %r12, %rdi movq %rbx, %rsi movq %r14, %rdx movq %rax, %rcx xorl %r8d, %r8d movl $0x3, %r9d pushq $0x0 pushq 0x380(%rbx) callq 0x59dda addq $0x10, %rsp testb %al, %al jne 0x5922c movl -0x38(%rbp), %r15d movl -0x30(%rbp), %edi addq -0x48(%rbp), %r15 movq %r15, %rsi callq 0x57deb cmpq $-0x1, %rax jne 0x59162 leaq 0x200(%rbx), %r12 leaq -0x58(%rbp), %rsi movq %r12, %rdi movq %r15, %rdx callq 0x58b34 testq %rax, %rax je 0x59237 movq %r12, %rdi callq 0x57f50 movq %rax, 0x98(%rbx) movq %r12, %rdi callq 0x58008 movq %rax, 0xc0(%rbx) movq %r15, 0x3b8(%rbx) movq %r15, 0x3b0(%rbx) movl -0x30(%rbp), %eax movl %eax, 0x3d0(%rbx) movl 0xb8(%r14), %eax movl %eax, 0x3d4(%rbx) movq 0x440(%rbx), %rax movq %rax, 0x448(%rbx) movw $0x0, 0x684(%rbx) xorl %eax, %eax jmp 0x5923c callq 0xa29fe movl $0x78, (%rax) movq $-0x1, 0x98(%rbx) movl $0xffffffff, %eax # imm = 0xFFFFFFFF addq $0x40, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
_ma_search_last: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 40h mov rbx, rdi cmp rdx, 0FFFFFFFFFFFFFFFFh jz loc_59221 mov rax, rdx mov r14, rsi lea r12, [rbp+var_58] loc_59162: mov rdi, r12 mov rsi, rbx mov rdx, r14 mov rcx, rax xor r8d, r8d mov r9d, 3 push 0 push qword ptr [rbx+380h] call _ma_fetch_keypage add rsp, 10h test al, al jnz loc_5922C mov r15d, [rbp+var_38] mov edi, [rbp+var_30] add r15, [rbp+var_48] mov rsi, r15 call _ma_kpos cmp rax, 0FFFFFFFFFFFFFFFFh jnz short loc_59162 lea r12, [rbx+200h] lea rsi, [rbp+var_58] mov rdi, r12 mov rdx, r15 call _ma_get_last_key test rax, rax jz short loc_59237 mov rdi, r12 call _ma_row_pos_from_key mov [rbx+98h], rax mov rdi, r12 call _ma_trid_from_key mov [rbx+0C0h], rax mov [rbx+3B8h], r15 mov [rbx+3B0h], r15 mov eax, [rbp+var_30] mov [rbx+3D0h], eax mov eax, [r14+0B8h] mov [rbx+3D4h], eax mov rax, [rbx+440h] mov [rbx+448h], rax mov word ptr [rbx+684h], 0 xor eax, eax jmp short loc_5923C loc_59221: call _my_thread_var mov dword ptr [rax], 78h ; 'x' loc_5922C: mov qword ptr [rbx+98h], 0FFFFFFFFFFFFFFFFh loc_59237: mov eax, 0FFFFFFFFh loc_5923C: add rsp, 40h pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long ma_search_last(long long a1, long long a2, long long a3) { long long v3; // rax unsigned long long v4; // r15 _BYTE v6[16]; // [rsp+8h] [rbp-58h] BYREF long long v7; // [rsp+18h] [rbp-48h] unsigned int v8; // [rsp+28h] [rbp-38h] unsigned int v9; // [rsp+30h] [rbp-30h] if ( a3 == -1 ) { *(_DWORD *)my_thread_var(a1, (const char *)a2) = 120; } else { LODWORD(v3) = a3; while ( !(unsigned __int8)ma_fetch_keypage((unsigned int)v6, a1, a2, v3, 0, 3, *(_QWORD *)(a1 + 896)) ) { v4 = v7 + v8; v3 = ma_kpos(v9, v4); if ( v3 == -1 ) { if ( !ma_get_last_key(a1 + 512, (long long)v6, v4) ) return 0xFFFFFFFFLL; *(_QWORD *)(a1 + 152) = ma_row_pos_from_key((long long *)(a1 + 512)); *(_QWORD *)(a1 + 192) = ma_trid_from_key(a1 + 512); *(_QWORD *)(a1 + 952) = v4; *(_QWORD *)(a1 + 944) = v4; *(_DWORD *)(a1 + 976) = v9; *(_DWORD *)(a1 + 980) = *(_DWORD *)(a2 + 184); *(_QWORD *)(a1 + 1096) = *(_QWORD *)(a1 + 1088); *(_WORD *)(a1 + 1668) = 0; return 0LL; } } } *(_QWORD *)(a1 + 152) = -1LL; return 0xFFFFFFFFLL; }
_ma_search_last: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x40 MOV RBX,RDI CMP RDX,-0x1 JZ 0x00159221 MOV RAX,RDX MOV R14,RSI LEA R12,[RBP + -0x58] LAB_00159162: MOV RDI,R12 MOV RSI,RBX MOV RDX,R14 MOV RCX,RAX XOR R8D,R8D MOV R9D,0x3 PUSH 0x0 PUSH qword ptr [RBX + 0x380] CALL 0x00159dda ADD RSP,0x10 TEST AL,AL JNZ 0x0015922c MOV R15D,dword ptr [RBP + -0x38] MOV EDI,dword ptr [RBP + -0x30] ADD R15,qword ptr [RBP + -0x48] MOV RSI,R15 CALL 0x00157deb CMP RAX,-0x1 JNZ 0x00159162 LEA R12,[RBX + 0x200] LEA RSI,[RBP + -0x58] MOV RDI,R12 MOV RDX,R15 CALL 0x00158b34 TEST RAX,RAX JZ 0x00159237 MOV RDI,R12 CALL 0x00157f50 MOV qword ptr [RBX + 0x98],RAX MOV RDI,R12 CALL 0x00158008 MOV qword ptr [RBX + 0xc0],RAX MOV qword ptr [RBX + 0x3b8],R15 MOV qword ptr [RBX + 0x3b0],R15 MOV EAX,dword ptr [RBP + -0x30] MOV dword ptr [RBX + 0x3d0],EAX MOV EAX,dword ptr [R14 + 0xb8] MOV dword ptr [RBX + 0x3d4],EAX MOV RAX,qword ptr [RBX + 0x440] MOV qword ptr [RBX + 0x448],RAX MOV word ptr [RBX + 0x684],0x0 XOR EAX,EAX JMP 0x0015923c LAB_00159221: CALL 0x001a29fe MOV dword ptr [RAX],0x78 LAB_0015922c: MOV qword ptr [RBX + 0x98],-0x1 LAB_00159237: MOV EAX,0xffffffff LAB_0015923c: ADD RSP,0x40 POP RBX POP R12 POP R14 POP R15 POP RBP RET
int8 _ma_search_last(long param_1,long param_2,long param_3) { long lVar1; char cVar2; long lVar3; int8 uVar4; int4 *puVar5; long lVar6; int1 local_60 [16]; long local_50; uint local_40; int4 local_38; if (param_3 == -1) { puVar5 = (int4 *)_my_thread_var(); *puVar5 = 0x78; LAB_0015922c: *(int8 *)(param_1 + 0x98) = 0xffffffffffffffff; } else { do { cVar2 = _ma_fetch_keypage(local_60,param_1,param_2,param_3,0,3, *(int8 *)(param_1 + 0x380),0); if (cVar2 != '\0') goto LAB_0015922c; lVar6 = (ulong)local_40 + local_50; param_3 = _ma_kpos(local_38,lVar6); } while (param_3 != -1); lVar1 = param_1 + 0x200; lVar3 = _ma_get_last_key(lVar1,local_60,lVar6); if (lVar3 != 0) { uVar4 = _ma_row_pos_from_key(lVar1); *(int8 *)(param_1 + 0x98) = uVar4; uVar4 = _ma_trid_from_key(lVar1); *(int8 *)(param_1 + 0xc0) = uVar4; *(long *)(param_1 + 0x3b8) = lVar6; *(long *)(param_1 + 0x3b0) = lVar6; *(int4 *)(param_1 + 0x3d0) = local_38; *(int4 *)(param_1 + 0x3d4) = *(int4 *)(param_2 + 0xb8); *(int8 *)(param_1 + 0x448) = *(int8 *)(param_1 + 0x440); *(int2 *)(param_1 + 0x684) = 0; return 0; } } return 0xffffffff; }
31,397
trnman_new_trn
eloqsql/storage/maria/trnman.c
TRN *trnman_new_trn(WT_THD *wt) { int res; TRN *trn; union { TRN *trn; void *v; } tmp; DBUG_ENTER("trnman_new_trn"); /* we have a mutex, to do simple things under it - allocate a TRN, increment trnman_active_transactions, set trn->min_read_from. Note that all the above is fast. generating short_id may be slow, as it involves scanning a large array - so it's done outside of the mutex. */ DBUG_PRINT("info", ("mysql_mutex_lock LOCK_trn_list")); mysql_mutex_lock(&LOCK_trn_list); /* Allocating a new TRN structure */ tmp.trn= pool; /* Popping an unused TRN from the pool (ABA isn't possible, we're behind a mutex */ while (tmp.trn && !my_atomic_casptr((void **)(char*) &pool, &tmp.v, (void *)tmp.trn->next)) /* no-op */; /* Nothing in the pool ? Allocate a new one */ if (!(trn= tmp.trn)) { /* trn should be completely initialized at create time to allow one to keep a known state on it. (Like redo_lns, which is assumed to be 0 at start of row handling and reset to zero before end of row handling) */ trn= (TRN *)my_malloc(PSI_INSTRUMENT_ME, sizeof(TRN), MYF(MY_WME | MY_ZEROFILL)); if (unlikely(!trn)) { DBUG_PRINT("info", ("mysql_mutex_unlock LOCK_trn_list")); mysql_mutex_unlock(&LOCK_trn_list); return 0; } trnman_allocated_transactions++; mysql_mutex_init(key_TRN_state_lock, &trn->state_lock, MY_MUTEX_INIT_FAST); } trn->wt= wt; trn->pins= lf_hash_get_pins(&trid_to_trn); if (!trn->pins) { trnman_free_trn(trn); mysql_mutex_unlock(&LOCK_trn_list); return 0; } trnman_active_transactions++; trn->min_read_from= active_list_min.next->trid; trn->trid= new_trid(); trn->next= &active_list_max; trn->prev= active_list_max.prev; active_list_max.prev= trn->prev->next= trn; trid_min_read_from= active_list_min.next->min_read_from; DBUG_PRINT("info", ("mysql_mutex_unlock LOCK_trn_list")); mysql_mutex_unlock(&LOCK_trn_list); if (unlikely(!trn->min_read_from)) { /* We are the only transaction. Set min_read_from so that we can read our own rows */ trn->min_read_from= trn->trid + 1; } /* no other transaction can read changes done by this one */ trn->commit_trid= MAX_TRID; trn->rec_lsn= trn->undo_lsn= trn->first_undo_lsn= 0; trn->used_tables= 0; trn->used_instances= 0; trn->locked_tables= 0; trn->flags= 0; /* only after the following function TRN is considered initialized, so it must be done the last */ mysql_mutex_lock(&trn->state_lock); trn->short_id= get_short_trid(trn); mysql_mutex_unlock(&trn->state_lock); res= lf_hash_insert(&trid_to_trn, trn->pins, &trn); DBUG_ASSERT(res <= 0); if (res) { trnman_end_trn(trn, 0); return 0; } DBUG_PRINT("exit", ("trn: %p trid: 0x%lu min_read_from: 0x%lu", trn, (ulong) trn->trid, (ulong) trn->min_read_from)); DBUG_RETURN(trn); }
O0
c
trnman_new_trn: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x10(%rbp) jmp 0x74dae leaq 0x40e43b(%rip), %rdi # 0x4831f0 leaq 0xe5d58(%rip), %rsi # 0x15ab14 movl $0x128, %edx # imm = 0x128 callq 0x750e0 movq 0x40e34b(%rip), %rax # 0x483118 movq %rax, -0x28(%rbp) xorl %eax, %eax cmpq $0x0, -0x28(%rbp) movb %al, -0x32(%rbp) je 0x74e23 movq -0x28(%rbp), %rax movq 0x68(%rax), %rax movq %rax, -0x30(%rbp) movq -0x28(%rbp), %rax movq -0x30(%rbp), %rcx lock cmpxchgq %rcx, 0x40e31e(%rip) # 0x483118 movq %rax, %rcx sete %al movb %al, -0x41(%rbp) movq %rcx, -0x40(%rbp) testb $0x1, %al jne 0x74e13 movq -0x40(%rbp), %rax movq %rax, -0x28(%rbp) movb -0x41(%rbp), %al andb $0x1, %al movb %al, -0x31(%rbp) movb -0x31(%rbp), %al xorb $-0x1, %al movb %al, -0x32(%rbp) movb -0x32(%rbp), %al testb $0x1, %al jne 0x74e2c jmp 0x74e2e jmp 0x74dd1 movq -0x28(%rbp), %rax movq %rax, -0x20(%rbp) cmpq $0x0, %rax jne 0x74ec0 xorl %edi, %edi movl $0xb0, %esi movl $0x30, %edx callq 0xf9ff0 movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) setne %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x74e94 jmp 0x74e79 jmp 0x74e7b leaq 0x40e36e(%rip), %rdi # 0x4831f0 callq 0x75150 movq $0x0, -0x8(%rbp) jmp 0x750d0 movl 0x40e276(%rip), %eax # 0x483110 addl $0x1, %eax movl %eax, 0x40e26d(%rip) # 0x483110 leaq 0x40defa(%rip), %rax # 0x482da4 movl (%rax), %edi movq -0x20(%rbp), %rsi addq $0x10, %rsi leaq 0xc19865(%rip), %rdx # 0xc8e720 callq 0x74c20 movq -0x10(%rbp), %rcx movq -0x20(%rbp), %rax movq %rcx, 0x8(%rax) leaq 0x40e255(%rip), %rdi # 0x483128 addq $0x28, %rdi callq 0x103420 movq %rax, %rcx movq -0x20(%rbp), %rax movq %rcx, (%rax) movq -0x20(%rbp), %rax cmpq $0x0, (%rax) jne 0x74f12 movq -0x20(%rbp), %rdi callq 0x751b0 leaq 0x40e2f0(%rip), %rdi # 0x4831f0 callq 0x75150 movq $0x0, -0x8(%rbp) jmp 0x750d0 movl 0x40e1f0(%rip), %eax # 0x483108 addl $0x1, %eax movl %eax, 0x40e1e7(%rip) # 0x483108 movq 0x40df88(%rip), %rax # 0x482eb0 movq 0x78(%rax), %rcx movq -0x20(%rbp), %rax movq %rcx, 0x80(%rax) callq 0x761f0 movq %rax, %rcx movq -0x20(%rbp), %rax movq %rcx, 0x78(%rax) movq -0x20(%rbp), %rax leaq 0x40dfa6(%rip), %rcx # 0x482ef8 movq %rcx, 0x68(%rax) movq 0x40e00b(%rip), %rcx # 0x482f68 movq -0x20(%rbp), %rax movq %rcx, 0x70(%rax) movq -0x20(%rbp), %rax movq -0x20(%rbp), %rcx movq 0x70(%rcx), %rcx movq %rax, 0x68(%rcx) movq %rax, 0x40dfec(%rip) # 0x482f68 movq 0x40df2d(%rip), %rax # 0x482eb0 movq 0x80(%rax), %rax movq %rax, 0x253607(%rip) # 0x2c8598 jmp 0x74f93 leaq 0x40e256(%rip), %rdi # 0x4831f0 callq 0x75150 movq -0x20(%rbp), %rax cmpq $0x0, 0x80(%rax) setne %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x74fdf movq -0x20(%rbp), %rax movq 0x78(%rax), %rcx addq $0x1, %rcx movq -0x20(%rbp), %rax movq %rcx, 0x80(%rax) movq -0x20(%rbp), %rax movq $-0x1, 0x88(%rax) movq -0x20(%rbp), %rax movq $0x0, 0xa0(%rax) movq -0x20(%rbp), %rax movq $0x0, 0x98(%rax) movq -0x20(%rbp), %rax movq $0x0, 0x90(%rax) movq -0x20(%rbp), %rax movq $0x0, 0x58(%rax) movq -0x20(%rbp), %rax movq $0x0, 0x60(%rax) movq -0x20(%rbp), %rax movl $0x0, 0xa8(%rax) movq -0x20(%rbp), %rax movw $0x0, 0xae(%rax) movq -0x20(%rbp), %rdi addq $0x10, %rdi leaq 0xe5ab7(%rip), %rsi # 0x15ab14 movl $0x173, %edx # imm = 0x173 callq 0x750e0 movq -0x20(%rbp), %rdi callq 0x75260 movw %ax, %cx movq -0x20(%rbp), %rax movw %cx, 0xac(%rax) movq -0x20(%rbp), %rdi addq $0x10, %rdi callq 0x75150 movq -0x20(%rbp), %rax movq (%rax), %rsi leaq 0x40e08f(%rip), %rdi # 0x483128 leaq -0x20(%rbp), %rdx callq 0x1047b0 movl %eax, -0x14(%rbp) jmp 0x750a7 cmpl $0x0, -0x14(%rbp) je 0x750c2 movq -0x20(%rbp), %rdi xorl %esi, %esi callq 0x75340 movq $0x0, -0x8(%rbp) jmp 0x750d0 jmp 0x750c4 jmp 0x750c6 jmp 0x750c8 movq -0x20(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x50, %rsp popq %rbp retq nopw (%rax,%rax)
trnman_new_trn: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_10], rdi jmp short $+2 loc_74DAE: lea rdi, LOCK_trn_list lea rsi, aWorkspaceLlm4b_16; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 128h call inline_mysql_mutex_lock_10 mov rax, cs:pool mov [rbp+var_28], rax loc_74DD1: xor eax, eax cmp [rbp+var_28], 0 mov [rbp+var_32], al jz short loc_74E23 mov rax, [rbp+var_28] mov rax, [rax+68h] mov [rbp+var_30], rax mov rax, [rbp+var_28] mov rcx, [rbp+var_30] lock cmpxchg cs:pool, rcx mov rcx, rax setz al mov [rbp+var_41], al mov [rbp+var_40], rcx test al, 1 jnz short loc_74E13 mov rax, [rbp+var_40] mov [rbp+var_28], rax loc_74E13: mov al, [rbp+var_41] and al, 1 mov [rbp+var_31], al mov al, [rbp+var_31] xor al, 0FFh mov [rbp+var_32], al loc_74E23: mov al, [rbp+var_32] test al, 1 jnz short loc_74E2C jmp short loc_74E2E loc_74E2C: jmp short loc_74DD1 loc_74E2E: mov rax, [rbp+var_28] mov [rbp+var_20], rax cmp rax, 0 jnz loc_74EC0 xor edi, edi mov esi, 0B0h mov edx, 30h ; '0' call my_malloc mov [rbp+var_20], rax cmp [rbp+var_20], 0 setnz al xor al, 0FFh and al, 1 movzx eax, al cmp eax, 0 setnz al and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_74E94 jmp short $+2 loc_74E79: jmp short $+2 loc_74E7B: lea rdi, LOCK_trn_list call inline_mysql_mutex_unlock_11 mov [rbp+var_8], 0 jmp loc_750D0 loc_74E94: mov eax, cs:trnman_allocated_transactions add eax, 1 mov cs:trnman_allocated_transactions, eax lea rax, key_TRN_state_lock mov edi, [rax] mov rsi, [rbp+var_20] add rsi, 10h lea rdx, my_fast_mutexattr call inline_mysql_mutex_init_2 loc_74EC0: mov rcx, [rbp+var_10] mov rax, [rbp+var_20] mov [rax+8], rcx lea rdi, trid_to_trn add rdi, 28h ; '(' call lf_pinbox_get_pins mov rcx, rax mov rax, [rbp+var_20] mov [rax], rcx mov rax, [rbp+var_20] cmp qword ptr [rax], 0 jnz short loc_74F12 mov rdi, [rbp+var_20] call trnman_free_trn lea rdi, LOCK_trn_list call inline_mysql_mutex_unlock_11 mov [rbp+var_8], 0 jmp loc_750D0 loc_74F12: mov eax, cs:trnman_active_transactions add eax, 1 mov cs:trnman_active_transactions, eax mov rax, cs:qword_482EB0 mov rcx, [rax+78h] mov rax, [rbp+var_20] mov [rax+80h], rcx call new_trid mov rcx, rax mov rax, [rbp+var_20] mov [rax+78h], rcx mov rax, [rbp+var_20] lea rcx, active_list_max mov [rax+68h], rcx mov rcx, cs:qword_482F68 mov rax, [rbp+var_20] mov [rax+70h], rcx mov rax, [rbp+var_20] mov rcx, [rbp+var_20] mov rcx, [rcx+70h] mov [rcx+68h], rax mov cs:qword_482F68, rax mov rax, cs:qword_482EB0 mov rax, [rax+80h] mov cs:trid_min_read_from, rax jmp short $+2 loc_74F93: lea rdi, LOCK_trn_list call inline_mysql_mutex_unlock_11 mov rax, [rbp+var_20] cmp qword ptr [rax+80h], 0 setnz al xor al, 0FFh and al, 1 movzx eax, al cmp eax, 0 setnz al and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_74FDF mov rax, [rbp+var_20] mov rcx, [rax+78h] add rcx, 1 mov rax, [rbp+var_20] mov [rax+80h], rcx loc_74FDF: mov rax, [rbp+var_20] mov qword ptr [rax+88h], 0FFFFFFFFFFFFFFFFh mov rax, [rbp+var_20] mov qword ptr [rax+0A0h], 0 mov rax, [rbp+var_20] mov qword ptr [rax+98h], 0 mov rax, [rbp+var_20] mov qword ptr [rax+90h], 0 mov rax, [rbp+var_20] mov qword ptr [rax+58h], 0 mov rax, [rbp+var_20] mov qword ptr [rax+60h], 0 mov rax, [rbp+var_20] mov dword ptr [rax+0A8h], 0 mov rax, [rbp+var_20] mov word ptr [rax+0AEh], 0 mov rdi, [rbp+var_20] add rdi, 10h lea rsi, aWorkspaceLlm4b_16; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 173h call inline_mysql_mutex_lock_10 mov rdi, [rbp+var_20] call get_short_trid mov cx, ax mov rax, [rbp+var_20] mov [rax+0ACh], cx mov rdi, [rbp+var_20] add rdi, 10h call inline_mysql_mutex_unlock_11 mov rax, [rbp+var_20] mov rsi, [rax] lea rdi, trid_to_trn lea rdx, [rbp+var_20] call lf_hash_insert mov [rbp+var_14], eax jmp short $+2 loc_750A7: cmp [rbp+var_14], 0 jz short loc_750C2 mov rdi, [rbp+var_20] xor esi, esi call trnman_end_trn mov [rbp+var_8], 0 jmp short loc_750D0 loc_750C2: jmp short $+2 loc_750C4: jmp short $+2 loc_750C6: jmp short $+2 loc_750C8: mov rax, [rbp+var_20] mov [rbp+var_8], rax loc_750D0: mov rax, [rbp+var_8] add rsp, 50h pop rbp retn
long long trnman_new_trn(long long a1) { signed long long v1; // rcx long long v2; // rax bool v4; // [rsp+Fh] [rbp-41h] char v5; // [rsp+1Eh] [rbp-32h] signed long long v6; // [rsp+28h] [rbp-28h] long long v7; // [rsp+30h] [rbp-20h] BYREF long long v9; // [rsp+40h] [rbp-10h] v9 = a1; inline_mysql_mutex_lock_10(&LOCK_trn_list, "/workspace/llm4binary/github2025/eloqsql/storage/maria/trnman.c", 296LL); v6 = pool; do { v5 = 0; if ( v6 ) { v1 = _InterlockedCompareExchange64(&pool, *(_QWORD *)(v6 + 104), v6); v4 = v6 == v1; if ( v6 != v1 ) v6 = v1; v5 = ~v4; } } while ( (v5 & 1) != 0 ); v7 = v6; if ( !v6 ) { v7 = my_malloc(0LL, 176LL, 48LL); if ( !v7 ) { inline_mysql_mutex_unlock_11(&LOCK_trn_list); return 0LL; } ++trnman_allocated_transactions; inline_mysql_mutex_init_2(key_TRN_state_lock, (_QWORD *)(v7 + 16), (long long)&my_fast_mutexattr); } *(_QWORD *)(v7 + 8) = v9; *(_QWORD *)v7 = lf_pinbox_get_pins((char *)&trid_to_trn + 40); if ( *(_QWORD *)v7 ) { ++trnman_active_transactions; *(_QWORD *)(v7 + 128) = *(_QWORD *)(qword_482EB0 + 120); *(_QWORD *)(v7 + 120) = new_trid(); *(_QWORD *)(v7 + 104) = &active_list_max; *(_QWORD *)(v7 + 112) = qword_482F68; v2 = v7; *(_QWORD *)(*(_QWORD *)(v7 + 112) + 104LL) = v7; qword_482F68 = v2; trid_min_read_from = *(_QWORD *)(qword_482EB0 + 128); inline_mysql_mutex_unlock_11(&LOCK_trn_list); if ( !*(_QWORD *)(v7 + 128) ) *(_QWORD *)(v7 + 128) = *(_QWORD *)(v7 + 120) + 1LL; *(_QWORD *)(v7 + 136) = -1LL; *(_QWORD *)(v7 + 160) = 0LL; *(_QWORD *)(v7 + 152) = 0LL; *(_QWORD *)(v7 + 144) = 0LL; *(_QWORD *)(v7 + 88) = 0LL; *(_QWORD *)(v7 + 96) = 0LL; *(_DWORD *)(v7 + 168) = 0; *(_WORD *)(v7 + 174) = 0; inline_mysql_mutex_lock_10(v7 + 16, "/workspace/llm4binary/github2025/eloqsql/storage/maria/trnman.c", 371LL); *(_WORD *)(v7 + 172) = get_short_trid(v7); inline_mysql_mutex_unlock_11(v7 + 16); if ( (unsigned int)lf_hash_insert(&trid_to_trn, *(_QWORD *)v7, &v7) ) { trnman_end_trn(v7, 0LL); return 0LL; } else { return v7; } } else { trnman_free_trn(v7); inline_mysql_mutex_unlock_11(&LOCK_trn_list); return 0LL; } }
trnman_new_trn: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x10],RDI JMP 0x00174dae LAB_00174dae: LEA RDI,[0x5831f0] LEA RSI,[0x25ab14] MOV EDX,0x128 CALL 0x001750e0 MOV RAX,qword ptr [0x00583118] MOV qword ptr [RBP + -0x28],RAX LAB_00174dd1: XOR EAX,EAX CMP qword ptr [RBP + -0x28],0x0 MOV byte ptr [RBP + -0x32],AL JZ 0x00174e23 MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX + 0x68] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x30] CMPXCHG.LOCK qword ptr [0x00583118],RCX MOV RCX,RAX SETZ AL MOV byte ptr [RBP + -0x41],AL MOV qword ptr [RBP + -0x40],RCX TEST AL,0x1 JNZ 0x00174e13 MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x28],RAX LAB_00174e13: MOV AL,byte ptr [RBP + -0x41] AND AL,0x1 MOV byte ptr [RBP + -0x31],AL MOV AL,byte ptr [RBP + -0x31] XOR AL,0xff MOV byte ptr [RBP + -0x32],AL LAB_00174e23: MOV AL,byte ptr [RBP + -0x32] TEST AL,0x1 JNZ 0x00174e2c JMP 0x00174e2e LAB_00174e2c: JMP 0x00174dd1 LAB_00174e2e: MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x20],RAX CMP RAX,0x0 JNZ 0x00174ec0 XOR EDI,EDI MOV ESI,0xb0 MOV EDX,0x30 CALL 0x001f9ff0 MOV qword ptr [RBP + -0x20],RAX CMP qword ptr [RBP + -0x20],0x0 SETNZ AL XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x00174e94 JMP 0x00174e79 LAB_00174e79: JMP 0x00174e7b LAB_00174e7b: LEA RDI,[0x5831f0] CALL 0x00175150 MOV qword ptr [RBP + -0x8],0x0 JMP 0x001750d0 LAB_00174e94: MOV EAX,dword ptr [0x00583110] ADD EAX,0x1 MOV dword ptr [0x00583110],EAX LEA RAX,[0x582da4] MOV EDI,dword ptr [RAX] MOV RSI,qword ptr [RBP + -0x20] ADD RSI,0x10 LEA RDX,[0xd8e720] CALL 0x00174c20 LAB_00174ec0: MOV RCX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x8],RCX LEA RDI,[0x583128] ADD RDI,0x28 CALL 0x00203420 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x20] CMP qword ptr [RAX],0x0 JNZ 0x00174f12 MOV RDI,qword ptr [RBP + -0x20] CALL 0x001751b0 LEA RDI,[0x5831f0] CALL 0x00175150 MOV qword ptr [RBP + -0x8],0x0 JMP 0x001750d0 LAB_00174f12: MOV EAX,dword ptr [0x00583108] ADD EAX,0x1 MOV dword ptr [0x00583108],EAX MOV RAX,qword ptr [0x00582eb0] MOV RCX,qword ptr [RAX + 0x78] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x80],RCX CALL 0x001761f0 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x78],RCX MOV RAX,qword ptr [RBP + -0x20] LEA RCX,[0x582ef8] MOV qword ptr [RAX + 0x68],RCX MOV RCX,qword ptr [0x00582f68] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x70],RCX MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RCX + 0x70] MOV qword ptr [RCX + 0x68],RAX MOV qword ptr [0x00582f68],RAX MOV RAX,qword ptr [0x00582eb0] MOV RAX,qword ptr [RAX + 0x80] MOV qword ptr [0x003c8598],RAX JMP 0x00174f93 LAB_00174f93: LEA RDI,[0x5831f0] CALL 0x00175150 MOV RAX,qword ptr [RBP + -0x20] CMP qword ptr [RAX + 0x80],0x0 SETNZ AL XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x00174fdf MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RAX + 0x78] ADD RCX,0x1 MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x80],RCX LAB_00174fdf: MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x88],-0x1 MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0xa0],0x0 MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x98],0x0 MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x90],0x0 MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x58],0x0 MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x60],0x0 MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0xa8],0x0 MOV RAX,qword ptr [RBP + -0x20] MOV word ptr [RAX + 0xae],0x0 MOV RDI,qword ptr [RBP + -0x20] ADD RDI,0x10 LEA RSI,[0x25ab14] MOV EDX,0x173 CALL 0x001750e0 MOV RDI,qword ptr [RBP + -0x20] CALL 0x00175260 MOV CX,AX MOV RAX,qword ptr [RBP + -0x20] MOV word ptr [RAX + 0xac],CX MOV RDI,qword ptr [RBP + -0x20] ADD RDI,0x10 CALL 0x00175150 MOV RAX,qword ptr [RBP + -0x20] MOV RSI,qword ptr [RAX] LEA RDI,[0x583128] LEA RDX,[RBP + -0x20] CALL 0x002047b0 MOV dword ptr [RBP + -0x14],EAX JMP 0x001750a7 LAB_001750a7: CMP dword ptr [RBP + -0x14],0x0 JZ 0x001750c2 MOV RDI,qword ptr [RBP + -0x20] XOR ESI,ESI CALL 0x00175340 MOV qword ptr [RBP + -0x8],0x0 JMP 0x001750d0 LAB_001750c2: JMP 0x001750c4 LAB_001750c4: JMP 0x001750c6 LAB_001750c6: JMP 0x001750c8 LAB_001750c8: MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x8],RAX LAB_001750d0: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x50 POP RBP RET
long * trnman_new_trn(long param_1) { long *plVar1; int2 uVar2; long *plVar3; long lVar4; bool bVar5; long *local_30; long *local_28; int local_1c; long local_18; long *local_10; local_18 = param_1; inline_mysql_mutex_lock (LOCK_trn_list,"/workspace/llm4binary/github2025/eloqsql/storage/maria/trnman.c",0x128); local_30 = pool; do { bVar5 = false; if (local_30 != (long *)0x0) { LOCK(); bVar5 = local_30 != pool; plVar3 = local_30; plVar1 = (long *)local_30[0xd]; if (bVar5) { plVar3 = pool; plVar1 = pool; } pool = plVar1; UNLOCK(); if (bVar5) { local_30 = plVar3; } } } while (bVar5); local_28 = local_30; if (local_30 == (long *)0x0) { local_28 = (long *)my_malloc(0,0xb0,0x30); if (local_28 == (long *)0x0) { inline_mysql_mutex_unlock(LOCK_trn_list); return (long *)0x0; } trnman_allocated_transactions = trnman_allocated_transactions + 1; inline_mysql_mutex_init(key_TRN_state_lock,local_28 + 2,&my_fast_mutexattr); } local_28[1] = local_18; lVar4 = lf_pinbox_get_pins(0x583150); *local_28 = lVar4; if (*local_28 == 0) { trnman_free_trn(local_28); inline_mysql_mutex_unlock(LOCK_trn_list); local_10 = (long *)0x0; } else { trnman_active_transactions = trnman_active_transactions + 1; local_28[0x10] = *(long *)(active_list_min._104_8_ + 0x78); lVar4 = new_trid(); local_28[0xf] = lVar4; local_28[0xd] = (long)active_list_max; local_28[0xe] = active_list_max._112_8_; *(long **)(local_28[0xe] + 0x68) = local_28; active_list_max._112_8_ = local_28; trid_min_read_from = *(int8 *)(active_list_min._104_8_ + 0x80); inline_mysql_mutex_unlock(LOCK_trn_list); if (local_28[0x10] == 0) { local_28[0x10] = local_28[0xf] + 1; } local_28[0x11] = -1; local_28[0x14] = 0; local_28[0x13] = 0; local_28[0x12] = 0; local_28[0xb] = 0; local_28[0xc] = 0; *(int4 *)(local_28 + 0x15) = 0; *(int2 *)((long)local_28 + 0xae) = 0; inline_mysql_mutex_lock (local_28 + 2,"/workspace/llm4binary/github2025/eloqsql/storage/maria/trnman.c",0x173) ; uVar2 = get_short_trid(local_28); *(int2 *)((long)local_28 + 0xac) = uVar2; inline_mysql_mutex_unlock(local_28 + 2); local_1c = lf_hash_insert(trid_to_trn,*local_28,&local_28); if (local_1c == 0) { local_10 = local_28; } else { trnman_end_trn(local_28,0); local_10 = (long *)0x0; } } return local_10; }
31,398
alaya::SQ8SpaceTest_QueryComputerWithId_Test::TestBody()
AlayaLite/tests/space/sq8_space_test.cpp
TEST_F(SQ8SpaceTest, QueryComputerWithId) { float data[8] = {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0}; space_->fit(data, 2); uint32_t id = 0; auto query_computer = space_->get_query_computer(id); EXPECT_GE(query_computer(1), 64); }
O0
cpp
alaya::SQ8SpaceTest_QueryComputerWithId_Test::TestBody(): subq $0xa8, %rsp movq %rdi, 0xa0(%rsp) movq 0xa0(%rsp), %rdi movaps 0xe0512(%rip), %xmm0 # 0x116360 movaps %xmm0, 0x90(%rsp) movaps 0xe04f3(%rip), %xmm0 # 0x116350 movaps %xmm0, 0x80(%rsp) addq $0x10, %rdi movq %rdi, 0x18(%rsp) callq 0x369e0 movq %rax, %rdi leaq 0x80(%rsp), %rsi movl $0x2, %edx callq 0x36a50 movq 0x18(%rsp), %rdi movl $0x0, 0x7c(%rsp) callq 0x369e0 movq %rax, %rsi movl 0x7c(%rsp), %edx leaq 0x68(%rsp), %rdi movq %rdi, 0x20(%rsp) callq 0x378f0 movq 0x20(%rsp), %rdi movl $0x1, %esi callq 0x37760 movss %xmm0, 0x2c(%rsp) jmp 0x35ec7 movss 0x2c(%rsp), %xmm0 movss %xmm0, 0x54(%rsp) movl $0x40, 0x40(%rsp) leaq 0xe007c(%rip), %rsi # 0x115f5e leaq 0xe0036(%rip), %rdx # 0x115f1f leaq 0x58(%rsp), %rdi leaq 0x54(%rsp), %rcx leaq 0x40(%rsp), %r8 callq 0x2d9c0 jmp 0x35eff leaq 0x58(%rsp), %rdi callq 0x1e060 movb %al, 0x17(%rsp) jmp 0x35f0f movb 0x17(%rsp), %al testb $0x1, %al jne 0x35f19 jmp 0x35f44 jmp 0x35fde movq %rax, %rcx movl %edx, %eax movq %rcx, 0x48(%rsp) movl %eax, 0x44(%rsp) jmp 0x36004 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x48(%rsp) movl %eax, 0x44(%rsp) jmp 0x35ffa leaq 0x38(%rsp), %rdi callq 0xc8d80 jmp 0x35f50 leaq 0x58(%rsp), %rdi callq 0x1e070 movq %rax, 0x8(%rsp) jmp 0x35f61 movq 0x8(%rsp), %r8 leaq 0xe0aa8(%rip), %rdx # 0x116a15 leaq 0x30(%rsp), %rdi movl $0x1, %esi movl $0x6c, %ecx callq 0xc4b10 jmp 0x35f83 leaq 0x30(%rsp), %rdi leaq 0x38(%rsp), %rsi callq 0xc1250 jmp 0x35f94 leaq 0x30(%rsp), %rdi callq 0xc4ba0 leaq 0x38(%rsp), %rdi callq 0x1e080 jmp 0x35fde movq %rax, %rcx movl %edx, %eax movq %rcx, 0x48(%rsp) movl %eax, 0x44(%rsp) jmp 0x35fd2 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x48(%rsp) movl %eax, 0x44(%rsp) leaq 0x30(%rsp), %rdi callq 0xc4ba0 leaq 0x38(%rsp), %rdi callq 0x1e080 jmp 0x35ffa leaq 0x58(%rsp), %rdi callq 0x1e090 leaq 0x68(%rsp), %rdi callq 0x378a0 addq $0xa8, %rsp retq leaq 0x58(%rsp), %rdi callq 0x1e090 leaq 0x68(%rsp), %rdi callq 0x378a0 movq 0x48(%rsp), %rdi callq 0x16cf0 nopl (%rax,%rax)
_ZN5alaya37SQ8SpaceTest_QueryComputerWithId_Test8TestBodyEv: sub rsp, 0A8h mov [rsp+0A8h+var_8], rdi mov rdi, [rsp+0A8h+var_8] movaps xmm0, cs:xmmword_116360 movaps [rsp+0A8h+var_18], xmm0 movaps xmm0, cs:xmmword_116350 movaps [rsp+0A8h+var_28], xmm0 add rdi, 10h mov qword ptr [rsp+0A8h+var_90], rdi; int call _ZNKSt19__shared_ptr_accessIN5alaya8SQ8SpaceIffjNS0_17SequentialStorageIhjEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<alaya::SQ8Space<float,float,uint,alaya::SequentialStorage<uchar,uint>>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void) mov rdi, rax lea rsi, [rsp+0A8h+var_28] mov edx, 2 call _ZN5alaya8SQ8SpaceIffjNS_17SequentialStorageIhjEEE3fitEPfj; alaya::SQ8Space<float,float,uint,alaya::SequentialStorage<uchar,uint>>::fit(float *,uint) mov rdi, qword ptr [rsp+0A8h+var_90] mov [rsp+0A8h+var_2C], 0 call _ZNKSt19__shared_ptr_accessIN5alaya8SQ8SpaceIffjNS0_17SequentialStorageIhjEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<alaya::SQ8Space<float,float,uint,alaya::SequentialStorage<uchar,uint>>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void) mov rsi, rax mov edx, [rsp+0A8h+var_2C] lea rdi, [rsp+0A8h+var_40] mov qword ptr [rsp+0A8h+var_88], rdi; int call _ZN5alaya8SQ8SpaceIffjNS_17SequentialStorageIhjEEE18get_query_computerEj; alaya::SQ8Space<float,float,uint,alaya::SequentialStorage<uchar,uint>>::get_query_computer(uint) mov rdi, qword ptr [rsp+0A8h+var_88] mov esi, 1 call _ZNK5alaya8SQ8SpaceIffjNS_17SequentialStorageIhjEEE13QueryComputerclEj; alaya::SQ8Space<float,float,uint,alaya::SequentialStorage<uchar,uint>>::QueryComputer::operator()(uint) movss [rsp+0A8h+var_7C], xmm0 jmp short $+2 loc_35EC7: movss xmm0, [rsp+0A8h+var_7C] movss [rsp+0A8h+var_54], xmm0 mov dword ptr [rsp+0A8h+var_68], 40h ; '@'; __int16 lea rsi, aQueryComputer1; "query_computer(1)" lea rdx, a64; "64" lea rdi, [rsp+0A8h+var_50] lea rcx, [rsp+0A8h+var_54] lea r8, [rsp+0A8h+var_68] call _ZN7testing8internal11CmpHelperGEIfiEENS_15AssertionResultEPKcS4_RKT_RKT0_; testing::internal::CmpHelperGE<float,int>(char const*,char const*,float const&,int const&) jmp short $+2 loc_35EFF: lea rdi, [rsp+0A8h+var_50] call _ZNK7testing15AssertionResultcvbEv; testing::AssertionResult::operator bool(void) mov [rsp+0A8h+var_91], al jmp short $+2 loc_35F0F: mov al, [rsp+0A8h+var_91] test al, 1 jnz short loc_35F19 jmp short loc_35F44 loc_35F19: jmp loc_35FDE mov rcx, rax mov eax, edx mov [rsp+arg_40], rcx mov [rsp+arg_3C], eax jmp loc_36004 mov rcx, rax mov eax, edx mov [rsp+arg_40], rcx mov [rsp+arg_3C], eax jmp loc_35FFA loc_35F44: lea rdi, [rsp+0A8h+var_70]; this call _ZN7testing7MessageC2Ev; testing::Message::Message(void) jmp short $+2 loc_35F50: lea rdi, [rsp+0A8h+var_50]; this call _ZNK7testing15AssertionResult15failure_messageEv; testing::AssertionResult::failure_message(void) mov qword ptr [rsp+0A8h+var_A0], rax; int jmp short $+2 loc_35F61: mov r8, qword ptr [rsp+0A8h+var_A0]; int lea rdx, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/AlayaL"... lea rdi, [rsp+0A8h+var_78]; int mov esi, 1; int mov ecx, 6Ch ; 'l'; int call _ZN7testing8internal12AssertHelperC2ENS_14TestPartResult4TypeEPKciS5_; testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type,char const*,int,char const*) jmp short $+2 loc_35F83: lea rdi, [rsp+0A8h+var_78]; char lea rsi, [rsp+0A8h+var_70]; int call _ZNK7testing8internal12AssertHelperaSERKNS_7MessageE; testing::internal::AssertHelper::operator=(testing::Message const&) jmp short $+2 loc_35F94: lea rdi, [rsp+0A8h+var_78]; this call _ZN7testing8internal12AssertHelperD2Ev; testing::internal::AssertHelper::~AssertHelper() lea rdi, [rsp+0A8h+var_70]; this call _ZN7testing7MessageD2Ev; testing::Message::~Message() jmp short loc_35FDE mov rcx, rax mov eax, edx mov [rsp+arg_40], rcx mov [rsp+arg_3C], eax jmp short loc_35FD2 mov rcx, rax mov eax, edx mov [rsp+arg_40], rcx mov [rsp+arg_3C], eax lea rdi, [rsp+arg_28]; this call _ZN7testing8internal12AssertHelperD2Ev; testing::internal::AssertHelper::~AssertHelper() loc_35FD2: lea rdi, [rsp+arg_30]; this call _ZN7testing7MessageD2Ev; testing::Message::~Message() jmp short loc_35FFA loc_35FDE: lea rdi, [rsp+0A8h+var_50]; this call _ZN7testing15AssertionResultD2Ev; testing::AssertionResult::~AssertionResult() lea rdi, [rsp+0A8h+var_40] call _ZN5alaya8SQ8SpaceIffjNS_17SequentialStorageIhjEEE13QueryComputerD2Ev; alaya::SQ8Space<float,float,uint,alaya::SequentialStorage<uchar,uint>>::QueryComputer::~QueryComputer() add rsp, 0A8h retn loc_35FFA: lea rdi, [rsp+arg_50]; this call _ZN7testing15AssertionResultD2Ev; testing::AssertionResult::~AssertionResult() loc_36004: lea rdi, [rsp+arg_60] call _ZN5alaya8SQ8SpaceIffjNS_17SequentialStorageIhjEEE13QueryComputerD2Ev; alaya::SQ8Space<float,float,uint,alaya::SequentialStorage<uchar,uint>>::QueryComputer::~QueryComputer() mov rdi, [rsp+arg_40] call __Unwind_Resume
long long alaya::SQ8SpaceTest_QueryComputerWithId_Test::TestBody( alaya::SQ8SpaceTest_QueryComputerWithId_Test *this) { long long v1; // rax long long v2; // rax int v3; // edx int v4; // ecx int v5; // r8d int v6; // r9d int v7; // r9d void *v9; // [rsp+0h] [rbp-A8h] int v10; // [rsp+0h] [rbp-A8h] int v11; // [rsp+8h] [rbp-A0h] int v12; // [rsp+8h] [rbp-A0h] long long v13; // [rsp+10h] [rbp-98h] int v14; // [rsp+10h] [rbp-98h] int v15; // [rsp+28h] [rbp-80h] char v16[4]; // [rsp+30h] [rbp-78h] BYREF int v17; // [rsp+38h] [rbp-70h] BYREF __int16 v18[4]; // [rsp+40h] [rbp-68h] BYREF long long v19; // [rsp+48h] [rbp-60h] char v20; // [rsp+50h] [rbp-58h] int v21; // [rsp+54h] [rbp-54h] BYREF int v22[4]; // [rsp+58h] [rbp-50h] BYREF int v23; // [rsp+68h] [rbp-40h] BYREF char v24; // [rsp+70h] [rbp-38h] int v25; // [rsp+7Ch] [rbp-2Ch] _OWORD v26[2]; // [rsp+80h] [rbp-28h] BYREF alaya::SQ8SpaceTest_QueryComputerWithId_Test *v27; // [rsp+A0h] [rbp-8h] v27 = this; v26[1] = *(_OWORD *)xmmword_116360; v26[0] = *(_OWORD *)&xmmword_116350; v1 = std::__shared_ptr_access<alaya::SQ8Space<float,float,unsigned int,alaya::SequentialStorage<unsigned char,unsigned int>>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->((char *)this + 16); alaya::SQ8Space<float,float,unsigned int,alaya::SequentialStorage<unsigned char,unsigned int>>::fit(v1, v26, 2LL); v25 = 0; v2 = std::__shared_ptr_access<alaya::SQ8Space<float,float,unsigned int,alaya::SequentialStorage<unsigned char,unsigned int>>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->((char *)this + 16); alaya::SQ8Space<float,float,unsigned int,alaya::SequentialStorage<unsigned char,unsigned int>>::get_query_computer( &v23, v2, 0LL); alaya::SQ8Space<float,float,unsigned int,alaya::SequentialStorage<unsigned char,unsigned int>>::QueryComputer::operator()( (unsigned int)&v23, 1, v3, v4, v5, v6); v21 = 1065353216; *(_DWORD *)v18 = 64; testing::internal::CmpHelperGE<float,int>(v22, "query_computer(1)", "64", &v21, v18); HIBYTE(v13) = testing::AssertionResult::operator bool(v22); if ( (v13 & 0x100000000000000LL) == 0 ) { testing::Message::Message((testing::Message *)&v17); v11 = testing::AssertionResult::failure_message((testing::AssertionResult *)v22); testing::internal::AssertHelper::AssertHelper( (int)v16, 1, (int)"/workspace/llm4binary/github2025/AlayaLite/tests/space/sq8_space_test.cpp", 108, v11, v7, v9, v11, v13); testing::internal::AssertHelper::operator=( (char)v16, (int)&v17, v10, v12, v14, (_DWORD)this + 16, (int)&v23, v15, *(int *)v16, v17, v18[0], v19, v20, v22[0], v22[2], v23, v24); testing::internal::AssertHelper::~AssertHelper((testing::internal::AssertHelper *)v16); testing::Message::~Message((testing::Message *)&v17); } testing::AssertionResult::~AssertionResult((testing::AssertionResult *)v22); return alaya::SQ8Space<float,float,unsigned int,alaya::SequentialStorage<unsigned char,unsigned int>>::QueryComputer::~QueryComputer(&v23); }
TestBody: SUB RSP,0xa8 MOV qword ptr [RSP + 0xa0],RDI MOV RDI,qword ptr [RSP + 0xa0] MOVAPS XMM0,xmmword ptr [0x00216360] MOVAPS xmmword ptr [RSP + 0x90],XMM0 MOVAPS XMM0,xmmword ptr [0x00216350] MOVAPS xmmword ptr [RSP + 0x80],XMM0 ADD RDI,0x10 MOV qword ptr [RSP + 0x18],RDI CALL 0x001369e0 MOV RDI,RAX LEA RSI,[RSP + 0x80] MOV EDX,0x2 CALL 0x00136a50 MOV RDI,qword ptr [RSP + 0x18] MOV dword ptr [RSP + 0x7c],0x0 CALL 0x001369e0 MOV RSI,RAX MOV EDX,dword ptr [RSP + 0x7c] LEA RDI,[RSP + 0x68] MOV qword ptr [RSP + 0x20],RDI CALL 0x001378f0 MOV RDI,qword ptr [RSP + 0x20] LAB_00135eb5: MOV ESI,0x1 CALL 0x00137760 MOVSS dword ptr [RSP + 0x2c],XMM0 JMP 0x00135ec7 LAB_00135ec7: MOVSS XMM0,dword ptr [RSP + 0x2c] MOVSS dword ptr [RSP + 0x54],XMM0 MOV dword ptr [RSP + 0x40],0x40 LEA RSI,[0x215f5e] LEA RDX,[0x215f1f] LEA RDI,[RSP + 0x58] LEA RCX,[RSP + 0x54] LEA R8,[RSP + 0x40] CALL 0x0012d9c0 JMP 0x00135eff LAB_00135eff: LEA RDI,[RSP + 0x58] CALL 0x0011e060 MOV byte ptr [RSP + 0x17],AL JMP 0x00135f0f LAB_00135f0f: MOV AL,byte ptr [RSP + 0x17] TEST AL,0x1 JNZ 0x00135f19 JMP 0x00135f44 LAB_00135f19: JMP 0x00135fde LAB_00135f44: LEA RDI,[RSP + 0x38] CALL 0x001c8d80 JMP 0x00135f50 LAB_00135f50: LEA RDI,[RSP + 0x58] CALL 0x0011e070 MOV qword ptr [RSP + 0x8],RAX JMP 0x00135f61 LAB_00135f61: MOV R8,qword ptr [RSP + 0x8] LEA RDX,[0x216a15] LEA RDI,[RSP + 0x30] MOV ESI,0x1 MOV ECX,0x6c CALL 0x001c4b10 JMP 0x00135f83 LAB_00135f83: LEA RDI,[RSP + 0x30] LEA RSI,[RSP + 0x38] CALL 0x001c1250 LAB_00135f92: JMP 0x00135f94 LAB_00135f94: LEA RDI,[RSP + 0x30] CALL 0x001c4ba0 LEA RDI,[RSP + 0x38] CALL 0x0011e080 JMP 0x00135fde LAB_00135fde: LEA RDI,[RSP + 0x58] CALL 0x0011e090 LEA RDI,[RSP + 0x68] CALL 0x001378a0 ADD RSP,0xa8 RET
/* alaya::SQ8SpaceTest_QueryComputerWithId_Test::TestBody() */ void __thiscall alaya::SQ8SpaceTest_QueryComputerWithId_Test::TestBody(SQ8SpaceTest_QueryComputerWithId_Test *this) { SQ8Space<float,float,unsigned_int,alaya::SequentialStorage<unsigned_char,unsigned_int>> *this_00; int8 uVar1; bool bVar2; AssertHelper local_78 [8]; Message local_70 [8]; int local_68 [5]; float local_54; internal local_50 [16]; QueryComputer local_40 [20]; int4 local_2c; int8 local_28; int8 uStack_20; int8 local_18; int8 uStack_10; SQ8SpaceTest_QueryComputerWithId_Test *local_8; local_18 = DAT_00216360; uStack_10 = DAT_00216368; local_28 = DAT_00216350; uStack_20 = DAT_00216358; local_8 = this; this_00 = (SQ8Space<float,float,unsigned_int,alaya::SequentialStorage<unsigned_char,unsigned_int>> *)std:: __shared_ptr_access<alaya::SQ8Space<float,float,unsigned_int,alaya::SequentialStorage<unsigned_char,unsigned_int>>,(__gnu_cxx::_Lock_policy)2,false,false> ::operator->((__shared_ptr_access<alaya::SQ8Space<float,float,unsigned_int,alaya::SequentialStorage<unsigned_char,unsigned_int>>,(__gnu_cxx::_Lock_policy)2,false,false> *)(this + 0x10)); SQ8Space<float,float,unsigned_int,alaya::SequentialStorage<unsigned_char,unsigned_int>>::fit (this_00,(float *)&local_28,2); local_2c = 0; std:: __shared_ptr_access<alaya::SQ8Space<float,float,unsigned_int,alaya::SequentialStorage<unsigned_char,unsigned_int>>,(__gnu_cxx::_Lock_policy)2,false,false> ::operator->((__shared_ptr_access<alaya::SQ8Space<float,float,unsigned_int,alaya::SequentialStorage<unsigned_char,unsigned_int>>,(__gnu_cxx::_Lock_policy)2,false,false> *)(this + 0x10)); SQ8Space<float,float,unsigned_int,alaya::SequentialStorage<unsigned_char,unsigned_int>>:: get_query_computer((uint)local_40); /* try { // try from 00135eb5 to 00135efc has its CatchHandler @ 00135f1e */ local_54 = (float)SQ8Space<float,float,unsigned_int,alaya::SequentialStorage<unsigned_char,unsigned_int>> ::QueryComputer::operator()(local_40,1); local_68[0] = 0x40; testing::internal::CmpHelperGE<float,int>(local_50,"query_computer(1)","64",&local_54,local_68); /* try { // try from 00135eff to 00135f4d has its CatchHandler @ 00135f31 */ bVar2 = testing::AssertionResult::operator_cast_to_bool((AssertionResult *)local_50); if (!bVar2) { testing::Message::Message(local_70); /* try { // try from 00135f50 to 00135f80 has its CatchHandler @ 00135faa */ uVar1 = testing::AssertionResult::failure_message((AssertionResult *)local_50); testing::internal::AssertHelper::AssertHelper (local_78,1, "/workspace/llm4binary/github2025/AlayaLite/tests/space/sq8_space_test.cpp",0x6c, uVar1); /* try { // try from 00135f83 to 00135f91 has its CatchHandler @ 00135fba */ testing::internal::AssertHelper::operator=(local_78,local_70); testing::internal::AssertHelper::~AssertHelper(local_78); testing::Message::~Message(local_70); } testing::AssertionResult::~AssertionResult((AssertionResult *)local_50); SQ8Space<float,float,unsigned_int,alaya::SequentialStorage<unsigned_char,unsigned_int>>:: QueryComputer::~QueryComputer(local_40); return; }
31,399
minja::LiteralExpr::LiteralExpr(minja::Location const&, minja::Value const&)
monkey531[P]llama/common/minja.hpp
LiteralExpr(const Location & location, const Value& v) : Expression(location), value(v) {}
O1
cpp
minja::LiteralExpr::LiteralExpr(minja::Location const&, minja::Value const&): pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx leaq 0x9f7a5(%rip), %r15 # 0x12e398 addq $0x10, %r15 movq %r15, (%rdi) movq (%rsi), %rax movq %rax, 0x8(%rdi) movq 0x8(%rsi), %rax movq %rax, 0x10(%rdi) testq %rax, %rax je 0x8ec23 movq 0xa136b(%rip), %rcx # 0x12ff80 cmpb $0x0, (%rcx) je 0x8ec1f incl 0x8(%rax) jmp 0x8ec23 lock incl 0x8(%rax) movq 0x10(%rsi), %rax movq %rax, 0x18(%rbx) leaq 0x9f8e6(%rip), %rax # 0x12e518 addq $0x10, %rax movq %rax, (%rbx) leaq 0x20(%rbx), %rdi movq %rdx, %rsi callq 0x8e64c popq %rbx popq %r14 popq %r15 retq movq %rax, %r14 movq %r15, (%rbx) movq 0x10(%rbx), %rdi testq %rdi, %rdi je 0x8ec5f callq 0x6d7f6 movq %r14, %rdi callq 0x1bf90 nop
_ZN5minja11LiteralExprC2ERKNS_8LocationERKNS_5ValueE: push r15 push r14 push rbx mov rbx, rdi lea r15, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression add r15, 10h mov [rdi], r15 mov rax, [rsi] mov [rdi+8], rax mov rax, [rsi+8] mov [rdi+10h], rax test rax, rax jz short loc_8EC23 mov rcx, cs:__libc_single_threaded_ptr cmp byte ptr [rcx], 0 jz short loc_8EC1F inc dword ptr [rax+8] jmp short loc_8EC23 loc_8EC1F: lock inc dword ptr [rax+8] loc_8EC23: mov rax, [rsi+10h] mov [rbx+18h], rax lea rax, _ZTVN5minja11LiteralExprE; `vtable for'minja::LiteralExpr add rax, 10h mov [rbx], rax lea rdi, [rbx+20h]; this mov rsi, rdx; minja::Value * call _ZN5minja5ValueC2ERKS0_; minja::Value::Value(minja::Value const&) pop rbx pop r14 pop r15 retn mov r14, rax mov [rbx], r15 mov rdi, [rbx+10h] test rdi, rdi jz short loc_8EC5F call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_8EC5F: mov rdi, r14 call __Unwind_Resume
long long minja::LiteralExpr::LiteralExpr(_QWORD *a1, _QWORD *a2, const minja::Value *a3) { long long v3; // rax *a1 = &`vtable for'minja::Expression + 2; a1[1] = *a2; v3 = a2[1]; a1[2] = v3; if ( v3 ) { if ( _libc_single_threaded ) ++*(_DWORD *)(v3 + 8); else _InterlockedIncrement((volatile signed __int32 *)(v3 + 8)); } a1[3] = a2[2]; *a1 = &`vtable for'minja::LiteralExpr + 2; return minja::Value::Value((minja::Value *)(a1 + 4), a3); }
LiteralExpr: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RDI LEA R15,[0x22e398] ADD R15,0x10 MOV qword ptr [RDI],R15 MOV RAX,qword ptr [RSI] MOV qword ptr [RDI + 0x8],RAX MOV RAX,qword ptr [RSI + 0x8] MOV qword ptr [RDI + 0x10],RAX TEST RAX,RAX JZ 0x0018ec23 MOV RCX,qword ptr [0x0022ff80] CMP byte ptr [RCX],0x0 JZ 0x0018ec1f INC dword ptr [RAX + 0x8] JMP 0x0018ec23 LAB_0018ec1f: INC.LOCK dword ptr [RAX + 0x8] LAB_0018ec23: MOV RAX,qword ptr [RSI + 0x10] MOV qword ptr [RBX + 0x18],RAX LEA RAX,[0x22e518] ADD RAX,0x10 MOV qword ptr [RBX],RAX LEA RDI,[RBX + 0x20] LAB_0018ec3d: MOV RSI,RDX CALL 0x0018e64c LAB_0018ec45: POP RBX POP R14 POP R15 RET
/* minja::LiteralExpr::LiteralExpr(minja::Location const&, minja::Value const&) */ void __thiscall minja::LiteralExpr::LiteralExpr(LiteralExpr *this,Location *param_1,Value *param_2) { long lVar1; *(int ***)this = &PTR___cxa_pure_virtual_0022e3a8; *(int8 *)(this + 8) = *(int8 *)param_1; lVar1 = *(long *)(param_1 + 8); *(long *)(this + 0x10) = lVar1; if (lVar1 != 0) { if (*PTR___libc_single_threaded_0022ff80 == '\0') { LOCK(); *(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1; UNLOCK(); } else { *(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1; } } *(int8 *)(this + 0x18) = *(int8 *)(param_1 + 0x10); *(int ***)this = &PTR_do_evaluate_0022e528; /* try { // try from 0018ec3d to 0018ec44 has its CatchHandler @ 0018ec4b */ Value::Value((Value *)(this + 0x20),param_2); return; }