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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
25,100 | translog_put_sector_protection | eloqsql/storage/maria/ma_loghandler.c | static void translog_put_sector_protection(uchar *page,
struct st_buffer_cursor *cursor)
{
uchar *table= page + log_descriptor.page_overhead -
TRANSLOG_PAGE_SIZE / DISK_DRIVE_SECTOR_SIZE;
uint i, offset;
uint16 last_protected_sector= ((cursor->previous_offset - 1) /
DISK_DRIVE_SECTOR_SIZE);
uint16 start_sector= cursor->previous_offset / DISK_DRIVE_SECTOR_SIZE;
uint8 value= table[0] + cursor->write_counter;
DBUG_ENTER("translog_put_sector_protection");
if (start_sector == 0)
{
/* First sector is protected by file & page numbers in the page header. */
start_sector= 1;
}
DBUG_PRINT("enter", ("Write counter:%u value:%u offset:%u, "
"last protected:%u start sector:%u",
(uint) cursor->write_counter,
(uint) value,
(uint) cursor->previous_offset,
(uint) last_protected_sector, (uint) start_sector));
if (last_protected_sector == start_sector)
{
i= last_protected_sector;
offset= last_protected_sector * DISK_DRIVE_SECTOR_SIZE;
/* restore data, because we modified sector which was protected */
if (offset < cursor->previous_offset)
page[offset]= table[i];
}
for (i= start_sector, offset= start_sector * DISK_DRIVE_SECTOR_SIZE;
i < TRANSLOG_PAGE_SIZE / DISK_DRIVE_SECTOR_SIZE;
i++, (offset+= DISK_DRIVE_SECTOR_SIZE))
{
DBUG_PRINT("info", ("sector:%u offset:%u data 0x%x",
i, offset, (uint) page[offset]));
table[i]= page[offset];
page[offset]= value;
DBUG_PRINT("info", ("sector:%u offset:%u data 0x%x",
i, offset, (uint) page[offset]));
}
DBUG_VOID_RETURN;
} | O0 | c | translog_put_sector_protection:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movzwl 0x41facd(%rip), %ecx # 0x4793e4
movslq %ecx, %rcx
addq %rcx, %rax
addq $-0x10, %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movzwl 0x34(%rax), %eax
subl $0x1, %eax
shrl $0x9, %eax
movw %ax, -0x22(%rbp)
movq -0x10(%rbp), %rax
movzwl 0x34(%rax), %eax
shrl $0x9, %eax
movw %ax, -0x24(%rbp)
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
movq -0x10(%rbp), %rcx
movzwl 0x32(%rcx), %ecx
addl %ecx, %eax
movb %al, -0x25(%rbp)
movzwl -0x24(%rbp), %eax
cmpl $0x0, %eax
jne 0x59969
movw $0x1, -0x24(%rbp)
jmp 0x5996b
jmp 0x5996d
movzwl -0x22(%rbp), %eax
movzwl -0x24(%rbp), %ecx
cmpl %ecx, %eax
jne 0x599af
movzwl -0x22(%rbp), %eax
movl %eax, -0x1c(%rbp)
movzwl -0x22(%rbp), %eax
shll $0x9, %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
movq -0x10(%rbp), %rcx
movzwl 0x34(%rcx), %ecx
cmpl %ecx, %eax
jae 0x599ad
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
movb (%rax,%rcx), %dl
movq -0x8(%rbp), %rax
movl -0x20(%rbp), %ecx
movb %dl, (%rax,%rcx)
jmp 0x599af
movzwl -0x24(%rbp), %eax
movl %eax, -0x1c(%rbp)
movzwl -0x24(%rbp), %eax
shll $0x9, %eax
movl %eax, -0x20(%rbp)
cmpl $0x10, -0x1c(%rbp)
jae 0x59a05
jmp 0x599c8
jmp 0x599ca
movq -0x8(%rbp), %rax
movl -0x20(%rbp), %ecx
movb (%rax,%rcx), %dl
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
movb %dl, (%rax,%rcx)
movb -0x25(%rbp), %dl
movq -0x8(%rbp), %rax
movl -0x20(%rbp), %ecx
movb %dl, (%rax,%rcx)
jmp 0x599ed
jmp 0x599ef
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
movl -0x20(%rbp), %eax
addl $0x200, %eax # imm = 0x200
movl %eax, -0x20(%rbp)
jmp 0x599c0
jmp 0x59a07
jmp 0x59a09
popq %rbp
retq
nopl (%rax,%rax)
| translog_put_sector_protection:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
movzx ecx, cs:word_4793E4
movsxd rcx, ecx
add rax, rcx
add rax, 0FFFFFFFFFFFFFFF0h
mov [rbp+var_18], rax
mov rax, [rbp+var_10]
movzx eax, word ptr [rax+34h]
sub eax, 1
shr eax, 9
mov [rbp+var_22], ax
mov rax, [rbp+var_10]
movzx eax, word ptr [rax+34h]
shr eax, 9
mov [rbp+var_24], ax
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax]
mov rcx, [rbp+var_10]
movzx ecx, word ptr [rcx+32h]
add eax, ecx
mov [rbp+var_25], al
movzx eax, [rbp+var_24]
cmp eax, 0
jnz short loc_59969
mov [rbp+var_24], 1
loc_59969:
jmp short $+2
loc_5996B:
jmp short $+2
loc_5996D:
movzx eax, [rbp+var_22]
movzx ecx, [rbp+var_24]
cmp eax, ecx
jnz short loc_599AF
movzx eax, [rbp+var_22]
mov [rbp+var_1C], eax
movzx eax, [rbp+var_22]
shl eax, 9
mov [rbp+var_20], eax
mov eax, [rbp+var_20]
mov rcx, [rbp+var_10]
movzx ecx, word ptr [rcx+34h]
cmp eax, ecx
jnb short loc_599AD
mov rax, [rbp+var_18]
mov ecx, [rbp+var_1C]
mov dl, [rax+rcx]
mov rax, [rbp+var_8]
mov ecx, [rbp+var_20]
mov [rax+rcx], dl
loc_599AD:
jmp short $+2
loc_599AF:
movzx eax, [rbp+var_24]
mov [rbp+var_1C], eax
movzx eax, [rbp+var_24]
shl eax, 9
mov [rbp+var_20], eax
loc_599C0:
cmp [rbp+var_1C], 10h
jnb short loc_59A05
jmp short $+2
loc_599C8:
jmp short $+2
loc_599CA:
mov rax, [rbp+var_8]
mov ecx, [rbp+var_20]
mov dl, [rax+rcx]
mov rax, [rbp+var_18]
mov ecx, [rbp+var_1C]
mov [rax+rcx], dl
mov dl, [rbp+var_25]
mov rax, [rbp+var_8]
mov ecx, [rbp+var_20]
mov [rax+rcx], dl
jmp short $+2
loc_599ED:
jmp short $+2
loc_599EF:
mov eax, [rbp+var_1C]
add eax, 1
mov [rbp+var_1C], eax
mov eax, [rbp+var_20]
add eax, 200h
mov [rbp+var_20], eax
jmp short loc_599C0
loc_59A05:
jmp short $+2
loc_59A07:
jmp short $+2
loc_59A09:
pop rbp
retn
| long long translog_put_sector_protection(long long a1, long long a2)
{
long long result; // rax
char v3; // [rsp+1h] [rbp-25h]
unsigned __int16 v4; // [rsp+2h] [rbp-24h]
unsigned __int16 v5; // [rsp+4h] [rbp-22h]
unsigned int v6; // [rsp+6h] [rbp-20h]
unsigned int v7; // [rsp+Ah] [rbp-1Ch]
_BYTE *v8; // [rsp+Eh] [rbp-18h]
v8 = (_BYTE *)((unsigned __int16)word_4793E4 + a1 - 16);
v5 = ((unsigned int)*(unsigned __int16 *)(a2 + 52) - 1) >> 9;
v4 = *(_WORD *)(a2 + 52) >> 9;
v3 = *(_WORD *)(a2 + 50) + *v8;
if ( !v4 )
v4 = 1;
if ( v5 == v4 && v5 << 9 < (unsigned int)*(unsigned __int16 *)(a2 + 52) )
*(_BYTE *)(a1 + (v5 << 9)) = v8[v5];
v7 = v4;
result = v4 << 9;
v6 = v4 << 9;
while ( v7 < 0x10 )
{
v8[v7] = *(_BYTE *)(a1 + v6);
*(_BYTE *)(a1 + v6) = v3;
++v7;
result = v6 + 512;
v6 += 512;
}
return result;
}
| translog_put_sector_protection:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x8]
MOVZX ECX,word ptr [0x005793e4]
MOVSXD RCX,ECX
ADD RAX,RCX
ADD RAX,-0x10
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,word ptr [RAX + 0x34]
SUB EAX,0x1
SHR EAX,0x9
MOV word ptr [RBP + -0x22],AX
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,word ptr [RAX + 0x34]
SHR EAX,0x9
MOV word ptr [RBP + -0x24],AX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x10]
MOVZX ECX,word ptr [RCX + 0x32]
ADD EAX,ECX
MOV byte ptr [RBP + -0x25],AL
MOVZX EAX,word ptr [RBP + -0x24]
CMP EAX,0x0
JNZ 0x00159969
MOV word ptr [RBP + -0x24],0x1
LAB_00159969:
JMP 0x0015996b
LAB_0015996b:
JMP 0x0015996d
LAB_0015996d:
MOVZX EAX,word ptr [RBP + -0x22]
MOVZX ECX,word ptr [RBP + -0x24]
CMP EAX,ECX
JNZ 0x001599af
MOVZX EAX,word ptr [RBP + -0x22]
MOV dword ptr [RBP + -0x1c],EAX
MOVZX EAX,word ptr [RBP + -0x22]
SHL EAX,0x9
MOV dword ptr [RBP + -0x20],EAX
MOV EAX,dword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
MOVZX ECX,word ptr [RCX + 0x34]
CMP EAX,ECX
JNC 0x001599ad
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0x1c]
MOV DL,byte ptr [RAX + RCX*0x1]
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0x20]
MOV byte ptr [RAX + RCX*0x1],DL
LAB_001599ad:
JMP 0x001599af
LAB_001599af:
MOVZX EAX,word ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x1c],EAX
MOVZX EAX,word ptr [RBP + -0x24]
SHL EAX,0x9
MOV dword ptr [RBP + -0x20],EAX
LAB_001599c0:
CMP dword ptr [RBP + -0x1c],0x10
JNC 0x00159a05
JMP 0x001599c8
LAB_001599c8:
JMP 0x001599ca
LAB_001599ca:
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0x20]
MOV DL,byte ptr [RAX + RCX*0x1]
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0x1c]
MOV byte ptr [RAX + RCX*0x1],DL
MOV DL,byte ptr [RBP + -0x25]
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0x20]
MOV byte ptr [RAX + RCX*0x1],DL
JMP 0x001599ed
LAB_001599ed:
JMP 0x001599ef
LAB_001599ef:
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x1c],EAX
MOV EAX,dword ptr [RBP + -0x20]
ADD EAX,0x200
MOV dword ptr [RBP + -0x20],EAX
JMP 0x001599c0
LAB_00159a05:
JMP 0x00159a07
LAB_00159a07:
JMP 0x00159a09
LAB_00159a09:
POP RBP
RET
|
void translog_put_sector_protection(long param_1,long param_2)
{
char cVar1;
int2 uVar2;
uint uVar3;
uint uVar4;
char *pcVar5;
ushort local_2c;
uint local_28;
uint local_24;
pcVar5 = (char *)(param_1 + (int)(uint)DAT_005793e4 + -0x10);
uVar3 = *(ushort *)(param_2 + 0x34) - 1 >> 9;
local_2c = *(ushort *)(param_2 + 0x34) >> 9;
cVar1 = *pcVar5;
uVar2 = *(int2 *)(param_2 + 0x32);
if (local_2c == 0) {
local_2c = 1;
}
if ((uVar3 & 0xffff) == (uint)local_2c) {
uVar4 = (uVar3 & 0xffff) << 9;
if (uVar4 < *(ushort *)(param_2 + 0x34)) {
*(char *)(param_1 + (ulong)uVar4) = pcVar5[uVar3 & 0xffff];
}
}
local_28 = (uint)local_2c << 9;
for (local_24 = (uint)local_2c; local_24 < 0x10; local_24 = local_24 + 1) {
pcVar5[local_24] = *(char *)(param_1 + (ulong)local_28);
*(char *)(param_1 + (ulong)local_28) = cVar1 + (char)uVar2;
local_28 = local_28 + 0x200;
}
return;
}
| |
25,101 | std::pair<google::protobuf::Map<google::protobuf::MapKey, google::protobuf::MapValueRef>::InnerMap::iterator_base<google::protobuf::MapPair<google::protobuf::MapKey, google::protobuf::MapValueRef> const>, unsigned long> google::protobuf::Map<google::protobuf::MapKey, google::protobuf::MapValueRef>::InnerMap::FindHelper<google::protobuf::MapKey>(google::protobuf::MapKey const&, std::_Rb_tree_iterator<std::pair<std::reference_wrapper<google::protobuf::MapKey const> const, void*>>*) const | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/map.h | std::pair<const_iterator, size_type> FindHelper(const K& k,
TreeIterator* it) const {
size_type b = BucketNumber(k);
if (TableEntryIsNonEmptyList(b)) {
Node* node = static_cast<Node*>(table_[b]);
do {
if (internal::TransparentSupport<Key>::Equals(node->kv.first, k)) {
return std::make_pair(const_iterator(node, this, b), b);
} else {
node = node->next;
}
} while (node != nullptr);
} else if (TableEntryIsTree(b)) {
GOOGLE_DCHECK_EQ(table_[b], table_[b ^ 1]);
b &= ~static_cast<size_t>(1);
Tree* tree = static_cast<Tree*>(table_[b]);
auto tree_it = tree->find(k);
if (tree_it != tree->end()) {
if (it != nullptr) *it = tree_it;
return std::make_pair(const_iterator(tree_it, this, b), b);
}
}
return std::make_pair(end(), b);
} | O0 | c | std::pair<google::protobuf::Map<google::protobuf::MapKey, google::protobuf::MapValueRef>::InnerMap::iterator_base<google::protobuf::MapPair<google::protobuf::MapKey, google::protobuf::MapValueRef> const>, unsigned long> google::protobuf::Map<google::protobuf::MapKey, google::protobuf::MapValueRef>::InnerMap::FindHelper<google::protobuf::MapKey>(google::protobuf::MapKey const&, std::_Rb_tree_iterator<std::pair<std::reference_wrapper<google::protobuf::MapKey const> const, void*>>*) const:
subq $0x118, %rsp # imm = 0x118
movq %rdi, 0x18(%rsp)
movq %rdi, 0x20(%rsp)
movq %rsi, 0x110(%rsp)
movq %rdx, 0x108(%rsp)
movq %rcx, 0x100(%rsp)
movq 0x110(%rsp), %rdi
movq %rdi, 0x28(%rsp)
movq 0x108(%rsp), %rsi
callq 0x134a30
movq 0x28(%rsp), %rdi
movq %rax, 0xf8(%rsp)
movq 0xf8(%rsp), %rsi
callq 0x133580
testb $0x1, %al
jne 0x134756
jmp 0x1347f5
movq 0x28(%rsp), %rax
movq 0x20(%rax), %rax
movq 0xf8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0xf0(%rsp)
movq 0xf0(%rsp), %rdi
movq 0x108(%rsp), %rsi
callq 0x134aa0
testb $0x1, %al
jne 0x13478e
jmp 0x1347cf
movq 0x28(%rsp), %rdx
movq 0xf0(%rsp), %rsi
movq 0xf8(%rsp), %rcx
leaq 0xd8(%rsp), %rdi
callq 0x134b00
movq 0x18(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
leaq 0xf8(%rsp), %rdx
callq 0x134ad0
jmp 0x134a0b
movq 0xf0(%rsp), %rax
movq 0x38(%rax), %rax
movq %rax, 0xf0(%rsp)
jmp 0x1347e5
cmpq $0x0, 0xf0(%rsp)
jne 0x134773
jmp 0x1349e5
movq 0x28(%rsp), %rdi
movq 0xf8(%rsp), %rsi
callq 0x133600
testb $0x1, %al
jne 0x134810
jmp 0x1349e3
jmp 0x134812
xorl %eax, %eax
testb $0x1, %al
jne 0x13481d
jmp 0x1348fe
movq 0x28(%rsp), %rcx
movq 0x20(%rcx), %rax
movq 0xf8(%rsp), %rdx
movq (%rax,%rdx,8), %rax
movq 0x20(%rcx), %rcx
movq 0xf8(%rsp), %rdx
xorq $0x1, %rdx
movq (%rcx,%rdx,8), %rcx
movb $0x0, 0x9f(%rsp)
cmpq %rcx, %rax
jne 0x134855
jmp 0x1348ae
leaq 0xbf890(%rip), %rdx # 0x1f40ec
leaq 0xa0(%rsp), %rdi
movq %rdi, 0x8(%rsp)
movl $0x3, %esi
movl $0x356, %ecx # imm = 0x356
callq 0x237e0
movq 0x8(%rsp), %rdi
movb $0x1, 0x9f(%rsp)
leaq 0xbfa1a(%rip), %rsi # 0x1f42a6
callq 0x230a0
movq %rax, 0x10(%rsp)
jmp 0x134898
movq 0x10(%rsp), %rsi
leaq 0x8b(%rsp), %rdi
callq 0x23250
jmp 0x1348ac
jmp 0x1348ae
testb $0x1, 0x9f(%rsp)
jne 0x1348ba
jmp 0x1348c7
leaq 0xa0(%rsp), %rdi
callq 0x23820
jmp 0x134812
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
testb $0x1, 0x9f(%rsp)
jne 0x1348ec
jmp 0x1348f9
leaq 0xa0(%rsp), %rdi
callq 0x23820
jmp 0x134a18
movq 0x28(%rsp), %rax
movq 0xf8(%rsp), %rcx
andq $-0x2, %rcx
movq %rcx, 0xf8(%rsp)
movq 0x20(%rax), %rax
movq 0xf8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x80(%rsp)
movq 0x80(%rsp), %rax
movq %rax, (%rsp)
movq 0x108(%rsp), %rsi
leaq 0x70(%rsp), %rdi
callq 0x134b70
movq (%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x134b40
movq %rax, 0x78(%rsp)
movq 0x80(%rsp), %rdi
callq 0x133710
movq %rax, 0x68(%rsp)
leaq 0x78(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x1336f0
testb $0x1, %al
jne 0x134987
jmp 0x1349e1
cmpq $0x0, 0x100(%rsp)
je 0x1349a2
movq 0x100(%rsp), %rax
movq 0x78(%rsp), %rcx
movq %rcx, (%rax)
movq 0x28(%rsp), %rdx
movq 0x78(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0xf8(%rsp), %rcx
movq 0x48(%rsp), %rsi
leaq 0x50(%rsp), %rdi
callq 0x134ba0
movq 0x18(%rsp), %rdi
leaq 0x50(%rsp), %rsi
leaq 0xf8(%rsp), %rdx
callq 0x134ad0
jmp 0x134a0b
jmp 0x1349e3
jmp 0x1349e5
movq 0x28(%rsp), %rsi
leaq 0x30(%rsp), %rdi
callq 0x134cd0
movq 0x18(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0xf8(%rsp), %rdx
callq 0x134ad0
movq 0x20(%rsp), %rax
addq $0x118, %rsp # imm = 0x118
retq
movq 0x90(%rsp), %rdi
callq 0x13750
nopw %cs:(%rax,%rax)
nop
| _ZNK6google8protobuf3MapINS0_6MapKeyENS0_11MapValueRefEE8InnerMap10FindHelperIS2_EESt4pairINS5_13iterator_baseIKNS0_7MapPairIS2_S3_EEEEmERKT_PSt17_Rb_tree_iteratorIS7_IKSt17reference_wrapperIKS2_EPvEE:
sub rsp, 118h
mov [rsp+118h+var_100], rdi
mov [rsp+118h+var_F8], rdi
mov [rsp+118h+var_8], rsi
mov [rsp+118h+var_10], rdx
mov [rsp+118h+var_18], rcx
mov rdi, [rsp+118h+var_8]
mov [rsp+118h+var_F0], rdi
mov rsi, [rsp+118h+var_10]
call _ZNK6google8protobuf3MapINS0_6MapKeyENS0_11MapValueRefEE8InnerMap12BucketNumberIS2_EEmRKT_; google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::BucketNumber<google::protobuf::MapKey>(google::protobuf::MapKey const&)
mov rdi, [rsp+118h+var_F0]
mov [rsp+118h+var_20], rax
mov rsi, [rsp+118h+var_20]
call _ZNK6google8protobuf3MapINS0_6MapKeyENS0_11MapValueRefEE8InnerMap24TableEntryIsNonEmptyListEm; google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::TableEntryIsNonEmptyList(ulong)
test al, 1
jnz short loc_134756
jmp loc_1347F5
loc_134756:
mov rax, [rsp+118h+var_F0]
mov rax, [rax+20h]
mov rcx, [rsp+118h+var_20]
mov rax, [rax+rcx*8]
mov [rsp+118h+var_28], rax
loc_134773:
mov rdi, [rsp+118h+var_28]
mov rsi, [rsp+118h+var_10]
call _ZN6google8protobuf8internal18TransparentSupportINS0_6MapKeyEE6EqualsERKS3_S6_; google::protobuf::internal::TransparentSupport<google::protobuf::MapKey>::Equals(google::protobuf::MapKey const&,google::protobuf::MapKey const&)
test al, 1
jnz short loc_13478E
jmp short loc_1347CF
loc_13478E:
mov rdx, [rsp+118h+var_F0]
mov rsi, [rsp+118h+var_28]
mov rcx, [rsp+118h+var_20]
lea rdi, [rsp+118h+var_40]
call _ZN6google8protobuf3MapINS0_6MapKeyENS0_11MapValueRefEE8InnerMap13iterator_baseIKNS0_7MapPairIS2_S3_EEEC2EPNS5_4NodeEPKS5_m; google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::iterator_base<google::protobuf::MapPair<google::protobuf::MapKey,google::protobuf::MapValueRef> const>::iterator_base(google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::Node *,google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap const*,ulong)
mov rdi, [rsp+118h+var_100]
lea rsi, [rsp+118h+var_40]
lea rdx, [rsp+118h+var_20]
call _ZSt9make_pairIN6google8protobuf3MapINS1_6MapKeyENS1_11MapValueRefEE8InnerMap13iterator_baseIKNS1_7MapPairIS3_S4_EEEERmESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENSE_INSF_IT0_E4typeEE6__typeEEOSG_OSL_; std::make_pair<google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::iterator_base<google::protobuf::MapPair<google::protobuf::MapKey,google::protobuf::MapValueRef> const>,ulong &>(google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::iterator_base<google::protobuf::MapPair<google::protobuf::MapKey,google::protobuf::MapValueRef> const>&&,ulong &&&)
jmp loc_134A0B
loc_1347CF:
mov rax, [rsp+118h+var_28]
mov rax, [rax+38h]
mov [rsp+118h+var_28], rax
jmp short $+2
loc_1347E5:
cmp [rsp+118h+var_28], 0
jnz short loc_134773
jmp loc_1349E5
loc_1347F5:
mov rdi, [rsp+118h+var_F0]
mov rsi, [rsp+118h+var_20]
call _ZNK6google8protobuf3MapINS0_6MapKeyENS0_11MapValueRefEE8InnerMap16TableEntryIsTreeEm; google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::TableEntryIsTree(ulong)
test al, 1
jnz short loc_134810
jmp loc_1349E3
loc_134810:
jmp short $+2
loc_134812:
xor eax, eax
test al, 1
jnz short loc_13481D
jmp loc_1348FE
loc_13481D:
mov rcx, [rsp+118h+var_F0]
mov rax, [rcx+20h]
mov rdx, [rsp+118h+var_20]
mov rax, [rax+rdx*8]
mov rcx, [rcx+20h]
mov rdx, [rsp+118h+var_20]
xor rdx, 1
mov rcx, [rcx+rdx*8]
mov [rsp+118h+var_79], 0
cmp rax, rcx
jnz short loc_134855
jmp short loc_1348AE
loc_134855:
lea rdx, aWorkspaceLlm4b_24; "/workspace/llm4binary/github2025/aimrt_"...
lea rdi, [rsp+118h+var_78]
mov [rsp+118h+var_110], rdi
mov esi, 3
mov ecx, 356h
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
mov rdi, [rsp+118h+var_110]
mov [rsp+118h+var_79], 1
lea rsi, aCheckFailedTab_0; "CHECK failed: (table_[b]) == (table_[b "...
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+118h+var_108], rax
jmp short $+2
loc_134898:
mov rsi, [rsp+118h+var_108]
lea rdi, [rsp+118h+var_8D]
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
jmp short $+2
loc_1348AC:
jmp short $+2
loc_1348AE:
test [rsp+118h+var_79], 1
jnz short loc_1348BA
jmp short loc_1348C7
loc_1348BA:
lea rdi, [rsp+118h+var_78]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_1348C7:
jmp loc_134812
mov rcx, rax
mov eax, edx
mov [rsp+arg_88], rcx
mov [rsp+arg_84], eax
test [rsp+arg_97], 1
jnz short loc_1348EC
jmp short loc_1348F9
loc_1348EC:
lea rdi, [rsp+arg_98]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_1348F9:
jmp loc_134A18
loc_1348FE:
mov rax, [rsp+118h+var_F0]
mov rcx, [rsp+118h+var_20]
and rcx, 0FFFFFFFFFFFFFFFEh
mov [rsp+118h+var_20], rcx
mov rax, [rax+20h]
mov rcx, [rsp+118h+var_20]
mov rax, [rax+rcx*8]
mov [rsp+118h+var_98], rax
mov rax, [rsp+118h+var_98]
mov [rsp+118h+var_118], rax
mov rsi, [rsp+118h+var_10]
lea rdi, [rsp+118h+var_A8]
call _ZNSt17reference_wrapperIKN6google8protobuf6MapKeyEEC2IRS3_vPS3_EEOT_; std::reference_wrapper<google::protobuf::MapKey const>::reference_wrapper<google::protobuf::MapKey const&,void,google::protobuf::MapKey const*>(google::protobuf::MapKey const&)
mov rdi, [rsp+118h+var_118]
lea rsi, [rsp+118h+var_A8]
call _ZNSt3mapISt17reference_wrapperIKN6google8protobuf6MapKeyEEPvSt4lessIS3_ENS2_8internal12MapAllocatorISt4pairIKS5_S6_EEEE4findERSC_; std::map<std::reference_wrapper<google::protobuf::MapKey const>,void *,std::less<google::protobuf::MapKey>,google::protobuf::internal::MapAllocator<std::pair<std::reference_wrapper<google::protobuf::MapKey const> const,void *>>>::find(std::reference_wrapper<google::protobuf::MapKey const> const&)
mov [rsp+118h+var_A0], rax
mov rdi, [rsp+118h+var_98]
call _ZNSt3mapISt17reference_wrapperIKN6google8protobuf6MapKeyEEPvSt4lessIS3_ENS2_8internal12MapAllocatorISt4pairIKS5_S6_EEEE3endEv; std::map<std::reference_wrapper<google::protobuf::MapKey const>,void *,std::less<google::protobuf::MapKey>,google::protobuf::internal::MapAllocator<std::pair<std::reference_wrapper<google::protobuf::MapKey const> const,void *>>>::end(void)
mov [rsp+118h+var_B0], rax
lea rdi, [rsp+118h+var_A0]
lea rsi, [rsp+118h+var_B0]
call _ZStneRKSt17_Rb_tree_iteratorISt4pairIKSt17reference_wrapperIKN6google8protobuf6MapKeyEEPvEESC_; std::operator!=(std::_Rb_tree_iterator<std::pair<std::reference_wrapper<google::protobuf::MapKey const> const,void *>> const&,std::_Rb_tree_iterator<std::pair<std::reference_wrapper<google::protobuf::MapKey const> const,void *>> const&)
test al, 1
jnz short loc_134987
jmp short loc_1349E1
loc_134987:
cmp [rsp+118h+var_18], 0
jz short loc_1349A2
mov rax, [rsp+118h+var_18]
mov rcx, [rsp+118h+var_A0]
mov [rax], rcx
loc_1349A2:
mov rdx, [rsp+118h+var_F0]
mov rax, [rsp+118h+var_A0]
mov [rsp+118h+var_D0], rax
mov rcx, [rsp+118h+var_20]
mov rsi, [rsp+118h+var_D0]
lea rdi, [rsp+118h+var_C8]
call _ZN6google8protobuf3MapINS0_6MapKeyENS0_11MapValueRefEE8InnerMap13iterator_baseIKNS0_7MapPairIS2_S3_EEEC2ESt17_Rb_tree_iteratorISt4pairIKSt17reference_wrapperIKS2_EPvEEPKS5_m; google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::iterator_base<google::protobuf::MapPair<google::protobuf::MapKey,google::protobuf::MapValueRef> const>::iterator_base(std::_Rb_tree_iterator<std::pair<std::reference_wrapper<google::protobuf::MapKey const> const,void *>>,google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap const*,ulong)
mov rdi, [rsp+118h+var_100]
lea rsi, [rsp+118h+var_C8]
lea rdx, [rsp+118h+var_20]
call _ZSt9make_pairIN6google8protobuf3MapINS1_6MapKeyENS1_11MapValueRefEE8InnerMap13iterator_baseIKNS1_7MapPairIS3_S4_EEEERmESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENSE_INSF_IT0_E4typeEE6__typeEEOSG_OSL_; std::make_pair<google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::iterator_base<google::protobuf::MapPair<google::protobuf::MapKey,google::protobuf::MapValueRef> const>,ulong &>(google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::iterator_base<google::protobuf::MapPair<google::protobuf::MapKey,google::protobuf::MapValueRef> const>&&,ulong &&&)
jmp short loc_134A0B
loc_1349E1:
jmp short $+2
loc_1349E3:
jmp short $+2
loc_1349E5:
mov rsi, [rsp+118h+var_F0]
lea rdi, [rsp+118h+var_E8]
call _ZNK6google8protobuf3MapINS0_6MapKeyENS0_11MapValueRefEE8InnerMap3endEv; google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::end(void)
mov rdi, [rsp+118h+var_100]
lea rsi, [rsp+118h+var_E8]
lea rdx, [rsp+118h+var_20]
call _ZSt9make_pairIN6google8protobuf3MapINS1_6MapKeyENS1_11MapValueRefEE8InnerMap13iterator_baseIKNS1_7MapPairIS3_S4_EEEERmESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENSE_INSF_IT0_E4typeEE6__typeEEOSG_OSL_; std::make_pair<google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::iterator_base<google::protobuf::MapPair<google::protobuf::MapKey,google::protobuf::MapValueRef> const>,ulong &>(google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::iterator_base<google::protobuf::MapPair<google::protobuf::MapKey,google::protobuf::MapValueRef> const>&&,ulong &&&)
loc_134A0B:
mov rax, [rsp+118h+var_F8]
add rsp, 118h
retn
loc_134A18:
mov rdi, [rsp+arg_88]
call __Unwind_Resume
| long long google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::FindHelper<google::protobuf::MapKey>(
long long a1,
long long a2,
long long a3,
long long *a4)
{
unsigned long long v4; // rdx
unsigned long long v5; // rdx
int v6; // r8d
int v7; // r9d
long long v9; // [rsp+0h] [rbp-118h]
_BYTE v10[24]; // [rsp+30h] [rbp-E8h] BYREF
long long v11; // [rsp+48h] [rbp-D0h]
_BYTE v12[24]; // [rsp+50h] [rbp-C8h] BYREF
long long v13; // [rsp+68h] [rbp-B0h] BYREF
char v14[8]; // [rsp+70h] [rbp-A8h] BYREF
long long v15; // [rsp+78h] [rbp-A0h] BYREF
long long v16; // [rsp+80h] [rbp-98h]
_BYTE v17[24]; // [rsp+D8h] [rbp-40h] BYREF
long long v18; // [rsp+F0h] [rbp-28h]
unsigned long long v19; // [rsp+F8h] [rbp-20h] BYREF
long long *v20; // [rsp+100h] [rbp-18h]
long long v21; // [rsp+108h] [rbp-10h]
long long v22; // [rsp+110h] [rbp-8h]
v22 = a2;
v21 = a3;
v20 = a4;
v19 = google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::BucketNumber<google::protobuf::MapKey>(
a2,
a3);
if ( (google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::TableEntryIsNonEmptyList(
a2,
(void *const *)v19,
v4) & 1) != 0 )
{
v18 = *(_QWORD *)(*(_QWORD *)(a2 + 32) + 8 * v19);
while ( (google::protobuf::internal::TransparentSupport<google::protobuf::MapKey>::Equals(v18, v21) & 1) == 0 )
{
v18 = *(_QWORD *)(v18 + 56);
if ( !v18 )
goto LABEL_12;
}
google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::iterator_base<google::protobuf::MapPair<google::protobuf::MapKey,google::protobuf::MapValueRef> const>::iterator_base(
v17,
v18,
a2,
v19);
std::make_pair<google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::iterator_base<google::protobuf::MapPair<google::protobuf::MapKey,google::protobuf::MapValueRef> const>,unsigned long &>(
a1,
v17,
&v19);
}
else if ( (google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::TableEntryIsTree(
a2,
(void *const *)v19,
v5) & 1) != 0
&& (v19 &= ~1uLL,
v16 = *(_QWORD *)(*(_QWORD *)(a2 + 32) + 8 * v19),
v9 = v16,
std::reference_wrapper<google::protobuf::MapKey const>::reference_wrapper<google::protobuf::MapKey const&,void,google::protobuf::MapKey const*>(
v14,
v21),
v15 = std::map<std::reference_wrapper<google::protobuf::MapKey const>,void *,std::less<google::protobuf::MapKey>,google::protobuf::internal::MapAllocator<std::pair<std::reference_wrapper<google::protobuf::MapKey const> const,void *>>>::find(
v9,
v14),
v13 = std::map<std::reference_wrapper<google::protobuf::MapKey const>,void *,std::less<google::protobuf::MapKey>,google::protobuf::internal::MapAllocator<std::pair<std::reference_wrapper<google::protobuf::MapKey const> const,void *>>>::end(v16),
std::operator!=(&v15, &v13)) )
{
if ( v20 )
*v20 = v15;
v11 = v15;
google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::iterator_base<google::protobuf::MapPair<google::protobuf::MapKey,google::protobuf::MapValueRef> const>::iterator_base(
(unsigned int)v12,
v15,
a2,
v19,
v6,
v7,
v9);
std::make_pair<google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::iterator_base<google::protobuf::MapPair<google::protobuf::MapKey,google::protobuf::MapValueRef> const>,unsigned long &>(
a1,
v12,
&v19);
}
else
{
LABEL_12:
google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::end(v10, a2);
std::make_pair<google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::iterator_base<google::protobuf::MapPair<google::protobuf::MapKey,google::protobuf::MapValueRef> const>,unsigned long &>(
a1,
v10,
&v19);
}
return a1;
}
| |||
25,102 | std::pair<google::protobuf::Map<google::protobuf::MapKey, google::protobuf::MapValueRef>::InnerMap::iterator_base<google::protobuf::MapPair<google::protobuf::MapKey, google::protobuf::MapValueRef> const>, unsigned long> google::protobuf::Map<google::protobuf::MapKey, google::protobuf::MapValueRef>::InnerMap::FindHelper<google::protobuf::MapKey>(google::protobuf::MapKey const&, std::_Rb_tree_iterator<std::pair<std::reference_wrapper<google::protobuf::MapKey const> const, void*>>*) const | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/map.h | std::pair<const_iterator, size_type> FindHelper(const K& k,
TreeIterator* it) const {
size_type b = BucketNumber(k);
if (TableEntryIsNonEmptyList(b)) {
Node* node = static_cast<Node*>(table_[b]);
do {
if (internal::TransparentSupport<Key>::Equals(node->kv.first, k)) {
return std::make_pair(const_iterator(node, this, b), b);
} else {
node = node->next;
}
} while (node != nullptr);
} else if (TableEntryIsTree(b)) {
GOOGLE_DCHECK_EQ(table_[b], table_[b ^ 1]);
b &= ~static_cast<size_t>(1);
Tree* tree = static_cast<Tree*>(table_[b]);
auto tree_it = tree->find(k);
if (tree_it != tree->end()) {
if (it != nullptr) *it = tree_it;
return std::make_pair(const_iterator(tree_it, this, b), b);
}
}
return std::make_pair(end(), b);
} | O3 | c | std::pair<google::protobuf::Map<google::protobuf::MapKey, google::protobuf::MapValueRef>::InnerMap::iterator_base<google::protobuf::MapPair<google::protobuf::MapKey, google::protobuf::MapValueRef> const>, unsigned long> google::protobuf::Map<google::protobuf::MapKey, google::protobuf::MapValueRef>::InnerMap::FindHelper<google::protobuf::MapKey>(google::protobuf::MapKey const&, std::_Rb_tree_iterator<std::pair<std::reference_wrapper<google::protobuf::MapKey const> const, void*>>*) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r12
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x76502
xorq 0x10(%r14), %rax
movabsq $-0x61c8864680b583eb, %rbp # imm = 0x9E3779B97F4A7C15
imulq %rax, %rbp
shrq $0x20, %rbp
movl 0x8(%r14), %eax
decl %eax
andl %eax, %ebp
movq 0x20(%r14), %rax
movq (%rax,%rbp,8), %r13
testq %r13, %r13
je 0x764d0
movq %rbp, %rcx
xorq $0x1, %rcx
cmpq (%rax,%rcx,8), %r13
je 0x764a0
movq %r13, %rdi
movq %r15, %rsi
callq 0x76642
testb %al, %al
jne 0x764e0
movq 0x38(%r13), %r13
testq %r13, %r13
jne 0x76486
jmp 0x764d0
andl $-0x2, %ebp
movq (%rax,%rbp,8), %r13
movq %rsp, %rsi
movq %r15, (%rsi)
movq %r13, %rdi
callq 0x767aa
addq $0x10, %r13
cmpq %r13, %rax
je 0x764d0
testq %r12, %r12
je 0x764c7
movq %rax, (%r12)
movq 0x28(%rax), %rax
movq %rax, (%rbx)
jmp 0x764e3
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
jmp 0x764eb
movq %r13, (%rbx)
movq %r14, 0x8(%rbx)
movq %rbp, 0x10(%rbx)
movq %rbp, 0x18(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
| _ZNK6google8protobuf3MapINS0_6MapKeyENS0_11MapValueRefEE8InnerMap10FindHelperIS2_EESt4pairINS5_13iterator_baseIKNS0_7MapPairIS2_S3_EEEEmERKT_PSt17_Rb_tree_iteratorIS7_IKSt17reference_wrapperIKS2_EPvEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax; char
mov r12, rcx
mov r15, rdx
mov r14, rsi
mov rbx, rdi
mov rdi, rsi
mov rsi, rdx
call _ZNKSt4hashIN6google8protobuf6MapKeyEEclERKS2_; std::hash<google::protobuf::MapKey>::operator()(google::protobuf::MapKey const&)
xor rax, [r14+10h]
mov rbp, 9E3779B97F4A7C15h
imul rbp, rax
shr rbp, 20h
mov eax, [r14+8]
dec eax
and ebp, eax
mov rax, [r14+20h]
mov r13, [rax+rbp*8]
test r13, r13
jz short loc_764D0
mov rcx, rbp
xor rcx, 1
cmp r13, [rax+rcx*8]
jz short loc_764A0
loc_76486:
mov rdi, r13; this
mov rsi, r15
call _ZNK6google8protobuf6MapKeyeqERKS1_; google::protobuf::MapKey::operator==(google::protobuf::MapKey const&)
test al, al
jnz short loc_764E0
mov r13, [r13+38h]
test r13, r13
jnz short loc_76486
jmp short loc_764D0
loc_764A0:
and ebp, 0FFFFFFFEh
mov r13, [rax+rbp*8]
mov rsi, rsp
mov [rsi], r15
mov rdi, r13
call _ZNSt8_Rb_treeISt17reference_wrapperIKN6google8protobuf6MapKeyEESt4pairIKS5_PvESt10_Select1stIS9_ESt4lessIS3_ENS2_8internal12MapAllocatorIS9_EEE4findERS7_; std::_Rb_tree<std::reference_wrapper<google::protobuf::MapKey const>,std::pair<std::reference_wrapper<google::protobuf::MapKey const> const,void *>,std::_Select1st<std::pair<std::reference_wrapper<google::protobuf::MapKey const> const,void *>>,std::less<google::protobuf::MapKey>,google::protobuf::internal::MapAllocator<std::pair<std::reference_wrapper<google::protobuf::MapKey const> const,void *>>>::find(std::reference_wrapper<google::protobuf::MapKey const> const&)
add r13, 10h
cmp rax, r13
jz short loc_764D0
test r12, r12
jz short loc_764C7
mov [r12], rax
loc_764C7:
mov rax, [rax+28h]
mov [rbx], rax
jmp short loc_764E3
loc_764D0:
xorps xmm0, xmm0
movups xmmword ptr [rbx], xmm0
mov qword ptr [rbx+10h], 0
jmp short loc_764EB
loc_764E0:
mov [rbx], r13
loc_764E3:
mov [rbx+8], r14
mov [rbx+10h], rbp
loc_764EB:
mov [rbx+18h], rbp
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| google::protobuf::MapKey ** google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::FindHelper<google::protobuf::MapKey>(
google::protobuf::MapKey **a1,
long long a2,
long long a3,
long long *a4)
{
char v4; // al
google::protobuf::MapKey *v6; // rbp
long long v7; // rax
google::protobuf::MapKey *v8; // r13
long long v9; // r13
long long v10; // rax
char v12; // [rsp-8h] [rbp-38h]
v12 = v4;
v6 = (google::protobuf::MapKey *)((*(_DWORD *)(a2 + 8) - 1) & (unsigned int)((0x9E3779B97F4A7C15LL
* (*(_QWORD *)(a2 + 16) ^ std::hash<google::protobuf::MapKey>::operator()(a2, a3))) >> 32));
v7 = *(_QWORD *)(a2 + 32);
v8 = *(google::protobuf::MapKey **)(v7 + 8LL * (_QWORD)v6);
if ( v8 )
{
if ( v8 != *(google::protobuf::MapKey **)(v7 + 8 * ((unsigned long long)v6 ^ 1)) )
{
while ( !(unsigned __int8)google::protobuf::MapKey::operator==(v8, v12) )
{
v8 = (google::protobuf::MapKey *)*((_QWORD *)v8 + 7);
if ( !v8 )
goto LABEL_10;
}
*a1 = v8;
goto LABEL_12;
}
v6 = (google::protobuf::MapKey *)((unsigned int)v6 & 0xFFFFFFFE);
v9 = *(_QWORD *)(v7 + 8LL * (unsigned int)v6);
v10 = std::_Rb_tree<std::reference_wrapper<google::protobuf::MapKey const>,std::pair<std::reference_wrapper<google::protobuf::MapKey const> const,void *>,std::_Select1st<std::pair<std::reference_wrapper<google::protobuf::MapKey const> const,void *>>,std::less<google::protobuf::MapKey>,google::protobuf::internal::MapAllocator<std::pair<std::reference_wrapper<google::protobuf::MapKey const> const,void *>>>::find(v9);
if ( v10 != v9 + 16 )
{
if ( a4 )
*a4 = v10;
*a1 = *(google::protobuf::MapKey **)(v10 + 40);
LABEL_12:
a1[1] = (google::protobuf::MapKey *)a2;
a1[2] = v6;
goto LABEL_13;
}
}
LABEL_10:
*(_OWORD *)a1 = 0LL;
a1[2] = 0LL;
LABEL_13:
a1[3] = v6;
return a1;
}
| FindHelper<google::protobuf::MapKey>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R12,RCX
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
MOV RDI,RSI
MOV RSI,RDX
CALL 0x00176502
XOR RAX,qword ptr [R14 + 0x10]
MOV RBP,-0x61c8864680b583eb
IMUL RBP,RAX
SHR RBP,0x20
MOV EAX,dword ptr [R14 + 0x8]
DEC EAX
AND EBP,EAX
MOV RAX,qword ptr [R14 + 0x20]
MOV R13,qword ptr [RAX + RBP*0x8]
TEST R13,R13
JZ 0x001764d0
MOV RCX,RBP
XOR RCX,0x1
CMP R13,qword ptr [RAX + RCX*0x8]
JZ 0x001764a0
LAB_00176486:
MOV RDI,R13
MOV RSI,R15
CALL 0x00176642
TEST AL,AL
JNZ 0x001764e0
MOV R13,qword ptr [R13 + 0x38]
TEST R13,R13
JNZ 0x00176486
JMP 0x001764d0
LAB_001764a0:
AND EBP,0xfffffffe
MOV R13,qword ptr [RAX + RBP*0x8]
MOV RSI,RSP
MOV qword ptr [RSI],R15
MOV RDI,R13
CALL 0x001767aa
ADD R13,0x10
CMP RAX,R13
JZ 0x001764d0
TEST R12,R12
JZ 0x001764c7
MOV qword ptr [R12],RAX
LAB_001764c7:
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBX],RAX
JMP 0x001764e3
LAB_001764d0:
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
MOV qword ptr [RBX + 0x10],0x0
JMP 0x001764eb
LAB_001764e0:
MOV qword ptr [RBX],R13
LAB_001764e3:
MOV qword ptr [RBX + 0x8],R14
MOV qword ptr [RBX + 0x10],RBP
LAB_001764eb:
MOV qword ptr [RBX + 0x18],RBP
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* std::pair<google::protobuf::Map<google::protobuf::MapKey,
google::protobuf::MapValueRef>::InnerMap::iterator_base<google::protobuf::MapPair<google::protobuf::MapKey,
google::protobuf::MapValueRef> const>, unsigned long>
google::protobuf::Map<google::protobuf::MapKey,
google::protobuf::MapValueRef>::InnerMap::FindHelper<google::protobuf::MapKey>(google::protobuf::MapKey
const&, std::_Rb_tree_iterator<std::pair<std::reference_wrapper<google::protobuf::MapKey const>
const, void*> >*) const */
MapKey * google::protobuf::Map<google::protobuf::MapKey,google::protobuf::MapValueRef>::InnerMap::
FindHelper<google::protobuf::MapKey>(MapKey *param_1,_Rb_tree_iterator *param_2)
{
long lVar1;
_Rb_tree<std::reference_wrapper<google::protobuf::MapKey_const>,std::pair<std::reference_wrapper<google::protobuf::MapKey_const>const,void*>,std::_Select1st<std::pair<std::reference_wrapper<google::protobuf::MapKey_const>const,void*>>,std::less<google::protobuf::MapKey>,google::protobuf::internal::MapAllocator<std::pair<std::reference_wrapper<google::protobuf::MapKey_const>const,void*>>>
*this;
char cVar2;
ulong uVar3;
_Rb_tree<std::reference_wrapper<google::protobuf::MapKey_const>,std::pair<std::reference_wrapper<google::protobuf::MapKey_const>const,void*>,std::_Select1st<std::pair<std::reference_wrapper<google::protobuf::MapKey_const>const,void*>>,std::less<google::protobuf::MapKey>,google::protobuf::internal::MapAllocator<std::pair<std::reference_wrapper<google::protobuf::MapKey_const>const,void*>>>
*p_Var4;
int8 *in_RCX;
MapKey *in_RDX;
uint uVar5;
MapKey *this_00;
reference_wrapper local_38 [8];
uVar3 = std::hash<google::protobuf::MapKey>::operator()
((hash<google::protobuf::MapKey> *)param_2,in_RDX);
uVar5 = (uint)((uVar3 ^ *(ulong *)(param_2 + 0x10)) * -0x61c8864680b583eb >> 0x20) &
*(int *)(param_2 + 8) - 1U;
uVar3 = (ulong)uVar5;
lVar1 = *(long *)(param_2 + 0x20);
this_00 = *(MapKey **)(lVar1 + uVar3 * 8);
if (this_00 != (MapKey *)0x0) {
if (this_00 == *(MapKey **)(lVar1 + (uVar3 ^ 1) * 8)) {
uVar3 = (ulong)(uVar5 & 0xfffffffe);
this = *(_Rb_tree<std::reference_wrapper<google::protobuf::MapKey_const>,std::pair<std::reference_wrapper<google::protobuf::MapKey_const>const,void*>,std::_Select1st<std::pair<std::reference_wrapper<google::protobuf::MapKey_const>const,void*>>,std::less<google::protobuf::MapKey>,google::protobuf::internal::MapAllocator<std::pair<std::reference_wrapper<google::protobuf::MapKey_const>const,void*>>>
**)(lVar1 + uVar3 * 8);
p_Var4 = (_Rb_tree<std::reference_wrapper<google::protobuf::MapKey_const>,std::pair<std::reference_wrapper<google::protobuf::MapKey_const>const,void*>,std::_Select1st<std::pair<std::reference_wrapper<google::protobuf::MapKey_const>const,void*>>,std::less<google::protobuf::MapKey>,google::protobuf::internal::MapAllocator<std::pair<std::reference_wrapper<google::protobuf::MapKey_const>const,void*>>>
*)std::
_Rb_tree<std::reference_wrapper<google::protobuf::MapKey_const>,std::pair<std::reference_wrapper<google::protobuf::MapKey_const>const,void*>,std::_Select1st<std::pair<std::reference_wrapper<google::protobuf::MapKey_const>const,void*>>,std::less<google::protobuf::MapKey>,google::protobuf::internal::MapAllocator<std::pair<std::reference_wrapper<google::protobuf::MapKey_const>const,void*>>>
::find(this,local_38);
if (p_Var4 != this + 0x10) {
if (in_RCX != (int8 *)0x0) {
*in_RCX = p_Var4;
}
*(int8 *)param_1 = *(int8 *)(p_Var4 + 0x28);
LAB_001764e3:
*(_Rb_tree_iterator **)(param_1 + 8) = param_2;
*(ulong *)(param_1 + 0x10) = uVar3;
goto LAB_001764eb;
}
}
else {
do {
cVar2 = MapKey::operator==(this_00,in_RDX);
if (cVar2 != '\0') {
*(MapKey **)param_1 = this_00;
goto LAB_001764e3;
}
this_00 = *(MapKey **)(this_00 + 0x38);
} while (this_00 != (MapKey *)0x0);
}
}
*(int8 *)param_1 = 0;
*(int8 *)(param_1 + 8) = 0;
*(int8 *)(param_1 + 0x10) = 0;
LAB_001764eb:
*(ulong *)(param_1 + 0x18) = uVar3;
return param_1;
}
| |
25,103 | my_filename | eloqsql/mysys/my_div.c | char * my_filename(File fd)
{
DBUG_ENTER("my_filename");
if ((uint) fd >= (uint) my_file_limit || !my_file_info[fd].name)
DBUG_RETURN((char*) "UNKNOWN");
if (fd >= 0 && my_file_info[fd].type != UNOPEN)
{
DBUG_RETURN(my_file_info[fd].name);
}
else
DBUG_RETURN((char*) "UNOPENED"); /* Debug message */
} | O0 | c | my_filename:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0xc(%rbp)
movl -0xc(%rbp), %eax
leaq 0x19a7ff(%rip), %rcx # 0x1cf420
cmpl (%rcx), %eax
jae 0x34c40
leaq 0x19a7fc(%rip), %rax # 0x1cf428
movq (%rax), %rax
movslq -0xc(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
cmpq $0x0, (%rax)
jne 0x34c4f
jmp 0x34c42
leaq 0x4658c(%rip), %rax # 0x7b1d5
movq %rax, -0x8(%rbp)
jmp 0x34c9d
cmpl $0x0, -0xc(%rbp)
jl 0x34c90
leaq 0x19a7cc(%rip), %rax # 0x1cf428
movq (%rax), %rax
movslq -0xc(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
cmpl $0x0, 0x8(%rax)
je 0x34c90
jmp 0x34c72
leaq 0x19a7af(%rip), %rax # 0x1cf428
movq (%rax), %rax
movslq -0xc(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0x34c9d
jmp 0x34c92
leaq 0x46544(%rip), %rax # 0x7b1dd
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| my_filename:
push rbp
mov rbp, rsp
mov [rbp+var_C], edi
mov eax, [rbp+var_C]
lea rcx, my_file_limit
cmp eax, [rcx]
jnb short loc_34C40
lea rax, my_file_info
mov rax, [rax]
movsxd rcx, [rbp+var_C]
shl rcx, 4
add rax, rcx
cmp qword ptr [rax], 0
jnz short loc_34C4F
loc_34C40:
jmp short $+2
loc_34C42:
lea rax, aUnknown_0; "UNKNOWN"
mov [rbp+var_8], rax
jmp short loc_34C9D
loc_34C4F:
cmp [rbp+var_C], 0
jl short loc_34C90
lea rax, my_file_info
mov rax, [rax]
movsxd rcx, [rbp+var_C]
shl rcx, 4
add rax, rcx
cmp dword ptr [rax+8], 0
jz short loc_34C90
jmp short $+2
loc_34C72:
lea rax, my_file_info
mov rax, [rax]
movsxd rcx, [rbp+var_C]
shl rcx, 4
add rax, rcx
mov rax, [rax]
mov [rbp+var_8], rax
jmp short loc_34C9D
loc_34C90:
jmp short $+2
loc_34C92:
lea rax, aUnopened; "UNOPENED"
mov [rbp+var_8], rax
loc_34C9D:
mov rax, [rbp+var_8]
pop rbp
retn
| const char * my_filename(int a1)
{
if ( (unsigned int)a1 >= my_file_limit || !*((_QWORD *)my_file_info + 2 * a1) )
return "UNKNOWN";
if ( a1 >= 0 && *((_DWORD *)my_file_info + 4 * a1 + 2) )
return (const char *)*((_QWORD *)my_file_info + 2 * a1);
return "UNOPENED";
}
| my_filename:
PUSH RBP
MOV RBP,RSP
MOV dword ptr [RBP + -0xc],EDI
MOV EAX,dword ptr [RBP + -0xc]
LEA RCX,[0x2cf420]
CMP EAX,dword ptr [RCX]
JNC 0x00134c40
LEA RAX,[0x2cf428]
MOV RAX,qword ptr [RAX]
MOVSXD RCX,dword ptr [RBP + -0xc]
SHL RCX,0x4
ADD RAX,RCX
CMP qword ptr [RAX],0x0
JNZ 0x00134c4f
LAB_00134c40:
JMP 0x00134c42
LAB_00134c42:
LEA RAX,[0x17b1d5]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00134c9d
LAB_00134c4f:
CMP dword ptr [RBP + -0xc],0x0
JL 0x00134c90
LEA RAX,[0x2cf428]
MOV RAX,qword ptr [RAX]
MOVSXD RCX,dword ptr [RBP + -0xc]
SHL RCX,0x4
ADD RAX,RCX
CMP dword ptr [RAX + 0x8],0x0
JZ 0x00134c90
JMP 0x00134c72
LAB_00134c72:
LEA RAX,[0x2cf428]
MOV RAX,qword ptr [RAX]
MOVSXD RCX,dword ptr [RBP + -0xc]
SHL RCX,0x4
ADD RAX,RCX
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00134c9d
LAB_00134c90:
JMP 0x00134c92
LAB_00134c92:
LEA RAX,[0x17b1dd]
MOV qword ptr [RBP + -0x8],RAX
LAB_00134c9d:
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
char * my_filename(uint param_1)
{
char *local_10;
if ((param_1 < my_file_limit) && (*(long *)(my_file_info + (long)(int)param_1 * 0x10) != 0)) {
if (((int)param_1 < 0) || (*(int *)(my_file_info + (long)(int)param_1 * 0x10 + 8) == 0)) {
local_10 = "UNOPENED";
}
else {
local_10 = *(char **)(my_file_info + (long)(int)param_1 * 0x10);
}
}
else {
local_10 = "UNKNOWN";
}
return local_10;
}
| |
25,104 | mysql_net_store_length | eloqsql/libmariadb/libmariadb/mariadb_stmt.c | unsigned char *mysql_net_store_length(unsigned char *packet, size_t length)
{
if (length < (unsigned long long) L64(251)) {
*packet = (unsigned char) length;
return packet + 1;
}
if (length < (unsigned long long) L64(65536)) {
*packet++ = 252;
int2store(packet,(uint) length);
return packet + 2;
}
if (length < (unsigned long long) L64(16777216)) {
*packet++ = 253;
int3store(packet,(ulong) length);
return packet + 3;
}
*packet++ = 254;
int8store(packet, length);
return packet + 8;
} | O0 | c | mysql_net_store_length:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpq $0xfb, -0x18(%rbp)
jae 0x26863
movq -0x18(%rbp), %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x8(%rbp)
jmp 0x269b1
cmpq $0x10000, -0x18(%rbp) # imm = 0x10000
jae 0x268b1
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rbp)
movb $-0x4, (%rax)
movq -0x18(%rbp), %rax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
movl -0x1c(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x1(%rax)
movq -0x10(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x8(%rbp)
jmp 0x269b1
cmpq $0x1000000, -0x18(%rbp) # imm = 0x1000000
jae 0x2690c
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rbp)
movb $-0x3, (%rax)
movq -0x18(%rbp), %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
movq -0x18(%rbp), %rax
shrq $0x8, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x1(%rax)
movq -0x18(%rbp), %rax
shrq $0x10, %rax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x2(%rax)
movq -0x10(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x8(%rbp)
jmp 0x269b1
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rbp)
movb $-0x2, (%rax)
movq -0x18(%rbp), %rax
movl %eax, -0x20(%rbp)
movq -0x18(%rbp), %rax
shrq $0x20, %rax
movl %eax, -0x24(%rbp)
movl -0x20(%rbp), %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
movl -0x20(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x1(%rax)
movl -0x20(%rbp), %eax
shrl $0x10, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x2(%rax)
movl -0x20(%rbp), %eax
shrl $0x18, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x3(%rax)
jmp 0x2696a
movl -0x24(%rbp), %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x4(%rax)
movl -0x24(%rbp), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x5(%rax)
movl -0x24(%rbp), %eax
shrl $0x10, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x6(%rax)
movl -0x24(%rbp), %eax
shrl $0x18, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x7(%rax)
jmp 0x269a5
movq -0x10(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nopw (%rax,%rax)
| mysql_net_store_length:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
cmp [rbp+var_18], 0FBh
jnb short loc_26863
mov rax, [rbp+var_18]
mov cl, al
mov rax, [rbp+var_10]
mov [rax], cl
mov rax, [rbp+var_10]
add rax, 1
mov [rbp+var_8], rax
jmp loc_269B1
loc_26863:
cmp [rbp+var_18], offset stru_10000
jnb short loc_268B1
mov rax, [rbp+var_10]
mov rcx, rax
add rcx, 1
mov [rbp+var_10], rcx
mov byte ptr [rax], 0FCh
mov rax, [rbp+var_18]
mov [rbp+var_1C], eax
mov eax, [rbp+var_1C]
mov cl, al
mov rax, [rbp+var_10]
mov [rax], cl
mov eax, [rbp+var_1C]
shr eax, 8
mov cl, al
mov rax, [rbp+var_10]
mov [rax+1], cl
mov rax, [rbp+var_10]
add rax, 2
mov [rbp+var_8], rax
jmp loc_269B1
loc_268B1:
cmp [rbp+var_18], 1000000h
jnb short loc_2690C
mov rax, [rbp+var_10]
mov rcx, rax
add rcx, 1
mov [rbp+var_10], rcx
mov byte ptr [rax], 0FDh
mov rax, [rbp+var_18]
mov cl, al
mov rax, [rbp+var_10]
mov [rax], cl
mov rax, [rbp+var_18]
shr rax, 8
mov cl, al
mov rax, [rbp+var_10]
mov [rax+1], cl
mov rax, [rbp+var_18]
shr rax, 10h
mov cl, al
mov rax, [rbp+var_10]
mov [rax+2], cl
mov rax, [rbp+var_10]
add rax, 3
mov [rbp+var_8], rax
jmp loc_269B1
loc_2690C:
mov rax, [rbp+var_10]
mov rcx, rax
add rcx, 1
mov [rbp+var_10], rcx
mov byte ptr [rax], 0FEh
mov rax, [rbp+var_18]
mov [rbp+var_20], eax
mov rax, [rbp+var_18]
shr rax, 20h
mov [rbp+var_24], eax
mov eax, [rbp+var_20]
mov cl, al
mov rax, [rbp+var_10]
mov [rax], cl
mov eax, [rbp+var_20]
shr eax, 8
mov cl, al
mov rax, [rbp+var_10]
mov [rax+1], cl
mov eax, [rbp+var_20]
shr eax, 10h
mov cl, al
mov rax, [rbp+var_10]
mov [rax+2], cl
mov eax, [rbp+var_20]
shr eax, 18h
mov cl, al
mov rax, [rbp+var_10]
mov [rax+3], cl
jmp short $+2
loc_2696A:
mov eax, [rbp+var_24]
mov cl, al
mov rax, [rbp+var_10]
mov [rax+4], cl
mov eax, [rbp+var_24]
shr eax, 8
mov cl, al
mov rax, [rbp+var_10]
mov [rax+5], cl
mov eax, [rbp+var_24]
shr eax, 10h
mov cl, al
mov rax, [rbp+var_10]
mov [rax+6], cl
mov eax, [rbp+var_24]
shr eax, 18h
mov cl, al
mov rax, [rbp+var_10]
mov [rax+7], cl
jmp short $+2
loc_269A5:
mov rax, [rbp+var_10]
add rax, 8
mov [rbp+var_8], rax
loc_269B1:
mov rax, [rbp+var_8]
pop rbp
retn
| long long mysql_net_store_length(long long a1, unsigned long long a2)
{
_BYTE *v3; // [rsp+14h] [rbp-10h]
if ( a2 >= 0xFB )
{
if ( a2 >= (unsigned long long)&stru_10000 )
{
v3 = (_BYTE *)(a1 + 1);
if ( a2 >= 0x1000000 )
{
*(_BYTE *)a1 = -2;
*v3 = a2;
*(_WORD *)(a1 + 2) = (unsigned int)a2 >> 8;
*(_BYTE *)(a1 + 4) = BYTE3(a2);
*(_WORD *)(a1 + 5) = WORD2(a2);
*(_BYTE *)(a1 + 7) = BYTE6(a2);
*(_BYTE *)(a1 + 8) = HIBYTE(a2);
return a1 + 9;
}
else
{
*(_BYTE *)a1 = -3;
*(_WORD *)v3 = a2;
*(_BYTE *)(a1 + 3) = BYTE2(a2);
return a1 + 4;
}
}
else
{
*(_BYTE *)a1 = -4;
*(_WORD *)(a1 + 1) = a2;
return a1 + 3;
}
}
else
{
*(_BYTE *)a1 = a2;
return a1 + 1;
}
}
| mysql_net_store_length:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
CMP qword ptr [RBP + -0x18],0xfb
JNC 0x00126863
MOV RAX,qword ptr [RBP + -0x18]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x1
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001269b1
LAB_00126863:
CMP qword ptr [RBP + -0x18],0x10000
JNC 0x001268b1
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x10],RCX
MOV byte ptr [RAX],0xfc
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RBP + -0x1c],EAX
MOV EAX,dword ptr [RBP + -0x1c]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
MOV EAX,dword ptr [RBP + -0x1c]
SHR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x1],CL
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x2
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001269b1
LAB_001268b1:
CMP qword ptr [RBP + -0x18],0x1000000
JNC 0x0012690c
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x10],RCX
MOV byte ptr [RAX],0xfd
MOV RAX,qword ptr [RBP + -0x18]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x18]
SHR RAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x1],CL
MOV RAX,qword ptr [RBP + -0x18]
SHR RAX,0x10
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x2],CL
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x3
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001269b1
LAB_0012690c:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x10],RCX
MOV byte ptr [RAX],0xfe
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RBP + -0x20],EAX
MOV RAX,qword ptr [RBP + -0x18]
SHR RAX,0x20
MOV dword ptr [RBP + -0x24],EAX
MOV EAX,dword ptr [RBP + -0x20]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
MOV EAX,dword ptr [RBP + -0x20]
SHR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x1],CL
MOV EAX,dword ptr [RBP + -0x20]
SHR EAX,0x10
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x2],CL
MOV EAX,dword ptr [RBP + -0x20]
SHR EAX,0x18
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x3],CL
JMP 0x0012696a
LAB_0012696a:
MOV EAX,dword ptr [RBP + -0x24]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x4],CL
MOV EAX,dword ptr [RBP + -0x24]
SHR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x5],CL
MOV EAX,dword ptr [RBP + -0x24]
SHR EAX,0x10
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x6],CL
MOV EAX,dword ptr [RBP + -0x24]
SHR EAX,0x18
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x7],CL
JMP 0x001269a5
LAB_001269a5:
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x8
MOV qword ptr [RBP + -0x8],RAX
LAB_001269b1:
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
int1 * mysql_net_store_length(int1 *param_1,ulong param_2)
{
int1 uVar1;
int1 uVar2;
int1 uVar3;
int1 *local_10;
uVar1 = (int1)param_2;
if (param_2 < 0xfb) {
*param_1 = uVar1;
local_10 = param_1 + 1;
}
else {
uVar3 = (int1)(param_2 >> 8);
if (param_2 < 0x10000) {
*param_1 = 0xfc;
param_1[1] = uVar1;
param_1[2] = uVar3;
local_10 = param_1 + 3;
}
else {
uVar2 = (int1)(param_2 >> 0x10);
if (param_2 < 0x1000000) {
*param_1 = 0xfd;
param_1[1] = uVar1;
param_1[2] = uVar3;
param_1[3] = uVar2;
local_10 = param_1 + 4;
}
else {
*param_1 = 0xfe;
param_1[1] = uVar1;
param_1[2] = uVar3;
param_1[3] = uVar2;
param_1[4] = (char)(param_2 >> 0x18);
param_1[5] = (char)(param_2 >> 0x20);
param_1[6] = (char)(param_2 >> 0x28);
param_1[7] = (char)(param_2 >> 0x30);
param_1[8] = (char)(param_2 >> 0x38);
local_10 = param_1 + 9;
}
}
}
return local_10;
}
| |
25,105 | mysql_net_store_length | eloqsql/libmariadb/libmariadb/mariadb_stmt.c | unsigned char *mysql_net_store_length(unsigned char *packet, size_t length)
{
if (length < (unsigned long long) L64(251)) {
*packet = (unsigned char) length;
return packet + 1;
}
if (length < (unsigned long long) L64(65536)) {
*packet++ = 252;
int2store(packet,(uint) length);
return packet + 2;
}
if (length < (unsigned long long) L64(16777216)) {
*packet++ = 253;
int3store(packet,(ulong) length);
return packet + 3;
}
*packet++ = 254;
int8store(packet, length);
return packet + 8;
} | O3 | c | mysql_net_store_length:
pushq %rbp
movq %rsp, %rbp
movq %rsi, %rcx
movq %rdi, %rax
cmpq $0xfa, %rsi
ja 0x1ed4b
movb %cl, (%rax)
movl $0x1, %ecx
jmp 0x1edc8
cmpq $0xffff, %rcx # imm = 0xFFFF
ja 0x1ed64
movb $-0x4, (%rax)
movb %cl, 0x1(%rax)
movb %ch, 0x2(%rax)
movl $0x3, %ecx
jmp 0x1edc8
cmpq $0xffffff, %rcx # imm = 0xFFFFFF
ja 0x1ed83
movb $-0x3, (%rax)
movb %cl, 0x1(%rax)
movb %ch, 0x2(%rax)
shrl $0x10, %ecx
movb %cl, 0x3(%rax)
movl $0x4, %ecx
jmp 0x1edc8
movb $-0x2, (%rax)
movq %rcx, %rdx
shrq $0x20, %rdx
movb %cl, 0x1(%rax)
movb %ch, 0x2(%rax)
movl %ecx, %esi
shrl $0x10, %esi
movb %sil, 0x3(%rax)
movl %ecx, %esi
shrl $0x18, %esi
movb %sil, 0x4(%rax)
movb %dl, 0x5(%rax)
movq %rcx, %rdx
shrq $0x28, %rdx
movb %dl, 0x6(%rax)
movq %rcx, %rdx
shrq $0x30, %rdx
movb %dl, 0x7(%rax)
shrq $0x38, %rcx
movb %cl, 0x8(%rax)
movl $0x9, %ecx
addq %rcx, %rax
popq %rbp
retq
| mysql_net_store_length:
push rbp
mov rbp, rsp
mov rcx, rsi
mov rax, rdi
cmp rsi, 0FAh
ja short loc_1ED4B
mov [rax], cl
mov ecx, 1
jmp short loc_1EDC8
loc_1ED4B:
cmp rcx, 0FFFFh
ja short loc_1ED64
mov byte ptr [rax], 0FCh
mov [rax+1], cl
mov [rax+2], ch
mov ecx, 3
jmp short loc_1EDC8
loc_1ED64:
cmp rcx, 0FFFFFFh
ja short loc_1ED83
mov byte ptr [rax], 0FDh
mov [rax+1], cl
mov [rax+2], ch
shr ecx, 10h
mov [rax+3], cl
mov ecx, 4
jmp short loc_1EDC8
loc_1ED83:
mov byte ptr [rax], 0FEh
mov rdx, rcx
shr rdx, 20h
mov [rax+1], cl
mov [rax+2], ch
mov esi, ecx
shr esi, 10h
mov [rax+3], sil
mov esi, ecx
shr esi, 18h
mov [rax+4], sil
mov [rax+5], dl
mov rdx, rcx
shr rdx, 28h
mov [rax+6], dl
mov rdx, rcx
shr rdx, 30h
mov [rax+7], dl
shr rcx, 38h
mov [rax+8], cl
mov ecx, 9
loc_1EDC8:
add rax, rcx
pop rbp
retn
| long long mysql_net_store_length(long long a1, unsigned long long a2)
{
long long v2; // rcx
if ( a2 > 0xFA )
{
if ( a2 > 0xFFFF )
{
if ( a2 > 0xFFFFFF )
{
*(_BYTE *)a1 = -2;
*(_QWORD *)(a1 + 1) = a2;
v2 = 9LL;
}
else
{
*(_BYTE *)a1 = -3;
*(_WORD *)(a1 + 1) = a2;
*(_BYTE *)(a1 + 3) = BYTE2(a2);
v2 = 4LL;
}
}
else
{
*(_BYTE *)a1 = -4;
*(_WORD *)(a1 + 1) = a2;
v2 = 3LL;
}
}
else
{
*(_BYTE *)a1 = a2;
v2 = 1LL;
}
return v2 + a1;
}
| mysql_net_store_length:
PUSH RBP
MOV RBP,RSP
MOV RCX,RSI
MOV RAX,RDI
CMP RSI,0xfa
JA 0x0011ed4b
MOV byte ptr [RAX],CL
MOV ECX,0x1
JMP 0x0011edc8
LAB_0011ed4b:
CMP RCX,0xffff
JA 0x0011ed64
MOV byte ptr [RAX],0xfc
MOV byte ptr [RAX + 0x1],CL
MOV byte ptr [RAX + 0x2],CH
MOV ECX,0x3
JMP 0x0011edc8
LAB_0011ed64:
CMP RCX,0xffffff
JA 0x0011ed83
MOV byte ptr [RAX],0xfd
MOV byte ptr [RAX + 0x1],CL
MOV byte ptr [RAX + 0x2],CH
SHR ECX,0x10
MOV byte ptr [RAX + 0x3],CL
MOV ECX,0x4
JMP 0x0011edc8
LAB_0011ed83:
MOV byte ptr [RAX],0xfe
MOV RDX,RCX
SHR RDX,0x20
MOV byte ptr [RAX + 0x1],CL
MOV byte ptr [RAX + 0x2],CH
MOV ESI,ECX
SHR ESI,0x10
MOV byte ptr [RAX + 0x3],SIL
MOV ESI,ECX
SHR ESI,0x18
MOV byte ptr [RAX + 0x4],SIL
MOV byte ptr [RAX + 0x5],DL
MOV RDX,RCX
SHR RDX,0x28
MOV byte ptr [RAX + 0x6],DL
MOV RDX,RCX
SHR RDX,0x30
MOV byte ptr [RAX + 0x7],DL
SHR RCX,0x38
MOV byte ptr [RAX + 0x8],CL
MOV ECX,0x9
LAB_0011edc8:
ADD RAX,RCX
POP RBP
RET
|
int1 * mysql_net_store_length(int1 *param_1,ulong param_2)
{
int1 uVar1;
int1 uVar2;
int1 uVar4;
long lVar3;
uVar1 = (int1)param_2;
if (param_2 < 0xfb) {
*param_1 = uVar1;
lVar3 = 1;
}
else {
uVar4 = (int1)(param_2 >> 8);
if (param_2 < 0x10000) {
*param_1 = 0xfc;
param_1[1] = uVar1;
param_1[2] = uVar4;
lVar3 = 3;
}
else {
uVar2 = (int1)(param_2 >> 0x10);
if (param_2 < 0x1000000) {
*param_1 = 0xfd;
param_1[1] = uVar1;
param_1[2] = uVar4;
param_1[3] = uVar2;
lVar3 = 4;
}
else {
*param_1 = 0xfe;
param_1[1] = uVar1;
param_1[2] = uVar4;
param_1[3] = uVar2;
param_1[4] = (char)(param_2 >> 0x18);
param_1[5] = (char)(param_2 >> 0x20);
param_1[6] = (char)(param_2 >> 0x28);
param_1[7] = (char)(param_2 >> 0x30);
param_1[8] = (char)(param_2 >> 0x38);
lVar3 = 9;
}
}
}
return param_1 + lVar3;
}
| |
25,106 | httplib::Server::create_server_socket(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int, int, std::function<void (int)>) const | monkey531[P]llama/examples/server/httplib.h | inline socket_t
Server::create_server_socket(const std::string &host, int port,
int socket_flags,
SocketOptions socket_options) const {
return detail::create_socket(
host, std::string(), port, address_family_, socket_flags, tcp_nodelay_,
ipv6_v6only_, std::move(socket_options),
[](socket_t sock, struct addrinfo &ai, bool & /*quit*/) -> bool {
if (::bind(sock, ai.ai_addr, static_cast<socklen_t>(ai.ai_addrlen))) {
return false;
}
if (::listen(sock, CPPHTTPLIB_LISTEN_BACKLOG)) { return false; }
return true;
});
} | O1 | c | httplib::Server::create_server_socket(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int, int, std::function<void (int)>) const:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movl %ecx, %eax
movq %rsi, %r10
leaq 0x30(%rsp), %rbx
movq %rbx, -0x10(%rbx)
xorl %r9d, %r9d
movq %r9, -0x8(%rbx)
movb $0x0, (%rbx)
movl 0x2b8(%rdi), %ecx
movb 0x2bc(%rdi), %sil
movb 0x2bd(%rdi), %dil
movq %r9, 0x10(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq 0x18(%r8), %r9
movq %r9, 0x18(%rsp)
movq 0x10(%r8), %r9
testq %r9, %r9
je 0x52eb1
movups (%r8), %xmm1
addq $0x10, %r8
movaps %xmm1, (%rsp)
movq %r9, 0x10(%rsp)
movups %xmm0, (%r8)
movq %rsp, %r11
movzbl %dil, %r14d
movzbl %sil, %r9d
leaq 0x20(%rsp), %rsi
movq %r10, %rdi
movl %eax, %r8d
pushq %r11
pushq %r14
callq 0x52fa6
addq $0x10, %rsp
movl %eax, %ebp
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x52eed
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x20(%rsp), %rdi
cmpq %rbx, %rdi
je 0x52f04
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1fae0
movl %ebp, %eax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x52f40
movq %rax, %r14
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x52f2b
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0x20(%rsp), %rdi
movq %rbx, %rsi
callq 0x208ed
movq %r14, %rdi
callq 0x20380
movq %rax, %rdi
callq 0x4029d
| _ZNK7httplib6Server20create_server_socketERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiiSt8functionIFviEE:
push rbp; int
push r14; int
push rbx; int
sub rsp, 40h
mov eax, ecx
mov r10, rsi
lea rbx, [rsp+58h+var_28]
mov [rbx-10h], rbx
xor r9d, r9d
mov [rbx-8], r9
mov byte ptr [rbx], 0
mov ecx, [rdi+2B8h]; int
mov sil, [rdi+2BCh]
mov dil, [rdi+2BDh]
mov qword ptr [rsp+58h+var_48], r9
xorps xmm0, xmm0
movaps xmmword ptr [rsp+58h+var_58], xmm0
mov r9, [r8+18h]
mov qword ptr [rsp+58h+var_40], r9; int
mov r9, [r8+10h]
test r9, r9
jz short loc_52EB1
movups xmm1, xmmword ptr [r8]
add r8, 10h
movaps xmmword ptr [rsp+58h+var_58], xmm1; __int64
mov qword ptr [rsp+58h+var_48], r9; int
movups xmmword ptr [r8], xmm0
loc_52EB1:
mov r11, rsp
movzx r14d, dil
movzx r9d, sil; int
lea rsi, [rsp+58h+var_38]; int
mov rdi, r10; int
mov r8d, eax; int
push r11; __int64
push r14; void *
call _ZN7httplib6detail13create_socketIZNKS_6Server20create_server_socketERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiiSt8functionIFviEEEUliR8addrinfoRbE_EEiSA_SA_iiibbSD_T_; httplib::detail::create_socket<httplib::Server::create_server_socket(std::string const&,int,int,std::function<void ()(int)>)::{lambda(int,addrinfo &,bool &)#1}>(std::string const&,std::string const&,int,int,int,bool,bool,std::function<void ()(int)>,httplib::Server::create_server_socket(std::string const&,int,int,std::function<void ()(int)>)::{lambda(int,addrinfo &,bool &)#1})
add rsp, 10h
mov ebp, eax
mov rax, qword ptr [rsp+58h+var_48]
test rax, rax
jz short loc_52EED
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
loc_52EED:
mov rdi, [rsp+58h+var_38]; void *
cmp rdi, rbx
jz short loc_52F04
mov rsi, [rsp+58h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_52F04:
mov eax, ebp
add rsp, 40h
pop rbx
pop r14
pop rbp
retn
jmp short loc_52F40
mov r14, rax
mov rax, qword ptr [rsp+58h+var_48]
test rax, rax
jz short loc_52F2B
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
loc_52F2B:
lea rdi, [rsp+58h+var_38]
mov rsi, rbx
call _ZNK7httplib6Server20create_server_socketERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiiSt8functionIFviEE_cold_1; httplib::Server::create_server_socket(std::string const&,int,int,std::function<void ()(int)>) [clone]
mov rdi, r14
call __Unwind_Resume
loc_52F40:
mov rdi, rax
call __clang_call_terminate
| create_server_socket:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x40
MOV EAX,ECX
MOV R10,RSI
LEA RBX,[RSP + 0x30]
MOV qword ptr [RBX + -0x10],RBX
XOR R9D,R9D
MOV qword ptr [RBX + -0x8],R9
MOV byte ptr [RBX],0x0
MOV ECX,dword ptr [RDI + 0x2b8]
MOV SIL,byte ptr [RDI + 0x2bc]
MOV DIL,byte ptr [RDI + 0x2bd]
MOV qword ptr [RSP + 0x10],R9
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
MOV R9,qword ptr [R8 + 0x18]
MOV qword ptr [RSP + 0x18],R9
MOV R9,qword ptr [R8 + 0x10]
TEST R9,R9
JZ 0x00152eb1
MOVUPS XMM1,xmmword ptr [R8]
ADD R8,0x10
MOVAPS xmmword ptr [RSP],XMM1
MOV qword ptr [RSP + 0x10],R9
MOVUPS xmmword ptr [R8],XMM0
LAB_00152eb1:
MOV R11,RSP
MOVZX R14D,DIL
MOVZX R9D,SIL
LEA RSI,[RSP + 0x20]
MOV RDI,R10
MOV R8D,EAX
PUSH R11
PUSH R14
CALL 0x00152fa6
ADD RSP,0x10
MOV EBP,EAX
MOV RAX,qword ptr [RSP + 0x10]
TEST RAX,RAX
JZ 0x00152eed
LAB_00152ee0:
MOV RDI,RSP
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_00152eed:
MOV RDI,qword ptr [RSP + 0x20]
CMP RDI,RBX
JZ 0x00152f04
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x0011fae0
LAB_00152f04:
MOV EAX,EBP
ADD RSP,0x40
POP RBX
POP R14
POP RBP
RET
|
/* httplib::Server::create_server_socket(std::__cxx11::string const&, int, int, std::function<void
(int)>) const */
int __thiscall
httplib::Server::create_server_socket
(Server *this,int8 param_1,int8 param_3_00,int4 param_3,
int8 *param_5)
{
Server SVar1;
Server SVar2;
int4 uVar3;
code *pcVar4;
int iVar5;
int8 local_58;
int8 uStack_50;
code *local_48;
int8 local_40;
int1 *local_38;
int8 local_30;
int1 local_28;
int7 uStack_27;
local_30 = 0;
local_28 = 0;
uVar3 = *(int4 *)(this + 0x2b8);
SVar1 = this[700];
SVar2 = this[0x2bd];
local_48 = (code *)0x0;
local_58 = 0;
uStack_50 = 0;
local_40 = param_5[3];
pcVar4 = (code *)param_5[2];
if (pcVar4 != (code *)0x0) {
local_58 = *param_5;
uStack_50 = param_5[1];
param_5[2] = 0;
param_5[3] = 0;
local_48 = pcVar4;
}
/* try { // try from 00152eb1 to 00152ed3 has its CatchHandler @ 00152f11 */
local_38 = &local_28;
iVar5 = detail::
create_socket<httplib::Server::create_server_socket(std::__cxx11::string_const&,int,int,std::function<void(int)>)const::_lambda(int,addrinfo&,bool&)_1_>
(param_1,&local_38,param_3_00,uVar3,param_3,SVar1,SVar2,&local_58);
if (local_48 != (code *)0x0) {
/* try { // try from 00152ee0 to 00152eec has its CatchHandler @ 00152f0f */
(*local_48)(&local_58,&local_58,3);
}
if (local_38 != &local_28) {
operator_delete(local_38,CONCAT71(uStack_27,local_28) + 1);
}
return iVar5;
}
| ||
25,107 | httplib::Server::create_server_socket(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int, int, std::function<void (int)>) const | monkey531[P]llama/examples/server/httplib.h | inline socket_t
Server::create_server_socket(const std::string &host, int port,
int socket_flags,
SocketOptions socket_options) const {
return detail::create_socket(
host, std::string(), port, address_family_, socket_flags, tcp_nodelay_,
ipv6_v6only_, std::move(socket_options),
[](socket_t sock, struct addrinfo &ai, bool & /*quit*/) -> bool {
if (::bind(sock, ai.ai_addr, static_cast<socklen_t>(ai.ai_addrlen))) {
return false;
}
if (::listen(sock, CPPHTTPLIB_LISTEN_BACKLOG)) { return false; }
return true;
});
} | O3 | c | httplib::Server::create_server_socket(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int, int, std::function<void (int)>) const:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movl %ecx, %eax
movq %rsi, %r10
leaq 0x30(%rsp), %rbx
movq %rbx, -0x10(%rbx)
xorl %r9d, %r9d
movq %r9, -0x8(%rbx)
movb $0x0, (%rbx)
movl 0x2b8(%rdi), %ecx
movb 0x2bc(%rdi), %sil
movb 0x2bd(%rdi), %dil
movq %r9, 0x10(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq 0x18(%r8), %r9
movq %r9, 0x18(%rsp)
movq 0x10(%r8), %r9
testq %r9, %r9
je 0x51e8d
movups (%r8), %xmm1
addq $0x10, %r8
movaps %xmm1, (%rsp)
movq %r9, 0x10(%rsp)
movups %xmm0, (%r8)
movq %rsp, %r11
movzbl %dil, %r14d
movzbl %sil, %r9d
leaq 0x20(%rsp), %rsi
movq %r10, %rdi
movl %eax, %r8d
pushq %r11
pushq %r14
callq 0x51f82
addq $0x10, %rsp
movl %eax, %ebp
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x51ec9
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x20(%rsp), %rdi
cmpq %rbx, %rdi
je 0x51ee0
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1fae0
movl %ebp, %eax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x51f1c
movq %rax, %r14
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x51f07
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0x20(%rsp), %rdi
movq %rbx, %rsi
callq 0x208e9
movq %r14, %rdi
callq 0x20380
movq %rax, %rdi
callq 0x3f24b
| _ZNK7httplib6Server20create_server_socketERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiiSt8functionIFviEE:
push rbp; int
push r14; int
push rbx; int
sub rsp, 40h
mov eax, ecx
mov r10, rsi
lea rbx, [rsp+58h+var_28]
mov [rbx-10h], rbx
xor r9d, r9d
mov [rbx-8], r9
mov byte ptr [rbx], 0
mov ecx, [rdi+2B8h]; int
mov sil, [rdi+2BCh]
mov dil, [rdi+2BDh]
mov qword ptr [rsp+58h+var_48], r9
xorps xmm0, xmm0
movaps xmmword ptr [rsp+58h+var_58], xmm0
mov r9, [r8+18h]
mov qword ptr [rsp+58h+var_40], r9; int
mov r9, [r8+10h]
test r9, r9
jz short loc_51E8D
movups xmm1, xmmword ptr [r8]
add r8, 10h
movaps xmmword ptr [rsp+58h+var_58], xmm1; int
mov qword ptr [rsp+58h+var_48], r9; int
movups xmmword ptr [r8], xmm0
loc_51E8D:
mov r11, rsp
movzx r14d, dil
movzx r9d, sil; int
lea rsi, [rsp+58h+var_38]; int
mov rdi, r10; int
mov r8d, eax; int
push r11; void *
push r14; char
call _ZN7httplib6detail13create_socketIZNKS_6Server20create_server_socketERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiiSt8functionIFviEEEUliR8addrinfoRbE_EEiSA_SA_iiibbSD_T_; httplib::detail::create_socket<httplib::Server::create_server_socket(std::string const&,int,int,std::function<void ()(int)>)::{lambda(int,addrinfo &,bool &)#1}>(std::string const&,std::string const&,int,int,int,bool,bool,std::function<void ()(int)>,httplib::Server::create_server_socket(std::string const&,int,int,std::function<void ()(int)>)::{lambda(int,addrinfo &,bool &)#1})
add rsp, 10h
mov ebp, eax
mov rax, qword ptr [rsp+58h+var_48]
test rax, rax
jz short loc_51EC9
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
loc_51EC9:
mov rdi, [rsp+58h+var_38]; void *
cmp rdi, rbx
jz short loc_51EE0
mov rsi, [rsp+58h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_51EE0:
mov eax, ebp
add rsp, 40h
pop rbx
pop r14
pop rbp
retn
jmp short loc_51F1C
mov r14, rax
mov rax, qword ptr [rsp+58h+var_48]
test rax, rax
jz short loc_51F07
mov rdi, rsp
mov rsi, rdi
mov edx, 3
call rax
loc_51F07:
lea rdi, [rsp+58h+var_38]
mov rsi, rbx
call _ZNK7httplib6Server20create_server_socketERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiiSt8functionIFviEE_cold_1; httplib::Server::create_server_socket(std::string const&,int,int,std::function<void ()(int)>) [clone]
mov rdi, r14
call __Unwind_Resume
loc_51F1C:
mov rdi, rax
call __clang_call_terminate
| create_server_socket:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x40
MOV EAX,ECX
MOV R10,RSI
LEA RBX,[RSP + 0x30]
MOV qword ptr [RBX + -0x10],RBX
XOR R9D,R9D
MOV qword ptr [RBX + -0x8],R9
MOV byte ptr [RBX],0x0
MOV ECX,dword ptr [RDI + 0x2b8]
MOV SIL,byte ptr [RDI + 0x2bc]
MOV DIL,byte ptr [RDI + 0x2bd]
MOV qword ptr [RSP + 0x10],R9
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
MOV R9,qword ptr [R8 + 0x18]
MOV qword ptr [RSP + 0x18],R9
MOV R9,qword ptr [R8 + 0x10]
TEST R9,R9
JZ 0x00151e8d
MOVUPS XMM1,xmmword ptr [R8]
ADD R8,0x10
MOVAPS xmmword ptr [RSP],XMM1
MOV qword ptr [RSP + 0x10],R9
MOVUPS xmmword ptr [R8],XMM0
LAB_00151e8d:
MOV R11,RSP
MOVZX R14D,DIL
MOVZX R9D,SIL
LEA RSI,[RSP + 0x20]
MOV RDI,R10
MOV R8D,EAX
PUSH R11
PUSH R14
CALL 0x00151f82
ADD RSP,0x10
MOV EBP,EAX
MOV RAX,qword ptr [RSP + 0x10]
TEST RAX,RAX
JZ 0x00151ec9
LAB_00151ebc:
MOV RDI,RSP
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_00151ec9:
MOV RDI,qword ptr [RSP + 0x20]
CMP RDI,RBX
JZ 0x00151ee0
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x0011fae0
LAB_00151ee0:
MOV EAX,EBP
ADD RSP,0x40
POP RBX
POP R14
POP RBP
RET
|
/* httplib::Server::create_server_socket(std::__cxx11::string const&, int, int, std::function<void
(int)>) const */
int __thiscall
httplib::Server::create_server_socket
(Server *this,int8 param_1,int8 param_3_00,int4 param_3,
int8 *param_5)
{
Server SVar1;
Server SVar2;
int4 uVar3;
code *pcVar4;
int iVar5;
int8 local_58;
int8 uStack_50;
code *local_48;
int8 local_40;
int1 *local_38;
int8 local_30;
int1 local_28;
int7 uStack_27;
local_30 = 0;
local_28 = 0;
uVar3 = *(int4 *)(this + 0x2b8);
SVar1 = this[700];
SVar2 = this[0x2bd];
local_48 = (code *)0x0;
local_58 = 0;
uStack_50 = 0;
local_40 = param_5[3];
pcVar4 = (code *)param_5[2];
if (pcVar4 != (code *)0x0) {
local_58 = *param_5;
uStack_50 = param_5[1];
param_5[2] = 0;
param_5[3] = 0;
local_48 = pcVar4;
}
/* try { // try from 00151e8d to 00151eaf has its CatchHandler @ 00151eed */
local_38 = &local_28;
iVar5 = detail::
create_socket<httplib::Server::create_server_socket(std::__cxx11::string_const&,int,int,std::function<void(int)>)const::_lambda(int,addrinfo&,bool&)_1_>
(param_1,&local_38,param_3_00,uVar3,param_3,SVar1,SVar2,&local_58);
if (local_48 != (code *)0x0) {
/* try { // try from 00151ebc to 00151ec8 has its CatchHandler @ 00151eeb */
(*local_48)(&local_58,&local_58,3);
}
if (local_38 != &local_28) {
operator_delete(local_38,CONCAT71(uStack_27,local_28) + 1);
}
return iVar5;
}
| ||
25,108 | CLI::Error::Error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, CLI::ExitCodes) | MikePodsytnik[P]TCRtrie/build_O3/_deps/cli11-src/include/CLI/Error.hpp | Error(std::string name, std::string msg, ExitCodes exit_code) : Error(name, msg, static_cast<int>(exit_code)) {} | O3 | cpp | CLI::Error::Error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, CLI::ExitCodes):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movl %ecx, %ebp
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
movq %rsp, %rdi
movq %rax, %rsi
callq 0x177be
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0x177be
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x7520
leaq 0x330c2(%rip), %rax # 0x49358
movq %rax, (%rbx)
movl %ebp, 0x10(%rbx)
leaq 0x28(%rbx), %rax
movq %rax, 0x18(%rbx)
movq (%rsp), %rcx
cmpq %r15, %rcx
je 0x162bc
movq %rcx, 0x18(%rbx)
movq 0x10(%rsp), %rax
movq %rax, 0x28(%rbx)
jmp 0x162c3
movups (%r15), %xmm0
movups %xmm0, (%rax)
movq 0x8(%rsp), %rax
movq %rax, 0x20(%rbx)
movq %r15, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x1630b
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x7430
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x1630b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x7430
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x16337
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x7430
jmp 0x16337
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x1634d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x7430
movq %rbx, %rdi
callq 0x7780
nop
| _ZN3CLI5ErrorC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_NS_9ExitCodesE:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 40h
mov ebp, ecx
mov r14, rdx
mov rbx, rdi
lea r15, [rsp+68h+var_58]
mov [r15-10h], r15
mov rax, [rsi]
mov rdx, [rsi+8]
add rdx, rax
mov rdi, rsp
mov rsi, rax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea r12, [rsp+68h+var_38]
mov [r12-10h], r12
mov rsi, [r14]
mov rdx, [r14+8]
add rdx, rsi
lea rdi, [rsp+68h+var_48]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rsi, [rsp+68h+var_48]
mov rdi, rbx
call __ZNSt13runtime_errorC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
lea rax, off_49358
mov [rbx], rax
mov [rbx+10h], ebp
lea rax, [rbx+28h]
mov [rbx+18h], rax
mov rcx, [rsp+68h+var_68]
cmp rcx, r15
jz short loc_162BC
mov [rbx+18h], rcx
mov rax, [rsp+68h+var_58]
mov [rbx+28h], rax
jmp short loc_162C3
loc_162BC:
movups xmm0, xmmword ptr [r15]
movups xmmword ptr [rax], xmm0
loc_162C3:
mov rax, [rsp+68h+var_60]
mov [rbx+20h], rax
mov [rsp+68h+var_68], r15
mov [rsp+68h+var_60], 0
mov byte ptr [rsp+68h+var_58], 0
mov rdi, [rsp+68h+var_48]; void *
cmp rdi, r12
jz short loc_1630B
mov rsi, [rsp+68h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
mov rdi, [rsp+68h+var_68]; void *
cmp rdi, r15
jz short loc_1630B
mov rsi, [rsp+68h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1630B:
add rsp, 40h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
mov rbx, rax
mov rdi, [rsp+arg_18]; void *
cmp rdi, r12
jz short loc_16337
mov rsi, [rsp+arg_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_16337
mov rbx, rax
loc_16337:
mov rdi, [rsp+0]; void *
cmp rdi, r15
jz short loc_1634D
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1634D:
mov rdi, rbx
call __Unwind_Resume
| void CLI::Error::Error(long long a1, _QWORD *a2, _QWORD *a3, int a4)
{
void *v6; // [rsp+0h] [rbp-68h] BYREF
long long v7; // [rsp+8h] [rbp-60h]
__int128 v8; // [rsp+10h] [rbp-58h] BYREF
void *v9[2]; // [rsp+20h] [rbp-48h] BYREF
_QWORD v10[7]; // [rsp+30h] [rbp-38h] BYREF
v6 = &v8;
std::string::_M_construct<char *>(&v6, *a2, *a2 + a2[1]);
v9[0] = v10;
std::string::_M_construct<char *>(v9, *a3, *a3 + a3[1]);
std::runtime_error::runtime_error(a1, v9);
*(_QWORD *)a1 = off_49358;
*(_DWORD *)(a1 + 16) = a4;
*(_QWORD *)(a1 + 24) = a1 + 40;
if ( v6 == &v8 )
{
*(_OWORD *)(a1 + 40) = v8;
}
else
{
*(_QWORD *)(a1 + 24) = v6;
*(_QWORD *)(a1 + 40) = v8;
}
*(_QWORD *)(a1 + 32) = v7;
v6 = &v8;
v7 = 0LL;
LOBYTE(v8) = 0;
if ( v9[0] != v10 )
{
operator delete(v9[0], v10[0] + 1LL);
if ( v6 != &v8 )
operator delete(v6, v8 + 1);
}
}
| Error:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x40
MOV EBP,ECX
MOV R14,RDX
MOV RBX,RDI
LEA R15,[RSP + 0x10]
MOV qword ptr [R15 + -0x10],R15
MOV RAX,qword ptr [RSI]
MOV RDX,qword ptr [RSI + 0x8]
ADD RDX,RAX
MOV RDI,RSP
MOV RSI,RAX
CALL 0x001177be
LEA R12,[RSP + 0x30]
MOV qword ptr [R12 + -0x10],R12
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
ADD RDX,RSI
LAB_00116278:
LEA RDI,[RSP + 0x20]
CALL 0x001177be
LAB_00116282:
LEA RSI,[RSP + 0x20]
MOV RDI,RBX
CALL 0x00107520
LAB_0011628f:
LEA RAX,[0x149358]
MOV qword ptr [RBX],RAX
MOV dword ptr [RBX + 0x10],EBP
LEA RAX,[RBX + 0x28]
MOV qword ptr [RBX + 0x18],RAX
MOV RCX,qword ptr [RSP]
CMP RCX,R15
JZ 0x001162bc
MOV qword ptr [RBX + 0x18],RCX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RBX + 0x28],RAX
JMP 0x001162c3
LAB_001162bc:
MOVUPS XMM0,xmmword ptr [R15]
MOVUPS xmmword ptr [RAX],XMM0
LAB_001162c3:
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RBX + 0x20],RAX
MOV qword ptr [RSP],R15
MOV qword ptr [RSP + 0x8],0x0
MOV byte ptr [RSP + 0x10],0x0
MOV RDI,qword ptr [RSP + 0x20]
CMP RDI,R12
JZ 0x0011630b
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x00107430
MOV RDI,qword ptr [RSP]
CMP RDI,R15
JZ 0x0011630b
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x00107430
LAB_0011630b:
ADD RSP,0x40
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* CLI::Error::Error(std::__cxx11::string, std::__cxx11::string, CLI::ExitCodes) */
void __thiscall CLI::Error::Error(Error *this,long *param_2,long *param_3,int4 param_4)
{
int1 *local_68;
int8 local_60;
int1 local_58;
int7 uStack_57;
int8 uStack_50;
long *local_48 [2];
long local_38 [2];
local_68 = &local_58;
std::__cxx11::string::_M_construct<char*>(&local_68,*param_2,param_2[1] + *param_2);
/* try { // try from 00116278 to 00116281 has its CatchHandler @ 00116334 */
local_48[0] = local_38;
std::__cxx11::string::_M_construct<char*>(local_48,*param_3,param_3[1] + *param_3);
/* try { // try from 00116282 to 0011628e has its CatchHandler @ 00116318 */
std::runtime_error::runtime_error((runtime_error *)this,(string *)local_48);
*(int ***)this = &PTR__Error_00149358;
*(int4 *)(this + 0x10) = param_4;
*(Error **)(this + 0x18) = this + 0x28;
if (local_68 == &local_58) {
*(ulong *)(this + 0x28) = CONCAT71(uStack_57,local_58);
*(int8 *)(this + 0x30) = uStack_50;
}
else {
*(int1 **)(this + 0x18) = local_68;
*(ulong *)(this + 0x28) = CONCAT71(uStack_57,local_58);
}
*(int8 *)(this + 0x20) = local_60;
local_60 = 0;
local_58 = 0;
if (local_48[0] != local_38) {
local_68 = &local_58;
operator_delete(local_48[0],local_38[0] + 1);
if (local_68 != &local_58) {
operator_delete(local_68,CONCAT71(uStack_57,local_58) + 1);
}
}
return;
}
| |
25,109 | trnman_init_tmp_trn_for_logging_trid | eloqsql/storage/maria/trnman.c | void trnman_init_tmp_trn_for_logging_trid(TRN *trn)
{
*trn= dummy_transaction_object;
/* Avoid logging short_id */
trn->short_id= 1;
/* Trid gets logged in translog_write_record */
trn->first_undo_lsn= 0;
/* Get next free trid */
trn->trid= trnman_get_min_safe_trid();
} | O0 | c | trnman_init_tmp_trn_for_logging_trid:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
leaq 0x3fe4f9(%rip), %rsi # 0x477880
movl $0xb0, %edx
callq 0x2a090
movq -0x8(%rbp), %rax
movw $0x1, 0xac(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0xa0(%rax)
callq 0x79d50
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x78(%rax)
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| trnman_init_tmp_trn_for_logging_trid:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]
lea rsi, dummy_transaction_object
mov edx, 0B0h
call _memcpy
mov rax, [rbp+var_8]
mov word ptr [rax+0ACh], 1
mov rax, [rbp+var_8]
mov qword ptr [rax+0A0h], 0
call trnman_get_min_safe_trid
mov rcx, rax
mov rax, [rbp+var_8]
mov [rax+78h], rcx
add rsp, 10h
pop rbp
retn
| long long trnman_init_tmp_trn_for_logging_trid(long long a1)
{
long long min_safe_trid; // rcx
long long result; // rax
memcpy(a1, dummy_transaction_object, 176LL);
*(_WORD *)(a1 + 172) = 1;
*(_QWORD *)(a1 + 160) = 0LL;
min_safe_trid = trnman_get_min_safe_trid();
result = a1;
*(_QWORD *)(a1 + 120) = min_safe_trid;
return result;
}
| trnman_init_tmp_trn_for_logging_trid:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[0x577880]
MOV EDX,0xb0
CALL 0x0012a090
MOV RAX,qword ptr [RBP + -0x8]
MOV word ptr [RAX + 0xac],0x1
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0xa0],0x0
CALL 0x00179d50
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x78],RCX
ADD RSP,0x10
POP RBP
RET
|
void trnman_init_tmp_trn_for_logging_trid(void *param_1)
{
int8 uVar1;
memcpy(param_1,dummy_transaction_object,0xb0);
*(int2 *)((long)param_1 + 0xac) = 1;
*(int8 *)((long)param_1 + 0xa0) = 0;
uVar1 = trnman_get_min_safe_trid();
*(int8 *)((long)param_1 + 0x78) = uVar1;
return;
}
| |
25,110 | 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 0x375905(%rip), %rdi # 0x406cd0
callq 0x29060
leaq 0x3758f9(%rip), %rdi # 0x406cd0
movl $0x3, %esi
callq 0x295c0
leaq 0x3758ec(%rip), %rdi # 0x406cd4
callq 0x29060
leaq 0x3758e0(%rip), %rdi # 0x406cd4
movl $0x2, %esi
callq 0x295c0
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,[0x506cd0]
CALL 0x00129060
LEA RDI,[0x506cd0]
MOV ESI,0x3
CALL 0x001295c0
LEA RDI,[0x506cd4]
CALL 0x00129060
LEA RDI,[0x506cd4]
MOV ESI,0x2
CALL 0x001295c0
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;
}
| |
25,111 | google::protobuf::compiler::java::ImmutableEnumOneofFieldLiteGenerator::ImmutableEnumOneofFieldLiteGenerator(google::protobuf::FieldDescriptor const*, int, google::protobuf::compiler::java::Context*) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/java/enum_field_lite.cc | ImmutableEnumOneofFieldLiteGenerator::ImmutableEnumOneofFieldLiteGenerator(
const FieldDescriptor* descriptor, int messageBitIndex, Context* context)
: ImmutableEnumFieldLiteGenerator(descriptor, messageBitIndex, context) {
const OneofGeneratorInfo* info =
context->GetOneofGeneratorInfo(descriptor->containing_oneof());
SetCommonOneofVariables(descriptor, info, &variables_);
} | O3 | cpp | google::protobuf::compiler::java::ImmutableEnumOneofFieldLiteGenerator::ImmutableEnumOneofFieldLiteGenerator(google::protobuf::FieldDescriptor const*, int, google::protobuf::compiler::java::Context*):
pushq %r15
pushq %r14
pushq %rbx
movq %rcx, %r15
movq %rsi, %r14
movq %rdi, %rbx
callq 0xf596c
leaq 0x18402e(%rip), %rax # 0x27b230
movq %rax, (%rbx)
testb $0x10, 0x1(%r14)
je 0xf7212
movq 0x28(%r14), %rsi
jmp 0xf7214
xorl %esi, %esi
movq %r15, %rdi
callq 0xcef84
leaq 0x10(%rbx), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0xd55f7
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
leaq 0x183f95(%rip), %rax # 0x27b1d0
movq %rax, (%rbx)
leaq 0x10(%rbx), %rdi
callq 0x2e5e0
movq %rbx, %rdi
callq 0xd46c6
movq %r14, %rdi
callq 0x1f860
nop
| _ZN6google8protobuf8compiler4java36ImmutableEnumOneofFieldLiteGeneratorC2EPKNS0_15FieldDescriptorEiPNS2_7ContextE:
push r15; int
push r14; int
push rbx; void *
mov r15, rcx
mov r14, rsi
mov rbx, rdi
call _ZN6google8protobuf8compiler4java31ImmutableEnumFieldLiteGeneratorC2EPKNS0_15FieldDescriptorEiPNS2_7ContextE; google::protobuf::compiler::java::ImmutableEnumFieldLiteGenerator::ImmutableEnumFieldLiteGenerator(google::protobuf::FieldDescriptor const*,int,google::protobuf::compiler::java::Context *)
lea rax, off_27B230
mov [rbx], rax
test byte ptr [r14+1], 10h
jz short loc_F7212
mov rsi, [r14+28h]
jmp short loc_F7214
loc_F7212:
xor esi, esi
loc_F7214:
mov rdi, r15
call _ZNK6google8protobuf8compiler4java7Context21GetOneofGeneratorInfoEPKNS0_15OneofDescriptorE; google::protobuf::compiler::java::Context::GetOneofGeneratorInfo(google::protobuf::OneofDescriptor const*)
lea rdx, [rbx+10h]; int
mov rdi, r14; int
mov rsi, rax; int
call _ZN6google8protobuf8compiler4java23SetCommonOneofVariablesEPKNS0_15FieldDescriptorEPKNS2_18OneofGeneratorInfoEPSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESF_St4lessISF_ESaISt4pairIKSF_SF_EEE; google::protobuf::compiler::java::SetCommonOneofVariables(google::protobuf::FieldDescriptor const*,google::protobuf::compiler::java::OneofGeneratorInfo const*,std::map<std::string,std::string> *)
pop rbx
pop r14
pop r15
retn
mov r14, rax
lea rax, off_27B1D0
mov [rbx], rax
lea rdi, [rbx+10h]
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree()
mov rdi, rbx; this
call _ZN6google8protobuf8compiler4java27ImmutableFieldLiteGeneratorD2Ev; google::protobuf::compiler::java::ImmutableFieldLiteGenerator::~ImmutableFieldLiteGenerator()
mov rdi, r14
call __Unwind_Resume
| void google::protobuf::compiler::java::ImmutableEnumOneofFieldLiteGenerator::ImmutableEnumOneofFieldLiteGenerator(
google::protobuf::compiler::java::ImmutableEnumOneofFieldLiteGenerator *this,
const google::protobuf::OneofDescriptor **a2,
int a3,
google::protobuf::compiler::java::Context *a4)
{
const google::protobuf::OneofDescriptor *v6; // rsi
char *OneofGeneratorInfo; // rax
google::protobuf::compiler::java::ImmutableEnumFieldLiteGenerator::ImmutableEnumFieldLiteGenerator(
this,
(const google::protobuf::FieldDescriptor *)a2,
a3,
a4);
*(_QWORD *)this = off_27B230;
if ( (*((_BYTE *)a2 + 1) & 0x10) != 0 )
v6 = a2[5];
else
v6 = 0LL;
OneofGeneratorInfo = google::protobuf::compiler::java::Context::GetOneofGeneratorInfo(a4, v6);
google::protobuf::compiler::java::SetCommonOneofVariables(
(long long)a2,
(_BYTE **)OneofGeneratorInfo,
(long long)this + 16);
}
| ImmutableEnumOneofFieldLiteGenerator:
PUSH R15
PUSH R14
PUSH RBX
MOV R15,RCX
MOV R14,RSI
MOV RBX,RDI
CALL 0x001f596c
LEA RAX,[0x37b230]
MOV qword ptr [RBX],RAX
TEST byte ptr [R14 + 0x1],0x10
JZ 0x001f7212
MOV RSI,qword ptr [R14 + 0x28]
JMP 0x001f7214
LAB_001f7212:
XOR ESI,ESI
LAB_001f7214:
MOV RDI,R15
CALL 0x001cef84
LEA RDX,[RBX + 0x10]
MOV RDI,R14
MOV RSI,RAX
CALL 0x001d55f7
LAB_001f722b:
POP RBX
POP R14
POP R15
RET
|
/* google::protobuf::compiler::java::ImmutableEnumOneofFieldLiteGenerator::ImmutableEnumOneofFieldLiteGenerator(google::protobuf::FieldDescriptor
const*, int, google::protobuf::compiler::java::Context*) */
void __thiscall
google::protobuf::compiler::java::ImmutableEnumOneofFieldLiteGenerator::
ImmutableEnumOneofFieldLiteGenerator
(ImmutableEnumOneofFieldLiteGenerator *this,FieldDescriptor *param_1,int param_2,
Context *param_3)
{
OneofGeneratorInfo *pOVar1;
OneofDescriptor *pOVar2;
ImmutableEnumFieldLiteGenerator::ImmutableEnumFieldLiteGenerator
((ImmutableEnumFieldLiteGenerator *)this,param_1,param_2,param_3);
*(int ***)this = &PTR__ImmutableEnumOneofFieldLiteGenerator_0037b230;
if (((byte)param_1[1] & 0x10) == 0) {
pOVar2 = (OneofDescriptor *)0x0;
}
else {
pOVar2 = *(OneofDescriptor **)(param_1 + 0x28);
}
/* try { // try from 001f7214 to 001f722a has its CatchHandler @ 001f7231 */
pOVar1 = (OneofGeneratorInfo *)Context::GetOneofGeneratorInfo(param_3,pOVar2);
SetCommonOneofVariables(param_1,pOVar1,(map *)(this + 0x10));
return;
}
| |
25,112 | my_atod | eloqsql/libmariadb/libmariadb/ma_stmt_codec.c | double my_atod(const char *number, const char *end, int *error)
{
double val= 0.0;
char buffer[MAX_DBL_STR + 1];
int len= (int)(end - number);
*error= errno= 0;
if (len > MAX_DBL_STR)
{
*error= 1;
len= MAX_DBL_STR;
}
memcpy(buffer, number, len);
buffer[len]= '\0';
val= strtod(buffer, NULL);
if (errno)
*error= errno;
return val;
} | O3 | c | my_atod:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x448, %rsp # imm = 0x448
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r12
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
subq %rdi, %r15
callq 0x13060
movq %rax, %r14
movl $0x0, (%rax)
xorl %eax, %eax
cmpl $0x436, %r15d # imm = 0x436
setge %al
movl %eax, (%rbx)
movslq %r15d, %rax
movl $0x435, %r15d # imm = 0x435
cmovlq %rax, %r15
leaq -0x470(%rbp), %r13
movl $0x436, %ecx # imm = 0x436
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x13770
movb $0x0, -0x470(%rbp,%r15)
movq %r13, %rdi
xorl %esi, %esi
callq 0x13350
movl (%r14), %eax
testl %eax, %eax
je 0x23896
movl %eax, (%rbx)
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x238b7
addq $0x448, %rsp # imm = 0x448
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x13500
| my_atod:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 448h
mov rbx, rdx
mov r15, rsi
mov r12, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
sub r15, rdi
call ___errno_location
mov r14, rax
mov dword ptr [rax], 0
xor eax, eax
cmp r15d, 436h
setnl al
mov [rbx], eax
movsxd rax, r15d
mov r15d, 435h
cmovl r15, rax
lea r13, [rbp+var_470]
mov ecx, 436h
mov rdi, r13
mov rsi, r12
mov rdx, r15
call ___memcpy_chk
mov [rbp+r15+var_470], 0
mov rdi, r13
xor esi, esi
call _strtod
mov eax, [r14]
test eax, eax
jz short loc_23896
mov [rbx], eax
loc_23896:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_238B7
add rsp, 448h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_238B7:
call ___stack_chk_fail
| unsigned long long my_atod(long long a1, int a2, _DWORD *a3)
{
_DWORD *v4; // r14
long long v5; // r15
_BYTE v7[1088]; // [rsp+0h] [rbp-470h] BYREF
unsigned long long v8; // [rsp+440h] [rbp-30h]
v8 = __readfsqword(0x28u);
v4 = (_DWORD *)__errno_location(a1);
*v4 = 0;
*a3 = a2 - (int)a1 >= 1078;
v5 = 1077LL;
if ( a2 - (int)a1 < 1078 )
v5 = a2 - (int)a1;
__memcpy_chk(v7, a1, v5, 1078LL);
v7[v5] = 0;
strtod(v7, 0LL);
if ( *v4 )
*a3 = *v4;
return __readfsqword(0x28u);
}
| my_atod:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x448
MOV RBX,RDX
MOV R15,RSI
MOV R12,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
SUB R15,RDI
CALL 0x00113060
MOV R14,RAX
MOV dword ptr [RAX],0x0
XOR EAX,EAX
CMP R15D,0x436
SETGE AL
MOV dword ptr [RBX],EAX
MOVSXD RAX,R15D
MOV R15D,0x435
CMOVL R15,RAX
LEA R13,[RBP + -0x470]
MOV ECX,0x436
MOV RDI,R13
MOV RSI,R12
MOV RDX,R15
CALL 0x00113770
MOV byte ptr [RBP + R15*0x1 + -0x470],0x0
MOV RDI,R13
XOR ESI,ESI
CALL 0x00113350
MOV EAX,dword ptr [R14]
TEST EAX,EAX
JZ 0x00123896
MOV dword ptr [RBX],EAX
LAB_00123896:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x001238b7
ADD RSP,0x448
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001238b7:
CALL 0x00113500
|
void my_atod(int8 param_1,int param_2,uint *param_3)
{
uint *puVar1;
long lVar2;
long in_FS_OFFSET;
char local_478 [1088];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
param_2 = param_2 - (int)param_1;
puVar1 = (uint *)__errno_location();
*puVar1 = 0;
*param_3 = (uint)(0x435 < param_2);
lVar2 = 0x435;
if (param_2 < 0x436) {
lVar2 = (long)param_2;
}
__memcpy_chk(local_478,param_1,lVar2,0x436);
local_478[lVar2] = '\0';
strtod(local_478,(char **)0x0);
if (*puVar1 != 0) {
*param_3 = *puVar1;
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
25,113 | vemit_tap | eloqsql/unittest/mytap/tap.c | static void
vemit_tap(int pass, char const *fmt, va_list ap)
{
fprintf(tapout, "%sok %d%s",
pass ? "" : "not ",
++g_test.last,
(fmt && *fmt) ? " - " : "");
if (fmt && *fmt)
vfprintf(tapout, fmt, ap);
fflush(tapout);
} | O0 | c | vemit_tap:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq 0x1b0eae(%rip), %rax # 0x1d5fb8
movq (%rax), %rax
movq %rax, -0x30(%rbp)
movl -0x4(%rbp), %edx
leaq 0x5b1ab(%rip), %rax # 0x802c6
leaq 0x5ec4f(%rip), %rcx # 0x83d71
cmpl $0x0, %edx
cmovneq %rcx, %rax
movq %rax, -0x28(%rbp)
movl 0x368699(%rip), %eax # 0x38d7cc
addl $0x1, %eax
movl %eax, -0x20(%rbp)
movl %eax, 0x36868d(%rip) # 0x38d7cc
xorl %eax, %eax
cmpq $0x0, -0x10(%rbp)
movb %al, -0x19(%rbp)
je 0x2515b
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x19(%rbp)
movl -0x20(%rbp), %ecx
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rdi
movb -0x19(%rbp), %sil
leaq 0x5ec00(%rip), %r8 # 0x83d71
leaq 0x5b153(%rip), %rax # 0x802cb
testb $0x1, %sil
cmovneq %rax, %r8
leaq 0x5b135(%rip), %rsi # 0x802bc
movb $0x0, %al
callq 0x24400
cmpq $0x0, -0x10(%rbp)
je 0x251b8
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x251b8
movq 0x1b0e10(%rip), %rax # 0x1d5fb8
movq (%rax), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x243d0
movq 0x1b0df9(%rip), %rax # 0x1d5fb8
movq (%rax), %rdi
callq 0x24320
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
| vemit_tap:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, cs:stdout_ptr
mov rax, [rax]
mov [rbp+var_30], rax
mov edx, [rbp+var_4]
lea rax, aNot; "not "
lea rcx, asc_83D6D+4; ""
cmp edx, 0
cmovnz rax, rcx
mov [rbp+var_28], rax
mov eax, cs:dword_38D7CC
add eax, 1
mov [rbp+var_20], eax
mov cs:dword_38D7CC, eax
xor eax, eax
cmp [rbp+var_10], 0
mov [rbp+var_19], al
jz short loc_2515B
mov rax, [rbp+var_10]
movsx eax, byte ptr [rax]
cmp eax, 0
setnz al
mov [rbp+var_19], al
loc_2515B:
mov ecx, [rbp+var_20]
mov rdx, [rbp+var_28]
mov rdi, [rbp+var_30]
mov sil, [rbp+var_19]
lea r8, asc_83D6D+4; ""
lea rax, asc_802CB; " - "
test sil, 1
cmovnz r8, rax
lea rsi, aSokDS; "%sok %d%s"
mov al, 0
call _fprintf
cmp [rbp+var_10], 0
jz short loc_251B8
mov rax, [rbp+var_10]
movsx eax, byte ptr [rax]
cmp eax, 0
jz short loc_251B8
mov rax, cs:stdout_ptr
mov rdi, [rax]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
call _vfprintf
loc_251B8:
mov rax, cs:stdout_ptr
mov rdi, [rax]
call _fflush
add rsp, 30h
pop rbp
retn
| long long vemit_tap(int a1, _BYTE *a2, long long a3)
{
const char *v3; // rax
const char *v4; // r8
int v6; // [rsp+10h] [rbp-20h]
bool v7; // [rsp+17h] [rbp-19h]
v3 = "not ";
if ( a1 )
v3 = "";
v6 = ++dword_38D7CC;
v7 = 0;
if ( a2 )
v7 = *a2 != 0;
v4 = "";
if ( v7 )
v4 = " - ";
fprintf(stdout, "%sok %d%s", v3, v6, v4);
if ( a2 && *a2 )
vfprintf(stdout, a2, a3);
return fflush(stdout);
}
| vemit_tap:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [0x002d5fb8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x30],RAX
MOV EDX,dword ptr [RBP + -0x4]
LEA RAX,[0x1802c6]
LEA RCX,[0x183d71]
CMP EDX,0x0
CMOVNZ RAX,RCX
MOV qword ptr [RBP + -0x28],RAX
MOV EAX,dword ptr [0x0048d7cc]
ADD EAX,0x1
MOV dword ptr [RBP + -0x20],EAX
MOV dword ptr [0x0048d7cc],EAX
XOR EAX,EAX
CMP qword ptr [RBP + -0x10],0x0
MOV byte ptr [RBP + -0x19],AL
JZ 0x0012515b
MOV RAX,qword ptr [RBP + -0x10]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0x19],AL
LAB_0012515b:
MOV ECX,dword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
MOV RDI,qword ptr [RBP + -0x30]
MOV SIL,byte ptr [RBP + -0x19]
LEA R8,[0x183d71]
LEA RAX,[0x1802cb]
TEST SIL,0x1
CMOVNZ R8,RAX
LEA RSI,[0x1802bc]
MOV AL,0x0
CALL 0x00124400
CMP qword ptr [RBP + -0x10],0x0
JZ 0x001251b8
MOV RAX,qword ptr [RBP + -0x10]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
JZ 0x001251b8
MOV RAX,qword ptr [0x002d5fb8]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x001243d0
LAB_001251b8:
MOV RAX,qword ptr [0x002d5fb8]
MOV RDI,qword ptr [RAX]
CALL 0x00124320
ADD RSP,0x30
POP RBP
RET
|
void vemit_tap(int param_1,char *param_2,__gnuc_va_list param_3)
{
int *puVar1;
int *puVar2;
bool bVar3;
puVar1 = &DAT_001802c6;
if (param_1 != 0) {
puVar1 = &DAT_00183d71;
}
DAT_0048d7cc = DAT_0048d7cc + 1;
bVar3 = false;
if (param_2 != (char *)0x0) {
bVar3 = *param_2 != '\0';
}
puVar2 = &DAT_00183d71;
if (bVar3) {
puVar2 = &DAT_001802cb;
}
fprintf(*(FILE **)PTR_stdout_002d5fb8,"%sok %d%s",puVar1,(ulong)DAT_0048d7cc,puVar2);
if ((param_2 != (char *)0x0) && (*param_2 != '\0')) {
vfprintf(*(FILE **)PTR_stdout_002d5fb8,param_2,param_3);
}
fflush(*(FILE **)PTR_stdout_002d5fb8);
return;
}
| |
25,114 | vemit_tap | eloqsql/unittest/mytap/tap.c | static void
vemit_tap(int pass, char const *fmt, va_list ap)
{
fprintf(tapout, "%sok %d%s",
pass ? "" : "not ",
++g_test.last,
(fmt && *fmt) ? " - " : "");
if (fmt && *fmt)
vfprintf(tapout, fmt, ap);
fflush(tapout);
} | O3 | c | vemit_tap:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %eax
movq 0x2cc8f4(%rip), %r15 # 0x2f1fa8
movq (%r15), %rdi
testl %eax, %eax
leaq 0x37c06(%rip), %rcx # 0x5d2c6
leaq 0x3b68c(%rip), %rax # 0x60d53
cmovneq %rax, %rcx
movl 0x3434fa(%rip), %r8d # 0x368bcc
incl %r8d
movl %r8d, 0x3434f0(%rip) # 0x368bcc
testq %rsi, %rsi
je 0x25723
movq %rdx, %rbx
movq %rsi, %r14
cmpb $0x0, (%rsi)
leaq 0x37bda(%rip), %r9 # 0x5d2cb
cmoveq %rax, %r9
leaq 0x37bc0(%rip), %rdx # 0x5d2bc
movl $0x1, %esi
xorl %eax, %eax
callq 0x24540
cmpb $0x0, (%r14)
je 0x2573d
movq (%r15), %rdi
movl $0x1, %esi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x240d0
jmp 0x2573d
leaq 0x37b92(%rip), %rdx # 0x5d2bc
leaq 0x3b622(%rip), %r9 # 0x60d53
movl $0x1, %esi
xorl %eax, %eax
callq 0x24540
movq (%r15), %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x24370
| vemit_tap:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov eax, edi
mov r15, cs:stdout_ptr
mov rdi, [r15]
test eax, eax
lea rcx, aNot; "not "
lea rax, asc_60D4F+4; ""
cmovnz rcx, rax
mov r8d, cs:dword_368BCC
inc r8d
mov cs:dword_368BCC, r8d
test rsi, rsi
jz short loc_25723
mov rbx, rdx
mov r14, rsi
cmp byte ptr [rsi], 0
lea r9, asc_5D2CB; " - "
cmovz r9, rax
lea rdx, aSokDS; "%sok %d%s"
mov esi, 1
xor eax, eax
call ___fprintf_chk
cmp byte ptr [r14], 0
jz short loc_2573D
mov rdi, [r15]
mov esi, 1
mov rdx, r14
mov rcx, rbx
call ___vfprintf_chk
jmp short loc_2573D
loc_25723:
lea rdx, aSokDS; "%sok %d%s"
lea r9, asc_60D4F+4; ""
mov esi, 1
xor eax, eax
call ___fprintf_chk
loc_2573D:
mov rdi, [r15]
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
jmp _fflush
| long long vemit_tap(int a1, _BYTE *a2, long long a3)
{
const char *v3; // rcx
int v4; // r8d
const char *v6; // r9
v3 = "not ";
if ( a1 )
v3 = "";
v4 = ++dword_368BCC;
if ( a2 )
{
v6 = " - ";
if ( !*a2 )
v6 = "";
__fprintf_chk(stdout, 1LL, "%sok %d%s", v3, v4, v6);
if ( *a2 )
__vfprintf_chk(stdout, 1LL, a2, a3);
}
else
{
__fprintf_chk(stdout, 1LL, "%sok %d%s", v3, v4, "");
}
return fflush(stdout);
}
| vemit_tap:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV EAX,EDI
MOV R15,qword ptr [0x003f1fa8]
MOV RDI,qword ptr [R15]
TEST EAX,EAX
LEA RCX,[0x15d2c6]
LEA RAX,[0x160d53]
CMOVNZ RCX,RAX
MOV R8D,dword ptr [0x00468bcc]
INC R8D
MOV dword ptr [0x00468bcc],R8D
TEST RSI,RSI
JZ 0x00125723
MOV RBX,RDX
MOV R14,RSI
CMP byte ptr [RSI],0x0
LEA R9,[0x15d2cb]
CMOVZ R9,RAX
LEA RDX,[0x15d2bc]
MOV ESI,0x1
XOR EAX,EAX
CALL 0x00124540
CMP byte ptr [R14],0x0
JZ 0x0012573d
MOV RDI,qword ptr [R15]
MOV ESI,0x1
MOV RDX,R14
MOV RCX,RBX
CALL 0x001240d0
JMP 0x0012573d
LAB_00125723:
LEA RDX,[0x15d2bc]
LEA R9,[0x160d53]
MOV ESI,0x1
XOR EAX,EAX
CALL 0x00124540
LAB_0012573d:
MOV RDI,qword ptr [R15]
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x00124370
|
void vemit_tap(int param_1,char *param_2,int8 param_3)
{
int *puVar1;
int *puVar2;
int *puVar3;
puVar1 = PTR_stdout_003f1fa8;
puVar2 = &DAT_0015d2c6;
if (param_1 != 0) {
puVar2 = &DAT_00160d53;
}
DAT_00468bcc = DAT_00468bcc + 1;
if (param_2 == (char *)0x0) {
__fprintf_chk(*(int8 *)PTR_stdout_003f1fa8,1,"%sok %d%s",puVar2,DAT_00468bcc,&DAT_00160d53
);
}
else {
puVar3 = &DAT_0015d2cb;
if (*param_2 == '\0') {
puVar3 = &DAT_00160d53;
}
__fprintf_chk(*(int8 *)PTR_stdout_003f1fa8,1,"%sok %d%s",puVar2,DAT_00468bcc,puVar3);
if (*param_2 != '\0') {
__vfprintf_chk(*(int8 *)puVar1,1,param_2,param_3);
}
}
fflush(*(FILE **)puVar1);
return;
}
| |
25,115 | 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>>>::emplace(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 | std::pair<iterator, bool> emplace(const key_type& key, T&& t)
{
for (auto it = this->begin(); it != this->end(); ++it)
{
if (m_compare(it->first, key))
{
return {it, false};
}
}
Container::emplace_back(key, std::forward<T>(t));
return {std::prev(this->end()), true};
} | 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>>>::emplace(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 %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
movq (%rdi), %rbx
cmpq 0x8(%rdi), %rbx
je 0x8ed19
movq %rbx, %rdi
movq %r12, %rsi
callq 0x8d044
testb %al, %al
jne 0x8ed33
addq $0x60, %rbx
cmpq 0x8(%r14), %rbx
jne 0x8ed00
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x8ed44
movq 0x8(%r14), %rbx
addq $-0x60, %rbx
movb $0x1, %dl
jmp 0x8ed35
xorl %edx, %edx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
| _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE7emplaceERSJ_OSF_:
push r15
push r14
push r12
push rbx
push rax
mov r15, rdx
mov r12, rsi
mov r14, rdi
mov rbx, [rdi]
cmp rbx, [rdi+8]
jz short loc_8ED19
loc_8ED00:
mov rdi, rbx
mov rsi, r12
call _ZN8nlohmann16json_abi_v3_11_3eqERKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEESF_; nlohmann::json_abi_v3_11_3::operator==(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> 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> const&)
test al, al
jnz short loc_8ED33
add rbx, 60h ; '`'
cmp rbx, [r14+8]
jnz short loc_8ED00
loc_8ED19:
mov rdi, r14
mov rsi, r12
mov rdx, r15
call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE12emplace_backIJRSF_SH_EEERSI_DpOT_; 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>>::emplace_back<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>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,minja::Value &&)
mov rbx, [r14+8]
add rbx, 0FFFFFFFFFFFFFFA0h
mov dl, 1
jmp short loc_8ED35
loc_8ED33:
xor edx, edx
loc_8ED35:
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
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>>>::emplace(
long long a1,
unsigned __int8 *a2,
long long a3,
__m128d a4)
{
unsigned __int8 *v5; // rbx
v5 = *(unsigned __int8 **)a1;
if ( *(_QWORD *)a1 == *(_QWORD *)(a1 + 8) )
{
LABEL_4:
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>>::emplace_back<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>(
a1,
a2,
a3);
return *(_QWORD *)(a1 + 8) - 96LL;
}
else
{
while ( !(unsigned __int8)nlohmann::json_abi_v3_11_3::operator==(v5, a2, a4) )
{
v5 += 96;
if ( v5 == *(unsigned __int8 **)(a1 + 8) )
goto LABEL_4;
}
}
return (long long)v5;
}
| emplace:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,RDX
MOV R12,RSI
MOV R14,RDI
MOV RBX,qword ptr [RDI]
CMP RBX,qword ptr [RDI + 0x8]
JZ 0x0018ed19
LAB_0018ed00:
MOV RDI,RBX
MOV RSI,R12
CALL 0x0018d044
TEST AL,AL
JNZ 0x0018ed33
ADD RBX,0x60
CMP RBX,qword ptr [R14 + 0x8]
JNZ 0x0018ed00
LAB_0018ed19:
MOV RDI,R14
MOV RSI,R12
MOV RDX,R15
CALL 0x0018ed44
MOV RBX,qword ptr [R14 + 0x8]
ADD RBX,-0x60
MOV DL,0x1
JMP 0x0018ed35
LAB_0018ed33:
XOR EDX,EDX
LAB_0018ed35:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
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> >
>::emplace(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&&) */
int1 [16] __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>>>
::emplace(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,basic_json *param_1,Value *param_2)
{
char cVar1;
int8 extraout_RDX;
int8 uVar2;
basic_json *pbVar3;
int1 auVar4 [16];
pbVar3 = *(basic_json **)this;
if (pbVar3 != *(basic_json **)(this + 8)) {
do {
cVar1 = operator==(pbVar3,param_1);
if (cVar1 != '\0') {
uVar2 = 0;
goto LAB_0018ed35;
}
pbVar3 = pbVar3 + 0x60;
} while (pbVar3 != *(basic_json **)(this + 8));
}
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>>>
::
emplace_back<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>
((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,param_1,param_2);
pbVar3 = (basic_json *)(*(long *)(this + 8) + -0x60);
uVar2 = CONCAT71((int7)((ulong)extraout_RDX >> 8),1);
LAB_0018ed35:
auVar4._8_8_ = uVar2;
auVar4._0_8_ = pbVar3;
return auVar4;
}
| |
25,116 | my_strxfrm_pad_nweights_unicode | eloqsql/strings/ctype-utf8.c | size_t
my_strxfrm_pad_nweights_unicode(uchar *str, uchar *strend, size_t nweights)
{
uchar *str0;
DBUG_ASSERT(str && str <= strend);
for (str0= str; str < strend && nweights; nweights--)
{
*str++= 0x00;
if (str < strend)
*str++= 0x20;
}
return str - str0;
} | O3 | c | my_strxfrm_pad_nweights_unicode:
cmpq %rsi, %rdi
setae %al
testq %rdx, %rdx
sete %cl
orb %al, %cl
movq %rdi, %rax
jne 0x70209
pushq %rbp
movq %rsp, %rbp
decq %rdx
movq %rdi, %rcx
leaq 0x1(%rcx), %rax
movb $0x0, (%rcx)
cmpq %rsi, %rax
jae 0x701f3
movb $0x20, 0x1(%rcx)
addq $0x2, %rcx
movq %rcx, %rax
addq $-0x1, %rdx
setb %r8b
cmpq %rsi, %rax
jae 0x70208
movq %rax, %rcx
testb %r8b, %r8b
jne 0x701dc
popq %rbp
subq %rdi, %rax
retq
| my_strxfrm_pad_nweights_unicode:
cmp rdi, rsi
setnb al
test rdx, rdx
setz cl
or cl, al
mov rax, rdi
jnz short loc_70209
push rbp
mov rbp, rsp
dec rdx
mov rcx, rdi
loc_701DC:
lea rax, [rcx+1]
mov byte ptr [rcx], 0
cmp rax, rsi
jnb short loc_701F3
mov byte ptr [rcx+1], 20h ; ' '
add rcx, 2
mov rax, rcx
loc_701F3:
add rdx, 0FFFFFFFFFFFFFFFFh
setb r8b
cmp rax, rsi
jnb short loc_70208
mov rcx, rax
test r8b, r8b
jnz short loc_701DC
loc_70208:
pop rbp
loc_70209:
sub rax, rdi
retn
| long long my_strxfrm_pad_nweights_unicode(_BYTE *a1, unsigned long long a2, long long a3)
{
_BYTE *v3; // rax
long long v4; // rdx
_BYTE *v5; // rcx
bool v6; // cf
v3 = a1;
if ( (unsigned long long)a1 < a2 && a3 != 0 )
{
v4 = a3 - 1;
v5 = a1;
do
{
v3 = v5 + 1;
*v5 = 0;
if ( (unsigned long long)(v5 + 1) < a2 )
{
v5[1] = 32;
v3 = v5 + 2;
}
v6 = v4-- != 0;
if ( (unsigned long long)v3 >= a2 )
break;
v5 = v3;
}
while ( v6 );
}
return v3 - a1;
}
| my_strxfrm_pad_nweights_unicode:
CMP RDI,RSI
SETNC AL
TEST RDX,RDX
SETZ CL
OR CL,AL
MOV RAX,RDI
JNZ 0x00170209
PUSH RBP
MOV RBP,RSP
DEC RDX
MOV RCX,RDI
LAB_001701dc:
LEA RAX,[RCX + 0x1]
MOV byte ptr [RCX],0x0
CMP RAX,RSI
JNC 0x001701f3
MOV byte ptr [RCX + 0x1],0x20
ADD RCX,0x2
MOV RAX,RCX
LAB_001701f3:
ADD RDX,-0x1
SETC R8B
CMP RAX,RSI
JNC 0x00170208
MOV RCX,RAX
TEST R8B,R8B
JNZ 0x001701dc
LAB_00170208:
POP RBP
LAB_00170209:
SUB RAX,RDI
RET
|
long my_strxfrm_pad_nweights_unicode(int1 *param_1,int1 *param_2,long param_3)
{
int1 *puVar1;
int1 *puVar2;
bool bVar3;
puVar2 = param_1;
if (param_3 != 0 && param_1 < param_2) {
param_3 = param_3 + -1;
puVar1 = param_1;
do {
puVar2 = puVar1 + 1;
*puVar1 = 0;
if (puVar2 < param_2) {
puVar1[1] = 0x20;
puVar2 = puVar1 + 2;
}
bVar3 = param_3 != 0;
param_3 = param_3 + -1;
} while ((puVar2 < param_2) && (puVar1 = puVar2, bVar3));
}
return (long)puVar2 - (long)param_1;
}
| |
25,117 | js_parse_expect | bluesky950520[P]quickjs/quickjs.c | static int js_parse_expect(JSParseState *s, int tok)
{
char buf[ATOM_GET_STR_BUF_SIZE];
if (s->token.val == tok)
return next_token(s);
switch(s->token.val) {
case TOK_EOF:
return js_parse_error(s, "Unexpected end of input");
case TOK_NUMBER:
return js_parse_error(s, "Unexpected number");
case TOK_STRING:
return js_parse_error(s, "Unexpected string");
case TOK_TEMPLATE:
return js_parse_error(s, "Unexpected string template");
case TOK_REGEXP:
return js_parse_error(s, "Unexpected regexp");
case TOK_IDENT:
return js_parse_error(s, "Unexpected identifier '%s'",
JS_AtomGetStr(s->ctx, buf, sizeof(buf),
s->token.u.ident.atom));
case TOK_ERROR:
return js_parse_error(s, "Invalid or unexpected token");
default:
return js_parse_error(s, "Unexpected token '%.*s'",
(int)(s->buf_ptr - s->token.ptr),
(const char *)s->token.ptr);
}
} | O0 | c | js_parse_expect:
subq $0x68, %rsp
movq %rdi, 0x58(%rsp)
movl %esi, 0x54(%rsp)
movq 0x58(%rsp), %rax
movl 0x20(%rax), %eax
cmpl 0x54(%rsp), %eax
jne 0xa559e
movq 0x58(%rsp), %rdi
callq 0x9cfc0
movl %eax, 0x64(%rsp)
jmp 0xa56ed
movq 0x58(%rsp), %rax
movl 0x20(%rax), %eax
subl $-0x80, %eax
movl %eax, %ecx
movq %rcx, 0x8(%rsp)
subl $0x2a, %eax
ja 0xa56b6
movq 0x8(%rsp), %rax
leaq 0x6640f(%rip), %rcx # 0x10b9d4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x58(%rsp), %rdi
leaq 0x6a2da(%rip), %rsi # 0x10f8b4
movb $0x0, %al
callq 0x48690
movl %eax, 0x64(%rsp)
jmp 0xa56ed
movq 0x58(%rsp), %rdi
leaq 0x696f9(%rip), %rsi # 0x10ecef
movb $0x0, %al
callq 0x48690
movl %eax, 0x64(%rsp)
jmp 0xa56ed
movq 0x58(%rsp), %rdi
leaq 0x6a544(%rip), %rsi # 0x10fb56
movb $0x0, %al
callq 0x48690
movl %eax, 0x64(%rsp)
jmp 0xa56ed
movq 0x58(%rsp), %rdi
leaq 0x6a53a(%rip), %rsi # 0x10fb68
movb $0x0, %al
callq 0x48690
movl %eax, 0x64(%rsp)
jmp 0xa56ed
movq 0x58(%rsp), %rdi
leaq 0x6a539(%rip), %rsi # 0x10fb83
movb $0x0, %al
callq 0x48690
movl %eax, 0x64(%rsp)
jmp 0xa56ed
movq 0x58(%rsp), %rax
movq %rax, (%rsp)
movq 0x58(%rsp), %rax
movq (%rax), %rdi
leaq 0x10(%rsp), %rsi
movq 0x58(%rsp), %rax
movl 0x38(%rax), %ecx
movl $0x40, %edx
callq 0x52b00
movq (%rsp), %rdi
movq %rax, %rdx
leaq 0x6a505(%rip), %rsi # 0x10fb95
movb $0x0, %al
callq 0x48690
movl %eax, 0x64(%rsp)
jmp 0xa56ed
movq 0x58(%rsp), %rdi
leaq 0x6a507(%rip), %rsi # 0x10fbb0
movb $0x0, %al
callq 0x48690
movl %eax, 0x64(%rsp)
jmp 0xa56ed
movq 0x58(%rsp), %rdi
movq 0x58(%rsp), %rax
movq 0x70(%rax), %rax
movq 0x58(%rsp), %rcx
movq 0x30(%rcx), %rcx
subq %rcx, %rax
movl %eax, %edx
movq 0x58(%rsp), %rax
movq 0x30(%rax), %rcx
leaq 0x6a4ea(%rip), %rsi # 0x10fbcc
movb $0x0, %al
callq 0x48690
movl %eax, 0x64(%rsp)
movl 0x64(%rsp), %eax
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)
| js_parse_expect:
sub rsp, 68h
mov [rsp+68h+var_10], rdi
mov [rsp+68h+var_14], esi
mov rax, [rsp+68h+var_10]
mov eax, [rax+20h]
cmp eax, [rsp+68h+var_14]
jnz short loc_A559E
mov rdi, [rsp+68h+var_10]
call next_token
mov [rsp+68h+var_4], eax
jmp loc_A56ED
loc_A559E:
mov rax, [rsp+68h+var_10]
mov eax, [rax+20h]
sub eax, 0FFFFFF80h; switch 43 cases
mov ecx, eax
mov [rsp+68h+var_60], rcx
sub eax, 2Ah
ja def_A55CC; jumptable 00000000000A55CC default case, cases -123--89,-87
mov rax, [rsp+68h+var_60]
lea rcx, jpt_A55CC
movsxd rax, ds:(jpt_A55CC - 10B9D4h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_A55CE:
mov rdi, [rsp+68h+var_10]; jumptable 00000000000A55CC case -86
lea rsi, aUnexpectedEndO_2; "Unexpected end of input"
mov al, 0
call js_parse_error
mov [rsp+68h+var_4], eax
jmp loc_A56ED
loc_A55EA:
mov rdi, [rsp+68h+var_10]; jumptable 00000000000A55CC case -128
lea rsi, aUnexpectedNumb; "Unexpected number"
mov al, 0
call js_parse_error
mov [rsp+68h+var_4], eax
jmp loc_A56ED
loc_A5606:
mov rdi, [rsp+68h+var_10]; jumptable 00000000000A55CC case -127
lea rsi, aUnexpectedStri; "Unexpected string"
mov al, 0
call js_parse_error
mov [rsp+68h+var_4], eax
jmp loc_A56ED
loc_A5622:
mov rdi, [rsp+68h+var_10]; jumptable 00000000000A55CC case -126
lea rsi, aUnexpectedStri_0; "Unexpected string template"
mov al, 0
call js_parse_error
mov [rsp+68h+var_4], eax
jmp loc_A56ED
loc_A563E:
mov rdi, [rsp+68h+var_10]; jumptable 00000000000A55CC case -124
lea rsi, aUnexpectedRege; "Unexpected regexp"
mov al, 0
call js_parse_error
mov [rsp+68h+var_4], eax
jmp loc_A56ED
loc_A565A:
mov rax, [rsp+68h+var_10]; jumptable 00000000000A55CC case -125
mov [rsp+68h+var_68], rax
mov rax, [rsp+68h+var_10]
mov rdi, [rax]
lea rsi, [rsp+68h+var_58]
mov rax, [rsp+68h+var_10]
mov ecx, [rax+38h]
mov edx, 40h ; '@'
call JS_AtomGetStr
mov rdi, [rsp+68h+var_68]
mov rdx, rax
lea rsi, aUnexpectedIden; "Unexpected identifier '%s'"
mov al, 0
call js_parse_error
mov [rsp+68h+var_4], eax
jmp short loc_A56ED
loc_A569D:
mov rdi, [rsp+68h+var_10]; jumptable 00000000000A55CC case -88
lea rsi, aInvalidOrUnexp; "Invalid or unexpected token"
mov al, 0
call js_parse_error
mov [rsp+68h+var_4], eax
jmp short loc_A56ED
def_A55CC:
mov rdi, [rsp+68h+var_10]; jumptable 00000000000A55CC default case, cases -123--89,-87
mov rax, [rsp+68h+var_10]
mov rax, [rax+70h]
mov rcx, [rsp+68h+var_10]
mov rcx, [rcx+30h]
sub rax, rcx
mov edx, eax
mov rax, [rsp+68h+var_10]
mov rcx, [rax+30h]
lea rsi, aUnexpectedToke_3; "Unexpected token '%.*s'"
mov al, 0
call js_parse_error
mov [rsp+68h+var_4], eax
loc_A56ED:
mov eax, [rsp+68h+var_4]
add rsp, 68h
retn
| long long js_parse_expect(
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 a12,
long long a13,
long long a14)
{
long long v14; // rcx
_BYTE *Str; // rax
long long v16; // rcx
long long v17; // r8
long long v18; // r9
__m128 v19; // xmm4
__m128 v20; // xmm5
char v22; // [rsp+0h] [rbp-68h]
long long *v23; // [rsp+0h] [rbp-68h]
_BYTE v24[68]; // [rsp+10h] [rbp-58h] BYREF
int v25; // [rsp+54h] [rbp-14h]
long long *v26; // [rsp+58h] [rbp-10h]
unsigned int v27; // [rsp+64h] [rbp-4h]
v26 = (long long *)a1;
v25 = a2;
if ( *(_DWORD *)(a1 + 32) == a2 )
{
return (unsigned int)next_token(v26, a4, a5, a6, a7, *(double *)a8.m128_u64, *(double *)a9.m128_u64, a10, a11);
}
else
{
v14 = (unsigned int)(*((_DWORD *)v26 + 8) + 128);
switch ( *((_DWORD *)v26 + 8) )
{
case 0xFFFFFF80:
v27 = js_parse_error(
v26,
(long long)"Unexpected number",
a3,
v14,
a13,
a14,
a4,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
v22);
break;
case 0xFFFFFF81:
v27 = js_parse_error(
v26,
(long long)"Unexpected string",
a3,
v14,
a13,
a14,
a4,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
v22);
break;
case 0xFFFFFF82:
v27 = js_parse_error(
v26,
(long long)"Unexpected string template",
a3,
v14,
a13,
a14,
a4,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
v22);
break;
case 0xFFFFFF83:
v23 = v26;
Str = JS_AtomGetStr(*v26, v24, 64, *((_DWORD *)v26 + 14));
v27 = js_parse_error(
v23,
(long long)"Unexpected identifier '%s'",
(long long)Str,
v16,
v17,
v18,
a4,
a5,
a6,
a7,
v19,
v20,
a10,
a11,
(char)v23);
break;
case 0xFFFFFF84:
v27 = js_parse_error(
v26,
(long long)"Unexpected regexp",
a3,
v14,
a13,
a14,
a4,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
v22);
break;
case 0xFFFFFFA8:
v27 = js_parse_error(
v26,
(long long)"Invalid or unexpected token",
a3,
v14,
a13,
a14,
a4,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
v22);
break;
case 0xFFFFFFAA:
v27 = js_parse_error(
v26,
(long long)"Unexpected end of input",
a3,
v14,
a13,
a14,
a4,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
v22);
break;
default:
v27 = js_parse_error(
v26,
(long long)"Unexpected token '%.*s'",
(unsigned int)v26[14] - (unsigned int)v26[6],
v26[6],
a13,
a14,
a4,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
v22);
break;
}
}
return v27;
}
| js_parse_expect:
SUB RSP,0x68
MOV qword ptr [RSP + 0x58],RDI
MOV dword ptr [RSP + 0x54],ESI
MOV RAX,qword ptr [RSP + 0x58]
MOV EAX,dword ptr [RAX + 0x20]
CMP EAX,dword ptr [RSP + 0x54]
JNZ 0x001a559e
MOV RDI,qword ptr [RSP + 0x58]
CALL 0x0019cfc0
MOV dword ptr [RSP + 0x64],EAX
JMP 0x001a56ed
LAB_001a559e:
MOV RAX,qword ptr [RSP + 0x58]
MOV EAX,dword ptr [RAX + 0x20]
SUB EAX,-0x80
MOV ECX,EAX
MOV qword ptr [RSP + 0x8],RCX
SUB EAX,0x2a
JA 0x001a56b6
MOV RAX,qword ptr [RSP + 0x8]
LEA RCX,[0x20b9d4]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_ffffffaa:
MOV RDI,qword ptr [RSP + 0x58]
LEA RSI,[0x20f8b4]
MOV AL,0x0
CALL 0x00148690
MOV dword ptr [RSP + 0x64],EAX
JMP 0x001a56ed
caseD_ffffff80:
MOV RDI,qword ptr [RSP + 0x58]
LEA RSI,[0x20ecef]
MOV AL,0x0
CALL 0x00148690
MOV dword ptr [RSP + 0x64],EAX
JMP 0x001a56ed
caseD_ffffff81:
MOV RDI,qword ptr [RSP + 0x58]
LEA RSI,[0x20fb56]
MOV AL,0x0
CALL 0x00148690
MOV dword ptr [RSP + 0x64],EAX
JMP 0x001a56ed
caseD_ffffff82:
MOV RDI,qword ptr [RSP + 0x58]
LEA RSI,[0x20fb68]
MOV AL,0x0
CALL 0x00148690
MOV dword ptr [RSP + 0x64],EAX
JMP 0x001a56ed
caseD_ffffff84:
MOV RDI,qword ptr [RSP + 0x58]
LEA RSI,[0x20fb83]
MOV AL,0x0
CALL 0x00148690
MOV dword ptr [RSP + 0x64],EAX
JMP 0x001a56ed
caseD_ffffff83:
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP],RAX
MOV RAX,qword ptr [RSP + 0x58]
MOV RDI,qword ptr [RAX]
LEA RSI,[RSP + 0x10]
MOV RAX,qword ptr [RSP + 0x58]
MOV ECX,dword ptr [RAX + 0x38]
MOV EDX,0x40
CALL 0x00152b00
MOV RDI,qword ptr [RSP]
MOV RDX,RAX
LEA RSI,[0x20fb95]
MOV AL,0x0
CALL 0x00148690
MOV dword ptr [RSP + 0x64],EAX
JMP 0x001a56ed
caseD_ffffffa8:
MOV RDI,qword ptr [RSP + 0x58]
LEA RSI,[0x20fbb0]
MOV AL,0x0
CALL 0x00148690
MOV dword ptr [RSP + 0x64],EAX
JMP 0x001a56ed
caseD_ffffff85:
MOV RDI,qword ptr [RSP + 0x58]
MOV RAX,qword ptr [RSP + 0x58]
MOV RAX,qword ptr [RAX + 0x70]
MOV RCX,qword ptr [RSP + 0x58]
MOV RCX,qword ptr [RCX + 0x30]
SUB RAX,RCX
MOV EDX,EAX
MOV RAX,qword ptr [RSP + 0x58]
MOV RCX,qword ptr [RAX + 0x30]
LEA RSI,[0x20fbcc]
MOV AL,0x0
CALL 0x00148690
MOV dword ptr [RSP + 0x64],EAX
LAB_001a56ed:
MOV EAX,dword ptr [RSP + 0x64]
ADD RSP,0x68
RET
|
int4 js_parse_expect(int8 *param_1,int param_2)
{
int8 uVar1;
int1 local_58 [68];
int local_14;
int8 *local_10;
int4 local_4;
local_14 = param_2;
local_10 = param_1;
if (*(int *)(param_1 + 4) == param_2) {
local_4 = next_token(param_1);
}
else {
switch(*(int4 *)(param_1 + 4)) {
case 0xffffff80:
local_4 = js_parse_error(param_1,"Unexpected number");
break;
case 0xffffff81:
local_4 = js_parse_error(param_1,"Unexpected string");
break;
case 0xffffff82:
local_4 = js_parse_error(param_1,"Unexpected string template");
break;
case 0xffffff83:
uVar1 = JS_AtomGetStr(*param_1,local_58,0x40,*(int4 *)(param_1 + 7));
local_4 = js_parse_error(param_1,"Unexpected identifier \'%s\'",uVar1);
break;
case 0xffffff84:
local_4 = js_parse_error(param_1,"Unexpected regexp");
break;
default:
local_4 = js_parse_error(param_1,"Unexpected token \'%.*s\'",
(int)param_1[0xe] - (int)param_1[6],param_1[6]);
break;
case 0xffffffa8:
local_4 = js_parse_error(param_1,"Invalid or unexpected token");
break;
case 0xffffffaa:
local_4 = js_parse_error(param_1,"Unexpected end of input");
}
}
return local_4;
}
| |
25,118 | js_parse_expect | bluesky950520[P]quickjs/quickjs.c | static int js_parse_expect(JSParseState *s, int tok)
{
char buf[ATOM_GET_STR_BUF_SIZE];
if (s->token.val == tok)
return next_token(s);
switch(s->token.val) {
case TOK_EOF:
return js_parse_error(s, "Unexpected end of input");
case TOK_NUMBER:
return js_parse_error(s, "Unexpected number");
case TOK_STRING:
return js_parse_error(s, "Unexpected string");
case TOK_TEMPLATE:
return js_parse_error(s, "Unexpected string template");
case TOK_REGEXP:
return js_parse_error(s, "Unexpected regexp");
case TOK_IDENT:
return js_parse_error(s, "Unexpected identifier '%s'",
JS_AtomGetStr(s->ctx, buf, sizeof(buf),
s->token.u.ident.atom));
case TOK_ERROR:
return js_parse_error(s, "Invalid or unexpected token");
default:
return js_parse_error(s, "Unexpected token '%.*s'",
(int)(s->buf_ptr - s->token.ptr),
(const char *)s->token.ptr);
}
} | O2 | c | js_parse_expect:
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movl 0x20(%rdi), %eax
cmpl %esi, %eax
jne 0x55257
movq %rbx, %rdi
addq $0x40, %rsp
popq %rbx
jmp 0x4fa4e
leal 0x80(%rax), %ecx
cmpl $0x4, %ecx
ja 0x5527b
leaq 0x2f167(%rip), %rax # 0x843d0
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x31962(%rip), %rsi # 0x86bdb
jmp 0x552f0
cmpl $-0x58, %eax
je 0x55297
cmpl $-0x56, %eax
jne 0x552cd
leaq 0x324fe(%rip), %rsi # 0x8778a
jmp 0x552f0
leaq 0x327c4(%rip), %rsi # 0x87a59
jmp 0x552f0
leaq 0x327e8(%rip), %rsi # 0x87a86
jmp 0x552f0
leaq 0x32797(%rip), %rsi # 0x87a3e
jmp 0x552f0
movq (%rbx), %rdi
movl 0x38(%rbx), %edx
movq %rsp, %rsi
callq 0x2f335
leaq 0x327ad(%rip), %rsi # 0x87a6b
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x28457
jmp 0x552fa
movl 0x70(%rbx), %edx
movq 0x30(%rbx), %rcx
subl %ecx, %edx
leaq 0x327c5(%rip), %rsi # 0x87aa2
movq %rbx, %rdi
xorl %eax, %eax
callq 0x28457
jmp 0x552fa
leaq 0x3273c(%rip), %rsi # 0x87a2c
movq %rbx, %rdi
xorl %eax, %eax
callq 0x28457
pushq $-0x1
popq %rax
addq $0x40, %rsp
popq %rbx
retq
| js_parse_expect:
push rbx
sub rsp, 40h
mov rbx, rdi
mov eax, [rdi+20h]
cmp eax, esi
jnz short loc_55257
mov rdi, rbx
add rsp, 40h
pop rbx
jmp next_token
loc_55257:
lea ecx, [rax+80h]; switch 5 cases
cmp ecx, 4
ja short def_55270; jumptable 0000000000055270 default case
lea rax, jpt_55270
movsxd rcx, ds:(jpt_55270 - 843D0h)[rax+rcx*4]
add rcx, rax
jmp rcx; switch jump
loc_55272:
lea rsi, aUnexpectedNumb; jumptable 0000000000055270 case -128
jmp short loc_552F0
def_55270:
cmp eax, 0FFFFFFA8h; jumptable 0000000000055270 default case
jz short loc_55297
cmp eax, 0FFFFFFAAh
jnz short loc_552CD
lea rsi, aUnexpectedEndO_2; "Unexpected end of input"
jmp short loc_552F0
loc_5528E:
lea rsi, aUnexpectedRege; jumptable 0000000000055270 case -124
jmp short loc_552F0
loc_55297:
lea rsi, aInvalidOrUnexp; "Invalid or unexpected token"
jmp short loc_552F0
loc_552A0:
lea rsi, aUnexpectedStri; jumptable 0000000000055270 case -126
jmp short loc_552F0
loc_552A9:
mov rdi, [rbx]; jumptable 0000000000055270 case -125
mov edx, [rbx+38h]
mov rsi, rsp
call JS_AtomGetStr
lea rsi, aUnexpectedIden; "Unexpected identifier '%s'"
mov rdi, rbx
mov rdx, rax
xor eax, eax
call js_parse_error
jmp short loc_552FA
loc_552CD:
mov edx, [rbx+70h]
mov rcx, [rbx+30h]
sub edx, ecx
lea rsi, aUnexpectedToke_2; "Unexpected token '%.*s'"
mov rdi, rbx
xor eax, eax
call js_parse_error
jmp short loc_552FA
loc_552E9:
lea rsi, aUnexpectedStri_0; jumptable 0000000000055270 case -127
loc_552F0:
mov rdi, rbx
xor eax, eax
call js_parse_error
loc_552FA:
push 0FFFFFFFFFFFFFFFFh
pop rax
add rsp, 40h
pop rbx
retn
| long long js_parse_expect(
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)
{
int v14; // eax
long long result; // rax
const char *v16; // rsi
long long Str; // rax
long long v18; // rcx
long long v19; // r8
long long v20; // r9
__m128 v21; // xmm4
__m128 v22; // xmm5
char v23[72]; // [rsp+0h] [rbp-48h] BYREF
v14 = *(_DWORD *)(a1 + 32);
if ( v14 == (_DWORD)a2 )
return next_token(a1, a2, a3, a7, a8, a9, a10, a11, a12, a13, a14, a4, a5, a6);
switch ( v14 )
{
case -128:
v16 = "Unexpected number";
goto LABEL_14;
case -127:
v16 = "Unexpected string";
goto LABEL_14;
case -126:
v16 = "Unexpected string template";
goto LABEL_14;
case -125:
Str = JS_AtomGetStr(*(_QWORD *)a1, v23, *(_DWORD *)(a1 + 56));
js_parse_error(
(long long *)a1,
(long long)"Unexpected identifier '%s'",
Str,
v18,
v19,
v20,
a7,
a8,
a9,
a10,
v21,
v22,
a13,
a14,
v23[0]);
goto LABEL_15;
case -124:
v16 = "Unexpected regexp";
goto LABEL_14;
default:
if ( v14 == -88 )
{
v16 = "Invalid or unexpected token";
}
else
{
if ( v14 != -86 )
{
js_parse_error(
(long long *)a1,
(long long)"Unexpected token '%.*s'",
*(_DWORD *)(a1 + 112) - (unsigned int)*(_QWORD *)(a1 + 48),
*(_QWORD *)(a1 + 48),
a5,
a6,
a7,
a8,
a9,
a10,
a11,
a12,
a13,
a14,
v23[0]);
goto LABEL_15;
}
v16 = "Unexpected end of input";
}
LABEL_14:
js_parse_error(
(long long *)a1,
(long long)v16,
a3,
(unsigned int)(v14 + 128),
a5,
a6,
a7,
a8,
a9,
a10,
a11,
a12,
a13,
a14,
v23[0]);
LABEL_15:
result = -1LL;
break;
}
return result;
}
| js_parse_expect:
PUSH RBX
SUB RSP,0x40
MOV RBX,RDI
MOV EAX,dword ptr [RDI + 0x20]
CMP EAX,ESI
JNZ 0x00155257
MOV RDI,RBX
ADD RSP,0x40
POP RBX
JMP 0x0014fa4e
LAB_00155257:
LEA ECX,[RAX + 0x80]
CMP ECX,0x4
JA 0x0015527b
LEA RAX,[0x1843d0]
MOVSXD RCX,dword ptr [RAX + RCX*0x4]
ADD RCX,RAX
switchD:
JMP RCX
caseD_ffffff80:
LEA RSI,[0x186bdb]
JMP 0x001552f0
default:
CMP EAX,-0x58
JZ 0x00155297
CMP EAX,-0x56
JNZ 0x001552cd
LEA RSI,[0x18778a]
JMP 0x001552f0
caseD_ffffff84:
LEA RSI,[0x187a59]
JMP 0x001552f0
LAB_00155297:
LEA RSI,[0x187a86]
JMP 0x001552f0
caseD_ffffff82:
LEA RSI,[0x187a3e]
JMP 0x001552f0
caseD_ffffff83:
MOV RDI,qword ptr [RBX]
MOV EDX,dword ptr [RBX + 0x38]
MOV RSI,RSP
CALL 0x0012f335
LEA RSI,[0x187a6b]
MOV RDI,RBX
MOV RDX,RAX
XOR EAX,EAX
CALL 0x00128457
JMP 0x001552fa
LAB_001552cd:
MOV EDX,dword ptr [RBX + 0x70]
MOV RCX,qword ptr [RBX + 0x30]
SUB EDX,ECX
LEA RSI,[0x187aa2]
MOV RDI,RBX
XOR EAX,EAX
CALL 0x00128457
JMP 0x001552fa
caseD_ffffff81:
LEA RSI,[0x187a2c]
LAB_001552f0:
MOV RDI,RBX
XOR EAX,EAX
CALL 0x00128457
LAB_001552fa:
PUSH -0x1
POP RAX
ADD RSP,0x40
POP RBX
RET
|
int8 js_parse_expect(int8 *param_1,int param_2)
{
int iVar1;
int8 uVar2;
char *pcVar3;
int1 auStack_48 [64];
iVar1 = *(int *)(param_1 + 4);
if (iVar1 == param_2) {
uVar2 = next_token(param_1);
return uVar2;
}
switch(iVar1) {
case -0x80:
pcVar3 = "Unexpected number";
break;
case -0x7f:
pcVar3 = "Unexpected string";
break;
case -0x7e:
pcVar3 = "Unexpected string template";
break;
case -0x7d:
uVar2 = JS_AtomGetStr(*param_1,auStack_48,*(int4 *)(param_1 + 7));
js_parse_error(param_1,"Unexpected identifier \'%s\'",uVar2);
return 0xffffffffffffffff;
case -0x7c:
pcVar3 = "Unexpected regexp";
break;
default:
if (iVar1 == -0x58) {
pcVar3 = "Invalid or unexpected token";
}
else {
if (iVar1 != -0x56) {
js_parse_error(param_1,"Unexpected token \'%.*s\'",*(int *)(param_1 + 0xe) - (int)param_1[6]
);
return 0xffffffffffffffff;
}
pcVar3 = "Unexpected end of input";
}
}
js_parse_error(param_1,pcVar3);
return 0xffffffffffffffff;
}
| |
25,119 | mysql_dump_debug_info_start_internal | eloqsql/libmariadb/libmariadb/mariadb_async.c | static void
mysql_dump_debug_info_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_dump_debug_info,
(parms->mysql),
parms->mysql,
int,
r_int)
} | O3 | c | mysql_dump_debug_info_start_internal:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq (%rdi), %rdi
movq 0x480(%rdi), %rax
movq 0x28(%rax), %rbx
callq 0x1c5ae
movl %eax, 0x8(%rbx)
movl $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| mysql_dump_debug_info_start_internal:
push rbp
mov rbp, rsp
push rbx
push rax
mov rdi, [rdi]
mov rax, [rdi+480h]
mov rbx, [rax+28h]
call mysql_dump_debug_info
mov [rbx+8], eax
mov dword ptr [rbx], 0
add rsp, 8
pop rbx
pop rbp
retn
| long long mysql_dump_debug_info_start_internal(long long *a1)
{
long long v1; // rdi
_DWORD *v2; // rbx
long long result; // rax
v1 = *a1;
v2 = *(_DWORD **)(*(_QWORD *)(v1 + 1152) + 40LL);
result = mysql_dump_debug_info(v1);
v2[2] = result;
*v2 = 0;
return result;
}
| mysql_dump_debug_info_start_internal:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RDI,qword ptr [RDI]
MOV RAX,qword ptr [RDI + 0x480]
MOV RBX,qword ptr [RAX + 0x28]
CALL 0x0011c5ae
MOV dword ptr [RBX + 0x8],EAX
MOV dword ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void mysql_dump_debug_info_start_internal(long *param_1)
{
int4 *puVar1;
int4 uVar2;
puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28);
uVar2 = mysql_dump_debug_info();
puVar1[2] = uVar2;
*puVar1 = 0;
return;
}
| |
25,120 | minja::Parser::parseDictionary() | monkey531[P]llama/common/minja.hpp | std::shared_ptr<Expression> parseDictionary() {
if (consumeToken("{").empty()) return nullptr;
std::vector<std::pair<std::shared_ptr<Expression>, std::shared_ptr<Expression>>> elements;
if (!consumeToken("}").empty()) {
return std::make_shared<DictExpr>(get_location(), std::move(elements));
}
auto parseKeyValuePair = [&]() {
auto key = parseExpression();
if (!key) throw std::runtime_error("Expected key in dictionary");
if (consumeToken(":").empty()) throw std::runtime_error("Expected colon betweek key & value in dictionary");
auto value = parseExpression();
if (!value) throw std::runtime_error("Expected value in dictionary");
elements.emplace_back(std::pair(std::move(key), std::move(value)));
};
parseKeyValuePair();
while (it != end) {
if (!consumeToken(",").empty()) {
parseKeyValuePair();
} else if (!consumeToken("}").empty()) {
return std::make_shared<DictExpr>(get_location(), std::move(elements));
} else {
throw std::runtime_error("Expected comma or closing brace in dictionary");
}
}
throw std::runtime_error("Expected closing brace");
} | O1 | cpp | minja::Parser::parseDictionary():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r14
movq %rdi, %r12
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x68133(%rip), %rsi # 0xab835
leaq 0x6812d(%rip), %rdx # 0xab836
movq %rsp, %rdi
callq 0x1c80a
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
movq %r14, %rsi
movl $0x1, %ecx
callq 0x305ba
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
movq -0x8(%rax), %rbx
cmpq %rax, %rdi
je 0x43745
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x186a0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x43760
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x186a0
xorps %xmm0, %xmm0
testq %rbx, %rbx
je 0x4381a
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
movq %rsp, %rdi
leaq 0x10(%rsp), %rax
movq %rax, (%rdi)
leaq 0x6ff4f(%rip), %rsi # 0xb36db
leaq 0x6ff49(%rip), %rdx # 0xb36dc
callq 0x1c80a
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
movq %r14, %rsi
movl $0x1, %ecx
callq 0x305ba
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rbx
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x437ce
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x186a0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x437e9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x186a0
testq %rbx, %rbx
je 0x43824
movq %r12, %r13
movq (%r14), %r12
movq 0x8(%r14), %r15
testq %r15, %r15
je 0x43978
movq 0x9a790(%rip), %rax # 0xddf98
cmpb $0x0, (%rax)
je 0x43973
incl 0x8(%r15)
jmp 0x43978
movups %xmm0, (%r12)
jmp 0x43a96
movq %r12, 0x60(%rsp)
leaq 0x68(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x40(%rsp), %rax
movq %rax, 0x8(%rdi)
callq 0x4feaa
leaq 0x69624(%rip), %r12 # 0xace6a
movq %rsp, %r13
leaq 0x20(%rsp), %rbp
leaq 0x68(%rsp), %rbx
movq 0x20(%r14), %rax
cmpq 0x18(%r14), %rax
je 0x43aa8
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %r13, %rdi
leaq 0x695f5(%rip), %rsi # 0xace69
movq %r12, %rdx
callq 0x1c80a
movq %rbp, %rdi
movq %r14, %rsi
movq %r13, %rdx
movl $0x1, %ecx
callq 0x305ba
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %r15
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x438b0
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x186a0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x438cb
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x186a0
testq %r15, %r15
je 0x438dd
movq %rbx, %rdi
callq 0x4feaa
jmp 0x43853
movq %rsp, %rdi
leaq 0x10(%rsp), %rax
movq %rax, (%rdi)
leaq 0x6fdec(%rip), %rsi # 0xb36db
leaq 0x6fde6(%rip), %rdx # 0xb36dc
callq 0x1c80a
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
movq %r14, %rsi
movl $0x1, %ecx
callq 0x305ba
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rbx
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x43931
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x186a0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x4394c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x186a0
testq %rbx, %rbx
je 0x43ada
movq (%r14), %r12
movq 0x8(%r14), %r15
testq %r15, %r15
je 0x439d3
movq 0x9a630(%rip), %rax # 0xddf98
cmpb $0x0, (%rax)
je 0x439ce
incl 0x8(%r15)
jmp 0x439d3
lock
incl 0x8(%r15)
movq 0x20(%r14), %rbx
subq 0x10(%r14), %rbx
movl $0x48, %edi
callq 0x18690
leaq 0x98c87(%rip), %rdx # 0xdc618
addq $0x10, %rdx
movq %rax, %rcx
addq $0x10, %rcx
leaq 0x988e5(%rip), %rsi # 0xdc288
addq $0x10, %rsi
movabsq $0x100000001, %rdi # imm = 0x100000001
movq %rdi, 0x8(%rax)
movq %rdx, (%rax)
movq %rsi, 0x10(%rax)
movq %r12, 0x18(%rax)
movq %r15, 0x20(%rax)
testq %r15, %r15
movq %r13, %r12
jne 0x43a29
jmp 0x43a40
lock
incl 0x8(%r15)
movq 0x20(%r14), %rbx
subq 0x10(%r14), %rbx
movl $0x48, %edi
callq 0x18690
leaq 0x98c2c(%rip), %rdx # 0xdc618
addq $0x10, %rdx
movq %rax, %rcx
addq $0x10, %rcx
leaq 0x9888a(%rip), %rsi # 0xdc288
addq $0x10, %rsi
movabsq $0x100000001, %rdi # imm = 0x100000001
movq %rdi, 0x8(%rax)
movq %rdx, (%rax)
movq %rsi, 0x10(%rax)
movq %r12, 0x18(%rax)
movq %r15, 0x20(%rax)
testq %r15, %r15
movq 0x60(%rsp), %r12
je 0x43a40
movq 0x9a568(%rip), %rdx # 0xddf98
cmpb $0x0, (%rdx)
je 0x43a3b
incl 0x8(%r15)
jmp 0x43a40
lock
incl 0x8(%r15)
leaq 0x98c21(%rip), %rdx # 0xdc668
addq $0x10, %rdx
movq %rbx, 0x28(%rax)
movq %rdx, 0x10(%rax)
movaps 0x40(%rsp), %xmm0
movups %xmm0, 0x30(%rax)
movq 0x50(%rsp), %rdx
movq %rdx, 0x40(%rax)
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
movq %rcx, (%r12)
movq %rax, 0x8(%r12)
testq %r15, %r15
je 0x43a8c
movq %r15, %rdi
callq 0x2fb64
leaq 0x40(%rsp), %rdi
callq 0x500e2
movq %r12, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x18350
movq %rax, %r14
leaq 0x694e1(%rip), %rsi # 0xacf9d
movq %rax, %rdi
callq 0x18260
movq 0x9a525(%rip), %rsi # 0xddff0
movq 0x9a49e(%rip), %rdx # 0xddf70
movq %r14, %rdi
callq 0x18b30
movl $0x10, %edi
callq 0x18350
movq %rax, %r14
leaq 0x69481(%rip), %rsi # 0xacf6f
movq %rax, %rdi
callq 0x18260
jmp 0x43ac4
jmp 0x43b3b
jmp 0x43b00
jmp 0x43b61
jmp 0x43b4c
movq %rax, %rbx
testq %r15, %r15
je 0x43b4f
movq %r15, %rdi
callq 0x2fb64
jmp 0x43b4f
jmp 0x43b61
jmp 0x43b4c
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x43b59
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x186a0
jmp 0x43b59
movq %rax, %rbx
jmp 0x43b59
movq %rax, %rbx
movq %r14, %rdi
callq 0x184f0
jmp 0x43b4f
jmp 0x43b4c
jmp 0x43b4c
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x500e2
movq %rbx, %rdi
callq 0x18ba0
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x43b4f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x186a0
jmp 0x43b4f
nop
| _ZN5minja6Parser15parseDictionaryEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov r14, rsi
mov r12, rdi
lea rax, [rsp+0A8h+var_98]
mov [rax-10h], rax
lea rsi, asc_AB835; "{"
lea rdx, asc_AB835+1; ""
mov rdi, rsp
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rdi, [rsp+0A8h+var_88]
mov rdx, rsp
mov rsi, r14
mov ecx, 1
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
lea rax, [rsp+0A8h+var_78]
mov rdi, [rax-10h]; void *
mov rbx, [rax-8]
cmp rdi, rax
jz short loc_43745
mov rsi, [rsp+0A8h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_43745:
mov rdi, [rsp+0A8h+var_A8]; void *
lea rax, [rsp+0A8h+var_98]
cmp rdi, rax
jz short loc_43760
mov rsi, [rsp+0A8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_43760:
xorps xmm0, xmm0
test rbx, rbx
jz loc_4381A
movaps [rsp+0A8h+var_68], xmm0
mov [rsp+0A8h+var_58], 0
mov rdi, rsp
lea rax, [rsp+0A8h+var_98]
mov [rdi], rax
lea rsi, aT020+7; "}"
lea rdx, aT020+8; ""
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rdi, [rsp+0A8h+var_88]
mov rdx, rsp
mov rsi, r14
mov ecx, 1
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
mov rdi, [rsp+0A8h+var_88]; void *
mov rbx, [rsp+0A8h+var_80]
lea rax, [rsp+0A8h+var_78]
cmp rdi, rax
jz short loc_437CE
mov rsi, [rsp+0A8h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_437CE:
mov rdi, [rsp+0A8h+var_A8]; void *
lea rax, [rsp+0A8h+var_98]
cmp rdi, rax
jz short loc_437E9
mov rsi, [rsp+0A8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_437E9:
test rbx, rbx
jz short loc_43824
mov r13, r12
mov r12, [r14]
mov r15, [r14+8]
test r15, r15
jz loc_43978
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz loc_43973
inc dword ptr [r15+8]
jmp loc_43978
loc_4381A:
movups xmmword ptr [r12], xmm0
jmp loc_43A96
loc_43824:
mov [rsp+0A8h+var_48], r12
lea rdi, [rsp+0A8h+var_40]
mov [rdi], r14
lea rax, [rsp+0A8h+var_68]
mov [rdi+8], rax
call _ZZN5minja6Parser15parseDictionaryEvENKUlvE_clEv; minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(void)
lea r12, asc_ACE69+1; ""
mov r13, rsp
lea rbp, [rsp+0A8h+var_88]
lea rbx, [rsp+0A8h+var_40]
loc_43853:
mov rax, [r14+20h]
cmp rax, [r14+18h]
jz loc_43AA8
lea rax, [rsp+0A8h+var_98]
mov [rsp+0A8h+var_A8], rax
mov rdi, r13
lea rsi, asc_ACE69; ","
mov rdx, r12
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov rdi, rbp
mov rsi, r14
mov rdx, r13
mov ecx, 1
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
mov rdi, [rsp+0A8h+var_88]; void *
mov r15, [rsp+0A8h+var_80]
lea rax, [rsp+0A8h+var_78]
cmp rdi, rax
jz short loc_438B0
mov rsi, [rsp+0A8h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_438B0:
mov rdi, [rsp+0A8h+var_A8]; void *
lea rax, [rsp+0A8h+var_98]
cmp rdi, rax
jz short loc_438CB
mov rsi, [rsp+0A8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_438CB:
test r15, r15
jz short loc_438DD
mov rdi, rbx
call _ZZN5minja6Parser15parseDictionaryEvENKUlvE_clEv; minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(void)
jmp loc_43853
loc_438DD:
mov rdi, rsp
lea rax, [rsp+0A8h+var_98]
mov [rdi], rax
lea rsi, aT020+7; "}"
lea rdx, aT020+8; ""
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rdi, [rsp+0A8h+var_88]
mov rdx, rsp
mov rsi, r14
mov ecx, 1
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
mov rdi, [rsp+0A8h+var_88]; void *
mov rbx, [rsp+0A8h+var_80]
lea rax, [rsp+0A8h+var_78]
cmp rdi, rax
jz short loc_43931
mov rsi, [rsp+0A8h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_43931:
mov rdi, [rsp+0A8h+var_A8]; void *
lea rax, [rsp+0A8h+var_98]
cmp rdi, rax
jz short loc_4394C
mov rsi, [rsp+0A8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4394C:
test rbx, rbx
jz loc_43ADA
mov r12, [r14]
mov r15, [r14+8]
test r15, r15
jz short loc_439D3
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_439CE
inc dword ptr [r15+8]
jmp short loc_439D3
loc_43973:
lock inc dword ptr [r15+8]
loc_43978:
mov rbx, [r14+20h]
sub rbx, [r14+10h]
mov edi, 48h ; 'H'; unsigned __int64
call __Znwm; operator new(ulong)
lea rdx, _ZTVSt23_Sp_counted_ptr_inplaceIN5minja8DictExprESaIS1_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<minja::DictExpr,std::allocator<minja::DictExpr>,(__gnu_cxx::_Lock_policy)2>
add rdx, 10h
mov rcx, rax
add rcx, 10h
lea rsi, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression
add rsi, 10h
mov rdi, 100000001h
mov [rax+8], rdi
mov [rax], rdx
mov [rax+10h], rsi
mov [rax+18h], r12
mov [rax+20h], r15
test r15, r15
mov r12, r13
jnz short loc_43A29
jmp short loc_43A40
loc_439CE:
lock inc dword ptr [r15+8]
loc_439D3:
mov rbx, [r14+20h]
sub rbx, [r14+10h]
mov edi, 48h ; 'H'; unsigned __int64
call __Znwm; operator new(ulong)
lea rdx, _ZTVSt23_Sp_counted_ptr_inplaceIN5minja8DictExprESaIS1_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<minja::DictExpr,std::allocator<minja::DictExpr>,(__gnu_cxx::_Lock_policy)2>
add rdx, 10h
mov rcx, rax
add rcx, 10h
lea rsi, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression
add rsi, 10h
mov rdi, 100000001h
mov [rax+8], rdi
mov [rax], rdx
mov [rax+10h], rsi
mov [rax+18h], r12
mov [rax+20h], r15
test r15, r15
mov r12, [rsp+0A8h+var_48]
jz short loc_43A40
loc_43A29:
mov rdx, cs:__libc_single_threaded_ptr
cmp byte ptr [rdx], 0
jz short loc_43A3B
inc dword ptr [r15+8]
jmp short loc_43A40
loc_43A3B:
lock inc dword ptr [r15+8]
loc_43A40:
lea rdx, _ZTVN5minja8DictExprE; `vtable for'minja::DictExpr
add rdx, 10h
mov [rax+28h], rbx
mov [rax+10h], rdx
movaps xmm0, [rsp+0A8h+var_68]
movups xmmword ptr [rax+30h], xmm0
mov rdx, [rsp+0A8h+var_58]
mov [rax+40h], rdx
xorps xmm0, xmm0
movaps [rsp+0A8h+var_68], xmm0
mov [rsp+0A8h+var_58], 0
mov [r12], rcx
mov [r12+8], rax
test r15, r15
jz short loc_43A8C
mov rdi, r15
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_43A8C:
lea rdi, [rsp+0A8h+var_68]
call _ZNSt6vectorISt4pairISt10shared_ptrIN5minja10ExpressionEES4_ESaIS5_EED2Ev; std::vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>::~vector()
loc_43A96:
mov rax, r12
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_43AA8:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedClosin_5; "Expected closing brace"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
loc_43AC4:
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
loc_43ADA:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedCommaO_0; "Expected comma or closing brace in dict"...
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short loc_43AC4
jmp short loc_43B3B
jmp short loc_43B00
jmp short loc_43B61
jmp short loc_43B4C
loc_43B00:
mov rbx, rax
test r15, r15
jz short loc_43B4F
mov rdi, r15
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
jmp short loc_43B4F
jmp short loc_43B61
jmp short loc_43B4C
mov rbx, rax
mov rdi, [rsp+0]; void *
lea rax, [rsp+arg_8]
cmp rdi, rax
jz short loc_43B59
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_43B59
mov rbx, rax
jmp short loc_43B59
loc_43B3B:
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_43B4F
jmp short loc_43B4C
jmp short $+2
loc_43B4C:
mov rbx, rax
loc_43B4F:
lea rdi, [rsp+arg_38]
call _ZNSt6vectorISt4pairISt10shared_ptrIN5minja10ExpressionEES4_ESaIS5_EED2Ev; std::vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>::~vector()
loc_43B59:
mov rdi, rbx
call __Unwind_Resume
loc_43B61:
mov rbx, rax
mov rdi, [rsp+0]; void *
lea rax, [rsp+arg_8]
cmp rdi, rax
jz short loc_43B4F
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_43B4F
| minja::Parser * minja::Parser::parseDictionary(minja::Parser *this, _QWORD *a2)
{
minja::Parser *v2; // r12
long long v3; // rbx
long long v4; // rbx
long long v5; // r12
volatile signed __int32 *v6; // r15
long long v7; // r15
long long v8; // rbx
long long v9; // r12
long long v10; // rbx
long long v11; // rax
long long v12; // rcx
std::runtime_error *exception; // r14
void *v15[2]; // [rsp+0h] [rbp-A8h] BYREF
_QWORD v16[2]; // [rsp+10h] [rbp-98h] BYREF
void *v17; // [rsp+20h] [rbp-88h] BYREF
long long v18; // [rsp+28h] [rbp-80h]
_QWORD v19[2]; // [rsp+30h] [rbp-78h] BYREF
__int128 v20; // [rsp+40h] [rbp-68h] BYREF
long long v21; // [rsp+50h] [rbp-58h]
minja::Parser *v22; // [rsp+60h] [rbp-48h]
_QWORD *v23; // [rsp+68h] [rbp-40h]
__int128 *v24; // [rsp+70h] [rbp-38h]
v2 = this;
v15[0] = v16;
std::string::_M_construct<char const*>(v15, "{", (long long)"");
minja::Parser::consumeToken(&v17, (long long)a2, v15, 1u);
v3 = v18;
if ( v17 != v19 )
operator delete(v17, v19[0] + 1LL);
if ( v15[0] != v16 )
operator delete(v15[0], v16[0] + 1LL);
if ( !v3 )
{
*(_OWORD *)this = 0LL;
return v2;
}
v20 = 0LL;
v21 = 0LL;
v15[0] = v16;
std::string::_M_construct<char const*>(v15, "}", (long long)"");
minja::Parser::consumeToken(&v17, (long long)a2, v15, 1u);
v4 = v18;
if ( v17 != v19 )
operator delete(v17, v19[0] + 1LL);
if ( v15[0] != v16 )
operator delete(v15[0], v16[0] + 1LL);
if ( v4 )
{
v5 = *a2;
v6 = (volatile signed __int32 *)a2[1];
if ( v6 )
{
if ( _libc_single_threaded )
++*((_DWORD *)v6 + 2);
else
_InterlockedIncrement(v6 + 2);
}
v10 = a2[4] - a2[2];
v11 = operator new(0x48uLL);
v12 = v11 + 16;
*(_QWORD *)(v11 + 8) = 0x100000001LL;
*(_QWORD *)v11 = &`vtable for'std::_Sp_counted_ptr_inplace<minja::DictExpr,std::allocator<minja::DictExpr>,(__gnu_cxx::_Lock_policy)2>
+ 2;
*(_QWORD *)(v11 + 16) = &`vtable for'minja::Expression + 2;
*(_QWORD *)(v11 + 24) = v5;
*(_QWORD *)(v11 + 32) = v6;
v2 = this;
if ( v6 )
goto LABEL_36;
goto LABEL_39;
}
v22 = this;
v23 = a2;
v24 = &v20;
minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(0.0);
while ( 1 )
{
if ( a2[4] == a2[3] )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected closing brace");
goto LABEL_44;
}
v15[0] = v16;
std::string::_M_construct<char const*>(v15, ",", (long long)"");
minja::Parser::consumeToken(&v17, (long long)a2, v15, 1u);
v7 = v18;
if ( v17 != v19 )
operator delete(v17, v19[0] + 1LL);
if ( v15[0] != v16 )
operator delete(v15[0], v16[0] + 1LL);
if ( !v7 )
break;
minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(0.0);
}
v15[0] = v16;
std::string::_M_construct<char const*>(v15, "}", (long long)"");
minja::Parser::consumeToken(&v17, (long long)a2, v15, 1u);
v8 = v18;
if ( v17 != v19 )
operator delete(v17, v19[0] + 1LL);
if ( v15[0] != v16 )
operator delete(v15[0], v16[0] + 1LL);
if ( !v8 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected comma or closing brace in dictionary");
LABEL_44:
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v9 = *a2;
v6 = (volatile signed __int32 *)a2[1];
if ( v6 )
{
if ( _libc_single_threaded )
++*((_DWORD *)v6 + 2);
else
_InterlockedIncrement(v6 + 2);
}
v10 = a2[4] - a2[2];
v11 = operator new(0x48uLL);
v12 = v11 + 16;
*(_QWORD *)(v11 + 8) = 0x100000001LL;
*(_QWORD *)v11 = &`vtable for'std::_Sp_counted_ptr_inplace<minja::DictExpr,std::allocator<minja::DictExpr>,(__gnu_cxx::_Lock_policy)2>
+ 2;
*(_QWORD *)(v11 + 16) = &`vtable for'minja::Expression + 2;
*(_QWORD *)(v11 + 24) = v9;
*(_QWORD *)(v11 + 32) = v6;
v2 = v22;
if ( v6 )
{
LABEL_36:
if ( _libc_single_threaded )
++*((_DWORD *)v6 + 2);
else
_InterlockedIncrement(v6 + 2);
}
LABEL_39:
*(_QWORD *)(v11 + 40) = v10;
*(_QWORD *)(v11 + 16) = &`vtable for'minja::DictExpr + 2;
*(_OWORD *)(v11 + 48) = v20;
*(_QWORD *)(v11 + 64) = v21;
v20 = 0LL;
v21 = 0LL;
*(_QWORD *)v2 = v12;
*((_QWORD *)v2 + 1) = v11;
if ( v6 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v6);
std::vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>::~vector(&v20);
return v2;
}
| parseDictionary:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV R14,RSI
MOV R12,RDI
LEA RAX,[RSP + 0x10]
MOV qword ptr [RAX + -0x10],RAX
LAB_001436fb:
LEA RSI,[0x1ab835]
LEA RDX,[0x1ab836]
MOV RDI,RSP
CALL 0x0011c80a
LAB_00143711:
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
MOV RSI,R14
MOV ECX,0x1
CALL 0x001305ba
LEA RAX,[RSP + 0x30]
MOV RDI,qword ptr [RAX + -0x10]
MOV RBX,qword ptr [RAX + -0x8]
CMP RDI,RAX
JZ 0x00143745
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x001186a0
LAB_00143745:
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x00143760
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x001186a0
LAB_00143760:
XORPS XMM0,XMM0
TEST RBX,RBX
JZ 0x0014381a
MOVAPS xmmword ptr [RSP + 0x40],XMM0
MOV qword ptr [RSP + 0x50],0x0
MOV RDI,RSP
LEA RAX,[RSP + 0x10]
MOV qword ptr [RDI],RAX
LAB_00143785:
LEA RSI,[0x1b36db]
LEA RDX,[0x1b36dc]
CALL 0x0011c80a
LAB_00143798:
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
MOV RSI,R14
MOV ECX,0x1
CALL 0x001305ba
MOV RDI,qword ptr [RSP + 0x20]
MOV RBX,qword ptr [RSP + 0x28]
LEA RAX,[RSP + 0x30]
CMP RDI,RAX
JZ 0x001437ce
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x001186a0
LAB_001437ce:
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x001437e9
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x001186a0
LAB_001437e9:
TEST RBX,RBX
JZ 0x00143824
MOV R13,R12
MOV R12,qword ptr [R14]
MOV R15,qword ptr [R14 + 0x8]
TEST R15,R15
JZ 0x00143978
MOV RAX,qword ptr [0x001ddf98]
CMP byte ptr [RAX],0x0
JZ 0x00143973
INC dword ptr [R15 + 0x8]
JMP 0x00143978
LAB_0014381a:
MOVUPS xmmword ptr [R12],XMM0
JMP 0x00143a96
LAB_00143824:
MOV qword ptr [RSP + 0x60],R12
LEA RDI,[RSP + 0x68]
MOV qword ptr [RDI],R14
LEA RAX,[RSP + 0x40]
MOV qword ptr [RDI + 0x8],RAX
LAB_0014383a:
CALL 0x0014feaa
LEA R12,[0x1ace6a]
MOV R13,RSP
LEA RBP,[RSP + 0x20]
LEA RBX,[RSP + 0x68]
LAB_00143853:
MOV RAX,qword ptr [R14 + 0x20]
CMP RAX,qword ptr [R14 + 0x18]
JZ 0x00143aa8
LEA RAX,[RSP + 0x10]
MOV qword ptr [RSP],RAX
LAB_0014386a:
MOV RDI,R13
LEA RSI,[0x1ace69]
MOV RDX,R12
CALL 0x0011c80a
LAB_0014387c:
MOV RDI,RBP
MOV RSI,R14
MOV RDX,R13
MOV ECX,0x1
CALL 0x001305ba
MOV RDI,qword ptr [RSP + 0x20]
MOV R15,qword ptr [RSP + 0x28]
LEA RAX,[RSP + 0x30]
CMP RDI,RAX
JZ 0x001438b0
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x001186a0
LAB_001438b0:
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x001438cb
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x001186a0
LAB_001438cb:
TEST R15,R15
JZ 0x001438dd
LAB_001438d0:
MOV RDI,RBX
CALL 0x0014feaa
JMP 0x00143853
LAB_001438dd:
MOV RDI,RSP
LEA RAX,[RSP + 0x10]
MOV qword ptr [RDI],RAX
LAB_001438e8:
LEA RSI,[0x1b36db]
LEA RDX,[0x1b36dc]
CALL 0x0011c80a
LAB_001438fb:
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
MOV RSI,R14
MOV ECX,0x1
CALL 0x001305ba
MOV RDI,qword ptr [RSP + 0x20]
MOV RBX,qword ptr [RSP + 0x28]
LEA RAX,[RSP + 0x30]
CMP RDI,RAX
JZ 0x00143931
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x001186a0
LAB_00143931:
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x0014394c
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x001186a0
LAB_0014394c:
TEST RBX,RBX
JZ 0x00143ada
MOV R12,qword ptr [R14]
MOV R15,qword ptr [R14 + 0x8]
TEST R15,R15
JZ 0x001439d3
MOV RAX,qword ptr [0x001ddf98]
CMP byte ptr [RAX],0x0
JZ 0x001439ce
INC dword ptr [R15 + 0x8]
JMP 0x001439d3
LAB_00143973:
INC.LOCK dword ptr [R15 + 0x8]
LAB_00143978:
MOV RBX,qword ptr [R14 + 0x20]
SUB RBX,qword ptr [R14 + 0x10]
LAB_00143980:
MOV EDI,0x48
CALL 0x00118690
LEA RDX,[0x1dc618]
ADD RDX,0x10
MOV RCX,RAX
ADD RCX,0x10
LEA RSI,[0x1dc288]
ADD RSI,0x10
MOV RDI,0x100000001
MOV qword ptr [RAX + 0x8],RDI
MOV qword ptr [RAX],RDX
MOV qword ptr [RAX + 0x10],RSI
MOV qword ptr [RAX + 0x18],R12
MOV qword ptr [RAX + 0x20],R15
TEST R15,R15
MOV R12,R13
JNZ 0x00143a29
JMP 0x00143a40
LAB_001439ce:
INC.LOCK dword ptr [R15 + 0x8]
LAB_001439d3:
MOV RBX,qword ptr [R14 + 0x20]
SUB RBX,qword ptr [R14 + 0x10]
LAB_001439db:
MOV EDI,0x48
CALL 0x00118690
LAB_001439e5:
LEA RDX,[0x1dc618]
ADD RDX,0x10
MOV RCX,RAX
ADD RCX,0x10
LEA RSI,[0x1dc288]
ADD RSI,0x10
MOV RDI,0x100000001
MOV qword ptr [RAX + 0x8],RDI
MOV qword ptr [RAX],RDX
MOV qword ptr [RAX + 0x10],RSI
MOV qword ptr [RAX + 0x18],R12
MOV qword ptr [RAX + 0x20],R15
TEST R15,R15
MOV R12,qword ptr [RSP + 0x60]
JZ 0x00143a40
LAB_00143a29:
MOV RDX,qword ptr [0x001ddf98]
CMP byte ptr [RDX],0x0
JZ 0x00143a3b
INC dword ptr [R15 + 0x8]
JMP 0x00143a40
LAB_00143a3b:
INC.LOCK dword ptr [R15 + 0x8]
LAB_00143a40:
LEA RDX,[0x1dc668]
ADD RDX,0x10
MOV qword ptr [RAX + 0x28],RBX
MOV qword ptr [RAX + 0x10],RDX
MOVAPS XMM0,xmmword ptr [RSP + 0x40]
MOVUPS xmmword ptr [RAX + 0x30],XMM0
MOV RDX,qword ptr [RSP + 0x50]
MOV qword ptr [RAX + 0x40],RDX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x40],XMM0
MOV qword ptr [RSP + 0x50],0x0
MOV qword ptr [R12],RCX
MOV qword ptr [R12 + 0x8],RAX
TEST R15,R15
JZ 0x00143a8c
MOV RDI,R15
CALL 0x0012fb64
LAB_00143a8c:
LEA RDI,[RSP + 0x40]
CALL 0x001500e2
LAB_00143a96:
MOV RAX,R12
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00143aa8:
MOV EDI,0x10
CALL 0x00118350
MOV R14,RAX
LAB_00143ab5:
LEA RSI,[0x1acf9d]
MOV RDI,RAX
CALL 0x00118260
LAB_00143ac4:
MOV RSI,qword ptr [0x001ddff0]
MOV RDX,qword ptr [0x001ddf70]
MOV RDI,R14
CALL 0x00118b30
LAB_00143ada:
MOV EDI,0x10
CALL 0x00118350
MOV R14,RAX
LAB_00143ae7:
LEA RSI,[0x1acf6f]
MOV RDI,RAX
CALL 0x00118260
LAB_00143af6:
JMP 0x00143ac4
|
/* minja::Parser::parseDictionary() */
int8 * minja::Parser::parseDictionary(void)
{
int8 uVar1;
int8 *puVar2;
runtime_error *this;
int8 *puVar3;
long lVar4;
int8 *in_RSI;
int8 *in_RDI;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *this_00;
long *local_a8 [2];
long local_98 [2];
long *local_88;
long local_80;
long local_78 [2];
int8 local_68;
int8 uStack_60;
int8 local_58;
int8 *local_48;
_lambda___1_ local_40 [8];
int8 *local_38;
local_a8[0] = local_98;
/* try { // try from 001436fb to 00143710 has its CatchHandler @ 00143b36 */
std::__cxx11::string::_M_construct<char_const*>(local_a8,&DAT_001ab835,&DAT_001ab836);
/* try { // try from 00143711 to 00143725 has its CatchHandler @ 00143b16 */
consumeToken(&local_88);
lVar4 = local_80;
if (local_88 != local_78) {
operator_delete(local_88,local_78[0] + 1);
}
if (local_a8[0] != local_98) {
operator_delete(local_a8[0],local_98[0] + 1);
}
if (lVar4 == 0) {
*in_RDI = 0;
in_RDI[1] = 0;
}
else {
local_68 = 0;
uStack_60 = 0;
local_58 = 0;
local_a8[0] = local_98;
/* try { // try from 00143785 to 00143797 has its CatchHandler @ 00143b14 */
std::__cxx11::string::_M_construct<char_const*>(local_a8,&DAT_001b36db,&DAT_001b36dc);
/* try { // try from 00143798 to 001437ac has its CatchHandler @ 00143b12 */
consumeToken(&local_88);
lVar4 = local_80;
if (local_88 != local_78) {
operator_delete(local_88,local_78[0] + 1);
}
if (local_a8[0] != local_98) {
operator_delete(local_a8[0],local_98[0] + 1);
}
if (lVar4 == 0) {
local_38 = &local_68;
local_48 = in_RDI;
/* try { // try from 0014383a to 0014383e has its CatchHandler @ 00143b48 */
parseDictionary()::{lambda()#1}::operator()(local_40);
do {
if (in_RSI[4] == in_RSI[3]) {
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00143ab5 to 00143ac3 has its CatchHandler @ 00143b3b */
std::runtime_error::runtime_error(this,"Expected closing brace");
LAB_00143ac4:
/* try { // try from 00143ac4 to 00143ad9 has its CatchHandler @ 00143b48 */
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_001ddff0,PTR__runtime_error_001ddf70);
}
local_a8[0] = local_98;
/* try { // try from 0014386a to 0014387b has its CatchHandler @ 00143b4c */
std::__cxx11::string::_M_construct<char_const*>(local_a8,&DAT_001ace69,&DAT_001ace6a);
/* try { // try from 0014387c to 0014388e has its CatchHandler @ 00143b61 */
consumeToken(&local_88);
lVar4 = local_80;
if (local_88 != local_78) {
operator_delete(local_88,local_78[0] + 1);
}
if (local_a8[0] != local_98) {
operator_delete(local_a8[0],local_98[0] + 1);
}
if (lVar4 == 0) {
local_a8[0] = local_98;
/* try { // try from 001438e8 to 001438fa has its CatchHandler @ 00143afe */
std::__cxx11::string::_M_construct<char_const*>(local_a8,&DAT_001b36db,&DAT_001b36dc);
/* try { // try from 001438fb to 0014390f has its CatchHandler @ 00143afc */
consumeToken(&local_88);
if (local_88 != local_78) {
operator_delete(local_88,local_78[0] + 1);
}
if (local_a8[0] != local_98) {
operator_delete(local_a8[0],local_98[0] + 1);
}
if (local_80 == 0) {
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00143ae7 to 00143af5 has its CatchHandler @ 00143af8 */
std::runtime_error::runtime_error(this,"Expected comma or closing brace in dictionary");
goto LAB_00143ac4;
}
uVar1 = *in_RSI;
this_00 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)in_RSI[1];
if (this_00 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
if (*PTR___libc_single_threaded_001ddf98 == '\0') {
LOCK();
*(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1;
UNLOCK();
}
else {
*(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1;
}
}
lVar4 = in_RSI[4] - in_RSI[2];
/* try { // try from 001439db to 001439e4 has its CatchHandler @ 00143afa */
puVar2 = (int8 *)operator_new(0x48);
puVar3 = puVar2 + 2;
puVar2[1] = 0x100000001;
*puVar2 = &PTR___Sp_counted_ptr_inplace_001dc628;
puVar2[2] = &PTR___cxa_pure_virtual_001dc298;
puVar2[3] = uVar1;
puVar2[4] = this_00;
in_RDI = local_48;
if (this_00 == (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) goto LAB_00143a40;
goto LAB_00143a29;
}
/* try { // try from 001438d0 to 001438d7 has its CatchHandler @ 00143b4a */
parseDictionary()::{lambda()#1}::operator()(local_40);
} while( true );
}
uVar1 = *in_RSI;
this_00 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)in_RSI[1];
if (this_00 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
if (*PTR___libc_single_threaded_001ddf98 == '\0') {
LOCK();
*(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1;
UNLOCK();
}
else {
*(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1;
}
}
lVar4 = in_RSI[4] - in_RSI[2];
/* try { // try from 00143980 to 00143989 has its CatchHandler @ 00143b00 */
puVar2 = (int8 *)operator_new(0x48);
puVar3 = puVar2 + 2;
puVar2[1] = 0x100000001;
*puVar2 = &PTR___Sp_counted_ptr_inplace_001dc628;
puVar2[2] = &PTR___cxa_pure_virtual_001dc298;
puVar2[3] = uVar1;
puVar2[4] = this_00;
if (this_00 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
LAB_00143a29:
if (*PTR___libc_single_threaded_001ddf98 == '\0') {
LOCK();
*(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1;
UNLOCK();
}
else {
*(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1;
}
}
LAB_00143a40:
puVar2[5] = lVar4;
puVar2[2] = &PTR_do_evaluate_001dc678;
puVar2[6] = local_68;
puVar2[7] = uStack_60;
puVar2[8] = local_58;
local_68 = 0;
uStack_60 = 0;
local_58 = 0;
*in_RDI = puVar3;
in_RDI[1] = puVar2;
if (this_00 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(this_00);
}
std::
vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>,std::allocator<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>>
::~vector((vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>,std::allocator<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>>
*)&local_68);
}
return in_RDI;
}
| |
25,121 | minja::Parser::parseDictionary() | monkey531[P]llama/common/minja.hpp | std::shared_ptr<Expression> parseDictionary() {
if (consumeToken("{").empty()) return nullptr;
std::vector<std::pair<std::shared_ptr<Expression>, std::shared_ptr<Expression>>> elements;
if (!consumeToken("}").empty()) {
return std::make_shared<DictExpr>(get_location(), std::move(elements));
}
auto parseKeyValuePair = [&]() {
auto key = parseExpression();
if (!key) throw std::runtime_error("Expected key in dictionary");
if (consumeToken(":").empty()) throw std::runtime_error("Expected colon betweek key & value in dictionary");
auto value = parseExpression();
if (!value) throw std::runtime_error("Expected value in dictionary");
elements.emplace_back(std::pair(std::move(key), std::move(value)));
};
parseKeyValuePair();
while (it != end) {
if (!consumeToken(",").empty()) {
parseKeyValuePair();
} else if (!consumeToken("}").empty()) {
return std::make_shared<DictExpr>(get_location(), std::move(elements));
} else {
throw std::runtime_error("Expected comma or closing brace in dictionary");
}
}
throw std::runtime_error("Expected closing brace");
} | O2 | cpp | minja::Parser::parseDictionary():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x4db63(%rip), %rsi # 0x8e7e5
leaq 0x10(%rsp), %rdi
leaq 0x60(%rsp), %r15
movq %r15, %rdx
callq 0x22836
movq %rbx, 0x38(%rsp)
leaq 0x40(%rsp), %rdi
leaq 0x10(%rsp), %rdx
pushq $0x1
popq %rcx
movq %r14, %rsi
callq 0x30dfa
leaq 0x40(%rsp), %rdi
movq 0x8(%rdi), %rbx
callq 0x20d88
leaq 0x10(%rsp), %rdi
callq 0x20d88
xorps %xmm0, %xmm0
testq %rbx, %rbx
je 0x40d4c
movaps %xmm0, 0x60(%rsp)
andq $0x0, 0x70(%rsp)
leaq 0x559cf(%rip), %rsi # 0x966af
leaq 0x10(%rsp), %rdi
leaq 0x78(%rsp), %rdx
callq 0x22836
leaq 0x40(%rsp), %rdi
leaq 0x10(%rsp), %rdx
pushq $0x1
popq %rcx
movq %r14, %rsi
callq 0x30dfa
leaq 0x40(%rsp), %rdi
movq 0x8(%rdi), %rbx
callq 0x20d88
leaq 0x10(%rsp), %rdi
callq 0x20d88
testq %rbx, %rbx
je 0x40d59
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
callq 0x3039e
movq 0x38(%rsp), %rbx
leaq 0x10(%rsp), %rdi
leaq 0x40(%rsp), %rsi
leaq 0x60(%rsp), %rdx
callq 0x4b313
jmp 0x40e44
movq 0x38(%rsp), %rbx
movups %xmm0, (%rbx)
jmp 0x40e72
leaq 0x78(%rsp), %rdi
movq %r14, (%rdi)
movq %r15, 0x8(%rdi)
callq 0x4b334
leaq 0x10(%rsp), %r12
leaq 0x40(%rsp), %rbp
pushq $0x1
popq %rbx
leaq 0x78(%rsp), %r15
movq 0x20(%r14), %rax
cmpq 0x18(%r14), %rax
je 0x40e87
movq %r12, %rdi
leaq 0x4f094(%rip), %rsi # 0x8fe28
leaq 0xf(%rsp), %rdx
callq 0x22836
movq %rbp, %rdi
movq %r14, %rsi
movq %r12, %rdx
movl %ebx, %ecx
callq 0x30dfa
movq 0x48(%rsp), %r13
movq %rbp, %rdi
callq 0x20d88
movq %r12, %rdi
callq 0x20d88
testq %r13, %r13
je 0x40dd2
movq %r15, %rdi
callq 0x4b334
jmp 0x40d7c
leaq 0x558d6(%rip), %rsi # 0x966af
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x22836
leaq 0x40(%rsp), %rdi
leaq 0x10(%rsp), %rdx
pushq $0x1
popq %rcx
movq %r14, %rsi
callq 0x30dfa
leaq 0x40(%rsp), %rdi
movq 0x8(%rdi), %rbx
callq 0x20d88
leaq 0x10(%rsp), %rdi
callq 0x20d88
testq %rbx, %rbx
je 0x40eb7
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
callq 0x3039e
movq 0x38(%rsp), %rbx
leaq 0x10(%rsp), %rdi
leaq 0x40(%rsp), %rsi
leaq 0x60(%rsp), %rdx
callq 0x4b313
leaq 0x18(%rsp), %rdi
movaps -0x8(%rdi), %xmm0
andq $0x0, (%rdi)
movups %xmm0, (%rbx)
andq $0x0, -0x8(%rdi)
callq 0x302a2
leaq 0x48(%rsp), %rdi
callq 0x302a2
leaq 0x60(%rsp), %rdi
callq 0x4b50e
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x20380
movq %rax, %r14
leaq 0x4f0c3(%rip), %rsi # 0x8ff5c
movq %rax, %rdi
callq 0x20270
movq 0x8e148(%rip), %rsi # 0xceff0
movq 0x8e0c1(%rip), %rdx # 0xcef70
movq %r14, %rdi
callq 0x20b30
pushq $0x10
popq %rdi
callq 0x20380
movq %rax, %r14
leaq 0x4f065(%rip), %rsi # 0x8ff2e
movq %rax, %rdi
callq 0x20270
jmp 0x40ea1
jmp 0x40f06
jmp 0x40edd
jmp 0x40f17
jmp 0x40f1c
jmp 0x40f17
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x302a2
jmp 0x40f29
jmp 0x40f17
jmp 0x40f1c
jmp 0x40f17
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x20d88
jmp 0x40f33
movq %rax, %rbx
jmp 0x40f33
movq %rax, %rbx
movq %r14, %rdi
callq 0x20510
jmp 0x40f29
jmp 0x40f17
jmp 0x40f17
movq %rax, %rbx
jmp 0x40f29
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x20d88
leaq 0x60(%rsp), %rdi
callq 0x4b50e
movq %rbx, %rdi
callq 0x20ba0
nop
| _ZN5minja6Parser15parseDictionaryEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 88h
mov r14, rsi
mov rbx, rdi
lea rsi, asc_8E7E5; "{"
lea rdi, [rsp+0B8h+var_A8]
lea r15, [rsp+0B8h+var_58]
mov rdx, r15
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov [rsp+0B8h+var_80], rbx
lea rdi, [rsp+0B8h+var_78]
lea rdx, [rsp+0B8h+var_A8]
push 1
pop rcx
mov rsi, r14
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
lea rdi, [rsp+0B8h+var_78]; void *
mov rbx, [rdi+8]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0B8h+var_A8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
xorps xmm0, xmm0
test rbx, rbx
jz short loc_40D4C
movaps [rsp+0B8h+var_58], xmm0
and [rsp+0B8h+var_48], 0
lea rsi, aNT020+17h; "}"
lea rdi, [rsp+0B8h+var_A8]
lea rdx, [rsp+0B8h+var_40]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdi, [rsp+0B8h+var_78]
lea rdx, [rsp+0B8h+var_A8]
push 1
pop rcx
mov rsi, r14
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
lea rdi, [rsp+0B8h+var_78]; void *
mov rbx, [rdi+8]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0B8h+var_A8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test rbx, rbx
jz short loc_40D59
lea rdi, [rsp+0B8h+var_78]; this
mov rsi, r14
call _ZNK5minja6Parser12get_locationEv; minja::Parser::get_location(void)
mov rbx, [rsp+0B8h+var_80]
lea rdi, [rsp+0B8h+var_A8]
lea rsi, [rsp+0B8h+var_78]
lea rdx, [rsp+0B8h+var_58]
call _ZSt11make_sharedIN5minja8DictExprEJNS0_8LocationESt6vectorISt4pairISt10shared_ptrINS0_10ExpressionEES7_ESaIS8_EEEES5_IT_EDpOT0_; std::make_shared<minja::DictExpr,minja::Location,std::vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>>(minja::Location,std::vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>> &&)
jmp loc_40E44
loc_40D4C:
mov rbx, [rsp+0B8h+var_80]
movups xmmword ptr [rbx], xmm0
jmp loc_40E72
loc_40D59:
lea rdi, [rsp+0B8h+var_40]
mov [rdi], r14
mov [rdi+8], r15
call _ZZN5minja6Parser15parseDictionaryEvENKUlvE_clEv; minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(void)
lea r12, [rsp+0B8h+var_A8]
lea rbp, [rsp+0B8h+var_78]
push 1
pop rbx
lea r15, [rsp+0B8h+var_40]
loc_40D7C:
mov rax, [r14+20h]
cmp rax, [r14+18h]
jz loc_40E87
mov rdi, r12
lea rsi, asc_8FE28; ","
lea rdx, [rsp+0B8h+var_A9]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, rbp
mov rsi, r14
mov rdx, r12
mov ecx, ebx
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
mov r13, [rsp+0B8h+var_70]
mov rdi, rbp; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, r12; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test r13, r13
jz short loc_40DD2
mov rdi, r15
call _ZZN5minja6Parser15parseDictionaryEvENKUlvE_clEv; minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(void)
jmp short loc_40D7C
loc_40DD2:
lea rsi, aNT020+17h; "}"
lea rdi, [rsp+0B8h+var_A8]
lea rdx, [rsp+0B8h+var_A9]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdi, [rsp+0B8h+var_78]
lea rdx, [rsp+0B8h+var_A8]
push 1
pop rcx
mov rsi, r14
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::string const&,minja::SpaceHandling)
lea rdi, [rsp+0B8h+var_78]; void *
mov rbx, [rdi+8]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0B8h+var_A8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test rbx, rbx
jz loc_40EB7
lea rdi, [rsp+0B8h+var_78]; this
mov rsi, r14
call _ZNK5minja6Parser12get_locationEv; minja::Parser::get_location(void)
mov rbx, [rsp+0B8h+var_80]
lea rdi, [rsp+0B8h+var_A8]
lea rsi, [rsp+0B8h+var_78]
lea rdx, [rsp+0B8h+var_58]
call _ZSt11make_sharedIN5minja8DictExprEJNS0_8LocationESt6vectorISt4pairISt10shared_ptrINS0_10ExpressionEES7_ESaIS8_EEEES5_IT_EDpOT0_; std::make_shared<minja::DictExpr,minja::Location,std::vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>>(minja::Location,std::vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>> &&)
loc_40E44:
lea rdi, [rsp+0B8h+var_A0]
movaps xmm0, xmmword ptr [rdi-8]
and qword ptr [rdi], 0
movups xmmword ptr [rbx], xmm0
and qword ptr [rdi-8], 0
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rdi, [rsp+0B8h+var_70]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rdi, [rsp+0B8h+var_58]
call _ZNSt6vectorISt4pairISt10shared_ptrIN5minja10ExpressionEES4_ESaIS5_EED2Ev; std::vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>::~vector()
loc_40E72:
mov rax, rbx
add rsp, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_40E87:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedClosin_5; "Expected closing brace"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
loc_40EA1:
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
loc_40EB7:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedCommaO_0; "Expected comma or closing brace in dict"...
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short loc_40EA1
jmp short loc_40F06
jmp short loc_40EDD
jmp short loc_40F17
jmp short loc_40F1C
jmp short loc_40F17
loc_40EDD:
mov rbx, rax
lea rdi, [rsp+arg_40]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
jmp short loc_40F29
jmp short loc_40F17
jmp short loc_40F1C
jmp short loc_40F17
mov rbx, rax
lea rdi, [rsp+arg_8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_40F33
mov rbx, rax
jmp short loc_40F33
loc_40F06:
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_40F29
jmp short loc_40F17
jmp short $+2
loc_40F17:
mov rbx, rax
jmp short loc_40F29
loc_40F1C:
mov rbx, rax
lea rdi, [rsp+arg_8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_40F29:
lea rdi, [rsp+arg_58]
call _ZNSt6vectorISt4pairISt10shared_ptrIN5minja10ExpressionEES4_ESaIS5_EED2Ev; std::vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>::~vector()
loc_40F33:
mov rdi, rbx
call __Unwind_Resume
| minja::Parser * minja::Parser::parseDictionary(minja::Parser *this, _QWORD *a2)
{
long long v2; // rbx
long long v3; // rbx
minja::Parser *v4; // rbx
long long v5; // r13
long long v6; // rbx
__int128 v7; // xmm0
std::runtime_error *exception; // r14
_OWORD v10[2]; // [rsp+10h] [rbp-A8h] BYREF
minja::Parser *v11; // [rsp+38h] [rbp-80h]
long long v12; // [rsp+40h] [rbp-78h] BYREF
_QWORD v13[3]; // [rsp+48h] [rbp-70h] BYREF
__int128 v14; // [rsp+60h] [rbp-58h] BYREF
long long v15; // [rsp+70h] [rbp-48h]
_QWORD *v16; // [rsp+78h] [rbp-40h]
__int128 *v17; // [rsp+80h] [rbp-38h]
std::string::basic_string<std::allocator<char>>(v10, (long long)"{");
v11 = this;
minja::Parser::consumeToken(&v12, (long long)a2, v10, 1u);
v2 = v13[0];
std::string::~string(&v12);
std::string::~string(v10);
if ( v2 )
{
v14 = 0LL;
v15 = 0LL;
std::string::basic_string<std::allocator<char>>(v10, (long long)"}");
minja::Parser::consumeToken(&v12, (long long)a2, v10, 1u);
v3 = v13[0];
std::string::~string(&v12);
std::string::~string(v10);
if ( !v3 )
{
v16 = a2;
v17 = &v14;
minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(0.0);
while ( a2[4] != a2[3] )
{
std::string::basic_string<std::allocator<char>>(v10, (long long)",");
minja::Parser::consumeToken(&v12, (long long)a2, v10, 1u);
v5 = v13[0];
std::string::~string(&v12);
std::string::~string(v10);
if ( !v5 )
{
std::string::basic_string<std::allocator<char>>(v10, (long long)"}");
minja::Parser::consumeToken(&v12, (long long)a2, v10, 1u);
v6 = v13[0];
std::string::~string(&v12);
std::string::~string(v10);
if ( v6 )
goto LABEL_10;
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected comma or closing brace in dictionary");
LABEL_13:
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(0.0);
}
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected closing brace");
goto LABEL_13;
}
LABEL_10:
minja::Parser::get_location((minja::Parser *)&v12, a2);
v4 = v11;
std::make_shared<minja::DictExpr,minja::Location,std::vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>>(
v10,
&v12,
&v14);
v7 = v10[0];
*((_QWORD *)&v10[0] + 1) = 0LL;
*(_OWORD *)v4 = v7;
*(_QWORD *)&v10[0] = 0LL;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)v10 + 1);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v13);
std::vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>::~vector(&v14);
}
else
{
v4 = v11;
*(_OWORD *)v11 = 0LL;
}
return v4;
}
| parseDictionary:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x88
MOV R14,RSI
MOV RBX,RDI
LAB_00140c7b:
LEA RSI,[0x18e7e5]
LEA RDI,[RSP + 0x10]
LEA R15,[RSP + 0x60]
MOV RDX,R15
CALL 0x00122836
LAB_00140c94:
MOV qword ptr [RSP + 0x38],RBX
LEA RDI,[RSP + 0x40]
LEA RDX,[RSP + 0x10]
PUSH 0x1
POP RCX
MOV RSI,R14
CALL 0x00130dfa
LEA RDI,[RSP + 0x40]
MOV RBX,qword ptr [RDI + 0x8]
CALL 0x00120d88
LEA RDI,[RSP + 0x10]
CALL 0x00120d88
XORPS XMM0,XMM0
TEST RBX,RBX
JZ 0x00140d4c
MOVAPS xmmword ptr [RSP + 0x60],XMM0
AND qword ptr [RSP + 0x70],0x0
LAB_00140cd9:
LEA RSI,[0x1966af]
LEA RDI,[RSP + 0x10]
LEA RDX,[RSP + 0x78]
CALL 0x00122836
LAB_00140cef:
LEA RDI,[RSP + 0x40]
LEA RDX,[RSP + 0x10]
PUSH 0x1
POP RCX
MOV RSI,R14
CALL 0x00130dfa
LEA RDI,[RSP + 0x40]
MOV RBX,qword ptr [RDI + 0x8]
CALL 0x00120d88
LEA RDI,[RSP + 0x10]
CALL 0x00120d88
TEST RBX,RBX
JZ 0x00140d59
LAB_00140d21:
LEA RDI,[RSP + 0x40]
MOV RSI,R14
CALL 0x0013039e
MOV RBX,qword ptr [RSP + 0x38]
LAB_00140d33:
LEA RDI,[RSP + 0x10]
LEA RSI,[RSP + 0x40]
LEA RDX,[RSP + 0x60]
CALL 0x0014b313
JMP 0x00140e44
LAB_00140d4c:
MOV RBX,qword ptr [RSP + 0x38]
MOVUPS xmmword ptr [RBX],XMM0
JMP 0x00140e72
LAB_00140d59:
LEA RDI,[RSP + 0x78]
MOV qword ptr [RDI],R14
MOV qword ptr [RDI + 0x8],R15
LAB_00140d65:
CALL 0x0014b334
LEA R12,[RSP + 0x10]
LEA RBP,[RSP + 0x40]
PUSH 0x1
POP RBX
LEA R15,[RSP + 0x78]
LAB_00140d7c:
MOV RAX,qword ptr [R14 + 0x20]
CMP RAX,qword ptr [R14 + 0x18]
JZ 0x00140e87
LAB_00140d8a:
MOV RDI,R12
LEA RSI,[0x18fe28]
LEA RDX,[RSP + 0xf]
CALL 0x00122836
LAB_00140d9e:
MOV RDI,RBP
MOV RSI,R14
MOV RDX,R12
MOV ECX,EBX
CALL 0x00130dfa
MOV R13,qword ptr [RSP + 0x48]
MOV RDI,RBP
CALL 0x00120d88
MOV RDI,R12
CALL 0x00120d88
TEST R13,R13
JZ 0x00140dd2
LAB_00140dc8:
MOV RDI,R15
CALL 0x0014b334
JMP 0x00140d7c
LAB_00140dd2:
LEA RSI,[0x1966af]
LEA RDI,[RSP + 0x10]
LEA RDX,[RSP + 0xf]
CALL 0x00122836
LAB_00140de8:
LEA RDI,[RSP + 0x40]
LEA RDX,[RSP + 0x10]
PUSH 0x1
POP RCX
MOV RSI,R14
CALL 0x00130dfa
LEA RDI,[RSP + 0x40]
MOV RBX,qword ptr [RDI + 0x8]
CALL 0x00120d88
LEA RDI,[RSP + 0x10]
CALL 0x00120d88
TEST RBX,RBX
JZ 0x00140eb7
LAB_00140e1e:
LEA RDI,[RSP + 0x40]
MOV RSI,R14
CALL 0x0013039e
MOV RBX,qword ptr [RSP + 0x38]
LAB_00140e30:
LEA RDI,[RSP + 0x10]
LEA RSI,[RSP + 0x40]
LEA RDX,[RSP + 0x60]
CALL 0x0014b313
LAB_00140e44:
LEA RDI,[RSP + 0x18]
MOVAPS XMM0,xmmword ptr [RDI + -0x8]
AND qword ptr [RDI],0x0
MOVUPS xmmword ptr [RBX],XMM0
AND qword ptr [RDI + -0x8],0x0
CALL 0x001302a2
LEA RDI,[RSP + 0x48]
CALL 0x001302a2
LEA RDI,[RSP + 0x60]
CALL 0x0014b50e
LAB_00140e72:
MOV RAX,RBX
ADD RSP,0x88
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00140e87:
PUSH 0x10
POP RDI
CALL 0x00120380
MOV R14,RAX
LAB_00140e92:
LEA RSI,[0x18ff5c]
MOV RDI,RAX
CALL 0x00120270
LAB_00140ea1:
MOV RSI,qword ptr [0x001ceff0]
MOV RDX,qword ptr [0x001cef70]
MOV RDI,R14
CALL 0x00120b30
LAB_00140eb7:
PUSH 0x10
POP RDI
CALL 0x00120380
MOV R14,RAX
LAB_00140ec2:
LEA RSI,[0x18ff2e]
MOV RDI,RAX
CALL 0x00120270
LAB_00140ed1:
JMP 0x00140ea1
|
/* minja::Parser::parseDictionary() */
int8 * minja::Parser::parseDictionary(void)
{
int8 uVar1;
long lVar2;
runtime_error *this;
long in_RSI;
int8 *in_RDI;
allocator local_a9;
int8 local_a8;
int8 auStack_a0 [4];
int8 *local_80;
string local_78 [8];
long local_70 [3];
int8 local_58;
int8 uStack_50;
int8 local_48;
allocator local_40 [8];
allocator *local_38;
/* try { // try from 00140c7b to 00140c93 has its CatchHandler @ 00140f01 */
std::__cxx11::string::string<std::allocator<char>>((string *)&local_a8,"{",(allocator *)&local_58)
;
/* try { // try from 00140c94 to 00140cad has its CatchHandler @ 00140ef2 */
local_80 = in_RDI;
consumeToken(local_78);
lVar2 = local_70[0];
std::__cxx11::string::~string(local_78);
std::__cxx11::string::~string((string *)&local_a8);
if (lVar2 == 0) {
*local_80 = 0;
local_80[1] = 0;
}
else {
local_58 = 0;
uStack_50 = 0;
local_48 = 0;
/* try { // try from 00140cd9 to 00140cee has its CatchHandler @ 00140ef0 */
std::__cxx11::string::string<std::allocator<char>>((string *)&local_a8,"}",local_40);
/* try { // try from 00140cef to 00140d03 has its CatchHandler @ 00140eee */
consumeToken(local_78);
lVar2 = local_70[0];
std::__cxx11::string::~string(local_78);
std::__cxx11::string::~string((string *)&local_a8);
if (lVar2 == 0) {
local_38 = (allocator *)&local_58;
/* try { // try from 00140d65 to 00140d69 has its CatchHandler @ 00140f13 */
parseDictionary()::{lambda()#1}::operator()((_lambda___1_ *)local_40);
do {
if (*(long *)(in_RSI + 0x20) == *(long *)(in_RSI + 0x18)) {
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00140e92 to 00140ea0 has its CatchHandler @ 00140f06 */
std::runtime_error::runtime_error(this,"Expected closing brace");
LAB_00140ea1:
/* try { // try from 00140ea1 to 00140eb6 has its CatchHandler @ 00140f13 */
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_001ceff0,PTR__runtime_error_001cef70);
}
/* try { // try from 00140d8a to 00140d9d has its CatchHandler @ 00140f17 */
std::__cxx11::string::string<std::allocator<char>>((string *)&local_a8,",",&local_a9);
/* try { // try from 00140d9e to 00140dad has its CatchHandler @ 00140f1c */
consumeToken(local_78);
lVar2 = local_70[0];
std::__cxx11::string::~string(local_78);
std::__cxx11::string::~string((string *)&local_a8);
if (lVar2 == 0) {
/* try { // try from 00140dd2 to 00140de7 has its CatchHandler @ 00140edb */
std::__cxx11::string::string<std::allocator<char>>((string *)&local_a8,"}",&local_a9);
/* try { // try from 00140de8 to 00140dfc has its CatchHandler @ 00140ed9 */
consumeToken(local_78);
std::__cxx11::string::~string(local_78);
std::__cxx11::string::~string((string *)&local_a8);
if (local_70[0] != 0) {
/* try { // try from 00140e1e to 00140e2a has its CatchHandler @ 00140ed7 */
get_location();
/* try { // try from 00140e30 to 00140e43 has its CatchHandler @ 00140ed5 */
std::
make_shared<minja::DictExpr,minja::Location,std::vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>,std::allocator<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>>>
((Location *)&local_a8,(vector *)local_78);
goto LAB_00140e44;
}
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00140ec2 to 00140ed0 has its CatchHandler @ 00140ed3 */
std::runtime_error::runtime_error(this,"Expected comma or closing brace in dictionary");
goto LAB_00140ea1;
}
/* try { // try from 00140dc8 to 00140dcf has its CatchHandler @ 00140f15 */
parseDictionary()::{lambda()#1}::operator()((_lambda___1_ *)local_40);
} while( true );
}
/* try { // try from 00140d21 to 00140d2d has its CatchHandler @ 00140eec */
get_location();
/* try { // try from 00140d33 to 00140d46 has its CatchHandler @ 00140edd */
std::
make_shared<minja::DictExpr,minja::Location,std::vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>,std::allocator<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>>>
((Location *)&local_a8,(vector *)local_78);
LAB_00140e44:
uVar1 = auStack_a0[0];
auStack_a0[0] = 0;
*local_80 = local_a8;
local_80[1] = uVar1;
local_a8 = 0;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)auStack_a0);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)local_70);
std::
vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>,std::allocator<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>>
::~vector((vector<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>,std::allocator<std::pair<std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>>>>
*)&local_58);
}
return local_80;
}
| |
25,122 | my_copy_8bit | eloqsql/strings/ctype-simple.c | size_t
my_copy_8bit(CHARSET_INFO *cs __attribute__((unused)),
char *dst, size_t dst_length,
const char *src, size_t src_length,
size_t nchars, MY_STRCOPY_STATUS *status)
{
set_if_smaller(src_length, dst_length);
set_if_smaller(src_length, nchars);
if (src_length)
memmove(dst, src, src_length);
status->m_source_end_pos= src + src_length;
status->m_well_formed_error_pos= NULL;
return src_length;
} | O3 | c | my_copy_8bit:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %rbx
movq 0x10(%rbp), %r15
cmpq %rdx, %r8
cmovbq %r8, %rbx
cmpq %r9, %rbx
cmovaeq %r9, %rbx
testq %rbx, %rbx
je 0xc0ca5
movq %rsi, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x2a140
addq %rbx, %r14
movq %r14, (%r15)
movq $0x0, 0x8(%r15)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| my_copy_8bit:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov r14, rcx
mov rbx, rdx
mov r15, [rbp+arg_0]
cmp r8, rdx
cmovb rbx, r8
cmp rbx, r9
cmovnb rbx, r9
test rbx, rbx
jz short loc_C0CA5
mov rdi, rsi
mov rsi, r14
mov rdx, rbx
call _memmove
loc_C0CA5:
add r14, rbx
mov [r15], r14
mov qword ptr [r15+8], 0
mov rax, rbx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| unsigned long long my_copy_8bit(
long long a1,
long long a2,
unsigned long long a3,
long long a4,
unsigned long long a5,
unsigned long long a6,
_QWORD *a7)
{
unsigned long long v8; // rbx
v8 = a3;
if ( a5 < a3 )
v8 = a5;
if ( v8 >= a6 )
v8 = a6;
if ( v8 )
memmove(a2, a4, v8);
*a7 = v8 + a4;
a7[1] = 0LL;
return v8;
}
| my_copy_8bit:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RCX
MOV RBX,RDX
MOV R15,qword ptr [RBP + 0x10]
CMP R8,RDX
CMOVC RBX,R8
CMP RBX,R9
CMOVNC RBX,R9
TEST RBX,RBX
JZ 0x001c0ca5
MOV RDI,RSI
MOV RSI,R14
MOV RDX,RBX
CALL 0x0012a140
LAB_001c0ca5:
ADD R14,RBX
MOV qword ptr [R15],R14
MOV qword ptr [R15 + 0x8],0x0
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
size_t my_copy_8bit(int8 param_1,void *param_2,ulong param_3,void *param_4,ulong param_5,
ulong param_6,long *param_7)
{
if (param_5 < param_3) {
param_3 = param_5;
}
if (param_6 <= param_3) {
param_3 = param_6;
}
if (param_3 != 0) {
memmove(param_2,param_4,param_3);
}
*param_7 = (long)param_4 + param_3;
param_7[1] = 0;
return param_3;
}
| |
25,123 | evmone::instr::core::exp(evmone::StackTop, long, evmone::ExecutionState&) | corpus-core[P]colibri-stateless/build_O0/_deps/evmone_external-src/lib/evmone/instructions.hpp | inline Result exp(StackTop stack, int64_t gas_left, ExecutionState& state) noexcept
{
const auto& base = stack.pop();
auto& exponent = stack.top();
const auto exponent_significant_bytes =
static_cast<int>(intx::count_significant_bytes(exponent));
const auto exponent_cost = state.rev >= EVMC_SPURIOUS_DRAGON ? 50 : 10;
const auto additional_cost = exponent_significant_bytes * exponent_cost;
if ((gas_left -= additional_cost) < 0)
return {EVMC_OUT_OF_GAS, gas_left};
exponent = intx::exp(base, exponent);
return {EVMC_SUCCESS, gas_left};
} | O0 | cpp | evmone::instr::core::exp(evmone::StackTop, long, evmone::ExecutionState&):
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %rdx, -0x28(%rbp)
leaq -0x18(%rbp), %rdi
callq 0x611b0
movq %rax, -0x30(%rbp)
leaq -0x18(%rbp), %rdi
callq 0x611d0
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
callq 0x66e20
movl %eax, -0x3c(%rbp)
movq -0x28(%rbp), %rax
movl 0x40(%rax), %edx
movl $0xa, %eax
movl $0x32, %ecx
cmpl $0x3, %edx
cmovgel %ecx, %eax
movl %eax, -0x40(%rbp)
movl -0x3c(%rbp), %eax
imull -0x40(%rbp), %eax
movl %eax, -0x44(%rbp)
movslq -0x44(%rbp), %rcx
movq -0x20(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jge 0x66d2a
movl $0x3, -0x10(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x66e0d
movq -0x30(%rbp), %rax
movq (%rax), %rcx
movq %rcx, -0x88(%rbp)
movq 0x8(%rax), %rcx
movq %rcx, -0x80(%rbp)
movq 0x10(%rax), %rcx
movq %rcx, -0x78(%rbp)
movq 0x18(%rax), %rax
movq %rax, -0x70(%rbp)
movq -0x38(%rbp), %rax
movq (%rax), %rcx
movq %rcx, -0xa8(%rbp)
movq 0x8(%rax), %rcx
movq %rcx, -0xa0(%rbp)
movq 0x10(%rax), %rcx
movq %rcx, -0x98(%rbp)
movq 0x18(%rax), %rax
movq %rax, -0x90(%rbp)
leaq -0x68(%rbp), %rdi
leaq -0x88(%rbp), %rcx
leaq -0xa8(%rbp), %rax
movq (%rcx), %rdx
movq %rdx, (%rsp)
movq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rsp)
movq 0x10(%rcx), %rdx
movq %rdx, 0x10(%rsp)
movq 0x18(%rcx), %rcx
movq %rcx, 0x18(%rsp)
movq (%rax), %rcx
movq %rcx, 0x20(%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x28(%rsp)
movq 0x10(%rax), %rcx
movq %rcx, 0x30(%rsp)
movq 0x18(%rax), %rax
movq %rax, 0x38(%rsp)
callq 0x66e80
movq -0x38(%rbp), %rax
movq -0x68(%rbp), %rcx
movq %rcx, (%rax)
movq -0x60(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x58(%rbp), %rcx
movq %rcx, 0x10(%rax)
movq -0x50(%rbp), %rcx
movq %rcx, 0x18(%rax)
movl $0x0, -0x10(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0xf0, %rsp
popq %rbp
retq
nopl (%rax)
| _ZN6evmone5instr4core3expENS_8StackTopElRNS_14ExecutionStateE:
push rbp
mov rbp, rsp
sub rsp, 0F0h
mov [rbp+var_18], rdi
mov [rbp+var_20], rsi
mov [rbp+var_28], rdx
lea rdi, [rbp+var_18]; this
call _ZN6evmone8StackTop3popEv; evmone::StackTop::pop(void)
mov [rbp+var_30], rax
lea rdi, [rbp+var_18]; this
call _ZN6evmone8StackTop3topEv; evmone::StackTop::top(void)
mov [rbp+var_38], rax
mov rdi, [rbp+var_38]
call _ZN4intx23count_significant_bytesILj256EEEjRKNS_4uintIXT_EEE; intx::count_significant_bytes<256u>(intx::uint<256u> const&)
mov [rbp+var_3C], eax
mov rax, [rbp+var_28]
mov edx, [rax+40h]
mov eax, 0Ah
mov ecx, 32h ; '2'
cmp edx, 3
cmovge eax, ecx
mov [rbp+var_40], eax
mov eax, [rbp+var_3C]
imul eax, [rbp+var_40]
mov [rbp+var_44], eax
movsxd rcx, [rbp+var_44]
mov rax, [rbp+var_20]
sub rax, rcx
mov [rbp+var_20], rax
cmp rax, 0
jge short loc_66D2A
mov [rbp+var_10], 3
mov rax, [rbp+var_20]
mov [rbp+var_8], rax
jmp loc_66E0D
loc_66D2A:
mov rax, [rbp+var_30]
mov rcx, [rax]
mov [rbp+var_88], rcx
mov rcx, [rax+8]
mov [rbp+var_80], rcx
mov rcx, [rax+10h]
mov [rbp+var_78], rcx
mov rax, [rax+18h]
mov [rbp+var_70], rax
mov rax, [rbp+var_38]
mov rcx, [rax]
mov [rbp+var_A8], rcx
mov rcx, [rax+8]
mov [rbp+var_A0], rcx
mov rcx, [rax+10h]
mov [rbp+var_98], rcx
mov rax, [rax+18h]
mov [rbp+var_90], rax
lea rdi, [rbp+var_68]
lea rcx, [rbp+var_88]
lea rax, [rbp+var_A8]
mov rdx, [rcx]
mov [rsp+0F0h+var_F0], rdx
mov rdx, [rcx+8]
mov [rsp+0F0h+var_E8], rdx
mov rdx, [rcx+10h]
mov [rsp+0F0h+var_E0], rdx
mov rcx, [rcx+18h]
mov [rsp+0F0h+var_D8], rcx
mov rcx, [rax]
mov [rsp+0F0h+var_D0], rcx
mov rcx, [rax+8]
mov [rsp+0F0h+var_C8], rcx
mov rcx, [rax+10h]
mov [rsp+0F0h+var_C0], rcx
mov rax, [rax+18h]
mov [rsp+0F0h+var_B8], rax
call _ZN4intx3expILj256EEENS_4uintIXT_EEES2_S2_; intx::exp<256u>(intx::uint<256u>,intx::uint<256u>)
mov rax, [rbp+var_38]
mov rcx, [rbp+var_68]
mov [rax], rcx
mov rcx, [rbp+var_60]
mov [rax+8], rcx
mov rcx, [rbp+var_58]
mov [rax+10h], rcx
mov rcx, [rbp+var_50]
mov [rax+18h], rcx
mov [rbp+var_10], 0
mov rax, [rbp+var_20]
mov [rbp+var_8], rax
loc_66E0D:
mov eax, [rbp+var_10]
mov rdx, [rbp+var_8]
add rsp, 0F0h
pop rbp
retn
| long long evmone::instr::core::exp(long long a1, long long a2, long long a3)
{
int v3; // r8d
int v4; // r9d
int v5; // eax
_QWORD *v6; // rax
_QWORD v8[4]; // [rsp+88h] [rbp-68h] BYREF
int v9; // [rsp+ACh] [rbp-44h]
int v10; // [rsp+B0h] [rbp-40h]
int v11; // [rsp+B4h] [rbp-3Ch]
_QWORD *v12; // [rsp+B8h] [rbp-38h]
_QWORD *v13; // [rsp+C0h] [rbp-30h]
long long v14; // [rsp+C8h] [rbp-28h]
long long v15; // [rsp+D0h] [rbp-20h]
long long v16; // [rsp+D8h] [rbp-18h] BYREF
v16 = a1;
v15 = a2;
v14 = a3;
v13 = (_QWORD *)evmone::StackTop::pop((evmone::StackTop *)&v16);
v12 = (_QWORD *)evmone::StackTop::top((evmone::StackTop *)&v16);
v11 = intx::count_significant_bytes<256u>(v12);
v5 = 10;
if ( *(int *)(v14 + 64) >= 3 )
v5 = 50;
v10 = v5;
v9 = v5 * v11;
v15 -= v5 * v11;
if ( v15 >= 0 )
{
intx::exp<256u>(
(unsigned int)v8,
a2,
v13[2],
v12[2],
v3,
v4,
*v13,
v13[1],
v13[2],
v13[3],
*v12,
v12[1],
v12[2],
v12[3]);
v6 = v12;
*v12 = v8[0];
v6[1] = v8[1];
v6[2] = v8[2];
v6[3] = v8[3];
return 0;
}
else
{
return 3;
}
}
| exp:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xf0
MOV qword ptr [RBP + -0x18],RDI
MOV qword ptr [RBP + -0x20],RSI
MOV qword ptr [RBP + -0x28],RDX
LEA RDI,[RBP + -0x18]
CALL 0x001611b0
MOV qword ptr [RBP + -0x30],RAX
LEA RDI,[RBP + -0x18]
CALL 0x001611d0
MOV qword ptr [RBP + -0x38],RAX
MOV RDI,qword ptr [RBP + -0x38]
CALL 0x00166e20
MOV dword ptr [RBP + -0x3c],EAX
MOV RAX,qword ptr [RBP + -0x28]
MOV EDX,dword ptr [RAX + 0x40]
MOV EAX,0xa
MOV ECX,0x32
CMP EDX,0x3
CMOVGE EAX,ECX
MOV dword ptr [RBP + -0x40],EAX
MOV EAX,dword ptr [RBP + -0x3c]
IMUL EAX,dword ptr [RBP + -0x40]
MOV dword ptr [RBP + -0x44],EAX
MOVSXD RCX,dword ptr [RBP + -0x44]
MOV RAX,qword ptr [RBP + -0x20]
SUB RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,0x0
JGE 0x00166d2a
MOV dword ptr [RBP + -0x10],0x3
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00166e0d
LAB_00166d2a:
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RBP + -0x88],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x80],RCX
MOV RCX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x78],RCX
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x70],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RBP + -0xa8],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0xa0],RCX
MOV RCX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x98],RCX
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x90],RAX
LEA RDI,[RBP + -0x68]
LEA RCX,[RBP + -0x88]
LEA RAX,[RBP + -0xa8]
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP],RDX
MOV RDX,qword ptr [RCX + 0x8]
MOV qword ptr [RSP + 0x8],RDX
MOV RDX,qword ptr [RCX + 0x10]
MOV qword ptr [RSP + 0x10],RDX
MOV RCX,qword ptr [RCX + 0x18]
MOV qword ptr [RSP + 0x18],RCX
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP + 0x20],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x28],RCX
MOV RCX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x30],RCX
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RSP + 0x38],RAX
CALL 0x00166e80
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x68]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX + 0x8],RCX
MOV RCX,qword ptr [RBP + -0x58]
MOV qword ptr [RAX + 0x10],RCX
MOV RCX,qword ptr [RBP + -0x50]
MOV qword ptr [RAX + 0x18],RCX
MOV dword ptr [RBP + -0x10],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x8],RAX
LAB_00166e0d:
MOV EAX,dword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x8]
ADD RSP,0xf0
POP RBP
RET
|
/* evmone::instr::core::exp(evmone::StackTop, long, evmone::ExecutionState&) */
int1 [16] evmone::instr::core::exp(int8 param_1,long param_2,long param_3)
{
int1 auVar1 [16];
int8 local_70;
int8 local_68;
int8 local_60;
int8 local_58;
int local_4c;
int local_48;
uint local_44;
uint *local_40;
int8 local_38;
long local_30;
long local_28;
int8 local_20;
uint local_18;
long local_10;
local_30 = param_3;
local_28 = param_2;
local_20 = param_1;
local_38 = StackTop::pop((StackTop *)&local_20);
local_40 = (uint *)StackTop::top((StackTop *)&local_20);
local_44 = intx::count_significant_bytes<256u>(local_40);
local_48 = 10;
if (2 < *(int *)(local_30 + 0x40)) {
local_48 = 0x32;
}
local_4c = local_44 * local_48;
local_28 = local_28 - local_4c;
if (local_28 < 0) {
local_18 = 3;
local_10 = local_28;
}
else {
intx::exp<256u>(&local_70);
*(int8 *)local_40 = local_70;
*(int8 *)(local_40 + 8) = local_68;
*(int8 *)(local_40 + 0x10) = local_60;
*(int8 *)(local_40 + 0x18) = local_58;
local_18 = 0;
local_10 = local_28;
}
auVar1._4_4_ = 0;
auVar1._0_4_ = local_18;
auVar1._8_8_ = local_10;
return auVar1;
}
| |
25,124 | ma_checkpoint_end | eloqsql/storage/maria/ma_checkpoint.c | void ma_checkpoint_end(void)
{
DBUG_ENTER("ma_checkpoint_end");
/*
Some intentional crash methods, usually triggered by
SET MARIA_CHECKPOINT_INTERVAL=X
*/
DBUG_EXECUTE_IF("maria_flush_bitmap",
{
DBUG_PRINT("maria_flush_bitmap", ("now"));
flush_all_tables(2);
});
DBUG_EXECUTE_IF("maria_flush_whole_page_cache",
{
DBUG_PRINT("maria_flush_whole_page_cache", ("now"));
flush_all_tables(0);
});
DBUG_EXECUTE_IF("maria_flush_whole_log",
{
DBUG_PRINT("maria_flush_whole_log", ("now"));
translog_flush(translog_get_horizon());
});
/*
Note that for WAL reasons, maria_flush_states requires
maria_flush_whole_log.
*/
DBUG_EXECUTE_IF("maria_flush_states",
{
DBUG_PRINT("maria_flush_states", ("now"));
flush_all_tables(1);
});
DBUG_EXECUTE_IF("maria_crash",
{ DBUG_PRINT("maria_crash", ("now")); DBUG_SUICIDE(); });
if (checkpoint_control.inited)
{
ma_service_thread_control_end(&checkpoint_control);
my_free(dfiles);
my_free(kfiles);
dfiles= kfiles= NULL;
}
DBUG_VOID_RETURN;
} | O3 | c | ma_checkpoint_end:
cmpb $0x0, 0x3146ee(%rip) # 0x3871e1
je 0x72b2e
pushq %rbp
movq %rsp, %rbp
leaq 0x3146d8(%rip), %rdi # 0x3871d8
callq 0x73099
movq 0xb8fb54(%rip), %rdi # 0xc02660
callq 0xa2e9e
movq 0xb8fb50(%rip), %rdi # 0xc02668
callq 0xa2e9e
xorl %eax, %eax
movq %rax, 0xb8fb42(%rip) # 0xc02668
movq %rax, 0xb8fb33(%rip) # 0xc02660
popq %rbp
retq
| ma_checkpoint_end:
cmp cs:byte_3871E1, 0
jz short locret_72B2E
push rbp
mov rbp, rsp
lea rdi, checkpoint_control
call ma_service_thread_control_end
mov rdi, cs:dfiles
call my_free
mov rdi, cs:kfiles
call my_free
xor eax, eax
mov cs:kfiles, rax
mov cs:dfiles, rax
pop rbp
locret_72B2E:
retn
| long long ma_checkpoint_end()
{
long long result; // rax
if ( byte_3871E1 )
{
ma_service_thread_control_end(&checkpoint_control);
my_free(dfiles);
my_free(kfiles);
result = 0LL;
kfiles = 0LL;
dfiles = 0LL;
}
return result;
}
| ma_checkpoint_end:
CMP byte ptr [0x004871e1],0x0
JZ 0x00172b2e
PUSH RBP
MOV RBP,RSP
LEA RDI,[0x4871d8]
CALL 0x00173099
MOV RDI,qword ptr [0x00d02660]
CALL 0x001a2e9e
MOV RDI,qword ptr [0x00d02668]
CALL 0x001a2e9e
XOR EAX,EAX
MOV qword ptr [0x00d02668],RAX
MOV qword ptr [0x00d02660],RAX
POP RBP
LAB_00172b2e:
RET
|
void ma_checkpoint_end(void)
{
if (checkpoint_control[9] != '\0') {
ma_service_thread_control_end(checkpoint_control);
my_free(dfiles);
my_free(kfiles);
kfiles = 0;
dfiles = 0;
}
return;
}
| |
25,125 | my_fill_ucs2 | eloqsql/strings/ctype-ucs2.c | static void
my_fill_ucs2(CHARSET_INFO *cs __attribute__((unused)),
char *s, size_t l, int fill)
{
DBUG_ASSERT(fill <= 0xFFFF);
#ifdef WAITING_FOR_GCC_VECTORIZATION_BUG_TO_BE_FIXED
/*
This code with int2store() is known to be faster on some processors,
but crashes on other processors due to a possible bug in GCC's
-ftree-vectorization (which is enabled in -O3) in case of
a non-aligned memory. See here for details:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58039
*/
char *last= s + l - 2;
uint16 tmp= (fill >> 8) + ((fill & 0xFF) << 8); /* swap bytes */
DBUG_ASSERT(fill <= 0xFFFF);
for ( ; s <= last; s+= 2)
int2store(s, tmp); /* store little-endian */
#else
for ( ; l >= 2; s[0]= (fill >> 8), s[1]= (fill & 0xFF), s+= 2, l-= 2);
#endif
} | O0 | c | my_fill_ucs2:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
jmp 0x13f6e5
jmp 0x13f6e7
cmpq $0x2, -0x18(%rbp)
jb 0x13f729
jmp 0x13f6f0
movl -0x1c(%rbp), %eax
sarl $0x8, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
movl -0x1c(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x1(%rax)
movq -0x10(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
subq $0x2, %rax
movq %rax, -0x18(%rbp)
jmp 0x13f6e7
popq %rbp
retq
nopl (%rax,%rax)
| my_fill_ucs2:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_1C], ecx
jmp short $+2
loc_13F6E5:
jmp short $+2
loc_13F6E7:
cmp [rbp+var_18], 2
jb short loc_13F729
jmp short $+2
loc_13F6F0:
mov eax, [rbp+var_1C]
sar eax, 8
mov cl, al
mov rax, [rbp+var_10]
mov [rax], cl
mov eax, [rbp+var_1C]
and eax, 0FFh
mov cl, al
mov rax, [rbp+var_10]
mov [rax+1], cl
mov rax, [rbp+var_10]
add rax, 2
mov [rbp+var_10], rax
mov rax, [rbp+var_18]
sub rax, 2
mov [rbp+var_18], rax
jmp short loc_13F6E7
loc_13F729:
pop rbp
retn
| unsigned long long my_fill_ucs2(long long a1, _BYTE *a2, unsigned long long a3, __int16 a4)
{
unsigned long long result; // rax
while ( a3 >= 2 )
{
*a2 = HIBYTE(a4);
a2[1] = a4;
a2 += 2;
result = a3 - 2;
a3 -= 2LL;
}
return result;
}
| |||
25,126 | my_fill_ucs2 | eloqsql/strings/ctype-ucs2.c | static void
my_fill_ucs2(CHARSET_INFO *cs __attribute__((unused)),
char *s, size_t l, int fill)
{
DBUG_ASSERT(fill <= 0xFFFF);
#ifdef WAITING_FOR_GCC_VECTORIZATION_BUG_TO_BE_FIXED
/*
This code with int2store() is known to be faster on some processors,
but crashes on other processors due to a possible bug in GCC's
-ftree-vectorization (which is enabled in -O3) in case of
a non-aligned memory. See here for details:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58039
*/
char *last= s + l - 2;
uint16 tmp= (fill >> 8) + ((fill & 0xFF) << 8); /* swap bytes */
DBUG_ASSERT(fill <= 0xFFFF);
for ( ; s <= last; s+= 2)
int2store(s, tmp); /* store little-endian */
#else
for ( ; l >= 2; s[0]= (fill >> 8), s[1]= (fill & 0xFF), s+= 2, l-= 2);
#endif
} | O3 | c | my_fill_ucs2:
cmpq $0x2, %rdx
jb 0xcdf02
pushq %rbp
movq %rsp, %rbp
movl %ecx, %eax
shrl $0x8, %eax
movb %al, (%rsi)
movb %cl, 0x1(%rsi)
addq $0x2, %rsi
addq $-0x2, %rdx
cmpq $0x1, %rdx
ja 0xcdeee
popq %rbp
retq
| my_fill_ucs2:
cmp rdx, 2
jb short locret_CDF02
push rbp
mov rbp, rsp
mov eax, ecx
shr eax, 8
loc_CDEEE:
mov [rsi], al
mov [rsi+1], cl
add rsi, 2
add rdx, 0FFFFFFFFFFFFFFFEh
cmp rdx, 1
ja short loc_CDEEE
pop rbp
locret_CDF02:
retn
| void my_fill_ucs2(long long a1, _BYTE *a2, unsigned long long a3, __int16 a4)
{
bool v4; // cf
if ( a3 >= 2 )
{
do
{
*a2 = HIBYTE(a4);
a2[1] = a4;
a2 += 2;
v4 = a3 == 2;
a3 -= 2LL;
}
while ( !v4 && a3 != 1 );
}
}
| my_fill_ucs2:
CMP RDX,0x2
JC 0x001cdf02
PUSH RBP
MOV RBP,RSP
MOV EAX,ECX
SHR EAX,0x8
LAB_001cdeee:
MOV byte ptr [RSI],AL
MOV byte ptr [RSI + 0x1],CL
ADD RSI,0x2
ADD RDX,-0x2
CMP RDX,0x1
JA 0x001cdeee
POP RBP
LAB_001cdf02:
RET
|
void my_fill_ucs2(int8 param_1,int1 *param_2,ulong param_3,int4 param_4)
{
if (1 < param_3) {
do {
*param_2 = (char)((uint)param_4 >> 8);
param_2[1] = (char)param_4;
param_2 = param_2 + 2;
param_3 = param_3 - 2;
} while (1 < param_3);
}
return;
}
| |
25,127 | void ggml_easy::ctx::build_utils::debug_print<char const (&) [7]>(ggml_tensor*, char const (&) [7]) | ngxson[P]ggml-easy/ggml-easy.h | void debug_print(ggml_tensor * t, Params&&... params) {
std::string name = string_format(std::forward<Params>(params)...);
if (t->flags) {
// prevent renaming input/output tensor name by accident
t = ggml_cpy(gf_ctx, t, ggml_dup_tensor(gf_ctx, t));
}
mark_output(t, name.c_str());
printed_tensors.push_back({t, false});
} | O2 | c | void ggml_easy::ctx::build_utils::debug_print<char const (&) [7]>(ggml_tensor*, char const (&) [7]):
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsp, %rdi
movq %rdx, %rsi
xorl %eax, %eax
callq 0x64ab
cmpl $0x0, 0x94(%r14)
je 0xbb89
movq (%rbx), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x5430
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x55a0
movq %rax, %r14
movq (%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xbbd8
addq $0x10, %rbx
leaq 0x20(%rsp), %rsi
movq %r14, (%rsi)
movb $0x0, 0x8(%rsi)
movq %rbx, %rdi
callq 0xbc08
movq %rsp, %rdi
callq 0x5210
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0xbbc4
movq %rax, %rbx
movq %rsp, %rdi
callq 0x5210
movq %rbx, %rdi
callq 0x5720
nop
| _ZN9ggml_easy3ctx11build_utils11debug_printIJRA7_KcEEEvP11ggml_tensorDpOT_:
push r15
push r14
push rbx
sub rsp, 30h
mov r14, rsi
mov rbx, rdi
mov rdi, rsp
mov rsi, rdx
xor eax, eax
call _ZN9ggml_easy13string_formatB5cxx11EPKcz; ggml_easy::string_format(char const*,...)
cmp dword ptr [r14+94h], 0
jz short loc_BB89
mov r15, [rbx]
mov rdi, r15
mov rsi, r14
call _ggml_dup_tensor
mov rdi, r15
mov rsi, r14
mov rdx, rax
call _ggml_cpy
mov r14, rax
loc_BB89:
mov rdx, [rsp+48h+var_48]
mov rdi, rbx
mov rsi, r14
call _ZN9ggml_easy3ctx11build_utils11mark_outputEP11ggml_tensorPKc; ggml_easy::ctx::build_utils::mark_output(ggml_tensor *,char const*)
add rbx, 10h
lea rsi, [rsp+48h+var_28]
mov [rsi], r14
mov byte ptr [rsi+8], 0
mov rdi, rbx
call _ZNSt6vectorIN9ggml_easy3ctx14printed_tensorESaIS2_EE12emplace_backIJS2_EEERS2_DpOT_; std::vector<ggml_easy::ctx::printed_tensor>::emplace_back<ggml_easy::ctx::printed_tensor>(ggml_easy::ctx::printed_tensor &&)
mov rdi, rsp
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
add rsp, 30h
pop rbx
pop r14
pop r15
retn
jmp short $+2
loc_BBC4:
mov rbx, rax
mov rdi, rsp
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rbx
call __Unwind_Resume
| long long ggml_easy::ctx::build_utils::debug_print<char const(&)[7]>(
_QWORD *a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
long long v14; // r14
long long v15; // r15
long long v16; // rax
_QWORD v18[5]; // [rsp+0h] [rbp-48h] BYREF
char v19; // [rsp+28h] [rbp-20h]
v14 = a2;
ggml_easy::string_format[abi:cxx11](v18, a3, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v18[0]);
if ( *(_DWORD *)(a2 + 148) )
{
v15 = *a1;
v16 = ggml_dup_tensor(*a1, a2);
v14 = ggml_cpy(v15, a2, v16);
}
ggml_easy::ctx::build_utils::mark_output(a1, v14, v18[0]);
v18[4] = v14;
v19 = 0;
std::vector<ggml_easy::ctx::printed_tensor>::emplace_back<ggml_easy::ctx::printed_tensor>(a1 + 2);
return std::string::~string(v18);
}
| debug_print<char_const(&)[7]>:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV R14,RSI
MOV RBX,RDI
MOV RDI,RSP
MOV RSI,RDX
XOR EAX,EAX
CALL 0x001064ab
CMP dword ptr [R14 + 0x94],0x0
JZ 0x0010bb89
MOV R15,qword ptr [RBX]
LAB_0010bb6d:
MOV RDI,R15
MOV RSI,R14
CALL 0x00105430
MOV RDI,R15
MOV RSI,R14
MOV RDX,RAX
CALL 0x001055a0
MOV R14,RAX
LAB_0010bb89:
MOV RDX,qword ptr [RSP]
MOV RDI,RBX
MOV RSI,R14
CALL 0x0010bbd8
ADD RBX,0x10
LEA RSI,[RSP + 0x20]
MOV qword ptr [RSI],R14
MOV byte ptr [RSI + 0x8],0x0
LAB_0010bba8:
MOV RDI,RBX
CALL 0x0010bc08
LAB_0010bbb0:
MOV RDI,RSP
CALL 0x00105210
ADD RSP,0x30
POP RBX
POP R14
POP R15
RET
|
/* void ggml_easy::ctx::build_utils::debug_print<char const (&) [7]>(ggml_tensor*, char const (&)
[7]) */
void __thiscall
ggml_easy::ctx::build_utils::debug_print<char_const(&)[7]>
(build_utils *this,ggml_tensor *param_1,char *param_2)
{
int8 uVar1;
int8 uVar2;
char *local_48 [4];
ggml_tensor *local_28;
int1 local_20;
string_format_abi_cxx11_((char *)local_48,param_2);
if (*(int *)(param_1 + 0x94) != 0) {
uVar1 = *(int8 *)this;
/* try { // try from 0010bb6d to 0010bb97 has its CatchHandler @ 0010bbc4 */
uVar2 = ggml_dup_tensor(uVar1,param_1);
param_1 = (ggml_tensor *)ggml_cpy(uVar1,param_1,uVar2);
}
mark_output(this,param_1,local_48[0]);
local_20 = 0;
local_28 = param_1;
/* try { // try from 0010bba8 to 0010bbaf has its CatchHandler @ 0010bbc2 */
std::vector<ggml_easy::ctx::printed_tensor,std::allocator<ggml_easy::ctx::printed_tensor>>::
emplace_back<ggml_easy::ctx::printed_tensor>
((vector<ggml_easy::ctx::printed_tensor,std::allocator<ggml_easy::ctx::printed_tensor>>
*)(this + 0x10),(printed_tensor *)&local_28);
std::__cxx11::string::~string((string *)local_48);
return;
}
| |
25,128 | my_mb_wc_euc_kr | eloqsql/strings/ctype-euc_kr.c | static int
my_mb_wc_euc_kr(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t *pwc, const uchar *s, const uchar *e)
{
int hi;
if (s >= e)
return MY_CS_TOOSMALL;
if ((hi= s[0]) < 0x80)
{
pwc[0]=hi;
return 1;
}
if (s+2>e)
return MY_CS_TOOSMALL2;
if (!IS_MB2_CHAR(hi, s[1]))
return MY_CS_ILSEQ;
if (!(pwc[0]=func_ksc5601_uni_onechar((hi<<8)+s[1])))
return -2;
return 2;
} | O0 | c | my_mb_wc_euc_kr:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jb 0x428be
movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B
jmp 0x429ab
movq -0x20(%rbp), %rax
movzbl (%rax), %eax
movl %eax, -0x2c(%rbp)
cmpl $0x80, %eax
jge 0x428e6
movslq -0x2c(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x429ab
movq -0x20(%rbp), %rax
addq $0x2, %rax
cmpq -0x28(%rbp), %rax
jbe 0x42900
movl $0xffffff9a, -0x4(%rbp) # imm = 0xFFFFFF9A
jmp 0x429ab
movl -0x2c(%rbp), %eax
movzbl %al, %ecx
movl $0x81, %eax
cmpl %ecx, %eax
jg 0x4296e
movl -0x2c(%rbp), %eax
movzbl %al, %eax
cmpl $0xfe, %eax
jg 0x4296e
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0x41, %eax
jl 0x42936
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0x5a, %eax
jle 0x42977
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0x61, %eax
jl 0x42950
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0x7a, %eax
jle 0x42977
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0x81, %eax
jl 0x4296e
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0xfe, %eax
jle 0x42977
movl $0x0, -0x4(%rbp)
jmp 0x429ab
movl -0x2c(%rbp), %edi
shll $0x8, %edi
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %eax
addl %eax, %edi
callq 0x42d20
cltq
movq -0x18(%rbp), %rcx
movq %rax, (%rcx)
cmpq $0x0, %rax
jne 0x429a4
movl $0xfffffffe, -0x4(%rbp) # imm = 0xFFFFFFFE
jmp 0x429ab
movl $0x2, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_mb_wc_euc_kr:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_20]
cmp rax, [rbp+var_28]
jb short loc_428BE
mov [rbp+var_4], 0FFFFFF9Bh
jmp loc_429AB
loc_428BE:
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax]
mov [rbp+var_2C], eax
cmp eax, 80h
jge short loc_428E6
movsxd rcx, [rbp+var_2C]
mov rax, [rbp+var_18]
mov [rax], rcx
mov [rbp+var_4], 1
jmp loc_429AB
loc_428E6:
mov rax, [rbp+var_20]
add rax, 2
cmp rax, [rbp+var_28]
jbe short loc_42900
mov [rbp+var_4], 0FFFFFF9Ah
jmp loc_429AB
loc_42900:
mov eax, [rbp+var_2C]
movzx ecx, al
mov eax, 81h
cmp eax, ecx
jg short loc_4296E
mov eax, [rbp+var_2C]
movzx eax, al
cmp eax, 0FEh
jg short loc_4296E
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+1]
cmp eax, 41h ; 'A'
jl short loc_42936
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+1]
cmp eax, 5Ah ; 'Z'
jle short loc_42977
loc_42936:
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+1]
cmp eax, 61h ; 'a'
jl short loc_42950
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+1]
cmp eax, 7Ah ; 'z'
jle short loc_42977
loc_42950:
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+1]
cmp eax, 81h
jl short loc_4296E
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+1]
cmp eax, 0FEh
jle short loc_42977
loc_4296E:
mov [rbp+var_4], 0
jmp short loc_429AB
loc_42977:
mov edi, [rbp+var_2C]
shl edi, 8
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+1]
add edi, eax
call func_ksc5601_uni_onechar
cdqe
mov rcx, [rbp+var_18]
mov [rcx], rax
cmp rax, 0
jnz short loc_429A4
mov [rbp+var_4], 0FFFFFFFEh
jmp short loc_429AB
loc_429A4:
mov [rbp+var_4], 2
loc_429AB:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
| long long my_mb_wc_euc_kr(long long a1, _QWORD *a2, unsigned __int8 *a3, unsigned long long a4)
{
int v4; // eax
unsigned int v6; // [rsp+4h] [rbp-2Ch]
if ( (unsigned long long)a3 < a4 )
{
v6 = *a3;
if ( v6 >= 0x80 )
{
if ( (unsigned long long)(a3 + 2) <= a4 )
{
if ( (unsigned __int8)v6 < 0x81u
|| (unsigned __int8)v6 == 255
|| (a3[1] < 0x41u || a3[1] > 0x5Au) && (a3[1] < 0x61u || a3[1] > 0x7Au) && (a3[1] < 0x81u || a3[1] == 255) )
{
return 0;
}
else
{
v4 = func_ksc5601_uni_onechar(a3[1] + (v6 << 8));
*a2 = v4;
if ( v4 )
return 2;
else
return (unsigned int)-2;
}
}
else
{
return (unsigned int)-102;
}
}
else
{
*a2 = *a3;
return 1;
}
}
else
{
return (unsigned int)-101;
}
}
| my_mb_wc_euc_kr:
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
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x28]
JC 0x001428be
MOV dword ptr [RBP + -0x4],0xffffff9b
JMP 0x001429ab
LAB_001428be:
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX]
MOV dword ptr [RBP + -0x2c],EAX
CMP EAX,0x80
JGE 0x001428e6
MOVSXD RCX,dword ptr [RBP + -0x2c]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001429ab
LAB_001428e6:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x2
CMP RAX,qword ptr [RBP + -0x28]
JBE 0x00142900
MOV dword ptr [RBP + -0x4],0xffffff9a
JMP 0x001429ab
LAB_00142900:
MOV EAX,dword ptr [RBP + -0x2c]
MOVZX ECX,AL
MOV EAX,0x81
CMP EAX,ECX
JG 0x0014296e
MOV EAX,dword ptr [RBP + -0x2c]
MOVZX EAX,AL
CMP EAX,0xfe
JG 0x0014296e
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
CMP EAX,0x41
JL 0x00142936
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
CMP EAX,0x5a
JLE 0x00142977
LAB_00142936:
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
CMP EAX,0x61
JL 0x00142950
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
CMP EAX,0x7a
JLE 0x00142977
LAB_00142950:
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
CMP EAX,0x81
JL 0x0014296e
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
CMP EAX,0xfe
JLE 0x00142977
LAB_0014296e:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001429ab
LAB_00142977:
MOV EDI,dword ptr [RBP + -0x2c]
SHL EDI,0x8
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
ADD EDI,EAX
CALL 0x00142d20
CDQE
MOV RCX,qword ptr [RBP + -0x18]
MOV qword ptr [RCX],RAX
CMP RAX,0x0
JNZ 0x001429a4
MOV dword ptr [RBP + -0x4],0xfffffffe
JMP 0x001429ab
LAB_001429a4:
MOV dword ptr [RBP + -0x4],0x2
LAB_001429ab:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int4 my_mb_wc_euc_kr(int8 param_1,long *param_2,byte *param_3,byte *param_4)
{
uint uVar1;
int iVar2;
int4 local_c;
if (param_3 < param_4) {
uVar1 = (uint)*param_3;
if (uVar1 < 0x80) {
*param_2 = (long)(int)uVar1;
local_c = 1;
}
else if (param_4 < param_3 + 2) {
local_c = 0xffffff9a;
}
else if (((uVar1 < 0x81) || (0xfe < uVar1)) ||
((((param_3[1] < 0x41 || (0x5a < param_3[1])) &&
((param_3[1] < 0x61 || (0x7a < param_3[1])))) &&
((param_3[1] < 0x81 || (param_3[1] == 0xff)))))) {
local_c = 0;
}
else {
iVar2 = func_ksc5601_uni_onechar(uVar1 * 0x100 + (uint)param_3[1]);
*param_2 = (long)iVar2;
if ((long)iVar2 == 0) {
local_c = 0xfffffffe;
}
else {
local_c = 2;
}
}
}
else {
local_c = 0xffffff9b;
}
return local_c;
}
| |
25,129 | 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>>>>>::reset() | monkey531[P]llama/common/json.hpp | void reset() noexcept
{
token_buffer.clear();
token_string.clear();
token_string.push_back(char_traits<char_type>::to_char_type(current));
} | O2 | 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>>>>>::reset():
pushq %rax
movq %rdi, %rax
andq $0x0, 0x58(%rdi)
movq 0x50(%rdi), %rcx
movb $0x0, (%rcx)
addq $0x38, %rdi
movq 0x38(%rax), %rcx
cmpq %rcx, 0x40(%rax)
je 0x3ea20
movq %rcx, 0x40(%rax)
movb 0x14(%rax), %al
leaq 0x7(%rsp), %rsi
movb %al, (%rsi)
callq 0x3e896
popq %rax
retq
movq %rax, %rdi
callq 0x276e7
nop
| _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5resetEv:
push rax
mov rax, rdi
and qword ptr [rdi+58h], 0
mov rcx, [rdi+50h]
mov byte ptr [rcx], 0
add rdi, 38h ; '8'
mov rcx, [rax+38h]
cmp [rax+40h], rcx
jz short loc_3EA20
mov [rax+40h], rcx
loc_3EA20:
mov al, [rax+14h]
lea rsi, [rsp+8+var_1]
mov [rsi], al
call _ZNSt6vectorIcSaIcEE12emplace_backIJcEEERcDpOT_; std::vector<char>::emplace_back<char>(char &&)
pop rax
retn
mov rdi, rax
call __clang_call_terminate
| void __spoils<rdx,rcx,r8,r9,r10,r11,xmm4,xmm5> 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>>>::reset(
long long a1)
{
long long v2; // rdi
long long v3; // rcx
char v4; // [rsp+1h] [rbp-1h] BYREF
*(_QWORD *)(a1 + 88) = 0LL;
**(_BYTE **)(a1 + 80) = 0;
v2 = a1 + 56;
v3 = *(_QWORD *)(a1 + 56);
if ( *(_QWORD *)(a1 + 64) != v3 )
*(_QWORD *)(a1 + 64) = v3;
v4 = *(_BYTE *)(a1 + 20);
std::vector<char>::emplace_back<char>(v2, &v4);
}
| reset:
PUSH RAX
MOV RAX,RDI
AND qword ptr [RDI + 0x58],0x0
MOV RCX,qword ptr [RDI + 0x50]
MOV byte ptr [RCX],0x0
ADD RDI,0x38
MOV RCX,qword ptr [RAX + 0x38]
CMP qword ptr [RAX + 0x40],RCX
JZ 0x0013ea20
MOV qword ptr [RAX + 0x40],RCX
LAB_0013ea20:
MOV AL,byte ptr [RAX + 0x14]
LEA RSI,[RSP + 0x7]
MOV byte ptr [RSI],AL
LAB_0013ea2a:
CALL 0x0013e896
POP RAX
RET
|
/* 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 > > >::reset() */
int8 __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>>>
::reset(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)
{
int8 in_RAX;
int8 uStack_8;
*(int8 *)(this + 0x58) = 0;
**(int1 **)(this + 0x50) = 0;
if (*(long *)(this + 0x40) != *(long *)(this + 0x38)) {
*(long *)(this + 0x40) = *(long *)(this + 0x38);
}
uStack_8 = CONCAT17(this[0x14],(int7)in_RAX);
/* try { // try from 0013ea2a to 0013ea2e has its CatchHandler @ 0013ea31 */
std::vector<char,std::allocator<char>>::emplace_back<char>
((vector<char,std::allocator<char>> *)(this + 0x38),(char *)((long)&uStack_8 + 7));
return uStack_8;
}
| |
25,130 | rtree_find_next | eloqsql/storage/myisam/rt_index.c | int rtree_find_next(MI_INFO *info, uint keynr, uint search_flag)
{
my_off_t root;
uint nod_cmp_flag;
MI_KEYDEF *keyinfo = info->s->keyinfo + keynr;
/*
At the moment index can only properly handle the
MBR_INTERSECT, so we use it for all sorts of queries.
TODO: better searsh for CONTAINS/WITHIN.
*/
search_flag= nod_cmp_flag= MBR_INTERSECT;
if (info->update & HA_STATE_DELETED)
return rtree_find_first(info, keynr, info->lastkey, info->lastkey_length,
search_flag);
if (!info->buff_used)
{
uchar *key= info->int_keypos;
while (key < info->int_maxpos)
{
if (!rtree_key_cmp(keyinfo->seg, info->first_mbr_key, key,
info->last_rkey_length, search_flag))
{
uchar *after_key = key + keyinfo->keylength;
info->lastpos= _mi_dpos(info, 0, after_key);
memcpy(info->lastkey, key, info->lastkey_length);
if (after_key < info->int_maxpos)
info->int_keypos= after_key;
else
info->buff_used= 1;
return 0;
}
key+= keyinfo->keylength;
}
}
if ((root = info->s->state.key_root[keynr]) == HA_OFFSET_ERROR)
{
my_errno= HA_ERR_END_OF_FILE;
return -1;
}
/*
TODO better search for CONTAINS/WITHIN.
nod_cmp_flag= (((search_flag & (MBR_EQUAL | MBR_WITHIN)) ?
MBR_WITHIN : MBR_INTERSECT));
*/
return rtree_find_req(info, keyinfo, search_flag, nod_cmp_flag, root, 0);
} | O0 | c | rtree_find_next:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x218(%rax), %rax
movl -0x14(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movl $0x400, -0x24(%rbp) # imm = 0x400
movl $0x400, -0x18(%rbp) # imm = 0x400
movq -0x10(%rbp), %rax
movl 0x1d0(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0xc8dab
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movq -0x10(%rbp), %rax
movq 0x108(%rax), %rdx
movq -0x10(%rbp), %rax
movl 0x1d8(%rax), %ecx
movl -0x18(%rbp), %r8d
callq 0xc87b0
movl %eax, -0x4(%rbp)
jmp 0xc8f09
movq -0x10(%rbp), %rax
cmpb $0x0, 0x33d(%rax)
jne 0xc8eb9
movq -0x10(%rbp), %rax
movq 0x128(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x130(%rcx), %rax
jae 0xc8eb7
movq -0x30(%rbp), %rax
movq 0x28(%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x118(%rax), %rsi
movq -0x38(%rbp), %rdx
movq -0x10(%rbp), %rax
movl 0x1dc(%rax), %ecx
movl -0x18(%rbp), %r8d
callq 0xcb190
cmpl $0x0, %eax
jne 0xc8e9c
movq -0x38(%rbp), %rax
movq -0x30(%rbp), %rcx
movzwl 0x12(%rcx), %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movq -0x40(%rbp), %rdx
xorl %esi, %esi
callq 0xbf240
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x170(%rax)
movq -0x10(%rbp), %rax
movq 0x108(%rax), %rdi
movq -0x38(%rbp), %rsi
movq -0x10(%rbp), %rax
movl 0x1d8(%rax), %eax
movl %eax, %edx
callq 0x2a090
movq -0x40(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x130(%rcx), %rax
jae 0xc8e88
movq -0x40(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x128(%rax)
jmp 0xc8e93
movq -0x10(%rbp), %rax
movb $0x1, 0x33d(%rax)
movl $0x0, -0x4(%rbp)
jmp 0xc8f09
movq -0x30(%rbp), %rax
movzwl 0x12(%rax), %ecx
movq -0x38(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
jmp 0xc8dcb
jmp 0xc8eb9
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x98(%rax), %rax
movl -0x14(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, -0x20(%rbp)
cmpq $-0x1, %rax
jne 0xc8eec
callq 0xf60c0
movl $0x89, (%rax)
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xc8f09
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl -0x18(%rbp), %edx
movl -0x24(%rbp), %ecx
movq -0x20(%rbp), %r8
xorl %r9d, %r9d
callq 0xc88a0
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| rtree_find_next:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+218h]
mov ecx, [rbp+var_14]
imul rcx, 70h ; 'p'
add rax, rcx
mov [rbp+var_30], rax
mov [rbp+var_24], 400h
mov [rbp+var_18], 400h
mov rax, [rbp+var_10]
mov eax, [rax+1D0h]
and eax, 8
cmp eax, 0
jz short loc_C8DAB
mov rdi, [rbp+var_10]
mov esi, [rbp+var_14]
mov rax, [rbp+var_10]
mov rdx, [rax+108h]
mov rax, [rbp+var_10]
mov ecx, [rax+1D8h]
mov r8d, [rbp+var_18]
call rtree_find_first
mov [rbp+var_4], eax
jmp loc_C8F09
loc_C8DAB:
mov rax, [rbp+var_10]
cmp byte ptr [rax+33Dh], 0
jnz loc_C8EB9
mov rax, [rbp+var_10]
mov rax, [rax+128h]
mov [rbp+var_38], rax
loc_C8DCB:
mov rax, [rbp+var_38]
mov rcx, [rbp+var_10]
cmp rax, [rcx+130h]
jnb loc_C8EB7
mov rax, [rbp+var_30]
mov rdi, [rax+28h]
mov rax, [rbp+var_10]
mov rsi, [rax+118h]
mov rdx, [rbp+var_38]
mov rax, [rbp+var_10]
mov ecx, [rax+1DCh]
mov r8d, [rbp+var_18]
call rtree_key_cmp
cmp eax, 0
jnz loc_C8E9C
mov rax, [rbp+var_38]
mov rcx, [rbp+var_30]
movzx ecx, word ptr [rcx+12h]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_40], rax
mov rdi, [rbp+var_10]
mov rdx, [rbp+var_40]
xor esi, esi
call _mi_dpos
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+170h], rcx
mov rax, [rbp+var_10]
mov rdi, [rax+108h]
mov rsi, [rbp+var_38]
mov rax, [rbp+var_10]
mov eax, [rax+1D8h]
mov edx, eax
call _memcpy
mov rax, [rbp+var_40]
mov rcx, [rbp+var_10]
cmp rax, [rcx+130h]
jnb short loc_C8E88
mov rcx, [rbp+var_40]
mov rax, [rbp+var_10]
mov [rax+128h], rcx
jmp short loc_C8E93
loc_C8E88:
mov rax, [rbp+var_10]
mov byte ptr [rax+33Dh], 1
loc_C8E93:
mov [rbp+var_4], 0
jmp short loc_C8F09
loc_C8E9C:
mov rax, [rbp+var_30]
movzx ecx, word ptr [rax+12h]
mov rax, [rbp+var_38]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_38], rax
jmp loc_C8DCB
loc_C8EB7:
jmp short $+2
loc_C8EB9:
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+98h]
mov ecx, [rbp+var_14]
mov rax, [rax+rcx*8]
mov [rbp+var_20], rax
cmp rax, 0FFFFFFFFFFFFFFFFh
jnz short loc_C8EEC
call _my_thread_var
mov dword ptr [rax], 89h
mov [rbp+var_4], 0FFFFFFFFh
jmp short loc_C8F09
loc_C8EEC:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_30]
mov edx, [rbp+var_18]
mov ecx, [rbp+var_24]
mov r8, [rbp+var_20]
xor r9d, r9d
call rtree_find_req
mov [rbp+var_4], eax
loc_C8F09:
mov eax, [rbp+var_4]
add rsp, 40h
pop rbp
retn
| long long rtree_find_next(long long a1, const char *a2)
{
unsigned long long v3; // [rsp+0h] [rbp-40h]
unsigned long long i; // [rsp+8h] [rbp-38h]
long long v5; // [rsp+10h] [rbp-30h]
long long v6; // [rsp+20h] [rbp-20h]
unsigned int v7; // [rsp+2Ch] [rbp-14h]
_QWORD *v8; // [rsp+30h] [rbp-10h]
v8 = (_QWORD *)a1;
v7 = (unsigned int)a2;
v5 = 112LL * (unsigned int)a2 + *(_QWORD *)(*(_QWORD *)a1 + 536LL);
if ( (*(_DWORD *)(a1 + 464) & 8) != 0 )
{
return (unsigned int)rtree_find_first(
a1,
(const char *)(unsigned int)a2,
*(_QWORD *)(a1 + 264),
*(_DWORD *)(a1 + 472));
}
else
{
if ( !*(_BYTE *)(a1 + 829) )
{
for ( i = *(_QWORD *)(a1 + 296); i < v8[38]; i += *(unsigned __int16 *)(v5 + 18) )
{
a1 = *(_QWORD *)(v5 + 40);
a2 = (const char *)v8[35];
if ( !(unsigned int)rtree_key_cmp(a1, a2, i, *((unsigned int *)v8 + 119), 1024LL) )
{
v3 = *(unsigned __int16 *)(v5 + 18) + i;
v8[46] = mi_dpos((long long)v8, 0, v3);
memcpy(v8[33], i, *((unsigned int *)v8 + 118));
if ( v3 >= v8[38] )
*((_BYTE *)v8 + 829) = 1;
else
v8[37] = v3;
return 0;
}
}
}
v6 = *(_QWORD *)(*(_QWORD *)(*v8 + 152LL) + 8LL * v7);
if ( v6 == -1 )
{
*(_DWORD *)my_thread_var(a1, a2) = 137;
return (unsigned int)-1;
}
else
{
return (unsigned int)rtree_find_req(v8, v5, 0x400u, 0x400u, v6, 0);
}
}
}
| rtree_find_next:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x218]
MOV ECX,dword ptr [RBP + -0x14]
IMUL RCX,RCX,0x70
ADD RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
MOV dword ptr [RBP + -0x24],0x400
MOV dword ptr [RBP + -0x18],0x400
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x1d0]
AND EAX,0x8
CMP EAX,0x0
JZ 0x001c8dab
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX + 0x108]
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x1d8]
MOV R8D,dword ptr [RBP + -0x18]
CALL 0x001c87b0
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001c8f09
LAB_001c8dab:
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX + 0x33d],0x0
JNZ 0x001c8eb9
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x128]
MOV qword ptr [RBP + -0x38],RAX
LAB_001c8dcb:
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x130]
JNC 0x001c8eb7
MOV RAX,qword ptr [RBP + -0x30]
MOV RDI,qword ptr [RAX + 0x28]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x118]
MOV RDX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x1dc]
MOV R8D,dword ptr [RBP + -0x18]
CALL 0x001cb190
CMP EAX,0x0
JNZ 0x001c8e9c
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x30]
MOVZX ECX,word ptr [RCX + 0x12]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x40],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x40]
XOR ESI,ESI
CALL 0x001bf240
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x170],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x108]
MOV RSI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x1d8]
MOV EDX,EAX
CALL 0x0012a090
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x130]
JNC 0x001c8e88
MOV RCX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x128],RCX
JMP 0x001c8e93
LAB_001c8e88:
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x33d],0x1
LAB_001c8e93:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001c8f09
LAB_001c8e9c:
MOV RAX,qword ptr [RBP + -0x30]
MOVZX ECX,word ptr [RAX + 0x12]
MOV RAX,qword ptr [RBP + -0x38]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x38],RAX
JMP 0x001c8dcb
LAB_001c8eb7:
JMP 0x001c8eb9
LAB_001c8eb9:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x98]
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,-0x1
JNZ 0x001c8eec
CALL 0x001f60c0
MOV dword ptr [RAX],0x89
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x001c8f09
LAB_001c8eec:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x30]
MOV EDX,dword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0x24]
MOV R8,qword ptr [RBP + -0x20]
XOR R9D,R9D
CALL 0x001c88a0
MOV dword ptr [RBP + -0x4],EAX
LAB_001c8f09:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x40
POP RBP
RET
|
int4 rtree_find_next(long *param_1,uint param_2)
{
long lVar1;
int iVar2;
long lVar3;
ulong uVar4;
int4 *puVar5;
void *local_40;
int4 local_c;
lVar3 = *(long *)(*param_1 + 0x218) + (ulong)param_2 * 0x70;
if ((*(uint *)(param_1 + 0x3a) & 8) == 0) {
if (*(char *)((long)param_1 + 0x33d) == '\0') {
for (local_40 = (void *)param_1[0x25]; local_40 < (void *)param_1[0x26];
local_40 = (void *)((long)local_40 + (long)(int)(uint)*(ushort *)(lVar3 + 0x12))) {
iVar2 = rtree_key_cmp(*(int8 *)(lVar3 + 0x28),param_1[0x23],local_40,
*(int4 *)((long)param_1 + 0x1dc),0x400);
if (iVar2 == 0) {
uVar4 = (long)local_40 + (long)(int)(uint)*(ushort *)(lVar3 + 0x12);
lVar3 = _mi_dpos(param_1,0,uVar4);
param_1[0x2e] = lVar3;
memcpy((void *)param_1[0x21],local_40,(ulong)*(uint *)(param_1 + 0x3b));
if (uVar4 < (ulong)param_1[0x26]) {
param_1[0x25] = uVar4;
}
else {
*(int1 *)((long)param_1 + 0x33d) = 1;
}
return 0;
}
}
}
lVar1 = *(long *)(*(long *)(*param_1 + 0x98) + (ulong)param_2 * 8);
if (lVar1 == -1) {
puVar5 = (int4 *)_my_thread_var();
*puVar5 = 0x89;
local_c = 0xffffffff;
}
else {
local_c = rtree_find_req(param_1,lVar3,0x400,0x400,lVar1,0);
}
}
else {
local_c = rtree_find_first(param_1,param_2,param_1[0x21],(int)param_1[0x3b],0x400);
}
return local_c;
}
| |
25,131 | type_union_create | tsotchke[P]eshkol/src/core/utils/type_creation.c | Type* type_union_create(Arena* arena, size_t variant_count, Type** variants) {
assert(variant_count == 0 || variants != NULL);
Type* type = arena_alloc(arena, sizeof(Type));
if (!type) return NULL;
type->kind = TYPE_UNION;
type->union_type.variant_count = variant_count;
type->union_type.variants = variants;
return type;
} | O3 | c | type_union_create:
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
sete %al
testq %rdx, %rdx
setne %cl
orb %al, %cl
je 0x2e44
movq %rdx, %rbx
movq %rsi, %r14
movl $0x28, %esi
callq 0x2877
testq %rax, %rax
je 0x2e3c
movl $0xb, (%rax)
movq %r14, 0x8(%rax)
movq %rbx, 0x10(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x3416(%rip), %rdi # 0x6261
leaq 0x3257(%rip), %rsi # 0x60a9
leaq 0x342f(%rip), %rcx # 0x6288
movl $0xb4, %edx
callq 0x10e0
| type_union_create:
push r14
push rbx
push rax
test rsi, rsi
setz al
test rdx, rdx
setnz cl
or cl, al
jz short loc_2E44
mov rbx, rdx
mov r14, rsi
mov esi, 28h ; '('
call arena_alloc
test rax, rax
jz short loc_2E3C
mov dword ptr [rax], 0Bh
mov [rax+8], r14
mov [rax+10h], rbx
loc_2E3C:
add rsp, 8
pop rbx
pop r14
retn
loc_2E44:
lea rdi, aVariantCount0V; "variant_count == 0 || variants != NULL"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aTypeTypeUnionC; "Type *type_union_create(Arena *, size_t"...
mov edx, 0B4h
call ___assert_fail
| long long type_union_create(long long a1, long long a2, long long a3)
{
long long result; // rax
if ( a2 != 0 && a3 == 0 )
__assert_fail(
"variant_count == 0 || variants != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/type_creation.c",
180LL,
"Type *type_union_create(Arena *, size_t, Type **)");
result = arena_alloc(a1, 40LL);
if ( result )
{
*(_DWORD *)result = 11;
*(_QWORD *)(result + 8) = a2;
*(_QWORD *)(result + 16) = a3;
}
return result;
}
| type_union_create:
PUSH R14
PUSH RBX
PUSH RAX
TEST RSI,RSI
SETZ AL
TEST RDX,RDX
SETNZ CL
OR CL,AL
JZ 0x00102e44
MOV RBX,RDX
MOV R14,RSI
MOV ESI,0x28
CALL 0x00102877
TEST RAX,RAX
JZ 0x00102e3c
MOV dword ptr [RAX],0xb
MOV qword ptr [RAX + 0x8],R14
MOV qword ptr [RAX + 0x10],RBX
LAB_00102e3c:
ADD RSP,0x8
POP RBX
POP R14
RET
LAB_00102e44:
LEA RDI,[0x106261]
LEA RSI,[0x1060a9]
LEA RCX,[0x106288]
MOV EDX,0xb4
CALL 0x001010e0
|
void type_union_create(int8 param_1,long param_2,long param_3)
{
int4 *puVar1;
if (param_3 != 0 || param_2 == 0) {
puVar1 = (int4 *)arena_alloc(param_1,0x28);
if (puVar1 != (int4 *)0x0) {
*puVar1 = 0xb;
*(long *)(puVar1 + 2) = param_2;
*(long *)(puVar1 + 4) = param_3;
}
return;
}
/* WARNING: Subroutine does not return */
__assert_fail("variant_count == 0 || variants != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/type_creation.c"
,0xb4,"Type *type_union_create(Arena *, size_t, Type **)");
}
| |
25,132 | js_async_generator_resolve | bluesky950520[P]quickjs/quickjs.c | static void js_async_generator_resolve(JSContext *ctx,
JSAsyncGeneratorData *s,
JSValue value,
BOOL done)
{
JSValue result;
result = js_create_iterator_result(ctx, js_dup(value), done);
/* XXX: better exception handling ? */
js_async_generator_resolve_or_reject(ctx, s, result, 0);
JS_FreeValue(ctx, result);
} | O1 | c | js_async_generator_resolve:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rdx, (%rsp)
cmpl $-0x9, %ecx
jb 0x55aad
movq (%rsp), %rax
incl (%rax)
movq %rbx, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
movl %r8d, %ecx
callq 0x3ef02
movq %rax, %r15
movq %rdx, %r12
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
movq %r12, %rcx
xorl %r8d, %r8d
callq 0x55c30
movq 0x18(%rbx), %rdi
movq %r15, %rsi
movq %r12, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1d8c6
| js_async_generator_resolve:
push r15
push r14
push r12
push rbx
push rax
mov r14, rsi
mov rbx, rdi
mov [rsp+28h+var_28], rdx
cmp ecx, 0FFFFFFF7h
jb short loc_55AAD
mov rax, [rsp+28h+var_28]
inc dword ptr [rax]
loc_55AAD:
mov rdi, rbx
mov rsi, rdx
mov rdx, rcx
mov ecx, r8d
call js_create_iterator_result
mov r15, rax
mov r12, rdx
mov rdi, rbx
mov rsi, r14
mov rdx, rax
mov rcx, r12
xor r8d, r8d
call js_async_generator_resolve_or_reject
mov rdi, [rbx+18h]
mov rsi, r15
mov rdx, r12
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
jmp JS_FreeValueRT
| long long js_async_generator_resolve(
long long a1,
long long a2,
_DWORD *a3,
long long a4,
int a5,
double a6,
__m128 a7,
__m128 a8,
__m128 a9,
double a10,
double a11,
__m128 a12,
__m128 a13)
{
_DWORD *iterator_result; // r15
long long v14; // rdx
long long v15; // r12
if ( (unsigned int)a4 >= 0xFFFFFFF7 )
++*a3;
iterator_result = (_DWORD *)js_create_iterator_result(a1, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13);
v15 = v14;
js_async_generator_resolve_or_reject(a1, a2, iterator_result, v14, 0LL);
return JS_FreeValueRT(*(_QWORD *)(a1 + 24), iterator_result, v15);
}
| js_async_generator_resolve:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
MOV qword ptr [RSP],RDX
CMP ECX,-0x9
JC 0x00155aad
MOV RAX,qword ptr [RSP]
INC dword ptr [RAX]
LAB_00155aad:
MOV RDI,RBX
MOV RSI,RDX
MOV RDX,RCX
MOV ECX,R8D
CALL 0x0013ef02
MOV R15,RAX
MOV R12,RDX
MOV RDI,RBX
MOV RSI,R14
MOV RDX,RAX
MOV RCX,R12
XOR R8D,R8D
CALL 0x00155c30
MOV RDI,qword ptr [RBX + 0x18]
MOV RSI,R15
MOV RDX,R12
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
JMP 0x0011d8c6
|
void js_async_generator_resolve
(long param_1,int8 param_2,int *param_3,int8 param_4,int4 param_5)
{
int1 auVar1 [16];
if (0xfffffff6 < (uint)param_4) {
*param_3 = *param_3 + 1;
}
auVar1 = js_create_iterator_result(param_1,param_3,param_4,param_5);
js_async_generator_resolve_or_reject(param_1,param_2,auVar1._0_8_,auVar1._8_8_,0);
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),auVar1._0_8_,auVar1._8_8_);
return;
}
| |
25,133 | nlohmann::json_abi_v3_11_3::detail::iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<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>>::begin() const | monkey531[P]llama/common/./json.hpp | iteration_proxy_value<IteratorType> begin() const noexcept
{
return iteration_proxy_value<IteratorType>(container->begin());
} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<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>>::begin() const:
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movq (%rsi), %rax
movq %rax, (%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rsp)
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
movq %rcx, 0x18(%rsp)
movzbl (%rax), %ecx
testl %ecx, %ecx
je 0x942f9
cmpl $0x2, %ecx
je 0x942eb
cmpl $0x1, %ecx
jne 0x94304
movq 0x8(%rax), %rax
movq (%rax), %rax
movq %rax, 0x8(%rsp)
jmp 0x9430d
movq 0x8(%rax), %rax
movq (%rax), %rax
movq %rax, 0x10(%rsp)
jmp 0x9430d
movq $0x1, 0x18(%rsp)
jmp 0x9430d
movq $0x0, 0x18(%rsp)
movq %rsp, %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x78af4
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
retq
nop
| _ZNK8nlohmann16json_abi_v3_11_36detail15iteration_proxyINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEE5beginEv:
push rbx
sub rsp, 20h
mov rbx, rdi
mov rax, [rsi]
mov [rsp+28h+var_28], rax
xorps xmm0, xmm0
movups [rsp+28h+var_20], xmm0
mov rcx, 8000000000000000h
mov [rsp+28h+var_10], rcx
movzx ecx, byte ptr [rax]
test ecx, ecx
jz short loc_942F9
cmp ecx, 2
jz short loc_942EB
cmp ecx, 1
jnz short loc_94304
mov rax, [rax+8]
mov rax, [rax]
mov qword ptr [rsp+28h+var_20], rax
jmp short loc_9430D
loc_942EB:
mov rax, [rax+8]
mov rax, [rax]
mov qword ptr [rsp+28h+var_20+8], rax
jmp short loc_9430D
loc_942F9:
mov [rsp+28h+var_10], 1
jmp short loc_9430D
loc_94304:
mov [rsp+28h+var_10], 0
loc_9430D:
mov rsi, rsp
mov rdi, rbx
xor edx, edx
call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEEC2ESI_m; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<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>>::iteration_proxy_value(nlohmann::json_abi_v3_11_3::detail::iter_impl<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>,ulong)
mov rax, rbx
add rsp, 20h
pop rbx
retn
| long long nlohmann::json_abi_v3_11_3::detail::iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<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>>::begin(
long long a1,
unsigned __int8 **a2)
{
unsigned __int8 *v2; // rax
int v3; // ecx
unsigned __int8 *v5; // [rsp+0h] [rbp-28h] BYREF
__int128 v6; // [rsp+8h] [rbp-20h]
long long v7; // [rsp+18h] [rbp-10h]
v2 = *a2;
v5 = v2;
v6 = 0LL;
v7 = 0x8000000000000000LL;
v3 = *v2;
if ( *v2 )
{
if ( v3 == 2 )
{
*((_QWORD *)&v6 + 1) = **((_QWORD **)v2 + 1);
}
else if ( v3 == 1 )
{
*(_QWORD *)&v6 = **((_QWORD **)v2 + 1);
}
else
{
v7 = 0LL;
}
}
else
{
v7 = 1LL;
}
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<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>>::iteration_proxy_value(
a1,
(__int128 *)&v5,
0LL);
return a1;
}
| begin:
PUSH RBX
SUB RSP,0x20
MOV RBX,RDI
MOV RAX,qword ptr [RSI]
MOV qword ptr [RSP],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSP + 0x8],XMM0
MOV RCX,-0x8000000000000000
MOV qword ptr [RSP + 0x18],RCX
MOVZX ECX,byte ptr [RAX]
TEST ECX,ECX
JZ 0x001942f9
CMP ECX,0x2
JZ 0x001942eb
CMP ECX,0x1
JNZ 0x00194304
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x8],RAX
JMP 0x0019430d
LAB_001942eb:
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x10],RAX
JMP 0x0019430d
LAB_001942f9:
MOV qword ptr [RSP + 0x18],0x1
JMP 0x0019430d
LAB_00194304:
MOV qword ptr [RSP + 0x18],0x0
LAB_0019430d:
MOV RSI,RSP
MOV RDI,RBX
XOR EDX,EDX
CALL 0x00178af4
MOV RAX,RBX
ADD RSP,0x20
POP RBX
RET
|
/* nlohmann::json_abi_v3_11_3::detail::iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<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> >::begin() const */
void nlohmann::json_abi_v3_11_3::detail::
iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<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>>
::begin(void)
{
iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<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>>
::iteration_proxy_value();
return;
}
| |
25,134 | my_strnxfrm_unicode_full_bin | eloqsql/strings/ctype-utf8.c | size_t
my_strnxfrm_unicode_full_bin(CHARSET_INFO *cs,
uchar *dst, size_t dstlen, uint nweights,
const uchar *src, size_t srclen, uint flags)
{
uchar *dst0= dst;
uchar *de= dst + dstlen;
dst+= my_strnxfrm_unicode_full_bin_internal(cs, dst, de, &nweights,
src, src + srclen);
DBUG_ASSERT(dst <= de); /* Safety */
if (flags & MY_STRXFRM_PAD_WITH_SPACE)
{
for ( ; dst < de && nweights; nweights--)
{
*dst++= 0x00;
if (dst < de)
{
*dst++= 0x00;
if (dst < de)
*dst++= 0x20;
}
}
}
my_strxfrm_desc_and_reverse(dst0, dst, flags, 0);
if (flags & MY_STRXFRM_PAD_TO_MAXLEN)
{
while (dst < de)
{
*dst++= 0x00;
if (dst < de)
{
*dst++= 0x00;
if (dst < de)
*dst++= 0x20;
}
}
}
return dst - dst0;
} | O3 | c | my_strnxfrm_unicode_full_bin:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r12
movq %rsi, %rbx
movl 0x10(%rbp), %r15d
leaq -0x24(%rbp), %rax
movl %ecx, (%rax)
leaq (%rsi,%rdx), %r14
addq %r8, %r9
movq %r14, %rdx
movq %rax, %rcx
callq 0xcb743
leaq (%rbx,%rax), %rcx
testb $0x40, %r15b
jne 0xcb88c
movq %rcx, %r12
movq %rbx, %rdi
movq %r12, %rsi
movl %r15d, %edx
xorl %ecx, %ecx
callq 0xb66ea
testb %r15b, %r15b
setns %al
cmpq %r14, %r12
setae %cl
orb %al, %cl
jne 0xcb8d8
leaq 0x1(%r12), %rax
movb $0x0, (%r12)
cmpq %r14, %rax
jae 0xcb882
leaq 0x2(%r12), %rax
movb $0x0, 0x1(%r12)
cmpq %r14, %rax
jae 0xcb882
movb $0x20, 0x2(%r12)
addq $0x3, %r12
movq %r12, %rax
movq %rax, %r12
cmpq %r14, %rax
jb 0xcb856
jmp 0xcb8db
cmpq %r12, %rax
jge 0xcb82f
cmpl $0x0, -0x24(%rbp)
je 0xcb82f
leaq 0x1(%rcx), %r12
movb $0x0, (%rcx)
cmpq %r14, %r12
jae 0xcb8bb
leaq 0x2(%rcx), %r12
movb $0x0, 0x1(%rcx)
cmpq %r14, %r12
jae 0xcb8bb
movb $0x20, 0x2(%rcx)
addq $0x3, %rcx
movq %rcx, %r12
movl -0x24(%rbp), %eax
decl %eax
movl %eax, -0x24(%rbp)
cmpq %r14, %r12
jae 0xcb832
movq %r12, %rcx
testl %eax, %eax
jne 0xcb897
jmp 0xcb832
movq %r12, %rax
subq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| my_strnxfrm_unicode_full_bin:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 10h
mov r12, rdx
mov rbx, rsi
mov r15d, [rbp+arg_0]
lea rax, [rbp+var_24]
mov [rax], ecx
lea r14, [rsi+rdx]
add r9, r8
mov rdx, r14
mov rcx, rax
call my_strnxfrm_unicode_full_bin_internal
lea rcx, [rbx+rax]
test r15b, 40h
jnz short loc_CB88C
loc_CB82F:
mov r12, rcx
loc_CB832:
mov rdi, rbx
mov rsi, r12
mov edx, r15d
xor ecx, ecx
call my_strxfrm_desc_and_reverse
test r15b, r15b
setns al
cmp r12, r14
setnb cl
or cl, al
jnz loc_CB8D8
loc_CB856:
lea rax, [r12+1]
mov byte ptr [r12], 0
cmp rax, r14
jnb short loc_CB882
lea rax, [r12+2]
mov byte ptr [r12+1], 0
cmp rax, r14
jnb short loc_CB882
mov byte ptr [r12+2], 20h ; ' '
add r12, 3
mov rax, r12
loc_CB882:
mov r12, rax
cmp rax, r14
jb short loc_CB856
jmp short loc_CB8DB
loc_CB88C:
cmp rax, r12
jge short loc_CB82F
cmp [rbp+var_24], 0
jz short loc_CB82F
loc_CB897:
lea r12, [rcx+1]
mov byte ptr [rcx], 0
cmp r12, r14
jnb short loc_CB8BB
lea r12, [rcx+2]
mov byte ptr [rcx+1], 0
cmp r12, r14
jnb short loc_CB8BB
mov byte ptr [rcx+2], 20h ; ' '
add rcx, 3
mov r12, rcx
loc_CB8BB:
mov eax, [rbp+var_24]
dec eax
mov [rbp+var_24], eax
cmp r12, r14
jnb loc_CB832
mov rcx, r12
test eax, eax
jnz short loc_CB897
jmp loc_CB832
loc_CB8D8:
mov rax, r12
loc_CB8DB:
sub rax, rbx
add rsp, 10h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long my_strnxfrm_unicode_full_bin(
long long a1,
_BYTE *a2,
long long a3,
int a4,
long long a5,
long long a6,
unsigned int a7)
{
unsigned long long v8; // r14
long long v9; // rax
_BYTE *v10; // rcx
_BYTE *v11; // r12
_BYTE *v12; // rax
int v13; // eax
int v15[9]; // [rsp+Ch] [rbp-24h] BYREF
v15[0] = a4;
v8 = (unsigned long long)&a2[a3];
v9 = my_strnxfrm_unicode_full_bin_internal(a1, a2, (unsigned long long)&a2[a3], v15, a5, a5 + a6);
v10 = &a2[v9];
if ( (a7 & 0x40) != 0 && v9 < a3 && v15[0] )
{
do
{
v11 = v10 + 1;
*v10 = 0;
if ( (unsigned long long)(v10 + 1) < v8 )
{
v11 = v10 + 2;
v10[1] = 0;
if ( (unsigned long long)(v10 + 2) < v8 )
{
v10[2] = 32;
v11 = v10 + 3;
}
}
v13 = --v15[0];
if ( (unsigned long long)v11 >= v8 )
break;
v10 = v11;
}
while ( v13 );
}
else
{
v11 = &a2[v9];
}
my_strxfrm_desc_and_reverse(a2, v11, a7, 0);
if ( (a7 & 0x80u) == 0 || (unsigned long long)v11 >= v8 )
{
v12 = v11;
}
else
{
do
{
v12 = v11 + 1;
*v11 = 0;
if ( (unsigned long long)(v11 + 1) < v8 )
{
v12 = v11 + 2;
v11[1] = 0;
if ( (unsigned long long)(v11 + 2) < v8 )
{
v11[2] = 32;
v12 = v11 + 3;
}
}
v11 = v12;
}
while ( (unsigned long long)v12 < v8 );
}
return v12 - a2;
}
| my_strnxfrm_unicode_full_bin:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV R12,RDX
MOV RBX,RSI
MOV R15D,dword ptr [RBP + 0x10]
LEA RAX,[RBP + -0x24]
MOV dword ptr [RAX],ECX
LEA R14,[RSI + RDX*0x1]
ADD R9,R8
MOV RDX,R14
MOV RCX,RAX
CALL 0x001cb743
LEA RCX,[RBX + RAX*0x1]
TEST R15B,0x40
JNZ 0x001cb88c
LAB_001cb82f:
MOV R12,RCX
LAB_001cb832:
MOV RDI,RBX
MOV RSI,R12
MOV EDX,R15D
XOR ECX,ECX
CALL 0x001b66ea
TEST R15B,R15B
SETNS AL
CMP R12,R14
SETNC CL
OR CL,AL
JNZ 0x001cb8d8
LAB_001cb856:
LEA RAX,[R12 + 0x1]
MOV byte ptr [R12],0x0
CMP RAX,R14
JNC 0x001cb882
LEA RAX,[R12 + 0x2]
MOV byte ptr [R12 + 0x1],0x0
CMP RAX,R14
JNC 0x001cb882
MOV byte ptr [R12 + 0x2],0x20
ADD R12,0x3
MOV RAX,R12
LAB_001cb882:
MOV R12,RAX
CMP RAX,R14
JC 0x001cb856
JMP 0x001cb8db
LAB_001cb88c:
CMP RAX,R12
JGE 0x001cb82f
CMP dword ptr [RBP + -0x24],0x0
JZ 0x001cb82f
LAB_001cb897:
LEA R12,[RCX + 0x1]
MOV byte ptr [RCX],0x0
CMP R12,R14
JNC 0x001cb8bb
LEA R12,[RCX + 0x2]
MOV byte ptr [RCX + 0x1],0x0
CMP R12,R14
JNC 0x001cb8bb
MOV byte ptr [RCX + 0x2],0x20
ADD RCX,0x3
MOV R12,RCX
LAB_001cb8bb:
MOV EAX,dword ptr [RBP + -0x24]
DEC EAX
MOV dword ptr [RBP + -0x24],EAX
CMP R12,R14
JNC 0x001cb832
MOV RCX,R12
TEST EAX,EAX
JNZ 0x001cb897
JMP 0x001cb832
LAB_001cb8d8:
MOV RAX,R12
LAB_001cb8db:
SUB RAX,RBX
ADD RSP,0x10
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
long my_strnxfrm_unicode_full_bin
(int8 param_1,long param_2,long param_3,int param_4,long param_5,long param_6,
uint param_7)
{
int1 *puVar1;
long lVar2;
int1 *puVar3;
int1 *puVar4;
int local_2c;
puVar1 = (int1 *)(param_2 + param_3);
local_2c = param_4;
lVar2 = my_strnxfrm_unicode_full_bin_internal
(param_1,param_2,puVar1,&local_2c,param_5,param_6 + param_5);
puVar4 = (int1 *)(param_2 + lVar2);
if (((param_7 & 0x40) != 0) && (lVar2 < param_3)) {
do {
if (local_2c == 0) break;
puVar3 = puVar4 + 1;
*puVar4 = 0;
if (puVar3 < puVar1) {
puVar3 = puVar4 + 2;
puVar4[1] = 0;
if (puVar3 < puVar1) {
puVar4[2] = 0x20;
puVar3 = puVar4 + 3;
}
}
local_2c = local_2c + -1;
puVar4 = puVar3;
} while (puVar3 < puVar1);
}
my_strxfrm_desc_and_reverse(param_2,puVar4,param_7,0);
puVar3 = puVar4;
if (puVar4 < puVar1 && (char)param_7 < '\0') {
do {
puVar4 = puVar3 + 1;
*puVar3 = 0;
if (puVar4 < puVar1) {
puVar4 = puVar3 + 2;
puVar3[1] = 0;
if (puVar4 < puVar1) {
puVar3[2] = 0x20;
puVar4 = puVar3 + 3;
}
}
puVar3 = puVar4;
} while (puVar4 < puVar1);
}
return (long)puVar4 - param_2;
}
| |
25,135 | mthd_my_send_cmd | eloqsql/libmariadb/libmariadb/mariadb_lib.c | int
mthd_my_send_cmd(MYSQL *mysql,enum enum_server_command command, const char *arg,
size_t length, my_bool skip_check, void *opt_arg)
{
NET *net= &mysql->net;
int result= -1;
if (mysql->net.pvio == 0)
{
/* Do reconnect if possible */
if (mariadb_reconnect(mysql))
return(1);
}
if (mysql->status != MYSQL_STATUS_READY ||
mysql->server_status & SERVER_MORE_RESULTS_EXIST)
{
SET_CLIENT_ERROR(mysql, CR_COMMANDS_OUT_OF_SYNC, SQLSTATE_UNKNOWN, 0);
goto end;
}
if (IS_CONNHDLR_ACTIVE(mysql))
{
result= mysql->extension->conn_hdlr->plugin->set_connection(mysql, command, arg, length, skip_check, opt_arg);
if (result== -1)
return(result);
}
CLEAR_CLIENT_ERROR(mysql);
if (command == COM_QUERY ||
command == COM_STMT_PREPARE)
{
if ((mysql->options.client_flag & CLIENT_LOCAL_FILES) &&
mysql->options.extension && mysql->extension->auto_local_infile == WAIT_FOR_QUERY &&
arg && (*arg == 'l' || *arg == 'L'))
{
if (strncasecmp(arg, "load", 4) == 0)
mysql->extension->auto_local_infile= ACCEPT_FILE_REQUEST;
}
}
mysql->info=0;
mysql->affected_rows= ~(unsigned long long) 0;
ma_net_clear(net); /* Clear receive buffer */
if (!arg)
arg="";
if (net->extension->multi_status== COM_MULTI_ENABLED)
{
return net_add_multi_command(net, command, (const uchar *)arg, length);
}
if (ma_net_write_command(net,(uchar) command,arg,
length ? length : (ulong) strlen(arg), 0))
{
if (net->last_errno == ER_NET_PACKET_TOO_LARGE)
{
my_set_error(mysql, CR_NET_PACKET_TOO_LARGE, SQLSTATE_UNKNOWN, 0);
goto end;
}
end_server(mysql);
if (mariadb_reconnect(mysql))
goto end;
if (ma_net_write_command(net,(uchar) command,arg,
length ? length : (ulong) strlen(arg), 0))
{
my_set_error(mysql, CR_SERVER_GONE_ERROR, SQLSTATE_UNKNOWN, 0);
goto end;
}
}
result=0;
if (net->extension->multi_status > COM_MULTI_OFF)
skip_check= 1;
if (!skip_check)
{
result= ((mysql->packet_length=ma_net_safe_read(mysql)) == packet_error ?
1 : 0);
}
end:
return(result);
} | O0 | c | mthd_my_send_cmd:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movb %r8b, %al
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movb %al, -0x29(%rbp)
movq %r9, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
movl $0xffffffff, -0x44(%rbp) # imm = 0xFFFFFFFF
movq -0x10(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x17168
movq -0x10(%rbp), %rdi
callq 0x17530
cmpb $0x0, %al
je 0x17166
movl $0x1, -0x4(%rbp)
jmp 0x17521
jmp 0x17168
movq -0x10(%rbp), %rax
cmpl $0x0, 0x488(%rax)
jne 0x17187
movq -0x10(%rbp), %rax
movl 0x380(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x171f1
jmp 0x17189
movq -0x10(%rbp), %rax
movl $0x7de, 0x90(%rax) # imm = 0x7DE
movq -0x10(%rbp), %rdi
addq $0x297, %rdi # imm = 0x297
leaq 0x49d37(%rip), %rax # 0x60ee0
movq (%rax), %rsi
movl $0x5, %edx
callq 0x13210
movq -0x10(%rbp), %rax
movb $0x0, 0x29c(%rax)
movq -0x10(%rbp), %rdi
addq $0x97, %rdi
leaq 0x49d1d(%rip), %rax # 0x60ef0
movq 0x70(%rax), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x13210
movq -0x10(%rbp), %rax
movb $0x0, 0x296(%rax)
jmp 0x1751b
movq -0x10(%rbp), %rax
cmpq $0x0, 0x4f0(%rax)
je 0x17258
movq -0x10(%rbp), %rax
movq 0x4f0(%rax), %rax
cmpq $0x0, (%rax)
je 0x17258
movq -0x10(%rbp), %rax
movq 0x4f0(%rax), %rax
movq (%rax), %rax
movq (%rax), %rax
movq 0x70(%rax), %rax
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movb -0x29(%rbp), %r8b
movq -0x38(%rbp), %r9
movsbl %r8b, %r8d
callq *%rax
movl %eax, -0x44(%rbp)
cmpl $-0x1, -0x44(%rbp)
jne 0x17256
movl -0x44(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x17521
jmp 0x17258
jmp 0x1725a
movq -0x10(%rbp), %rax
movl $0x0, 0x90(%rax)
movq -0x10(%rbp), %rdi
addq $0x297, %rdi # imm = 0x297
leaq 0x3577a(%rip), %rsi # 0x4c9f4
callq 0x133c0
movq -0x10(%rbp), %rax
movb $0x0, 0x97(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x2a0(%rax)
je 0x172aa
movq -0x10(%rbp), %rax
movq 0x2a0(%rax), %rax
movl $0x0, 0x4(%rax)
jmp 0x172ac
cmpl $0x3, -0x14(%rbp)
je 0x172bc
cmpl $0x16, -0x14(%rbp)
jne 0x17341
movq -0x10(%rbp), %rax
movq 0x3a8(%rax), %rax
andq $0x80, %rax
cmpq $0x0, %rax
je 0x1733f
movq -0x10(%rbp), %rax
cmpq $0x0, 0x480(%rax)
je 0x1733f
movq -0x10(%rbp), %rax
movq 0x4f0(%rax), %rax
movsbl 0x78(%rax), %eax
cmpl $0x1, %eax
jne 0x1733f
cmpq $0x0, -0x20(%rbp)
je 0x1733f
movq -0x20(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x6c, %eax
je 0x17314
movq -0x20(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x4c, %eax
jne 0x1733f
movq -0x20(%rbp), %rdi
leaq 0x356db(%rip), %rsi # 0x4c9fa
movl $0x4, %edx
callq 0x13570
cmpl $0x0, %eax
jne 0x1733d
movq -0x10(%rbp), %rax
movq 0x4f0(%rax), %rax
movb $0x2, 0x78(%rax)
jmp 0x1733f
jmp 0x17341
movq -0x10(%rbp), %rax
movq $0x0, 0x2e0(%rax)
movq -0x10(%rbp), %rax
movq $-0x1, 0x338(%rax)
movq -0x40(%rbp), %rdi
callq 0x46790
cmpq $0x0, -0x20(%rbp)
jne 0x1737a
leaq 0x3531f(%rip), %rax # 0x4c695
movq %rax, -0x20(%rbp)
movq -0x40(%rbp), %rax
movq 0x2a0(%rax), %rax
cmpl $0x2, (%rax)
jne 0x173a9
movq -0x40(%rbp), %rdi
movl -0x14(%rbp), %eax
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movzbl %al, %esi
callq 0x477e0
movl %eax, -0x4(%rbp)
jmp 0x17521
movq -0x40(%rbp), %rax
movq %rax, -0x60(%rbp)
movl -0x14(%rbp), %eax
movb %al, -0x51(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x173d0
movq -0x28(%rbp), %rax
movq %rax, -0x68(%rbp)
jmp 0x173dd
movq -0x20(%rbp), %rdi
callq 0x131a0
movq %rax, -0x68(%rbp)
movq -0x50(%rbp), %rdx
movb -0x51(%rbp), %al
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %rcx
xorl %r8d, %r8d
movzbl %al, %esi
callq 0x46f30
cmpl $0x0, %eax
je 0x174cc
movq -0x40(%rbp), %rax
cmpl $0x481, 0x90(%rax) # imm = 0x481
jne 0x17433
movq -0x10(%rbp), %rdi
leaq 0x49ac5(%rip), %rax # 0x60ee0
movq (%rax), %rdx
movl $0x7e4, %esi # imm = 0x7E4
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq 0x16c80
jmp 0x1751b
movq -0x10(%rbp), %rdi
callq 0x16c30
movq -0x10(%rbp), %rdi
callq 0x17530
cmpb $0x0, %al
je 0x1744e
jmp 0x1751b
movq -0x40(%rbp), %rax
movq %rax, -0x80(%rbp)
movl -0x14(%rbp), %eax
movb %al, -0x71(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x70(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x17478
movq -0x28(%rbp), %rax
movq %rax, -0x88(%rbp)
jmp 0x17488
movq -0x20(%rbp), %rdi
callq 0x131a0
movq %rax, -0x88(%rbp)
movq -0x70(%rbp), %rdx
movb -0x71(%rbp), %al
movq -0x80(%rbp), %rdi
movq -0x88(%rbp), %rcx
xorl %r8d, %r8d
movzbl %al, %esi
callq 0x46f30
cmpl $0x0, %eax
je 0x174ca
movq -0x10(%rbp), %rdi
leaq 0x49a2b(%rip), %rax # 0x60ee0
movq (%rax), %rdx
movl $0x7d6, %esi # imm = 0x7D6
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq 0x16c80
jmp 0x1751b
jmp 0x174cc
movl $0x0, -0x44(%rbp)
movq -0x40(%rbp), %rax
movq 0x2a0(%rax), %rax
cmpl $0x0, (%rax)
jbe 0x174e7
movb $0x1, -0x29(%rbp)
cmpb $0x0, -0x29(%rbp)
jne 0x17519
movq -0x10(%rbp), %rdi
callq 0x16970
movq %rax, %rdx
movq -0x10(%rbp), %rax
movq %rdx, 0x358(%rax)
movl $0xffffffff, %esi # imm = 0xFFFFFFFF
xorl %eax, %eax
movl $0x1, %ecx
cmpq %rsi, %rdx
cmovel %ecx, %eax
movl %eax, -0x44(%rbp)
jmp 0x1751b
movl -0x44(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x90, %rsp
popq %rbp
retq
nopl (%rax)
| mthd_my_send_cmd:
push rbp
mov rbp, rsp
sub rsp, 90h
mov al, r8b
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_29], al
mov [rbp+var_38], r9
mov rax, [rbp+var_10]
mov [rbp+var_40], rax
mov [rbp+var_44], 0FFFFFFFFh
mov rax, [rbp+var_10]
cmp qword ptr [rax], 0
jnz short loc_17168
mov rdi, [rbp+var_10]
call mariadb_reconnect
cmp al, 0
jz short loc_17166
mov [rbp+var_4], 1
jmp loc_17521
loc_17166:
jmp short $+2
loc_17168:
mov rax, [rbp+var_10]
cmp dword ptr [rax+488h], 0
jnz short loc_17187
mov rax, [rbp+var_10]
mov eax, [rax+380h]
and eax, 8
cmp eax, 0
jz short loc_171F1
loc_17187:
jmp short $+2
loc_17189:
mov rax, [rbp+var_10]
mov dword ptr [rax+90h], 7DEh
mov rdi, [rbp+var_10]
add rdi, 297h
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
mov rax, [rbp+var_10]
mov byte ptr [rax+29Ch], 0
mov rdi, [rbp+var_10]
add rdi, 97h
lea rax, client_errors
mov rsi, [rax+70h]
mov edx, 1FFh
call _strncpy
mov rax, [rbp+var_10]
mov byte ptr [rax+296h], 0
jmp loc_1751B
loc_171F1:
mov rax, [rbp+var_10]
cmp qword ptr [rax+4F0h], 0
jz short loc_17258
mov rax, [rbp+var_10]
mov rax, [rax+4F0h]
cmp qword ptr [rax], 0
jz short loc_17258
mov rax, [rbp+var_10]
mov rax, [rax+4F0h]
mov rax, [rax]
mov rax, [rax]
mov rax, [rax+70h]
mov rdi, [rbp+var_10]
mov esi, [rbp+var_14]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_28]
mov r8b, [rbp+var_29]
mov r9, [rbp+var_38]
movsx r8d, r8b
call rax
mov [rbp+var_44], eax
cmp [rbp+var_44], 0FFFFFFFFh
jnz short loc_17256
mov eax, [rbp+var_44]
mov [rbp+var_4], eax
jmp loc_17521
loc_17256:
jmp short $+2
loc_17258:
jmp short $+2
loc_1725A:
mov rax, [rbp+var_10]
mov dword ptr [rax+90h], 0
mov rdi, [rbp+var_10]
add rdi, 297h
lea rsi, a00000; "00000"
call _strcpy
mov rax, [rbp+var_10]
mov byte ptr [rax+97h], 0
mov rax, [rbp+var_10]
cmp qword ptr [rax+2A0h], 0
jz short loc_172AA
mov rax, [rbp+var_10]
mov rax, [rax+2A0h]
mov dword ptr [rax+4], 0
loc_172AA:
jmp short $+2
loc_172AC:
cmp [rbp+var_14], 3
jz short loc_172BC
cmp [rbp+var_14], 16h
jnz loc_17341
loc_172BC:
mov rax, [rbp+var_10]
mov rax, [rax+3A8h]
and rax, 80h
cmp rax, 0
jz short loc_1733F
mov rax, [rbp+var_10]
cmp qword ptr [rax+480h], 0
jz short loc_1733F
mov rax, [rbp+var_10]
mov rax, [rax+4F0h]
movsx eax, byte ptr [rax+78h]
cmp eax, 1
jnz short loc_1733F
cmp [rbp+var_20], 0
jz short loc_1733F
mov rax, [rbp+var_20]
movsx eax, byte ptr [rax]
cmp eax, 6Ch ; 'l'
jz short loc_17314
mov rax, [rbp+var_20]
movsx eax, byte ptr [rax]
cmp eax, 4Ch ; 'L'
jnz short loc_1733F
loc_17314:
mov rdi, [rbp+var_20]
lea rsi, aLoad; "load"
mov edx, 4
call _strncasecmp
cmp eax, 0
jnz short loc_1733D
mov rax, [rbp+var_10]
mov rax, [rax+4F0h]
mov byte ptr [rax+78h], 2
loc_1733D:
jmp short $+2
loc_1733F:
jmp short $+2
loc_17341:
mov rax, [rbp+var_10]
mov qword ptr [rax+2E0h], 0
mov rax, [rbp+var_10]
mov qword ptr [rax+338h], 0FFFFFFFFFFFFFFFFh
mov rdi, [rbp+var_40]
call ma_net_clear
cmp [rbp+var_20], 0
jnz short loc_1737A
lea rax, aExecuteTestWit+29h; ""
mov [rbp+var_20], rax
loc_1737A:
mov rax, [rbp+var_40]
mov rax, [rax+2A0h]
cmp dword ptr [rax], 2
jnz short loc_173A9
mov rdi, [rbp+var_40]
mov eax, [rbp+var_14]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_28]
movzx esi, al
call net_add_multi_command
mov [rbp+var_4], eax
jmp loc_17521
loc_173A9:
mov rax, [rbp+var_40]
mov [rbp+var_60], rax
mov eax, [rbp+var_14]
mov [rbp+var_51], al
mov rax, [rbp+var_20]
mov [rbp+var_50], rax
cmp [rbp+var_28], 0
jz short loc_173D0
mov rax, [rbp+var_28]
mov [rbp+var_68], rax
jmp short loc_173DD
loc_173D0:
mov rdi, [rbp+var_20]
call _strlen
mov [rbp+var_68], rax
loc_173DD:
mov rdx, [rbp+var_50]
mov al, [rbp+var_51]
mov rdi, [rbp+var_60]
mov rcx, [rbp+var_68]
xor r8d, r8d
movzx esi, al
call ma_net_write_command
cmp eax, 0
jz loc_174CC
mov rax, [rbp+var_40]
cmp dword ptr [rax+90h], 481h
jnz short loc_17433
mov rdi, [rbp+var_10]
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
mov esi, 7E4h
xor eax, eax
mov ecx, eax
mov al, 0
call my_set_error
jmp loc_1751B
loc_17433:
mov rdi, [rbp+var_10]
call end_server
mov rdi, [rbp+var_10]
call mariadb_reconnect
cmp al, 0
jz short loc_1744E
jmp loc_1751B
loc_1744E:
mov rax, [rbp+var_40]
mov [rbp+var_80], rax
mov eax, [rbp+var_14]
mov [rbp+var_71], al
mov rax, [rbp+var_20]
mov [rbp+var_70], rax
cmp [rbp+var_28], 0
jz short loc_17478
mov rax, [rbp+var_28]
mov [rbp+var_88], rax
jmp short loc_17488
loc_17478:
mov rdi, [rbp+var_20]
call _strlen
mov [rbp+var_88], rax
loc_17488:
mov rdx, [rbp+var_70]
mov al, [rbp+var_71]
mov rdi, [rbp+var_80]
mov rcx, [rbp+var_88]
xor r8d, r8d
movzx esi, al
call ma_net_write_command
cmp eax, 0
jz short loc_174CA
mov rdi, [rbp+var_10]
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
mov esi, 7D6h
xor eax, eax
mov ecx, eax
mov al, 0
call my_set_error
jmp short loc_1751B
loc_174CA:
jmp short $+2
loc_174CC:
mov [rbp+var_44], 0
mov rax, [rbp+var_40]
mov rax, [rax+2A0h]
cmp dword ptr [rax], 0
jbe short loc_174E7
mov [rbp+var_29], 1
loc_174E7:
cmp [rbp+var_29], 0
jnz short loc_17519
mov rdi, [rbp+var_10]
call ma_net_safe_read
mov rdx, rax
mov rax, [rbp+var_10]
mov [rax+358h], rdx
mov esi, 0FFFFFFFFh
xor eax, eax
mov ecx, 1
cmp rdx, rsi
cmovz eax, ecx
mov [rbp+var_44], eax
loc_17519:
jmp short $+2
loc_1751B:
mov eax, [rbp+var_44]
mov [rbp+var_4], eax
loc_17521:
mov eax, [rbp+var_4]
add rsp, 90h
pop rbp
retn
| long long mthd_my_send_cmd(long long a1, long long a2, char *a3, long long a4, char a5, long long a6)
{
long long v6; // rdx
long long v7; // rcx
int v8; // r8d
int v9; // r9d
long long v10; // rdx
long long v12; // [rsp+8h] [rbp-88h]
long long v13; // [rsp+28h] [rbp-68h]
unsigned int v14; // [rsp+4Ch] [rbp-44h]
v14 = -1;
if ( *(_QWORD *)a1 || !(unsigned __int8)mariadb_reconnect(a1) )
{
if ( *(_DWORD *)(a1 + 1160) || (*(_DWORD *)(a1 + 896) & 8) != 0 )
{
*(_DWORD *)(a1 + 144) = 2014;
strncpy(a1 + 663, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(a1 + 668) = 0;
strncpy(a1 + 151, client_errors[14], 511LL);
*(_BYTE *)(a1 + 662) = 0;
return v14;
}
if ( *(_QWORD *)(a1 + 1264) )
{
if ( **(_QWORD **)(a1 + 1264) )
{
v14 = (*(long long ( **)(long long, _QWORD, char *, long long, _QWORD, long long))(***(_QWORD ***)(a1 + 1264)
+ 112LL))(
a1,
(unsigned int)a2,
a3,
a4,
(unsigned int)a5,
a6);
if ( v14 == -1 )
return (unsigned int)-1;
}
}
*(_DWORD *)(a1 + 144) = 0;
strcpy(a1 + 663, "00000");
*(_BYTE *)(a1 + 151) = 0;
if ( *(_QWORD *)(a1 + 672) )
*(_DWORD *)(*(_QWORD *)(a1 + 672) + 4LL) = 0;
if ( ((_DWORD)a2 == 3 || (_DWORD)a2 == 22)
&& (*(_QWORD *)(a1 + 936) & 0x80LL) != 0
&& *(_QWORD *)(a1 + 1152)
&& *(_BYTE *)(*(_QWORD *)(a1 + 1264) + 120LL) == 1
&& a3
&& (*a3 == 108 || *a3 == 76)
&& !(unsigned int)strncasecmp(a3, "load", 4LL) )
{
*(_BYTE *)(*(_QWORD *)(a1 + 1264) + 120LL) = 2;
}
*(_QWORD *)(a1 + 736) = 0LL;
*(_QWORD *)(a1 + 824) = -1LL;
ma_net_clear(a1);
if ( !a3 )
a3 = "";
if ( **(_DWORD **)(a1 + 672) == 2 )
return (unsigned int)net_add_multi_command(a1, (unsigned __int8)a2, a3, a4);
if ( a4 )
v13 = a4;
else
v13 = strlen(a3);
a2 = (unsigned __int8)a2;
if ( (unsigned int)ma_net_write_command(a1, (unsigned __int8)a2, a3, v13, 0LL) )
{
if ( *(_DWORD *)(a1 + 144) == 1153 )
{
my_set_error(a1, 0x7E4u, (long long)SQLSTATE_UNKNOWN, 0LL);
return v14;
}
end_server((_QWORD *)a1);
if ( (unsigned __int8)mariadb_reconnect(a1) )
return v14;
if ( a4 )
v12 = a4;
else
v12 = strlen(a3);
a2 = (unsigned __int8)a2;
if ( (unsigned int)ma_net_write_command(a1, (unsigned __int8)a2, a3, v12, 0LL) )
{
my_set_error(a1, 0x7D6u, (long long)SQLSTATE_UNKNOWN, 0LL);
return v14;
}
}
v14 = 0;
if ( **(_DWORD **)(a1 + 672) )
a5 = 1;
if ( !a5 )
{
v10 = ma_net_safe_read(a1, a2, v6, v7, v8, v9);
*(_QWORD *)(a1 + 856) = v10;
return v10 == 0xFFFFFFFFLL;
}
return v14;
}
return 1;
}
| mthd_my_send_cmd:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV AL,R8B
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV byte ptr [RBP + -0x29],AL
MOV qword ptr [RBP + -0x38],R9
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x40],RAX
MOV dword ptr [RBP + -0x44],0xffffffff
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX],0x0
JNZ 0x00117168
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00117530
CMP AL,0x0
JZ 0x00117166
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00117521
LAB_00117166:
JMP 0x00117168
LAB_00117168:
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x488],0x0
JNZ 0x00117187
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x380]
AND EAX,0x8
CMP EAX,0x0
JZ 0x001171f1
LAB_00117187:
JMP 0x00117189
LAB_00117189:
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x90],0x7de
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x297
LEA RAX,[0x160ee0]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00113210
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x29c],0x0
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x97
LEA RAX,[0x160ef0]
MOV RSI,qword ptr [RAX + 0x70]
MOV EDX,0x1ff
CALL 0x00113210
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x296],0x0
JMP 0x0011751b
LAB_001171f1:
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x4f0],0x0
JZ 0x00117258
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x4f0]
CMP qword ptr [RAX],0x0
JZ 0x00117258
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x4f0]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x70]
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x14]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x28]
MOV R8B,byte ptr [RBP + -0x29]
MOV R9,qword ptr [RBP + -0x38]
MOVSX R8D,R8B
CALL RAX
MOV dword ptr [RBP + -0x44],EAX
CMP dword ptr [RBP + -0x44],-0x1
JNZ 0x00117256
MOV EAX,dword ptr [RBP + -0x44]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00117521
LAB_00117256:
JMP 0x00117258
LAB_00117258:
JMP 0x0011725a
LAB_0011725a:
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x90],0x0
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x297
LEA RSI,[0x14c9f4]
CALL 0x001133c0
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x97],0x0
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x2a0],0x0
JZ 0x001172aa
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x2a0]
MOV dword ptr [RAX + 0x4],0x0
LAB_001172aa:
JMP 0x001172ac
LAB_001172ac:
CMP dword ptr [RBP + -0x14],0x3
JZ 0x001172bc
CMP dword ptr [RBP + -0x14],0x16
JNZ 0x00117341
LAB_001172bc:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x3a8]
AND RAX,0x80
CMP RAX,0x0
JZ 0x0011733f
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x480],0x0
JZ 0x0011733f
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x4f0]
MOVSX EAX,byte ptr [RAX + 0x78]
CMP EAX,0x1
JNZ 0x0011733f
CMP qword ptr [RBP + -0x20],0x0
JZ 0x0011733f
MOV RAX,qword ptr [RBP + -0x20]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x6c
JZ 0x00117314
MOV RAX,qword ptr [RBP + -0x20]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x4c
JNZ 0x0011733f
LAB_00117314:
MOV RDI,qword ptr [RBP + -0x20]
LEA RSI,[0x14c9fa]
MOV EDX,0x4
CALL 0x00113570
CMP EAX,0x0
JNZ 0x0011733d
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x4f0]
MOV byte ptr [RAX + 0x78],0x2
LAB_0011733d:
JMP 0x0011733f
LAB_0011733f:
JMP 0x00117341
LAB_00117341:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x2e0],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x338],-0x1
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x00146790
CMP qword ptr [RBP + -0x20],0x0
JNZ 0x0011737a
LEA RAX,[0x14c695]
MOV qword ptr [RBP + -0x20],RAX
LAB_0011737a:
MOV RAX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RAX + 0x2a0]
CMP dword ptr [RAX],0x2
JNZ 0x001173a9
MOV RDI,qword ptr [RBP + -0x40]
MOV EAX,dword ptr [RBP + -0x14]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x28]
MOVZX ESI,AL
CALL 0x001477e0
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00117521
LAB_001173a9:
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x60],RAX
MOV EAX,dword ptr [RBP + -0x14]
MOV byte ptr [RBP + -0x51],AL
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x50],RAX
CMP qword ptr [RBP + -0x28],0x0
JZ 0x001173d0
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x68],RAX
JMP 0x001173dd
LAB_001173d0:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001131a0
MOV qword ptr [RBP + -0x68],RAX
LAB_001173dd:
MOV RDX,qword ptr [RBP + -0x50]
MOV AL,byte ptr [RBP + -0x51]
MOV RDI,qword ptr [RBP + -0x60]
MOV RCX,qword ptr [RBP + -0x68]
XOR R8D,R8D
MOVZX ESI,AL
CALL 0x00146f30
CMP EAX,0x0
JZ 0x001174cc
MOV RAX,qword ptr [RBP + -0x40]
CMP dword ptr [RAX + 0x90],0x481
JNZ 0x00117433
MOV RDI,qword ptr [RBP + -0x10]
LEA RAX,[0x160ee0]
MOV RDX,qword ptr [RAX]
MOV ESI,0x7e4
XOR EAX,EAX
MOV ECX,EAX
MOV AL,0x0
CALL 0x00116c80
JMP 0x0011751b
LAB_00117433:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00116c30
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00117530
CMP AL,0x0
JZ 0x0011744e
JMP 0x0011751b
LAB_0011744e:
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x80],RAX
MOV EAX,dword ptr [RBP + -0x14]
MOV byte ptr [RBP + -0x71],AL
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x70],RAX
CMP qword ptr [RBP + -0x28],0x0
JZ 0x00117478
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x88],RAX
JMP 0x00117488
LAB_00117478:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001131a0
MOV qword ptr [RBP + -0x88],RAX
LAB_00117488:
MOV RDX,qword ptr [RBP + -0x70]
MOV AL,byte ptr [RBP + -0x71]
MOV RDI,qword ptr [RBP + -0x80]
MOV RCX,qword ptr [RBP + -0x88]
XOR R8D,R8D
MOVZX ESI,AL
CALL 0x00146f30
CMP EAX,0x0
JZ 0x001174ca
MOV RDI,qword ptr [RBP + -0x10]
LEA RAX,[0x160ee0]
MOV RDX,qword ptr [RAX]
MOV ESI,0x7d6
XOR EAX,EAX
MOV ECX,EAX
MOV AL,0x0
CALL 0x00116c80
JMP 0x0011751b
LAB_001174ca:
JMP 0x001174cc
LAB_001174cc:
MOV dword ptr [RBP + -0x44],0x0
MOV RAX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RAX + 0x2a0]
CMP dword ptr [RAX],0x0
JBE 0x001174e7
MOV byte ptr [RBP + -0x29],0x1
LAB_001174e7:
CMP byte ptr [RBP + -0x29],0x0
JNZ 0x00117519
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00116970
MOV RDX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x358],RDX
MOV ESI,0xffffffff
XOR EAX,EAX
MOV ECX,0x1
CMP RDX,RSI
CMOVZ EAX,ECX
MOV dword ptr [RBP + -0x44],EAX
LAB_00117519:
JMP 0x0011751b
LAB_0011751b:
MOV EAX,dword ptr [RBP + -0x44]
MOV dword ptr [RBP + -0x4],EAX
LAB_00117521:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x90
POP RBP
RET
|
uint mthd_my_send_cmd(long *param_1,uint param_2,char *param_3,size_t param_4,char param_5,
int8 param_6)
{
char cVar1;
int iVar2;
uint uVar3;
long lVar4;
size_t local_90;
size_t local_70;
uint local_4c;
char local_31;
char *local_28;
local_4c = 0xffffffff;
if ((*param_1 == 0) && (cVar1 = mariadb_reconnect(param_1), cVar1 != '\0')) {
return 1;
}
if (((int)param_1[0x91] != 0) || ((*(uint *)(param_1 + 0x70) & 8) != 0)) {
*(int4 *)(param_1 + 0x12) = 0x7de;
strncpy((char *)((long)param_1 + 0x297),SQLSTATE_UNKNOWN,5);
*(int1 *)((long)param_1 + 0x29c) = 0;
strncpy((char *)((long)param_1 + 0x97),PTR_s_Commands_out_of_sync__you_can_t_r_00160f60,0x1ff);
*(int1 *)((long)param_1 + 0x296) = 0;
return 0xffffffff;
}
if (((param_1[0x9e] != 0) && (*(long *)param_1[0x9e] != 0)) &&
(local_4c = (**(code **)(**(long **)param_1[0x9e] + 0x70))
(param_1,param_2,param_3,param_4,(int)param_5,param_6),
local_4c == 0xffffffff)) {
return 0xffffffff;
}
*(int4 *)(param_1 + 0x12) = 0;
strcpy((char *)((long)param_1 + 0x297),"00000");
*(int1 *)((long)param_1 + 0x97) = 0;
if (param_1[0x54] != 0) {
*(int4 *)(param_1[0x54] + 4) = 0;
}
if (((((param_2 == 3) || (param_2 == 0x16)) &&
(((param_1[0x75] & 0x80U) != 0 &&
((param_1[0x90] != 0 && (*(char *)(param_1[0x9e] + 0x78) == '\x01')))))) &&
(param_3 != (char *)0x0)) &&
(((*param_3 == 'l' || (*param_3 == 'L')) && (iVar2 = strncasecmp(param_3,"load",4), iVar2 == 0)
))) {
*(int1 *)(param_1[0x9e] + 0x78) = 2;
}
param_1[0x5c] = 0;
param_1[0x67] = -1;
ma_net_clear(param_1);
local_28 = param_3;
if (param_3 == (char *)0x0) {
local_28 = "";
}
if (*(int *)param_1[0x54] != 2) {
local_70 = param_4;
if (param_4 == 0) {
local_70 = strlen(local_28);
}
iVar2 = ma_net_write_command(param_1,(char)param_2,local_28,local_70,0);
if (iVar2 != 0) {
if ((int)param_1[0x12] == 0x481) {
my_set_error(param_1,0x7e4,SQLSTATE_UNKNOWN,0);
return local_4c;
}
end_server(param_1);
cVar1 = mariadb_reconnect(param_1);
if (cVar1 != '\0') {
return local_4c;
}
local_90 = param_4;
if (param_4 == 0) {
local_90 = strlen(local_28);
}
iVar2 = ma_net_write_command(param_1,(char)param_2,local_28,local_90,0);
if (iVar2 != 0) {
my_set_error(param_1,0x7d6,SQLSTATE_UNKNOWN,0);
return local_4c;
}
}
local_4c = 0;
local_31 = param_5;
if (*(int *)param_1[0x54] != 0) {
local_31 = '\x01';
}
if (local_31 == '\0') {
lVar4 = ma_net_safe_read(param_1);
param_1[0x6b] = lVar4;
local_4c = (uint)(lVar4 == 0xffffffff);
}
return local_4c;
}
uVar3 = net_add_multi_command(param_1,param_2 & 0xff,local_28,param_4);
return uVar3;
}
| |
25,136 | ftxui::(anonymous namespace)::FocusCursor::Render(ftxui::Screen&) | Andrewchistyakov[P]flashcards_lyc/build_O2/_deps/ftxui-src/src/ftxui/dom/frame.cpp | void Render(Screen& screen) override {
Select::Render(screen); // NOLINT
screen.SetCursor(Screen::Cursor{
box_.x_min,
box_.y_min,
shape_,
});
} | O2 | cpp | ftxui::(anonymous namespace)::FocusCursor::Render(ftxui::Screen&):
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x1efe0
movl 0x4c(%r14), %eax
movl 0x54(%r14), %ecx
movl 0x5c(%r14), %edx
shlq $0x20, %rcx
orq %rax, %rcx
movq %rcx, 0x30(%rbx)
movl %edx, 0x38(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
| _ZN5ftxui12_GLOBAL__N_111FocusCursor6RenderERNS_6ScreenE:
push r14
push rbx
push rax
mov rbx, rsi
mov r14, rdi
call _ZN5ftxui4Node6RenderERNS_6ScreenE; ftxui::Node::Render(ftxui::Screen &)
mov eax, [r14+4Ch]
mov ecx, [r14+54h]
mov edx, [r14+5Ch]
shl rcx, 20h
or rcx, rax
mov [rbx+30h], rcx
mov [rbx+38h], edx
add rsp, 8
pop rbx
pop r14
retn
| long long ftxui::`anonymous namespace'::FocusCursor::Render(
ftxui::_anonymous_namespace_::FocusCursor *this,
ftxui::Screen *a2)
{
long long result; // rax
int v3; // edx
ftxui::Node::Render(this, a2);
result = *((unsigned int *)this + 19);
v3 = *((_DWORD *)this + 23);
*((_QWORD *)a2 + 6) = result | ((unsigned long long)*((unsigned int *)this + 21) << 32);
*((_DWORD *)a2 + 14) = v3;
return result;
}
| Render:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R14,RDI
CALL 0x0011efe0
MOV EAX,dword ptr [R14 + 0x4c]
MOV ECX,dword ptr [R14 + 0x54]
MOV EDX,dword ptr [R14 + 0x5c]
SHL RCX,0x20
OR RCX,RAX
MOV qword ptr [RBX + 0x30],RCX
MOV dword ptr [RBX + 0x38],EDX
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* ftxui::(anonymous namespace)::FocusCursor::Render(ftxui::Screen&) */
void __thiscall ftxui::(anonymous_namespace)::FocusCursor::Render(FocusCursor *this,Screen *param_1)
{
int4 uVar1;
Node::Render((Node *)this,param_1);
uVar1 = *(int4 *)(this + 0x5c);
*(ulong *)(param_1 + 0x30) = CONCAT44(*(int4 *)(this + 0x54),*(int4 *)(this + 0x4c));
*(int4 *)(param_1 + 0x38) = uVar1;
return;
}
| |
25,137 | my_wc_mb_latin1 | eloqsql/strings/ctype-latin1.c | static
int my_wc_mb_latin1(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc,
uchar *str,
uchar *end __attribute__((unused)))
{
const uchar *pl;
if (str >= end)
return MY_CS_TOOSMALL;
if (wc > 0xFFFF)
return MY_CS_ILUNI;
pl= uni_to_cs[wc >> 8];
str[0]= pl ? pl[wc & 0xFF] : '\0';
return (!str[0] && wc) ? MY_CS_ILUNI : 1;
} | O0 | c | my_wc_mb_latin1:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jb 0x9db8a
movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B
jmp 0x9dc11
cmpq $0xffff, -0x18(%rbp) # imm = 0xFFFF
jbe 0x9db9d
movl $0x0, -0x4(%rbp)
jmp 0x9dc11
movq -0x18(%rbp), %rcx
shrq $0x8, %rcx
leaq 0x1a0464(%rip), %rax # 0x23e010
movq (%rax,%rcx,8), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x9dbd3
movq -0x30(%rbp), %rax
movq -0x18(%rbp), %rcx
andq $0xff, %rcx
movzbl (%rax,%rcx), %eax
movl %eax, -0x34(%rbp)
jmp 0x9dbda
xorl %eax, %eax
movl %eax, -0x34(%rbp)
jmp 0x9dbda
movl -0x34(%rbp), %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, (%rax)
movq -0x20(%rbp), %rcx
xorl %eax, %eax
cmpb $0x0, (%rcx)
movb %al, -0x35(%rbp)
jne 0x9dbfe
cmpq $0x0, -0x18(%rbp)
setne %al
movb %al, -0x35(%rbp)
movb -0x35(%rbp), %dl
movl $0x1, %eax
xorl %ecx, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_wc_mb_latin1:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_20]
cmp rax, [rbp+var_28]
jb short loc_9DB8A
mov [rbp+var_4], 0FFFFFF9Bh
jmp loc_9DC11
loc_9DB8A:
cmp [rbp+var_18], 0FFFFh
jbe short loc_9DB9D
mov [rbp+var_4], 0
jmp short loc_9DC11
loc_9DB9D:
mov rcx, [rbp+var_18]
shr rcx, 8
lea rax, uni_to_cs
mov rax, [rax+rcx*8]
mov [rbp+var_30], rax
cmp [rbp+var_30], 0
jz short loc_9DBD3
mov rax, [rbp+var_30]
mov rcx, [rbp+var_18]
and rcx, 0FFh
movzx eax, byte ptr [rax+rcx]
mov [rbp+var_34], eax
jmp short loc_9DBDA
loc_9DBD3:
xor eax, eax
mov [rbp+var_34], eax
jmp short $+2
loc_9DBDA:
mov eax, [rbp+var_34]
mov cl, al
mov rax, [rbp+var_20]
mov [rax], cl
mov rcx, [rbp+var_20]
xor eax, eax
cmp byte ptr [rcx], 0
mov [rbp+var_35], al
jnz short loc_9DBFE
cmp [rbp+var_18], 0
setnz al
mov [rbp+var_35], al
loc_9DBFE:
mov dl, [rbp+var_35]
mov eax, 1
xor ecx, ecx
test dl, 1
cmovnz eax, ecx
mov [rbp+var_4], eax
loc_9DC11:
mov eax, [rbp+var_4]
pop rbp
retn
| long long my_wc_mb_latin1(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4)
{
bool v5; // [rsp+1h] [rbp-35h]
char v6; // [rsp+2h] [rbp-34h]
long long v7; // [rsp+6h] [rbp-30h]
if ( (unsigned long long)a3 < a4 )
{
if ( a2 <= 0xFFFF )
{
v7 = (long long)*(&uni_to_cs + (a2 >> 8));
if ( v7 )
v6 = *(_BYTE *)(v7 + (unsigned __int8)a2);
else
v6 = 0;
*a3 = v6;
v5 = 0;
if ( !*a3 )
v5 = a2 != 0;
return !v5;
}
else
{
return 0;
}
}
else
{
return (unsigned int)-101;
}
}
| my_wc_mb_latin1:
PUSH RBP
MOV RBP,RSP
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 RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x28]
JC 0x0019db8a
MOV dword ptr [RBP + -0x4],0xffffff9b
JMP 0x0019dc11
LAB_0019db8a:
CMP qword ptr [RBP + -0x18],0xffff
JBE 0x0019db9d
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0019dc11
LAB_0019db9d:
MOV RCX,qword ptr [RBP + -0x18]
SHR RCX,0x8
LEA RAX,[0x33e010]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x30],RAX
CMP qword ptr [RBP + -0x30],0x0
JZ 0x0019dbd3
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x18]
AND RCX,0xff
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV dword ptr [RBP + -0x34],EAX
JMP 0x0019dbda
LAB_0019dbd3:
XOR EAX,EAX
MOV dword ptr [RBP + -0x34],EAX
JMP 0x0019dbda
LAB_0019dbda:
MOV EAX,dword ptr [RBP + -0x34]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX],CL
MOV RCX,qword ptr [RBP + -0x20]
XOR EAX,EAX
CMP byte ptr [RCX],0x0
MOV byte ptr [RBP + -0x35],AL
JNZ 0x0019dbfe
CMP qword ptr [RBP + -0x18],0x0
SETNZ AL
MOV byte ptr [RBP + -0x35],AL
LAB_0019dbfe:
MOV DL,byte ptr [RBP + -0x35]
MOV EAX,0x1
XOR ECX,ECX
TEST DL,0x1
CMOVNZ EAX,ECX
MOV dword ptr [RBP + -0x4],EAX
LAB_0019dc11:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
uint my_wc_mb_latin1(int8 param_1,ulong param_2,char *param_3,char *param_4)
{
char cVar1;
uint local_c;
if (param_3 < param_4) {
if (param_2 < 0x10000) {
if (*(long *)(uni_to_cs + (param_2 >> 8) * 8) == 0) {
cVar1 = '\0';
}
else {
cVar1 = *(char *)(*(long *)(uni_to_cs + (param_2 >> 8) * 8) + (param_2 & 0xff));
}
*param_3 = cVar1;
local_c = (uint)(*param_3 != '\0' || param_2 == 0);
}
else {
local_c = 0;
}
}
else {
local_c = 0xffffff9b;
}
return local_c;
}
| |
25,138 | google::protobuf::compiler::java::ImmutableMessageFieldLiteGenerator::ImmutableMessageFieldLiteGenerator(google::protobuf::FieldDescriptor const*, int, google::protobuf::compiler::java::Context*) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/java/message_field_lite.cc | ImmutableMessageFieldLiteGenerator::ImmutableMessageFieldLiteGenerator(
const FieldDescriptor* descriptor, int messageBitIndex, Context* context)
: descriptor_(descriptor),
messageBitIndex_(messageBitIndex),
name_resolver_(context->GetNameResolver()) {
SetMessageVariables(descriptor, messageBitIndex, 0,
context->GetFieldGeneratorInfo(descriptor),
name_resolver_, &variables_);
} | O0 | cpp | google::protobuf::compiler::java::ImmutableMessageFieldLiteGenerator::ImmutableMessageFieldLiteGenerator(google::protobuf::FieldDescriptor const*, int, google::protobuf::compiler::java::Context*):
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movl %edx, 0x54(%rsp)
movq %rcx, 0x48(%rsp)
movq 0x60(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x1b0fc0
movq 0x20(%rsp), %rdi
leaq 0x336d46(%rip), %rax # 0x4ec5c8
movq %rax, (%rdi)
movq 0x58(%rsp), %rax
movq %rax, 0x8(%rdi)
addq $0x10, %rdi
movq %rdi, 0x18(%rsp)
callq 0x36920
movq 0x20(%rsp), %rax
movl 0x54(%rsp), %ecx
movl %ecx, 0x40(%rax)
addq $0x48, %rax
movq %rax, 0x28(%rsp)
movq 0x48(%rsp), %rdi
callq 0x194e70
movq %rax, 0x30(%rsp)
jmp 0x1b58c2
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rcx
movq %rcx, (%rax)
movq 0x58(%rsp), %rsi
movq %rsi, (%rsp)
movl 0x54(%rsp), %eax
movl %eax, 0xc(%rsp)
movq 0x48(%rsp), %rdi
callq 0x1963c0
movq %rax, 0x10(%rsp)
jmp 0x1b58f1
movq 0x10(%rsp), %rcx
movl 0xc(%rsp), %esi
movq (%rsp), %rdi
movq 0x20(%rsp), %r9
movq 0x48(%r9), %r8
addq $0x10, %r9
xorl %edx, %edx
callq 0x1b5950
jmp 0x1b5914
addq $0x68, %rsp
retq
movq 0x18(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x40(%rsp)
movl %eax, 0x3c(%rsp)
callq 0x372e0
movq 0x20(%rsp), %rdi
callq 0x1a3c60
movq 0x40(%rsp), %rdi
callq 0x21700
nopw %cs:(%rax,%rax)
| _ZN6google8protobuf8compiler4java34ImmutableMessageFieldLiteGeneratorC2EPKNS0_15FieldDescriptorEiPNS2_7ContextE:
sub rsp, 68h
mov [rsp+68h+var_8], rdi
mov [rsp+68h+var_10], rsi
mov [rsp+68h+var_14], edx
mov [rsp+68h+var_20], rcx
mov rdi, [rsp+68h+var_8]; this
mov [rsp+68h+var_48], rdi
call _ZN6google8protobuf8compiler4java27ImmutableFieldLiteGeneratorC2Ev; google::protobuf::compiler::java::ImmutableFieldLiteGenerator::ImmutableFieldLiteGenerator(void)
mov rdi, [rsp+68h+var_48]
lea rax, off_4EC5C8
mov [rdi], rax
mov rax, [rsp+68h+var_10]
mov [rdi+8], rax
add rdi, 10h
mov [rsp+68h+var_50], rdi
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEC2Ev; std::map<std::string,std::string>::map(void)
mov rax, [rsp+68h+var_48]
mov ecx, [rsp+68h+var_14]
mov [rax+40h], ecx
add rax, 48h ; 'H'
mov [rsp+68h+var_40], rax
mov rdi, [rsp+68h+var_20]; this
call _ZNK6google8protobuf8compiler4java7Context15GetNameResolverEv; google::protobuf::compiler::java::Context::GetNameResolver(void)
mov [rsp+68h+var_38], rax
jmp short $+2
loc_1B58C2:
mov rax, [rsp+68h+var_40]
mov rcx, [rsp+68h+var_38]
mov [rax], rcx
mov rsi, [rsp+68h+var_10]; google::protobuf::FieldDescriptor *
mov [rsp+68h+var_68], rsi
mov eax, [rsp+68h+var_14]
mov [rsp+68h+var_5C], eax
mov rdi, [rsp+68h+var_20]; this
call _ZNK6google8protobuf8compiler4java7Context21GetFieldGeneratorInfoEPKNS0_15FieldDescriptorE; google::protobuf::compiler::java::Context::GetFieldGeneratorInfo(google::protobuf::FieldDescriptor const*)
mov [rsp+68h+var_58], rax
jmp short $+2
loc_1B58F1:
mov rcx, [rsp+68h+var_58]
mov esi, [rsp+68h+var_5C]
mov rdi, [rsp+68h+var_68]
mov r9, [rsp+68h+var_48]
mov r8, [r9+48h]
add r9, 10h
xor edx, edx
call _ZN6google8protobuf8compiler4java12_GLOBAL__N_119SetMessageVariablesEPKNS0_15FieldDescriptorEiiPKNS2_18FieldGeneratorInfoEPNS2_17ClassNameResolverEPSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESI_St4lessISI_ESaISt4pairIKSI_SI_EEE; google::protobuf::compiler::java::`anonymous namespace'::SetMessageVariables(google::protobuf::FieldDescriptor const*,int,int,google::protobuf::compiler::java::FieldGeneratorInfo const*,google::protobuf::compiler::java::ClassNameResolver *,std::map<std::string,std::string> *)
jmp short $+2
loc_1B5914:
add rsp, 68h
retn
mov rdi, [rsp+arg_10]
mov rcx, rax
mov eax, edx
mov [rsp+arg_38], rcx
mov [rsp+arg_34], eax
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEED2Ev; std::map<std::string,std::string>::~map()
mov rdi, [rsp+arg_18]; this
call _ZN6google8protobuf8compiler4java27ImmutableFieldLiteGeneratorD2Ev; google::protobuf::compiler::java::ImmutableFieldLiteGenerator::~ImmutableFieldLiteGenerator()
mov rdi, [rsp+arg_38]
call __Unwind_Resume
| long long google::protobuf::compiler::java::ImmutableMessageFieldLiteGenerator::ImmutableMessageFieldLiteGenerator(
google::protobuf::compiler::java::ImmutableMessageFieldLiteGenerator *this,
const google::protobuf::FieldDescriptor *a2,
unsigned int a3,
google::protobuf::compiler::java::Context *a4)
{
long long FieldGeneratorInfo; // [rsp+10h] [rbp-58h]
google::protobuf::compiler::java::ImmutableFieldLiteGenerator::ImmutableFieldLiteGenerator(this);
*(_QWORD *)this = off_4EC5C8;
*((_QWORD *)this + 1) = a2;
std::map<std::string,std::string>::map((long long)this + 16);
*((_DWORD *)this + 16) = a3;
*((_QWORD *)this + 9) = google::protobuf::compiler::java::Context::GetNameResolver(a4);
FieldGeneratorInfo = google::protobuf::compiler::java::Context::GetFieldGeneratorInfo(a4, a2);
return google::protobuf::compiler::java::`anonymous namespace'::SetMessageVariables(
a2,
a3,
0LL,
FieldGeneratorInfo,
*((_QWORD *)this + 9),
(char *)this + 16);
}
| |||
25,139 | google::protobuf::compiler::java::ImmutableMessageFieldLiteGenerator::ImmutableMessageFieldLiteGenerator(google::protobuf::FieldDescriptor const*, int, google::protobuf::compiler::java::Context*) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/java/message_field_lite.cc | ImmutableMessageFieldLiteGenerator::ImmutableMessageFieldLiteGenerator(
const FieldDescriptor* descriptor, int messageBitIndex, Context* context)
: descriptor_(descriptor),
messageBitIndex_(messageBitIndex),
name_resolver_(context->GetNameResolver()) {
SetMessageVariables(descriptor, messageBitIndex, 0,
context->GetFieldGeneratorInfo(descriptor),
name_resolver_, &variables_);
} | O3 | cpp | google::protobuf::compiler::java::ImmutableMessageFieldLiteGenerator::ImmutableMessageFieldLiteGenerator(google::protobuf::FieldDescriptor const*, int, google::protobuf::compiler::java::Context*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r12
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x19bf82(%rip), %rax # 0x279d10
movq %rax, (%rdi)
movq %rsi, 0x8(%rdi)
leaq 0x10(%rdi), %r14
leaq 0x18(%rdi), %rax
movl $0x0, 0x18(%rdi)
xorl %ecx, %ecx
movq %rcx, 0x20(%rdi)
movq %rax, 0x28(%rdi)
movq %rax, 0x30(%rdi)
movq %rcx, 0x38(%rdi)
movl %edx, 0x40(%rdi)
movq %r12, %rdi
callq 0xcda64
movq %rax, 0x48(%rbx)
movq %r12, %rdi
movq %r15, %rsi
callq 0xceecc
movq 0x48(%rbx), %rcx
movq %r15, %rdi
movl %ebp, %esi
movq %rax, %rdx
movq %r14, %r8
callq 0xdde08
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
movq %r14, %rdi
callq 0x2e5e0
movq %rbx, %rdi
callq 0xd46c6
movq %r15, %rdi
callq 0x1f860
| _ZN6google8protobuf8compiler4java34ImmutableMessageFieldLiteGeneratorC2EPKNS0_15FieldDescriptorEiPNS2_7ContextE:
push rbp; void *
push r15; int
push r14; int
push r12; char
push rbx; int
mov r12, rcx
mov ebp, edx
mov r15, rsi
mov rbx, rdi
lea rax, off_279D10
mov [rdi], rax
mov [rdi+8], rsi
lea r14, [rdi+10h]
lea rax, [rdi+18h]
mov dword ptr [rdi+18h], 0
xor ecx, ecx
mov [rdi+20h], rcx
mov [rdi+28h], rax
mov [rdi+30h], rax
mov [rdi+38h], rcx
mov [rdi+40h], edx
mov rdi, r12; this
call _ZNK6google8protobuf8compiler4java7Context15GetNameResolverEv; google::protobuf::compiler::java::Context::GetNameResolver(void)
mov [rbx+48h], rax
mov rdi, r12; this
mov rsi, r15; google::protobuf::FieldDescriptor *
call _ZNK6google8protobuf8compiler4java7Context21GetFieldGeneratorInfoEPKNS0_15FieldDescriptorE; google::protobuf::compiler::java::Context::GetFieldGeneratorInfo(google::protobuf::FieldDescriptor const*)
mov rcx, [rbx+48h]
mov rdi, r15; this
mov esi, ebp
mov rdx, rax
mov r8, r14
call _ZN6google8protobuf8compiler4java12_GLOBAL__N_119SetMessageVariablesEPKNS0_15FieldDescriptorEiiPKNS2_18FieldGeneratorInfoEPNS2_17ClassNameResolverEPSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESI_St4lessISI_ESaISt4pairIKSI_SI_EEE; google::protobuf::compiler::java::`anonymous namespace'::SetMessageVariables(google::protobuf::FieldDescriptor const*,int,int,google::protobuf::compiler::java::FieldGeneratorInfo const*,google::protobuf::compiler::java::ClassNameResolver *,std::map<std::string,std::string> *)
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
mov r15, rax
mov rdi, r14
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree()
mov rdi, rbx; this
call _ZN6google8protobuf8compiler4java27ImmutableFieldLiteGeneratorD2Ev; google::protobuf::compiler::java::ImmutableFieldLiteGenerator::~ImmutableFieldLiteGenerator()
mov rdi, r15
call __Unwind_Resume
| ImmutableMessageFieldLiteGenerator:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R12,RCX
MOV EBP,EDX
MOV R15,RSI
MOV RBX,RDI
LEA RAX,[0x379d10]
MOV qword ptr [RDI],RAX
MOV qword ptr [RDI + 0x8],RSI
LEA R14,[RDI + 0x10]
LEA RAX,[RDI + 0x18]
MOV dword ptr [RDI + 0x18],0x0
XOR ECX,ECX
MOV qword ptr [RDI + 0x20],RCX
MOV qword ptr [RDI + 0x28],RAX
MOV qword ptr [RDI + 0x30],RAX
MOV qword ptr [RDI + 0x38],RCX
MOV dword ptr [RDI + 0x40],EDX
LAB_001dddb9:
MOV RDI,R12
CALL 0x001cda64
MOV qword ptr [RBX + 0x48],RAX
MOV RDI,R12
MOV RSI,R15
CALL 0x001ceecc
MOV RCX,qword ptr [RBX + 0x48]
MOV RDI,R15
MOV ESI,EBP
MOV RDX,RAX
MOV R8,R14
CALL 0x001dde08
LAB_001ddde4:
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* google::protobuf::compiler::java::ImmutableMessageFieldLiteGenerator::ImmutableMessageFieldLiteGenerator(google::protobuf::FieldDescriptor
const*, int, google::protobuf::compiler::java::Context*) */
void __thiscall
google::protobuf::compiler::java::ImmutableMessageFieldLiteGenerator::
ImmutableMessageFieldLiteGenerator
(ImmutableMessageFieldLiteGenerator *this,FieldDescriptor *param_1,int param_2,
Context *param_3)
{
int iVar1;
int8 uVar2;
map *in_R9;
*(int ***)this = &PTR__ImmutableMessageFieldLiteGenerator_00379d10;
*(FieldDescriptor **)(this + 8) = param_1;
*(int4 *)(this + 0x18) = 0;
*(int8 *)(this + 0x20) = 0;
*(ImmutableMessageFieldLiteGenerator **)(this + 0x28) = this + 0x18;
*(ImmutableMessageFieldLiteGenerator **)(this + 0x30) = this + 0x18;
*(int8 *)(this + 0x38) = 0;
*(int *)(this + 0x40) = param_2;
/* try { // try from 001dddb9 to 001ddde3 has its CatchHandler @ 001ddded */
uVar2 = Context::GetNameResolver(param_3);
*(int8 *)(this + 0x48) = uVar2;
iVar1 = Context::GetFieldGeneratorInfo(param_3,param_1);
(anonymous_namespace)::SetMessageVariables
(param_1,param_2,iVar1,*(FieldGeneratorInfo **)(this + 0x48),
(ClassNameResolver *)(this + 0x10),in_R9);
return;
}
| ||
25,140 | get_head_or_tail_page | eloqsql/storage/maria/ma_blockrec.c | static my_bool get_head_or_tail_page(MARIA_HA *info,
const MARIA_BITMAP_BLOCK *block,
uchar *buff, uint length, uint page_type,
enum pagecache_page_lock lock,
struct st_row_pos_info *res)
{
uint block_size;
MARIA_PINNED_PAGE page_link;
MARIA_SHARE *share= info->s;
DBUG_ENTER("get_head_or_tail_page");
DBUG_PRINT("enter", ("page_type: %u length: %u", page_type, length));
block_size= share->block_size;
if (block->org_bitmap_value == 0) /* Empty block */
{
/* New page */
make_empty_page(info, buff, page_type, 1);
res->buff= buff;
res->empty_space= res->length= (block_size - PAGE_OVERHEAD_SIZE(share));
res->data= (buff + PAGE_HEADER_SIZE(share));
res->dir= res->data + res->length;
res->rownr= 0;
DBUG_ASSERT(length <= res->length);
}
else
{
uchar *dir;
/* Read old page */
page_link.unlock= PAGECACHE_LOCK_WRITE_UNLOCK;
res->buff= pagecache_read(share->pagecache, &info->dfile,
block->page, 0, 0, share->page_type,
lock, &page_link.link);
page_link.changed= res->buff != 0;
push_dynamic(&info->pinned_pages, (void*) &page_link);
if (!page_link.changed)
{
_ma_set_fatal_error(info, my_errno);
DBUG_RETURN(1);
}
DBUG_ASSERT((uint) (res->buff[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK) ==
page_type);
if (!(dir= find_free_position(info, res->buff, block_size, &res->rownr,
&res->length, &res->empty_space,
page_type == HEAD_PAGE)))
goto crashed;
if (res->length < length)
{
if (res->empty_space + res->length >= length)
{
_ma_compact_block_page(share,
res->buff, res->rownr, 1,
(page_type == HEAD_PAGE ?
info->trn->min_read_from : 0),
(page_type == HEAD_PAGE ?
share->base.min_block_length :
0));
/* All empty space are now after current position */
dir= dir_entry_pos(res->buff, block_size, res->rownr);
res->length= res->empty_space= uint2korr(dir+2);
}
if (res->length < length)
{
DBUG_PRINT("error", ("length: %u res->length: %u empty_space: %u",
length, res->length, res->empty_space));
goto crashed; /* Wrong bitmap information */
}
}
res->dir= dir;
res->data= res->buff + uint2korr(dir);
}
DBUG_RETURN(0);
crashed:
DBUG_ASSERT(!maria_assert_if_crashed_table);
_ma_set_fatal_error(info, HA_ERR_WRONG_IN_RECORD); /* File crashed */
DBUG_RETURN(1);
} | O0 | c | get_head_or_tail_page:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movl %r8d, -0x28(%rbp)
movl %r9d, -0x2c(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x50(%rbp)
jmp 0x7fc83
movq -0x50(%rbp), %rax
movl 0x7bc(%rax), %eax
movl %eax, -0x30(%rbp)
movq -0x18(%rbp), %rax
movzbl 0x15(%rax), %eax
cmpl $0x0, %eax
jne 0x7fd2b
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x28(%rbp), %edx
movl $0x1, %ecx
callq 0x7a040
movq -0x20(%rbp), %rcx
movq 0x10(%rbp), %rax
movq %rcx, (%rax)
movl -0x30(%rbp), %ecx
movq -0x50(%rbp), %rax
movl 0xc18(%rax), %eax
addl $0x14, %eax
subl %eax, %ecx
movq 0x10(%rbp), %rax
movl %ecx, 0x18(%rax)
movq 0x10(%rbp), %rax
movl %ecx, 0x20(%rax)
movq -0x20(%rbp), %rcx
movq -0x50(%rbp), %rax
movl 0xc18(%rax), %eax
addl $0xc, %eax
movl %eax, %eax
addq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rcx
movq 0x10(%rbp), %rax
movl 0x18(%rax), %eax
addq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq 0x10(%rbp), %rax
movl $0x0, 0x1c(%rax)
jmp 0x7fd26
jmp 0x7ff45
movl $0x6, -0x40(%rbp)
movq -0x50(%rbp), %rax
movq 0x600(%rax), %rdi
movq -0x10(%rbp), %rsi
addq $0x470, %rsi # imm = 0x470
movq -0x18(%rbp), %rax
movq (%rax), %rdx
movq -0x50(%rbp), %rax
movl 0x7d4(%rax), %r9d
movl -0x2c(%rbp), %r10d
leaq -0x48(%rbp), %rax
xorl %ecx, %ecx
xorl %r8d, %r8d
movl %r10d, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x2d940
movq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, (%rax)
movq 0x10(%rbp), %rax
cmpq $0x0, (%rax)
setne %al
andb $0x1, %al
movzbl %al, %eax
movb %al, -0x38(%rbp)
movq -0x10(%rbp), %rdi
addq $0x2e8, %rdi # imm = 0x2E8
leaq -0x48(%rbp), %rsi
callq 0xda910
cmpb $0x0, -0x38(%rbp)
jne 0x7fdcd
movq -0x10(%rbp), %rax
movq %rax, -0x60(%rbp)
callq 0xf6090
movq -0x60(%rbp), %rdi
movl (%rax), %esi
callq 0x33880
movb $0x1, -0x1(%rbp)
jmp 0x7ff63
jmp 0x7fdcf
jmp 0x7fdd1
movq -0x10(%rbp), %rdi
movq 0x10(%rbp), %rax
movq (%rax), %rsi
movl -0x30(%rbp), %edx
movq 0x10(%rbp), %rcx
addq $0x1c, %rcx
movq 0x10(%rbp), %r8
addq $0x18, %r8
movq 0x10(%rbp), %r9
addq $0x20, %r9
cmpl $0x1, -0x28(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %eax
movsbl %al, %eax
movl %eax, (%rsp)
callq 0x7ff70
movq %rax, -0x58(%rbp)
cmpq $0x0, %rax
jne 0x7fe1d
jmp 0x7ff4d
movq 0x10(%rbp), %rax
movl 0x18(%rax), %eax
cmpl -0x24(%rbp), %eax
jae 0x7ff1e
movq 0x10(%rbp), %rax
movl 0x20(%rax), %eax
movq 0x10(%rbp), %rcx
addl 0x18(%rcx), %eax
cmpl -0x24(%rbp), %eax
jb 0x7ff0a
movq -0x50(%rbp), %rax
movq %rax, -0x78(%rbp)
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x70(%rbp)
movq 0x10(%rbp), %rax
movl 0x1c(%rax), %eax
movl %eax, -0x64(%rbp)
cmpl $0x1, -0x28(%rbp)
jne 0x7fe7c
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x80(%rax), %rax
movq %rax, -0x80(%rbp)
jmp 0x7fe84
xorl %eax, %eax
movq %rax, -0x80(%rbp)
jmp 0x7fe84
movq -0x80(%rbp), %rax
movq %rax, -0x88(%rbp)
cmpl $0x1, -0x28(%rbp)
jne 0x7fea9
movq -0x50(%rbp), %rax
movq 0x3b8(%rax), %rax
movq %rax, -0x90(%rbp)
jmp 0x7feb4
xorl %eax, %eax
movq %rax, -0x90(%rbp)
jmp 0x7feb4
movq -0x88(%rbp), %r8
movl -0x64(%rbp), %edx
movq -0x70(%rbp), %rsi
movq -0x78(%rbp), %rdi
movq -0x90(%rbp), %rax
movl %eax, %r9d
movl $0x1, %ecx
callq 0x748a0
movq 0x10(%rbp), %rax
movq (%rax), %rdi
movl -0x30(%rbp), %esi
movq 0x10(%rbp), %rax
movl 0x1c(%rax), %edx
callq 0x74fd0
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movzwl 0x2(%rax), %ecx
movq 0x10(%rbp), %rax
movl %ecx, 0x20(%rax)
movq 0x10(%rbp), %rax
movl %ecx, 0x18(%rax)
movq 0x10(%rbp), %rax
movl 0x18(%rax), %eax
cmpl -0x24(%rbp), %eax
jae 0x7ff1c
jmp 0x7ff18
jmp 0x7ff1a
jmp 0x7ff4d
jmp 0x7ff1e
movq -0x58(%rbp), %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq 0x10(%rbp), %rax
movq (%rax), %rcx
movq -0x58(%rbp), %rax
movzwl (%rax), %eax
cltq
addq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
jmp 0x7ff47
movb $0x0, -0x1(%rbp)
jmp 0x7ff63
jmp 0x7ff4f
jmp 0x7ff51
movq -0x10(%rbp), %rdi
movl $0x7f, %esi
callq 0x33880
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0xa0, %rsp
popq %rbp
retq
nop
| get_head_or_tail_page:
push rbp
mov rbp, rsp
sub rsp, 0A0h
mov rax, [rbp+arg_0]
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_24], ecx
mov [rbp+var_28], r8d
mov [rbp+var_2C], r9d
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_50], rax
jmp short $+2
loc_7FC83:
mov rax, [rbp+var_50]
mov eax, [rax+7BCh]
mov [rbp+var_30], eax
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+15h]
cmp eax, 0
jnz loc_7FD2B
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_20]
mov edx, [rbp+var_28]
mov ecx, 1
call make_empty_page
mov rcx, [rbp+var_20]
mov rax, [rbp+arg_0]
mov [rax], rcx
mov ecx, [rbp+var_30]
mov rax, [rbp+var_50]
mov eax, [rax+0C18h]
add eax, 14h
sub ecx, eax
mov rax, [rbp+arg_0]
mov [rax+18h], ecx
mov rax, [rbp+arg_0]
mov [rax+20h], ecx
mov rcx, [rbp+var_20]
mov rax, [rbp+var_50]
mov eax, [rax+0C18h]
add eax, 0Ch
mov eax, eax
add rcx, rax
mov rax, [rbp+arg_0]
mov [rax+8], rcx
mov rax, [rbp+arg_0]
mov rcx, [rax+8]
mov rax, [rbp+arg_0]
mov eax, [rax+18h]
add rcx, rax
mov rax, [rbp+arg_0]
mov [rax+10h], rcx
mov rax, [rbp+arg_0]
mov dword ptr [rax+1Ch], 0
jmp short $+2
loc_7FD26:
jmp loc_7FF45
loc_7FD2B:
mov [rbp+var_40], 6
mov rax, [rbp+var_50]
mov rdi, [rax+600h]
mov rsi, [rbp+var_10]
add rsi, 470h
mov rax, [rbp+var_18]
mov rdx, [rax]
mov rax, [rbp+var_50]
mov r9d, [rax+7D4h]
mov r10d, [rbp+var_2C]
lea rax, [rbp+var_48]
xor ecx, ecx
xor r8d, r8d
mov [rsp+0A0h+var_A0], r10d
mov [rsp+0A0h+var_98], rax
call pagecache_read
mov rcx, rax
mov rax, [rbp+arg_0]
mov [rax], rcx
mov rax, [rbp+arg_0]
cmp qword ptr [rax], 0
setnz al
and al, 1
movzx eax, al
mov [rbp+var_38], al
mov rdi, [rbp+var_10]
add rdi, 2E8h
lea rsi, [rbp+var_48]
call insert_dynamic
cmp [rbp+var_38], 0
jnz short loc_7FDCD
mov rax, [rbp+var_10]
mov [rbp+var_60], rax
call _my_thread_var
mov rdi, [rbp+var_60]
mov esi, [rax]
call _ma_set_fatal_error
mov [rbp+var_1], 1
jmp loc_7FF63
loc_7FDCD:
jmp short $+2
loc_7FDCF:
jmp short $+2
loc_7FDD1:
mov rdi, [rbp+var_10]
mov rax, [rbp+arg_0]
mov rsi, [rax]
mov edx, [rbp+var_30]
mov rcx, [rbp+arg_0]
add rcx, 1Ch
mov r8, [rbp+arg_0]
add r8, 18h
mov r9, [rbp+arg_0]
add r9, 20h ; ' '
cmp [rbp+var_28], 1
setz al
and al, 1
movzx eax, al
movsx eax, al
mov [rsp+0A0h+var_A0], eax
call find_free_position
mov [rbp+var_58], rax
cmp rax, 0
jnz short loc_7FE1D
jmp loc_7FF4D
loc_7FE1D:
mov rax, [rbp+arg_0]
mov eax, [rax+18h]
cmp eax, [rbp+var_24]
jnb loc_7FF1E
mov rax, [rbp+arg_0]
mov eax, [rax+20h]
mov rcx, [rbp+arg_0]
add eax, [rcx+18h]
cmp eax, [rbp+var_24]
jb loc_7FF0A
mov rax, [rbp+var_50]
mov [rbp+var_78], rax
mov rax, [rbp+arg_0]
mov rax, [rax]
mov [rbp+var_70], rax
mov rax, [rbp+arg_0]
mov eax, [rax+1Ch]
mov [rbp+var_64], eax
cmp [rbp+var_28], 1
jnz short loc_7FE7C
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rax, [rax+80h]
mov [rbp+var_80], rax
jmp short loc_7FE84
loc_7FE7C:
xor eax, eax
mov [rbp+var_80], rax
jmp short $+2
loc_7FE84:
mov rax, [rbp+var_80]
mov [rbp+var_88], rax
cmp [rbp+var_28], 1
jnz short loc_7FEA9
mov rax, [rbp+var_50]
mov rax, [rax+3B8h]
mov [rbp+var_90], rax
jmp short loc_7FEB4
loc_7FEA9:
xor eax, eax
mov [rbp+var_90], rax
jmp short $+2
loc_7FEB4:
mov r8, [rbp+var_88]
mov edx, [rbp+var_64]
mov rsi, [rbp+var_70]
mov rdi, [rbp+var_78]
mov rax, [rbp+var_90]
mov r9d, eax
mov ecx, 1
call _ma_compact_block_page
mov rax, [rbp+arg_0]
mov rdi, [rax]
mov esi, [rbp+var_30]
mov rax, [rbp+arg_0]
mov edx, [rax+1Ch]
call dir_entry_pos
mov [rbp+var_58], rax
mov rax, [rbp+var_58]
movzx ecx, word ptr [rax+2]
mov rax, [rbp+arg_0]
mov [rax+20h], ecx
mov rax, [rbp+arg_0]
mov [rax+18h], ecx
loc_7FF0A:
mov rax, [rbp+arg_0]
mov eax, [rax+18h]
cmp eax, [rbp+var_24]
jnb short loc_7FF1C
jmp short $+2
loc_7FF18:
jmp short $+2
loc_7FF1A:
jmp short loc_7FF4D
loc_7FF1C:
jmp short $+2
loc_7FF1E:
mov rcx, [rbp+var_58]
mov rax, [rbp+arg_0]
mov [rax+10h], rcx
mov rax, [rbp+arg_0]
mov rcx, [rax]
mov rax, [rbp+var_58]
movzx eax, word ptr [rax]
cdqe
add rcx, rax
mov rax, [rbp+arg_0]
mov [rax+8], rcx
loc_7FF45:
jmp short $+2
loc_7FF47:
mov [rbp+var_1], 0
jmp short loc_7FF63
loc_7FF4D:
jmp short $+2
loc_7FF4F:
jmp short $+2
loc_7FF51:
mov rdi, [rbp+var_10]
mov esi, 7Fh
call _ma_set_fatal_error
mov [rbp+var_1], 1
loc_7FF63:
mov al, [rbp+var_1]
add rsp, 0A0h
pop rbp
retn
| char get_head_or_tail_page(
_DWORD *a1,
long long a2,
_BYTE *a3,
unsigned int a4,
int a5,
unsigned int a6,
long long a7)
{
int v7; // ecx
_DWORD *v8; // rdi
int *v9; // rax
long long v10; // rdx
long long v11; // rcx
long long v12; // r8
int v13; // r9d
long long v14; // rdx
long long v15; // rcx
long long v16; // r8
int v17; // r9d
unsigned long long v19; // [rsp+20h] [rbp-80h]
long long v20; // [rsp+30h] [rbp-70h]
unsigned int v21; // [rsp+3Ch] [rbp-64h]
_DWORD *v22; // [rsp+40h] [rbp-60h]
unsigned __int16 *free_position; // [rsp+48h] [rbp-58h]
long long v24; // [rsp+50h] [rbp-50h]
char v25[8]; // [rsp+58h] [rbp-48h] BYREF
int v26; // [rsp+60h] [rbp-40h]
bool v27; // [rsp+68h] [rbp-38h]
unsigned int v28; // [rsp+70h] [rbp-30h]
unsigned int v29; // [rsp+74h] [rbp-2Ch]
int v30; // [rsp+78h] [rbp-28h]
unsigned int v31; // [rsp+7Ch] [rbp-24h]
_BYTE *v32; // [rsp+80h] [rbp-20h]
long long *v33; // [rsp+88h] [rbp-18h]
_DWORD *v34; // [rsp+90h] [rbp-10h]
v34 = a1;
v33 = (long long *)a2;
v32 = a3;
v31 = a4;
v30 = a5;
v29 = a6;
v24 = *(_QWORD *)a1;
v28 = *(_DWORD *)(*(_QWORD *)a1 + 1980LL);
if ( !*(_BYTE *)(a2 + 21) )
{
make_empty_page((long long)v34, v32, v30, 1);
*(_QWORD *)a7 = v32;
v7 = v28 - (*(_DWORD *)(v24 + 3096) + 20);
*(_DWORD *)(a7 + 24) = v7;
*(_DWORD *)(a7 + 32) = v7;
*(_QWORD *)(a7 + 8) = &v32[*(_DWORD *)(v24 + 3096) + 12];
*(_QWORD *)(a7 + 16) = *(unsigned int *)(a7 + 24) + *(_QWORD *)(a7 + 8);
*(_DWORD *)(a7 + 28) = 0;
return 0;
}
v26 = 6;
*(_QWORD *)a7 = pagecache_read(
*(_QWORD **)(v24 + 1536),
(long long)(v34 + 284),
*v33,
0,
0LL,
*(_DWORD *)(v24 + 2004),
v29,
v25);
v27 = *(_QWORD *)a7 != 0LL;
v8 = v34 + 186;
insert_dynamic(v34 + 186, v25);
if ( v27 )
{
free_position = (unsigned __int16 *)find_free_position(
(_DWORD)v34,
*(_QWORD *)a7,
v28,
(int)a7 + 28,
(int)a7 + 24,
(int)a7 + 32,
v30 == 1);
if ( !free_position )
goto LABEL_18;
if ( *(_DWORD *)(a7 + 24) < v31 )
{
v15 = a7;
if ( *(_DWORD *)(a7 + 24) + *(_DWORD *)(a7 + 32) >= v31 )
{
v20 = *(_QWORD *)a7;
v21 = *(_DWORD *)(a7 + 28);
if ( v30 == 1 )
v19 = *(_QWORD *)(*((_QWORD *)v34 + 1) + 128LL);
else
v19 = 0LL;
if ( v30 == 1 )
ma_compact_block_page(v24, v20, v21, 1, v19, *(_QWORD *)(v24 + 952));
else
ma_compact_block_page(v24, v20, v21, 1, v19, 0);
free_position = (unsigned __int16 *)dir_entry_pos(*(_QWORD *)a7, v28, *(_DWORD *)(a7 + 28));
v15 = free_position[1];
*(_DWORD *)(a7 + 32) = v15;
*(_DWORD *)(a7 + 24) = v15;
}
if ( *(_DWORD *)(a7 + 24) < v31 )
{
LABEL_18:
ma_set_fatal_error(v34, 127, v14, v15, v16, v17);
return 1;
}
}
*(_QWORD *)(a7 + 16) = free_position;
*(_QWORD *)(a7 + 8) = *free_position + *(_QWORD *)a7;
return 0;
}
v22 = v34;
v9 = (int *)my_thread_var(v8, v25);
ma_set_fatal_error(v22, *v9, v10, v11, v12, v13);
return 1;
}
| get_head_or_tail_page:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xa0
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV dword ptr [RBP + -0x24],ECX
MOV dword ptr [RBP + -0x28],R8D
MOV dword ptr [RBP + -0x2c],R9D
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x50],RAX
JMP 0x0017fc83
LAB_0017fc83:
MOV RAX,qword ptr [RBP + -0x50]
MOV EAX,dword ptr [RAX + 0x7bc]
MOV dword ptr [RBP + -0x30],EAX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x15]
CMP EAX,0x0
JNZ 0x0017fd2b
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x20]
MOV EDX,dword ptr [RBP + -0x28]
MOV ECX,0x1
CALL 0x0017a040
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RAX],RCX
MOV ECX,dword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x50]
MOV EAX,dword ptr [RAX + 0xc18]
ADD EAX,0x14
SUB ECX,EAX
MOV RAX,qword ptr [RBP + 0x10]
MOV dword ptr [RAX + 0x18],ECX
MOV RAX,qword ptr [RBP + 0x10]
MOV dword ptr [RAX + 0x20],ECX
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x50]
MOV EAX,dword ptr [RAX + 0xc18]
ADD EAX,0xc
MOV EAX,EAX
ADD RCX,RAX
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + 0x10]
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + 0x10]
MOV EAX,dword ptr [RAX + 0x18]
ADD RCX,RAX
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + 0x10]
MOV dword ptr [RAX + 0x1c],0x0
JMP 0x0017fd26
LAB_0017fd26:
JMP 0x0017ff45
LAB_0017fd2b:
MOV dword ptr [RBP + -0x40],0x6
MOV RAX,qword ptr [RBP + -0x50]
MOV RDI,qword ptr [RAX + 0x600]
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,0x470
MOV RAX,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x50]
MOV R9D,dword ptr [RAX + 0x7d4]
MOV R10D,dword ptr [RBP + -0x2c]
LEA RAX,[RBP + -0x48]
XOR ECX,ECX
XOR R8D,R8D
MOV dword ptr [RSP],R10D
MOV qword ptr [RSP + 0x8],RAX
CALL 0x0012d940
MOV RCX,RAX
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + 0x10]
CMP qword ptr [RAX],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
MOV byte ptr [RBP + -0x38],AL
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x2e8
LEA RSI,[RBP + -0x48]
CALL 0x001da910
CMP byte ptr [RBP + -0x38],0x0
JNZ 0x0017fdcd
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x60],RAX
CALL 0x001f6090
MOV RDI,qword ptr [RBP + -0x60]
MOV ESI,dword ptr [RAX]
CALL 0x00133880
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0017ff63
LAB_0017fdcd:
JMP 0x0017fdcf
LAB_0017fdcf:
JMP 0x0017fdd1
LAB_0017fdd1:
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + 0x10]
MOV RSI,qword ptr [RAX]
MOV EDX,dword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + 0x10]
ADD RCX,0x1c
MOV R8,qword ptr [RBP + 0x10]
ADD R8,0x18
MOV R9,qword ptr [RBP + 0x10]
ADD R9,0x20
CMP dword ptr [RBP + -0x28],0x1
SETZ AL
AND AL,0x1
MOVZX EAX,AL
MOVSX EAX,AL
MOV dword ptr [RSP],EAX
CALL 0x0017ff70
MOV qword ptr [RBP + -0x58],RAX
CMP RAX,0x0
JNZ 0x0017fe1d
JMP 0x0017ff4d
LAB_0017fe1d:
MOV RAX,qword ptr [RBP + 0x10]
MOV EAX,dword ptr [RAX + 0x18]
CMP EAX,dword ptr [RBP + -0x24]
JNC 0x0017ff1e
MOV RAX,qword ptr [RBP + 0x10]
MOV EAX,dword ptr [RAX + 0x20]
MOV RCX,qword ptr [RBP + 0x10]
ADD EAX,dword ptr [RCX + 0x18]
CMP EAX,dword ptr [RBP + -0x24]
JC 0x0017ff0a
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x78],RAX
MOV RAX,qword ptr [RBP + 0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x70],RAX
MOV RAX,qword ptr [RBP + 0x10]
MOV EAX,dword ptr [RAX + 0x1c]
MOV dword ptr [RBP + -0x64],EAX
CMP dword ptr [RBP + -0x28],0x1
JNZ 0x0017fe7c
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x80]
MOV qword ptr [RBP + -0x80],RAX
JMP 0x0017fe84
LAB_0017fe7c:
XOR EAX,EAX
MOV qword ptr [RBP + -0x80],RAX
JMP 0x0017fe84
LAB_0017fe84:
MOV RAX,qword ptr [RBP + -0x80]
MOV qword ptr [RBP + -0x88],RAX
CMP dword ptr [RBP + -0x28],0x1
JNZ 0x0017fea9
MOV RAX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RAX + 0x3b8]
MOV qword ptr [RBP + -0x90],RAX
JMP 0x0017feb4
LAB_0017fea9:
XOR EAX,EAX
MOV qword ptr [RBP + -0x90],RAX
JMP 0x0017feb4
LAB_0017feb4:
MOV R8,qword ptr [RBP + -0x88]
MOV EDX,dword ptr [RBP + -0x64]
MOV RSI,qword ptr [RBP + -0x70]
MOV RDI,qword ptr [RBP + -0x78]
MOV RAX,qword ptr [RBP + -0x90]
MOV R9D,EAX
MOV ECX,0x1
CALL 0x001748a0
MOV RAX,qword ptr [RBP + 0x10]
MOV RDI,qword ptr [RAX]
MOV ESI,dword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + 0x10]
MOV EDX,dword ptr [RAX + 0x1c]
CALL 0x00174fd0
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x58]
MOVZX ECX,word ptr [RAX + 0x2]
MOV RAX,qword ptr [RBP + 0x10]
MOV dword ptr [RAX + 0x20],ECX
MOV RAX,qword ptr [RBP + 0x10]
MOV dword ptr [RAX + 0x18],ECX
LAB_0017ff0a:
MOV RAX,qword ptr [RBP + 0x10]
MOV EAX,dword ptr [RAX + 0x18]
CMP EAX,dword ptr [RBP + -0x24]
JNC 0x0017ff1c
JMP 0x0017ff18
LAB_0017ff18:
JMP 0x0017ff1a
LAB_0017ff1a:
JMP 0x0017ff4d
LAB_0017ff1c:
JMP 0x0017ff1e
LAB_0017ff1e:
MOV RCX,qword ptr [RBP + -0x58]
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + 0x10]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x58]
MOVZX EAX,word ptr [RAX]
CDQE
ADD RCX,RAX
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RAX + 0x8],RCX
LAB_0017ff45:
JMP 0x0017ff47
LAB_0017ff47:
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0017ff63
LAB_0017ff4d:
JMP 0x0017ff4f
LAB_0017ff4f:
JMP 0x0017ff51
LAB_0017ff51:
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,0x7f
CALL 0x00133880
MOV byte ptr [RBP + -0x1],0x1
LAB_0017ff63:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0xa0
POP RBP
RET
|
int1
get_head_or_tail_page
(long *param_1,int8 *param_2,long param_3,uint param_4,int param_5,
int4 param_6,long *param_7)
{
ushort uVar1;
long lVar2;
long *plVar3;
long lVar4;
int4 *puVar5;
ulong local_98;
int8 local_88;
ushort *local_60;
int1 local_50 [8];
int4 local_48;
char local_40;
int local_38;
int4 local_34;
int local_30;
uint local_2c;
long local_28;
int8 *local_20;
long *local_18;
lVar2 = *param_1;
local_38 = *(int *)(lVar2 + 0x7bc);
local_34 = param_6;
local_30 = param_5;
local_2c = param_4;
local_28 = param_3;
local_20 = param_2;
local_18 = param_1;
if (*(char *)((long)param_2 + 0x15) == '\0') {
make_empty_page(param_1,param_3,param_5,1);
*param_7 = local_28;
local_38 = local_38 - (*(int *)(lVar2 + 0xc18) + 0x14);
*(int *)(param_7 + 3) = local_38;
*(int *)(param_7 + 4) = local_38;
param_7[1] = local_28 + (ulong)(*(int *)(lVar2 + 0xc18) + 0xc);
param_7[2] = param_7[1] + (ulong)*(uint *)(param_7 + 3);
*(int4 *)((long)param_7 + 0x1c) = 0;
}
else {
local_48 = 6;
lVar4 = pagecache_read(*(int8 *)(lVar2 + 0x600),param_1 + 0x8e,*param_2,0,0,
*(int4 *)(lVar2 + 0x7d4),param_6,local_50);
*param_7 = lVar4;
local_40 = *param_7 != 0;
insert_dynamic(local_18 + 0x5d,local_50);
plVar3 = local_18;
if (local_40 == '\0') {
puVar5 = (int4 *)_my_thread_var();
_ma_set_fatal_error(plVar3,*puVar5);
return 1;
}
local_60 = (ushort *)
find_free_position(local_18,*param_7,local_38,(long)param_7 + 0x1c,param_7 + 3,
param_7 + 4,local_30 == 1);
if (local_60 == (ushort *)0x0) {
LAB_0017ff4d:
_ma_set_fatal_error(local_18,0x7f);
return 1;
}
if (*(uint *)(param_7 + 3) < local_2c) {
if (local_2c <= (uint)((int)param_7[4] + (int)param_7[3])) {
if (local_30 == 1) {
local_88 = *(int8 *)(local_18[1] + 0x80);
local_98 = *(ulong *)(lVar2 + 0x3b8);
}
else {
local_88 = 0;
local_98 = 0;
}
_ma_compact_block_page
(lVar2,*param_7,*(int4 *)((long)param_7 + 0x1c),1,local_88,
local_98 & 0xffffffff);
local_60 = (ushort *)dir_entry_pos(*param_7,local_38,*(int4 *)((long)param_7 + 0x1c));
uVar1 = local_60[1];
*(uint *)(param_7 + 4) = (uint)uVar1;
*(uint *)(param_7 + 3) = (uint)uVar1;
}
if (*(uint *)(param_7 + 3) < local_2c) goto LAB_0017ff4d;
}
param_7[2] = (long)local_60;
param_7[1] = *param_7 + (long)(int)(uint)*local_60;
}
return 0;
}
| |
25,141 | stbi__high_bit | dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-stb-image.h | static int stbi__high_bit(unsigned int z)
{
int n=0;
if (z == 0) return -1;
if (z >= 0x10000) { n += 16; z >>= 16; }
if (z >= 0x00100) { n += 8; z >>= 8; }
if (z >= 0x00010) { n += 4; z >>= 4; }
if (z >= 0x00004) { n += 2; z >>= 2; }
if (z >= 0x00002) { n += 1;/* >>= 1;*/ }
return n;
} | O1 | c | stbi__high_bit:
testl %edi, %edi
je 0x36a60
movl %edi, %eax
shrl $0x10, %eax
xorl %ecx, %ecx
cmpl $0x10000, %edi # imm = 0x10000
setae %cl
cmovbl %edi, %eax
shll $0x4, %ecx
leal 0x8(%rcx), %edx
movl %eax, %esi
shrl $0x8, %esi
cmpl $0x100, %eax # imm = 0x100
cmovbl %eax, %esi
cmovbl %ecx, %edx
leal 0x4(%rdx), %ecx
movl %esi, %edi
shrl $0x4, %edi
cmpl $0x10, %esi
cmovbl %esi, %edi
cmovbl %edx, %ecx
leal 0x2(%rcx), %eax
movl %edi, %edx
shrl $0x2, %edx
cmpl $0x4, %edi
cmovbl %edi, %edx
cmovbl %ecx, %eax
cmpl $0x2, %edx
sbbl $-0x1, %eax
retq
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
retq
| stbi__high_bit:
test edi, edi
jz short loc_36A60
mov eax, edi
shr eax, 10h
xor ecx, ecx
cmp edi, offset loc_10000
setnb cl
cmovb eax, edi
shl ecx, 4
lea edx, [rcx+8]
mov esi, eax
shr esi, 8
cmp eax, 100h
cmovb esi, eax
cmovb edx, ecx
lea ecx, [rdx+4]
mov edi, esi
shr edi, 4
cmp esi, 10h
cmovb edi, esi
cmovb ecx, edx
lea eax, [rcx+2]
mov edx, edi
shr edx, 2
cmp edi, 4
cmovb edx, edi
cmovb eax, ecx
cmp edx, 2
sbb eax, 0FFFFFFFFh
retn
loc_36A60:
mov eax, 0FFFFFFFFh
retn
| long long stbi__high_bit(unsigned int a1)
{
unsigned int v1; // eax
int v2; // edx
unsigned int v3; // esi
int v4; // ecx
unsigned int v5; // edi
int v6; // eax
unsigned int v7; // edx
if ( !a1 )
return 0xFFFFFFFFLL;
v1 = HIWORD(a1);
if ( a1 < (unsigned int)&loc_10000 )
v1 = a1;
v2 = 16 * (a1 >= (unsigned int)&loc_10000) + 8;
v3 = v1 >> 8;
if ( v1 < 0x100 )
{
v3 = v1;
v2 = 16 * (a1 >= (unsigned int)&loc_10000);
}
v4 = v2 + 4;
v5 = v3 >> 4;
if ( v3 < 0x10 )
{
v5 = v3;
v4 = v2;
}
v6 = v4 + 2;
v7 = v5 >> 2;
if ( v5 < 4 )
{
v7 = v5;
v6 = v4;
}
return v6 - ((unsigned int)(v7 < 2) - 1);
}
| stbi__high_bit:
TEST EDI,EDI
JZ 0x00136a60
MOV EAX,EDI
SHR EAX,0x10
XOR ECX,ECX
CMP EDI,0x10000
SETNC CL
CMOVC EAX,EDI
SHL ECX,0x4
LEA EDX,[RCX + 0x8]
MOV ESI,EAX
SHR ESI,0x8
CMP EAX,0x100
CMOVC ESI,EAX
CMOVC EDX,ECX
LEA ECX,[RDX + 0x4]
MOV EDI,ESI
SHR EDI,0x4
CMP ESI,0x10
CMOVC EDI,ESI
CMOVC ECX,EDX
LEA EAX,[RCX + 0x2]
MOV EDX,EDI
SHR EDX,0x2
CMP EDI,0x4
CMOVC EDX,EDI
CMOVC EAX,ECX
CMP EDX,0x2
SBB EAX,-0x1
RET
LAB_00136a60:
MOV EAX,0xffffffff
RET
|
int stbi__high_bit(uint param_1)
{
uint uVar1;
uint uVar2;
int iVar3;
int iVar4;
if (param_1 == 0) {
return -1;
}
uVar2 = param_1 >> 0x10;
if (0xffff >= param_1) {
uVar2 = param_1;
}
iVar3 = (uint)(0xffff < param_1) * 0x10;
iVar4 = iVar3 + 8;
uVar1 = uVar2 >> 8;
if (uVar2 < 0x100) {
iVar4 = iVar3;
uVar1 = uVar2;
}
iVar3 = iVar4 + 4;
uVar2 = uVar1 >> 4;
if (uVar1 < 0x10) {
iVar3 = iVar4;
uVar2 = uVar1;
}
iVar4 = iVar3 + 2;
uVar1 = uVar2 >> 2;
if (uVar2 < 4) {
iVar4 = iVar3;
uVar1 = uVar2;
}
return (iVar4 + 1) - (uint)(uVar1 < 2);
}
| |
25,142 | stbi__high_bit | dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-stb-image.h | static int stbi__high_bit(unsigned int z)
{
int n=0;
if (z == 0) return -1;
if (z >= 0x10000) { n += 16; z >>= 16; }
if (z >= 0x00100) { n += 8; z >>= 8; }
if (z >= 0x00010) { n += 4; z >>= 4; }
if (z >= 0x00004) { n += 2; z >>= 2; }
if (z >= 0x00002) { n += 1;/* >>= 1;*/ }
return n;
} | O3 | c | stbi__high_bit:
testl %edi, %edi
je 0x36a4d
movl %edi, %eax
shrl $0x10, %eax
xorl %ecx, %ecx
cmpl $0x10000, %edi # imm = 0x10000
setae %cl
cmovbl %edi, %eax
shll $0x4, %ecx
leal 0x8(%rcx), %edx
movl %eax, %esi
shrl $0x8, %esi
cmpl $0x100, %eax # imm = 0x100
cmovbl %eax, %esi
cmovbl %ecx, %edx
leal 0x4(%rdx), %ecx
movl %esi, %edi
shrl $0x4, %edi
cmpl $0x10, %esi
cmovbl %esi, %edi
cmovbl %edx, %ecx
leal 0x2(%rcx), %eax
movl %edi, %edx
shrl $0x2, %edx
cmpl $0x4, %edi
cmovbl %edi, %edx
cmovbl %ecx, %eax
cmpl $0x2, %edx
sbbl $-0x1, %eax
retq
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
retq
| stbi__high_bit:
test edi, edi
jz short loc_36A4D
mov eax, edi
shr eax, 10h
xor ecx, ecx
cmp edi, 10000h
setnb cl
cmovb eax, edi
shl ecx, 4
lea edx, [rcx+8]
mov esi, eax
shr esi, 8
cmp eax, 100h
cmovb esi, eax
cmovb edx, ecx
lea ecx, [rdx+4]
mov edi, esi
shr edi, 4
cmp esi, 10h
cmovb edi, esi
cmovb ecx, edx
lea eax, [rcx+2]
mov edx, edi
shr edx, 2
cmp edi, 4
cmovb edx, edi
cmovb eax, ecx
cmp edx, 2
sbb eax, 0FFFFFFFFh
retn
loc_36A4D:
mov eax, 0FFFFFFFFh
retn
| long long stbi__high_bit(unsigned int a1)
{
unsigned int v1; // eax
int v2; // edx
unsigned int v3; // esi
int v4; // ecx
unsigned int v5; // edi
int v6; // eax
unsigned int v7; // edx
if ( !a1 )
return 0xFFFFFFFFLL;
v1 = HIWORD(a1);
if ( a1 < 0x10000 )
v1 = a1;
v2 = 16 * (a1 >= 0x10000) + 8;
v3 = v1 >> 8;
if ( v1 < 0x100 )
{
v3 = v1;
v2 = 16 * (a1 >= 0x10000);
}
v4 = v2 + 4;
v5 = v3 >> 4;
if ( v3 < 0x10 )
{
v5 = v3;
v4 = v2;
}
v6 = v4 + 2;
v7 = v5 >> 2;
if ( v5 < 4 )
{
v7 = v5;
v6 = v4;
}
return v6 - ((unsigned int)(v7 < 2) - 1);
}
| stbi__high_bit:
TEST EDI,EDI
JZ 0x00136a4d
MOV EAX,EDI
SHR EAX,0x10
XOR ECX,ECX
CMP EDI,0x10000
SETNC CL
CMOVC EAX,EDI
SHL ECX,0x4
LEA EDX,[RCX + 0x8]
MOV ESI,EAX
SHR ESI,0x8
CMP EAX,0x100
CMOVC ESI,EAX
CMOVC EDX,ECX
LEA ECX,[RDX + 0x4]
MOV EDI,ESI
SHR EDI,0x4
CMP ESI,0x10
CMOVC EDI,ESI
CMOVC ECX,EDX
LEA EAX,[RCX + 0x2]
MOV EDX,EDI
SHR EDX,0x2
CMP EDI,0x4
CMOVC EDX,EDI
CMOVC EAX,ECX
CMP EDX,0x2
SBB EAX,-0x1
RET
LAB_00136a4d:
MOV EAX,0xffffffff
RET
|
int stbi__high_bit(uint param_1)
{
uint uVar1;
uint uVar2;
int iVar3;
int iVar4;
if (param_1 == 0) {
return -1;
}
uVar2 = param_1 >> 0x10;
if (0xffff >= param_1) {
uVar2 = param_1;
}
iVar3 = (uint)(0xffff < param_1) * 0x10;
iVar4 = iVar3 + 8;
uVar1 = uVar2 >> 8;
if (uVar2 < 0x100) {
iVar4 = iVar3;
uVar1 = uVar2;
}
iVar3 = iVar4 + 4;
uVar2 = uVar1 >> 4;
if (uVar1 < 0x10) {
iVar3 = iVar4;
uVar2 = uVar1;
}
iVar4 = iVar3 + 2;
uVar1 = uVar2 >> 2;
if (uVar2 < 4) {
iVar4 = iVar3;
uVar1 = uVar2;
}
return (iVar4 + 1) - (uint)(uVar1 < 2);
}
| |
25,143 | open_cached_file | eloqsql/mysys/mf_cache.c | my_bool open_cached_file(IO_CACHE *cache, const char* dir, const char *prefix,
size_t cache_size, myf cache_myflags)
{
DBUG_ENTER("open_cached_file");
cache->dir= dir;
if (prefix)
{
DBUG_ASSERT(strlen(prefix) == 2);
memcpy(cache->prefix, prefix, 3);
}
else
cache->prefix[0]= 0;
cache->file_name=0;
cache->buffer=0; /* Mark that not open */
if (!init_io_cache(cache, -1, cache_size, WRITE_CACHE, 0L, 0,
MYF(cache_myflags | MY_NABP)))
{
DBUG_RETURN(0);
}
DBUG_RETURN(1);
} | O0 | c | open_cached_file:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0xc8(%rax)
cmpq $0x0, -0x20(%rbp)
je 0x3f113
jmp 0x3f0f4
jmp 0x3f0f6
movq -0x10(%rbp), %rax
movq -0x20(%rbp), %rcx
movw (%rcx), %dx
movw %dx, 0xd0(%rax)
movb 0x2(%rcx), %cl
movb %cl, 0xd2(%rax)
jmp 0x3f11e
movq -0x10(%rbp), %rax
movb $0x0, 0xd0(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0xc0(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x20(%rax)
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rax
orq $0x4, %rax
movl $0xffffffff, %esi # imm = 0xFFFFFFFF
movl $0x2, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
movq %rax, (%rsp)
callq 0x2eeb0
cmpl $0x0, %eax
jne 0x3f16f
jmp 0x3f169
movb $0x0, -0x1(%rbp)
jmp 0x3f175
jmp 0x3f171
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x40, %rsp
popq %rbp
retq
nop
| open_cached_file:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
mov rcx, [rbp+var_18]
mov rax, [rbp+var_10]
mov [rax+0C8h], rcx
cmp [rbp+var_20], 0
jz short loc_3F113
jmp short $+2
loc_3F0F4:
jmp short $+2
loc_3F0F6:
mov rax, [rbp+var_10]
mov rcx, [rbp+var_20]
mov dx, [rcx]
mov [rax+0D0h], dx
mov cl, [rcx+2]
mov [rax+0D2h], cl
jmp short loc_3F11E
loc_3F113:
mov rax, [rbp+var_10]
mov byte ptr [rax+0D0h], 0
loc_3F11E:
mov rax, [rbp+var_10]
mov qword ptr [rax+0C0h], 0
mov rax, [rbp+var_10]
mov qword ptr [rax+20h], 0
mov rdi, [rbp+var_10]
mov rdx, [rbp+var_28]
mov rax, [rbp+var_30]
or rax, 4
mov esi, 0FFFFFFFFh
mov ecx, 2
xor r8d, r8d
xor r9d, r9d
mov [rsp+40h+var_40], rax
call init_io_cache
cmp eax, 0
jnz short loc_3F16F
jmp short $+2
loc_3F169:
mov [rbp+var_1], 0
jmp short loc_3F175
loc_3F16F:
jmp short $+2
loc_3F171:
mov [rbp+var_1], 1
loc_3F175:
mov al, [rbp+var_1]
add rsp, 40h
pop rbp
retn
| bool open_cached_file(long long a1, long long a2, long long a3, unsigned long long a4, long long a5)
{
*(_QWORD *)(a1 + 200) = a2;
if ( a3 )
{
*(_WORD *)(a1 + 208) = *(_WORD *)a3;
*(_BYTE *)(a1 + 210) = *(_BYTE *)(a3 + 2);
}
else
{
*(_BYTE *)(a1 + 208) = 0;
}
*(_QWORD *)(a1 + 192) = 0LL;
*(_QWORD *)(a1 + 32) = 0LL;
return (unsigned int)init_io_cache(a1, -1, a4, 2, 0LL, 0, a5 | 4) != 0;
}
| open_cached_file:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0xc8],RCX
CMP qword ptr [RBP + -0x20],0x0
JZ 0x0013f113
JMP 0x0013f0f4
LAB_0013f0f4:
JMP 0x0013f0f6
LAB_0013f0f6:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x20]
MOV DX,word ptr [RCX]
MOV word ptr [RAX + 0xd0],DX
MOV CL,byte ptr [RCX + 0x2]
MOV byte ptr [RAX + 0xd2],CL
JMP 0x0013f11e
LAB_0013f113:
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0xd0],0x0
LAB_0013f11e:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0xc0],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x20],0x0
MOV RDI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x30]
OR RAX,0x4
MOV ESI,0xffffffff
MOV ECX,0x2
XOR R8D,R8D
XOR R9D,R9D
MOV qword ptr [RSP],RAX
CALL 0x0012eeb0
CMP EAX,0x0
JNZ 0x0013f16f
JMP 0x0013f169
LAB_0013f169:
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0013f175
LAB_0013f16f:
JMP 0x0013f171
LAB_0013f171:
MOV byte ptr [RBP + -0x1],0x1
LAB_0013f175:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x40
POP RBP
RET
|
bool open_cached_file(long param_1,int8 param_2,int2 *param_3,int8 param_4,
ulong param_5)
{
int iVar1;
*(int8 *)(param_1 + 200) = param_2;
if (param_3 == (int2 *)0x0) {
*(int1 *)(param_1 + 0xd0) = 0;
}
else {
*(int2 *)(param_1 + 0xd0) = *param_3;
*(int1 *)(param_1 + 0xd2) = *(int1 *)(param_3 + 1);
}
*(int8 *)(param_1 + 0xc0) = 0;
*(int8 *)(param_1 + 0x20) = 0;
iVar1 = init_io_cache(param_1,0xffffffff,param_4,2,0,0,param_5 | 4);
return iVar1 != 0;
}
| |
25,144 | open_cached_file | eloqsql/mysys/mf_cache.c | my_bool open_cached_file(IO_CACHE *cache, const char* dir, const char *prefix,
size_t cache_size, myf cache_myflags)
{
DBUG_ENTER("open_cached_file");
cache->dir= dir;
if (prefix)
{
DBUG_ASSERT(strlen(prefix) == 2);
memcpy(cache->prefix, prefix, 3);
}
else
cache->prefix[0]= 0;
cache->file_name=0;
cache->buffer=0; /* Mark that not open */
if (!init_io_cache(cache, -1, cache_size, WRITE_CACHE, 0L, 0,
MYF(cache_myflags | MY_NABP)))
{
DBUG_RETURN(0);
}
DBUG_RETURN(1);
} | O3 | c | open_cached_file:
movq %rsi, 0xc8(%rdi)
leaq 0xd0(%rdi), %rax
testq %rdx, %rdx
je 0x3473f
movb 0x2(%rdx), %sil
movb %sil, 0x2(%rax)
movzwl (%rdx), %edx
movw %dx, (%rax)
jmp 0x34742
movb $0x0, (%rax)
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
xorl %eax, %eax
movq %rax, 0xc0(%rdi)
movq %rax, 0x20(%rdi)
orq $0x4, %r8
movq %r8, (%rsp)
movl $0xffffffff, %esi # imm = 0xFFFFFFFF
movq %rcx, %rdx
movl $0x2, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x2abc6
testl %eax, %eax
setne %al
addq $0x10, %rsp
popq %rbp
retq
| open_cached_file:
mov [rdi+0C8h], rsi
lea rax, [rdi+0D0h]
test rdx, rdx
jz short loc_3473F
mov sil, [rdx+2]
mov [rax+2], sil
movzx edx, word ptr [rdx]
mov [rax], dx
jmp short loc_34742
loc_3473F:
mov byte ptr [rax], 0
loc_34742:
push rbp
mov rbp, rsp
sub rsp, 10h
xor eax, eax
mov [rdi+0C0h], rax
mov [rdi+20h], rax
or r8, 4
mov [rsp+18h+var_18], r8
mov esi, 0FFFFFFFFh
mov rdx, rcx
mov ecx, 2
xor r8d, r8d
xor r9d, r9d
call init_io_cache
test eax, eax
setnz al
add rsp, 10h
pop rbp
retn
| bool open_cached_file(long long a1, long long a2, long long a3, unsigned long long a4, long long a5)
{
_WORD *v5; // rax
*(_QWORD *)(a1 + 200) = a2;
v5 = (_WORD *)(a1 + 208);
if ( a3 )
{
*(_BYTE *)(a1 + 210) = *(_BYTE *)(a3 + 2);
*v5 = *(_WORD *)a3;
}
else
{
*(_BYTE *)v5 = 0;
}
*(_QWORD *)(a1 + 192) = 0LL;
*(_QWORD *)(a1 + 32) = 0LL;
return (unsigned int)init_io_cache(a1, 0xFFFFFFFFLL, a4, 2, 0LL, 0, a5 | 4) != 0;
}
| open_cached_file:
MOV qword ptr [RDI + 0xc8],RSI
LEA RAX,[RDI + 0xd0]
TEST RDX,RDX
JZ 0x0013473f
MOV SIL,byte ptr [RDX + 0x2]
MOV byte ptr [RAX + 0x2],SIL
MOVZX EDX,word ptr [RDX]
MOV word ptr [RAX],DX
JMP 0x00134742
LAB_0013473f:
MOV byte ptr [RAX],0x0
LAB_00134742:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
XOR EAX,EAX
MOV qword ptr [RDI + 0xc0],RAX
MOV qword ptr [RDI + 0x20],RAX
OR R8,0x4
MOV qword ptr [RSP],R8
MOV ESI,0xffffffff
MOV RDX,RCX
MOV ECX,0x2
XOR R8D,R8D
XOR R9D,R9D
CALL 0x0012abc6
TEST EAX,EAX
SETNZ AL
ADD RSP,0x10
POP RBP
RET
|
bool open_cached_file(long param_1,int8 param_2,int2 *param_3,int8 param_4,
ulong param_5)
{
int iVar1;
*(int8 *)(param_1 + 200) = param_2;
if (param_3 == (int2 *)0x0) {
*(int1 *)(param_1 + 0xd0) = 0;
}
else {
*(int1 *)(param_1 + 0xd2) = *(int1 *)(param_3 + 1);
*(int2 *)(param_1 + 0xd0) = *param_3;
}
*(int8 *)(param_1 + 0xc0) = 0;
*(int8 *)(param_1 + 0x20) = 0;
iVar1 = init_io_cache(param_1,0xffffffff,param_4,2,0,0,param_5 | 4);
return iVar1 != 0;
}
| |
25,145 | vemit_tap | eloqsql/libmariadb/unittest/mytap/tap.c | static void
vemit_tap(int pass, char const *fmt, va_list ap)
{
fprintf(tapout, "%sok %d%s",
pass ? "" : "not ",
++g_test.last,
(fmt && *fmt) ? " - " : "");
if (fmt && *fmt)
vfprintf(tapout, fmt, ap);
} | O0 | c | vemit_tap:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq 0x4846e(%rip), %rax # 0x5efc8
movq (%rax), %rax
movq %rax, -0x30(%rbp)
movl -0x4(%rbp), %edx
leaq 0x35fe6(%rip), %rax # 0x4cb51
leaq 0x35bfd(%rip), %rcx # 0x4c76f
cmpl $0x0, %edx
cmovneq %rcx, %rax
movq %rax, -0x28(%rbp)
movl 0x4a985(%rip), %eax # 0x61508
addl $0x1, %eax
movl %eax, -0x20(%rbp)
movl %eax, 0x4a979(%rip) # 0x61508
xorl %eax, %eax
cmpq $0x0, -0x10(%rbp)
movb %al, -0x19(%rbp)
je 0x16bab
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x19(%rbp)
movl -0x20(%rbp), %ecx
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rdi
movb -0x19(%rbp), %sil
leaq 0x35bae(%rip), %r8 # 0x4c76f
leaq 0x35f8e(%rip), %rax # 0x4cb56
testb $0x1, %sil
cmovneq %rax, %r8
leaq 0x35f70(%rip), %rsi # 0x4cb47
movb $0x0, %al
callq 0x13640
cmpq $0x0, -0x10(%rbp)
je 0x16c08
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x16c08
movq 0x483d0(%rip), %rax # 0x5efc8
movq (%rax), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x135c0
addq $0x30, %rsp
popq %rbp
retq
nop
| vemit_tap:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, cs:stdout_ptr
mov rax, [rax]
mov [rbp+var_30], rax
mov edx, [rbp+var_4]
lea rax, aNot; "not "
lea rcx, aExecuteTestWit+29h; ""
cmp edx, 0
cmovnz rax, rcx
mov [rbp+var_28], rax
mov eax, cs:dword_61508
add eax, 1
mov [rbp+var_20], eax
mov cs:dword_61508, eax
xor eax, eax
cmp [rbp+var_10], 0
mov [rbp+var_19], al
jz short loc_16BAB
mov rax, [rbp+var_10]
movsx eax, byte ptr [rax]
cmp eax, 0
setnz al
mov [rbp+var_19], al
loc_16BAB:
mov ecx, [rbp+var_20]
mov rdx, [rbp+var_28]
mov rdi, [rbp+var_30]
mov sil, [rbp+var_19]
lea r8, aExecuteTestWit+29h; ""
lea rax, asc_4CB56; " - "
test sil, 1
cmovnz r8, rax
lea rsi, aSokDS; "%sok %d%s"
mov al, 0
call _fprintf
cmp [rbp+var_10], 0
jz short loc_16C08
mov rax, [rbp+var_10]
movsx eax, byte ptr [rax]
cmp eax, 0
jz short loc_16C08
mov rax, cs:stdout_ptr
mov rdi, [rax]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
call _vfprintf
loc_16C08:
add rsp, 30h
pop rbp
retn
| long long vemit_tap(int a1, _BYTE *a2, long long a3)
{
const char *v3; // rax
const char *v4; // r8
long long result; // rax
int v6; // [rsp+10h] [rbp-20h]
bool v7; // [rsp+17h] [rbp-19h]
v3 = "not ";
if ( a1 )
v3 = "";
v6 = ++dword_61508;
v7 = 0;
if ( a2 )
v7 = *a2 != 0;
v4 = "";
if ( v7 )
v4 = " - ";
result = fprintf(stdout, "%sok %d%s", v3, v6, v4);
if ( a2 )
{
result = (unsigned int)(char)*a2;
if ( *a2 )
return vfprintf(stdout, a2, a3);
}
return result;
}
| vemit_tap:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [0x0015efc8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x30],RAX
MOV EDX,dword ptr [RBP + -0x4]
LEA RAX,[0x14cb51]
LEA RCX,[0x14c76f]
CMP EDX,0x0
CMOVNZ RAX,RCX
MOV qword ptr [RBP + -0x28],RAX
MOV EAX,dword ptr [0x00161508]
ADD EAX,0x1
MOV dword ptr [RBP + -0x20],EAX
MOV dword ptr [0x00161508],EAX
XOR EAX,EAX
CMP qword ptr [RBP + -0x10],0x0
MOV byte ptr [RBP + -0x19],AL
JZ 0x00116bab
MOV RAX,qword ptr [RBP + -0x10]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0x19],AL
LAB_00116bab:
MOV ECX,dword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
MOV RDI,qword ptr [RBP + -0x30]
MOV SIL,byte ptr [RBP + -0x19]
LEA R8,[0x14c76f]
LEA RAX,[0x14cb56]
TEST SIL,0x1
CMOVNZ R8,RAX
LEA RSI,[0x14cb47]
MOV AL,0x0
CALL 0x00113640
CMP qword ptr [RBP + -0x10],0x0
JZ 0x00116c08
MOV RAX,qword ptr [RBP + -0x10]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
JZ 0x00116c08
MOV RAX,qword ptr [0x0015efc8]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x001135c0
LAB_00116c08:
ADD RSP,0x30
POP RBP
RET
|
void vemit_tap(int param_1,char *param_2,__gnuc_va_list param_3)
{
char *pcVar1;
char *pcVar2;
bool bVar3;
pcVar1 = "not ";
if (param_1 != 0) {
pcVar1 = "";
}
DAT_00161508 = DAT_00161508 + 1;
bVar3 = false;
if (param_2 != (char *)0x0) {
bVar3 = *param_2 != '\0';
}
pcVar2 = "";
if (bVar3) {
pcVar2 = " - ";
}
fprintf(*(FILE **)PTR_stdout_0015efc8,"%sok %d%s",pcVar1,(ulong)DAT_00161508,pcVar2);
if ((param_2 != (char *)0x0) && (*param_2 != '\0')) {
vfprintf(*(FILE **)PTR_stdout_0015efc8,param_2,param_3);
}
return;
}
| |
25,146 | 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 0x91c9e
cmpl %r14d, 0xc(%r15)
ja 0x91c7b
movq %r15, %rdi
movl %r14d, %esi
callq 0x91cc1
movl %eax, %ecx
movb $0x1, %al
testb %cl, %cl
jne 0x91cb6
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 0x292a0
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 0x29080
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_91C9E
cmp [r15+0Ch], r14d
ja short loc_91C7B
mov rdi, r15
mov esi, r14d
call allocate_dynamic
mov ecx, eax
mov al, 1
test cl, cl
jnz short loc_91CB6
mov eax, [r15+8]
loc_91C7B:
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_91C9E:
mov edx, [r15+14h]
imul r14d, edx
add r14, [r15]
mov rdi, r14
mov rsi, rbx
call _memcpy
xor eax, eax
loc_91CB6:
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 0x00191c9e
CMP dword ptr [R15 + 0xc],R14D
JA 0x00191c7b
MOV RDI,R15
MOV ESI,R14D
CALL 0x00191cc1
MOV ECX,EAX
MOV AL,0x1
TEST CL,CL
JNZ 0x00191cb6
MOV EAX,dword ptr [R15 + 0x8]
LAB_00191c7b:
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 0x001292a0
LEA EAX,[R14 + 0x1]
MOV dword ptr [R15 + 0x8],EAX
LAB_00191c9e:
MOV EDX,dword ptr [R15 + 0x14]
IMUL R14D,EDX
ADD R14,qword ptr [R15]
MOV RDI,R14
MOV RSI,RBX
CALL 0x00129080
XOR EAX,EAX
LAB_00191cb6:
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;
}
| |
25,147 | google::protobuf::io::EpsCopyOutputStream::WriteAliasedRaw(void const*, int, unsigned char*) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/io/coded_stream.cc | uint8_t* EpsCopyOutputStream::WriteAliasedRaw(const void* data, int size,
uint8_t* ptr) {
if (size < GetSize(ptr)
) {
return WriteRaw(data, size, ptr);
} else {
ptr = Trim(ptr);
if (stream_->WriteAliasedRaw(data, size)) return ptr;
return Error();
}
} | O3 | cpp | google::protobuf::io::EpsCopyOutputStream::WriteAliasedRaw(void const*, int, unsigned char*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %rbx
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %r14
movslq %edx, %r12
movq (%rdi), %rax
subq %rcx, %rax
leaq 0x10(%rax), %rcx
cmpq %r12, %rcx
jle 0x7a32f
cmpq %r12, %rax
jl 0x7a36c
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x2ceb0
addq %r12, %rbx
jmp 0x7a360
movq %r14, %rdi
movq %rbx, %rsi
callq 0x79fd4
movq %rax, %rbx
movq 0x30(%r14), %rdi
movq (%rdi), %rax
movq %r15, %rsi
movl %ebp, %edx
callq *0x28(%rax)
testb %al, %al
jne 0x7a360
movb $0x1, 0x38(%r14)
leaq 0x10(%r14), %rbx
leaq 0x20(%r14), %rax
movq %rax, (%r14)
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
movq %r15, %rsi
movl %ebp, %edx
movq %rbx, %rcx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x7a27c
| _ZN6google8protobuf2io19EpsCopyOutputStream15WriteAliasedRawEPKviPh:
push rbp
push r15
push r14
push r12
push rbx
mov rbx, rcx
mov ebp, edx
mov r15, rsi
mov r14, rdi
movsxd r12, edx
mov rax, [rdi]
sub rax, rcx
lea rcx, [rax+10h]
cmp rcx, r12
jle short loc_7A32F
cmp rax, r12
jl short loc_7A36C
mov rdi, rbx
mov rsi, r15
mov rdx, r12
call _memcpy
add rbx, r12
jmp short loc_7A360
loc_7A32F:
mov rdi, r14; this
mov rsi, rbx; unsigned __int8 *
call _ZN6google8protobuf2io19EpsCopyOutputStream4TrimEPh; google::protobuf::io::EpsCopyOutputStream::Trim(uchar *)
mov rbx, rax
mov rdi, [r14+30h]
mov rax, [rdi]
mov rsi, r15
mov edx, ebp
call qword ptr [rax+28h]
test al, al
jnz short loc_7A360
mov byte ptr [r14+38h], 1
lea rbx, [r14+10h]
lea rax, [r14+20h]
mov [r14], rax
loc_7A360:
mov rax, rbx
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_7A36C:
mov rdi, r14; this
mov rsi, r15; void *
mov edx, ebp; int
mov rcx, rbx; unsigned __int8 *
pop rbx
pop r12
pop r14
pop r15
pop rbp
jmp _ZN6google8protobuf2io19EpsCopyOutputStream16WriteRawFallbackEPKviPh; google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*,int,uchar *)
| unsigned __int8 * google::protobuf::io::EpsCopyOutputStream::WriteAliasedRaw(
google::protobuf::io::EpsCopyOutputStream *this,
char *a2,
int a3,
unsigned __int8 *a4)
{
long long v6; // r12
long long v7; // rax
unsigned __int8 *v8; // rbx
v6 = a3;
v7 = *(_QWORD *)this - (_QWORD)a4;
if ( v7 + 16 <= a3 )
{
v8 = google::protobuf::io::EpsCopyOutputStream::Trim(this, a4);
if ( !(*(unsigned __int8 ( **)(_QWORD, char *, _QWORD))(**((_QWORD **)this + 6) + 40LL))(
*((_QWORD *)this + 6),
a2,
(unsigned int)a3) )
{
*((_BYTE *)this + 56) = 1;
v8 = (unsigned __int8 *)this + 16;
*(_QWORD *)this = (char *)this + 32;
}
return v8;
}
if ( v7 >= a3 )
{
memcpy(a4);
return &a4[v6];
}
return google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(this, a2, a3, a4);
}
| WriteAliasedRaw:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV RBX,RCX
MOV EBP,EDX
MOV R15,RSI
MOV R14,RDI
MOVSXD R12,EDX
MOV RAX,qword ptr [RDI]
SUB RAX,RCX
LEA RCX,[RAX + 0x10]
CMP RCX,R12
JLE 0x0017a32f
CMP RAX,R12
JL 0x0017a36c
MOV RDI,RBX
MOV RSI,R15
MOV RDX,R12
CALL 0x0012ceb0
ADD RBX,R12
JMP 0x0017a360
LAB_0017a32f:
MOV RDI,R14
MOV RSI,RBX
CALL 0x00179fd4
MOV RBX,RAX
MOV RDI,qword ptr [R14 + 0x30]
MOV RAX,qword ptr [RDI]
MOV RSI,R15
MOV EDX,EBP
CALL qword ptr [RAX + 0x28]
TEST AL,AL
JNZ 0x0017a360
MOV byte ptr [R14 + 0x38],0x1
LEA RBX,[R14 + 0x10]
LEA RAX,[R14 + 0x20]
MOV qword ptr [R14],RAX
LAB_0017a360:
MOV RAX,RBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0017a36c:
MOV RDI,R14
MOV RSI,R15
MOV EDX,EBP
MOV RCX,RBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
JMP 0x0017a27c
|
/* google::protobuf::io::EpsCopyOutputStream::WriteAliasedRaw(void const*, int, unsigned char*) */
EpsCopyOutputStream * __thiscall
google::protobuf::io::EpsCopyOutputStream::WriteAliasedRaw
(EpsCopyOutputStream *this,void *param_1,int param_2,uchar *param_3)
{
char cVar1;
EpsCopyOutputStream *pEVar2;
size_t __n;
__n = (size_t)param_2;
if ((long)__n < (*(long *)this - (long)param_3) + 0x10) {
if (*(long *)this - (long)param_3 < (long)__n) {
pEVar2 = (EpsCopyOutputStream *)WriteRawFallback(this,param_1,param_2,param_3);
return pEVar2;
}
memcpy(param_3,param_1,__n);
pEVar2 = (EpsCopyOutputStream *)(param_3 + __n);
}
else {
pEVar2 = (EpsCopyOutputStream *)Trim(this,param_3);
cVar1 = (**(code **)(**(long **)(this + 0x30) + 0x28))(*(long **)(this + 0x30),param_1,param_2);
if (cVar1 == '\0') {
this[0x38] = (EpsCopyOutputStream)0x1;
pEVar2 = this + 0x10;
*(EpsCopyOutputStream **)this = this + 0x20;
}
}
return pEVar2;
}
| |
25,148 | ma_columndef_read | eloqsql/storage/maria/ma_open.c | uchar *_ma_columndef_read(uchar *ptr, MARIA_COLUMNDEF *columndef)
{
uint high_offset;
columndef->column_nr= mi_uint2korr(ptr); ptr+= 2;
columndef->offset= mi_uint2korr(ptr); ptr+= 2;
columndef->type= mi_sint2korr(ptr); ptr+= 2;
columndef->length= mi_uint2korr(ptr); ptr+= 2;
columndef->fill_length= mi_uint2korr(ptr); ptr+= 2;
columndef->null_pos= mi_uint2korr(ptr); ptr+= 2;
columndef->empty_pos= mi_uint2korr(ptr); ptr+= 2;
columndef->null_bit= (uint8) *ptr++;
columndef->empty_bit= (uint8) *ptr++;
high_offset= mi_uint2korr(ptr); ptr+= 2;
columndef->offset|= ((ulong) high_offset << 16);
ptr+= 2;
return ptr;
} | O0 | c | ma_columndef_read:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x1(%rax), %eax
movzwl %ax, %eax
movq -0x8(%rbp), %rcx
movzbl (%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0xa(%rax)
movq -0x8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x1(%rax), %eax
movzwl %ax, %eax
movq -0x8(%rbp), %rcx
movzbl (%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movzwl %ax, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x1(%rax), %eax
cwtl
movq -0x8(%rbp), %rcx
movzbl (%rcx), %ecx
movswl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movswl %ax, %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
movq -0x8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x1(%rax), %eax
movzwl %ax, %eax
movq -0x8(%rbp), %rcx
movzbl (%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0x8(%rax)
movq -0x8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x1(%rax), %eax
movzwl %ax, %eax
movq -0x8(%rbp), %rcx
movzbl (%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0xc(%rax)
movq -0x8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x1(%rax), %eax
movzwl %ax, %eax
movq -0x8(%rbp), %rcx
movzbl (%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0xe(%rax)
movq -0x8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movzbl 0x1(%rax), %eax
movzwl %ax, %eax
movq -0x8(%rbp), %rcx
movzbl (%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0x10(%rax)
movq -0x8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movb (%rax), %cl
movq -0x10(%rbp), %rax
movb %cl, 0x12(%rax)
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movb (%rax), %cl
movq -0x10(%rbp), %rax
movb %cl, 0x13(%rax)
movq -0x8(%rbp), %rax
movzbl 0x1(%rax), %eax
movzwl %ax, %eax
movq -0x8(%rbp), %rcx
movzbl (%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movzwl %ax, %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x8(%rbp)
movl -0x14(%rbp), %eax
movl %eax, %edx
shlq $0x10, %rdx
movq -0x10(%rbp), %rax
movl 0x4(%rax), %ecx
orq %rdx, %rcx
movl %ecx, 0x4(%rax)
movq -0x8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ma_columndef_read:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
movzx eax, byte ptr [rax+1]
movzx eax, ax
mov rcx, [rbp+var_8]
movzx ecx, byte ptr [rcx]
movzx ecx, cx
shl ecx, 8
or eax, ecx
mov cx, ax
mov rax, [rbp+var_10]
mov [rax+0Ah], cx
mov rax, [rbp+var_8]
add rax, 2
mov [rbp+var_8], rax
mov rax, [rbp+var_8]
movzx eax, byte ptr [rax+1]
movzx eax, ax
mov rcx, [rbp+var_8]
movzx ecx, byte ptr [rcx]
movzx ecx, cx
shl ecx, 8
or eax, ecx
movzx ecx, ax
mov rax, [rbp+var_10]
mov [rax+4], ecx
mov rax, [rbp+var_8]
add rax, 2
mov [rbp+var_8], rax
mov rax, [rbp+var_8]
movzx eax, byte ptr [rax+1]
cwde
mov rcx, [rbp+var_8]
movzx ecx, byte ptr [rcx]
movsx ecx, cx
shl ecx, 8
or eax, ecx
movsx ecx, ax
mov rax, [rbp+var_10]
mov [rax], ecx
mov rax, [rbp+var_8]
add rax, 2
mov [rbp+var_8], rax
mov rax, [rbp+var_8]
movzx eax, byte ptr [rax+1]
movzx eax, ax
mov rcx, [rbp+var_8]
movzx ecx, byte ptr [rcx]
movzx ecx, cx
shl ecx, 8
or eax, ecx
mov cx, ax
mov rax, [rbp+var_10]
mov [rax+8], cx
mov rax, [rbp+var_8]
add rax, 2
mov [rbp+var_8], rax
mov rax, [rbp+var_8]
movzx eax, byte ptr [rax+1]
movzx eax, ax
mov rcx, [rbp+var_8]
movzx ecx, byte ptr [rcx]
movzx ecx, cx
shl ecx, 8
or eax, ecx
mov cx, ax
mov rax, [rbp+var_10]
mov [rax+0Ch], cx
mov rax, [rbp+var_8]
add rax, 2
mov [rbp+var_8], rax
mov rax, [rbp+var_8]
movzx eax, byte ptr [rax+1]
movzx eax, ax
mov rcx, [rbp+var_8]
movzx ecx, byte ptr [rcx]
movzx ecx, cx
shl ecx, 8
or eax, ecx
mov cx, ax
mov rax, [rbp+var_10]
mov [rax+0Eh], cx
mov rax, [rbp+var_8]
add rax, 2
mov [rbp+var_8], rax
mov rax, [rbp+var_8]
movzx eax, byte ptr [rax+1]
movzx eax, ax
mov rcx, [rbp+var_8]
movzx ecx, byte ptr [rcx]
movzx ecx, cx
shl ecx, 8
or eax, ecx
mov cx, ax
mov rax, [rbp+var_10]
mov [rax+10h], cx
mov rax, [rbp+var_8]
add rax, 2
mov [rbp+var_8], rax
mov rax, [rbp+var_8]
mov rcx, rax
add rcx, 1
mov [rbp+var_8], rcx
mov cl, [rax]
mov rax, [rbp+var_10]
mov [rax+12h], cl
mov rax, [rbp+var_8]
mov rcx, rax
add rcx, 1
mov [rbp+var_8], rcx
mov cl, [rax]
mov rax, [rbp+var_10]
mov [rax+13h], cl
mov rax, [rbp+var_8]
movzx eax, byte ptr [rax+1]
movzx eax, ax
mov rcx, [rbp+var_8]
movzx ecx, byte ptr [rcx]
movzx ecx, cx
shl ecx, 8
or eax, ecx
movzx eax, ax
mov [rbp+var_14], eax
mov rax, [rbp+var_8]
add rax, 2
mov [rbp+var_8], rax
mov eax, [rbp+var_14]
mov edx, eax
shl rdx, 10h
mov rax, [rbp+var_10]
mov ecx, [rax+4]
or rcx, rdx
mov [rax+4], ecx
mov rax, [rbp+var_8]
add rax, 2
mov [rbp+var_8], rax
mov rax, [rbp+var_8]
pop rbp
retn
| long long ma_columndef_read(long long a1, long long a2)
{
*(_WORD *)(a2 + 10) = _byteswap_ushort(*(_WORD *)a1);
*(_DWORD *)(a2 + 4) = _byteswap_ushort(*(_WORD *)(a1 + 2));
*(_DWORD *)a2 = (__int16)_byteswap_ushort(*(_WORD *)(a1 + 4));
*(_WORD *)(a2 + 8) = _byteswap_ushort(*(_WORD *)(a1 + 6));
*(_WORD *)(a2 + 12) = _byteswap_ushort(*(_WORD *)(a1 + 8));
*(_WORD *)(a2 + 14) = _byteswap_ushort(*(_WORD *)(a1 + 10));
*(_WORD *)(a2 + 16) = _byteswap_ushort(*(_WORD *)(a1 + 12));
*(_BYTE *)(a2 + 18) = *(_BYTE *)(a1 + 14);
*(_BYTE *)(a2 + 19) = *(_BYTE *)(a1 + 15);
*(_DWORD *)(a2 + 4) |= _byteswap_ushort(*(_WORD *)(a1 + 16)) << 16;
return a1 + 20;
}
| _ma_columndef_read:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x8]
MOVZX EAX,byte ptr [RAX + 0x1]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RCX]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x10]
MOV word ptr [RAX + 0xa],CX
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x2
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOVZX EAX,byte ptr [RAX + 0x1]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RCX]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOVZX ECX,AX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x4],ECX
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x2
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOVZX EAX,byte ptr [RAX + 0x1]
CWDE
MOV RCX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RCX]
MOVSX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOVSX ECX,AX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x2
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOVZX EAX,byte ptr [RAX + 0x1]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RCX]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x10]
MOV word ptr [RAX + 0x8],CX
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x2
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOVZX EAX,byte ptr [RAX + 0x1]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RCX]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x10]
MOV word ptr [RAX + 0xc],CX
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x2
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOVZX EAX,byte ptr [RAX + 0x1]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RCX]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x10]
MOV word ptr [RAX + 0xe],CX
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x2
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOVZX EAX,byte ptr [RAX + 0x1]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RCX]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOV CX,AX
MOV RAX,qword ptr [RBP + -0x10]
MOV word ptr [RAX + 0x10],CX
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x2
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x8],RCX
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x12],CL
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x8],RCX
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x13],CL
MOV RAX,qword ptr [RBP + -0x8]
MOVZX EAX,byte ptr [RAX + 0x1]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RCX]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOVZX EAX,AX
MOV dword ptr [RBP + -0x14],EAX
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x2
MOV qword ptr [RBP + -0x8],RAX
MOV EAX,dword ptr [RBP + -0x14]
MOV EDX,EAX
SHL RDX,0x10
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x4]
OR RCX,RDX
MOV dword ptr [RAX + 0x4],ECX
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x2
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
int1 * _ma_columndef_read(int1 *param_1,int *param_2)
{
*(ushort *)((long)param_2 + 10) = CONCAT11(*param_1,param_1[1]);
param_2[1] = (uint)CONCAT11(param_1[2],param_1[3]);
*param_2 = (int)(short)((ushort)(byte)param_1[5] |
(ushort)((int)(short)(ushort)(byte)param_1[4] << 8));
*(ushort *)(param_2 + 2) = CONCAT11(param_1[6],param_1[7]);
*(ushort *)(param_2 + 3) = CONCAT11(param_1[8],param_1[9]);
*(ushort *)((long)param_2 + 0xe) = CONCAT11(param_1[10],param_1[0xb]);
*(ushort *)(param_2 + 4) = CONCAT11(param_1[0xc],param_1[0xd]);
*(int1 *)((long)param_2 + 0x12) = param_1[0xe];
*(int1 *)((long)param_2 + 0x13) = param_1[0xf];
param_2[1] = param_2[1] | (uint)CONCAT11(param_1[0x10],param_1[0x11]) << 0x10;
return param_1 + 0x14;
}
| |
25,149 | sessions::destroy(Session*) | untodesu[P]voxelius/game/server/sessions.cc | void sessions::destroy(Session *session)
{
if(session) {
if(session->peer) {
// Make sure we don't leave a mark
session->peer->data = nullptr;
}
if(session->dimension) {
session->dimension->entities.destroy(session->player_entity);
}
username_map.erase(session->client_username);
identity_map.erase(session->client_identity);
session->client_index = UINT16_MAX;
session->client_identity = UINT64_MAX;
session->client_username = std::string();
session->player_entity = entt::null;
session->peer = nullptr;
sessions::num_players -= 1U;
}
} | O3 | cpp | sessions::destroy(Session*):
testq %rdi, %rdi
je 0x299ec
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x40(%rdi), %rax
testq %rax, %rax
je 0x29947
movq $0x0, 0x30(%rax)
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0x2995f
addq $0x158, %rdi # imm = 0x158
movl 0x30(%rbx), %esi
callq 0x2ab9e
leaq 0x10(%rbx), %r14
leaq 0xdf206(%rip), %rdi # 0x108b70
movq %r14, %rsi
callq 0x2ac56
leaq 0x8(%rbx), %rsi
leaq 0xdf223(%rip), %rdi # 0x108ba0
callq 0x2aca0
movw $0xffff, (%rbx) # imm = 0xFFFF
movq $-0x1, 0x8(%rbx)
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
leaq 0x8(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x16840
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x299cc
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x166c0
movl $0xffffffff, 0x30(%rbx) # imm = 0xFFFFFFFF
movq $0x0, 0x40(%rbx)
decl 0xdf187(%rip) # 0x108b68
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
| _ZN8sessions7destroyEP7Session:
test rdi, rdi
jz locret_299EC
push r15
push r14
push r12
push rbx
sub rsp, 28h
mov rbx, rdi
mov rax, [rdi+40h]
test rax, rax
jz short loc_29947
mov qword ptr [rax+30h], 0
loc_29947:
mov rdi, [rbx+38h]
test rdi, rdi
jz short loc_2995F
add rdi, 158h
mov esi, [rbx+30h]
call _ZN4entt14basic_registryINS_6entityESaIS1_EE7destroyES1_; entt::basic_registry<entt::entity,std::allocator<entt::entity>>::destroy(entt::entity)
loc_2995F:
lea r14, [rbx+10h]
lea rdi, _ZL12username_mapB5cxx11; username_map
mov rsi, r14
call _ZN7emhash87HashMapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP7SessionSt4hashIS6_ESt8equal_toIS6_EE5eraseERKS6_; emhash8::HashMap<std::string,Session *,std::hash<std::string>,std::equal_to<std::string>>::erase(std::string const&)
lea rsi, [rbx+8]
lea rdi, _ZL12identity_map; identity_map
call _ZN7emhash87HashMapImP7SessionSt4hashImESt8equal_toImEE5eraseERKm; emhash8::HashMap<ulong,Session *,std::hash<ulong>,std::equal_to<ulong>>::erase(ulong const&)
mov word ptr [rbx], 0FFFFh
mov qword ptr [rbx+8], 0FFFFFFFFFFFFFFFFh
lea r12, [rsp+48h+var_30]
mov [r12-10h], r12
mov qword ptr [r12-8], 0
mov byte ptr [r12], 0
lea r15, [rsp+48h+var_40]
mov rdi, r14
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [r15]; void *
cmp rdi, r12
jz short loc_299CC
mov rsi, [rsp+48h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_299CC:
mov dword ptr [rbx+30h], 0FFFFFFFFh
mov qword ptr [rbx+40h], 0
dec cs:_ZN8sessions11num_playersE; sessions::num_players
add rsp, 28h
pop rbx
pop r12
pop r14
pop r15
locret_299EC:
retn
| void sessions::destroy(long long a1)
{
long long v2; // rax
long long v3; // rdi
void *v4[2]; // [rsp+0h] [rbp-40h] BYREF
_QWORD v5[6]; // [rsp+10h] [rbp-30h] BYREF
if ( a1 )
{
v2 = *(_QWORD *)(a1 + 64);
if ( v2 )
*(_QWORD *)(v2 + 48) = 0LL;
v3 = *(_QWORD *)(a1 + 56);
if ( v3 )
entt::basic_registry<entt::entity,std::allocator<entt::entity>>::destroy(v3 + 344, *(unsigned int *)(a1 + 48));
emhash8::HashMap<std::string,Session *,std::hash<std::string>,std::equal_to<std::string>>::erase(
&username_map[abi:cxx11],
a1 + 16);
emhash8::HashMap<unsigned long,Session *,std::hash<unsigned long>,std::equal_to<unsigned long>>::erase(
&identity_map,
a1 + 8);
*(_WORD *)a1 = -1;
*(_QWORD *)(a1 + 8) = -1LL;
v4[0] = v5;
v4[1] = 0LL;
LOBYTE(v5[0]) = 0;
std::string::operator=(a1 + 16, v4);
if ( v4[0] != v5 )
operator delete(v4[0], v5[0] + 1LL);
*(_DWORD *)(a1 + 48) = -1;
*(_QWORD *)(a1 + 64) = 0LL;
--sessions::num_players;
}
}
| destroy:
TEST RDI,RDI
JZ 0x001299ec
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x40]
TEST RAX,RAX
JZ 0x00129947
MOV qword ptr [RAX + 0x30],0x0
LAB_00129947:
MOV RDI,qword ptr [RBX + 0x38]
TEST RDI,RDI
JZ 0x0012995f
ADD RDI,0x158
MOV ESI,dword ptr [RBX + 0x30]
CALL 0x0012ab9e
LAB_0012995f:
LEA R14,[RBX + 0x10]
LEA RDI,[0x208b70]
MOV RSI,R14
CALL 0x0012ac56
LEA RSI,[RBX + 0x8]
LEA RDI,[0x208ba0]
CALL 0x0012aca0
MOV word ptr [RBX],0xffff
MOV qword ptr [RBX + 0x8],-0x1
LEA R12,[RSP + 0x18]
MOV qword ptr [R12 + -0x10],R12
MOV qword ptr [R12 + -0x8],0x0
MOV byte ptr [R12],0x0
LEA R15,[RSP + 0x8]
MOV RDI,R14
MOV RSI,R15
CALL 0x00116840
MOV RDI,qword ptr [R15]
CMP RDI,R12
JZ 0x001299cc
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001166c0
LAB_001299cc:
MOV dword ptr [RBX + 0x30],0xffffffff
MOV qword ptr [RBX + 0x40],0x0
DEC dword ptr [0x00208b68]
ADD RSP,0x28
POP RBX
POP R12
POP R14
POP R15
LAB_001299ec:
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* sessions::destroy(Session*) */
void sessions::destroy(Session *param_1)
{
int1 *local_40;
int8 local_38;
int1 local_30;
int7 uStack_2f;
if (param_1 != (Session *)0x0) {
if (*(long *)(param_1 + 0x40) != 0) {
*(int8 *)(*(long *)(param_1 + 0x40) + 0x30) = 0;
}
if (*(long *)(param_1 + 0x38) != 0) {
entt::basic_registry<entt::entity,std::allocator<entt::entity>>::destroy
((basic_registry<entt::entity,std::allocator<entt::entity>> *)
(*(long *)(param_1 + 0x38) + 0x158),*(int4 *)(param_1 + 0x30));
}
emhash8::
HashMap<std::__cxx11::string,Session*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>>
::erase((HashMap<std::__cxx11::string,Session*,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>>
*)username_map_abi_cxx11_,(string *)(param_1 + 0x10));
emhash8::HashMap<unsigned_long,Session*,std::hash<unsigned_long>,std::equal_to<unsigned_long>>::
erase((HashMap<unsigned_long,Session*,std::hash<unsigned_long>,std::equal_to<unsigned_long>> *)
&identity_map,(ulong *)(param_1 + 8));
*(int2 *)param_1 = 0xffff;
*(int8 *)(param_1 + 8) = 0xffffffffffffffff;
local_38 = 0;
local_30 = 0;
local_40 = &local_30;
std::__cxx11::string::operator=((string *)(param_1 + 0x10),(string *)&local_40);
if (local_40 != &local_30) {
operator_delete(local_40,CONCAT71(uStack_2f,local_30) + 1);
}
*(int4 *)(param_1 + 0x30) = 0xffffffff;
*(int8 *)(param_1 + 0x40) = 0;
_num_players = _num_players + -1;
}
return;
}
| |
25,150 | pvio_socket_is_alive | eloqsql/libmariadb/plugins/pvio/pvio_socket.c | my_bool pvio_socket_is_alive(MARIADB_PVIO *pvio)
{
struct st_pvio_socket *csock= NULL;
#ifndef _WIN32
struct pollfd poll_fd;
#else
FD_SET sfds;
struct timeval tv= {0,0};
#endif
int res;
if (!pvio || !pvio->data)
return 0;
csock= (struct st_pvio_socket *)pvio->data;
#ifndef _WIN32
memset(&poll_fd, 0, sizeof(struct pollfd));
poll_fd.events= POLLPRI | POLLIN;
poll_fd.fd= csock->socket;
res= poll(&poll_fd, 1, 0);
if (res <= 0) /* timeout or error */
return FALSE;
if (!(poll_fd.revents & (POLLIN | POLLPRI)))
return FALSE;
return TRUE;
#else
/* We can't use the WSAPoll function, it's broken :-(
(see Windows 8 Bugs 309411 - WSAPoll does not report failed connections)
Instead we need to use select function:
If TIMEVAL is initialized to {0, 0}, select will return immediately;
this is used to poll the state of the selected sockets.
*/
FD_ZERO(&sfds);
FD_SET(csock->socket, &sfds);
res= select((int)csock->socket + 1, &sfds, NULL, NULL, &tv);
if (res > 0 && FD_ISSET(csock->socket, &sfds))
return TRUE;
return FALSE;
#endif
} | O3 | c | pvio_socket_is_alive:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x2f689
movq (%rdi), %rax
testq %rax, %rax
je 0x2f689
movabsq $0x300000000, %rcx # imm = 0x300000000
leaq -0x10(%rbp), %rdi
movq %rcx, (%rdi)
movl (%rax), %eax
movl %eax, (%rdi)
xorl %ebx, %ebx
movl $0x1, %esi
xorl %edx, %edx
callq 0x136d0
testl %eax, %eax
jle 0x2f68b
testb $0x3, -0xa(%rbp)
setne %bl
jmp 0x2f68b
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| pvio_socket_is_alive:
push rbp
mov rbp, rsp
push rbx
push rax
test rdi, rdi
jz short loc_2F689
mov rax, [rdi]
test rax, rax
jz short loc_2F689
mov rcx, 300000000h
lea rdi, [rbp+var_10]
mov [rdi], rcx
mov eax, [rax]
mov [rdi], eax
xor ebx, ebx
mov esi, 1
xor edx, edx
call _poll
test eax, eax
jle short loc_2F68B
test [rbp+var_A], 3
setnz bl
jmp short loc_2F68B
loc_2F689:
xor ebx, ebx
loc_2F68B:
mov eax, ebx
add rsp, 8
pop rbx
pop rbp
retn
| long long pvio_socket_is_alive(_DWORD **a1)
{
long long v1; // rax
_DWORD *v2; // rax
unsigned int v3; // ebx
long long v5; // [rsp+0h] [rbp-10h] BYREF
v5 = v1;
if ( a1 && (v2 = *a1) != 0LL )
{
v5 = 0x300000000LL;
LODWORD(v5) = *v2;
v3 = 0;
if ( (int)poll(&v5, 1LL, 0LL) > 0 )
LOBYTE(v3) = (v5 & 0x3000000000000LL) != 0;
}
else
{
return 0;
}
return v3;
}
| pvio_socket_is_alive:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
TEST RDI,RDI
JZ 0x0012f689
MOV RAX,qword ptr [RDI]
TEST RAX,RAX
JZ 0x0012f689
MOV RCX,0x300000000
LEA RDI,[RBP + -0x10]
MOV qword ptr [RDI],RCX
MOV EAX,dword ptr [RAX]
MOV dword ptr [RDI],EAX
XOR EBX,EBX
MOV ESI,0x1
XOR EDX,EDX
CALL 0x001136d0
TEST EAX,EAX
JLE 0x0012f68b
TEST byte ptr [RBP + -0xa],0x3
SETNZ BL
JMP 0x0012f68b
LAB_0012f689:
XOR EBX,EBX
LAB_0012f68b:
MOV EAX,EBX
ADD RSP,0x8
POP RBX
POP RBP
RET
|
bool pvio_socket_is_alive(int8 *param_1)
{
int iVar1;
bool bVar2;
pollfd local_18;
if ((param_1 == (int8 *)0x0) || ((int *)*param_1 == (int *)0x0)) {
bVar2 = false;
}
else {
local_18.events = 3;
local_18.revents = 0;
local_18.fd = *(int *)*param_1;
bVar2 = false;
iVar1 = poll(&local_18,1,0);
if (0 < iVar1) {
bVar2 = ((ulong)local_18 & 0x3000000000000) != 0;
}
}
return bVar2;
}
| |
25,151 | auth_old_password | eloqsql/libmariadb/plugins/auth/old_password.c | static int auth_old_password(MYSQL_PLUGIN_VIO *vio, MYSQL *mysql)
{
uchar *pkt;
int pkt_len;
if (((MCPVIO_EXT *)vio)->mysql_change_user)
{
/*
in mysql_change_user() the client sends the first packet.
we use the old scramble.
*/
pkt= (uchar*)mysql->scramble_buff;
}
else
{
/* read the scramble */
if ((pkt_len= vio->read_packet(vio, &pkt)) < 0)
return CR_ERROR;
if (pkt_len != SCRAMBLE_LENGTH_323 + 1 &&
pkt_len != SCRAMBLE_LENGTH + 1)
return CR_SERVER_HANDSHAKE_ERR;
/* save it in MYSQL */
memmove(mysql->scramble_buff, pkt, pkt_len - 1);
mysql->scramble_buff[pkt_len - 1] = 0;
}
if (mysql && mysql->passwd[0])
{
char scrambled[SCRAMBLE_LENGTH_323 + 1];
ma_scramble_323(scrambled, (char*)pkt, mysql->passwd);
if (vio->write_packet(vio, (uchar*)scrambled, SCRAMBLE_LENGTH_323 + 1))
return CR_ERROR;
}
else
if (vio->write_packet(vio, 0, 0)) /* no password */
return CR_ERROR;
return CR_OK;
} | O3 | c | auth_old_password:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x28(%rbp)
cmpb $0x0, 0x48(%rdi)
je 0x189a2
leaq 0x48e(%r14), %rax
movq %rax, -0x40(%rbp)
testq %r14, %r14
jne 0x189e2
jmp 0x18a15
leaq -0x40(%rbp), %rsi
movq %rbx, %rdi
callq *(%rbx)
testl %eax, %eax
js 0x18a10
movl %eax, %r12d
cmpl $0x15, %eax
je 0x189c3
movl $0x7dc, %r15d # imm = 0x7DC
cmpl $0x9, %r12d
jne 0x18a2c
leaq 0x48e(%r14), %rdi
movq -0x40(%rbp), %rsi
decl %r12d
movq %r12, %rdx
callq 0x17950
movb $0x0, 0x48e(%r14,%r12)
movq 0x2c0(%r14), %rdx
cmpb $0x0, (%rdx)
je 0x18a15
movq -0x40(%rbp), %rsi
leaq -0x31(%rbp), %r14
movq %r14, %rdi
callq 0x259aa
movq %rbx, %rdi
movq %r14, %rsi
movl $0x9, %edx
callq *0x8(%rbx)
testl %eax, %eax
je 0x18a26
xorl %r15d, %r15d
jmp 0x18a2c
xorl %r15d, %r15d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq *0x8(%rbx)
testl %eax, %eax
jne 0x18a2c
movl $0xffffffff, %r15d # imm = 0xFFFFFFFF
movq %fs:0x28, %rax
cmpq -0x28(%rbp), %rax
jne 0x18a4b
movl %r15d, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x17690
| auth_old_password:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 20h
mov r14, rsi
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_28], rax
cmp byte ptr [rdi+48h], 0
jz short loc_189A2
lea rax, [r14+48Eh]
mov [rbp+var_40], rax
test r14, r14
jnz short loc_189E2
jmp short loc_18A15
loc_189A2:
lea rsi, [rbp+var_40]
mov rdi, rbx
call qword ptr [rbx]
test eax, eax
js short loc_18A10
mov r12d, eax
cmp eax, 15h
jz short loc_189C3
mov r15d, 7DCh
cmp r12d, 9
jnz short loc_18A2C
loc_189C3:
lea rdi, [r14+48Eh]
mov rsi, [rbp+var_40]
dec r12d
mov rdx, r12
call _memmove
mov byte ptr [r14+r12+48Eh], 0
loc_189E2:
mov rdx, [r14+2C0h]
cmp byte ptr [rdx], 0
jz short loc_18A15
mov rsi, [rbp+var_40]
lea r14, [rbp+var_31]
mov rdi, r14
call ma_scramble_323
mov rdi, rbx
mov rsi, r14
mov edx, 9
call qword ptr [rbx+8]
test eax, eax
jz short loc_18A26
loc_18A10:
xor r15d, r15d
jmp short loc_18A2C
loc_18A15:
xor r15d, r15d
mov rdi, rbx
xor esi, esi
xor edx, edx
call qword ptr [rbx+8]
test eax, eax
jnz short loc_18A2C
loc_18A26:
mov r15d, 0FFFFFFFFh
loc_18A2C:
mov rax, fs:28h
cmp rax, [rbp+var_28]
jnz short loc_18A4B
mov eax, r15d
add rsp, 20h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_18A4B:
call ___stack_chk_fail
| long long auth_old_password(long long a1, long long a2)
{
int v2; // eax
unsigned int v3; // r15d
unsigned int v4; // r12d
long long v6; // [rsp+0h] [rbp-40h] BYREF
_BYTE v7[9]; // [rsp+Fh] [rbp-31h] BYREF
unsigned long long v8; // [rsp+18h] [rbp-28h]
v8 = __readfsqword(0x28u);
if ( !*(_BYTE *)(a1 + 72) )
{
v2 = (*(long long ( **)(long long, long long *))a1)(a1, &v6);
if ( v2 < 0 )
return 0;
if ( v2 != 21 )
{
v3 = 2012;
if ( v2 != 9 )
return v3;
}
v4 = v2 - 1;
memmove(a2 + 1166, v6, (unsigned int)(v2 - 1));
*(_BYTE *)(a2 + v4 + 1166) = 0;
LABEL_8:
if ( !**(_BYTE **)(a2 + 704) )
goto LABEL_11;
ma_scramble_323(v7, v6);
if ( !(*(unsigned int ( **)(long long, _BYTE *, long long))(a1 + 8))(a1, v7, 9LL) )
return (unsigned int)-1;
return 0;
}
v6 = a2 + 1166;
if ( a2 )
goto LABEL_8;
LABEL_11:
v3 = 0;
if ( !(*(unsigned int ( **)(long long, _QWORD, _QWORD))(a1 + 8))(a1, 0LL, 0LL) )
return (unsigned int)-1;
return v3;
}
| auth_old_password:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x20
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x28],RAX
CMP byte ptr [RDI + 0x48],0x0
JZ 0x001189a2
LEA RAX,[R14 + 0x48e]
MOV qword ptr [RBP + -0x40],RAX
TEST R14,R14
JNZ 0x001189e2
JMP 0x00118a15
LAB_001189a2:
LEA RSI,[RBP + -0x40]
MOV RDI,RBX
CALL qword ptr [RBX]
TEST EAX,EAX
JS 0x00118a10
MOV R12D,EAX
CMP EAX,0x15
JZ 0x001189c3
MOV R15D,0x7dc
CMP R12D,0x9
JNZ 0x00118a2c
LAB_001189c3:
LEA RDI,[R14 + 0x48e]
MOV RSI,qword ptr [RBP + -0x40]
DEC R12D
MOV RDX,R12
CALL 0x00117950
MOV byte ptr [R14 + R12*0x1 + 0x48e],0x0
LAB_001189e2:
MOV RDX,qword ptr [R14 + 0x2c0]
CMP byte ptr [RDX],0x0
JZ 0x00118a15
MOV RSI,qword ptr [RBP + -0x40]
LEA R14,[RBP + -0x31]
MOV RDI,R14
CALL 0x001259aa
MOV RDI,RBX
MOV RSI,R14
MOV EDX,0x9
CALL qword ptr [RBX + 0x8]
TEST EAX,EAX
JZ 0x00118a26
LAB_00118a10:
XOR R15D,R15D
JMP 0x00118a2c
LAB_00118a15:
XOR R15D,R15D
MOV RDI,RBX
XOR ESI,ESI
XOR EDX,EDX
CALL qword ptr [RBX + 0x8]
TEST EAX,EAX
JNZ 0x00118a2c
LAB_00118a26:
MOV R15D,0xffffffff
LAB_00118a2c:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x28]
JNZ 0x00118a4b
MOV EAX,R15D
ADD RSP,0x20
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_00118a4b:
CALL 0x00117690
|
int8 auth_old_password(int8 *param_1,long param_2)
{
int iVar1;
int8 uVar2;
long in_FS_OFFSET;
void *local_48;
int1 local_39 [9];
long local_30;
local_30 = *(long *)(in_FS_OFFSET + 0x28);
if (*(char *)(param_1 + 9) == '\0') {
iVar1 = (*(code *)*param_1)(param_1,&local_48);
if (-1 < iVar1) {
if ((iVar1 != 0x15) && (uVar2 = 0x7dc, iVar1 != 9)) goto LAB_00118a2c;
memmove((void *)(param_2 + 0x48e),local_48,(ulong)(iVar1 - 1));
*(int1 *)(param_2 + 0x48e + (ulong)(iVar1 - 1)) = 0;
goto LAB_001189e2;
}
LAB_00118a10:
uVar2 = 0;
goto LAB_00118a2c;
}
local_48 = (void *)(param_2 + 0x48e);
if (param_2 == 0) {
LAB_00118a15:
uVar2 = 0;
iVar1 = (*(code *)param_1[1])(param_1,0,0);
if (iVar1 != 0) goto LAB_00118a2c;
}
else {
LAB_001189e2:
if (**(char **)(param_2 + 0x2c0) == '\0') goto LAB_00118a15;
ma_scramble_323(local_39,local_48);
iVar1 = (*(code *)param_1[1])(param_1,local_39,9);
if (iVar1 != 0) goto LAB_00118a10;
}
uVar2 = 0xffffffff;
LAB_00118a2c:
if (*(long *)(in_FS_OFFSET + 0x28) != local_30) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return uVar2;
}
| |
25,152 | my_strntoull10rnd_mb2_or_mb4 | eloqsql/strings/ctype-ucs2.c | static ulonglong
my_strntoull10rnd_mb2_or_mb4(CHARSET_INFO *cs,
const char *nptr, size_t length,
int unsign_fl,
char **endptr, int *err)
{
char buf[256], *b= buf;
ulonglong res;
const uchar *end, *s= (const uchar*) nptr;
my_wc_t wc;
my_charset_conv_mb_wc mb_wc= cs->cset->mb_wc;
int cnv;
/* Cut too long strings */
if (length >= sizeof(buf))
length= sizeof(buf)-1;
end= s + length;
while ((cnv= mb_wc(cs, &wc, s, end)) > 0)
{
s+= cnv;
if (wc > (int) (uchar) 'e' || !wc)
break; /* Can't be a number part */
*b++= (char) wc;
}
res= my_strntoull10rnd_8bit(cs, buf, b - buf, unsign_fl, endptr, err);
*endptr= (char*) nptr + cs->mbminlen * (size_t) (*endptr - buf);
return res;
} | O3 | c | my_strntoull10rnd_mb2_or_mb4:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp # imm = 0x138
movq %r9, -0x150(%rbp)
movq %r8, -0x158(%rbp)
movl %ecx, -0x134(%rbp)
movq %rsi, %rcx
movq %rdi, %r12
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq 0xb8(%rdi), %rax
movq 0x28(%rax), %rbx
movl $0xff, %r13d
cmpq %r13, %rdx
cmovbq %rdx, %r13
addq %rsi, %r13
leaq -0x148(%rbp), %rsi
movq %rcx, -0x140(%rbp)
movq %rcx, %rdx
movq %r13, %rcx
callq *%rbx
leaq -0x130(%rbp), %r15
testl %eax, %eax
jle 0x46d0f
movq -0x140(%rbp), %r14
movq -0x148(%rbp), %rcx
leaq -0x1(%rcx), %rdx
cmpq $0x64, %rdx
ja 0x46d0f
movl %eax, %eax
addq %rax, %r14
movb %cl, (%r15)
incq %r15
movq %r12, %rdi
leaq -0x148(%rbp), %rsi
movq %r14, %rdx
movq %r13, %rcx
callq *%rbx
testl %eax, %eax
jg 0x46cdd
leaq -0x130(%rbp), %r14
subq %r14, %r15
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
movl -0x134(%rbp), %ecx
movq -0x158(%rbp), %rbx
movq %rbx, %r8
movq -0x150(%rbp), %r9
callq 0x38958
movl 0x98(%r12), %ecx
movq (%rbx), %rdx
subq %r14, %rdx
imulq %rcx, %rdx
movq -0x140(%rbp), %rcx
addq %rdx, %rcx
movq %rcx, (%rbx)
movq %fs:0x28, %rcx
cmpq -0x30(%rbp), %rcx
jne 0x46d7e
addq $0x138, %rsp # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x24340
| my_strntoull10rnd_mb2_or_mb4:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 138h
mov [rbp+var_150], r9
mov [rbp+var_158], r8
mov [rbp+var_134], ecx
mov rcx, rsi
mov r12, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov rax, [rdi+0B8h]
mov rbx, [rax+28h]
mov r13d, 0FFh
cmp rdx, r13
cmovb r13, rdx
add r13, rsi
lea rsi, [rbp+var_148]
mov [rbp+var_140], rcx
mov rdx, rcx
mov rcx, r13
call rbx
lea r15, [rbp+var_130]
test eax, eax
jle short loc_46D0F
mov r14, [rbp+var_140]
loc_46CDD:
mov rcx, [rbp+var_148]
lea rdx, [rcx-1]
cmp rdx, 64h ; 'd'
ja short loc_46D0F
mov eax, eax
add r14, rax
mov [r15], cl
inc r15
mov rdi, r12
lea rsi, [rbp+var_148]
mov rdx, r14
mov rcx, r13
call rbx
test eax, eax
jg short loc_46CDD
loc_46D0F:
lea r14, [rbp+var_130]
sub r15, r14
mov rdi, r12
mov rsi, r14
mov rdx, r15
mov ecx, [rbp+var_134]
mov rbx, [rbp+var_158]
mov r8, rbx
mov r9, [rbp+var_150]
call my_strntoull10rnd_8bit
mov ecx, [r12+98h]
mov rdx, [rbx]
sub rdx, r14
imul rdx, rcx
mov rcx, [rbp+var_140]
add rcx, rdx
mov [rbx], rcx
mov rcx, fs:28h
cmp rcx, [rbp+var_30]
jnz short loc_46D7E
add rsp, 138h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_46D7E:
call ___stack_chk_fail
| long long my_strntoull10rnd_mb2_or_mb4(
long long a1,
long long a2,
unsigned long long a3,
int a4,
unsigned __int8 **a5,
int *a6)
{
long long ( *v6)(long long, long long *, long long, long long); // rbx
long long v7; // r13
long long v8; // r13
int v9; // eax
unsigned __int8 *v10; // r15
long long v11; // r14
long long result; // rax
long long v15; // [rsp+18h] [rbp-148h] BYREF
long long v16; // [rsp+20h] [rbp-140h]
int v17; // [rsp+2Ch] [rbp-134h]
unsigned __int8 v18[256]; // [rsp+30h] [rbp-130h] BYREF
unsigned long long v19; // [rsp+130h] [rbp-30h]
v17 = a4;
v19 = __readfsqword(0x28u);
v6 = *(long long ( **)(long long, long long *, long long, long long))(*(_QWORD *)(a1 + 184) + 40LL);
v7 = 255LL;
if ( a3 < 0xFF )
v7 = a3;
v8 = a2 + v7;
v16 = a2;
v9 = v6(a1, &v15, a2, v8);
v10 = v18;
if ( v9 > 0 )
{
v11 = v16;
do
{
if ( (unsigned long long)(v15 - 1) > 0x64 )
break;
v11 += (unsigned int)v9;
*v10++ = v15;
v9 = v6(a1, &v15, v11, v8);
}
while ( v9 > 0 );
}
result = my_strntoull10rnd_8bit(a1, v18, v10 - v18, v17, a5, a6);
*a5 = (unsigned __int8 *)(*(unsigned int *)(a1 + 152) * (*a5 - v18) + v16);
return result;
}
| my_strntoull10rnd_mb2_or_mb4:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x138
MOV qword ptr [RBP + -0x150],R9
MOV qword ptr [RBP + -0x158],R8
MOV dword ptr [RBP + -0x134],ECX
MOV RCX,RSI
MOV R12,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RDI + 0xb8]
MOV RBX,qword ptr [RAX + 0x28]
MOV R13D,0xff
CMP RDX,R13
CMOVC R13,RDX
ADD R13,RSI
LEA RSI,[RBP + -0x148]
MOV qword ptr [RBP + -0x140],RCX
MOV RDX,RCX
MOV RCX,R13
CALL RBX
LEA R15,[RBP + -0x130]
TEST EAX,EAX
JLE 0x00146d0f
MOV R14,qword ptr [RBP + -0x140]
LAB_00146cdd:
MOV RCX,qword ptr [RBP + -0x148]
LEA RDX,[RCX + -0x1]
CMP RDX,0x64
JA 0x00146d0f
MOV EAX,EAX
ADD R14,RAX
MOV byte ptr [R15],CL
INC R15
MOV RDI,R12
LEA RSI,[RBP + -0x148]
MOV RDX,R14
MOV RCX,R13
CALL RBX
TEST EAX,EAX
JG 0x00146cdd
LAB_00146d0f:
LEA R14,[RBP + -0x130]
SUB R15,R14
MOV RDI,R12
MOV RSI,R14
MOV RDX,R15
MOV ECX,dword ptr [RBP + -0x134]
MOV RBX,qword ptr [RBP + -0x158]
MOV R8,RBX
MOV R9,qword ptr [RBP + -0x150]
CALL 0x00138958
MOV ECX,dword ptr [R12 + 0x98]
MOV RDX,qword ptr [RBX]
SUB RDX,R14
IMUL RDX,RCX
MOV RCX,qword ptr [RBP + -0x140]
ADD RCX,RDX
MOV qword ptr [RBX],RCX
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x30]
JNZ 0x00146d7e
ADD RSP,0x138
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00146d7e:
CALL 0x00124340
|
void my_strntoull10rnd_mb2_or_mb4
(long param_1,long param_2,ulong param_3,int4 param_4,long *param_5,
int8 param_6)
{
code *pcVar1;
uint uVar2;
ulong uVar3;
long lVar4;
int1 *puVar5;
long in_FS_OFFSET;
long local_150;
long local_148;
int4 local_13c;
int1 local_138 [256];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
pcVar1 = *(code **)(*(long *)(param_1 + 0xb8) + 0x28);
uVar3 = 0xff;
if (param_3 < 0xff) {
uVar3 = param_3;
}
local_148 = param_2;
local_13c = param_4;
uVar2 = (*pcVar1)(param_1,&local_150,param_2,uVar3 + param_2);
puVar5 = local_138;
lVar4 = local_148;
while ((0 < (int)uVar2 && (local_150 - 1U < 0x65))) {
lVar4 = lVar4 + (ulong)uVar2;
*puVar5 = (char)local_150;
puVar5 = puVar5 + 1;
uVar2 = (*pcVar1)(param_1,&local_150,lVar4,uVar3 + param_2);
}
my_strntoull10rnd_8bit(param_1,local_138,(long)puVar5 - (long)local_138,local_13c,param_5,param_6)
;
*param_5 = local_148 + (*param_5 - (long)local_138) * (ulong)*(uint *)(param_1 + 0x98);
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
25,153 | JS_CopyDataProperties | bluesky950520[P]quickjs/quickjs.c | static __exception int JS_CopyDataProperties(JSContext *ctx,
JSValue target,
JSValue source,
JSValue excluded,
BOOL setprop)
{
JSPropertyEnum *tab_atom;
JSValue val;
uint32_t i, tab_atom_count;
JSObject *p;
JSObject *pexcl = NULL;
int ret, gpn_flags;
JSPropertyDescriptor desc;
BOOL is_enumerable;
if (JS_VALUE_GET_TAG(source) != JS_TAG_OBJECT)
return 0;
if (JS_VALUE_GET_TAG(excluded) == JS_TAG_OBJECT)
pexcl = JS_VALUE_GET_OBJ(excluded);
p = JS_VALUE_GET_OBJ(source);
gpn_flags = JS_GPN_STRING_MASK | JS_GPN_SYMBOL_MASK | JS_GPN_ENUM_ONLY;
if (p->is_exotic) {
const JSClassExoticMethods *em = ctx->rt->class_array[p->class_id].exotic;
/* cannot use JS_GPN_ENUM_ONLY with e.g. proxies because it
introduces a visible change */
if (em && em->get_own_property_names) {
gpn_flags &= ~JS_GPN_ENUM_ONLY;
}
}
if (JS_GetOwnPropertyNamesInternal(ctx, &tab_atom, &tab_atom_count, p,
gpn_flags))
return -1;
for (i = 0; i < tab_atom_count; i++) {
if (pexcl) {
ret = JS_GetOwnPropertyInternal(ctx, NULL, pexcl, tab_atom[i].atom);
if (ret) {
if (ret < 0)
goto exception;
continue;
}
}
if (!(gpn_flags & JS_GPN_ENUM_ONLY)) {
/* test if the property is enumerable */
ret = JS_GetOwnPropertyInternal(ctx, &desc, p, tab_atom[i].atom);
if (ret < 0)
goto exception;
if (!ret)
continue;
is_enumerable = (desc.flags & JS_PROP_ENUMERABLE) != 0;
js_free_desc(ctx, &desc);
if (!is_enumerable)
continue;
}
val = JS_GetProperty(ctx, source, tab_atom[i].atom);
if (JS_IsException(val))
goto exception;
if (setprop)
ret = JS_SetProperty(ctx, target, tab_atom[i].atom, val);
else
ret = JS_DefinePropertyValue(ctx, target, tab_atom[i].atom, val,
JS_PROP_C_W_E);
if (ret < 0)
goto exception;
}
js_free_prop_enum(ctx, tab_atom, tab_atom_count);
return 0;
exception:
js_free_prop_enum(ctx, tab_atom, tab_atom_count);
return -1;
} | O0 | c | JS_CopyDataProperties:
subq $0xd8, %rsp
leaq 0xe0(%rsp), %rax
movq %rax, 0x8(%rsp)
movq %rsi, 0xc0(%rsp)
movq %rdx, 0xc8(%rsp)
movq %rcx, 0xb0(%rsp)
movq %r8, 0xb8(%rsp)
movq %rdi, 0xa8(%rsp)
movl %r9d, 0xa4(%rsp)
movq $0x0, 0x70(%rsp)
movq 0xb8(%rsp), %rax
cmpl $-0x1, %eax
je 0x68eea
movl $0x0, 0xd4(%rsp)
jmp 0x69229
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
cmpl $-0x1, %eax
jne 0x68f05
movq 0x8(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x70(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x78(%rsp)
movl $0x13, 0x68(%rsp)
movq 0x78(%rsp), %rax
movb 0x5(%rax), %al
shrb $0x2, %al
andb $0x1, %al
cmpb $0x0, %al
je 0x68f78
movq 0xa8(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x80(%rax), %rax
movq 0x78(%rsp), %rcx
movzwl 0x6(%rcx), %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq 0x20(%rax), %rax
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0x68f76
movq 0x20(%rsp), %rax
cmpq $0x0, 0x8(%rax)
je 0x68f76
movl 0x68(%rsp), %eax
andl $-0x11, %eax
movl %eax, 0x68(%rsp)
jmp 0x68f78
movq 0xa8(%rsp), %rdi
movq 0x78(%rsp), %rcx
movl 0x68(%rsp), %r8d
leaq 0x98(%rsp), %rsi
leaq 0x80(%rsp), %rdx
callq 0x2e320
cmpl $0x0, %eax
je 0x68fb4
movl $0xffffffff, 0xd4(%rsp) # imm = 0xFFFFFFFF
jmp 0x69229
movl $0x0, 0x84(%rsp)
movl 0x84(%rsp), %eax
cmpl 0x80(%rsp), %eax
jae 0x691d9
cmpq $0x0, 0x70(%rsp)
je 0x69022
movq 0xa8(%rsp), %rdi
movq 0x70(%rsp), %rdx
movq 0x98(%rsp), %rax
movl 0x84(%rsp), %ecx
movl 0x4(%rax,%rcx,8), %ecx
xorl %eax, %eax
movl %eax, %esi
callq 0x2ef00
movl %eax, 0x6c(%rsp)
cmpl $0x0, 0x6c(%rsp)
je 0x69020
cmpl $0x0, 0x6c(%rsp)
jge 0x6901b
jmp 0x69202
jmp 0x691c3
jmp 0x69022
movl 0x68(%rsp), %eax
andl $0x10, %eax
cmpl $0x0, %eax
jne 0x690aa
movq 0xa8(%rsp), %rdi
movq 0x78(%rsp), %rdx
movq 0x98(%rsp), %rax
movl 0x84(%rsp), %ecx
movl 0x4(%rax,%rcx,8), %ecx
leaq 0x30(%rsp), %rsi
callq 0x2ef00
movl %eax, 0x6c(%rsp)
cmpl $0x0, 0x6c(%rsp)
jge 0x69068
jmp 0x69202
cmpl $0x0, 0x6c(%rsp)
jne 0x69074
jmp 0x691c3
movl 0x30(%rsp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, 0x2c(%rsp)
movq 0xa8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x5f740
cmpl $0x0, 0x2c(%rsp)
jne 0x690a8
jmp 0x691c3
jmp 0x690aa
movq 0xa8(%rsp), %rdi
movq 0x98(%rsp), %rax
movl 0x84(%rsp), %ecx
movl 0x4(%rax,%rcx,8), %ecx
movq 0xb0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
callq 0x28ac0
movq %rax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x88(%rsp), %rdi
movq 0x90(%rsp), %rsi
callq 0x22a00
cmpl $0x0, %eax
je 0x6911d
jmp 0x69202
cmpl $0x0, 0xa4(%rsp)
je 0x6916d
movq 0xa8(%rsp), %rdi
movq 0x98(%rsp), %rax
movl 0x84(%rsp), %ecx
movl 0x4(%rax,%rcx,8), %ecx
movq 0xc0(%rsp), %rsi
movq 0xc8(%rsp), %rdx
movq 0x88(%rsp), %r8
movq 0x90(%rsp), %r9
callq 0x30c40
movl %eax, 0x6c(%rsp)
jmp 0x691b8
movq 0xa8(%rsp), %rdi
movq 0x98(%rsp), %rax
movl 0x84(%rsp), %ecx
movl 0x4(%rax,%rcx,8), %ecx
movq 0xc0(%rsp), %rsi
movq 0xc8(%rsp), %rdx
movq 0x88(%rsp), %r8
movq 0x90(%rsp), %r9
movl $0x7, (%rsp)
callq 0x35ef0
movl %eax, 0x6c(%rsp)
cmpl $0x0, 0x6c(%rsp)
jge 0x691c1
jmp 0x69202
jmp 0x691c3
movl 0x84(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x84(%rsp)
jmp 0x68fbf
movq 0xa8(%rsp), %rdi
movq 0x98(%rsp), %rsi
movl 0x80(%rsp), %edx
callq 0x2f780
movl $0x0, 0xd4(%rsp)
jmp 0x69229
movq 0xa8(%rsp), %rdi
movq 0x98(%rsp), %rsi
movl 0x80(%rsp), %edx
callq 0x2f780
movl $0xffffffff, 0xd4(%rsp) # imm = 0xFFFFFFFF
movl 0xd4(%rsp), %eax
addq $0xd8, %rsp
retq
nopl (%rax,%rax)
| JS_CopyDataProperties:
sub rsp, 0D8h
lea rax, [rsp+0D8h+arg_0]
mov [rsp+0D8h+var_D0], rax
mov [rsp+0D8h+var_18], rsi
mov [rsp+0D8h+var_10], rdx
mov [rsp+0D8h+var_28], rcx
mov [rsp+0D8h+var_20], r8
mov [rsp+0D8h+var_30], rdi
mov [rsp+0D8h+var_34], r9d
mov [rsp+0D8h+var_68], 0
mov rax, [rsp+0D8h+var_20]
cmp eax, 0FFFFFFFFh
jz short loc_68EEA
mov [rsp+0D8h+var_4], 0
jmp loc_69229
loc_68EEA:
mov rax, [rsp+0D8h+var_D0]
mov rax, [rax+8]
cmp eax, 0FFFFFFFFh
jnz short loc_68F05
mov rax, [rsp+0D8h+var_D0]
mov rax, [rax]
mov [rsp+0D8h+var_68], rax
loc_68F05:
mov rax, [rsp+0D8h+var_28]
mov [rsp+0D8h+var_60], rax
mov [rsp+0D8h+var_70], 13h
mov rax, [rsp+0D8h+var_60]
mov al, [rax+5]
shr al, 2
and al, 1
cmp al, 0
jz short loc_68F78
mov rax, [rsp+0D8h+var_30]
mov rax, [rax+18h]
mov rax, [rax+80h]
mov rcx, [rsp+0D8h+var_60]
movzx ecx, word ptr [rcx+6]
imul rcx, 28h ; '('
add rax, rcx
mov rax, [rax+20h]
mov [rsp+0D8h+var_B8], rax
cmp [rsp+0D8h+var_B8], 0
jz short loc_68F76
mov rax, [rsp+0D8h+var_B8]
cmp qword ptr [rax+8], 0
jz short loc_68F76
mov eax, [rsp+0D8h+var_70]
and eax, 0FFFFFFEFh
mov [rsp+0D8h+var_70], eax
loc_68F76:
jmp short $+2
loc_68F78:
mov rdi, [rsp+0D8h+var_30]
mov rcx, [rsp+0D8h+var_60]
mov r8d, [rsp+0D8h+var_70]
lea rsi, [rsp+0D8h+var_40]
lea rdx, [rsp+0D8h+var_58]
call JS_GetOwnPropertyNamesInternal
cmp eax, 0
jz short loc_68FB4
mov [rsp+0D8h+var_4], 0FFFFFFFFh
jmp loc_69229
loc_68FB4:
mov [rsp+0D8h+var_54], 0
loc_68FBF:
mov eax, [rsp+0D8h+var_54]
cmp eax, [rsp+0D8h+var_58]
jnb loc_691D9
cmp [rsp+0D8h+var_68], 0
jz short loc_69022
mov rdi, [rsp+0D8h+var_30]
mov rdx, [rsp+0D8h+var_68]
mov rax, [rsp+0D8h+var_40]
mov ecx, [rsp+0D8h+var_54]
mov ecx, [rax+rcx*8+4]
xor eax, eax
mov esi, eax
call JS_GetOwnPropertyInternal
mov [rsp+0D8h+var_6C], eax
cmp [rsp+0D8h+var_6C], 0
jz short loc_69020
cmp [rsp+0D8h+var_6C], 0
jge short loc_6901B
jmp loc_69202
loc_6901B:
jmp loc_691C3
loc_69020:
jmp short $+2
loc_69022:
mov eax, [rsp+0D8h+var_70]
and eax, 10h
cmp eax, 0
jnz short loc_690AA
mov rdi, [rsp+0D8h+var_30]
mov rdx, [rsp+0D8h+var_60]
mov rax, [rsp+0D8h+var_40]
mov ecx, [rsp+0D8h+var_54]
mov ecx, [rax+rcx*8+4]
lea rsi, [rsp+0D8h+var_A8]
call JS_GetOwnPropertyInternal
mov [rsp+0D8h+var_6C], eax
cmp [rsp+0D8h+var_6C], 0
jge short loc_69068
jmp loc_69202
loc_69068:
cmp [rsp+0D8h+var_6C], 0
jnz short loc_69074
jmp loc_691C3
loc_69074:
mov eax, [rsp+0D8h+var_A8]
and eax, 4
cmp eax, 0
setnz al
and al, 1
movzx eax, al
mov [rsp+0D8h+var_AC], eax
mov rdi, [rsp+0D8h+var_30]
lea rsi, [rsp+0D8h+var_A8]
call js_free_desc
cmp [rsp+0D8h+var_AC], 0
jnz short loc_690A8
jmp loc_691C3
loc_690A8:
jmp short $+2
loc_690AA:
mov rdi, [rsp+0D8h+var_30]
mov rax, [rsp+0D8h+var_40]
mov ecx, [rsp+0D8h+var_54]
mov ecx, [rax+rcx*8+4]
mov rsi, [rsp+0D8h+var_28]
mov rdx, [rsp+0D8h+var_20]
call JS_GetProperty
mov [rsp+0D8h+var_C8], rax
mov [rsp+0D8h+var_C0], rdx
mov rax, [rsp+0D8h+var_C8]
mov [rsp+0D8h+var_50], rax
mov rax, [rsp+0D8h+var_C0]
mov [rsp+0D8h+var_48], rax
mov rdi, [rsp+0D8h+var_50]
mov rsi, [rsp+0D8h+var_48]
call JS_IsException_1
cmp eax, 0
jz short loc_6911D
jmp loc_69202
loc_6911D:
cmp [rsp+0D8h+var_34], 0
jz short loc_6916D
mov rdi, [rsp+0D8h+var_30]
mov rax, [rsp+0D8h+var_40]
mov ecx, [rsp+0D8h+var_54]
mov ecx, [rax+rcx*8+4]
mov rsi, [rsp+0D8h+var_18]
mov rdx, [rsp+0D8h+var_10]
mov r8, [rsp+0D8h+var_50]
mov r9, [rsp+0D8h+var_48]
call JS_SetProperty
mov [rsp+0D8h+var_6C], eax
jmp short loc_691B8
loc_6916D:
mov rdi, [rsp+0D8h+var_30]
mov rax, [rsp+0D8h+var_40]
mov ecx, [rsp+0D8h+var_54]
mov ecx, [rax+rcx*8+4]
mov rsi, [rsp+0D8h+var_18]
mov rdx, [rsp+0D8h+var_10]
mov r8, [rsp+0D8h+var_50]
mov r9, [rsp+0D8h+var_48]
mov [rsp+0D8h+var_D8], 7
call JS_DefinePropertyValue
mov [rsp+0D8h+var_6C], eax
loc_691B8:
cmp [rsp+0D8h+var_6C], 0
jge short loc_691C1
jmp short loc_69202
loc_691C1:
jmp short $+2
loc_691C3:
mov eax, [rsp+0D8h+var_54]
add eax, 1
mov [rsp+0D8h+var_54], eax
jmp loc_68FBF
loc_691D9:
mov rdi, [rsp+0D8h+var_30]
mov rsi, [rsp+0D8h+var_40]
mov edx, [rsp+0D8h+var_58]
call js_free_prop_enum
mov [rsp+0D8h+var_4], 0
jmp short loc_69229
loc_69202:
mov rdi, [rsp+0D8h+var_30]
mov rsi, [rsp+0D8h+var_40]
mov edx, [rsp+0D8h+var_58]
call js_free_prop_enum
mov [rsp+0D8h+var_4], 0FFFFFFFFh
loc_69229:
mov eax, [rsp+0D8h+var_4]
add rsp, 0D8h
retn
| long long JS_CopyDataProperties(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
int a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
double a11,
double a12,
__m128 a13,
__m128 a14,
long long a15,
int a16)
{
long long v16; // rdx
__m128 v17; // xmm4
__m128 v18; // xmm5
long long v20; // [rsp+20h] [rbp-B8h]
BOOL v21; // [rsp+2Ch] [rbp-ACh]
long long v22[7]; // [rsp+30h] [rbp-A8h] BYREF
int v23; // [rsp+68h] [rbp-70h]
int OwnPropertyInternal; // [rsp+6Ch] [rbp-6Ch]
long long v25; // [rsp+70h] [rbp-68h]
long long v26; // [rsp+78h] [rbp-60h]
unsigned int v27; // [rsp+80h] [rbp-58h] BYREF
unsigned int i; // [rsp+84h] [rbp-54h]
_DWORD *Property; // [rsp+88h] [rbp-50h]
long long v30; // [rsp+90h] [rbp-48h]
long long v31; // [rsp+98h] [rbp-40h] BYREF
int v32; // [rsp+A4h] [rbp-34h]
long long v33; // [rsp+A8h] [rbp-30h]
long long v34; // [rsp+B0h] [rbp-28h]
long long v35; // [rsp+B8h] [rbp-20h]
long long v36; // [rsp+C0h] [rbp-18h]
long long v37; // [rsp+C8h] [rbp-10h]
v36 = a2;
v37 = a3;
v34 = a4;
v35 = a5;
v33 = a1;
v32 = a6;
v25 = 0LL;
if ( (_DWORD)a5 == -1 )
{
if ( a16 == -1 )
v25 = a15;
v26 = v34;
v23 = 19;
if ( (*(_BYTE *)(v34 + 5) & 4) != 0 )
{
v20 = *(_QWORD *)(40LL * *(unsigned __int16 *)(v26 + 6) + *(_QWORD *)(*(_QWORD *)(v33 + 24) + 128LL) + 32);
if ( v20 )
{
if ( *(_QWORD *)(v20 + 8) )
v23 &= ~0x10u;
}
}
if ( !(unsigned int)JS_GetOwnPropertyNamesInternal(v33, &v31, &v27, v26, v23) )
{
for ( i = 0; ; ++i )
{
if ( i >= v27 )
{
js_free_prop_enum(v33, v31, v27);
return 0;
}
if ( v25
&& (OwnPropertyInternal = JS_GetOwnPropertyInternal(v33, 0LL, v25, *(_DWORD *)(v31 + 8LL * i + 4))) != 0 )
{
if ( OwnPropertyInternal < 0 )
goto LABEL_28;
}
else
{
if ( (v23 & 0x10) != 0 )
goto LABEL_25;
OwnPropertyInternal = JS_GetOwnPropertyInternal(v33, (long long)v22, v26, *(_DWORD *)(v31 + 8LL * i + 4));
if ( OwnPropertyInternal < 0 )
goto LABEL_28;
if ( OwnPropertyInternal )
{
v21 = (v22[0] & 4) != 0;
js_free_desc(v33, v22);
if ( v21 )
{
LABEL_25:
Property = (_DWORD *)JS_GetProperty(v33, v34, v35, *(_DWORD *)(v31 + 8LL * i + 4));
v30 = v16;
if ( JS_IsException_1((long long)Property, v16)
|| (!v32
? (OwnPropertyInternal = JS_DefinePropertyValue(
v33,
v36,
v37,
*(_DWORD *)(v31 + 8LL * i + 4),
Property,
v30,
a7,
a8,
a9,
a10,
v17,
v18,
a13,
a14,
7))
: (OwnPropertyInternal = JS_SetProperty(
v33,
v36,
v37,
*(_DWORD *)(v31 + 8LL * i + 4),
(int)Property,
v30)),
OwnPropertyInternal < 0) )
{
LABEL_28:
js_free_prop_enum(v33, v31, v27);
return (unsigned int)-1;
}
}
}
}
}
}
return (unsigned int)-1;
}
else
{
return 0;
}
}
| JS_CopyDataProperties:
SUB RSP,0xd8
LEA RAX,[RSP + 0xe0]
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP + 0xc0],RSI
MOV qword ptr [RSP + 0xc8],RDX
MOV qword ptr [RSP + 0xb0],RCX
MOV qword ptr [RSP + 0xb8],R8
MOV qword ptr [RSP + 0xa8],RDI
MOV dword ptr [RSP + 0xa4],R9D
MOV qword ptr [RSP + 0x70],0x0
MOV RAX,qword ptr [RSP + 0xb8]
CMP EAX,-0x1
JZ 0x00168eea
MOV dword ptr [RSP + 0xd4],0x0
JMP 0x00169229
LAB_00168eea:
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x8]
CMP EAX,-0x1
JNZ 0x00168f05
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x70],RAX
LAB_00168f05:
MOV RAX,qword ptr [RSP + 0xb0]
MOV qword ptr [RSP + 0x78],RAX
MOV dword ptr [RSP + 0x68],0x13
MOV RAX,qword ptr [RSP + 0x78]
MOV AL,byte ptr [RAX + 0x5]
SHR AL,0x2
AND AL,0x1
CMP AL,0x0
JZ 0x00168f78
MOV RAX,qword ptr [RSP + 0xa8]
MOV RAX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RAX + 0x80]
MOV RCX,qword ptr [RSP + 0x78]
MOVZX ECX,word ptr [RCX + 0x6]
IMUL RCX,RCX,0x28
ADD RAX,RCX
MOV RAX,qword ptr [RAX + 0x20]
MOV qword ptr [RSP + 0x20],RAX
CMP qword ptr [RSP + 0x20],0x0
JZ 0x00168f76
MOV RAX,qword ptr [RSP + 0x20]
CMP qword ptr [RAX + 0x8],0x0
JZ 0x00168f76
MOV EAX,dword ptr [RSP + 0x68]
AND EAX,0xffffffef
MOV dword ptr [RSP + 0x68],EAX
LAB_00168f76:
JMP 0x00168f78
LAB_00168f78:
MOV RDI,qword ptr [RSP + 0xa8]
MOV RCX,qword ptr [RSP + 0x78]
MOV R8D,dword ptr [RSP + 0x68]
LEA RSI,[RSP + 0x98]
LEA RDX,[RSP + 0x80]
CALL 0x0012e320
CMP EAX,0x0
JZ 0x00168fb4
MOV dword ptr [RSP + 0xd4],0xffffffff
JMP 0x00169229
LAB_00168fb4:
MOV dword ptr [RSP + 0x84],0x0
LAB_00168fbf:
MOV EAX,dword ptr [RSP + 0x84]
CMP EAX,dword ptr [RSP + 0x80]
JNC 0x001691d9
CMP qword ptr [RSP + 0x70],0x0
JZ 0x00169022
MOV RDI,qword ptr [RSP + 0xa8]
MOV RDX,qword ptr [RSP + 0x70]
MOV RAX,qword ptr [RSP + 0x98]
MOV ECX,dword ptr [RSP + 0x84]
MOV ECX,dword ptr [RAX + RCX*0x8 + 0x4]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x0012ef00
MOV dword ptr [RSP + 0x6c],EAX
CMP dword ptr [RSP + 0x6c],0x0
JZ 0x00169020
CMP dword ptr [RSP + 0x6c],0x0
JGE 0x0016901b
JMP 0x00169202
LAB_0016901b:
JMP 0x001691c3
LAB_00169020:
JMP 0x00169022
LAB_00169022:
MOV EAX,dword ptr [RSP + 0x68]
AND EAX,0x10
CMP EAX,0x0
JNZ 0x001690aa
MOV RDI,qword ptr [RSP + 0xa8]
MOV RDX,qword ptr [RSP + 0x78]
MOV RAX,qword ptr [RSP + 0x98]
MOV ECX,dword ptr [RSP + 0x84]
MOV ECX,dword ptr [RAX + RCX*0x8 + 0x4]
LEA RSI,[RSP + 0x30]
CALL 0x0012ef00
MOV dword ptr [RSP + 0x6c],EAX
CMP dword ptr [RSP + 0x6c],0x0
JGE 0x00169068
JMP 0x00169202
LAB_00169068:
CMP dword ptr [RSP + 0x6c],0x0
JNZ 0x00169074
JMP 0x001691c3
LAB_00169074:
MOV EAX,dword ptr [RSP + 0x30]
AND EAX,0x4
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
MOV dword ptr [RSP + 0x2c],EAX
MOV RDI,qword ptr [RSP + 0xa8]
LEA RSI,[RSP + 0x30]
CALL 0x0015f740
CMP dword ptr [RSP + 0x2c],0x0
JNZ 0x001690a8
JMP 0x001691c3
LAB_001690a8:
JMP 0x001690aa
LAB_001690aa:
MOV RDI,qword ptr [RSP + 0xa8]
MOV RAX,qword ptr [RSP + 0x98]
MOV ECX,dword ptr [RSP + 0x84]
MOV ECX,dword ptr [RAX + RCX*0x8 + 0x4]
MOV RSI,qword ptr [RSP + 0xb0]
MOV RDX,qword ptr [RSP + 0xb8]
CALL 0x00128ac0
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x18],RDX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x88],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x90],RAX
MOV RDI,qword ptr [RSP + 0x88]
MOV RSI,qword ptr [RSP + 0x90]
CALL 0x00122a00
CMP EAX,0x0
JZ 0x0016911d
JMP 0x00169202
LAB_0016911d:
CMP dword ptr [RSP + 0xa4],0x0
JZ 0x0016916d
MOV RDI,qword ptr [RSP + 0xa8]
MOV RAX,qword ptr [RSP + 0x98]
MOV ECX,dword ptr [RSP + 0x84]
MOV ECX,dword ptr [RAX + RCX*0x8 + 0x4]
MOV RSI,qword ptr [RSP + 0xc0]
MOV RDX,qword ptr [RSP + 0xc8]
MOV R8,qword ptr [RSP + 0x88]
MOV R9,qword ptr [RSP + 0x90]
CALL 0x00130c40
MOV dword ptr [RSP + 0x6c],EAX
JMP 0x001691b8
LAB_0016916d:
MOV RDI,qword ptr [RSP + 0xa8]
MOV RAX,qword ptr [RSP + 0x98]
MOV ECX,dword ptr [RSP + 0x84]
MOV ECX,dword ptr [RAX + RCX*0x8 + 0x4]
MOV RSI,qword ptr [RSP + 0xc0]
MOV RDX,qword ptr [RSP + 0xc8]
MOV R8,qword ptr [RSP + 0x88]
MOV R9,qword ptr [RSP + 0x90]
MOV dword ptr [RSP],0x7
CALL 0x00135ef0
MOV dword ptr [RSP + 0x6c],EAX
LAB_001691b8:
CMP dword ptr [RSP + 0x6c],0x0
JGE 0x001691c1
JMP 0x00169202
LAB_001691c1:
JMP 0x001691c3
LAB_001691c3:
MOV EAX,dword ptr [RSP + 0x84]
ADD EAX,0x1
MOV dword ptr [RSP + 0x84],EAX
JMP 0x00168fbf
LAB_001691d9:
MOV RDI,qword ptr [RSP + 0xa8]
MOV RSI,qword ptr [RSP + 0x98]
MOV EDX,dword ptr [RSP + 0x80]
CALL 0x0012f780
MOV dword ptr [RSP + 0xd4],0x0
JMP 0x00169229
LAB_00169202:
MOV RDI,qword ptr [RSP + 0xa8]
MOV RSI,qword ptr [RSP + 0x98]
MOV EDX,dword ptr [RSP + 0x80]
CALL 0x0012f780
MOV dword ptr [RSP + 0xd4],0xffffffff
LAB_00169229:
MOV EAX,dword ptr [RSP + 0xd4]
ADD RSP,0xd8
RET
|
int4
JS_CopyDataProperties
(long param_1,int8 param_2,int8 param_3,long param_4,int8 param_5,
int param_6,long param_7,int param_8)
{
long lVar1;
int iVar2;
uint uVar3;
int1 auVar4 [16];
uint local_a8 [14];
uint local_70;
int local_6c;
long local_68;
long local_60;
uint local_58;
uint local_54;
int1 local_50 [16];
long local_40;
int local_34;
long local_30;
long local_28;
int8 local_20;
int8 local_18;
int8 local_10;
int4 local_4;
local_68 = 0;
if ((int)param_5 == -1) {
if (param_8 == -1) {
local_68 = param_7;
}
local_70 = 0x13;
if ((((*(byte *)(param_4 + 5) >> 2 & 1) != 0) &&
(lVar1 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 0x80) +
(ulong)*(ushort *)(param_4 + 6) * 0x28 + 0x20), lVar1 != 0)) &&
(*(long *)(lVar1 + 8) != 0)) {
local_70 = 3;
}
local_60 = param_4;
local_34 = param_6;
local_30 = param_1;
local_28 = param_4;
local_20 = param_5;
local_18 = param_2;
local_10 = param_3;
iVar2 = JS_GetOwnPropertyNamesInternal(param_1,&local_40,&local_58,param_4,local_70);
if (iVar2 == 0) {
for (local_54 = 0; local_54 < local_58; local_54 = local_54 + 1) {
if (local_68 == 0) {
LAB_00169022:
if ((local_70 & 0x10) != 0) {
LAB_001690aa:
auVar4 = JS_GetProperty(local_30,local_28,local_20,
*(int4 *)(local_40 + 4 + (ulong)local_54 * 8));
local_50 = auVar4;
iVar2 = JS_IsException(auVar4._0_8_,auVar4._8_8_);
if (iVar2 != 0) goto LAB_00169202;
if (local_34 == 0) {
local_6c = JS_DefinePropertyValue
(local_30,local_18,local_10,
*(int4 *)(local_40 + 4 + (ulong)local_54 * 8),
local_50._0_8_,local_50._8_8_,7);
}
else {
local_6c = JS_SetProperty(local_30,local_18,local_10,
*(int4 *)(local_40 + 4 + (ulong)local_54 * 8),
local_50._0_8_,local_50._8_8_);
}
goto joined_r0x00169014;
}
local_6c = JS_GetOwnPropertyInternal
(local_30,local_a8,local_60,
*(int4 *)(local_40 + 4 + (ulong)local_54 * 8));
if (local_6c < 0) goto LAB_00169202;
if (local_6c != 0) {
uVar3 = local_a8[0] & 4;
js_free_desc(local_30,local_a8);
if (uVar3 != 0) goto LAB_001690aa;
}
}
else {
local_6c = JS_GetOwnPropertyInternal
(local_30,0,local_68,
*(int4 *)(local_40 + 4 + (ulong)local_54 * 8));
if (local_6c == 0) goto LAB_00169022;
joined_r0x00169014:
if (local_6c < 0) {
LAB_00169202:
js_free_prop_enum(local_30,local_40,local_58);
return 0xffffffff;
}
}
}
js_free_prop_enum(local_30,local_40,local_58);
local_4 = 0;
}
else {
local_4 = 0xffffffff;
}
}
else {
local_4 = 0;
}
return local_4;
}
| |
25,154 | nlohmann::json_abi_v3_11_3::detail::parse_error nlohmann::json_abi_v3_11_3::detail::parse_error::create<std::nullptr_t, 0>(int, nlohmann::json_abi_v3_11_3::detail::position_t const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t) | monkey531[P]llama/common/json.hpp | static parse_error create(int id_, const position_t& pos, const std::string& what_arg, BasicJsonContext context)
{
const std::string w = concat(exception::name("parse_error", id_), "parse error",
position_string(pos), ": ", exception::diagnostics(context), what_arg);
return {id_, pos.chars_read_total, w.c_str()};
} | O1 | cpp | nlohmann::json_abi_v3_11_3::detail::parse_error nlohmann::json_abi_v3_11_3::detail::parse_error::create<std::nullptr_t, 0>(int, nlohmann::json_abi_v3_11_3::detail::position_t const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rcx, %r15
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x947ff(%rip), %rsi # 0xf011e
leaq 0x94803(%rip), %rdx # 0xf0129
leaq 0x8(%rsp), %rdi
callq 0x233d6
leaq 0x68(%rsp), %rdi
leaq 0x8(%rsp), %rsi
movl %ebp, %edx
callq 0x595de
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
callq 0x61cc6
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
movq %r15, (%rsp)
leaq 0x947bb(%rip), %rdx # 0xf012a
leaq 0x98bc1(%rip), %r8 # 0xf4537
leaq 0x88(%rsp), %rdi
leaq 0x68(%rsp), %rsi
leaq 0x48(%rsp), %rcx
leaq 0x28(%rsp), %r9
callq 0x61bbd
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x5b9a9
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1b8e0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5b9c4
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x1b8e0
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5b9df
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x1b8e0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5b9f6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b8e0
movq (%r14), %r14
movq 0x88(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x5984c
leaq 0xd155e(%rip), %rax # 0x12cf70
addq $0x10, %rax
movq %rax, (%rbx)
movq %r14, 0x20(%rbx)
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5ba3e
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x1b8e0
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5baeb
movq 0x98(%rsp), %rsi
jmp 0x5bade
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x5ba8f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1b8e0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5baaf
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x1b8e0
jmp 0x5baaf
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5bacf
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x1b8e0
jmp 0x5bacf
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5baeb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b8e0
jmp 0x5baeb
movq %rax, %rbx
movq %rbx, %rdi
callq 0x1bf90
nop
| _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0A8h
mov r15, rcx
mov r14, rdx
mov ebp, esi
mov rbx, rdi
lea r12, [rsp+0D8h+var_C0]
mov [r12-10h], r12
lea rsi, aParseError; "parse_error"
lea rdx, aParseError+0Bh; ""
lea rdi, [rsp+0D8h+var_D0]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rdi, [rsp+0D8h+var_70]; int
lea rsi, [rsp+0D8h+var_D0]; int
mov edx, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int)
lea rdi, [rsp+0D8h+var_90]; int
mov rsi, r14; int
call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error15position_stringB5cxx11ERKNS1_10position_tE; nlohmann::json_abi_v3_11_3::detail::parse_error::position_string(nlohmann::json_abi_v3_11_3::detail::position_t const&)
lea r13, [rsp+0D8h+var_A0]
mov [r13-10h], r13
mov qword ptr [r13-8], 0
mov byte ptr [r13+0], 0
mov [rsp+0D8h+var_D8], r15
lea rdx, aParseError_0; "parse error"
lea r8, aSubtype+9; ": "
lea rdi, [rsp+0D8h+var_50]
lea rsi, [rsp+0D8h+var_70]
lea rcx, [rsp+0D8h+var_90]
lea r9, [rsp+0D8h+var_B0]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS8_RA12_KcS8_RA3_S9_S8_RKS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,char const(&)[12],std::string,char const(&)[3],std::string,std::string const&>(std::string,char const(&)[12],std::string,char const(&)[3],std::string,std::string const&)
mov rdi, [rsp+0D8h+var_B0]; void *
cmp rdi, r13
jz short loc_5B9A9
mov rsi, [rsp+0D8h+var_A0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5B9A9:
lea rax, [rsp+0D8h+var_80]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5B9C4
mov rsi, [rsp+0D8h+var_80]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5B9C4:
lea rax, [rsp+0D8h+var_60]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5B9DF
mov rsi, [rsp+0D8h+var_60]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5B9DF:
mov rdi, [rsp+0D8h+var_D0]; void *
cmp rdi, r12
jz short loc_5B9F6
mov rsi, [rsp+0D8h+var_C0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5B9F6:
mov r14, [r14]
mov rdx, [rsp+0D8h+var_50]; char *
mov rdi, rbx; this
mov esi, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionC2EiPKc; nlohmann::json_abi_v3_11_3::detail::exception::exception(int,char const*)
lea rax, _ZTVN8nlohmann16json_abi_v3_11_36detail11parse_errorE; `vtable for'nlohmann::json_abi_v3_11_3::detail::parse_error
add rax, 10h
mov [rbx], rax
mov [rbx+20h], r14
lea rax, [rsp+0D8h+var_40]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5BA3E
mov rsi, [rsp+0D8h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5BA3E:
mov rax, rbx
add rsp, 0A8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rax, [rsp+arg_90]
mov rdi, [rax-10h]
cmp rdi, rax
jz loc_5BAEB
mov rsi, [rsp+arg_90]
jmp short loc_5BADE
mov rbx, rax
mov rdi, [rsp+arg_20]; void *
cmp rdi, r13
jz short loc_5BA8F
mov rsi, [rsp+arg_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5BA8F:
lea rax, [rsp+arg_50]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5BAAF
mov rsi, [rsp+arg_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_5BAAF
mov rbx, rax
loc_5BAAF:
lea rax, [rsp+arg_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5BACF
mov rsi, [rsp+arg_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_5BACF
mov rbx, rax
loc_5BACF:
mov rdi, [rsp+arg_0]; void *
cmp rdi, r12
jz short loc_5BAEB
mov rsi, [rsp+arg_10]
loc_5BADE:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_5BAEB
mov rbx, rax
loc_5BAEB:
mov rdi, rbx
call __Unwind_Resume
| nlohmann::json_abi_v3_11_3::detail::exception * ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_(
nlohmann::json_abi_v3_11_3::detail::exception *this,
int a2,
long long *a3,
long long a4)
{
int v6; // edx
int v7; // ecx
int v8; // r8d
int v9; // r9d
long long v10; // r14
void *v12; // [rsp+0h] [rbp-D8h]
void *v13[2]; // [rsp+8h] [rbp-D0h] BYREF
_QWORD v14[2]; // [rsp+18h] [rbp-C0h] BYREF
void *v15; // [rsp+28h] [rbp-B0h] BYREF
long long v16; // [rsp+30h] [rbp-A8h]
_QWORD v17[2]; // [rsp+38h] [rbp-A0h] BYREF
int v18[4]; // [rsp+48h] [rbp-90h] BYREF
long long v19; // [rsp+58h] [rbp-80h] BYREF
int v20[4]; // [rsp+68h] [rbp-70h] BYREF
long long v21; // [rsp+78h] [rbp-60h] BYREF
char *v22; // [rsp+88h] [rbp-50h] BYREF
long long v23; // [rsp+98h] [rbp-40h] BYREF
v13[0] = v14;
std::string::_M_construct<char const*>(v13, "parse_error", (long long)"");
nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v20, (long long)v13, a2);
nlohmann::json_abi_v3_11_3::detail::parse_error::position_string[abi:cxx11](
(int)v18,
(int)a3,
v6,
v7,
v8,
v9,
v12,
(int)v13[0],
(long long)v13[1],
v14[0],
(void *)v14[1],
(int)v15,
v16);
v15 = v17;
v16 = 0LL;
LOBYTE(v17[0]) = 0;
nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,char const(&)[12],std::string,char const(&)[3],std::string,std::string const&>(
(unsigned int)&v22,
(unsigned int)v20,
(unsigned int)"parse error",
(unsigned int)v18,
(unsigned int)": ",
(unsigned int)&v15,
a4);
if ( v15 != v17 )
operator delete(v15, v17[0] + 1LL);
if ( *(long long **)v18 != &v19 )
operator delete(*(void **)v18, v19 + 1);
if ( *(long long **)v20 != &v21 )
operator delete(*(void **)v20, v21 + 1);
if ( v13[0] != v14 )
operator delete(v13[0], v14[0] + 1LL);
v10 = *a3;
nlohmann::json_abi_v3_11_3::detail::exception::exception(this, a2, v22);
*(_QWORD *)this = &`vtable for'nlohmann::json_abi_v3_11_3::detail::parse_error + 2;
*((_QWORD *)this + 4) = v10;
if ( v22 != (char *)&v23 )
operator delete(v22, v23 + 1);
return this;
}
| _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xa8
MOV R15,RCX
MOV R14,RDX
MOV EBP,ESI
MOV RBX,RDI
LEA R12,[RSP + 0x18]
MOV qword ptr [R12 + -0x10],R12
LAB_0015b918:
LEA RSI,[0x1f011e]
LEA RDX,[0x1f0129]
LEA RDI,[RSP + 0x8]
CALL 0x001233d6
LAB_0015b930:
LEA RDI,[RSP + 0x68]
LEA RSI,[RSP + 0x8]
MOV EDX,EBP
CALL 0x001595de
LAB_0015b941:
LEA RDI,[RSP + 0x48]
MOV RSI,R14
CALL 0x00161cc6
LEA R13,[RSP + 0x38]
MOV qword ptr [R13 + -0x10],R13
MOV qword ptr [R13 + -0x8],0x0
MOV byte ptr [R13],0x0
LAB_0015b964:
MOV qword ptr [RSP],R15
LEA RDX,[0x1f012a]
LEA R8,[0x1f4537]
LEA RDI,[RSP + 0x88]
LEA RSI,[RSP + 0x68]
LEA RCX,[RSP + 0x48]
LEA R9,[RSP + 0x28]
CALL 0x00161bbd
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R13
JZ 0x0015b9a9
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x0011b8e0
LAB_0015b9a9:
LEA RAX,[RSP + 0x58]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0015b9c4
MOV RSI,qword ptr [RSP + 0x58]
INC RSI
CALL 0x0011b8e0
LAB_0015b9c4:
LEA RAX,[RSP + 0x78]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0015b9df
MOV RSI,qword ptr [RSP + 0x78]
INC RSI
CALL 0x0011b8e0
LAB_0015b9df:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x0015b9f6
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011b8e0
LAB_0015b9f6:
MOV R14,qword ptr [R14]
MOV RDX,qword ptr [RSP + 0x88]
LAB_0015ba01:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x0015984c
LAB_0015ba0b:
LEA RAX,[0x22cf70]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV qword ptr [RBX + 0x20],R14
LEA RAX,[RSP + 0x98]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0015ba3e
MOV RSI,qword ptr [RSP + 0x98]
INC RSI
CALL 0x0011b8e0
LAB_0015ba3e:
MOV RAX,RBX
ADD RSP,0xa8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
exception *
_ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
(exception *param_1,int param_2,position_t *param_3,string *param_4)
{
int8 uVar1;
long *local_d0 [2];
long local_c0 [2];
int1 *local_b0;
int8 local_a8;
int1 local_a0;
int7 uStack_9f;
long *local_90 [2];
long local_80 [2];
long *local_70 [2];
long local_60 [2];
long *local_50 [2];
long local_40 [2];
/* try { // try from 0015b918 to 0015b92f has its CatchHandler @ 0015bae8 */
local_d0[0] = local_c0;
std::__cxx11::string::_M_construct<char_const*>(local_d0,"parse_error","");
/* try { // try from 0015b930 to 0015b940 has its CatchHandler @ 0015bacc */
nlohmann::json_abi_v3_11_3::detail::exception::name
((exception *)local_70,(string *)local_d0,param_2);
/* try { // try from 0015b941 to 0015b94d has its CatchHandler @ 0015baac */
nlohmann::json_abi_v3_11_3::detail::parse_error::position_string_abi_cxx11_
((parse_error *)local_90,param_3);
local_a8 = 0;
local_a0 = 0;
/* try { // try from 0015b964 to 0015b991 has its CatchHandler @ 0015ba75 */
local_b0 = &local_a0;
nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,std::__cxx11::string,char_const(&)[12],std::__cxx11::string,char_const(&)[3],std::__cxx11::string,std::__cxx11::string_const&>
((detail *)local_50,(string *)local_70,"parse error",(string *)local_90,": ",
(string *)&local_b0,param_4);
if (local_b0 != &local_a0) {
operator_delete(local_b0,CONCAT71(uStack_9f,local_a0) + 1);
}
if (local_90[0] != local_80) {
operator_delete(local_90[0],local_80[0] + 1);
}
if (local_70[0] != local_60) {
operator_delete(local_70[0],local_60[0] + 1);
}
if (local_d0[0] != local_c0) {
operator_delete(local_d0[0],local_c0[0] + 1);
}
uVar1 = *(int8 *)param_3;
/* try { // try from 0015ba01 to 0015ba0a has its CatchHandler @ 0015ba53 */
nlohmann::json_abi_v3_11_3::detail::exception::exception(param_1,param_2,(char *)local_50[0]);
*(int ***)param_1 = &PTR__exception_0022cf80;
*(int8 *)(param_1 + 0x20) = uVar1;
if (local_50[0] != local_40) {
operator_delete(local_50[0],local_40[0] + 1);
}
return param_1;
}
| |
25,155 | nlohmann::json_abi_v3_11_3::detail::parse_error nlohmann::json_abi_v3_11_3::detail::parse_error::create<std::nullptr_t, 0>(int, nlohmann::json_abi_v3_11_3::detail::position_t const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t) | monkey531[P]llama/common/json.hpp | static parse_error create(int id_, const position_t& pos, const std::string& what_arg, BasicJsonContext context)
{
const std::string w = concat(exception::name("parse_error", id_), "parse error",
position_string(pos), ": ", exception::diagnostics(context), what_arg);
return {id_, pos.chars_read_total, w.c_str()};
} | O2 | cpp | nlohmann::json_abi_v3_11_3::detail::parse_error nlohmann::json_abi_v3_11_3::detail::parse_error::create<std::nullptr_t, 0>(int, nlohmann::json_abi_v3_11_3::detail::position_t const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xb8, %rsp
movq %rcx, %r15
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x70d05(%rip), %rsi # 0xb1110
leaq 0x58(%rsp), %rdi
leaq 0x17(%rsp), %rdx
callq 0x27c76
leaq 0x78(%rsp), %rdi
leaq 0x58(%rsp), %rsi
movl %ebp, %edx
callq 0x3e432
leaq 0x38(%rsp), %rdi
movq %r14, %rsi
callq 0x45228
leaq 0x18(%rsp), %rdi
xorl %esi, %esi
callq 0x3e4a8
movq %r15, (%rsp)
leaq 0x70ccd(%rip), %rdx # 0xb111c
leaq 0x750d1(%rip), %r8 # 0xb5527
leaq 0x98(%rsp), %rdi
leaq 0x78(%rsp), %rsi
leaq 0x38(%rsp), %rcx
leaq 0x18(%rsp), %r9
callq 0x45191
leaq 0x18(%rsp), %rdi
callq 0x241c8
leaq 0x38(%rsp), %rdi
callq 0x241c8
leaq 0x78(%rsp), %rdi
callq 0x241c8
leaq 0x58(%rsp), %rdi
callq 0x241c8
movq (%r14), %rdx
movq 0x98(%rsp), %rcx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x452b8
leaq 0x98(%rsp), %rdi
callq 0x241c8
movq %rbx, %rax
addq $0xb8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
jmp 0x4050f
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x241c8
jmp 0x404ec
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x241c8
jmp 0x404fb
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x241c8
jmp 0x4050a
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x241c8
movq %rbx, %rdi
callq 0x23f90
movq %rax, %rbx
jmp 0x40514
nop
| _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_:
push rbp
push r15
push r14
push rbx
sub rsp, 0B8h
mov r15, rcx
mov r14, rdx
mov ebp, esi
mov rbx, rdi
lea rsi, aParseError; "parse_error"
lea rdi, [rsp+0D8h+var_80]
lea rdx, [rsp+0D8h+var_C1]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdi, [rsp+0D8h+var_60]
lea rsi, [rsp+0D8h+var_80]
mov edx, ebp
call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int)
lea rdi, [rsp+0D8h+var_A0]
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error15position_stringB5cxx11ERKNS1_10position_tE; nlohmann::json_abi_v3_11_3::detail::parse_error::position_string(nlohmann::json_abi_v3_11_3::detail::position_t const&)
lea rdi, [rsp+0D8h+var_C0]
xor esi, esi
call _ZN8nlohmann16json_abi_v3_11_36detail9exception11diagnosticsB5cxx11EDn; nlohmann::json_abi_v3_11_3::detail::exception::diagnostics(decltype(nullptr))
mov [rsp+0D8h+var_D8], r15
lea rdx, aParseError_0; "parse error"
lea r8, aSubtype+9; ": "
lea rdi, [rsp+0D8h+var_40]
lea rsi, [rsp+0D8h+var_60]
lea rcx, [rsp+0D8h+var_A0]
lea r9, [rsp+0D8h+var_C0]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS8_RA12_KcS8_RA3_S9_S8_RKS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,char const(&)[12],std::string,char const(&)[3],std::string,std::string const&>(std::string,char const(&)[12],std::string,char const(&)[3],std::string,std::string const&)
lea rdi, [rsp+0D8h+var_C0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0D8h+var_A0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0D8h+var_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0D8h+var_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdx, [r14]; unsigned __int64
mov rcx, [rsp+0D8h+var_40]; char *
mov rdi, rbx; this
mov esi, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail11parse_errorC2EimPKc; nlohmann::json_abi_v3_11_3::detail::parse_error::parse_error(int,ulong,char const*)
lea rdi, [rsp+0D8h+var_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rax, rbx
add rsp, 0B8h
pop rbx
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rdi, [rsp+arg_90]
jmp short loc_4050F
mov rbx, rax
lea rdi, [rsp+arg_10]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_404EC
mov rbx, rax
loc_404EC:
lea rdi, [rsp+arg_30]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_404FB
mov rbx, rax
loc_404FB:
lea rdi, [rsp+arg_70]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_4050A
mov rbx, rax
loc_4050A:
lea rdi, [rsp+arg_50]; void *
loc_4050F:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_40514:
mov rdi, rbx
call __Unwind_Resume
mov rbx, rax
jmp short loc_40514
| nlohmann::json_abi_v3_11_3::detail::parse_error * ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_(
nlohmann::json_abi_v3_11_3::detail::parse_error *this,
int a2,
unsigned long long *a3,
long long a4)
{
int v6; // edx
int v7; // ecx
int v8; // r8d
int v9; // r9d
_QWORD v11[4]; // [rsp+18h] [rbp-C0h] BYREF
_BYTE v12[32]; // [rsp+38h] [rbp-A0h] BYREF
_QWORD v13[4]; // [rsp+58h] [rbp-80h] BYREF
_BYTE v14[32]; // [rsp+78h] [rbp-60h] BYREF
char *v15[8]; // [rsp+98h] [rbp-40h] BYREF
std::string::basic_string<std::allocator<char>>(v13, (long long)"parse_error");
nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v14, (long long)v13, a2);
nlohmann::json_abi_v3_11_3::detail::parse_error::position_string[abi:cxx11](
(unsigned int)v12,
(_DWORD)a3,
v6,
v7,
v8,
v9);
nlohmann::json_abi_v3_11_3::detail::exception::diagnostics[abi:cxx11](v11);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,char const(&)[12],std::string,char const(&)[3],std::string,std::string const&>(
(unsigned int)v15,
(unsigned int)v14,
(unsigned int)"parse error",
(unsigned int)v12,
(unsigned int)": ",
(unsigned int)v11,
a4);
std::string::~string(v11);
std::string::~string(v12);
std::string::~string(v14);
std::string::~string(v13);
nlohmann::json_abi_v3_11_3::detail::parse_error::parse_error(this, a2, *a3, v15[0]);
std::string::~string(v15);
return this;
}
| _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0xb8
MOV R15,RCX
MOV R14,RDX
MOV EBP,ESI
MOV RBX,RDI
LAB_00140404:
LEA RSI,[0x1b1110]
LEA RDI,[RSP + 0x58]
LEA RDX,[RSP + 0x17]
CALL 0x00127c76
LAB_0014041a:
LEA RDI,[RSP + 0x78]
LEA RSI,[RSP + 0x58]
MOV EDX,EBP
CALL 0x0013e432
LAB_0014042b:
LEA RDI,[RSP + 0x38]
MOV RSI,R14
CALL 0x00145228
LAB_00140438:
LEA RDI,[RSP + 0x18]
XOR ESI,ESI
CALL 0x0013e4a8
LAB_00140444:
MOV qword ptr [RSP],R15
LEA RDX,[0x1b111c]
LEA R8,[0x1b5527]
LEA RDI,[RSP + 0x98]
LEA RSI,[RSP + 0x78]
LEA RCX,[RSP + 0x38]
LEA R9,[RSP + 0x18]
CALL 0x00145191
LEA RDI,[RSP + 0x18]
CALL 0x001241c8
LEA RDI,[RSP + 0x38]
CALL 0x001241c8
LEA RDI,[RSP + 0x78]
CALL 0x001241c8
LEA RDI,[RSP + 0x58]
CALL 0x001241c8
MOV RDX,qword ptr [R14]
MOV RCX,qword ptr [RSP + 0x98]
LAB_001404a5:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x001452b8
LAB_001404af:
LEA RDI,[RSP + 0x98]
CALL 0x001241c8
MOV RAX,RBX
ADD RSP,0xb8
POP RBX
POP R14
POP R15
POP RBP
RET
|
parse_error *
_ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
(parse_error *param_1,int param_2,position_t *param_3,string *param_4)
{
allocator local_c1;
string local_c0 [32];
parse_error local_a0 [32];
string local_80 [32];
exception local_60 [32];
char *local_40 [4];
/* try { // try from 00140404 to 00140419 has its CatchHandler @ 0014051c */
std::__cxx11::string::string<std::allocator<char>>(local_80,"parse_error",&local_c1);
/* try { // try from 0014041a to 0014042a has its CatchHandler @ 00140507 */
nlohmann::json_abi_v3_11_3::detail::exception::name(local_60,local_80,param_2);
/* try { // try from 0014042b to 00140437 has its CatchHandler @ 001404f8 */
nlohmann::json_abi_v3_11_3::detail::parse_error::position_string_abi_cxx11_(local_a0,param_3);
/* try { // try from 00140438 to 00140443 has its CatchHandler @ 001404e9 */
nlohmann::json_abi_v3_11_3::detail::exception::diagnostics_abi_cxx11_
((_func_decltype_nullptr *)local_c0);
/* try { // try from 00140444 to 00140471 has its CatchHandler @ 001404da */
nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,std::__cxx11::string,char_const(&)[12],std::__cxx11::string,char_const(&)[3],std::__cxx11::string,std::__cxx11::string_const&>
((detail *)local_40,(string *)local_60,"parse error",(string *)local_a0,": ",local_c0,
param_4);
std::__cxx11::string::~string(local_c0);
std::__cxx11::string::~string((string *)local_a0);
std::__cxx11::string::~string((string *)local_60);
std::__cxx11::string::~string(local_80);
/* try { // try from 001404a5 to 001404ae has its CatchHandler @ 001404cd */
nlohmann::json_abi_v3_11_3::detail::parse_error::parse_error
(param_1,param_2,*(ulong *)param_3,local_40[0]);
std::__cxx11::string::~string((string *)local_40);
return param_1;
}
| |
25,156 | nlohmann::json_abi_v3_11_3::detail::parse_error nlohmann::json_abi_v3_11_3::detail::parse_error::create<std::nullptr_t, 0>(int, nlohmann::json_abi_v3_11_3::detail::position_t const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t) | monkey531[P]llama/common/json.hpp | static parse_error create(int id_, const position_t& pos, const std::string& what_arg, BasicJsonContext context)
{
const std::string w = concat(exception::name("parse_error", id_), "parse error",
position_string(pos), ": ", exception::diagnostics(context), what_arg);
return {id_, pos.chars_read_total, w.c_str()};
} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::parse_error nlohmann::json_abi_v3_11_3::detail::parse_error::create<std::nullptr_t, 0>(int, nlohmann::json_abi_v3_11_3::detail::position_t const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rcx, %r15
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x91f4b(%rip), %rsi # 0xed11e
leaq 0x91f4f(%rip), %rdx # 0xed129
leaq 0x8(%rsp), %rdi
callq 0x22402
leaq 0x68(%rsp), %rdi
leaq 0x8(%rsp), %rsi
movl %ebp, %edx
callq 0x5908c
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
callq 0x61498
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
movq %r15, (%rsp)
leaq 0x91f07(%rip), %rdx # 0xed12a
leaq 0x962fd(%rip), %r8 # 0xf1527
leaq 0x88(%rsp), %rdi
leaq 0x68(%rsp), %rsi
leaq 0x48(%rsp), %rcx
leaq 0x28(%rsp), %r9
callq 0x6138f
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x5b25d
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1a8e0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5b278
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x1a8e0
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5b293
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x1a8e0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5b2aa
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a8e0
movq (%r14), %r14
movq 0x88(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x592fa
leaq 0xcecea(%rip), %rax # 0x129fb0
addq $0x10, %rax
movq %rax, (%rbx)
movq %r14, 0x20(%rbx)
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5b2f2
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x1a8e0
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5b39f
movq 0x98(%rsp), %rsi
jmp 0x5b392
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x5b343
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1a8e0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5b363
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x1a8e0
jmp 0x5b363
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5b383
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x1a8e0
jmp 0x5b383
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5b39f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a8e0
jmp 0x5b39f
movq %rax, %rbx
movq %rbx, %rdi
callq 0x1af90
nop
| _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0A8h
mov r15, rcx
mov r14, rdx
mov ebp, esi
mov rbx, rdi
lea r12, [rsp+0D8h+var_C0]
mov [r12-10h], r12
lea rsi, aParseError; "parse_error"
lea rdx, aParseError+0Bh; ""
lea rdi, [rsp+0D8h+var_D0]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rdi, [rsp+0D8h+var_70]; int
lea rsi, [rsp+0D8h+var_D0]; int
mov edx, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int)
lea rdi, [rsp+0D8h+var_90]; int
mov rsi, r14; int
call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error15position_stringB5cxx11ERKNS1_10position_tE; nlohmann::json_abi_v3_11_3::detail::parse_error::position_string(nlohmann::json_abi_v3_11_3::detail::position_t const&)
lea r13, [rsp+0D8h+var_A0]
mov [r13-10h], r13
mov qword ptr [r13-8], 0
mov byte ptr [r13+0], 0
mov [rsp+0D8h+var_D8], r15
lea rdx, aParseError_0; "parse error"
lea r8, aSubtype+9; ": "
lea rdi, [rsp+0D8h+var_50]
lea rsi, [rsp+0D8h+var_70]
lea rcx, [rsp+0D8h+var_90]
lea r9, [rsp+0D8h+var_B0]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS8_RA12_KcS8_RA3_S9_S8_RKS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,char const(&)[12],std::string,char const(&)[3],std::string,std::string const&>(std::string,char const(&)[12],std::string,char const(&)[3],std::string,std::string const&)
mov rdi, [rsp+0D8h+var_B0]; void *
cmp rdi, r13
jz short loc_5B25D
mov rsi, [rsp+0D8h+var_A0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5B25D:
lea rax, [rsp+0D8h+var_80]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5B278
mov rsi, [rsp+0D8h+var_80]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5B278:
lea rax, [rsp+0D8h+var_60]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5B293
mov rsi, [rsp+0D8h+var_60]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5B293:
mov rdi, [rsp+0D8h+var_D0]; void *
cmp rdi, r12
jz short loc_5B2AA
mov rsi, [rsp+0D8h+var_C0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5B2AA:
mov r14, [r14]
mov rdx, [rsp+0D8h+var_50]; char *
mov rdi, rbx; this
mov esi, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionC2EiPKc; nlohmann::json_abi_v3_11_3::detail::exception::exception(int,char const*)
lea rax, _ZTVN8nlohmann16json_abi_v3_11_36detail11parse_errorE; `vtable for'nlohmann::json_abi_v3_11_3::detail::parse_error
add rax, 10h
mov [rbx], rax
mov [rbx+20h], r14
lea rax, [rsp+0D8h+var_40]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5B2F2
mov rsi, [rsp+0D8h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5B2F2:
mov rax, rbx
add rsp, 0A8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rax, [rsp+arg_90]
mov rdi, [rax-10h]
cmp rdi, rax
jz loc_5B39F
mov rsi, [rsp+arg_90]
jmp short loc_5B392
mov rbx, rax
mov rdi, [rsp+arg_20]; void *
cmp rdi, r13
jz short loc_5B343
mov rsi, [rsp+arg_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5B343:
lea rax, [rsp+arg_50]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5B363
mov rsi, [rsp+arg_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_5B363
mov rbx, rax
loc_5B363:
lea rax, [rsp+arg_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5B383
mov rsi, [rsp+arg_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_5B383
mov rbx, rax
loc_5B383:
mov rdi, [rsp+arg_0]; void *
cmp rdi, r12
jz short loc_5B39F
mov rsi, [rsp+arg_10]
loc_5B392:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_5B39F
mov rbx, rax
loc_5B39F:
mov rdi, rbx
call __Unwind_Resume
| nlohmann::json_abi_v3_11_3::detail::exception * ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_(
nlohmann::json_abi_v3_11_3::detail::exception *this,
int a2,
long long *a3,
long long a4)
{
int v6; // edx
int v7; // ecx
int v8; // r8d
int v9; // r9d
long long v10; // r14
void *v12; // [rsp+0h] [rbp-D8h]
void *v13[2]; // [rsp+8h] [rbp-D0h] BYREF
_QWORD v14[2]; // [rsp+18h] [rbp-C0h] BYREF
void *v15; // [rsp+28h] [rbp-B0h] BYREF
long long v16; // [rsp+30h] [rbp-A8h]
_QWORD v17[2]; // [rsp+38h] [rbp-A0h] BYREF
int v18[4]; // [rsp+48h] [rbp-90h] BYREF
long long v19; // [rsp+58h] [rbp-80h] BYREF
int v20[4]; // [rsp+68h] [rbp-70h] BYREF
long long v21; // [rsp+78h] [rbp-60h] BYREF
char *v22; // [rsp+88h] [rbp-50h] BYREF
long long v23; // [rsp+98h] [rbp-40h] BYREF
v13[0] = v14;
std::string::_M_construct<char const*>((long long)v13, "parse_error", (long long)"");
nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v20, (long long)v13, a2);
nlohmann::json_abi_v3_11_3::detail::parse_error::position_string[abi:cxx11](
(int)v18,
(int)a3,
v6,
v7,
v8,
v9,
v12,
(int)v13[0],
(long long)v13[1],
v14[0],
(void *)v14[1],
(int)v15,
v16);
v15 = v17;
v16 = 0LL;
LOBYTE(v17[0]) = 0;
nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,char const(&)[12],std::string,char const(&)[3],std::string,std::string const&>(
(unsigned int)&v22,
(unsigned int)v20,
(unsigned int)"parse error",
(unsigned int)v18,
(unsigned int)": ",
(unsigned int)&v15,
a4);
if ( v15 != v17 )
operator delete(v15, v17[0] + 1LL);
if ( *(long long **)v18 != &v19 )
operator delete(*(void **)v18, v19 + 1);
if ( *(long long **)v20 != &v21 )
operator delete(*(void **)v20, v21 + 1);
if ( v13[0] != v14 )
operator delete(v13[0], v14[0] + 1LL);
v10 = *a3;
nlohmann::json_abi_v3_11_3::detail::exception::exception(this, a2, v22);
*(_QWORD *)this = &`vtable for'nlohmann::json_abi_v3_11_3::detail::parse_error + 2;
*((_QWORD *)this + 4) = v10;
if ( v22 != (char *)&v23 )
operator delete(v22, v23 + 1);
return this;
}
| _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xa8
MOV R15,RCX
MOV R14,RDX
MOV EBP,ESI
MOV RBX,RDI
LEA R12,[RSP + 0x18]
MOV qword ptr [R12 + -0x10],R12
LAB_0015b1cc:
LEA RSI,[0x1ed11e]
LEA RDX,[0x1ed129]
LEA RDI,[RSP + 0x8]
CALL 0x00122402
LAB_0015b1e4:
LEA RDI,[RSP + 0x68]
LEA RSI,[RSP + 0x8]
MOV EDX,EBP
CALL 0x0015908c
LAB_0015b1f5:
LEA RDI,[RSP + 0x48]
MOV RSI,R14
CALL 0x00161498
LEA R13,[RSP + 0x38]
MOV qword ptr [R13 + -0x10],R13
MOV qword ptr [R13 + -0x8],0x0
MOV byte ptr [R13],0x0
LAB_0015b218:
MOV qword ptr [RSP],R15
LEA RDX,[0x1ed12a]
LEA R8,[0x1f1527]
LEA RDI,[RSP + 0x88]
LEA RSI,[RSP + 0x68]
LEA RCX,[RSP + 0x48]
LEA R9,[RSP + 0x28]
CALL 0x0016138f
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R13
JZ 0x0015b25d
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x0011a8e0
LAB_0015b25d:
LEA RAX,[RSP + 0x58]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0015b278
MOV RSI,qword ptr [RSP + 0x58]
INC RSI
CALL 0x0011a8e0
LAB_0015b278:
LEA RAX,[RSP + 0x78]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0015b293
MOV RSI,qword ptr [RSP + 0x78]
INC RSI
CALL 0x0011a8e0
LAB_0015b293:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x0015b2aa
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011a8e0
LAB_0015b2aa:
MOV R14,qword ptr [R14]
MOV RDX,qword ptr [RSP + 0x88]
LAB_0015b2b5:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x001592fa
LAB_0015b2bf:
LEA RAX,[0x229fb0]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV qword ptr [RBX + 0x20],R14
LEA RAX,[RSP + 0x98]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0015b2f2
MOV RSI,qword ptr [RSP + 0x98]
INC RSI
CALL 0x0011a8e0
LAB_0015b2f2:
MOV RAX,RBX
ADD RSP,0xa8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
exception *
_ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
(exception *param_1,int param_2,position_t *param_3,string *param_4)
{
int8 uVar1;
long *local_d0 [2];
long local_c0 [2];
int1 *local_b0;
int8 local_a8;
int1 local_a0;
int7 uStack_9f;
long *local_90 [2];
long local_80 [2];
long *local_70 [2];
long local_60 [2];
long *local_50 [2];
long local_40 [2];
/* try { // try from 0015b1cc to 0015b1e3 has its CatchHandler @ 0015b39c */
local_d0[0] = local_c0;
std::__cxx11::string::_M_construct<char_const*>(local_d0,"parse_error","");
/* try { // try from 0015b1e4 to 0015b1f4 has its CatchHandler @ 0015b380 */
nlohmann::json_abi_v3_11_3::detail::exception::name
((exception *)local_70,(string *)local_d0,param_2);
/* try { // try from 0015b1f5 to 0015b201 has its CatchHandler @ 0015b360 */
nlohmann::json_abi_v3_11_3::detail::parse_error::position_string_abi_cxx11_
((parse_error *)local_90,param_3);
local_a8 = 0;
local_a0 = 0;
/* try { // try from 0015b218 to 0015b245 has its CatchHandler @ 0015b329 */
local_b0 = &local_a0;
nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,std::__cxx11::string,char_const(&)[12],std::__cxx11::string,char_const(&)[3],std::__cxx11::string,std::__cxx11::string_const&>
((detail *)local_50,(string *)local_70,"parse error",(string *)local_90,": ",
(string *)&local_b0,param_4);
if (local_b0 != &local_a0) {
operator_delete(local_b0,CONCAT71(uStack_9f,local_a0) + 1);
}
if (local_90[0] != local_80) {
operator_delete(local_90[0],local_80[0] + 1);
}
if (local_70[0] != local_60) {
operator_delete(local_70[0],local_60[0] + 1);
}
if (local_d0[0] != local_c0) {
operator_delete(local_d0[0],local_c0[0] + 1);
}
uVar1 = *(int8 *)param_3;
/* try { // try from 0015b2b5 to 0015b2be has its CatchHandler @ 0015b307 */
nlohmann::json_abi_v3_11_3::detail::exception::exception(param_1,param_2,(char *)local_50[0]);
*(int ***)param_1 = &PTR__exception_00229fc0;
*(int8 *)(param_1 + 0x20) = uVar1;
if (local_50[0] != local_40) {
operator_delete(local_50[0],local_40[0] + 1);
}
return param_1;
}
| |
25,157 | echo(int) (.cleanup) | tinyCoroLab/examples/stdin_client.cpp | task<> echo(int sockfd)
{
char buf[BUFFLEN] = {0};
int ret = 0;
auto conn = net::tcp_connector(sockfd);
while (true)
{
ret = co_await net::stdin_awaiter(buf, BUFFLEN, 0);
log::info("receive data from stdin: {}", buf);
ret = co_await conn.write(buf, ret);
}
} | O3 | cpp | echo(int) (.cleanup):
pushq %rbx
movq %rdi, %rbx
movzbl 0x2864(%rdi), %eax
leaq 0x1b640(%rip), %rcx # 0x246a0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl 0x5c(%rbx), %eax
movl %eax, 0x2860(%rbx)
movq 0x40(%rbx), %rax
testq %rax, %rax
je 0x90a2
leaq 0x30(%rbx), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x90a2
movq 0x40(%rbx), %rax
testq %rax, %rax
je 0x90a2
leaq 0x30(%rbx), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
addq $0x10, %rbx
cmpq $0x0, (%rbx)
je 0x90b5
movq %rbx, %rdi
popq %rbx
jmp 0x8250
popq %rbx
retq
jmp 0x90b9
movq %rax, %rdi
callq 0x9caa
| _Z4echoi_cleanup:
push rbx
mov rbx, rdi
movzx eax, byte ptr [rdi+2864h]
lea rcx, jpt_9067
movsxd rax, ds:(jpt_9067 - 246A0h)[rcx+rax*4]; switch 4 cases
add rax, rcx
jmp rax; switch jump
loc_9069:
mov eax, [rbx+5Ch]; jumptable 0000000000009067 case 1
mov [rbx+2860h], eax
mov rax, [rbx+40h]
test rax, rax
jz short loc_90A2; jumptable 0000000000009067 cases 0,3
lea rdi, [rbx+30h]
mov rsi, rdi
mov edx, 3
call rax
jmp short loc_90A2; jumptable 0000000000009067 cases 0,3
loc_908B:
mov rax, [rbx+40h]; jumptable 0000000000009067 case 2
test rax, rax
jz short loc_90A2; jumptable 0000000000009067 cases 0,3
lea rdi, [rbx+30h]
mov rsi, rdi
mov edx, 3
call rax
loc_90A2:
add rbx, 10h; jumptable 0000000000009067 cases 0,3
cmp qword ptr [rbx], 0
jz short loc_90B5
mov rdi, rbx; this
pop rbx
jmp __ZNSt15__exception_ptr13exception_ptr10_M_releaseEv; std::__exception_ptr::exception_ptr::_M_release(void)
loc_90B5:
pop rbx
retn
jmp short $+2
loc_90B9:
mov rdi, rax
call __clang_call_terminate
| long long echo(long long a1)
{
long long result; // rax
result = *(unsigned __int8 *)(a1 + 10340);
switch ( *(_BYTE *)(a1 + 10340) )
{
case 0:
case 3:
break;
case 1:
*(_DWORD *)(a1 + 10336) = *(_DWORD *)(a1 + 92);
result = *(_QWORD *)(a1 + 64);
if ( result )
goto LABEL_5;
break;
case 2:
result = *(_QWORD *)(a1 + 64);
if ( result )
LABEL_5:
result = ((long long ( *)(long long, long long, long long))result)(a1 + 48, a1 + 48, 3LL);
break;
}
if ( *(_QWORD *)(a1 + 16) )
return std::__exception_ptr::exception_ptr::_M_release((std::__exception_ptr::exception_ptr *)(a1 + 16));
return result;
}
| _Z4echoi.cleanup:
PUSH RBX
MOV RBX,RDI
MOVZX EAX,byte ptr [RDI + 0x2864]
LEA RCX,[0x1246a0]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
JMP RAX
|
void _Z4echoi_cleanup(EVP_PKEY_CTX *ctx)
{
/* WARNING: Could not recover jumptable at 0x00109067. Too many branches */
/* WARNING: Treating indirect jump as call */
(*(code *)(&DAT_001246a0 + *(int *)(&DAT_001246a0 + (ulong)(byte)ctx[0x2864] * 4)))();
return;
}
| |
25,158 | plutovg_span_buffer_init_rect | dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-rasterize.c | void plutovg_span_buffer_init_rect(plutovg_span_buffer_t* span_buffer, int x, int y, int width, int height)
{
plutovg_array_clear(span_buffer->spans);
plutovg_array_ensure(span_buffer->spans, height);
plutovg_span_t* spans = span_buffer->spans.data;
for(int i = 0; i < height; i++) {
spans[i].x = x;
spans[i].y = y + i;
spans[i].len = width;
spans[i].coverage = 255;
}
span_buffer->x = x;
span_buffer->y = y;
span_buffer->w = width;
span_buffer->h = height;
span_buffer->spans.size = height;
} | O3 | c | plutovg_span_buffer_init_rect:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %ebx
movl %ecx, %ebp
movl %edx, %r15d
movl %esi, %r12d
movq %rdi, %r14
movl $0x0, 0x8(%rdi)
movl 0xc(%rdi), %ecx
cmpl %r8d, %ecx
jge 0x2c474
testl %ecx, %ecx
movl $0x8, %eax
cmovnel %ecx, %eax
movl %eax, %r13d
leal (,%r13,2), %eax
cmpl %ebx, %r13d
jl 0x2c44c
movq (%r14), %rdi
movslq %r13d, %rsi
shlq $0x4, %rsi
callq 0xa510
movq %rax, (%r14)
movl %r13d, 0xc(%r14)
jmp 0x2c477
movq (%r14), %rax
testl %ebx, %ebx
jle 0x2c4a2
movl %ebx, %ecx
shlq $0x4, %rcx
xorl %edx, %edx
movl %r15d, %esi
movl %r12d, (%rax,%rdx)
movl %esi, 0x8(%rax,%rdx)
movl %ebp, 0x4(%rax,%rdx)
movb $-0x1, 0xc(%rax,%rdx)
incl %esi
addq $0x10, %rdx
cmpq %rdx, %rcx
jne 0x2c486
movl %r12d, 0x10(%r14)
movl %r15d, 0x14(%r14)
movl %ebp, 0x18(%r14)
movl %ebx, 0x1c(%r14)
movl %ebx, 0x8(%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| plutovg_span_buffer_init_rect:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov ebx, r8d
mov ebp, ecx
mov r15d, edx
mov r12d, esi
mov r14, rdi
mov dword ptr [rdi+8], 0
mov ecx, [rdi+0Ch]
cmp ecx, r8d
jge short loc_2C474
test ecx, ecx
mov eax, 8
cmovnz eax, ecx
loc_2C44C:
mov r13d, eax
lea eax, ds:0[r13*2]
cmp r13d, ebx
jl short loc_2C44C
mov rdi, [r14]
movsxd rsi, r13d
shl rsi, 4
call _realloc
mov [r14], rax
mov [r14+0Ch], r13d
jmp short loc_2C477
loc_2C474:
mov rax, [r14]
loc_2C477:
test ebx, ebx
jle short loc_2C4A2
mov ecx, ebx
shl rcx, 4
xor edx, edx
mov esi, r15d
loc_2C486:
mov [rax+rdx], r12d
mov [rax+rdx+8], esi
mov [rax+rdx+4], ebp
mov byte ptr [rax+rdx+0Ch], 0FFh
inc esi
add rdx, 10h
cmp rcx, rdx
jnz short loc_2C486
loc_2C4A2:
mov [r14+10h], r12d
mov [r14+14h], r15d
mov [r14+18h], ebp
mov [r14+1Ch], ebx
mov [r14+8], ebx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long plutovg_span_buffer_init_rect(long long *a1, int a2, int a3, int a4, int a5)
{
int v9; // ecx
int v10; // eax
int v11; // r13d
long long result; // rax
long long v13; // rdx
int v14; // esi
*((_DWORD *)a1 + 2) = 0;
v9 = *((_DWORD *)a1 + 3);
if ( v9 >= a5 )
{
result = *a1;
}
else
{
v10 = 8;
if ( v9 )
v10 = *((_DWORD *)a1 + 3);
do
{
v11 = v10;
v10 *= 2;
}
while ( v11 < a5 );
result = realloc(*a1, 16LL * v11);
*a1 = result;
*((_DWORD *)a1 + 3) = v11;
}
if ( a5 > 0 )
{
v13 = 0LL;
v14 = a3;
do
{
*(_DWORD *)(result + v13) = a2;
*(_DWORD *)(result + v13 + 8) = v14;
*(_DWORD *)(result + v13 + 4) = a4;
*(_BYTE *)(result + v13 + 12) = -1;
++v14;
v13 += 16LL;
}
while ( 16LL * (unsigned int)a5 != v13 );
}
*((_DWORD *)a1 + 4) = a2;
*((_DWORD *)a1 + 5) = a3;
*((_DWORD *)a1 + 6) = a4;
*((_DWORD *)a1 + 7) = a5;
*((_DWORD *)a1 + 2) = a5;
return result;
}
| plutovg_span_buffer_init_rect:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV EBX,R8D
MOV EBP,ECX
MOV R15D,EDX
MOV R12D,ESI
MOV R14,RDI
MOV dword ptr [RDI + 0x8],0x0
MOV ECX,dword ptr [RDI + 0xc]
CMP ECX,R8D
JGE 0x0012c474
TEST ECX,ECX
MOV EAX,0x8
CMOVNZ EAX,ECX
LAB_0012c44c:
MOV R13D,EAX
LEA EAX,[R13*0x2]
CMP R13D,EBX
JL 0x0012c44c
MOV RDI,qword ptr [R14]
MOVSXD RSI,R13D
SHL RSI,0x4
CALL 0x0010a510
MOV qword ptr [R14],RAX
MOV dword ptr [R14 + 0xc],R13D
JMP 0x0012c477
LAB_0012c474:
MOV RAX,qword ptr [R14]
LAB_0012c477:
TEST EBX,EBX
JLE 0x0012c4a2
MOV ECX,EBX
SHL RCX,0x4
XOR EDX,EDX
MOV ESI,R15D
LAB_0012c486:
MOV dword ptr [RAX + RDX*0x1],R12D
MOV dword ptr [RAX + RDX*0x1 + 0x8],ESI
MOV dword ptr [RAX + RDX*0x1 + 0x4],EBP
MOV byte ptr [RAX + RDX*0x1 + 0xc],0xff
INC ESI
ADD RDX,0x10
CMP RCX,RDX
JNZ 0x0012c486
LAB_0012c4a2:
MOV dword ptr [R14 + 0x10],R12D
MOV dword ptr [R14 + 0x14],R15D
MOV dword ptr [R14 + 0x18],EBP
MOV dword ptr [R14 + 0x1c],EBX
MOV dword ptr [R14 + 0x8],EBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void plutovg_span_buffer_init_rect
(int8 *param_1,int4 param_2,int param_3,int4 param_4,uint param_5)
{
int iVar1;
void *pvVar2;
long lVar3;
int iVar4;
*(int4 *)(param_1 + 1) = 0;
iVar4 = *(int *)((long)param_1 + 0xc);
if (iVar4 < (int)param_5) {
iVar1 = 8;
if (iVar4 != 0) {
iVar1 = iVar4;
}
do {
iVar4 = iVar1;
iVar1 = iVar4 * 2;
} while (iVar4 < (int)param_5);
pvVar2 = realloc((void *)*param_1,(long)iVar4 << 4);
*param_1 = pvVar2;
*(int *)((long)param_1 + 0xc) = iVar4;
}
else {
pvVar2 = (void *)*param_1;
}
if (0 < (int)param_5) {
lVar3 = 0;
iVar4 = param_3;
do {
*(int4 *)((long)pvVar2 + lVar3) = param_2;
*(int *)((long)pvVar2 + lVar3 + 8) = iVar4;
*(int4 *)((long)pvVar2 + lVar3 + 4) = param_4;
*(int1 *)((long)pvVar2 + lVar3 + 0xc) = 0xff;
iVar4 = iVar4 + 1;
lVar3 = lVar3 + 0x10;
} while ((ulong)param_5 << 4 != lVar3);
}
*(int4 *)(param_1 + 2) = param_2;
*(int *)((long)param_1 + 0x14) = param_3;
*(int4 *)(param_1 + 3) = param_4;
*(uint *)((long)param_1 + 0x1c) = param_5;
*(uint *)(param_1 + 1) = param_5;
return;
}
| |
25,159 | js_module_ns_has | bluesky950520[P]quickjs/quickjs.c | static force_inline JSShapeProperty *find_own_property1(JSObject *p,
JSAtom atom)
{
JSShape *sh;
JSShapeProperty *pr, *prop;
intptr_t h;
sh = p->shape;
h = (uintptr_t)atom & sh->prop_hash_mask;
h = prop_hash_end(sh)[-h - 1];
prop = get_shape_prop(sh);
while (h) {
pr = &prop[h - 1];
if (likely(pr->atom == atom)) {
return pr;
}
h = pr->hash_next;
}
return NULL;
} | O1 | c | js_module_ns_has:
movq 0x18(%rsi), %rax
movl 0x20(%rax), %edx
andl %ecx, %edx
notq %rdx
movl (%rax,%rdx,4), %edx
testl %edx, %edx
je 0x43599
addq $0x40, %rax
movl $0x3ffffff, %esi # imm = 0x3FFFFFF
movl %edx, %edx
leaq (%rax,%rdx,8), %rdx
addq $-0x8, %rdx
cmpl %ecx, 0x4(%rdx)
je 0x43590
movl (%rdx), %edx
andl %esi, %edx
jne 0x43579
xorl %edx, %edx
xorl %eax, %eax
testq %rdx, %rdx
setne %al
retq
xorl %eax, %eax
retq
| js_module_ns_has:
mov rax, [rsi+18h]
mov edx, [rax+20h]
and edx, ecx
not rdx
mov edx, [rax+rdx*4]
test edx, edx
jz short loc_43599
add rax, 40h ; '@'
mov esi, 3FFFFFFh
loc_43579:
mov edx, edx
lea rdx, [rax+rdx*8]
add rdx, 0FFFFFFFFFFFFFFF8h
cmp [rdx+4], ecx
jz short loc_43590
mov edx, [rdx]
and edx, esi
jnz short loc_43579
xor edx, edx
loc_43590:
xor eax, eax
test rdx, rdx
setnz al
retn
loc_43599:
xor eax, eax
retn
| _BOOL8 js_module_ns_has(long long a1, long long a2, long long a3, unsigned int a4)
{
long long v4; // rax
unsigned int v5; // edx
long long v6; // rax
_DWORD *v7; // rdx
v4 = *(_QWORD *)(a2 + 24);
v5 = *(_DWORD *)(v4 + 4 * ~(unsigned long long)(a4 & *(_DWORD *)(v4 + 32)));
if ( !v5 )
return 0LL;
v6 = v4 + 64;
while ( 1 )
{
v7 = (_DWORD *)(v6 + 8LL * v5 - 8);
if ( v7[1] == a4 )
break;
v5 = *v7 & 0x3FFFFFF;
if ( !v5 )
{
v7 = 0LL;
return v7 != 0LL;
}
}
return v7 != 0LL;
}
| js_module_ns_has:
MOV RAX,qword ptr [RSI + 0x18]
MOV EDX,dword ptr [RAX + 0x20]
AND EDX,ECX
NOT RDX
MOV EDX,dword ptr [RAX + RDX*0x4]
TEST EDX,EDX
JZ 0x00143599
ADD RAX,0x40
MOV ESI,0x3ffffff
LAB_00143579:
MOV EDX,EDX
LEA RDX,[RAX + RDX*0x8]
ADD RDX,-0x8
CMP dword ptr [RDX + 0x4],ECX
JZ 0x00143590
MOV EDX,dword ptr [RDX]
AND EDX,ESI
JNZ 0x00143579
XOR EDX,EDX
LAB_00143590:
XOR EAX,EAX
TEST RDX,RDX
SETNZ AL
RET
LAB_00143599:
XOR EAX,EAX
RET
|
bool js_module_ns_has(int8 param_1,long param_2,int8 param_3,uint param_4)
{
long lVar1;
long lVar2;
uint uVar3;
uint *puVar4;
lVar2 = *(long *)(param_2 + 0x18);
uVar3 = *(uint *)(lVar2 + ~(ulong)(*(uint *)(lVar2 + 0x20) & param_4) * 4);
if (uVar3 == 0) {
return false;
}
do {
lVar1 = lVar2 + 0x40 + (ulong)uVar3 * 8;
puVar4 = (uint *)(lVar1 + -8);
if (*(uint *)(lVar1 + -4) == param_4) goto LAB_00143590;
uVar3 = *puVar4 & 0x3ffffff;
} while (uVar3 != 0);
puVar4 = (uint *)0x0;
LAB_00143590:
return puVar4 != (uint *)0x0;
}
| |
25,160 | js_typed_array_at | bluesky950520[P]quickjs/quickjs.c | static JSValue js_typed_array_at(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSObject *p;
int64_t idx, len;
p = get_typed_array(ctx, this_val);
if (!p)
return JS_EXCEPTION;
if (typed_array_is_oob(p))
return JS_ThrowTypeErrorArrayBufferOOB(ctx);
len = p->u.array.count;
// note: can change p->u.array.count
if (JS_ToInt64Sat(ctx, &idx, argv[0]))
return JS_EXCEPTION;
if (idx < 0)
idx = len + idx;
if (idx < 0 || idx >= p->u.array.count)
return JS_UNDEFINED;
switch (p->class_id) {
case JS_CLASS_INT8_ARRAY:
return js_int32(p->u.array.u.int8_ptr[idx]);
case JS_CLASS_UINT8C_ARRAY:
case JS_CLASS_UINT8_ARRAY:
return js_int32(p->u.array.u.uint8_ptr[idx]);
case JS_CLASS_INT16_ARRAY:
return js_int32(p->u.array.u.int16_ptr[idx]);
case JS_CLASS_UINT16_ARRAY:
return js_int32(p->u.array.u.uint16_ptr[idx]);
case JS_CLASS_INT32_ARRAY:
return js_int32(p->u.array.u.int32_ptr[idx]);
case JS_CLASS_UINT32_ARRAY:
return js_uint32(p->u.array.u.uint32_ptr[idx]);
case JS_CLASS_FLOAT16_ARRAY:
return js_float64(fromfp16(p->u.array.u.fp16_ptr[idx]));
case JS_CLASS_FLOAT32_ARRAY:
return js_float64(p->u.array.u.float_ptr[idx]);
case JS_CLASS_FLOAT64_ARRAY:
return js_float64(p->u.array.u.double_ptr[idx]);
case JS_CLASS_BIG_INT64_ARRAY:
return JS_NewBigInt64(ctx, p->u.array.u.int64_ptr[idx]);
case JS_CLASS_BIG_UINT64_ARRAY:
return JS_NewBigUint64(ctx, p->u.array.u.uint64_ptr[idx]);
}
abort(); /* unreachable */
return JS_UNDEFINED;
} | O0 | c | js_typed_array_at:
subq $0x58, %rsp
movq %rsi, 0x38(%rsp)
movq %rdx, 0x40(%rsp)
movq %rdi, 0x30(%rsp)
movl %ecx, 0x2c(%rsp)
movq %r8, 0x20(%rsp)
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
callq 0x57680
movq %rax, 0x18(%rsp)
cmpq $0x0, 0x18(%rsp)
jne 0xdd733
movl $0x0, 0x48(%rsp)
movq $0x6, 0x50(%rsp)
jmp 0xdd9c2
movq 0x18(%rsp), %rdi
callq 0x57710
cmpl $0x0, %eax
je 0xdd75b
movq 0x30(%rsp), %rdi
callq 0x57820
movq %rax, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
jmp 0xdd9c2
movq 0x18(%rsp), %rax
movl 0x40(%rax), %eax
movq %rax, 0x8(%rsp)
movq 0x30(%rsp), %rdi
movq 0x20(%rsp), %rax
movq (%rax), %rdx
movq 0x8(%rax), %rcx
leaq 0x10(%rsp), %rsi
callq 0x37660
cmpl $0x0, %eax
je 0xdd79e
movl $0x0, 0x48(%rsp)
movq $0x6, 0x50(%rsp)
jmp 0xdd9c2
cmpq $0x0, 0x10(%rsp)
jge 0xdd7b5
movq 0x8(%rsp), %rax
addq 0x10(%rsp), %rax
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x10(%rsp)
jl 0xdd7cf
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
movl 0x40(%rcx), %ecx
cmpq %rcx, %rax
jl 0xdd7e5
movl $0x0, 0x48(%rsp)
movq $0x3, 0x50(%rsp)
jmp 0xdd9c2
movq 0x18(%rsp), %rax
movzwl 0x6(%rax), %eax
addl $-0x15, %eax
movl %eax, %ecx
movq %rcx, (%rsp)
subl $0xb, %eax
ja 0xdd9bd
movq (%rsp), %rax
leaq 0x2d8bd(%rip), %rcx # 0x10b0c8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x18(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rsp), %rcx
movsbl (%rax,%rcx), %edi
callq 0x32a00
movq %rax, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
jmp 0xdd9c2
movq 0x18(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rsp), %rcx
movzbl (%rax,%rcx), %edi
callq 0x32a00
movq %rax, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
jmp 0xdd9c2
movq 0x18(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rsp), %rcx
movswl (%rax,%rcx,2), %edi
callq 0x32a00
movq %rax, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
jmp 0xdd9c2
movq 0x18(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rsp), %rcx
movzwl (%rax,%rcx,2), %edi
callq 0x32a00
movq %rax, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
jmp 0xdd9c2
movq 0x18(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rsp), %rcx
movl (%rax,%rcx,4), %edi
callq 0x32a00
movq %rax, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
jmp 0xdd9c2
movq 0x18(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rsp), %rcx
movl (%rax,%rcx,4), %edi
callq 0x328a0
movq %rax, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
jmp 0xdd9c2
movq 0x18(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rsp), %rcx
movzwl (%rax,%rcx,2), %edi
callq 0x5f840
callq 0x4c3a0
movq %rax, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
jmp 0xdd9c2
movq 0x18(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rsp), %rcx
movss (%rax,%rcx,4), %xmm0
cvtss2sd %xmm0, %xmm0
callq 0x4c3a0
movq %rax, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
jmp 0xdd9c2
movq 0x18(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x4c3a0
movq %rax, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
jmp 0xdd9c2
movq 0x30(%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0x38a30
movq %rax, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
jmp 0xdd9c2
movq 0x30(%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0x38bb0
movq %rax, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
jmp 0xdd9c2
callq 0xe090
movq 0x48(%rsp), %rax
movq 0x50(%rsp), %rdx
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)
| js_typed_array_at:
sub rsp, 58h
mov [rsp+58h+var_20], rsi
mov [rsp+58h+var_18], rdx
mov [rsp+58h+var_28], rdi
mov [rsp+58h+var_2C], ecx
mov [rsp+58h+var_38], r8
mov rdi, [rsp+58h+var_28]
mov rsi, [rsp+58h+var_20]
mov rdx, [rsp+58h+var_18]
call get_typed_array
mov [rsp+58h+var_40], rax
cmp [rsp+58h+var_40], 0
jnz short loc_DD733
mov dword ptr [rsp+58h+var_10], 0
mov [rsp+58h+var_8], 6
jmp loc_DD9C2
loc_DD733:
mov rdi, [rsp+58h+var_40]
call typed_array_is_oob
cmp eax, 0
jz short loc_DD75B
mov rdi, [rsp+58h+var_28]
call JS_ThrowTypeErrorArrayBufferOOB
mov [rsp+58h+var_10], rax
mov [rsp+58h+var_8], rdx
jmp loc_DD9C2
loc_DD75B:
mov rax, [rsp+58h+var_40]
mov eax, [rax+40h]
mov [rsp+58h+var_50], rax
mov rdi, [rsp+58h+var_28]
mov rax, [rsp+58h+var_38]
mov rdx, [rax]
mov rcx, [rax+8]
lea rsi, [rsp+58h+var_48]
call JS_ToInt64Sat
cmp eax, 0
jz short loc_DD79E
mov dword ptr [rsp+58h+var_10], 0
mov [rsp+58h+var_8], 6
jmp loc_DD9C2
loc_DD79E:
cmp [rsp+58h+var_48], 0
jge short loc_DD7B5
mov rax, [rsp+58h+var_50]
add rax, [rsp+58h+var_48]
mov [rsp+58h+var_48], rax
loc_DD7B5:
cmp [rsp+58h+var_48], 0
jl short loc_DD7CF
mov rax, [rsp+58h+var_48]
mov rcx, [rsp+58h+var_40]
mov ecx, [rcx+40h]
cmp rax, rcx
jl short loc_DD7E5
loc_DD7CF:
mov dword ptr [rsp+58h+var_10], 0
mov [rsp+58h+var_8], 3
jmp loc_DD9C2
loc_DD7E5:
mov rax, [rsp+58h+var_40]
movzx eax, word ptr [rax+6]
add eax, 0FFFFFFEBh; switch 12 cases
mov ecx, eax
mov [rsp+58h+var_58], rcx
sub eax, 0Bh
ja def_DD812; jumptable 00000000000DD812 default case
mov rax, [rsp+58h+var_58]
lea rcx, jpt_DD812
movsxd rax, ds:(jpt_DD812 - 10B0C8h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_DD814:
mov rax, [rsp+58h+var_40]; jumptable 00000000000DD812 case 22
mov rax, [rax+38h]
mov rcx, [rsp+58h+var_48]
movsx edi, byte ptr [rax+rcx]
call js_int32
mov [rsp+58h+var_10], rax
mov [rsp+58h+var_8], rdx
jmp loc_DD9C2
loc_DD83A:
mov rax, [rsp+58h+var_40]; jumptable 00000000000DD812 cases 21,23
mov rax, [rax+38h]
mov rcx, [rsp+58h+var_48]
movzx edi, byte ptr [rax+rcx]
call js_int32
mov [rsp+58h+var_10], rax
mov [rsp+58h+var_8], rdx
jmp loc_DD9C2
loc_DD860:
mov rax, [rsp+58h+var_40]; jumptable 00000000000DD812 case 24
mov rax, [rax+38h]
mov rcx, [rsp+58h+var_48]
movsx edi, word ptr [rax+rcx*2]
call js_int32
mov [rsp+58h+var_10], rax
mov [rsp+58h+var_8], rdx
jmp loc_DD9C2
loc_DD886:
mov rax, [rsp+58h+var_40]; jumptable 00000000000DD812 case 25
mov rax, [rax+38h]
mov rcx, [rsp+58h+var_48]
movzx edi, word ptr [rax+rcx*2]
call js_int32
mov [rsp+58h+var_10], rax
mov [rsp+58h+var_8], rdx
jmp loc_DD9C2
loc_DD8AC:
mov rax, [rsp+58h+var_40]; jumptable 00000000000DD812 case 26
mov rax, [rax+38h]
mov rcx, [rsp+58h+var_48]
mov edi, [rax+rcx*4]
call js_int32
mov [rsp+58h+var_10], rax
mov [rsp+58h+var_8], rdx
jmp loc_DD9C2
loc_DD8D1:
mov rax, [rsp+58h+var_40]; jumptable 00000000000DD812 case 27
mov rax, [rax+38h]
mov rcx, [rsp+58h+var_48]
mov edi, [rax+rcx*4]
call js_uint32
mov [rsp+58h+var_10], rax
mov [rsp+58h+var_8], rdx
jmp loc_DD9C2
loc_DD8F6:
mov rax, [rsp+58h+var_40]; jumptable 00000000000DD812 case 30
mov rax, [rax+38h]
mov rcx, [rsp+58h+var_48]
movzx edi, word ptr [rax+rcx*2]
call fromfp16
call js_float64
mov [rsp+58h+var_10], rax
mov [rsp+58h+var_8], rdx
jmp loc_DD9C2
loc_DD921:
mov rax, [rsp+58h+var_40]; jumptable 00000000000DD812 case 31
mov rax, [rax+38h]
mov rcx, [rsp+58h+var_48]
movss xmm0, dword ptr [rax+rcx*4]
cvtss2sd xmm0, xmm0
call js_float64
mov [rsp+58h+var_10], rax
mov [rsp+58h+var_8], rdx
jmp short loc_DD9C2
loc_DD949:
mov rax, [rsp+58h+var_40]; jumptable 00000000000DD812 case 32
mov rax, [rax+38h]
mov rcx, [rsp+58h+var_48]
movsd xmm0, qword ptr [rax+rcx*8]
call js_float64
mov [rsp+58h+var_10], rax
mov [rsp+58h+var_8], rdx
jmp short loc_DD9C2
loc_DD96D:
mov rdi, [rsp+58h+var_28]; jumptable 00000000000DD812 case 28
mov rax, [rsp+58h+var_40]
mov rax, [rax+38h]
mov rcx, [rsp+58h+var_48]
mov rsi, [rax+rcx*8]
call JS_NewBigInt64
mov [rsp+58h+var_10], rax
mov [rsp+58h+var_8], rdx
jmp short loc_DD9C2
loc_DD995:
mov rdi, [rsp+58h+var_28]; jumptable 00000000000DD812 case 29
mov rax, [rsp+58h+var_40]
mov rax, [rax+38h]
mov rcx, [rsp+58h+var_48]
mov rsi, [rax+rcx*8]
call JS_NewBigUint64
mov [rsp+58h+var_10], rax
mov [rsp+58h+var_8], rdx
jmp short loc_DD9C2
def_DD812:
call _abort; jumptable 00000000000DD812 default case
loc_DD9C2:
mov rax, [rsp+58h+var_10]
mov rdx, [rsp+58h+var_8]
add rsp, 58h
retn
| long long js_typed_array_at(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
long long v14; // rdx
long long v15; // rcx
long long v16; // r8
long long v17; // r9
__m128 v18; // xmm4
__m128 v19; // xmm5
long long v20; // rdx
const char *v21; // rdi
long long v22; // rdx
long long v23; // rdx
long long v24; // rdx
long long v25; // rdx
long long v26; // rdx
long long v27; // rdx
double v28; // xmm0_8
long long v29; // rdx
long long v30; // rdx
long long v31; // rdx
long long v32; // rdx
long long v33; // rdx
long long v35; // [rsp+8h] [rbp-50h]
long long v36; // [rsp+10h] [rbp-48h] BYREF
long long typed_array; // [rsp+18h] [rbp-40h]
long long v38; // [rsp+20h] [rbp-38h]
int v39; // [rsp+2Ch] [rbp-2Ch]
const char *v40; // [rsp+30h] [rbp-28h]
long long v41; // [rsp+38h] [rbp-20h]
long long v42; // [rsp+40h] [rbp-18h]
long long v43; // [rsp+48h] [rbp-10h]
long long v44; // [rsp+50h] [rbp-8h]
v41 = a2;
v42 = a3;
v40 = (const char *)a1;
v39 = a4;
v38 = a5;
typed_array = get_typed_array(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);
if ( typed_array )
{
if ( typed_array_is_oob(typed_array) )
{
v43 = JS_ThrowTypeErrorArrayBufferOOB((long long)v40, a7, a8, a9, a10, v18, v19, a13, a14, a2, v14, v15, v16, v17);
v44 = v20;
}
else
{
v35 = *(unsigned int *)(typed_array + 64);
v21 = v40;
if ( (unsigned int)JS_ToInt64Sat((long long)v40, (long long)&v36, *(_DWORD **)v38, *(_QWORD *)(v38 + 8)) )
{
LODWORD(v43) = 0;
v44 = 6LL;
}
else
{
if ( v36 < 0 )
v36 += v35;
if ( v36 >= 0 && v36 < *(unsigned int *)(typed_array + 64) )
{
switch ( *(_WORD *)(typed_array + 6) )
{
case 0x15:
case 0x17:
v43 = js_int32(*(unsigned __int8 *)(*(_QWORD *)(typed_array + 56) + v36));
v44 = v23;
break;
case 0x16:
v43 = js_int32(*(char *)(*(_QWORD *)(typed_array + 56) + v36));
v44 = v22;
break;
case 0x18:
v43 = js_int32(*(__int16 *)(*(_QWORD *)(typed_array + 56) + 2 * v36));
v44 = v24;
break;
case 0x19:
v43 = js_int32(*(unsigned __int16 *)(*(_QWORD *)(typed_array + 56) + 2 * v36));
v44 = v25;
break;
case 0x1A:
v43 = js_int32(*(_DWORD *)(*(_QWORD *)(typed_array + 56) + 4 * v36));
v44 = v26;
break;
case 0x1B:
v43 = js_uint32(*(_DWORD *)(*(_QWORD *)(typed_array + 56) + 4 * v36));
v44 = v27;
break;
case 0x1C:
v43 = JS_NewBigInt64((long long)v40, *(_QWORD *)(*(_QWORD *)(typed_array + 56) + 8 * v36));
v44 = v32;
break;
case 0x1D:
v43 = JS_NewBigUint64((long long)v40, *(_QWORD *)(*(_QWORD *)(typed_array + 56) + 8 * v36));
v44 = v33;
break;
case 0x1E:
v28 = fromfp16(*(_WORD *)(*(_QWORD *)(typed_array + 56) + 2 * v36));
v43 = js_float64(v28);
v44 = v29;
break;
case 0x1F:
v43 = js_float64(*(float *)(*(_QWORD *)(typed_array + 56) + 4 * v36));
v44 = v30;
break;
case 0x20:
v43 = js_float64(*(double *)(*(_QWORD *)(typed_array + 56) + 8 * v36));
v44 = v31;
break;
default:
abort(v21);
}
}
else
{
LODWORD(v43) = 0;
v44 = 3LL;
}
}
}
}
else
{
LODWORD(v43) = 0;
v44 = 6LL;
}
return v43;
}
| js_typed_array_at:
SUB RSP,0x58
MOV qword ptr [RSP + 0x38],RSI
MOV qword ptr [RSP + 0x40],RDX
MOV qword ptr [RSP + 0x30],RDI
MOV dword ptr [RSP + 0x2c],ECX
MOV qword ptr [RSP + 0x20],R8
MOV RDI,qword ptr [RSP + 0x30]
MOV RSI,qword ptr [RSP + 0x38]
MOV RDX,qword ptr [RSP + 0x40]
CALL 0x00157680
MOV qword ptr [RSP + 0x18],RAX
CMP qword ptr [RSP + 0x18],0x0
JNZ 0x001dd733
MOV dword ptr [RSP + 0x48],0x0
MOV qword ptr [RSP + 0x50],0x6
JMP 0x001dd9c2
LAB_001dd733:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x00157710
CMP EAX,0x0
JZ 0x001dd75b
MOV RDI,qword ptr [RSP + 0x30]
CALL 0x00157820
MOV qword ptr [RSP + 0x48],RAX
MOV qword ptr [RSP + 0x50],RDX
JMP 0x001dd9c2
LAB_001dd75b:
MOV RAX,qword ptr [RSP + 0x18]
MOV EAX,dword ptr [RAX + 0x40]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0x30]
MOV RAX,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RAX]
MOV RCX,qword ptr [RAX + 0x8]
LEA RSI,[RSP + 0x10]
CALL 0x00137660
CMP EAX,0x0
JZ 0x001dd79e
MOV dword ptr [RSP + 0x48],0x0
MOV qword ptr [RSP + 0x50],0x6
JMP 0x001dd9c2
LAB_001dd79e:
CMP qword ptr [RSP + 0x10],0x0
JGE 0x001dd7b5
MOV RAX,qword ptr [RSP + 0x8]
ADD RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x10],RAX
LAB_001dd7b5:
CMP qword ptr [RSP + 0x10],0x0
JL 0x001dd7cf
MOV RAX,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x18]
MOV ECX,dword ptr [RCX + 0x40]
CMP RAX,RCX
JL 0x001dd7e5
LAB_001dd7cf:
MOV dword ptr [RSP + 0x48],0x0
MOV qword ptr [RSP + 0x50],0x3
JMP 0x001dd9c2
LAB_001dd7e5:
MOV RAX,qword ptr [RSP + 0x18]
MOVZX EAX,word ptr [RAX + 0x6]
ADD EAX,-0x15
MOV ECX,EAX
MOV qword ptr [RSP],RCX
SUB EAX,0xb
JA 0x001dd9bd
MOV RAX,qword ptr [RSP]
LEA RCX,[0x20b0c8]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_16:
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x38]
MOV RCX,qword ptr [RSP + 0x10]
MOVSX EDI,byte ptr [RAX + RCX*0x1]
CALL 0x00132a00
MOV qword ptr [RSP + 0x48],RAX
MOV qword ptr [RSP + 0x50],RDX
JMP 0x001dd9c2
caseD_15:
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x38]
MOV RCX,qword ptr [RSP + 0x10]
MOVZX EDI,byte ptr [RAX + RCX*0x1]
CALL 0x00132a00
MOV qword ptr [RSP + 0x48],RAX
MOV qword ptr [RSP + 0x50],RDX
JMP 0x001dd9c2
caseD_18:
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x38]
MOV RCX,qword ptr [RSP + 0x10]
MOVSX EDI,word ptr [RAX + RCX*0x2]
CALL 0x00132a00
MOV qword ptr [RSP + 0x48],RAX
MOV qword ptr [RSP + 0x50],RDX
JMP 0x001dd9c2
caseD_19:
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x38]
MOV RCX,qword ptr [RSP + 0x10]
MOVZX EDI,word ptr [RAX + RCX*0x2]
CALL 0x00132a00
MOV qword ptr [RSP + 0x48],RAX
MOV qword ptr [RSP + 0x50],RDX
JMP 0x001dd9c2
caseD_1a:
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x38]
MOV RCX,qword ptr [RSP + 0x10]
MOV EDI,dword ptr [RAX + RCX*0x4]
CALL 0x00132a00
MOV qword ptr [RSP + 0x48],RAX
MOV qword ptr [RSP + 0x50],RDX
JMP 0x001dd9c2
caseD_1b:
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x38]
MOV RCX,qword ptr [RSP + 0x10]
MOV EDI,dword ptr [RAX + RCX*0x4]
CALL 0x001328a0
MOV qword ptr [RSP + 0x48],RAX
MOV qword ptr [RSP + 0x50],RDX
JMP 0x001dd9c2
caseD_1e:
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x38]
MOV RCX,qword ptr [RSP + 0x10]
MOVZX EDI,word ptr [RAX + RCX*0x2]
CALL 0x0015f840
CALL 0x0014c3a0
MOV qword ptr [RSP + 0x48],RAX
MOV qword ptr [RSP + 0x50],RDX
JMP 0x001dd9c2
caseD_1f:
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x38]
MOV RCX,qword ptr [RSP + 0x10]
MOVSS XMM0,dword ptr [RAX + RCX*0x4]
CVTSS2SD XMM0,XMM0
CALL 0x0014c3a0
MOV qword ptr [RSP + 0x48],RAX
MOV qword ptr [RSP + 0x50],RDX
JMP 0x001dd9c2
caseD_20:
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x38]
MOV RCX,qword ptr [RSP + 0x10]
MOVSD XMM0,qword ptr [RAX + RCX*0x8]
CALL 0x0014c3a0
MOV qword ptr [RSP + 0x48],RAX
MOV qword ptr [RSP + 0x50],RDX
JMP 0x001dd9c2
caseD_1c:
MOV RDI,qword ptr [RSP + 0x30]
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x38]
MOV RCX,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RAX + RCX*0x8]
CALL 0x00138a30
MOV qword ptr [RSP + 0x48],RAX
MOV qword ptr [RSP + 0x50],RDX
JMP 0x001dd9c2
caseD_1d:
MOV RDI,qword ptr [RSP + 0x30]
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x38]
MOV RCX,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RAX + RCX*0x8]
CALL 0x00138bb0
MOV qword ptr [RSP + 0x48],RAX
MOV qword ptr [RSP + 0x50],RDX
JMP 0x001dd9c2
default:
CALL 0x0010e090
LAB_001dd9c2:
MOV RAX,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x50]
ADD RSP,0x58
RET
|
int1 [16]
js_typed_array_at(int8 param_1,int8 param_2,int8 param_3,int4 param_4,
int8 *param_5)
{
uint uVar1;
int iVar2;
int1 auVar3 [16];
long local_48;
long local_40;
int8 *local_38;
int4 local_2c;
int8 local_28;
int8 local_20;
int8 local_18;
int4 local_10;
int4 uStack_c;
int8 local_8;
local_38 = param_5;
local_2c = param_4;
local_28 = param_1;
local_20 = param_2;
local_18 = param_3;
local_40 = get_typed_array(param_1,param_2,param_3);
if (local_40 == 0) {
local_10 = 0;
local_8 = 6;
}
else {
iVar2 = typed_array_is_oob(local_40);
if (iVar2 == 0) {
uVar1 = *(uint *)(local_40 + 0x40);
iVar2 = JS_ToInt64Sat(local_28,&local_48,*local_38,local_38[1]);
if (iVar2 == 0) {
if (local_48 < 0) {
local_48 = (ulong)uVar1 + local_48;
}
if ((local_48 < 0) || ((long)(ulong)*(uint *)(local_40 + 0x40) <= local_48)) {
local_10 = 0;
local_8 = 3;
}
else {
switch(*(int2 *)(local_40 + 6)) {
case 0x15:
case 0x17:
auVar3 = js_int32(*(int1 *)(*(long *)(local_40 + 0x38) + local_48));
local_8 = auVar3._8_8_;
local_10 = auVar3._0_4_;
uStack_c = auVar3._4_4_;
break;
case 0x16:
auVar3 = js_int32((int)*(char *)(*(long *)(local_40 + 0x38) + local_48));
local_8 = auVar3._8_8_;
local_10 = auVar3._0_4_;
uStack_c = auVar3._4_4_;
break;
case 0x18:
auVar3 = js_int32((int)*(short *)(*(long *)(local_40 + 0x38) + local_48 * 2));
local_8 = auVar3._8_8_;
local_10 = auVar3._0_4_;
uStack_c = auVar3._4_4_;
break;
case 0x19:
auVar3 = js_int32(*(int2 *)(*(long *)(local_40 + 0x38) + local_48 * 2));
local_8 = auVar3._8_8_;
local_10 = auVar3._0_4_;
uStack_c = auVar3._4_4_;
break;
case 0x1a:
auVar3 = js_int32(*(int4 *)(*(long *)(local_40 + 0x38) + local_48 * 4));
local_8 = auVar3._8_8_;
local_10 = auVar3._0_4_;
uStack_c = auVar3._4_4_;
break;
case 0x1b:
auVar3 = js_uint32(*(int4 *)(*(long *)(local_40 + 0x38) + local_48 * 4));
local_8 = auVar3._8_8_;
local_10 = auVar3._0_4_;
uStack_c = auVar3._4_4_;
break;
case 0x1c:
auVar3 = JS_NewBigInt64(local_28,*(int8 *)
(*(long *)(local_40 + 0x38) + local_48 * 8));
local_8 = auVar3._8_8_;
local_10 = auVar3._0_4_;
uStack_c = auVar3._4_4_;
break;
case 0x1d:
auVar3 = JS_NewBigUint64(local_28,*(int8 *)
(*(long *)(local_40 + 0x38) + local_48 * 8));
local_8 = auVar3._8_8_;
local_10 = auVar3._0_4_;
uStack_c = auVar3._4_4_;
break;
case 0x1e:
fromfp16(*(int2 *)(*(long *)(local_40 + 0x38) + local_48 * 2));
auVar3 = js_float64();
local_8 = auVar3._8_8_;
local_10 = auVar3._0_4_;
uStack_c = auVar3._4_4_;
break;
case 0x1f:
auVar3 = js_float64((double)*(float *)(*(long *)(local_40 + 0x38) + local_48 * 4));
local_8 = auVar3._8_8_;
local_10 = auVar3._0_4_;
uStack_c = auVar3._4_4_;
break;
case 0x20:
auVar3 = js_float64(*(int8 *)(*(long *)(local_40 + 0x38) + local_48 * 8));
local_8 = auVar3._8_8_;
local_10 = auVar3._0_4_;
uStack_c = auVar3._4_4_;
break;
default:
/* WARNING: Subroutine does not return */
abort();
}
}
}
else {
local_10 = 0;
local_8 = 6;
}
}
else {
auVar3 = JS_ThrowTypeErrorArrayBufferOOB(local_28);
local_8 = auVar3._8_8_;
local_10 = auVar3._0_4_;
uStack_c = auVar3._4_4_;
}
}
auVar3._4_4_ = uStack_c;
auVar3._0_4_ = local_10;
auVar3._8_8_ = local_8;
return auVar3;
}
| |
25,161 | js_typed_array_at | bluesky950520[P]quickjs/quickjs.c | static JSValue js_typed_array_at(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSObject *p;
int64_t idx, len;
p = get_typed_array(ctx, this_val);
if (!p)
return JS_EXCEPTION;
if (typed_array_is_oob(p))
return JS_ThrowTypeErrorArrayBufferOOB(ctx);
len = p->u.array.count;
// note: can change p->u.array.count
if (JS_ToInt64Sat(ctx, &idx, argv[0]))
return JS_EXCEPTION;
if (idx < 0)
idx = len + idx;
if (idx < 0 || idx >= p->u.array.count)
return JS_UNDEFINED;
switch (p->class_id) {
case JS_CLASS_INT8_ARRAY:
return js_int32(p->u.array.u.int8_ptr[idx]);
case JS_CLASS_UINT8C_ARRAY:
case JS_CLASS_UINT8_ARRAY:
return js_int32(p->u.array.u.uint8_ptr[idx]);
case JS_CLASS_INT16_ARRAY:
return js_int32(p->u.array.u.int16_ptr[idx]);
case JS_CLASS_UINT16_ARRAY:
return js_int32(p->u.array.u.uint16_ptr[idx]);
case JS_CLASS_INT32_ARRAY:
return js_int32(p->u.array.u.int32_ptr[idx]);
case JS_CLASS_UINT32_ARRAY:
return js_uint32(p->u.array.u.uint32_ptr[idx]);
case JS_CLASS_FLOAT16_ARRAY:
return js_float64(fromfp16(p->u.array.u.fp16_ptr[idx]));
case JS_CLASS_FLOAT32_ARRAY:
return js_float64(p->u.array.u.float_ptr[idx]);
case JS_CLASS_FLOAT64_ARRAY:
return js_float64(p->u.array.u.double_ptr[idx]);
case JS_CLASS_BIG_INT64_ARRAY:
return JS_NewBigInt64(ctx, p->u.array.u.int64_ptr[idx]);
case JS_CLASS_BIG_UINT64_ARRAY:
return JS_NewBigUint64(ctx, p->u.array.u.uint64_ptr[idx]);
}
abort(); /* unreachable */
return JS_UNDEFINED;
} | O1 | c | js_typed_array_at:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %r8, %r12
movq %rdi, %r15
movq %rsi, 0x8(%rsp)
cmpl $-0x1, %edx
jne 0x7f87f
movq 0x8(%rsp), %r14
movzwl 0x6(%r14), %eax
addl $-0x15, %eax
cmpw $0xc, %ax
jb 0x7f893
leaq 0x21483(%rip), %rsi # 0xa0d09
xorl %r14d, %r14d
movq %r15, %rdi
xorl %eax, %eax
callq 0x21953
movl $0x6, %ebx
testq %r14, %r14
je 0x7f8ee
movq %r14, %rdi
callq 0x38ab0
testl %eax, %eax
je 0x7f8bf
leaq 0x2146a(%rip), %rsi # 0xa0d1a
xorl %r14d, %r14d
movq %r15, %rdi
xorl %eax, %eax
callq 0x21953
jmp 0x7f8f1
movl 0x40(%r14), %r13d
movq (%r12), %rdx
movq 0x8(%r12), %rcx
movq %rdx, 0x8(%rsp)
cmpl $-0x9, %ecx
jb 0x7f8dd
movq 0x8(%rsp), %rax
incl (%rax)
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x26ba8
testl %eax, %eax
je 0x7f90a
xorl %r14d, %r14d
xorl %ecx, %ecx
movl %r14d, %eax
orq %rcx, %rax
movq %rbx, %rdx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x8(%rsp), %rax
testq %rax, %rax
jns 0x7f91c
addq %r13, %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movl $0x3, %ebx
testq %rax, %rax
js 0x7f8ee
movl 0x40(%r14), %ecx
cmpq %rcx, %rax
jge 0x7f8ee
movzwl 0x6(%r14), %ecx
addl $-0x15, %ecx
cmpl $0xb, %ecx
ja 0x7fa48
leaq 0x1c6e8(%rip), %rdx # 0x9c034
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq 0x38(%r14), %rcx
movzbl (%rcx,%rax), %r14d
jmp 0x7f9f7
movq 0x38(%r14), %rcx
movq (%rcx,%rax,8), %rsi
movq %r15, %rdi
callq 0x27762
movq %rax, %r14
movq %rdx, %rbx
movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000
andq %rax, %rcx
jmp 0x7f8f3
movq 0x38(%r14), %rcx
cvtss2sd (%rcx,%rax,4), %xmm0
jmp 0x7fa0d
movq 0x38(%r14), %rcx
movl (%rcx,%rax,4), %r14d
jmp 0x7f9f7
movq 0x38(%r14), %rcx
movslq (%rcx,%rax,4), %rax
xorl %ecx, %ecx
testq %rax, %rax
movl %eax, %edx
cvtsi2sd %rdx, %xmm0
movq %xmm0, %r14
cmovnsq %rax, %r14
movl $0x7, %ebx
cmovnsq %rcx, %rbx
movabsq $0x7fffffff00000000, %rcx # imm = 0x7FFFFFFF00000000
andq %r14, %rcx
jmp 0x7f8f3
movq 0x38(%r14), %rcx
movsbq (%rcx,%rax), %r14
jmp 0x7f9f7
movq 0x38(%r14), %rcx
movzwl (%rcx,%rax,2), %r14d
jmp 0x7f9f7
movq 0x38(%r14), %rcx
movswq (%rcx,%rax,2), %r14
xorl %ecx, %ecx
xorl %ebx, %ebx
jmp 0x7f8f3
movq 0x38(%r14), %rcx
movzwl (%rcx,%rax,2), %edi
callq 0x3cd41
movq %xmm0, %r14
jmp 0x7fa1c
movq 0x38(%r14), %rcx
movq (%rcx,%rax,8), %r14
movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000
andq %r14, %rcx
movl $0x7, %ebx
jmp 0x7f8f3
movq 0x38(%r14), %rcx
movq (%rcx,%rax,8), %rsi
movq %r15, %rdi
callq 0xfe8f
jmp 0x7f973
callq 0xe090
| js_typed_array_at:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 10h
mov r12, r8
mov r15, rdi
mov [rsp+38h+var_30], rsi
cmp edx, 0FFFFFFFFh
jnz short loc_7F87F
mov r14, [rsp+38h+var_30]
movzx eax, word ptr [r14+6]
add eax, 0FFFFFFEBh
cmp ax, 0Ch
jb short loc_7F893
loc_7F87F:
lea rsi, aNotATypedarray; "not a TypedArray"
xor r14d, r14d
mov rdi, r15
xor eax, eax
call JS_ThrowTypeError
loc_7F893:
mov ebx, 6
test r14, r14
jz short loc_7F8EE
mov rdi, r14
call typed_array_is_oob
test eax, eax
jz short loc_7F8BF
lea rsi, aArraybufferIsD_0; "ArrayBuffer is detached or resized"
xor r14d, r14d
mov rdi, r15
xor eax, eax
call JS_ThrowTypeError
jmp short loc_7F8F1
loc_7F8BF:
mov r13d, [r14+40h]
mov rdx, [r12]
mov rcx, [r12+8]
mov [rsp+38h+var_30], rdx
cmp ecx, 0FFFFFFF7h
jb short loc_7F8DD
mov rax, [rsp+38h+var_30]
inc dword ptr [rax]
loc_7F8DD:
lea rsi, [rsp+38h+var_30]
mov rdi, r15
call JS_ToInt64SatFree
test eax, eax
jz short loc_7F90A
loc_7F8EE:
xor r14d, r14d
loc_7F8F1:
xor ecx, ecx
loc_7F8F3:
mov eax, r14d
or rax, rcx
mov rdx, rbx
add rsp, 10h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
loc_7F90A:
mov rax, [rsp+38h+var_30]
test rax, rax
jns short loc_7F91C
add rax, r13
mov [rsp+38h+var_30], rax
loc_7F91C:
mov rax, [rsp+38h+var_30]
mov ebx, 3
test rax, rax
js short loc_7F8EE
mov ecx, [r14+40h]
cmp rax, rcx
jge short loc_7F8EE
movzx ecx, word ptr [r14+6]
add ecx, 0FFFFFFEBh; switch 12 cases
cmp ecx, 0Bh
ja def_7F953; jumptable 000000000007F953 default case
lea rdx, jpt_7F953
movsxd rcx, ds:(jpt_7F953 - 9C034h)[rdx+rcx*4]
add rcx, rdx
jmp rcx; switch jump
loc_7F955:
mov rcx, [r14+38h]; jumptable 000000000007F953 cases 21,23
movzx r14d, byte ptr [rcx+rax]
jmp loc_7F9F7
loc_7F963:
mov rcx, [r14+38h]; jumptable 000000000007F953 case 28
mov rsi, [rcx+rax*8]
mov rdi, r15
call JS_NewBigInt64
loc_7F973:
mov r14, rax
mov rbx, rdx
mov rcx, 0FFFFFFFF00000000h
and rcx, rax
jmp loc_7F8F3
loc_7F98B:
mov rcx, [r14+38h]; jumptable 000000000007F953 case 31
cvtss2sd xmm0, dword ptr [rcx+rax*4]
jmp short loc_7FA0D
loc_7F996:
mov rcx, [r14+38h]; jumptable 000000000007F953 case 26
mov r14d, [rcx+rax*4]
jmp short loc_7F9F7
loc_7F9A0:
mov rcx, [r14+38h]; jumptable 000000000007F953 case 27
movsxd rax, dword ptr [rcx+rax*4]
xor ecx, ecx
test rax, rax
mov edx, eax
cvtsi2sd xmm0, rdx
movq r14, xmm0
cmovns r14, rax
mov ebx, 7
cmovns rbx, rcx
mov rcx, 7FFFFFFF00000000h
and rcx, r14
jmp loc_7F8F3
loc_7F9D8:
mov rcx, [r14+38h]; jumptable 000000000007F953 case 22
movsx r14, byte ptr [rcx+rax]
jmp short loc_7F9F7
loc_7F9E3:
mov rcx, [r14+38h]; jumptable 000000000007F953 case 25
movzx r14d, word ptr [rcx+rax*2]
jmp short loc_7F9F7
loc_7F9EE:
mov rcx, [r14+38h]; jumptable 000000000007F953 case 24
movsx r14, word ptr [rcx+rax*2]
loc_7F9F7:
xor ecx, ecx
xor ebx, ebx
jmp loc_7F8F3
loc_7FA00:
mov rcx, [r14+38h]; jumptable 000000000007F953 case 30
movzx edi, word ptr [rcx+rax*2]
call fromfp16
loc_7FA0D:
movq r14, xmm0
jmp short loc_7FA1C
loc_7FA14:
mov rcx, [r14+38h]; jumptable 000000000007F953 case 32
mov r14, [rcx+rax*8]
loc_7FA1C:
mov rcx, 0FFFFFFFF00000000h
and rcx, r14
mov ebx, 7
jmp loc_7F8F3
loc_7FA33:
mov rcx, [r14+38h]; jumptable 000000000007F953 case 29
mov rsi, [rcx+rax*8]
mov rdi, r15
call JS_NewBigUint64
jmp loc_7F973
def_7F953:
call _abort; jumptable 000000000007F953 default case
| unsigned long long js_typed_array_at(
const char *a1,
long long a2,
long long a3,
long long a4,
long long *a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
long long v15; // r14
long long v16; // rdx
long long v17; // rcx
long long v18; // r8
long long v19; // r9
__m128 v20; // xmm4
__m128 v21; // xmm5
long long v22; // r13
long long v23; // rdx
long long v24; // rcx
unsigned long long v25; // rcx
unsigned long long v27; // rax
long long v28; // rax
char v29; // [rsp+0h] [rbp-38h]
unsigned long long v30[6]; // [rsp+8h] [rbp-30h] BYREF
v30[0] = a2;
if ( (_DWORD)a3 != -1 || (v15 = v30[0], (unsigned __int16)(*(_WORD *)(v30[0] + 6) - 21) >= 0xCu) )
{
*(double *)&v15 = 0.0;
JS_ThrowTypeError(
(long long)a1,
(long long)"not a TypedArray",
a3,
a4,
(long long)a5,
a6,
a7,
a8,
a9,
a10,
a11,
a12,
a13,
a14,
v29);
}
if ( *(double *)&v15 == 0.0 )
goto LABEL_10;
if ( typed_array_is_oob(v15) )
{
LODWORD(v15) = 0;
JS_ThrowTypeError(
(long long)a1,
(long long)"ArrayBuffer is detached or resized",
v16,
v17,
v18,
v19,
a7,
a8,
a9,
a10,
v20,
v21,
a13,
a14,
v29);
LABEL_11:
v25 = 0LL;
return v25 | (unsigned int)v15;
}
v22 = *(unsigned int *)(v15 + 64);
v23 = *a5;
v24 = a5[1];
v30[0] = *a5;
if ( (unsigned int)v24 >= 0xFFFFFFF7 )
++*(_DWORD *)v30[0];
if ( (unsigned int)JS_ToInt64SatFree((long long)a1, v30, v23, v24) )
goto LABEL_10;
if ( (v30[0] & 0x8000000000000000LL) != 0LL )
v30[0] += v22;
if ( (v30[0] & 0x8000000000000000LL) != 0LL || (long long)v30[0] >= *(unsigned int *)(v15 + 64) )
{
LABEL_10:
LODWORD(v15) = 0;
goto LABEL_11;
}
switch ( *(_WORD *)(v15 + 6) )
{
case 0x15:
case 0x17:
LODWORD(v15) = *(unsigned __int8 *)(*(_QWORD *)(v15 + 56) + v30[0]);
goto LABEL_29;
case 0x16:
LODWORD(v15) = *(char *)(*(_QWORD *)(v15 + 56) + v30[0]);
goto LABEL_29;
case 0x18:
LODWORD(v15) = *(__int16 *)(*(_QWORD *)(v15 + 56) + 2 * v30[0]);
goto LABEL_29;
case 0x19:
LODWORD(v15) = *(unsigned __int16 *)(*(_QWORD *)(v15 + 56) + 2 * v30[0]);
goto LABEL_29;
case 0x1A:
LODWORD(v15) = *(_DWORD *)(*(_QWORD *)(v15 + 56) + 4 * v30[0]);
LABEL_29:
v25 = 0LL;
return v25 | (unsigned int)v15;
case 0x1B:
v28 = *(int *)(*(_QWORD *)(v15 + 56) + 4 * v30[0]);
*(double *)&v15 = (double)(int)v28;
if ( v28 >= 0 )
v15 = v28;
v25 = v15 & 0x7FFFFFFF00000000LL;
return v25 | (unsigned int)v15;
case 0x1C:
v27 = (unsigned long long)JS_NewBigInt64((long long)a1, *(_QWORD *)(*(_QWORD *)(v15 + 56) + 8 * v30[0]));
goto LABEL_20;
case 0x1D:
v27 = (unsigned long long)JS_NewBigUint64((long long)a1, *(_QWORD *)(*(_QWORD *)(v15 + 56) + 8 * v30[0]));
LABEL_20:
LODWORD(v15) = v27;
v25 = v27 & 0xFFFFFFFF00000000LL;
return v25 | (unsigned int)v15;
case 0x1E:
fromfp16(*(_WORD *)(*(_QWORD *)(v15 + 56) + 2 * v30[0]));
goto LABEL_31;
case 0x1F:
*(double *)a7.m128_u64 = *(float *)(*(_QWORD *)(v15 + 56) + 4 * v30[0]);
LABEL_31:
v15 = a7.m128_i64[0];
break;
case 0x20:
v15 = *(long long *)(*(_QWORD *)(v15 + 56) + 8 * v30[0]);
break;
default:
abort(a1);
}
v25 = v15 & 0xFFFFFFFF00000000LL;
return v25 | (unsigned int)v15;
}
| js_typed_array_at:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV R12,R8
MOV R15,RDI
MOV qword ptr [RSP + 0x8],RSI
CMP EDX,-0x1
JNZ 0x0017f87f
MOV R14,qword ptr [RSP + 0x8]
MOVZX EAX,word ptr [R14 + 0x6]
ADD EAX,-0x15
CMP AX,0xc
JC 0x0017f893
LAB_0017f87f:
LEA RSI,[0x1a0d09]
XOR R14D,R14D
MOV RDI,R15
XOR EAX,EAX
CALL 0x00121953
LAB_0017f893:
MOV EBX,0x6
TEST R14,R14
JZ 0x0017f8ee
MOV RDI,R14
CALL 0x00138ab0
TEST EAX,EAX
JZ 0x0017f8bf
LEA RSI,[0x1a0d1a]
XOR R14D,R14D
MOV RDI,R15
XOR EAX,EAX
CALL 0x00121953
JMP 0x0017f8f1
LAB_0017f8bf:
MOV R13D,dword ptr [R14 + 0x40]
MOV RDX,qword ptr [R12]
MOV RCX,qword ptr [R12 + 0x8]
MOV qword ptr [RSP + 0x8],RDX
CMP ECX,-0x9
JC 0x0017f8dd
MOV RAX,qword ptr [RSP + 0x8]
INC dword ptr [RAX]
LAB_0017f8dd:
LEA RSI,[RSP + 0x8]
MOV RDI,R15
CALL 0x00126ba8
TEST EAX,EAX
JZ 0x0017f90a
LAB_0017f8ee:
XOR R14D,R14D
LAB_0017f8f1:
XOR ECX,ECX
LAB_0017f8f3:
MOV EAX,R14D
OR RAX,RCX
MOV RDX,RBX
ADD RSP,0x10
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
LAB_0017f90a:
MOV RAX,qword ptr [RSP + 0x8]
TEST RAX,RAX
JNS 0x0017f91c
ADD RAX,R13
MOV qword ptr [RSP + 0x8],RAX
LAB_0017f91c:
MOV RAX,qword ptr [RSP + 0x8]
MOV EBX,0x3
TEST RAX,RAX
JS 0x0017f8ee
MOV ECX,dword ptr [R14 + 0x40]
CMP RAX,RCX
JGE 0x0017f8ee
MOVZX ECX,word ptr [R14 + 0x6]
ADD ECX,-0x15
CMP ECX,0xb
JA 0x0017fa48
LEA RDX,[0x19c034]
MOVSXD RCX,dword ptr [RDX + RCX*0x4]
ADD RCX,RDX
switchD:
JMP RCX
caseD_15:
MOV RCX,qword ptr [R14 + 0x38]
MOVZX R14D,byte ptr [RCX + RAX*0x1]
JMP 0x0017f9f7
caseD_1c:
MOV RCX,qword ptr [R14 + 0x38]
MOV RSI,qword ptr [RCX + RAX*0x8]
MOV RDI,R15
CALL 0x00127762
LAB_0017f973:
MOV R14,RAX
MOV RBX,RDX
MOV RCX,-0x100000000
AND RCX,RAX
JMP 0x0017f8f3
caseD_1f:
MOV RCX,qword ptr [R14 + 0x38]
CVTSS2SD XMM0,dword ptr [RCX + RAX*0x4]
JMP 0x0017fa0d
caseD_1a:
MOV RCX,qword ptr [R14 + 0x38]
MOV R14D,dword ptr [RCX + RAX*0x4]
JMP 0x0017f9f7
caseD_1b:
MOV RCX,qword ptr [R14 + 0x38]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
XOR ECX,ECX
TEST RAX,RAX
MOV EDX,EAX
CVTSI2SD XMM0,RDX
MOVQ R14,XMM0
CMOVNS R14,RAX
MOV EBX,0x7
CMOVNS RBX,RCX
MOV RCX,0x7fffffff00000000
AND RCX,R14
JMP 0x0017f8f3
caseD_16:
MOV RCX,qword ptr [R14 + 0x38]
MOVSX R14,byte ptr [RCX + RAX*0x1]
JMP 0x0017f9f7
caseD_19:
MOV RCX,qword ptr [R14 + 0x38]
MOVZX R14D,word ptr [RCX + RAX*0x2]
JMP 0x0017f9f7
caseD_18:
MOV RCX,qword ptr [R14 + 0x38]
MOVSX R14,word ptr [RCX + RAX*0x2]
LAB_0017f9f7:
XOR ECX,ECX
XOR EBX,EBX
JMP 0x0017f8f3
caseD_1e:
MOV RCX,qword ptr [R14 + 0x38]
MOVZX EDI,word ptr [RCX + RAX*0x2]
CALL 0x0013cd41
LAB_0017fa0d:
MOVQ R14,XMM0
JMP 0x0017fa1c
caseD_20:
MOV RCX,qword ptr [R14 + 0x38]
MOV R14,qword ptr [RCX + RAX*0x8]
LAB_0017fa1c:
MOV RCX,-0x100000000
AND RCX,R14
MOV EBX,0x7
JMP 0x0017f8f3
caseD_1d:
MOV RCX,qword ptr [R14 + 0x38]
MOV RSI,qword ptr [RCX + RAX*0x8]
MOV RDI,R15
CALL 0x0010fe8f
JMP 0x0017f973
default:
CALL 0x0010e090
|
int1 [16]
js_typed_array_at(int8 param_1,int *param_2,int param_3,int8 param_4,int8 *param_5
)
{
uint uVar1;
int1 auVar2 [16];
int iVar3;
double dVar4;
ulong uVar5;
int8 uVar6;
ulong uVar7;
double dVar8;
int1 auVar9 [16];
int1 auVar10 [16];
int *local_30;
local_30 = param_2;
if ((param_3 != -1) || (0xb < (ushort)(*(short *)((long)param_2 + 6) - 0x15U))) {
param_2 = (int *)0x0;
JS_ThrowTypeError(param_1,"not a TypedArray");
}
uVar5 = 6;
if (param_2 == (int *)0x0) {
LAB_0017f8f1:
auVar2._8_8_ = 0;
auVar2._0_8_ = uVar5;
auVar10 = auVar2 << 0x40;
uVar5 = 0;
goto LAB_0017f8f3;
}
iVar3 = typed_array_is_oob(param_2);
if (iVar3 != 0) {
JS_ThrowTypeError(param_1,"ArrayBuffer is detached or resized");
goto LAB_0017f8f1;
}
uVar1 = param_2[0x10];
local_30 = (int *)*param_5;
if (0xfffffff6 < (uint)param_5[1]) {
*local_30 = *local_30 + 1;
}
iVar3 = JS_ToInt64SatFree(param_1,&local_30);
if (iVar3 != 0) goto LAB_0017f8f1;
if ((long)local_30 < 0) {
local_30 = (int *)((long)local_30 + (ulong)uVar1);
}
uVar5 = 3;
if (((long)local_30 < 0) || ((long)(ulong)(uint)param_2[0x10] <= (long)local_30))
goto LAB_0017f8f1;
switch(*(int2 *)((long)param_2 + 6)) {
case 0x15:
case 0x17:
uVar7 = (ulong)*(byte *)(*(long *)(param_2 + 0xe) + (long)local_30);
break;
case 0x16:
uVar7 = (ulong)*(char *)(*(long *)(param_2 + 0xe) + (long)local_30);
break;
case 0x18:
uVar7 = (ulong)*(short *)(*(long *)(param_2 + 0xe) + (long)local_30 * 2);
break;
case 0x19:
uVar7 = (ulong)*(ushort *)(*(long *)(param_2 + 0xe) + (long)local_30 * 2);
break;
case 0x1a:
uVar7 = (ulong)*(uint *)(*(long *)(param_2 + 0xe) + (long)local_30 * 4);
break;
case 0x1b:
uVar1 = *(uint *)(*(long *)(param_2 + 0xe) + (long)local_30 * 4);
dVar4 = (double)(long)(int)uVar1;
dVar8 = (double)uVar1;
if (-1 < (long)dVar4) {
dVar8 = dVar4;
}
uVar6 = 7;
if (-1 < (long)dVar4) {
uVar6 = 0;
}
auVar10._8_8_ = uVar6;
auVar10._0_8_ = dVar8;
uVar5 = (ulong)dVar8 & 0x7fffffff00000000;
goto LAB_0017f8f3;
case 0x1c:
auVar10 = JS_NewBigInt64(param_1,*(int8 *)(*(long *)(param_2 + 0xe) + (long)local_30 * 8))
;
goto LAB_0017f973;
case 0x1d:
auVar10 = JS_NewBigUint64(param_1,*(int8 *)(*(long *)(param_2 + 0xe) + (long)local_30 * 8)
);
LAB_0017f973:
uVar5 = auVar10._0_8_ & 0xffffffff00000000;
goto LAB_0017f8f3;
case 0x1e:
dVar8 = (double)fromfp16(*(int2 *)(*(long *)(param_2 + 0xe) + (long)local_30 * 2));
goto LAB_0017fa1c;
case 0x1f:
dVar8 = (double)*(float *)(*(long *)(param_2 + 0xe) + (long)local_30 * 4);
goto LAB_0017fa1c;
case 0x20:
dVar8 = *(double *)(*(long *)(param_2 + 0xe) + (long)local_30 * 8);
LAB_0017fa1c:
uVar5 = (ulong)dVar8 & 0xffffffff00000000;
auVar10._8_8_ = 7;
auVar10._0_8_ = dVar8;
goto LAB_0017f8f3;
default:
/* WARNING: Subroutine does not return */
abort();
}
uVar5 = 0;
auVar10._8_8_ = 0;
auVar10._0_8_ = uVar7;
LAB_0017f8f3:
auVar9._0_8_ = auVar10._0_8_ & 0xffffffff | uVar5;
auVar9._8_8_ = auVar10._8_8_;
return auVar9;
}
| |
25,162 | void YAML::Node::push_back<unsigned int>(unsigned int const&) | aimrt_mujoco_sim/_deps/yaml-cpp-src/include/yaml-cpp/node/impl.h | inline void Node::push_back(const T& rhs) {
if (!m_isValid)
throw InvalidNode(m_invalidKey);
push_back(Node(rhs));
} | O0 | c | void YAML::Node::push_back<unsigned int>(unsigned int const&):
subq $0x78, %rsp
movq %rdi, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x10(%rsp)
testb $0x1, (%rax)
jne 0x1f5bc4
movl $0x40, %edi
callq 0x192f50
movq 0x10(%rsp), %rsi
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x8(%rsp)
addq $0x8, %rsi
callq 0x1dfa50
jmp 0x1f5b92
movq 0x8(%rsp), %rdi
leaq 0x54fa1a(%rip), %rsi # 0x7455b8
leaq 0x16d01b(%rip), %rdx # 0x362bc0
callq 0x198050
movq 0x8(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
callq 0x19ea50
jmp 0x1f5c0e
movq 0x68(%rsp), %rsi
leaq 0x18(%rsp), %rdi
movq %rdi, (%rsp)
callq 0x1f5c70
movq 0x10(%rsp), %rdi
movq (%rsp), %rsi
callq 0x1f4200
jmp 0x1f5be7
leaq 0x18(%rsp), %rdi
callq 0x1e3e90
addq $0x78, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
leaq 0x18(%rsp), %rdi
callq 0x1e3e90
movq 0x60(%rsp), %rdi
callq 0x198ce0
nopl (%rax,%rax)
| _ZN4YAML4Node9push_backIjEEvRKT_:
sub rsp, 78h
mov [rsp+78h+var_8], rdi
mov qword ptr [rsp+78h+var_10], rsi
mov rax, [rsp+78h+var_8]
mov [rsp+78h+var_68], rax; void *
test byte ptr [rax], 1
jnz short loc_1F5BC4
mov edi, 40h ; '@'; thrown_size
call ___cxa_allocate_exception
mov rsi, [rsp+78h+var_68]
mov rdi, rax
mov rax, rdi
mov [rsp+78h+var_70], rax
add rsi, 8
call _ZN4YAML11InvalidNodeC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; YAML::InvalidNode::InvalidNode(std::string const&)
jmp short $+2
loc_1F5B92:
mov rdi, [rsp+78h+var_70]; void *
lea rsi, _ZTIN4YAML11InvalidNodeE; lptinfo
lea rdx, _ZN4YAML11InvalidNodeD2Ev; void (*)(void *)
call ___cxa_throw
mov rdi, [rsp+78h+var_70]; void *
mov rcx, rax
mov eax, edx
mov [rsp+78h+var_18], rcx
mov [rsp+78h+var_1C], eax
call ___cxa_free_exception
jmp short loc_1F5C0E
loc_1F5BC4:
mov rsi, qword ptr [rsp+78h+var_10]; int
lea rdi, [rsp+78h+var_60]; int
mov [rsp+78h+var_78], rdi; int
call _ZN4YAML4NodeC2IjEERKT_; YAML::Node::Node<uint>(uint const&)
mov rdi, [rsp+78h+var_68]; this
mov rsi, [rsp+78h+var_78]; YAML::Node *
call _ZN4YAML4Node9push_backERKS0_; YAML::Node::push_back(YAML::Node const&)
jmp short $+2
loc_1F5BE7:
lea rdi, [rsp+78h+var_60]; this
call _ZN4YAML4NodeD2Ev; YAML::Node::~Node()
add rsp, 78h
retn
mov rcx, rax
mov eax, edx
mov [rsp+78h+var_18], rcx
mov [rsp+78h+var_1C], eax
lea rdi, [rsp+78h+var_60]; this
call _ZN4YAML4NodeD2Ev; YAML::Node::~Node()
loc_1F5C0E:
mov rdi, [rsp+78h+var_18]
call __Unwind_Resume
| void YAML::Node::push_back<unsigned int>(_BYTE *a1, long long a2, int a3, int a4, int a5, int a6)
{
const YAML::Node *v6; // [rsp+0h] [rbp-78h]
int v7; // [rsp+8h] [rbp-70h]
YAML::Mark *exception; // [rsp+8h] [rbp-70h]
YAML::Node *v9; // [rsp+10h] [rbp-68h]
int v10; // [rsp+18h] [rbp-60h] BYREF
long long v11; // [rsp+20h] [rbp-58h]
void *v12; // [rsp+28h] [rbp-50h]
int v13; // [rsp+30h] [rbp-48h]
long long v14; // [rsp+38h] [rbp-40h]
int v15[2]; // [rsp+68h] [rbp-10h]
void *v16; // [rsp+70h] [rbp-8h]
v16 = a1;
*(_QWORD *)v15 = a2;
if ( (*a1 & 1) == 0 )
{
exception = (YAML::Mark *)__cxa_allocate_exception(0x40uLL);
YAML::InvalidNode::InvalidNode(exception, (long long)(a1 + 8));
__cxa_throw(exception, (struct type_info *)&`typeinfo for'YAML::InvalidNode, YAML::InvalidNode::~InvalidNode);
}
YAML::Node::Node<unsigned int>((int)&v10, v15[0], a3, a4, a5, a6, (int)&v10, v7, a1, v10, v11, v12, v13, v14);
YAML::Node::push_back(v9, v6);
YAML::Node::~Node((YAML::Node *)&v10);
}
| |||
25,163 | void YAML::Node::push_back<unsigned int>(unsigned int const&) | aimrt_mujoco_sim/_deps/yaml-cpp-src/include/yaml-cpp/node/impl.h | inline void Node::push_back(const T& rhs) {
if (!m_isValid)
throw InvalidNode(m_invalidKey);
push_back(Node(rhs));
} | O3 | c | void YAML::Node::push_back<unsigned int>(unsigned int const&):
pushq %r14
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
cmpb $0x0, (%rdi)
je 0xa4263
leaq 0x18(%rsp), %rdi
callq 0xa42cc
movq %rbx, %rdi
callq 0x9d0a4
leaq 0x18(%rsp), %rdi
callq 0x9d0a4
movq 0x28(%rbx), %rax
movq 0x38(%rbx), %rdi
movq 0x50(%rsp), %rsi
movq %rax, 0x8(%rsp)
movq 0x30(%rbx), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0xa420a
movq 0x1fcacc(%rip), %rcx # 0x2a0cc8
cmpb $0x0, (%rcx)
je 0xa4206
incl 0x8(%rax)
jmp 0xa420a
lock
incl 0x8(%rax)
leaq 0x8(%rsp), %rdx
callq 0xa37ca
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xa4223
callq 0x81a00
movq 0x28(%rbx), %rdi
movq 0x40(%rsp), %rsi
callq 0x11597c
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0xa4240
callq 0x81a00
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa425b
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x82190
addq $0x58, %rsp
popq %rbx
popq %r14
retq
movl $0x40, %edi
callq 0x80f20
movq %rax, %r14
addq $0x8, %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x9b2ee
leaq 0x1f5ff2(%rip), %rsi # 0x29a278
leaq 0x71587(%rip), %rdx # 0x115814
movq %r14, %rdi
callq 0x83970
movq %rax, %rbx
movq %r14, %rdi
callq 0x816f0
jmp 0xa42c3
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xa42b9
callq 0x81a00
jmp 0xa42b9
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x9c7d4
movq %rbx, %rdi
callq 0x83b70
nop
| _ZN4YAML4Node9push_backIjEEvRKT_:
push r14
push rbx
sub rsp, 58h
mov rbx, rdi
cmp byte ptr [rdi], 0
jz loc_A4263
lea rdi, [rsp+68h+var_50]; this
call _ZN4YAML4NodeC2IjEERKT_; YAML::Node::Node<uint>(uint const&)
mov rdi, rbx; this
call _ZNK4YAML4Node16EnsureNodeExistsEv; YAML::Node::EnsureNodeExists(void)
lea rdi, [rsp+68h+var_50]; this
call _ZNK4YAML4Node16EnsureNodeExistsEv; YAML::Node::EnsureNodeExists(void)
mov rax, [rbx+28h]
mov rdi, [rbx+38h]; YAML::detail::node *
mov rsi, [rsp+68h+var_18]; this
mov [rsp+68h+var_60], rax; __int64
mov rax, [rbx+30h]
mov [rsp+68h+var_58], rax
test rax, rax
jz short loc_A420A
mov rcx, cs:__libc_single_threaded_ptr
cmp byte ptr [rcx], 0
jz short loc_A4206
inc dword ptr [rax+8]
jmp short loc_A420A
loc_A4206:
lock inc dword ptr [rax+8]
loc_A420A:
lea rdx, [rsp+68h+var_60]
call _ZN4YAML6detail4node9push_backERS1_St10shared_ptrINS0_13memory_holderEE; YAML::detail::node::push_back(YAML::detail::node&,std::shared_ptr<YAML::detail::memory_holder>)
mov rdi, [rsp+68h+var_58]
test rdi, rdi
jz short loc_A4223
call __ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_A4223:
mov rdi, [rbx+28h]
mov rsi, [rsp+68h+var_28]
call _ZN4YAML6detail13memory_holder5mergeERS1_; YAML::detail::memory_holder::merge(YAML::detail::memory_holder&)
mov rdi, [rsp+68h+var_20]
test rdi, rdi
jz short loc_A4240
call __ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_A4240:
lea rax, [rsp+68h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_A425B
mov rsi, [rsp+68h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_A425B:
add rsp, 58h
pop rbx
pop r14
retn
loc_A4263:
mov edi, 40h ; '@'; thrown_size
call ___cxa_allocate_exception
mov r14, rax
add rbx, 8
mov rdi, rax
mov rsi, rbx
call _ZN4YAML11InvalidNodeC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; YAML::InvalidNode::InvalidNode(std::string const&)
lea rsi, _ZTIN4YAML11InvalidNodeE; lptinfo
lea rdx, _ZN4YAML9ExceptionD2Ev; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_A42C3
mov rbx, rax
mov rdi, [rsp+68h+var_58]
test rdi, rdi
jz short loc_A42B9
call __ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
jmp short loc_A42B9
mov rbx, rax
loc_A42B9:
lea rdi, [rsp+68h+var_50]; this
call _ZN4YAML4NodeD2Ev; YAML::Node::~Node()
loc_A42C3:
mov rdi, rbx
call __Unwind_Resume
| void YAML::Node::push_back<unsigned int>(YAML::Node *this)
{
YAML::detail::node *v2; // rdi
YAML::detail::node *v3; // rsi
long long v4; // rax
void *exception; // r14
int v6; // edx
int v7; // ecx
int v8; // r8d
int v9; // r9d
long long v10; // [rsp+8h] [rbp-60h] BYREF
long long v11; // [rsp+10h] [rbp-58h]
YAML::detail::memory **v12; // [rsp+18h] [rbp-50h] BYREF
_QWORD *v13; // [rsp+20h] [rbp-48h]
_QWORD v14[3]; // [rsp+30h] [rbp-38h] BYREF
long long v15; // [rsp+48h] [rbp-20h]
YAML::detail::node *v16; // [rsp+50h] [rbp-18h]
if ( !*(_BYTE *)this )
{
exception = __cxa_allocate_exception(0x40uLL);
YAML::InvalidNode::InvalidNode((_DWORD)exception, (_DWORD)this + 8, v6, v7, v8, v9);
__cxa_throw(exception, (struct type_info *)&`typeinfo for'YAML::InvalidNode, YAML::Exception::~Exception);
}
YAML::Node::Node<unsigned int>((YAML::Node *)&v12);
YAML::Node::EnsureNodeExists((YAML::detail::memory ***)this);
YAML::Node::EnsureNodeExists(&v12);
v2 = (YAML::detail::node *)*((_QWORD *)this + 7);
v3 = v16;
v10 = *((_QWORD *)this + 5);
v4 = *((_QWORD *)this + 6);
v11 = v4;
if ( v4 )
{
if ( _libc_single_threaded )
++*(_DWORD *)(v4 + 8);
else
_InterlockedIncrement((volatile signed __int32 *)(v4 + 8));
}
YAML::detail::node::push_back(v2, v3, &v10);
if ( v11 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v11);
YAML::detail::memory_holder::merge(*((_QWORD *)this + 5), v14[2]);
if ( v15 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v15);
if ( v13 != v14 )
operator delete(v13, v14[0] + 1LL);
}
| push_back<unsigned_int>:
PUSH R14
PUSH RBX
SUB RSP,0x58
MOV RBX,RDI
CMP byte ptr [RDI],0x0
JZ 0x001a4263
LEA RDI,[RSP + 0x18]
CALL 0x001a42cc
LAB_001a41c3:
MOV RDI,RBX
CALL 0x0019d0a4
LEA RDI,[RSP + 0x18]
CALL 0x0019d0a4
MOV RAX,qword ptr [RBX + 0x28]
MOV RDI,qword ptr [RBX + 0x38]
MOV RSI,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x8],RAX
MOV RAX,qword ptr [RBX + 0x30]
MOV qword ptr [RSP + 0x10],RAX
TEST RAX,RAX
JZ 0x001a420a
MOV RCX,qword ptr [0x003a0cc8]
CMP byte ptr [RCX],0x0
JZ 0x001a4206
INC dword ptr [RAX + 0x8]
JMP 0x001a420a
LAB_001a4206:
INC.LOCK dword ptr [RAX + 0x8]
LAB_001a420a:
LEA RDX,[RSP + 0x8]
CALL 0x001a37ca
MOV RDI,qword ptr [RSP + 0x10]
TEST RDI,RDI
JZ 0x001a4223
CALL 0x00181a00
LAB_001a4223:
MOV RDI,qword ptr [RBX + 0x28]
MOV RSI,qword ptr [RSP + 0x40]
LAB_001a422c:
CALL 0x0021597c
LAB_001a4231:
MOV RDI,qword ptr [RSP + 0x48]
TEST RDI,RDI
JZ 0x001a4240
CALL 0x00181a00
LAB_001a4240:
LEA RAX,[RSP + 0x30]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001a425b
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x00182190
LAB_001a425b:
ADD RSP,0x58
POP RBX
POP R14
RET
LAB_001a4263:
MOV EDI,0x40
CALL 0x00180f20
MOV R14,RAX
ADD RBX,0x8
LAB_001a4274:
MOV RDI,RAX
MOV RSI,RBX
CALL 0x0019b2ee
LAB_001a427f:
LEA RSI,[0x39a278]
LEA RDX,[0x215814]
MOV RDI,R14
CALL 0x00183970
|
/* void YAML::Node::push_back<unsigned int>(unsigned int const&) */
void __thiscall YAML::Node::push_back<unsigned_int>(Node *this,uint *param_1)
{
node *pnVar1;
InvalidNode *this_00;
int8 local_60;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_58;
Node local_50 [8];
long *local_48;
long local_38 [2];
memory_holder *local_28;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_20;
int8 local_18;
if (*this != (Node)0x0) {
Node<unsigned_int>(local_50,param_1);
/* try { // try from 001a41c3 to 001a41d4 has its CatchHandler @ 001a42b6 */
EnsureNodeExists(this);
EnsureNodeExists(local_50);
local_60 = *(int8 *)(this + 0x28);
pnVar1 = *(node **)(this + 0x38);
local_58 = *(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x30);
if (local_58 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
if (*PTR___libc_single_threaded_003a0cc8 == '\0') {
LOCK();
*(int *)(local_58 + 8) = *(int *)(local_58 + 8) + 1;
UNLOCK();
}
else {
*(int *)(local_58 + 8) = *(int *)(local_58 + 8) + 1;
}
}
/* try { // try from 001a420a to 001a4213 has its CatchHandler @ 001a42a2 */
detail::node::push_back(pnVar1,local_18,&local_60);
if (local_58 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_58);
}
/* try { // try from 001a422c to 001a4230 has its CatchHandler @ 001a42b6 */
detail::memory_holder::merge(*(memory_holder **)(this + 0x28),local_28);
if (local_20 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_20);
}
if (local_48 != local_38) {
operator_delete(local_48,local_38[0] + 1);
}
return;
}
this_00 = (InvalidNode *)__cxa_allocate_exception(0x40);
/* try { // try from 001a4274 to 001a427e has its CatchHandler @ 001a4295 */
InvalidNode::InvalidNode(this_00,(string *)(this + 8));
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,&InvalidNode::typeinfo,BadInsert::~BadInsert);
}
| |
25,164 | ggml_compute_forward_get_rel_pos | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c | static void ggml_compute_forward_get_rel_pos(
const struct ggml_compute_params * params,
struct ggml_tensor * dst) {
const struct ggml_tensor * src0 = dst->src[0];
switch (src0->type) {
case GGML_TYPE_F16:
case GGML_TYPE_BF16:
{
ggml_compute_forward_get_rel_pos_f16(params, dst);
} break;
default:
{
GGML_ABORT("fatal error");
}
}
} | O0 | c | ggml_compute_forward_get_rel_pos:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x98(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x1c(%rbp)
subl $0x1, %eax
je 0x19339
jmp 0x1932f
movl -0x1c(%rbp), %eax
subl $0x1e, %eax
jne 0x19348
jmp 0x19339
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x3af30
jmp 0x19362
leaq 0x5a813(%rip), %rdi # 0x73b62
movl $0x2dc3, %esi # imm = 0x2DC3
leaq 0x5aa62(%rip), %rdx # 0x73dbd
movb $0x0, %al
callq 0xe270
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| ggml_compute_forward_get_rel_pos:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_10]
mov rax, [rax+98h]
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
mov eax, [rax]
mov [rbp+var_1C], eax
sub eax, 1
jz short loc_19339
jmp short $+2
loc_1932F:
mov eax, [rbp+var_1C]
sub eax, 1Eh
jnz short loc_19348
jmp short $+2
loc_19339:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
call ggml_compute_forward_get_rel_pos_f16
jmp short loc_19362
loc_19348:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 2DC3h
lea rdx, aFatalError; "fatal error"
mov al, 0
call _ggml_abort
loc_19362:
add rsp, 20h
pop rbp
retn
| double ggml_compute_forward_get_rel_pos(long long a1, long long a2)
{
double result; // xmm0_8
int v3; // [rsp+4h] [rbp-1Ch]
v3 = **(_DWORD **)(a2 + 152);
if ( v3 != 1 && v3 != 30 )
return ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
11715LL,
"fatal error");
ggml_compute_forward_get_rel_pos_f16(a1, a2);
return result;
}
| ggml_compute_forward_get_rel_pos:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x98]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x1c],EAX
SUB EAX,0x1
JZ 0x00119339
JMP 0x0011932f
LAB_0011932f:
MOV EAX,dword ptr [RBP + -0x1c]
SUB EAX,0x1e
JNZ 0x00119348
JMP 0x00119339
LAB_00119339:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x0013af30
JMP 0x00119362
LAB_00119348:
LEA RDI,[0x173b62]
MOV ESI,0x2dc3
LEA RDX,[0x173dbd]
MOV AL,0x0
CALL 0x0010e270
LAB_00119362:
ADD RSP,0x20
POP RBP
RET
|
void ggml_compute_forward_get_rel_pos(int8 param_1,long param_2)
{
if ((**(int **)(param_2 + 0x98) == 1) || (**(int **)(param_2 + 0x98) == 0x1e)) {
ggml_compute_forward_get_rel_pos_f16(param_1,param_2);
}
else {
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c"
,0x2dc3,"fatal error");
}
return;
}
| |
25,165 | mysql_load_plugin_v | eloqsql/build_O3/libmariadb/libmariadb/ma_client_plugin.c | struct st_mysql_client_plugin * STDCALL
mysql_load_plugin_v(MYSQL *mysql, const char *name, int type,
int argc, va_list args)
{
const char *errmsg;
#ifdef _WIN32
char errbuf[1024];
#endif
char dlpath[FN_REFLEN+1];
void *sym, *dlhandle = NULL;
struct st_mysql_client_plugin *plugin;
char *env_plugin_dir= getenv("MARIADB_PLUGIN_DIR");
CLEAR_CLIENT_ERROR(mysql);
if (is_not_initialized(mysql, name))
return NULL;
pthread_mutex_lock(&LOCK_load_client_plugin);
/* make sure the plugin wasn't loaded meanwhile */
if (type >= 0 && find_plugin(name, type))
{
errmsg= "it is already loaded";
goto err;
}
/* Compile dll path */
#ifndef WIN32
snprintf(dlpath, sizeof(dlpath) - 1, "%s/%s%s",
mysql->options.extension && mysql->options.extension->plugin_dir ?
mysql->options.extension->plugin_dir : (env_plugin_dir) ? env_plugin_dir :
MARIADB_PLUGINDIR, name, SO_EXT);
#else
{
char *p= (mysql->options.extension && mysql->options.extension->plugin_dir) ?
mysql->options.extension->plugin_dir : env_plugin_dir;
snprintf(dlpath, sizeof(dlpath), "%s%s%s%s", p ? p : "", p ? "\\" : "", name, SO_EXT);
}
#endif
if (strpbrk(name, "()[]!@#$%^&/*;.,'?\\"))
{
errmsg= "invalid plugin name";
goto err;
}
/* Open new dll handle */
if (!(dlhandle= dlopen((const char *)dlpath, RTLD_NOW)))
{
#ifdef _WIN32
char winmsg[255];
size_t len;
winmsg[0] = 0;
FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM,
NULL,
GetLastError(),
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
winmsg, 255, NULL);
len= strlen(winmsg);
while (len > 0 && (winmsg[len - 1] == '\n' || winmsg[len - 1] == '\r'))
len--;
if (len)
winmsg[len] = 0;
snprintf(errbuf, sizeof(errbuf), "%s Library path is '%s'", winmsg, dlpath);
errmsg= errbuf;
#else
errmsg= dlerror();
#endif
goto err;
}
if (!(sym= dlsym(dlhandle, plugin_declarations_sym)))
{
errmsg= "not a plugin";
(void)dlclose(dlhandle);
goto err;
}
plugin= (struct st_mysql_client_plugin*)sym;
if (type >=0 && type != plugin->type)
{
errmsg= "type mismatch";
goto err;
}
if (strcmp(name, plugin->name))
{
errmsg= "name mismatch";
goto err;
}
if (type < 0 && find_plugin(name, plugin->type))
{
errmsg= "it is already loaded";
goto err;
}
plugin= add_plugin(mysql, plugin, dlhandle, argc, args);
pthread_mutex_unlock(&LOCK_load_client_plugin);
return plugin;
err:
if (dlhandle)
dlclose(dlhandle);
pthread_mutex_unlock(&LOCK_load_client_plugin);
my_set_error(mysql, CR_AUTH_PLUGIN_CANNOT_LOAD, SQLSTATE_UNKNOWN,
ER(CR_AUTH_PLUGIN_CANNOT_LOAD), name, errmsg);
return NULL;
} | O3 | c | mysql_load_plugin_v:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x238, %rsp # imm = 0x238
movq %r8, -0x258(%rbp)
movl %ecx, %r12d
movl %edx, %r13d
movq %rsi, %rbx
movq %rdi, %r14
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
leaq 0xf8d3(%rip), %rdi # 0x39559
callq 0x13590
movq %rax, %r15
movl $0x0, 0x90(%r14)
movl $0x30303030, 0x297(%r14) # imm = 0x30303030
movw $0x30, 0x29b(%r14)
movb $0x0, 0x97(%r14)
movq 0x2a0(%r14), %rax
testq %rax, %rax
je 0x29cc9
movl $0x0, 0x4(%rax)
cmpb $0x0, 0x25c80(%rip) # 0x4f950
je 0x29cff
leaq 0x25c7f(%rip), %rdi # 0x4f958
callq 0x136a0
testl %r13d, %r13d
js 0x29d31
movq %rbx, %rdi
movl %r13d, %esi
callq 0x29bdb
testq %rax, %rax
je 0x29d31
leaq 0xf872(%rip), %r15 # 0x3956c
jmp 0x29e3b
leaq 0x23f0a(%rip), %rax # 0x4dc10
movq (%rax), %rdx
leaq 0x23f10(%rip), %rax # 0x4dc20
movq 0x1d8(%rax), %rcx
leaq 0xf96c(%rip), %r9 # 0x3968a
xorl %r12d, %r12d
movq %r14, %rdi
movl $0x80b, %esi # imm = 0x80B
movq %rbx, %r8
jmp 0x29e70
movq 0x480(%r14), %rax
testq %rax, %rax
je 0x29d45
movq (%rax), %r9
testq %r9, %r9
jne 0x29d53
testq %r15, %r15
leaq 0xf83a(%rip), %r9 # 0x39589
cmovneq %r15, %r9
leaq 0xf84d(%rip), %r10 # 0x395a7
leaq 0xf820(%rip), %r8 # 0x39581
leaq -0x240(%rbp), %rdi
movl $0x200, %esi # imm = 0x200
movl $0x201, %ecx # imm = 0x201
movl $0x1, %edx
xorl %eax, %eax
pushq %r10
pushq %rbx
callq 0x132c0
addq $0x10, %rsp
leaq 0xf81f(%rip), %rsi # 0x395ab
movq %rbx, %rdi
callq 0x137a0
testq %rax, %rax
je 0x29da5
leaq 0xf81f(%rip), %r15 # 0x395bf
jmp 0x29e3b
leaq -0x240(%rbp), %rdi
movl $0x2, %esi
callq 0x13630
testq %rax, %rax
je 0x29e0a
movl %r12d, -0x24c(%rbp)
leaq 0xf80a(%rip), %rsi # 0x395d3
movq %rax, %r12
movq %rax, %rdi
callq 0x13410
testq %rax, %rax
je 0x29e14
movq %rax, %r15
movq %r12, -0x248(%rbp)
testl %r13d, %r13d
js 0x29ded
cmpl %r13d, (%r15)
jne 0x29e25
movq 0x8(%r15), %rsi
movq %rbx, %rdi
callq 0x13640
testl %eax, %eax
je 0x29e9b
leaq 0xf808(%rip), %r15 # 0x39610
jmp 0x29e2c
callq 0x13420
movq %rax, %r15
jmp 0x29e3b
movq %r12, %rdi
callq 0x13360
leaq 0xf7d2(%rip), %r15 # 0x395f5
jmp 0x29e33
leaq 0xf7d6(%rip), %r15 # 0x39602
movq -0x248(%rbp), %r12
movq %r12, %rdi
callq 0x13360
leaq 0x25b16(%rip), %rdi # 0x4f958
callq 0x13330
leaq 0x23dc2(%rip), %rax # 0x4dc10
movq (%rax), %rdx
leaq 0x23dc8(%rip), %rax # 0x4dc20
movq 0x1d8(%rax), %rcx
xorl %r12d, %r12d
movq %r14, %rdi
movl $0x80b, %esi # imm = 0x80B
movq %rbx, %r8
movq %r15, %r9
xorl %eax, %eax
callq 0x17c91
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x29eec
movq %r12, %rax
addq $0x238, %rsp # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testl %r13d, %r13d
js 0x29ed0
movq %r14, %rdi
movq %r15, %rsi
movq -0x248(%rbp), %rdx
movl -0x24c(%rbp), %ecx
movq -0x258(%rbp), %r8
callq 0x2994c
movq %rax, %r12
leaq 0x25a8f(%rip), %rdi # 0x4f958
callq 0x13330
jmp 0x29e77
movl (%r15), %esi
movq %rbx, %rdi
callq 0x29bdb
testq %rax, %rax
je 0x29ea0
leaq 0xf685(%rip), %r15 # 0x3956c
jmp 0x29e2c
callq 0x13500
| mysql_load_plugin_v:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 238h
mov [rbp+var_258], r8
mov r12d, ecx
mov r13d, edx
mov rbx, rsi
mov r14, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
lea rdi, aMariadbPluginD; "MARIADB_PLUGIN_DIR"
call _getenv
mov r15, rax
mov dword ptr [r14+90h], 0
mov dword ptr [r14+297h], 30303030h
mov word ptr [r14+29Bh], 30h ; '0'
mov byte ptr [r14+97h], 0
mov rax, [r14+2A0h]
test rax, rax
jz short loc_29CC9
mov dword ptr [rax+4], 0
loc_29CC9:
cmp cs:initialized, 0
jz short loc_29CFF
lea rdi, LOCK_load_client_plugin
call _pthread_mutex_lock
test r13d, r13d
js short loc_29D31
mov rdi, rbx
mov esi, r13d
call find_plugin
test rax, rax
jz short loc_29D31
lea r15, aItIsAlreadyLoa; "it is already loaded"
jmp loc_29E3B
loc_29CFF:
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
lea rax, client_errors
mov rcx, [rax+1D8h]
lea r9, aNotInitialized; "not initialized"
xor r12d, r12d
mov rdi, r14
mov esi, 80Bh
mov r8, rbx
jmp loc_29E70
loc_29D31:
mov rax, [r14+480h]
test rax, rax
jz short loc_29D45
mov r9, [rax]
test r9, r9
jnz short loc_29D53
loc_29D45:
test r15, r15
lea r9, aHomeMonoInstal; "/home/mono/install/lib/plugin"
cmovnz r9, r15
loc_29D53:
lea r10, aSo; ".so"
lea r8, aSSS; "%s/%s%s"
lea rdi, [rbp+var_240]
mov esi, 200h
mov ecx, 201h
mov edx, 1
xor eax, eax
push r10
push rbx
call ___snprintf_chk
add rsp, 10h
lea rsi, asc_395AB; "()[]!@#$%^&/*;.,'?\\"
mov rdi, rbx
call _strpbrk
test rax, rax
jz short loc_29DA5
lea r15, aInvalidPluginN; "invalid plugin name"
jmp loc_29E3B
loc_29DA5:
lea rdi, [rbp+var_240]
mov esi, 2
call _dlopen
test rax, rax
jz short loc_29E0A
mov [rbp+var_24C], r12d
lea rsi, aMysqlClientPlu; "_mysql_client_plugin_declaration_"
mov r12, rax
mov rdi, rax
call _dlsym
test rax, rax
jz short loc_29E14
mov r15, rax
mov [rbp+var_248], r12
test r13d, r13d
js short loc_29DED
cmp [r15], r13d
jnz short loc_29E25
loc_29DED:
mov rsi, [r15+8]
mov rdi, rbx
call _strcmp
test eax, eax
jz loc_29E9B
lea r15, aNameMismatch; "name mismatch"
jmp short loc_29E2C
loc_29E0A:
call _dlerror
mov r15, rax
jmp short loc_29E3B
loc_29E14:
mov rdi, r12
call _dlclose
lea r15, aNotAPlugin; "not a plugin"
jmp short loc_29E33
loc_29E25:
lea r15, aTypeMismatch; "type mismatch"
loc_29E2C:
mov r12, [rbp+var_248]
loc_29E33:
mov rdi, r12
call _dlclose
loc_29E3B:
lea rdi, LOCK_load_client_plugin
call _pthread_mutex_unlock
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
lea rax, client_errors
mov rcx, [rax+1D8h]
xor r12d, r12d
mov rdi, r14
mov esi, 80Bh
mov r8, rbx
mov r9, r15
loc_29E70:
xor eax, eax
call my_set_error
loc_29E77:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_29EEC
mov rax, r12
add rsp, 238h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_29E9B:
test r13d, r13d
js short loc_29ED0
loc_29EA0:
mov rdi, r14
mov rsi, r15
mov rdx, [rbp+var_248]
mov ecx, [rbp+var_24C]
mov r8, [rbp+var_258]
call add_plugin
mov r12, rax
lea rdi, LOCK_load_client_plugin
call _pthread_mutex_unlock
jmp short loc_29E77
loc_29ED0:
mov esi, [r15]
mov rdi, rbx
call find_plugin
test rax, rax
jz short loc_29EA0
lea r15, aItIsAlreadyLoa; "it is already loaded"
jmp loc_29E2C
loc_29EEC:
call ___stack_chk_fail
| long long mysql_load_plugin_v(long long a1, const char *a2, int a3, unsigned int a4, long long a5)
{
long long v7; // r15
long long v8; // rax
const char *v9; // r15
long long v10; // r12
const char **v11; // rax
const char *v12; // r9
double v13; // xmm0_8
long long v14; // rax
long long v15; // r12
long long v16; // rax
int *v17; // r15
unsigned int v20; // [rsp+14h] [rbp-24Ch]
_BYTE v21[528]; // [rsp+20h] [rbp-240h] BYREF
unsigned long long v22; // [rsp+230h] [rbp-30h]
v22 = __readfsqword(0x28u);
v7 = getenv("MARIADB_PLUGIN_DIR");
*(_DWORD *)(a1 + 144) = 0;
strcpy((char *)(a1 + 663), "00000");
*(_BYTE *)(a1 + 151) = 0;
v8 = *(_QWORD *)(a1 + 672);
if ( v8 )
*(_DWORD *)(v8 + 4) = 0;
if ( initialized )
{
pthread_mutex_lock(&LOCK_load_client_plugin);
if ( a3 >= 0 && find_plugin((long long)a2, a3) )
{
v9 = "it is already loaded";
}
else
{
v11 = *(const char ***)(a1 + 1152);
if ( !v11 || (v12 = *v11) == 0LL )
{
v12 = "/home/mono/install/lib/plugin";
if ( v7 )
v12 = (const char *)v7;
}
v13 = __snprintf_chk(v21, 512LL, 1LL, 513LL, "%s/%s%s", v12, a2, ".so");
if ( strpbrk(a2, "()[]!@#$%^&/*;.,'?\\", v13) )
{
v9 = "invalid plugin name";
}
else
{
v14 = dlopen(v21, 2LL);
if ( v14 )
{
v20 = a4;
v15 = v14;
v16 = dlsym(v14, "_mysql_client_plugin_declaration_");
if ( v16 )
{
v17 = (int *)v16;
if ( a3 < 0 || *(_DWORD *)v16 == a3 )
{
if ( !(unsigned int)strcmp(a2, *(_QWORD *)(v16 + 8)) )
{
if ( a3 >= 0 || !find_plugin((long long)a2, *v17) )
{
v10 = add_plugin(a1, (long long)v17, v15, v20, a5);
pthread_mutex_unlock(&LOCK_load_client_plugin);
return v10;
}
v9 = "it is already loaded";
}
else
{
v9 = "name mismatch";
}
}
else
{
v9 = "type mismatch";
}
}
else
{
dlclose(v15);
v9 = "not a plugin";
}
dlclose(v15);
}
else
{
v9 = (const char *)dlerror();
}
}
}
pthread_mutex_unlock(&LOCK_load_client_plugin);
v10 = 0LL;
my_set_error(a1, 2059, (long long)SQLSTATE_UNKNOWN, client_errors[59], a2, v9);
}
else
{
v10 = 0LL;
my_set_error(a1, 2059, (long long)SQLSTATE_UNKNOWN, client_errors[59], a2, "not initialized");
}
return v10;
}
| mysql_load_plugin_v:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x238
MOV qword ptr [RBP + -0x258],R8
MOV R12D,ECX
MOV R13D,EDX
MOV RBX,RSI
MOV R14,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
LEA RDI,[0x139559]
CALL 0x00113590
MOV R15,RAX
MOV dword ptr [R14 + 0x90],0x0
MOV dword ptr [R14 + 0x297],0x30303030
MOV word ptr [R14 + 0x29b],0x30
MOV byte ptr [R14 + 0x97],0x0
MOV RAX,qword ptr [R14 + 0x2a0]
TEST RAX,RAX
JZ 0x00129cc9
MOV dword ptr [RAX + 0x4],0x0
LAB_00129cc9:
CMP byte ptr [0x0014f950],0x0
JZ 0x00129cff
LEA RDI,[0x14f958]
CALL 0x001136a0
TEST R13D,R13D
JS 0x00129d31
MOV RDI,RBX
MOV ESI,R13D
CALL 0x00129bdb
TEST RAX,RAX
JZ 0x00129d31
LEA R15,[0x13956c]
JMP 0x00129e3b
LAB_00129cff:
LEA RAX,[0x14dc10]
MOV RDX,qword ptr [RAX]
LEA RAX,[0x14dc20]
MOV RCX,qword ptr [RAX + 0x1d8]
LEA R9,[0x13968a]
XOR R12D,R12D
MOV RDI,R14
MOV ESI,0x80b
MOV R8,RBX
JMP 0x00129e70
LAB_00129d31:
MOV RAX,qword ptr [R14 + 0x480]
TEST RAX,RAX
JZ 0x00129d45
MOV R9,qword ptr [RAX]
TEST R9,R9
JNZ 0x00129d53
LAB_00129d45:
TEST R15,R15
LEA R9,[0x139589]
CMOVNZ R9,R15
LAB_00129d53:
LEA R10,[0x1395a7]
LEA R8,[0x139581]
LEA RDI,[RBP + -0x240]
MOV ESI,0x200
MOV ECX,0x201
MOV EDX,0x1
XOR EAX,EAX
PUSH R10
PUSH RBX
CALL 0x001132c0
ADD RSP,0x10
LEA RSI,[0x1395ab]
MOV RDI,RBX
CALL 0x001137a0
TEST RAX,RAX
JZ 0x00129da5
LEA R15,[0x1395bf]
JMP 0x00129e3b
LAB_00129da5:
LEA RDI,[RBP + -0x240]
MOV ESI,0x2
CALL 0x00113630
TEST RAX,RAX
JZ 0x00129e0a
MOV dword ptr [RBP + -0x24c],R12D
LEA RSI,[0x1395d3]
MOV R12,RAX
MOV RDI,RAX
CALL 0x00113410
TEST RAX,RAX
JZ 0x00129e14
MOV R15,RAX
MOV qword ptr [RBP + -0x248],R12
TEST R13D,R13D
JS 0x00129ded
CMP dword ptr [R15],R13D
JNZ 0x00129e25
LAB_00129ded:
MOV RSI,qword ptr [R15 + 0x8]
MOV RDI,RBX
CALL 0x00113640
TEST EAX,EAX
JZ 0x00129e9b
LEA R15,[0x139610]
JMP 0x00129e2c
LAB_00129e0a:
CALL 0x00113420
MOV R15,RAX
JMP 0x00129e3b
LAB_00129e14:
MOV RDI,R12
CALL 0x00113360
LEA R15,[0x1395f5]
JMP 0x00129e33
LAB_00129e25:
LEA R15,[0x139602]
LAB_00129e2c:
MOV R12,qword ptr [RBP + -0x248]
LAB_00129e33:
MOV RDI,R12
CALL 0x00113360
LAB_00129e3b:
LEA RDI,[0x14f958]
CALL 0x00113330
LEA RAX,[0x14dc10]
MOV RDX,qword ptr [RAX]
LEA RAX,[0x14dc20]
MOV RCX,qword ptr [RAX + 0x1d8]
XOR R12D,R12D
MOV RDI,R14
MOV ESI,0x80b
MOV R8,RBX
MOV R9,R15
LAB_00129e70:
XOR EAX,EAX
CALL 0x00117c91
LAB_00129e77:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00129eec
MOV RAX,R12
ADD RSP,0x238
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00129e9b:
TEST R13D,R13D
JS 0x00129ed0
LAB_00129ea0:
MOV RDI,R14
MOV RSI,R15
MOV RDX,qword ptr [RBP + -0x248]
MOV ECX,dword ptr [RBP + -0x24c]
MOV R8,qword ptr [RBP + -0x258]
CALL 0x0012994c
MOV R12,RAX
LEA RDI,[0x14f958]
CALL 0x00113330
JMP 0x00129e77
LAB_00129ed0:
MOV ESI,dword ptr [R15]
MOV RDI,RBX
CALL 0x00129bdb
TEST RAX,RAX
JZ 0x00129ea0
LEA R15,[0x13956c]
JMP 0x00129e2c
LAB_00129eec:
CALL 0x00113500
|
int8
mysql_load_plugin_v(long param_1,char *param_2,int param_3,int4 param_4,int8 param_5)
{
int iVar1;
char *pcVar2;
long lVar3;
int *piVar4;
int8 uVar5;
long lVar6;
char *pcVar7;
long in_FS_OFFSET;
int1 local_248 [528];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
pcVar2 = getenv("MARIADB_PLUGIN_DIR");
*(int4 *)(param_1 + 0x90) = 0;
*(int4 *)(param_1 + 0x297) = 0x30303030;
*(int2 *)(param_1 + 0x29b) = 0x30;
*(int1 *)(param_1 + 0x97) = 0;
if (*(long *)(param_1 + 0x2a0) != 0) {
*(int4 *)(*(long *)(param_1 + 0x2a0) + 4) = 0;
}
if (initialized == '\0') {
pcVar2 = "not initialized";
}
else {
pthread_mutex_lock((pthread_mutex_t *)LOCK_load_client_plugin);
if ((param_3 < 0) || (lVar3 = find_plugin(param_2,param_3), lVar3 == 0)) {
if (((*(long **)(param_1 + 0x480) == (long *)0x0) ||
(pcVar7 = (char *)**(long **)(param_1 + 0x480), pcVar7 == (char *)0x0)) &&
(pcVar7 = "/home/mono/install/lib/plugin", pcVar2 != (char *)0x0)) {
pcVar7 = pcVar2;
}
__snprintf_chk(local_248,0x200,1,0x201,"%s/%s%s",pcVar7,param_2,&DAT_001395a7);
pcVar2 = strpbrk(param_2,"()[]!@#$%^&/*;.,\'?\\");
if (pcVar2 == (char *)0x0) {
lVar3 = dlopen(local_248,2);
if (lVar3 == 0) {
pcVar2 = (char *)dlerror();
}
else {
piVar4 = (int *)dlsym(lVar3,"_mysql_client_plugin_declaration_");
if (piVar4 == (int *)0x0) {
dlclose(lVar3);
pcVar2 = "not a plugin";
}
else if ((param_3 < 0) || (*piVar4 == param_3)) {
iVar1 = strcmp(param_2,*(char **)(piVar4 + 2));
if (iVar1 == 0) {
if ((-1 < param_3) || (lVar6 = find_plugin(param_2,*piVar4), lVar6 == 0)) {
uVar5 = add_plugin(param_1,piVar4,lVar3,param_4,param_5);
pthread_mutex_unlock((pthread_mutex_t *)LOCK_load_client_plugin);
goto LAB_00129e77;
}
pcVar2 = "it is already loaded";
}
else {
pcVar2 = "name mismatch";
}
}
else {
pcVar2 = "type mismatch";
}
dlclose(lVar3);
}
}
else {
pcVar2 = "invalid plugin name";
}
}
else {
pcVar2 = "it is already loaded";
}
pthread_mutex_unlock((pthread_mutex_t *)LOCK_load_client_plugin);
}
uVar5 = 0;
my_set_error(param_1,0x80b,SQLSTATE_UNKNOWN,PTR_s_Plugin__s_could_not_be_loaded____0014ddf8,
param_2,pcVar2);
LAB_00129e77:
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return uVar5;
}
| |
25,166 | testing::internal::UnitTestImpl::successful_test_suite_count() const | seiftnesse[P]memoryallocator/build_O3/_deps/googletest-src/googletest/src/gtest.cc | void UnitTestImpl::SetTestPartResultReporterForCurrentThread(
TestPartResultReporterInterface* reporter) {
per_thread_test_part_result_reporter_.set(reporter);
} | O3 | cpp | testing::internal::UnitTestImpl::successful_test_suite_count() const:
pushq %rbp
pushq %r14
pushq %rbx
movq 0xb8(%rdi), %r14
movq 0xc0(%rdi), %rax
cmpq %rax, %r14
je 0x202b8
movq %rdi, %rbx
xorl %ebp, %ebp
movq (%r14), %rdi
cmpb $0x1, 0x70(%rdi)
movl $0x0, %ecx
jne 0x202ab
callq 0x3a1e8
movzbl %al, %ecx
movq 0xc0(%rbx), %rax
addl %ecx, %ebp
addq $0x8, %r14
cmpq %rax, %r14
jne 0x2028e
jmp 0x202ba
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
nop
| _ZNK7testing8internal12UnitTestImpl27successful_test_suite_countEv:
push rbp
push r14
push rbx
mov r14, [rdi+0B8h]
mov rax, [rdi+0C0h]
cmp r14, rax
jz short loc_202B8
mov rbx, rdi
xor ebp, ebp
loc_2028E:
mov rdi, [r14]; this
cmp byte ptr [rdi+70h], 1
mov ecx, 0
jnz short loc_202AB
call _ZNK7testing9TestSuite6PassedEv; testing::TestSuite::Passed(void)
movzx ecx, al
mov rax, [rbx+0C0h]
loc_202AB:
add ebp, ecx
add r14, 8
cmp r14, rax
jnz short loc_2028E
jmp short loc_202BA
loc_202B8:
xor ebp, ebp
loc_202BA:
mov eax, ebp
pop rbx
pop r14
pop rbp
retn
| long long testing::internal::UnitTestImpl::successful_test_suite_count(testing::internal::UnitTestImpl *this)
{
testing::TestSuite **v1; // r14
testing::TestSuite **v2; // rax
unsigned int v3; // ebp
int v4; // ecx
v1 = (testing::TestSuite **)*((_QWORD *)this + 23);
v2 = (testing::TestSuite **)*((_QWORD *)this + 24);
if ( v1 == v2 )
{
return 0;
}
else
{
v3 = 0;
do
{
v4 = 0;
if ( *((_BYTE *)*v1 + 112) == 1 )
{
v4 = (unsigned __int8)testing::TestSuite::Passed(*v1);
v2 = (testing::TestSuite **)*((_QWORD *)this + 24);
}
v3 += v4;
++v1;
}
while ( v1 != v2 );
}
return v3;
}
| successful_test_suite_count:
PUSH RBP
PUSH R14
PUSH RBX
MOV R14,qword ptr [RDI + 0xb8]
MOV RAX,qword ptr [RDI + 0xc0]
CMP R14,RAX
JZ 0x001202b8
MOV RBX,RDI
XOR EBP,EBP
LAB_0012028e:
MOV RDI,qword ptr [R14]
CMP byte ptr [RDI + 0x70],0x1
MOV ECX,0x0
JNZ 0x001202ab
CALL 0x0013a1e8
MOVZX ECX,AL
MOV RAX,qword ptr [RBX + 0xc0]
LAB_001202ab:
ADD EBP,ECX
ADD R14,0x8
CMP R14,RAX
JNZ 0x0012028e
JMP 0x001202ba
LAB_001202b8:
XOR EBP,EBP
LAB_001202ba:
MOV EAX,EBP
POP RBX
POP R14
POP RBP
RET
|
/* testing::internal::UnitTestImpl::successful_test_suite_count() const */
int __thiscall testing::internal::UnitTestImpl::successful_test_suite_count(UnitTestImpl *this)
{
byte bVar1;
int8 *puVar2;
uint uVar3;
int iVar4;
int8 *puVar5;
puVar5 = *(int8 **)(this + 0xb8);
puVar2 = *(int8 **)(this + 0xc0);
if (puVar5 == puVar2) {
iVar4 = 0;
}
else {
iVar4 = 0;
do {
uVar3 = 0;
if (((TestSuite *)*puVar5)[0x70] == (TestSuite)0x1) {
bVar1 = TestSuite::Passed((TestSuite *)*puVar5);
uVar3 = (uint)bVar1;
puVar2 = *(int8 **)(this + 0xc0);
}
iVar4 = iVar4 + uVar3;
puVar5 = puVar5 + 1;
} while (puVar5 != puVar2);
}
return iVar4;
}
| |
25,167 | emittra::Emittra::try_dequeue(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::any, std::allocator<std::any>>&) | angrymouse[P]emittra/src/emittra.cpp | bool Emittra::try_dequeue(const std::string& event_name, std::vector<std::any>& args) {
auto event_data = get_or_create_event_data(event_name);
QueuedEvent event;
if (event_data->event_queue.try_dequeue(event)) {
args = std::move(event.args);
return true;
}
return false;
} | O1 | cpp | emittra::Emittra::try_dequeue(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::any, std::allocator<std::any>>&):
pushq %r14
pushq %rbx
subq $0x58, %rsp
movq %rdx, %r14
movq %rsi, %rdx
movq %rdi, %rsi
leaq 0x30(%rsp), %rbx
movq %rbx, %rdi
callq 0x4c50
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, 0x10(%rsi)
movaps %xmm0, (%rsi)
movq $0x0, 0x20(%rsi)
movq (%rbx), %rdi
addq $0x18, %rdi
callq 0x66c8
movl %eax, %ebx
testb %al, %al
je 0x5e62
xorps %xmm0, %xmm0
leaq 0x40(%rsp), %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movups (%r14), %xmm0
movq 0x10(%r14), %rax
movaps (%rsp), %xmm1
movups %xmm1, (%r14)
movq 0x10(%rsp), %rcx
movq %rcx, 0x10(%r14)
movq 0x10(%rdi), %rcx
movq %rax, 0x10(%rdi)
movaps (%rdi), %xmm1
movaps %xmm0, (%rdi)
movaps %xmm1, (%rsp)
movq %rcx, 0x10(%rsp)
callq 0x46fa
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x5e71
callq 0x4352
movq %rsp, %rdi
callq 0x46fa
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x5e88
callq 0x4352
movl %ebx, %eax
addq $0x58, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x660c
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x5eac
callq 0x4352
movq %rbx, %rdi
callq 0x3450
| _ZN7emittra7Emittra11try_dequeueERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERSt6vectorISt3anySaISA_EE:
push r14
push rbx
sub rsp, 58h
mov r14, rdx
mov rdx, rsi
mov rsi, rdi
lea rbx, [rsp+68h+var_38]
mov rdi, rbx
call _ZN7emittra7Emittra24get_or_create_event_dataERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; emittra::Emittra::get_or_create_event_data(std::string const&)
xorps xmm0, xmm0
mov rsi, rsp
movaps xmmword ptr [rsi+10h], xmm0
movaps xmmword ptr [rsi], xmm0
mov qword ptr [rsi+20h], 0
mov rdi, [rbx]
add rdi, 18h
call _ZN10moodycamel15ConcurrentQueueIN7emittra7Emittra11QueuedEventENS_28ConcurrentQueueDefaultTraitsEE11try_dequeueIS3_EEbRT_; moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::try_dequeue<emittra::Emittra::QueuedEvent>(emittra::Emittra::QueuedEvent &)
mov ebx, eax
test al, al
jz short loc_5E62
xorps xmm0, xmm0
lea rdi, [rsp+68h+var_28]
movaps xmmword ptr [rdi], xmm0
mov qword ptr [rdi+10h], 0
movups xmm0, xmmword ptr [r14]
mov rax, [r14+10h]
movaps xmm1, [rsp+68h+var_68]
movups xmmword ptr [r14], xmm1
mov rcx, [rsp+68h+var_58]
mov [r14+10h], rcx
mov rcx, [rdi+10h]
mov [rdi+10h], rax
movaps xmm1, xmmword ptr [rdi]
movaps xmmword ptr [rdi], xmm0
movaps [rsp+68h+var_68], xmm1
mov [rsp+68h+var_58], rcx
call _ZNSt6vectorISt3anySaIS0_EED2Ev; std::vector<std::any>::~vector()
loc_5E62:
mov rdi, [rsp+68h+var_48]
test rdi, rdi
jz short loc_5E71
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_5E71:
mov rdi, rsp
call _ZNSt6vectorISt3anySaIS0_EED2Ev; std::vector<std::any>::~vector()
mov rdi, [rsp+68h+var_30]
test rdi, rdi
jz short loc_5E88
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_5E88:
mov eax, ebx
add rsp, 58h
pop rbx
pop r14
retn
mov rbx, rax
mov rdi, rsp; this
call _ZN7emittra7Emittra11QueuedEventD2Ev; emittra::Emittra::QueuedEvent::~QueuedEvent()
mov rdi, [rsp+arg_30]
test rdi, rdi
jz short loc_5EAC
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_5EAC:
mov rdi, rbx
call __Unwind_Resume
| long long emittra::Emittra::try_dequeue(std::__shared_mutex_pthread *a1, long long a2, __int128 *a3)
{
unsigned int v4; // ebx
__int128 v5; // xmm0
long long v6; // rax
long long v7; // rcx
__int128 v8; // xmm1
__int128 v10; // [rsp+0h] [rbp-68h] BYREF
__int128 v11; // [rsp+10h] [rbp-58h]
volatile signed __int32 *v12; // [rsp+20h] [rbp-48h]
long long v13; // [rsp+30h] [rbp-38h] BYREF
volatile signed __int32 *v14; // [rsp+38h] [rbp-30h]
__int128 v15; // [rsp+40h] [rbp-28h] BYREF
long long v16; // [rsp+50h] [rbp-18h]
emittra::Emittra::get_or_create_event_data(&v13, a1, a2);
v11 = 0LL;
v10 = 0LL;
v12 = 0LL;
v4 = moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::try_dequeue<emittra::Emittra::QueuedEvent>(
v13 + 24,
&v10);
if ( (_BYTE)v4 )
{
v15 = 0LL;
v16 = 0LL;
v5 = *a3;
v6 = *((_QWORD *)a3 + 2);
*a3 = v10;
*((_QWORD *)a3 + 2) = v11;
v7 = v16;
v16 = v6;
v8 = v15;
v15 = v5;
v10 = v8;
*(_QWORD *)&v11 = v7;
std::vector<std::any>::~vector(&v15);
}
if ( v12 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v12);
std::vector<std::any>::~vector(&v10);
if ( v14 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v14);
return v4;
}
| try_dequeue:
PUSH R14
PUSH RBX
SUB RSP,0x58
MOV R14,RDX
MOV RDX,RSI
MOV RSI,RDI
LEA RBX,[RSP + 0x30]
MOV RDI,RBX
CALL 0x00104c50
XORPS XMM0,XMM0
MOV RSI,RSP
MOVAPS xmmword ptr [RSI + 0x10],XMM0
MOVAPS xmmword ptr [RSI],XMM0
MOV qword ptr [RSI + 0x20],0x0
MOV RDI,qword ptr [RBX]
ADD RDI,0x18
LAB_00105e0f:
CALL 0x001066c8
LAB_00105e14:
MOV EBX,EAX
TEST AL,AL
JZ 0x00105e62
XORPS XMM0,XMM0
LEA RDI,[RSP + 0x40]
MOVAPS xmmword ptr [RDI],XMM0
MOV qword ptr [RDI + 0x10],0x0
MOVUPS XMM0,xmmword ptr [R14]
MOV RAX,qword ptr [R14 + 0x10]
MOVAPS XMM1,xmmword ptr [RSP]
MOVUPS xmmword ptr [R14],XMM1
MOV RCX,qword ptr [RSP + 0x10]
MOV qword ptr [R14 + 0x10],RCX
MOV RCX,qword ptr [RDI + 0x10]
MOV qword ptr [RDI + 0x10],RAX
MOVAPS XMM1,xmmword ptr [RDI]
MOVAPS xmmword ptr [RDI],XMM0
MOVAPS xmmword ptr [RSP],XMM1
MOV qword ptr [RSP + 0x10],RCX
CALL 0x001046fa
LAB_00105e62:
MOV RDI,qword ptr [RSP + 0x20]
TEST RDI,RDI
JZ 0x00105e71
CALL 0x00104352
LAB_00105e71:
MOV RDI,RSP
CALL 0x001046fa
MOV RDI,qword ptr [RSP + 0x38]
TEST RDI,RDI
JZ 0x00105e88
CALL 0x00104352
LAB_00105e88:
MOV EAX,EBX
ADD RSP,0x58
POP RBX
POP R14
RET
|
/* emittra::Emittra::try_dequeue(std::__cxx11::string const&, std::vector<std::any,
std::allocator<std::any> >&) */
ulong __thiscall emittra::Emittra::try_dequeue(Emittra *this,string *param_1,vector *param_2)
{
bool bVar1;
int7 extraout_var;
int8 local_68;
int8 uStack_60;
int8 local_58;
int8 uStack_50;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_48;
long local_38;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_30;
int8 local_28;
int8 uStack_20;
int8 local_18;
get_or_create_event_data((string *)&local_38);
local_58 = 0;
uStack_50 = 0;
local_68 = 0;
uStack_60 = 0;
local_48 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
/* try { // try from 00105e0f to 00105e13 has its CatchHandler @ 00105e92 */
bVar1 = moodycamel::
ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::
try_dequeue<emittra::Emittra::QueuedEvent>
((ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>
*)(local_38 + 0x18),(QueuedEvent *)&local_68);
if (bVar1) {
local_28 = *(int8 *)param_2;
uStack_20 = *(int8 *)(param_2 + 8);
local_18 = *(int8 *)(param_2 + 0x10);
*(int8 *)param_2 = local_68;
*(int8 *)(param_2 + 8) = uStack_60;
*(int8 *)(param_2 + 0x10) = local_58;
local_68 = 0;
uStack_60 = 0;
local_58 = 0;
std::vector<std::any,std::allocator<std::any>>::~vector
((vector<std::any,std::allocator<std::any>> *)&local_28);
}
if (local_48 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_48);
}
std::vector<std::any,std::allocator<std::any>>::~vector
((vector<std::any,std::allocator<std::any>> *)&local_68);
if (local_30 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_30);
}
return CONCAT71(extraout_var,bVar1) & 0xffffffff;
}
| |
25,168 | emittra::Emittra::try_dequeue(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::any, std::allocator<std::any>>&) | angrymouse[P]emittra/src/emittra.cpp | bool Emittra::try_dequeue(const std::string& event_name, std::vector<std::any>& args) {
auto event_data = get_or_create_event_data(event_name);
QueuedEvent event;
if (event_data->event_queue.try_dequeue(event)) {
args = std::move(event.args);
return true;
}
return false;
} | O2 | cpp | emittra::Emittra::try_dequeue(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::any, std::allocator<std::any>>&):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdx, %rbx
movq %rsi, %rdx
movq %rdi, %rsi
movq %rsp, %r14
movq %r14, %rdi
callq 0x4932
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rsi
andq $0x0, 0x20(%rsi)
movaps %xmm0, 0x10(%rsi)
movaps %xmm0, (%rsi)
movq (%r14), %rdi
addq $0x18, %rdi
callq 0x5f44
movl %eax, %ebp
testb %al, %al
je 0x5841
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x8da6
leaq 0x10(%rsp), %rdi
callq 0x5e00
leaq 0x8(%rsp), %rdi
callq 0x3f84
movl %ebp, %eax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x5e00
leaq 0x8(%rsp), %rdi
callq 0x3f84
movq %rbx, %rdi
callq 0x3440
nop
| _ZN7emittra7Emittra11try_dequeueERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERSt6vectorISt3anySaISA_EE:
push rbp
push r14
push rbx
sub rsp, 40h
mov rbx, rdx
mov rdx, rsi
mov rsi, rdi
mov r14, rsp
mov rdi, r14
call _ZN7emittra7Emittra24get_or_create_event_dataERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; emittra::Emittra::get_or_create_event_data(std::string const&)
xorps xmm0, xmm0
lea rsi, [rsp+58h+var_48]
and qword ptr [rsi+20h], 0
movaps xmmword ptr [rsi+10h], xmm0
movaps xmmword ptr [rsi], xmm0
mov rdi, [r14]
add rdi, 18h
call _ZN10moodycamel15ConcurrentQueueIN7emittra7Emittra11QueuedEventENS_28ConcurrentQueueDefaultTraitsEE11try_dequeueIS3_EEbRT_; moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::try_dequeue<emittra::Emittra::QueuedEvent>(emittra::Emittra::QueuedEvent &)
mov ebp, eax
test al, al
jz short loc_5841
lea rsi, [rsp+58h+var_48]
mov rdi, rbx
call _ZNSt6vectorISt3anySaIS0_EE14_M_move_assignEOS2_St17integral_constantIbLb1EE; std::vector<std::any>::_M_move_assign(std::vector<std::any>&&,std::integral_constant<bool,true>)
loc_5841:
lea rdi, [rsp+58h+var_48]; this
call _ZN7emittra7Emittra11QueuedEventD2Ev; emittra::Emittra::QueuedEvent::~QueuedEvent()
lea rdi, [rsp+58h+var_50]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov eax, ebp
add rsp, 40h
pop rbx
pop r14
pop rbp
retn
mov rbx, rax
lea rdi, [rsp+arg_8]; this
call _ZN7emittra7Emittra11QueuedEventD2Ev; emittra::Emittra::QueuedEvent::~QueuedEvent()
lea rdi, [rsp+arg_0]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, rbx
call __Unwind_Resume
| long long emittra::Emittra::try_dequeue(std::__shared_mutex_pthread *a1, long long a2, long long a3)
{
unsigned int v4; // ebp
long long v6; // [rsp+0h] [rbp-58h] BYREF
long long v7; // [rsp+8h] [rbp-50h] BYREF
_BYTE v8[32]; // [rsp+10h] [rbp-48h] BYREF
long long v9; // [rsp+30h] [rbp-28h]
emittra::Emittra::get_or_create_event_data((long long)&v6, a1, a2);
v9 = 0LL;
memset(v8, 0, sizeof(v8));
v4 = moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::try_dequeue<emittra::Emittra::QueuedEvent>(
v6 + 24,
v8);
if ( (_BYTE)v4 )
std::vector<std::any>::_M_move_assign(a3, v8);
emittra::Emittra::QueuedEvent::~QueuedEvent((emittra::Emittra::QueuedEvent *)v8);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v7);
return v4;
}
| try_dequeue:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x40
MOV RBX,RDX
MOV RDX,RSI
MOV RSI,RDI
MOV R14,RSP
MOV RDI,R14
CALL 0x00104932
XORPS XMM0,XMM0
LEA RSI,[RSP + 0x10]
AND qword ptr [RSI + 0x20],0x0
MOVAPS xmmword ptr [RSI + 0x10],XMM0
MOVAPS xmmword ptr [RSI],XMM0
MOV RDI,qword ptr [R14]
ADD RDI,0x18
LAB_00105829:
CALL 0x00105f44
LAB_0010582e:
MOV EBP,EAX
TEST AL,AL
JZ 0x00105841
LEA RSI,[RSP + 0x10]
MOV RDI,RBX
CALL 0x00108da6
LAB_00105841:
LEA RDI,[RSP + 0x10]
CALL 0x00105e00
LEA RDI,[RSP + 0x8]
CALL 0x00103f84
MOV EAX,EBP
ADD RSP,0x40
POP RBX
POP R14
POP RBP
RET
|
/* emittra::Emittra::try_dequeue(std::__cxx11::string const&, std::vector<std::any,
std::allocator<std::any> >&) */
ulong __thiscall emittra::Emittra::try_dequeue(Emittra *this,string *param_1,vector *param_2)
{
bool bVar1;
int7 extraout_var;
long local_58;
__shared_count<(__gnu_cxx::_Lock_policy)2> local_50 [8];
int8 local_48;
int8 uStack_40;
int8 local_38;
int8 uStack_30;
int8 local_28;
get_or_create_event_data((string *)&local_58);
local_28 = 0;
local_38 = 0;
uStack_30 = 0;
local_48 = 0;
uStack_40 = 0;
/* try { // try from 00105829 to 0010582d has its CatchHandler @ 00105860 */
bVar1 = moodycamel::
ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::
try_dequeue<emittra::Emittra::QueuedEvent>
((ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>
*)(local_58 + 0x18),(QueuedEvent *)&local_48);
if (bVar1) {
std::vector<std::any,std::allocator<std::any>>::_M_move_assign(param_2,&local_48);
}
QueuedEvent::~QueuedEvent((QueuedEvent *)&local_48);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_50);
return CONCAT71(extraout_var,bVar1) & 0xffffffff;
}
| |
25,169 | Catch::Optional<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::reset() | AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.hpp | void reset() {
if( nullableValue )
nullableValue->~T();
nullableValue = nullptr;
} | O3 | cpp | Catch::Optional<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::reset():
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %r14
testq %r14, %r14
je 0x8445a
leaq 0x58(%r14), %rdi
callq 0x7b8d0
movq $0x0, 0x48(%r14)
leaq 0x20(%r14), %rdi
callq 0x7c1cc
movq (%r14), %rdi
addq $0x10, %r14
cmpq %r14, %rdi
je 0x8445a
movq (%r14), %rsi
incq %rsi
callq 0x17150
movq $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| _ZN5Catch8OptionalINS_12ReporterSpecEE5resetEv:
push r14
push rbx
push rax
mov rbx, rdi
mov r14, [rdi]
test r14, r14
jz short loc_8445A
lea rdi, [r14+58h]
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree()
mov qword ptr [r14+48h], 0
lea rdi, [r14+20h]
call _ZN5Catch8OptionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE5resetEv; Catch::Optional<std::string>::reset(void)
mov rdi, [r14]; void *
add r14, 10h
cmp rdi, r14
jz short loc_8445A
mov rsi, [r14]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8445A:
mov qword ptr [rbx], 0
add rsp, 8
pop rbx
pop r14
retn
| void Catch::Optional<Catch::ReporterSpec>::reset(long long *a1)
{
long long v2; // r14
_QWORD *v3; // rdi
_QWORD *v4; // r14
v2 = *a1;
if ( *a1 )
{
std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::~_Rb_tree(v2 + 88);
*(_QWORD *)(v2 + 72) = 0LL;
Catch::Optional<std::string>::reset((void ***)(v2 + 32));
v3 = *(_QWORD **)v2;
v4 = (_QWORD *)(v2 + 16);
if ( v3 != v4 )
operator delete(v3, *v4 + 1LL);
}
*a1 = 0LL;
}
| reset:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV R14,qword ptr [RDI]
TEST R14,R14
JZ 0x0018445a
LEA RDI,[R14 + 0x58]
CALL 0x0017b8d0
MOV qword ptr [R14 + 0x48],0x0
LEA RDI,[R14 + 0x20]
CALL 0x0017c1cc
MOV RDI,qword ptr [R14]
ADD R14,0x10
CMP RDI,R14
JZ 0x0018445a
MOV RSI,qword ptr [R14]
INC RSI
CALL 0x00117150
LAB_0018445a:
MOV qword ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* Catch::Optional<Catch::ReporterSpec>::reset() */
void __thiscall Catch::Optional<Catch::ReporterSpec>::reset(Optional<Catch::ReporterSpec> *this)
{
int8 *puVar1;
puVar1 = *(int8 **)this;
if (puVar1 != (int8 *)0x0) {
std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::~_Rb_tree((_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
*)(puVar1 + 0xb));
puVar1[9] = 0;
Optional<std::__cxx11::string>::reset((Optional<std::__cxx11::string> *)(puVar1 + 4));
if ((long *)*puVar1 != puVar1 + 2) {
operator_delete((long *)*puVar1,puVar1[2] + 1);
}
}
*(int8 *)this = 0;
return;
}
| |
25,170 | rtree_insert_level | eloqsql/storage/myisam/rt_index.c | static int rtree_insert_level(MI_INFO *info, uint keynr, uchar *key,
uint key_length, int ins_level)
{
my_off_t old_root;
MI_KEYDEF *keyinfo = info->s->keyinfo + keynr;
int res;
my_off_t new_page;
DBUG_ENTER("rtree_insert_level");
if ((old_root = info->s->state.key_root[keynr]) == HA_OFFSET_ERROR)
{
if ((old_root = _mi_new(info, keyinfo, DFLT_INIT_HITS)) == HA_OFFSET_ERROR)
DBUG_RETURN(-1);
info->buff_used = 1;
mi_putint(info->buff, 2, 0);
res = rtree_add_key(info, keyinfo, key, key_length, info->buff, NULL);
if (_mi_write_keypage(info, keyinfo, old_root, DFLT_INIT_HITS, info->buff))
DBUG_RETURN(1);
info->s->state.key_root[keynr] = old_root;
DBUG_RETURN(res);
}
switch ((res = rtree_insert_req(info, keyinfo, key, key_length,
old_root, &new_page, ins_level, 0)))
{
case 0: /* root was not split */
{
break;
}
case 1: /* root was split, grow a new root */
{
uchar *new_root_buf= info->buff + info->s->base.max_key_block_length;
my_off_t new_root;
uchar *new_key;
uint nod_flag = info->s->base.key_reflength;
DBUG_PRINT("rtree", ("root was split, grow a new root"));
mi_putint(new_root_buf, 2, nod_flag);
if ((new_root = _mi_new(info, keyinfo, DFLT_INIT_HITS)) ==
HA_OFFSET_ERROR)
goto err1;
new_key = new_root_buf + keyinfo->block_length + nod_flag;
_mi_kpointer(info, new_key - nod_flag, old_root);
if (rtree_set_key_mbr(info, keyinfo, new_key, key_length, old_root))
goto err1;
if (rtree_add_key(info, keyinfo, new_key, key_length, new_root_buf, NULL)
== -1)
goto err1;
_mi_kpointer(info, new_key - nod_flag, new_page);
if (rtree_set_key_mbr(info, keyinfo, new_key, key_length, new_page))
goto err1;
if (rtree_add_key(info, keyinfo, new_key, key_length, new_root_buf, NULL)
== -1)
goto err1;
if (_mi_write_keypage(info, keyinfo, new_root,
DFLT_INIT_HITS, new_root_buf))
goto err1;
info->s->state.key_root[keynr] = new_root;
DBUG_PRINT("rtree", ("new root page: %lu level: %d nod_flag: %u",
(ulong) new_root, 0, mi_test_if_nod(new_root_buf)));
break;
err1:
DBUG_RETURN(-1); /* purecov: inspected */
}
default:
case -1: /* error */
{
break;
}
}
DBUG_RETURN(res);
} | O3 | c | rtree_insert_level:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq (%rdi), %rdi
movl %esi, %r13d
imulq $0x70, %r13, %r14
addq 0x218(%rdi), %r14
movq %rdx, %r12
movq 0x98(%rdi), %rdx
movq (%rdx,%r13,8), %r15
cmpq $-0x1, %r15
movl %ecx, -0x2c(%rbp)
je 0x8b39f
movl %r8d, %eax
movq %r13, -0x40(%rbp)
leaq -0x48(%rbp), %r9
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %r15, %r8
pushq $0x0
pushq %rax
callq 0x8be8c
addq $0x10, %rsp
movl %eax, %edx
cmpl $0x1, %eax
jne 0x8b435
movq (%rbx), %rax
movq 0x100(%rbx), %r13
movl 0x17c(%rax), %ecx
movl 0x190(%rax), %r12d
movq %rcx, -0x38(%rbp)
testq %rcx, %rcx
setne %al
movb $0x2, 0x1(%r13,%r12)
shlb $0x7, %al
movb %al, (%r13,%r12)
movq %rbx, %rdi
movq %r14, %rsi
movl $0x3, %edx
callq 0x84e12
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
movq %rax, -0x60(%rbp)
cmpq $-0x1, %rax
je 0x8b435
addq %r12, %r13
movq %r13, %rax
movzwl 0xe(%r14), %r13d
movq %rax, -0x58(%rbp)
addq %rax, %r13
movq -0x38(%rbp), %r12
addq %r13, %r12
movq %rbx, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x86099
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, -0x38(%rbp)
movq %r12, %rdx
movl -0x2c(%rbp), %r12d
movl %r12d, %ecx
movq %r15, %r8
callq 0x8c308
testl %eax, %eax
jne 0x8b430
movq %r13, -0x50(%rbp)
movq %rbx, %rdi
movq %r14, %rsi
movq -0x38(%rbp), %r15
movq %r15, %rdx
movl %r12d, %ecx
movq -0x58(%rbp), %r13
movq %r13, %r8
xorl %r9d, %r9d
callq 0x8c190
cmpl $-0x1, %eax
je 0x8b430
movq -0x48(%rbp), %rdx
movq %rbx, %rdi
movq -0x50(%rbp), %rsi
callq 0x86099
movq -0x48(%rbp), %r8
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movl %r12d, %ecx
callq 0x8c308
testl %eax, %eax
jne 0x8b430
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movl %r12d, %ecx
movq %r13, %r8
xorl %r9d, %r9d
callq 0x8c190
cmpl $-0x1, %eax
je 0x8b430
movq %rbx, %rdi
movq %r14, %rsi
movq -0x60(%rbp), %r15
movq %r15, %rdx
movl $0x3, %ecx
movq %r13, %r8
callq 0x84c60
testl %eax, %eax
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
jne 0x8b435
movl $0x1, %edx
jmp 0x8b41c
movq %rbx, %rdi
movq %r14, %rsi
movl $0x3, %edx
callq 0x84e12
cmpq $-0x1, %rax
je 0x8b430
movq %rax, %r15
movq %r13, -0x40(%rbp)
movb $0x1, 0x33d(%rbx)
movq 0x100(%rbx), %rax
movb $0x2, 0x1(%rax)
movq 0x100(%rbx), %rax
movb $0x0, (%rax)
movq 0x100(%rbx), %r8
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
movl -0x2c(%rbp), %ecx
xorl %r9d, %r9d
callq 0x8c190
movl %eax, %r12d
movq 0x100(%rbx), %r8
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movl $0x3, %ecx
callq 0x84c60
movl $0x1, %edx
testl %eax, %eax
jne 0x8b435
movl %r12d, %edx
movq (%rbx), %rax
movq 0x98(%rax), %rax
movq -0x40(%rbp), %rcx
movq %r15, (%rax,%rcx,8)
jmp 0x8b435
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
movl %edx, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| rtree_insert_level:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov rbx, rdi
mov rdi, [rdi]
mov r13d, esi
imul r14, r13, 70h ; 'p'
add r14, [rdi+218h]
mov r12, rdx
mov rdx, [rdi+98h]
mov r15, [rdx+r13*8]
cmp r15, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_2C], ecx
jz loc_8B39F
mov eax, r8d
mov [rbp+var_40], r13
lea r9, [rbp+var_48]
mov rdi, rbx
mov rsi, r14
mov rdx, r12
mov r8, r15
push 0
push rax
call rtree_insert_req
add rsp, 10h
mov edx, eax
cmp eax, 1
jnz loc_8B435
mov rax, [rbx]
mov r13, [rbx+100h]
mov ecx, [rax+17Ch]
mov r12d, [rax+190h]
mov [rbp+var_38], rcx
test rcx, rcx
setnz al
mov byte ptr [r13+r12+1], 2
shl al, 7
mov [r13+r12+0], al
mov rdi, rbx
mov rsi, r14
mov edx, 3
call _mi_new
mov edx, 0FFFFFFFFh
mov [rbp+var_60], rax
cmp rax, 0FFFFFFFFFFFFFFFFh
jz loc_8B435
add r13, r12
mov rax, r13
movzx r13d, word ptr [r14+0Eh]
mov [rbp+var_58], rax
add r13, rax
mov r12, [rbp+var_38]
add r12, r13
mov rdi, rbx
mov rsi, r13
mov rdx, r15
call _mi_kpointer
mov rdi, rbx
mov rsi, r14
mov [rbp+var_38], r12
mov rdx, r12
mov r12d, [rbp+var_2C]
mov ecx, r12d
mov r8, r15
call rtree_set_key_mbr
test eax, eax
jnz loc_8B430
mov [rbp+var_50], r13
mov rdi, rbx
mov rsi, r14
mov r15, [rbp+var_38]
mov rdx, r15
mov ecx, r12d
mov r13, [rbp+var_58]
mov r8, r13
xor r9d, r9d
call rtree_add_key
cmp eax, 0FFFFFFFFh
jz loc_8B430
mov rdx, [rbp+var_48]
mov rdi, rbx
mov rsi, [rbp+var_50]
call _mi_kpointer
mov r8, [rbp+var_48]
mov rdi, rbx
mov rsi, r14
mov rdx, r15
mov ecx, r12d
call rtree_set_key_mbr
test eax, eax
jnz loc_8B430
mov rdi, rbx
mov rsi, r14
mov rdx, r15
mov ecx, r12d
mov r8, r13
xor r9d, r9d
call rtree_add_key
cmp eax, 0FFFFFFFFh
jz loc_8B430
mov rdi, rbx
mov rsi, r14
mov r15, [rbp+var_60]
mov rdx, r15
mov ecx, 3
mov r8, r13
call _mi_write_keypage
test eax, eax
mov edx, 0FFFFFFFFh
jnz loc_8B435
mov edx, 1
jmp short loc_8B41C
loc_8B39F:
mov rdi, rbx
mov rsi, r14
mov edx, 3
call _mi_new
cmp rax, 0FFFFFFFFFFFFFFFFh
jz short loc_8B430
mov r15, rax
mov [rbp+var_40], r13
mov byte ptr [rbx+33Dh], 1
mov rax, [rbx+100h]
mov byte ptr [rax+1], 2
mov rax, [rbx+100h]
mov byte ptr [rax], 0
mov r8, [rbx+100h]
mov rdi, rbx
mov rsi, r14
mov rdx, r12
mov ecx, [rbp+var_2C]
xor r9d, r9d
call rtree_add_key
mov r12d, eax
mov r8, [rbx+100h]
mov rdi, rbx
mov rsi, r14
mov rdx, r15
mov ecx, 3
call _mi_write_keypage
mov edx, 1
test eax, eax
jnz short loc_8B435
mov edx, r12d
loc_8B41C:
mov rax, [rbx]
mov rax, [rax+98h]
mov rcx, [rbp+var_40]
mov [rax+rcx*8], r15
jmp short loc_8B435
loc_8B430:
mov edx, 0FFFFFFFFh
loc_8B435:
mov eax, edx
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long rtree_insert_level(long long *a1, unsigned int a2, long long a3, unsigned int a4, int a5)
{
long long v6; // rdi
long long v7; // r14
unsigned long long v9; // r15
unsigned int inserted; // edx
long long v11; // r13
long long v12; // rcx
long long v13; // r12
long long v14; // rax
long long v15; // r13
_BYTE *v16; // r12
_BYTE *v17; // rdx
unsigned int v18; // r12d
_BYTE *v19; // r15
unsigned long long v20; // r15
int v21; // eax
long long v22; // rax
unsigned int v23; // r12d
int v24; // eax
unsigned long long v26; // [rsp+0h] [rbp-60h]
_BYTE *v27; // [rsp+8h] [rbp-58h]
unsigned long long v28; // [rsp+18h] [rbp-48h] BYREF
long long v29; // [rsp+20h] [rbp-40h]
_BYTE *v30; // [rsp+28h] [rbp-38h]
unsigned int v31; // [rsp+34h] [rbp-2Ch]
v6 = *a1;
v7 = *(_QWORD *)(v6 + 536) + 112LL * a2;
v9 = *(_QWORD *)(*(_QWORD *)(v6 + 152) + 8LL * a2);
v31 = a4;
if ( v9 != -1LL )
{
v29 = a2;
inserted = rtree_insert_req((_DWORD)a1, v7, a3, a4, v9, (unsigned int)&v28, a5, 0);
if ( inserted != 1 )
return inserted;
v11 = a1[32];
v12 = *(unsigned int *)(*a1 + 380);
v13 = *(unsigned int *)(*a1 + 400);
v30 = (_BYTE *)v12;
*(_BYTE *)(v11 + v13 + 1) = 2;
*(_BYTE *)(v11 + v13) = (v12 != 0) << 7;
v14 = mi_new(a1, v7);
inserted = -1;
v26 = v14;
if ( v14 == -1 )
return inserted;
v27 = (_BYTE *)(v13 + v11);
v15 = v13 + v11 + *(unsigned __int16 *)(v7 + 14);
v16 = &v30[v15];
mi_kpointer((long long)a1, (_BYTE *)v15, v9);
v30 = v16;
v17 = v16;
v18 = v31;
if ( !(unsigned int)rtree_set_key_mbr(a1, v7, v17, v31, v9) )
{
v19 = v30;
if ( (unsigned int)rtree_add_key(a1, v7, v30, v18, v27, 0LL) != -1 )
{
mi_kpointer((long long)a1, (_BYTE *)v15, v28);
if ( !(unsigned int)rtree_set_key_mbr(a1, v7, v19, v18, v28)
&& (unsigned int)rtree_add_key(a1, v7, v19, v18, v27, 0LL) != -1 )
{
v20 = v26;
v21 = mi_write_keypage(a1, v7, v26, 3u, v27);
inserted = -1;
if ( !v21 )
{
inserted = 1;
LABEL_13:
*(_QWORD *)(*(_QWORD *)(*a1 + 152) + 8 * v29) = v20;
return inserted;
}
return inserted;
}
}
}
return (unsigned int)-1;
}
v22 = mi_new(a1, v7);
if ( v22 == -1 )
return (unsigned int)-1;
v20 = v22;
v29 = a2;
*((_BYTE *)a1 + 829) = 1;
*(_BYTE *)(a1[32] + 1) = 2;
*(_BYTE *)a1[32] = 0;
v23 = rtree_add_key(a1, v7, a3, v31, a1[32], 0LL);
v24 = mi_write_keypage(a1, v7, v20, 3u, (_BYTE *)a1[32]);
inserted = 1;
if ( !v24 )
{
inserted = v23;
goto LABEL_13;
}
return inserted;
}
| rtree_insert_level:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV RBX,RDI
MOV RDI,qword ptr [RDI]
MOV R13D,ESI
IMUL R14,R13,0x70
ADD R14,qword ptr [RDI + 0x218]
MOV R12,RDX
MOV RDX,qword ptr [RDI + 0x98]
MOV R15,qword ptr [RDX + R13*0x8]
CMP R15,-0x1
MOV dword ptr [RBP + -0x2c],ECX
JZ 0x0018b39f
MOV EAX,R8D
MOV qword ptr [RBP + -0x40],R13
LEA R9,[RBP + -0x48]
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R12
MOV R8,R15
PUSH 0x0
PUSH RAX
CALL 0x0018be8c
ADD RSP,0x10
MOV EDX,EAX
CMP EAX,0x1
JNZ 0x0018b435
MOV RAX,qword ptr [RBX]
MOV R13,qword ptr [RBX + 0x100]
MOV ECX,dword ptr [RAX + 0x17c]
MOV R12D,dword ptr [RAX + 0x190]
MOV qword ptr [RBP + -0x38],RCX
TEST RCX,RCX
SETNZ AL
MOV byte ptr [R13 + R12*0x1 + 0x1],0x2
SHL AL,0x7
MOV byte ptr [R13 + R12*0x1],AL
MOV RDI,RBX
MOV RSI,R14
MOV EDX,0x3
CALL 0x00184e12
MOV EDX,0xffffffff
MOV qword ptr [RBP + -0x60],RAX
CMP RAX,-0x1
JZ 0x0018b435
ADD R13,R12
MOV RAX,R13
MOVZX R13D,word ptr [R14 + 0xe]
MOV qword ptr [RBP + -0x58],RAX
ADD R13,RAX
MOV R12,qword ptr [RBP + -0x38]
ADD R12,R13
MOV RDI,RBX
MOV RSI,R13
MOV RDX,R15
CALL 0x00186099
MOV RDI,RBX
MOV RSI,R14
MOV qword ptr [RBP + -0x38],R12
MOV RDX,R12
MOV R12D,dword ptr [RBP + -0x2c]
MOV ECX,R12D
MOV R8,R15
CALL 0x0018c308
TEST EAX,EAX
JNZ 0x0018b430
MOV qword ptr [RBP + -0x50],R13
MOV RDI,RBX
MOV RSI,R14
MOV R15,qword ptr [RBP + -0x38]
MOV RDX,R15
MOV ECX,R12D
MOV R13,qword ptr [RBP + -0x58]
MOV R8,R13
XOR R9D,R9D
CALL 0x0018c190
CMP EAX,-0x1
JZ 0x0018b430
MOV RDX,qword ptr [RBP + -0x48]
MOV RDI,RBX
MOV RSI,qword ptr [RBP + -0x50]
CALL 0x00186099
MOV R8,qword ptr [RBP + -0x48]
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
MOV ECX,R12D
CALL 0x0018c308
TEST EAX,EAX
JNZ 0x0018b430
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
MOV ECX,R12D
MOV R8,R13
XOR R9D,R9D
CALL 0x0018c190
CMP EAX,-0x1
JZ 0x0018b430
MOV RDI,RBX
MOV RSI,R14
MOV R15,qword ptr [RBP + -0x60]
MOV RDX,R15
MOV ECX,0x3
MOV R8,R13
CALL 0x00184c60
TEST EAX,EAX
MOV EDX,0xffffffff
JNZ 0x0018b435
MOV EDX,0x1
JMP 0x0018b41c
LAB_0018b39f:
MOV RDI,RBX
MOV RSI,R14
MOV EDX,0x3
CALL 0x00184e12
CMP RAX,-0x1
JZ 0x0018b430
MOV R15,RAX
MOV qword ptr [RBP + -0x40],R13
MOV byte ptr [RBX + 0x33d],0x1
MOV RAX,qword ptr [RBX + 0x100]
MOV byte ptr [RAX + 0x1],0x2
MOV RAX,qword ptr [RBX + 0x100]
MOV byte ptr [RAX],0x0
MOV R8,qword ptr [RBX + 0x100]
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R12
MOV ECX,dword ptr [RBP + -0x2c]
XOR R9D,R9D
CALL 0x0018c190
MOV R12D,EAX
MOV R8,qword ptr [RBX + 0x100]
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
MOV ECX,0x3
CALL 0x00184c60
MOV EDX,0x1
TEST EAX,EAX
JNZ 0x0018b435
MOV EDX,R12D
LAB_0018b41c:
MOV RAX,qword ptr [RBX]
MOV RAX,qword ptr [RAX + 0x98]
MOV RCX,qword ptr [RBP + -0x40]
MOV qword ptr [RAX + RCX*0x8],R15
JMP 0x0018b435
LAB_0018b430:
MOV EDX,0xffffffff
LAB_0018b435:
MOV EAX,EDX
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int rtree_insert_level(long *param_1,uint param_2,int8 param_3,int8 param_4,
int4 param_5)
{
long lVar1;
int4 uVar2;
int iVar3;
int iVar4;
long lVar5;
ulong uVar6;
long lVar7;
long lVar8;
long lVar9;
long lVar10;
int8 local_50;
ulong local_48;
ulong local_40;
int4 local_34;
local_48 = (ulong)param_2;
lVar10 = local_48 * 0x70 + *(long *)(*param_1 + 0x218);
lVar1 = *(long *)(*(long *)(*param_1 + 0x98) + local_48 * 8);
local_34 = (int4)param_4;
if (lVar1 == -1) {
lVar5 = _mi_new(param_1,lVar10,3);
if (lVar5 != -1) {
*(int1 *)((long)param_1 + 0x33d) = 1;
*(int1 *)(param_1[0x20] + 1) = 2;
*(int1 *)param_1[0x20] = 0;
iVar3 = rtree_add_key(param_1,lVar10,param_3,local_34,param_1[0x20],0);
iVar4 = _mi_write_keypage(param_1,lVar10,lVar5,3,param_1[0x20]);
if (iVar4 != 0) {
return 1;
}
LAB_0018b41c:
*(long *)(*(long *)(*param_1 + 0x98) + local_48 * 8) = lVar5;
return iVar3;
}
}
else {
iVar3 = rtree_insert_req(param_1,lVar10,param_3,param_4,lVar1,&local_50,param_5,0);
if (iVar3 != 1) {
return iVar3;
}
lVar8 = param_1[0x20];
local_40 = (ulong)*(uint *)(*param_1 + 0x17c);
uVar6 = (ulong)*(uint *)(*param_1 + 400);
*(int1 *)(lVar8 + 1 + uVar6) = 2;
*(char *)(lVar8 + uVar6) = (local_40 != 0) << 7;
lVar5 = _mi_new(param_1,lVar10,3);
if (lVar5 == -1) {
return -1;
}
lVar8 = lVar8 + uVar6;
lVar9 = (ulong)*(ushort *)(lVar10 + 0xe) + lVar8;
lVar7 = local_40 + lVar9;
_mi_kpointer(param_1,lVar9,lVar1);
uVar2 = local_34;
local_40 = lVar7;
iVar3 = rtree_set_key_mbr(param_1,lVar10,lVar7,local_34,lVar1);
uVar6 = local_40;
if ((iVar3 == 0) && (iVar3 = rtree_add_key(param_1,lVar10,local_40,uVar2,lVar8,0), iVar3 != -1))
{
_mi_kpointer(param_1,lVar9,local_50);
iVar3 = rtree_set_key_mbr(param_1,lVar10,uVar6,uVar2,local_50);
if ((iVar3 == 0) && (iVar3 = rtree_add_key(param_1,lVar10,uVar6,uVar2,lVar8,0), iVar3 != -1))
{
iVar3 = _mi_write_keypage(param_1,lVar10,lVar5,3,lVar8);
if (iVar3 != 0) {
return -1;
}
iVar3 = 1;
goto LAB_0018b41c;
}
}
}
return -1;
}
| |
25,171 | js_async_generator_resolve_or_reject | bluesky950520[P]quickjs/quickjs.c | static void js_async_generator_resolve_or_reject(JSContext *ctx,
JSAsyncGeneratorData *s,
JSValue result,
int is_reject)
{
JSAsyncGeneratorRequest *next;
JSValue ret;
next = list_entry(s->queue.next, JSAsyncGeneratorRequest, link);
list_del(&next->link);
ret = JS_Call(ctx, next->resolving_funcs[is_reject], JS_UNDEFINED, 1,
&result);
JS_FreeValue(ctx, ret);
JS_FreeValue(ctx, next->result);
JS_FreeValue(ctx, next->promise);
JS_FreeValue(ctx, next->resolving_funcs[0]);
JS_FreeValue(ctx, next->resolving_funcs[1]);
js_free(ctx, next);
} | O1 | c | js_async_generator_resolve_or_reject:
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
leaq 0x38(%rsp), %rax
movq %rdx, (%rax)
movq %rcx, 0x8(%rax)
movq 0x80(%rsi), %r14
movq (%r14), %rcx
movq 0x8(%r14), %rdx
movq %rdx, 0x8(%rcx)
movq %rcx, (%rdx)
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movl %r8d, %ecx
shlq $0x4, %rcx
movq 0x38(%r14,%rcx), %rsi
movq 0x40(%r14,%rcx), %rdx
movl $0x0, 0x28(%rsp)
movq $0x3, 0x30(%rsp)
movups 0x28(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %rax, 0x10(%rsp)
movl $0x2, 0x18(%rsp)
movl $0x3, %r8d
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x2c526
movq 0x18(%rbx), %rdi
movq %rax, %rsi
callq 0x21922
movq 0x18(%r14), %rsi
movq 0x20(%r14), %rdx
movq 0x18(%rbx), %rdi
callq 0x21922
movq 0x28(%r14), %rsi
movq 0x30(%r14), %rdx
movq 0x18(%rbx), %rdi
callq 0x21922
movq 0x38(%r14), %rsi
movq 0x40(%r14), %rdx
movq 0x18(%rbx), %rdi
callq 0x21922
movq 0x48(%r14), %rsi
movq 0x50(%r14), %rdx
movq 0x18(%rbx), %rdi
callq 0x21922
movq %rbx, %rdi
movq %r14, %rsi
callq 0x20bf5
addq $0x48, %rsp
popq %rbx
popq %r14
retq
| js_async_generator_resolve_or_reject:
push r14
push rbx
sub rsp, 48h
mov rbx, rdi
lea rax, [rsp+58h+var_20]
mov [rax], rdx
mov [rax+8], rcx
mov r14, [rsi+80h]
mov rcx, [r14]
mov rdx, [r14+8]
mov [rcx+8], rdx
mov [rdx], rcx
xorps xmm0, xmm0
movups xmmword ptr [r14], xmm0
mov ecx, r8d
shl rcx, 4
mov rsi, [r14+rcx+38h]
mov rdx, [r14+rcx+40h]
mov dword ptr [rsp+58h+var_30], 0
mov qword ptr [rsp+58h+var_30+8], 3
movups xmm0, [rsp+58h+var_30]
movups [rsp+58h+var_58], xmm0
mov [rsp+58h+var_48], rax
mov [rsp+58h+var_40], 2
mov r8d, 3
xor ecx, ecx
mov r9d, 1
call JS_CallInternal
mov rdi, [rbx+18h]
mov rsi, rax
call JS_FreeValueRT
mov rsi, [r14+18h]
mov rdx, [r14+20h]
mov rdi, [rbx+18h]
call JS_FreeValueRT
mov rsi, [r14+28h]
mov rdx, [r14+30h]
mov rdi, [rbx+18h]
call JS_FreeValueRT
mov rsi, [r14+38h]
mov rdx, [r14+40h]
mov rdi, [rbx+18h]
call JS_FreeValueRT
mov rsi, [r14+48h]
mov rdx, [r14+50h]
mov rdi, [rbx+18h]
call JS_FreeValueRT
mov rdi, rbx
mov rsi, r14
call js_free
add rsp, 48h
pop rbx
pop r14
retn
| long long js_async_generator_resolve_or_reject(
long long a1,
long long a2,
long long a3,
long long a4,
unsigned int a5,
double a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13)
{
long long v13; // r14
long long v14; // rcx
_QWORD *v15; // rdx
_DWORD *v16; // rax
long long v17; // rdx
__m128 v19; // [rsp+28h] [rbp-30h]
_QWORD v20[4]; // [rsp+38h] [rbp-20h] BYREF
v20[0] = a3;
v20[1] = a4;
v13 = *(_QWORD *)(a2 + 128);
v14 = *(_QWORD *)v13;
v15 = *(_QWORD **)(v13 + 8);
*(_QWORD *)(v14 + 8) = v15;
*v15 = v14;
*(_OWORD *)v13 = 0LL;
v19.m128_i32[0] = 0;
v19.m128_u64[1] = 3LL;
v16 = (_DWORD *)JS_CallInternal(
a1,
*(_QWORD *)(v13 + 16LL * a5 + 56),
*(_QWORD *)(v13 + 16LL * a5 + 64),
0LL,
3LL,
1LL,
v19,
a7,
a8,
a9,
a10,
a11,
a12,
a13,
v19.m128_i8[0],
3,
(long long)v20,
2u);
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v16, v17);
JS_FreeValueRT(*(_QWORD *)(a1 + 24), *(_DWORD **)(v13 + 24), *(_QWORD *)(v13 + 32));
JS_FreeValueRT(*(_QWORD *)(a1 + 24), *(_DWORD **)(v13 + 40), *(_QWORD *)(v13 + 48));
JS_FreeValueRT(*(_QWORD *)(a1 + 24), *(_DWORD **)(v13 + 56), *(_QWORD *)(v13 + 64));
JS_FreeValueRT(*(_QWORD *)(a1 + 24), *(_DWORD **)(v13 + 72), *(_QWORD *)(v13 + 80));
return js_free(a1, v13);
}
| js_async_generator_resolve_or_reject:
PUSH R14
PUSH RBX
SUB RSP,0x48
MOV RBX,RDI
LEA RAX,[RSP + 0x38]
MOV qword ptr [RAX],RDX
MOV qword ptr [RAX + 0x8],RCX
MOV R14,qword ptr [RSI + 0x80]
MOV RCX,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RDX],RCX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R14],XMM0
MOV ECX,R8D
SHL RCX,0x4
MOV RSI,qword ptr [R14 + RCX*0x1 + 0x38]
MOV RDX,qword ptr [R14 + RCX*0x1 + 0x40]
MOV dword ptr [RSP + 0x28],0x0
MOV qword ptr [RSP + 0x30],0x3
MOVUPS XMM0,xmmword ptr [RSP + 0x28]
MOVUPS xmmword ptr [RSP],XMM0
MOV qword ptr [RSP + 0x10],RAX
MOV dword ptr [RSP + 0x18],0x2
MOV R8D,0x3
XOR ECX,ECX
MOV R9D,0x1
CALL 0x0012c526
MOV RDI,qword ptr [RBX + 0x18]
MOV RSI,RAX
CALL 0x00121922
MOV RSI,qword ptr [R14 + 0x18]
MOV RDX,qword ptr [R14 + 0x20]
MOV RDI,qword ptr [RBX + 0x18]
CALL 0x00121922
MOV RSI,qword ptr [R14 + 0x28]
MOV RDX,qword ptr [R14 + 0x30]
MOV RDI,qword ptr [RBX + 0x18]
CALL 0x00121922
MOV RSI,qword ptr [R14 + 0x38]
MOV RDX,qword ptr [R14 + 0x40]
MOV RDI,qword ptr [RBX + 0x18]
CALL 0x00121922
MOV RSI,qword ptr [R14 + 0x48]
MOV RDX,qword ptr [R14 + 0x50]
MOV RDI,qword ptr [RBX + 0x18]
CALL 0x00121922
MOV RDI,RBX
MOV RSI,R14
CALL 0x00120bf5
ADD RSP,0x48
POP RBX
POP R14
RET
|
void js_async_generator_resolve_or_reject
(long param_1,long param_2,int8 param_3,int8 param_4,ulong param_5)
{
long *plVar1;
long lVar2;
long *plVar3;
int8 uVar4;
int8 local_20;
int8 local_18;
plVar1 = *(long **)(param_2 + 0x80);
lVar2 = *plVar1;
plVar3 = (long *)plVar1[1];
*(long **)(lVar2 + 8) = plVar3;
*plVar3 = lVar2;
*plVar1 = 0;
plVar1[1] = 0;
local_20 = param_3;
local_18 = param_4;
uVar4 = JS_CallInternal(param_1,plVar1[(param_5 & 0xffffffff) * 2 + 7],
plVar1[(param_5 & 0xffffffff) * 2 + 8],0,3,1,0,3,&local_20,2);
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar4);
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),plVar1[3],plVar1[4]);
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),plVar1[5],plVar1[6]);
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),plVar1[7],plVar1[8]);
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),plVar1[9],plVar1[10]);
js_free(param_1,plVar1);
return;
}
| |
25,172 | cxxopts::values::parser_tool::ParseArgument(char const*, bool&) | zkingston[P]unknot/build_O0/_deps/cxxopts-src/include/cxxopts.hpp | inline ArguDesc ParseArgument(const char *arg, bool &matched)
{
static const std::basic_regex<char> option_matcher(option_pattern);
std::match_results<const char*> result;
std::regex_match(arg, result, option_matcher);
matched = !result.empty();
ArguDesc argu_desc;
if (matched) {
argu_desc.arg_name = result[1].str();
argu_desc.set_value = result[2].length() > 0;
argu_desc.value = result[3].str();
if (result[4].length() > 0)
{
argu_desc.grouping = true;
argu_desc.arg_name = result[4].str();
}
}
return argu_desc;
} | O0 | cpp | cxxopts::values::parser_tool::ParseArgument(char const*, bool&):
subq $0x108, %rsp # imm = 0x108
movq %rdi, 0x48(%rsp)
movq %rdi, %rax
movq %rax, 0x50(%rsp)
movq %rdi, 0x100(%rsp)
movq %rsi, 0xf8(%rsp)
movq %rdx, 0xf0(%rsp)
cmpb $0x0, 0x638a95(%rip) # 0x68f5a8
jne 0x56b66
leaq 0x638a8c(%rip), %rdi # 0x68f5a8
callq 0x135c0
cmpl $0x0, %eax
je 0x56b66
leaq 0x638a5b(%rip), %rdi # 0x68f588
leaq 0x576c56(%rip), %rsi # 0x5cd78a
movl $0x10, %edx
callq 0x1ca70
jmp 0x56b40
leaq -0x3a027(%rip), %rdi # 0x1cb20
leaq 0x638a3a(%rip), %rsi # 0x68f588
leaq 0x637063(%rip), %rdx # 0x68dbb8
callq 0x12ad0
leaq 0x638a47(%rip), %rdi # 0x68f5a8
callq 0x127f0
leaq 0xc0(%rsp), %rdi
movq %rdi, 0x40(%rsp)
callq 0x3e180
movq 0x40(%rsp), %rsi
movq 0xf8(%rsp), %rdi
leaq 0x6389fc(%rip), %rdx # 0x68f588
xorl %ecx, %ecx
callq 0x57d10
jmp 0x56b95
leaq 0xc0(%rsp), %rdi
callq 0x57d70
movq 0x48(%rsp), %rdi
movb %al, %cl
xorb $0x1, %cl
movq 0xf0(%rsp), %rax
movb %cl, (%rax)
movb $0x0, 0xbf(%rsp)
callq 0x57d90
jmp 0x56bc5
movq 0xf0(%rsp), %rax
testb $0x1, (%rax)
je 0x56d77
leaq 0xc0(%rsp), %rdi
movl $0x1, %esi
callq 0x57e70
movq %rax, 0x38(%rsp)
jmp 0x56bef
movq 0x38(%rsp), %rsi
leaq 0x98(%rsp), %rdi
callq 0x57ee0
jmp 0x56c03
movq 0x48(%rsp), %rdi
leaq 0x98(%rsp), %rsi
movq %rsi, 0x28(%rsp)
callq 0x12ed0
movq 0x28(%rsp), %rdi
callq 0x13768
leaq 0xc0(%rsp), %rdi
movl $0x2, %esi
callq 0x57e70
movq %rax, 0x30(%rsp)
jmp 0x56c3d
movq 0x30(%rsp), %rdi
callq 0x57fb0
movq %rax, %rcx
movq 0x48(%rsp), %rax
testq %rcx, %rcx
setg 0x21(%rax)
leaq 0xc0(%rsp), %rdi
movl $0x3, %esi
callq 0x57e70
movq %rax, 0x20(%rsp)
jmp 0x56c6f
movq 0x20(%rsp), %rsi
leaq 0x78(%rsp), %rdi
callq 0x57ee0
jmp 0x56c80
movq 0x48(%rsp), %rdi
addq $0x28, %rdi
leaq 0x78(%rsp), %rsi
movq %rsi, 0x10(%rsp)
callq 0x12ed0
movq 0x10(%rsp), %rdi
callq 0x13768
leaq 0xc0(%rsp), %rdi
movl $0x4, %esi
callq 0x57e70
movq %rax, 0x18(%rsp)
jmp 0x56cbb
movq 0x18(%rsp), %rdi
callq 0x57fb0
cmpq $0x0, %rax
jle 0x56d75
movq 0x48(%rsp), %rax
movb $0x1, 0x20(%rax)
leaq 0xc0(%rsp), %rdi
movl $0x4, %esi
callq 0x57e70
movq %rax, 0x8(%rsp)
jmp 0x56cf1
movq 0x8(%rsp), %rsi
leaq 0x58(%rsp), %rdi
callq 0x57ee0
jmp 0x56d02
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x12ed0
leaq 0x58(%rsp), %rdi
callq 0x13768
jmp 0x56d75
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xe8(%rsp)
movl %eax, 0xe4(%rsp)
leaq 0x638870(%rip), %rdi # 0x68f5a8
callq 0x127d0
jmp 0x56dba
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xe8(%rsp)
movl %eax, 0xe4(%rsp)
jmp 0x56dad
movq 0x48(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xe8(%rsp)
movl %eax, 0xe4(%rsp)
callq 0x57650
jmp 0x56dad
jmp 0x56d77
movb $0x1, 0xbf(%rsp)
testb $0x1, 0xbf(%rsp)
jne 0x56d93
movq 0x48(%rsp), %rdi
callq 0x57650
leaq 0xc0(%rsp), %rdi
callq 0x3e210
movq 0x50(%rsp), %rax
addq $0x108, %rsp # imm = 0x108
retq
leaq 0xc0(%rsp), %rdi
callq 0x3e210
movq 0xe8(%rsp), %rdi
callq 0x13540
nopw (%rax,%rax)
| _ZN7cxxopts6values11parser_tool13ParseArgumentEPKcRb:
sub rsp, 108h
mov [rsp+108h+var_C0], rdi
mov rax, rdi
mov [rsp+108h+var_B8], rax
mov [rsp+108h+var_8], rdi
mov [rsp+108h+var_10], rsi
mov [rsp+108h+var_18], rdx
cmp cs:_ZGVZN7cxxopts6values11parser_tool13ParseArgumentEPKcRbE14option_matcherB5cxx11, 0; `guard variable for'cxxopts::values::parser_tool::ParseArgument(char const*,bool &)::option_matcher
jnz short loc_56B66
lea rdi, _ZGVZN7cxxopts6values11parser_tool13ParseArgumentEPKcRbE14option_matcherB5cxx11; __guard *
call ___cxa_guard_acquire
cmp eax, 0
jz short loc_56B66
lea rdi, _ZZN7cxxopts6values11parser_tool13ParseArgumentEPKcRbE14option_matcherB5cxx11; cxxopts::values::parser_tool::ParseArgument(char const*,bool &)::option_matcher
lea rsi, aAlnumAlnumAlnu_0; "--([[:alnum:]][-_[:alnum:]\\.]+)(=(.*))"...
mov edx, 10h
call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2EPKcNSt15regex_constants18syntax_option_typeE; std::basic_regex<char,std::regex_traits<char>>::basic_regex(char const*,std::regex_constants::syntax_option_type)
jmp short $+2
loc_56B40:
lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc
lea rsi, _ZZN7cxxopts6values11parser_tool13ParseArgumentEPKcRbE14option_matcherB5cxx11; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZN7cxxopts6values11parser_tool13ParseArgumentEPKcRbE14option_matcherB5cxx11; __guard *
call ___cxa_guard_release
loc_56B66:
lea rdi, [rsp+108h+var_48]
mov [rsp+108h+var_C8], rdi
call _ZNSt7__cxx1113match_resultsIPKcSaINS_9sub_matchIS2_EEEEC2Ev; std::match_results<char const*>::match_results(void)
mov rsi, [rsp+108h+var_C8]
mov rdi, [rsp+108h+var_10]
lea rdx, _ZZN7cxxopts6values11parser_tool13ParseArgumentEPKcRbE14option_matcherB5cxx11; cxxopts::values::parser_tool::ParseArgument(char const*,bool &)::option_matcher
xor ecx, ecx
call _ZSt11regex_matchIcSaINSt7__cxx119sub_matchIPKcEEENS0_12regex_traitsIcEEEbPKT_RNS0_13match_resultsISA_T0_EERKNS0_11basic_regexIS8_T1_EENSt15regex_constants15match_flag_typeE; std::regex_match<char,std::allocator<std::sub_match<char const*>>,std::regex_traits<char>>(char const*,std::match_results<char const*> &,std::basic_regex<char,std::regex_traits<char>> const&,std::regex_constants::match_flag_type)
jmp short $+2
loc_56B95:
lea rdi, [rsp+108h+var_48]
call _ZNKSt7__cxx1113match_resultsIPKcSaINS_9sub_matchIS2_EEEE5emptyEv; std::match_results<char const*>::empty(void)
mov rdi, [rsp+108h+var_C0]; this
mov cl, al
xor cl, 1
mov rax, [rsp+108h+var_18]
mov [rax], cl
mov [rsp+108h+var_49], 0
call _ZN7cxxopts6values11parser_tool8ArguDescC2Ev; cxxopts::values::parser_tool::ArguDesc::ArguDesc(void)
jmp short $+2
loc_56BC5:
mov rax, [rsp+108h+var_18]
test byte ptr [rax], 1
jz loc_56D77
lea rdi, [rsp+108h+var_48]
mov esi, 1
call _ZNKSt7__cxx1113match_resultsIPKcSaINS_9sub_matchIS2_EEEEixEm; std::match_results<char const*>::operator[](ulong)
mov [rsp+108h+var_D0], rax
jmp short $+2
loc_56BEF:
mov rsi, [rsp+108h+var_D0]
lea rdi, [rsp+108h+var_70]
call _ZNKSt7__cxx119sub_matchIPKcE3strEv; std::sub_match<char const*>::str(void)
jmp short $+2
loc_56C03:
mov rdi, [rsp+108h+var_C0]
lea rsi, [rsp+108h+var_70]
mov [rsp+108h+var_E0], rsi
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [rsp+108h+var_E0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+108h+var_48]
mov esi, 2
call _ZNKSt7__cxx1113match_resultsIPKcSaINS_9sub_matchIS2_EEEEixEm; std::match_results<char const*>::operator[](ulong)
mov [rsp+108h+var_D8], rax
jmp short $+2
loc_56C3D:
mov rdi, [rsp+108h+var_D8]
call _ZNKSt7__cxx119sub_matchIPKcE6lengthEv; std::sub_match<char const*>::length(void)
mov rcx, rax
mov rax, [rsp+108h+var_C0]
test rcx, rcx
setnle byte ptr [rax+21h]
lea rdi, [rsp+108h+var_48]
mov esi, 3
call _ZNKSt7__cxx1113match_resultsIPKcSaINS_9sub_matchIS2_EEEEixEm; std::match_results<char const*>::operator[](ulong)
mov [rsp+108h+var_E8], rax
jmp short $+2
loc_56C6F:
mov rsi, [rsp+108h+var_E8]
lea rdi, [rsp+108h+var_90]
call _ZNKSt7__cxx119sub_matchIPKcE3strEv; std::sub_match<char const*>::str(void)
jmp short $+2
loc_56C80:
mov rdi, [rsp+108h+var_C0]
add rdi, 28h ; '('
lea rsi, [rsp+108h+var_90]
mov [rsp+108h+var_F8], rsi
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [rsp+108h+var_F8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+108h+var_48]
mov esi, 4
call _ZNKSt7__cxx1113match_resultsIPKcSaINS_9sub_matchIS2_EEEEixEm; std::match_results<char const*>::operator[](ulong)
mov [rsp+108h+var_F0], rax
jmp short $+2
loc_56CBB:
mov rdi, [rsp+108h+var_F0]
call _ZNKSt7__cxx119sub_matchIPKcE6lengthEv; std::sub_match<char const*>::length(void)
cmp rax, 0
jle loc_56D75
mov rax, [rsp+108h+var_C0]
mov byte ptr [rax+20h], 1
lea rdi, [rsp+108h+var_48]
mov esi, 4
call _ZNKSt7__cxx1113match_resultsIPKcSaINS_9sub_matchIS2_EEEEixEm; std::match_results<char const*>::operator[](ulong)
mov [rsp+108h+var_100], rax
jmp short $+2
loc_56CF1:
mov rsi, [rsp+108h+var_100]
lea rdi, [rsp+108h+var_B0]
call _ZNKSt7__cxx119sub_matchIPKcE3strEv; std::sub_match<char const*>::str(void)
jmp short $+2
loc_56D02:
mov rdi, [rsp+108h+var_C0]
lea rsi, [rsp+108h+var_B0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
lea rdi, [rsp+108h+var_B0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_56D75
mov rcx, rax
mov eax, edx
mov [rsp+arg_E0], rcx
mov [rsp+arg_DC], eax
lea rdi, _ZGVZN7cxxopts6values11parser_tool13ParseArgumentEPKcRbE14option_matcherB5cxx11; __guard *
call ___cxa_guard_abort
jmp short loc_56DBA
mov rcx, rax
mov eax, edx
mov [rsp+arg_E0], rcx
mov [rsp+arg_DC], eax
jmp short loc_56DAD
mov rdi, [rsp+arg_40]; this
mov rcx, rax
mov eax, edx
mov [rsp+arg_E0], rcx
mov [rsp+arg_DC], eax
call _ZN7cxxopts6values11parser_tool8ArguDescD2Ev; cxxopts::values::parser_tool::ArguDesc::~ArguDesc()
jmp short loc_56DAD
loc_56D75:
jmp short $+2
loc_56D77:
mov [rsp+108h+var_49], 1
test [rsp+108h+var_49], 1
jnz short loc_56D93
mov rdi, [rsp+108h+var_C0]; this
call _ZN7cxxopts6values11parser_tool8ArguDescD2Ev; cxxopts::values::parser_tool::ArguDesc::~ArguDesc()
loc_56D93:
lea rdi, [rsp+108h+var_48]
call _ZNSt7__cxx1113match_resultsIPKcSaINS_9sub_matchIS2_EEEED2Ev; std::match_results<char const*>::~match_results()
mov rax, [rsp+108h+var_B8]
add rsp, 108h
retn
loc_56DAD:
lea rdi, [rsp+arg_B8]
call _ZNSt7__cxx1113match_resultsIPKcSaINS_9sub_matchIS2_EEEED2Ev; std::match_results<char const*>::~match_results()
loc_56DBA:
mov rdi, [rsp+arg_E0]
call __Unwind_Resume
| cxxopts::values::parser_tool * cxxopts::values::parser_tool::ParseArgument(
cxxopts::values::parser_tool *this,
const char *a2,
bool *a3)
{
char v3; // al
int v4; // edx
int v5; // ecx
int v6; // r8d
int v7; // r9d
int v8; // edx
int v9; // ecx
int v10; // r8d
int v11; // r9d
int v12; // edx
int v13; // ecx
int v14; // r8d
int v15; // r9d
int v17; // [rsp+8h] [rbp-100h]
long long v18; // [rsp+18h] [rbp-F0h]
int v19; // [rsp+20h] [rbp-E8h]
long long v20; // [rsp+30h] [rbp-D8h]
int v21; // [rsp+38h] [rbp-D0h]
_BYTE v22[32]; // [rsp+58h] [rbp-B0h] BYREF
_BYTE v23[32]; // [rsp+78h] [rbp-90h] BYREF
_BYTE v24[39]; // [rsp+98h] [rbp-70h] BYREF
char v25; // [rsp+BFh] [rbp-49h]
_BYTE v26[48]; // [rsp+C0h] [rbp-48h] BYREF
bool *v27; // [rsp+F0h] [rbp-18h]
const char *v28; // [rsp+F8h] [rbp-10h]
cxxopts::values::parser_tool *v29; // [rsp+100h] [rbp-8h]
v29 = this;
v28 = a2;
v27 = a3;
if ( !(_BYTE)`guard variable for'cxxopts::values::parser_tool::ParseArgument(char const*,bool &)::option_matcher[abi:cxx11]
&& __cxa_guard_acquire(&`guard variable for'cxxopts::values::parser_tool::ParseArgument(char const*,bool &)::option_matcher[abi:cxx11]) )
{
std::basic_regex<char,std::regex_traits<char>>::basic_regex(
(long long)&cxxopts::values::parser_tool::ParseArgument(char const*,bool &)::option_matcher[abi:cxx11],
(long long)"--([[:alnum:]][-_[:alnum:]\\.]+)(=(.*))?|-([[:alnum:]].*)",
0x10u);
__cxa_atexit(
(void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex,
&cxxopts::values::parser_tool::ParseArgument(char const*,bool &)::option_matcher[abi:cxx11],
&_dso_handle);
__cxa_guard_release(&`guard variable for'cxxopts::values::parser_tool::ParseArgument(char const*,bool &)::option_matcher[abi:cxx11]);
}
std::match_results<char const*>::match_results((long long)v26);
std::regex_match<char,std::allocator<std::sub_match<char const*>>,std::regex_traits<char>>(
v28,
v26,
&cxxopts::values::parser_tool::ParseArgument(char const*,bool &)::option_matcher[abi:cxx11],
0LL);
v3 = std::match_results<char const*>::empty(v26);
*v27 = v3 ^ 1;
v25 = 0;
cxxopts::values::parser_tool::ArguDesc::ArguDesc(this);
if ( *v27 )
{
v21 = std::match_results<char const*>::operator[](v26, 1LL);
std::sub_match<char const*>::str((unsigned int)v24, v21, v4, v5, v6, v7);
std::string::operator=(this, v24);
std::string::~string(v24);
v20 = std::match_results<char const*>::operator[](v26, 2LL);
*((_BYTE *)this + 33) = std::sub_match<char const*>::length(v20) > 0;
v19 = std::match_results<char const*>::operator[](v26, 3LL);
std::sub_match<char const*>::str((unsigned int)v23, v19, v8, v9, v10, v11);
std::string::operator=((char *)this + 40, v23);
std::string::~string(v23);
v18 = std::match_results<char const*>::operator[](v26, 4LL);
if ( std::sub_match<char const*>::length(v18) > 0 )
{
*((_BYTE *)this + 32) = 1;
v17 = std::match_results<char const*>::operator[](v26, 4LL);
std::sub_match<char const*>::str((unsigned int)v22, v17, v12, v13, v14, v15);
std::string::operator=(this, v22);
std::string::~string(v22);
}
}
v25 = 1;
std::match_results<char const*>::~match_results((long long)v26);
return this;
}
| ParseArgument:
SUB RSP,0x108
MOV qword ptr [RSP + 0x48],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x50],RAX
MOV qword ptr [RSP + 0x100],RDI
MOV qword ptr [RSP + 0xf8],RSI
MOV qword ptr [RSP + 0xf0],RDX
CMP byte ptr [0x0078f5a8],0x0
JNZ 0x00156b66
LEA RDI,[0x78f5a8]
CALL 0x001135c0
CMP EAX,0x0
JZ 0x00156b66
LAB_00156b26:
LEA RDI,[0x78f588]
LEA RSI,[0x6cd78a]
MOV EDX,0x10
CALL 0x0011ca70
JMP 0x00156b40
LAB_00156b40:
LEA RDI,[0x11cb20]
LEA RSI,[0x78f588]
LEA RDX,[0x78dbb8]
CALL 0x00112ad0
LEA RDI,[0x78f5a8]
CALL 0x001127f0
LAB_00156b66:
LEA RDI,[RSP + 0xc0]
MOV qword ptr [RSP + 0x40],RDI
CALL 0x0013e180
MOV RSI,qword ptr [RSP + 0x40]
MOV RDI,qword ptr [RSP + 0xf8]
LAB_00156b85:
LEA RDX,[0x78f588]
XOR ECX,ECX
CALL 0x00157d10
JMP 0x00156b95
LAB_00156b95:
LEA RDI,[RSP + 0xc0]
CALL 0x00157d70
MOV RDI,qword ptr [RSP + 0x48]
MOV CL,AL
XOR CL,0x1
MOV RAX,qword ptr [RSP + 0xf0]
MOV byte ptr [RAX],CL
MOV byte ptr [RSP + 0xbf],0x0
CALL 0x00157d90
JMP 0x00156bc5
LAB_00156bc5:
MOV RAX,qword ptr [RSP + 0xf0]
TEST byte ptr [RAX],0x1
JZ 0x00156d77
LAB_00156bd6:
LEA RDI,[RSP + 0xc0]
MOV ESI,0x1
CALL 0x00157e70
MOV qword ptr [RSP + 0x38],RAX
JMP 0x00156bef
LAB_00156bef:
MOV RSI,qword ptr [RSP + 0x38]
LEA RDI,[RSP + 0x98]
CALL 0x00157ee0
JMP 0x00156c03
LAB_00156c03:
MOV RDI,qword ptr [RSP + 0x48]
LEA RSI,[RSP + 0x98]
MOV qword ptr [RSP + 0x28],RSI
CALL 0x00112ed0
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x00113768
LEA RDI,[RSP + 0xc0]
MOV ESI,0x2
CALL 0x00157e70
MOV qword ptr [RSP + 0x30],RAX
JMP 0x00156c3d
LAB_00156c3d:
MOV RDI,qword ptr [RSP + 0x30]
CALL 0x00157fb0
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x48]
TEST RCX,RCX
SETG byte ptr [RAX + 0x21]
LEA RDI,[RSP + 0xc0]
MOV ESI,0x3
CALL 0x00157e70
MOV qword ptr [RSP + 0x20],RAX
JMP 0x00156c6f
LAB_00156c6f:
MOV RSI,qword ptr [RSP + 0x20]
LEA RDI,[RSP + 0x78]
CALL 0x00157ee0
JMP 0x00156c80
LAB_00156c80:
MOV RDI,qword ptr [RSP + 0x48]
ADD RDI,0x28
LEA RSI,[RSP + 0x78]
MOV qword ptr [RSP + 0x10],RSI
CALL 0x00112ed0
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x00113768
LEA RDI,[RSP + 0xc0]
MOV ESI,0x4
CALL 0x00157e70
MOV qword ptr [RSP + 0x18],RAX
JMP 0x00156cbb
LAB_00156cbb:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x00157fb0
CMP RAX,0x0
JLE 0x00156d75
MOV RAX,qword ptr [RSP + 0x48]
MOV byte ptr [RAX + 0x20],0x1
LEA RDI,[RSP + 0xc0]
MOV ESI,0x4
CALL 0x00157e70
MOV qword ptr [RSP + 0x8],RAX
JMP 0x00156cf1
LAB_00156cf1:
MOV RSI,qword ptr [RSP + 0x8]
LEA RDI,[RSP + 0x58]
CALL 0x00157ee0
LAB_00156d00:
JMP 0x00156d02
LAB_00156d02:
MOV RDI,qword ptr [RSP + 0x48]
LEA RSI,[RSP + 0x58]
CALL 0x00112ed0
LEA RDI,[RSP + 0x58]
CALL 0x00113768
JMP 0x00156d75
LAB_00156d75:
JMP 0x00156d77
LAB_00156d77:
MOV byte ptr [RSP + 0xbf],0x1
TEST byte ptr [RSP + 0xbf],0x1
JNZ 0x00156d93
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x00157650
LAB_00156d93:
LEA RDI,[RSP + 0xc0]
CALL 0x0013e210
MOV RAX,qword ptr [RSP + 0x50]
ADD RSP,0x108
RET
|
/* WARNING: Removing unreachable block (ram,0x00156d89) */
/* cxxopts::values::parser_tool::ParseArgument(char const*, bool&) */
parser_tool * __thiscall
cxxopts::values::parser_tool::ParseArgument(parser_tool *this,char *param_1,bool *param_2)
{
byte bVar1;
int iVar2;
sub_match<char_const*> *psVar3;
long lVar4;
string local_b0 [32];
string local_90 [32];
string local_70 [39];
int1 local_49;
match_results<char_const*,std::allocator<std::__cxx11::sub_match<char_const*>>> local_48 [48];
bool *local_18;
char *local_10;
parser_tool *local_8;
local_18 = param_2;
local_10 = param_1;
local_8 = this;
if ((ParseArgument(char_const*,bool&)::option_matcher_abi_cxx11_ == '\0') &&
(iVar2 = __cxa_guard_acquire(&ParseArgument(char_const*,bool&)::option_matcher_abi_cxx11_),
iVar2 != 0)) {
/* try { // try from 00156b26 to 00156b3d has its CatchHandler @ 00156d1d */
std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex
(ParseArgument(char_const*,bool&)::option_matcher_abi_cxx11_,
"--([[:alnum:]][-_[:alnum:]\\.]+)(=(.*))?|-([[:alnum:]].*)",0x10);
__cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex,
ParseArgument(char_const*,bool&)::option_matcher_abi_cxx11_,&__dso_handle);
__cxa_guard_release(&ParseArgument(char_const*,bool&)::option_matcher_abi_cxx11_);
}
std::__cxx11::match_results<char_const*,std::allocator<std::__cxx11::sub_match<char_const*>>>::
match_results(local_48);
/* try { // try from 00156b85 to 00156bc2 has its CatchHandler @ 00156d3f */
std::
regex_match<char,std::allocator<std::__cxx11::sub_match<char_const*>>,std::__cxx11::regex_traits<char>>
(local_10,local_48,ParseArgument(char_const*,bool&)::option_matcher_abi_cxx11_,0);
bVar1 = std::__cxx11::
match_results<char_const*,std::allocator<std::__cxx11::sub_match<char_const*>>>::empty
(local_48);
*local_18 = (bool)(bVar1 ^ 1);
local_49 = 0;
ArguDesc::ArguDesc((ArguDesc *)this);
if ((*local_18 & 1U) != 0) {
/* try { // try from 00156bd6 to 00156cff has its CatchHandler @ 00156d55 */
std::__cxx11::match_results<char_const*,std::allocator<std::__cxx11::sub_match<char_const*>>>::
operator[](local_48,1);
std::__cxx11::sub_match<char_const*>::str();
std::__cxx11::string::operator=((string *)this,local_70);
std::__cxx11::string::~string(local_70);
psVar3 = (sub_match<char_const*> *)
std::__cxx11::
match_results<char_const*,std::allocator<std::__cxx11::sub_match<char_const*>>>::
operator[](local_48,2);
lVar4 = std::__cxx11::sub_match<char_const*>::length(psVar3);
this[0x21] = (parser_tool)(0 < lVar4);
std::__cxx11::match_results<char_const*,std::allocator<std::__cxx11::sub_match<char_const*>>>::
operator[](local_48,3);
std::__cxx11::sub_match<char_const*>::str();
std::__cxx11::string::operator=((string *)(this + 0x28),local_90);
std::__cxx11::string::~string(local_90);
psVar3 = (sub_match<char_const*> *)
std::__cxx11::
match_results<char_const*,std::allocator<std::__cxx11::sub_match<char_const*>>>::
operator[](local_48,4);
lVar4 = std::__cxx11::sub_match<char_const*>::length(psVar3);
if (0 < lVar4) {
this[0x20] = (parser_tool)0x1;
std::__cxx11::match_results<char_const*,std::allocator<std::__cxx11::sub_match<char_const*>>>
::operator[](local_48,4);
std::__cxx11::sub_match<char_const*>::str();
std::__cxx11::string::operator=((string *)this,local_b0);
std::__cxx11::string::~string(local_b0);
}
}
local_49 = 1;
std::__cxx11::match_results<char_const*,std::allocator<std::__cxx11::sub_match<char_const*>>>::
~match_results(local_48);
return this;
}
| |
25,173 | switch_db_collation | eloqsql/client/mysqldump.c | static int switch_db_collation(FILE *sql_file,
const char *db_name,
const char *delimiter,
const char *current_db_cl_name,
const char *required_db_cl_name,
int *db_cl_altered)
{
if (strcmp(current_db_cl_name, required_db_cl_name) != 0)
{
char quoted_db_buf[NAME_LEN * 2 + 3];
char *quoted_db_name= quote_name(db_name, quoted_db_buf, FALSE);
CHARSET_INFO *db_cl= get_charset_by_name(required_db_cl_name, MYF(MY_UTF8_IS_UTF8MB3));
if (!db_cl)
return 1;
fprintf(sql_file,
"ALTER DATABASE %s CHARACTER SET %s COLLATE %s %s\n",
(const char *) quoted_db_name,
(const char *) db_cl->cs_name.str,
(const char *) db_cl->coll_name.str,
(const char *) delimiter);
*db_cl_altered= 1;
return 0;
}
*db_cl_altered= 0;
return 0;
} | O0 | c | switch_db_collation:
pushq %rbp
movq %rsp, %rbp
subq $0x260, %rsp # imm = 0x260
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x220(%rbp)
movq %rsi, -0x228(%rbp)
movq %rdx, -0x230(%rbp)
movq %rcx, -0x238(%rbp)
movq %r8, -0x240(%rbp)
movq %r9, -0x248(%rbp)
movq -0x238(%rbp), %rdi
movq -0x240(%rbp), %rsi
callq 0x38880
cmpl $0x0, %eax
je 0x4521a
movq -0x228(%rbp), %rdi
leaq -0x210(%rbp), %rsi
xorl %edx, %edx
callq 0x3fd90
movq %rax, -0x250(%rbp)
movq -0x240(%rbp), %rdi
movl $0x400, %esi # imm = 0x400
callq 0x7d610
movq %rax, -0x258(%rbp)
cmpq $0x0, -0x258(%rbp)
jne 0x451c8
movl $0x1, -0x214(%rbp)
jmp 0x45231
movq -0x220(%rbp), %rdi
movq -0x250(%rbp), %rdx
movq -0x258(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x258(%rbp), %rax
movq 0x20(%rax), %r8
movq -0x230(%rbp), %r9
leaq 0x97c25(%rip), %rsi # 0xdce1f
movb $0x0, %al
callq 0x381d0
movq -0x248(%rbp), %rax
movl $0x1, (%rax)
movl $0x0, -0x214(%rbp)
jmp 0x45231
movq -0x248(%rbp), %rax
movl $0x0, (%rax)
movl $0x0, -0x214(%rbp)
movl -0x214(%rbp), %eax
movl %eax, -0x25c(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x4525e
movl -0x25c(%rbp), %eax
addq $0x260, %rsp # imm = 0x260
popq %rbp
retq
callq 0x382c0
nopw %cs:(%rax,%rax)
| switch_db_collation:
push rbp
mov rbp, rsp
sub rsp, 260h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_220], rdi
mov [rbp+var_228], rsi
mov [rbp+var_230], rdx
mov [rbp+var_238], rcx
mov [rbp+var_240], r8
mov [rbp+var_248], r9
mov rdi, [rbp+var_238]
mov rsi, [rbp+var_240]
call _strcmp
cmp eax, 0
jz loc_4521A
mov rdi, [rbp+var_228]
lea rsi, [rbp+var_210]
xor edx, edx
call quote_name
mov [rbp+var_250], rax
mov rdi, [rbp+var_240]
mov esi, 400h
call get_charset_by_name
mov [rbp+var_258], rax
cmp [rbp+var_258], 0
jnz short loc_451C8
mov [rbp+var_214], 1
jmp short loc_45231
loc_451C8:
mov rdi, [rbp+var_220]
mov rdx, [rbp+var_250]
mov rax, [rbp+var_258]
mov rcx, [rax+10h]
mov rax, [rbp+var_258]
mov r8, [rax+20h]
mov r9, [rbp+var_230]
lea rsi, aAlterDatabaseS; "ALTER DATABASE %s CHARACTER SET %s COLL"...
mov al, 0
call _fprintf
mov rax, [rbp+var_248]
mov dword ptr [rax], 1
mov [rbp+var_214], 0
jmp short loc_45231
loc_4521A:
mov rax, [rbp+var_248]
mov dword ptr [rax], 0
mov [rbp+var_214], 0
loc_45231:
mov eax, [rbp+var_214]
mov [rbp+var_25C], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_4525E
mov eax, [rbp+var_25C]
add rsp, 260h
pop rbp
retn
loc_4525E:
call ___stack_chk_fail
| long long switch_db_collation(long long a1, char *a2, const char *a3, long long a4, long long a5, _DWORD *a6)
{
long long charset_by_name; // [rsp+8h] [rbp-258h]
char *v8; // [rsp+10h] [rbp-250h]
char v13[520]; // [rsp+50h] [rbp-210h] BYREF
unsigned long long v14; // [rsp+258h] [rbp-8h]
v14 = __readfsqword(0x28u);
if ( !(unsigned int)strcmp(a4, a5) )
{
*a6 = 0;
return 0;
}
else
{
v8 = quote_name(a2, v13, 0);
charset_by_name = get_charset_by_name(a5, 1024LL);
if ( charset_by_name )
{
fprintf(
a1,
"ALTER DATABASE %s CHARACTER SET %s COLLATE %s %s\n",
v8,
*(const char **)(charset_by_name + 16),
*(const char **)(charset_by_name + 32),
a3);
*a6 = 1;
return 0;
}
else
{
return 1;
}
}
}
| switch_db_collation:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x260
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x220],RDI
MOV qword ptr [RBP + -0x228],RSI
MOV qword ptr [RBP + -0x230],RDX
MOV qword ptr [RBP + -0x238],RCX
MOV qword ptr [RBP + -0x240],R8
MOV qword ptr [RBP + -0x248],R9
MOV RDI,qword ptr [RBP + -0x238]
MOV RSI,qword ptr [RBP + -0x240]
CALL 0x00138880
CMP EAX,0x0
JZ 0x0014521a
MOV RDI,qword ptr [RBP + -0x228]
LEA RSI,[RBP + -0x210]
XOR EDX,EDX
CALL 0x0013fd90
MOV qword ptr [RBP + -0x250],RAX
MOV RDI,qword ptr [RBP + -0x240]
MOV ESI,0x400
CALL 0x0017d610
MOV qword ptr [RBP + -0x258],RAX
CMP qword ptr [RBP + -0x258],0x0
JNZ 0x001451c8
MOV dword ptr [RBP + -0x214],0x1
JMP 0x00145231
LAB_001451c8:
MOV RDI,qword ptr [RBP + -0x220]
MOV RDX,qword ptr [RBP + -0x250]
MOV RAX,qword ptr [RBP + -0x258]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x258]
MOV R8,qword ptr [RAX + 0x20]
MOV R9,qword ptr [RBP + -0x230]
LEA RSI,[0x1dce1f]
MOV AL,0x0
CALL 0x001381d0
MOV RAX,qword ptr [RBP + -0x248]
MOV dword ptr [RAX],0x1
MOV dword ptr [RBP + -0x214],0x0
JMP 0x00145231
LAB_0014521a:
MOV RAX,qword ptr [RBP + -0x248]
MOV dword ptr [RAX],0x0
MOV dword ptr [RBP + -0x214],0x0
LAB_00145231:
MOV EAX,dword ptr [RBP + -0x214]
MOV dword ptr [RBP + -0x25c],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x0014525e
MOV EAX,dword ptr [RBP + -0x25c]
ADD RSP,0x260
POP RBP
RET
LAB_0014525e:
CALL 0x001382c0
|
int4
switch_db_collation(FILE *param_1,int8 param_2,int8 param_3,char *param_4,char *param_5,
int4 *param_6)
{
int iVar1;
int8 uVar2;
long lVar3;
long in_FS_OFFSET;
int4 local_21c;
int1 local_218 [520];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
iVar1 = strcmp(param_4,param_5);
if (iVar1 == 0) {
*param_6 = 0;
local_21c = 0;
}
else {
uVar2 = quote_name(param_2,local_218,0);
lVar3 = get_charset_by_name(param_5,0x400);
if (lVar3 == 0) {
local_21c = 1;
}
else {
fprintf(param_1,"ALTER DATABASE %s CHARACTER SET %s COLLATE %s %s\n",uVar2,
*(int8 *)(lVar3 + 0x10),*(int8 *)(lVar3 + 0x20),param_3);
*param_6 = 1;
local_21c = 0;
}
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return local_21c;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
25,174 | change_partitioned_key_cache_param | eloqsql/mysys/mf_keycache.c | static
void change_partitioned_key_cache_param(PARTITIONED_KEY_CACHE_CB *keycache,
uint division_limit,
uint age_threshold)
{
uint i;
uint partitions= keycache->partitions;
DBUG_ENTER("partitioned_change_key_cache_param");
for (i= 0; i < partitions; i++)
{
change_simple_key_cache_param(keycache->partition_array[i], division_limit,
age_threshold);
}
DBUG_VOID_RETURN;
} | O3 | c | change_partitioned_key_cache_param:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl 0x1c(%rdi), %r12d
testq %r12, %r12
je 0xa2103
movl %edx, %ebx
movl %esi, %r14d
movq %rdi, %r15
xorl %r13d, %r13d
movq 0x8(%r15), %rax
movq (%rax,%r13,8), %rdi
movl %r14d, %esi
movl %ebx, %edx
callq 0xa0892
incq %r13
cmpq %r13, %r12
jne 0xa20e9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| change_partitioned_key_cache_param:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r12d, [rdi+1Ch]
test r12, r12
jz short loc_A2103
mov ebx, edx
mov r14d, esi
mov r15, rdi
xor r13d, r13d
loc_A20E9:
mov rax, [r15+8]
mov rdi, [rax+r13*8]
mov esi, r14d
mov edx, ebx
call change_simple_key_cache_param
inc r13
cmp r12, r13
jnz short loc_A20E9
loc_A2103:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long change_partitioned_key_cache_param(long long a1, int a2, int a3)
{
long long v3; // r12
long long v5; // r13
long long result; // rax
v3 = *(unsigned int *)(a1 + 28);
if ( *(_DWORD *)(a1 + 28) )
{
v5 = 0LL;
do
result = change_simple_key_cache_param(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 8 * v5++), a2, a3);
while ( v3 != v5 );
}
return result;
}
| change_partitioned_key_cache_param:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R12D,dword ptr [RDI + 0x1c]
TEST R12,R12
JZ 0x001a2103
MOV EBX,EDX
MOV R14D,ESI
MOV R15,RDI
XOR R13D,R13D
LAB_001a20e9:
MOV RAX,qword ptr [R15 + 0x8]
MOV RDI,qword ptr [RAX + R13*0x8]
MOV ESI,R14D
MOV EDX,EBX
CALL 0x001a0892
INC R13
CMP R12,R13
JNZ 0x001a20e9
LAB_001a2103:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void change_partitioned_key_cache_param(long param_1,int4 param_2,int4 param_3)
{
uint uVar1;
ulong uVar2;
uVar1 = *(uint *)(param_1 + 0x1c);
if ((ulong)uVar1 != 0) {
uVar2 = 0;
do {
change_simple_key_cache_param
(*(int8 *)(*(long *)(param_1 + 8) + uVar2 * 8),param_2,param_3);
uVar2 = uVar2 + 1;
} while (uVar1 != uVar2);
}
return;
}
| |
25,175 | LefDefParser::lefiError(int, int, char const*) | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiDebug.cpp | void
lefiError(int check,
int msgNum,
const char *str)
{
// check is 1 if the caller function has checked TotalMsgLimit, etc.
if (!check) {
if ((lefSettings->TotalMsgLimit > 0) && (lefData->lefErrMsgPrinted >= lefSettings->TotalMsgLimit))
return;
if (lefSettings->MsgLimit[msgNum] > 0) {
if (lefData->msgLimit[0][msgNum] >= lefSettings->MsgLimit[msgNum]) //over the limit
return;
lefData->msgLimit[0][msgNum] = lefData->msgLimit[0][msgNum] + 1;
}
lefData->lefErrMsgPrinted++;
}
if (lefSettings->ErrorLogFunction)
(*lefSettings->ErrorLogFunction)(str);
else
fprintf(stderr, "%s", str);
} | O3 | cpp | LefDefParser::lefiError(int, int, char const*):
leaq 0x59839(%rip), %rax # 0x8d5b8
movq (%rax), %rax
testl %edi, %edi
jne 0x33dcd
movl 0xf0(%rax), %edi
leaq 0x5984d(%rip), %rcx # 0x8d5e0
movq (%rcx), %rcx
testl %edi, %edi
jle 0x33da2
cmpl %edi, 0x1b4(%rcx)
jge 0x33dde
movslq %esi, %rsi
movl 0x130(%rax,%rsi,4), %r8d
testl %r8d, %r8d
jle 0x33dc7
movl 0x5dd8(%rcx,%rsi,4), %edi
cmpl %r8d, %edi
jge 0x33dde
incl %edi
movl %edi, 0x5dd8(%rcx,%rsi,4)
incl 0x1b4(%rcx)
movq 0x118(%rax), %rax
testq %rax, %rax
je 0x33ddf
movq %rdx, %rdi
jmpq *%rax
retq
movq 0x561da(%rip), %rax # 0x89fc0
movq (%rax), %rsi
movq %rdx, %rdi
jmp 0x2220
| _ZN12LefDefParser9lefiErrorEiiPKc:
lea rax, _ZN12LefDefParser11lefSettingsE; LefDefParser::lefSettings
mov rax, [rax]
test edi, edi
jnz short loc_33DCD
mov edi, [rax+0F0h]
lea rcx, _ZN12LefDefParser7lefDataE; LefDefParser::lefData
mov rcx, [rcx]
test edi, edi
jle short loc_33DA2
cmp [rcx+1B4h], edi
jge short locret_33DDE
loc_33DA2:
movsxd rsi, esi
mov r8d, [rax+rsi*4+130h]
test r8d, r8d
jle short loc_33DC7
mov edi, [rcx+rsi*4+5DD8h]
cmp edi, r8d
jge short locret_33DDE
inc edi
mov [rcx+rsi*4+5DD8h], edi
loc_33DC7:
inc dword ptr [rcx+1B4h]
loc_33DCD:
mov rax, [rax+118h]
test rax, rax
jz short loc_33DDF
mov rdi, rdx
jmp rax
locret_33DDE:
retn
loc_33DDF:
mov rax, cs:stderr_ptr
mov rsi, [rax]
mov rdi, rdx
jmp _fputs
| LefDefParser::lefrSettings * LefDefParser::lefiError(LefDefParser *this, int a2, long long a3, const char *a4)
{
LefDefParser::lefrSettings *result; // rax
int v5; // edi
long long v6; // rcx
int v7; // r8d
int v8; // edi
long long ( *v9)(long long); // rax
result = LefDefParser::lefSettings;
if ( (_DWORD)this )
{
LABEL_8:
v9 = (long long ( *)(long long))*((_QWORD *)result + 35);
if ( v9 )
return (LefDefParser::lefrSettings *)v9(a3);
else
return (LefDefParser::lefrSettings *)fputs(a3, stderr);
}
v5 = *((_DWORD *)LefDefParser::lefSettings + 60);
v6 = *(_QWORD *)LefDefParser::lefData;
if ( v5 <= 0 || *(_DWORD *)(*(_QWORD *)LefDefParser::lefData + 436LL) < v5 )
{
v7 = *((_DWORD *)LefDefParser::lefSettings + a2 + 76);
if ( v7 > 0 )
{
v8 = *(_DWORD *)(*(_QWORD *)LefDefParser::lefData + 4LL * a2 + 24024);
if ( v8 >= v7 )
return result;
*(_DWORD *)(*(_QWORD *)LefDefParser::lefData + 4LL * a2 + 24024) = v8 + 1;
}
++*(_DWORD *)(v6 + 436);
goto LABEL_8;
}
return result;
}
| lefiError:
LEA RAX,[0x18d5b8]
MOV RAX,qword ptr [RAX]
TEST EDI,EDI
JNZ 0x00133dcd
MOV EDI,dword ptr [RAX + 0xf0]
LEA RCX,[0x18d5e0]
MOV RCX,qword ptr [RCX]
TEST EDI,EDI
JLE 0x00133da2
CMP dword ptr [RCX + 0x1b4],EDI
JGE 0x00133dde
LAB_00133da2:
MOVSXD RSI,ESI
MOV R8D,dword ptr [RAX + RSI*0x4 + 0x130]
TEST R8D,R8D
JLE 0x00133dc7
MOV EDI,dword ptr [RCX + RSI*0x4 + 0x5dd8]
CMP EDI,R8D
JGE 0x00133dde
INC EDI
MOV dword ptr [RCX + RSI*0x4 + 0x5dd8],EDI
LAB_00133dc7:
INC dword ptr [RCX + 0x1b4]
LAB_00133dcd:
MOV RAX,qword ptr [RAX + 0x118]
TEST RAX,RAX
JZ 0x00133ddf
MOV RDI,RDX
JMP RAX
LAB_00133dde:
RET
LAB_00133ddf:
MOV RAX,qword ptr [0x00189fc0]
MOV RSI,qword ptr [RAX]
MOV RDI,RDX
JMP 0x00102220
|
/* LefDefParser::lefiError(int, int, char const*) */
void LefDefParser::lefiError(int param_1,int param_2,char *param_3)
{
int iVar1;
int iVar2;
long lVar3;
long lVar4;
long lVar5;
lVar4 = lefData;
lVar3 = lefSettings;
if (param_1 == 0) {
if ((0 < *(int *)(lefSettings + 0xf0)) &&
(*(int *)(lefSettings + 0xf0) <= *(int *)(lefData + 0x1b4))) {
return;
}
lVar5 = (long)param_2;
iVar1 = *(int *)(lefSettings + 0x130 + lVar5 * 4);
if (0 < iVar1) {
iVar2 = *(int *)(lefData + 0x5dd8 + lVar5 * 4);
if (iVar1 <= iVar2) {
return;
}
*(int *)(lefData + 0x5dd8 + lVar5 * 4) = iVar2 + 1;
}
*(int *)(lVar4 + 0x1b4) = *(int *)(lVar4 + 0x1b4) + 1;
}
if (*(code **)(lVar3 + 0x118) == (code *)0x0) {
fputs(param_3,*(FILE **)PTR_stderr_00189fc0);
return;
}
/* WARNING: Could not recover jumptable at 0x00133ddc. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(lVar3 + 0x118))(param_3);
return;
}
| |
25,176 | test_conc223 | eloqsql/libmariadb/unittest/libmariadb/charset.c | static int test_conc223(MYSQL *mysql)
{
int rc;
MYSQL_RES *res;
MYSQL_ROW row;
int found= 0;
int mdev27266= 0;
SKIP_MYSQL(mysql);
/*
Test if we're running against an MDEV-27266 server.
It can be detected by the presense of the FULL_COLLATION_NAME
column in I_S.COLLATION_CHARACTER_SET_APPLICABILITY.
*/
rc= mysql_query(mysql,
"SELECT COUNT(*) "
"FROM INFORMATION_SCHEMA.COLUMNS "
"WHERE COLUMN_NAME='FULL_COLLATION_NAME' "
" AND TABLE_NAME='COLLATION_CHARACTER_SET_APPLICABILITY'");
check_mysql_rc(rc, mysql);
res= mysql_store_result(mysql);
if ((row= mysql_fetch_row(res)))
mdev27266= atoi(row[0]);
mysql_free_result(res);
diag("MDEV-27266 aware server: %d", mdev27266);
/*
Now get the list of collations either from I_S.COLLATIONS
or I_S.COLLATION_CHARACTER_SET_APPLICABILITY,
depending on the MDEV-27266 server awareness.
*/
if (mdev27266)
rc= mysql_query(mysql,
"SELECT ID, CHARACTER_SET_NAME, FULL_COLLATION_NAME "
"FROM INFORMATION_SCHEMA.COLLATION_CHARACTER_SET_APPLICABILITY");
else
rc= mysql_query(mysql,
"SELECT ID, CHARACTER_SET_NAME, COLLATION_NAME "
"FROM INFORMATION_SCHEMA.COLLATIONS");
check_mysql_rc(rc, mysql);
res= mysql_store_result(mysql);
while ((row = mysql_fetch_row(res)))
{
int id= atoi(row[0]);
if (!mariadb_get_charset_by_nr(id))
{
diag("%04d %s %s", id, row[1], row[2]);
found++;
}
}
mysql_free_result(res);
if (found)
{
diag("%d character sets/collations not found", found);
return FAIL;
}
return OK;
} | O0 | c | test_conc223:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movl $0x0, -0x2c(%rbp)
movl $0x0, -0x30(%rbp)
movq -0x10(%rbp), %rdi
callq 0x1ae00
cmpb $0x0, %al
jne 0x157f1
leaq 0x391aa(%rip), %rdi # 0x4e988
movb $0x0, %al
callq 0x187a0
movl $0x0, -0x4(%rbp)
jmp 0x159c0
jmp 0x157f3
movq -0x10(%rbp), %rdi
leaq 0x391ab(%rip), %rsi # 0x4e9a9
callq 0x22f20
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x15858
movl -0x14(%rbp), %eax
movl %eax, -0x44(%rbp)
movq -0x10(%rbp), %rdi
callq 0x268a0
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
callq 0x26870
movl -0x44(%rbp), %esi
movq -0x40(%rbp), %rdx
movl %eax, %ecx
leaq 0x389f3(%rip), %rdi # 0x4e22b
leaq 0x38e4d(%rip), %r8 # 0x4e68c
movl $0x327, %r9d # imm = 0x327
movb $0x0, %al
callq 0x187a0
movl $0x1, -0x4(%rbp)
jmp 0x159c0
jmp 0x1585a
movq -0x10(%rbp), %rdi
callq 0x24570
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0x248b0
movq %rax, -0x28(%rbp)
cmpq $0x0, %rax
je 0x15889
movq -0x28(%rbp), %rax
movq (%rax), %rdi
callq 0x136b0
movl %eax, -0x30(%rbp)
movq -0x20(%rbp), %rdi
callq 0x1bdb0
movl -0x30(%rbp), %esi
leaq 0x3919e(%rip), %rdi # 0x4ea3a
movb $0x0, %al
callq 0x187a0
cmpl $0x0, -0x30(%rbp)
je 0x158be
movq -0x10(%rbp), %rdi
leaq 0x391a2(%rip), %rsi # 0x4ea56
callq 0x22f20
movl %eax, -0x14(%rbp)
jmp 0x158d1
movq -0x10(%rbp), %rdi
leaq 0x391fe(%rip), %rsi # 0x4eac7
callq 0x22f20
movl %eax, -0x14(%rbp)
jmp 0x158d3
cmpl $0x0, -0x14(%rbp)
je 0x15925
movl -0x14(%rbp), %eax
movl %eax, -0x54(%rbp)
movq -0x10(%rbp), %rdi
callq 0x268a0
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rdi
callq 0x26870
movl -0x54(%rbp), %esi
movq -0x50(%rbp), %rdx
movl %eax, %ecx
leaq 0x38926(%rip), %rdi # 0x4e22b
leaq 0x38d80(%rip), %r8 # 0x4e68c
movl $0x33b, %r9d # imm = 0x33B
movb $0x0, %al
callq 0x187a0
movl $0x1, -0x4(%rbp)
jmp 0x159c0
jmp 0x15927
movq -0x10(%rbp), %rdi
callq 0x24570
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0x248b0
movq %rax, -0x28(%rbp)
cmpq $0x0, %rax
je 0x15990
movq -0x28(%rbp), %rax
movq (%rax), %rdi
callq 0x136b0
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %edi
callq 0x26e90
cmpq $0x0, %rax
jne 0x1598e
movl -0x34(%rbp), %esi
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdx
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rcx
leaq 0x3919a(%rip), %rdi # 0x4eb18
movb $0x0, %al
callq 0x187a0
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x15934
movq -0x20(%rbp), %rdi
callq 0x1bdb0
cmpl $0x0, -0x2c(%rbp)
je 0x159b9
movl -0x2c(%rbp), %esi
leaq 0x3917a(%rip), %rdi # 0x4eb23
movb $0x0, %al
callq 0x187a0
movl $0x1, -0x4(%rbp)
jmp 0x159c0
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)
| test_conc223:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_10], rdi
mov [rbp+var_2C], 0
mov [rbp+var_30], 0
mov rdi, [rbp+var_10]
call mariadb_connection
cmp al, 0
jnz short loc_157F1
lea rdi, aSkipTestForNon; "Skip test for non MariaDB server"
mov al, 0
call diag
mov [rbp+var_4], 0
jmp loc_159C0
loc_157F1:
jmp short $+2
loc_157F3:
mov rdi, [rbp+var_10]
lea rsi, aSelectCountFro; "SELECT COUNT(*) FROM INFORMATION_SCHEMA"...
call mysql_query
mov [rbp+var_14], eax
cmp [rbp+var_14], 0
jz short loc_15858
mov eax, [rbp+var_14]
mov [rbp+var_44], eax
mov rdi, [rbp+var_10]
call mysql_error
mov [rbp+var_40], rax
mov rdi, [rbp+var_10]
call mysql_errno
mov esi, [rbp+var_44]
mov rdx, [rbp+var_40]
mov ecx, eax
lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d"
lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov r9d, 327h
mov al, 0
call diag
mov [rbp+var_4], 1
jmp loc_159C0
loc_15858:
jmp short $+2
loc_1585A:
mov rdi, [rbp+var_10]
call mysql_store_result
mov [rbp+var_20], rax
mov rdi, [rbp+var_20]
call mysql_fetch_row
mov [rbp+var_28], rax
cmp rax, 0
jz short loc_15889
mov rax, [rbp+var_28]
mov rdi, [rax]
call _atoi
mov [rbp+var_30], eax
loc_15889:
mov rdi, [rbp+var_20]
call mysql_free_result
mov esi, [rbp+var_30]
lea rdi, aMdev27266Aware; "MDEV-27266 aware server: %d"
mov al, 0
call diag
cmp [rbp+var_30], 0
jz short loc_158BE
mov rdi, [rbp+var_10]
lea rsi, aSelectIdCharac; "SELECT ID, CHARACTER_SET_NAME, FULL_COL"...
call mysql_query
mov [rbp+var_14], eax
jmp short loc_158D1
loc_158BE:
mov rdi, [rbp+var_10]
lea rsi, aSelectIdCharac_0; "SELECT ID, CHARACTER_SET_NAME, COLLATIO"...
call mysql_query
mov [rbp+var_14], eax
loc_158D1:
jmp short $+2
loc_158D3:
cmp [rbp+var_14], 0
jz short loc_15925
mov eax, [rbp+var_14]
mov [rbp+var_54], eax
mov rdi, [rbp+var_10]
call mysql_error
mov [rbp+var_50], rax
mov rdi, [rbp+var_10]
call mysql_errno
mov esi, [rbp+var_54]
mov rdx, [rbp+var_50]
mov ecx, eax
lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d"
lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov r9d, 33Bh
mov al, 0
call diag
mov [rbp+var_4], 1
jmp loc_159C0
loc_15925:
jmp short $+2
loc_15927:
mov rdi, [rbp+var_10]
call mysql_store_result
mov [rbp+var_20], rax
loc_15934:
mov rdi, [rbp+var_20]
call mysql_fetch_row
mov [rbp+var_28], rax
cmp rax, 0
jz short loc_15990
mov rax, [rbp+var_28]
mov rdi, [rax]
call _atoi
mov [rbp+var_34], eax
mov edi, [rbp+var_34]
call mariadb_get_charset_by_nr
cmp rax, 0
jnz short loc_1598E
mov esi, [rbp+var_34]
mov rax, [rbp+var_28]
mov rdx, [rax+8]
mov rax, [rbp+var_28]
mov rcx, [rax+10h]
lea rdi, a04dSS; "%04d %s %s"
mov al, 0
call diag
mov eax, [rbp+var_2C]
add eax, 1
mov [rbp+var_2C], eax
loc_1598E:
jmp short loc_15934
loc_15990:
mov rdi, [rbp+var_20]
call mysql_free_result
cmp [rbp+var_2C], 0
jz short loc_159B9
mov esi, [rbp+var_2C]
lea rdi, aDCharacterSets; "%d character sets/collations not found"
mov al, 0
call diag
mov [rbp+var_4], 1
jmp short loc_159C0
loc_159B9:
mov [rbp+var_4], 0
loc_159C0:
mov eax, [rbp+var_4]
add rsp, 60h
pop rbp
retn
| long long test_conc223(long long a1, int a2)
{
int v2; // edx
int v3; // ecx
int v4; // r8d
int v5; // r9d
int v6; // eax
int v7; // edx
int v8; // ecx
int v9; // r8d
int v10; // r9d
int v11; // eax
int v12; // r8d
int v13; // r9d
int v14; // edx
int v15; // ecx
int v16; // r8d
int v17; // r9d
int v19; // [rsp+10h] [rbp-50h]
int v20; // [rsp+20h] [rbp-40h]
unsigned int v21; // [rsp+2Ch] [rbp-34h]
int v22; // [rsp+30h] [rbp-30h]
int v23; // [rsp+34h] [rbp-2Ch]
_QWORD *row; // [rsp+38h] [rbp-28h]
_QWORD *v25; // [rsp+38h] [rbp-28h]
long long v26; // [rsp+40h] [rbp-20h]
long long v27; // [rsp+40h] [rbp-20h]
int v28; // [rsp+4Ch] [rbp-14h]
int v29; // [rsp+4Ch] [rbp-14h]
v23 = 0;
v22 = 0;
if ( (unsigned __int8)mariadb_connection(a1) )
{
v28 = mysql_query(
a1,
"SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME='FULL_COLLATION_NAME' AND TABLE_NAME='CO"
"LLATION_CHARACTER_SET_APPLICABILITY'");
if ( v28 )
{
v20 = mysql_error(a1);
v6 = mysql_errno(a1);
diag(
(unsigned int)"Error (%d): %s (%d) in %s line %d",
v28,
v20,
v6,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/charset.c",
807);
return 1;
}
else
{
v26 = mysql_store_result(a1);
row = (_QWORD *)mysql_fetch_row(v26);
if ( row )
v22 = atoi(*row);
mysql_free_result(v26);
diag((unsigned int)"MDEV-27266 aware server: %d", v22, v7, v8, v9, v10);
if ( v22 )
v29 = mysql_query(
a1,
"SELECT ID, CHARACTER_SET_NAME, FULL_COLLATION_NAME FROM INFORMATION_SCHEMA.COLLATION_CHARACTER_SET_APPLICABILITY");
else
v29 = mysql_query(a1, "SELECT ID, CHARACTER_SET_NAME, COLLATION_NAME FROM INFORMATION_SCHEMA.COLLATIONS");
if ( v29 )
{
v19 = mysql_error(a1);
v11 = mysql_errno(a1);
diag(
(unsigned int)"Error (%d): %s (%d) in %s line %d",
v29,
v19,
v11,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/charset.c",
827);
return 1;
}
else
{
v27 = mysql_store_result(a1);
while ( 1 )
{
v25 = (_QWORD *)mysql_fetch_row(v27);
if ( !v25 )
break;
v21 = atoi(*v25);
if ( !mariadb_get_charset_by_nr(v21) )
{
diag((unsigned int)"%04d %s %s", v21, v25[1], v25[2], v12, v13);
++v23;
}
}
mysql_free_result(v27);
if ( v23 )
{
diag((unsigned int)"%d character sets/collations not found", v23, v14, v15, v16, v17);
return 1;
}
else
{
return 0;
}
}
}
}
else
{
diag((unsigned int)"Skip test for non MariaDB server", a2, v2, v3, v4, v5);
return 0;
}
}
| test_conc223:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x2c],0x0
MOV dword ptr [RBP + -0x30],0x0
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0011ae00
CMP AL,0x0
JNZ 0x001157f1
LEA RDI,[0x14e988]
MOV AL,0x0
CALL 0x001187a0
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001159c0
LAB_001157f1:
JMP 0x001157f3
LAB_001157f3:
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x14e9a9]
CALL 0x00122f20
MOV dword ptr [RBP + -0x14],EAX
CMP dword ptr [RBP + -0x14],0x0
JZ 0x00115858
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x44],EAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001268a0
MOV qword ptr [RBP + -0x40],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00126870
MOV ESI,dword ptr [RBP + -0x44]
MOV RDX,qword ptr [RBP + -0x40]
MOV ECX,EAX
LEA RDI,[0x14e22b]
LEA R8,[0x14e68c]
MOV R9D,0x327
MOV AL,0x0
CALL 0x001187a0
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001159c0
LAB_00115858:
JMP 0x0011585a
LAB_0011585a:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00124570
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001248b0
MOV qword ptr [RBP + -0x28],RAX
CMP RAX,0x0
JZ 0x00115889
MOV RAX,qword ptr [RBP + -0x28]
MOV RDI,qword ptr [RAX]
CALL 0x001136b0
MOV dword ptr [RBP + -0x30],EAX
LAB_00115889:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0011bdb0
MOV ESI,dword ptr [RBP + -0x30]
LEA RDI,[0x14ea3a]
MOV AL,0x0
CALL 0x001187a0
CMP dword ptr [RBP + -0x30],0x0
JZ 0x001158be
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x14ea56]
CALL 0x00122f20
MOV dword ptr [RBP + -0x14],EAX
JMP 0x001158d1
LAB_001158be:
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x14eac7]
CALL 0x00122f20
MOV dword ptr [RBP + -0x14],EAX
LAB_001158d1:
JMP 0x001158d3
LAB_001158d3:
CMP dword ptr [RBP + -0x14],0x0
JZ 0x00115925
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x54],EAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001268a0
MOV qword ptr [RBP + -0x50],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00126870
MOV ESI,dword ptr [RBP + -0x54]
MOV RDX,qword ptr [RBP + -0x50]
MOV ECX,EAX
LEA RDI,[0x14e22b]
LEA R8,[0x14e68c]
MOV R9D,0x33b
MOV AL,0x0
CALL 0x001187a0
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001159c0
LAB_00115925:
JMP 0x00115927
LAB_00115927:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00124570
MOV qword ptr [RBP + -0x20],RAX
LAB_00115934:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001248b0
MOV qword ptr [RBP + -0x28],RAX
CMP RAX,0x0
JZ 0x00115990
MOV RAX,qword ptr [RBP + -0x28]
MOV RDI,qword ptr [RAX]
CALL 0x001136b0
MOV dword ptr [RBP + -0x34],EAX
MOV EDI,dword ptr [RBP + -0x34]
CALL 0x00126e90
CMP RAX,0x0
JNZ 0x0011598e
MOV ESI,dword ptr [RBP + -0x34]
MOV RAX,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RAX + 0x10]
LEA RDI,[0x14eb18]
MOV AL,0x0
CALL 0x001187a0
MOV EAX,dword ptr [RBP + -0x2c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x2c],EAX
LAB_0011598e:
JMP 0x00115934
LAB_00115990:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0011bdb0
CMP dword ptr [RBP + -0x2c],0x0
JZ 0x001159b9
MOV ESI,dword ptr [RBP + -0x2c]
LEA RDI,[0x14eb23]
MOV AL,0x0
CALL 0x001187a0
MOV dword ptr [RBP + -0x4],0x1
JMP 0x001159c0
LAB_001159b9:
MOV dword ptr [RBP + -0x4],0x0
LAB_001159c0:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x60
POP RBP
RET
|
int4 test_conc223(int8 param_1)
{
char cVar1;
int iVar2;
int4 uVar3;
int8 uVar4;
int8 *puVar5;
long lVar6;
int local_38;
int local_34;
int local_1c;
int4 local_c;
local_34 = 0;
local_38 = 0;
cVar1 = mariadb_connection(param_1);
if (cVar1 == '\0') {
diag("Skip test for non MariaDB server");
local_c = 0;
}
else {
iVar2 = mysql_query(param_1,
"SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME=\'FULL_COLLATION_NAME\' AND TABLE_NAME=\'COLLATION_CHARACTER_SET_APPLICABILITY\'"
);
if (iVar2 == 0) {
uVar4 = mysql_store_result(param_1);
puVar5 = (int8 *)mysql_fetch_row(uVar4);
if (puVar5 != (int8 *)0x0) {
local_38 = atoi((char *)*puVar5);
}
mysql_free_result(uVar4);
diag("MDEV-27266 aware server: %d",local_38);
if (local_38 == 0) {
local_1c = mysql_query(param_1,
"SELECT ID, CHARACTER_SET_NAME, COLLATION_NAME FROM INFORMATION_SCHEMA.COLLATIONS"
);
}
else {
local_1c = mysql_query(param_1,
"SELECT ID, CHARACTER_SET_NAME, FULL_COLLATION_NAME FROM INFORMATION_SCHEMA.COLLATION_CHARACTER_SET_APPLICABILITY"
);
}
if (local_1c == 0) {
uVar4 = mysql_store_result(param_1);
while (puVar5 = (int8 *)mysql_fetch_row(uVar4), puVar5 != (int8 *)0x0) {
iVar2 = atoi((char *)*puVar5);
lVar6 = mariadb_get_charset_by_nr(iVar2);
if (lVar6 == 0) {
diag("%04d %s %s",iVar2,puVar5[1],puVar5[2]);
local_34 = local_34 + 1;
}
}
mysql_free_result(uVar4);
if (local_34 == 0) {
local_c = 0;
}
else {
diag("%d character sets/collations not found",local_34);
local_c = 1;
}
}
else {
uVar4 = mysql_error(param_1);
uVar3 = mysql_errno(param_1);
diag("Error (%d): %s (%d) in %s line %d",local_1c,uVar4,uVar3,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/charset.c",
0x33b);
local_c = 1;
}
}
else {
uVar4 = mysql_error(param_1);
uVar3 = mysql_errno(param_1);
diag("Error (%d): %s (%d) in %s line %d",iVar2,uVar4,uVar3,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/charset.c",0x327
);
local_c = 1;
}
}
return local_c;
}
| |
25,177 | test_conc223 | eloqsql/libmariadb/unittest/libmariadb/charset.c | static int test_conc223(MYSQL *mysql)
{
int rc;
MYSQL_RES *res;
MYSQL_ROW row;
int found= 0;
int mdev27266= 0;
SKIP_MYSQL(mysql);
/*
Test if we're running against an MDEV-27266 server.
It can be detected by the presense of the FULL_COLLATION_NAME
column in I_S.COLLATION_CHARACTER_SET_APPLICABILITY.
*/
rc= mysql_query(mysql,
"SELECT COUNT(*) "
"FROM INFORMATION_SCHEMA.COLUMNS "
"WHERE COLUMN_NAME='FULL_COLLATION_NAME' "
" AND TABLE_NAME='COLLATION_CHARACTER_SET_APPLICABILITY'");
check_mysql_rc(rc, mysql);
res= mysql_store_result(mysql);
if ((row= mysql_fetch_row(res)))
mdev27266= atoi(row[0]);
mysql_free_result(res);
diag("MDEV-27266 aware server: %d", mdev27266);
/*
Now get the list of collations either from I_S.COLLATIONS
or I_S.COLLATION_CHARACTER_SET_APPLICABILITY,
depending on the MDEV-27266 server awareness.
*/
if (mdev27266)
rc= mysql_query(mysql,
"SELECT ID, CHARACTER_SET_NAME, FULL_COLLATION_NAME "
"FROM INFORMATION_SCHEMA.COLLATION_CHARACTER_SET_APPLICABILITY");
else
rc= mysql_query(mysql,
"SELECT ID, CHARACTER_SET_NAME, COLLATION_NAME "
"FROM INFORMATION_SCHEMA.COLLATIONS");
check_mysql_rc(rc, mysql);
res= mysql_store_result(mysql);
while ((row = mysql_fetch_row(res)))
{
int id= atoi(row[0]);
if (!mariadb_get_charset_by_nr(id))
{
diag("%04d %s %s", id, row[1], row[2]);
found++;
}
}
mysql_free_result(res);
if (found)
{
diag("%d character sets/collations not found", found);
return FAIL;
}
return OK;
} | O3 | c | test_conc223:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x183d3
testb %al, %al
je 0x14fc7
leaq 0x219d9(%rip), %rsi # 0x3695d
movq %rbx, %rdi
callq 0x1d045
testl %eax, %eax
je 0x14fdc
movl %eax, %r14d
movq %rbx, %rdi
callq 0x1f0be
movq %rax, %r15
movq %rbx, %rdi
callq 0x1f0a9
leaq 0x21238(%rip), %rdi # 0x361e5
leaq 0x2168c(%rip), %r8 # 0x36640
movl %r14d, %esi
movq %r15, %rdx
movl %eax, %ecx
movl $0x327, %r9d # imm = 0x327
jmp 0x15070
leaq 0x2196e(%rip), %rdi # 0x3693c
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x16f1f
jmp 0x1507c
movq %rbx, %rdi
callq 0x1df3d
movq %rax, %r14
movq %rax, %rdi
callq 0x1e140
testq %rax, %rax
je 0x15001
movq (%rax), %rdi
callq 0x136f0
movl %eax, %r15d
jmp 0x15004
xorl %r15d, %r15d
movq %r14, %rdi
callq 0x18cf2
leaq 0x219db(%rip), %rdi # 0x369ee
movl %r15d, %esi
xorl %eax, %eax
callq 0x16f1f
testl %r15d, %r15d
leaq 0x21a54(%rip), %rax # 0x36a7b
leaq 0x219dc(%rip), %rsi # 0x36a0a
cmoveq %rax, %rsi
movq %rbx, %rdi
callq 0x1d045
testl %eax, %eax
je 0x1508d
movl %eax, %r14d
movq %rbx, %rdi
callq 0x1f0be
movq %rax, %r15
movq %rbx, %rdi
callq 0x1f0a9
leaq 0x2118a(%rip), %rdi # 0x361e5
leaq 0x215de(%rip), %r8 # 0x36640
movl %r14d, %esi
movq %r15, %rdx
movl %eax, %ecx
movl $0x33b, %r9d # imm = 0x33B
xorl %eax, %eax
callq 0x16f1f
movl $0x1, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x1df3d
movq %rax, %rbx
movq %rax, %rdi
callq 0x1e140
testq %rax, %rax
je 0x15117
movq %rax, %r12
leaq 0x21a1d(%rip), %r15 # 0x36acc
xorl %r14d, %r14d
movq (%r12), %rdi
callq 0x136f0
movl %eax, %r13d
movl %eax, %edi
callq 0x1f36c
testq %rax, %rax
jne 0x150e4
movq 0x8(%r12), %rdx
movq 0x10(%r12), %rcx
movq %r15, %rdi
movl %r13d, %esi
xorl %eax, %eax
callq 0x16f1f
incl %r14d
movq %rbx, %rdi
callq 0x1e140
movq %rax, %r12
testq %rax, %rax
jne 0x150b2
movq %rbx, %rdi
callq 0x18cf2
testl %r14d, %r14d
je 0x1511f
leaq 0x219cf(%rip), %rdi # 0x36ad7
movl %r14d, %esi
xorl %eax, %eax
callq 0x16f1f
jmp 0x15077
movq %rbx, %rdi
callq 0x18cf2
xorl %ebx, %ebx
jmp 0x1507c
| test_conc223:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdi
call mariadb_connection
test al, al
jz short loc_14FC7
lea rsi, aSelectCountFro; "SELECT COUNT(*) FROM INFORMATION_SCHEMA"...
mov rdi, rbx
call mysql_query
test eax, eax
jz short loc_14FDC
mov r14d, eax
mov rdi, rbx
call mysql_error
mov r15, rax
mov rdi, rbx
call mysql_errno
lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d"
lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, r14d
mov rdx, r15
mov ecx, eax
mov r9d, 327h
jmp loc_15070
loc_14FC7:
lea rdi, aSkipTestForNon; "Skip test for non MariaDB server"
xor ebx, ebx
xor eax, eax
call diag
jmp loc_1507C
loc_14FDC:
mov rdi, rbx
call mysql_store_result
mov r14, rax
mov rdi, rax
call mysql_fetch_row
test rax, rax
jz short loc_15001
mov rdi, [rax]
call _atoi
mov r15d, eax
jmp short loc_15004
loc_15001:
xor r15d, r15d
loc_15004:
mov rdi, r14
call mysql_free_result
lea rdi, aMdev27266Aware; "MDEV-27266 aware server: %d"
mov esi, r15d
xor eax, eax
call diag
test r15d, r15d
lea rax, aSelectIdCharac; "SELECT ID, CHARACTER_SET_NAME, COLLATIO"...
lea rsi, aSelectIdCharac_0; "SELECT ID, CHARACTER_SET_NAME, FULL_COL"...
cmovz rsi, rax
mov rdi, rbx
call mysql_query
test eax, eax
jz short loc_1508D
mov r14d, eax
mov rdi, rbx
call mysql_error
mov r15, rax
mov rdi, rbx
call mysql_errno
lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d"
lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, r14d
mov rdx, r15
mov ecx, eax
mov r9d, 33Bh
loc_15070:
xor eax, eax
call diag
loc_15077:
mov ebx, 1
loc_1507C:
mov eax, ebx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_1508D:
mov rdi, rbx
call mysql_store_result
mov rbx, rax
mov rdi, rax
call mysql_fetch_row
test rax, rax
jz short loc_15117
mov r12, rax
lea r15, a04dSS; "%04d %s %s"
xor r14d, r14d
loc_150B2:
mov rdi, [r12]
call _atoi
mov r13d, eax
mov edi, eax
call mariadb_get_charset_by_nr
test rax, rax
jnz short loc_150E4
mov rdx, [r12+8]
mov rcx, [r12+10h]
mov rdi, r15
mov esi, r13d
xor eax, eax
call diag
inc r14d
loc_150E4:
mov rdi, rbx
call mysql_fetch_row
mov r12, rax
test rax, rax
jnz short loc_150B2
mov rdi, rbx
call mysql_free_result
test r14d, r14d
jz short loc_1511F
lea rdi, aDCharacterSets; "%d character sets/collations not found"
mov esi, r14d
xor eax, eax
call diag
jmp loc_15077
loc_15117:
mov rdi, rbx
call mysql_free_result
loc_1511F:
xor ebx, ebx
jmp loc_1507C
| long long test_conc223(long long a1, int a2)
{
int v2; // edx
int v3; // ecx
int v4; // r8d
int v5; // r9d
int v6; // eax
int v7; // r14d
int v8; // r15d
int v9; // eax
int v10; // esi
int v11; // edx
int v12; // ecx
int v13; // r9d
unsigned int v14; // ebx
long long v15; // r14
_QWORD *row; // rax
int v17; // r15d
int v18; // edx
int v19; // ecx
int v20; // r8d
int v21; // r9d
const char *v22; // rsi
int v23; // eax
int v24; // r14d
int v25; // r15d
int v26; // eax
long long v28; // rbx
long long v29; // rax
_QWORD *v30; // r12
int v31; // r14d
long long v32; // r13
int v33; // r8d
int v34; // r9d
int v35; // edx
int v36; // ecx
int v37; // r8d
int v38; // r9d
if ( (unsigned __int8)mariadb_connection(a1) )
{
v6 = mysql_query(
a1,
"SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME='FULL_COLLATION_NAME' AND TABLE_NAME='COL"
"LATION_CHARACTER_SET_APPLICABILITY'");
if ( v6 )
{
v7 = v6;
v8 = mysql_error(a1);
v9 = mysql_errno(a1);
v10 = v7;
v11 = v8;
v12 = v9;
v13 = 807;
}
else
{
v15 = mysql_store_result(a1);
row = (_QWORD *)mysql_fetch_row(v15);
if ( row )
v17 = atoi(*row);
else
v17 = 0;
mysql_free_result(v15);
diag((unsigned int)"MDEV-27266 aware server: %d", v17, v18, v19, v20, v21);
v22 = "SELECT ID, CHARACTER_SET_NAME, FULL_COLLATION_NAME FROM INFORMATION_SCHEMA.COLLATION_CHARACTER_SET_APPLICABILITY";
if ( !v17 )
v22 = "SELECT ID, CHARACTER_SET_NAME, COLLATION_NAME FROM INFORMATION_SCHEMA.COLLATIONS";
v23 = mysql_query(a1, v22);
if ( !v23 )
{
v28 = mysql_store_result(a1);
v29 = mysql_fetch_row(v28);
if ( v29 )
{
v30 = (_QWORD *)v29;
v31 = 0;
do
{
v32 = (unsigned int)atoi(*v30);
if ( !mariadb_get_charset_by_nr(v32) )
{
diag((unsigned int)"%04d %s %s", v32, v30[1], v30[2], v33, v34);
++v31;
}
v30 = (_QWORD *)mysql_fetch_row(v28);
}
while ( v30 );
mysql_free_result(v28);
if ( v31 )
{
diag((unsigned int)"%d character sets/collations not found", v31, v35, v36, v37, v38);
return 1;
}
}
else
{
mysql_free_result(v28);
}
return 0;
}
v24 = v23;
v25 = mysql_error(a1);
v26 = mysql_errno(a1);
v10 = v24;
v11 = v25;
v12 = v26;
v13 = 827;
}
diag(
(unsigned int)"Error (%d): %s (%d) in %s line %d",
v10,
v11,
v12,
(unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/charset.c",
v13);
return 1;
}
v14 = 0;
diag((unsigned int)"Skip test for non MariaDB server", a2, v2, v3, v4, v5);
return v14;
}
| test_conc223:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
CALL 0x001183d3
TEST AL,AL
JZ 0x00114fc7
LEA RSI,[0x13695d]
MOV RDI,RBX
CALL 0x0011d045
TEST EAX,EAX
JZ 0x00114fdc
MOV R14D,EAX
MOV RDI,RBX
CALL 0x0011f0be
MOV R15,RAX
MOV RDI,RBX
CALL 0x0011f0a9
LEA RDI,[0x1361e5]
LEA R8,[0x136640]
MOV ESI,R14D
MOV RDX,R15
MOV ECX,EAX
MOV R9D,0x327
JMP 0x00115070
LAB_00114fc7:
LEA RDI,[0x13693c]
XOR EBX,EBX
XOR EAX,EAX
CALL 0x00116f1f
JMP 0x0011507c
LAB_00114fdc:
MOV RDI,RBX
CALL 0x0011df3d
MOV R14,RAX
MOV RDI,RAX
CALL 0x0011e140
TEST RAX,RAX
JZ 0x00115001
MOV RDI,qword ptr [RAX]
CALL 0x001136f0
MOV R15D,EAX
JMP 0x00115004
LAB_00115001:
XOR R15D,R15D
LAB_00115004:
MOV RDI,R14
CALL 0x00118cf2
LEA RDI,[0x1369ee]
MOV ESI,R15D
XOR EAX,EAX
CALL 0x00116f1f
TEST R15D,R15D
LEA RAX,[0x136a7b]
LEA RSI,[0x136a0a]
CMOVZ RSI,RAX
MOV RDI,RBX
CALL 0x0011d045
TEST EAX,EAX
JZ 0x0011508d
MOV R14D,EAX
MOV RDI,RBX
CALL 0x0011f0be
MOV R15,RAX
MOV RDI,RBX
CALL 0x0011f0a9
LEA RDI,[0x1361e5]
LEA R8,[0x136640]
MOV ESI,R14D
MOV RDX,R15
MOV ECX,EAX
MOV R9D,0x33b
LAB_00115070:
XOR EAX,EAX
CALL 0x00116f1f
LAB_00115077:
MOV EBX,0x1
LAB_0011507c:
MOV EAX,EBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0011508d:
MOV RDI,RBX
CALL 0x0011df3d
MOV RBX,RAX
MOV RDI,RAX
CALL 0x0011e140
TEST RAX,RAX
JZ 0x00115117
MOV R12,RAX
LEA R15,[0x136acc]
XOR R14D,R14D
LAB_001150b2:
MOV RDI,qword ptr [R12]
CALL 0x001136f0
MOV R13D,EAX
MOV EDI,EAX
CALL 0x0011f36c
TEST RAX,RAX
JNZ 0x001150e4
MOV RDX,qword ptr [R12 + 0x8]
MOV RCX,qword ptr [R12 + 0x10]
MOV RDI,R15
MOV ESI,R13D
XOR EAX,EAX
CALL 0x00116f1f
INC R14D
LAB_001150e4:
MOV RDI,RBX
CALL 0x0011e140
MOV R12,RAX
TEST RAX,RAX
JNZ 0x001150b2
MOV RDI,RBX
CALL 0x00118cf2
TEST R14D,R14D
JZ 0x0011511f
LEA RDI,[0x136ad7]
MOV ESI,R14D
XOR EAX,EAX
CALL 0x00116f1f
JMP 0x00115077
LAB_00115117:
MOV RDI,RBX
CALL 0x00118cf2
LAB_0011511f:
XOR EBX,EBX
JMP 0x0011507c
|
int8 test_conc223(int8 param_1)
{
char cVar1;
int iVar2;
int4 uVar3;
int iVar4;
int8 uVar5;
int8 *puVar6;
long lVar7;
char *pcVar8;
int8 uVar9;
cVar1 = mariadb_connection();
if (cVar1 == '\0') {
diag("Skip test for non MariaDB server");
return 0;
}
iVar2 = mysql_query(param_1,
"SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME=\'FULL_COLLATION_NAME\' AND TABLE_NAME=\'COLLATION_CHARACTER_SET_APPLICABILITY\'"
);
if (iVar2 == 0) {
uVar5 = mysql_store_result(param_1);
puVar6 = (int8 *)mysql_fetch_row(uVar5);
if (puVar6 == (int8 *)0x0) {
iVar2 = 0;
}
else {
iVar2 = atoi((char *)*puVar6);
}
mysql_free_result(uVar5);
diag("MDEV-27266 aware server: %d",iVar2);
pcVar8 =
"SELECT ID, CHARACTER_SET_NAME, FULL_COLLATION_NAME FROM INFORMATION_SCHEMA.COLLATION_CHARACTER_SET_APPLICABILITY"
;
if (iVar2 == 0) {
pcVar8 = "SELECT ID, CHARACTER_SET_NAME, COLLATION_NAME FROM INFORMATION_SCHEMA.COLLATIONS";
}
iVar2 = mysql_query(param_1,pcVar8);
if (iVar2 == 0) {
uVar5 = mysql_store_result(param_1);
puVar6 = (int8 *)mysql_fetch_row(uVar5);
if (puVar6 == (int8 *)0x0) {
mysql_free_result(uVar5);
return 0;
}
iVar2 = 0;
do {
iVar4 = atoi((char *)*puVar6);
lVar7 = mariadb_get_charset_by_nr(iVar4);
if (lVar7 == 0) {
diag("%04d %s %s",iVar4,puVar6[1],puVar6[2]);
iVar2 = iVar2 + 1;
}
puVar6 = (int8 *)mysql_fetch_row(uVar5);
} while (puVar6 != (int8 *)0x0);
mysql_free_result(uVar5);
if (iVar2 != 0) {
diag("%d character sets/collations not found",iVar2);
return 1;
}
return 0;
}
uVar5 = mysql_error(param_1);
uVar3 = mysql_errno(param_1);
uVar9 = 0x33b;
}
else {
uVar5 = mysql_error(param_1);
uVar3 = mysql_errno(param_1);
uVar9 = 0x327;
}
diag("Error (%d): %s (%d) in %s line %d",iVar2,uVar5,uVar3,
"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/charset.c",uVar9);
return 1;
}
| |
25,178 | delete_head_or_tail | eloqsql/storage/maria/ma_blockrec.c | static my_bool delete_head_or_tail(MARIA_HA *info,
pgcache_page_no_t page, uint record_number,
my_bool head, my_bool from_update)
{
MARIA_SHARE *share= info->s;
uint empty_space;
int res;
my_bool page_is_empty;
uchar *buff;
LSN lsn;
MARIA_PINNED_PAGE page_link;
enum pagecache_page_lock lock_at_write, lock_at_unpin;
DBUG_ENTER("delete_head_or_tail");
DBUG_PRINT("enter", ("id: %lu (%lu:%u)",
(ulong) ma_recordpos(page, record_number),
(ulong) page, record_number));
buff= pagecache_read(share->pagecache,
&info->dfile, page, 0, 0,
share->page_type,
PAGECACHE_LOCK_WRITE, &page_link.link);
page_link.unlock= PAGECACHE_LOCK_WRITE_UNLOCK;
page_link.changed= buff != 0;
push_dynamic(&info->pinned_pages, (void*) &page_link);
if (!buff)
{
_ma_set_fatal_error(info, my_errno);
DBUG_RETURN(1);
}
DBUG_ASSERT((buff[PAGE_TYPE_OFFSET] & PAGE_TYPE_MASK) ==
(head ? HEAD_PAGE : TAIL_PAGE));
if (from_update)
{
lock_at_write= PAGECACHE_LOCK_LEFT_WRITELOCKED;
lock_at_unpin= PAGECACHE_LOCK_WRITE_UNLOCK;
}
else
{
lock_at_write= PAGECACHE_LOCK_WRITE_TO_READ;
lock_at_unpin= PAGECACHE_LOCK_READ_UNLOCK;
}
res= delete_dir_entry(share, buff, record_number, &empty_space);
if (res < 0)
DBUG_RETURN(1);
if (res == 0) /* after our deletion, page is still not empty */
{
uchar log_data[FILEID_STORE_SIZE + PAGE_STORE_SIZE + DIRPOS_STORE_SIZE];
LEX_CUSTRING log_array[TRANSLOG_INTERNAL_PARTS + 1];
page_is_empty= 0;
if (share->now_transactional)
{
/* Log REDO data */
page_store(log_data + FILEID_STORE_SIZE, page);
dirpos_store(log_data + FILEID_STORE_SIZE + PAGE_STORE_SIZE,
record_number);
log_array[TRANSLOG_INTERNAL_PARTS + 0].str= log_data;
log_array[TRANSLOG_INTERNAL_PARTS + 0].length= sizeof(log_data);
if (translog_write_record(&lsn, (head ? LOGREC_REDO_PURGE_ROW_HEAD :
LOGREC_REDO_PURGE_ROW_TAIL),
info->trn, info,
(translog_size_t) sizeof(log_data),
TRANSLOG_INTERNAL_PARTS + 1, log_array,
log_data, NULL))
DBUG_RETURN(1);
}
}
else /* page is now empty */
{
page_is_empty= 1;
if (share->now_transactional)
{
uchar log_data[FILEID_STORE_SIZE + PAGE_STORE_SIZE];
LEX_CUSTRING log_array[TRANSLOG_INTERNAL_PARTS + 1];
page_store(log_data + FILEID_STORE_SIZE, page);
log_array[TRANSLOG_INTERNAL_PARTS + 0].str= log_data;
log_array[TRANSLOG_INTERNAL_PARTS + 0].length= sizeof(log_data);
if (translog_write_record(&lsn, LOGREC_REDO_FREE_HEAD_OR_TAIL,
info->trn, info,
(translog_size_t) sizeof(log_data),
TRANSLOG_INTERNAL_PARTS + 1, log_array,
log_data, NULL))
DBUG_RETURN(1);
}
/*
Mark that this page must be written to disk by page cache, even
if we could call pagecache_delete() on it.
This is needed to ensure that repair finds the empty page on disk
and not old data.
*/
pagecache_set_write_on_delete_by_link(page_link.link);
DBUG_ASSERT(empty_space >= share->bitmap.sizes[0]);
}
pagecache_unlock_by_link(share->pagecache, page_link.link,
lock_at_write,
PAGECACHE_PIN_LEFT_PINNED, LSN_IMPOSSIBLE,
LSN_IMPOSSIBLE, 1, FALSE);
page_link.unlock= lock_at_unpin;
set_dynamic(&info->pinned_pages, (void*) &page_link,
info->pinned_pages.elements-1);
DBUG_PRINT("info", ("empty_space: %u", empty_space));
/*
If there is not enough space for all possible tails, mark the
page full
*/
if (!head && !page_is_empty && !enough_free_entries(buff, share->block_size,
1 + share->base.blobs))
empty_space= 0;
DBUG_RETURN(_ma_bitmap_set(info, page, head, empty_space));
} | O3 | c | delete_head_or_tail:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movl %r8d, -0x3c(%rbp)
movl %ecx, -0x40(%rbp)
movl %edx, %r12d
movq %rsi, %rdx
movq %rdi, %r15
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq (%rdi), %rbx
movq 0x600(%rbx), %rdi
leaq 0x470(%r15), %rsi
movl 0x7d4(%rbx), %r9d
leaq -0x88(%rbp), %r13
movq %rdx, -0x58(%rbp)
xorl %ecx, %ecx
xorl %r8d, %r8d
pushq %r13
pushq $0x4
callq 0x3251e
addq $0x10, %rsp
movq %rax, %r14
movl $0x6, 0x8(%r13)
testq %rax, %rax
setne 0x10(%r13)
leaq 0x2e8(%r15), %rdi
movq %rdi, -0x68(%rbp)
movq %r13, %rsi
callq 0x91aaa
testq %r14, %r14
je 0x5ccb9
movq %r14, %rsi
movq %r15, -0x50(%rbp)
xorl %r13d, %r13d
cmpb $0x0, -0x3c(%rbp)
sete %r13b
movl $0x6, %eax
subl %r13d, %eax
movl %eax, -0x3c(%rbp)
movq %rbx, %r14
movl 0x7bc(%rbx), %edi
leaq -0x44(%rbp), %rcx
movq %rsi, %rbx
movl %r12d, -0x60(%rbp)
movl %r12d, %edx
callq 0x5f90f
movb $0x1, %r15b
testl %eax, %eax
js 0x5ce05
movl %eax, -0x5c(%rbp)
movq %r14, %r12
je 0x5ccd0
cmpb $0x0, 0x7e7(%r14)
je 0x5cca8
leaq -0x38(%rbp), %rax
movq -0x58(%rbp), %rcx
movl %ecx, 0x2(%rax)
shrq $0x20, %rcx
movb %cl, 0x6(%rax)
leaq -0xc0(%rbp), %r10
movq %rax, 0x20(%r10)
movq $0x7, 0x28(%r10)
movq -0x50(%rbp), %rcx
movq 0x8(%rcx), %rdx
subq $0x8, %rsp
leaq -0x70(%rbp), %rdi
movl $0x9, %esi
movl $0x7, %r8d
movl $0x3, %r9d
pushq $0x0
pushq %rax
pushq %r10
callq 0x2a8ac
addq $0x20, %rsp
testb %al, %al
jne 0x5ce05
movq -0x88(%rbp), %rdi
callq 0x33331
jmp 0x5cd40
callq 0xa1a06
movl (%rax), %esi
movq %r15, %rdi
callq 0x36930
movb $0x1, %r15b
jmp 0x5ce05
cmpb $0x0, 0x7e7(%r14)
je 0x5cd40
leaq -0x38(%rbp), %rax
movq -0x58(%rbp), %rcx
movl %ecx, 0x2(%rax)
shrq $0x20, %rcx
movb %cl, 0x6(%rax)
movl -0x60(%rbp), %ecx
movb %cl, 0x7(%rax)
leaq -0xc0(%rbp), %r10
movq %rax, 0x20(%r10)
movq $0x8, 0x28(%r10)
xorl %esi, %esi
cmpb $0x1, -0x40(%rbp)
adcl $0x6, %esi
movq -0x50(%rbp), %rcx
movq 0x8(%rcx), %rdx
subq $0x8, %rsp
leaq -0x70(%rbp), %rdi
movl $0x8, %r8d
movl $0x3, %r9d
pushq $0x0
pushq %rax
pushq %r10
callq 0x2a8ac
addq $0x20, %rsp
testb %al, %al
jne 0x5ce05
leal 0x2(%r13,%r13,4), %edx
movq 0x600(%r12), %rdi
leaq -0x88(%rbp), %r15
movq (%r15), %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq $0x0
pushq $0x1
callq 0x32239
addq $0x10, %rsp
movl -0x3c(%rbp), %eax
movl %eax, 0x8(%r15)
movq -0x50(%rbp), %r13
movl 0x2f0(%r13), %edx
decl %edx
movq -0x68(%rbp), %rdi
movq %r15, %rsi
callq 0x91bbc
movl -0x40(%rbp), %edi
testb %dil, %dil
jne 0x5cdef
cmpl $0x0, -0x5c(%rbp)
jne 0x5cdef
movq %rbx, %r14
movl 0x3f0(%r12), %eax
movzbl 0x8(%rbx), %ecx
addl %ecx, %eax
incl %eax
cmpl $0x100, %eax # imm = 0x100
jb 0x5cdef
movb 0x9(%r14), %cl
cmpb $-0x1, %cl
je 0x5cde8
movl 0x7bc(%r12), %edx
addl $0xffffff01, %eax # imm = 0xFFFFFF01
addq %r14, %rdx
addq $-0x5, %rdx
decl %eax
je 0x5cdef
movzbl %cl, %ecx
shll $0x2, %ecx
movq %rdx, %rsi
subq %rcx, %rsi
movb (%rsi), %cl
cmpb $-0x1, %cl
jne 0x5cdd1
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %ecx
movsbl %dil, %edx
movq %r13, %rdi
movq -0x58(%rbp), %rsi
callq 0x41b8b
movl %eax, %r15d
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x5ce29
movl %r15d, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x29270
| delete_head_or_tail:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 98h
mov [rbp+var_3C], r8d
mov [rbp+var_40], ecx
mov r12d, edx
mov rdx, rsi
mov r15, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov rbx, [rdi]
mov rdi, [rbx+600h]
lea rsi, [r15+470h]
mov r9d, [rbx+7D4h]
lea r13, [rbp+var_88]
mov [rbp+var_58], rdx
xor ecx, ecx
xor r8d, r8d
push r13
push 4
call pagecache_read
add rsp, 10h
mov r14, rax
mov dword ptr [r13+8], 6
test rax, rax
setnz byte ptr [r13+10h]
lea rdi, [r15+2E8h]
mov [rbp+var_68], rdi
mov rsi, r13
call insert_dynamic
test r14, r14
jz loc_5CCB9
mov rsi, r14
mov [rbp+var_50], r15
xor r13d, r13d
cmp byte ptr [rbp+var_3C], 0
setz r13b
mov eax, 6
sub eax, r13d
mov [rbp+var_3C], eax
mov r14, rbx
mov edi, [rbx+7BCh]
lea rcx, [rbp+var_44]
mov rbx, rsi
mov [rbp+var_60], r12d
mov edx, r12d
call delete_dir_entry
mov r15b, 1
test eax, eax
js loc_5CE05
mov [rbp+var_5C], eax
mov r12, r14
jz loc_5CCD0
cmp byte ptr [r14+7E7h], 0
jz short loc_5CCA8
lea rax, [rbp+var_38]
mov rcx, [rbp+var_58]
mov [rax+2], ecx
shr rcx, 20h
mov [rax+6], cl
lea r10, [rbp+var_C0]
mov [r10+20h], rax
mov qword ptr [r10+28h], 7
mov rcx, [rbp+var_50]
mov rdx, [rcx+8]
sub rsp, 8
lea rdi, [rbp+var_70]
mov esi, 9
mov r8d, 7
mov r9d, 3
push 0
push rax
push r10
call translog_write_record
add rsp, 20h
test al, al
jnz loc_5CE05
loc_5CCA8:
mov rdi, [rbp+var_88]
call pagecache_set_write_on_delete_by_link
jmp loc_5CD40
loc_5CCB9:
call _my_thread_var
mov esi, [rax]
mov rdi, r15
call _ma_set_fatal_error
mov r15b, 1
jmp loc_5CE05
loc_5CCD0:
cmp byte ptr [r14+7E7h], 0
jz short loc_5CD40
lea rax, [rbp+var_38]
mov rcx, [rbp+var_58]
mov [rax+2], ecx
shr rcx, 20h
mov [rax+6], cl
mov ecx, [rbp+var_60]
mov [rax+7], cl
lea r10, [rbp+var_C0]
mov [r10+20h], rax
mov qword ptr [r10+28h], 8
xor esi, esi
cmp byte ptr [rbp+var_40], 1
adc esi, 6
mov rcx, [rbp+var_50]
mov rdx, [rcx+8]
sub rsp, 8
lea rdi, [rbp+var_70]
mov r8d, 8
mov r9d, 3
push 0
push rax
push r10
call translog_write_record
add rsp, 20h
test al, al
jnz loc_5CE05
loc_5CD40:
lea edx, [r13+r13*4+2]
mov rdi, [r12+600h]
lea r15, [rbp+var_88]
mov rsi, [r15]
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
push 0
push 1
call pagecache_unlock_by_link
add rsp, 10h
mov eax, [rbp+var_3C]
mov [r15+8], eax
mov r13, [rbp+var_50]
mov edx, [r13+2F0h]
dec edx
mov rdi, [rbp+var_68]
mov rsi, r15
call set_dynamic
mov edi, [rbp+var_40]
test dil, dil
jnz short loc_5CDEF
cmp [rbp+var_5C], 0
jnz short loc_5CDEF
mov r14, rbx
mov eax, [r12+3F0h]
movzx ecx, byte ptr [rbx+8]
add eax, ecx
inc eax
cmp eax, 100h
jb short loc_5CDEF
mov cl, [r14+9]
cmp cl, 0FFh
jz short loc_5CDE8
mov edx, [r12+7BCh]
add eax, 0FFFFFF01h
add rdx, r14
add rdx, 0FFFFFFFFFFFFFFFBh
loc_5CDD1:
dec eax
jz short loc_5CDEF
movzx ecx, cl
shl ecx, 2
mov rsi, rdx
sub rsi, rcx
mov cl, [rsi]
cmp cl, 0FFh
jnz short loc_5CDD1
loc_5CDE8:
mov [rbp+var_44], 0
loc_5CDEF:
mov ecx, [rbp+var_44]
movsx edx, dil
mov rdi, r13
mov rsi, [rbp+var_58]
call _ma_bitmap_set
mov r15d, eax
loc_5CE05:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_5CE29
mov eax, r15d
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_5CE29:
call ___stack_chk_fail
| long long delete_head_or_tail(_DWORD *a1, long long a2, unsigned int a3, int a4, int a5)
{
_DWORD *v6; // r15
long long v7; // rbx
long long v8; // rdi
int v9; // r9d
long long v10; // r14
BOOL v11; // r13d
long long v12; // rdi
int v13; // eax
unsigned int *v14; // rax
long long v15; // rdx
long long v16; // rcx
long long v17; // r8
int v18; // r9d
long long *v19; // r13
unsigned __int8 v20; // cl
int v21; // eax
_OWORD v23[2]; // [rsp+0h] [rbp-C0h] BYREF
__int16 *v24; // [rsp+20h] [rbp-A0h]
long long v25; // [rsp+28h] [rbp-98h]
long long v26; // [rsp+38h] [rbp-88h] BYREF
int v27; // [rsp+40h] [rbp-80h]
bool v28; // [rsp+48h] [rbp-78h]
char v29[8]; // [rsp+50h] [rbp-70h] BYREF
_DWORD *v30; // [rsp+58h] [rbp-68h]
unsigned int v31; // [rsp+60h] [rbp-60h]
int v32; // [rsp+64h] [rbp-5Ch]
unsigned long long v33; // [rsp+68h] [rbp-58h]
long long *v34; // [rsp+70h] [rbp-50h]
unsigned int v35; // [rsp+7Ch] [rbp-44h] BYREF
int v36; // [rsp+80h] [rbp-40h]
int v37; // [rsp+84h] [rbp-3Ch]
__int16 v38; // [rsp+88h] [rbp-38h] BYREF
int v39; // [rsp+8Ah] [rbp-36h]
char v40; // [rsp+8Eh] [rbp-32h]
char v41; // [rsp+8Fh] [rbp-31h]
unsigned long long v42; // [rsp+90h] [rbp-30h]
v37 = a5;
v36 = a4;
v6 = a1;
v42 = __readfsqword(0x28u);
v7 = *(_QWORD *)a1;
v8 = *(_QWORD *)(*(_QWORD *)a1 + 1536LL);
v9 = *(_DWORD *)(v7 + 2004);
v33 = a2;
v10 = pagecache_read(v8, (long long)(v6 + 284), a2, 0, 0LL, v9, 4u, &v26);
v27 = 6;
v28 = v10 != 0;
v30 = v6 + 186;
insert_dynamic(v6 + 186, &v26);
if ( !v10 )
{
v14 = (unsigned int *)my_thread_var(v6 + 186, (const char *)&v26);
ma_set_fatal_error(v6, *v14, v15, v16, v17, v18);
LOBYTE(v6) = 1;
return (unsigned int)v6;
}
v34 = (long long *)v6;
v11 = (_BYTE)v37 == 0;
v37 = 6 - v11;
v12 = *(unsigned int *)(v7 + 1980);
v31 = a3;
v13 = delete_dir_entry(v12, v10, a3, &v35);
LOBYTE(v6) = 1;
if ( v13 >= 0 )
{
v32 = v13;
if ( v13 )
{
if ( *(_BYTE *)(v7 + 2023) )
{
v39 = v33;
v40 = BYTE4(v33);
v24 = &v38;
v25 = 7LL;
if ( (unsigned __int8)translog_write_record((unsigned long long)v29, byte_9, v34[1], v34, 7u, 3, v23, &v38, 0LL) )
return (unsigned int)v6;
}
pagecache_set_write_on_delete_by_link(v26);
}
else if ( *(_BYTE *)(v7 + 2023) )
{
v39 = v33;
v40 = BYTE4(v33);
v41 = v31;
v24 = &v38;
v25 = 8LL;
if ( (unsigned __int8)translog_write_record(
(unsigned long long)v29,
(_WORD *)((unsigned int)((_BYTE)v36 == 0) + 6),
v34[1],
v34,
8u,
3,
v23,
&v38,
0LL) )
return (unsigned int)v6;
}
pagecache_unlock_by_link(*(_QWORD *)(v7 + 1536), v26, 5 * v11 + 2, 0, 0LL, 0LL, 1);
v27 = v37;
v19 = v34;
set_dynamic(v30, &v26, (unsigned int)(*((_DWORD *)v34 + 188) - 1));
if ( !(_BYTE)v36 && !v32 && (unsigned int)*(unsigned __int8 *)(v10 + 8) + *(_DWORD *)(v7 + 1008) + 1 >= 0x100 )
{
v20 = *(_BYTE *)(v10 + 9);
if ( v20 == 0xFF )
{
LABEL_17:
v35 = 0;
}
else
{
v21 = *(unsigned __int8 *)(v10 + 8) + *(_DWORD *)(v7 + 1008) - 254;
while ( --v21 )
{
v20 = *(_BYTE *)(v10 + *(unsigned int *)(v7 + 1980) - 5 - 4 * (unsigned int)v20);
if ( v20 == 0xFF )
goto LABEL_17;
}
}
}
LODWORD(v6) = ma_bitmap_set(v19, v33, v36, v35);
}
return (unsigned int)v6;
}
| delete_head_or_tail:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x98
MOV dword ptr [RBP + -0x3c],R8D
MOV dword ptr [RBP + -0x40],ECX
MOV R12D,EDX
MOV RDX,RSI
MOV R15,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV RBX,qword ptr [RDI]
MOV RDI,qword ptr [RBX + 0x600]
LEA RSI,[R15 + 0x470]
MOV R9D,dword ptr [RBX + 0x7d4]
LEA R13,[RBP + -0x88]
MOV qword ptr [RBP + -0x58],RDX
XOR ECX,ECX
XOR R8D,R8D
PUSH R13
PUSH 0x4
CALL 0x0013251e
ADD RSP,0x10
MOV R14,RAX
MOV dword ptr [R13 + 0x8],0x6
TEST RAX,RAX
SETNZ byte ptr [R13 + 0x10]
LEA RDI,[R15 + 0x2e8]
MOV qword ptr [RBP + -0x68],RDI
MOV RSI,R13
CALL 0x00191aaa
TEST R14,R14
JZ 0x0015ccb9
MOV RSI,R14
MOV qword ptr [RBP + -0x50],R15
XOR R13D,R13D
CMP byte ptr [RBP + -0x3c],0x0
SETZ R13B
MOV EAX,0x6
SUB EAX,R13D
MOV dword ptr [RBP + -0x3c],EAX
MOV R14,RBX
MOV EDI,dword ptr [RBX + 0x7bc]
LEA RCX,[RBP + -0x44]
MOV RBX,RSI
MOV dword ptr [RBP + -0x60],R12D
MOV EDX,R12D
CALL 0x0015f90f
MOV R15B,0x1
TEST EAX,EAX
JS 0x0015ce05
MOV dword ptr [RBP + -0x5c],EAX
MOV R12,R14
JZ 0x0015ccd0
CMP byte ptr [R14 + 0x7e7],0x0
JZ 0x0015cca8
LEA RAX,[RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x58]
MOV dword ptr [RAX + 0x2],ECX
SHR RCX,0x20
MOV byte ptr [RAX + 0x6],CL
LEA R10,[RBP + -0xc0]
MOV qword ptr [R10 + 0x20],RAX
MOV qword ptr [R10 + 0x28],0x7
MOV RCX,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RCX + 0x8]
SUB RSP,0x8
LEA RDI,[RBP + -0x70]
MOV ESI,0x9
MOV R8D,0x7
MOV R9D,0x3
PUSH 0x0
PUSH RAX
PUSH R10
CALL 0x0012a8ac
ADD RSP,0x20
TEST AL,AL
JNZ 0x0015ce05
LAB_0015cca8:
MOV RDI,qword ptr [RBP + -0x88]
CALL 0x00133331
JMP 0x0015cd40
LAB_0015ccb9:
CALL 0x001a1a06
MOV ESI,dword ptr [RAX]
MOV RDI,R15
CALL 0x00136930
MOV R15B,0x1
JMP 0x0015ce05
LAB_0015ccd0:
CMP byte ptr [R14 + 0x7e7],0x0
JZ 0x0015cd40
LEA RAX,[RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x58]
MOV dword ptr [RAX + 0x2],ECX
SHR RCX,0x20
MOV byte ptr [RAX + 0x6],CL
MOV ECX,dword ptr [RBP + -0x60]
MOV byte ptr [RAX + 0x7],CL
LEA R10,[RBP + -0xc0]
MOV qword ptr [R10 + 0x20],RAX
MOV qword ptr [R10 + 0x28],0x8
XOR ESI,ESI
CMP byte ptr [RBP + -0x40],0x1
ADC ESI,0x6
MOV RCX,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RCX + 0x8]
SUB RSP,0x8
LEA RDI,[RBP + -0x70]
MOV R8D,0x8
MOV R9D,0x3
PUSH 0x0
PUSH RAX
PUSH R10
CALL 0x0012a8ac
ADD RSP,0x20
TEST AL,AL
JNZ 0x0015ce05
LAB_0015cd40:
LEA EDX,[R13 + R13*0x4 + 0x2]
MOV RDI,qword ptr [R12 + 0x600]
LEA R15,[RBP + -0x88]
MOV RSI,qword ptr [R15]
XOR ECX,ECX
XOR R8D,R8D
XOR R9D,R9D
PUSH 0x0
PUSH 0x1
CALL 0x00132239
ADD RSP,0x10
MOV EAX,dword ptr [RBP + -0x3c]
MOV dword ptr [R15 + 0x8],EAX
MOV R13,qword ptr [RBP + -0x50]
MOV EDX,dword ptr [R13 + 0x2f0]
DEC EDX
MOV RDI,qword ptr [RBP + -0x68]
MOV RSI,R15
CALL 0x00191bbc
MOV EDI,dword ptr [RBP + -0x40]
TEST DIL,DIL
JNZ 0x0015cdef
CMP dword ptr [RBP + -0x5c],0x0
JNZ 0x0015cdef
MOV R14,RBX
MOV EAX,dword ptr [R12 + 0x3f0]
MOVZX ECX,byte ptr [RBX + 0x8]
ADD EAX,ECX
INC EAX
CMP EAX,0x100
JC 0x0015cdef
MOV CL,byte ptr [R14 + 0x9]
CMP CL,0xff
JZ 0x0015cde8
MOV EDX,dword ptr [R12 + 0x7bc]
ADD EAX,0xffffff01
ADD RDX,R14
ADD RDX,-0x5
LAB_0015cdd1:
DEC EAX
JZ 0x0015cdef
MOVZX ECX,CL
SHL ECX,0x2
MOV RSI,RDX
SUB RSI,RCX
MOV CL,byte ptr [RSI]
CMP CL,0xff
JNZ 0x0015cdd1
LAB_0015cde8:
MOV dword ptr [RBP + -0x44],0x0
LAB_0015cdef:
MOV ECX,dword ptr [RBP + -0x44]
MOVSX EDX,DIL
MOV RDI,R13
MOV RSI,qword ptr [RBP + -0x58]
CALL 0x00141b8b
MOV R15D,EAX
LAB_0015ce05:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x0015ce29
MOV EAX,R15D
ADD RSP,0x98
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0015ce29:
CALL 0x00129270
|
ulong delete_head_or_tail(long *param_1,int8 param_2,int4 param_3,int4 param_4,
int param_5)
{
long lVar1;
long *plVar2;
char cVar3;
int iVar4;
uint uVar5;
long lVar6;
int4 *puVar7;
int1 uVar8;
byte bVar9;
int7 uVar11;
ulong uVar10;
long in_FS_OFFSET;
bool bVar12;
int1 local_c8 [32];
int1 *local_a8;
int8 local_a0;
int8 local_90;
int local_88;
int1 local_80;
int1 local_78 [8];
long *local_70;
int4 local_68;
int local_64;
int8 local_60;
long *local_58;
int4 local_4c;
int4 local_48;
int local_44;
int1 local_40 [2];
int4 local_3e;
int1 local_3a;
int1 local_39;
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
lVar1 = *param_1;
local_60 = param_2;
local_48 = param_4;
local_44 = param_5;
lVar6 = pagecache_read(*(int8 *)(lVar1 + 0x600),param_1 + 0x8e,param_2,0,0,
*(int4 *)(lVar1 + 0x7d4),4,&local_90);
local_88 = 6;
local_80 = lVar6 != 0;
local_70 = param_1 + 0x5d;
insert_dynamic(local_70,&local_90);
uVar11 = (int7)((ulong)param_1 >> 8);
if (lVar6 == 0) {
puVar7 = (int4 *)_my_thread_var();
_ma_set_fatal_error(param_1,*puVar7);
uVar10 = CONCAT71(uVar11,1);
}
else {
bVar12 = (char)local_44 == '\0';
local_44 = 6 - (uint)bVar12;
local_68 = param_3;
local_58 = param_1;
iVar4 = delete_dir_entry(*(int4 *)(lVar1 + 0x7bc),lVar6,param_3,&local_4c);
uVar10 = CONCAT71(uVar11,1);
if (-1 < iVar4) {
uVar8 = (int1)((ulong)local_60 >> 0x20);
local_64 = iVar4;
if (iVar4 == 0) {
if (*(char *)(lVar1 + 0x7e7) != '\0') {
local_a8 = local_40;
local_39 = (int1)local_68;
local_a0 = 8;
local_3e = (int)local_60;
local_3a = uVar8;
cVar3 = translog_write_record
(local_78,((char)local_48 == '\0') + '\x06',local_58[1],local_58,8,3,
local_c8,local_a8,0);
if (cVar3 != '\0') goto LAB_0015ce05;
}
}
else {
if (*(char *)(lVar1 + 0x7e7) != '\0') {
local_a8 = local_40;
local_a0 = 7;
local_3e = (int)local_60;
local_3a = uVar8;
cVar3 = translog_write_record(local_78,9,local_58[1],local_58,7,3,local_c8,local_a8,0);
if (cVar3 != '\0') goto LAB_0015ce05;
}
pagecache_set_write_on_delete_by_link(local_90);
}
pagecache_unlock_by_link
(*(int8 *)(lVar1 + 0x600),local_90,bVar12 * '\x05' + '\x02',0,0,0,1,0);
plVar2 = local_58;
local_88 = local_44;
set_dynamic(local_70,&local_90,(int)local_58[0x5e] + -1);
if ((((char)local_48 == '\0') && (local_64 == 0)) &&
(iVar4 = *(int *)(lVar1 + 0x3f0) + (uint)*(byte *)(lVar6 + 8), 0xff < iVar4 + 1U)) {
bVar9 = *(byte *)(lVar6 + 9);
if (bVar9 != 0xff) {
iVar4 = iVar4 + -0xfe;
do {
iVar4 = iVar4 + -1;
if (iVar4 == 0) goto LAB_0015cdef;
bVar9 = *(byte *)((ulong)*(uint *)(lVar1 + 0x7bc) + lVar6 + -5 + (ulong)bVar9 * -4);
} while (bVar9 != 0xff);
}
local_4c = 0;
}
LAB_0015cdef:
uVar5 = _ma_bitmap_set(plVar2,local_60,(int)(char)local_48,local_4c);
uVar10 = (ulong)uVar5;
}
}
LAB_0015ce05:
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return uVar10 & 0xffffffff;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
25,179 | find_longest_bitstream | eloqsql/storage/maria/ma_packrec.c | static uint find_longest_bitstream(uint16 *table, uint16 *end)
{
uint length=1;
uint length2;
if (!(*table & IS_CHAR))
{
uint16 *next= table + *table;
if (next > end || next == table)
{
DBUG_PRINT("error", ("ERROR: illegal pointer in decode tree"));
return OFFSET_TABLE_SIZE;
}
length=find_longest_bitstream(next, end)+1;
}
table++;
if (!(*table & IS_CHAR))
{
uint16 *next= table + *table;
if (next > end || next == table)
{
DBUG_PRINT("error", ("ERROR: illegal pointer in decode tree"));
return OFFSET_TABLE_SIZE;
}
length2= find_longest_bitstream(next, end) + 1;
length=MY_MAX(length,length2);
}
return length;
} | O0 | c | find_longest_bitstream:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl $0x1, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movzwl (%rax), %eax
andl $0x8000, %eax # imm = 0x8000
cmpl $0x0, %eax
jne 0x48f87
movq -0x10(%rbp), %rax
movq -0x10(%rbp), %rcx
movzwl (%rcx), %ecx
movslq %ecx, %rcx
shlq %rcx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x18(%rbp), %rax
ja 0x48f64
movq -0x28(%rbp), %rax
cmpq -0x10(%rbp), %rax
jne 0x48f74
jmp 0x48f66
jmp 0x48f68
movl $0x200, -0x4(%rbp) # imm = 0x200
jmp 0x49012
movq -0x28(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x48f10
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
movq -0x10(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movzwl (%rax), %eax
andl $0x8000, %eax # imm = 0x8000
cmpl $0x0, %eax
jne 0x4900c
movq -0x10(%rbp), %rax
movq -0x10(%rbp), %rcx
movzwl (%rcx), %ecx
movslq %ecx, %rcx
shlq %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x18(%rbp), %rax
ja 0x48fd0
movq -0x30(%rbp), %rax
cmpq -0x10(%rbp), %rax
jne 0x48fdd
jmp 0x48fd2
jmp 0x48fd4
movl $0x200, -0x4(%rbp) # imm = 0x200
jmp 0x49012
movq -0x30(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x48f10
addl $0x1, %eax
movl %eax, -0x20(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0x20(%rbp), %eax
jbe 0x49000
movl -0x1c(%rbp), %eax
movl %eax, -0x34(%rbp)
jmp 0x49006
movl -0x20(%rbp), %eax
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| find_longest_bitstream:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], 1
mov rax, [rbp+var_10]
movzx eax, word ptr [rax]
and eax, 8000h
cmp eax, 0
jnz short loc_48F87
mov rax, [rbp+var_10]
mov rcx, [rbp+var_10]
movzx ecx, word ptr [rcx]
movsxd rcx, ecx
shl rcx, 1
add rax, rcx
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
cmp rax, [rbp+var_18]
ja short loc_48F64
mov rax, [rbp+var_28]
cmp rax, [rbp+var_10]
jnz short loc_48F74
loc_48F64:
jmp short $+2
loc_48F66:
jmp short $+2
loc_48F68:
mov [rbp+var_4], 200h
jmp loc_49012
loc_48F74:
mov rdi, [rbp+var_28]
mov rsi, [rbp+var_18]
call find_longest_bitstream
add eax, 1
mov [rbp+var_1C], eax
loc_48F87:
mov rax, [rbp+var_10]
add rax, 2
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
movzx eax, word ptr [rax]
and eax, 8000h
cmp eax, 0
jnz short loc_4900C
mov rax, [rbp+var_10]
mov rcx, [rbp+var_10]
movzx ecx, word ptr [rcx]
movsxd rcx, ecx
shl rcx, 1
add rax, rcx
mov [rbp+var_30], rax
mov rax, [rbp+var_30]
cmp rax, [rbp+var_18]
ja short loc_48FD0
mov rax, [rbp+var_30]
cmp rax, [rbp+var_10]
jnz short loc_48FDD
loc_48FD0:
jmp short $+2
loc_48FD2:
jmp short $+2
loc_48FD4:
mov [rbp+var_4], 200h
jmp short loc_49012
loc_48FDD:
mov rdi, [rbp+var_30]
mov rsi, [rbp+var_18]
call find_longest_bitstream
add eax, 1
mov [rbp+var_20], eax
mov eax, [rbp+var_1C]
cmp eax, [rbp+var_20]
jbe short loc_49000
mov eax, [rbp+var_1C]
mov [rbp+var_34], eax
jmp short loc_49006
loc_49000:
mov eax, [rbp+var_20]
mov [rbp+var_34], eax
loc_49006:
mov eax, [rbp+var_34]
mov [rbp+var_1C], eax
loc_4900C:
mov eax, [rbp+var_1C]
mov [rbp+var_4], eax
loc_49012:
mov eax, [rbp+var_4]
add rsp, 40h
pop rbp
retn
| long long find_longest_bitstream(unsigned __int16 *a1, unsigned long long a2)
{
unsigned __int16 *v4; // [rsp+10h] [rbp-30h]
unsigned __int16 *v5; // [rsp+18h] [rbp-28h]
unsigned int v6; // [rsp+20h] [rbp-20h]
unsigned int v7; // [rsp+24h] [rbp-1Ch]
unsigned __int16 *v8; // [rsp+30h] [rbp-10h]
v7 = 1;
if ( (*a1 & 0x8000) != 0 )
{
LABEL_6:
v8 = a1 + 1;
if ( (a1[1] & 0x8000) == 0 )
{
v4 = &v8[*v8];
if ( (unsigned long long)v4 > a2 || v4 == v8 )
return 512;
v6 = find_longest_bitstream(v4, a2) + 1;
if ( v7 <= v6 )
return v6;
else
return v7;
}
return v7;
}
v5 = &a1[*a1];
if ( (unsigned long long)v5 <= a2 && v5 != a1 )
{
v7 = find_longest_bitstream(v5, a2) + 1;
goto LABEL_6;
}
return 512;
}
| find_longest_bitstream:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],0x1
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,word ptr [RAX]
AND EAX,0x8000
CMP EAX,0x0
JNZ 0x00148f87
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x10]
MOVZX ECX,word ptr [RCX]
MOVSXD RCX,ECX
SHL RCX,0x1
ADD RAX,RCX
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x18]
JA 0x00148f64
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x10]
JNZ 0x00148f74
LAB_00148f64:
JMP 0x00148f66
LAB_00148f66:
JMP 0x00148f68
LAB_00148f68:
MOV dword ptr [RBP + -0x4],0x200
JMP 0x00149012
LAB_00148f74:
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x00148f10
ADD EAX,0x1
MOV dword ptr [RBP + -0x1c],EAX
LAB_00148f87:
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x2
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,word ptr [RAX]
AND EAX,0x8000
CMP EAX,0x0
JNZ 0x0014900c
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x10]
MOVZX ECX,word ptr [RCX]
MOVSXD RCX,ECX
SHL RCX,0x1
ADD RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x18]
JA 0x00148fd0
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x10]
JNZ 0x00148fdd
LAB_00148fd0:
JMP 0x00148fd2
LAB_00148fd2:
JMP 0x00148fd4
LAB_00148fd4:
MOV dword ptr [RBP + -0x4],0x200
JMP 0x00149012
LAB_00148fdd:
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x00148f10
ADD EAX,0x1
MOV dword ptr [RBP + -0x20],EAX
MOV EAX,dword ptr [RBP + -0x1c]
CMP EAX,dword ptr [RBP + -0x20]
JBE 0x00149000
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x34],EAX
JMP 0x00149006
LAB_00149000:
MOV EAX,dword ptr [RBP + -0x20]
MOV dword ptr [RBP + -0x34],EAX
LAB_00149006:
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x1c],EAX
LAB_0014900c:
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x4],EAX
LAB_00149012:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x40
POP RBP
RET
|
uint find_longest_bitstream(ushort *param_1,ushort *param_2)
{
int iVar1;
ushort *puVar2;
uint local_3c;
uint local_24;
local_24 = 1;
if ((*param_1 & 0x8000) == 0) {
puVar2 = param_1 + (int)(uint)*param_1;
if ((param_2 < puVar2) || (puVar2 == param_1)) {
return 0x200;
}
iVar1 = find_longest_bitstream(puVar2,param_2);
local_24 = iVar1 + 1;
}
param_1 = param_1 + 1;
if ((*param_1 & 0x8000) == 0) {
puVar2 = param_1 + (int)(uint)*param_1;
if ((param_2 < puVar2) || (puVar2 == param_1)) {
return 0x200;
}
iVar1 = find_longest_bitstream(puVar2,param_2);
local_3c = iVar1 + 1;
if (local_3c < local_24) {
local_3c = local_24;
}
local_24 = local_3c;
}
return local_24;
}
| |
25,180 | maria_rtree_get_next | eloqsql/storage/maria/ma_rt_index.c | int maria_rtree_get_next(MARIA_HA *info, uint keynr, uint key_length)
{
my_off_t root;
MARIA_KEYDEF *keyinfo= info->s->keyinfo + keynr;
uchar *keyread_buff= info->keyread_buff;
if (!info->keyread_buff_used)
{
uint key_data_length= keyinfo->keylength - info->s->base.rec_reflength;
/* rt_PAGE_NEXT_KEY(*info->last_rtree_keypos) */
uchar *key= keyread_buff + *info->last_rtree_keypos + keyinfo->keylength;
/* rt_PAGE_NEXT_KEY(key) */
uchar *after_key= key + keyinfo->keylength;
MARIA_KEY tmp_key;
tmp_key.keyinfo= keyinfo;
tmp_key.data= key;
tmp_key.data_length= key_data_length;
tmp_key.ref_length= info->s->base.rec_reflength;
tmp_key.flag= 0;
info->cur_row.lastpos= _ma_row_pos_from_key(&tmp_key);
_ma_copy_key(&info->last_key, &tmp_key);
*info->last_rtree_keypos= (uint) (key - keyread_buff);
if (after_key >= info->int_maxpos)
{
info->keyread_buff_used= 1;
}
return 0;
}
else
{
if ((root= info->s->state.key_root[keynr]) == HA_OFFSET_ERROR)
{
my_errno= HA_ERR_END_OF_FILE;
return -1;
}
return maria_rtree_get_req(info, &keyinfo[keynr], key_length, root, 0);
}
} | O0 | c | maria_rtree_get_next:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x570(%rax), %rax
movl -0x14(%rbp), %ecx
imulq $0x118, %rcx, %rcx # imm = 0x118
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x380(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
cmpb $0x0, 0x685(%rax)
jne 0x94fd5
movq -0x28(%rbp), %rax
movzwl 0xaa(%rax), %eax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
subl 0x3e0(%rcx), %eax
movl %eax, -0x34(%rbp)
movq -0x30(%rbp), %rax
movq -0x10(%rbp), %rcx
movq 0x638(%rcx), %rcx
movl (%rcx), %ecx
addq %rcx, %rax
movq -0x28(%rbp), %rcx
movzwl 0xaa(%rcx), %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq -0x28(%rbp), %rcx
movzwl 0xaa(%rcx), %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x68(%rbp)
movl -0x34(%rbp), %eax
movl %eax, -0x58(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0x3e0(%rax), %eax
movl %eax, -0x54(%rbp)
movl $0x0, -0x50(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x40b90
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x98(%rax)
movq -0x10(%rbp), %rdi
addq $0x200, %rdi # imm = 0x200
leaq -0x68(%rbp), %rsi
callq 0x49650
movq -0x40(%rbp), %rax
movq -0x30(%rbp), %rcx
subq %rcx, %rax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movq 0x638(%rax), %rax
movl %ecx, (%rax)
movq -0x48(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x3b8(%rcx), %rax
jb 0x94fcc
movq -0x10(%rbp), %rax
movb $0x1, 0x685(%rax)
movl $0x0, -0x4(%rbp)
jmp 0x9502f
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x118(%rax), %rax
movl -0x14(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, -0x20(%rbp)
cmpq $-0x1, %rax
jne 0x95008
callq 0x1295d0
movl $0x89, (%rax)
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x9502f
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
movl -0x14(%rbp), %eax
imulq $0x118, %rax, %rax # imm = 0x118
addq %rax, %rsi
movl -0x18(%rbp), %edx
movq -0x20(%rbp), %rcx
xorl %r8d, %r8d
callq 0x94960
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| maria_rtree_get_next:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+570h]
mov ecx, [rbp+var_14]
imul rcx, 118h
add rax, rcx
mov [rbp+var_28], rax
mov rax, [rbp+var_10]
mov rax, [rax+380h]
mov [rbp+var_30], rax
mov rax, [rbp+var_10]
cmp byte ptr [rax+685h], 0
jnz loc_94FD5
mov rax, [rbp+var_28]
movzx eax, word ptr [rax+0AAh]
mov rcx, [rbp+var_10]
mov rcx, [rcx]
sub eax, [rcx+3E0h]
mov [rbp+var_34], eax
mov rax, [rbp+var_30]
mov rcx, [rbp+var_10]
mov rcx, [rcx+638h]
mov ecx, [rcx]
add rax, rcx
mov rcx, [rbp+var_28]
movzx ecx, word ptr [rcx+0AAh]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_40], rax
mov rax, [rbp+var_40]
mov rcx, [rbp+var_28]
movzx ecx, word ptr [rcx+0AAh]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_48], rax
mov rax, [rbp+var_28]
mov [rbp+var_60], rax
mov rax, [rbp+var_40]
mov [rbp+var_68], rax
mov eax, [rbp+var_34]
mov [rbp+var_58], eax
mov rax, [rbp+var_10]
mov rax, [rax]
mov eax, [rax+3E0h]
mov [rbp+var_54], eax
mov [rbp+var_50], 0
lea rdi, [rbp+var_68]
call _ma_row_pos_from_key
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+98h], rcx
mov rdi, [rbp+var_10]
add rdi, 200h
lea rsi, [rbp+var_68]
call _ma_copy_key
mov rax, [rbp+var_40]
mov rcx, [rbp+var_30]
sub rax, rcx
mov ecx, eax
mov rax, [rbp+var_10]
mov rax, [rax+638h]
mov [rax], ecx
mov rax, [rbp+var_48]
mov rcx, [rbp+var_10]
cmp rax, [rcx+3B8h]
jb short loc_94FCC
mov rax, [rbp+var_10]
mov byte ptr [rax+685h], 1
loc_94FCC:
mov [rbp+var_4], 0
jmp short loc_9502F
loc_94FD5:
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+118h]
mov ecx, [rbp+var_14]
mov rax, [rax+rcx*8]
mov [rbp+var_20], rax
cmp rax, 0FFFFFFFFFFFFFFFFh
jnz short loc_95008
call _my_thread_var
mov dword ptr [rax], 89h
mov [rbp+var_4], 0FFFFFFFFh
jmp short loc_9502F
loc_95008:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_28]
mov eax, [rbp+var_14]
imul rax, 118h
add rsi, rax
mov edx, [rbp+var_18]
mov rcx, [rbp+var_20]
xor r8d, r8d
call maria_rtree_get_req
mov [rbp+var_4], eax
loc_9502F:
mov eax, [rbp+var_4]
add rsp, 70h
pop rbp
retn
| long long maria_rtree_get_next(long long a1, const char *a2, unsigned int a3)
{
long long v3; // rax
_QWORD v5[2]; // [rsp+8h] [rbp-68h] BYREF
int v6; // [rsp+18h] [rbp-58h]
int v7; // [rsp+1Ch] [rbp-54h]
int v8; // [rsp+20h] [rbp-50h]
unsigned long long v9; // [rsp+28h] [rbp-48h]
long long v10; // [rsp+30h] [rbp-40h]
int v11; // [rsp+3Ch] [rbp-34h]
long long v12; // [rsp+40h] [rbp-30h]
long long v13; // [rsp+48h] [rbp-28h]
unsigned long long v14; // [rsp+50h] [rbp-20h]
unsigned int v15; // [rsp+58h] [rbp-18h]
unsigned int v16; // [rsp+5Ch] [rbp-14h]
long long v17; // [rsp+60h] [rbp-10h]
v17 = a1;
v16 = (unsigned int)a2;
v15 = a3;
v13 = 280LL * (unsigned int)a2 + *(_QWORD *)(*(_QWORD *)a1 + 1392LL);
v12 = *(_QWORD *)(a1 + 896);
if ( *(_BYTE *)(a1 + 1669) )
{
v14 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)v17 + 280LL) + 8LL * v16);
if ( v14 == -1LL )
{
*(_DWORD *)my_thread_var(a1, a2) = 137;
return (unsigned int)-1;
}
else
{
return (unsigned int)maria_rtree_get_req(v17, 280LL * v16 + v13, v15, v14, 0);
}
}
else
{
v11 = *(unsigned __int16 *)(v13 + 170) - *(_DWORD *)(*(_QWORD *)v17 + 992LL);
v10 = *(unsigned __int16 *)(v13 + 170) + **(unsigned int **)(v17 + 1592) + v12;
v9 = *(unsigned __int16 *)(v13 + 170) + v10;
v5[1] = v13;
v5[0] = v10;
v6 = v11;
v7 = *(_DWORD *)(*(_QWORD *)v17 + 992LL);
v8 = 0;
v3 = ma_row_pos_from_key((long long)v5);
*(_QWORD *)(v17 + 152) = v3;
ma_copy_key(v17 + 512, (long long)v5);
**(_DWORD **)(v17 + 1592) = v10 - v12;
if ( v9 >= *(_QWORD *)(v17 + 952) )
*(_BYTE *)(v17 + 1669) = 1;
return 0;
}
}
| maria_rtree_get_next:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x570]
MOV ECX,dword ptr [RBP + -0x14]
IMUL RCX,RCX,0x118
ADD RAX,RCX
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x380]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX + 0x685],0x0
JNZ 0x00194fd5
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,word ptr [RAX + 0xaa]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX]
SUB EAX,dword ptr [RCX + 0x3e0]
MOV dword ptr [RBP + -0x34],EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x638]
MOV ECX,dword ptr [RCX]
ADD RAX,RCX
MOV RCX,qword ptr [RBP + -0x28]
MOVZX ECX,word ptr [RCX + 0xaa]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x28]
MOVZX ECX,word ptr [RCX + 0xaa]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x68],RAX
MOV EAX,dword ptr [RBP + -0x34]
MOV dword ptr [RBP + -0x58],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX + 0x3e0]
MOV dword ptr [RBP + -0x54],EAX
MOV dword ptr [RBP + -0x50],0x0
LEA RDI,[RBP + -0x68]
CALL 0x00140b90
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x98],RCX
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x200
LEA RSI,[RBP + -0x68]
CALL 0x00149650
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x30]
SUB RAX,RCX
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x638]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x3b8]
JC 0x00194fcc
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x685],0x1
LAB_00194fcc:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0019502f
LAB_00194fd5:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x118]
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,-0x1
JNZ 0x00195008
CALL 0x002295d0
MOV dword ptr [RAX],0x89
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x0019502f
LAB_00195008:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x28]
MOV EAX,dword ptr [RBP + -0x14]
IMUL RAX,RAX,0x118
ADD RSI,RAX
MOV EDX,dword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
XOR R8D,R8D
CALL 0x00194960
MOV dword ptr [RBP + -0x4],EAX
LAB_0019502f:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x70
POP RBP
RET
|
int4 maria_rtree_get_next(long *param_1,uint param_2,int4 param_3)
{
long lVar1;
int4 *puVar2;
long local_70;
long local_68;
int local_60;
int4 local_5c;
int4 local_58;
ulong local_50;
long local_48;
int local_3c;
long local_38;
long local_30;
long local_28;
int4 local_20;
uint local_1c;
long *local_18;
int4 local_c;
local_68 = *(long *)(*param_1 + 0x570) + (ulong)param_2 * 0x118;
local_38 = param_1[0x70];
local_30 = local_68;
local_20 = param_3;
local_1c = param_2;
local_18 = param_1;
if (*(char *)((long)param_1 + 0x685) == '\0') {
local_60 = (uint)*(ushort *)(local_68 + 0xaa) - *(int *)(*param_1 + 0x3e0);
local_70 = local_38 + (ulong)*(uint *)param_1[199] +
(long)(int)(uint)*(ushort *)(local_68 + 0xaa);
local_50 = local_70 + (int)(uint)*(ushort *)(local_68 + 0xaa);
local_5c = *(int4 *)(*param_1 + 0x3e0);
local_58 = 0;
local_48 = local_70;
local_3c = local_60;
lVar1 = _ma_row_pos_from_key(&local_70);
local_18[0x13] = lVar1;
_ma_copy_key(local_18 + 0x40,&local_70);
*(int *)local_18[199] = (int)local_48 - (int)local_38;
if ((ulong)local_18[0x77] <= local_50) {
*(int1 *)((long)local_18 + 0x685) = 1;
}
local_c = 0;
}
else {
local_28 = *(long *)(*(long *)(*param_1 + 0x118) + (ulong)param_2 * 8);
if (local_28 == -1) {
puVar2 = (int4 *)_my_thread_var();
*puVar2 = 0x89;
local_c = 0xffffffff;
}
else {
local_c = maria_rtree_get_req(param_1,local_68 + (ulong)param_2 * 0x118,param_3,local_28,0);
}
}
return local_c;
}
| |
25,181 | maria_rtree_get_next | eloqsql/storage/maria/ma_rt_index.c | int maria_rtree_get_next(MARIA_HA *info, uint keynr, uint key_length)
{
my_off_t root;
MARIA_KEYDEF *keyinfo= info->s->keyinfo + keynr;
uchar *keyread_buff= info->keyread_buff;
if (!info->keyread_buff_used)
{
uint key_data_length= keyinfo->keylength - info->s->base.rec_reflength;
/* rt_PAGE_NEXT_KEY(*info->last_rtree_keypos) */
uchar *key= keyread_buff + *info->last_rtree_keypos + keyinfo->keylength;
/* rt_PAGE_NEXT_KEY(key) */
uchar *after_key= key + keyinfo->keylength;
MARIA_KEY tmp_key;
tmp_key.keyinfo= keyinfo;
tmp_key.data= key;
tmp_key.data_length= key_data_length;
tmp_key.ref_length= info->s->base.rec_reflength;
tmp_key.flag= 0;
info->cur_row.lastpos= _ma_row_pos_from_key(&tmp_key);
_ma_copy_key(&info->last_key, &tmp_key);
*info->last_rtree_keypos= (uint) (key - keyread_buff);
if (after_key >= info->int_maxpos)
{
info->keyread_buff_used= 1;
}
return 0;
}
else
{
if ((root= info->s->state.key_root[keynr]) == HA_OFFSET_ERROR)
{
my_errno= HA_ERR_END_OF_FILE;
return -1;
}
return maria_rtree_get_req(info, &keyinfo[keynr], key_length, root, 0);
}
} | O3 | c | maria_rtree_get_next:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq (%rdi), %rax
movl %esi, %edx
imulq $0x118, %rdx, %rcx # imm = 0x118
movq 0x570(%rax), %rsi
addq %rcx, %rsi
cmpb $0x0, 0x685(%rdi)
je 0x74318
movq 0x118(%rax), %rax
movq (%rax,%rdx,8), %rdx
cmpq $-0x1, %rdx
je 0x7439f
addq %rcx, %rsi
movq %rbx, %rdi
xorl %ecx, %ecx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x73f81
movq 0x380(%rbx), %r12
movzwl 0xaa(%rsi), %r15d
movl 0x3e0(%rax), %eax
movl %r15d, %ecx
subl %eax, %ecx
movq 0x638(%rbx), %rdx
movl (%rdx), %r13d
addq %r12, %r13
addq %r15, %r13
addq %r13, %r15
leaq -0x48(%rbp), %r14
movq %rsi, 0x8(%r14)
movq %r13, (%r14)
movl %ecx, 0x10(%r14)
movl %eax, 0x14(%r14)
movl $0x0, 0x18(%r14)
movq %r14, %rdi
callq 0x3ef6c
movq %rax, 0x98(%rbx)
leaq 0x200(%rbx), %rdi
movq %r14, %rsi
callq 0x43724
subl %r12d, %r13d
movq 0x638(%rbx), %rax
movl %r13d, (%rax)
cmpq 0x3b8(%rbx), %r15
jb 0x7439b
movb $0x1, 0x685(%rbx)
xorl %eax, %eax
jmp 0x743af
callq 0xc5c9a
movl $0x89, (%rax)
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| maria_rtree_get_next:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov rbx, rdi
mov rax, [rdi]
mov edx, esi
imul rcx, rdx, 118h
mov rsi, [rax+570h]
add rsi, rcx
cmp byte ptr [rdi+685h], 0
jz short loc_74318
mov rax, [rax+118h]
mov rdx, [rax+rdx*8]
cmp rdx, 0FFFFFFFFFFFFFFFFh
jz loc_7439F
add rsi, rcx
mov rdi, rbx
xor ecx, ecx
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp maria_rtree_get_req
loc_74318:
mov r12, [rbx+380h]
movzx r15d, word ptr [rsi+0AAh]
mov eax, [rax+3E0h]
mov ecx, r15d
sub ecx, eax
mov rdx, [rbx+638h]
mov r13d, [rdx]
add r13, r12
add r13, r15
add r15, r13
lea r14, [rbp+var_48]
mov [r14+8], rsi
mov [r14], r13
mov [r14+10h], ecx
mov [r14+14h], eax
mov dword ptr [r14+18h], 0
mov rdi, r14
call _ma_row_pos_from_key
mov [rbx+98h], rax
lea rdi, [rbx+200h]
mov rsi, r14
call _ma_copy_key
sub r13d, r12d
mov rax, [rbx+638h]
mov [rax], r13d
cmp r15, [rbx+3B8h]
jb short loc_7439B
mov byte ptr [rbx+685h], 1
loc_7439B:
xor eax, eax
jmp short loc_743AF
loc_7439F:
call _my_thread_var
mov dword ptr [rax], 89h
mov eax, 0FFFFFFFFh
loc_743AF:
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long maria_rtree_get_next(long long a1, unsigned int a2)
{
long long v2; // rax
long long v3; // rdx
long long v4; // rcx
long long v5; // rsi
unsigned long long v6; // rdx
long long v8; // r12
long long v9; // r15
unsigned int v10; // eax
unsigned int v11; // ecx
long long v12; // r13
long long v13[2]; // [rsp+8h] [rbp-48h] BYREF
unsigned int v14; // [rsp+18h] [rbp-38h]
long long v15; // [rsp+1Ch] [rbp-34h]
v2 = *(_QWORD *)a1;
v3 = a2;
v4 = 280LL * a2;
v5 = v4 + *(_QWORD *)(*(_QWORD *)a1 + 1392LL);
if ( *(_BYTE *)(a1 + 1669) )
{
v6 = *(_QWORD *)(*(_QWORD *)(v2 + 280) + 8 * v3);
if ( v6 == -1LL )
{
*(_DWORD *)my_thread_var(a1) = 137;
return 0xFFFFFFFFLL;
}
else
{
return maria_rtree_get_req(a1, v4 + v5, v6, 0LL);
}
}
else
{
v8 = *(_QWORD *)(a1 + 896);
v9 = *(unsigned __int16 *)(v5 + 170);
v10 = *(_DWORD *)(v2 + 992);
v11 = *(unsigned __int16 *)(v5 + 170) - v10;
v12 = v9 + v8 + **(unsigned int **)(a1 + 1592);
v13[1] = v5;
v13[0] = v12;
v14 = v11;
v15 = v10;
*(_QWORD *)(a1 + 152) = ma_row_pos_from_key(v13);
ma_copy_key(a1 + 512, (long long)v13);
**(_DWORD **)(a1 + 1592) = v12 - v8;
if ( (unsigned long long)(v12 + v9) >= *(_QWORD *)(a1 + 952) )
*(_BYTE *)(a1 + 1669) = 1;
return 0LL;
}
}
| maria_rtree_get_next:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
MOV RAX,qword ptr [RDI]
MOV EDX,ESI
IMUL RCX,RDX,0x118
MOV RSI,qword ptr [RAX + 0x570]
ADD RSI,RCX
CMP byte ptr [RDI + 0x685],0x0
JZ 0x00174318
MOV RAX,qword ptr [RAX + 0x118]
MOV RDX,qword ptr [RAX + RDX*0x8]
CMP RDX,-0x1
JZ 0x0017439f
ADD RSI,RCX
MOV RDI,RBX
XOR ECX,ECX
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00173f81
LAB_00174318:
MOV R12,qword ptr [RBX + 0x380]
MOVZX R15D,word ptr [RSI + 0xaa]
MOV EAX,dword ptr [RAX + 0x3e0]
MOV ECX,R15D
SUB ECX,EAX
MOV RDX,qword ptr [RBX + 0x638]
MOV R13D,dword ptr [RDX]
ADD R13,R12
ADD R13,R15
ADD R15,R13
LEA R14,[RBP + -0x48]
MOV qword ptr [R14 + 0x8],RSI
MOV qword ptr [R14],R13
MOV dword ptr [R14 + 0x10],ECX
MOV dword ptr [R14 + 0x14],EAX
MOV dword ptr [R14 + 0x18],0x0
MOV RDI,R14
CALL 0x0013ef6c
MOV qword ptr [RBX + 0x98],RAX
LEA RDI,[RBX + 0x200]
MOV RSI,R14
CALL 0x00143724
SUB R13D,R12D
MOV RAX,qword ptr [RBX + 0x638]
MOV dword ptr [RAX],R13D
CMP R15,qword ptr [RBX + 0x3b8]
JC 0x0017439b
MOV byte ptr [RBX + 0x685],0x1
LAB_0017439b:
XOR EAX,EAX
JMP 0x001743af
LAB_0017439f:
CALL 0x001c5c9a
MOV dword ptr [RAX],0x89
MOV EAX,0xffffffff
LAB_001743af:
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 maria_rtree_get_next(long *param_1,ulong param_2)
{
ushort uVar1;
int8 uVar2;
long lVar3;
int4 *puVar4;
long lVar5;
long lVar6;
long local_50;
long local_48;
int local_40;
int local_3c;
int4 local_38;
lVar3 = *param_1;
lVar5 = (param_2 & 0xffffffff) * 0x118;
local_48 = *(long *)(lVar3 + 0x570) + lVar5;
if (*(char *)((long)param_1 + 0x685) == '\0') {
lVar5 = param_1[0x70];
uVar1 = *(ushort *)(local_48 + 0xaa);
local_3c = *(int *)(lVar3 + 0x3e0);
local_40 = (uint)uVar1 - local_3c;
lVar6 = (ulong)*(uint *)param_1[199] + lVar5 + (ulong)uVar1;
local_38 = 0;
local_50 = lVar6;
lVar3 = _ma_row_pos_from_key(&local_50);
param_1[0x13] = lVar3;
_ma_copy_key(param_1 + 0x40,&local_50);
*(int *)param_1[199] = (int)lVar6 - (int)lVar5;
if ((ulong)param_1[0x77] <= (ulong)uVar1 + lVar6) {
*(int1 *)((long)param_1 + 0x685) = 1;
}
uVar2 = 0;
}
else {
lVar3 = *(long *)(*(long *)(lVar3 + 0x118) + (param_2 & 0xffffffff) * 8);
if (lVar3 != -1) {
uVar2 = maria_rtree_get_req(param_1,local_48 + lVar5,lVar3,0);
return uVar2;
}
puVar4 = (int4 *)_my_thread_var();
*puVar4 = 0x89;
uVar2 = 0xffffffff;
}
return uVar2;
}
| |
25,182 | ft_boolean_read_next | eloqsql/storage/myisam/ft_boolean_search.c | int ft_boolean_read_next(FT_INFO *ftb, char *record)
{
FTB_EXPR *ftbe;
FTB_WORD *ftbw;
MI_INFO *info=ftb->info;
my_off_t curdoc;
if (ftb->state != INDEX_SEARCH && ftb->state != INDEX_DONE)
return -1;
/* black magic ON */
if ((int) _mi_check_index(info, ftb->keynr) < 0)
return my_errno;
if (_mi_readinfo(info, F_RDLCK, 1))
return my_errno;
/* black magic OFF */
if (!ftb->queue.elements)
return my_errno=HA_ERR_END_OF_FILE;
/* Attention!!! Address of a local variable is used here! See err: label */
ftb->queue.first_cmp_arg=(void *)&curdoc;
while (ftb->state == INDEX_SEARCH &&
(curdoc=((FTB_WORD *)queue_top(& ftb->queue))->docid[0]) !=
HA_OFFSET_ERROR)
{
while (curdoc == (ftbw=(FTB_WORD *)queue_top(& ftb->queue))->docid[0])
{
if (unlikely(_ftb_climb_the_tree(ftb, ftbw, 0)))
{
my_errno= HA_ERR_OUT_OF_MEM;
goto err;
}
/* update queue */
_ft2_search(ftb, ftbw, 0);
queue_replace_top(&ftb->queue);
}
ftbe=ftb->root;
if (ftbe->docid[0]==curdoc && ftbe->cur_weight>0 &&
ftbe->yesses>=(ftbe->ythresh-ftbe->yweaks) && !ftbe->nos)
{
/* curdoc matched ! */
if (is_tree_inited(&ftb->no_dupes) &&
tree_insert(&ftb->no_dupes, &curdoc, 0,
ftb->no_dupes.custom_arg)->count >1)
/* but it managed already to get past this line once */
continue;
info->lastpos=curdoc;
/* Clear all states, except that the table was updated */
info->update&= (HA_STATE_CHANGED | HA_STATE_ROW_CHANGED);
if (!(*info->read_record)(info,curdoc, (uchar*) record))
{
info->update|= HA_STATE_AKTIV; /* Record is read */
if (ftb->with_scan &&
ft_boolean_find_relevance(ftb,(uchar*) record,0)==0)
continue; /* no match */
my_errno=0;
goto err;
}
goto err;
}
}
ftb->state=INDEX_DONE;
my_errno=HA_ERR_END_OF_FILE;
err:
ftb->queue.first_cmp_arg=(void *)0;
return my_errno;
} | O0 | c | ft_boolean_read_next:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x2, 0x348(%rax)
je 0x68d62
movq -0x10(%rbp), %rax
cmpl $0x3, 0x348(%rax)
je 0x68d62
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x68ff2
movq -0x30(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0x340(%rax), %esi
callq 0x4c3c0
cmpl $0x0, %eax
jge 0x68d89
callq 0x86110
movl (%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x68ff2
movq -0x30(%rbp), %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x3c750
cmpl $0x0, %eax
je 0x68dad
callq 0x86110
movl (%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x68ff2
movq -0x10(%rbp), %rax
cmpl $0x0, 0x80(%rax)
jne 0x68dd1
callq 0x86110
movl $0x89, (%rax)
movl $0x89, -0x4(%rbp)
jmp 0x68ff2
movq -0x10(%rbp), %rax
leaq -0x38(%rbp), %rcx
movq %rcx, 0x78(%rax)
movq -0x10(%rbp), %rcx
xorl %eax, %eax
cmpl $0x2, 0x348(%rcx)
movb %al, -0x39(%rbp)
jne 0x68e0d
movq -0x10(%rbp), %rax
movq 0x70(%rax), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, -0x38(%rbp)
cmpq $-0x1, %rax
setne %al
movb %al, -0x39(%rbp)
movb -0x39(%rbp), %al
testb $0x1, %al
jne 0x68e19
jmp 0x68fc3
jmp 0x68e1b
movq -0x38(%rbp), %rax
movq -0x10(%rbp), %rcx
movq 0x70(%rcx), %rcx
movq 0x8(%rcx), %rcx
movq %rcx, -0x28(%rbp)
cmpq 0x10(%rcx), %rax
jne 0x68e8c
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x69000
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x68e69
callq 0x86110
movl $0x80, (%rax)
jmp 0x68fdc
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
xorl %edx, %edx
callq 0x69370
movq -0x10(%rbp), %rdi
addq $0x70, %rdi
movl $0x1, %esi
callq 0x87600
jmp 0x68e1b
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
cmpq -0x38(%rbp), %rax
jne 0x68fbe
movq -0x20(%rbp), %rax
movss 0x2c(%rax), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x68fbe
movq -0x20(%rbp), %rax
movl 0x40(%rax), %eax
movq -0x20(%rbp), %rcx
movl 0x48(%rcx), %ecx
movq -0x20(%rbp), %rdx
subl 0x4c(%rdx), %ecx
cmpl %ecx, %eax
jb 0x68fbe
movq -0x20(%rbp), %rax
cmpl $0x0, 0x44(%rax)
jne 0x68fbe
movq -0x10(%rbp), %rax
cmpq $0x0, 0xa0(%rax)
je 0x68f2b
movq -0x10(%rbp), %rdi
addq $0xa0, %rdi
movq -0x10(%rbp), %rax
movq 0x2d0(%rax), %rcx
leaq -0x38(%rbp), %rsi
xorl %edx, %edx
callq 0x8a7e0
movl 0x10(%rax), %eax
andl $0x7fffffff, %eax # imm = 0x7FFFFFFF
cmpl $0x1, %eax
jle 0x68f2b
jmp 0x68ddd
movq -0x38(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x170(%rax)
movq -0x30(%rbp), %rax
movl 0x1d0(%rax), %ecx
andl $0x401, %ecx # imm = 0x401
movl %ecx, 0x1d0(%rax)
movq -0x30(%rbp), %rax
movq 0x140(%rax), %rax
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq *%rax
cmpl $0x0, %eax
jne 0x68fbc
movq -0x30(%rbp), %rax
movl 0x1d0(%rax), %ecx
orl $0x2, %ecx
movl %ecx, 0x1d0(%rax)
movq -0x10(%rbp), %rax
movzbl 0x344(%rax), %eax
cmpl $0x0, %eax
je 0x68faf
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
xorl %edx, %edx
callq 0x69420
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jne 0x68faf
jp 0x68faf
jmp 0x68ddd
callq 0x86110
movl $0x0, (%rax)
jmp 0x68fdc
jmp 0x68fdc
jmp 0x68ddd
movq -0x10(%rbp), %rax
movl $0x3, 0x348(%rax)
callq 0x86110
movl $0x89, (%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x78(%rax)
callq 0x86110
movl (%rax), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| ft_boolean_read_next:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov [rbp+var_30], rax
mov rax, [rbp+var_10]
cmp dword ptr [rax+348h], 2
jz short loc_68D62
mov rax, [rbp+var_10]
cmp dword ptr [rax+348h], 3
jz short loc_68D62
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_68FF2
loc_68D62:
mov rdi, [rbp+var_30]
mov rax, [rbp+var_10]
mov esi, [rax+340h]
call _mi_check_index
cmp eax, 0
jge short loc_68D89
call _my_thread_var
mov eax, [rax]
mov [rbp+var_4], eax
jmp loc_68FF2
loc_68D89:
mov rdi, [rbp+var_30]
xor esi, esi
mov edx, 1
call _mi_readinfo
cmp eax, 0
jz short loc_68DAD
call _my_thread_var
mov eax, [rax]
mov [rbp+var_4], eax
jmp loc_68FF2
loc_68DAD:
mov rax, [rbp+var_10]
cmp dword ptr [rax+80h], 0
jnz short loc_68DD1
call _my_thread_var
mov dword ptr [rax], 89h
mov [rbp+var_4], 89h
jmp loc_68FF2
loc_68DD1:
mov rax, [rbp+var_10]
lea rcx, [rbp+var_38]
mov [rax+78h], rcx
loc_68DDD:
mov rcx, [rbp+var_10]
xor eax, eax
cmp dword ptr [rcx+348h], 2
mov [rbp+var_39], al
jnz short loc_68E0D
mov rax, [rbp+var_10]
mov rax, [rax+70h]
mov rax, [rax+8]
mov rax, [rax+10h]
mov [rbp+var_38], rax
cmp rax, 0FFFFFFFFFFFFFFFFh
setnz al
mov [rbp+var_39], al
loc_68E0D:
mov al, [rbp+var_39]
test al, 1
jnz short loc_68E19
jmp loc_68FC3
loc_68E19:
jmp short $+2
loc_68E1B:
mov rax, [rbp+var_38]
mov rcx, [rbp+var_10]
mov rcx, [rcx+70h]
mov rcx, [rcx+8]
mov [rbp+var_28], rcx
cmp rax, [rcx+10h]
jnz short loc_68E8C
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_28]
xor eax, eax
mov edx, eax
call _ftb_climb_the_tree
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_68E69
call _my_thread_var
mov dword ptr [rax], 80h
jmp loc_68FDC
loc_68E69:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_28]
xor edx, edx
call _ft2_search
mov rdi, [rbp+var_10]
add rdi, 70h ; 'p'
mov esi, 1
call _downheap
jmp short loc_68E1B
loc_68E8C:
mov rax, [rbp+var_10]
mov rax, [rax+18h]
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
mov rax, [rax+10h]
cmp rax, [rbp+var_38]
jnz loc_68FBE
mov rax, [rbp+var_20]
movss xmm0, dword ptr [rax+2Ch]
xorps xmm1, xmm1
ucomiss xmm0, xmm1
jbe loc_68FBE
mov rax, [rbp+var_20]
mov eax, [rax+40h]
mov rcx, [rbp+var_20]
mov ecx, [rcx+48h]
mov rdx, [rbp+var_20]
sub ecx, [rdx+4Ch]
cmp eax, ecx
jb loc_68FBE
mov rax, [rbp+var_20]
cmp dword ptr [rax+44h], 0
jnz loc_68FBE
mov rax, [rbp+var_10]
cmp qword ptr [rax+0A0h], 0
jz short loc_68F2B
mov rdi, [rbp+var_10]
add rdi, 0A0h
mov rax, [rbp+var_10]
mov rcx, [rax+2D0h]
lea rsi, [rbp+var_38]
xor edx, edx
call tree_insert
mov eax, [rax+10h]
and eax, 7FFFFFFFh
cmp eax, 1
jle short loc_68F2B
jmp loc_68DDD
loc_68F2B:
mov rcx, [rbp+var_38]
mov rax, [rbp+var_30]
mov [rax+170h], rcx
mov rax, [rbp+var_30]
mov ecx, [rax+1D0h]
and ecx, 401h
mov [rax+1D0h], ecx
mov rax, [rbp+var_30]
mov rax, [rax+140h]
mov rdi, [rbp+var_30]
mov rsi, [rbp+var_38]
mov rdx, [rbp+var_18]
call rax
cmp eax, 0
jnz short loc_68FBC
mov rax, [rbp+var_30]
mov ecx, [rax+1D0h]
or ecx, 2
mov [rax+1D0h], ecx
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax+344h]
cmp eax, 0
jz short loc_68FAF
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
xor edx, edx
call ft_boolean_find_relevance
xorps xmm1, xmm1
ucomiss xmm0, xmm1
jnz short loc_68FAF
jp short loc_68FAF
jmp loc_68DDD
loc_68FAF:
call _my_thread_var
mov dword ptr [rax], 0
jmp short loc_68FDC
loc_68FBC:
jmp short loc_68FDC
loc_68FBE:
jmp loc_68DDD
loc_68FC3:
mov rax, [rbp+var_10]
mov dword ptr [rax+348h], 3
call _my_thread_var
mov dword ptr [rax], 89h
loc_68FDC:
mov rax, [rbp+var_10]
mov qword ptr [rax+78h], 0
call _my_thread_var
mov eax, [rax]
mov [rbp+var_4], eax
loc_68FF2:
mov eax, [rbp+var_4]
add rsp, 40h
pop rbp
retn
| long long ft_boolean_read_next(long long a1, const char *a2)
{
long long *v2; // rdi
const char *v3; // rsi
bool v5; // [rsp+7h] [rbp-39h]
long long v6; // [rsp+8h] [rbp-38h] BYREF
long long *v7; // [rsp+10h] [rbp-30h]
long long v8; // [rsp+18h] [rbp-28h]
long long v9; // [rsp+20h] [rbp-20h]
const char *v10; // [rsp+28h] [rbp-18h]
long long v11; // [rsp+30h] [rbp-10h]
v11 = a1;
v10 = a2;
v7 = *(long long **)(a1 + 8);
if ( *(_DWORD *)(a1 + 840) == 2 || *(_DWORD *)(v11 + 840) == 3 )
{
v2 = v7;
v3 = (const char *)*(unsigned int *)(v11 + 832);
if ( (int)mi_check_index((long long)v7, v3) < 0 )
return *(unsigned int *)my_thread_var(v2, v3);
v2 = v7;
v3 = 0LL;
if ( (unsigned int)mi_readinfo(v7, 0LL, 1) )
{
return *(unsigned int *)my_thread_var(v2, v3);
}
else if ( *(_DWORD *)(v11 + 128) )
{
*(_QWORD *)(v11 + 120) = &v6;
while ( 1 )
{
v5 = 0;
if ( *(_DWORD *)(v11 + 840) == 2 )
{
v6 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v11 + 112) + 8LL) + 16LL);
v5 = v6 != -1;
}
if ( !v5 )
break;
while ( 1 )
{
v8 = *(_QWORD *)(*(_QWORD *)(v11 + 112) + 8LL);
if ( v6 != *(_QWORD *)(v8 + 16) )
break;
v2 = (long long *)v11;
v3 = (const char *)v8;
if ( (unsigned int)ftb_climb_the_tree(v11, v8, 0LL) )
{
*(_DWORD *)my_thread_var(v2, v3) = 128;
goto LABEL_30;
}
ft2_search(v11, v8, 0LL);
v2 = (long long *)(v11 + 112);
v3 = (_BYTE *)(&dword_0 + 1);
downheap(v11 + 112, 1LL);
}
v9 = *(_QWORD *)(v11 + 24);
if ( *(_QWORD *)(v9 + 16) == v6
&& *(float *)(v9 + 44) > 0.0
&& *(_DWORD *)(v9 + 64) >= (unsigned int)(*(_DWORD *)(v9 + 72) - *(_DWORD *)(v9 + 76))
&& !*(_DWORD *)(v9 + 68) )
{
if ( !*(_QWORD *)(v11 + 160)
|| (v2 = (long long *)(v11 + 160),
v3 = (const char *)&v6,
(*(_DWORD *)(tree_insert(v11 + 160, &v6, 0LL, *(_QWORD *)(v11 + 720)) + 16) & 0x7FFFFFFFu) <= 1) )
{
v7[46] = v6;
*((_DWORD *)v7 + 116) &= 0x401u;
v2 = v7;
v3 = (const char *)v6;
if ( ((unsigned int ( *)(long long *, long long, const char *))v7[40])(v7, v6, v10) )
goto LABEL_30;
*((_DWORD *)v7 + 116) |= 2u;
if ( !*(_BYTE *)(v11 + 836)
|| (v2 = (long long *)v11, v3 = v10, ft_boolean_find_relevance(v11, v10, 0LL) != 0.0) )
{
*(_DWORD *)my_thread_var(v2, v3) = 0;
goto LABEL_30;
}
}
}
}
*(_DWORD *)(v11 + 840) = 3;
*(_DWORD *)my_thread_var(v2, v3) = 137;
LABEL_30:
*(_QWORD *)(v11 + 120) = 0LL;
return *(unsigned int *)my_thread_var(v2, v3);
}
else
{
*(_DWORD *)my_thread_var(v7, 0LL) = 137;
return 137;
}
}
else
{
return (unsigned int)-1;
}
}
| ft_boolean_read_next:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x348],0x2
JZ 0x00168d62
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x348],0x3
JZ 0x00168d62
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x00168ff2
LAB_00168d62:
MOV RDI,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RAX + 0x340]
CALL 0x0014c3c0
CMP EAX,0x0
JGE 0x00168d89
CALL 0x00186110
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00168ff2
LAB_00168d89:
MOV RDI,qword ptr [RBP + -0x30]
XOR ESI,ESI
MOV EDX,0x1
CALL 0x0013c750
CMP EAX,0x0
JZ 0x00168dad
CALL 0x00186110
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00168ff2
LAB_00168dad:
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x80],0x0
JNZ 0x00168dd1
CALL 0x00186110
MOV dword ptr [RAX],0x89
MOV dword ptr [RBP + -0x4],0x89
JMP 0x00168ff2
LAB_00168dd1:
MOV RAX,qword ptr [RBP + -0x10]
LEA RCX,[RBP + -0x38]
MOV qword ptr [RAX + 0x78],RCX
LAB_00168ddd:
MOV RCX,qword ptr [RBP + -0x10]
XOR EAX,EAX
CMP dword ptr [RCX + 0x348],0x2
MOV byte ptr [RBP + -0x39],AL
JNZ 0x00168e0d
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x70]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x38],RAX
CMP RAX,-0x1
SETNZ AL
MOV byte ptr [RBP + -0x39],AL
LAB_00168e0d:
MOV AL,byte ptr [RBP + -0x39]
TEST AL,0x1
JNZ 0x00168e19
JMP 0x00168fc3
LAB_00168e19:
JMP 0x00168e1b
LAB_00168e1b:
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x70]
MOV RCX,qword ptr [RCX + 0x8]
MOV qword ptr [RBP + -0x28],RCX
CMP RAX,qword ptr [RCX + 0x10]
JNZ 0x00168e8c
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x28]
XOR EAX,EAX
MOV EDX,EAX
CALL 0x00169000
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x00168e69
CALL 0x00186110
MOV dword ptr [RAX],0x80
JMP 0x00168fdc
LAB_00168e69:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x28]
XOR EDX,EDX
CALL 0x00169370
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x70
MOV ESI,0x1
CALL 0x00187600
JMP 0x00168e1b
LAB_00168e8c:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x10]
CMP RAX,qword ptr [RBP + -0x38]
JNZ 0x00168fbe
MOV RAX,qword ptr [RBP + -0x20]
MOVSS XMM0,dword ptr [RAX + 0x2c]
XORPS XMM1,XMM1
UCOMISS XMM0,XMM1
JBE 0x00168fbe
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RAX + 0x40]
MOV RCX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RCX + 0x48]
MOV RDX,qword ptr [RBP + -0x20]
SUB ECX,dword ptr [RDX + 0x4c]
CMP EAX,ECX
JC 0x00168fbe
MOV RAX,qword ptr [RBP + -0x20]
CMP dword ptr [RAX + 0x44],0x0
JNZ 0x00168fbe
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0xa0],0x0
JZ 0x00168f2b
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0xa0
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x2d0]
LEA RSI,[RBP + -0x38]
XOR EDX,EDX
CALL 0x0018a7e0
MOV EAX,dword ptr [RAX + 0x10]
AND EAX,0x7fffffff
CMP EAX,0x1
JLE 0x00168f2b
JMP 0x00168ddd
LAB_00168f2b:
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX + 0x170],RCX
MOV RAX,qword ptr [RBP + -0x30]
MOV ECX,dword ptr [RAX + 0x1d0]
AND ECX,0x401
MOV dword ptr [RAX + 0x1d0],ECX
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX + 0x140]
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x38]
MOV RDX,qword ptr [RBP + -0x18]
CALL RAX
CMP EAX,0x0
JNZ 0x00168fbc
MOV RAX,qword ptr [RBP + -0x30]
MOV ECX,dword ptr [RAX + 0x1d0]
OR ECX,0x2
MOV dword ptr [RAX + 0x1d0],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX + 0x344]
CMP EAX,0x0
JZ 0x00168faf
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
XOR EDX,EDX
CALL 0x00169420
XORPS XMM1,XMM1
UCOMISS XMM0,XMM1
JNZ 0x00168faf
JP 0x00168faf
JMP 0x00168ddd
LAB_00168faf:
CALL 0x00186110
MOV dword ptr [RAX],0x0
JMP 0x00168fdc
LAB_00168fbc:
JMP 0x00168fdc
LAB_00168fbe:
JMP 0x00168ddd
LAB_00168fc3:
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x348],0x3
CALL 0x00186110
MOV dword ptr [RAX],0x89
LAB_00168fdc:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x78],0x0
CALL 0x00186110
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x4],EAX
LAB_00168ff2:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x40
POP RBP
RET
|
int4 ft_boolean_read_next(long param_1,int8 param_2)
{
int iVar1;
int4 *puVar2;
long lVar3;
bool bVar4;
float fVar5;
long local_40;
long local_38;
long local_30;
long local_28;
int8 local_20;
long local_18;
int4 local_c;
local_38 = *(long *)(param_1 + 8);
if ((*(int *)(param_1 + 0x348) == 2) || (*(int *)(param_1 + 0x348) == 3)) {
local_20 = param_2;
local_18 = param_1;
iVar1 = _mi_check_index(local_38,*(int4 *)(param_1 + 0x340));
if (iVar1 < 0) {
puVar2 = (int4 *)_my_thread_var();
local_c = *puVar2;
}
else {
iVar1 = _mi_readinfo(local_38,0,1);
if (iVar1 == 0) {
if (*(int *)(local_18 + 0x80) == 0) {
puVar2 = (int4 *)_my_thread_var();
*puVar2 = 0x89;
local_c = 0x89;
}
else {
*(long **)(local_18 + 0x78) = &local_40;
while( true ) {
do {
bVar4 = false;
if (*(int *)(local_18 + 0x348) == 2) {
local_40 = *(long *)(*(long *)(*(long *)(local_18 + 0x70) + 8) + 0x10);
bVar4 = local_40 != -1;
}
if (!bVar4) {
*(int4 *)(local_18 + 0x348) = 3;
puVar2 = (int4 *)_my_thread_var();
*puVar2 = 0x89;
goto LAB_00168fdc;
}
while (local_30 = *(long *)(*(long *)(local_18 + 0x70) + 8),
local_40 == *(long *)(local_30 + 0x10)) {
iVar1 = _ftb_climb_the_tree(local_18,local_30,0);
if (iVar1 != 0) {
puVar2 = (int4 *)_my_thread_var();
*puVar2 = 0x80;
goto LAB_00168fdc;
}
_ft2_search(local_18,local_30,0);
_downheap(local_18 + 0x70,1);
}
local_28 = *(long *)(local_18 + 0x18);
} while (((((*(long *)(local_28 + 0x10) != local_40) ||
(*(float *)(local_28 + 0x2c) <= 0.0)) ||
(*(uint *)(local_28 + 0x40) <
(uint)(*(int *)(local_28 + 0x48) - *(int *)(local_28 + 0x4c)))) ||
(*(int *)(local_28 + 0x44) != 0)) ||
((*(long *)(local_18 + 0xa0) != 0 &&
(lVar3 = tree_insert(local_18 + 0xa0,&local_40,0,
*(int8 *)(local_18 + 0x2d0)),
1 < (*(uint *)(lVar3 + 0x10) & 0x7fffffff)))));
*(long *)(local_38 + 0x170) = local_40;
*(uint *)(local_38 + 0x1d0) = *(uint *)(local_38 + 0x1d0) & 0x401;
iVar1 = (**(code **)(local_38 + 0x140))(local_38,local_40,local_20);
if (iVar1 != 0) goto LAB_00168fdc;
*(uint *)(local_38 + 0x1d0) = *(uint *)(local_38 + 0x1d0) | 2;
if (*(char *)(local_18 + 0x344) == '\0') break;
fVar5 = (float)ft_boolean_find_relevance(local_18,local_20,0);
if ((fVar5 != 0.0) || (NAN(fVar5))) break;
}
puVar2 = (int4 *)_my_thread_var();
*puVar2 = 0;
LAB_00168fdc:
*(int8 *)(local_18 + 0x78) = 0;
puVar2 = (int4 *)_my_thread_var();
local_c = *puVar2;
}
}
else {
puVar2 = (int4 *)_my_thread_var();
local_c = *puVar2;
}
}
}
else {
local_c = 0xffffffff;
}
return local_c;
}
| |
25,183 | minja::Value::set(minja::Value const&, minja::Value const&) | monkey531[P]llama/common/minja.hpp | void set(const Value& key, const Value& value) {
if (!object_) throw std::runtime_error("Value is not an object: " + dump());
if (!key.is_hashable()) throw std::runtime_error("Unashable type: " + dump());
(*object_)[key.primitive_] = value;
} | O2 | cpp | minja::Value::set(minja::Value const&, minja::Value const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %r14
cmpq $0x0, 0x20(%rdi)
je 0x6e64b
movq %rdx, %rbx
movq %rsi, %r15
movq %rsi, %rdi
callq 0x67bb2
testb %al, %al
je 0x6e6a8
movq 0x20(%r14), %rdi
addq $0x40, %r15
movq %r15, %rsi
callq 0x6e770
movq %rax, %rdi
movq %rbx, %rsi
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x6e7c8
pushq $0x10
popq %rdi
callq 0x24470
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
pushq $-0x1
popq %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x67bc2
leaq 0x4adce(%rip), %rsi # 0xb943d
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x5d362
movb $0x1, %bpl
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x24e80
xorl %ebp, %ebp
movq 0x95959(%rip), %rsi # 0x103ff0
movq 0x958ba(%rip), %rdx # 0x103f58
movq %rbx, %rdi
callq 0x24f50
jmp 0x6e703
pushq $0x10
popq %rdi
callq 0x24470
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
pushq $-0x1
popq %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x67bc2
leaq 0x4ad8a(%rip), %rsi # 0xb9456
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x5d362
movb $0x1, %bpl
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x24e80
xorl %ebp, %ebp
movq 0x958fc(%rip), %rsi # 0x103ff0
movq 0x9585d(%rip), %rdx # 0x103f58
movq %rbx, %rdi
callq 0x24f50
jmp 0x6e707
jmp 0x6e716
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x25258
jmp 0x6e71c
movq %rax, %r14
movb $0x1, %bpl
leaq 0x8(%rsp), %rdi
callq 0x25258
testb %bpl, %bpl
jne 0x6e732
jmp 0x6e73a
jmp 0x6e72f
movq %rax, %r14
movq %rbx, %rdi
callq 0x246b0
movq %r14, %rdi
callq 0x24fe0
| _ZN5minja5Value3setERKS0_S2_:
push rbp
push r15
push r14
push rbx
sub rsp, 48h
mov r14, rdi
cmp qword ptr [rdi+20h], 0
jz short loc_6E64B
mov rbx, rdx
mov r15, rsi
mov rdi, rsi; this
call _ZNK5minja5Value12is_primitiveEv; minja::Value::is_primitive(void)
test al, al
jz loc_6E6A8
mov rdi, [r14+20h]
add r15, 40h ; '@'
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixERSJ_; 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,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,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,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,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,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>::operator[](nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
mov rdi, rax
mov rsi, rbx
add rsp, 48h
pop rbx
pop r14
pop r15
pop rbp
jmp _ZN5minja5ValueaSERKS0_; minja::Value::operator=(minja::Value const&)
loc_6E64B:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+68h+var_60]
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rsi, r14
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aValueIsNotAnOb; "Value is not an object: "
lea rdi, [rsp+68h+var_40]
lea rdx, [rsp+68h+var_60]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+68h+var_40]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
jmp short loc_6E703
loc_6E6A8:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+68h+var_60]
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rsi, r14
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aUnashableType; "Unashable type: "
lea rdi, [rsp+68h+var_40]
lea rdx, [rsp+68h+var_60]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+68h+var_40]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_6E703:
jmp short loc_6E707
jmp short loc_6E716
loc_6E707:
mov r14, rax
lea rdi, [rsp+68h+var_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_6E71C
loc_6E716:
mov r14, rax
mov bpl, 1
loc_6E71C:
lea rdi, [rsp+68h+var_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_6E732
jmp short loc_6E73A
jmp short $+2
loc_6E72F:
mov r14, rax
loc_6E732:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_6E73A:
mov rdi, r14
call __Unwind_Resume
| long long minja::Value::set(minja::Value *this, const minja::Value *a2, const minja::Value *a3)
{
long long v4; // rax
void *exception; // rbx
void *v7; // rbx
_BYTE v8[32]; // [rsp+8h] [rbp-60h] BYREF
_BYTE v9[64]; // [rsp+28h] [rbp-40h] BYREF
if ( !*((_QWORD *)this + 4) )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v8, (long long)this, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v9, (long long)"Value is not an object: ", (long long)v8);
std::runtime_error::runtime_error(exception, v9);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
if ( !minja::Value::is_primitive(a2) )
{
v7 = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v8, (long long)this, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v9, (long long)"Unashable type: ", (long long)v8);
std::runtime_error::runtime_error(v7, v9);
__cxa_throw(
v7,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v4 = 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>>>::operator[](
*((_QWORD *)this + 4),
(char *)a2 + 64);
return minja::Value::operator=(v4, a3);
}
| set:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x48
MOV R14,RDI
CMP qword ptr [RDI + 0x20],0x0
JZ 0x0016e64b
MOV RBX,RDX
MOV R15,RSI
MOV RDI,RSI
CALL 0x00167bb2
TEST AL,AL
JZ 0x0016e6a8
MOV RDI,qword ptr [R14 + 0x20]
ADD R15,0x40
MOV RSI,R15
CALL 0x0016e770
MOV RDI,RAX
MOV RSI,RBX
ADD RSP,0x48
POP RBX
POP R14
POP R15
POP RBP
JMP 0x0016e7c8
LAB_0016e64b:
PUSH 0x10
POP RDI
CALL 0x00124470
MOV RBX,RAX
LAB_0016e656:
LEA RDI,[RSP + 0x8]
PUSH -0x1
POP RDX
MOV RSI,R14
XOR ECX,ECX
CALL 0x00167bc2
LAB_0016e668:
LEA RSI,[0x1b943d]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x8]
CALL 0x0015d362
MOV BPL,0x1
LAB_0016e681:
LEA RSI,[RSP + 0x28]
MOV RDI,RBX
CALL 0x00124e80
XOR EBP,EBP
MOV RSI,qword ptr [0x00203ff0]
MOV RDX,qword ptr [0x00203f58]
MOV RDI,RBX
CALL 0x00124f50
LAB_0016e6a8:
PUSH 0x10
POP RDI
CALL 0x00124470
MOV RBX,RAX
LAB_0016e6b3:
LEA RDI,[RSP + 0x8]
PUSH -0x1
POP RDX
MOV RSI,R14
XOR ECX,ECX
CALL 0x00167bc2
LAB_0016e6c5:
LEA RSI,[0x1b9456]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x8]
CALL 0x0015d362
MOV BPL,0x1
LAB_0016e6de:
LEA RSI,[RSP + 0x28]
MOV RDI,RBX
CALL 0x00124e80
XOR EBP,EBP
MOV RSI,qword ptr [0x00203ff0]
MOV RDX,qword ptr [0x00203f58]
MOV RDI,RBX
CALL 0x00124f50
|
/* minja::Value::set(minja::Value const&, minja::Value const&) */
void __thiscall minja::Value::set(Value *this,Value *param_1,Value *param_2)
{
Value *this_00;
runtime_error *prVar1;
char cVar2;
int1 local_60 [32];
string local_40 [32];
if (*(long *)(this + 0x20) == 0) {
prVar1 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0016e656 to 0016e667 has its CatchHandler @ 0016e72f */
dump_abi_cxx11_((int)local_60,SUB81(this,0));
/* try { // try from 0016e668 to 0016e67d has its CatchHandler @ 0016e716 */
std::operator+((char *)local_40,(string *)"Value is not an object: ");
/* try { // try from 0016e681 to 0016e6a5 has its CatchHandler @ 0016e707 */
std::runtime_error::runtime_error(prVar1,local_40);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar1,PTR_typeinfo_00203ff0,PTR__runtime_error_00203f58);
}
cVar2 = is_primitive(param_1);
if (cVar2 != '\0') {
this_00 = (Value *)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>>>
::operator[](*(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 + 0x20),param_1 + 0x40);
operator=(this_00,param_2);
return;
}
prVar1 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0016e6b3 to 0016e6c4 has its CatchHandler @ 0016e72d */
dump_abi_cxx11_((int)local_60,SUB81(this,0));
/* try { // try from 0016e6c5 to 0016e6da has its CatchHandler @ 0016e705 */
std::operator+((char *)local_40,(string *)"Unashable type: ");
/* try { // try from 0016e6de to 0016e702 has its CatchHandler @ 0016e703 */
std::runtime_error::runtime_error(prVar1,local_40);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar1,PTR_typeinfo_00203ff0,PTR__runtime_error_00203f58);
}
| |
25,184 | HKDF_Expand | corpus-core[P]colibri-stateless/build_O1/_deps/blst-src/src/keygen.c | static void HKDF_Expand(unsigned char *OKM, size_t L,
const unsigned char PRK[32],
const void *info, size_t info_len,
#ifndef __BLST_HKDF_TESTMODE__
int info_fixup,
#endif
HMAC_SHA256_CTX *ctx)
{
#if !defined(__STDC_VERSION__) || __STDC_VERSION__<199901 \
|| defined(__STDC_NO_VLA__)
unsigned char *info_prime = alloca(info_len + 2 + 1);
#else
unsigned char info_prime[info_len + 2 + 1];
#endif
HMAC_init(ctx, PRK, 32);
if (info_len != 0)
sha256_bcopy(info_prime, info, info_len);
#ifndef __BLST_HKDF_TESTMODE__
if (info_fixup) {
/* Section 2.3 KeyGen in BLS-signature draft */
info_prime[info_len + 0] = (unsigned char)(L >> 8);
info_prime[info_len + 1] = (unsigned char)(L);
info_len += 2;
}
#endif
info_prime[info_len] = 1; /* counter */
HMAC_update(ctx, info_prime, info_len + 1);
HMAC_final(ctx->tail.c, ctx);
while (L > 32) {
sha256_hcopy((unsigned int *)OKM, (const unsigned int *)ctx->tail.c);
OKM += 32; L -= 32;
++info_prime[info_len]; /* counter */
HMAC_init(ctx, NULL, 0);
HMAC_update(ctx, ctx->tail.c, 32);
HMAC_update(ctx, info_prime, info_len + 1);
HMAC_final(ctx->tail.c, ctx);
}
sha256_bcopy(OKM, ctx->tail.c, L);
} | O1 | c | HKDF_Expand:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r9d, -0x38(%rbp)
movq %r8, %r15
movq %rcx, -0x30(%rbp)
movq %rdx, %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x10(%rbp), %r12
movq %rsp, %r13
leaq 0x12(%r8), %rcx
andq $-0x10, %rcx
subq %rcx, %r13
movq %r13, %rsp
movl $0x20, %edx
movq %r12, %rdi
movq %rax, %rsi
callq 0x263da
testq %r15, %r15
je 0x262d3
movq %r13, %rdi
movq -0x30(%rbp), %rsi
movq %r15, %rdx
callq 0x2cf30
cmpl $0x0, -0x38(%rbp)
je 0x262e9
movl %ebx, %eax
rolw $0x8, %ax
movw %ax, (%r13,%r15)
addq $0x2, %r15
movb $0x1, (%r13,%r15)
movq %r15, -0x38(%rbp)
leaq 0x1(%r15), %rdx
movq %r12, %rdi
movq %r13, %rsi
movq %rdx, -0x30(%rbp)
callq 0x25cca
leaq 0xb0(%r12), %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x2658c
cmpq $0x21, %rbx
jb 0x263bd
leaq 0x70(%r12), %rax
movq %rax, -0x48(%rbp)
leaq 0x28(%r12), %rax
movq %rax, -0x40(%rbp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x2cf50
addq $0x20, %r14
movq -0x38(%rbp), %rax
incb (%r13,%rax)
movq %r12, %rdi
movq -0x48(%rbp), %rsi
callq 0x2cf50
movq $0x40, 0x20(%r12)
movl $0x5, %eax
movq $0x0, (%r12,%rax,8)
incq %rax
cmpq $0xd, %rax
jne 0x26367
addq $-0x20, %rbx
movq -0x40(%rbp), %rax
movq $0x0, 0x68(%r12)
movl $0x20, %edx
movq %r12, %rdi
movq %r15, %rsi
callq 0x25cca
movq %r12, %rdi
movq %r13, %rsi
movq -0x30(%rbp), %rdx
callq 0x25cca
movq %r15, %rdi
movq %r12, %rsi
callq 0x2658c
cmpq $0x20, %rbx
ja 0x26335
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2cf30
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| HKDF_Expand:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov dword ptr [rbp+var_38], r9d
mov r15, r8
mov [rbp+var_30], rcx
mov rax, rdx
mov rbx, rsi
mov r14, rdi
mov r12, [rbp+arg_0]
mov r13, rsp
lea rcx, [r8+12h]
and rcx, 0FFFFFFFFFFFFFFF0h
sub r13, rcx
mov rsp, r13
mov edx, 20h ; ' '
mov rdi, r12
mov rsi, rax
call HMAC_init
test r15, r15
jz short loc_262D3
mov rdi, r13
mov rsi, [rbp+var_30]
mov rdx, r15
call blst_sha256_bcopy
loc_262D3:
cmp dword ptr [rbp+var_38], 0
jz short loc_262E9
mov eax, ebx
rol ax, 8
mov [r13+r15+0], ax
add r15, 2
loc_262E9:
mov byte ptr [r13+r15+0], 1
mov [rbp+var_38], r15
lea rdx, [r15+1]
mov rdi, r12
mov rsi, r13
mov [rbp+var_30], rdx
call sha256_update
lea r15, [r12+0B0h]
mov rdi, r15
mov rsi, r12
call HMAC_final
cmp rbx, 21h ; '!'
jb loc_263BD
lea rax, [r12+70h]
mov [rbp+var_48], rax
lea rax, [r12+28h]
mov [rbp+var_40], rax
loc_26335:
mov rdi, r14
mov rsi, r15
call blst_sha256_hcopy
add r14, 20h ; ' '
mov rax, [rbp+var_38]
inc byte ptr [r13+rax+0]
mov rdi, r12
mov rsi, [rbp+var_48]
call blst_sha256_hcopy
mov qword ptr [r12+20h], 40h ; '@'
mov eax, 5
loc_26367:
mov qword ptr [r12+rax*8], 0
inc rax
cmp rax, 0Dh
jnz short loc_26367
add rbx, 0FFFFFFFFFFFFFFE0h
mov rax, [rbp+var_40]
mov qword ptr [r12+68h], 0
mov edx, 20h ; ' '
mov rdi, r12
mov rsi, r15
call sha256_update
mov rdi, r12
mov rsi, r13
mov rdx, [rbp+var_30]
call sha256_update
mov rdi, r15
mov rsi, r12
call HMAC_final
cmp rbx, 20h ; ' '
ja loc_26335
loc_263BD:
mov rdi, r14
mov rsi, r15
mov rdx, rbx
call blst_sha256_bcopy
lea rsp, [rbp-28h]
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long HKDF_Expand(long long a1, unsigned long long a2, long long a3, long long a4, long long a5, int a6, long long a7)
{
long long v7; // r15
unsigned long long v8; // rbx
char *v10; // r13
long long i; // rax
long long v13; // [rsp+0h] [rbp-50h] BYREF
long long v14; // [rsp+8h] [rbp-48h]
long long v15; // [rsp+10h] [rbp-40h]
long long v16; // [rsp+18h] [rbp-38h]
long long v17; // [rsp+20h] [rbp-30h]
LODWORD(v16) = a6;
v7 = a5;
v17 = a4;
v8 = a2;
v10 = (char *)&v13 - ((a5 + 18) & 0xFFFFFFFFFFFFFFF0LL);
HMAC_init(a7, a3);
if ( v7 )
blst_sha256_bcopy(v10, v17, v7);
if ( (_DWORD)v16 )
{
*(_WORD *)&v10[v7] = __ROL2__(a2, 8);
v7 += 2LL;
}
v10[v7] = 1;
v16 = v7;
v17 = v7 + 1;
sha256_update(a7, v10, v7 + 1);
HMAC_final(a7 + 176, a7);
if ( a2 >= 0x21 )
{
v14 = a7 + 112;
v15 = a7 + 40;
do
{
blst_sha256_hcopy(a1, a7 + 176);
a1 += 32LL;
++v10[v16];
blst_sha256_hcopy(a7, v14);
*(_QWORD *)(a7 + 32) = 64LL;
for ( i = 5LL; i != 13; ++i )
*(_QWORD *)(a7 + 8 * i) = 0LL;
v8 -= 32LL;
*(_QWORD *)(a7 + 104) = 0LL;
sha256_update(a7, a7 + 176, 32LL);
sha256_update(a7, v10, v17);
HMAC_final(a7 + 176, a7);
}
while ( v8 > 0x20 );
}
return blst_sha256_bcopy(a1, a7 + 176, v8);
}
| HKDF_Expand:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV dword ptr [RBP + -0x38],R9D
MOV R15,R8
MOV qword ptr [RBP + -0x30],RCX
MOV RAX,RDX
MOV RBX,RSI
MOV R14,RDI
MOV R12,qword ptr [RBP + 0x10]
MOV R13,RSP
LEA RCX,[R8 + 0x12]
AND RCX,-0x10
SUB R13,RCX
MOV RSP,R13
MOV EDX,0x20
MOV RDI,R12
MOV RSI,RAX
CALL 0x001263da
TEST R15,R15
JZ 0x001262d3
MOV RDI,R13
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,R15
CALL 0x0012cf30
LAB_001262d3:
CMP dword ptr [RBP + -0x38],0x0
JZ 0x001262e9
MOV EAX,EBX
ROL AX,0x8
MOV word ptr [R13 + R15*0x1],AX
ADD R15,0x2
LAB_001262e9:
MOV byte ptr [R13 + R15*0x1],0x1
MOV qword ptr [RBP + -0x38],R15
LEA RDX,[R15 + 0x1]
MOV RDI,R12
MOV RSI,R13
MOV qword ptr [RBP + -0x30],RDX
CALL 0x00125cca
LEA R15,[R12 + 0xb0]
MOV RDI,R15
MOV RSI,R12
CALL 0x0012658c
CMP RBX,0x21
JC 0x001263bd
LEA RAX,[R12 + 0x70]
MOV qword ptr [RBP + -0x48],RAX
LEA RAX,[R12 + 0x28]
MOV qword ptr [RBP + -0x40],RAX
LAB_00126335:
MOV RDI,R14
MOV RSI,R15
CALL 0x0012cf50
ADD R14,0x20
MOV RAX,qword ptr [RBP + -0x38]
INC byte ptr [R13 + RAX*0x1]
MOV RDI,R12
MOV RSI,qword ptr [RBP + -0x48]
CALL 0x0012cf50
MOV qword ptr [R12 + 0x20],0x40
MOV EAX,0x5
LAB_00126367:
MOV qword ptr [R12 + RAX*0x8],0x0
INC RAX
CMP RAX,0xd
JNZ 0x00126367
ADD RBX,-0x20
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [R12 + 0x68],0x0
MOV EDX,0x20
MOV RDI,R12
MOV RSI,R15
CALL 0x00125cca
MOV RDI,R12
MOV RSI,R13
MOV RDX,qword ptr [RBP + -0x30]
CALL 0x00125cca
MOV RDI,R15
MOV RSI,R12
CALL 0x0012658c
CMP RBX,0x20
JA 0x00126335
LAB_001263bd:
MOV RDI,R14
MOV RSI,R15
MOV RDX,RBX
CALL 0x0012cf30
LEA RSP,[RBP + -0x28]
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void HKDF_Expand(long param_1,ulong param_2,int8 param_3,int8 param_4,long param_5,
int4 param_6,long param_7)
{
long lVar1;
long lVar2;
long lVar3;
long lVar4;
int8 uStack_60;
ushort auStack_58 [4];
long local_50;
long local_48;
long local_40;
long local_38;
local_40 = CONCAT44(local_40._4_4_,param_6);
lVar2 = -(param_5 + 0x12U & 0xfffffffffffffff0);
lVar4 = (long)auStack_58 + lVar2;
local_38 = param_4;
*(int8 *)((long)&uStack_60 + lVar2) = 0x1262bf;
HMAC_init(param_7,param_3,0x20);
lVar1 = local_38;
if (param_5 != 0) {
*(int8 *)((long)&uStack_60 + lVar2) = 0x1262d3;
blst_sha256_bcopy(lVar4,lVar1,param_5);
}
if ((int)local_40 != 0) {
*(ushort *)(lVar4 + param_5) = (ushort)param_2 << 8 | (ushort)param_2 >> 8;
param_5 = param_5 + 2;
}
*(int1 *)(lVar4 + param_5) = 1;
local_38 = param_5 + 1;
local_40 = param_5;
*(int8 *)((long)&uStack_60 + lVar2) = 0x126306;
sha256_update(param_7,lVar4);
lVar1 = param_7 + 0xb0;
*(int8 *)((long)&uStack_60 + lVar2) = 0x126319;
HMAC_final(lVar1,param_7);
if (0x20 < param_2) {
local_50 = param_7 + 0x70;
local_48 = param_7 + 0x28;
do {
*(int8 *)((long)&uStack_60 + lVar2) = 0x126340;
blst_sha256_hcopy(param_1,lVar1);
param_1 = param_1 + 0x20;
*(char *)(lVar4 + local_40) = *(char *)(lVar4 + local_40) + '\x01';
lVar3 = local_50;
*(int8 *)((long)&uStack_60 + lVar2) = 0x126359;
blst_sha256_hcopy(param_7,lVar3);
*(int8 *)(param_7 + 0x20) = 0x40;
lVar3 = 5;
do {
*(int8 *)(param_7 + lVar3 * 8) = 0;
lVar3 = lVar3 + 1;
} while (lVar3 != 0xd);
param_2 = param_2 - 0x20;
*(int8 *)(param_7 + 0x68) = 0;
*(int8 *)((long)&uStack_60 + lVar2) = 0x126399;
sha256_update(param_7,lVar1,0x20);
lVar3 = local_38;
*(int8 *)((long)&uStack_60 + lVar2) = 0x1263a8;
sha256_update(param_7,lVar4,lVar3);
*(int8 *)((long)&uStack_60 + lVar2) = 0x1263b3;
HMAC_final(lVar1,param_7);
} while (0x20 < param_2);
}
*(int8 *)((long)&uStack_60 + lVar2) = 0x1263cb;
blst_sha256_bcopy(param_1,lVar1,param_2);
return;
}
| |
25,185 | set_numa_thread_affinity | ngxson[P]ggml-easy/ggml/src/ggml-cpu/ggml-cpu.c | static void set_numa_thread_affinity(int thread_n) {
if (!ggml_is_numa()) {
return;
}
int node_num;
int rv;
size_t setsize = CPU_ALLOC_SIZE(g_state.numa.total_cpus);
switch(g_state.numa.numa_strategy) {
case GGML_NUMA_STRATEGY_DISTRIBUTE:
// run thread on node_num thread_n / (threads per node)
node_num = thread_n % g_state.numa.n_nodes;
break;
case GGML_NUMA_STRATEGY_ISOLATE:
// run thread on current_node
node_num = g_state.numa.current_node;
break;
case GGML_NUMA_STRATEGY_NUMACTL:
// use the cpuset that numactl gave us
rv = pthread_setaffinity_np(pthread_self(), setsize, &g_state.numa.cpuset);
if (rv) {
fprintf(stderr, "warning: pthread_setaffinity_np() failed: %s\n",strerror(rv));
}
return;
default:
return;
}
struct ggml_numa_node * node = &g_state.numa.nodes[node_num];
cpu_set_t * cpus = CPU_ALLOC(g_state.numa.total_cpus);
CPU_ZERO_S(setsize, cpus);
for (size_t i = 0; i < node->n_cpus; ++i) {
CPU_SET_S(node->cpus[i], setsize, cpus);
}
rv = pthread_setaffinity_np(pthread_self(), setsize, cpus);
if (rv) {
fprintf(stderr, "warning: pthread_setaffinity_np() failed: %s\n", strerror(rv));
}
CPU_FREE(cpus);
} | O0 | c | set_numa_thread_affinity:
subq $0x68, %rsp
movl %edi, 0x64(%rsp)
callq 0x10b48
testb $0x1, %al
jne 0x15096
jmp 0x15284
movl 0xafdb4(%rip), %eax # 0xc4e50
addq $0x3f, %rax
shrq $0x3, %rax
andl $-0x8, %eax
movq %rax, 0x50(%rsp)
movl 0xabd76(%rip), %eax # 0xc0e28
movl %eax, 0x24(%rsp)
subl $0x1, %eax
je 0x150d3
jmp 0x150bd
movl 0x24(%rsp), %eax
subl $0x2, %eax
je 0x150e5
jmp 0x150c8
movl 0x24(%rsp), %eax
subl $0x3, %eax
je 0x150f1
jmp 0x1514f
movl 0x64(%rsp), %eax
xorl %edx, %edx
divl 0xafd6d(%rip) # 0xc4e4c
movl %edx, 0x60(%rsp)
jmp 0x15154
movl 0xafd69(%rip), %eax # 0xc4e54
movl %eax, 0x60(%rsp)
jmp 0x15154
callq 0xfb60
movq %rax, %rdi
movq 0x50(%rsp), %rsi
leaq 0xabd23(%rip), %rdx # 0xc0e28
addq $0x4030, %rdx # imm = 0x4030
callq 0x10780
movl %eax, 0x5c(%rsp)
cmpl $0x0, 0x5c(%rsp)
je 0x1514a
movq 0xaae85(%rip), %rax # 0xbffa8
movq (%rax), %rax
movq %rax, 0x18(%rsp)
movl 0x5c(%rsp), %edi
callq 0xf300
movq 0x18(%rsp), %rdi
movq %rax, %rdx
leaq 0x96c27(%rip), %rsi # 0xabd6a
movb $0x0, %al
callq 0x10270
jmp 0x15284
jmp 0x15284
movslq 0x60(%rsp), %rcx
leaq 0xabcc8(%rip), %rax # 0xc0e28
addq $0x4, %rax
imulq $0x804, %rcx, %rcx # imm = 0x804
addq %rcx, %rax
movq %rax, 0x48(%rsp)
movl 0xafcd7(%rip), %eax # 0xc4e50
movl %eax, %edi
callq 0xfb40
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rdi
movq 0x50(%rsp), %rdx
xorl %esi, %esi
callq 0xf650
movq $0x0, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq 0x48(%rsp), %rcx
movl 0x800(%rcx), %ecx
cmpq %rcx, %rax
jae 0x1522a
movq 0x48(%rsp), %rax
movq 0x38(%rsp), %rcx
movl (%rax,%rcx,4), %eax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
shrq $0x3, %rax
cmpq 0x50(%rsp), %rax
jae 0x15204
movq 0x30(%rsp), %rcx
andq $0x3f, %rcx
movl $0x1, %eax
shlq %cl, %rax
movq 0x40(%rsp), %rcx
movq 0x30(%rsp), %rdx
shrq $0x6, %rdx
orq (%rcx,%rdx,8), %rax
movq %rax, (%rcx,%rdx,8)
movq %rax, 0x10(%rsp)
jmp 0x1520d
xorl %eax, %eax
movq %rax, 0x10(%rsp)
jmp 0x1520d
movq 0x10(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x38(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x38(%rsp)
jmp 0x1519f
callq 0xfb60
movq %rax, %rdi
movq 0x50(%rsp), %rsi
movq 0x40(%rsp), %rdx
callq 0x10780
movl %eax, 0x5c(%rsp)
cmpl $0x0, 0x5c(%rsp)
je 0x1527a
movq 0xaad55(%rip), %rax # 0xbffa8
movq (%rax), %rax
movq %rax, 0x8(%rsp)
movl 0x5c(%rsp), %edi
callq 0xf300
movq 0x8(%rsp), %rdi
movq %rax, %rdx
leaq 0x96af7(%rip), %rsi # 0xabd6a
movb $0x0, %al
callq 0x10270
movq 0x40(%rsp), %rdi
callq 0x101d0
addq $0x68, %rsp
retq
nopl (%rax)
| set_numa_thread_affinity:
sub rsp, 68h
mov [rsp+68h+var_4], edi
call j_ggml_is_numa
test al, 1
jnz short loc_15096
jmp loc_15284
loc_15096:
mov eax, cs:dword_C4E50
add rax, 3Fh ; '?'
shr rax, 3
and eax, 0FFFFFFF8h
mov [rsp+68h+var_18], rax
mov eax, cs:g_state
mov [rsp+68h+var_44], eax
sub eax, 1
jz short loc_150D3
jmp short $+2
loc_150BD:
mov eax, [rsp+68h+var_44]
sub eax, 2
jz short loc_150E5
jmp short $+2
loc_150C8:
mov eax, [rsp+68h+var_44]
sub eax, 3
jz short loc_150F1
jmp short loc_1514F
loc_150D3:
mov eax, [rsp+68h+var_4]
xor edx, edx
div cs:dword_C4E4C
mov [rsp+68h+var_8], edx
jmp short loc_15154
loc_150E5:
mov eax, cs:dword_C4E54
mov [rsp+68h+var_8], eax
jmp short loc_15154
loc_150F1:
call _pthread_self
mov rdi, rax
mov rsi, [rsp+68h+var_18]
lea rdx, g_state
add rdx, 4030h
call _pthread_setaffinity_np
mov [rsp+68h+var_C], eax
cmp [rsp+68h+var_C], 0
jz short loc_1514A
mov rax, cs:stderr_ptr
mov rax, [rax]
mov [rsp+68h+var_50], rax
mov edi, [rsp+68h+var_C]
call _strerror
mov rdi, [rsp+68h+var_50]
mov rdx, rax
lea rsi, aWarningPthread; "warning: pthread_setaffinity_np() faile"...
mov al, 0
call _fprintf
loc_1514A:
jmp loc_15284
loc_1514F:
jmp loc_15284
loc_15154:
movsxd rcx, [rsp+68h+var_8]
lea rax, g_state
add rax, 4
imul rcx, 804h
add rax, rcx
mov [rsp+68h+var_20], rax
mov eax, cs:dword_C4E50
mov edi, eax
call ___sched_cpualloc
mov [rsp+68h+var_28], rax
mov rdi, [rsp+68h+var_28]
mov rdx, [rsp+68h+var_18]
xor esi, esi
call _memset
mov [rsp+68h+var_30], 0
loc_1519F:
mov rax, [rsp+68h+var_30]
mov rcx, [rsp+68h+var_20]
mov ecx, [rcx+800h]
cmp rax, rcx
jnb short loc_1522A
mov rax, [rsp+68h+var_20]
mov rcx, [rsp+68h+var_30]
mov eax, [rax+rcx*4]
mov [rsp+68h+var_38], rax
mov rax, [rsp+68h+var_38]
shr rax, 3
cmp rax, [rsp+68h+var_18]
jnb short loc_15204
mov rcx, [rsp+68h+var_38]
and rcx, 3Fh
mov eax, 1
shl rax, cl
mov rcx, [rsp+68h+var_28]
mov rdx, [rsp+68h+var_38]
shr rdx, 6
or rax, [rcx+rdx*8]
mov [rcx+rdx*8], rax
mov [rsp+68h+var_58], rax
jmp short loc_1520D
loc_15204:
xor eax, eax
mov [rsp+68h+var_58], rax
jmp short $+2
loc_1520D:
mov rax, [rsp+68h+var_58]
mov [rsp+68h+var_40], rax
mov rax, [rsp+68h+var_30]
add rax, 1
mov [rsp+68h+var_30], rax
jmp loc_1519F
loc_1522A:
call _pthread_self
mov rdi, rax
mov rsi, [rsp+68h+var_18]
mov rdx, [rsp+68h+var_28]
call _pthread_setaffinity_np
mov [rsp+68h+var_C], eax
cmp [rsp+68h+var_C], 0
jz short loc_1527A
mov rax, cs:stderr_ptr
mov rax, [rax]
mov [rsp+68h+var_60], rax
mov edi, [rsp+68h+var_C]
call _strerror
mov rdi, [rsp+68h+var_60]
mov rdx, rax
lea rsi, aWarningPthread; "warning: pthread_setaffinity_np() faile"...
mov al, 0
call _fprintf
loc_1527A:
mov rdi, [rsp+68h+var_28]
call ___sched_cpufree
loc_15284:
add rsp, 68h
retn
| long long set_numa_thread_affinity(unsigned int a1)
{
long long result; // rax
long long v2; // rax
const char *v3; // rax
long long v4; // rax
const char *v5; // rax
long long v6; // [rsp+8h] [rbp-60h]
long long v7; // [rsp+18h] [rbp-50h]
unsigned long long v8; // [rsp+30h] [rbp-38h]
unsigned long long i; // [rsp+38h] [rbp-30h]
long long v10; // [rsp+40h] [rbp-28h]
int *v11; // [rsp+48h] [rbp-20h]
unsigned long long v12; // [rsp+50h] [rbp-18h]
unsigned int v13; // [rsp+5Ch] [rbp-Ch]
unsigned int v14; // [rsp+60h] [rbp-8h]
result = j_ggml_is_numa();
if ( (result & 1) == 0 )
return result;
v12 = (((unsigned long long)(unsigned int)dword_C4E50 + 63) >> 3) & 0xFFFFFFF8;
if ( g_state[0] == 1 )
{
v14 = a1 % dword_C4E4C;
}
else
{
if ( g_state[0] != 2 )
{
result = (unsigned int)(g_state[0] - 3);
if ( g_state[0] == 3 )
{
v2 = pthread_self();
result = pthread_setaffinity_np(v2, v12, &g_state[4108]);
if ( (_DWORD)result )
{
v7 = stderr;
v3 = (const char *)strerror((unsigned int)result);
return fprintf(v7, "warning: pthread_setaffinity_np() failed: %s\n", v3);
}
}
return result;
}
v14 = dword_C4E54;
}
v11 = &g_state[513 * v14 + 1];
v10 = __sched_cpualloc((unsigned int)dword_C4E50);
memset(v10, 0LL, v12);
for ( i = 0LL; i < (unsigned int)v11[512]; ++i )
{
v8 = (unsigned int)v11[i];
if ( v8 >> 3 < v12 )
*(_QWORD *)(v10 + 8 * (v8 >> 6)) |= 1LL << (v8 & 0x3F);
}
v4 = pthread_self();
v13 = pthread_setaffinity_np(v4, v12, v10);
if ( v13 )
{
v6 = stderr;
v5 = (const char *)strerror(v13);
fprintf(v6, "warning: pthread_setaffinity_np() failed: %s\n", v5);
}
return __sched_cpufree(v10);
}
| set_numa_thread_affinity:
SUB RSP,0x68
MOV dword ptr [RSP + 0x64],EDI
CALL 0x00110b48
TEST AL,0x1
JNZ 0x00115096
JMP 0x00115284
LAB_00115096:
MOV EAX,dword ptr [0x001c4e50]
ADD RAX,0x3f
SHR RAX,0x3
AND EAX,0xfffffff8
MOV qword ptr [RSP + 0x50],RAX
MOV EAX,dword ptr [0x001c0e28]
MOV dword ptr [RSP + 0x24],EAX
SUB EAX,0x1
JZ 0x001150d3
JMP 0x001150bd
LAB_001150bd:
MOV EAX,dword ptr [RSP + 0x24]
SUB EAX,0x2
JZ 0x001150e5
JMP 0x001150c8
LAB_001150c8:
MOV EAX,dword ptr [RSP + 0x24]
SUB EAX,0x3
JZ 0x001150f1
JMP 0x0011514f
LAB_001150d3:
MOV EAX,dword ptr [RSP + 0x64]
XOR EDX,EDX
DIV dword ptr [0x001c4e4c]
MOV dword ptr [RSP + 0x60],EDX
JMP 0x00115154
LAB_001150e5:
MOV EAX,dword ptr [0x001c4e54]
MOV dword ptr [RSP + 0x60],EAX
JMP 0x00115154
LAB_001150f1:
CALL 0x0010fb60
MOV RDI,RAX
MOV RSI,qword ptr [RSP + 0x50]
LEA RDX,[0x1c0e28]
ADD RDX,0x4030
CALL 0x00110780
MOV dword ptr [RSP + 0x5c],EAX
CMP dword ptr [RSP + 0x5c],0x0
JZ 0x0011514a
MOV RAX,qword ptr [0x001bffa8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x18],RAX
MOV EDI,dword ptr [RSP + 0x5c]
CALL 0x0010f300
MOV RDI,qword ptr [RSP + 0x18]
MOV RDX,RAX
LEA RSI,[0x1abd6a]
MOV AL,0x0
CALL 0x00110270
LAB_0011514a:
JMP 0x00115284
LAB_0011514f:
JMP 0x00115284
LAB_00115154:
MOVSXD RCX,dword ptr [RSP + 0x60]
LEA RAX,[0x1c0e28]
ADD RAX,0x4
IMUL RCX,RCX,0x804
ADD RAX,RCX
MOV qword ptr [RSP + 0x48],RAX
MOV EAX,dword ptr [0x001c4e50]
MOV EDI,EAX
CALL 0x0010fb40
MOV qword ptr [RSP + 0x40],RAX
MOV RDI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x50]
XOR ESI,ESI
CALL 0x0010f650
MOV qword ptr [RSP + 0x38],0x0
LAB_0011519f:
MOV RAX,qword ptr [RSP + 0x38]
MOV RCX,qword ptr [RSP + 0x48]
MOV ECX,dword ptr [RCX + 0x800]
CMP RAX,RCX
JNC 0x0011522a
MOV RAX,qword ptr [RSP + 0x48]
MOV RCX,qword ptr [RSP + 0x38]
MOV EAX,dword ptr [RAX + RCX*0x4]
MOV qword ptr [RSP + 0x30],RAX
MOV RAX,qword ptr [RSP + 0x30]
SHR RAX,0x3
CMP RAX,qword ptr [RSP + 0x50]
JNC 0x00115204
MOV RCX,qword ptr [RSP + 0x30]
AND RCX,0x3f
MOV EAX,0x1
SHL RAX,CL
MOV RCX,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x30]
SHR RDX,0x6
OR RAX,qword ptr [RCX + RDX*0x8]
MOV qword ptr [RCX + RDX*0x8],RAX
MOV qword ptr [RSP + 0x10],RAX
JMP 0x0011520d
LAB_00115204:
XOR EAX,EAX
MOV qword ptr [RSP + 0x10],RAX
JMP 0x0011520d
LAB_0011520d:
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x28],RAX
MOV RAX,qword ptr [RSP + 0x38]
ADD RAX,0x1
MOV qword ptr [RSP + 0x38],RAX
JMP 0x0011519f
LAB_0011522a:
CALL 0x0010fb60
MOV RDI,RAX
MOV RSI,qword ptr [RSP + 0x50]
MOV RDX,qword ptr [RSP + 0x40]
CALL 0x00110780
MOV dword ptr [RSP + 0x5c],EAX
CMP dword ptr [RSP + 0x5c],0x0
JZ 0x0011527a
MOV RAX,qword ptr [0x001bffa8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x8],RAX
MOV EDI,dword ptr [RSP + 0x5c]
CALL 0x0010f300
MOV RDI,qword ptr [RSP + 0x8]
MOV RDX,RAX
LEA RSI,[0x1abd6a]
MOV AL,0x0
CALL 0x00110270
LAB_0011527a:
MOV RDI,qword ptr [RSP + 0x40]
CALL 0x001101d0
LAB_00115284:
ADD RSP,0x68
RET
|
void set_numa_thread_affinity(uint param_1)
{
uint uVar1;
FILE *pFVar2;
int iVar3;
ulong uVar4;
pthread_t pVar5;
char *pcVar6;
cpu_set_t *__cpuset;
ulong local_30;
uint local_8;
uVar4 = ggml_is_numa();
if ((uVar4 & 1) != 0) {
uVar4 = (ulong)((uint)((ulong)DAT_001c4e50 + 0x3f >> 3) & 0xfffffff8);
if (g_state == 1) {
local_8 = param_1 % DAT_001c4e4c;
}
else {
if (g_state != 2) {
if (g_state != 3) {
return;
}
pVar5 = pthread_self();
iVar3 = pthread_setaffinity_np(pVar5,uVar4,(cpu_set_t *)&DAT_001c4e58);
if (iVar3 == 0) {
return;
}
pFVar2 = *(FILE **)PTR_stderr_001bffa8;
pcVar6 = strerror(iVar3);
fprintf(pFVar2,"warning: pthread_setaffinity_np() failed: %s\n",pcVar6);
return;
}
local_8 = DAT_001c4e54;
}
__cpuset = __sched_cpualloc((ulong)DAT_001c4e50);
memset(__cpuset,0,uVar4);
for (local_30 = 0; local_30 < *(uint *)(&DAT_001c162c + (long)(int)local_8 * 0x804);
local_30 = local_30 + 1) {
uVar1 = *(uint *)((long)(int)local_8 * 0x804 + 0x1c0e2c + local_30 * 4);
if (uVar1 >> 3 < uVar4) {
__cpuset->__bits[uVar1 >> 6] = 1L << ((byte)uVar1 & 0x3f) | __cpuset->__bits[uVar1 >> 6];
}
}
pVar5 = pthread_self();
iVar3 = pthread_setaffinity_np(pVar5,uVar4,__cpuset);
if (iVar3 != 0) {
pFVar2 = *(FILE **)PTR_stderr_001bffa8;
pcVar6 = strerror(iVar3);
fprintf(pFVar2,"warning: pthread_setaffinity_np() failed: %s\n",pcVar6);
}
__sched_cpufree(__cpuset);
}
return;
}
| |
25,186 | ma_state_info_write | eloqsql/storage/maria/ma_open.c | uint _ma_state_info_write(MARIA_SHARE *share, uint pWrite)
{
uint res;
if (share->options & HA_OPTION_READ_ONLY_DATA)
return 0;
if (pWrite & MA_STATE_INFO_WRITE_LOCK)
mysql_mutex_lock(&share->intern_lock);
else if (maria_multi_threaded && !share->temporary)
mysql_mutex_assert_owner(&share->intern_lock);
if (share->base.born_transactional && translog_status == TRANSLOG_OK &&
!maria_in_recovery)
{
/*
In a recovery, we want to set is_of_horizon to the LSN of the last
record executed by Recovery, not the current EOF of the log (which
is too new). Recovery does it by itself.
*/
share->state.is_of_horizon= translog_get_horizon();
DBUG_PRINT("info", ("is_of_horizon set to LSN " LSN_FMT "",
LSN_IN_PARTS(share->state.is_of_horizon)));
}
res= _ma_state_info_write_sub(share->kfile.file, &share->state, pWrite);
if (pWrite & MA_STATE_INFO_WRITE_LOCK)
mysql_mutex_unlock(&share->intern_lock);
/* If open_count != 0 we have to write the state again at close */
share->changed= share->state.open_count != 0;
return res;
} | O0 | c | ma_state_info_write:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq 0x720(%rax), %rax
andq $0x10000, %rax # imm = 0x10000
cmpq $0x0, %rax
je 0x655b2
movl $0x0, -0x4(%rbp)
jmp 0x65699
movl -0x14(%rbp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x655db
movq -0x10(%rbp), %rdi
addq $0x8f0, %rdi # imm = 0x8F0
leaq 0xed32b(%rip), %rsi # 0x1528fa
movl $0x5e3, %edx # imm = 0x5E3
callq 0x626e0
jmp 0x655ff
leaq 0x412b9f(%rip), %rax # 0x478181
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x655fd
movq -0x10(%rbp), %rax
cmpb $0x0, 0x7d9(%rax)
jne 0x655fd
jmp 0x655f9
jmp 0x655fb
jmp 0x655fd
jmp 0x655ff
movq -0x10(%rbp), %rax
movsbl 0x44c(%rax), %eax
cmpl $0x0, %eax
je 0x65640
leaq 0x412b9a(%rip), %rax # 0x4781b0
cmpl $0x1, (%rax)
jne 0x65640
leaq 0x412b60(%rip), %rax # 0x478182
cmpb $0x0, (%rax)
jne 0x65640
movb $0x0, %al
callq 0x54bc0
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x180(%rax)
jmp 0x6563e
jmp 0x65640
movq -0x10(%rbp), %rax
movl 0x760(%rax), %edi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
callq 0x656b0
movl %eax, -0x18(%rbp)
movl -0x14(%rbp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x65674
movq -0x10(%rbp), %rdi
addq $0x8f0, %rdi # imm = 0x8F0
callq 0x65390
movq -0x10(%rbp), %rax
cmpl $0x0, 0x16c(%rax)
setne %al
andb $0x1, %al
movzbl %al, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x7de(%rax)
movl -0x18(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ma_state_info_write:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov rax, [rbp+var_10]
mov rax, [rax+720h]
and rax, 10000h
cmp rax, 0
jz short loc_655B2
mov [rbp+var_4], 0
jmp loc_65699
loc_655B2:
mov eax, [rbp+var_14]
and eax, 4
cmp eax, 0
jz short loc_655DB
mov rdi, [rbp+var_10]
add rdi, 8F0h
lea rsi, aWorkspaceLlm4b_14; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 5E3h
call inline_mysql_mutex_lock_11
jmp short loc_655FF
loc_655DB:
lea rax, maria_multi_threaded
movsx eax, byte ptr [rax]
cmp eax, 0
jz short loc_655FD
mov rax, [rbp+var_10]
cmp byte ptr [rax+7D9h], 0
jnz short loc_655FD
jmp short $+2
loc_655F9:
jmp short $+2
loc_655FB:
jmp short $+2
loc_655FD:
jmp short $+2
loc_655FF:
mov rax, [rbp+var_10]
movsx eax, byte ptr [rax+44Ch]
cmp eax, 0
jz short loc_65640
lea rax, translog_status
cmp dword ptr [rax], 1
jnz short loc_65640
lea rax, maria_in_recovery
cmp byte ptr [rax], 0
jnz short loc_65640
mov al, 0
call translog_get_horizon
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+180h], rcx
jmp short $+2
loc_6563E:
jmp short $+2
loc_65640:
mov rax, [rbp+var_10]
mov edi, [rax+760h]
mov rsi, [rbp+var_10]
mov edx, [rbp+var_14]
call _ma_state_info_write_sub
mov [rbp+var_18], eax
mov eax, [rbp+var_14]
and eax, 4
cmp eax, 0
jz short loc_65674
mov rdi, [rbp+var_10]
add rdi, 8F0h
call inline_mysql_mutex_unlock_11
loc_65674:
mov rax, [rbp+var_10]
cmp dword ptr [rax+16Ch], 0
setnz al
and al, 1
movzx eax, al
mov cl, al
mov rax, [rbp+var_10]
mov [rax+7DEh], cl
mov eax, [rbp+var_18]
mov [rbp+var_4], eax
loc_65699:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
| long long ma_state_info_write(long long a1, unsigned int a2)
{
unsigned int v3; // [rsp+8h] [rbp-18h]
if ( (*(_QWORD *)(a1 + 1824) & 0x10000LL) != 0 )
{
return 0;
}
else
{
if ( (a2 & 4) != 0 )
inline_mysql_mutex_lock_11(
a1 + 2288,
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_open.c",
0x5E3u);
if ( *(_BYTE *)(a1 + 1100) && translog_status == 1 && !maria_in_recovery )
*(_QWORD *)(a1 + 384) = translog_get_horizon();
v3 = ma_state_info_write_sub(*(unsigned int *)(a1 + 1888), a1, a2);
if ( (a2 & 4) != 0 )
inline_mysql_mutex_unlock_11(a1 + 2288);
*(_BYTE *)(a1 + 2014) = *(_DWORD *)(a1 + 364) != 0;
return v3;
}
}
| _ma_state_info_write:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x720]
AND RAX,0x10000
CMP RAX,0x0
JZ 0x001655b2
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00165699
LAB_001655b2:
MOV EAX,dword ptr [RBP + -0x14]
AND EAX,0x4
CMP EAX,0x0
JZ 0x001655db
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x8f0
LEA RSI,[0x2528fa]
MOV EDX,0x5e3
CALL 0x001626e0
JMP 0x001655ff
LAB_001655db:
LEA RAX,[0x578181]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
JZ 0x001655fd
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX + 0x7d9],0x0
JNZ 0x001655fd
JMP 0x001655f9
LAB_001655f9:
JMP 0x001655fb
LAB_001655fb:
JMP 0x001655fd
LAB_001655fd:
JMP 0x001655ff
LAB_001655ff:
MOV RAX,qword ptr [RBP + -0x10]
MOVSX EAX,byte ptr [RAX + 0x44c]
CMP EAX,0x0
JZ 0x00165640
LEA RAX,[0x5781b0]
CMP dword ptr [RAX],0x1
JNZ 0x00165640
LEA RAX,[0x578182]
CMP byte ptr [RAX],0x0
JNZ 0x00165640
MOV AL,0x0
CALL 0x00154bc0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x180],RCX
JMP 0x0016563e
LAB_0016563e:
JMP 0x00165640
LAB_00165640:
MOV RAX,qword ptr [RBP + -0x10]
MOV EDI,dword ptr [RAX + 0x760]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RBP + -0x14]
CALL 0x001656b0
MOV dword ptr [RBP + -0x18],EAX
MOV EAX,dword ptr [RBP + -0x14]
AND EAX,0x4
CMP EAX,0x0
JZ 0x00165674
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x8f0
CALL 0x00165390
LAB_00165674:
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x16c],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x7de],CL
MOV EAX,dword ptr [RBP + -0x18]
MOV dword ptr [RBP + -0x4],EAX
LAB_00165699:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int4 _ma_state_info_write(long param_1,uint param_2)
{
int8 uVar1;
int4 local_c;
if ((*(ulong *)(param_1 + 0x720) & 0x10000) == 0) {
if ((param_2 & 4) != 0) {
inline_mysql_mutex_lock
(param_1 + 0x8f0,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_open.c",
0x5e3);
}
if (((*(char *)(param_1 + 0x44c) != '\0') && (translog_status == 1)) &&
(maria_in_recovery == '\0')) {
uVar1 = translog_get_horizon();
*(int8 *)(param_1 + 0x180) = uVar1;
}
local_c = _ma_state_info_write_sub(*(int4 *)(param_1 + 0x760),param_1,param_2);
if ((param_2 & 4) != 0) {
inline_mysql_mutex_unlock(param_1 + 0x8f0);
}
*(bool *)(param_1 + 0x7de) = *(int *)(param_1 + 0x16c) != 0;
}
else {
local_c = 0;
}
return local_c;
}
| |
25,187 | coro::detail::sync_wait_task<void> coro::detail::make_sync_wait_task<coro::task<void>, void>(coro::task<void>&&) (.resume) | AlayaLite/build_O0/_deps/libcoro-src/include/coro/sync_wait.hpp | static auto make_sync_wait_task(awaitable_type&& a) -> sync_wait_task<return_type>
{
if constexpr (std::is_void_v<return_type>)
{
co_await std::forward<awaitable_type>(a);
co_return;
}
else
{
co_return co_await std::forward<awaitable_type>(a);
}
} | O0 | cpp | coro::detail::sync_wait_task<void> coro::detail::make_sync_wait_task<coro::task<void>, void>(coro::task<void>&&) (.resume):
subq $0xc8, %rsp
movq %rdi, 0x58(%rsp)
movq %rdi, 0xc0(%rsp)
movq %rdi, %rax
addq $0x20, %rax
movq %rax, 0x60(%rsp)
movq %rdi, %rax
addq $0x31, %rax
movq %rax, 0x68(%rsp)
movq %rdi, %rax
addq $0x28, %rax
movq %rax, 0x70(%rsp)
movq %rdi, %rax
addq $0x32, %rax
movq %rax, 0x78(%rsp)
addq $0x10, %rdi
movq %rdi, 0x80(%rsp)
jmp 0x641cd
jmp 0x63f27
jmp 0x63f29
xorl %eax, %eax
testb %al, %al
jne 0x63f52
jmp 0x63f31
xorl %eax, %eax
testb %al, %al
jne 0x641a4
jmp 0x63f3d
movl $0x2, %eax
movl %eax, 0x54(%rsp)
jmp 0x63f48
movl 0x54(%rsp), %eax
movl %eax, 0x50(%rsp)
jmp 0x63f6a
movq 0x68(%rsp), %rdi
callq 0x64d50
xorl %eax, %eax
movl %eax, 0x4c(%rsp)
movl 0x4c(%rsp), %eax
movl %eax, 0x50(%rsp)
movl 0x50(%rsp), %eax
cmpl $0x0, %eax
movl %eax, 0x48(%rsp)
je 0x63f84
movl 0x48(%rsp), %eax
movl %eax, 0x44(%rsp)
jmp 0x64167
movq 0x60(%rsp), %rax
movq (%rax), %rdi
callq 0x64d60
movq 0x70(%rsp), %rdi
movq %rax, (%rdi)
callq 0x64d90
testb $0x1, %al
jne 0x640ca
movq 0x58(%rsp), %rax
movb $0x1, 0x30(%rax)
movq 0x58(%rsp), %rsi
movq 0x70(%rsp), %rdi
callq 0x60b20
movq %rax, 0x38(%rsp)
jmp 0x63fc5
movq 0x38(%rsp), %rdi
movq (%rdi), %rax
addq $0xc8, %rsp
jmpq *%rax
jmp 0x63fd8
jmp 0x63fda
xorl %eax, %eax
testb %al, %al
jne 0x640ca
jmp 0x63fe6
xorl %eax, %eax
testb %al, %al
jne 0x641a4
jmp 0x63ff2
movl $0x2, %eax
movl %eax, 0x34(%rsp)
jmp 0x63ffd
movl 0x34(%rsp), %eax
movl %eax, 0x30(%rsp)
jmp 0x640e6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa8(%rsp)
movl %eax, 0xb4(%rsp)
movq 0xa8(%rsp), %rdi
callq 0x152d0
movq 0x80(%rsp), %rdi
callq 0x64e70
callq 0x15ce0
jmp 0x6403f
jmp 0x64041
jmp 0x64043
movq 0x80(%rsp), %rdi
callq 0x64eb0
movq 0x78(%rsp), %rdi
callq 0x64ec0
testb $0x1, %al
jne 0x64128
movq 0x58(%rsp), %rax
movq $0x0, (%rax)
movb $0x2, 0x30(%rax)
movq 0x58(%rsp), %rsi
movq 0x78(%rsp), %rdi
callq 0x60b80
movb $-0x1, %al
movb %al, 0x2f(%rsp)
jmp 0x64091
movb $0x1, %al
movb %al, 0x2f(%rsp)
jmp 0x64091
movb 0x2f(%rsp), %al
movb %al, 0x2e(%rsp)
movb 0x2e(%rsp), %al
testb %al, %al
je 0x64128
jmp 0x640a7
movb 0x2e(%rsp), %al
subb $0x1, %al
jne 0x641a4
jmp 0x640b5
movl $0x2, %eax
movl %eax, 0x28(%rsp)
jmp 0x640c0
movl 0x28(%rsp), %eax
movl %eax, 0x24(%rsp)
jmp 0x64140
movq 0x70(%rsp), %rdi
callq 0x64e40
jmp 0x640d6
xorl %eax, %eax
movl %eax, 0x20(%rsp)
jmp 0x640de
movl 0x20(%rsp), %eax
movl %eax, 0x30(%rsp)
movl 0x30(%rsp), %eax
cmpl $0x0, %eax
movl %eax, 0x1c(%rsp)
je 0x640fd
movl 0x1c(%rsp), %eax
movl %eax, 0x44(%rsp)
jmp 0x64167
movq 0x80(%rsp), %rdi
callq 0x64e60
jmp 0x64043
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa8(%rsp)
movl %eax, 0xb4(%rsp)
jmp 0x641ae
movq 0x78(%rsp), %rdi
callq 0x64f10
xorl %eax, %eax
movl %eax, 0x18(%rsp)
movl 0x18(%rsp), %eax
movl %eax, 0x24(%rsp)
movl 0x24(%rsp), %eax
cmpl $0x0, %eax
movl %eax, 0x14(%rsp)
je 0x64157
movl 0x14(%rsp), %eax
movl %eax, 0x44(%rsp)
jmp 0x64167
xorl %eax, %eax
movl %eax, 0x10(%rsp)
jmp 0x6415f
movl 0x10(%rsp), %eax
movl %eax, 0x44(%rsp)
movq 0x80(%rsp), %rdi
movl 0x44(%rsp), %eax
movl %eax, 0xc(%rsp)
callq 0x64f20
movq 0x58(%rsp), %rax
cmpq $0x0, %rax
je 0x64196
movq 0x58(%rsp), %rdi
movl $0x38, %esi
callq 0x15780
movl 0xc(%rsp), %eax
testl %eax, %eax
je 0x641a2
jmp 0x641a0
jmp 0x641a4
jmp 0x641a4
jmp 0x641a6
addq $0xc8, %rsp
retq
movq 0x58(%rsp), %rax
movq $0x0, (%rax)
movb $0x2, 0x30(%rax)
jmp 0x641c0
movq 0xa8(%rsp), %rdi
callq 0x15dd0
movq 0x58(%rsp), %rax
movb 0x30(%rax), %al
movb %al, 0xb(%rsp)
subb $0x2, %al
je 0x64089
jmp 0x641e3
movb 0xb(%rsp), %al
testb $0x3, %al
je 0x63f25
jmp 0x641f1
jmp 0x63fd6
nopw %cs:(%rax,%rax)
| _ZN4coro6detailL19make_sync_wait_taskITkNS_8concepts9awaitableENS_4taskIvEEvEENS0_14sync_wait_taskIT0_EEOT__destroy:
sub rsp, 0C8h
mov [rsp+0C8h+var_70], rdi
mov [rsp+0C8h+var_8], rdi
mov rax, rdi
add rax, 20h ; ' '
mov [rsp+0C8h+var_68], rax
mov rax, rdi
add rax, 31h ; '1'
mov [rsp+0C8h+var_60], rax
mov rax, rdi
add rax, 28h ; '('
mov [rsp+0C8h+var_58], rax
mov rax, rdi
add rax, 32h ; '2'
mov [rsp+0C8h+var_50], rax
add rdi, 10h
mov [rsp+0C8h+var_48], rdi
jmp loc_641CD
loc_63F25:
jmp short $+2
loc_63F27:
jmp short $+2
loc_63F29:
xor eax, eax
test al, al
jnz short loc_63F52
jmp short $+2
loc_63F31:
xor eax, eax
test al, al
jnz loc_641A4
jmp short $+2
loc_63F3D:
mov eax, 2
mov [rsp+0C8h+var_74], eax
jmp short $+2
loc_63F48:
mov eax, [rsp+0C8h+var_74]
mov [rsp+0C8h+var_78], eax
jmp short loc_63F6A
loc_63F52:
mov rdi, [rsp+0C8h+var_60]; this
call _ZNKSt7__n486114suspend_always12await_resumeEv; std::__n4861::suspend_always::await_resume(void)
xor eax, eax
mov [rsp+0C8h+var_7C], eax
mov eax, [rsp+0C8h+var_7C]
mov [rsp+0C8h+var_78], eax
loc_63F6A:
mov eax, [rsp+0C8h+var_78]
cmp eax, 0
mov [rsp+0C8h+var_80], eax
jz short loc_63F84
mov eax, [rsp+0C8h+var_80]
mov [rsp+0C8h+var_84], eax
jmp loc_64167
loc_63F84:
mov rax, [rsp+0C8h+var_68]
mov rdi, [rax]
call _ZNKO4coro4taskIvEawEv; coro::task<void>::operator co_await(void)
mov rdi, [rsp+0C8h+var_58]
mov [rdi], rax
call _ZNK4coro4taskIvE14awaitable_base11await_readyEv; coro::task<void>::awaitable_base::await_ready(void)
test al, 1
jnz loc_640CA
mov rax, [rsp+0C8h+var_70]
mov byte ptr [rax+30h], 1
mov rsi, [rsp+0C8h+var_70]
mov rdi, [rsp+0C8h+var_58]
call sub_60B20
mov [rsp+0C8h+var_90], rax
jmp short $+2
loc_63FC5:
mov rdi, [rsp+0C8h+var_90]
mov rax, [rdi]
add rsp, 0C8h
jmp rax
loc_63FD6:
jmp short $+2
loc_63FD8:
jmp short $+2
loc_63FDA:
xor eax, eax
test al, al
jnz loc_640CA
jmp short $+2
loc_63FE6:
xor eax, eax
test al, al
jnz loc_641A4
jmp short $+2
loc_63FF2:
mov eax, 2
mov [rsp+0C8h+var_94], eax
jmp short $+2
loc_63FFD:
mov eax, [rsp+0C8h+var_94]
mov [rsp+0C8h+var_98], eax
jmp loc_640E6
mov rcx, rax
mov eax, edx
mov [rsp+0C8h+var_20], rcx
mov [rsp+0C8h+var_14], eax
mov rdi, [rsp+0C8h+var_20]; void *
call ___cxa_begin_catch
mov rdi, [rsp+0C8h+var_48]; this
call _ZN4coro6detail27sync_wait_task_promise_base19unhandled_exceptionEv; coro::detail::sync_wait_task_promise_base::unhandled_exception(void)
call ___cxa_end_catch
jmp short $+2
loc_6403F:
jmp short $+2
loc_64041:
jmp short $+2
loc_64043:
mov rdi, [rsp+0C8h+var_48]
call _ZN4coro6detail22sync_wait_task_promiseIvE13final_suspendEv; coro::detail::sync_wait_task_promise<void>::final_suspend(void)
mov rdi, [rsp+0C8h+var_50]
call _ZZN4coro6detail22sync_wait_task_promiseIvE13final_suspendEvENK19completion_notifier11await_readyEv; coro::detail::sync_wait_task_promise<void>::final_suspend(void)::completion_notifier::await_ready(void)
test al, 1
jnz loc_64128
mov rax, [rsp+0C8h+var_70]
mov qword ptr [rax], 0
mov byte ptr [rax+30h], 2
mov rsi, [rsp+0C8h+var_70]
mov rdi, [rsp+0C8h+var_50]
call sub_60B80
mov al, 0FFh
mov [rsp+0C8h+var_99], al
jmp short loc_64091
loc_64089:
mov al, 1
mov [rsp+0C8h+var_99], al
jmp short $+2
loc_64091:
mov al, [rsp+0C8h+var_99]
mov [rsp+0C8h+var_9A], al
mov al, [rsp+0C8h+var_9A]
test al, al
jz loc_64128
jmp short $+2
loc_640A7:
mov al, [rsp+0C8h+var_9A]
sub al, 1
jnz loc_641A4
jmp short $+2
loc_640B5:
mov eax, 2
mov [rsp+0C8h+var_A0], eax
jmp short $+2
loc_640C0:
mov eax, [rsp+0C8h+var_A0]
mov [rsp+0C8h+var_A4], eax
jmp short loc_64140
loc_640CA:
mov rdi, [rsp+0C8h+var_58]
call _ZZNKO4coro4taskIvEawEvEN9awaitable12await_resumeEv; coro::task<void>::operator co_await(void)::awaitable::await_resume(void)
jmp short $+2
loc_640D6:
xor eax, eax
mov [rsp+0C8h+var_A8], eax
jmp short $+2
loc_640DE:
mov eax, [rsp+0C8h+var_A8]
mov [rsp+0C8h+var_98], eax
loc_640E6:
mov eax, [rsp+0C8h+var_98]
cmp eax, 0
mov [rsp+0C8h+var_AC], eax
jz short loc_640FD
mov eax, [rsp+0C8h+var_AC]
mov [rsp+0C8h+var_84], eax
jmp short loc_64167
loc_640FD:
mov rdi, [rsp+0C8h+var_48]
call _ZN4coro6detail22sync_wait_task_promiseIvE11return_voidEv; coro::detail::sync_wait_task_promise<void>::return_void(void)
jmp loc_64043
mov rcx, rax
mov eax, edx
mov [rsp+arg_A0], rcx
mov [rsp+arg_AC], eax
jmp loc_641AE
loc_64128:
mov rdi, [rsp+0C8h+var_50]
call _ZZN4coro6detail22sync_wait_task_promiseIvE13final_suspendEvEN19completion_notifier12await_resumeEv; coro::detail::sync_wait_task_promise<void>::final_suspend(void)::completion_notifier::await_resume(void)
xor eax, eax
mov [rsp+0C8h+var_B0], eax
mov eax, [rsp+0C8h+var_B0]
mov [rsp+0C8h+var_A4], eax
loc_64140:
mov eax, [rsp+0C8h+var_A4]
cmp eax, 0
mov [rsp+0C8h+var_B4], eax
jz short loc_64157
mov eax, [rsp+0C8h+var_B4]
mov [rsp+0C8h+var_84], eax
jmp short loc_64167
loc_64157:
xor eax, eax
mov [rsp+0C8h+var_B8], eax
jmp short $+2
loc_6415F:
mov eax, [rsp+0C8h+var_B8]
mov [rsp+0C8h+var_84], eax
loc_64167:
mov rdi, [rsp+0C8h+var_48]
mov eax, [rsp+0C8h+var_84]
mov [rsp+0C8h+var_BC], eax
call _ZN4coro6detail22sync_wait_task_promiseIvED2Ev; coro::detail::sync_wait_task_promise<void>::~sync_wait_task_promise()
mov rax, [rsp+0C8h+var_70]
cmp rax, 0
jz short loc_64196
mov rdi, [rsp+0C8h+var_70]; void *
mov esi, 38h ; '8'; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_64196:
mov eax, [rsp+0C8h+var_BC]
test eax, eax
jz short loc_641A2
jmp short $+2
loc_641A0:
jmp short loc_641A4
loc_641A2:
jmp short $+2
loc_641A4:
jmp short $+2
loc_641A6:
add rsp, 0C8h
retn
loc_641AE:
mov rax, [rsp+arg_50]
mov qword ptr [rax], 0
mov byte ptr [rax+30h], 2
jmp short $+2
loc_641C0:
mov rdi, [rsp+arg_A0]
call __Unwind_Resume
loc_641CD:
mov rax, [rsp+0C8h+var_70]
mov al, [rax+30h]
mov [rsp+0C8h+var_BD], al
sub al, 2
jz loc_64089
jmp short $+2
loc_641E3:
mov al, [rsp+0C8h+var_BD]
test al, 3
jz loc_63F25
jmp short $+2
loc_641F1:
jmp loc_63FD6
| char ZN4coro6detailL19make_sync_wait_taskITkNS_8concepts9awaitableENS_4taskIvEEvEENS0_14sync_wait_taskIT0_EEOT__destroy(
char *a1)
{
coro::detail::sync_wait_task_promise<void>::~sync_wait_task_promise(a1 + 16);
if ( a1 )
operator delete(a1, 0x38uLL);
return 2;
}
| _ZN4coro6detailL19make_sync_wait_taskITkNS_8concepts9awaitableENS_4taskIvEEvEENS0_14sync_wait_taskIT0_EEOT_.destroy:
SUB RSP,0xc8
MOV qword ptr [RSP + 0x58],RDI
MOV qword ptr [RSP + 0xc0],RDI
MOV RAX,RDI
ADD RAX,0x20
MOV qword ptr [RSP + 0x60],RAX
MOV RAX,RDI
ADD RAX,0x31
MOV qword ptr [RSP + 0x68],RAX
MOV RAX,RDI
ADD RAX,0x28
MOV qword ptr [RSP + 0x70],RAX
MOV RAX,RDI
ADD RAX,0x32
MOV qword ptr [RSP + 0x78],RAX
ADD RDI,0x10
MOV qword ptr [RSP + 0x80],RDI
JMP 0x001641cd
LAB_00163f25:
JMP 0x00163f27
LAB_00163f27:
JMP 0x00163f29
LAB_00163f29:
XOR EAX,EAX
TEST AL,AL
JNZ 0x00163f52
JMP 0x00163f31
LAB_00163f31:
XOR EAX,EAX
TEST AL,AL
JNZ 0x001641a4
JMP 0x00163f3d
LAB_00163f3d:
MOV EAX,0x2
MOV dword ptr [RSP + 0x54],EAX
JMP 0x00163f48
LAB_00163f48:
MOV EAX,dword ptr [RSP + 0x54]
MOV dword ptr [RSP + 0x50],EAX
JMP 0x00163f6a
LAB_00163f52:
MOV RDI,qword ptr [RSP + 0x68]
CALL 0x00164d50
XOR EAX,EAX
MOV dword ptr [RSP + 0x4c],EAX
MOV EAX,dword ptr [RSP + 0x4c]
MOV dword ptr [RSP + 0x50],EAX
LAB_00163f6a:
MOV EAX,dword ptr [RSP + 0x50]
CMP EAX,0x0
MOV dword ptr [RSP + 0x48],EAX
JZ 0x00163f84
MOV EAX,dword ptr [RSP + 0x48]
MOV dword ptr [RSP + 0x44],EAX
JMP 0x00164167
LAB_00163f84:
MOV RAX,qword ptr [RSP + 0x60]
MOV RDI,qword ptr [RAX]
CALL 0x00164d60
MOV RDI,qword ptr [RSP + 0x70]
MOV qword ptr [RDI],RAX
CALL 0x00164d90
TEST AL,0x1
JNZ 0x001640ca
MOV RAX,qword ptr [RSP + 0x58]
MOV byte ptr [RAX + 0x30],0x1
LAB_00163faf:
MOV RSI,qword ptr [RSP + 0x58]
MOV RDI,qword ptr [RSP + 0x70]
CALL 0x00160b20
LAB_00163fbe:
MOV qword ptr [RSP + 0x38],RAX
JMP 0x00163fc5
LAB_00163fc5:
MOV RDI,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RDI]
ADD RSP,0xc8
JMP RAX
LAB_00163fd6:
JMP 0x00163fd8
LAB_00163fd8:
JMP 0x00163fda
LAB_00163fda:
XOR EAX,EAX
TEST AL,AL
JNZ 0x001640ca
JMP 0x00163fe6
LAB_00163fe6:
XOR EAX,EAX
TEST AL,AL
JNZ 0x001641a4
JMP 0x00163ff2
LAB_00163ff2:
MOV EAX,0x2
MOV dword ptr [RSP + 0x34],EAX
JMP 0x00163ffd
LAB_00163ffd:
MOV EAX,dword ptr [RSP + 0x34]
MOV dword ptr [RSP + 0x30],EAX
JMP 0x001640e6
LAB_00164043:
MOV RDI,qword ptr [RSP + 0x80]
CALL 0x00164eb0
MOV RDI,qword ptr [RSP + 0x78]
CALL 0x00164ec0
TEST AL,0x1
JNZ 0x00164128
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RAX],0x0
MOV byte ptr [RAX + 0x30],0x2
MOV RSI,qword ptr [RSP + 0x58]
MOV RDI,qword ptr [RSP + 0x78]
CALL 0x00160b80
MOV AL,0xff
MOV byte ptr [RSP + 0x2f],AL
JMP 0x00164091
LAB_00164089:
MOV AL,0x1
MOV byte ptr [RSP + 0x2f],AL
JMP 0x00164091
LAB_00164091:
MOV AL,byte ptr [RSP + 0x2f]
MOV byte ptr [RSP + 0x2e],AL
MOV AL,byte ptr [RSP + 0x2e]
TEST AL,AL
JZ 0x00164128
JMP 0x001640a7
LAB_001640a7:
MOV AL,byte ptr [RSP + 0x2e]
SUB AL,0x1
JNZ 0x001641a4
JMP 0x001640b5
LAB_001640b5:
MOV EAX,0x2
MOV dword ptr [RSP + 0x28],EAX
JMP 0x001640c0
LAB_001640c0:
MOV EAX,dword ptr [RSP + 0x28]
MOV dword ptr [RSP + 0x24],EAX
JMP 0x00164140
LAB_001640ca:
MOV RDI,qword ptr [RSP + 0x70]
CALL 0x00164e40
LAB_001640d4:
JMP 0x001640d6
LAB_001640d6:
XOR EAX,EAX
MOV dword ptr [RSP + 0x20],EAX
JMP 0x001640de
LAB_001640de:
MOV EAX,dword ptr [RSP + 0x20]
MOV dword ptr [RSP + 0x30],EAX
LAB_001640e6:
MOV EAX,dword ptr [RSP + 0x30]
CMP EAX,0x0
MOV dword ptr [RSP + 0x1c],EAX
JZ 0x001640fd
MOV EAX,dword ptr [RSP + 0x1c]
MOV dword ptr [RSP + 0x44],EAX
JMP 0x00164167
LAB_001640fd:
MOV RDI,qword ptr [RSP + 0x80]
CALL 0x00164e60
JMP 0x00164043
LAB_00164128:
MOV RDI,qword ptr [RSP + 0x78]
CALL 0x00164f10
XOR EAX,EAX
MOV dword ptr [RSP + 0x18],EAX
MOV EAX,dword ptr [RSP + 0x18]
MOV dword ptr [RSP + 0x24],EAX
LAB_00164140:
MOV EAX,dword ptr [RSP + 0x24]
CMP EAX,0x0
MOV dword ptr [RSP + 0x14],EAX
JZ 0x00164157
MOV EAX,dword ptr [RSP + 0x14]
MOV dword ptr [RSP + 0x44],EAX
JMP 0x00164167
LAB_00164157:
XOR EAX,EAX
MOV dword ptr [RSP + 0x10],EAX
JMP 0x0016415f
LAB_0016415f:
MOV EAX,dword ptr [RSP + 0x10]
MOV dword ptr [RSP + 0x44],EAX
LAB_00164167:
MOV RDI,qword ptr [RSP + 0x80]
MOV EAX,dword ptr [RSP + 0x44]
MOV dword ptr [RSP + 0xc],EAX
CALL 0x00164f20
MOV RAX,qword ptr [RSP + 0x58]
CMP RAX,0x0
JZ 0x00164196
MOV RDI,qword ptr [RSP + 0x58]
MOV ESI,0x38
CALL 0x00115780
LAB_00164196:
MOV EAX,dword ptr [RSP + 0xc]
TEST EAX,EAX
JZ 0x001641a2
JMP 0x001641a0
LAB_001641a0:
JMP 0x001641a4
LAB_001641a2:
JMP 0x001641a4
LAB_001641a4:
JMP 0x001641a6
LAB_001641a6:
ADD RSP,0xc8
RET
LAB_001641cd:
MOV RAX,qword ptr [RSP + 0x58]
MOV AL,byte ptr [RAX + 0x30]
MOV byte ptr [RSP + 0xb],AL
SUB AL,0x2
JZ 0x00164089
JMP 0x001641e3
LAB_001641e3:
MOV AL,byte ptr [RSP + 0xb]
TEST AL,0x3
JZ 0x00163f25
JMP 0x001641f1
LAB_001641f1:
JMP 0x00163fd6
|
/* WARNING: Removing unreachable block (ram,0x00163f52) */
/* WARNING: Removing unreachable block (ram,0x00163f84) */
/* WARNING: Removing unreachable block (ram,0x00163fa6) */
/* WARNING: Removing unreachable block (ram,0x001640ca) */
/* WARNING: Removing unreachable block (ram,0x00164043) */
/* WARNING: Removing unreachable block (ram,0x00164062) */
/* WARNING: Removing unreachable block (ram,0x00164128) */
/* WARNING: Removing unreachable block (ram,0x00164157) */
/* WARNING: Removing unreachable block (ram,0x001641a2) */
void _ZN4coro6detailL19make_sync_wait_taskITkNS_8concepts9awaitableENS_4taskIvEEvEENS0_14sync_wait_taskIT0_EEOT__destroy
(void *param_1)
{
coro::detail::sync_wait_task_promise<void>::~sync_wait_task_promise
((sync_wait_task_promise<void> *)((long)param_1 + 0x10));
if (param_1 != (void *)0x0) {
operator_delete(param_1,0x38);
}
return;
}
| |
25,188 | my_end | eloqsql/mysys/my_init.c | void my_end(int infoflag)
{
/*
this code is suboptimal to workaround a bug in
Sun CC: Sun C++ 5.6 2004/06/02 for x86, and should not be
optimized until this compiler is not in use anymore
*/
FILE *info_file= DBUG_FILE;
my_bool print_info= (info_file != stderr);
if (!my_init_done)
return;
/*
We do not use DBUG_ENTER here, as after cleanup DBUG is no longer
operational, so we cannot use DBUG_RETURN.
*/
DBUG_PRINT("info",("Shutting down: infoflag: %d print_info: %d",
infoflag, print_info));
if (!info_file)
{
info_file= stderr;
print_info= 0;
}
if ((infoflag & MY_CHECK_ERROR) || print_info)
{ /* Test if some file is left open */
char ebuff[512];
uint i, open_files, open_streams;
for (open_streams= open_files= i= 0 ; i < my_file_limit ; i++)
{
if (my_file_info[i].type == UNOPEN)
continue;
if (my_file_info[i].type == STREAM_BY_FOPEN ||
my_file_info[i].type == STREAM_BY_FDOPEN)
open_streams++;
else
open_files++;
#ifdef EXTRA_DEBUG
fprintf(stderr, EE(EE_FILE_NOT_CLOSED), my_file_info[i].name, i);
fputc('\n', stderr);
#endif
}
if (open_files || open_streams)
{
my_snprintf(ebuff, sizeof(ebuff), EE(EE_OPEN_WARNING),
open_files, open_streams);
my_message_stderr(EE_OPEN_WARNING, ebuff, ME_BELL);
DBUG_PRINT("error", ("%s", ebuff));
}
#ifdef CHECK_UNLIKELY
end_my_likely(info_file);
#endif
}
free_charsets();
my_error_unregister_all();
my_once_free();
if ((infoflag & MY_GIVE_INFO) || print_info)
{
#ifdef HAVE_GETRUSAGE
struct rusage rus;
#ifdef HAVE_valgrind
/* Purify assumes that rus is uninitialized after getrusage call */
bzero((char*) &rus, sizeof(rus));
#endif
if (!getrusage(RUSAGE_SELF, &rus))
fprintf(info_file,"\n\
User time %.2f, System time %.2f\n\
Maximum resident set size %ld, Integral resident set size %ld\n\
Non-physical pagefaults %ld, Physical pagefaults %ld, Swaps %ld\n\
Blocks in %ld out %ld, Messages in %ld out %ld, Signals %ld\n\
Voluntary context switches %ld, Involuntary context switches %ld\n",
(rus.ru_utime.tv_sec * SCALE_SEC +
rus.ru_utime.tv_usec / SCALE_USEC) / 100.0,
(rus.ru_stime.tv_sec * SCALE_SEC +
rus.ru_stime.tv_usec / SCALE_USEC) / 100.0,
rus.ru_maxrss, rus.ru_idrss,
rus.ru_minflt, rus.ru_majflt,
rus.ru_nswap, rus.ru_inblock, rus.ru_oublock,
rus.ru_msgsnd, rus.ru_msgrcv, rus.ru_nsignals,
rus.ru_nvcsw, rus.ru_nivcsw);
#endif
#if defined(_MSC_VER)
_CrtSetReportMode( _CRT_WARN, _CRTDBG_MODE_FILE );
_CrtSetReportFile( _CRT_WARN, _CRTDBG_FILE_STDERR );
_CrtSetReportMode( _CRT_ERROR, _CRTDBG_MODE_FILE );
_CrtSetReportFile( _CRT_ERROR, _CRTDBG_FILE_STDERR );
_CrtSetReportMode( _CRT_ASSERT, _CRTDBG_MODE_FILE );
_CrtSetReportFile( _CRT_ASSERT, _CRTDBG_FILE_STDERR );
_CrtCheckMemory();
#endif
}
my_thread_end();
my_thread_global_end();
if (!(infoflag & MY_DONT_FREE_DBUG))
DBUG_END(); /* Must be done as late as possible */
my_mutex_end();
#if defined(SAFE_MUTEX)
/*
Check on destroying of mutexes. A few may be left that will get cleaned
up by C++ destructors
*/
safe_mutex_end((infoflag & (MY_GIVE_INFO | MY_CHECK_ERROR)) ? stderr :
(FILE *) 0);
#endif /* defined(SAFE_MUTEX) */
#ifdef _WIN32
WSACleanup();
#endif
/* At very last, delete mysys key, it is used everywhere including DBUG */
pthread_key_delete(THR_KEY_mysys);
my_init_done= my_thr_key_mysys_exists= 0;
} | O0 | c | my_end:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x308, %rsp # imm = 0x308
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movl %edi, -0x234(%rbp)
movq 0x1cb4a2(%rip), %rax # 0x2c3fe0
movq (%rax), %rax
movq %rax, -0x240(%rbp)
movq -0x240(%rbp), %rax
movq 0x1cb48a(%rip), %rcx # 0x2c3fe0
cmpq (%rcx), %rax
setne %al
andb $0x1, %al
movzbl %al, %eax
movb %al, -0x241(%rbp)
leaq 0xb90f22(%rip), %rax # 0xc89a90
cmpb $0x0, (%rax)
jne 0xf8b78
jmp 0xf8e71
jmp 0xf8b7a
jmp 0xf8b7c
cmpq $0x0, -0x240(%rbp)
jne 0xf8b9e
movq 0x1cb453(%rip), %rax # 0x2c3fe0
movq (%rax), %rax
movq %rax, -0x240(%rbp)
movb $0x0, -0x241(%rbp)
movl -0x234(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0xf8bbc
movsbl -0x241(%rbp), %eax
cmpl $0x0, %eax
je 0xf8cda
movl $0x0, -0x248(%rbp)
movl $0x0, -0x24c(%rbp)
movl $0x0, -0x250(%rbp)
movl -0x248(%rbp), %eax
leaq 0x1ce469(%rip), %rcx # 0x2c7050
cmpl (%rcx), %eax
jae 0xf8c7e
leaq 0x1ce462(%rip), %rax # 0x2c7058
movq (%rax), %rax
movl -0x248(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
cmpl $0x0, 0x8(%rax)
jne 0xf8c0e
jmp 0xf8c6a
leaq 0x1ce443(%rip), %rax # 0x2c7058
movq (%rax), %rax
movl -0x248(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
cmpl $0x3, 0x8(%rax)
je 0xf8c48
leaq 0x1ce426(%rip), %rax # 0x2c7058
movq (%rax), %rax
movl -0x248(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
cmpl $0x4, 0x8(%rax)
jne 0xf8c59
movl -0x250(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x250(%rbp)
jmp 0xf8c68
movl -0x24c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24c(%rbp)
jmp 0xf8c6a
movl -0x248(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x248(%rbp)
jmp 0xf8bda
cmpl $0x0, -0x24c(%rbp)
jne 0xf8c90
cmpl $0x0, -0x250(%rbp)
je 0xf8cd8
leaq -0x230(%rbp), %rdi
leaq 0x1ce912(%rip), %rax # 0x2c75b0
movq 0x90(%rax), %rdx
movl -0x24c(%rbp), %ecx
movl -0x250(%rbp), %r8d
movl $0x200, %esi # imm = 0x200
movb $0x0, %al
callq 0x153d00
leaq -0x230(%rbp), %rsi
movl $0x13, %edi
movl $0x4, %edx
callq 0xf9f50
jmp 0xf8cd6
jmp 0xf8cd8
jmp 0xf8cda
callq 0xdb2d0
callq 0xf2070
callq 0xfa300
movl -0x234(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
jne 0xf8d07
movsbl -0x241(%rbp), %eax
cmpl $0x0, %eax
je 0xf8e2c
xorl %edi, %edi
leaq -0x2e0(%rbp), %rsi
callq 0x2a880
cmpl $0x0, %eax
jne 0xf8e2a
movq -0x240(%rbp), %rdi
imulq $0x64, -0x2e0(%rbp), %rax
movq %rax, -0x2f0(%rbp)
movq -0x2d8(%rbp), %rax
movl $0x2710, %ecx # imm = 0x2710
cqto
idivq %rcx
movq %rax, %rcx
movq -0x2f0(%rbp), %rax
addq %rcx, %rax
cvtsi2sd %rax, %xmm0
movsd 0x66b31(%rip), %xmm1 # 0x15f890
divsd %xmm1, %xmm0
imulq $0x64, -0x2d0(%rbp), %rax
movq %rax, -0x2e8(%rbp)
movq -0x2c8(%rbp), %rax
movl $0x2710, %ecx # imm = 0x2710
cqto
idivq %rcx
movq %rax, %rcx
movq -0x2e8(%rbp), %rax
addq %rcx, %rax
cvtsi2sd %rax, %xmm1
movsd 0x66af3(%rip), %xmm2 # 0x15f890
divsd %xmm2, %xmm1
movq -0x2c0(%rbp), %rdx
movq -0x2b0(%rbp), %rcx
movq -0x2a0(%rbp), %r8
movq -0x298(%rbp), %r9
movq -0x290(%rbp), %r13
movq -0x288(%rbp), %r12
movq -0x280(%rbp), %r15
movq -0x278(%rbp), %r14
movq -0x270(%rbp), %rbx
movq -0x268(%rbp), %r11
movq -0x260(%rbp), %r10
movq -0x258(%rbp), %rax
leaq 0x61f79(%rip), %rsi # 0x15ad75
movq %r13, (%rsp)
movq %r12, 0x8(%rsp)
movq %r15, 0x10(%rsp)
movq %r14, 0x18(%rsp)
movq %rbx, 0x20(%rsp)
movq %r11, 0x28(%rsp)
movq %r10, 0x30(%rsp)
movq %rax, 0x38(%rsp)
movb $0x2, %al
callq 0x2a180
jmp 0xf8e2c
callq 0xfc690
callq 0xfc400
movl -0x234(%rbp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
jne 0xf8e4a
jmp 0xf8e46
jmp 0xf8e48
jmp 0xf8e4a
callq 0xfff90
leaq 0xb9193e(%rip), %rax # 0xc8a794
movl (%rax), %edi
callq 0x2a6f0
leaq 0xb91668(%rip), %rax # 0xc8a4cc
movb $0x0, (%rax)
leaq 0xb90c22(%rip), %rax # 0xc89a90
movb $0x0, (%rax)
movq %fs:0x28, %rax
movq -0x30(%rbp), %rcx
cmpq %rcx, %rax
jne 0xf8e95
addq $0x308, %rsp # imm = 0x308
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2a250
nopw (%rax,%rax)
| my_end:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 308h
mov rax, fs:28h
mov [rbp+var_30], rax
mov [rbp+var_234], edi
mov rax, cs:stderr_ptr
mov rax, [rax]
mov [rbp+var_240], rax
mov rax, [rbp+var_240]
mov rcx, cs:stderr_ptr
cmp rax, [rcx]
setnz al
and al, 1
movzx eax, al
mov [rbp+var_241], al
lea rax, my_init_done
cmp byte ptr [rax], 0
jnz short loc_F8B78
jmp loc_F8E71
loc_F8B78:
jmp short $+2
loc_F8B7A:
jmp short $+2
loc_F8B7C:
cmp [rbp+var_240], 0
jnz short loc_F8B9E
mov rax, cs:stderr_ptr
mov rax, [rax]
mov [rbp+var_240], rax
mov [rbp+var_241], 0
loc_F8B9E:
mov eax, [rbp+var_234]
and eax, 1
cmp eax, 0
jnz short loc_F8BBC
movsx eax, [rbp+var_241]
cmp eax, 0
jz loc_F8CDA
loc_F8BBC:
mov [rbp+var_248], 0
mov [rbp+var_24C], 0
mov [rbp+var_250], 0
loc_F8BDA:
mov eax, [rbp+var_248]
lea rcx, my_file_limit
cmp eax, [rcx]
jnb loc_F8C7E
lea rax, my_file_info
mov rax, [rax]
mov ecx, [rbp+var_248]
shl rcx, 4
add rax, rcx
cmp dword ptr [rax+8], 0
jnz short loc_F8C0E
jmp short loc_F8C6A
loc_F8C0E:
lea rax, my_file_info
mov rax, [rax]
mov ecx, [rbp+var_248]
shl rcx, 4
add rax, rcx
cmp dword ptr [rax+8], 3
jz short loc_F8C48
lea rax, my_file_info
mov rax, [rax]
mov ecx, [rbp+var_248]
shl rcx, 4
add rax, rcx
cmp dword ptr [rax+8], 4
jnz short loc_F8C59
loc_F8C48:
mov eax, [rbp+var_250]
add eax, 1
mov [rbp+var_250], eax
jmp short loc_F8C68
loc_F8C59:
mov eax, [rbp+var_24C]
add eax, 1
mov [rbp+var_24C], eax
loc_F8C68:
jmp short $+2
loc_F8C6A:
mov eax, [rbp+var_248]
add eax, 1
mov [rbp+var_248], eax
jmp loc_F8BDA
loc_F8C7E:
cmp [rbp+var_24C], 0
jnz short loc_F8C90
cmp [rbp+var_250], 0
jz short loc_F8CD8
loc_F8C90:
lea rdi, [rbp+var_230]
lea rax, globerrs
mov rdx, [rax+90h]
mov ecx, [rbp+var_24C]
mov r8d, [rbp+var_250]
mov esi, 200h
mov al, 0
call my_snprintf
lea rsi, [rbp+var_230]
mov edi, 13h
mov edx, 4
call my_message_stderr
jmp short $+2
loc_F8CD6:
jmp short $+2
loc_F8CD8:
jmp short $+2
loc_F8CDA:
call free_charsets
call my_error_unregister_all
call my_once_free
mov eax, [rbp+var_234]
and eax, 2
cmp eax, 0
jnz short loc_F8D07
movsx eax, [rbp+var_241]
cmp eax, 0
jz loc_F8E2C
loc_F8D07:
xor edi, edi
lea rsi, [rbp+var_2E0]
call _getrusage
cmp eax, 0
jnz loc_F8E2A
mov rdi, [rbp+var_240]
imul rax, [rbp+var_2E0], 64h ; 'd'
mov [rbp+var_2F0], rax
mov rax, [rbp+var_2D8]
mov ecx, 2710h
cqo
idiv rcx
mov rcx, rax
mov rax, [rbp+var_2F0]
add rax, rcx
cvtsi2sd xmm0, rax
movsd xmm1, cs:qword_15F890
divsd xmm0, xmm1
imul rax, [rbp+var_2D0], 64h ; 'd'
mov [rbp+var_2E8], rax
mov rax, [rbp+var_2C8]
mov ecx, 2710h
cqo
idiv rcx
mov rcx, rax
mov rax, [rbp+var_2E8]
add rax, rcx
cvtsi2sd xmm1, rax
movsd xmm2, cs:qword_15F890
divsd xmm1, xmm2
mov rdx, [rbp+var_2C0]
mov rcx, [rbp+var_2B0]
mov r8, [rbp+var_2A0]
mov r9, [rbp+var_298]
mov r13, [rbp+var_290]
mov r12, [rbp+var_288]
mov r15, [rbp+var_280]
mov r14, [rbp+var_278]
mov rbx, [rbp+var_270]
mov r11, [rbp+var_268]
mov r10, [rbp+var_260]
mov rax, [rbp+var_258]
lea rsi, aUserTime2fSyst; "\nUser time %.2f, System time %.2f\nMax"...
mov [rsp+330h+var_330], r13
mov [rsp+330h+var_328], r12
mov [rsp+330h+var_320], r15
mov [rsp+330h+var_318], r14
mov [rsp+330h+var_310], rbx
mov [rsp+330h+var_308], r11
mov [rsp+330h+var_300], r10
mov [rsp+330h+var_2F8], rax
mov al, 2
call _fprintf
loc_F8E2A:
jmp short $+2
loc_F8E2C:
call my_thread_end
call my_thread_global_end
mov eax, [rbp+var_234]
and eax, 4
cmp eax, 0
jnz short loc_F8E4A
jmp short $+2
loc_F8E46:
jmp short $+2
loc_F8E48:
jmp short $+2
loc_F8E4A:
call my_mutex_end
lea rax, THR_KEY_mysys
mov edi, [rax]
call _pthread_key_delete
lea rax, my_thr_key_mysys_exists
mov byte ptr [rax], 0
lea rax, my_init_done
mov byte ptr [rax], 0
loc_F8E71:
mov rax, fs:28h
mov rcx, [rbp+var_30]
cmp rax, rcx
jnz short loc_F8E95
add rsp, 308h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_F8E95:
call ___stack_chk_fail
| unsigned long long my_end(int a1, long long a2, long long a3, long long a4, long long a5, int a6)
{
_QWORD v7[2]; // [rsp+50h] [rbp-2E0h] BYREF
long long v8; // [rsp+60h] [rbp-2D0h]
long long v9; // [rsp+68h] [rbp-2C8h]
long long v10; // [rsp+70h] [rbp-2C0h]
long long v11; // [rsp+80h] [rbp-2B0h]
long long v12; // [rsp+90h] [rbp-2A0h]
long long v13; // [rsp+98h] [rbp-298h]
long long v14; // [rsp+A0h] [rbp-290h]
long long v15; // [rsp+A8h] [rbp-288h]
long long v16; // [rsp+B0h] [rbp-280h]
long long v17; // [rsp+B8h] [rbp-278h]
long long v18; // [rsp+C0h] [rbp-270h]
long long v19; // [rsp+C8h] [rbp-268h]
long long v20; // [rsp+D0h] [rbp-260h]
long long v21; // [rsp+D8h] [rbp-258h]
int v22; // [rsp+E0h] [rbp-250h]
int v23; // [rsp+E4h] [rbp-24Ch]
unsigned int v24; // [rsp+E8h] [rbp-248h]
char v25; // [rsp+EFh] [rbp-241h]
long long v26; // [rsp+F0h] [rbp-240h]
int v27; // [rsp+FCh] [rbp-234h]
_BYTE v28[512]; // [rsp+100h] [rbp-230h] BYREF
unsigned long long v29; // [rsp+300h] [rbp-30h]
v29 = __readfsqword(0x28u);
v27 = a1;
v26 = stderr;
v25 = 0;
if ( my_init_done )
{
if ( !v26 )
{
v26 = stderr;
v25 = 0;
}
if ( (v27 & 1) != 0 )
{
v24 = 0;
v23 = 0;
v22 = 0;
while ( v24 < my_file_limit )
{
if ( *((_DWORD *)my_file_info + 4 * v24 + 2) )
{
if ( *((_DWORD *)my_file_info + 4 * v24 + 2) == 3 || *((_DWORD *)my_file_info + 4 * v24 + 2) == 4 )
++v22;
else
++v23;
}
++v24;
}
if ( v23 || v22 )
{
my_snprintf((unsigned int)v28, 512, (unsigned int)globerrs[18], v23, v22, a6);
my_message_stderr(19LL, v28, 4LL);
}
}
free_charsets();
my_error_unregister_all();
my_once_free();
if ( (v27 & 2) != 0 && !(unsigned int)getrusage(0LL, v7) )
fprintf(
v26,
"\n"
"User time %.2f, System time %.2f\n"
"Maximum resident set size %ld, Integral resident set size %ld\n"
"Non-physical pagefaults %ld, Physical pagefaults %ld, Swaps %ld\n"
"Blocks in %ld out %ld, Messages in %ld out %ld, Signals %ld\n"
"Voluntary context switches %ld, Involuntary context switches %ld\n",
(double)(int)(v7[1] / 10000LL + 100 * LODWORD(v7[0])) / 100.0,
(double)(int)(v9 / 10000 + 100 * v8) / 100.0,
v10,
v11,
v12,
v13,
v14,
v15,
v16,
v17,
v18,
v19,
v20,
v21);
my_thread_end();
my_thread_global_end();
my_mutex_end();
pthread_key_delete(THR_KEY_mysys);
my_thr_key_mysys_exists = 0;
my_init_done = 0;
}
return __readfsqword(0x28u);
}
| my_end:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x308
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV dword ptr [RBP + -0x234],EDI
MOV RAX,qword ptr [0x003c3fe0]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x240],RAX
MOV RAX,qword ptr [RBP + -0x240]
MOV RCX,qword ptr [0x003c3fe0]
CMP RAX,qword ptr [RCX]
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
MOV byte ptr [RBP + -0x241],AL
LEA RAX,[0xd89a90]
CMP byte ptr [RAX],0x0
JNZ 0x001f8b78
JMP 0x001f8e71
LAB_001f8b78:
JMP 0x001f8b7a
LAB_001f8b7a:
JMP 0x001f8b7c
LAB_001f8b7c:
CMP qword ptr [RBP + -0x240],0x0
JNZ 0x001f8b9e
MOV RAX,qword ptr [0x003c3fe0]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x240],RAX
MOV byte ptr [RBP + -0x241],0x0
LAB_001f8b9e:
MOV EAX,dword ptr [RBP + -0x234]
AND EAX,0x1
CMP EAX,0x0
JNZ 0x001f8bbc
MOVSX EAX,byte ptr [RBP + -0x241]
CMP EAX,0x0
JZ 0x001f8cda
LAB_001f8bbc:
MOV dword ptr [RBP + -0x248],0x0
MOV dword ptr [RBP + -0x24c],0x0
MOV dword ptr [RBP + -0x250],0x0
LAB_001f8bda:
MOV EAX,dword ptr [RBP + -0x248]
LEA RCX,[0x3c7050]
CMP EAX,dword ptr [RCX]
JNC 0x001f8c7e
LEA RAX,[0x3c7058]
MOV RAX,qword ptr [RAX]
MOV ECX,dword ptr [RBP + -0x248]
SHL RCX,0x4
ADD RAX,RCX
CMP dword ptr [RAX + 0x8],0x0
JNZ 0x001f8c0e
JMP 0x001f8c6a
LAB_001f8c0e:
LEA RAX,[0x3c7058]
MOV RAX,qword ptr [RAX]
MOV ECX,dword ptr [RBP + -0x248]
SHL RCX,0x4
ADD RAX,RCX
CMP dword ptr [RAX + 0x8],0x3
JZ 0x001f8c48
LEA RAX,[0x3c7058]
MOV RAX,qword ptr [RAX]
MOV ECX,dword ptr [RBP + -0x248]
SHL RCX,0x4
ADD RAX,RCX
CMP dword ptr [RAX + 0x8],0x4
JNZ 0x001f8c59
LAB_001f8c48:
MOV EAX,dword ptr [RBP + -0x250]
ADD EAX,0x1
MOV dword ptr [RBP + -0x250],EAX
JMP 0x001f8c68
LAB_001f8c59:
MOV EAX,dword ptr [RBP + -0x24c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x24c],EAX
LAB_001f8c68:
JMP 0x001f8c6a
LAB_001f8c6a:
MOV EAX,dword ptr [RBP + -0x248]
ADD EAX,0x1
MOV dword ptr [RBP + -0x248],EAX
JMP 0x001f8bda
LAB_001f8c7e:
CMP dword ptr [RBP + -0x24c],0x0
JNZ 0x001f8c90
CMP dword ptr [RBP + -0x250],0x0
JZ 0x001f8cd8
LAB_001f8c90:
LEA RDI,[RBP + -0x230]
LEA RAX,[0x3c75b0]
MOV RDX,qword ptr [RAX + 0x90]
MOV ECX,dword ptr [RBP + -0x24c]
MOV R8D,dword ptr [RBP + -0x250]
MOV ESI,0x200
MOV AL,0x0
CALL 0x00253d00
LEA RSI,[RBP + -0x230]
MOV EDI,0x13
MOV EDX,0x4
CALL 0x001f9f50
JMP 0x001f8cd6
LAB_001f8cd6:
JMP 0x001f8cd8
LAB_001f8cd8:
JMP 0x001f8cda
LAB_001f8cda:
CALL 0x001db2d0
CALL 0x001f2070
CALL 0x001fa300
MOV EAX,dword ptr [RBP + -0x234]
AND EAX,0x2
CMP EAX,0x0
JNZ 0x001f8d07
MOVSX EAX,byte ptr [RBP + -0x241]
CMP EAX,0x0
JZ 0x001f8e2c
LAB_001f8d07:
XOR EDI,EDI
LEA RSI,[RBP + -0x2e0]
CALL 0x0012a880
CMP EAX,0x0
JNZ 0x001f8e2a
MOV RDI,qword ptr [RBP + -0x240]
IMUL RAX,qword ptr [RBP + -0x2e0],0x64
MOV qword ptr [RBP + -0x2f0],RAX
MOV RAX,qword ptr [RBP + -0x2d8]
MOV ECX,0x2710
CQO
IDIV RCX
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x2f0]
ADD RAX,RCX
CVTSI2SD XMM0,RAX
MOVSD XMM1,qword ptr [0x0025f890]
DIVSD XMM0,XMM1
IMUL RAX,qword ptr [RBP + -0x2d0],0x64
MOV qword ptr [RBP + -0x2e8],RAX
MOV RAX,qword ptr [RBP + -0x2c8]
MOV ECX,0x2710
CQO
IDIV RCX
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x2e8]
ADD RAX,RCX
CVTSI2SD XMM1,RAX
MOVSD XMM2,qword ptr [0x0025f890]
DIVSD XMM1,XMM2
MOV RDX,qword ptr [RBP + -0x2c0]
MOV RCX,qword ptr [RBP + -0x2b0]
MOV R8,qword ptr [RBP + -0x2a0]
MOV R9,qword ptr [RBP + -0x298]
MOV R13,qword ptr [RBP + -0x290]
MOV R12,qword ptr [RBP + -0x288]
MOV R15,qword ptr [RBP + -0x280]
MOV R14,qword ptr [RBP + -0x278]
MOV RBX,qword ptr [RBP + -0x270]
MOV R11,qword ptr [RBP + -0x268]
MOV R10,qword ptr [RBP + -0x260]
MOV RAX,qword ptr [RBP + -0x258]
LEA RSI,[0x25ad75]
MOV qword ptr [RSP],R13
MOV qword ptr [RSP + 0x8],R12
MOV qword ptr [RSP + 0x10],R15
MOV qword ptr [RSP + 0x18],R14
MOV qword ptr [RSP + 0x20],RBX
MOV qword ptr [RSP + 0x28],R11
MOV qword ptr [RSP + 0x30],R10
MOV qword ptr [RSP + 0x38],RAX
MOV AL,0x2
CALL 0x0012a180
LAB_001f8e2a:
JMP 0x001f8e2c
LAB_001f8e2c:
CALL 0x001fc690
CALL 0x001fc400
MOV EAX,dword ptr [RBP + -0x234]
AND EAX,0x4
CMP EAX,0x0
JNZ 0x001f8e4a
JMP 0x001f8e46
LAB_001f8e46:
JMP 0x001f8e48
LAB_001f8e48:
JMP 0x001f8e4a
LAB_001f8e4a:
CALL 0x001fff90
LEA RAX,[0xd8a794]
MOV EDI,dword ptr [RAX]
CALL 0x0012a6f0
LEA RAX,[0xd8a4cc]
MOV byte ptr [RAX],0x0
LEA RAX,[0xd89a90]
MOV byte ptr [RAX],0x0
LAB_001f8e71:
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x30]
CMP RAX,RCX
JNZ 0x001f8e95
ADD RSP,0x308
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001f8e95:
CALL 0x0012a250
|
void my_end(uint param_1)
{
int iVar1;
long in_FS_OFFSET;
bool bVar2;
bool bVar3;
rusage local_2e8;
int local_258;
int local_254;
uint local_250;
bool local_249;
FILE *local_248;
uint local_23c;
int1 local_238 [512];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
local_248 = *(FILE **)PTR_stderr_003c3fe0;
bVar2 = local_248 != *(FILE **)PTR_stderr_003c3fe0;
local_249 = bVar2;
local_23c = param_1;
if (my_init_done != '\0') {
bVar3 = local_248 == (FILE *)0x0;
if (bVar3) {
local_248 = *(FILE **)PTR_stderr_003c3fe0;
}
bVar3 = !bVar3;
local_249 = bVar3 && bVar2;
if (((param_1 & 1) != 0) || (bVar3 && bVar2)) {
local_254 = 0;
local_258 = 0;
for (local_250 = 0; local_250 < my_file_limit; local_250 = local_250 + 1) {
if (*(int *)(my_file_info + (ulong)local_250 * 0x10 + 8) != 0) {
if ((*(int *)(my_file_info + (ulong)local_250 * 0x10 + 8) == 3) ||
(*(int *)(my_file_info + (ulong)local_250 * 0x10 + 8) == 4)) {
local_258 = local_258 + 1;
}
else {
local_254 = local_254 + 1;
}
}
}
if ((local_254 != 0) || (local_258 != 0)) {
my_snprintf(local_238,0x200,globerrs._144_8_,local_254,local_258);
my_message_stderr(0x13,local_238,4);
}
}
free_charsets();
my_error_unregister_all();
my_once_free();
if ((((local_23c & 2) != 0) || (local_249 != false)) &&
(iVar1 = getrusage(RUSAGE_SELF,&local_2e8), iVar1 == 0)) {
fprintf(local_248,
"\nUser time %.2f, System time %.2f\nMaximum resident set size %ld, Integral resident set size %ld\nNon-physical pagefaults %ld, Physical pagefaults %ld, Swaps %ld\nBlocks in %ld out %ld, Messages in %ld out %ld, Signals %ld\nVoluntary context switches %ld, Involuntary context switches %ld\n"
,(double)(local_2e8.ru_utime.tv_sec * 100 + local_2e8.ru_utime.tv_usec / 10000) /
DAT_0025f890,
(double)(local_2e8.ru_stime.tv_sec * 100 + local_2e8.ru_stime.tv_usec / 10000) /
DAT_0025f890,local_2e8.ru_maxrss,local_2e8.ru_idrss,local_2e8.ru_minflt,
local_2e8.ru_majflt,local_2e8.ru_nswap,local_2e8.ru_inblock,local_2e8.ru_oublock,
local_2e8.ru_msgsnd,local_2e8.ru_msgrcv,local_2e8.ru_nsignals,local_2e8.ru_nvcsw,
local_2e8.ru_nivcsw);
}
my_thread_end();
my_thread_global_end();
my_mutex_end();
pthread_key_delete(THR_KEY_mysys);
my_thr_key_mysys_exists = 0;
my_init_done = '\0';
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
25,189 | my_end | eloqsql/mysys/my_init.c | void my_end(int infoflag)
{
/*
this code is suboptimal to workaround a bug in
Sun CC: Sun C++ 5.6 2004/06/02 for x86, and should not be
optimized until this compiler is not in use anymore
*/
FILE *info_file= DBUG_FILE;
my_bool print_info= (info_file != stderr);
if (!my_init_done)
return;
/*
We do not use DBUG_ENTER here, as after cleanup DBUG is no longer
operational, so we cannot use DBUG_RETURN.
*/
DBUG_PRINT("info",("Shutting down: infoflag: %d print_info: %d",
infoflag, print_info));
if (!info_file)
{
info_file= stderr;
print_info= 0;
}
if ((infoflag & MY_CHECK_ERROR) || print_info)
{ /* Test if some file is left open */
char ebuff[512];
uint i, open_files, open_streams;
for (open_streams= open_files= i= 0 ; i < my_file_limit ; i++)
{
if (my_file_info[i].type == UNOPEN)
continue;
if (my_file_info[i].type == STREAM_BY_FOPEN ||
my_file_info[i].type == STREAM_BY_FDOPEN)
open_streams++;
else
open_files++;
#ifdef EXTRA_DEBUG
fprintf(stderr, EE(EE_FILE_NOT_CLOSED), my_file_info[i].name, i);
fputc('\n', stderr);
#endif
}
if (open_files || open_streams)
{
my_snprintf(ebuff, sizeof(ebuff), EE(EE_OPEN_WARNING),
open_files, open_streams);
my_message_stderr(EE_OPEN_WARNING, ebuff, ME_BELL);
DBUG_PRINT("error", ("%s", ebuff));
}
#ifdef CHECK_UNLIKELY
end_my_likely(info_file);
#endif
}
free_charsets();
my_error_unregister_all();
my_once_free();
if ((infoflag & MY_GIVE_INFO) || print_info)
{
#ifdef HAVE_GETRUSAGE
struct rusage rus;
#ifdef HAVE_valgrind
/* Purify assumes that rus is uninitialized after getrusage call */
bzero((char*) &rus, sizeof(rus));
#endif
if (!getrusage(RUSAGE_SELF, &rus))
fprintf(info_file,"\n\
User time %.2f, System time %.2f\n\
Maximum resident set size %ld, Integral resident set size %ld\n\
Non-physical pagefaults %ld, Physical pagefaults %ld, Swaps %ld\n\
Blocks in %ld out %ld, Messages in %ld out %ld, Signals %ld\n\
Voluntary context switches %ld, Involuntary context switches %ld\n",
(rus.ru_utime.tv_sec * SCALE_SEC +
rus.ru_utime.tv_usec / SCALE_USEC) / 100.0,
(rus.ru_stime.tv_sec * SCALE_SEC +
rus.ru_stime.tv_usec / SCALE_USEC) / 100.0,
rus.ru_maxrss, rus.ru_idrss,
rus.ru_minflt, rus.ru_majflt,
rus.ru_nswap, rus.ru_inblock, rus.ru_oublock,
rus.ru_msgsnd, rus.ru_msgrcv, rus.ru_nsignals,
rus.ru_nvcsw, rus.ru_nivcsw);
#endif
#if defined(_MSC_VER)
_CrtSetReportMode( _CRT_WARN, _CRTDBG_MODE_FILE );
_CrtSetReportFile( _CRT_WARN, _CRTDBG_FILE_STDERR );
_CrtSetReportMode( _CRT_ERROR, _CRTDBG_MODE_FILE );
_CrtSetReportFile( _CRT_ERROR, _CRTDBG_FILE_STDERR );
_CrtSetReportMode( _CRT_ASSERT, _CRTDBG_MODE_FILE );
_CrtSetReportFile( _CRT_ASSERT, _CRTDBG_FILE_STDERR );
_CrtCheckMemory();
#endif
}
my_thread_end();
my_thread_global_end();
if (!(infoflag & MY_DONT_FREE_DBUG))
DBUG_END(); /* Must be done as late as possible */
my_mutex_end();
#if defined(SAFE_MUTEX)
/*
Check on destroying of mutexes. A few may be left that will get cleaned
up by C++ destructors
*/
safe_mutex_end((infoflag & (MY_GIVE_INFO | MY_CHECK_ERROR)) ? stderr :
(FILE *) 0);
#endif /* defined(SAFE_MUTEX) */
#ifdef _WIN32
WSACleanup();
#endif
/* At very last, delete mysys key, it is used everywhere including DBUG */
pthread_key_delete(THR_KEY_mysys);
my_init_done= my_thr_key_mysys_exists= 0;
} | O3 | c | my_end:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x260, %rsp # imm = 0x260
movq %fs:0x28, %rax
movq %rax, -0x28(%rbp)
leaq 0xb69f27(%rip), %r12 # 0xc0dd70
cmpb $0x0, (%r12)
je 0xa401f
movl %edi, %r14d
movq 0x2e6152(%rip), %rax # 0x389fb0
movq (%rax), %rbx
testb $0x1, %r14b
je 0xa3ef4
leaq 0x2e800e(%rip), %rax # 0x38be80
movl (%rax), %eax
testq %rax, %rax
je 0xa3eb2
leaq 0x2e8008(%rip), %rcx # 0x38be88
movq (%rcx), %rdx
shlq $0x4, %rax
xorl %esi, %esi
xorl %r8d, %r8d
xorl %ecx, %ecx
movl 0x8(%rdx,%rsi), %edi
leal -0x3(%rdi), %r9d
cmpl $0x2, %r9d
jae 0xa3ea1
incl %r8d
jmp 0xa3ea7
testl %edi, %edi
je 0xa3ea7
incl %ecx
addq $0x10, %rsi
cmpq %rsi, %rax
jne 0xa3e8e
jmp 0xa3eb7
xorl %ecx, %ecx
xorl %r8d, %r8d
movl %ecx, %eax
orl %r8d, %eax
je 0xa3ef4
leaq 0x2e851b(%rip), %rax # 0x38c3e0
movq 0x90(%rax), %rdx
leaq -0x230(%rbp), %r15
movl $0x200, %esi # imm = 0x200
movq %r15, %rdi
xorl %eax, %eax
callq 0xdbcb6
movl $0x4, %edx
movl $0x13, %edi
movq %r15, %rsi
callq 0xa4a58
callq 0x93898
callq 0xa0496
callq 0xa4c88
testb $0x2, %r14b
je 0xa3ff3
leaq -0x230(%rbp), %rsi
xorl %edi, %edi
callq 0x2a8d0
testl %eax, %eax
jne 0xa3ff3
imulq $0x64, -0x230(%rbp), %rsi
movabsq $0x346dc5d63886594b, %rcx # imm = 0x346DC5D63886594B
movq %rcx, %rax
imulq -0x228(%rbp)
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0xb, %rdx
addq %rax, %rdx
addq %rsi, %rdx
cvtsi2sd %rdx, %xmm0
movsd 0x41c9b(%rip), %xmm2 # 0xe5bf8
divsd %xmm2, %xmm0
imulq $0x64, -0x220(%rbp), %rsi
movq %rcx, %rax
imulq -0x218(%rbp)
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0xb, %rdx
addq %rax, %rdx
addq %rsi, %rdx
cvtsi2sd %rdx, %xmm1
divsd %xmm2, %xmm1
movq -0x210(%rbp), %rcx
movq -0x200(%rbp), %r8
movq -0x1f0(%rbp), %r9
movups -0x1e8(%rbp), %xmm2
movups -0x1d8(%rbp), %xmm3
movups -0x1c8(%rbp), %xmm4
movups -0x1b8(%rbp), %xmm5
movq -0x1a8(%rbp), %rax
movq %rax, 0x40(%rsp)
movups %xmm5, 0x30(%rsp)
movups %xmm4, 0x20(%rsp)
movups %xmm3, 0x10(%rsp)
movups %xmm2, (%rsp)
leaq 0x3cd6e(%rip), %rdx # 0xe0d52
movq %rbx, %rdi
movl $0x1, %esi
movb $0x2, %al
callq 0x2a1e0
callq 0xa67ec
callq 0xa6683
callq 0xa8bec
leaq 0xb6aa6b(%rip), %rax # 0xc0ea74
movl (%rax), %edi
callq 0x2a730
leaq 0xb6a795(%rip), %rax # 0xc0e7ac
xorl %ecx, %ecx
movb %cl, (%rax)
movb %cl, (%r12)
movq %fs:0x28, %rax
cmpq -0x28(%rbp), %rax
jne 0xa403e
addq $0x260, %rsp # imm = 0x260
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x2a240
| my_end:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 260h
mov rax, fs:28h
mov [rbp+var_28], rax
lea r12, my_init_done
cmp byte ptr [r12], 0
jz loc_A401F
mov r14d, edi
mov rax, cs:stderr_ptr
mov rbx, [rax]
test r14b, 1
jz loc_A3EF4
lea rax, my_file_limit
mov eax, [rax]
test rax, rax
jz short loc_A3EB2
lea rcx, my_file_info
mov rdx, [rcx]
shl rax, 4
xor esi, esi
xor r8d, r8d
xor ecx, ecx
loc_A3E8E:
mov edi, [rdx+rsi+8]
lea r9d, [rdi-3]
cmp r9d, 2
jnb short loc_A3EA1
inc r8d
jmp short loc_A3EA7
loc_A3EA1:
test edi, edi
jz short loc_A3EA7
inc ecx
loc_A3EA7:
add rsi, 10h
cmp rax, rsi
jnz short loc_A3E8E
jmp short loc_A3EB7
loc_A3EB2:
xor ecx, ecx
xor r8d, r8d
loc_A3EB7:
mov eax, ecx
or eax, r8d
jz short loc_A3EF4
lea rax, globerrs
mov rdx, [rax+90h]
lea r15, [rbp+var_230]
mov esi, 200h
mov rdi, r15
xor eax, eax
call my_snprintf
mov edx, 4
mov edi, 13h
mov rsi, r15
call my_message_stderr
loc_A3EF4:
call free_charsets
call my_error_unregister_all
call my_once_free
test r14b, 2
jz loc_A3FF3
lea rsi, [rbp+var_230]
xor edi, edi
call _getrusage
test eax, eax
jnz loc_A3FF3
imul rsi, [rbp+var_230], 64h ; 'd'
mov rcx, 346DC5D63886594Bh
mov rax, rcx
imul [rbp+var_228]
mov rax, rdx
shr rax, 3Fh
sar rdx, 0Bh
add rdx, rax
add rdx, rsi
cvtsi2sd xmm0, rdx
movsd xmm2, cs:qword_E5BF8
divsd xmm0, xmm2
imul rsi, [rbp+var_220], 64h ; 'd'
mov rax, rcx
imul [rbp+var_218]
mov rax, rdx
shr rax, 3Fh
sar rdx, 0Bh
add rdx, rax
add rdx, rsi
cvtsi2sd xmm1, rdx
divsd xmm1, xmm2
mov rcx, [rbp+var_210]
mov r8, [rbp+var_200]
mov r9, [rbp+var_1F0]
movups xmm2, [rbp+var_1E8]
movups xmm3, [rbp+var_1D8]
movups xmm4, [rbp+var_1C8]
movups xmm5, [rbp+var_1B8]
mov rax, [rbp+var_1A8]
mov [rsp+280h+var_240], rax
movups [rsp+280h+var_250], xmm5
movups [rsp+280h+var_260], xmm4
movups [rsp+280h+var_270], xmm3
movups [rsp+280h+var_280], xmm2
lea rdx, aUserTime2fSyst; "\nUser time %.2f, System time %.2f\nMax"...
mov rdi, rbx
mov esi, 1
mov al, 2
call ___fprintf_chk
loc_A3FF3:
call my_thread_end
call my_thread_global_end
call my_mutex_end
lea rax, THR_KEY_mysys
mov edi, [rax]
call _pthread_key_delete
lea rax, my_thr_key_mysys_exists
xor ecx, ecx
mov [rax], cl
mov [r12], cl
loc_A401F:
mov rax, fs:28h
cmp rax, [rbp+var_28]
jnz short loc_A403E
add rsp, 260h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_A403E:
call ___stack_chk_fail
| unsigned long long my_end(char a1, long long a2, long long a3, long long a4, long long a5, int a6)
{
long long v7; // rbx
long long v8; // rsi
int v9; // r8d
int v10; // ecx
int v11; // edi
long long v13; // [rsp+50h] [rbp-230h] BYREF
long long v14; // [rsp+58h] [rbp-228h]
long long v15; // [rsp+60h] [rbp-220h]
long long v16; // [rsp+68h] [rbp-218h]
long long v17; // [rsp+70h] [rbp-210h]
long long v18; // [rsp+80h] [rbp-200h]
long long v19; // [rsp+90h] [rbp-1F0h]
long long v20; // [rsp+98h] [rbp-1E8h]
long long v21; // [rsp+A0h] [rbp-1E0h]
long long v22; // [rsp+A8h] [rbp-1D8h]
long long v23; // [rsp+B0h] [rbp-1D0h]
long long v24; // [rsp+B8h] [rbp-1C8h]
long long v25; // [rsp+C0h] [rbp-1C0h]
long long v26; // [rsp+C8h] [rbp-1B8h]
long long v27; // [rsp+D0h] [rbp-1B0h]
long long v28; // [rsp+D8h] [rbp-1A8h]
unsigned long long v29; // [rsp+258h] [rbp-28h]
v29 = __readfsqword(0x28u);
if ( my_init_done )
{
v7 = stderr;
if ( (a1 & 1) != 0 )
{
if ( my_file_limit )
{
v8 = 0LL;
v9 = 0;
v10 = 0;
do
{
v11 = *(_DWORD *)((char *)my_file_info + v8 + 8);
a6 = v11 - 3;
if ( (unsigned int)(v11 - 3) >= 2 )
{
if ( v11 )
++v10;
}
else
{
++v9;
}
v8 += 16LL;
}
while ( 16LL * my_file_limit != v8 );
}
else
{
v10 = 0;
v9 = 0;
}
if ( v9 | v10 )
{
my_snprintf((unsigned int)&v13, 512, (unsigned int)globerrs[18], v10, v9, a6);
my_message_stderr(19LL, &v13, 4LL);
}
}
free_charsets();
my_error_unregister_all();
my_once_free();
if ( (a1 & 2) != 0 && !(unsigned int)getrusage(0LL, &v13) )
__fprintf_chk(
v7,
1LL,
"\n"
"User time %.2f, System time %.2f\n"
"Maximum resident set size %ld, Integral resident set size %ld\n"
"Non-physical pagefaults %ld, Physical pagefaults %ld, Swaps %ld\n"
"Blocks in %ld out %ld, Messages in %ld out %ld, Signals %ld\n"
"Voluntary context switches %ld, Involuntary context switches %ld\n",
(double)(100 * (int)v13 + (int)v14 / 10000) / 100.0,
(double)(int)(100 * v15 + v16 / 10000) / 100.0,
v17,
v18,
v19,
v20,
v21,
v22,
v23,
v24,
v25,
v26,
v27,
v28);
my_thread_end();
my_thread_global_end();
my_mutex_end();
pthread_key_delete(THR_KEY_mysys);
my_thr_key_mysys_exists = 0;
my_init_done = 0;
}
return __readfsqword(0x28u);
}
| my_end:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x260
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x28],RAX
LEA R12,[0xd0dd70]
CMP byte ptr [R12],0x0
JZ 0x001a401f
MOV R14D,EDI
MOV RAX,qword ptr [0x00489fb0]
MOV RBX,qword ptr [RAX]
TEST R14B,0x1
JZ 0x001a3ef4
LEA RAX,[0x48be80]
MOV EAX,dword ptr [RAX]
TEST RAX,RAX
JZ 0x001a3eb2
LEA RCX,[0x48be88]
MOV RDX,qword ptr [RCX]
SHL RAX,0x4
XOR ESI,ESI
XOR R8D,R8D
XOR ECX,ECX
LAB_001a3e8e:
MOV EDI,dword ptr [RDX + RSI*0x1 + 0x8]
LEA R9D,[RDI + -0x3]
CMP R9D,0x2
JNC 0x001a3ea1
INC R8D
JMP 0x001a3ea7
LAB_001a3ea1:
TEST EDI,EDI
JZ 0x001a3ea7
INC ECX
LAB_001a3ea7:
ADD RSI,0x10
CMP RAX,RSI
JNZ 0x001a3e8e
JMP 0x001a3eb7
LAB_001a3eb2:
XOR ECX,ECX
XOR R8D,R8D
LAB_001a3eb7:
MOV EAX,ECX
OR EAX,R8D
JZ 0x001a3ef4
LEA RAX,[0x48c3e0]
MOV RDX,qword ptr [RAX + 0x90]
LEA R15,[RBP + -0x230]
MOV ESI,0x200
MOV RDI,R15
XOR EAX,EAX
CALL 0x001dbcb6
MOV EDX,0x4
MOV EDI,0x13
MOV RSI,R15
CALL 0x001a4a58
LAB_001a3ef4:
CALL 0x00193898
CALL 0x001a0496
CALL 0x001a4c88
TEST R14B,0x2
JZ 0x001a3ff3
LEA RSI,[RBP + -0x230]
XOR EDI,EDI
CALL 0x0012a8d0
TEST EAX,EAX
JNZ 0x001a3ff3
IMUL RSI,qword ptr [RBP + -0x230],0x64
MOV RCX,0x346dc5d63886594b
MOV RAX,RCX
IMUL qword ptr [RBP + -0x228]
MOV RAX,RDX
SHR RAX,0x3f
SAR RDX,0xb
ADD RDX,RAX
ADD RDX,RSI
CVTSI2SD XMM0,RDX
MOVSD XMM2,qword ptr [0x001e5bf8]
DIVSD XMM0,XMM2
IMUL RSI,qword ptr [RBP + -0x220],0x64
MOV RAX,RCX
IMUL qword ptr [RBP + -0x218]
MOV RAX,RDX
SHR RAX,0x3f
SAR RDX,0xb
ADD RDX,RAX
ADD RDX,RSI
CVTSI2SD XMM1,RDX
DIVSD XMM1,XMM2
MOV RCX,qword ptr [RBP + -0x210]
MOV R8,qword ptr [RBP + -0x200]
MOV R9,qword ptr [RBP + -0x1f0]
MOVUPS XMM2,xmmword ptr [RBP + -0x1e8]
MOVUPS XMM3,xmmword ptr [RBP + -0x1d8]
MOVUPS XMM4,xmmword ptr [RBP + -0x1c8]
MOVUPS XMM5,xmmword ptr [RBP + -0x1b8]
MOV RAX,qword ptr [RBP + -0x1a8]
MOV qword ptr [RSP + 0x40],RAX
MOVUPS xmmword ptr [RSP + 0x30],XMM5
MOVUPS xmmword ptr [RSP + 0x20],XMM4
MOVUPS xmmword ptr [RSP + 0x10],XMM3
MOVUPS xmmword ptr [RSP],XMM2
LEA RDX,[0x1e0d52]
MOV RDI,RBX
MOV ESI,0x1
MOV AL,0x2
CALL 0x0012a1e0
LAB_001a3ff3:
CALL 0x001a67ec
CALL 0x001a6683
CALL 0x001a8bec
LEA RAX,[0xd0ea74]
MOV EDI,dword ptr [RAX]
CALL 0x0012a730
LEA RAX,[0xd0e7ac]
XOR ECX,ECX
MOV byte ptr [RAX],CL
MOV byte ptr [R12],CL
LAB_001a401f:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x28]
JNZ 0x001a403e
ADD RSP,0x260
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_001a403e:
CALL 0x0012a240
|
void my_end(ulong param_1)
{
int8 uVar1;
int iVar2;
long lVar3;
int iVar4;
long in_FS_OFFSET;
rusage local_238 [3];
long local_30;
local_30 = *(long *)(in_FS_OFFSET + 0x28);
if (my_init_done != '\0') {
uVar1 = *(int8 *)PTR_stderr_00489fb0;
if ((param_1 & 1) != 0) {
if ((ulong)my_file_limit == 0) {
iVar2 = 0;
iVar4 = 0;
}
else {
lVar3 = 0;
iVar4 = 0;
iVar2 = 0;
do {
if (*(int *)(my_file_info + lVar3 + 8) - 3U < 2) {
iVar4 = iVar4 + 1;
}
else if (*(int *)(my_file_info + lVar3 + 8) != 0) {
iVar2 = iVar2 + 1;
}
lVar3 = lVar3 + 0x10;
} while ((ulong)my_file_limit << 4 != lVar3);
}
if (iVar2 != 0 || iVar4 != 0) {
my_snprintf(local_238,0x200,globerrs._144_8_);
my_message_stderr(0x13,local_238,4);
}
}
free_charsets();
my_error_unregister_all();
my_once_free();
if (((param_1 & 2) != 0) && (iVar2 = getrusage(RUSAGE_SELF,local_238), iVar2 == 0)) {
__fprintf_chk((double)(local_238[0].ru_utime.tv_usec / 10000 +
local_238[0].ru_utime.tv_sec * 100) / DAT_001e5bf8,
(double)(local_238[0].ru_stime.tv_usec / 10000 +
local_238[0].ru_stime.tv_sec * 100) / DAT_001e5bf8,uVar1,1,
"\nUser time %.2f, System time %.2f\nMaximum resident set size %ld, Integral resident set size %ld\nNon-physical pagefaults %ld, Physical pagefaults %ld, Swaps %ld\nBlocks in %ld out %ld, Messages in %ld out %ld, Signals %ld\nVoluntary context switches %ld, Involuntary context switches %ld\n"
,local_238[0].ru_maxrss,local_238[0].ru_idrss,local_238[0].ru_minflt,
(int4)local_238[0].ru_majflt,(int4)local_238[0].ru_nswap,
(int4)local_238[0].ru_inblock,(int4)local_238[0].ru_oublock,
(int4)local_238[0].ru_msgsnd,(int4)local_238[0].ru_msgrcv,
(int4)local_238[0].ru_nsignals,(int4)local_238[0].ru_nvcsw,
local_238[0].ru_nivcsw);
}
my_thread_end();
my_thread_global_end();
my_mutex_end();
pthread_key_delete(THR_KEY_mysys);
my_thr_key_mysys_exists = 0;
my_init_done = '\0';
}
if (*(long *)(in_FS_OFFSET + 0x28) != local_30) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return;
}
| |
25,190 | retrieve_auto_increment | eloqsql/storage/myisam/mi_key.c | ulonglong retrieve_auto_increment(MI_INFO *info,const uchar *record)
{
ulonglong value= 0; /* Store unsigned values here */
longlong s_value= 0; /* Store signed values here */
HA_KEYSEG *keyseg= info->s->keyinfo[info->s->base.auto_key-1].seg;
const uchar *key= (uchar*) record + keyseg->start;
switch (keyseg->type) {
case HA_KEYTYPE_INT8:
s_value= (longlong) *(const signed char*) key;
break;
case HA_KEYTYPE_BINARY:
value=(ulonglong) *(uchar*) key;
break;
case HA_KEYTYPE_SHORT_INT:
s_value= (longlong) sint2korr(key);
break;
case HA_KEYTYPE_USHORT_INT:
value=(ulonglong) uint2korr(key);
break;
case HA_KEYTYPE_LONG_INT:
s_value= (longlong) sint4korr(key);
break;
case HA_KEYTYPE_ULONG_INT:
value=(ulonglong) uint4korr(key);
break;
case HA_KEYTYPE_INT24:
s_value= (longlong) sint3korr(key);
break;
case HA_KEYTYPE_UINT24:
value=(ulonglong) uint3korr(key);
break;
case HA_KEYTYPE_FLOAT: /* This shouldn't be used */
{
float f_1;
float4get(f_1,key);
/* Ignore negative values */
value = (f_1 < (float) 0.0) ? 0 : (ulonglong) f_1;
break;
}
case HA_KEYTYPE_DOUBLE: /* This shouldn't be used */
{
double f_1;
float8get(f_1,key);
/* Ignore negative values */
value = (f_1 < 0.0) ? 0 : (ulonglong) f_1;
break;
}
case HA_KEYTYPE_LONGLONG:
s_value= sint8korr(key);
break;
case HA_KEYTYPE_ULONGLONG:
value= uint8korr(key);
break;
default:
DBUG_ASSERT(0);
value=0; /* Error */
break;
}
/*
The following code works because if s_value < 0 then value is 0
and if s_value == 0 then value will contain either s_value or the
correct value.
*/
return (s_value > 0) ? (ulonglong) s_value : value;
} | O3 | c | retrieve_auto_increment:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rax
movq 0x218(%rax), %rcx
movl 0x184(%rax), %eax
decl %eax
imulq $0x70, %rax, %rax
movq 0x28(%rcx,%rax), %rcx
movzbl 0x18(%rcx), %edx
xorl %eax, %eax
addl $-0x2, %edx
cmpl $0xc, %edx
ja 0x7d3f6
movl 0x8(%rcx), %ecx
leaq 0x691ec(%rip), %rdi # 0xe64e4
movslq (%rdi,%rdx,4), %rdx
addq %rdi, %rdx
jmpq *%rdx
movzbl (%rsi,%rcx), %eax
jmp 0x7d3f6
movzwl (%rsi,%rcx), %edx
movzbl 0x2(%rsi,%rcx), %eax
shll $0x10, %eax
orq %rdx, %rax
jmp 0x7d3f6
movslq (%rsi,%rcx), %rcx
jmp 0x7d3ed
movzwl (%rsi,%rcx), %eax
jmp 0x7d3f6
movsbq (%rsi,%rcx), %rcx
jmp 0x7d3ed
movswq (%rsi,%rcx), %rcx
jmp 0x7d3ed
movl (%rsi,%rcx), %eax
jmp 0x7d3f6
movq (%rsi,%rcx), %rcx
jmp 0x7d3ed
movss (%rsi,%rcx), %xmm0
xorps %xmm1, %xmm1
movaps %xmm0, %xmm2
cmpless %xmm1, %xmm2
andnps %xmm0, %xmm2
cvttss2si %xmm2, %rcx
movq %rcx, %rdx
sarq $0x3f, %rdx
subss 0x5fc88(%rip), %xmm2 # 0xdd004
cvttss2si %xmm2, %rax
jmp 0x7d3b2
movsd (%rsi,%rcx), %xmm0
xorpd %xmm1, %xmm1
movapd %xmm0, %xmm2
cmplesd %xmm1, %xmm2
andnpd %xmm0, %xmm2
cvttsd2si %xmm2, %rcx
movq %rcx, %rdx
sarq $0x3f, %rdx
subsd 0x6880b(%rip), %xmm2 # 0xe5bb8
cvttsd2si %xmm2, %rax
andq %rdx, %rax
orq %rcx, %rax
jmp 0x7d3f6
movzbl 0x2(%rsi,%rcx), %edi
movl %edi, %eax
shll $0x10, %eax
movzbl 0x1(%rsi,%rcx), %edx
shll $0x8, %edx
movzbl (%rsi,%rcx), %ecx
testb %dil, %dil
js 0x7d3e1
orl %ecx, %eax
orl %edx, %eax
jmp 0x7d3ea
movq (%rsi,%rcx), %rax
jmp 0x7d3f6
orl %ecx, %edx
addl %edx, %eax
addl $0xff000000, %eax # imm = 0xFF000000
movslq %eax, %rcx
xorl %eax, %eax
testq %rcx, %rcx
cmovgq %rcx, %rax
popq %rbp
retq
| retrieve_auto_increment:
push rbp
mov rbp, rsp
mov rax, [rdi]
mov rcx, [rax+218h]
mov eax, [rax+184h]
dec eax
imul rax, 70h ; 'p'
mov rcx, [rcx+rax+28h]
movzx edx, byte ptr [rcx+18h]
xor eax, eax
add edx, 0FFFFFFFEh; switch 13 cases
cmp edx, 0Ch
ja def_7D2FF; jumptable 000000000007D2FF default case, case 7
mov ecx, [rcx+8]
lea rdi, jpt_7D2FF
movsxd rdx, ds:(jpt_7D2FF - 0E64E4h)[rdi+rdx*4]
add rdx, rdi
jmp rdx; switch jump
loc_7D301:
movzx eax, byte ptr [rsi+rcx]; jumptable 000000000007D2FF case 2
jmp def_7D2FF; jumptable 000000000007D2FF default case, case 7
loc_7D30A:
movzx edx, word ptr [rsi+rcx]; jumptable 000000000007D2FF case 13
movzx eax, byte ptr [rsi+rcx+2]
shl eax, 10h
or rax, rdx
jmp def_7D2FF; jumptable 000000000007D2FF default case, case 7
loc_7D31E:
movsxd rcx, dword ptr [rsi+rcx]; jumptable 000000000007D2FF case 4
jmp loc_7D3ED
loc_7D327:
movzx eax, word ptr [rsi+rcx]; jumptable 000000000007D2FF case 8
jmp def_7D2FF; jumptable 000000000007D2FF default case, case 7
loc_7D330:
movsx rcx, byte ptr [rsi+rcx]; jumptable 000000000007D2FF case 14
jmp loc_7D3ED
loc_7D33A:
movsx rcx, word ptr [rsi+rcx]; jumptable 000000000007D2FF case 3
jmp loc_7D3ED
loc_7D344:
mov eax, [rsi+rcx]; jumptable 000000000007D2FF case 9
jmp def_7D2FF; jumptable 000000000007D2FF default case, case 7
loc_7D34C:
mov rcx, [rsi+rcx]; jumptable 000000000007D2FF case 10
jmp loc_7D3ED
loc_7D355:
movss xmm0, dword ptr [rsi+rcx]; jumptable 000000000007D2FF case 5
xorps xmm1, xmm1
movaps xmm2, xmm0
cmpless xmm2, xmm1
andnps xmm2, xmm0
cvttss2si rcx, xmm2
mov rdx, rcx
sar rdx, 3Fh
subss xmm2, cs:dword_DD004
cvttss2si rax, xmm2
jmp short loc_7D3B2
loc_7D383:
movsd xmm0, qword ptr [rsi+rcx]; jumptable 000000000007D2FF case 6
xorpd xmm1, xmm1
movapd xmm2, xmm0
cmplesd xmm2, xmm1
andnpd xmm2, xmm0
cvttsd2si rcx, xmm2
mov rdx, rcx
sar rdx, 3Fh
subsd xmm2, cs:qword_E5BB8
cvttsd2si rax, xmm2
loc_7D3B2:
and rax, rdx
or rax, rcx
jmp short def_7D2FF; jumptable 000000000007D2FF default case, case 7
loc_7D3BA:
movzx edi, byte ptr [rsi+rcx+2]; jumptable 000000000007D2FF case 12
mov eax, edi
shl eax, 10h
movzx edx, byte ptr [rsi+rcx+1]
shl edx, 8
movzx ecx, byte ptr [rsi+rcx]
test dil, dil
js short loc_7D3E1
or eax, ecx
or eax, edx
jmp short loc_7D3EA
loc_7D3DB:
mov rax, [rsi+rcx]; jumptable 000000000007D2FF case 11
jmp short def_7D2FF; jumptable 000000000007D2FF default case, case 7
loc_7D3E1:
or edx, ecx
add eax, edx
add eax, 0FF000000h
loc_7D3EA:
movsxd rcx, eax
loc_7D3ED:
xor eax, eax
test rcx, rcx
cmovg rax, rcx
def_7D2FF:
pop rbp; jumptable 000000000007D2FF default case, case 7
retn
| unsigned long long retrieve_auto_increment(long long a1, long long a2)
{
long long v2; // rcx
int v3; // edx
unsigned long long result; // rax
long long v5; // rcx
long long v6; // rcx
char v8; // di
int v9; // eax
int v10; // edx
int v11; // ecx
int v12; // eax
v2 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)a1 + 536LL)
+ 112LL * (unsigned int)(*(_DWORD *)(*(_QWORD *)a1 + 388LL) - 1)
+ 40);
v3 = *(unsigned __int8 *)(v2 + 24);
result = 0LL;
v5 = *(unsigned int *)(v2 + 8);
switch ( v3 )
{
case 2:
return *(unsigned __int8 *)(a2 + v5);
case 3:
v6 = *(__int16 *)(a2 + v5);
goto LABEL_18;
case 4:
v6 = *(int *)(a2 + v5);
goto LABEL_18;
case 5:
return (unsigned int)(int)_mm_andnot_ps(
_mm_cmple_ss((__m128)*(unsigned int *)(a2 + v5), (__m128)0LL),
(__m128)*(unsigned int *)(a2 + v5)).m128_f32[0];
case 6:
return (unsigned int)(int)COERCE_DOUBLE(~(unsigned long long)*(_OWORD *)&_mm_cmple_sd(
(__m128d)*(unsigned long long *)(a2 + v5),
(__m128d)0LL) & *(_QWORD *)(a2 + v5));
case 8:
return *(unsigned __int16 *)(a2 + v5);
case 9:
return *(unsigned int *)(a2 + v5);
case 10:
v6 = *(_QWORD *)(a2 + v5);
goto LABEL_18;
case 11:
return *(_QWORD *)(a2 + v5);
case 12:
v8 = *(_BYTE *)(a2 + v5 + 2);
v9 = (unsigned __int8)v8 << 16;
v10 = *(unsigned __int8 *)(a2 + v5 + 1) << 8;
v11 = *(unsigned __int8 *)(a2 + v5);
if ( v8 < 0 )
v12 = (v11 | v10) + v9 - 0x1000000;
else
v12 = v10 | v11 | v9;
v6 = v12;
goto LABEL_18;
case 13:
return *(unsigned __int16 *)(a2 + v5) | (unsigned long long)(*(unsigned __int8 *)(a2 + v5 + 2) << 16);
case 14:
v6 = *(char *)(a2 + v5);
LABEL_18:
result = 0LL;
if ( v6 > 0 )
result = v6;
break;
default:
return result;
}
return result;
}
| retrieve_auto_increment:
PUSH RBP
MOV RBP,RSP
MOV RAX,qword ptr [RDI]
MOV RCX,qword ptr [RAX + 0x218]
MOV EAX,dword ptr [RAX + 0x184]
DEC EAX
IMUL RAX,RAX,0x70
MOV RCX,qword ptr [RCX + RAX*0x1 + 0x28]
MOVZX EDX,byte ptr [RCX + 0x18]
XOR EAX,EAX
ADD EDX,-0x2
CMP EDX,0xc
JA 0x0017d3f6
MOV ECX,dword ptr [RCX + 0x8]
LEA RDI,[0x1e64e4]
MOVSXD RDX,dword ptr [RDI + RDX*0x4]
ADD RDX,RDI
switchD:
JMP RDX
caseD_2:
MOVZX EAX,byte ptr [RSI + RCX*0x1]
JMP 0x0017d3f6
caseD_d:
MOVZX EDX,word ptr [RSI + RCX*0x1]
MOVZX EAX,byte ptr [RSI + RCX*0x1 + 0x2]
SHL EAX,0x10
OR RAX,RDX
JMP 0x0017d3f6
caseD_4:
MOVSXD RCX,dword ptr [RSI + RCX*0x1]
JMP 0x0017d3ed
caseD_8:
MOVZX EAX,word ptr [RSI + RCX*0x1]
JMP 0x0017d3f6
caseD_e:
MOVSX RCX,byte ptr [RSI + RCX*0x1]
JMP 0x0017d3ed
caseD_3:
MOVSX RCX,word ptr [RSI + RCX*0x1]
JMP 0x0017d3ed
caseD_9:
MOV EAX,dword ptr [RSI + RCX*0x1]
JMP 0x0017d3f6
caseD_a:
MOV RCX,qword ptr [RSI + RCX*0x1]
JMP 0x0017d3ed
caseD_5:
MOVSS XMM0,dword ptr [RSI + RCX*0x1]
XORPS XMM1,XMM1
MOVAPS XMM2,XMM0
CMPLESS XMM2,XMM1
ANDNPS XMM2,XMM0
CVTTSS2SI RCX,XMM2
MOV RDX,RCX
SAR RDX,0x3f
SUBSS XMM2,dword ptr [0x001dd004]
CVTTSS2SI RAX,XMM2
JMP 0x0017d3b2
caseD_6:
MOVSD XMM0,qword ptr [RSI + RCX*0x1]
XORPD XMM1,XMM1
MOVAPD XMM2,XMM0
CMPLESD XMM2,XMM1
ANDNPD XMM2,XMM0
CVTTSD2SI RCX,XMM2
MOV RDX,RCX
SAR RDX,0x3f
SUBSD XMM2,qword ptr [0x001e5bb8]
CVTTSD2SI RAX,XMM2
LAB_0017d3b2:
AND RAX,RDX
OR RAX,RCX
JMP 0x0017d3f6
caseD_c:
MOVZX EDI,byte ptr [RSI + RCX*0x1 + 0x2]
MOV EAX,EDI
SHL EAX,0x10
MOVZX EDX,byte ptr [RSI + RCX*0x1 + 0x1]
SHL EDX,0x8
MOVZX ECX,byte ptr [RSI + RCX*0x1]
TEST DIL,DIL
JS 0x0017d3e1
OR EAX,ECX
OR EAX,EDX
JMP 0x0017d3ea
caseD_b:
MOV RAX,qword ptr [RSI + RCX*0x1]
JMP 0x0017d3f6
LAB_0017d3e1:
OR EDX,ECX
ADD EAX,EDX
ADD EAX,0xff000000
LAB_0017d3ea:
MOVSXD RCX,EAX
LAB_0017d3ed:
XOR EAX,EAX
TEST RCX,RCX
CMOVG RAX,RCX
caseD_7:
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
ulong retrieve_auto_increment(long *param_1,long param_2)
{
byte bVar1;
byte bVar2;
long lVar3;
uint uVar4;
ulong uVar5;
ulong uVar6;
float fVar7;
double dVar8;
lVar3 = *(long *)(*(long *)(*param_1 + 0x218) + 0x28 +
(ulong)(*(int *)(*param_1 + 0x184) - 1) * 0x70);
uVar4 = (uint)*(byte *)(lVar3 + 0x18);
if (0xc < uVar4 - 2) {
return 0;
}
uVar6 = (ulong)*(uint *)(lVar3 + 8);
uVar5 = 0;
switch(uVar4) {
case 2:
uVar5 = (ulong)*(byte *)(param_2 + uVar6);
break;
case 3:
uVar6 = (ulong)*(short *)(param_2 + uVar6);
goto LAB_0017d3ed;
case 4:
uVar6 = (ulong)*(int *)(param_2 + uVar6);
goto LAB_0017d3ed;
case 5:
fVar7 = (float)(~-(uint)(*(float *)(param_2 + uVar6) <= 0.0) & (uint)*(float *)(param_2 + uVar6)
);
uVar5 = (ulong)fVar7;
uVar6 = (ulong)(fVar7 - _DAT_001dd004);
goto LAB_0017d3b2;
case 6:
dVar8 = (double)(~-(ulong)(*(double *)(param_2 + uVar6) <= 0.0) &
(ulong)*(double *)(param_2 + uVar6));
uVar5 = (ulong)dVar8;
uVar6 = (ulong)(dVar8 - _DAT_001e5bb8);
LAB_0017d3b2:
uVar5 = uVar6 & (long)uVar5 >> 0x3f | uVar5;
break;
case 8:
uVar5 = (ulong)*(ushort *)(param_2 + uVar6);
break;
case 9:
uVar5 = (ulong)*(uint *)(param_2 + uVar6);
break;
case 10:
uVar6 = *(ulong *)(param_2 + uVar6);
goto LAB_0017d3ed;
case 0xb:
uVar5 = *(ulong *)(param_2 + uVar6);
break;
case 0xc:
bVar1 = *(byte *)(param_2 + 2 + uVar6);
uVar4 = (uint)bVar1 * 0x10000;
bVar2 = *(byte *)(param_2 + 1 + uVar6);
if ((char)bVar1 < '\0') {
uVar4 = (uVar4 + CONCAT11(bVar2,*(byte *)(param_2 + uVar6))) - 0x1000000;
}
else {
uVar4 = uVar4 | *(byte *)(param_2 + uVar6) | (uint)bVar2 << 8;
}
uVar6 = (ulong)(int)uVar4;
goto LAB_0017d3ed;
case 0xd:
uVar5 = (ulong)CONCAT12(*(int1 *)(param_2 + 2 + uVar6),*(int2 *)(param_2 + uVar6));
break;
case 0xe:
uVar6 = (ulong)*(char *)(param_2 + uVar6);
LAB_0017d3ed:
uVar5 = 0;
if (0 < (long)uVar6) {
uVar5 = uVar6;
}
}
return uVar5;
}
| |
25,191 | httplib::detail::MultipartFormDataParser::set_boundary(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&) | monkey531[P]llama/examples/server/httplib.h | void set_boundary(std::string &&boundary) {
boundary_ = boundary;
dash_boundary_crlf_ = dash_ + boundary_ + crlf_;
crlf_dash_boundary_ = crlf_ + dash_ + boundary_;
} | O3 | c | httplib::detail::MultipartFormDataParser::set_boundary(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
leaq 0x40(%rdi), %r14
movq %r14, %rdi
callq 0x1f5d0
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x6b519
movq 0x20(%rbx), %rsi
movq 0x28(%rbx), %rdx
movq %r15, %rdi
callq 0x1f310
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6c355
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x6c35d
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x20(%rsp), %r14
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x60(%rbx), %rdi
movq %r14, %rsi
callq 0x1fd10
movq (%r14), %rdi
cmpq %r12, %rdi
je 0x6c39a
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1fae0
leaq 0x20(%rbx), %r14
leaq 0x10(%rsp), %r13
movq -0x10(%r13), %rdi
cmpq %r13, %rdi
je 0x6c3b9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1fae0
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x6b519
movq 0x40(%rbx), %rsi
movq 0x48(%rbx), %rdx
movq %r15, %rdi
callq 0x1f310
movq %r12, 0x20(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6c3fd
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x6c405
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x20(%rsp), %r14
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
subq $-0x80, %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1fd10
movq (%r14), %rdi
cmpq %r12, %rdi
je 0x6c445
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1fae0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x6c45b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1fae0
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
jne 0x6c488
jmp 0x6c495
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6c495
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1fae0
movq %rbx, %rdi
callq 0x20380
nop
| _ZN7httplib6detail23MultipartFormDataParser12set_boundaryEONSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 40h
mov rbx, rdi
lea r14, [rdi+40h]
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
mov r15, rsp
mov rdi, r15
mov rsi, rbx
mov rdx, r14
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_; std::operator+<char>(std::string const&,std::string const&)
mov rsi, [rbx+20h]
mov rdx, [rbx+28h]
mov rdi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
lea r12, [rsp+68h+var_38]
mov [r12-10h], r12
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_6C355
mov [rsp+68h+var_48], rdx
mov rdx, [rcx]
mov [rsp+68h+var_38], rdx
jmp short loc_6C35D
loc_6C355:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r12], xmm0
loc_6C35D:
mov rdx, [rax+8]
lea r14, [rsp+68h+var_48]
mov [r14+8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
lea rdi, [rbx+60h]
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [r14]; void *
cmp rdi, r12
jz short loc_6C39A
mov rsi, [rsp+68h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6C39A:
lea r14, [rbx+20h]
lea r13, [rsp+68h+var_58]
mov rdi, [r13-10h]; void *
cmp rdi, r13
jz short loc_6C3B9
mov rsi, [rsp+68h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6C3B9:
mov r15, rsp
mov rdi, r15
mov rsi, r14
mov rdx, rbx
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_; std::operator+<char>(std::string const&,std::string const&)
mov rsi, [rbx+40h]
mov rdx, [rbx+48h]
mov rdi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov [rsp+68h+var_48], r12
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_6C3FD
mov [rsp+68h+var_48], rdx
mov rdx, [rcx]
mov [rsp+68h+var_38], rdx
jmp short loc_6C405
loc_6C3FD:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r12], xmm0
loc_6C405:
mov rdx, [rax+8]
lea r14, [rsp+68h+var_48]
mov [r14+8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
sub rbx, 0FFFFFFFFFFFFFF80h
mov rdi, rbx
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [r14]; void *
cmp rdi, r12
jz short loc_6C445
mov rsi, [rsp+68h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6C445:
mov rdi, [rsp+68h+var_68]; void *
cmp rdi, r13
jz short loc_6C45B
mov rsi, [rsp+68h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6C45B:
add rsp, 40h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
mov rbx, rax
mov rdi, [rsp+0]
cmp rdi, r13
jnz short loc_6C488
jmp short loc_6C495
mov rbx, rax
lea rax, [rsp+arg_8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_6C495
loc_6C488:
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_6C495:
mov rdi, rbx
call __Unwind_Resume
| void httplib::detail::MultipartFormDataParser::set_boundary(_QWORD *a1, long long a2)
{
long long v2; // rax
_OWORD *v3; // rcx
long long v4; // rax
_OWORD *v5; // rcx
void *v6[2]; // [rsp+0h] [rbp-68h] BYREF
_QWORD v7[2]; // [rsp+10h] [rbp-58h] BYREF
_OWORD *v8; // [rsp+20h] [rbp-48h] BYREF
long long v9; // [rsp+28h] [rbp-40h]
_OWORD v10[3]; // [rsp+30h] [rbp-38h] BYREF
std::string::_M_assign(a1 + 8, a2);
std::operator+<char>(v6, (long long)a1, a1 + 8);
v2 = std::string::_M_append(v6, a1[4]);
v8 = v10;
v3 = (_OWORD *)(v2 + 16);
if ( *(_QWORD *)v2 == v2 + 16 )
{
v10[0] = *v3;
}
else
{
v8 = *(_OWORD **)v2;
*(_QWORD *)&v10[0] = *(_QWORD *)v3;
}
v9 = *(_QWORD *)(v2 + 8);
*(_QWORD *)v2 = v3;
*(_QWORD *)(v2 + 8) = 0LL;
*(_BYTE *)(v2 + 16) = 0;
std::string::operator=(a1 + 12, &v8);
if ( v8 != v10 )
operator delete(v8, *(_QWORD *)&v10[0] + 1LL);
if ( v6[0] != v7 )
operator delete(v6[0], v7[0] + 1LL);
std::operator+<char>(v6, (long long)(a1 + 4), a1);
v4 = std::string::_M_append(v6, a1[8]);
v8 = v10;
v5 = (_OWORD *)(v4 + 16);
if ( *(_QWORD *)v4 == v4 + 16 )
{
v10[0] = *v5;
}
else
{
v8 = *(_OWORD **)v4;
*(_QWORD *)&v10[0] = *(_QWORD *)v5;
}
v9 = *(_QWORD *)(v4 + 8);
*(_QWORD *)v4 = v5;
*(_QWORD *)(v4 + 8) = 0LL;
*(_BYTE *)(v4 + 16) = 0;
std::string::operator=(a1 + 16, &v8);
if ( v8 != v10 )
operator delete(v8, *(_QWORD *)&v10[0] + 1LL);
if ( v6[0] != v7 )
operator delete(v6[0], v7[0] + 1LL);
}
| set_boundary:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x40
MOV RBX,RDI
LEA R14,[RDI + 0x40]
MOV RDI,R14
CALL 0x0011f5d0
MOV R15,RSP
MOV RDI,R15
MOV RSI,RBX
MOV RDX,R14
CALL 0x0016b519
MOV RSI,qword ptr [RBX + 0x20]
MOV RDX,qword ptr [RBX + 0x28]
LAB_0016c325:
MOV RDI,R15
CALL 0x0011f310
LAB_0016c32d:
LEA R12,[RSP + 0x30]
MOV qword ptr [R12 + -0x10],R12
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x0016c355
MOV qword ptr [RSP + 0x20],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x30],RDX
JMP 0x0016c35d
LAB_0016c355:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R12],XMM0
LAB_0016c35d:
MOV RDX,qword ptr [RAX + 0x8]
LEA R14,[RSP + 0x20]
MOV qword ptr [R14 + 0x8],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
LEA RDI,[RBX + 0x60]
MOV RSI,R14
CALL 0x0011fd10
MOV RDI,qword ptr [R14]
CMP RDI,R12
JZ 0x0016c39a
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x0011fae0
LAB_0016c39a:
LEA R14,[RBX + 0x20]
LEA R13,[RSP + 0x10]
MOV RDI,qword ptr [R13 + -0x10]
CMP RDI,R13
JZ 0x0016c3b9
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0011fae0
LAB_0016c3b9:
MOV R15,RSP
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
CALL 0x0016b519
MOV RSI,qword ptr [RBX + 0x40]
MOV RDX,qword ptr [RBX + 0x48]
LAB_0016c3d2:
MOV RDI,R15
CALL 0x0011f310
LAB_0016c3da:
MOV qword ptr [RSP + 0x20],R12
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x0016c3fd
MOV qword ptr [RSP + 0x20],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x30],RDX
JMP 0x0016c405
LAB_0016c3fd:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R12],XMM0
LAB_0016c405:
MOV RDX,qword ptr [RAX + 0x8]
LEA R14,[RSP + 0x20]
MOV qword ptr [R14 + 0x8],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
SUB RBX,-0x80
MOV RDI,RBX
MOV RSI,R14
CALL 0x0011fd10
MOV RDI,qword ptr [R14]
CMP RDI,R12
JZ 0x0016c445
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x0011fae0
LAB_0016c445:
MOV RDI,qword ptr [RSP]
CMP RDI,R13
JZ 0x0016c45b
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0011fae0
LAB_0016c45b:
ADD RSP,0x40
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* httplib::detail::MultipartFormDataParser::set_boundary(std::__cxx11::string&&) */
void httplib::detail::MultipartFormDataParser::set_boundary(string *param_1)
{
long *plVar1;
long *plVar2;
long *local_68 [2];
long local_58 [2];
long *local_48;
long local_40;
long local_38;
long lStack_30;
std::__cxx11::string::_M_assign(param_1 + 0x40);
std::operator+((string *)local_68,param_1);
/* try { // try from 0016c325 to 0016c32c has its CatchHandler @ 0016c477 */
plVar1 = (long *)std::__cxx11::string::_M_append((char *)local_68,*(ulong *)(param_1 + 0x20));
plVar2 = plVar1 + 2;
if ((long *)*plVar1 == plVar2) {
local_38 = *plVar2;
lStack_30 = plVar1[3];
local_48 = &local_38;
}
else {
local_38 = *plVar2;
local_48 = (long *)*plVar1;
}
local_40 = plVar1[1];
*plVar1 = (long)plVar2;
plVar1[1] = 0;
*(int1 *)(plVar1 + 2) = 0;
std::__cxx11::string::operator=(param_1 + 0x60,(string *)&local_48);
if (local_48 != &local_38) {
operator_delete(local_48,local_38 + 1);
}
if (local_68[0] != local_58) {
operator_delete(local_68[0],local_58[0] + 1);
}
std::operator+((string *)local_68,param_1 + 0x20);
/* try { // try from 0016c3d2 to 0016c3d9 has its CatchHandler @ 0016c469 */
plVar1 = (long *)std::__cxx11::string::_M_append((char *)local_68,*(ulong *)(param_1 + 0x40));
plVar2 = plVar1 + 2;
if ((long *)*plVar1 == plVar2) {
local_38 = *plVar2;
lStack_30 = plVar1[3];
local_48 = &local_38;
}
else {
local_38 = *plVar2;
local_48 = (long *)*plVar1;
}
local_40 = plVar1[1];
*plVar1 = (long)plVar2;
plVar1[1] = 0;
*(int1 *)(plVar1 + 2) = 0;
std::__cxx11::string::operator=(param_1 + 0x80,(string *)&local_48);
if (local_48 != &local_38) {
operator_delete(local_48,local_38 + 1);
}
if (local_68[0] != local_58) {
operator_delete(local_68[0],local_58[0] + 1);
}
return;
}
| |
25,192 | String::copy(char const*, unsigned long, charset_info_st const*, charset_info_st const*, unsigned int*) | eloqsql/sql/sql_string.cc | bool String::copy(const char *str, size_t arg_length,
CHARSET_INFO *from_cs, CHARSET_INFO *to_cs, uint *errors)
{
uint32 offset;
DBUG_ASSERT(!str || str != Ptr || !is_alloced());
if (!needs_conversion(arg_length, from_cs, to_cs, &offset))
{
*errors= 0;
return copy(str, arg_length, to_cs);
}
if ((from_cs == &my_charset_bin) && offset)
{
*errors= 0;
return copy_aligned(str, arg_length, offset, to_cs);
}
size_t new_length= to_cs->mbmaxlen*arg_length;
if (alloc(new_length))
return TRUE;
str_length=copy_and_convert((char*) Ptr, new_length, to_cs,
str, arg_length, from_cs, errors);
set_charset(to_cs);
return FALSE;
} | O3 | cpp | String::copy(char const*, unsigned long, charset_info_st const*, charset_info_st const*, unsigned int*):
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %r13
movq %r8, %rbx
movq %rdx, %r15
movq %rsi, %r8
movq %rdi, %r14
cmpq %rcx, %rbx
je 0x26aa8
testq %rbx, %rbx
je 0x26aa8
cmpq 0x2d35d1(%rip), %rbx # 0x2f9fa8
je 0x26aa8
movq %rcx, %r12
movq 0x10(%rcx), %rax
cmpq 0x10(%rbx), %rax
je 0x26aa8
cmpq 0x2d35b3(%rip), %r12 # 0x2f9fa8
je 0x26a6b
movl 0x9c(%rbx), %esi
imulq %r15, %rsi
movl 0x14(%r14), %eax
testq %rax, %rax
setne %cl
cmpq %rax, %rsi
setbe %al
testb %al, %cl
jne 0x26a3a
leaq 0x8(%r14), %rdi
movq %rsi, -0x30(%rbp)
movq -0x30(%rbp), %rsi
movq %r8, -0x38(%rbp)
callq 0x265ec
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %r8
movl %eax, %ecx
movb $0x1, %al
testb %cl, %cl
jne 0x26a5c
movq 0x8(%r14), %rdi
movq %r13, (%rsp)
movq %rbx, %rdx
movq %r8, %rcx
movl %r15d, %r8d
movq %r12, %r9
callq 0x5dcbb
movl %eax, 0x10(%r14)
movq %rbx, (%r14)
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0x98(%rbx), %ecx
movq %r15, %rax
xorl %edx, %edx
divq %rcx
testq %rdx, %rdx
je 0x26aa8
movq %rdx, %rcx
movl $0x0, (%r13)
movq %r14, %rdi
movq %r8, %rsi
movq %r15, %rdx
movq %rbx, %r8
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x26d32
movl $0x0, (%r13)
movq %rbx, (%r14)
addq $0x8, %r14
movq %r14, %rdi
movq %r8, %rsi
movq %r15, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x26b78
nop
| _ZN6String4copyEPKcmPK15charset_info_stS4_Pj:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r13, r9
mov rbx, r8
mov r15, rdx
mov r8, rsi
mov r14, rdi
cmp rbx, rcx
jz loc_26AA8
test rbx, rbx
jz loc_26AA8
cmp rbx, cs:my_charset_bin_ptr
jz loc_26AA8
mov r12, rcx
mov rax, [rcx+10h]
cmp rax, [rbx+10h]
jz loc_26AA8
cmp r12, cs:my_charset_bin_ptr
jz short loc_26A6B
mov esi, [rbx+9Ch]
imul rsi, r15
mov eax, [r14+14h]
test rax, rax
setnz cl
cmp rsi, rax
setbe al
test cl, al
jnz short loc_26A3A
lea rdi, [r14+8]; this
mov [rbp+var_30], rsi
mov rsi, [rbp+var_30]; unsigned __int64
mov [rbp+var_38], r8
call _ZN13Binary_string10real_allocEm; Binary_string::real_alloc(ulong)
mov rsi, [rbp+var_30]
mov r8, [rbp+var_38]
mov ecx, eax
mov al, 1
test cl, cl
jnz short loc_26A5C
loc_26A3A:
mov rdi, [r14+8]
mov [rsp+40h+var_40], r13
mov rdx, rbx
mov rcx, r8
mov r8d, r15d
mov r9, r12
call my_convert
mov [r14+10h], eax
mov [r14], rbx
xor eax, eax
loc_26A5C:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_26A6B:
mov ecx, [rbx+98h]
mov rax, r15
xor edx, edx
div rcx
test rdx, rdx
jz short loc_26AA8
mov rcx, rdx
mov dword ptr [r13+0], 0
mov rdi, r14
mov rsi, r8
mov rdx, r15
mov r8, rbx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _ZN6String12copy_alignedEPKcmmPK15charset_info_st; String::copy_aligned(char const*,ulong,ulong,charset_info_st const*)
loc_26AA8:
mov dword ptr [r13+0], 0
mov [r14], rbx
add r14, 8
mov rdi, r14; this
mov rsi, r8; char *
mov rdx, r15; unsigned __int64
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _ZN13Binary_string4copyEPKcm; Binary_string::copy(char const*,ulong)
| char String::copy(long long a1, const char *a2, unsigned long long a3, long long a4, long long a5, _DWORD *a6)
{
int v8; // r15d
int v9; // r8d
int v10; // r12d
unsigned long long v11; // rsi
char v12; // al
char v13; // cl
char result; // al
unsigned long long v15; // rcx
int v16; // [rsp+8h] [rbp-38h]
int v17; // [rsp+10h] [rbp-30h]
v8 = a3;
v9 = (int)a2;
if ( a5 == a4 || !a5 || (_UNKNOWN *)a5 == &my_charset_bin || (v10 = a4, *(_QWORD *)(a4 + 16) == *(_QWORD *)(a5 + 16)) )
{
LABEL_12:
*a6 = 0;
*(_QWORD *)a1 = a5;
return Binary_string::copy((Binary_string *)(a1 + 8), a2, a3);
}
if ( (_UNKNOWN *)a4 == &my_charset_bin )
{
if ( a3 % *(unsigned int *)(a5 + 152) )
{
v15 = a3 % *(unsigned int *)(a5 + 152);
*a6 = 0;
return String::copy_aligned(a1, a2, a3, v15, a5);
}
goto LABEL_12;
}
v11 = a3 * *(unsigned int *)(a5 + 156);
if ( v11 <= *(unsigned int *)(a1 + 20) && *(_DWORD *)(a1 + 20) != 0LL
|| (v17 = a3 * *(_DWORD *)(a5 + 156),
v16 = v9,
v12 = Binary_string::real_alloc((Binary_string *)(a1 + 8), v11),
LODWORD(v11) = v17,
v9 = v16,
v13 = v12,
result = 1,
!v13) )
{
*(_DWORD *)(a1 + 16) = my_convert(*(_QWORD *)(a1 + 8), v11, a5, v9, v8, v10, (long long)a6);
*(_QWORD *)a1 = a5;
return 0;
}
return result;
}
| copy:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R13,R9
MOV RBX,R8
MOV R15,RDX
MOV R8,RSI
MOV R14,RDI
CMP RBX,RCX
JZ 0x00126aa8
TEST RBX,RBX
JZ 0x00126aa8
CMP RBX,qword ptr [0x003f9fa8]
JZ 0x00126aa8
MOV R12,RCX
MOV RAX,qword ptr [RCX + 0x10]
CMP RAX,qword ptr [RBX + 0x10]
JZ 0x00126aa8
CMP R12,qword ptr [0x003f9fa8]
JZ 0x00126a6b
MOV ESI,dword ptr [RBX + 0x9c]
IMUL RSI,R15
MOV EAX,dword ptr [R14 + 0x14]
TEST RAX,RAX
SETNZ CL
CMP RSI,RAX
SETBE AL
TEST CL,AL
JNZ 0x00126a3a
LEA RDI,[R14 + 0x8]
MOV qword ptr [RBP + -0x30],RSI
MOV RSI,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x38],R8
CALL 0x001265ec
MOV RSI,qword ptr [RBP + -0x30]
MOV R8,qword ptr [RBP + -0x38]
MOV ECX,EAX
MOV AL,0x1
TEST CL,CL
JNZ 0x00126a5c
LAB_00126a3a:
MOV RDI,qword ptr [R14 + 0x8]
MOV qword ptr [RSP],R13
MOV RDX,RBX
MOV RCX,R8
MOV R8D,R15D
MOV R9,R12
CALL 0x0015dcbb
MOV dword ptr [R14 + 0x10],EAX
MOV qword ptr [R14],RBX
XOR EAX,EAX
LAB_00126a5c:
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00126a6b:
MOV ECX,dword ptr [RBX + 0x98]
MOV RAX,R15
XOR EDX,EDX
DIV RCX
TEST RDX,RDX
JZ 0x00126aa8
MOV RCX,RDX
MOV dword ptr [R13],0x0
MOV RDI,R14
MOV RSI,R8
MOV RDX,R15
MOV R8,RBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00126d32
LAB_00126aa8:
MOV dword ptr [R13],0x0
MOV qword ptr [R14],RBX
ADD R14,0x8
MOV RDI,R14
MOV RSI,R8
MOV RDX,R15
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00126b78
|
/* String::copy(char const*, unsigned long, charset_info_st const*, charset_info_st const*, unsigned
int*) */
int8 __thiscall
String::copy(String *this,char *param_1,ulong param_2,charset_info_st *param_3,
charset_info_st *param_4,uint *param_5)
{
uint uVar1;
char cVar2;
int4 uVar3;
ulong uVar4;
int8 uVar5;
ulong uVar6;
if ((((param_4 != param_3) && (param_4 != (charset_info_st *)0x0)) &&
(param_4 != (charset_info_st *)PTR_my_charset_bin_003f9fa8)) &&
(*(long *)(param_3 + 0x10) != *(long *)(param_4 + 0x10))) {
if (param_3 != (charset_info_st *)PTR_my_charset_bin_003f9fa8) {
uVar6 = *(uint *)(param_4 + 0x9c) * param_2;
uVar4 = (ulong)*(uint *)(this + 0x14);
if (uVar4 == 0 || uVar4 <= uVar6 && uVar6 - uVar4 != 0) {
cVar2 = Binary_string::real_alloc((Binary_string *)(this + 8),uVar6);
if (cVar2 != '\0') {
return 1;
}
}
uVar3 = my_convert(*(int8 *)(this + 8),uVar6,param_4,param_1,param_2 & 0xffffffff,
param_3,param_5);
*(int4 *)(this + 0x10) = uVar3;
*(charset_info_st **)this = param_4;
return 0;
}
uVar1 = *(uint *)(param_4 + 0x98);
if (param_2 % (ulong)uVar1 != 0) {
*param_5 = 0;
uVar5 = copy_aligned(this,param_1,param_2,param_2 % (ulong)uVar1,param_4);
return uVar5;
}
}
*param_5 = 0;
*(charset_info_st **)this = param_4;
uVar5 = Binary_string::copy((Binary_string *)(this + 8),param_1,param_2);
return uVar5;
}
| |
25,193 | SEMANTICANALYZER::AstStatementParser::serializeRelation(AST::ASTTree::DSFIterator&, SEMANTICANALYZER::Relation&) | 11AgReS1SoR11[P]Graph/Common/SemanticAnalyzer/src/AstStatementParser.cpp | void SEMANTICANALYZER::AstStatementParser::serializeRelation(AST::ASTTree::DSFIterator &relationIter, Relation &relation) noexcept
{
for(auto& it = relationIter; it != AST::ASTTree::DSFIterator(); ++it)
{
if(it->value == GRAMMERCONSTANTS::ID)
{
++it;
++astIter;
if(relation.id1.empty()) relation.id1 = it->value;
else relation.id2 = it->value;
}
else if(it->value == GRAMMERCONSTANTS::ARROW)
{
++it;
++astIter;
relation.arrow = it->value;
}
else if(it->value == GRAMMERCONSTANTS::PROPERTY)
{
Property property;
AST::ASTTree::DSFIterator propertyIter(it.get());
serializeProperty(propertyIter, property);
relation.properties.push_back(std::move(property));
while(it.get() != astIter.get()) {
++it;
}
}
auto nextIt = it;
++nextIt;
if(nextIt != AST::ASTTree::DSFIterator())
{
++astIter;
}
}
} | O0 | cpp | SEMANTICANALYZER::AstStatementParser::serializeRelation(AST::ASTTree::DSFIterator&, SEMANTICANALYZER::Relation&):
pushq %rbp
movq %rsp, %rbp
subq $0x220, %rsp # imm = 0x220
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x1b0(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x30(%rbp)
movaps %xmm0, -0x40(%rbp)
movaps %xmm0, -0x50(%rbp)
movaps %xmm0, -0x60(%rbp)
movaps %xmm0, -0x70(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x2f660
jmp 0x462b7
movq -0x1b0(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x2f500
movb %al, -0x1b1(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x307d0
movb -0x1b1(%rbp), %al
testb $0x1, %al
jne 0x462e5
jmp 0x465cd
movq -0x20(%rbp), %rdi
callq 0x2f900
movq %rax, -0x1c0(%rbp)
jmp 0x462f7
movq -0x1c0(%rbp), %rdi
leaq 0x7495(%rip), %rsi # 0x4d79a
callq 0x31710
movb %al, -0x1c1(%rbp)
jmp 0x46312
movb -0x1c1(%rbp), %al
testb $0x1, %al
jne 0x46321
jmp 0x463a2
movq -0x20(%rbp), %rdi
callq 0x30780
jmp 0x4632c
movq -0x1a8(%rbp), %rdi
addq $0x8, %rdi
callq 0x30780
jmp 0x4633e
movq -0x18(%rbp), %rdi
callq 0x30ad0
testb $0x1, %al
jne 0x4634d
jmp 0x46373
movq -0x20(%rbp), %rdi
callq 0x2f900
movq %rax, -0x1d0(%rbp)
jmp 0x4635f
movq -0x1d0(%rbp), %rsi
movq -0x18(%rbp), %rdi
callq 0x2d130
jmp 0x46371
jmp 0x4639d
movq -0x20(%rbp), %rdi
callq 0x2f900
movq %rax, -0x1d8(%rbp)
jmp 0x46385
movq -0x1d8(%rbp), %rsi
movq -0x18(%rbp), %rdi
addq $0x40, %rdi
callq 0x2d130
jmp 0x4639b
jmp 0x4639d
jmp 0x46518
movq -0x20(%rbp), %rdi
callq 0x2f900
movq %rax, -0x1e0(%rbp)
jmp 0x463b4
movq -0x1e0(%rbp), %rdi
leaq 0x73e4(%rip), %rsi # 0x4d7a6
callq 0x31710
movb %al, -0x1e1(%rbp)
jmp 0x463cf
movb -0x1e1(%rbp), %al
testb $0x1, %al
jne 0x463db
jmp 0x46425
movq -0x20(%rbp), %rdi
callq 0x30780
jmp 0x463e6
movq -0x1a8(%rbp), %rdi
addq $0x8, %rdi
callq 0x30780
jmp 0x463f8
movq -0x20(%rbp), %rdi
callq 0x2f900
movq %rax, -0x1f0(%rbp)
jmp 0x4640a
movq -0x1f0(%rbp), %rsi
movq -0x18(%rbp), %rdi
addq $0x20, %rdi
callq 0x2d130
jmp 0x46420
jmp 0x46516
movq -0x20(%rbp), %rdi
callq 0x2f900
movq %rax, -0x1f8(%rbp)
jmp 0x46437
movq -0x1f8(%rbp), %rdi
leaq 0x7358(%rip), %rsi # 0x4d79d
callq 0x31710
movb %al, -0x1f9(%rbp)
jmp 0x46452
movb -0x1f9(%rbp), %al
testb $0x1, %al
jne 0x46461
jmp 0x46514
leaq -0xb0(%rbp), %rdi
callq 0x2f480
movq -0x20(%rbp), %rdi
callq 0x2d780
movq %rax, %rsi
leaq -0x100(%rbp), %rdi
callq 0x2d6b0
jmp 0x46487
movq -0x1a8(%rbp), %rdi
leaq -0x100(%rbp), %rsi
leaq -0xb0(%rbp), %rdx
movq %rdx, -0x208(%rbp)
callq 0x2edf0
movq -0x208(%rbp), %rsi
movq -0x18(%rbp), %rdi
addq $0x60, %rdi
callq 0x2fab0
jmp 0x464be
jmp 0x464c0
movq -0x20(%rbp), %rdi
callq 0x2d780
movq -0x1a8(%rbp), %rdi
movq %rax, -0x210(%rbp)
addq $0x8, %rdi
callq 0x2d780
movq %rax, %rcx
movq -0x210(%rbp), %rax
cmpq %rcx, %rax
je 0x464fc
movq -0x20(%rbp), %rdi
callq 0x30780
jmp 0x464fa
jmp 0x464c0
leaq -0x100(%rbp), %rdi
callq 0x307d0
leaq -0xb0(%rbp), %rdi
callq 0x2dee0
jmp 0x46516
jmp 0x46518
movq -0x20(%rbp), %rsi
leaq -0x150(%rbp), %rdi
callq 0x30c90
jmp 0x4652a
leaq -0x150(%rbp), %rdi
callq 0x30780
jmp 0x46538
xorps %xmm0, %xmm0
movaps %xmm0, -0x160(%rbp)
movaps %xmm0, -0x170(%rbp)
movaps %xmm0, -0x180(%rbp)
movaps %xmm0, -0x190(%rbp)
movaps %xmm0, -0x1a0(%rbp)
leaq -0x1a0(%rbp), %rdi
callq 0x2f660
jmp 0x4656c
leaq -0x150(%rbp), %rdi
leaq -0x1a0(%rbp), %rsi
callq 0x2f500
movb %al, -0x211(%rbp)
leaq -0x1a0(%rbp), %rdi
callq 0x307d0
movb -0x211(%rbp), %al
testb $0x1, %al
jne 0x4659d
jmp 0x465b1
movq -0x1a8(%rbp), %rdi
addq $0x8, %rdi
callq 0x30780
jmp 0x465af
jmp 0x465b1
leaq -0x150(%rbp), %rdi
callq 0x307d0
movq -0x20(%rbp), %rdi
callq 0x30780
jmp 0x465c8
jmp 0x4628a
addq $0x220, %rsp # imm = 0x220
popq %rbp
retq
movq %rax, %rdi
callq 0x39830
nop
| _ZN16SEMANTICANALYZER18AstStatementParser17serializeRelationERN3AST7ASTTree11DSFIteratorERNS_8RelationE:
push rbp
mov rbp, rsp
sub rsp, 220h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_8]
mov [rbp+var_1A8], rax
mov rax, [rbp+var_10]
mov [rbp+var_20], rax
loc_4628A:
mov rax, [rbp+var_20]
mov [rbp+var_1B0], rax
xorps xmm0, xmm0
movaps [rbp+var_30], xmm0
movaps [rbp+var_40], xmm0
movaps [rbp+var_50], xmm0
movaps [rbp+var_60], xmm0
movaps [rbp+var_70], xmm0
lea rdi, [rbp+var_70]; this
call __ZN3AST7ASTTree11DSFIteratorC2Ev; AST::ASTTree::DSFIterator::DSFIterator(void)
jmp short $+2
loc_462B7:
mov rdi, [rbp+var_1B0]
lea rsi, [rbp+var_70]
call __ZNK3AST7ASTTree11DSFIteratorneERKS1_; AST::ASTTree::DSFIterator::operator!=(AST::ASTTree::DSFIterator const&)
mov [rbp+var_1B1], al
lea rdi, [rbp+var_70]; this
call __ZN3AST7ASTTree11DSFIteratorD2Ev; AST::ASTTree::DSFIterator::~DSFIterator()
mov al, [rbp+var_1B1]
test al, 1
jnz short loc_462E5
jmp loc_465CD
loc_462E5:
mov rdi, [rbp+var_20]
call __ZNK3AST7ASTTree11DSFIteratorptEv; AST::ASTTree::DSFIterator::operator->(void)
mov [rbp+var_1C0], rax
jmp short $+2
loc_462F7:
mov rdi, [rbp+var_1C0]
lea rsi, aId; "ID"
call __ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
mov [rbp+var_1C1], al
jmp short $+2
loc_46312:
mov al, [rbp+var_1C1]
test al, 1
jnz short loc_46321
jmp loc_463A2
loc_46321:
mov rdi, [rbp+var_20]
call __ZN3AST7ASTTree11DSFIteratorppEv; AST::ASTTree::DSFIterator::operator++(void)
jmp short $+2
loc_4632C:
mov rdi, [rbp+var_1A8]
add rdi, 8
call __ZN3AST7ASTTree11DSFIteratorppEv; AST::ASTTree::DSFIterator::operator++(void)
jmp short $+2
loc_4633E:
mov rdi, [rbp+var_18]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_4634D
jmp short loc_46373
loc_4634D:
mov rdi, [rbp+var_20]
call __ZNK3AST7ASTTree11DSFIteratorptEv; AST::ASTTree::DSFIterator::operator->(void)
mov [rbp+var_1D0], rax
jmp short $+2
loc_4635F:
mov rsi, [rbp+var_1D0]
mov rdi, [rbp+var_18]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
jmp short $+2
loc_46371:
jmp short loc_4639D
loc_46373:
mov rdi, [rbp+var_20]
call __ZNK3AST7ASTTree11DSFIteratorptEv; AST::ASTTree::DSFIterator::operator->(void)
mov [rbp+var_1D8], rax
jmp short $+2
loc_46385:
mov rsi, [rbp+var_1D8]
mov rdi, [rbp+var_18]
add rdi, 40h ; '@'
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
jmp short $+2
loc_4639B:
jmp short $+2
loc_4639D:
jmp loc_46518
loc_463A2:
mov rdi, [rbp+var_20]
call __ZNK3AST7ASTTree11DSFIteratorptEv; AST::ASTTree::DSFIterator::operator->(void)
mov [rbp+var_1E0], rax
jmp short $+2
loc_463B4:
mov rdi, [rbp+var_1E0]
lea rsi, aArrow; "ARROW"
call __ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
mov [rbp+var_1E1], al
jmp short $+2
loc_463CF:
mov al, [rbp+var_1E1]
test al, 1
jnz short loc_463DB
jmp short loc_46425
loc_463DB:
mov rdi, [rbp+var_20]
call __ZN3AST7ASTTree11DSFIteratorppEv; AST::ASTTree::DSFIterator::operator++(void)
jmp short $+2
loc_463E6:
mov rdi, [rbp+var_1A8]
add rdi, 8
call __ZN3AST7ASTTree11DSFIteratorppEv; AST::ASTTree::DSFIterator::operator++(void)
jmp short $+2
loc_463F8:
mov rdi, [rbp+var_20]
call __ZNK3AST7ASTTree11DSFIteratorptEv; AST::ASTTree::DSFIterator::operator->(void)
mov [rbp+var_1F0], rax
jmp short $+2
loc_4640A:
mov rsi, [rbp+var_1F0]
mov rdi, [rbp+var_18]
add rdi, 20h ; ' '
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
jmp short $+2
loc_46420:
jmp loc_46516
loc_46425:
mov rdi, [rbp+var_20]
call __ZNK3AST7ASTTree11DSFIteratorptEv; AST::ASTTree::DSFIterator::operator->(void)
mov [rbp+var_1F8], rax
jmp short $+2
loc_46437:
mov rdi, [rbp+var_1F8]
lea rsi, aProperty; "property"
call __ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
mov [rbp+var_1F9], al
jmp short $+2
loc_46452:
mov al, [rbp+var_1F9]
test al, 1
jnz short loc_46461
jmp loc_46514
loc_46461:
lea rdi, [rbp+var_B0]; this
call __ZN16SEMANTICANALYZER8PropertyC2Ev; SEMANTICANALYZER::Property::Property(void)
mov rdi, [rbp+var_20]; this
call __ZNK3AST7ASTTree11DSFIterator3getEv; AST::ASTTree::DSFIterator::get(void)
mov rsi, rax
lea rdi, [rbp+var_100]
call __ZN3AST7ASTTree11DSFIteratorC1EPNS_4NodeE; AST::ASTTree::DSFIterator::DSFIterator(AST::Node *)
jmp short $+2
loc_46487:
mov rdi, [rbp+var_1A8]; this
lea rsi, [rbp+var_100]; AST::ASTTree::DSFIterator *
lea rdx, [rbp+var_B0]; SEMANTICANALYZER::Property *
mov [rbp+var_208], rdx
call __ZN16SEMANTICANALYZER18AstStatementParser17serializePropertyERN3AST7ASTTree11DSFIteratorERNS_8PropertyE; SEMANTICANALYZER::AstStatementParser::serializeProperty(AST::ASTTree::DSFIterator &,SEMANTICANALYZER::Property &)
mov rsi, [rbp+var_208]
mov rdi, [rbp+var_18]
add rdi, 60h ; '`'
call __ZNSt6vectorIN16SEMANTICANALYZER8PropertyESaIS1_EE9push_backEOS1_; std::vector<SEMANTICANALYZER::Property>::push_back(SEMANTICANALYZER::Property&&)
jmp short $+2
loc_464BE:
jmp short $+2
loc_464C0:
mov rdi, [rbp+var_20]; this
call __ZNK3AST7ASTTree11DSFIterator3getEv; AST::ASTTree::DSFIterator::get(void)
mov rdi, [rbp+var_1A8]
mov [rbp+var_210], rax
add rdi, 8; this
call __ZNK3AST7ASTTree11DSFIterator3getEv; AST::ASTTree::DSFIterator::get(void)
mov rcx, rax
mov rax, [rbp+var_210]
cmp rax, rcx
jz short loc_464FC
mov rdi, [rbp+var_20]
call __ZN3AST7ASTTree11DSFIteratorppEv; AST::ASTTree::DSFIterator::operator++(void)
jmp short $+2
loc_464FA:
jmp short loc_464C0
loc_464FC:
lea rdi, [rbp+var_100]; this
call __ZN3AST7ASTTree11DSFIteratorD2Ev; AST::ASTTree::DSFIterator::~DSFIterator()
lea rdi, [rbp+var_B0]; this
call __ZN16SEMANTICANALYZER8PropertyD2Ev; SEMANTICANALYZER::Property::~Property()
loc_46514:
jmp short $+2
loc_46516:
jmp short $+2
loc_46518:
mov rsi, [rbp+var_20]; AST::ASTTree::DSFIterator *
lea rdi, [rbp+var_150]; this
call __ZN3AST7ASTTree11DSFIteratorC2ERKS1_; AST::ASTTree::DSFIterator::DSFIterator(AST::ASTTree::DSFIterator const&)
jmp short $+2
loc_4652A:
lea rdi, [rbp+var_150]
call __ZN3AST7ASTTree11DSFIteratorppEv; AST::ASTTree::DSFIterator::operator++(void)
jmp short $+2
loc_46538:
xorps xmm0, xmm0
movaps [rbp+var_160], xmm0
movaps [rbp+var_170], xmm0
movaps [rbp+var_180], xmm0
movaps [rbp+var_190], xmm0
movaps [rbp+var_1A0], xmm0
lea rdi, [rbp+var_1A0]; this
call __ZN3AST7ASTTree11DSFIteratorC2Ev; AST::ASTTree::DSFIterator::DSFIterator(void)
jmp short $+2
loc_4656C:
lea rdi, [rbp+var_150]
lea rsi, [rbp+var_1A0]
call __ZNK3AST7ASTTree11DSFIteratorneERKS1_; AST::ASTTree::DSFIterator::operator!=(AST::ASTTree::DSFIterator const&)
mov [rbp+var_211], al
lea rdi, [rbp+var_1A0]; this
call __ZN3AST7ASTTree11DSFIteratorD2Ev; AST::ASTTree::DSFIterator::~DSFIterator()
mov al, [rbp+var_211]
test al, 1
jnz short loc_4659D
jmp short loc_465B1
loc_4659D:
mov rdi, [rbp+var_1A8]
add rdi, 8
call __ZN3AST7ASTTree11DSFIteratorppEv; AST::ASTTree::DSFIterator::operator++(void)
jmp short $+2
loc_465AF:
jmp short $+2
loc_465B1:
lea rdi, [rbp+var_150]; this
call __ZN3AST7ASTTree11DSFIteratorD2Ev; AST::ASTTree::DSFIterator::~DSFIterator()
mov rdi, [rbp+var_20]
call __ZN3AST7ASTTree11DSFIteratorppEv; AST::ASTTree::DSFIterator::operator++(void)
jmp short $+2
loc_465C8:
jmp loc_4628A
loc_465CD:
add rsp, 220h
pop rbp
retn
mov rdi, rax
call __clang_call_terminate
| char SEMANTICANALYZER::AstStatementParser::serializeRelation(
SEMANTICANALYZER::AstStatementParser *this,
AST::ASTTree::DSFIterator *a2,
SEMANTICANALYZER::Relation *a3)
{
char result; // al
long long v4; // rax
char v5; // [rsp+Fh] [rbp-211h]
long long v6; // [rsp+10h] [rbp-210h]
long long v7; // [rsp+28h] [rbp-1F8h]
long long v8; // [rsp+30h] [rbp-1F0h]
long long v9; // [rsp+40h] [rbp-1E0h]
long long v10; // [rsp+48h] [rbp-1D8h]
long long v11; // [rsp+50h] [rbp-1D0h]
long long v12; // [rsp+60h] [rbp-1C0h]
char v13; // [rsp+6Fh] [rbp-1B1h]
AST::ASTTree::DSFIterator *v14; // [rsp+70h] [rbp-1B0h]
_OWORD v15[5]; // [rsp+80h] [rbp-1A0h] BYREF
_BYTE v16[80]; // [rsp+D0h] [rbp-150h] BYREF
_BYTE v17[80]; // [rsp+120h] [rbp-100h] BYREF
_BYTE v18[64]; // [rsp+170h] [rbp-B0h] BYREF
_OWORD v19[5]; // [rsp+1B0h] [rbp-70h] BYREF
AST::ASTTree::DSFIterator *i; // [rsp+200h] [rbp-20h]
SEMANTICANALYZER::Relation *v21; // [rsp+208h] [rbp-18h]
AST::ASTTree::DSFIterator *v22; // [rsp+210h] [rbp-10h]
SEMANTICANALYZER::AstStatementParser *v23; // [rsp+218h] [rbp-8h]
v23 = this;
v22 = a2;
v21 = a3;
for ( i = a2; ; AST::ASTTree::DSFIterator::operator++(i) )
{
v14 = i;
memset(v19, 0, sizeof(v19));
AST::ASTTree::DSFIterator::DSFIterator((AST::ASTTree::DSFIterator *)v19);
v13 = AST::ASTTree::DSFIterator::operator!=(v14, v19);
AST::ASTTree::DSFIterator::~DSFIterator((AST::ASTTree::DSFIterator *)v19);
result = v13;
if ( (v13 & 1) == 0 )
break;
v12 = AST::ASTTree::DSFIterator::operator->(i);
if ( (std::operator==<char>(v12, "ID") & 1) != 0 )
{
AST::ASTTree::DSFIterator::operator++(i);
AST::ASTTree::DSFIterator::operator++((char *)this + 8);
if ( (std::string::empty(v21) & 1) != 0 )
{
v11 = AST::ASTTree::DSFIterator::operator->(i);
std::string::operator=(v21, v11);
}
else
{
v10 = AST::ASTTree::DSFIterator::operator->(i);
std::string::operator=((char *)v21 + 64, v10);
}
}
else
{
v9 = AST::ASTTree::DSFIterator::operator->(i);
if ( (std::operator==<char>(v9, "ARROW") & 1) != 0 )
{
AST::ASTTree::DSFIterator::operator++(i);
AST::ASTTree::DSFIterator::operator++((char *)this + 8);
v8 = AST::ASTTree::DSFIterator::operator->(i);
std::string::operator=((char *)v21 + 32, v8);
}
else
{
v7 = AST::ASTTree::DSFIterator::operator->(i);
if ( (std::operator==<char>(v7, "property") & 1) != 0 )
{
SEMANTICANALYZER::Property::Property((SEMANTICANALYZER::Property *)v18);
v4 = AST::ASTTree::DSFIterator::get(i);
AST::ASTTree::DSFIterator::DSFIterator(v17, v4);
SEMANTICANALYZER::AstStatementParser::serializeProperty(
this,
(AST::ASTTree::DSFIterator *)v17,
(SEMANTICANALYZER::Property *)v18);
std::vector<SEMANTICANALYZER::Property>::push_back((char *)v21 + 96, v18);
while ( 1 )
{
v6 = AST::ASTTree::DSFIterator::get(i);
if ( v6 == AST::ASTTree::DSFIterator::get((SEMANTICANALYZER::AstStatementParser *)((char *)this + 8)) )
break;
AST::ASTTree::DSFIterator::operator++(i);
}
AST::ASTTree::DSFIterator::~DSFIterator((AST::ASTTree::DSFIterator *)v17);
SEMANTICANALYZER::Property::~Property((SEMANTICANALYZER::Property *)v18);
}
}
}
AST::ASTTree::DSFIterator::DSFIterator((AST::ASTTree::DSFIterator *)v16, i);
AST::ASTTree::DSFIterator::operator++(v16);
memset(v15, 0, sizeof(v15));
AST::ASTTree::DSFIterator::DSFIterator((AST::ASTTree::DSFIterator *)v15);
v5 = AST::ASTTree::DSFIterator::operator!=(v16, v15);
AST::ASTTree::DSFIterator::~DSFIterator((AST::ASTTree::DSFIterator *)v15);
if ( (v5 & 1) != 0 )
AST::ASTTree::DSFIterator::operator++((char *)this + 8);
AST::ASTTree::DSFIterator::~DSFIterator((AST::ASTTree::DSFIterator *)v16);
}
return result;
}
| serializeRelation:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x220
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x1a8],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x20],RAX
LAB_0014628a:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x1b0],RAX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RBP + -0x30],XMM0
MOVAPS xmmword ptr [RBP + -0x40],XMM0
MOVAPS xmmword ptr [RBP + -0x50],XMM0
MOVAPS xmmword ptr [RBP + -0x60],XMM0
MOVAPS xmmword ptr [RBP + -0x70],XMM0
LAB_001462ac:
LEA RDI,[RBP + -0x70]
CALL 0x0012f660
JMP 0x001462b7
LAB_001462b7:
MOV RDI,qword ptr [RBP + -0x1b0]
LEA RSI,[RBP + -0x70]
CALL 0x0012f500
MOV byte ptr [RBP + -0x1b1],AL
LEA RDI,[RBP + -0x70]
CALL 0x001307d0
MOV AL,byte ptr [RBP + -0x1b1]
TEST AL,0x1
JNZ 0x001462e5
JMP 0x001465cd
LAB_001462e5:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0012f900
MOV qword ptr [RBP + -0x1c0],RAX
JMP 0x001462f7
LAB_001462f7:
MOV RDI,qword ptr [RBP + -0x1c0]
LEA RSI,[0x14d79a]
CALL 0x00131710
MOV byte ptr [RBP + -0x1c1],AL
JMP 0x00146312
LAB_00146312:
MOV AL,byte ptr [RBP + -0x1c1]
TEST AL,0x1
JNZ 0x00146321
JMP 0x001463a2
LAB_00146321:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00130780
JMP 0x0014632c
LAB_0014632c:
MOV RDI,qword ptr [RBP + -0x1a8]
ADD RDI,0x8
CALL 0x00130780
JMP 0x0014633e
LAB_0014633e:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00130ad0
TEST AL,0x1
JNZ 0x0014634d
JMP 0x00146373
LAB_0014634d:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0012f900
MOV qword ptr [RBP + -0x1d0],RAX
JMP 0x0014635f
LAB_0014635f:
MOV RSI,qword ptr [RBP + -0x1d0]
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x0012d130
JMP 0x00146371
LAB_00146371:
JMP 0x0014639d
LAB_00146373:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0012f900
MOV qword ptr [RBP + -0x1d8],RAX
JMP 0x00146385
LAB_00146385:
MOV RSI,qword ptr [RBP + -0x1d8]
MOV RDI,qword ptr [RBP + -0x18]
ADD RDI,0x40
CALL 0x0012d130
JMP 0x0014639b
LAB_0014639b:
JMP 0x0014639d
LAB_0014639d:
JMP 0x00146518
LAB_001463a2:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0012f900
MOV qword ptr [RBP + -0x1e0],RAX
JMP 0x001463b4
LAB_001463b4:
MOV RDI,qword ptr [RBP + -0x1e0]
LEA RSI,[0x14d7a6]
CALL 0x00131710
MOV byte ptr [RBP + -0x1e1],AL
JMP 0x001463cf
LAB_001463cf:
MOV AL,byte ptr [RBP + -0x1e1]
TEST AL,0x1
JNZ 0x001463db
JMP 0x00146425
LAB_001463db:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00130780
JMP 0x001463e6
LAB_001463e6:
MOV RDI,qword ptr [RBP + -0x1a8]
ADD RDI,0x8
CALL 0x00130780
JMP 0x001463f8
LAB_001463f8:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0012f900
MOV qword ptr [RBP + -0x1f0],RAX
JMP 0x0014640a
LAB_0014640a:
MOV RSI,qword ptr [RBP + -0x1f0]
MOV RDI,qword ptr [RBP + -0x18]
ADD RDI,0x20
CALL 0x0012d130
JMP 0x00146420
LAB_00146420:
JMP 0x00146516
LAB_00146425:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0012f900
MOV qword ptr [RBP + -0x1f8],RAX
JMP 0x00146437
LAB_00146437:
MOV RDI,qword ptr [RBP + -0x1f8]
LEA RSI,[0x14d79d]
CALL 0x00131710
MOV byte ptr [RBP + -0x1f9],AL
JMP 0x00146452
LAB_00146452:
MOV AL,byte ptr [RBP + -0x1f9]
TEST AL,0x1
JNZ 0x00146461
JMP 0x00146514
LAB_00146461:
LEA RDI,[RBP + -0xb0]
CALL 0x0012f480
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0012d780
MOV RSI,RAX
LEA RDI,[RBP + -0x100]
CALL 0x0012d6b0
JMP 0x00146487
LAB_00146487:
MOV RDI,qword ptr [RBP + -0x1a8]
LEA RSI,[RBP + -0x100]
LEA RDX,[RBP + -0xb0]
MOV qword ptr [RBP + -0x208],RDX
CALL 0x0012edf0
MOV RSI,qword ptr [RBP + -0x208]
MOV RDI,qword ptr [RBP + -0x18]
ADD RDI,0x60
CALL 0x0012fab0
JMP 0x001464be
LAB_001464be:
JMP 0x001464c0
LAB_001464c0:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0012d780
MOV RDI,qword ptr [RBP + -0x1a8]
MOV qword ptr [RBP + -0x210],RAX
ADD RDI,0x8
CALL 0x0012d780
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x210]
CMP RAX,RCX
JZ 0x001464fc
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00130780
JMP 0x001464fa
LAB_001464fa:
JMP 0x001464c0
LAB_001464fc:
LEA RDI,[RBP + -0x100]
CALL 0x001307d0
LEA RDI,[RBP + -0xb0]
CALL 0x0012dee0
LAB_00146514:
JMP 0x00146516
LAB_00146516:
JMP 0x00146518
LAB_00146518:
MOV RSI,qword ptr [RBP + -0x20]
LEA RDI,[RBP + -0x150]
CALL 0x00130c90
JMP 0x0014652a
LAB_0014652a:
LEA RDI,[RBP + -0x150]
CALL 0x00130780
JMP 0x00146538
LAB_00146538:
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RBP + -0x160],XMM0
MOVAPS xmmword ptr [RBP + -0x170],XMM0
MOVAPS xmmword ptr [RBP + -0x180],XMM0
MOVAPS xmmword ptr [RBP + -0x190],XMM0
MOVAPS xmmword ptr [RBP + -0x1a0],XMM0
LEA RDI,[RBP + -0x1a0]
CALL 0x0012f660
JMP 0x0014656c
LAB_0014656c:
LEA RDI,[RBP + -0x150]
LEA RSI,[RBP + -0x1a0]
CALL 0x0012f500
MOV byte ptr [RBP + -0x211],AL
LEA RDI,[RBP + -0x1a0]
CALL 0x001307d0
MOV AL,byte ptr [RBP + -0x211]
TEST AL,0x1
JNZ 0x0014659d
JMP 0x001465b1
LAB_0014659d:
MOV RDI,qword ptr [RBP + -0x1a8]
ADD RDI,0x8
CALL 0x00130780
JMP 0x001465af
LAB_001465af:
JMP 0x001465b1
LAB_001465b1:
LEA RDI,[RBP + -0x150]
CALL 0x001307d0
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00130780
JMP 0x001465c8
LAB_001465c8:
JMP 0x0014628a
LAB_001465cd:
ADD RSP,0x220
POP RBP
RET
|
/* SEMANTICANALYZER::AstStatementParser::serializeRelation(AST::ASTTree::DSFIterator&,
SEMANTICANALYZER::Relation&) */
void __thiscall
SEMANTICANALYZER::AstStatementParser::serializeRelation
(AstStatementParser *this,DSFIterator *param_1,Relation *param_2)
{
DSFIterator *this_00;
byte bVar1;
bool bVar2;
string *psVar3;
ulong uVar4;
Node *pNVar5;
long lVar6;
long lVar7;
int8 local_1a8;
int8 uStack_1a0;
int8 local_198;
int8 uStack_190;
int8 local_188;
int8 uStack_180;
int8 local_178;
int8 uStack_170;
int8 local_168;
int8 uStack_160;
DSFIterator local_158 [80];
DSFIterator local_108 [80];
Property local_b8 [64];
int8 local_78;
int8 uStack_70;
int8 local_68;
int8 uStack_60;
int8 local_58;
int8 uStack_50;
int8 local_48;
int8 uStack_40;
int8 local_38;
int8 uStack_30;
DSFIterator *local_28;
Relation *local_20;
DSFIterator *local_18;
AstStatementParser *local_10;
local_28 = param_1;
local_20 = param_2;
local_18 = param_1;
local_10 = this;
while( true ) {
this_00 = local_28;
local_38 = 0;
uStack_30 = 0;
local_48 = 0;
uStack_40 = 0;
local_58 = 0;
uStack_50 = 0;
local_68 = 0;
uStack_60 = 0;
local_78 = 0;
uStack_70 = 0;
/* try { // try from 001462ac to 001465c5 has its CatchHandler @ 001465d6 */
AST::ASTTree::DSFIterator::DSFIterator((DSFIterator *)&local_78);
bVar1 = AST::ASTTree::DSFIterator::operator!=(this_00,(DSFIterator *)&local_78);
AST::ASTTree::DSFIterator::~DSFIterator((DSFIterator *)&local_78);
if ((bVar1 & 1) == 0) break;
psVar3 = (string *)AST::ASTTree::DSFIterator::operator->(local_28);
bVar2 = std::operator==(psVar3,"ID");
if (bVar2) {
AST::ASTTree::DSFIterator::operator++(local_28);
AST::ASTTree::DSFIterator::operator++((DSFIterator *)(this + 8));
uVar4 = std::__cxx11::string::empty();
if ((uVar4 & 1) == 0) {
psVar3 = (string *)AST::ASTTree::DSFIterator::operator->(local_28);
std::__cxx11::string::operator=((string *)(local_20 + 0x40),psVar3);
}
else {
psVar3 = (string *)AST::ASTTree::DSFIterator::operator->(local_28);
std::__cxx11::string::operator=((string *)local_20,psVar3);
}
}
else {
psVar3 = (string *)AST::ASTTree::DSFIterator::operator->(local_28);
bVar2 = std::operator==(psVar3,"ARROW");
if (bVar2) {
AST::ASTTree::DSFIterator::operator++(local_28);
AST::ASTTree::DSFIterator::operator++((DSFIterator *)(this + 8));
psVar3 = (string *)AST::ASTTree::DSFIterator::operator->(local_28);
std::__cxx11::string::operator=((string *)(local_20 + 0x20),psVar3);
}
else {
psVar3 = (string *)AST::ASTTree::DSFIterator::operator->(local_28);
bVar2 = std::operator==(psVar3,"property");
if (bVar2) {
Property::Property(local_b8);
pNVar5 = (Node *)AST::ASTTree::DSFIterator::get();
AST::ASTTree::DSFIterator::DSFIterator(local_108,pNVar5);
serializeProperty(this,local_108,local_b8);
std::vector<SEMANTICANALYZER::Property,std::allocator<SEMANTICANALYZER::Property>>::
push_back((vector<SEMANTICANALYZER::Property,std::allocator<SEMANTICANALYZER::Property>> *
)(local_20 + 0x60),local_b8);
while( true ) {
lVar6 = AST::ASTTree::DSFIterator::get();
lVar7 = AST::ASTTree::DSFIterator::get();
if (lVar6 == lVar7) break;
AST::ASTTree::DSFIterator::operator++(local_28);
}
AST::ASTTree::DSFIterator::~DSFIterator(local_108);
Property::~Property(local_b8);
}
}
}
AST::ASTTree::DSFIterator::DSFIterator(local_158,local_28);
AST::ASTTree::DSFIterator::operator++(local_158);
local_168 = 0;
uStack_160 = 0;
local_178 = 0;
uStack_170 = 0;
local_188 = 0;
uStack_180 = 0;
local_198 = 0;
uStack_190 = 0;
local_1a8 = 0;
uStack_1a0 = 0;
AST::ASTTree::DSFIterator::DSFIterator((DSFIterator *)&local_1a8);
bVar1 = AST::ASTTree::DSFIterator::operator!=(local_158,(DSFIterator *)&local_1a8);
AST::ASTTree::DSFIterator::~DSFIterator((DSFIterator *)&local_1a8);
if ((bVar1 & 1) != 0) {
AST::ASTTree::DSFIterator::operator++((DSFIterator *)(this + 8));
}
AST::ASTTree::DSFIterator::~DSFIterator(local_158);
AST::ASTTree::DSFIterator::operator++(local_28);
}
return;
}
| |
25,194 | SEMANTICANALYZER::AstStatementParser::serializeRelation(AST::ASTTree::DSFIterator&, SEMANTICANALYZER::Relation&) | 11AgReS1SoR11[P]Graph/Common/SemanticAnalyzer/src/AstStatementParser.cpp | void SEMANTICANALYZER::AstStatementParser::serializeRelation(AST::ASTTree::DSFIterator &relationIter, Relation &relation) noexcept
{
for(auto& it = relationIter; it != AST::ASTTree::DSFIterator(); ++it)
{
if(it->value == GRAMMERCONSTANTS::ID)
{
++it;
++astIter;
if(relation.id1.empty()) relation.id1 = it->value;
else relation.id2 = it->value;
}
else if(it->value == GRAMMERCONSTANTS::ARROW)
{
++it;
++astIter;
relation.arrow = it->value;
}
else if(it->value == GRAMMERCONSTANTS::PROPERTY)
{
Property property;
AST::ASTTree::DSFIterator propertyIter(it.get());
serializeProperty(propertyIter, property);
relation.properties.push_back(std::move(property));
while(it.get() != astIter.get()) {
++it;
}
}
auto nextIt = it;
++nextIt;
if(nextIt != AST::ASTTree::DSFIterator())
{
++astIter;
}
}
} | O1 | cpp | SEMANTICANALYZER::AstStatementParser::serializeRelation(AST::ASTTree::DSFIterator&, SEMANTICANALYZER::Relation&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdx, %rbx
movq %rsi, %r14
leaq 0x60(%rdx), %rax
movq %rax, 0x50(%rsp)
movq %rdi, 0x58(%rsp)
leaq 0x8(%rdi), %r13
leaq 0x20(%rdx), %rax
movq %rax, 0x60(%rsp)
leaq 0x40(%rdx), %rax
movq %rax, 0x68(%rsp)
leaq 0x70(%rsp), %rbp
movq %rsp, %r15
xorps %xmm0, %xmm0
movaps %xmm0, 0xb0(%rsp)
movaps %xmm0, 0xa0(%rsp)
movaps %xmm0, 0x90(%rsp)
movaps %xmm0, 0x80(%rsp)
movaps %xmm0, 0x70(%rsp)
movq %rbp, %rdi
xorl %esi, %esi
callq 0xb600
movq %r14, %rdi
movq %rbp, %rsi
callq 0xb740
movl %eax, %r12d
movq %rbp, %rdi
callq 0xbd20
testb %r12b, %r12b
je 0x145df
movq %r14, %rdi
callq 0xb840
movq %rax, %rdi
leaq 0x3368(%rip), %rsi # 0x1777a
callq 0xb1f0
testl %eax, %eax
je 0x144d6
movq %r14, %rdi
callq 0xb840
movq %rax, %rdi
leaq 0x3355(%rip), %rsi # 0x17786
callq 0xb1f0
testl %eax, %eax
je 0x144fc
movq %r14, %rdi
callq 0xb840
movq %rax, %rdi
leaq 0x332d(%rip), %rsi # 0x1777d
callq 0xb1f0
testl %eax, %eax
jne 0x1456f
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
xorl %ecx, %ecx
movq %rcx, 0x8(%rsp)
movb %cl, 0x10(%rsp)
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movq %rcx, 0x28(%rsp)
movb %cl, 0x30(%rsp)
movq %r14, %rdi
callq 0xb1a0
movq %rbp, %rdi
movq %rax, %rsi
callq 0xb180
movq 0x58(%rsp), %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0xb5a0
movq 0x50(%rsp), %rdi
movq %r15, %rsi
callq 0xbd30
movq %r14, %rdi
callq 0xb1a0
movq %rax, %r12
movq %r13, %rdi
callq 0xb1a0
cmpq %rax, %r12
je 0x1451b
movq %r14, %rdi
callq 0xbaf0
jmp 0x144b4
movq %r14, %rdi
callq 0xbaf0
movq %r13, %rdi
callq 0xbaf0
cmpq $0x0, 0x8(%rbx)
je 0x1455c
movq %r14, %rdi
callq 0xb840
movq 0x68(%rsp), %rdi
jmp 0x14567
movq %r14, %rdi
callq 0xbaf0
movq %r13, %rdi
callq 0xbaf0
movq %r14, %rdi
callq 0xb840
movq 0x60(%rsp), %rdi
jmp 0x14567
movq %rbp, %rdi
callq 0xbd20
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x1453f
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb6a0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1456f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb6a0
jmp 0x1456f
movq %r14, %rdi
callq 0xb840
movq %rbx, %rdi
movq %rax, %rsi
callq 0xb390
movq %rbp, %rdi
movq %r14, %rsi
callq 0xb660
movq %rbp, %rdi
callq 0xbaf0
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
movq %r15, %rdi
xorl %esi, %esi
callq 0xb600
movq %rbp, %rdi
movq %r15, %rsi
callq 0xb740
movl %eax, %r12d
movq %r15, %rdi
callq 0xbd20
testb %r12b, %r12b
je 0x145ca
movq %r13, %rdi
callq 0xbaf0
movq %rbp, %rdi
callq 0xbd20
movq %r14, %rdi
callq 0xbaf0
jmp 0x143af
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x145f3
movq %rax, %rdi
callq 0x10969
nop
| _ZN16SEMANTICANALYZER18AstStatementParser17serializeRelationERN3AST7ASTTree11DSFIteratorERNS_8RelationE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0C8h
mov rbx, rdx
mov r14, rsi
lea rax, [rdx+60h]
mov [rsp+0F8h+var_A8], rax
mov [rsp+0F8h+var_A0], rdi
lea r13, [rdi+8]
lea rax, [rdx+20h]
mov [rsp+0F8h+var_98], rax
lea rax, [rdx+40h]
mov [rsp+0F8h+var_90], rax
lea rbp, [rsp+0F8h+var_88]
mov r15, rsp
loc_143AF:
xorps xmm0, xmm0
movaps [rsp+0F8h+var_48], xmm0
movaps [rsp+0F8h+var_58], xmm0
movaps [rsp+0F8h+var_68], xmm0
movaps [rsp+0F8h+var_78], xmm0
movaps [rsp+0F8h+var_88], xmm0
mov rdi, rbp
xor esi, esi
call __ZNSt11_Deque_baseIPN3AST4NodeESaIS2_EE17_M_initialize_mapEm; std::_Deque_base<AST::Node *>::_M_initialize_map(ulong)
mov rdi, r14
mov rsi, rbp
call __ZNK3AST7ASTTree11DSFIteratorneERKS1_; AST::ASTTree::DSFIterator::operator!=(AST::ASTTree::DSFIterator const&)
mov r12d, eax
mov rdi, rbp
call __ZNSt11_Deque_baseIPN3AST4NodeESaIS2_EED2Ev; std::_Deque_base<AST::Node *>::~_Deque_base()
test r12b, r12b
jz loc_145DF
mov rdi, r14
call __ZNK3AST7ASTTree11DSFIteratorptEv; AST::ASTTree::DSFIterator::operator->(void)
mov rdi, rax
lea rsi, aId; "ID"
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz loc_144D6
mov rdi, r14
call __ZNK3AST7ASTTree11DSFIteratorptEv; AST::ASTTree::DSFIterator::operator->(void)
mov rdi, rax
lea rsi, aArrow; "ARROW"
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz loc_144FC
mov rdi, r14
call __ZNK3AST7ASTTree11DSFIteratorptEv; AST::ASTTree::DSFIterator::operator->(void)
mov rdi, rax
lea rsi, aProperty; "property"
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jnz loc_1456F
lea rax, [rsp+0F8h+var_E8]
mov [rsp+0F8h+var_F8], rax
xor ecx, ecx
mov [rsp+0F8h+var_F8+8], rcx
mov byte ptr [rsp+0F8h+var_E8], cl
lea rax, [rsp+0F8h+var_C8]
mov [rsp+0F8h+var_D8], rax
mov [rsp+0F8h+var_D8+8], rcx
mov byte ptr [rsp+0F8h+var_C8], cl
mov rdi, r14; this
call __ZNK3AST7ASTTree11DSFIterator3getEv; AST::ASTTree::DSFIterator::get(void)
mov rdi, rbp
mov rsi, rax
call __ZN3AST7ASTTree11DSFIteratorC1EPNS_4NodeE; AST::ASTTree::DSFIterator::DSFIterator(AST::Node *)
mov rdi, [rsp+0F8h+var_A0]
mov rsi, rbp
mov rdx, r15
call __ZN16SEMANTICANALYZER18AstStatementParser17serializePropertyERN3AST7ASTTree11DSFIteratorERNS_8PropertyE; SEMANTICANALYZER::AstStatementParser::serializeProperty(AST::ASTTree::DSFIterator &,SEMANTICANALYZER::Property &)
mov rdi, [rsp+0F8h+var_A8]
mov rsi, r15
call __ZNSt6vectorIN16SEMANTICANALYZER8PropertyESaIS1_EE12emplace_backIJS1_EEERS1_DpOT_; std::vector<SEMANTICANALYZER::Property>::emplace_back<SEMANTICANALYZER::Property>(SEMANTICANALYZER::Property &&)
loc_144B4:
mov rdi, r14; this
call __ZNK3AST7ASTTree11DSFIterator3getEv; AST::ASTTree::DSFIterator::get(void)
mov r12, rax
mov rdi, r13; this
call __ZNK3AST7ASTTree11DSFIterator3getEv; AST::ASTTree::DSFIterator::get(void)
cmp r12, rax
jz short loc_1451B
mov rdi, r14
call __ZN3AST7ASTTree11DSFIteratorppEv; AST::ASTTree::DSFIterator::operator++(void)
jmp short loc_144B4
loc_144D6:
mov rdi, r14
call __ZN3AST7ASTTree11DSFIteratorppEv; AST::ASTTree::DSFIterator::operator++(void)
mov rdi, r13
call __ZN3AST7ASTTree11DSFIteratorppEv; AST::ASTTree::DSFIterator::operator++(void)
cmp qword ptr [rbx+8], 0
jz short loc_1455C
mov rdi, r14
call __ZNK3AST7ASTTree11DSFIteratorptEv; AST::ASTTree::DSFIterator::operator->(void)
mov rdi, [rsp+0F8h+var_90]
jmp short loc_14567
loc_144FC:
mov rdi, r14
call __ZN3AST7ASTTree11DSFIteratorppEv; AST::ASTTree::DSFIterator::operator++(void)
mov rdi, r13
call __ZN3AST7ASTTree11DSFIteratorppEv; AST::ASTTree::DSFIterator::operator++(void)
mov rdi, r14
call __ZNK3AST7ASTTree11DSFIteratorptEv; AST::ASTTree::DSFIterator::operator->(void)
mov rdi, [rsp+0F8h+var_98]
jmp short loc_14567
loc_1451B:
mov rdi, rbp
call __ZNSt11_Deque_baseIPN3AST4NodeESaIS2_EED2Ev; std::_Deque_base<AST::Node *>::~_Deque_base()
mov rdi, [rsp+0F8h+var_D8]; void *
lea rax, [rsp+0F8h+var_C8]
cmp rdi, rax
jz short loc_1453F
mov rsi, qword ptr [rsp+0F8h+var_C8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1453F:
mov rdi, [rsp+0F8h+var_F8]; void *
lea rax, [rsp+0F8h+var_E8]
cmp rdi, rax
jz short loc_1456F
mov rsi, qword ptr [rsp+0F8h+var_E8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_1456F
loc_1455C:
mov rdi, r14
call __ZNK3AST7ASTTree11DSFIteratorptEv; AST::ASTTree::DSFIterator::operator->(void)
mov rdi, rbx
loc_14567:
mov rsi, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
loc_1456F:
mov rdi, rbp
mov rsi, r14
call __ZNSt5dequeIPN3AST4NodeESaIS2_EEC2ERKS4_; std::deque<AST::Node *>::deque(std::deque<AST::Node *> const&)
mov rdi, rbp
call __ZN3AST7ASTTree11DSFIteratorppEv; AST::ASTTree::DSFIterator::operator++(void)
xorps xmm0, xmm0
movaps [rsp+0F8h+var_B8], xmm0
movaps [rsp+0F8h+var_C8], xmm0
movaps xmmword ptr [rsp+0F8h+var_D8], xmm0
movaps [rsp+0F8h+var_E8], xmm0
movaps xmmword ptr [rsp+0F8h+var_F8], xmm0
mov rdi, r15
xor esi, esi
call __ZNSt11_Deque_baseIPN3AST4NodeESaIS2_EE17_M_initialize_mapEm; std::_Deque_base<AST::Node *>::_M_initialize_map(ulong)
mov rdi, rbp
mov rsi, r15
call __ZNK3AST7ASTTree11DSFIteratorneERKS1_; AST::ASTTree::DSFIterator::operator!=(AST::ASTTree::DSFIterator const&)
mov r12d, eax
mov rdi, r15
call __ZNSt11_Deque_baseIPN3AST4NodeESaIS2_EED2Ev; std::_Deque_base<AST::Node *>::~_Deque_base()
test r12b, r12b
jz short loc_145CA
mov rdi, r13
call __ZN3AST7ASTTree11DSFIteratorppEv; AST::ASTTree::DSFIterator::operator++(void)
loc_145CA:
mov rdi, rbp
call __ZNSt11_Deque_baseIPN3AST4NodeESaIS2_EED2Ev; std::_Deque_base<AST::Node *>::~_Deque_base()
mov rdi, r14
call __ZN3AST7ASTTree11DSFIteratorppEv; AST::ASTTree::DSFIterator::operator++(void)
jmp loc_143AF
loc_145DF:
add rsp, 0C8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_145F3:
mov rdi, rax
call __clang_call_terminate
| long long SEMANTICANALYZER::AstStatementParser::serializeRelation(
long long a1,
AST::ASTTree::DSFIterator *a2,
long long a3)
{
AST::ASTTree::DSFIterator *v4; // r13
char v5; // r12
long long result; // rax
long long v7; // rax
long long v8; // rax
long long v9; // rax
long long v10; // rax
long long v11; // r12
long long v12; // rax
long long v13; // rdi
char v14; // r12
void *v15[2]; // [rsp+0h] [rbp-F8h] BYREF
__int128 v16; // [rsp+10h] [rbp-E8h] BYREF
void *v17[2]; // [rsp+20h] [rbp-D8h]
_OWORD v18[2]; // [rsp+30h] [rbp-C8h] BYREF
long long v19; // [rsp+50h] [rbp-A8h]
long long v20; // [rsp+58h] [rbp-A0h]
long long v21; // [rsp+60h] [rbp-98h]
long long v22; // [rsp+68h] [rbp-90h]
_OWORD v23[8]; // [rsp+70h] [rbp-88h] BYREF
v19 = a3 + 96;
v20 = a1;
v4 = (AST::ASTTree::DSFIterator *)(a1 + 8);
v21 = a3 + 32;
v22 = a3 + 64;
while ( 1 )
{
memset(v23, 0, 80);
std::_Deque_base<AST::Node *>::_M_initialize_map(v23, 0LL);
v5 = AST::ASTTree::DSFIterator::operator!=(a2, v23);
result = std::_Deque_base<AST::Node *>::~_Deque_base(v23);
if ( !v5 )
return result;
v7 = AST::ASTTree::DSFIterator::operator->(a2);
if ( !(unsigned int)std::string::compare(v7, "ID") )
{
AST::ASTTree::DSFIterator::operator++(a2);
AST::ASTTree::DSFIterator::operator++(v4);
if ( *(_QWORD *)(a3 + 8) )
{
v12 = AST::ASTTree::DSFIterator::operator->(a2);
v13 = v22;
}
else
{
v12 = AST::ASTTree::DSFIterator::operator->(a2);
v13 = a3;
}
goto LABEL_17;
}
v8 = AST::ASTTree::DSFIterator::operator->(a2);
if ( !(unsigned int)std::string::compare(v8, "ARROW") )
{
AST::ASTTree::DSFIterator::operator++(a2);
AST::ASTTree::DSFIterator::operator++(v4);
v12 = AST::ASTTree::DSFIterator::operator->(a2);
v13 = v21;
LABEL_17:
std::string::_M_assign(v13, v12);
goto LABEL_18;
}
v9 = AST::ASTTree::DSFIterator::operator->(a2);
if ( !(unsigned int)std::string::compare(v9, "property") )
{
v15[0] = &v16;
v15[1] = 0LL;
LOBYTE(v16) = 0;
v17[0] = v18;
v17[1] = 0LL;
LOBYTE(v18[0]) = 0;
v10 = AST::ASTTree::DSFIterator::get(a2);
AST::ASTTree::DSFIterator::DSFIterator(v23, v10);
SEMANTICANALYZER::AstStatementParser::serializeProperty(v20, v23, v15);
std::vector<SEMANTICANALYZER::Property>::emplace_back<SEMANTICANALYZER::Property>(v19, v15);
while ( 1 )
{
v11 = AST::ASTTree::DSFIterator::get(a2);
if ( v11 == AST::ASTTree::DSFIterator::get(v4) )
break;
AST::ASTTree::DSFIterator::operator++(a2);
}
std::_Deque_base<AST::Node *>::~_Deque_base(v23);
if ( v17[0] != v18 )
operator delete(v17[0], *(_QWORD *)&v18[0] + 1LL);
if ( v15[0] != &v16 )
operator delete(v15[0], v16 + 1);
}
LABEL_18:
std::deque<AST::Node *>::deque(v23, a2);
AST::ASTTree::DSFIterator::operator++(v23);
memset(v18, 0, sizeof(v18));
*(_OWORD *)v17 = 0LL;
v16 = 0LL;
*(_OWORD *)v15 = 0LL;
std::_Deque_base<AST::Node *>::_M_initialize_map(v15, 0LL);
v14 = AST::ASTTree::DSFIterator::operator!=(v23, v15);
std::_Deque_base<AST::Node *>::~_Deque_base(v15);
if ( v14 )
AST::ASTTree::DSFIterator::operator++(v4);
std::_Deque_base<AST::Node *>::~_Deque_base(v23);
AST::ASTTree::DSFIterator::operator++(a2);
}
}
| serializeRelation:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xc8
MOV RBX,RDX
MOV R14,RSI
LEA RAX,[RDX + 0x60]
MOV qword ptr [RSP + 0x50],RAX
MOV qword ptr [RSP + 0x58],RDI
LEA R13,[RDI + 0x8]
LEA RAX,[RDX + 0x20]
MOV qword ptr [RSP + 0x60],RAX
LEA RAX,[RDX + 0x40]
MOV qword ptr [RSP + 0x68],RAX
LEA RBP,[RSP + 0x70]
MOV R15,RSP
LAB_001143af:
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0xb0],XMM0
MOVAPS xmmword ptr [RSP + 0xa0],XMM0
MOVAPS xmmword ptr [RSP + 0x90],XMM0
MOVAPS xmmword ptr [RSP + 0x80],XMM0
MOVAPS xmmword ptr [RSP + 0x70],XMM0
LAB_001143d7:
MOV RDI,RBP
XOR ESI,ESI
CALL 0x0010b600
MOV RDI,R14
MOV RSI,RBP
CALL 0x0010b740
MOV R12D,EAX
MOV RDI,RBP
CALL 0x0010bd20
TEST R12B,R12B
JZ 0x001145df
MOV RDI,R14
CALL 0x0010b840
MOV RDI,RAX
LEA RSI,[0x11777a]
CALL 0x0010b1f0
TEST EAX,EAX
JZ 0x001144d6
MOV RDI,R14
CALL 0x0010b840
MOV RDI,RAX
LEA RSI,[0x117786]
CALL 0x0010b1f0
TEST EAX,EAX
JZ 0x001144fc
MOV RDI,R14
CALL 0x0010b840
MOV RDI,RAX
LEA RSI,[0x11777d]
CALL 0x0010b1f0
TEST EAX,EAX
JNZ 0x0011456f
LEA RAX,[RSP + 0x10]
MOV qword ptr [RSP],RAX
XOR ECX,ECX
MOV qword ptr [RSP + 0x8],RCX
MOV byte ptr [RSP + 0x10],CL
LEA RAX,[RSP + 0x30]
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0x28],RCX
MOV byte ptr [RSP + 0x30],CL
MOV RDI,R14
CALL 0x0010b1a0
MOV RDI,RBP
MOV RSI,RAX
CALL 0x0010b180
MOV RDI,qword ptr [RSP + 0x58]
MOV RSI,RBP
MOV RDX,R15
CALL 0x0010b5a0
MOV RDI,qword ptr [RSP + 0x50]
MOV RSI,R15
CALL 0x0010bd30
LAB_001144b4:
MOV RDI,R14
CALL 0x0010b1a0
MOV R12,RAX
MOV RDI,R13
CALL 0x0010b1a0
CMP R12,RAX
JZ 0x0011451b
LAB_001144cc:
MOV RDI,R14
CALL 0x0010baf0
JMP 0x001144b4
LAB_001144d6:
MOV RDI,R14
CALL 0x0010baf0
MOV RDI,R13
CALL 0x0010baf0
CMP qword ptr [RBX + 0x8],0x0
JZ 0x0011455c
MOV RDI,R14
CALL 0x0010b840
MOV RDI,qword ptr [RSP + 0x68]
JMP 0x00114567
LAB_001144fc:
MOV RDI,R14
CALL 0x0010baf0
MOV RDI,R13
CALL 0x0010baf0
MOV RDI,R14
CALL 0x0010b840
MOV RDI,qword ptr [RSP + 0x60]
JMP 0x00114567
LAB_0011451b:
MOV RDI,RBP
CALL 0x0010bd20
MOV RDI,qword ptr [RSP + 0x20]
LEA RAX,[RSP + 0x30]
CMP RDI,RAX
JZ 0x0011453f
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x0010b6a0
LAB_0011453f:
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x0011456f
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0010b6a0
JMP 0x0011456f
LAB_0011455c:
MOV RDI,R14
CALL 0x0010b840
MOV RDI,RBX
LAB_00114567:
MOV RSI,RAX
CALL 0x0010b390
LAB_0011456f:
MOV RDI,RBP
MOV RSI,R14
CALL 0x0010b660
MOV RDI,RBP
CALL 0x0010baf0
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x40],XMM0
MOVAPS xmmword ptr [RSP + 0x30],XMM0
MOVAPS xmmword ptr [RSP + 0x20],XMM0
MOVAPS xmmword ptr [RSP + 0x10],XMM0
MOVAPS xmmword ptr [RSP],XMM0
MOV RDI,R15
XOR ESI,ESI
CALL 0x0010b600
MOV RDI,RBP
MOV RSI,R15
CALL 0x0010b740
MOV R12D,EAX
MOV RDI,R15
CALL 0x0010bd20
TEST R12B,R12B
JZ 0x001145ca
MOV RDI,R13
CALL 0x0010baf0
LAB_001145ca:
MOV RDI,RBP
CALL 0x0010bd20
MOV RDI,R14
CALL 0x0010baf0
JMP 0x001143af
LAB_001145df:
ADD RSP,0xc8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* SEMANTICANALYZER::AstStatementParser::serializeRelation(AST::ASTTree::DSFIterator&,
SEMANTICANALYZER::Relation&) */
void __thiscall
SEMANTICANALYZER::AstStatementParser::serializeRelation
(AstStatementParser *this,DSFIterator *param_1,Relation *param_2)
{
DSFIterator *this_00;
char cVar1;
int iVar2;
char *pcVar3;
Node *pNVar4;
long lVar5;
long lVar6;
Relation *pRVar7;
ulong *local_f8;
int8 uStack_f0;
ulong local_e8 [2];
ulong *local_d8;
int8 uStack_d0;
ulong local_c8 [4];
Relation *local_a8;
AstStatementParser *local_a0;
Relation *local_98;
Relation *local_90;
int8 local_88;
int8 uStack_80;
int8 local_78;
int8 uStack_70;
int8 local_68;
int8 uStack_60;
int8 local_58;
int8 uStack_50;
int8 local_48;
int8 uStack_40;
local_a8 = param_2 + 0x60;
this_00 = (DSFIterator *)(this + 8);
local_98 = param_2 + 0x20;
local_90 = param_2 + 0x40;
local_a0 = this;
do {
local_48 = 0;
uStack_40 = 0;
local_58 = 0;
uStack_50 = 0;
local_68 = 0;
uStack_60 = 0;
local_78 = 0;
uStack_70 = 0;
local_88 = 0;
uStack_80 = 0;
/* try { // try from 001143d7 to 001144b3 has its CatchHandler @ 001145f3 */
std::_Deque_base<AST::Node*,std::allocator<AST::Node*>>::_M_initialize_map
((_Deque_base<AST::Node*,std::allocator<AST::Node*>> *)&local_88,0);
cVar1 = AST::ASTTree::DSFIterator::operator!=(param_1,(DSFIterator *)&local_88);
std::_Deque_base<AST::Node*,std::allocator<AST::Node*>>::~_Deque_base
((_Deque_base<AST::Node*,std::allocator<AST::Node*>> *)&local_88);
if (cVar1 == '\0') {
return;
}
pcVar3 = (char *)AST::ASTTree::DSFIterator::operator->(param_1);
iVar2 = std::__cxx11::string::compare(pcVar3);
if (iVar2 == 0) {
/* try { // try from 001144d6 to 001145d9 has its CatchHandler @ 001145f3 */
AST::ASTTree::DSFIterator::operator++(param_1);
AST::ASTTree::DSFIterator::operator++(this_00);
if (*(long *)(param_2 + 8) == 0) {
AST::ASTTree::DSFIterator::operator->(param_1);
pRVar7 = param_2;
}
else {
AST::ASTTree::DSFIterator::operator->(param_1);
pRVar7 = local_90;
}
LAB_00114567:
std::__cxx11::string::_M_assign((string *)pRVar7);
}
else {
pcVar3 = (char *)AST::ASTTree::DSFIterator::operator->(param_1);
iVar2 = std::__cxx11::string::compare(pcVar3);
if (iVar2 == 0) {
AST::ASTTree::DSFIterator::operator++(param_1);
AST::ASTTree::DSFIterator::operator++(this_00);
AST::ASTTree::DSFIterator::operator->(param_1);
pRVar7 = local_98;
goto LAB_00114567;
}
pcVar3 = (char *)AST::ASTTree::DSFIterator::operator->(param_1);
iVar2 = std::__cxx11::string::compare(pcVar3);
if (iVar2 == 0) {
local_f8 = local_e8;
uStack_f0 = 0;
local_e8[0] = local_e8[0] & 0xffffffffffffff00;
local_d8 = local_c8;
uStack_d0 = 0;
local_c8[0] = local_c8[0] & 0xffffffffffffff00;
pNVar4 = (Node *)AST::ASTTree::DSFIterator::get();
AST::ASTTree::DSFIterator::DSFIterator((DSFIterator *)&local_88,pNVar4);
serializeProperty(local_a0,(DSFIterator *)&local_88,(Property *)&local_f8);
std::vector<SEMANTICANALYZER::Property,std::allocator<SEMANTICANALYZER::Property>>::
emplace_back<SEMANTICANALYZER::Property>
((vector<SEMANTICANALYZER::Property,std::allocator<SEMANTICANALYZER::Property>> *)
local_a8,(Property *)&local_f8);
while( true ) {
lVar5 = AST::ASTTree::DSFIterator::get();
lVar6 = AST::ASTTree::DSFIterator::get();
if (lVar5 == lVar6) break;
/* try { // try from 001144cc to 001144d3 has its CatchHandler @ 001145f1 */
AST::ASTTree::DSFIterator::operator++(param_1);
}
std::_Deque_base<AST::Node*,std::allocator<AST::Node*>>::~_Deque_base
((_Deque_base<AST::Node*,std::allocator<AST::Node*>> *)&local_88);
if (local_d8 != local_c8) {
operator_delete(local_d8,local_c8[0] + 1);
}
if (local_f8 != local_e8) {
operator_delete(local_f8,local_e8[0] + 1);
}
}
}
std::deque<AST::Node*,std::allocator<AST::Node*>>::deque
((deque<AST::Node*,std::allocator<AST::Node*>> *)&local_88,(deque *)param_1);
AST::ASTTree::DSFIterator::operator++((DSFIterator *)&local_88);
local_c8[2] = 0;
local_c8[3] = 0;
local_c8[0] = 0;
local_c8[1] = 0;
local_d8 = (ulong *)0x0;
uStack_d0 = 0;
local_e8[0] = 0;
local_e8[1] = 0;
local_f8 = (ulong *)0x0;
uStack_f0 = 0;
std::_Deque_base<AST::Node*,std::allocator<AST::Node*>>::_M_initialize_map
((_Deque_base<AST::Node*,std::allocator<AST::Node*>> *)&local_f8,0);
cVar1 = AST::ASTTree::DSFIterator::operator!=((DSFIterator *)&local_88,(DSFIterator *)&local_f8)
;
std::_Deque_base<AST::Node*,std::allocator<AST::Node*>>::~_Deque_base
((_Deque_base<AST::Node*,std::allocator<AST::Node*>> *)&local_f8);
if (cVar1 != '\0') {
AST::ASTTree::DSFIterator::operator++(this_00);
}
std::_Deque_base<AST::Node*,std::allocator<AST::Node*>>::~_Deque_base
((_Deque_base<AST::Node*,std::allocator<AST::Node*>> *)&local_88);
AST::ASTTree::DSFIterator::operator++(param_1);
} while( true );
}
| |
25,195 | SEMANTICANALYZER::AstStatementParser::serializeRelation(AST::ASTTree::DSFIterator&, SEMANTICANALYZER::Relation&) | 11AgReS1SoR11[P]Graph/Common/SemanticAnalyzer/src/AstStatementParser.cpp | void SEMANTICANALYZER::AstStatementParser::serializeRelation(AST::ASTTree::DSFIterator &relationIter, Relation &relation) noexcept
{
for(auto& it = relationIter; it != AST::ASTTree::DSFIterator(); ++it)
{
if(it->value == GRAMMERCONSTANTS::ID)
{
++it;
++astIter;
if(relation.id1.empty()) relation.id1 = it->value;
else relation.id2 = it->value;
}
else if(it->value == GRAMMERCONSTANTS::ARROW)
{
++it;
++astIter;
relation.arrow = it->value;
}
else if(it->value == GRAMMERCONSTANTS::PROPERTY)
{
Property property;
AST::ASTTree::DSFIterator propertyIter(it.get());
serializeProperty(propertyIter, property);
relation.properties.push_back(std::move(property));
while(it.get() != astIter.get()) {
++it;
}
}
auto nextIt = it;
++nextIt;
if(nextIt != AST::ASTTree::DSFIterator())
{
++astIter;
}
}
} | O3 | cpp | SEMANTICANALYZER::AstStatementParser::serializeRelation(AST::ASTTree::DSFIterator&, SEMANTICANALYZER::Relation&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdx, %rbx
movq %rsi, %r14
leaq 0x60(%rdx), %rax
movq %rax, 0x50(%rsp)
movq %rdi, 0x58(%rsp)
leaq 0x8(%rdi), %r13
leaq 0x20(%rdx), %rax
movq %rax, 0x60(%rsp)
leaq 0x40(%rdx), %rax
movq %rax, 0x68(%rsp)
leaq 0x70(%rsp), %rbp
movq %rsp, %r15
xorps %xmm0, %xmm0
movaps %xmm0, 0xb0(%rsp)
movaps %xmm0, 0xa0(%rsp)
movaps %xmm0, 0x90(%rsp)
movaps %xmm0, 0x80(%rsp)
movaps %xmm0, 0x70(%rsp)
movq %rbp, %rdi
xorl %esi, %esi
callq 0xb600
movq %r14, %rdi
movq %rbp, %rsi
callq 0xb740
movl %eax, %r12d
movq %rbp, %rdi
callq 0xbd20
testb %r12b, %r12b
je 0x1465b
movq %r14, %rdi
callq 0xb840
movq %rax, %rdi
leaq 0x32ec(%rip), %rsi # 0x1777a
callq 0xb1f0
testl %eax, %eax
je 0x14552
movq %r14, %rdi
callq 0xb840
movq %rax, %rdi
leaq 0x32d9(%rip), %rsi # 0x17786
callq 0xb1f0
testl %eax, %eax
je 0x14578
movq %r14, %rdi
callq 0xb840
movq %rax, %rdi
leaq 0x32b1(%rip), %rsi # 0x1777d
callq 0xb1f0
testl %eax, %eax
jne 0x145eb
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
xorl %ecx, %ecx
movq %rcx, 0x8(%rsp)
movb %cl, 0x10(%rsp)
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movq %rcx, 0x28(%rsp)
movb %cl, 0x30(%rsp)
movq %r14, %rdi
callq 0xb1a0
movq %rbp, %rdi
movq %rax, %rsi
callq 0xb180
movq 0x58(%rsp), %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0xb5a0
movq 0x50(%rsp), %rdi
movq %r15, %rsi
callq 0xbd30
movq %r14, %rdi
callq 0xb1a0
movq %rax, %r12
movq %r13, %rdi
callq 0xb1a0
cmpq %rax, %r12
je 0x14597
movq %r14, %rdi
callq 0xbaf0
jmp 0x14530
movq %r14, %rdi
callq 0xbaf0
movq %r13, %rdi
callq 0xbaf0
cmpq $0x0, 0x8(%rbx)
je 0x145d8
movq %r14, %rdi
callq 0xb840
movq 0x68(%rsp), %rdi
jmp 0x145e3
movq %r14, %rdi
callq 0xbaf0
movq %r13, %rdi
callq 0xbaf0
movq %r14, %rdi
callq 0xb840
movq 0x60(%rsp), %rdi
jmp 0x145e3
movq %rbp, %rdi
callq 0xbd20
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x145bb
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb6a0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x145eb
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb6a0
jmp 0x145eb
movq %r14, %rdi
callq 0xb840
movq %rbx, %rdi
movq %rax, %rsi
callq 0xb390
movq %rbp, %rdi
movq %r14, %rsi
callq 0xb660
movq %rbp, %rdi
callq 0xbaf0
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
movq %r15, %rdi
xorl %esi, %esi
callq 0xb600
movq %rbp, %rdi
movq %r15, %rsi
callq 0xb740
movl %eax, %r12d
movq %r15, %rdi
callq 0xbd20
testb %r12b, %r12b
je 0x14646
movq %r13, %rdi
callq 0xbaf0
movq %rbp, %rdi
callq 0xbd20
movq %r14, %rdi
callq 0xbaf0
jmp 0x1442b
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1466f
movq %rax, %rdi
callq 0x10aa5
nop
| _ZN16SEMANTICANALYZER18AstStatementParser17serializeRelationERN3AST7ASTTree11DSFIteratorERNS_8RelationE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0C8h
mov rbx, rdx
mov r14, rsi
lea rax, [rdx+60h]
mov [rsp+0F8h+var_A8], rax
mov [rsp+0F8h+var_A0], rdi
lea r13, [rdi+8]
lea rax, [rdx+20h]
mov [rsp+0F8h+var_98], rax
lea rax, [rdx+40h]
mov [rsp+0F8h+var_90], rax
lea rbp, [rsp+0F8h+var_88]
mov r15, rsp
loc_1442B:
xorps xmm0, xmm0
movaps [rsp+0F8h+var_48], xmm0
movaps [rsp+0F8h+var_58], xmm0
movaps [rsp+0F8h+var_68], xmm0
movaps [rsp+0F8h+var_78], xmm0
movaps [rsp+0F8h+var_88], xmm0
mov rdi, rbp
xor esi, esi
call __ZNSt11_Deque_baseIPN3AST4NodeESaIS2_EE17_M_initialize_mapEm; std::_Deque_base<AST::Node *>::_M_initialize_map(ulong)
mov rdi, r14
mov rsi, rbp
call __ZNK3AST7ASTTree11DSFIteratorneERKS1_; AST::ASTTree::DSFIterator::operator!=(AST::ASTTree::DSFIterator const&)
mov r12d, eax
mov rdi, rbp
call __ZNSt11_Deque_baseIPN3AST4NodeESaIS2_EED2Ev; std::_Deque_base<AST::Node *>::~_Deque_base()
test r12b, r12b
jz loc_1465B
mov rdi, r14
call __ZNK3AST7ASTTree11DSFIteratorptEv; AST::ASTTree::DSFIterator::operator->(void)
mov rdi, rax
lea rsi, aId; "ID"
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz loc_14552
mov rdi, r14
call __ZNK3AST7ASTTree11DSFIteratorptEv; AST::ASTTree::DSFIterator::operator->(void)
mov rdi, rax
lea rsi, aArrow; "ARROW"
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz loc_14578
mov rdi, r14
call __ZNK3AST7ASTTree11DSFIteratorptEv; AST::ASTTree::DSFIterator::operator->(void)
mov rdi, rax
lea rsi, aProperty; "property"
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jnz loc_145EB
lea rax, [rsp+0F8h+var_E8]
mov [rsp+0F8h+var_F8], rax
xor ecx, ecx
mov [rsp+0F8h+var_F8+8], rcx
mov byte ptr [rsp+0F8h+var_E8], cl
lea rax, [rsp+0F8h+var_C8]
mov [rsp+0F8h+var_D8], rax
mov [rsp+0F8h+var_D8+8], rcx
mov byte ptr [rsp+0F8h+var_C8], cl
mov rdi, r14; this
call __ZNK3AST7ASTTree11DSFIterator3getEv; AST::ASTTree::DSFIterator::get(void)
mov rdi, rbp
mov rsi, rax
call __ZN3AST7ASTTree11DSFIteratorC1EPNS_4NodeE; AST::ASTTree::DSFIterator::DSFIterator(AST::Node *)
mov rdi, [rsp+0F8h+var_A0]
mov rsi, rbp
mov rdx, r15
call __ZN16SEMANTICANALYZER18AstStatementParser17serializePropertyERN3AST7ASTTree11DSFIteratorERNS_8PropertyE; SEMANTICANALYZER::AstStatementParser::serializeProperty(AST::ASTTree::DSFIterator &,SEMANTICANALYZER::Property &)
mov rdi, [rsp+0F8h+var_A8]
mov rsi, r15
call __ZNSt6vectorIN16SEMANTICANALYZER8PropertyESaIS1_EE12emplace_backIJS1_EEERS1_DpOT_; std::vector<SEMANTICANALYZER::Property>::emplace_back<SEMANTICANALYZER::Property>(SEMANTICANALYZER::Property &&)
loc_14530:
mov rdi, r14; this
call __ZNK3AST7ASTTree11DSFIterator3getEv; AST::ASTTree::DSFIterator::get(void)
mov r12, rax
mov rdi, r13; this
call __ZNK3AST7ASTTree11DSFIterator3getEv; AST::ASTTree::DSFIterator::get(void)
cmp r12, rax
jz short loc_14597
mov rdi, r14
call __ZN3AST7ASTTree11DSFIteratorppEv; AST::ASTTree::DSFIterator::operator++(void)
jmp short loc_14530
loc_14552:
mov rdi, r14
call __ZN3AST7ASTTree11DSFIteratorppEv; AST::ASTTree::DSFIterator::operator++(void)
mov rdi, r13
call __ZN3AST7ASTTree11DSFIteratorppEv; AST::ASTTree::DSFIterator::operator++(void)
cmp qword ptr [rbx+8], 0
jz short loc_145D8
mov rdi, r14
call __ZNK3AST7ASTTree11DSFIteratorptEv; AST::ASTTree::DSFIterator::operator->(void)
mov rdi, [rsp+0F8h+var_90]
jmp short loc_145E3
loc_14578:
mov rdi, r14
call __ZN3AST7ASTTree11DSFIteratorppEv; AST::ASTTree::DSFIterator::operator++(void)
mov rdi, r13
call __ZN3AST7ASTTree11DSFIteratorppEv; AST::ASTTree::DSFIterator::operator++(void)
mov rdi, r14
call __ZNK3AST7ASTTree11DSFIteratorptEv; AST::ASTTree::DSFIterator::operator->(void)
mov rdi, [rsp+0F8h+var_98]
jmp short loc_145E3
loc_14597:
mov rdi, rbp
call __ZNSt11_Deque_baseIPN3AST4NodeESaIS2_EED2Ev; std::_Deque_base<AST::Node *>::~_Deque_base()
mov rdi, [rsp+0F8h+var_D8]; void *
lea rax, [rsp+0F8h+var_C8]
cmp rdi, rax
jz short loc_145BB
mov rsi, qword ptr [rsp+0F8h+var_C8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_145BB:
mov rdi, [rsp+0F8h+var_F8]; void *
lea rax, [rsp+0F8h+var_E8]
cmp rdi, rax
jz short loc_145EB
mov rsi, qword ptr [rsp+0F8h+var_E8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_145EB
loc_145D8:
mov rdi, r14
call __ZNK3AST7ASTTree11DSFIteratorptEv; AST::ASTTree::DSFIterator::operator->(void)
mov rdi, rbx
loc_145E3:
mov rsi, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
loc_145EB:
mov rdi, rbp
mov rsi, r14
call __ZNSt5dequeIPN3AST4NodeESaIS2_EEC2ERKS4_; std::deque<AST::Node *>::deque(std::deque<AST::Node *> const&)
mov rdi, rbp
call __ZN3AST7ASTTree11DSFIteratorppEv; AST::ASTTree::DSFIterator::operator++(void)
xorps xmm0, xmm0
movaps [rsp+0F8h+var_B8], xmm0
movaps [rsp+0F8h+var_C8], xmm0
movaps xmmword ptr [rsp+0F8h+var_D8], xmm0
movaps [rsp+0F8h+var_E8], xmm0
movaps xmmword ptr [rsp+0F8h+var_F8], xmm0
mov rdi, r15
xor esi, esi
call __ZNSt11_Deque_baseIPN3AST4NodeESaIS2_EE17_M_initialize_mapEm; std::_Deque_base<AST::Node *>::_M_initialize_map(ulong)
mov rdi, rbp
mov rsi, r15
call __ZNK3AST7ASTTree11DSFIteratorneERKS1_; AST::ASTTree::DSFIterator::operator!=(AST::ASTTree::DSFIterator const&)
mov r12d, eax
mov rdi, r15
call __ZNSt11_Deque_baseIPN3AST4NodeESaIS2_EED2Ev; std::_Deque_base<AST::Node *>::~_Deque_base()
test r12b, r12b
jz short loc_14646
mov rdi, r13
call __ZN3AST7ASTTree11DSFIteratorppEv; AST::ASTTree::DSFIterator::operator++(void)
loc_14646:
mov rdi, rbp
call __ZNSt11_Deque_baseIPN3AST4NodeESaIS2_EED2Ev; std::_Deque_base<AST::Node *>::~_Deque_base()
mov rdi, r14
call __ZN3AST7ASTTree11DSFIteratorppEv; AST::ASTTree::DSFIterator::operator++(void)
jmp loc_1442B
loc_1465B:
add rsp, 0C8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_1466F:
mov rdi, rax
call __clang_call_terminate
| long long SEMANTICANALYZER::AstStatementParser::serializeRelation(
long long a1,
AST::ASTTree::DSFIterator *a2,
long long a3)
{
AST::ASTTree::DSFIterator *v4; // r13
char v5; // r12
long long result; // rax
long long v7; // rax
long long v8; // rax
long long v9; // rax
long long v10; // rax
long long v11; // r12
long long v12; // rax
long long v13; // rdi
char v14; // r12
void *v15[2]; // [rsp+0h] [rbp-F8h] BYREF
__int128 v16; // [rsp+10h] [rbp-E8h] BYREF
void *v17[2]; // [rsp+20h] [rbp-D8h]
_OWORD v18[2]; // [rsp+30h] [rbp-C8h] BYREF
long long v19; // [rsp+50h] [rbp-A8h]
long long v20; // [rsp+58h] [rbp-A0h]
long long v21; // [rsp+60h] [rbp-98h]
long long v22; // [rsp+68h] [rbp-90h]
_OWORD v23[8]; // [rsp+70h] [rbp-88h] BYREF
v19 = a3 + 96;
v20 = a1;
v4 = (AST::ASTTree::DSFIterator *)(a1 + 8);
v21 = a3 + 32;
v22 = a3 + 64;
while ( 1 )
{
memset(v23, 0, 80);
std::_Deque_base<AST::Node *>::_M_initialize_map(v23, 0LL);
v5 = AST::ASTTree::DSFIterator::operator!=(a2, v23);
result = std::_Deque_base<AST::Node *>::~_Deque_base(v23);
if ( !v5 )
return result;
v7 = AST::ASTTree::DSFIterator::operator->(a2);
if ( !(unsigned int)std::string::compare(v7, "ID") )
{
AST::ASTTree::DSFIterator::operator++(a2);
AST::ASTTree::DSFIterator::operator++(v4);
if ( *(_QWORD *)(a3 + 8) )
{
v12 = AST::ASTTree::DSFIterator::operator->(a2);
v13 = v22;
}
else
{
v12 = AST::ASTTree::DSFIterator::operator->(a2);
v13 = a3;
}
goto LABEL_17;
}
v8 = AST::ASTTree::DSFIterator::operator->(a2);
if ( !(unsigned int)std::string::compare(v8, "ARROW") )
{
AST::ASTTree::DSFIterator::operator++(a2);
AST::ASTTree::DSFIterator::operator++(v4);
v12 = AST::ASTTree::DSFIterator::operator->(a2);
v13 = v21;
LABEL_17:
std::string::_M_assign(v13, v12);
goto LABEL_18;
}
v9 = AST::ASTTree::DSFIterator::operator->(a2);
if ( !(unsigned int)std::string::compare(v9, "property") )
{
v15[0] = &v16;
v15[1] = 0LL;
LOBYTE(v16) = 0;
v17[0] = v18;
v17[1] = 0LL;
LOBYTE(v18[0]) = 0;
v10 = AST::ASTTree::DSFIterator::get(a2);
AST::ASTTree::DSFIterator::DSFIterator(v23, v10);
SEMANTICANALYZER::AstStatementParser::serializeProperty(v20, v23, v15);
std::vector<SEMANTICANALYZER::Property>::emplace_back<SEMANTICANALYZER::Property>(v19, v15);
while ( 1 )
{
v11 = AST::ASTTree::DSFIterator::get(a2);
if ( v11 == AST::ASTTree::DSFIterator::get(v4) )
break;
AST::ASTTree::DSFIterator::operator++(a2);
}
std::_Deque_base<AST::Node *>::~_Deque_base(v23);
if ( v17[0] != v18 )
operator delete(v17[0], *(_QWORD *)&v18[0] + 1LL);
if ( v15[0] != &v16 )
operator delete(v15[0], v16 + 1);
}
LABEL_18:
std::deque<AST::Node *>::deque(v23, a2);
AST::ASTTree::DSFIterator::operator++(v23);
memset(v18, 0, sizeof(v18));
*(_OWORD *)v17 = 0LL;
v16 = 0LL;
*(_OWORD *)v15 = 0LL;
std::_Deque_base<AST::Node *>::_M_initialize_map(v15, 0LL);
v14 = AST::ASTTree::DSFIterator::operator!=(v23, v15);
std::_Deque_base<AST::Node *>::~_Deque_base(v15);
if ( v14 )
AST::ASTTree::DSFIterator::operator++(v4);
std::_Deque_base<AST::Node *>::~_Deque_base(v23);
AST::ASTTree::DSFIterator::operator++(a2);
}
}
| serializeRelation:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xc8
MOV RBX,RDX
MOV R14,RSI
LEA RAX,[RDX + 0x60]
MOV qword ptr [RSP + 0x50],RAX
MOV qword ptr [RSP + 0x58],RDI
LEA R13,[RDI + 0x8]
LEA RAX,[RDX + 0x20]
MOV qword ptr [RSP + 0x60],RAX
LEA RAX,[RDX + 0x40]
MOV qword ptr [RSP + 0x68],RAX
LEA RBP,[RSP + 0x70]
MOV R15,RSP
LAB_0011442b:
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0xb0],XMM0
MOVAPS xmmword ptr [RSP + 0xa0],XMM0
MOVAPS xmmword ptr [RSP + 0x90],XMM0
MOVAPS xmmword ptr [RSP + 0x80],XMM0
MOVAPS xmmword ptr [RSP + 0x70],XMM0
LAB_00114453:
MOV RDI,RBP
XOR ESI,ESI
CALL 0x0010b600
MOV RDI,R14
MOV RSI,RBP
CALL 0x0010b740
MOV R12D,EAX
MOV RDI,RBP
CALL 0x0010bd20
TEST R12B,R12B
JZ 0x0011465b
MOV RDI,R14
CALL 0x0010b840
MOV RDI,RAX
LEA RSI,[0x11777a]
CALL 0x0010b1f0
TEST EAX,EAX
JZ 0x00114552
MOV RDI,R14
CALL 0x0010b840
MOV RDI,RAX
LEA RSI,[0x117786]
CALL 0x0010b1f0
TEST EAX,EAX
JZ 0x00114578
MOV RDI,R14
CALL 0x0010b840
MOV RDI,RAX
LEA RSI,[0x11777d]
CALL 0x0010b1f0
TEST EAX,EAX
JNZ 0x001145eb
LEA RAX,[RSP + 0x10]
MOV qword ptr [RSP],RAX
XOR ECX,ECX
MOV qword ptr [RSP + 0x8],RCX
MOV byte ptr [RSP + 0x10],CL
LEA RAX,[RSP + 0x30]
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0x28],RCX
MOV byte ptr [RSP + 0x30],CL
MOV RDI,R14
CALL 0x0010b1a0
MOV RDI,RBP
MOV RSI,RAX
CALL 0x0010b180
MOV RDI,qword ptr [RSP + 0x58]
MOV RSI,RBP
MOV RDX,R15
CALL 0x0010b5a0
MOV RDI,qword ptr [RSP + 0x50]
MOV RSI,R15
CALL 0x0010bd30
LAB_00114530:
MOV RDI,R14
CALL 0x0010b1a0
MOV R12,RAX
MOV RDI,R13
CALL 0x0010b1a0
CMP R12,RAX
JZ 0x00114597
LAB_00114548:
MOV RDI,R14
CALL 0x0010baf0
JMP 0x00114530
LAB_00114552:
MOV RDI,R14
CALL 0x0010baf0
MOV RDI,R13
CALL 0x0010baf0
CMP qword ptr [RBX + 0x8],0x0
JZ 0x001145d8
MOV RDI,R14
CALL 0x0010b840
MOV RDI,qword ptr [RSP + 0x68]
JMP 0x001145e3
LAB_00114578:
MOV RDI,R14
CALL 0x0010baf0
MOV RDI,R13
CALL 0x0010baf0
MOV RDI,R14
CALL 0x0010b840
MOV RDI,qword ptr [RSP + 0x60]
JMP 0x001145e3
LAB_00114597:
MOV RDI,RBP
CALL 0x0010bd20
MOV RDI,qword ptr [RSP + 0x20]
LEA RAX,[RSP + 0x30]
CMP RDI,RAX
JZ 0x001145bb
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x0010b6a0
LAB_001145bb:
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x001145eb
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0010b6a0
JMP 0x001145eb
LAB_001145d8:
MOV RDI,R14
CALL 0x0010b840
MOV RDI,RBX
LAB_001145e3:
MOV RSI,RAX
CALL 0x0010b390
LAB_001145eb:
MOV RDI,RBP
MOV RSI,R14
CALL 0x0010b660
MOV RDI,RBP
CALL 0x0010baf0
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x40],XMM0
MOVAPS xmmword ptr [RSP + 0x30],XMM0
MOVAPS xmmword ptr [RSP + 0x20],XMM0
MOVAPS xmmword ptr [RSP + 0x10],XMM0
MOVAPS xmmword ptr [RSP],XMM0
MOV RDI,R15
XOR ESI,ESI
CALL 0x0010b600
MOV RDI,RBP
MOV RSI,R15
CALL 0x0010b740
MOV R12D,EAX
MOV RDI,R15
CALL 0x0010bd20
TEST R12B,R12B
JZ 0x00114646
MOV RDI,R13
CALL 0x0010baf0
LAB_00114646:
MOV RDI,RBP
CALL 0x0010bd20
MOV RDI,R14
CALL 0x0010baf0
JMP 0x0011442b
LAB_0011465b:
ADD RSP,0xc8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* SEMANTICANALYZER::AstStatementParser::serializeRelation(AST::ASTTree::DSFIterator&,
SEMANTICANALYZER::Relation&) */
void __thiscall
SEMANTICANALYZER::AstStatementParser::serializeRelation
(AstStatementParser *this,DSFIterator *param_1,Relation *param_2)
{
DSFIterator *this_00;
char cVar1;
int iVar2;
char *pcVar3;
Node *pNVar4;
long lVar5;
long lVar6;
Relation *pRVar7;
ulong *local_f8;
int8 uStack_f0;
ulong local_e8 [2];
ulong *local_d8;
int8 uStack_d0;
ulong local_c8 [4];
Relation *local_a8;
AstStatementParser *local_a0;
Relation *local_98;
Relation *local_90;
int8 local_88;
int8 uStack_80;
int8 local_78;
int8 uStack_70;
int8 local_68;
int8 uStack_60;
int8 local_58;
int8 uStack_50;
int8 local_48;
int8 uStack_40;
local_a8 = param_2 + 0x60;
this_00 = (DSFIterator *)(this + 8);
local_98 = param_2 + 0x20;
local_90 = param_2 + 0x40;
local_a0 = this;
do {
local_48 = 0;
uStack_40 = 0;
local_58 = 0;
uStack_50 = 0;
local_68 = 0;
uStack_60 = 0;
local_78 = 0;
uStack_70 = 0;
local_88 = 0;
uStack_80 = 0;
/* try { // try from 00114453 to 0011452f has its CatchHandler @ 0011466f */
std::_Deque_base<AST::Node*,std::allocator<AST::Node*>>::_M_initialize_map
((_Deque_base<AST::Node*,std::allocator<AST::Node*>> *)&local_88,0);
cVar1 = AST::ASTTree::DSFIterator::operator!=(param_1,(DSFIterator *)&local_88);
std::_Deque_base<AST::Node*,std::allocator<AST::Node*>>::~_Deque_base
((_Deque_base<AST::Node*,std::allocator<AST::Node*>> *)&local_88);
if (cVar1 == '\0') {
return;
}
pcVar3 = (char *)AST::ASTTree::DSFIterator::operator->(param_1);
iVar2 = std::__cxx11::string::compare(pcVar3);
if (iVar2 == 0) {
/* try { // try from 00114552 to 00114655 has its CatchHandler @ 0011466f */
AST::ASTTree::DSFIterator::operator++(param_1);
AST::ASTTree::DSFIterator::operator++(this_00);
if (*(long *)(param_2 + 8) == 0) {
AST::ASTTree::DSFIterator::operator->(param_1);
pRVar7 = param_2;
}
else {
AST::ASTTree::DSFIterator::operator->(param_1);
pRVar7 = local_90;
}
LAB_001145e3:
std::__cxx11::string::_M_assign((string *)pRVar7);
}
else {
pcVar3 = (char *)AST::ASTTree::DSFIterator::operator->(param_1);
iVar2 = std::__cxx11::string::compare(pcVar3);
if (iVar2 == 0) {
AST::ASTTree::DSFIterator::operator++(param_1);
AST::ASTTree::DSFIterator::operator++(this_00);
AST::ASTTree::DSFIterator::operator->(param_1);
pRVar7 = local_98;
goto LAB_001145e3;
}
pcVar3 = (char *)AST::ASTTree::DSFIterator::operator->(param_1);
iVar2 = std::__cxx11::string::compare(pcVar3);
if (iVar2 == 0) {
local_f8 = local_e8;
uStack_f0 = 0;
local_e8[0] = local_e8[0] & 0xffffffffffffff00;
local_d8 = local_c8;
uStack_d0 = 0;
local_c8[0] = local_c8[0] & 0xffffffffffffff00;
pNVar4 = (Node *)AST::ASTTree::DSFIterator::get();
AST::ASTTree::DSFIterator::DSFIterator((DSFIterator *)&local_88,pNVar4);
serializeProperty(local_a0,(DSFIterator *)&local_88,(Property *)&local_f8);
std::vector<SEMANTICANALYZER::Property,std::allocator<SEMANTICANALYZER::Property>>::
emplace_back<SEMANTICANALYZER::Property>
((vector<SEMANTICANALYZER::Property,std::allocator<SEMANTICANALYZER::Property>> *)
local_a8,(Property *)&local_f8);
while( true ) {
lVar5 = AST::ASTTree::DSFIterator::get();
lVar6 = AST::ASTTree::DSFIterator::get();
if (lVar5 == lVar6) break;
/* try { // try from 00114548 to 0011454f has its CatchHandler @ 0011466d */
AST::ASTTree::DSFIterator::operator++(param_1);
}
std::_Deque_base<AST::Node*,std::allocator<AST::Node*>>::~_Deque_base
((_Deque_base<AST::Node*,std::allocator<AST::Node*>> *)&local_88);
if (local_d8 != local_c8) {
operator_delete(local_d8,local_c8[0] + 1);
}
if (local_f8 != local_e8) {
operator_delete(local_f8,local_e8[0] + 1);
}
}
}
std::deque<AST::Node*,std::allocator<AST::Node*>>::deque
((deque<AST::Node*,std::allocator<AST::Node*>> *)&local_88,(deque *)param_1);
AST::ASTTree::DSFIterator::operator++((DSFIterator *)&local_88);
local_c8[2] = 0;
local_c8[3] = 0;
local_c8[0] = 0;
local_c8[1] = 0;
local_d8 = (ulong *)0x0;
uStack_d0 = 0;
local_e8[0] = 0;
local_e8[1] = 0;
local_f8 = (ulong *)0x0;
uStack_f0 = 0;
std::_Deque_base<AST::Node*,std::allocator<AST::Node*>>::_M_initialize_map
((_Deque_base<AST::Node*,std::allocator<AST::Node*>> *)&local_f8,0);
cVar1 = AST::ASTTree::DSFIterator::operator!=((DSFIterator *)&local_88,(DSFIterator *)&local_f8)
;
std::_Deque_base<AST::Node*,std::allocator<AST::Node*>>::~_Deque_base
((_Deque_base<AST::Node*,std::allocator<AST::Node*>> *)&local_f8);
if (cVar1 != '\0') {
AST::ASTTree::DSFIterator::operator++(this_00);
}
std::_Deque_base<AST::Node*,std::allocator<AST::Node*>>::~_Deque_base
((_Deque_base<AST::Node*,std::allocator<AST::Node*>> *)&local_88);
AST::ASTTree::DSFIterator::operator++(param_1);
} while( true );
}
| |
25,196 | nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::end_object() | monkey531[P]llama/common/json.hpp | bool end_object()
{
if (ref_stack.back())
{
if (!callback(static_cast<int>(ref_stack.size()) - 1, parse_event_t::object_end, *ref_stack.back()))
{
// discard object
*ref_stack.back() = discarded;
}
else
{
ref_stack.back()->set_parents();
}
}
JSON_ASSERT(!ref_stack.empty());
JSON_ASSERT(!keep_stack.empty());
ref_stack.pop_back();
keep_stack.pop_back();
if (!ref_stack.empty() && ref_stack.back() && ref_stack.back()->is_structured())
{
// remove discarded value
for (auto it = ref_stack.back()->begin(); it != ref_stack.back()->end(); ++it)
{
if (it->is_discarded())
{
ref_stack.back()->erase(it);
break;
}
}
}
return true;
} | O2 | cpp | nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::end_object():
pushq %r15
pushq %r14
pushq %rbx
subq $0x70, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %rsi
movq -0x8(%rsi), %rcx
testq %rcx, %rcx
je 0x45400
leaq 0x80(%rbx), %rdi
subq 0x8(%rbx), %rsi
shrq $0x3, %rsi
decl %esi
pushq $0x1
popq %rdx
callq 0x45a54
testb %al, %al
jne 0x45400
leaq 0xa8(%rbx), %rsi
leaq 0x40(%rsp), %r14
movq %r14, %rdi
callq 0x2c946
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rdi
movq %r14, %rsi
callq 0x2c748
movq %r14, %rdi
callq 0x2c78c
movq 0x10(%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x454d4
movq 0x20(%rbx), %rcx
cmpq 0x30(%rbx), %rcx
jne 0x45422
cmpl $0x0, 0x38(%rbx)
je 0x454f0
leaq 0x30(%rbx), %rdi
addq $-0x8, %rax
movq %rax, 0x10(%rbx)
callq 0x450bc
movq 0x10(%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x454c8
movq -0x8(%rax), %rsi
testq %rsi, %rsi
je 0x454c8
movb (%rsi), %al
decb %al
cmpb $0x1, %al
ja 0x454c8
movq %rsp, %r14
movq %r14, %rdi
callq 0x460d0
leaq 0x20(%rsp), %r15
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rsi
movq %r15, %rdi
callq 0x46100
movq %r14, %rdi
movq %r15, %rsi
callq 0x460f6
testb %al, %al
je 0x454c8
movq %r14, %rdi
callq 0x46126
cmpb $0x9, (%rax)
je 0x45498
movq %r14, %rdi
callq 0x46446
jmp 0x45462
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rsi
movq (%rsp), %rax
leaq 0x50(%rsp), %rdx
movq %rax, (%rdx)
movups 0x8(%rsp), %xmm0
movups %xmm0, 0x8(%rdx)
movq 0x18(%rsp), %rax
movq %rax, 0x18(%rdx)
leaq 0x20(%rsp), %rdi
callq 0x46254
movb $0x1, %al
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x4a8fc(%rip), %rdi # 0x8fdd7
leaq 0x47daa(%rip), %rdx # 0x8d28c
leaq 0x4be00(%rip), %rcx # 0x912e9
movl $0x1bbd, %esi # imm = 0x1BBD
jmp 0x4550a
leaq 0x4a8e0(%rip), %rdi # 0x8fdd7
leaq 0x47d8e(%rip), %rdx # 0x8d28c
leaq 0x4bd5e(%rip), %rcx # 0x91263
movl $0x1bbe, %esi # imm = 0x1BBE
xorl %eax, %eax
callq 0x20af0
nop
| _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE10end_objectEv:
push r15
push r14
push rbx
sub rsp, 70h
mov rbx, rdi
mov rsi, [rdi+10h]
mov rcx, [rsi-8]
test rcx, rcx
jz short loc_45400
lea rdi, [rbx+80h]
sub rsi, [rbx+8]
shr rsi, 3
dec esi
push 1
pop rdx
call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::operator()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)
test al, al
jnz short loc_45400
lea rsi, [rbx+0A8h]
lea r14, [rsp+88h+var_48]
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
mov rax, [rbx+10h]
mov rdi, [rax-8]
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r14
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()
loc_45400:
mov rax, [rbx+10h]
cmp [rbx+8], rax
jz loc_454D4
mov rcx, [rbx+20h]
cmp rcx, [rbx+30h]
jnz short loc_45422
cmp dword ptr [rbx+38h], 0
jz loc_454F0
loc_45422:
lea rdi, [rbx+30h]; this
add rax, 0FFFFFFFFFFFFFFF8h
mov [rbx+10h], rax
call _ZNSt18_Bit_iterator_base12_M_bump_downEv; std::_Bit_iterator_base::_M_bump_down(void)
mov rax, [rbx+10h]
cmp [rbx+8], rax
jz loc_454C8
mov rsi, [rax-8]
test rsi, rsi
jz short loc_454C8
mov al, [rsi]
dec al
cmp al, 1
ja short loc_454C8
mov r14, rsp
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5beginEv; 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>::begin(void)
lea r15, [rsp+88h+var_68]
loc_45462:
mov rax, [rbx+10h]
mov rsi, [rax-8]
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE3endEv; 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>::end(void)
mov rdi, r14
mov rsi, r15
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_
test al, al
jz short loc_454C8
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEptEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::operator->(void)
cmp byte ptr [rax], 9
jz short loc_45498
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEppEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::operator++(void)
jmp short loc_45462
loc_45498:
mov rax, [rbx+10h]
mov rsi, [rax-8]
mov rax, [rsp+88h+var_88]
lea rdx, [rsp+88h+var_38]
mov [rdx], rax
movups xmm0, [rsp+88h+var_80]
movups xmmword ptr [rdx+8], xmm0
mov rax, [rsp+88h+var_70]
mov [rdx+18h], rax
lea rdi, [rsp+88h+var_68]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_
loc_454C8:
mov al, 1
add rsp, 70h
pop rbx
pop r14
pop r15
retn
loc_454D4:
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aRefStackEmpty; "!ref_stack.empty()"
mov esi, 1BBDh
jmp short loc_4550A
loc_454F0:
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aKeepStackEmpty; "!keep_stack.empty()"
mov esi, 1BBEh
loc_4550A:
xor eax, eax
call _ggml_abort
nop
| char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::end_object(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
char a7,
int a8,
char a9)
{
long long v9; // rsi
long long v10; // rcx
long long v11; // rax
long long v12; // rax
_BYTE *v13; // rsi
long long v14; // rsi
int v16; // esi
int v17; // edx
int v18; // ecx
int v19; // r8d
int v20; // r9d
long long v21; // [rsp+0h] [rbp-88h] BYREF
__int128 v22; // [rsp+8h] [rbp-80h]
long long v23; // [rsp+18h] [rbp-70h]
_BYTE v24[32]; // [rsp+20h] [rbp-68h] BYREF
char v25[16]; // [rsp+40h] [rbp-48h] BYREF
long long v26; // [rsp+50h] [rbp-38h]
__int128 v27; // [rsp+58h] [rbp-30h]
long long v28; // [rsp+68h] [rbp-20h]
v9 = *(_QWORD *)(a1 + 16);
v10 = *(_QWORD *)(v9 - 8);
if ( v10
&& !(unsigned __int8)std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::operator()(
a1 + 128,
(unsigned int)((unsigned long long)(v9 - *(_QWORD *)(a1 + 8)) >> 3) - 1,
1LL,
v10) )
{
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)v25,
a1 + 168);
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=(
*(char **)(*(_QWORD *)(a1 + 16) - 8LL),
v25);
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)v25);
}
v11 = *(_QWORD *)(a1 + 16);
if ( *(_QWORD *)(a1 + 8) == v11 )
{
v16 = 7101;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7101LL,
"GGML_ASSERT(%s) failed",
"!ref_stack.empty()");
return nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::key(
(unsigned int)"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
v16,
v17,
v18,
v19,
v20,
a7,
a8,
a9);
}
if ( *(_QWORD *)(a1 + 32) == *(_QWORD *)(a1 + 48) && !*(_DWORD *)(a1 + 56) )
{
v16 = 7102;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7102LL,
"GGML_ASSERT(%s) failed",
"!keep_stack.empty()");
return nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::key(
(unsigned int)"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
v16,
v17,
v18,
v19,
v20,
a7,
a8,
a9);
}
*(_QWORD *)(a1 + 16) = v11 - 8;
std::_Bit_iterator_base::_M_bump_down((std::_Bit_iterator_base *)(a1 + 48));
v12 = *(_QWORD *)(a1 + 16);
if ( *(_QWORD *)(a1 + 8) != v12 )
{
v13 = *(_BYTE **)(v12 - 8);
if ( v13 )
{
if ( (unsigned __int8)(*v13 - 1) <= 1u )
{
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>::begin(&v21);
while ( 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>::end(
v24,
*(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL));
if ( !(unsigned __int8)ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_(
&v21,
v24) )
break;
if ( *(_BYTE *)nlohmann::json_abi_v3_11_3::detail::iter_impl<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->(&v21) == 9 )
{
v14 = *(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL);
v26 = v21;
v27 = v22;
v28 = v23;
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_(
v24,
v14);
return 1;
}
nlohmann::json_abi_v3_11_3::detail::iter_impl<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++(&v21);
}
}
}
}
return 1;
}
| end_object:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x70
MOV RBX,RDI
MOV RSI,qword ptr [RDI + 0x10]
MOV RCX,qword ptr [RSI + -0x8]
TEST RCX,RCX
JZ 0x00145400
LEA RDI,[RBX + 0x80]
SUB RSI,qword ptr [RBX + 0x8]
SHR RSI,0x3
DEC ESI
PUSH 0x1
POP RDX
CALL 0x00145a54
TEST AL,AL
JNZ 0x00145400
LEA RSI,[RBX + 0xa8]
LEA R14,[RSP + 0x40]
MOV RDI,R14
CALL 0x0012c946
MOV RAX,qword ptr [RBX + 0x10]
MOV RDI,qword ptr [RAX + -0x8]
MOV RSI,R14
CALL 0x0012c748
MOV RDI,R14
CALL 0x0012c78c
LAB_00145400:
MOV RAX,qword ptr [RBX + 0x10]
CMP qword ptr [RBX + 0x8],RAX
JZ 0x001454d4
MOV RCX,qword ptr [RBX + 0x20]
CMP RCX,qword ptr [RBX + 0x30]
JNZ 0x00145422
CMP dword ptr [RBX + 0x38],0x0
JZ 0x001454f0
LAB_00145422:
LEA RDI,[RBX + 0x30]
ADD RAX,-0x8
MOV qword ptr [RBX + 0x10],RAX
CALL 0x001450bc
MOV RAX,qword ptr [RBX + 0x10]
CMP qword ptr [RBX + 0x8],RAX
JZ 0x001454c8
MOV RSI,qword ptr [RAX + -0x8]
TEST RSI,RSI
JZ 0x001454c8
MOV AL,byte ptr [RSI]
DEC AL
CMP AL,0x1
JA 0x001454c8
MOV R14,RSP
MOV RDI,R14
CALL 0x001460d0
LEA R15,[RSP + 0x20]
LAB_00145462:
MOV RAX,qword ptr [RBX + 0x10]
MOV RSI,qword ptr [RAX + -0x8]
MOV RDI,R15
CALL 0x00146100
MOV RDI,R14
MOV RSI,R15
CALL 0x001460f6
TEST AL,AL
JZ 0x001454c8
MOV RDI,R14
CALL 0x00146126
CMP byte ptr [RAX],0x9
JZ 0x00145498
MOV RDI,R14
CALL 0x00146446
JMP 0x00145462
LAB_00145498:
MOV RAX,qword ptr [RBX + 0x10]
MOV RSI,qword ptr [RAX + -0x8]
MOV RAX,qword ptr [RSP]
LEA RDX,[RSP + 0x50]
MOV qword ptr [RDX],RAX
MOVUPS XMM0,xmmword ptr [RSP + 0x8]
MOVUPS xmmword ptr [RDX + 0x8],XMM0
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RDX + 0x18],RAX
LEA RDI,[RSP + 0x20]
CALL 0x00146254
LAB_001454c8:
MOV AL,0x1
ADD RSP,0x70
POP RBX
POP R14
POP R15
RET
LAB_001454d4:
LEA RDI,[0x18fdd7]
LEA RDX,[0x18d28c]
LEA RCX,[0x1912e9]
MOV ESI,0x1bbd
JMP 0x0014550a
LAB_001454f0:
LEA RDI,[0x18fdd7]
LEA RDX,[0x18d28c]
LEA RCX,[0x191263]
MOV ESI,0x1bbe
LAB_0014550a:
XOR EAX,EAX
CALL 0x00120af0
|
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::end_object() */
int8 __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::end_object(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this)
{
char cVar1;
char *pcVar2;
int8 uVar3;
int8 local_88;
int4 local_80;
int4 uStack_7c;
int4 uStack_78;
int4 uStack_74;
int8 local_70;
int1 local_68 [32];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_48 [16];
int8 local_38;
int4 local_30;
int4 uStack_2c;
int4 uStack_28;
int4 uStack_24;
int8 local_20;
if ((*(long *)(*(long *)(this + 0x10) + -8) != 0) &&
(cVar1 = std::
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
::operator()(this + 0x80,
(int)((ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3) + -1,1)
, cVar1 == '\0')) {
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_48,this + 0xa8);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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>
**)(*(long *)(this + 0x10) + -8),local_48);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_48);
}
if (*(long *)(this + 8) == *(long *)(this + 0x10)) {
pcVar2 = "!ref_stack.empty()";
uVar3 = 0x1bbd;
}
else {
if ((*(long *)(this + 0x20) != *(long *)(this + 0x30)) || (*(int *)(this + 0x38) != 0)) {
*(long *)(this + 0x10) = *(long *)(this + 0x10) + -8;
std::_Bit_iterator_base::_M_bump_down((_Bit_iterator_base *)(this + 0x30));
if ((*(long *)(this + 8) != *(long *)(this + 0x10)) &&
((pcVar2 = *(char **)(*(long *)(this + 0x10) + -8), pcVar2 != (char *)0x0 &&
((byte)(*pcVar2 - 1U) < 2)))) {
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::begin();
while( true ) {
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::end();
cVar1 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_
(&local_88,local_68);
if (cVar1 == '\0') break;
pcVar2 = (char *)iter_impl<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->((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_88);
if (*pcVar2 == '\t') {
local_38 = local_88;
local_30 = local_80;
uStack_2c = uStack_7c;
uStack_28 = uStack_78;
uStack_24 = uStack_74;
local_20 = local_70;
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_
(local_68,*(int8 *)(*(long *)(this + 0x10) + -8));
return 1;
}
iter_impl<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++((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_88);
}
}
return 1;
}
pcVar2 = "!keep_stack.empty()";
uVar3 = 0x1bbe;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",uVar3,
"GGML_ASSERT(%s) failed",pcVar2);
}
| |
25,197 | js_bytecode_function_mark | bluesky950520[P]quickjs/quickjs.c | static void js_bytecode_function_mark(JSRuntime *rt, JSValue val,
JS_MarkFunc *mark_func)
{
JSObject *p = JS_VALUE_GET_OBJ(val);
JSVarRef **var_refs = p->u.func.var_refs;
JSFunctionBytecode *b = p->u.func.function_bytecode;
int i;
if (p->u.func.home_object) {
JS_MarkValue(rt, JS_MKPTR(JS_TAG_OBJECT, p->u.func.home_object),
mark_func);
}
if (b) {
if (var_refs) {
for(i = 0; i < b->closure_var_count; i++) {
JSVarRef *var_ref = var_refs[i];
if (var_ref && var_ref->is_detached) {
mark_func(rt, &var_ref->header);
}
}
}
/* must mark the function bytecode because template objects may be
part of a cycle */
JS_MarkValue(rt, JS_MKPTR(JS_TAG_FUNCTION_BYTECODE, b), mark_func);
}
} | O0 | c | js_bytecode_function_mark:
subq $0x68, %rsp
movq %rsi, 0x58(%rsp)
movq %rdx, 0x60(%rsp)
movq %rdi, 0x50(%rsp)
movq %rcx, 0x48(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq 0x38(%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x40(%rsp), %rax
movq 0x30(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x40(%rsp), %rax
cmpq $0x0, 0x40(%rax)
je 0x59f0a
movq 0x50(%rsp), %rdi
movq 0x40(%rsp), %rax
movq 0x40(%rax), %rax
movq %rax, 0x18(%rsp)
movq $-0x1, 0x20(%rsp)
movq 0x48(%rsp), %rcx
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x29920
cmpq $0x0, 0x30(%rsp)
je 0x59fad
cmpq $0x0, 0x38(%rsp)
je 0x59f83
movl $0x0, 0x2c(%rsp)
movl 0x2c(%rsp), %eax
movq 0x30(%rsp), %rcx
cmpl 0x5c(%rcx), %eax
jge 0x59f81
movq 0x38(%rsp), %rax
movslq 0x2c(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x10(%rsp)
je 0x59f72
movq 0x10(%rsp), %rax
movb 0x5(%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x59f72
movq 0x48(%rsp), %rax
movq 0x50(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq *%rax
jmp 0x59f74
movl 0x2c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x2c(%rsp)
jmp 0x59f26
jmp 0x59f83
movq 0x50(%rsp), %rdi
movq 0x30(%rsp), %rax
movq %rax, (%rsp)
movq $-0x2, 0x8(%rsp)
movq 0x48(%rsp), %rcx
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
callq 0x29920
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)
| js_bytecode_function_mark:
sub rsp, 68h
mov [rsp+68h+var_10], rsi
mov [rsp+68h+var_8], rdx
mov [rsp+68h+var_18], rdi
mov [rsp+68h+var_20], rcx
mov rax, [rsp+68h+var_10]
mov [rsp+68h+var_28], rax
mov rax, [rsp+68h+var_28]
mov rax, [rax+38h]
mov [rsp+68h+var_30], rax
mov rax, [rsp+68h+var_28]
mov rax, [rax+30h]
mov [rsp+68h+var_38], rax
mov rax, [rsp+68h+var_28]
cmp qword ptr [rax+40h], 0
jz short loc_59F0A
mov rdi, [rsp+68h+var_18]
mov rax, [rsp+68h+var_28]
mov rax, [rax+40h]
mov [rsp+68h+var_50], rax
mov [rsp+68h+var_48], 0FFFFFFFFFFFFFFFFh
mov rcx, [rsp+68h+var_20]
mov rsi, [rsp+68h+var_50]
mov rdx, [rsp+68h+var_48]
call JS_MarkValue
loc_59F0A:
cmp [rsp+68h+var_38], 0
jz loc_59FAD
cmp [rsp+68h+var_30], 0
jz short loc_59F83
mov [rsp+68h+var_3C], 0
loc_59F26:
mov eax, [rsp+68h+var_3C]
mov rcx, [rsp+68h+var_38]
cmp eax, [rcx+5Ch]
jge short loc_59F81
mov rax, [rsp+68h+var_30]
movsxd rcx, [rsp+68h+var_3C]
mov rax, [rax+rcx*8]
mov [rsp+68h+var_58], rax
cmp [rsp+68h+var_58], 0
jz short loc_59F72
mov rax, [rsp+68h+var_58]
mov al, [rax+5]
and al, 1
movzx eax, al
cmp eax, 0
jz short loc_59F72
mov rax, [rsp+68h+var_20]
mov rdi, [rsp+68h+var_18]
mov rsi, [rsp+68h+var_58]
call rax
loc_59F72:
jmp short $+2
loc_59F74:
mov eax, [rsp+68h+var_3C]
add eax, 1
mov [rsp+68h+var_3C], eax
jmp short loc_59F26
loc_59F81:
jmp short $+2
loc_59F83:
mov rdi, [rsp+68h+var_18]
mov rax, [rsp+68h+var_38]
mov [rsp+68h+var_68], rax
mov [rsp+68h+var_60], 0FFFFFFFFFFFFFFFEh
mov rcx, [rsp+68h+var_20]
mov rsi, [rsp+68h+var_68]
mov rdx, [rsp+68h+var_60]
call JS_MarkValue
loc_59FAD:
add rsp, 68h
retn
| long long js_bytecode_function_mark(
long long a1,
_QWORD *a2,
long long a3,
long long ( *a4)(long long, long long))
{
long long result; // rax
long long v5; // [rsp+10h] [rbp-58h]
int i; // [rsp+2Ch] [rbp-3Ch]
long long v7; // [rsp+30h] [rbp-38h]
long long v8; // [rsp+38h] [rbp-30h]
v8 = a2[7];
v7 = a2[6];
result = (long long)a2;
if ( a2[8] )
result = JS_MarkValue(a1, a2[8], -1LL, a4);
if ( v7 )
{
if ( v8 )
{
for ( i = 0; i < *(_DWORD *)(v7 + 92); ++i )
{
v5 = *(_QWORD *)(v8 + 8LL * i);
if ( v5 )
{
if ( (*(_BYTE *)(v5 + 5) & 1) != 0 )
a4(a1, v5);
}
}
}
return JS_MarkValue(a1, v7, -2LL, a4);
}
return result;
}
| js_bytecode_function_mark:
SUB RSP,0x68
MOV qword ptr [RSP + 0x58],RSI
MOV qword ptr [RSP + 0x60],RDX
MOV qword ptr [RSP + 0x50],RDI
MOV qword ptr [RSP + 0x48],RCX
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x40],RAX
MOV RAX,qword ptr [RSP + 0x40]
MOV RAX,qword ptr [RAX + 0x38]
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0x40]
MOV RAX,qword ptr [RAX + 0x30]
MOV qword ptr [RSP + 0x30],RAX
MOV RAX,qword ptr [RSP + 0x40]
CMP qword ptr [RAX + 0x40],0x0
JZ 0x00159f0a
MOV RDI,qword ptr [RSP + 0x50]
MOV RAX,qword ptr [RSP + 0x40]
MOV RAX,qword ptr [RAX + 0x40]
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0x20],-0x1
MOV RCX,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP + 0x18]
MOV RDX,qword ptr [RSP + 0x20]
CALL 0x00129920
LAB_00159f0a:
CMP qword ptr [RSP + 0x30],0x0
JZ 0x00159fad
CMP qword ptr [RSP + 0x38],0x0
JZ 0x00159f83
MOV dword ptr [RSP + 0x2c],0x0
LAB_00159f26:
MOV EAX,dword ptr [RSP + 0x2c]
MOV RCX,qword ptr [RSP + 0x30]
CMP EAX,dword ptr [RCX + 0x5c]
JGE 0x00159f81
MOV RAX,qword ptr [RSP + 0x38]
MOVSXD RCX,dword ptr [RSP + 0x2c]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RSP + 0x10],RAX
CMP qword ptr [RSP + 0x10],0x0
JZ 0x00159f72
MOV RAX,qword ptr [RSP + 0x10]
MOV AL,byte ptr [RAX + 0x5]
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x00159f72
MOV RAX,qword ptr [RSP + 0x48]
MOV RDI,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RSP + 0x10]
CALL RAX
LAB_00159f72:
JMP 0x00159f74
LAB_00159f74:
MOV EAX,dword ptr [RSP + 0x2c]
ADD EAX,0x1
MOV dword ptr [RSP + 0x2c],EAX
JMP 0x00159f26
LAB_00159f81:
JMP 0x00159f83
LAB_00159f83:
MOV RDI,qword ptr [RSP + 0x50]
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP],RAX
MOV qword ptr [RSP + 0x8],-0x2
MOV RCX,qword ptr [RSP + 0x48]
MOV RSI,qword ptr [RSP]
MOV RDX,qword ptr [RSP + 0x8]
CALL 0x00129920
LAB_00159fad:
ADD RSP,0x68
RET
|
void js_bytecode_function_mark(int8 param_1,long param_2,int8 param_3,code *param_4)
{
long lVar1;
long lVar2;
long lVar3;
int local_3c;
lVar1 = *(long *)(param_2 + 0x38);
lVar2 = *(long *)(param_2 + 0x30);
if (*(long *)(param_2 + 0x40) != 0) {
JS_MarkValue(param_1,*(int8 *)(param_2 + 0x40),0xffffffffffffffff,param_4);
}
if (lVar2 != 0) {
if (lVar1 != 0) {
for (local_3c = 0; local_3c < *(int *)(lVar2 + 0x5c); local_3c = local_3c + 1) {
lVar3 = *(long *)(lVar1 + (long)local_3c * 8);
if ((lVar3 != 0) && ((*(byte *)(lVar3 + 5) & 1) != 0)) {
(*param_4)(param_1,lVar3);
}
}
}
JS_MarkValue(param_1,lVar2,0xfffffffffffffffe,param_4);
}
return;
}
| |
25,198 | OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateParentToChildMapping() | NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/refinement.cpp | void
Refinement::populateParentToChildMapping() {
allocateParentChildIndices();
//
// If sparse refinement, mark indices of any components in addition to those selected
// so that we have the full neighborhood for selected components:
//
if (!_uniform) {
// Make sure the selection was non-empty -- currently unsupported...
if (_parentVertexTag.size() == 0) {
assert("Unsupported empty sparse refinement detected in Refinement" == 0);
}
markSparseChildComponentIndices();
}
populateParentChildIndices();
} | O0 | cpp | OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateParentToChildMapping():
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x10(%rbp)
movq (%rdi), %rax
callq *0x10(%rax)
movq -0x10(%rbp), %rax
testb $0x1, 0x24(%rax)
jne 0xfe672
movq -0x10(%rbp), %rdi
addq $0x1c8, %rdi # imm = 0x1C8
callq 0xd0ba0
cmpq $0x0, %rax
jne 0xfe669
leaq 0xed6b1(%rip), %rdi # 0x1ebd02
leaq 0xed590(%rip), %rsi # 0x1ebbe8
movl $0xc2, %edx
leaq 0xed6e0(%rip), %rcx # 0x1ebd44
callq 0xc9440
movq -0x10(%rbp), %rdi
callq 0xc7ee0
movq -0x10(%rbp), %rdi
callq 0xd1d80
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ZN10OpenSubdiv6v3_6_03Vtr8internal10Refinement28populateParentToChildMappingEv:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]
mov [rbp+var_10], rdi
mov rax, [rdi]
call qword ptr [rax+10h]
mov rax, [rbp+var_10]
test byte ptr [rax+24h], 1
jnz short loc_FE672
mov rdi, [rbp+var_10]
add rdi, 1C8h
call __ZNKSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal10Refinement9SparseTagESaIS5_EE4sizeEv; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::SparseTag>::size(void)
cmp rax, 0
jnz short loc_FE669
lea rdi, aUnsupportedEmp; "\"Unsupported empty sparse refinement d"...
lea rsi, aWorkspaceLlm4b_4; "/workspace/llm4binary/github/2025_star3"...
mov edx, 0C2h
lea rcx, aVoidOpensubdiv_6; "void OpenSubdiv::v3_6_0::Vtr::internal:"...
call ___assert_fail
loc_FE669:
mov rdi, [rbp+var_10]; this
call __ZN10OpenSubdiv6v3_6_03Vtr8internal10Refinement31markSparseChildComponentIndicesEv; OpenSubdiv::v3_6_0::Vtr::internal::Refinement::markSparseChildComponentIndices(void)
loc_FE672:
mov rdi, [rbp+var_10]; this
call __ZN10OpenSubdiv6v3_6_03Vtr8internal10Refinement26populateParentChildIndicesEv; OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateParentChildIndices(void)
add rsp, 10h
pop rbp
retn
| long long OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateParentToChildMapping(
OpenSubdiv::v3_6_0::Vtr::internal::Refinement *this)
{
(*(void ( **)(OpenSubdiv::v3_6_0::Vtr::internal::Refinement *))(*(_QWORD *)this + 16LL))(this);
if ( (*((_BYTE *)this + 36) & 1) == 0 )
{
if ( !std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::SparseTag>::size((char *)this + 456) )
__assert_fail(
"\"Unsupported empty sparse refinement detected in Refinement\" == 0",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/refinement.cpp",
194LL,
"void OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateParentToChildMapping()");
OpenSubdiv::v3_6_0::Vtr::internal::Refinement::markSparseChildComponentIndices(this);
}
return OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateParentChildIndices(this);
}
| populateParentToChildMapping:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x10]
TEST byte ptr [RAX + 0x24],0x1
JNZ 0x001fe672
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x1c8
CALL 0x001d0ba0
CMP RAX,0x0
JNZ 0x001fe669
LEA RDI,[0x2ebd02]
LEA RSI,[0x2ebbe8]
MOV EDX,0xc2
LEA RCX,[0x2ebd44]
CALL 0x001c9440
LAB_001fe669:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001c7ee0
LAB_001fe672:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001d1d80
ADD RSP,0x10
POP RBP
RET
|
/* OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateParentToChildMapping() */
void __thiscall
OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateParentToChildMapping(Refinement *this)
{
long lVar1;
(**(code **)(*(long *)this + 0x10))();
if (((byte)this[0x24] & 1) == 0) {
lVar1 = std::
vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::SparseTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::SparseTag>>
::size((vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::SparseTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::Refinement::SparseTag>>
*)(this + 0x1c8));
if (lVar1 == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("\"Unsupported empty sparse refinement detected in Refinement\" == 0",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/refinement.cpp"
,0xc2,
"void OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateParentToChildMapping()"
);
}
markSparseChildComponentIndices(this);
}
populateParentChildIndices(this);
return;
}
| |
25,199 | OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateParentToChildMapping() | NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/refinement.cpp | void
Refinement::populateParentToChildMapping() {
allocateParentChildIndices();
//
// If sparse refinement, mark indices of any components in addition to those selected
// so that we have the full neighborhood for selected components:
//
if (!_uniform) {
// Make sure the selection was non-empty -- currently unsupported...
if (_parentVertexTag.size() == 0) {
assert("Unsupported empty sparse refinement detected in Refinement" == 0);
}
markSparseChildComponentIndices();
}
populateParentChildIndices();
} | O1 | cpp | OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateParentToChildMapping():
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rax
callq *0x10(%rax)
cmpb $0x0, 0x24(%rbx)
jne 0x489e7
movq 0x1d0(%rbx), %rax
cmpq 0x1c8(%rbx), %rax
je 0x489f0
movq %rbx, %rdi
callq 0x3afb0
movq %rbx, %rdi
callq 0x39b80
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movq %rbx, %rdi
popq %rbx
jmp 0x3b0c0
leaq 0x6b256(%rip), %rdi # 0xb3c4d
leaq 0x6b135(%rip), %rsi # 0xb3b33
leaq 0x6b28a(%rip), %rcx # 0xb3c8f
movl $0xc2, %edx
callq 0x39560
nop
| _ZN10OpenSubdiv6v3_6_03Vtr8internal10Refinement28populateParentToChildMappingEv:
push rbx
mov rbx, rdi
mov rax, [rdi]
call qword ptr [rax+10h]
cmp byte ptr [rbx+24h], 0
jnz short loc_489E7
mov rax, [rbx+1D0h]
cmp rax, [rbx+1C8h]
jz short loc_489F0
mov rdi, rbx; this
call __ZN10OpenSubdiv6v3_6_03Vtr8internal10Refinement24markSparseVertexChildrenEv; OpenSubdiv::v3_6_0::Vtr::internal::Refinement::markSparseVertexChildren(void)
mov rdi, rbx; this
call __ZN10OpenSubdiv6v3_6_03Vtr8internal10Refinement22markSparseEdgeChildrenEv; OpenSubdiv::v3_6_0::Vtr::internal::Refinement::markSparseEdgeChildren(void)
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax+18h]
loc_489E7:
mov rdi, rbx; this
pop rbx
jmp __ZN10OpenSubdiv6v3_6_03Vtr8internal10Refinement26populateParentChildIndicesEv; OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateParentChildIndices(void)
loc_489F0:
lea rdi, aUnsupportedEmp; "\"Unsupported empty sparse refinement d"...
lea rsi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidOpensubdiv_6; "void OpenSubdiv::v3_6_0::Vtr::internal:"...
mov edx, 0C2h
call ___assert_fail
| long long OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateParentToChildMapping(
OpenSubdiv::v3_6_0::Vtr::internal::Refinement *this)
{
(*(void ( **)(OpenSubdiv::v3_6_0::Vtr::internal::Refinement *))(*(_QWORD *)this + 16LL))(this);
if ( !*((_BYTE *)this + 36) )
{
if ( *((_QWORD *)this + 58) == *((_QWORD *)this + 57) )
__assert_fail(
"\"Unsupported empty sparse refinement detected in Refinement\" == 0",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/refinement.cpp",
194LL,
"void OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateParentToChildMapping()");
OpenSubdiv::v3_6_0::Vtr::internal::Refinement::markSparseVertexChildren(this);
OpenSubdiv::v3_6_0::Vtr::internal::Refinement::markSparseEdgeChildren(this);
(*(void ( **)(OpenSubdiv::v3_6_0::Vtr::internal::Refinement *))(*(_QWORD *)this + 24LL))(this);
}
return OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateParentChildIndices(this);
}
| populateParentToChildMapping:
PUSH RBX
MOV RBX,RDI
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x10]
CMP byte ptr [RBX + 0x24],0x0
JNZ 0x001489e7
MOV RAX,qword ptr [RBX + 0x1d0]
CMP RAX,qword ptr [RBX + 0x1c8]
JZ 0x001489f0
MOV RDI,RBX
CALL 0x0013afb0
MOV RDI,RBX
CALL 0x00139b80
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
CALL qword ptr [RAX + 0x18]
LAB_001489e7:
MOV RDI,RBX
POP RBX
JMP 0x0013b0c0
LAB_001489f0:
LEA RDI,[0x1b3c4d]
LEA RSI,[0x1b3b33]
LEA RCX,[0x1b3c8f]
MOV EDX,0xc2
CALL 0x00139560
|
/* OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateParentToChildMapping() */
void __thiscall
OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateParentToChildMapping(Refinement *this)
{
(**(code **)(*(long *)this + 0x10))();
if (this[0x24] == (Refinement)0x0) {
if (*(long *)(this + 0x1d0) == *(long *)(this + 0x1c8)) {
/* WARNING: Subroutine does not return */
__assert_fail("\"Unsupported empty sparse refinement detected in Refinement\" == 0",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/refinement.cpp"
,0xc2,
"void OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateParentToChildMapping()"
);
}
markSparseVertexChildren(this);
markSparseEdgeChildren(this);
(**(code **)(*(long *)this + 0x18))(this);
}
populateParentChildIndices(this);
return;
}
|
Subsets and Splits
C++ Functions Using STL
Identifies C++ functions that depend on standard library components, revealing patterns in how developers utilize STL libraries and potentially highlighting common coding practices or dependencies in the dataset.
C++ STL Function Queries
Filters C++ code examples that use standard library containers and algorithms, helping identify common programming patterns and library usage in code generation tasks.
Random Training Function Samples
Performs basic filtering and random sampling of assembly code data without revealing meaningful patterns or relationships.
Random Training Function Samples
Retrieves a random sample of 1000 records from the training dataset, providing basic data exploration but offering limited analytical value beyond seeing raw entries.