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
|
|---|---|---|---|---|---|---|---|---|---|---|---|
56,900
|
ma_net_real_write
|
eloqsql/libmariadb/libmariadb/ma_net.c
|
int ma_net_real_write(NET *net, const char *packet, size_t len)
{
ssize_t length;
char *pos,*end;
if (net->error == 2)
return(-1); /* socket can't be used */
net->reading_or_writing=2;
#ifdef HAVE_COMPRESS
if (net->compress)
{
size_t complen;
uchar *b;
uint header_length=NET_HEADER_SIZE+COMP_HEADER_SIZE;
if (!(b=(uchar*) malloc(len + NET_HEADER_SIZE + COMP_HEADER_SIZE + 1)))
{
net->pvio->set_error(net->pvio->mysql, CR_OUT_OF_MEMORY, SQLSTATE_UNKNOWN, 0);
net->error=2;
net->reading_or_writing=0;
return(1);
}
memcpy(b+header_length,packet,len);
if (_mariadb_compress(net, (unsigned char*) b+header_length,&len,&complen))
{
complen=0;
}
int3store(&b[NET_HEADER_SIZE],complen);
int3store(b,len);
b[3]=(uchar) (net->compress_pkt_nr++);
len+= header_length;
packet= (char*) b;
}
#endif /* HAVE_COMPRESS */
pos=(char*) packet; end=pos+len;
while (pos != end)
{
if ((length=ma_pvio_write(net->pvio,(uchar *)pos,(size_t) (end-pos))) <= 0)
{
int save_errno= errno;
char errmsg[100];
net->error=2; /* Close socket */
strerror_r(save_errno, errmsg, 100);
net->pvio->set_error(net->pvio->mysql, CR_ERR_NET_WRITE, SQLSTATE_UNKNOWN, 0,
errmsg, save_errno);
net->reading_or_writing=0;
#ifdef HAVE_COMPRESS
if (net->compress)
free((char*) packet);
#endif
return(1);
}
pos+=length;
}
#ifdef HAVE_COMPRESS
if (net->compress)
free((char*) packet);
#endif
net->reading_or_writing=0;
return(((int) (pos != end)));
}
|
O3
|
c
|
ma_net_real_write:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq %rdx, -0xa8(%rbp)
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
cmpb $0x2, 0x94(%rdi)
je 0x34411
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movb $0x2, 0x80(%rdi)
cmpb $0x0, 0x84(%rdi)
je 0x342e2
leaq 0x8(%rbx), %rdi
callq 0x13600
testq %rax, %rax
je 0x342e7
movq %rax, %r12
movq %rax, %r13
addq $0x7, %r13
movq %r13, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x13390
leaq -0xa8(%rbp), %rdx
leaq -0xa0(%rbp), %rcx
movq %r14, %rdi
movq %r13, %rsi
callq 0x21107
testb %al, %al
jne 0x3431a
movq -0xa0(%rbp), %rax
jmp 0x3431c
movq %r15, %r12
jmp 0x34362
movq (%r14), %r8
movq 0x40(%r8), %rdi
leaq 0x199ab(%rip), %rax # 0x4dca0
movq (%rax), %rdx
movl $0x7d8, %esi # imm = 0x7D8
xorl %ecx, %ecx
xorl %eax, %eax
callq *0x50(%r8)
movb $0x2, 0x94(%r14)
movb $0x0, 0x80(%r14)
jmp 0x3440c
xorl %eax, %eax
movq %r12, %rdx
movb %al, 0x4(%r12)
movb %ah, 0x5(%rdx)
shrl $0x10, %eax
movb %al, 0x6(%r12)
movq -0xa8(%rbp), %rbx
movb %bl, (%r12)
movb %bh, 0x1(%rdx)
movl %ebx, %eax
shrl $0x10, %eax
movb %al, 0x2(%r12)
movl 0x64(%r14), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x64(%r14)
movb %al, 0x3(%r12)
addq $0x7, %rbx
movq %rbx, -0xa8(%rbp)
testq %rbx, %rbx
je 0x3438b
movq %r12, %r15
addq %r12, %rbx
movq (%r14), %rdi
movq %rbx, %rdx
subq %r15, %rdx
movq %r15, %rsi
callq 0x204ee
testq %rax, %rax
jle 0x343a9
addq %rax, %r15
cmpq %rbx, %r15
jne 0x3436d
cmpb $0x0, 0x84(%r14)
je 0x3439d
movq %r12, %rdi
callq 0x13570
movb $0x0, 0x80(%r14)
xorl %eax, %eax
jmp 0x34411
callq 0x13060
movl (%rax), %ebx
movb $0x2, 0x94(%r14)
leaq -0xa0(%rbp), %r15
movl $0x64, %edx
movl %ebx, %edi
movq %r15, %rsi
callq 0x131e0
movq (%r14), %r10
movq 0x40(%r10), %rdi
leaq 0x198c4(%rip), %rax # 0x4dca0
movq (%rax), %rdx
movl $0x1396, %esi # imm = 0x1396
xorl %ecx, %ecx
movq %r15, %r8
movl %ebx, %r9d
xorl %eax, %eax
callq *0x50(%r10)
movb $0x0, 0x80(%r14)
cmpb $0x0, 0x84(%r14)
je 0x3440c
movq %r12, %rdi
callq 0x13570
movl $0x1, %eax
movq %fs:0x28, %rcx
cmpq -0x30(%rbp), %rcx
jne 0x34432
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x13500
|
ma_net_real_write:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 88h
mov rax, fs:28h
mov [rbp+var_30], rax
mov [rbp+var_A8], rdx
mov eax, 0FFFFFFFFh
cmp byte ptr [rdi+94h], 2
jz loc_34411
mov rbx, rdx
mov r15, rsi
mov r14, rdi
mov byte ptr [rdi+80h], 2
cmp byte ptr [rdi+84h], 0
jz short loc_342E2
lea rdi, [rbx+8]
call _malloc
test rax, rax
jz short loc_342E7
mov r12, rax
mov r13, rax
add r13, 7
mov rdi, r13
mov rsi, r15
mov rdx, rbx
call _memcpy
lea rdx, [rbp+var_A8]
lea rcx, [rbp+var_A0]
mov rdi, r14
mov rsi, r13
call _mariadb_compress
test al, al
jnz short loc_3431A
mov rax, [rbp+var_A0]
jmp short loc_3431C
loc_342E2:
mov r12, r15
jmp short loc_34362
loc_342E7:
mov r8, [r14]
mov rdi, [r8+40h]
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
mov esi, 7D8h
xor ecx, ecx
xor eax, eax
call qword ptr [r8+50h]
mov byte ptr [r14+94h], 2
mov byte ptr [r14+80h], 0
jmp loc_3440C
loc_3431A:
xor eax, eax
loc_3431C:
mov rdx, r12
mov [r12+4], al
mov [rdx+5], ah
shr eax, 10h
mov [r12+6], al
mov rbx, [rbp+var_A8]
mov [r12], bl
mov [rdx+1], bh
mov eax, ebx
shr eax, 10h
mov [r12+2], al
mov eax, [r14+64h]
lea ecx, [rax+1]
mov [r14+64h], ecx
mov [r12+3], al
add rbx, 7
mov [rbp+var_A8], rbx
loc_34362:
test rbx, rbx
jz short loc_3438B
mov r15, r12
add rbx, r12
loc_3436D:
mov rdi, [r14]
mov rdx, rbx
sub rdx, r15
mov rsi, r15
call ma_pvio_write
test rax, rax
jle short loc_343A9
add r15, rax
cmp r15, rbx
jnz short loc_3436D
loc_3438B:
cmp byte ptr [r14+84h], 0
jz short loc_3439D
mov rdi, r12
call _free
loc_3439D:
mov byte ptr [r14+80h], 0
xor eax, eax
jmp short loc_34411
loc_343A9:
call ___errno_location
mov ebx, [rax]
mov byte ptr [r14+94h], 2
lea r15, [rbp+var_A0]
mov edx, 64h ; 'd'
mov edi, ebx
mov rsi, r15
call ___xpg_strerror_r
mov r10, [r14]
mov rdi, [r10+40h]
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
mov esi, 1396h
xor ecx, ecx
mov r8, r15
mov r9d, ebx
xor eax, eax
call qword ptr [r10+50h]
mov byte ptr [r14+80h], 0
cmp byte ptr [r14+84h], 0
jz short loc_3440C
mov rdi, r12
call _free
loc_3440C:
mov eax, 1
loc_34411:
mov rcx, fs:28h
cmp rcx, [rbp+var_30]
jnz short loc_34432
add rsp, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_34432:
call ___stack_chk_fail
|
long long ma_net_real_write(_BYTE *a1, long long a2, long long a3)
{
long long result; // rax
long long v4; // rbx
long long v6; // rax
long long v7; // r12
long long v8; // r13
int v9; // eax
long long v10; // rbx
int v11; // eax
long long v12; // r15
long long v13; // rbx
long long v14; // rdi
long long v15; // rax
unsigned int v16; // ebx
long long v17; // [rsp+8h] [rbp-A8h] BYREF
_QWORD v18[20]; // [rsp+10h] [rbp-A0h] BYREF
v18[14] = __readfsqword(0x28u);
v17 = a3;
result = 0xFFFFFFFFLL;
if ( a1[148] != 2 )
{
v4 = a3;
a1[128] = 2;
if ( a1[132] )
{
v6 = malloc(a3 + 8);
if ( !v6 )
{
(*(void ( **)(_QWORD, long long, char *, _QWORD))(*(_QWORD *)a1 + 80LL))(
*(_QWORD *)(*(_QWORD *)a1 + 64LL),
2008LL,
SQLSTATE_UNKNOWN,
0LL);
a1[148] = 2;
a1[128] = 0;
return 1LL;
}
v7 = v6;
v8 = v6 + 7;
memcpy(v6 + 7, a2, v4);
if ( mariadb_compress((long long)a1, v8, &v17, v18) )
v9 = 0;
else
v9 = v18[0];
*(_WORD *)(v7 + 4) = v9;
*(_BYTE *)(v7 + 6) = BYTE2(v9);
v10 = v17;
*(_WORD *)v7 = v17;
*(_BYTE *)(v7 + 2) = BYTE2(v10);
v11 = *((_DWORD *)a1 + 25);
*((_DWORD *)a1 + 25) = v11 + 1;
*(_BYTE *)(v7 + 3) = v11;
v4 = v10 + 7;
v17 = v4;
}
else
{
v7 = a2;
}
if ( v4 )
{
v12 = v7;
v13 = v7 + v4;
while ( 1 )
{
v14 = *(_QWORD *)a1;
v15 = ma_pvio_write(*(_QWORD *)a1, v12, v13 - v12);
if ( v15 <= 0 )
break;
v12 += v15;
if ( v12 == v13 )
goto LABEL_14;
}
v16 = *(_DWORD *)__errno_location(v14);
a1[148] = 2;
__xpg_strerror_r(v16, v18, 100LL);
(*(void ( **)(_QWORD, long long, char *, _QWORD, _QWORD *, _QWORD))(*(_QWORD *)a1 + 80LL))(
*(_QWORD *)(*(_QWORD *)a1 + 64LL),
5014LL,
SQLSTATE_UNKNOWN,
0LL,
v18,
v16);
a1[128] = 0;
if ( a1[132] )
free(v7);
return 1LL;
}
LABEL_14:
if ( a1[132] )
free(v7);
a1[128] = 0;
return 0LL;
}
return result;
}
|
ma_net_real_write:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x88
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV qword ptr [RBP + -0xa8],RDX
MOV EAX,0xffffffff
CMP byte ptr [RDI + 0x94],0x2
JZ 0x00134411
MOV RBX,RDX
MOV R15,RSI
MOV R14,RDI
MOV byte ptr [RDI + 0x80],0x2
CMP byte ptr [RDI + 0x84],0x0
JZ 0x001342e2
LEA RDI,[RBX + 0x8]
CALL 0x00113600
TEST RAX,RAX
JZ 0x001342e7
MOV R12,RAX
MOV R13,RAX
ADD R13,0x7
MOV RDI,R13
MOV RSI,R15
MOV RDX,RBX
CALL 0x00113390
LEA RDX,[RBP + -0xa8]
LEA RCX,[RBP + -0xa0]
MOV RDI,R14
MOV RSI,R13
CALL 0x00121107
TEST AL,AL
JNZ 0x0013431a
MOV RAX,qword ptr [RBP + -0xa0]
JMP 0x0013431c
LAB_001342e2:
MOV R12,R15
JMP 0x00134362
LAB_001342e7:
MOV R8,qword ptr [R14]
MOV RDI,qword ptr [R8 + 0x40]
LEA RAX,[0x14dca0]
MOV RDX,qword ptr [RAX]
MOV ESI,0x7d8
XOR ECX,ECX
XOR EAX,EAX
CALL qword ptr [R8 + 0x50]
MOV byte ptr [R14 + 0x94],0x2
MOV byte ptr [R14 + 0x80],0x0
JMP 0x0013440c
LAB_0013431a:
XOR EAX,EAX
LAB_0013431c:
MOV RDX,R12
MOV byte ptr [R12 + 0x4],AL
MOV byte ptr [RDX + 0x5],AH
SHR EAX,0x10
MOV byte ptr [R12 + 0x6],AL
MOV RBX,qword ptr [RBP + -0xa8]
MOV byte ptr [R12],BL
MOV byte ptr [RDX + 0x1],BH
MOV EAX,EBX
SHR EAX,0x10
MOV byte ptr [R12 + 0x2],AL
MOV EAX,dword ptr [R14 + 0x64]
LEA ECX,[RAX + 0x1]
MOV dword ptr [R14 + 0x64],ECX
MOV byte ptr [R12 + 0x3],AL
ADD RBX,0x7
MOV qword ptr [RBP + -0xa8],RBX
LAB_00134362:
TEST RBX,RBX
JZ 0x0013438b
MOV R15,R12
ADD RBX,R12
LAB_0013436d:
MOV RDI,qword ptr [R14]
MOV RDX,RBX
SUB RDX,R15
MOV RSI,R15
CALL 0x001204ee
TEST RAX,RAX
JLE 0x001343a9
ADD R15,RAX
CMP R15,RBX
JNZ 0x0013436d
LAB_0013438b:
CMP byte ptr [R14 + 0x84],0x0
JZ 0x0013439d
MOV RDI,R12
CALL 0x00113570
LAB_0013439d:
MOV byte ptr [R14 + 0x80],0x0
XOR EAX,EAX
JMP 0x00134411
LAB_001343a9:
CALL 0x00113060
MOV EBX,dword ptr [RAX]
MOV byte ptr [R14 + 0x94],0x2
LEA R15,[RBP + -0xa0]
MOV EDX,0x64
MOV EDI,EBX
MOV RSI,R15
CALL 0x001131e0
MOV R10,qword ptr [R14]
MOV RDI,qword ptr [R10 + 0x40]
LEA RAX,[0x14dca0]
MOV RDX,qword ptr [RAX]
MOV ESI,0x1396
XOR ECX,ECX
MOV R8,R15
MOV R9D,EBX
XOR EAX,EAX
CALL qword ptr [R10 + 0x50]
MOV byte ptr [R14 + 0x80],0x0
CMP byte ptr [R14 + 0x84],0x0
JZ 0x0013440c
MOV RDI,R12
CALL 0x00113570
LAB_0013440c:
MOV EAX,0x1
LAB_00134411:
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x30]
JNZ 0x00134432
ADD RSP,0x88
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00134432:
CALL 0x00113500
|
int8 ma_net_real_write(long *param_1,int1 *param_2,size_t param_3)
{
int iVar1;
char cVar2;
int8 uVar3;
int1 *puVar4;
long lVar5;
int *piVar6;
int1 *puVar7;
long in_FS_OFFSET;
size_t local_b0;
int4 local_a8 [28];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
uVar3 = 0xffffffff;
local_b0 = param_3;
if (*(char *)((long)param_1 + 0x94) != '\x02') {
*(int1 *)(param_1 + 0x10) = 2;
if (*(char *)((long)param_1 + 0x84) != '\0') {
puVar4 = (int1 *)malloc(param_3 + 8);
if (puVar4 == (int1 *)0x0) {
(**(code **)(*param_1 + 0x50))(*(int8 *)(*param_1 + 0x40),0x7d8,SQLSTATE_UNKNOWN,0);
*(int1 *)((long)param_1 + 0x94) = 2;
*(int1 *)(param_1 + 0x10) = 0;
LAB_0013440c:
uVar3 = 1;
goto LAB_00134411;
}
memcpy(puVar4 + 7,param_2,param_3);
cVar2 = _mariadb_compress(param_1,puVar4 + 7,&local_b0,local_a8);
if (cVar2 != '\0') {
local_a8[0] = 0;
}
puVar4[4] = (char)local_a8[0];
puVar4[5] = (char)((uint)local_a8[0] >> 8);
puVar4[6] = (char)((uint)local_a8[0] >> 0x10);
*puVar4 = (char)local_b0;
puVar4[1] = (char)(local_b0 >> 8);
puVar4[2] = (char)(local_b0 >> 0x10);
iVar1 = *(int *)((long)param_1 + 100);
*(int *)((long)param_1 + 100) = iVar1 + 1;
puVar4[3] = (char)iVar1;
local_b0 = local_b0 + 7;
param_2 = puVar4;
}
if (local_b0 != 0) {
puVar7 = param_2 + local_b0;
puVar4 = param_2;
do {
lVar5 = ma_pvio_write(*param_1,puVar4,(long)puVar7 - (long)puVar4);
if (lVar5 < 1) {
piVar6 = __errno_location();
iVar1 = *piVar6;
*(int1 *)((long)param_1 + 0x94) = 2;
__xpg_strerror_r(iVar1,local_a8,100);
(**(code **)(*param_1 + 0x50))
(*(int8 *)(*param_1 + 0x40),0x1396,SQLSTATE_UNKNOWN,0,local_a8,iVar1);
*(int1 *)(param_1 + 0x10) = 0;
if (*(char *)((long)param_1 + 0x84) != '\0') {
free(param_2);
}
goto LAB_0013440c;
}
puVar4 = puVar4 + lVar5;
} while (puVar4 != puVar7);
}
if (*(char *)((long)param_1 + 0x84) != '\0') {
free(param_2);
}
*(int1 *)(param_1 + 0x10) = 0;
uVar3 = 0;
}
LAB_00134411:
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return uVar3;
}
|
|
56,901
|
void nlohmann::json_abi_v3_11_3::detail::from_json<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::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&, 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>::boolean_t&)
|
monkey531[P]llama/common/json.hpp
|
inline void from_json(const BasicJsonType& j, typename BasicJsonType::boolean_t& b)
{
if (JSON_HEDLEY_UNLIKELY(!j.is_boolean()))
{
JSON_THROW(type_error::create(302, concat("type must be boolean, but is ", j.type_name()), &j));
}
b = *j.template get_ptr<const typename BasicJsonType::boolean_t*>();
}
|
O3
|
cpp
|
void nlohmann::json_abi_v3_11_3::detail::from_json<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::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&, 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>::boolean_t&):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %r14
cmpb $0x4, (%rdi)
jne 0x42a7c
movb 0x8(%r14), %al
movb %al, (%rsi)
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl $0x20, %edi
callq 0x18380
movq %rax, %rbx
movq %r14, %rdi
callq 0x412e6
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x6ac0e(%rip), %rsi # 0xad6ae
leaq 0x10(%rsp), %rdi
callq 0x42b12
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0x12e, %esi # imm = 0x12E
movq %r14, %rcx
callq 0x4108e
xorl %ebp, %ebp
leaq 0x9c7fd(%rip), %rsi # 0xdf2c8
leaq 0xcada(%rip), %rdx # 0x4f5ac
movq %rbx, %rdi
callq 0x18bb0
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x42af8
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x186e0
testb %bpl, %bpl
jne 0x42b02
jmp 0x42b0a
movq %rax, %r14
movq %rbx, %rdi
callq 0x18520
movq %r14, %rdi
callq 0x18c10
|
_ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEvRKT_RNSG_9boolean_tE:
push rbp; char
push r14; int
push rbx; __int64
sub rsp, 30h
mov r14, rdi
cmp byte ptr [rdi], 4
jnz short loc_42A7C
mov al, [r14+8]
mov [rsi], al
add rsp, 30h
pop rbx
pop r14
pop rbp
retn
loc_42A7C:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
lea rdx, [rsp+48h+var_40]
mov [rdx], rax
lea rsi, aTypeMustBeBool; "type must be boolean, but is "
lea rdi, [rsp+48h+var_38]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA30_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[30],char const*>(char const(&)[30],char const* &&)
mov bpl, 1
lea rdx, [rsp+48h+var_38]
mov rdi, rbx; this
mov esi, 12Eh; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rax, [rsp+48h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_42AF8
mov rsi, [rsp+48h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_42AF8:
test bpl, bpl
jnz short loc_42B02
jmp short loc_42B0A
mov r14, rax
loc_42B02:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_42B0A:
mov rdi, r14
call __Unwind_Resume
|
unsigned __int8 nlohmann::json_abi_v3_11_3::detail::from_json<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>>(
unsigned __int8 *a1,
unsigned __int8 *a2)
{
unsigned __int8 result; // al
nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx
_QWORD v4[2]; // [rsp+10h] [rbp-38h] BYREF
if ( *a1 != 4 )
{
exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name(a1);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[30],char const*>(
v4,
"type must be boolean, but is ");
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
exception,
302,
v4);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
result = a1[8];
*a2 = result;
return result;
}
|
from_json<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV R14,RDI
CMP byte ptr [RDI],0x4
JNZ 0x00142a7c
MOV AL,byte ptr [R14 + 0x8]
MOV byte ptr [RSI],AL
ADD RSP,0x30
POP RBX
POP R14
POP RBP
RET
LAB_00142a7c:
MOV EDI,0x20
CALL 0x00118380
MOV RBX,RAX
MOV RDI,R14
CALL 0x001412e6
LEA RDX,[RSP + 0x8]
MOV qword ptr [RDX],RAX
LAB_00142a99:
LEA RSI,[0x1ad6ae]
LEA RDI,[RSP + 0x10]
CALL 0x00142b12
MOV BPL,0x1
LAB_00142aad:
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0x12e
MOV RCX,R14
CALL 0x0014108e
XOR EBP,EBP
LEA RSI,[0x1df2c8]
LEA RDX,[0x14f5ac]
MOV RDI,RBX
CALL 0x00118bb0
|
/* void
nlohmann::json_abi_v3_11_3::detail::from_json<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, 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::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, 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&,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::boolean_t&) */
void nlohmann::json_abi_v3_11_3::detail::
from_json<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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 *param_1,boolean_t *param_2)
{
int8 uVar1;
char *local_40;
detail local_38 [32];
if (*param_1 == (basic_json)0x4) {
*param_2 = *(boolean_t *)(param_1 + 8);
return;
}
uVar1 = __cxa_allocate_exception(0x20);
local_40 = (char *)basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::type_name((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)param_1);
/* try { // try from 00142a99 to 00142aa9 has its CatchHandler @ 00142aff */
concat<std::__cxx11::string,char_const(&)[30],char_const*>
(local_38,"type must be boolean, but is ",&local_40);
/* try { // try from 00142aad to 00142ad9 has its CatchHandler @ 00142ada */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(uVar1,0x12e,local_38,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar1,&type_error::typeinfo,exception::~exception);
}
|
|
56,902
|
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_round(char*, int, unsigned long, unsigned long, unsigned long, unsigned long)
|
monkey531[P]llama/common/./json.hpp
|
inline void grisu2_round(char* buf, int len, std::uint64_t dist, std::uint64_t delta,
std::uint64_t rest, std::uint64_t ten_k)
{
JSON_ASSERT(len >= 1);
JSON_ASSERT(dist <= delta);
JSON_ASSERT(rest <= delta);
JSON_ASSERT(ten_k > 0);
// <--------------------------- delta ---->
// <---- dist --------->
// --------------[------------------+-------------------]--------------
// M- w M+
//
// ten_k
// <------>
// <---- rest ---->
// --------------[------------------+----+--------------]--------------
// w V
// = buf * 10^k
//
// ten_k represents a unit-in-the-last-place in the decimal representation
// stored in buf.
// Decrement buf by ten_k while this takes buf closer to w.
// The tests are written in this order to avoid overflow in unsigned
// integer arithmetic.
while (rest < dist
&& delta - rest >= ten_k
&& (rest + ten_k < dist || dist - rest > rest + ten_k - dist))
{
JSON_ASSERT(buf[len - 1] != '0');
buf[len - 1]--;
rest += ten_k;
}
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_round(char*, int, unsigned long, unsigned long, unsigned long, unsigned long):
pushq %rax
testl %esi, %esi
jle 0x67f27
cmpq %rcx, %rdx
ja 0x67f46
movq %rcx, %r10
subq %r8, %r10
jb 0x67f65
testq %r9, %r9
je 0x67f84
movq %rdx, %rax
subq %r8, %rax
setbe %r11b
cmpq %r9, %r10
setb %r10b
orb %r11b, %r10b
jne 0x67f06
movl %esi, %esi
addq %r9, %r8
subq %r8, %rcx
movq %rdx, %r10
negq %r10
cmpq %rdx, %r8
jb 0x67edc
leaq (%r10,%r8), %r11
cmpq %r11, %rax
jbe 0x67f06
movb -0x1(%rdi,%rsi), %r11b
cmpb $0x30, %r11b
je 0x67f08
decb %r11b
movb %r11b, -0x1(%rdi,%rsi)
subq %r9, %rcx
setb %r11b
cmpq %rdx, %r8
jae 0x67f06
subq %r9, %rax
addq %r9, %r8
testb %r11b, %r11b
je 0x67ece
popq %rax
retq
leaq 0x546d2(%rip), %rdi # 0xbc5e1
leaq 0x4ed90(%rip), %rsi # 0xb6ca6
leaq 0x54626(%rip), %rcx # 0xbc543
movl $0x444d, %edx # imm = 0x444D
callq 0x18470
leaq 0x5460c(%rip), %rdi # 0xbc53a
leaq 0x4ed71(%rip), %rsi # 0xb6ca6
leaq 0x54607(%rip), %rcx # 0xbc543
movl $0x4431, %edx # imm = 0x4431
callq 0x18470
leaq 0x5466e(%rip), %rdi # 0xbc5bb
leaq 0x4ed52(%rip), %rsi # 0xb6ca6
leaq 0x545e8(%rip), %rcx # 0xbc543
movl $0x4432, %edx # imm = 0x4432
callq 0x18470
leaq 0x5465d(%rip), %rdi # 0xbc5c9
leaq 0x4ed33(%rip), %rsi # 0xb6ca6
leaq 0x545c9(%rip), %rcx # 0xbc543
movl $0x4433, %edx # imm = 0x4433
callq 0x18470
leaq 0x5464c(%rip), %rdi # 0xbc5d7
leaq 0x4ed14(%rip), %rsi # 0xb6ca6
leaq 0x545aa(%rip), %rcx # 0xbc543
movl $0x4434, %edx # imm = 0x4434
callq 0x18470
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl12grisu2_roundEPcimmmm:
push rax
test esi, esi
jle loc_67F27
cmp rdx, rcx
ja loc_67F46
mov r10, rcx
sub r10, r8
jb loc_67F65
test r9, r9
jz loc_67F84
mov rax, rdx
sub rax, r8
setbe r11b
cmp r10, r9
setb r10b
or r10b, r11b
jnz short loc_67F06
mov esi, esi
add r8, r9
sub rcx, r8
mov r10, rdx
neg r10
loc_67ECE:
cmp r8, rdx
jb short loc_67EDC
lea r11, [r10+r8]
cmp rax, r11
jbe short loc_67F06
loc_67EDC:
mov r11b, [rdi+rsi-1]
cmp r11b, 30h ; '0'
jz short loc_67F08
dec r11b
mov [rdi+rsi-1], r11b
sub rcx, r9
setb r11b
cmp r8, rdx
jnb short loc_67F06
sub rax, r9
add r8, r9
test r11b, r11b
jz short loc_67ECE
loc_67F06:
pop rax
retn
loc_67F08:
lea rdi, aBufLen10; "buf[len - 1] != '0'"
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidNlohmannDe_11; "void nlohmann::detail::dtoa_impl::grisu"...
mov edx, 444Dh
call ___assert_fail
loc_67F27:
lea rdi, aLen1; "len >= 1"
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidNlohmannDe_11; "void nlohmann::detail::dtoa_impl::grisu"...
mov edx, 4431h
call ___assert_fail
loc_67F46:
lea rdi, aDistDelta; "dist <= delta"
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidNlohmannDe_11; "void nlohmann::detail::dtoa_impl::grisu"...
mov edx, 4432h
call ___assert_fail
loc_67F65:
lea rdi, aRestDelta; "rest <= delta"
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidNlohmannDe_11; "void nlohmann::detail::dtoa_impl::grisu"...
mov edx, 4433h
call ___assert_fail
loc_67F84:
lea rdi, aTenK0; "ten_k > 0"
lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidNlohmannDe_11; "void nlohmann::detail::dtoa_impl::grisu"...
mov edx, 4434h
call ___assert_fail
|
void __spoils<rdx,rcx,r8,r9,r10,r11,xmm4,xmm5> nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_round(
nlohmann::json_abi_v3_11_3::detail::dtoa_impl *this,
char *a2,
unsigned long long a3,
unsigned long long a4,
unsigned long long a5,
unsigned long long a6)
{
unsigned long long v6; // rax
unsigned long long v7; // r8
unsigned long long v8; // rcx
char v9; // r11
bool v10; // cf
if ( (int)a2 <= 0 )
__assert_fail(
"len >= 1",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
17457LL,
"void nlohmann::detail::dtoa_impl::grisu2_round(char *, int, std::uint64_t, std::uint64_t, std::uint64_t, std::uint64_t)");
if ( a3 > a4 )
__assert_fail(
"dist <= delta",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
17458LL,
"void nlohmann::detail::dtoa_impl::grisu2_round(char *, int, std::uint64_t, std::uint64_t, std::uint64_t, std::uint64_t)");
if ( a4 < a5 )
__assert_fail(
"rest <= delta",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
17459LL,
"void nlohmann::detail::dtoa_impl::grisu2_round(char *, int, std::uint64_t, std::uint64_t, std::uint64_t, std::uint64_t)");
if ( !a6 )
__assert_fail(
"ten_k > 0",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
17460LL,
"void nlohmann::detail::dtoa_impl::grisu2_round(char *, int, std::uint64_t, std::uint64_t, std::uint64_t, std::uint64_t)");
v6 = a3 - a5;
if ( a3 > a5 && a4 - a5 >= a6 )
{
v7 = a6 + a5;
v8 = a4 - v7;
do
{
if ( v7 >= a3 && v6 <= v7 - a3 )
break;
v9 = *((_BYTE *)this + (unsigned int)a2 - 1);
if ( v9 == 48 )
__assert_fail(
"buf[len - 1] != '0'",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
17485LL,
"void nlohmann::detail::dtoa_impl::grisu2_round(char *, int, std::uint64_t, std::uint64_t, std::uint64_t, std::uint64_t)");
*((_BYTE *)this + (unsigned int)a2 - 1) = v9 - 1;
v10 = v8 < a6;
v8 -= a6;
if ( v7 >= a3 )
break;
v6 -= a6;
v7 += a6;
}
while ( !v10 );
}
}
|
grisu2_round:
PUSH RAX
TEST ESI,ESI
JLE 0x00167f27
CMP RDX,RCX
JA 0x00167f46
MOV R10,RCX
SUB R10,R8
JC 0x00167f65
TEST R9,R9
JZ 0x00167f84
MOV RAX,RDX
SUB RAX,R8
SETBE R11B
CMP R10,R9
SETC R10B
OR R10B,R11B
JNZ 0x00167f06
MOV ESI,ESI
ADD R8,R9
SUB RCX,R8
MOV R10,RDX
NEG R10
LAB_00167ece:
CMP R8,RDX
JC 0x00167edc
LEA R11,[R10 + R8*0x1]
CMP RAX,R11
JBE 0x00167f06
LAB_00167edc:
MOV R11B,byte ptr [RDI + RSI*0x1 + -0x1]
CMP R11B,0x30
JZ 0x00167f08
DEC R11B
MOV byte ptr [RDI + RSI*0x1 + -0x1],R11B
SUB RCX,R9
SETC R11B
CMP R8,RDX
JNC 0x00167f06
SUB RAX,R9
ADD R8,R9
TEST R11B,R11B
JZ 0x00167ece
LAB_00167f06:
POP RAX
RET
LAB_00167f08:
LEA RDI,[0x1bc5e1]
LEA RSI,[0x1b6ca6]
LEA RCX,[0x1bc543]
MOV EDX,0x444d
CALL 0x00118470
LAB_00167f27:
LEA RDI,[0x1bc53a]
LEA RSI,[0x1b6ca6]
LEA RCX,[0x1bc543]
MOV EDX,0x4431
CALL 0x00118470
LAB_00167f46:
LEA RDI,[0x1bc5bb]
LEA RSI,[0x1b6ca6]
LEA RCX,[0x1bc543]
MOV EDX,0x4432
CALL 0x00118470
LAB_00167f65:
LEA RDI,[0x1bc5c9]
LEA RSI,[0x1b6ca6]
LEA RCX,[0x1bc543]
MOV EDX,0x4433
CALL 0x00118470
LAB_00167f84:
LEA RDI,[0x1bc5d7]
LEA RSI,[0x1b6ca6]
LEA RCX,[0x1bc543]
MOV EDX,0x4434
CALL 0x00118470
|
/* nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_round(char*, int, unsigned long, unsigned
long, unsigned long, unsigned long) */
int8
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_round
(char *param_1,int param_2,ulong param_3,ulong param_4,ulong param_5,ulong param_6)
{
int8 in_RAX;
ulong uVar1;
ulong uVar2;
ulong uVar3;
bool bVar4;
if (param_2 < 1) {
/* WARNING: Subroutine does not return */
__assert_fail("len >= 1",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
0x4431,
"void nlohmann::detail::dtoa_impl::grisu2_round(char *, int, std::uint64_t, std::uint64_t, std::uint64_t, std::uint64_t)"
);
}
if (param_4 < param_3) {
/* WARNING: Subroutine does not return */
__assert_fail("dist <= delta",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
0x4432,
"void nlohmann::detail::dtoa_impl::grisu2_round(char *, int, std::uint64_t, std::uint64_t, std::uint64_t, std::uint64_t)"
);
}
if (param_4 < param_5) {
/* WARNING: Subroutine does not return */
__assert_fail("rest <= delta",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
0x4433,
"void nlohmann::detail::dtoa_impl::grisu2_round(char *, int, std::uint64_t, std::uint64_t, std::uint64_t, std::uint64_t)"
);
}
if (param_6 != 0) {
uVar1 = param_3 - param_5;
if (param_6 <= param_4 - param_5 && (param_5 <= param_3 && uVar1 != 0)) {
uVar3 = param_5 + param_6;
uVar2 = param_4 - uVar3;
do {
if ((param_3 <= uVar3) && (uVar1 <= uVar3 - param_3)) {
return in_RAX;
}
if (param_1[(ulong)(uint)param_2 - 1] == '0') {
/* WARNING: Subroutine does not return */
__assert_fail("buf[len - 1] != \'0\'",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp"
,0x444d,
"void nlohmann::detail::dtoa_impl::grisu2_round(char *, int, std::uint64_t, std::uint64_t, std::uint64_t, std::uint64_t)"
);
}
param_1[(ulong)(uint)param_2 - 1] = param_1[(ulong)(uint)param_2 - 1] + -1;
bVar4 = param_6 <= uVar2;
uVar2 = uVar2 - param_6;
if (param_3 <= uVar3) {
return in_RAX;
}
uVar1 = uVar1 - param_6;
uVar3 = uVar3 + param_6;
} while (bVar4);
}
return in_RAX;
}
/* WARNING: Subroutine does not return */
__assert_fail("ten_k > 0",
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",0x4434
,
"void nlohmann::detail::dtoa_impl::grisu2_round(char *, int, std::uint64_t, std::uint64_t, std::uint64_t, std::uint64_t)"
);
}
|
|
56,903
|
fmt::v10::appender fmt::v10::detail::write_significand<char, fmt::v10::appender, unsigned int, fmt::v10::detail::digit_grouping<char>>(fmt::v10::appender, unsigned int, int, int, fmt::v10::detail::digit_grouping<char> const&)
|
aimrt_mujoco_sim/_deps/fmt-src/include/fmt/format.h
|
FMT_CONSTEXPR20 auto write_significand(OutputIt out, T significand,
int significand_size, int exponent,
const Grouping& grouping) -> OutputIt {
if (!grouping.has_separator()) {
out = write_significand<Char>(out, significand, significand_size);
return detail::fill_n(out, exponent, static_cast<Char>('0'));
}
auto buffer = memory_buffer();
write_significand<char>(appender(buffer), significand, significand_size);
detail::fill_n(appender(buffer), exponent, '0');
return grouping.apply(out, string_view(buffer.data(), buffer.size()));
}
|
O3
|
c
|
fmt::v10::appender fmt::v10::detail::write_significand<char, fmt::v10::appender, unsigned int, fmt::v10::detail::digit_grouping<char>>(fmt::v10::appender, unsigned int, int, int, fmt::v10::detail::digit_grouping<char> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x238, %rsp # imm = 0x238
movl %ecx, %ebp
movq %rdi, %rbx
cmpq $0x0, 0x28(%r8)
je 0x906ec
movq %r8, %r14
leaq 0x40(%rsp), %r15
movq $0x0, -0x10(%r15)
leaq 0x20658c(%rip), %rax # 0x296c00
movq %rax, -0x20(%r15)
movq %r15, -0x18(%r15)
movq $0x1f4, -0x8(%r15) # imm = 0x1F4
xorps %xmm0, %xmm0
movq %rsp, %rdi
movaps %xmm0, (%rdi)
movl $0x0, 0x10(%rdi)
callq 0x8a315
movq %rsp, %rdi
leaq 0x20(%rsp), %rax
movq %rdx, %rsi
movq %rax, %rdx
callq 0x8a10e
movq %rsp, %rdx
movb $0x30, (%rdx)
leaq 0x20(%rsp), %rdi
movl %ebp, %esi
callq 0x8eb6c
movq 0x28(%rsp), %rdx
movq 0x30(%rsp), %rcx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8ce8a
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x9072c
movq 0x38(%rsp), %rsi
callq 0x82190
jmp 0x9072c
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %r14
movaps %xmm0, (%r14)
movl $0x0, 0x10(%r14)
movq %r14, %rdi
callq 0x8a315
movq %r14, %rdi
movq %rdx, %rsi
movq %rbx, %rdx
callq 0x8a10e
movb $0x30, (%r14)
leaq 0x20(%rsp), %rdx
movq %rax, %rdi
movl %ebp, %esi
callq 0x8eb6c
movq %rax, %rbx
movq %rbx, %rax
addq $0x238, %rsp # imm = 0x238
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9073f
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x90756
movq 0x38(%rsp), %rsi
callq 0x82190
movq %rbx, %rdi
callq 0x83b70
|
_ZN3fmt3v106detail17write_significandIcNS0_8appenderEmNS1_14digit_groupingIcEEEET0_S6_T1_iiRKT2_:
push rbp
push r15
push r14
push rbx
sub rsp, 238h
mov ebp, ecx
mov rbx, rdi
cmp qword ptr [r8+28h], 0
jz loc_906EC
mov r14, r8
lea r15, [rsp+258h+var_218]
mov qword ptr [r15-10h], 0
lea rax, off_296C00
mov [r15-20h], rax
mov [r15-18h], r15
mov qword ptr [r15-8], 1F4h
xorps xmm0, xmm0
mov rdi, rsp
movaps xmmword ptr [rdi], xmm0
mov dword ptr [rdi+10h], 0
call _ZN3fmt3v106detail14format_decimalIcmEENS1_21format_decimal_resultIPT_EES5_T0_i; fmt::v10::detail::format_decimal<char,ulong>(char *,ulong,int)
mov rdi, rsp
lea rax, [rsp+258h+var_238]
mov rsi, rdx
mov rdx, rax
call _ZN3fmt3v106detail17copy_str_noinlineIcPcNS0_8appenderEEET1_T0_S6_S5_; fmt::v10::detail::copy_str_noinline<char,char *,fmt::v10::appender>(char *,char *,fmt::v10::appender)
mov rdx, rsp
mov byte ptr [rdx], 30h ; '0'
lea rdi, [rsp+258h+var_238]
mov esi, ebp
call _ZN3fmt3v106detail6fill_nINS0_8appenderEicEET_S4_T0_RKT1_; fmt::v10::detail::fill_n<fmt::v10::appender,int,char>(fmt::v10::appender,int,char const&)
mov rdx, [rsp+258h+var_230]; int
mov rcx, qword ptr [rsp+258h+var_228]; int
mov rdi, r14; int
mov rsi, rbx; int
call _ZNK3fmt3v106detail14digit_groupingIcE5applyINS0_8appenderEcEET_S6_NS0_17basic_string_viewIT0_EE; fmt::v10::detail::digit_grouping<char>::apply<fmt::v10::appender,char>(fmt::v10::appender,fmt::v10::basic_string_view<char>)
mov rbx, rax
mov rdi, [rsp+258h+var_230]; void *
cmp rdi, r15
jz short loc_9072C
mov rsi, [rsp+258h+var_220]; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_9072C
loc_906EC:
xorps xmm0, xmm0
lea r14, [rsp+258h+var_238]
movaps xmmword ptr [r14], xmm0
mov dword ptr [r14+10h], 0
mov rdi, r14
call _ZN3fmt3v106detail14format_decimalIcmEENS1_21format_decimal_resultIPT_EES5_T0_i; fmt::v10::detail::format_decimal<char,ulong>(char *,ulong,int)
mov rdi, r14
mov rsi, rdx
mov rdx, rbx
call _ZN3fmt3v106detail17copy_str_noinlineIcPcNS0_8appenderEEET1_T0_S6_S5_; fmt::v10::detail::copy_str_noinline<char,char *,fmt::v10::appender>(char *,char *,fmt::v10::appender)
mov byte ptr [r14], 30h ; '0'
lea rdx, [rsp+258h+var_238]
mov rdi, rax
mov esi, ebp
call _ZN3fmt3v106detail6fill_nINS0_8appenderEicEET_S4_T0_RKT1_; fmt::v10::detail::fill_n<fmt::v10::appender,int,char>(fmt::v10::appender,int,char const&)
mov rbx, rax
loc_9072C:
mov rax, rbx
add rsp, 238h
pop rbx
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_9073F:
mov rbx, rax
mov rdi, [rsp+arg_20]; void *
cmp rdi, r15
jz short loc_90756
mov rsi, [rsp+arg_30]; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_90756:
mov rdi, rbx
call __Unwind_Resume
|
long long fmt::v10::detail::write_significand<char,fmt::v10::appender,unsigned long,fmt::v10::detail::digit_grouping<char>>(
long long a1,
unsigned long long a2,
int a3,
int a4,
long long a5)
{
long long v7; // rdx
long long v8; // rbx
long long v9; // rdx
long long v10; // rax
__int128 v12; // [rsp+0h] [rbp-258h] BYREF
int v13; // [rsp+10h] [rbp-248h]
__int128 v14; // [rsp+20h] [rbp-238h] BYREF
int v15[2]; // [rsp+30h] [rbp-228h]
unsigned long long v16; // [rsp+38h] [rbp-220h]
_BYTE v17[536]; // [rsp+40h] [rbp-218h] BYREF
if ( *(_QWORD *)(a5 + 40) )
{
*(_QWORD *)v15 = 0LL;
*(_QWORD *)&v14 = &off_296C00;
*((_QWORD *)&v14 + 1) = v17;
v16 = 500LL;
v12 = 0LL;
v13 = 0;
fmt::v10::detail::format_decimal<char,unsigned long>((long long)&v12, a2, a3);
fmt::v10::detail::copy_str_noinline<char,char *,fmt::v10::appender>((long long)&v12, v7, (long long)&v14);
LOBYTE(v12) = 48;
fmt::v10::detail::fill_n<fmt::v10::appender,int,char>((long long)&v14, a4, (char *)&v12);
v8 = fmt::v10::detail::digit_grouping<char>::apply<fmt::v10::appender,char>(a5, a1, *((long long *)&v14 + 1), v15[0]);
if ( *((_BYTE **)&v14 + 1) != v17 )
operator delete(*((void **)&v14 + 1), v16);
}
else
{
v14 = 0LL;
v15[0] = 0;
fmt::v10::detail::format_decimal<char,unsigned long>((long long)&v14, a2, a3);
v10 = fmt::v10::detail::copy_str_noinline<char,char *,fmt::v10::appender>((long long)&v14, v9, a1);
LOBYTE(v14) = 48;
return fmt::v10::detail::fill_n<fmt::v10::appender,int,char>(v10, a4, (char *)&v14);
}
return v8;
}
|
write_significand<char,fmt::v10::appender,unsigned_long,fmt::v10::detail::digit_grouping<char>>:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x238
MOV EBP,ECX
MOV RBX,RDI
CMP qword ptr [R8 + 0x28],0x0
JZ 0x001906ec
MOV R14,R8
LEA R15,[RSP + 0x40]
MOV qword ptr [R15 + -0x10],0x0
LEA RAX,[0x396c00]
MOV qword ptr [R15 + -0x20],RAX
MOV qword ptr [R15 + -0x18],R15
MOV qword ptr [R15 + -0x8],0x1f4
XORPS XMM0,XMM0
MOV RDI,RSP
MOVAPS xmmword ptr [RDI],XMM0
MOV dword ptr [RDI + 0x10],0x0
LAB_00190694:
CALL 0x0018a315
MOV RDI,RSP
LEA RAX,[RSP + 0x20]
MOV RSI,RDX
MOV RDX,RAX
CALL 0x0018a10e
MOV RDX,RSP
MOV byte ptr [RDX],0x30
LAB_001906b2:
LEA RDI,[RSP + 0x20]
MOV ESI,EBP
CALL 0x0018eb6c
MOV RDX,qword ptr [RSP + 0x28]
MOV RCX,qword ptr [RSP + 0x30]
LAB_001906c8:
MOV RDI,R14
MOV RSI,RBX
CALL 0x0018ce8a
LAB_001906d3:
MOV RBX,RAX
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R15
JZ 0x0019072c
MOV RSI,qword ptr [RSP + 0x38]
CALL 0x00182190
JMP 0x0019072c
LAB_001906ec:
XORPS XMM0,XMM0
LEA R14,[RSP + 0x20]
MOVAPS xmmword ptr [R14],XMM0
MOV dword ptr [R14 + 0x10],0x0
MOV RDI,R14
CALL 0x0018a315
MOV RDI,R14
MOV RSI,RDX
MOV RDX,RBX
CALL 0x0018a10e
MOV byte ptr [R14],0x30
LEA RDX,[RSP + 0x20]
MOV RDI,RAX
MOV ESI,EBP
CALL 0x0018eb6c
MOV RBX,RAX
LAB_0019072c:
MOV RAX,RBX
ADD RSP,0x238
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* fmt::v10::appender fmt::v10::detail::write_significand<char, fmt::v10::appender, unsigned long,
fmt::v10::detail::digit_grouping<char> >(fmt::v10::appender, unsigned long, int, int,
fmt::v10::detail::digit_grouping<char> const&) */
int8
fmt::v10::detail::
write_significand<char,fmt::v10::appender,unsigned_long,fmt::v10::detail::digit_grouping<char>>
(int8 param_1,ulong param_2,int param_3,int4 param_4,long param_5)
{
int8 uVar1;
int8 extraout_RDX;
int8 extraout_RDX_00;
char local_258 [32];
int **local_238;
int1 *puStack_230;
ulong local_228;
ulong local_220;
int1 local_218 [504];
if (*(long *)(param_5 + 0x28) == 0) {
local_238 = (int **)0x0;
puStack_230 = (int1 *)0x0;
local_228 = local_228 & 0xffffffff00000000;
format_decimal<char,unsigned_long>((char *)&local_238,param_2,param_3);
uVar1 = copy_str_noinline<char,char*,fmt::v10::appender>(&local_238,extraout_RDX_00,param_1);
local_238 = (int **)CONCAT71(local_238._1_7_,0x30);
uVar1 = fill_n<fmt::v10::appender,int,char>(uVar1,param_4,&local_238);
}
else {
local_228 = 0;
local_238 = &PTR_grow_00396c00;
local_220 = 500;
local_258[0] = '\0';
local_258[1] = '\0';
local_258[2] = '\0';
local_258[3] = '\0';
local_258[4] = '\0';
local_258[5] = '\0';
local_258[6] = '\0';
local_258[7] = '\0';
local_258[8] = '\0';
local_258[9] = '\0';
local_258[10] = '\0';
local_258[0xb] = '\0';
local_258[0xc] = '\0';
local_258[0xd] = '\0';
local_258[0xe] = '\0';
local_258[0xf] = '\0';
local_258[0x10] = '\0';
local_258[0x11] = '\0';
local_258[0x12] = '\0';
local_258[0x13] = '\0';
puStack_230 = local_218;
/* try { // try from 00190694 to 001906ab has its CatchHandler @ 0019073f */
format_decimal<char,unsigned_long>(local_258,param_2,param_3);
copy_str_noinline<char,char*,fmt::v10::appender>(local_258,extraout_RDX,&local_238);
local_258[0] = 0x30;
/* try { // try from 001906b2 to 001906bd has its CatchHandler @ 0019073d */
fill_n<fmt::v10::appender,int,char>(&local_238,param_4);
/* try { // try from 001906c8 to 001906d2 has its CatchHandler @ 0019073f */
uVar1 = digit_grouping<char>::apply<fmt::v10::appender,char>
(param_5,param_1,puStack_230,local_228);
if (puStack_230 != local_218) {
operator_delete(puStack_230,local_220);
}
}
return uVar1;
}
|
|
56,904
|
ma_init_block_record
|
eloqsql/storage/maria/ma_blockrec.c
|
my_bool _ma_init_block_record(MARIA_HA *info)
{
MARIA_ROW *row= &info->cur_row, *new_row= &info->new_row;
MARIA_SHARE *share= info->s;
myf flag= MY_WME | (share->temporary ? MY_THREAD_SPECIFIC : 0);
uint default_extents;
DBUG_ENTER("_ma_init_block_record");
if (!my_multi_malloc(PSI_INSTRUMENT_ME, flag,
&row->empty_bits, share->base.pack_bytes,
&row->field_lengths,
share->base.max_field_lengths + 2,
&row->blob_lengths, sizeof(ulong) * share->base.blobs,
&row->null_field_lengths, (sizeof(uint) *
(share->base.fields -
share->base.blobs +
EXTRA_LENGTH_FIELDS)),
&row->tail_positions, (sizeof(MARIA_RECORD_POS) *
(share->base.blobs + 2)),
&new_row->empty_bits, share->base.pack_bytes,
&new_row->field_lengths,
share->base.max_field_lengths + 2,
&new_row->blob_lengths,
sizeof(ulong) * share->base.blobs,
&new_row->null_field_lengths, (sizeof(uint) *
(share->base.fields -
share->base.blobs +
EXTRA_LENGTH_FIELDS)),
&info->log_row_parts,
sizeof(*info->log_row_parts) *
(TRANSLOG_INTERNAL_PARTS + 3 +
share->base.fields + 3),
&info->update_field_data,
(share->base.fields * 4 +
share->base.max_field_lengths + 1 + 4),
NullS, 0))
DBUG_RETURN(1);
/* Skip over bytes used to store length of field length for logging */
row->field_lengths+= 2;
new_row->field_lengths+= 2;
/* Reserve some initial space to avoid mallocs during execution */
default_extents= (ELEMENTS_RESERVED_FOR_MAIN_PART + 1 +
(AVERAGE_BLOB_SIZE /
FULL_PAGE_SIZE(share) /
BLOB_SEGMENT_MIN_SIZE));
if (my_init_dynamic_array(PSI_INSTRUMENT_ME, &info->bitmap_blocks,
sizeof(MARIA_BITMAP_BLOCK),
default_extents, 64, flag))
goto err;
info->cur_row.extents_buffer_length= default_extents * ROW_EXTENT_SIZE;
if (!(info->cur_row.extents= my_malloc(PSI_INSTRUMENT_ME,
info->cur_row.extents_buffer_length,
flag)))
goto err;
info->row_base_length= share->base_length;
info->row_flag= share->base.default_row_flag;
/*
We need to reserve 'EXTRA_LENGTH_FIELDS' number of parts in
null_field_lengths to allow splitting of rows in 'find_where_to_split_row'
*/
row->null_field_lengths+= EXTRA_LENGTH_FIELDS;
new_row->null_field_lengths+= EXTRA_LENGTH_FIELDS;
DBUG_RETURN(0);
err:
_ma_end_block_record(info);
DBUG_RETURN(1);
}
|
O3
|
c
|
ma_init_block_record:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
movq (%rdi), %rsi
xorl %r14d, %r14d
cmpb $0x0, 0x7d9(%rsi)
setne %r14b
shll $0x10, %r14d
orq $0x10, %r14
leaq 0xc8(%rdi), %rdx
movl 0x3f4(%rsi), %ecx
leaq 0xd0(%rdi), %r8
movl 0x3c8(%rsi), %r11d
movl 0x3d4(%rsi), %eax
leal 0x2(%rax), %r9d
addq $0xe0, %rdi
movq %rdi, -0x78(%rbp)
movq %rsi, -0x30(%rbp)
movl 0x3f0(%rsi), %r15d
leal 0x8(%r11), %r10d
leal (%rax,%r11,4), %eax
addl $0x5, %eax
movq %rax, -0x58(%rbp)
subl %r15d, %r11d
leal 0x2(%r15), %r12d
shlq $0x3, %r15
addl $0x3, %r11d
shlq $0x2, %r11
shlq $0x3, %r12
shlq $0x4, %r10
leaq 0xd8(%rbx), %rax
movq %rax, -0x70(%rbp)
leaq 0xa8(%rbx), %rax
movq %rax, -0x68(%rbp)
leaq 0x188(%rbx), %rax
movq %rax, -0x60(%rbp)
leaq 0x190(%rbx), %rax
movq %rax, -0x50(%rbp)
leaq 0x1a0(%rbx), %rax
movq %rax, -0x48(%rbp)
leaq 0x198(%rbx), %rax
movq %rax, -0x40(%rbp)
leaq 0x318(%rbx), %rax
movq %rax, -0x38(%rbp)
leaq 0x3c8(%rbx), %r13
xorl %edi, %edi
movq %r14, %rsi
xorl %eax, %eax
pushq $0x0
pushq $0x0
pushq -0x58(%rbp)
pushq %r13
pushq %r10
pushq -0x38(%rbp)
pushq %r11
pushq -0x40(%rbp)
pushq %r15
pushq -0x48(%rbp)
pushq %r9
pushq -0x50(%rbp)
pushq %rcx
pushq -0x60(%rbp)
pushq %r12
pushq -0x68(%rbp)
pushq %r11
pushq -0x70(%rbp)
pushq %r15
pushq -0x78(%rbp)
callq 0xa1768
addq $0xa0, %rsp
movb $0x1, %r15b
testq %rax, %rax
je 0x489ce
addq $0x2, 0xd0(%rbx)
addq $0x2, 0x190(%rbx)
movq -0x30(%rbp), %r13
movl 0x7bc(%r13), %ecx
subl 0xc18(%r13), %ecx
addl $-0xc, %ecx
movl $0x100000, %eax # imm = 0x100000
xorl %edx, %edx
divl %ecx
movl %eax, %r12d
shrl $0x7, %r12d
addl $0x5, %r12d
leaq 0x2c0(%rbx), %rsi
subq $0x8, %rsp
xorl %edi, %edi
movl $0x18, %edx
xorl %ecx, %ecx
movl %r12d, %r8d
movl $0x40, %r9d
pushq %r14
callq 0x96a04
addq $0x10, %rsp
testb %al, %al
je 0x48978
movq %rbx, %rdi
callq 0x489e0
jmp 0x489ce
leal (,%r12,8), %esi
subl %r12d, %esi
movq %rsi, 0x118(%rbx)
xorl %edi, %edi
movq %r14, %rdx
callq 0xa7081
movq %rax, 0x90(%rbx)
testq %rax, %rax
je 0x4896e
movl 0x7c4(%r13), %eax
movq %rax, 0x610(%rbx)
movl 0x418(%r13), %eax
movl %eax, 0x618(%rbx)
addq $0xc, 0xd8(%rbx)
addq $0xc, 0x198(%rbx)
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_ma_init_block_record:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov rbx, rdi
mov rsi, [rdi]
xor r14d, r14d
cmp byte ptr [rsi+7D9h], 0
setnz r14b
shl r14d, 10h
or r14, 10h
lea rdx, [rdi+0C8h]
mov ecx, [rsi+3F4h]
lea r8, [rdi+0D0h]
mov r11d, [rsi+3C8h]
mov eax, [rsi+3D4h]
lea r9d, [rax+2]
add rdi, 0E0h
mov [rbp+var_78], rdi
mov [rbp+var_30], rsi
mov r15d, [rsi+3F0h]
lea r10d, [r11+8]
lea eax, [rax+r11*4]
add eax, 5
mov [rbp+var_58], rax
sub r11d, r15d
lea r12d, [r15+2]
shl r15, 3
add r11d, 3
shl r11, 2
shl r12, 3
shl r10, 4
lea rax, [rbx+0D8h]
mov [rbp+var_70], rax
lea rax, [rbx+0A8h]
mov [rbp+var_68], rax
lea rax, [rbx+188h]
mov [rbp+var_60], rax
lea rax, [rbx+190h]
mov [rbp+var_50], rax
lea rax, [rbx+1A0h]
mov [rbp+var_48], rax
lea rax, [rbx+198h]
mov [rbp+var_40], rax
lea rax, [rbx+318h]
mov [rbp+var_38], rax
lea r13, [rbx+3C8h]
xor edi, edi
mov rsi, r14
xor eax, eax
push 0
push 0
push [rbp+var_58]
push r13
push r10
push [rbp+var_38]
push r11
push [rbp+var_40]
push r15
push [rbp+var_48]
push r9
push [rbp+var_50]
push rcx
push [rbp+var_60]
push r12
push [rbp+var_68]
push r11
push [rbp+var_70]
push r15
push [rbp+var_78]
call my_multi_malloc
add rsp, 0A0h
mov r15b, 1
test rax, rax
jz loc_489CE
add qword ptr [rbx+0D0h], 2
add qword ptr [rbx+190h], 2
mov r13, [rbp+var_30]
mov ecx, [r13+7BCh]
sub ecx, [r13+0C18h]
add ecx, 0FFFFFFF4h
mov eax, offset xmmword_100000
xor edx, edx
div ecx
mov r12d, eax
shr r12d, 7
add r12d, 5
lea rsi, [rbx+2C0h]
sub rsp, 8
xor edi, edi
mov edx, 18h
xor ecx, ecx
mov r8d, r12d
mov r9d, 40h ; '@'
push r14
call init_dynamic_array2
add rsp, 10h
test al, al
jz short loc_48978
loc_4896E:
mov rdi, rbx
call _ma_end_block_record
jmp short loc_489CE
loc_48978:
lea esi, ds:0[r12*8]
sub esi, r12d
mov [rbx+118h], rsi
xor edi, edi
mov rdx, r14
call my_malloc
mov [rbx+90h], rax
test rax, rax
jz short loc_4896E
mov eax, [r13+7C4h]
mov [rbx+610h], rax
mov eax, [r13+418h]
mov [rbx+618h], eax
add qword ptr [rbx+0D8h], 0Ch
add qword ptr [rbx+198h], 0Ch
xor r15d, r15d
loc_489CE:
mov eax, r15d
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long ma_init_block_record(long long a1)
{
long long v1; // r14
int v2; // r11d
int v3; // eax
long long v4; // r15
long long v5; // r10
int v6; // r11d
long long v7; // r12
long long v8; // rax
long long v9; // r15
unsigned int v10; // r12d
long long v11; // rsi
long long v12; // rax
long long v14; // [rsp+28h] [rbp-58h]
_DWORD *v15; // [rsp+50h] [rbp-30h]
v1 = ((unsigned __int8)(*(_BYTE *)(*(_QWORD *)a1 + 2009LL) != 0) << 16) | 0x10LL;
v2 = *(_DWORD *)(*(_QWORD *)a1 + 968LL);
v3 = *(_DWORD *)(*(_QWORD *)a1 + 980LL);
v15 = *(_DWORD **)a1;
v4 = *(unsigned int *)(*(_QWORD *)a1 + 1008LL);
v5 = (unsigned int)(v2 + 8);
v14 = (unsigned int)(v3 + 4 * v2 + 5);
v6 = v2 - v4;
v7 = (unsigned int)(v4 + 2);
v9 = 8 * v4;
v8 = my_multi_malloc(
0,
v1,
(int)a1 + 200,
*(_DWORD *)(*(_QWORD *)a1 + 1012LL),
(int)a1 + 208,
v3 + 2,
a1 + 224,
v9,
a1 + 216,
4LL * (unsigned int)(v6 + 3),
a1 + 168,
8 * v7,
a1 + 392,
*(unsigned int *)(*(_QWORD *)a1 + 1012LL),
a1 + 400,
(unsigned int)(v3 + 2),
a1 + 416,
v9,
a1 + 408,
4LL * (unsigned int)(v6 + 3),
a1 + 792,
16 * v5,
a1 + 968,
v14,
0LL,
0LL);
LOBYTE(v9) = 1;
if ( v8 )
{
*(_QWORD *)(a1 + 208) += 2LL;
*(_QWORD *)(a1 + 400) += 2LL;
v10 = (((unsigned int)&xmmword_100000 / (v15[495] - v15[774] - 12)) >> 7) + 5;
if ( (unsigned __int8)init_dynamic_array2(0, (int)a1 + 704, 24, 0, v10, 64, v1)
|| (v11 = 7 * v10, *(_QWORD *)(a1 + 280) = v11,
v12 = my_malloc(0LL, v11, v1),
(*(_QWORD *)(a1 + 144) = v12) == 0LL) )
{
ma_end_block_record(a1);
}
else
{
*(_QWORD *)(a1 + 1552) = (unsigned int)v15[497];
*(_DWORD *)(a1 + 1560) = v15[262];
*(_QWORD *)(a1 + 216) += 12LL;
*(_QWORD *)(a1 + 408) += 12LL;
LODWORD(v9) = 0;
}
}
return (unsigned int)v9;
}
|
_ma_init_block_record:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV RBX,RDI
MOV RSI,qword ptr [RDI]
XOR R14D,R14D
CMP byte ptr [RSI + 0x7d9],0x0
SETNZ R14B
SHL R14D,0x10
OR R14,0x10
LEA RDX,[RDI + 0xc8]
MOV ECX,dword ptr [RSI + 0x3f4]
LEA R8,[RDI + 0xd0]
MOV R11D,dword ptr [RSI + 0x3c8]
MOV EAX,dword ptr [RSI + 0x3d4]
LEA R9D,[RAX + 0x2]
ADD RDI,0xe0
MOV qword ptr [RBP + -0x78],RDI
MOV qword ptr [RBP + -0x30],RSI
MOV R15D,dword ptr [RSI + 0x3f0]
LEA R10D,[R11 + 0x8]
LEA EAX,[RAX + R11*0x4]
ADD EAX,0x5
MOV qword ptr [RBP + -0x58],RAX
SUB R11D,R15D
LEA R12D,[R15 + 0x2]
SHL R15,0x3
ADD R11D,0x3
SHL R11,0x2
SHL R12,0x3
SHL R10,0x4
LEA RAX,[RBX + 0xd8]
MOV qword ptr [RBP + -0x70],RAX
LEA RAX,[RBX + 0xa8]
MOV qword ptr [RBP + -0x68],RAX
LEA RAX,[RBX + 0x188]
MOV qword ptr [RBP + -0x60],RAX
LEA RAX,[RBX + 0x190]
MOV qword ptr [RBP + -0x50],RAX
LEA RAX,[RBX + 0x1a0]
MOV qword ptr [RBP + -0x48],RAX
LEA RAX,[RBX + 0x198]
MOV qword ptr [RBP + -0x40],RAX
LEA RAX,[RBX + 0x318]
MOV qword ptr [RBP + -0x38],RAX
LEA R13,[RBX + 0x3c8]
XOR EDI,EDI
MOV RSI,R14
XOR EAX,EAX
PUSH 0x0
PUSH 0x0
PUSH qword ptr [RBP + -0x58]
PUSH R13
PUSH R10
PUSH qword ptr [RBP + -0x38]
PUSH R11
PUSH qword ptr [RBP + -0x40]
PUSH R15
PUSH qword ptr [RBP + -0x48]
PUSH R9
PUSH qword ptr [RBP + -0x50]
PUSH RCX
PUSH qword ptr [RBP + -0x60]
PUSH R12
PUSH qword ptr [RBP + -0x68]
PUSH R11
PUSH qword ptr [RBP + -0x70]
PUSH R15
PUSH qword ptr [RBP + -0x78]
CALL 0x001a1768
ADD RSP,0xa0
MOV R15B,0x1
TEST RAX,RAX
JZ 0x001489ce
ADD qword ptr [RBX + 0xd0],0x2
ADD qword ptr [RBX + 0x190],0x2
MOV R13,qword ptr [RBP + -0x30]
MOV ECX,dword ptr [R13 + 0x7bc]
SUB ECX,dword ptr [R13 + 0xc18]
ADD ECX,-0xc
MOV EAX,0x100000
XOR EDX,EDX
DIV ECX
MOV R12D,EAX
SHR R12D,0x7
ADD R12D,0x5
LEA RSI,[RBX + 0x2c0]
SUB RSP,0x8
XOR EDI,EDI
MOV EDX,0x18
XOR ECX,ECX
MOV R8D,R12D
MOV R9D,0x40
PUSH R14
CALL 0x00196a04
ADD RSP,0x10
TEST AL,AL
JZ 0x00148978
LAB_0014896e:
MOV RDI,RBX
CALL 0x001489e0
JMP 0x001489ce
LAB_00148978:
LEA ESI,[R12*0x8]
SUB ESI,R12D
MOV qword ptr [RBX + 0x118],RSI
XOR EDI,EDI
MOV RDX,R14
CALL 0x001a7081
MOV qword ptr [RBX + 0x90],RAX
TEST RAX,RAX
JZ 0x0014896e
MOV EAX,dword ptr [R13 + 0x7c4]
MOV qword ptr [RBX + 0x610],RAX
MOV EAX,dword ptr [R13 + 0x418]
MOV dword ptr [RBX + 0x618],EAX
ADD qword ptr [RBX + 0xd8],0xc
ADD qword ptr [RBX + 0x198],0xc
XOR R15D,R15D
LAB_001489ce:
MOV EAX,R15D
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
ulong _ma_init_block_record(long *param_1)
{
int iVar1;
uint uVar2;
long lVar3;
char cVar4;
ulong uVar5;
long lVar6;
int iVar7;
ulong uVar8;
long lVar9;
ulong uVar10;
lVar3 = *param_1;
uVar8 = (ulong)(*(char *)(lVar3 + 0x7d9) != '\0') << 0x10 | 0x10;
iVar1 = *(int *)(lVar3 + 0x3c8);
iVar7 = *(int *)(lVar3 + 0x3d4) + 2;
uVar2 = *(uint *)(lVar3 + 0x3f0);
lVar9 = (ulong)uVar2 << 3;
lVar6 = (ulong)((iVar1 - uVar2) + 3) << 2;
lVar6 = my_multi_malloc(0,uVar8,param_1 + 0x19,*(int4 *)(lVar3 + 0x3f4),param_1 + 0x1a,iVar7
,param_1 + 0x1c,lVar9,param_1 + 0x1b,lVar6,param_1 + 0x15,
(ulong)(uVar2 + 2) << 3,param_1 + 0x31,*(int4 *)(lVar3 + 0x3f4),
param_1 + 0x32,iVar7,param_1 + 0x34,lVar9,param_1 + 0x33,lVar6,
param_1 + 99,(ulong)(iVar1 + 8) << 4,param_1 + 0x79,
*(int *)(lVar3 + 0x3d4) + iVar1 * 4 + 5,0,0);
uVar10 = CONCAT71((int7)((ulong)lVar9 >> 8),1);
if (lVar6 != 0) {
param_1[0x1a] = param_1[0x1a] + 2;
param_1[0x32] = param_1[0x32] + 2;
iVar7 = (int)(0x100000 / (ulong)((*(int *)(lVar3 + 0x7bc) - *(int *)(lVar3 + 0xc18)) - 0xc) >> 7
) + 5;
cVar4 = init_dynamic_array2(0,param_1 + 0x58,0x18,0,iVar7,0x40,uVar8);
if (cVar4 == '\0') {
uVar5 = (ulong)(uint)(iVar7 * 7);
param_1[0x23] = uVar5;
lVar6 = my_malloc(0,uVar5,uVar8);
param_1[0x12] = lVar6;
if (lVar6 != 0) {
param_1[0xc2] = (ulong)*(uint *)(lVar3 + 0x7c4);
*(int4 *)(param_1 + 0xc3) = *(int4 *)(lVar3 + 0x418);
param_1[0x1b] = param_1[0x1b] + 0xc;
param_1[0x33] = param_1[0x33] + 0xc;
uVar10 = 0;
goto LAB_001489ce;
}
}
_ma_end_block_record(param_1);
}
LAB_001489ce:
return uVar10 & 0xffffffff;
}
|
|
56,905
|
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");
}
|
O3
|
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 0x63fc3(%rip), %rsi # 0xf1e89
leaq 0x63fbd(%rip), %rdx # 0xf1e8a
movq %rsp, %rdi
callq 0x22b0c
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
movq %r14, %rsi
movl $0x1, %ecx
callq 0x86b4e
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
movq -0x8(%rax), %rbx
cmpq %rax, %rdi
je 0x8df09
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1ba20
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x8df24
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1ba20
xorps %xmm0, %xmm0
testq %rbx, %rbx
je 0x8dfde
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
movq %rsp, %rdi
leaq 0x10(%rsp), %rax
movq %rax, (%rdi)
leaq 0x6871f(%rip), %rsi # 0xf666f
leaq 0x68719(%rip), %rdx # 0xf6670
callq 0x22b0c
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
movq %r14, %rsi
movl $0x1, %ecx
callq 0x86b4e
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rbx
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x8df92
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1ba20
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x8dfad
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1ba20
testq %rbx, %rbx
je 0x8dfe8
movq %r12, %r13
movq (%r14), %r12
movq 0x8(%r14), %r15
testq %r15, %r15
je 0x8e13c
movq 0x9ffb4(%rip), %rax # 0x12df80
cmpb $0x0, (%rax)
je 0x8e137
incl 0x8(%r15)
jmp 0x8e13c
movups %xmm0, (%r12)
jmp 0x8e25a
movq %r12, 0x60(%rsp)
leaq 0x68(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x40(%rsp), %rax
movq %rax, 0x8(%rdi)
callq 0x91208
leaq 0x64379(%rip), %r12 # 0xf2383
movq %rsp, %r13
leaq 0x20(%rsp), %rbp
leaq 0x68(%rsp), %rbx
movq 0x20(%r14), %rax
cmpq 0x18(%r14), %rax
je 0x8e26c
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %r13, %rdi
leaq 0x6434a(%rip), %rsi # 0xf2382
movq %r12, %rdx
callq 0x22b0c
movq %rbp, %rdi
movq %r14, %rsi
movq %r13, %rdx
movl $0x1, %ecx
callq 0x86b4e
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %r15
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x8e074
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1ba20
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x8e08f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1ba20
testq %r15, %r15
je 0x8e0a1
movq %rbx, %rdi
callq 0x91208
jmp 0x8e017
movq %rsp, %rdi
leaq 0x10(%rsp), %rax
movq %rax, (%rdi)
leaq 0x685bc(%rip), %rsi # 0xf666f
leaq 0x685b6(%rip), %rdx # 0xf6670
callq 0x22b0c
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
movq %r14, %rsi
movl $0x1, %ecx
callq 0x86b4e
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rbx
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x8e0f5
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1ba20
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x8e110
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1ba20
testq %rbx, %rbx
je 0x8e29e
movq (%r14), %r12
movq 0x8(%r14), %r15
testq %r15, %r15
je 0x8e197
movq 0x9fe54(%rip), %rax # 0x12df80
cmpb $0x0, (%rax)
je 0x8e192
incl 0x8(%r15)
jmp 0x8e197
lock
incl 0x8(%r15)
movq 0x20(%r14), %rbx
subq 0x10(%r14), %rbx
movl $0x48, %edi
callq 0x1b9f0
leaq 0x9e4a3(%rip), %rdx # 0x12c5f8
addq $0x10, %rdx
movq %rax, %rcx
addq $0x10, %rcx
leaq 0x9e241(%rip), %rsi # 0x12c3a8
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 0x8e1ed
jmp 0x8e204
lock
incl 0x8(%r15)
movq 0x20(%r14), %rbx
subq 0x10(%r14), %rbx
movl $0x48, %edi
callq 0x1b9f0
leaq 0x9e448(%rip), %rdx # 0x12c5f8
addq $0x10, %rdx
movq %rax, %rcx
addq $0x10, %rcx
leaq 0x9e1e6(%rip), %rsi # 0x12c3a8
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 0x8e204
movq 0x9fd8c(%rip), %rdx # 0x12df80
cmpb $0x0, (%rdx)
je 0x8e1ff
incl 0x8(%r15)
jmp 0x8e204
lock
incl 0x8(%r15)
leaq 0x9e43d(%rip), %rdx # 0x12c648
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 0x8e250
movq %r15, %rdi
callq 0x70324
leaq 0x40(%rsp), %rdi
callq 0x91440
movq %r12, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x1b4f0
movq %rax, %r14
leaq 0x64236(%rip), %rsi # 0xf24b6
movq %rax, %rdi
callq 0x1b380
movq 0x9fd59(%rip), %rsi # 0x12dfe8
movq 0x9fcc2(%rip), %rdx # 0x12df58
movq %r14, %rdi
callq 0x1c150
movl $0x10, %edi
callq 0x1b4f0
movq %rax, %r14
leaq 0x641d6(%rip), %rsi # 0xf2488
movq %rax, %rdi
callq 0x1b380
jmp 0x8e288
jmp 0x8e2ff
jmp 0x8e2c4
jmp 0x8e325
jmp 0x8e310
movq %rax, %rbx
testq %r15, %r15
je 0x8e313
movq %r15, %rdi
callq 0x70324
jmp 0x8e313
jmp 0x8e325
jmp 0x8e310
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x8e31d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1ba20
jmp 0x8e31d
movq %rax, %rbx
jmp 0x8e31d
movq %rax, %rbx
movq %r14, %rdi
callq 0x1b770
jmp 0x8e313
jmp 0x8e310
jmp 0x8e310
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x91440
movq %rbx, %rdi
callq 0x1c1e0
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x8e313
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1ba20
jmp 0x8e313
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_F1E89; "{"
lea rdx, asc_F1E89+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_8DF09
mov rsi, [rsp+0A8h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8DF09:
mov rdi, [rsp+0A8h+var_A8]; void *
lea rax, [rsp+0A8h+var_98]
cmp rdi, rax
jz short loc_8DF24
mov rsi, [rsp+0A8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8DF24:
xorps xmm0, xmm0
test rbx, rbx
jz loc_8DFDE
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_8DF92
mov rsi, [rsp+0A8h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8DF92:
mov rdi, [rsp+0A8h+var_A8]; void *
lea rax, [rsp+0A8h+var_98]
cmp rdi, rax
jz short loc_8DFAD
mov rsi, [rsp+0A8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8DFAD:
test rbx, rbx
jz short loc_8DFE8
mov r13, r12
mov r12, [r14]
mov r15, [r14+8]
test r15, r15
jz loc_8E13C
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz loc_8E137
inc dword ptr [r15+8]
jmp loc_8E13C
loc_8DFDE:
movups xmmword ptr [r12], xmm0
jmp loc_8E25A
loc_8DFE8:
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_F2382+1; ""
mov r13, rsp
lea rbp, [rsp+0A8h+var_88]
lea rbx, [rsp+0A8h+var_40]
loc_8E017:
mov rax, [r14+20h]
cmp rax, [r14+18h]
jz loc_8E26C
lea rax, [rsp+0A8h+var_98]
mov [rsp+0A8h+var_A8], rax
mov rdi, r13
lea rsi, asc_F2382; ","
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_8E074
mov rsi, [rsp+0A8h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8E074:
mov rdi, [rsp+0A8h+var_A8]; void *
lea rax, [rsp+0A8h+var_98]
cmp rdi, rax
jz short loc_8E08F
mov rsi, [rsp+0A8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8E08F:
test r15, r15
jz short loc_8E0A1
mov rdi, rbx
call _ZZN5minja6Parser15parseDictionaryEvENKUlvE_clEv; minja::Parser::parseDictionary(void)::{lambda(void)#1}::operator()(void)
jmp loc_8E017
loc_8E0A1:
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_8E0F5
mov rsi, [rsp+0A8h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8E0F5:
mov rdi, [rsp+0A8h+var_A8]; void *
lea rax, [rsp+0A8h+var_98]
cmp rdi, rax
jz short loc_8E110
mov rsi, [rsp+0A8h+var_98]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_8E110:
test rbx, rbx
jz loc_8E29E
mov r12, [r14]
mov r15, [r14+8]
test r15, r15
jz short loc_8E197
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_8E192
inc dword ptr [r15+8]
jmp short loc_8E197
loc_8E137:
lock inc dword ptr [r15+8]
loc_8E13C:
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_8E1ED
jmp short loc_8E204
loc_8E192:
lock inc dword ptr [r15+8]
loc_8E197:
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_8E204
loc_8E1ED:
mov rdx, cs:__libc_single_threaded_ptr
cmp byte ptr [rdx], 0
jz short loc_8E1FF
inc dword ptr [r15+8]
jmp short loc_8E204
loc_8E1FF:
lock inc dword ptr [r15+8]
loc_8E204:
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_8E250
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_8E250:
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_8E25A:
mov rax, r12
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_8E26C:
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_8E288:
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
loc_8E29E:
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_8E288
jmp short loc_8E2FF
jmp short loc_8E2C4
jmp short loc_8E325
jmp short loc_8E310
loc_8E2C4:
mov rbx, rax
test r15, r15
jz short loc_8E313
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_8E313
jmp short loc_8E325
jmp short loc_8E310
mov rbx, rax
mov rdi, [rsp+0]; void *
lea rax, [rsp+arg_8]
cmp rdi, rax
jz short loc_8E31D
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_8E31D
mov rbx, rax
jmp short loc_8E31D
loc_8E2FF:
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_8E313
jmp short loc_8E310
jmp short $+2
loc_8E310:
mov rbx, rax
loc_8E313:
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_8E31D:
mov rdi, rbx
call __Unwind_Resume
loc_8E325:
mov rbx, rax
mov rdi, [rsp+0]; void *
lea rax, [rsp+arg_8]
cmp rdi, rax
jz short loc_8E313
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_8E313
|
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*>((long long)v15, "{", (long long)"");
minja::Parser::consumeToken(&v17, (long long)a2, (_BYTE **)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*>((long long)v15, "}", (long long)"");
minja::Parser::consumeToken(&v17, (long long)a2, (_BYTE **)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*>((long long)v15, ",", (long long)"");
minja::Parser::consumeToken(&v17, (long long)a2, (_BYTE **)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*>((long long)v15, "}", (long long)"");
minja::Parser::consumeToken(&v17, (long long)a2, (_BYTE **)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_0018debf:
LEA RSI,[0x1f1e89]
LEA RDX,[0x1f1e8a]
MOV RDI,RSP
CALL 0x00122b0c
LAB_0018ded5:
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
MOV RSI,R14
MOV ECX,0x1
CALL 0x00186b4e
LEA RAX,[RSP + 0x30]
MOV RDI,qword ptr [RAX + -0x10]
MOV RBX,qword ptr [RAX + -0x8]
CMP RDI,RAX
JZ 0x0018df09
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x0011ba20
LAB_0018df09:
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x0018df24
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0011ba20
LAB_0018df24:
XORPS XMM0,XMM0
TEST RBX,RBX
JZ 0x0018dfde
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_0018df49:
LEA RSI,[0x1f666f]
LEA RDX,[0x1f6670]
CALL 0x00122b0c
LAB_0018df5c:
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
MOV RSI,R14
MOV ECX,0x1
CALL 0x00186b4e
MOV RDI,qword ptr [RSP + 0x20]
MOV RBX,qword ptr [RSP + 0x28]
LEA RAX,[RSP + 0x30]
CMP RDI,RAX
JZ 0x0018df92
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x0011ba20
LAB_0018df92:
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x0018dfad
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0011ba20
LAB_0018dfad:
TEST RBX,RBX
JZ 0x0018dfe8
MOV R13,R12
MOV R12,qword ptr [R14]
MOV R15,qword ptr [R14 + 0x8]
TEST R15,R15
JZ 0x0018e13c
MOV RAX,qword ptr [0x0022df80]
CMP byte ptr [RAX],0x0
JZ 0x0018e137
INC dword ptr [R15 + 0x8]
JMP 0x0018e13c
LAB_0018dfde:
MOVUPS xmmword ptr [R12],XMM0
JMP 0x0018e25a
LAB_0018dfe8:
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_0018dffe:
CALL 0x00191208
LEA R12,[0x1f2383]
MOV R13,RSP
LEA RBP,[RSP + 0x20]
LEA RBX,[RSP + 0x68]
LAB_0018e017:
MOV RAX,qword ptr [R14 + 0x20]
CMP RAX,qword ptr [R14 + 0x18]
JZ 0x0018e26c
LEA RAX,[RSP + 0x10]
MOV qword ptr [RSP],RAX
LAB_0018e02e:
MOV RDI,R13
LEA RSI,[0x1f2382]
MOV RDX,R12
CALL 0x00122b0c
LAB_0018e040:
MOV RDI,RBP
MOV RSI,R14
MOV RDX,R13
MOV ECX,0x1
CALL 0x00186b4e
MOV RDI,qword ptr [RSP + 0x20]
MOV R15,qword ptr [RSP + 0x28]
LEA RAX,[RSP + 0x30]
CMP RDI,RAX
JZ 0x0018e074
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x0011ba20
LAB_0018e074:
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x0018e08f
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0011ba20
LAB_0018e08f:
TEST R15,R15
JZ 0x0018e0a1
LAB_0018e094:
MOV RDI,RBX
CALL 0x00191208
JMP 0x0018e017
LAB_0018e0a1:
MOV RDI,RSP
LEA RAX,[RSP + 0x10]
MOV qword ptr [RDI],RAX
LAB_0018e0ac:
LEA RSI,[0x1f666f]
LEA RDX,[0x1f6670]
CALL 0x00122b0c
LAB_0018e0bf:
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
MOV RSI,R14
MOV ECX,0x1
CALL 0x00186b4e
MOV RDI,qword ptr [RSP + 0x20]
MOV RBX,qword ptr [RSP + 0x28]
LEA RAX,[RSP + 0x30]
CMP RDI,RAX
JZ 0x0018e0f5
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x0011ba20
LAB_0018e0f5:
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x0018e110
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0011ba20
LAB_0018e110:
TEST RBX,RBX
JZ 0x0018e29e
MOV R12,qword ptr [R14]
MOV R15,qword ptr [R14 + 0x8]
TEST R15,R15
JZ 0x0018e197
MOV RAX,qword ptr [0x0022df80]
CMP byte ptr [RAX],0x0
JZ 0x0018e192
INC dword ptr [R15 + 0x8]
JMP 0x0018e197
LAB_0018e137:
INC.LOCK dword ptr [R15 + 0x8]
LAB_0018e13c:
MOV RBX,qword ptr [R14 + 0x20]
SUB RBX,qword ptr [R14 + 0x10]
LAB_0018e144:
MOV EDI,0x48
CALL 0x0011b9f0
LEA RDX,[0x22c5f8]
ADD RDX,0x10
MOV RCX,RAX
ADD RCX,0x10
LEA RSI,[0x22c3a8]
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 0x0018e1ed
JMP 0x0018e204
LAB_0018e192:
INC.LOCK dword ptr [R15 + 0x8]
LAB_0018e197:
MOV RBX,qword ptr [R14 + 0x20]
SUB RBX,qword ptr [R14 + 0x10]
LAB_0018e19f:
MOV EDI,0x48
CALL 0x0011b9f0
LAB_0018e1a9:
LEA RDX,[0x22c5f8]
ADD RDX,0x10
MOV RCX,RAX
ADD RCX,0x10
LEA RSI,[0x22c3a8]
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 0x0018e204
LAB_0018e1ed:
MOV RDX,qword ptr [0x0022df80]
CMP byte ptr [RDX],0x0
JZ 0x0018e1ff
INC dword ptr [R15 + 0x8]
JMP 0x0018e204
LAB_0018e1ff:
INC.LOCK dword ptr [R15 + 0x8]
LAB_0018e204:
LEA RDX,[0x22c648]
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 0x0018e250
MOV RDI,R15
CALL 0x00170324
LAB_0018e250:
LEA RDI,[RSP + 0x40]
CALL 0x00191440
LAB_0018e25a:
MOV RAX,R12
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0018e26c:
MOV EDI,0x10
CALL 0x0011b4f0
MOV R14,RAX
LAB_0018e279:
LEA RSI,[0x1f24b6]
MOV RDI,RAX
CALL 0x0011b380
LAB_0018e288:
MOV RSI,qword ptr [0x0022dfe8]
MOV RDX,qword ptr [0x0022df58]
MOV RDI,R14
CALL 0x0011c150
LAB_0018e29e:
MOV EDI,0x10
CALL 0x0011b4f0
MOV R14,RAX
LAB_0018e2ab:
LEA RSI,[0x1f2488]
MOV RDI,RAX
CALL 0x0011b380
LAB_0018e2ba:
JMP 0x0018e288
|
/* 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 0018debf to 0018ded4 has its CatchHandler @ 0018e2fa */
std::__cxx11::string::_M_construct<char_const*>(local_a8,&DAT_001f1e89,&DAT_001f1e8a);
/* try { // try from 0018ded5 to 0018dee9 has its CatchHandler @ 0018e2da */
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 0018df49 to 0018df5b has its CatchHandler @ 0018e2d8 */
std::__cxx11::string::_M_construct<char_const*>(local_a8,&DAT_001f666f,&DAT_001f6670);
/* try { // try from 0018df5c to 0018df70 has its CatchHandler @ 0018e2d6 */
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 0018dffe to 0018e002 has its CatchHandler @ 0018e30c */
parseDictionary()::{lambda()#1}::operator()(local_40);
do {
if (in_RSI[4] == in_RSI[3]) {
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0018e279 to 0018e287 has its CatchHandler @ 0018e2ff */
std::runtime_error::runtime_error(this,"Expected closing brace");
LAB_0018e288:
/* try { // try from 0018e288 to 0018e29d has its CatchHandler @ 0018e30c */
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_0022dfe8,PTR__runtime_error_0022df58);
}
local_a8[0] = local_98;
/* try { // try from 0018e02e to 0018e03f has its CatchHandler @ 0018e310 */
std::__cxx11::string::_M_construct<char_const*>(local_a8,&DAT_001f2382,&DAT_001f2383);
/* try { // try from 0018e040 to 0018e052 has its CatchHandler @ 0018e325 */
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 0018e0ac to 0018e0be has its CatchHandler @ 0018e2c2 */
std::__cxx11::string::_M_construct<char_const*>(local_a8,&DAT_001f666f,&DAT_001f6670);
/* try { // try from 0018e0bf to 0018e0d3 has its CatchHandler @ 0018e2c0 */
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 0018e2ab to 0018e2b9 has its CatchHandler @ 0018e2bc */
std::runtime_error::runtime_error(this,"Expected comma or closing brace in dictionary");
goto LAB_0018e288;
}
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_0022df80 == '\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 0018e19f to 0018e1a8 has its CatchHandler @ 0018e2be */
puVar2 = (int8 *)operator_new(0x48);
puVar3 = puVar2 + 2;
puVar2[1] = 0x100000001;
*puVar2 = &PTR___Sp_counted_ptr_inplace_0022c608;
puVar2[2] = &PTR___cxa_pure_virtual_0022c3b8;
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_0018e204;
goto LAB_0018e1ed;
}
/* try { // try from 0018e094 to 0018e09b has its CatchHandler @ 0018e30e */
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_0022df80 == '\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 0018e144 to 0018e14d has its CatchHandler @ 0018e2c4 */
puVar2 = (int8 *)operator_new(0x48);
puVar3 = puVar2 + 2;
puVar2[1] = 0x100000001;
*puVar2 = &PTR___Sp_counted_ptr_inplace_0022c608;
puVar2[2] = &PTR___cxa_pure_virtual_0022c3b8;
puVar2[3] = uVar1;
puVar2[4] = this_00;
if (this_00 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
LAB_0018e1ed:
if (*PTR___libc_single_threaded_0022df80 == '\0') {
LOCK();
*(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1;
UNLOCK();
}
else {
*(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1;
}
}
LAB_0018e204:
puVar2[5] = lVar4;
puVar2[2] = &PTR_do_evaluate_0022c658;
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;
}
|
|
56,906
|
my_wc_mb_sjis
|
eloqsql/strings/ctype-sjis.c
|
static int
my_wc_mb_sjis(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *s, uchar *e)
{
int code;
if ((int) wc < 0x80) /* ASCII: [U+0000..U+007F] -> [00-7F] */
{
/*
This branch is for performance purposes on ASCII range,
to avoid using unicode_to_cp932[]: about 10% improvement.
*/
if (wc == 0x5c)
{
/*
Special case when converting from Unicode to SJIS:
U+005C -> [81][5F] FULL WIDTH REVERSE SOLIDUS
*/
code= MB2(0x815F);
goto mb;
}
if (s >= e)
return MY_CS_TOOSMALL;
s[0]= (uchar) wc; /* ASCII */
return 1;
}
if (wc > 0xFFFF ||
!(code= unicode_to_sjis[wc])) /* Bad Unicode code point */
return MY_CS_ILUNI;
if (code <= 0xFF)
{
/* JIS-X-0201 HALF WIDTH KATAKANA [U+FF61..U+FF9F] -> [A1..DF] */
if (s >= e)
return MY_CS_TOOSMALL;
s[0]= code;
return 1;
}
mb:
if (s + 2 > e)
return MY_CS_TOOSMALL2;
MY_PUT_MB2(s, code); /* JIS-X-0208 */
return 2;
}
|
O3
|
c
|
my_wc_mb_sjis:
pushq %rbp
movq %rsp, %rbp
cmpl $0x7f, %esi
jg 0x3d852
movl $0x815f, %edi # imm = 0x815F
cmpq $0x5c, %rsi
je 0x3d888
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0x3d8a2
movb %sil, (%rdx)
jmp 0x3d881
xorl %eax, %eax
cmpq $0xffff, %rsi # imm = 0xFFFF
ja 0x3d8a2
leaq 0x189cac(%rip), %rdi # 0x1c7510
movzwl (%rdi,%rsi,2), %edi
testl %edi, %edi
je 0x3d8a2
cmpl $0xff, %edi
ja 0x3d888
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0x3d8a2
movb %dil, (%rdx)
movl $0x1, %eax
jmp 0x3d8a2
leaq 0x2(%rdx), %rsi
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rcx, %rsi
ja 0x3d8a2
rolw $0x8, %di
movw %di, (%rdx)
movl $0x2, %eax
popq %rbp
retq
|
my_wc_mb_sjis:
push rbp
mov rbp, rsp
cmp esi, 7Fh
jg short loc_3D852
mov edi, 815Fh
cmp rsi, 5Ch ; '\'
jz short loc_3D888
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb short loc_3D8A2
mov [rdx], sil
jmp short loc_3D881
loc_3D852:
xor eax, eax
cmp rsi, 0FFFFh
ja short loc_3D8A2
lea rdi, unicode_to_sjis
movzx edi, word ptr [rdi+rsi*2]
test edi, edi
jz short loc_3D8A2
cmp edi, 0FFh
ja short loc_3D888
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb short loc_3D8A2
mov [rdx], dil
loc_3D881:
mov eax, 1
jmp short loc_3D8A2
loc_3D888:
lea rsi, [rdx+2]
mov eax, 0FFFFFF9Ah
cmp rsi, rcx
ja short loc_3D8A2
rol di, 8
mov [rdx], di
mov eax, 2
loc_3D8A2:
pop rbp
retn
|
long long my_wc_mb_sjis(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4)
{
unsigned int v4; // edi
long long result; // rax
if ( (int)a2 <= 127 )
{
LOWORD(v4) = -32417;
if ( a2 != 92 )
{
result = 4294967195LL;
if ( (unsigned long long)a3 >= a4 )
return result;
*a3 = a2;
return 1LL;
}
LABEL_11:
result = 4294967194LL;
if ( (unsigned long long)(a3 + 2) <= a4 )
{
*(_WORD *)a3 = __ROL2__(v4, 8);
return 2LL;
}
return result;
}
result = 0LL;
if ( a2 <= 0xFFFF )
{
v4 = unicode_to_sjis[a2];
if ( unicode_to_sjis[a2] )
{
if ( v4 <= 0xFF )
{
result = 4294967195LL;
if ( (unsigned long long)a3 >= a4 )
return result;
*a3 = v4;
return 1LL;
}
goto LABEL_11;
}
}
return result;
}
|
my_wc_mb_sjis:
PUSH RBP
MOV RBP,RSP
CMP ESI,0x7f
JG 0x0013d852
MOV EDI,0x815f
CMP RSI,0x5c
JZ 0x0013d888
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x0013d8a2
MOV byte ptr [RDX],SIL
JMP 0x0013d881
LAB_0013d852:
XOR EAX,EAX
CMP RSI,0xffff
JA 0x0013d8a2
LEA RDI,[0x2c7510]
MOVZX EDI,word ptr [RDI + RSI*0x2]
TEST EDI,EDI
JZ 0x0013d8a2
CMP EDI,0xff
JA 0x0013d888
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x0013d8a2
MOV byte ptr [RDX],DIL
LAB_0013d881:
MOV EAX,0x1
JMP 0x0013d8a2
LAB_0013d888:
LEA RSI,[RDX + 0x2]
MOV EAX,0xffffff9a
CMP RSI,RCX
JA 0x0013d8a2
ROL DI,0x8
MOV word ptr [RDX],DI
MOV EAX,0x2
LAB_0013d8a2:
POP RBP
RET
|
int8 my_wc_mb_sjis(int8 param_1,ulong param_2,ushort *param_3,ushort *param_4)
{
ushort uVar1;
if ((int)param_2 < 0x80) {
uVar1 = 0x815f;
if (param_2 == 0x5c) {
LAB_0013d888:
if (param_4 < param_3 + 1) {
return 0xffffff9a;
}
*param_3 = uVar1 << 8 | uVar1 >> 8;
return 2;
}
if (param_4 <= param_3) {
return 0xffffff9b;
}
*(char *)param_3 = (char)param_2;
}
else {
if (0xffff < param_2) {
return 0;
}
uVar1 = *(ushort *)(unicode_to_sjis + param_2 * 2);
if (uVar1 == 0) {
return 0;
}
if (0xff < uVar1) goto LAB_0013d888;
if (param_4 <= param_3) {
return 0xffffff9b;
}
*(char *)param_3 = (char)uVar1;
}
return 1;
}
|
|
56,907
|
translog_buffer_destroy
|
eloqsql/storage/maria/ma_loghandler.c
|
static void translog_buffer_destroy(struct st_translog_buffer *buffer)
{
DBUG_ENTER("translog_buffer_destroy");
DBUG_PRINT("enter",
("Buffer #%u: %p file: %d offset: " LSN_FMT " size: %lu",
(uint) buffer->buffer_no, buffer,
(buffer->file ? buffer->file->handler.file : -1),
LSN_IN_PARTS(buffer->offset),
(ulong) buffer->size));
if (buffer->file != NULL)
{
/*
We ignore errors here, because we can't do something about it
(it is shutting down)
We also have to take the locks even if there can't be any other
threads running, because translog_buffer_flush()
requires that we have the buffer locked.
*/
translog_buffer_lock(buffer);
translog_buffer_flush(buffer);
translog_buffer_unlock(buffer);
}
DBUG_PRINT("info", ("Destroy mutex: %p", &buffer->mutex));
mysql_mutex_destroy(&buffer->mutex);
mysql_cond_destroy(&buffer->waiting_filling_buffer);
DBUG_VOID_RETURN;
}
|
O0
|
c
|
translog_buffer_destroy:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
jmp 0x31bde
movq -0x8(%rbp), %rax
cmpq $0x0, 0x100038(%rax)
je 0x31c07
movq -0x8(%rbp), %rdi
callq 0x2dfb0
movq -0x8(%rbp), %rdi
callq 0x341e0
movq -0x8(%rbp), %rdi
callq 0x2dff0
jmp 0x31c09
jmp 0x31c0b
movq -0x8(%rbp), %rdi
addq $0x100090, %rdi # imm = 0x100090
callq 0x31d00
movq -0x8(%rbp), %rdi
addq $0x100040, %rdi # imm = 0x100040
callq 0x31d50
jmp 0x31c2d
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
translog_buffer_destroy:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
jmp short $+2
loc_31BDE:
mov rax, [rbp+var_8]
cmp qword ptr [rax+100038h], 0
jz short loc_31C07
mov rdi, [rbp+var_8]
call translog_buffer_lock
mov rdi, [rbp+var_8]
call translog_buffer_flush
mov rdi, [rbp+var_8]
call translog_buffer_unlock
loc_31C07:
jmp short $+2
loc_31C09:
jmp short $+2
loc_31C0B:
mov rdi, [rbp+var_8]
add rdi, 100090h
call inline_mysql_mutex_destroy
mov rdi, [rbp+var_8]
add rdi, 100040h
call inline_mysql_cond_destroy
jmp short $+2
loc_31C2D:
add rsp, 10h
pop rbp
retn
|
long long translog_buffer_destroy(long long a1)
{
if ( *(_QWORD *)(a1 + 1048632) )
{
translog_buffer_lock(a1);
translog_buffer_flush(a1);
translog_buffer_unlock(a1);
}
inline_mysql_mutex_destroy(a1 + 1048720);
return inline_mysql_cond_destroy(a1 + 1048640);
}
|
translog_buffer_destroy:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
JMP 0x00131bde
LAB_00131bde:
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x100038],0x0
JZ 0x00131c07
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0012dfb0
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001341e0
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0012dff0
LAB_00131c07:
JMP 0x00131c09
LAB_00131c09:
JMP 0x00131c0b
LAB_00131c0b:
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x100090
CALL 0x00131d00
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x100040
CALL 0x00131d50
JMP 0x00131c2d
LAB_00131c2d:
ADD RSP,0x10
POP RBP
RET
|
void translog_buffer_destroy(long param_1)
{
if (*(long *)(Elf64_Ehdr_00100000.e_ident_pad + param_1 + 0x2f) != 0) {
translog_buffer_lock(param_1);
translog_buffer_flush(param_1);
translog_buffer_unlock(param_1);
}
inline_mysql_mutex_destroy(param_1 + 0x100090);
inline_mysql_cond_destroy((long)&Elf64_Phdr_ARRAY_00100040[0].p_type + param_1);
return;
}
|
|
56,908
|
my_strntoull_8bit
|
eloqsql/strings/ctype-simple.c
|
ulonglong my_strntoull_8bit(CHARSET_INFO *cs,
const char *nptr, size_t l, int base,
char **endptr, int *err)
{
int negative;
register ulonglong cutoff;
register uint cutlim;
register ulonglong i;
register const char *s, *e;
const char *save;
int overflow;
*err= 0; /* Initialize error indicator */
s = nptr;
e = nptr+l;
for(; s<e && my_isspace(cs,*s); s++);
if (s == e)
{
goto noconv;
}
if (*s == '-')
{
negative = 1;
++s;
}
else if (*s == '+')
{
negative = 0;
++s;
}
else
negative = 0;
save = s;
cutoff = (~(ulonglong) 0) / (unsigned long int) base;
cutlim = (uint) ((~(ulonglong) 0) % (unsigned long int) base);
overflow = 0;
i = 0;
for ( ; s != e; s++)
{
register uchar c= *s;
if (c>='0' && c<='9')
c -= '0';
else if (c>='A' && c<='Z')
c = c - 'A' + 10;
else if (c>='a' && c<='z')
c = c - 'a' + 10;
else
break;
if (c >= base)
break;
if (i > cutoff || (i == cutoff && c > cutlim))
overflow = 1;
else
{
i *= (ulonglong) base;
i += c;
}
}
if (s == save)
goto noconv;
if (endptr != NULL)
*endptr = (char *) s;
if (overflow)
{
err[0]= ERANGE;
return (~(ulonglong) 0);
}
return (negative ? -((longlong) i) : (longlong) i);
noconv:
err[0]= EDOM;
if (endptr != NULL)
*endptr = (char *) nptr;
return 0L;
}
|
O3
|
c
|
my_strntoull_8bit:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl $0x0, (%r9)
leaq (%rsi,%rdx), %r11
movq %rsi, %r10
testq %rdx, %rdx
jle 0x70969
movq 0x40(%rdi), %rax
movq %rsi, %r10
movzbl (%r10), %edx
testb $0x8, 0x1(%rax,%rdx)
je 0x70969
incq %r10
cmpq %r11, %r10
jb 0x70956
cmpq %r11, %r10
je 0x70a51
movb (%r10), %dil
leal -0x2b(%rdi), %eax
andb $-0x3, %al
cmpb $0x1, %al
adcq $0x0, %r10
movslq %ecx, %rbx
movq $-0x1, %rax
xorl %edx, %edx
movq %rbx, -0x38(%rbp)
divq %rbx
xorl %r12d, %r12d
cmpq %r11, %r10
je 0x70a2e
movq %rdi, -0x30(%rbp)
movq %r10, %r14
xorl %r15d, %r15d
movq %r15, %rdi
movl %r12d, %r13d
movb (%r14), %r12b
leal -0x30(%r12), %ebx
cmpb $0xa, %bl
jb 0x709dd
leal -0x41(%r12), %ebx
cmpb $0x19, %bl
ja 0x709cc
addb $-0x37, %r12b
jmp 0x709da
leal -0x61(%r12), %ebx
cmpb $0x19, %bl
ja 0x70a1c
addb $-0x57, %r12b
movl %r12d, %ebx
movzbl %bl, %ebx
cmpl %ecx, %ebx
jge 0x70a1c
movl $0x1, %r12d
cmpq %rax, %rdi
jbe 0x709f4
movq %rdi, %r15
jmp 0x70a0b
jne 0x709fd
movq %rax, %r15
cmpl %edx, %ebx
ja 0x70a0b
imulq -0x38(%rbp), %rdi
movl %ebx, %r15d
addq %rdi, %r15
movl %r13d, %r12d
incq %r14
cmpq %r11, %r14
jne 0x709a9
movq %r15, %rdi
movq %r11, %r14
movl %r12d, %r13d
testl %r13d, %r13d
sete %al
movq %rdi, %r12
movq %r14, %r11
movq -0x30(%rbp), %rdi
jmp 0x70a30
movb $0x1, %al
cmpq %r10, %r11
je 0x70a51
testq %r8, %r8
je 0x70a3d
movq %r11, (%r8)
testb %al, %al
je 0x70a64
movq %r12, %rax
negq %rax
cmpb $0x2d, %dil
cmovneq %r12, %rax
jmp 0x70a72
movl $0x21, (%r9)
testq %r8, %r8
je 0x70a60
movq %rsi, (%r8)
xorl %eax, %eax
jmp 0x70a72
movl $0x22, (%r9)
movq $-0x1, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
my_strntoull_8bit:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
mov dword ptr [r9], 0
lea r11, [rsi+rdx]
mov r10, rsi
test rdx, rdx
jle short loc_70969
mov rax, [rdi+40h]
mov r10, rsi
loc_70956:
movzx edx, byte ptr [r10]
test byte ptr [rax+rdx+1], 8
jz short loc_70969
inc r10
cmp r10, r11
jb short loc_70956
loc_70969:
cmp r10, r11
jz loc_70A51
mov dil, [r10]
lea eax, [rdi-2Bh]
and al, 0FDh
cmp al, 1
adc r10, 0
movsxd rbx, ecx
mov rax, 0FFFFFFFFFFFFFFFFh
xor edx, edx
mov [rbp+var_38], rbx
div rbx
xor r12d, r12d
cmp r10, r11
jz loc_70A2E
mov [rbp+var_30], rdi
mov r14, r10
xor r15d, r15d
loc_709A9:
mov rdi, r15
mov r13d, r12d
mov r12b, [r14]
lea ebx, [r12-30h]
cmp bl, 0Ah
jb short loc_709DD
lea ebx, [r12-41h]
cmp bl, 19h
ja short loc_709CC
add r12b, 0C9h
jmp short loc_709DA
loc_709CC:
lea ebx, [r12-61h]
cmp bl, 19h
ja short loc_70A1C
add r12b, 0A9h
loc_709DA:
mov ebx, r12d
loc_709DD:
movzx ebx, bl
cmp ebx, ecx
jge short loc_70A1C
mov r12d, 1
cmp rdi, rax
jbe short loc_709F4
mov r15, rdi
jmp short loc_70A0B
loc_709F4:
jnz short loc_709FD
mov r15, rax
cmp ebx, edx
ja short loc_70A0B
loc_709FD:
imul rdi, [rbp+var_38]
mov r15d, ebx
add r15, rdi
mov r12d, r13d
loc_70A0B:
inc r14
cmp r14, r11
jnz short loc_709A9
mov rdi, r15
mov r14, r11
mov r13d, r12d
loc_70A1C:
test r13d, r13d
setz al
mov r12, rdi
mov r11, r14
mov rdi, [rbp+var_30]
jmp short loc_70A30
loc_70A2E:
mov al, 1
loc_70A30:
cmp r11, r10
jz short loc_70A51
test r8, r8
jz short loc_70A3D
mov [r8], r11
loc_70A3D:
test al, al
jz short loc_70A64
mov rax, r12
neg rax
cmp dil, 2Dh ; '-'
cmovnz rax, r12
jmp short loc_70A72
loc_70A51:
mov dword ptr [r9], 21h ; '!'
test r8, r8
jz short loc_70A60
mov [r8], rsi
loc_70A60:
xor eax, eax
jmp short loc_70A72
loc_70A64:
mov dword ptr [r9], 22h ; '"'
mov rax, 0FFFFFFFFFFFFFFFFh
loc_70A72:
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long my_strntoull_8bit(
long long a1,
unsigned __int8 *a2,
long long a3,
int a4,
unsigned __int8 **a5,
_DWORD *a6)
{
unsigned __int8 *v6; // r11
unsigned __int8 *v7; // r10
unsigned __int8 v8; // di
unsigned __int8 *v9; // r10
unsigned long long v10; // rax
unsigned long long v11; // r12
unsigned __int8 *v12; // r14
unsigned long long v13; // r15
unsigned long long v14; // rdi
int v15; // r13d
unsigned __int8 v16; // r12
unsigned __int8 v17; // bl
unsigned __int8 v18; // r12
bool v19; // al
long long result; // rax
unsigned __int8 v21; // [rsp+8h] [rbp-30h]
*a6 = 0;
v6 = &a2[a3];
v7 = a2;
if ( a3 > 0 )
{
v7 = a2;
do
{
if ( (*(_BYTE *)(*(_QWORD *)(a1 + 64) + *v7 + 1LL) & 8) == 0 )
break;
++v7;
}
while ( v7 < v6 );
}
if ( v7 == v6 )
goto LABEL_30;
v8 = *v7;
v9 = &v7[((*v7 - 43) & 0xFD) == 0];
v10 = 0xFFFFFFFFFFFFFFFFLL / a4;
v11 = 0LL;
if ( v9 == v6 )
{
v19 = 1;
}
else
{
v21 = v8;
v12 = v9;
v13 = 0LL;
while ( 1 )
{
v14 = v13;
v15 = v11;
v16 = *v12;
v17 = *v12 - 48;
if ( v17 >= 0xAu )
{
if ( (unsigned __int8)(v16 - 65) > 0x19u )
{
if ( (unsigned __int8)(v16 - 97) > 0x19u )
break;
v18 = v16 - 87;
}
else
{
v18 = v16 - 55;
}
v17 = v18;
}
if ( v17 >= a4 )
break;
LODWORD(v11) = 1;
if ( v13 <= v10 )
{
if ( v13 != v10 || (v13 = 0xFFFFFFFFFFFFFFFFLL / a4, v17 <= (unsigned int)(0xFFFFFFFFFFFFFFFFLL % a4)) )
{
v13 = a4 * v14 + v17;
LODWORD(v11) = v15;
}
}
if ( ++v12 == v6 )
{
v14 = v13;
v12 = &a2[a3];
v15 = v11;
break;
}
}
v19 = v15 == 0;
v11 = v14;
v6 = v12;
v8 = v21;
}
if ( v6 == v9 )
{
LABEL_30:
*a6 = 33;
if ( a5 )
*a5 = a2;
return 0LL;
}
else
{
if ( a5 )
*a5 = v6;
if ( v19 )
{
result = -(long long)v11;
if ( v8 != 45 )
return v11;
}
else
{
*a6 = 34;
return -1LL;
}
}
return result;
}
|
my_strntoull_8bit:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV dword ptr [R9],0x0
LEA R11,[RSI + RDX*0x1]
MOV R10,RSI
TEST RDX,RDX
JLE 0x00170969
MOV RAX,qword ptr [RDI + 0x40]
MOV R10,RSI
LAB_00170956:
MOVZX EDX,byte ptr [R10]
TEST byte ptr [RAX + RDX*0x1 + 0x1],0x8
JZ 0x00170969
INC R10
CMP R10,R11
JC 0x00170956
LAB_00170969:
CMP R10,R11
JZ 0x00170a51
MOV DIL,byte ptr [R10]
LEA EAX,[RDI + -0x2b]
AND AL,0xfd
CMP AL,0x1
ADC R10,0x0
MOVSXD RBX,ECX
MOV RAX,-0x1
XOR EDX,EDX
MOV qword ptr [RBP + -0x38],RBX
DIV RBX
XOR R12D,R12D
CMP R10,R11
JZ 0x00170a2e
MOV qword ptr [RBP + -0x30],RDI
MOV R14,R10
XOR R15D,R15D
LAB_001709a9:
MOV RDI,R15
MOV R13D,R12D
MOV R12B,byte ptr [R14]
LEA EBX,[R12 + -0x30]
CMP BL,0xa
JC 0x001709dd
LEA EBX,[R12 + -0x41]
CMP BL,0x19
JA 0x001709cc
ADD R12B,0xc9
JMP 0x001709da
LAB_001709cc:
LEA EBX,[R12 + -0x61]
CMP BL,0x19
JA 0x00170a1c
ADD R12B,0xa9
LAB_001709da:
MOV EBX,R12D
LAB_001709dd:
MOVZX EBX,BL
CMP EBX,ECX
JGE 0x00170a1c
MOV R12D,0x1
CMP RDI,RAX
JBE 0x001709f4
MOV R15,RDI
JMP 0x00170a0b
LAB_001709f4:
JNZ 0x001709fd
MOV R15,RAX
CMP EBX,EDX
JA 0x00170a0b
LAB_001709fd:
IMUL RDI,qword ptr [RBP + -0x38]
MOV R15D,EBX
ADD R15,RDI
MOV R12D,R13D
LAB_00170a0b:
INC R14
CMP R14,R11
JNZ 0x001709a9
MOV RDI,R15
MOV R14,R11
MOV R13D,R12D
LAB_00170a1c:
TEST R13D,R13D
SETZ AL
MOV R12,RDI
MOV R11,R14
MOV RDI,qword ptr [RBP + -0x30]
JMP 0x00170a30
LAB_00170a2e:
MOV AL,0x1
LAB_00170a30:
CMP R11,R10
JZ 0x00170a51
TEST R8,R8
JZ 0x00170a3d
MOV qword ptr [R8],R11
LAB_00170a3d:
TEST AL,AL
JZ 0x00170a64
MOV RAX,R12
NEG RAX
CMP DIL,0x2d
CMOVNZ RAX,R12
JMP 0x00170a72
LAB_00170a51:
MOV dword ptr [R9],0x21
TEST R8,R8
JZ 0x00170a60
MOV qword ptr [R8],RSI
LAB_00170a60:
XOR EAX,EAX
JMP 0x00170a72
LAB_00170a64:
MOV dword ptr [R9],0x22
MOV RAX,-0x1
LAB_00170a72:
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
ulong my_strntoull_8bit(long param_1,byte *param_2,long param_3,int param_4,ulong *param_5,
int4 *param_6)
{
byte bVar1;
byte bVar2;
int1 auVar3 [16];
int1 auVar4 [16];
ulong uVar5;
ulong uVar6;
ulong uVar7;
byte *pbVar8;
byte *pbVar9;
byte bVar10;
ulong uVar11;
ulong uVar12;
int iVar13;
byte *pbVar14;
bool bVar15;
*param_6 = 0;
pbVar9 = param_2 + param_3;
pbVar8 = param_2;
if (0 < param_3) {
do {
if ((*(byte *)(*(long *)(param_1 + 0x40) + 1 + (ulong)*pbVar8) & 8) == 0) break;
pbVar8 = pbVar8 + 1;
} while (pbVar8 < pbVar9);
}
if (pbVar8 != pbVar9) {
bVar1 = *pbVar8;
pbVar8 = pbVar8 + ((bVar1 - 0x2b & 0xfd) == 0);
auVar3._8_8_ = 0;
auVar3._0_8_ = (long)param_4;
auVar4 = ZEXT816(0) << 0x40 | ZEXT816(0xffffffffffffffff);
uVar6 = SUB168(auVar4 / auVar3,0);
uVar7 = 0;
if (pbVar8 == pbVar9) {
bVar15 = true;
}
else {
uVar11 = uVar7;
pbVar14 = pbVar8;
uVar7 = 0;
do {
iVar13 = (int)uVar11;
bVar2 = *pbVar14;
bVar10 = bVar2 - 0x30;
if (9 < bVar10) {
if ((byte)(bVar2 + 0xbf) < 0x1a) {
bVar10 = bVar2 - 0x37;
}
else {
if (0x19 < (byte)(bVar2 + 0x9f)) goto LAB_00170a1c;
bVar10 = bVar2 + 0xa9;
}
}
if (param_4 <= (int)(uint)bVar10) goto LAB_00170a1c;
uVar12 = 1;
uVar5 = uVar7;
if ((uVar7 <= uVar6) &&
((uVar7 != uVar6 || (uVar5 = uVar6, (uint)bVar10 <= SUB164(auVar4 % auVar3,0))))) {
uVar12 = uVar11;
uVar5 = (ulong)bVar10 + uVar7 * (long)param_4;
}
uVar7 = uVar5;
pbVar14 = pbVar14 + 1;
uVar11 = uVar12;
} while (pbVar14 != pbVar9);
iVar13 = (int)uVar12;
pbVar14 = pbVar9;
LAB_00170a1c:
pbVar9 = pbVar14;
bVar15 = iVar13 == 0;
}
if (pbVar9 != pbVar8) {
if (param_5 != (ulong *)0x0) {
*param_5 = (ulong)pbVar9;
}
if (bVar15) {
if (bVar1 == 0x2d) {
return -uVar7;
}
return uVar7;
}
*param_6 = 0x22;
return 0xffffffffffffffff;
}
}
*param_6 = 0x21;
if (param_5 != (ulong *)0x0) {
*param_5 = (ulong)param_2;
}
return 0;
}
|
|
56,909
|
mysql_get_timeout_value
|
eloqsql/libmariadb/libmariadb/mariadb_lib.c
|
unsigned int STDCALL
mysql_get_timeout_value(const MYSQL *mysql)
{
unsigned int timeout= 0;
if (mysql->options.extension && mysql->options.extension->async_context)
timeout= mysql->options.extension->async_context->timeout_value;
/* Avoid overflow. */
if (timeout > UINT_MAX - 999)
return (timeout - 1)/1000 + 1;
else
return (timeout+999)/1000;
}
|
O0
|
c
|
mysql_get_timeout_value:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x480(%rax)
je 0x25c14
movq -0x10(%rbp), %rax
movq 0x480(%rax), %rax
cmpq $0x0, 0x28(%rax)
je 0x25c14
movq -0x10(%rbp), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
movl 0x10(%rax), %eax
movl %eax, -0x14(%rbp)
cmpl $0xfffffc18, -0x14(%rbp) # imm = 0xFFFFFC18
jbe 0x25c34
movl -0x14(%rbp), %eax
subl $0x1, %eax
movl $0x3e8, %ecx # imm = 0x3E8
xorl %edx, %edx
divl %ecx
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x25c48
movl -0x14(%rbp), %eax
addl $0x3e7, %eax # imm = 0x3E7
movl $0x3e8, %ecx # imm = 0x3E8
xorl %edx, %edx
divl %ecx
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax)
|
mysql_get_timeout_value:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_14], 0
mov rax, [rbp+var_10]
cmp qword ptr [rax+480h], 0
jz short loc_25C14
mov rax, [rbp+var_10]
mov rax, [rax+480h]
cmp qword ptr [rax+28h], 0
jz short loc_25C14
mov rax, [rbp+var_10]
mov rax, [rax+480h]
mov rax, [rax+28h]
mov eax, [rax+10h]
mov [rbp+var_14], eax
loc_25C14:
cmp [rbp+var_14], 0FFFFFC18h
jbe short loc_25C34
mov eax, [rbp+var_14]
sub eax, 1
mov ecx, 3E8h
xor edx, edx
div ecx
add eax, 1
mov [rbp+var_4], eax
jmp short loc_25C48
loc_25C34:
mov eax, [rbp+var_14]
add eax, 3E7h
mov ecx, 3E8h
xor edx, edx
div ecx
mov [rbp+var_4], eax
loc_25C48:
mov eax, [rbp+var_4]
pop rbp
retn
|
long long mysql_get_timeout_value(long long a1)
{
unsigned int v2; // [rsp+0h] [rbp-14h]
v2 = 0;
if ( *(_QWORD *)(a1 + 1152) && *(_QWORD *)(*(_QWORD *)(a1 + 1152) + 40LL) )
v2 = *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 1152) + 40LL) + 16LL);
if ( v2 <= 0xFFFFFC18 )
return (v2 + 999) / 0x3E8;
else
return (v2 - 1) / 0x3E8 + 1;
}
|
mysql_get_timeout_value:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],0x0
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x480],0x0
JZ 0x00125c14
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x480]
CMP qword ptr [RAX + 0x28],0x0
JZ 0x00125c14
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
MOV EAX,dword ptr [RAX + 0x10]
MOV dword ptr [RBP + -0x14],EAX
LAB_00125c14:
CMP dword ptr [RBP + -0x14],0xfffffc18
JBE 0x00125c34
MOV EAX,dword ptr [RBP + -0x14]
SUB EAX,0x1
MOV ECX,0x3e8
XOR EDX,EDX
DIV ECX
ADD EAX,0x1
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00125c48
LAB_00125c34:
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,0x3e7
MOV ECX,0x3e8
XOR EDX,EDX
DIV ECX
MOV dword ptr [RBP + -0x4],EAX
LAB_00125c48:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
uint mysql_get_timeout_value(long param_1)
{
int4 local_1c;
int4 local_c;
local_1c = 0;
if ((*(long *)(param_1 + 0x480) != 0) && (*(long *)(*(long *)(param_1 + 0x480) + 0x28) != 0)) {
local_1c = *(uint *)(*(long *)(*(long *)(param_1 + 0x480) + 0x28) + 0x10);
}
if (local_1c < 0xfffffc19) {
local_c = (local_1c + 999) / 1000;
}
else {
local_c = (local_1c - 1) / 1000 + 1;
}
return local_c;
}
|
|
56,910
|
mysql_get_timeout_value
|
eloqsql/libmariadb/libmariadb/mariadb_lib.c
|
unsigned int STDCALL
mysql_get_timeout_value(const MYSQL *mysql)
{
unsigned int timeout= 0;
if (mysql->options.extension && mysql->options.extension->async_context)
timeout= mysql->options.extension->async_context->timeout_value;
/* Avoid overflow. */
if (timeout > UINT_MAX - 999)
return (timeout - 1)/1000 + 1;
else
return (timeout+999)/1000;
}
|
O3
|
c
|
mysql_get_timeout_value:
pushq %rbp
movq %rsp, %rbp
movq 0x480(%rdi), %rcx
xorl %eax, %eax
testq %rcx, %rcx
je 0x1f2cb
movq 0x28(%rcx), %rcx
testq %rcx, %rcx
je 0x1f2cb
movl 0x10(%rcx), %eax
cmpl $0xfffffc19, %eax # imm = 0xFFFFFC19
jb 0x1f2cb
decl %eax
imulq $0x10624dd3, %rax, %rax # imm = 0x10624DD3
shrq $0x26, %rax
incl %eax
jmp 0x1f2db
addl $0x3e7, %eax # imm = 0x3E7
imulq $0x10624dd3, %rax, %rax # imm = 0x10624DD3
shrq $0x26, %rax
popq %rbp
retq
|
mysql_get_timeout_value:
push rbp
mov rbp, rsp
mov rcx, [rdi+480h]
xor eax, eax
test rcx, rcx
jz short loc_1F2CB
mov rcx, [rcx+28h]
test rcx, rcx
jz short loc_1F2CB
mov eax, [rcx+10h]
cmp eax, 0FFFFFC19h
jb short loc_1F2CB
dec eax
imul rax, 10624DD3h
shr rax, 26h
inc eax
jmp short loc_1F2DB
loc_1F2CB:
add eax, 3E7h
imul rax, 10624DD3h
shr rax, 26h
loc_1F2DB:
pop rbp
retn
|
unsigned long long mysql_get_timeout_value(long long a1)
{
long long v1; // rcx
unsigned int v2; // eax
long long v3; // rcx
v1 = *(_QWORD *)(a1 + 1152);
v2 = 0;
if ( v1 && (v3 = *(_QWORD *)(v1 + 40)) != 0 && (v2 = *(_DWORD *)(v3 + 16), v2 >= 0xFFFFFC19) )
return (v2 - 1) / 0x3E8 + 1;
else
return (v2 + 999) / 0x3E8uLL;
}
|
mysql_get_timeout_value:
PUSH RBP
MOV RBP,RSP
MOV RCX,qword ptr [RDI + 0x480]
XOR EAX,EAX
TEST RCX,RCX
JZ 0x0011f2cb
MOV RCX,qword ptr [RCX + 0x28]
TEST RCX,RCX
JZ 0x0011f2cb
MOV EAX,dword ptr [RCX + 0x10]
CMP EAX,0xfffffc19
JC 0x0011f2cb
DEC EAX
IMUL RAX,RAX,0x10624dd3
SHR RAX,0x26
INC EAX
JMP 0x0011f2db
LAB_0011f2cb:
ADD EAX,0x3e7
IMUL RAX,RAX,0x10624dd3
SHR RAX,0x26
LAB_0011f2db:
POP RBP
RET
|
ulong mysql_get_timeout_value(long param_1)
{
long lVar1;
uint uVar2;
ulong uVar3;
uVar2 = 0;
if (((*(long *)(param_1 + 0x480) == 0) ||
(lVar1 = *(long *)(*(long *)(param_1 + 0x480) + 0x28), uVar2 = 0, lVar1 == 0)) ||
(uVar2 = *(uint *)(lVar1 + 0x10), uVar2 < 0xfffffc19)) {
uVar3 = (ulong)(uVar2 + 999) / 1000;
}
else {
uVar3 = (ulong)((uVar2 - 1) / 1000 + 1);
}
return uVar3;
}
|
|
56,911
|
my_mutex_end
|
eloqsql/mysys/thr_mutex.c
|
void my_mutex_end()
{
#ifdef PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
pthread_mutexattr_destroy(&my_fast_mutexattr);
#endif
#ifdef PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP
pthread_mutexattr_destroy(&my_errorcheck_mutexattr);
#endif
}
|
O3
|
c
|
my_mutex_end:
pushq %rbp
movq %rsp, %rbp
leaq 0xb93921(%rip), %rdi # 0xc5c270
callq 0x2b200
leaq 0xb93919(%rip), %rdi # 0xc5c274
popq %rbp
jmp 0x2b200
nopl (%rax)
|
my_mutex_end:
push rbp
mov rbp, rsp
lea rdi, my_fast_mutexattr
call _pthread_mutexattr_destroy
lea rdi, my_errorcheck_mutexattr
pop rbp
jmp _pthread_mutexattr_destroy
|
long long my_mutex_end()
{
pthread_mutexattr_destroy(&my_fast_mutexattr);
return pthread_mutexattr_destroy(&my_errorcheck_mutexattr);
}
|
my_mutex_end:
PUSH RBP
MOV RBP,RSP
LEA RDI,[0xd5c270]
CALL 0x0012b200
LEA RDI,[0xd5c274]
POP RBP
JMP 0x0012b200
|
void my_mutex_end(void)
{
pthread_mutexattr_destroy((pthread_mutexattr_t *)&my_fast_mutexattr);
pthread_mutexattr_destroy((pthread_mutexattr_t *)&my_errorcheck_mutexattr);
return;
}
|
|
56,912
|
ha_federated::info(unsigned int)
|
eloqsql/storage/federated/ha_federated.cc
|
int ha_federated::info(uint flag)
{
char status_buf[FEDERATED_QUERY_BUFFER_SIZE];
int error;
uint error_code;
MYSQL_RES *result= 0;
MYSQL_ROW row;
String status_query_string(status_buf, sizeof(status_buf), &my_charset_bin);
DBUG_ENTER("ha_federated::info");
error_code= ER_QUERY_ON_FOREIGN_DATA_SOURCE;
/* we want not to show table status if not needed to do so */
if (flag & (HA_STATUS_VARIABLE | HA_STATUS_CONST))
{
status_query_string.length(0);
status_query_string.append(STRING_WITH_LEN("SHOW TABLE STATUS LIKE "));
append_ident(&status_query_string, share->table_name,
share->table_name_length, value_quote_char);
if (real_query(status_query_string.ptr(), status_query_string.length()))
goto error;
status_query_string.length(0);
result= mysql_store_result(mysql);
/*
We're going to use fields num. 4, 12 and 13 of the resultset,
so make sure we have these fields.
*/
if (!result || (mysql_num_fields(result) < 14))
goto error;
if (!mysql_num_rows(result))
goto error;
if (!(row= mysql_fetch_row(result)))
goto error;
/*
deleted is set in ha_federated::info
*/
/*
need to figure out what this means as far as federated is concerned,
since we don't have a "file"
data_file_length = ?
index_file_length = ?
delete_length = ?
*/
if (row[4] != NULL)
stats.records= (ha_rows) my_strtoll10(row[4], (char**) 0,
&error);
if (row[5] != NULL)
stats.mean_rec_length= (ulong) my_strtoll10(row[5], (char**) 0, &error);
stats.data_file_length= stats.records * stats.mean_rec_length;
if (row[12] != NULL)
stats.update_time= (ulong) my_strtoll10(row[12], (char**) 0,
&error);
if (row[13] != NULL)
stats.check_time= (ulong) my_strtoll10(row[13], (char**) 0,
&error);
/*
size of IO operations (This is based on a good guess, no high science
involved)
*/
if (flag & HA_STATUS_CONST)
stats.block_size= 4096;
}
if ((flag & HA_STATUS_AUTO) && mysql)
stats.auto_increment_value= mysql->insert_id;
mysql_free_result(result);
DBUG_RETURN(0);
error:
mysql_free_result(result);
if (mysql)
{
my_printf_error(error_code, ": %d : %s", MYF(0),
mysql_errno(mysql), mysql_error(mysql));
}
else
if (remote_error_number != -1 /* error already reported */)
{
error_code= remote_error_number;
my_error(error_code, MYF(0), ER(error_code));
}
DBUG_RETURN(error_code);
}
|
O3
|
cpp
|
ha_federated::info(unsigned int):
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1c8, %rsp # imm = 0x1C8
movl %esi, %r15d
movq %rdi, %r14
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq 0x6892(%rip), %rax # 0x10f88
leaq -0x1e0(%rbp), %rbx
movq %rax, -0x8(%rbx)
leaq -0x1c0(%rbp), %rax
movq %rax, (%rbx)
movabsq $0x19000000190, %rax # imm = 0x19000000190
movq %rax, 0x8(%rbx)
movl $0x0, 0x10(%rbx)
movw $0x0, 0x14(%rbx)
testb $0x18, %r15b
je 0xa7f3
leaq -0x1e8(%rbp), %rdi
movl $0x0, 0x10(%rdi)
leaq 0x2a66(%rip), %rsi # 0xd1ab
movl $0x17, %edx
callq 0x80f0
movq 0x538(%r14), %rax
movq 0x98(%rax), %rsi
movq 0xc0(%rax), %rdx
leaq -0x1e8(%rbp), %rdi
movl $0x27, %ecx
callq 0x9bad
movq -0x1e0(%rbp), %rsi
movl -0x1d8(%rbp), %edx
movq %r14, %rdi
callq 0x8380
testl %eax, %eax
je 0xa823
xorl %r12d, %r12d
movq %r12, %rdi
callq 0x8160
movq 0x540(%r14), %rdi
testq %rdi, %rdi
je 0xa8c0
movq 0x67dc(%rip), %rax # 0x10f90
movq (%rax), %rax
movq 0x8(%rax), %r12
callq 0x8480
movl %eax, %r15d
movq 0x540(%r14), %rdi
callq 0x8400
movl $0x596, %r14d # imm = 0x596
leaq 0x29e7(%rip), %rsi # 0xd1c3
movl $0x596, %edi # imm = 0x596
xorl %edx, %edx
movl %r15d, %ecx
movq %rax, %r8
xorl %eax, %eax
callq *%r12
jmp 0xa92e
xorl %r12d, %r12d
testb $0x40, %r15b
je 0xa813
movq 0x540(%r14), %rax
testq %rax, %rax
je 0xa813
movq 0x348(%rax), %rax
movq %rax, 0x78(%r14)
xorl %r14d, %r14d
movq %r12, %rdi
callq 0x8160
jmp 0xa92e
movl $0x0, -0x1d8(%rbp)
movq 0x540(%r14), %rdi
callq 0x82c0
movq %rax, %r12
testq %rax, %rax
je 0xa792
movq %r12, %rdi
callq 0x8230
cmpl $0xe, %eax
jb 0xa795
movq %r12, %rdi
callq 0x8180
testq %rax, %rax
je 0xa795
movq %r12, %rdi
callq 0x83c0
movq %rax, %r13
testq %rax, %rax
je 0xa795
movq 0x20(%r13), %rdi
testq %rdi, %rdi
je 0xa899
leaq -0x1c4(%rbp), %rdx
xorl %esi, %esi
callq 0x82b0
movq %rax, 0x80(%r14)
movq 0x28(%r13), %rdi
testq %rdi, %rdi
je 0xa95e
leaq -0x1c4(%rbp), %rdx
xorl %esi, %esi
callq 0x82b0
movq %rax, 0x90(%r14)
jmp 0xa965
movl 0x588(%r14), %r14d
cmpl $-0x1, %r14d
je 0xa928
movq 0x66bc(%rip), %rax # 0x10f90
movq (%rax), %rax
movq (%rax), %r15
callq 0x85b0
movq 0xb90(%rax), %rax
leal -0x3e8(%r14), %ecx
imulq $0x10624dd3, %rcx, %rcx # imm = 0x10624DD3
shrq $0x23, %rcx
andl $-0x8, %ecx
movq (%rax,%rcx), %rax
movl %r14d, %ecx
imulq $0x10624dd3, %rcx, %rcx # imm = 0x10624DD3
shrq $0x26, %rcx
imull $0x3e8, %ecx, %ecx # imm = 0x3E8
movl %r14d, %edx
subl %ecx, %edx
movq (%rax,%rdx,8), %rdx
movl %r14d, %edi
xorl %esi, %esi
xorl %eax, %eax
callq *%r15
jmp 0xa92e
movl $0x596, %r14d # imm = 0x596
movq %rbx, %rdi
callq 0x8510
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0xa9e9
movl %r14d, %eax
addq $0x1c8, %rsp # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x90(%r14), %rax
imulq 0x80(%r14), %rax
movq %rax, 0x50(%r14)
movq 0x60(%r13), %rdi
testq %rdi, %rdi
je 0xa98f
leaq -0x1c4(%rbp), %rdx
xorl %esi, %esi
callq 0x82b0
movq %rax, 0xa8(%r14)
movq 0x68(%r13), %rdi
testq %rdi, %rdi
je 0xa9ad
leaq -0x1c4(%rbp), %rdx
xorl %esi, %esi
callq 0x82b0
movq %rax, 0xa0(%r14)
testb $0x8, %r15b
je 0xa7f6
movl $0x1000, 0xb0(%r14) # imm = 0x1000
jmp 0xa7f6
movq %rax, %r14
movq %rbx, %rdi
callq 0x8510
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0xa9e9
movq %r14, %rdi
callq 0x8560
callq 0x83a0
|
_ZN12ha_federated4infoEj:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 1C8h
mov r15d, esi
mov r14, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov rax, cs:my_charset_bin_ptr
lea rbx, [rbp+var_1E0]
mov [rbx-8], rax
lea rax, [rbp+var_1C0]
mov [rbx], rax
mov rax, 19000000190h
mov [rbx+8], rax
mov dword ptr [rbx+10h], 0
mov word ptr [rbx+14h], 0
test r15b, 18h
jz loc_A7F3
lea rdi, [rbp+var_1E8]; this
mov dword ptr [rdi+10h], 0
lea rsi, aShowTableStatu; "SHOW TABLE STATUS LIKE "
mov edx, 17h; unsigned __int64
call __ZN6String6appendEPKcm; String::append(char const*,ulong)
mov rax, [r14+538h]
mov rsi, [rax+98h]; char *
mov rdx, [rax+0C0h]; unsigned __int64
lea rdi, [rbp+var_1E8]; String *
mov ecx, 27h ; '''; char
call _ZL12append_identP6StringPKcmc; append_ident(String *,char const*,ulong,char)
mov rsi, [rbp+var_1E0]; char *
mov edx, dword ptr [rbp+var_1D8]; unsigned __int64
mov rdi, r14; this
call __ZN12ha_federated10real_queryEPKcm; ha_federated::real_query(char const*,ulong)
test eax, eax
jz loc_A823
loc_A792:
xor r12d, r12d
loc_A795:
mov rdi, r12
call _mysql_free_result
mov rdi, [r14+540h]
test rdi, rdi
jz loc_A8C0
mov rax, cs:my_print_error_service_ptr
mov rax, [rax]
mov r12, [rax+8]
call _mysql_errno
mov r15d, eax
mov rdi, [r14+540h]
call _mysql_error
mov r14d, 596h
lea rsi, aDS; ": %d : %s"
mov edi, 596h
xor edx, edx
mov ecx, r15d
mov r8, rax
xor eax, eax
call r12
jmp loc_A92E
loc_A7F3:
xor r12d, r12d
loc_A7F6:
test r15b, 40h
jz short loc_A813
mov rax, [r14+540h]
test rax, rax
jz short loc_A813
mov rax, [rax+348h]
mov [r14+78h], rax
loc_A813:
xor r14d, r14d
mov rdi, r12
call _mysql_free_result
jmp loc_A92E
loc_A823:
mov dword ptr [rbp+var_1D8], 0
mov rdi, [r14+540h]
call _mysql_store_result
mov r12, rax
test rax, rax
jz loc_A792
mov rdi, r12
call _mysql_num_fields
cmp eax, 0Eh
jb loc_A795
mov rdi, r12
call _mysql_num_rows
test rax, rax
jz loc_A795
mov rdi, r12
call _mysql_fetch_row
mov r13, rax
test rax, rax
jz loc_A795
mov rdi, [r13+20h]
test rdi, rdi
jz short loc_A899
lea rdx, [rbp+var_1C4]
xor esi, esi
call _my_strtoll10
mov [r14+80h], rax
loc_A899:
mov rdi, [r13+28h]
test rdi, rdi
jz loc_A95E
lea rdx, [rbp+var_1C4]
xor esi, esi
call _my_strtoll10
mov [r14+90h], rax
jmp loc_A965
loc_A8C0:
mov r14d, [r14+588h]
cmp r14d, 0FFFFFFFFh
jz short loc_A928
mov rax, cs:my_print_error_service_ptr
mov rax, [rax]
mov r15, [rax]
call __current_thd
mov rax, [rax+0B90h]
lea ecx, [r14-3E8h]
imul rcx, 10624DD3h
shr rcx, 23h
and ecx, 0FFFFFFF8h
mov rax, [rax+rcx]
mov ecx, r14d
imul rcx, 10624DD3h
shr rcx, 26h
imul ecx, 3E8h
mov edx, r14d
sub edx, ecx
mov rdx, [rax+rdx*8]
mov edi, r14d
xor esi, esi
xor eax, eax
call r15
jmp short loc_A92E
loc_A928:
mov r14d, 596h
loc_A92E:
mov rdi, rbx; this
call __ZN13Binary_stringD2Ev; Binary_string::~Binary_string()
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz loc_A9E9
mov eax, r14d
add rsp, 1C8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_A95E:
mov rax, [r14+90h]
loc_A965:
imul rax, [r14+80h]
mov [r14+50h], rax
mov rdi, [r13+60h]
test rdi, rdi
jz short loc_A98F
lea rdx, [rbp+var_1C4]
xor esi, esi
call _my_strtoll10
mov [r14+0A8h], rax
loc_A98F:
mov rdi, [r13+68h]
test rdi, rdi
jz short loc_A9AD
lea rdx, [rbp+var_1C4]
xor esi, esi
call _my_strtoll10
mov [r14+0A0h], rax
loc_A9AD:
test r15b, 8
jz loc_A7F6
mov dword ptr [r14+0B0h], 1000h
jmp loc_A7F6
mov r14, rax
mov rdi, rbx; this
call __ZN13Binary_stringD2Ev; Binary_string::~Binary_string()
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_A9E9
mov rdi, r14
call __Unwind_Resume
loc_A9E9:
call ___stack_chk_fail
|
long long ha_federated::info(ha_federated *this, char a2)
{
long long v3; // r12
long long v4; // rdi
void (*v5)(long long, const char *, ...); // r12
unsigned int v6; // r15d
unsigned int v7; // r14d
long long v8; // rax
long long v9; // rax
long long row; // rax
_QWORD *v11; // r13
long long v12; // rdi
long long v13; // rdi
long long v14; // rax
void ( *v15)(_QWORD, _QWORD, _QWORD); // r15
long long v16; // rax
long long v18; // rdi
long long v19; // rdi
void *v20; // [rsp+8h] [rbp-1E8h] BYREF
char *v21; // [rsp+10h] [rbp-1E0h] BYREF
unsigned long long v22; // [rsp+18h] [rbp-1D8h]
int v23; // [rsp+20h] [rbp-1D0h]
__int16 v24; // [rsp+24h] [rbp-1CCh]
_BYTE v25[4]; // [rsp+2Ch] [rbp-1C4h] BYREF
char v26; // [rsp+30h] [rbp-1C0h] BYREF
unsigned long long v27; // [rsp+1C0h] [rbp-30h]
v27 = __readfsqword(0x28u);
v20 = &my_charset_bin;
v21 = &v26;
v22 = 0x19000000190LL;
v23 = 0;
v24 = 0;
if ( (a2 & 0x18) != 0 )
{
LODWORD(v22) = 0;
String::append((String *)&v20, "SHOW TABLE STATUS LIKE ", 0x17uLL);
append_ident(
(String *)&v20,
*(const char **)(*((_QWORD *)this + 167) + 152LL),
*(_QWORD *)(*((_QWORD *)this + 167) + 192LL),
39);
if ( (unsigned int)ha_federated::real_query(this, v21, (unsigned int)v22)
|| (LODWORD(v22) = 0, v9 = mysql_store_result(*((_QWORD *)this + 168)), (v3 = v9) == 0) )
{
v3 = 0LL;
}
else if ( (unsigned int)mysql_num_fields(v9) >= 0xE )
{
if ( mysql_num_rows(v3) )
{
row = mysql_fetch_row(v3);
v11 = (_QWORD *)row;
if ( row )
{
v12 = *(_QWORD *)(row + 32);
if ( v12 )
*((_QWORD *)this + 16) = my_strtoll10(v12, 0LL, v25);
v13 = v11[5];
if ( v13 )
{
v14 = my_strtoll10(v13, 0LL, v25);
*((_QWORD *)this + 18) = v14;
}
else
{
v14 = *((_QWORD *)this + 18);
}
*((_QWORD *)this + 10) = *((_QWORD *)this + 16) * v14;
v18 = v11[12];
if ( v18 )
*((_QWORD *)this + 21) = my_strtoll10(v18, 0LL, v25);
v19 = v11[13];
if ( v19 )
*((_QWORD *)this + 20) = my_strtoll10(v19, 0LL, v25);
if ( (a2 & 8) != 0 )
*((_DWORD *)this + 44) = 4096;
goto LABEL_7;
}
}
}
mysql_free_result(v3);
v4 = *((_QWORD *)this + 168);
if ( v4 )
{
v5 = (void (*)(long long, const char *, ...))my_print_error_service[1];
v6 = mysql_errno(v4);
mysql_error(*((_QWORD *)this + 168));
v7 = 1430;
v5(1430LL, ": %d : %s", 0, (const char *)v6);
}
else
{
v7 = *((_DWORD *)this + 354);
if ( v7 == -1 )
{
v7 = 1430;
}
else
{
v15 = (void ( *)(_QWORD, _QWORD, _QWORD))*my_print_error_service;
v16 = _current_thd(0LL);
v15(
v7,
0LL,
*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v16 + 2960) + (((v7 - 1000) / 0x7D) & 0xFFFFFFF8)) + 8LL * (v7 % 0x3E8)));
}
}
goto LABEL_22;
}
v3 = 0LL;
LABEL_7:
if ( (a2 & 0x40) != 0 )
{
v8 = *((_QWORD *)this + 168);
if ( v8 )
*((_QWORD *)this + 15) = *(_QWORD *)(v8 + 840);
}
v7 = 0;
mysql_free_result(v3);
LABEL_22:
Binary_string::~Binary_string((Binary_string *)&v21);
return v7;
}
|
info:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x1c8
MOV R15D,ESI
MOV R14,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [0x00110f88]
LEA RBX,[RBP + -0x1e0]
MOV qword ptr [RBX + -0x8],RAX
LEA RAX,[RBP + -0x1c0]
MOV qword ptr [RBX],RAX
MOV RAX,0x19000000190
MOV qword ptr [RBX + 0x8],RAX
MOV dword ptr [RBX + 0x10],0x0
MOV word ptr [RBX + 0x14],0x0
TEST R15B,0x18
JZ 0x0010a7f3
LEA RDI,[RBP + -0x1e8]
MOV dword ptr [RDI + 0x10],0x0
LAB_0010a73e:
LEA RSI,[0x10d1ab]
MOV EDX,0x17
CALL 0x001080f0
MOV RAX,qword ptr [R14 + 0x538]
MOV RSI,qword ptr [RAX + 0x98]
MOV RDX,qword ptr [RAX + 0xc0]
LEA RDI,[RBP + -0x1e8]
MOV ECX,0x27
CALL 0x00109bad
MOV RSI,qword ptr [RBP + -0x1e0]
MOV EDX,dword ptr [RBP + -0x1d8]
MOV RDI,R14
CALL 0x00108380
TEST EAX,EAX
JZ 0x0010a823
LAB_0010a792:
XOR R12D,R12D
LAB_0010a795:
MOV RDI,R12
CALL 0x00108160
MOV RDI,qword ptr [R14 + 0x540]
TEST RDI,RDI
JZ 0x0010a8c0
MOV RAX,qword ptr [0x00110f90]
MOV RAX,qword ptr [RAX]
MOV R12,qword ptr [RAX + 0x8]
CALL 0x00108480
MOV R15D,EAX
MOV RDI,qword ptr [R14 + 0x540]
CALL 0x00108400
MOV R14D,0x596
LEA RSI,[0x10d1c3]
MOV EDI,0x596
XOR EDX,EDX
MOV ECX,R15D
MOV R8,RAX
XOR EAX,EAX
CALL R12
JMP 0x0010a92e
LAB_0010a7f3:
XOR R12D,R12D
LAB_0010a7f6:
TEST R15B,0x40
JZ 0x0010a813
MOV RAX,qword ptr [R14 + 0x540]
TEST RAX,RAX
JZ 0x0010a813
MOV RAX,qword ptr [RAX + 0x348]
MOV qword ptr [R14 + 0x78],RAX
LAB_0010a813:
XOR R14D,R14D
MOV RDI,R12
CALL 0x00108160
JMP 0x0010a92e
LAB_0010a823:
MOV dword ptr [RBP + -0x1d8],0x0
MOV RDI,qword ptr [R14 + 0x540]
CALL 0x001082c0
MOV R12,RAX
TEST RAX,RAX
JZ 0x0010a792
MOV RDI,R12
CALL 0x00108230
CMP EAX,0xe
JC 0x0010a795
MOV RDI,R12
CALL 0x00108180
TEST RAX,RAX
JZ 0x0010a795
MOV RDI,R12
CALL 0x001083c0
MOV R13,RAX
TEST RAX,RAX
JZ 0x0010a795
MOV RDI,qword ptr [R13 + 0x20]
TEST RDI,RDI
JZ 0x0010a899
LEA RDX,[RBP + -0x1c4]
XOR ESI,ESI
CALL 0x001082b0
MOV qword ptr [R14 + 0x80],RAX
LAB_0010a899:
MOV RDI,qword ptr [R13 + 0x28]
TEST RDI,RDI
JZ 0x0010a95e
LEA RDX,[RBP + -0x1c4]
XOR ESI,ESI
CALL 0x001082b0
MOV qword ptr [R14 + 0x90],RAX
JMP 0x0010a965
LAB_0010a8c0:
MOV R14D,dword ptr [R14 + 0x588]
CMP R14D,-0x1
JZ 0x0010a928
MOV RAX,qword ptr [0x00110f90]
MOV RAX,qword ptr [RAX]
MOV R15,qword ptr [RAX]
CALL 0x001085b0
MOV RAX,qword ptr [RAX + 0xb90]
LEA ECX,[R14 + -0x3e8]
IMUL RCX,RCX,0x10624dd3
SHR RCX,0x23
AND ECX,0xfffffff8
MOV RAX,qword ptr [RAX + RCX*0x1]
MOV ECX,R14D
IMUL RCX,RCX,0x10624dd3
SHR RCX,0x26
IMUL ECX,ECX,0x3e8
MOV EDX,R14D
SUB EDX,ECX
MOV RDX,qword ptr [RAX + RDX*0x8]
MOV EDI,R14D
XOR ESI,ESI
XOR EAX,EAX
CALL R15
JMP 0x0010a92e
LAB_0010a928:
MOV R14D,0x596
LAB_0010a92e:
MOV RDI,RBX
CALL 0x00108510
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x0010a9e9
MOV EAX,R14D
ADD RSP,0x1c8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0010a95e:
MOV RAX,qword ptr [R14 + 0x90]
LAB_0010a965:
IMUL RAX,qword ptr [R14 + 0x80]
MOV qword ptr [R14 + 0x50],RAX
MOV RDI,qword ptr [R13 + 0x60]
TEST RDI,RDI
JZ 0x0010a98f
LEA RDX,[RBP + -0x1c4]
XOR ESI,ESI
CALL 0x001082b0
MOV qword ptr [R14 + 0xa8],RAX
LAB_0010a98f:
MOV RDI,qword ptr [R13 + 0x68]
TEST RDI,RDI
JZ 0x0010a9ad
LEA RDX,[RBP + -0x1c4]
XOR ESI,ESI
CALL 0x001082b0
LAB_0010a9a6:
MOV qword ptr [R14 + 0xa0],RAX
LAB_0010a9ad:
TEST R15B,0x8
JZ 0x0010a7f6
MOV dword ptr [R14 + 0xb0],0x1000
JMP 0x0010a7f6
LAB_0010a9e9:
CALL 0x001083a0
|
/* ha_federated::info(unsigned int) */
uint __thiscall ha_federated::info(ha_federated *this,uint param_1)
{
code *pcVar1;
int iVar2;
int4 uVar3;
uint uVar4;
int8 uVar5;
long lVar6;
long lVar7;
long lVar8;
long in_FS_OFFSET;
int *local_1f0;
char *local_1e8;
ulong local_1e0;
int4 local_1d8;
int2 local_1d4;
int1 local_1cc [4];
char local_1c8 [400];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
local_1f0 = PTR_my_charset_bin_00110f88;
local_1e8 = local_1c8;
local_1e0 = 0x19000000190;
local_1d8 = 0;
local_1d4 = 0;
if ((param_1 & 0x18) == 0) {
lVar8 = 0;
LAB_0010a7f6:
if (((param_1 & 0x40) != 0) && (*(long *)(this + 0x540) != 0)) {
*(int8 *)(this + 0x78) = *(int8 *)(*(long *)(this + 0x540) + 0x348);
}
uVar4 = 0;
mysql_free_result(lVar8);
goto LAB_0010a92e;
}
local_1e0 = 0x19000000000;
/* try { // try from 0010a73e to 0010a9a5 has its CatchHandler @ 0010a9c7 */
String::append((char *)&local_1f0,0x10d1ab);
append_ident((String *)&local_1f0,*(char **)(*(long *)(this + 0x538) + 0x98),
*(ulong *)(*(long *)(this + 0x538) + 0xc0),'\'');
iVar2 = real_query(this,local_1e8,local_1e0 & 0xffffffff);
if (iVar2 == 0) {
local_1e0 = local_1e0 & 0xffffffff00000000;
lVar8 = mysql_store_result(*(int8 *)(this + 0x540));
if (lVar8 == 0) goto LAB_0010a792;
uVar4 = mysql_num_fields(lVar8);
if (0xd < uVar4) {
lVar6 = mysql_num_rows(lVar8);
if (lVar6 != 0) {
lVar6 = mysql_fetch_row(lVar8);
if (lVar6 != 0) {
if (*(long *)(lVar6 + 0x20) != 0) {
uVar5 = my_strtoll10(*(long *)(lVar6 + 0x20),0,local_1cc);
*(int8 *)(this + 0x80) = uVar5;
}
if (*(long *)(lVar6 + 0x28) == 0) {
lVar7 = *(long *)(this + 0x90);
}
else {
lVar7 = my_strtoll10(*(long *)(lVar6 + 0x28),0,local_1cc);
*(long *)(this + 0x90) = lVar7;
}
*(long *)(this + 0x50) = lVar7 * *(long *)(this + 0x80);
if (*(long *)(lVar6 + 0x60) != 0) {
uVar5 = my_strtoll10(*(long *)(lVar6 + 0x60),0,local_1cc);
*(int8 *)(this + 0xa8) = uVar5;
}
if (*(long *)(lVar6 + 0x68) != 0) {
uVar5 = my_strtoll10(*(long *)(lVar6 + 0x68),0,local_1cc);
*(int8 *)(this + 0xa0) = uVar5;
}
if ((param_1 & 8) != 0) {
*(int4 *)(this + 0xb0) = 0x1000;
}
goto LAB_0010a7f6;
}
}
}
}
else {
LAB_0010a792:
lVar8 = 0;
}
mysql_free_result(lVar8);
if (*(long *)(this + 0x540) == 0) {
uVar4 = *(uint *)(this + 0x588);
if (uVar4 == 0xffffffff) {
uVar4 = 0x596;
}
else {
pcVar1 = (code *)**(int8 **)PTR_my_print_error_service_00110f90;
lVar8 = _current_thd();
(*pcVar1)(uVar4,0,*(int8 *)
(*(long *)(*(long *)(lVar8 + 0xb90) +
(ulong)((uVar4 - 1000) / 0x7d & 0xfffffff8)) +
(ulong)(uVar4 % 1000) * 8));
}
}
else {
pcVar1 = *(code **)(*(long *)PTR_my_print_error_service_00110f90 + 8);
uVar3 = mysql_errno();
uVar5 = mysql_error(*(int8 *)(this + 0x540));
uVar4 = 0x596;
(*pcVar1)(0x596,": %d : %s",0,uVar3,uVar5);
}
LAB_0010a92e:
Binary_string::~Binary_string((Binary_string *)&local_1e8);
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return uVar4;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
56,913
|
aimrt::channel::ContextRef::SetUsed()
|
aimrt_mujoco_sim/_deps/aimrt-src/src/interface/aimrt_module_cpp_interface/../aimrt_module_cpp_interface/channel/channel_context.h
|
void SetUsed() {
AIMRT_ASSERT(base_ptr_ && base_ptr_->ops, "Reference is null.");
base_ptr_->ops->set_used(base_ptr_->impl);
}
|
O0
|
c
|
aimrt::channel::ContextRef::SetUsed():
subq $0x108, %rsp # imm = 0x108
movq %rdi, 0x68(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
cmpq $0x0, (%rax)
je 0xf27d3
movq 0x20(%rsp), %rax
movq (%rax), %rax
cmpq $0x0, (%rax)
jne 0xf299e
movb $0x1, 0x2b(%rsp)
movl $0x28, %edi
callq 0x89b90
movq %rax, 0x8(%rsp)
leaq 0xbb4d8(%rip), %rax # 0x1adcc6
movq %rax, 0x38(%rsp)
movq $0x12, 0x40(%rsp)
movq 0x38(%rsp), %rcx
movq 0x40(%rsp), %rax
leaq 0x48(%rsp), %rdx
movq %rdx, 0xb0(%rsp)
movq %rcx, 0xa0(%rsp)
movq %rax, 0xa8(%rsp)
leaq 0xa0(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0xb8(%rsp), %rax
movups (%rax), %xmm0
movaps %xmm0, 0xc0(%rsp)
movq 0xc0(%rsp), %rcx
movq 0xc8(%rsp), %rax
movq %rcx, 0x90(%rsp)
movq %rax, 0x98(%rsp)
callq 0xa0490
movq %rdx, 0x10(%rsp)
movq %rax, 0x18(%rsp)
jmp 0xf2877
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
movq %rcx, 0x70(%rsp)
movq %rax, 0x78(%rsp)
leaq 0x80(%rsp), %rax
movq %rax, 0xe0(%rsp)
leaq 0x70(%rsp), %rax
movq %rax, 0xd8(%rsp)
movq 0xe0(%rsp), %rcx
movq 0xd8(%rsp), %rax
movq %rax, 0x100(%rsp)
movq 0x100(%rsp), %rax
movq %rcx, 0xf8(%rsp)
movq $0x0, 0xf0(%rsp)
movq %rax, 0xe8(%rsp)
movq 0xf8(%rsp), %rax
movq 0xf0(%rsp), %rcx
movq %rcx, (%rax)
movq 0xe8(%rsp), %rcx
movq %rcx, 0x8(%rax)
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
movq 0x80(%rsp), %rcx
movq 0x88(%rsp), %r8
leaq 0x48(%rsp), %rdi
callq 0xa0350
jmp 0xf292f
jmp 0xf2931
movq 0x8(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x9ac10
jmp 0xf2942
movq 0x8(%rsp), %rdi
movb $0x0, 0x2b(%rsp)
leaq 0x11eea5(%rip), %rsi # 0x2117f8
leaq -0x57cfa(%rip), %rdx # 0x9ac60
callq 0x92530
jmp 0xf29ca
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x30(%rsp)
movl %eax, 0x2c(%rsp)
jmp 0xf2989
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x30(%rsp)
movl %eax, 0x2c(%rsp)
leaq 0x48(%rsp), %rdi
callq 0x94218
testb $0x1, 0x2b(%rsp)
jne 0xf2992
jmp 0xf299c
movq 0x8(%rsp), %rdi
callq 0x8b4e0
jmp 0xf29c0
jmp 0xf29a0
movq 0x20(%rsp), %rcx
movq (%rcx), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq (%rcx), %rcx
movq 0x8(%rcx), %rdi
callq *%rax
addq $0x108, %rsp # imm = 0x108
retq
movq 0x30(%rsp), %rdi
callq 0x92a70
nopw (%rax,%rax)
|
_ZN5aimrt7channel10ContextRef7SetUsedEv:
sub rsp, 108h
mov [rsp+108h+var_A0], rdi
mov rax, [rsp+108h+var_A0]
mov [rsp+108h+var_E8], rax
mov rax, [rsp+108h+var_E8]
cmp qword ptr [rax], 0
jz short loc_F27D3
mov rax, [rsp+108h+var_E8]
mov rax, [rax]
cmp qword ptr [rax], 0
jnz loc_F299E
loc_F27D3:
mov [rsp+108h+var_DD], 1
mov edi, 28h ; '('; thrown_size
call ___cxa_allocate_exception
mov [rsp+108h+var_100], rax
lea rax, aReferenceIsNul; "Reference is null."
mov [rsp+108h+var_D0], rax
mov [rsp+108h+var_C8], 12h
mov rcx, [rsp+108h+var_D0]
mov rax, [rsp+108h+var_C8]
lea rdx, [rsp+108h+var_C0]
mov [rsp+108h+var_58], rdx
mov [rsp+108h+var_68], rcx
mov [rsp+108h+var_60], rax
lea rax, [rsp+108h+var_68]
mov [rsp+108h+var_50], rax
mov rax, [rsp+108h+var_50]
movups xmm0, xmmword ptr [rax]
movaps [rsp+108h+var_48], xmm0
mov rcx, qword ptr [rsp+108h+var_48]
mov rax, qword ptr [rsp+108h+var_48+8]
mov [rsp+108h+var_78], rcx
mov [rsp+108h+var_70], rax
call _ZN3fmt3v1016make_format_argsINS0_20basic_format_contextINS0_8appenderEcEEJEEENS0_16format_arg_storeIT_JDpNSt9remove_cvINSt16remove_referenceIT0_E4typeEE4typeEEEEDpRS9_
mov [rsp+108h+var_F8], rdx
mov [rsp+108h+var_F0], rax
jmp short $+2
loc_F2877:
mov rax, [rsp+108h+var_F8]
mov rcx, [rsp+108h+var_F0]
mov [rsp+108h+var_98], rcx
mov [rsp+108h+var_90], rax
lea rax, [rsp+108h+var_88]
mov [rsp+108h+var_28], rax
lea rax, [rsp+108h+var_98]
mov [rsp+108h+var_30], rax
mov rcx, [rsp+108h+var_28]
mov rax, [rsp+108h+var_30]
mov [rsp+108h+var_8], rax
mov rax, [rsp+108h+var_8]
mov [rsp+108h+var_10], rcx
mov [rsp+108h+var_18], 0
mov [rsp+108h+var_20], rax
mov rax, [rsp+108h+var_10]
mov rcx, [rsp+108h+var_18]
mov [rax], rcx
mov rcx, [rsp+108h+var_20]
mov [rax+8], rcx
mov rsi, [rsp+108h+var_78]
mov rdx, [rsp+108h+var_70]
mov rcx, [rsp+108h+var_88]
mov r8, [rsp+108h+var_80]
lea rdi, [rsp+108h+var_C0]
call _ZN3fmt3v107vformatB5cxx11ENS0_17basic_string_viewIcEENS0_17basic_format_argsINS0_20basic_format_contextINS0_8appenderEcEEEE; fmt::v10::vformat(fmt::v10::basic_string_view<char>,fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender,char>>)
jmp short $+2
loc_F292F:
jmp short $+2
loc_F2931:
mov rdi, [rsp+108h+var_100]
lea rsi, [rsp+108h+var_C0]
call _ZN5aimrt6common4util14AimRTExceptionC2IJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEQsr3stdE18constructible_fromIS9_DpT_EEEDpOSA_
jmp short $+2
loc_F2942:
mov rdi, [rsp+108h+var_100]; void *
mov [rsp+108h+var_DD], 0
lea rsi, _ZTIN5aimrt6common4util14AimRTExceptionE; lptinfo
lea rdx, _ZN5aimrt6common4util14AimRTExceptionD2Ev; void (*)(void *)
call ___cxa_throw
jmp short loc_F29CA
mov rcx, rax
mov eax, edx
mov [rsp+arg_28], rcx
mov [rsp+arg_24], eax
jmp short loc_F2989
mov rcx, rax
mov eax, edx
mov [rsp+arg_28], rcx
mov [rsp+arg_24], eax
lea rdi, [rsp+arg_40]; void *
call j__ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_F2989:
test [rsp+arg_23], 1
jnz short loc_F2992
jmp short loc_F299C
loc_F2992:
mov rdi, [rsp+arg_0]; void *
call ___cxa_free_exception
loc_F299C:
jmp short loc_F29C0
loc_F299E:
jmp short $+2
loc_F29A0:
mov rcx, [rsp+108h+var_E8]
mov rax, [rcx]
mov rax, [rax]
mov rax, [rax+8]
mov rcx, [rcx]
mov rdi, [rcx+8]
call rax
add rsp, 108h
retn
loc_F29C0:
mov rdi, [rsp+arg_28]
call __Unwind_Resume
loc_F29CA:
nop word ptr [rax+rax+00h]
|
long long aimrt::channel::ContextRef::SetUsed(aimrt::channel::ContextRef *this)
{
long long v1; // rdx
std::exception *exception; // [rsp+8h] [rbp-100h]
_BYTE v4[32]; // [rsp+48h] [rbp-C0h] BYREF
aimrt::channel::ContextRef *v5; // [rsp+68h] [rbp-A0h]
_QWORD v6[2]; // [rsp+70h] [rbp-98h] BYREF
_QWORD v7[2]; // [rsp+80h] [rbp-88h] BYREF
__int128 v8; // [rsp+90h] [rbp-78h]
__int128 v9; // [rsp+A0h] [rbp-68h] BYREF
_BYTE *v10; // [rsp+B0h] [rbp-58h]
__int128 *v11; // [rsp+B8h] [rbp-50h]
__int128 v12; // [rsp+C0h] [rbp-48h]
_QWORD *v13; // [rsp+D8h] [rbp-30h]
_QWORD *v14; // [rsp+E0h] [rbp-28h]
_QWORD *v15; // [rsp+E8h] [rbp-20h]
long long v16; // [rsp+F0h] [rbp-18h]
_QWORD *v17; // [rsp+F8h] [rbp-10h]
_QWORD *v18; // [rsp+100h] [rbp-8h]
v5 = this;
if ( !*(_QWORD *)this || !**(_QWORD **)this )
{
exception = (std::exception *)__cxa_allocate_exception(0x28uLL);
v10 = v4;
*(_QWORD *)&v9 = "Reference is null.";
*((_QWORD *)&v9 + 1) = 18LL;
v11 = &v9;
v12 = v9;
v8 = v9;
v6[0] = fmt::v10::make_format_args<fmt::v10::basic_format_context<fmt::v10::appender,char>>();
v6[1] = v1;
v14 = v7;
v13 = v6;
v18 = v6;
v17 = v7;
v16 = 0LL;
v15 = v6;
v7[0] = 0LL;
v7[1] = v6;
fmt::v10::vformat[abi:cxx11]((long long)v4, v8, *((long long *)&v8 + 1), 0LL, (long long)v6);
ZN5aimrt6common4util14AimRTExceptionC2IJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEQsr3stdE18constructible_fromIS9_DpT_EEEDpOSA_(
exception,
(long long)v4);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'aimrt::common::util::AimRTException,
(void (*)(void *))aimrt::common::util::AimRTException::~AimRTException);
}
return (*(long long ( **)(_QWORD))(**(_QWORD **)this + 8LL))(*(_QWORD *)(*(_QWORD *)this + 8LL));
}
|
SetUsed:
SUB RSP,0x108
MOV qword ptr [RSP + 0x68],RDI
MOV RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RSP + 0x20]
CMP qword ptr [RAX],0x0
JZ 0x001f27d3
MOV RAX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RAX]
CMP qword ptr [RAX],0x0
JNZ 0x001f299e
LAB_001f27d3:
MOV byte ptr [RSP + 0x2b],0x1
MOV EDI,0x28
CALL 0x00189b90
MOV qword ptr [RSP + 0x8],RAX
LEA RAX,[0x2adcc6]
MOV qword ptr [RSP + 0x38],RAX
MOV qword ptr [RSP + 0x40],0x12
MOV RCX,qword ptr [RSP + 0x38]
MOV RAX,qword ptr [RSP + 0x40]
LEA RDX,[RSP + 0x48]
MOV qword ptr [RSP + 0xb0],RDX
MOV qword ptr [RSP + 0xa0],RCX
MOV qword ptr [RSP + 0xa8],RAX
LEA RAX,[RSP + 0xa0]
MOV qword ptr [RSP + 0xb8],RAX
MOV RAX,qword ptr [RSP + 0xb8]
MOVUPS XMM0,xmmword ptr [RAX]
MOVAPS xmmword ptr [RSP + 0xc0],XMM0
MOV RCX,qword ptr [RSP + 0xc0]
MOV RAX,qword ptr [RSP + 0xc8]
MOV qword ptr [RSP + 0x90],RCX
MOV qword ptr [RSP + 0x98],RAX
LAB_001f2866:
CALL 0x001a0490
MOV qword ptr [RSP + 0x10],RDX
MOV qword ptr [RSP + 0x18],RAX
JMP 0x001f2877
LAB_001f2877:
MOV RAX,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x70],RCX
MOV qword ptr [RSP + 0x78],RAX
LEA RAX,[RSP + 0x80]
MOV qword ptr [RSP + 0xe0],RAX
LEA RAX,[RSP + 0x70]
MOV qword ptr [RSP + 0xd8],RAX
MOV RCX,qword ptr [RSP + 0xe0]
MOV RAX,qword ptr [RSP + 0xd8]
MOV qword ptr [RSP + 0x100],RAX
MOV RAX,qword ptr [RSP + 0x100]
MOV qword ptr [RSP + 0xf8],RCX
MOV qword ptr [RSP + 0xf0],0x0
MOV qword ptr [RSP + 0xe8],RAX
MOV RAX,qword ptr [RSP + 0xf8]
MOV RCX,qword ptr [RSP + 0xf0]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RSP + 0xe8]
MOV qword ptr [RAX + 0x8],RCX
MOV RSI,qword ptr [RSP + 0x90]
MOV RDX,qword ptr [RSP + 0x98]
MOV RCX,qword ptr [RSP + 0x80]
MOV R8,qword ptr [RSP + 0x88]
LEA RDI,[RSP + 0x48]
CALL 0x001a0350
JMP 0x001f292f
LAB_001f292f:
JMP 0x001f2931
LAB_001f2931:
MOV RDI,qword ptr [RSP + 0x8]
LEA RSI,[RSP + 0x48]
CALL 0x0019ac10
JMP 0x001f2942
LAB_001f2942:
MOV RDI,qword ptr [RSP + 0x8]
MOV byte ptr [RSP + 0x2b],0x0
LEA RSI,[0x3117f8]
LEA RDX,[0x19ac60]
CALL 0x00192530
LAB_001f299e:
JMP 0x001f29a0
LAB_001f29a0:
MOV RCX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RCX]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RCX]
MOV RDI,qword ptr [RCX + 0x8]
CALL RAX
ADD RSP,0x108
RET
|
/* WARNING: Restarted to delay deadcode elimination for space: stack */
/* aimrt::channel::ContextRef::SetUsed() */
void __thiscall aimrt::channel::ContextRef::SetUsed(ContextRef *this)
{
int8 uVar1;
int1 local_c0 [32];
ContextRef *local_a0;
int1 local_98 [16];
int1 local_88 [16];
char *local_78;
int8 local_70;
char *local_68;
int8 uStack_60;
int1 *local_58;
char **local_50;
char *local_48;
int8 uStack_40;
int1 *local_30;
int1 *local_28;
int1 *local_20;
int8 local_18;
int1 *local_10;
int1 *local_8;
local_a0 = this;
if ((*(long *)this != 0) && (**(long **)this != 0)) {
(**(code **)(**(long **)this + 8))(*(int8 *)(*(long *)this + 8));
return;
}
uVar1 = __cxa_allocate_exception(0x28);
local_58 = local_c0;
local_68 = "Reference is null.";
uStack_60 = 0x12;
local_50 = &local_68;
local_78 = "Reference is null.";
local_70 = 0x12;
local_48 = local_78;
uStack_40 = local_70;
/* try { // try from 001f2866 to 001f292c has its CatchHandler @ 001f2961 */
local_98 = fmt::v10::make_format_args<fmt::v10::basic_format_context<fmt::v10::appender,char>>();
local_28 = local_88;
local_30 = local_98;
local_18 = 0;
local_20 = local_30;
local_10 = local_28;
local_8 = local_30;
fmt::v10::vformat_abi_cxx11_(local_c0,local_78,local_70,0,local_30);
/* try { // try from 001f2931 to 001f295e has its CatchHandler @ 001f2971 */
_ZN5aimrt6common4util14AimRTExceptionC2IJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEQsr3stdE18constructible_fromIS9_DpT_EEEDpOSA_
(uVar1,local_c0);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar1,&common::util::AimRTException::typeinfo,
common::util::AimRTException::~AimRTException);
}
|
|
56,914
|
aimrt::channel::ContextRef::SetUsed()
|
aimrt_mujoco_sim/_deps/aimrt-src/src/interface/aimrt_module_cpp_interface/../aimrt_module_cpp_interface/channel/channel_context.h
|
void SetUsed() {
AIMRT_ASSERT(base_ptr_ && base_ptr_->ops, "Reference is null.");
base_ptr_->ops->set_used(base_ptr_->impl);
}
|
O3
|
c
|
aimrt::channel::ContextRef::SetUsed():
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq (%rdi), %rax
testq %rax, %rax
je 0x42fc9
movq (%rax), %rcx
testq %rcx, %rcx
je 0x42fc9
movq 0x8(%rax), %rdi
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
jmpq *0x8(%rcx)
movl $0x28, %edi
callq 0x1e7e0
movq %rax, %rbx
leaq 0x4082c(%rip), %rsi # 0x83809
movq %rsp, %rdi
leaq 0x20(%rsp), %r8
movl $0x12, %edx
xorl %ecx, %ecx
callq 0x25059
leaq 0x6b458(%rip), %rax # 0xae450
movq %rax, (%rbx)
movq %rbx, %rax
addq $0x18, %rax
movq %rax, 0x8(%rbx)
leaq 0x10(%rsp), %r15
movq -0x10(%r15), %rcx
cmpq %r15, %rcx
jne 0x4301d
movups (%r15), %xmm0
movups %xmm0, (%rax)
jmp 0x4302a
movq %rcx, 0x8(%rbx)
movq 0x10(%rsp), %rax
movq %rax, 0x18(%rbx)
movq 0x8(%rsp), %rax
movq %rax, 0x10(%rbx)
movq %r15, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
leaq 0x6b334(%rip), %rsi # 0xae380
leaq -0x1f31f(%rip), %rdx # 0x23d34
movq %rbx, %rdi
callq 0x1fec0
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x43081
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1f250
jmp 0x43081
movq %rax, %r14
movq %rbx, %rdi
callq 0x1ebc0
movq %r14, %rdi
callq 0x1ffd0
nop
|
_ZN5aimrt7channel10ContextRef7SetUsedEv:
push r15
push r14
push rbx
sub rsp, 30h
mov rax, [rdi]
test rax, rax
jz short loc_42FC9
mov rcx, [rax]
test rcx, rcx
jz short loc_42FC9
mov rdi, [rax+8]
add rsp, 30h
pop rbx
pop r14
pop r15
jmp qword ptr [rcx+8]
loc_42FC9:
mov edi, 28h ; '('; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aReferenceIsNul; "Reference is null."
mov rdi, rsp; int
lea r8, [rsp+48h+var_28]; int
mov edx, 12h; int
xor ecx, ecx; int
call _ZN3fmt3v107vformatB5cxx11ENS0_17basic_string_viewIcEENS0_17basic_format_argsINS0_20basic_format_contextINS0_8appenderEcEEEE; fmt::v10::vformat(fmt::v10::basic_string_view<char>,fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender,char>>)
lea rax, off_AE450
mov [rbx], rax
mov rax, rbx
add rax, 18h
mov [rbx+8], rax
lea r15, [rsp+48h+var_38]
mov rcx, [r15-10h]
cmp rcx, r15
jnz short loc_4301D
movups xmm0, xmmword ptr [r15]
movups xmmword ptr [rax], xmm0
jmp short loc_4302A
loc_4301D:
mov [rbx+8], rcx
mov rax, [rsp+48h+var_38]
mov [rbx+18h], rax
loc_4302A:
mov rax, [rsp+48h+var_40]
mov [rbx+10h], rax
mov [rsp+48h+var_48], r15
mov [rsp+48h+var_40], 0
mov byte ptr [rsp+48h+var_38], 0
lea rsi, _ZTIN5aimrt6common4util14AimRTExceptionE; lptinfo
lea rdx, _ZN5aimrt6common4util14AimRTExceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
mov rdi, [rsp+48h+var_48]; void *
cmp rdi, r15
jz short loc_43081
mov rsi, [rsp+48h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_43081
mov r14, rax
mov rdi, rbx; void *
call ___cxa_free_exception
loc_43081:
mov rdi, r14
call __Unwind_Resume
|
long long aimrt::channel::ContextRef::SetUsed(aimrt::channel::ContextRef *this)
{
_QWORD *v1; // rax
char *exception; // rbx
void *v4; // [rsp+0h] [rbp-48h] BYREF
long long v5; // [rsp+8h] [rbp-40h]
__int128 v6; // [rsp+10h] [rbp-38h] BYREF
v1 = *(_QWORD **)this;
if ( !*(_QWORD *)this || !*v1 )
{
exception = (char *)__cxa_allocate_exception(0x28uLL);
fmt::v10::vformat[abi:cxx11](&v4);
*(_QWORD *)exception = off_AE450;
*((_QWORD *)exception + 1) = exception + 24;
if ( v4 == &v6 )
{
*(_OWORD *)(exception + 24) = v6;
}
else
{
*((_QWORD *)exception + 1) = v4;
*((_QWORD *)exception + 3) = v6;
}
*((_QWORD *)exception + 2) = v5;
v4 = &v6;
v5 = 0LL;
LOBYTE(v6) = 0;
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'aimrt::common::util::AimRTException,
(void (*)(void *))aimrt::common::util::AimRTException::~AimRTException);
}
return (*(long long ( **)(_QWORD))(*v1 + 8LL))(v1[1]);
}
|
SetUsed:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV RAX,qword ptr [RDI]
TEST RAX,RAX
JZ 0x00142fc9
MOV RCX,qword ptr [RAX]
TEST RCX,RCX
JZ 0x00142fc9
MOV RDI,qword ptr [RAX + 0x8]
ADD RSP,0x30
POP RBX
POP R14
POP R15
JMP qword ptr [RCX + 0x8]
LAB_00142fc9:
MOV EDI,0x28
CALL 0x0011e7e0
MOV RBX,RAX
LAB_00142fd6:
LEA RSI,[0x183809]
MOV RDI,RSP
LEA R8,[RSP + 0x20]
MOV EDX,0x12
XOR ECX,ECX
CALL 0x00125059
LEA RAX,[0x1ae450]
MOV qword ptr [RBX],RAX
MOV RAX,RBX
ADD RAX,0x18
MOV qword ptr [RBX + 0x8],RAX
LEA R15,[RSP + 0x10]
MOV RCX,qword ptr [R15 + -0x10]
CMP RCX,R15
JNZ 0x0014301d
MOVUPS XMM0,xmmword ptr [R15]
MOVUPS xmmword ptr [RAX],XMM0
JMP 0x0014302a
LAB_0014301d:
MOV qword ptr [RBX + 0x8],RCX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RBX + 0x18],RAX
LAB_0014302a:
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RBX + 0x10],RAX
MOV qword ptr [RSP],R15
MOV qword ptr [RSP + 0x8],0x0
MOV byte ptr [RSP + 0x10],0x0
LAB_00143045:
LEA RSI,[0x1ae380]
LEA RDX,[0x123d34]
MOV RDI,RBX
CALL 0x0011fec0
|
/* aimrt::channel::ContextRef::SetUsed() */
void __thiscall aimrt::channel::ContextRef::SetUsed(ContextRef *this)
{
long *plVar1;
int8 *puVar2;
uint *local_48;
int8 local_40;
uint local_38;
int4 uStack_34;
int4 uStack_30;
int4 uStack_2c;
int1 local_28 [16];
plVar1 = *(long **)this;
if ((plVar1 != (long *)0x0) && (*plVar1 != 0)) {
/* WARNING: Could not recover jumptable at 0x00142fc6. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(*plVar1 + 8))(plVar1[1]);
return;
}
puVar2 = (int8 *)__cxa_allocate_exception(0x28);
/* try { // try from 00142fd6 to 00142ff0 has its CatchHandler @ 00143076 */
fmt::v10::vformat_abi_cxx11_(&local_48,"Reference is null.",0x12,0,local_28);
*puVar2 = &PTR__AimRTException_001ae450;
puVar2[1] = puVar2 + 3;
if (local_48 == &local_38) {
*(uint *)(puVar2 + 3) = local_38;
*(int4 *)((long)puVar2 + 0x1c) = uStack_34;
*(int4 *)(puVar2 + 4) = uStack_30;
*(int4 *)((long)puVar2 + 0x24) = uStack_2c;
}
else {
puVar2[1] = local_48;
puVar2[3] = CONCAT44(uStack_34,local_38);
}
puVar2[2] = local_40;
local_40 = 0;
local_38 = local_38 & 0xffffff00;
local_48 = &local_38;
/* try { // try from 00143045 to 0014305a has its CatchHandler @ 0014305b */
/* WARNING: Subroutine does not return */
__cxa_throw(puVar2,&common::util::AimRTException::typeinfo,
common::util::AimRTException::~AimRTException);
}
|
|
56,915
|
LoadWave
|
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/raudio.c
|
Wave LoadWave(const char *fileName)
{
Wave wave = { 0 };
// Loading file to memory
int dataSize = 0;
unsigned char *fileData = LoadFileData(fileName, &dataSize);
// Loading wave from memory data
if (fileData != NULL) wave = LoadWaveFromMemory(GetFileExtension(fileName), fileData, dataSize);
UnloadFileData(fileData);
return wave;
}
|
O0
|
c
|
LoadWave:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x40(%rbp)
movq %rdi, %rax
movq %rax, -0x38(%rbp)
movq %rsi, -0x8(%rbp)
xorl %esi, %esi
movl $0x18, %edx
callq 0xa2d0
movl $0x0, -0xc(%rbp)
movq -0x8(%rbp), %rdi
leaq -0xc(%rbp), %rsi
callq 0x182f80
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x7a669
movq -0x8(%rbp), %rdi
callq 0xd11a0
movq %rax, %rsi
movq -0x18(%rbp), %rdx
movl -0xc(%rbp), %ecx
leaq -0x30(%rbp), %rdi
callq 0x7a680
movq -0x40(%rbp), %rax
movq -0x30(%rbp), %rcx
movq %rcx, (%rax)
movq -0x28(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x20(%rbp), %rcx
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rdi
callq 0x183170
movq -0x38(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
|
LoadWave:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_40], rdi
mov rax, rdi
mov [rbp+var_38], rax
mov [rbp+var_8], rsi
xor esi, esi
mov edx, 18h
call _memset
mov [rbp+var_C], 0
mov rdi, [rbp+var_8]
lea rsi, [rbp+var_C]
call LoadFileData
mov [rbp+var_18], rax
cmp [rbp+var_18], 0
jz short loc_7A669
mov rdi, [rbp+var_8]
call GetFileExtension
mov rsi, rax
mov rdx, [rbp+var_18]
mov ecx, [rbp+var_C]
lea rdi, [rbp+var_30]
call LoadWaveFromMemory
mov rax, [rbp+var_40]
mov rcx, [rbp+var_30]
mov [rax], rcx
mov rcx, [rbp+var_28]
mov [rax+8], rcx
mov rcx, [rbp+var_20]
mov [rax+10h], rcx
loc_7A669:
mov rdi, [rbp+var_18]
call UnloadFileData
mov rax, [rbp+var_38]
add rsp, 40h
pop rbp
retn
|
_QWORD * LoadWave(_QWORD *a1, long long a2)
{
long long FileExtension; // rax
_QWORD v4[3]; // [rsp+10h] [rbp-30h] BYREF
long long v5; // [rsp+28h] [rbp-18h]
unsigned int v6; // [rsp+34h] [rbp-Ch] BYREF
long long v7; // [rsp+38h] [rbp-8h]
v7 = a2;
memset(a1, 0LL, 24LL);
v6 = 0;
v5 = LoadFileData(a2, &v6);
if ( v5 )
{
FileExtension = GetFileExtension(v7);
LoadWaveFromMemory(v4, FileExtension, v5, v6);
*a1 = v4[0];
a1[1] = v4[1];
a1[2] = v4[2];
}
UnloadFileData(v5);
return a1;
}
|
LoadWave:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x40],RDI
MOV RAX,RDI
MOV qword ptr [RBP + -0x38],RAX
MOV qword ptr [RBP + -0x8],RSI
XOR ESI,ESI
MOV EDX,0x18
CALL 0x0010a2d0
MOV dword ptr [RBP + -0xc],0x0
MOV RDI,qword ptr [RBP + -0x8]
LEA RSI,[RBP + -0xc]
CALL 0x00282f80
MOV qword ptr [RBP + -0x18],RAX
CMP qword ptr [RBP + -0x18],0x0
JZ 0x0017a669
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001d11a0
MOV RSI,RAX
MOV RDX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0xc]
LEA RDI,[RBP + -0x30]
CALL 0x0017a680
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX + 0x8],RCX
MOV RCX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x10],RCX
LAB_0017a669:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x00283170
MOV RAX,qword ptr [RBP + -0x38]
ADD RSP,0x40
POP RBP
RET
|
int8 * LoadWave(int8 *param_1,int8 param_2)
{
int8 uVar1;
int8 local_38;
int8 local_30;
int8 local_28;
long local_20;
int4 local_14;
int8 local_10;
local_10 = param_2;
memset(param_1,0,0x18);
local_14 = 0;
local_20 = LoadFileData(local_10,&local_14);
if (local_20 != 0) {
uVar1 = GetFileExtension(local_10);
LoadWaveFromMemory(&local_38,uVar1,local_20,local_14);
*param_1 = local_38;
param_1[1] = local_30;
param_1[2] = local_28;
}
UnloadFileData(local_20);
return param_1;
}
|
|
56,916
|
Stat_table::delete_stat()
|
eloqsql/sql/sql_statistics.cc
|
bool delete_stat()
{
int err;
if ((err= stat_file->ha_delete_row(record[0])))
return TRUE;
/* Make change permanent and avoid 'table is marked as crashed' errors */
stat_file->extra(HA_EXTRA_FLUSH);
return FALSE;
}
|
O0
|
cpp
|
Stat_table::delete_stat():
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq 0x8(%rax), %rdi
movq 0x18(%rax), %rsi
callq 0x8ebe50
movl %eax, -0x14(%rbp)
cmpl $0x0, %eax
je 0x6760bf
movb $0x1, -0x1(%rbp)
jmp 0x6760d9
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
movq (%rdi), %rax
movl $0x16, %esi
callq *0x298(%rax)
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
|
_ZN10Stat_table11delete_statEv:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
mov [rbp+var_20], rax
mov rdi, [rax+8]; this
mov rsi, [rax+18h]; unsigned __int8 *
call _ZN7handler13ha_delete_rowEPKh; handler::ha_delete_row(uchar const*)
mov [rbp+var_14], eax
cmp eax, 0
jz short loc_6760BF
mov [rbp+var_1], 1
jmp short loc_6760D9
loc_6760BF:
mov rax, [rbp+var_20]
mov rdi, [rax+8]
mov rax, [rdi]
mov esi, 16h
call qword ptr [rax+298h]
mov [rbp+var_1], 0
loc_6760D9:
mov al, [rbp+var_1]
and al, 1
add rsp, 20h
pop rbp
retn
|
char Stat_table::delete_stat(Stat_table *this)
{
char v2; // [rsp+1Fh] [rbp-1h]
if ( (unsigned int)handler::ha_delete_row(*((handler **)this + 1), *((const unsigned __int8 **)this + 3)) )
{
v2 = 1;
}
else
{
(*(void ( **)(_QWORD, long long))(**((_QWORD **)this + 1) + 664LL))(*((_QWORD *)this + 1), 22LL);
v2 = 0;
}
return v2 & 1;
}
|
need_reopen:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV AL,byte ptr [RAX + 0x10]
AND AL,0x1
POP RBP
RET
|
/* MDL_deadlock_and_lock_abort_error_handler::need_reopen() const */
ulong __thiscall
MDL_deadlock_and_lock_abort_error_handler::need_reopen
(MDL_deadlock_and_lock_abort_error_handler *this)
{
return CONCAT71((int7)((ulong)this >> 8),this[0x10]) & 0xffffffffffffff01;
}
|
|
56,917
|
js_print
|
bluesky950520[P]quickjs/quickjs-libc.c
|
static JSValue js_print(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
#ifdef _WIN32
HANDLE handle;
DWORD mode;
#endif
const char *s;
DynBuf b;
int i;
dbuf_init(&b);
for(i = 0; i < argc; i++) {
s = JS_ToCString(ctx, argv[i]);
if (s) {
dbuf_printf(&b, "%s%s", &" "[!i], s);
JS_FreeCString(ctx, s);
} else {
dbuf_printf(&b, "%s<exception>", &" "[!i]);
JS_FreeValue(ctx, JS_GetException(ctx));
}
}
dbuf_putc(&b, '\n');
#ifdef _WIN32
// use WriteConsoleA with CP_UTF8 for better Unicode handling vis-a-vis
// the mangling that happens when going through msvcrt's stdio layer,
// *except* when stdout is redirected to something that is not a console
handle = (HANDLE)_get_osfhandle(/*STDOUT_FILENO*/1); // don't CloseHandle
if (GetFileType(handle) != FILE_TYPE_CHAR)
goto fallback;
if (!GetConsoleMode(handle, &mode))
goto fallback;
handle = GetStdHandle(STD_OUTPUT_HANDLE);
if (handle == INVALID_HANDLE_VALUE)
goto fallback;
mode = GetConsoleOutputCP();
SetConsoleOutputCP(CP_UTF8);
WriteConsoleA(handle, b.buf, b.size, NULL, NULL);
SetConsoleOutputCP(mode);
FlushFileBuffers(handle);
goto done;
fallback:
#endif
fwrite(b.buf, 1, b.size, stdout);
fflush(stdout);
goto done; // avoid unused label warning
done:
dbuf_free(&b);
return JS_UNDEFINED;
}
|
O0
|
c
|
js_print:
subq $0x98, %rsp
movq %rsi, 0x78(%rsp)
movq %rdx, 0x80(%rsp)
movq %rdi, 0x70(%rsp)
movl %ecx, 0x6c(%rsp)
movq %r8, 0x60(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x1e3d0
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
cmpl 0x6c(%rsp), %eax
jge 0x11157
movq 0x70(%rsp), %rdi
movq 0x60(%rsp), %rax
movslq 0x24(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
callq 0x147e0
movq %rax, 0x58(%rsp)
cmpq $0x0, 0x58(%rsp)
je 0x110e5
cmpl $0x0, 0x24(%rsp)
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
leaq 0xfcda3(%rip), %rdx # 0x10de5c
addq %rax, %rdx
movq 0x58(%rsp), %rcx
leaq 0x28(%rsp), %rdi
leaq 0xf9184(%rip), %rsi # 0x10a251
movb $0x0, %al
callq 0x1e750
movq 0x70(%rsp), %rdi
movq 0x58(%rsp), %rsi
callq 0x29e50
jmp 0x11145
cmpl $0x0, 0x24(%rsp)
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
leaq 0xfcd5f(%rip), %rdx # 0x10de5c
addq %rax, %rdx
leaq 0x28(%rsp), %rdi
leaq 0xf914a(%rip), %rsi # 0x10a256
movb $0x0, %al
callq 0x1e750
movq 0x70(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x70(%rsp), %rdi
callq 0x2cf70
movq 0x8(%rsp), %rdi
movq %rax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
callq 0x23c90
jmp 0x11147
movl 0x24(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x24(%rsp)
jmp 0x11064
leaq 0x28(%rsp), %rdi
movl $0xa, %esi
callq 0x1e6d0
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rdx
movq 0x124e39(%rip), %rax # 0x135fb0
movq (%rax), %rcx
movl $0x1, %esi
callq 0xe8c0
movq 0x124e25(%rip), %rax # 0x135fb0
movq (%rax), %rdi
callq 0xe680
leaq 0x28(%rsp), %rdi
callq 0x1e930
movl $0x0, 0x88(%rsp)
movq $0x3, 0x90(%rsp)
movq 0x88(%rsp), %rax
movq 0x90(%rsp), %rdx
addq $0x98, %rsp
retq
nopl (%rax)
|
js_print:
sub rsp, 98h
mov [rsp+98h+var_20], rsi
mov [rsp+98h+var_18], rdx
mov [rsp+98h+var_28], rdi
mov [rsp+98h+var_2C], ecx
mov [rsp+98h+var_38], r8
lea rdi, [rsp+98h+var_70]
call dbuf_init
mov [rsp+98h+var_74], 0
loc_11064:
mov eax, [rsp+98h+var_74]
cmp eax, [rsp+98h+var_2C]
jge loc_11157
mov rdi, [rsp+98h+var_28]
mov rax, [rsp+98h+var_38]
movsxd rcx, [rsp+98h+var_74]
shl rcx, 4
add rax, rcx
mov rsi, [rax]
mov rdx, [rax+8]
call JS_ToCString
mov [rsp+98h+var_40], rax
cmp [rsp+98h+var_40], 0
jz short loc_110E5
cmp [rsp+98h+var_74], 0
setnz al
xor al, 0FFh
and al, 1
movzx eax, al
cdqe
lea rdx, asc_10DE53+9; " "
add rdx, rax
mov rcx, [rsp+98h+var_40]
lea rdi, [rsp+98h+var_70]
lea rsi, aSS; "%s%s"
mov al, 0
call dbuf_printf
mov rdi, [rsp+98h+var_28]
mov rsi, [rsp+98h+var_40]
call JS_FreeCString
jmp short loc_11145
loc_110E5:
cmp [rsp+98h+var_74], 0
setnz al
xor al, 0FFh
and al, 1
movzx eax, al
cdqe
lea rdx, asc_10DE53+9; " "
add rdx, rax
lea rdi, [rsp+98h+var_70]
lea rsi, aSException; "%s<exception>"
mov al, 0
call dbuf_printf
mov rax, [rsp+98h+var_28]
mov [rsp+98h+var_90], rax
mov rdi, [rsp+98h+var_28]
call JS_GetException
mov rdi, [rsp+98h+var_90]
mov [rsp+98h+var_88], rax
mov [rsp+98h+var_80], rdx
mov rsi, [rsp+98h+var_88]
mov rdx, [rsp+98h+var_80]
call JS_FreeValue
loc_11145:
jmp short $+2
loc_11147:
mov eax, [rsp+98h+var_74]
add eax, 1
mov [rsp+98h+var_74], eax
jmp loc_11064
loc_11157:
lea rdi, [rsp+98h+var_70]
mov esi, 0Ah
call dbuf_putc
mov rdi, [rsp+98h+var_70]
mov rdx, [rsp+98h+var_68]
mov rax, cs:stdout_ptr
mov rcx, [rax]
mov esi, 1
call _fwrite
mov rax, cs:stdout_ptr
mov rdi, [rax]
call _fflush
lea rdi, [rsp+98h+var_70]
call dbuf_free
mov dword ptr [rsp+98h+var_10], 0
mov [rsp+98h+var_8], 3
mov rax, [rsp+98h+var_10]
mov rdx, [rsp+98h+var_8]
add rsp, 98h
retn
|
long long js_print(long long a1, long long a2, long long a3, int a4, long long a5)
{
int v5; // ecx
int v6; // r8d
int v7; // r9d
long long v8; // rdx
char v10; // [rsp+0h] [rbp-98h]
long long v11; // [rsp+8h] [rbp-90h]
long long Exception; // [rsp+10h] [rbp-88h]
int i; // [rsp+24h] [rbp-74h]
_QWORD v14[6]; // [rsp+28h] [rbp-70h] BYREF
long long v15; // [rsp+58h] [rbp-40h]
long long v16; // [rsp+60h] [rbp-38h]
int v17; // [rsp+6Ch] [rbp-2Ch]
long long v18; // [rsp+70h] [rbp-28h]
long long v19; // [rsp+78h] [rbp-20h]
long long v20; // [rsp+80h] [rbp-18h]
long long v21; // [rsp+88h] [rbp-10h]
v19 = a2;
v20 = a3;
v18 = a1;
v17 = a4;
v16 = a5;
dbuf_init(v14);
for ( i = 0; i < v17; ++i )
{
v15 = JS_ToCString(v18, *(_QWORD *)(16LL * i + v16), *(_QWORD *)(16LL * i + v16 + 8));
if ( v15 )
{
dbuf_printf((unsigned int)v14, (unsigned int)"%s%s", (unsigned int)&asc_10DE53[(i == 0) + 9], v15, v6, v7, v10);
JS_FreeCString(v18, v15);
}
else
{
dbuf_printf(
(unsigned int)v14,
(unsigned int)"%s<exception>",
(unsigned int)&asc_10DE53[(i == 0) + 9],
v5,
v6,
v7,
v10);
v11 = v18;
Exception = JS_GetException(v18);
JS_FreeValue(v11, Exception, v8);
}
}
dbuf_putc(v14, 10LL);
fwrite(v14[0], 1LL, v14[1], stdout);
fflush(stdout);
dbuf_free(v14);
LODWORD(v21) = 0;
return v21;
}
|
js_print:
SUB RSP,0x98
MOV qword ptr [RSP + 0x78],RSI
MOV qword ptr [RSP + 0x80],RDX
MOV qword ptr [RSP + 0x70],RDI
MOV dword ptr [RSP + 0x6c],ECX
MOV qword ptr [RSP + 0x60],R8
LEA RDI,[RSP + 0x28]
CALL 0x0011e3d0
MOV dword ptr [RSP + 0x24],0x0
LAB_00111064:
MOV EAX,dword ptr [RSP + 0x24]
CMP EAX,dword ptr [RSP + 0x6c]
JGE 0x00111157
MOV RDI,qword ptr [RSP + 0x70]
MOV RAX,qword ptr [RSP + 0x60]
MOVSXD RCX,dword ptr [RSP + 0x24]
SHL RCX,0x4
ADD RAX,RCX
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
CALL 0x001147e0
MOV qword ptr [RSP + 0x58],RAX
CMP qword ptr [RSP + 0x58],0x0
JZ 0x001110e5
CMP dword ptr [RSP + 0x24],0x0
SETNZ AL
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CDQE
LEA RDX,[0x20de5c]
ADD RDX,RAX
MOV RCX,qword ptr [RSP + 0x58]
LEA RDI,[RSP + 0x28]
LEA RSI,[0x20a251]
MOV AL,0x0
CALL 0x0011e750
MOV RDI,qword ptr [RSP + 0x70]
MOV RSI,qword ptr [RSP + 0x58]
CALL 0x00129e50
JMP 0x00111145
LAB_001110e5:
CMP dword ptr [RSP + 0x24],0x0
SETNZ AL
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CDQE
LEA RDX,[0x20de5c]
ADD RDX,RAX
LEA RDI,[RSP + 0x28]
LEA RSI,[0x20a256]
MOV AL,0x0
CALL 0x0011e750
MOV RAX,qword ptr [RSP + 0x70]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0x70]
CALL 0x0012cf70
MOV RDI,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x18],RDX
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x18]
CALL 0x00123c90
LAB_00111145:
JMP 0x00111147
LAB_00111147:
MOV EAX,dword ptr [RSP + 0x24]
ADD EAX,0x1
MOV dword ptr [RSP + 0x24],EAX
JMP 0x00111064
LAB_00111157:
LEA RDI,[RSP + 0x28]
MOV ESI,0xa
CALL 0x0011e6d0
MOV RDI,qword ptr [RSP + 0x28]
MOV RDX,qword ptr [RSP + 0x30]
MOV RAX,qword ptr [0x00235fb0]
MOV RCX,qword ptr [RAX]
MOV ESI,0x1
CALL 0x0010e8c0
MOV RAX,qword ptr [0x00235fb0]
MOV RDI,qword ptr [RAX]
CALL 0x0010e680
LEA RDI,[RSP + 0x28]
CALL 0x0011e930
MOV dword ptr [RSP + 0x88],0x0
MOV qword ptr [RSP + 0x90],0x3
MOV RAX,qword ptr [RSP + 0x88]
MOV RDX,qword ptr [RSP + 0x90]
ADD RSP,0x98
RET
|
int1 [16]
js_print(int8 param_1,int8 param_2,int8 param_3,int param_4,long param_5)
{
int8 uVar1;
int8 *puVar2;
int1 auVar3 [16];
int local_74;
void *local_70;
size_t local_68;
long local_40;
long local_38;
int local_2c;
int8 local_28;
int8 local_20;
int8 local_18;
uint uStack_c;
local_38 = param_5;
local_2c = param_4;
local_28 = param_1;
local_20 = param_2;
local_18 = param_3;
dbuf_init(&local_70);
for (local_74 = 0; local_74 < local_2c; local_74 = local_74 + 1) {
puVar2 = (int8 *)(local_38 + (long)local_74 * 0x10);
local_40 = JS_ToCString(local_28,*puVar2,puVar2[1]);
if (local_40 == 0) {
dbuf_printf(&local_70,"%s<exception>",&DAT_0020de5c + (int)(uint)((local_74 != 0 ^ 0xffU) & 1)
);
uVar1 = local_28;
auVar3 = JS_GetException(local_28);
JS_FreeValue(uVar1,auVar3._0_8_,auVar3._8_8_);
}
else {
dbuf_printf(&local_70,&DAT_0020a251,&DAT_0020de5c + (int)(uint)((local_74 != 0 ^ 0xffU) & 1),
local_40);
JS_FreeCString(local_28,local_40);
}
}
dbuf_putc(&local_70,10);
fwrite(local_70,1,local_68,*(FILE **)PTR_stdout_00235fb0);
fflush(*(FILE **)PTR_stdout_00235fb0);
dbuf_free(&local_70);
auVar3._8_8_ = 3;
auVar3._0_8_ = (ulong)uStack_c << 0x20;
return auVar3;
}
|
|
56,918
|
js_print
|
bluesky950520[P]quickjs/quickjs-libc.c
|
static JSValue js_print(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
#ifdef _WIN32
HANDLE handle;
DWORD mode;
#endif
const char *s;
DynBuf b;
int i;
dbuf_init(&b);
for(i = 0; i < argc; i++) {
s = JS_ToCString(ctx, argv[i]);
if (s) {
dbuf_printf(&b, "%s%s", &" "[!i], s);
JS_FreeCString(ctx, s);
} else {
dbuf_printf(&b, "%s<exception>", &" "[!i]);
JS_FreeValue(ctx, JS_GetException(ctx));
}
}
dbuf_putc(&b, '\n');
#ifdef _WIN32
// use WriteConsoleA with CP_UTF8 for better Unicode handling vis-a-vis
// the mangling that happens when going through msvcrt's stdio layer,
// *except* when stdout is redirected to something that is not a console
handle = (HANDLE)_get_osfhandle(/*STDOUT_FILENO*/1); // don't CloseHandle
if (GetFileType(handle) != FILE_TYPE_CHAR)
goto fallback;
if (!GetConsoleMode(handle, &mode))
goto fallback;
handle = GetStdHandle(STD_OUTPUT_HANDLE);
if (handle == INVALID_HANDLE_VALUE)
goto fallback;
mode = GetConsoleOutputCP();
SetConsoleOutputCP(CP_UTF8);
WriteConsoleA(handle, b.buf, b.size, NULL, NULL);
SetConsoleOutputCP(mode);
FlushFileBuffers(handle);
goto done;
fallback:
#endif
fwrite(b.buf, 1, b.size, stdout);
fflush(stdout);
goto done; // avoid unused label warning
done:
dbuf_free(&b);
return JS_UNDEFINED;
}
|
O1
|
c
|
js_print:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, %rbx
movl %ecx, %ebp
movq %rdi, %r14
leaq 0x8(%rsp), %rdi
callq 0x1b35b
testl %ebp, %ebp
jle 0x150f2
movl %ebp, %r15d
shlq $0x4, %r15
leaq 0x8(%rsp), %r12
xorl %r13d, %r13d
movq (%rbx,%r13), %rdx
movq 0x8(%rbx,%r13), %rcx
movq %r14, %rdi
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x20bf7
cmpq $0x1, %r13
leaq 0x89d60(%rip), %rdx # 0x9edf8
adcq $0x0, %rdx
testq %rax, %rax
je 0x150c5
movq %rax, %rbp
movq %r12, %rdi
leaq 0x8708b(%rip), %rsi # 0x9c139
movq %rax, %rcx
xorl %eax, %eax
callq 0x1b50f
movq %r14, %rdi
movq %rbp, %rsi
callq 0x20edd
jmp 0x150e9
movq %r12, %rdi
leaq 0x8706f(%rip), %rsi # 0x9c13e
xorl %eax, %eax
callq 0x1b50f
movq %r14, %rdi
callq 0x2236b
movq %r14, %rdi
movq %rax, %rsi
callq 0x1d8b3
addq $0x10, %r13
cmpq %r13, %r15
jne 0x15077
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x1b4d0
movq (%rbx), %rdi
movq 0x8(%rbx), %rdx
movq 0xb7e9e(%rip), %r14 # 0xccfb0
movq (%r14), %rcx
movl $0x1, %esi
callq 0xe8d0
movq (%r14), %rdi
callq 0xe680
movq %rbx, %rdi
callq 0x1b62a
movl $0x3, %edx
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
js_print:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov rbx, r8
mov ebp, ecx
mov r14, rdi
lea rdi, [rsp+68h+var_60]
call dbuf_init
test ebp, ebp
jle loc_150F2
mov r15d, ebp
shl r15, 4
lea r12, [rsp+68h+var_60]
xor r13d, r13d
loc_15077:
mov rdx, [rbx+r13]
mov rcx, [rbx+r13+8]
mov rdi, r14
xor esi, esi
xor r8d, r8d
call JS_ToCStringLen2
cmp r13, 1
lea rdx, asc_9EDEF+9; " "
adc rdx, 0
test rax, rax
jz short loc_150C5
mov rbp, rax
mov rdi, r12
lea rsi, aSS; "%s%s"
mov rcx, rax
xor eax, eax
call dbuf_printf
mov rdi, r14
mov rsi, rbp
call JS_FreeCString
jmp short loc_150E9
loc_150C5:
mov rdi, r12
lea rsi, aSException; "%s<exception>"
xor eax, eax
call dbuf_printf
mov rdi, r14
call JS_GetException
mov rdi, r14
mov rsi, rax
call JS_FreeValue
loc_150E9:
add r13, 10h
cmp r15, r13
jnz short loc_15077
loc_150F2:
lea rbx, [rsp+68h+var_60]
mov rdi, rbx
mov esi, 0Ah
call dbuf_putc
mov rdi, [rbx]
mov rdx, [rbx+8]
mov r14, cs:stdout_ptr
mov rcx, [r14]
mov esi, 1
call _fwrite
mov rdi, [r14]
call _fflush
mov rdi, rbx
call dbuf_free
mov edx, 3
xor eax, eax
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long js_print(long long a1, long long a2, long long a3, int a4, long long a5)
{
long long v7; // r15
long long v8; // r13
long long v9; // rax
int v10; // ecx
int v11; // r8d
int v12; // r9d
char *v13; // rdx
long long v14; // rbp
long long Exception; // rax
long long v16; // rdx
char v18; // [rsp+0h] [rbp-68h]
_QWORD v19[12]; // [rsp+8h] [rbp-60h] BYREF
dbuf_init(v19);
if ( a4 > 0 )
{
v7 = 16LL * (unsigned int)a4;
v8 = 0LL;
do
{
v9 = JS_ToCStringLen2(a1, 0LL, *(_QWORD *)(a5 + v8), *(_QWORD *)(a5 + v8 + 8), 0LL);
v13 = &asc_9EDEF[(v8 == 0) + 9];
if ( v9 )
{
v14 = v9;
dbuf_printf((unsigned int)v19, (unsigned int)"%s%s", (_DWORD)v13, v9, v11, v12, v18);
JS_FreeCString(a1, v14);
}
else
{
dbuf_printf((unsigned int)v19, (unsigned int)"%s<exception>", (_DWORD)v13, v10, v11, v12, v18);
Exception = JS_GetException(a1);
JS_FreeValue(a1, Exception, v16);
}
v8 += 16LL;
}
while ( v7 != v8 );
}
dbuf_putc(v19, 10LL);
fwrite(v19[0], 1LL, v19[1], stdout);
fflush(stdout);
dbuf_free(v19);
return 0LL;
}
| |||
56,919
|
js_print
|
bluesky950520[P]quickjs/quickjs-libc.c
|
static JSValue js_print(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
#ifdef _WIN32
HANDLE handle;
DWORD mode;
#endif
const char *s;
DynBuf b;
int i;
dbuf_init(&b);
for(i = 0; i < argc; i++) {
s = JS_ToCString(ctx, argv[i]);
if (s) {
dbuf_printf(&b, "%s%s", &" "[!i], s);
JS_FreeCString(ctx, s);
} else {
dbuf_printf(&b, "%s<exception>", &" "[!i]);
JS_FreeValue(ctx, JS_GetException(ctx));
}
}
dbuf_putc(&b, '\n');
#ifdef _WIN32
// use WriteConsoleA with CP_UTF8 for better Unicode handling vis-a-vis
// the mangling that happens when going through msvcrt's stdio layer,
// *except* when stdout is redirected to something that is not a console
handle = (HANDLE)_get_osfhandle(/*STDOUT_FILENO*/1); // don't CloseHandle
if (GetFileType(handle) != FILE_TYPE_CHAR)
goto fallback;
if (!GetConsoleMode(handle, &mode))
goto fallback;
handle = GetStdHandle(STD_OUTPUT_HANDLE);
if (handle == INVALID_HANDLE_VALUE)
goto fallback;
mode = GetConsoleOutputCP();
SetConsoleOutputCP(CP_UTF8);
WriteConsoleA(handle, b.buf, b.size, NULL, NULL);
SetConsoleOutputCP(mode);
FlushFileBuffers(handle);
goto done;
fallback:
#endif
fwrite(b.buf, 1, b.size, stdout);
fflush(stdout);
goto done; // avoid unused label warning
done:
dbuf_free(&b);
return JS_UNDEFINED;
}
|
O2
|
c
|
js_print:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, %rbx
movl %ecx, %r14d
movq %rdi, %r15
leaq 0x8(%rsp), %rdi
callq 0x15bc4
xorl %eax, %eax
testl %r14d, %r14d
cmovlel %eax, %r14d
shlq $0x4, %r14
leaq 0x75d56(%rip), %rbp # 0x85d48
xorl %r12d, %r12d
cmpq %r12, %r14
je 0x1006d
movq (%rbx,%r12), %rsi
movq 0x8(%rbx,%r12), %rdx
movq %r15, %rdi
callq 0x11a6c
cmpq $0x1, %r12
movq %rbp, %rdx
adcq $0x0, %rdx
testq %rax, %rax
je 0x10041
movq %rax, %r13
leaq 0x8(%rsp), %rdi
leaq 0x730b8(%rip), %rsi # 0x830e2
movq %rax, %rcx
xorl %eax, %eax
callq 0x15d70
movq %r15, %rdi
movq %r13, %rsi
callq 0x1b057
jmp 0x10067
leaq 0x8(%rsp), %rdi
leaq 0x7309a(%rip), %rsi # 0x830e7
xorl %eax, %eax
callq 0x15d70
movq %r15, %rdi
callq 0x1c481
movq %r15, %rdi
movq %rax, %rsi
callq 0x1801e
addq $0x10, %r12
jmp 0xfff5
leaq 0x8(%rsp), %rbx
pushq $0xa
popq %rsi
movq %rbx, %rdi
callq 0x15d33
movq (%rbx), %rdi
movq 0x8(%rbx), %rdx
movq 0xaaf25(%rip), %r14 # 0xbafb0
movq (%r14), %rcx
pushq $0x1
popq %rsi
callq 0xe8f0
movq (%r14), %rdi
callq 0xe6a0
movq %rbx, %rdi
callq 0x15e89
pushq $0x3
popq %rdx
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
js_print:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov rbx, r8
mov r14d, ecx
mov r15, rdi
lea rdi, [rsp+68h+var_60]
call dbuf_init
xor eax, eax
test r14d, r14d
cmovle r14d, eax
shl r14, 4
lea rbp, asc_85D3F+9; " "
xor r12d, r12d
loc_FFF5:
cmp r14, r12
jz short loc_1006D
mov rsi, [rbx+r12]
mov rdx, [rbx+r12+8]
loc_10003:
mov rdi, r15
call JS_ToCString
cmp r12, 1
mov rdx, rbp
adc rdx, 0
test rax, rax
jz short loc_10041
mov r13, rax
lea rdi, [rsp+68h+var_60]
lea rsi, aSS; "%s%s"
mov rcx, rax
xor eax, eax
call dbuf_printf
mov rdi, r15
mov rsi, r13
call JS_FreeCString
jmp short loc_10067
loc_10041:
lea rdi, [rsp+68h+var_60]
lea rsi, aSException; "%s<exception>"
xor eax, eax
call dbuf_printf
mov rdi, r15
call JS_GetException
mov rdi, r15
mov rsi, rax
call JS_FreeValue
loc_10067:
add r12, 10h
jmp short loc_FFF5
loc_1006D:
lea rbx, [rsp+68h+var_60]
push 0Ah
pop rsi
mov rdi, rbx
call dbuf_putc
mov rdi, [rbx]
mov rdx, [rbx+8]
mov r14, cs:stdout_ptr
mov rcx, [r14]
push 1
pop rsi
call _fwrite
mov rdi, [r14]
call _fflush
mov rdi, rbx
call dbuf_free
push 3
pop rdx
xor eax, eax
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long js_print(long long a1, long long a2, long long a3, unsigned int a4, long long a5)
{
long long v6; // r14
long long v7; // r14
long long i; // r12
long long v9; // rax
int v10; // ecx
int v11; // r8d
int v12; // r9d
char *v13; // rdx
long long v14; // r13
long long Exception; // rax
long long v16; // rdx
char v18; // [rsp+0h] [rbp-68h]
_QWORD v19[12]; // [rsp+8h] [rbp-60h] BYREF
v6 = a4;
dbuf_init(v19);
if ( (int)v6 <= 0 )
v6 = 0LL;
v7 = 16 * v6;
for ( i = 0LL; v7 != i; i += 16LL )
{
v9 = JS_ToCString(a1, *(_QWORD *)(a5 + i), *(_QWORD *)(a5 + i + 8));
v13 = &asc_85D3F[(i == 0) + 9];
if ( v9 )
{
v14 = v9;
dbuf_printf((unsigned int)v19, (unsigned int)"%s%s", (_DWORD)v13, v9, v11, v12, v18);
JS_FreeCString(a1, v14);
}
else
{
dbuf_printf((unsigned int)v19, (unsigned int)"%s<exception>", (_DWORD)v13, v10, v11, v12, v18);
Exception = JS_GetException(a1);
JS_FreeValue(a1, Exception, v16);
}
}
dbuf_putc(v19, 10LL);
fwrite(v19[0], 1LL, v19[1], stdout);
fflush(stdout);
dbuf_free(v19);
return 0LL;
}
|
js_print:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV RBX,R8
MOV R14D,ECX
MOV R15,RDI
LEA RDI,[RSP + 0x8]
CALL 0x00115bc4
XOR EAX,EAX
TEST R14D,R14D
CMOVLE R14D,EAX
SHL R14,0x4
LEA RBP,[0x185d48]
XOR R12D,R12D
LAB_0010fff5:
CMP R14,R12
JZ 0x0011006d
MOV RSI,qword ptr [RBX + R12*0x1]
MOV RDX,qword ptr [RBX + R12*0x1 + 0x8]
MOV RDI,R15
CALL 0x00111a6c
CMP R12,0x1
MOV RDX,RBP
ADC RDX,0x0
TEST RAX,RAX
JZ 0x00110041
MOV R13,RAX
LEA RDI,[RSP + 0x8]
LEA RSI,[0x1830e2]
MOV RCX,RAX
XOR EAX,EAX
CALL 0x00115d70
MOV RDI,R15
MOV RSI,R13
CALL 0x0011b057
JMP 0x00110067
LAB_00110041:
LEA RDI,[RSP + 0x8]
LEA RSI,[0x1830e7]
XOR EAX,EAX
CALL 0x00115d70
MOV RDI,R15
CALL 0x0011c481
MOV RDI,R15
MOV RSI,RAX
CALL 0x0011801e
LAB_00110067:
ADD R12,0x10
JMP 0x0010fff5
LAB_0011006d:
LEA RBX,[RSP + 0x8]
PUSH 0xa
POP RSI
MOV RDI,RBX
CALL 0x00115d33
MOV RDI,qword ptr [RBX]
MOV RDX,qword ptr [RBX + 0x8]
MOV R14,qword ptr [0x001bafb0]
MOV RCX,qword ptr [R14]
PUSH 0x1
POP RSI
CALL 0x0010e8f0
MOV RDI,qword ptr [R14]
CALL 0x0010e6a0
MOV RDI,RBX
CALL 0x00115e89
PUSH 0x3
POP RDX
XOR EAX,EAX
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int1 [16]
js_print(int8 param_1,int8 param_2,int8 param_3,uint param_4,long param_5)
{
int *puVar1;
long lVar2;
int8 uVar3;
long lVar4;
ulong uVar5;
void *local_60;
size_t local_58;
uVar5 = (ulong)param_4;
dbuf_init(&local_60);
if ((int)param_4 < 1) {
uVar5 = 0;
}
for (lVar4 = 0; uVar5 * 0x10 != lVar4; lVar4 = lVar4 + 0x10) {
lVar2 = JS_ToCString(param_1,*(int8 *)(param_5 + lVar4),
*(int8 *)(param_5 + 8 + lVar4));
if (lVar2 == 0) {
dbuf_printf(&local_60,"%s<exception>",&DAT_00185d48 + (lVar4 == 0));
uVar3 = JS_GetException(param_1);
JS_FreeValue(param_1,uVar3);
}
else {
dbuf_printf(&local_60,&DAT_001830e2,&DAT_00185d48 + (lVar4 == 0),lVar2);
JS_FreeCString(param_1,lVar2);
}
}
dbuf_putc(&local_60,10);
puVar1 = PTR_stdout_001bafb0;
fwrite(local_60,1,local_58,*(FILE **)PTR_stdout_001bafb0);
fflush(*(FILE **)puVar1);
dbuf_free(&local_60);
return ZEXT816(3) << 0x40;
}
|
|
56,920
|
translog_only_in_buffers
|
eloqsql/storage/maria/ma_loghandler.c
|
static TRANSLOG_ADDRESS translog_only_in_buffers()
{
register TRANSLOG_ADDRESS addr;
DBUG_ENTER("translog_only_in_buffers");
mysql_mutex_lock(&log_descriptor.sent_to_disk_lock);
addr= log_descriptor.in_buffers_only;
mysql_mutex_unlock(&log_descriptor.sent_to_disk_lock);
DBUG_RETURN(addr);
}
|
O0
|
c
|
translog_only_in_buffers:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
leaq 0x420371(%rip), %rdi # 0x47a660
addq $0x800cc0, %rdi # imm = 0x800CC0
leaq 0xf8cbc(%rip), %rsi # 0x152fb9
movl $0x932, %edx # imm = 0x932
callq 0x510a0
movq 0xc2100a(%rip), %rax # 0xc7b318
movq %rax, -0x8(%rbp)
leaq 0x420347(%rip), %rdi # 0x47a660
addq $0x800cc0, %rdi # imm = 0x800CC0
callq 0x51110
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
translog_only_in_buffers:
push rbp
mov rbp, rsp
sub rsp, 10h
lea rdi, log_descriptor
add rdi, 800CC0h
lea rsi, aWorkspaceLlm4b_11; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 932h
call inline_mysql_mutex_lock_8
mov rax, cs:qword_C7B318
mov [rbp+var_8], rax
lea rdi, log_descriptor
add rdi, 800CC0h
call inline_mysql_mutex_unlock_8
mov rax, [rbp+var_8]
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
add rsp, 10h
pop rbp
retn
|
long long translog_only_in_buffers()
{
long long v1; // [rsp+8h] [rbp-8h]
inline_mysql_mutex_lock_8(
(long long)&log_descriptor[1048984],
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
0x932u);
v1 = qword_C7B318;
inline_mysql_mutex_unlock_8((long long)&log_descriptor[1048984]);
return v1;
}
|
translog_only_in_buffers:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
LEA RDI,[0x57a660]
ADD RDI,0x800cc0
LEA RSI,[0x252fb9]
MOV EDX,0x932
CALL 0x001510a0
MOV RAX,qword ptr [0x00d7b318]
MOV qword ptr [RBP + -0x8],RAX
LEA RDI,[0x57a660]
ADD RDI,0x800cc0
CALL 0x00151110
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x10]
ADD RSP,0x10
POP RBP
RET
|
int8 translog_only_in_buffers(void)
{
int8 uVar1;
inline_mysql_mutex_lock
(&DAT_00d7b320,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
0x932);
uVar1 = DAT_00d7b318;
inline_mysql_mutex_unlock(&DAT_00d7b320);
return uVar1;
}
|
|
56,921
|
translog_only_in_buffers
|
eloqsql/storage/maria/ma_loghandler.c
|
static TRANSLOG_ADDRESS translog_only_in_buffers()
{
register TRANSLOG_ADDRESS addr;
DBUG_ENTER("translog_only_in_buffers");
mysql_mutex_lock(&log_descriptor.sent_to_disk_lock);
addr= log_descriptor.in_buffers_only;
mysql_mutex_unlock(&log_descriptor.sent_to_disk_lock);
DBUG_RETURN(addr);
}
|
O3
|
c
|
translog_only_in_buffers:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
cmpq $0x0, 0xbb1794(%rip) # 0xc01770
jne 0x50013
leaq 0xbb174b(%rip), %rdi # 0xc01730
callq 0x29220
movq 0xbb1737(%rip), %rbx # 0xc01728
movq 0xbb1778(%rip), %rdi # 0xc01770
testq %rdi, %rdi
jne 0x5001a
leaq 0xbb172c(%rip), %rdi # 0xc01730
callq 0x291e0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
callq 0x2cd88
jmp 0x4ffea
leaq 0x33809f(%rip), %rax # 0x3880c0
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x4fffd
|
translog_only_in_buffers:
push rbp
mov rbp, rsp
push rbx
push rax
cmp cs:qword_C01770, 0
jnz short loc_50013
lea rdi, unk_C01730
call _pthread_mutex_lock
loc_4FFEA:
mov rbx, cs:qword_C01728
mov rdi, cs:qword_C01770
test rdi, rdi
jnz short loc_5001A
loc_4FFFD:
lea rdi, unk_C01730
loc_50004:
call _pthread_mutex_unlock
mov rax, rbx
add rsp, 8
pop rbx
pop rbp
retn
loc_50013:
call translog_only_in_buffers_cold_1
jmp short loc_4FFEA
loc_5001A:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_4FFFD
|
long long translog_only_in_buffers(long long a1)
{
long long v1; // rbx
if ( qword_C01770 )
translog_only_in_buffers_cold_1(a1);
else
pthread_mutex_lock(&unk_C01730);
v1 = qword_C01728;
if ( qword_C01770 )
((void ( *)(long long))PSI_server[44])(qword_C01770);
pthread_mutex_unlock(&unk_C01730);
return v1;
}
|
translog_only_in_buffers:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
CMP qword ptr [0x00d01770],0x0
JNZ 0x00150013
LEA RDI,[0xd01730]
CALL 0x00129220
LAB_0014ffea:
MOV RBX,qword ptr [0x00d01728]
MOV RDI,qword ptr [0x00d01770]
TEST RDI,RDI
JNZ 0x0015001a
LAB_0014fffd:
LEA RDI,[0xd01730]
CALL 0x001291e0
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP RBP
RET
LAB_00150013:
CALL 0x0012cd88
JMP 0x0014ffea
LAB_0015001a:
LEA RAX,[0x4880c0]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x0014fffd
|
int8 translog_only_in_buffers(void)
{
int8 uVar1;
if (DAT_00d01770 == 0) {
pthread_mutex_lock((pthread_mutex_t *)&DAT_00d01730);
}
else {
translog_only_in_buffers_cold_1();
}
uVar1 = DAT_00d01728;
if (DAT_00d01770 != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock((pthread_mutex_t *)&DAT_00d01730);
return uVar1;
}
|
|
56,922
|
ma_net_flush
|
eloqsql/libmariadb/libmariadb/ma_net.c
|
int ma_net_flush(NET *net)
{
int error=0;
/* don't flush if pipelined query is in progress */
if (net->extension->multi_status > COM_MULTI_OFF)
return 0;
if (net->buff != net->write_pos)
{
error=ma_net_real_write(net,(char*) net->buff,
(size_t) (net->write_pos - net->buff));
net->write_pos=net->buff;
}
if (net->compress)
net->pkt_nr= net->compress_pkt_nr;
return(error);
}
|
O0
|
c
|
ma_net_flush:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq 0x2a0(%rax), %rax
cmpl $0x0, (%rax)
jbe 0x6035c
movl $0x0, -0x4(%rbp)
jmp 0x603c6
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x18(%rcx), %rax
je 0x603a5
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
subq %rax, %rdx
callq 0x603d0
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x10(%rbp), %rax
cmpb $0x0, 0x84(%rax)
je 0x603c0
movq -0x10(%rbp), %rax
movl 0x64(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x60(%rax)
movl -0x14(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nop
|
ma_net_flush:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_14], 0
mov rax, [rbp+var_10]
mov rax, [rax+2A0h]
cmp dword ptr [rax], 0
jbe short loc_6035C
mov [rbp+var_4], 0
jmp short loc_603C6
loc_6035C:
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rcx, [rbp+var_10]
cmp rax, [rcx+18h]
jz short loc_603A5
mov rdi, [rbp+var_10]
mov rax, [rbp+var_10]
mov rsi, [rax+8]
mov rax, [rbp+var_10]
mov rdx, [rax+18h]
mov rax, [rbp+var_10]
mov rax, [rax+8]
sub rdx, rax
call ma_net_real_write
mov [rbp+var_14], eax
mov rax, [rbp+var_10]
mov rcx, [rax+8]
mov rax, [rbp+var_10]
mov [rax+18h], rcx
loc_603A5:
mov rax, [rbp+var_10]
cmp byte ptr [rax+84h], 0
jz short loc_603C0
mov rax, [rbp+var_10]
mov ecx, [rax+64h]
mov rax, [rbp+var_10]
mov [rax+60h], ecx
loc_603C0:
mov eax, [rbp+var_14]
mov [rbp+var_4], eax
loc_603C6:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
|
long long ma_net_flush(long long a1)
{
unsigned int v2; // [rsp+Ch] [rbp-14h]
v2 = 0;
if ( **(_DWORD **)(a1 + 672) )
{
return 0;
}
else
{
if ( *(_QWORD *)(a1 + 8) != *(_QWORD *)(a1 + 24) )
{
v2 = ma_net_real_write(a1, *(_QWORD *)(a1 + 8), *(_QWORD *)(a1 + 24) - *(_QWORD *)(a1 + 8));
*(_QWORD *)(a1 + 24) = *(_QWORD *)(a1 + 8);
}
if ( *(_BYTE *)(a1 + 132) )
*(_DWORD *)(a1 + 96) = *(_DWORD *)(a1 + 100);
return v2;
}
}
|
ma_net_flush:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x2a0]
CMP dword ptr [RAX],0x0
JBE 0x0016035c
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001603c6
LAB_0016035c:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x18]
JZ 0x001603a5
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
SUB RDX,RAX
CALL 0x001603d0
MOV dword ptr [RBP + -0x14],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x18],RCX
LAB_001603a5:
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX + 0x84],0x0
JZ 0x001603c0
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x64]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x60],ECX
LAB_001603c0:
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x4],EAX
LAB_001603c6:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int4 ma_net_flush(long param_1)
{
int4 local_1c;
int4 local_c;
local_1c = 0;
if (**(int **)(param_1 + 0x2a0) == 0) {
if (*(long *)(param_1 + 8) != *(long *)(param_1 + 0x18)) {
local_1c = ma_net_real_write(param_1,*(int8 *)(param_1 + 8),
*(long *)(param_1 + 0x18) - *(long *)(param_1 + 8));
*(int8 *)(param_1 + 0x18) = *(int8 *)(param_1 + 8);
}
if (*(char *)(param_1 + 0x84) != '\0') {
*(int4 *)(param_1 + 0x60) = *(int4 *)(param_1 + 100);
}
local_c = local_1c;
}
else {
local_c = 0;
}
return local_c;
}
|
|
56,923
|
coro::net::ip_address::from_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, coro::net::domain_t)
|
AlayaLite/build_O3/_deps/libcoro-src/include/coro/net/ip_address.hpp
|
static auto from_string(const std::string& address, domain_t domain = domain_t::ipv4) -> ip_address
{
ip_address addr{};
addr.m_domain = domain;
auto success = inet_pton(static_cast<int>(addr.m_domain), address.data(), addr.m_data.data());
if (success != 1)
{
throw std::runtime_error{"coro::net::ip_address faild to convert from string"};
}
return addr;
}
|
O3
|
cpp
|
coro::net::ip_address::from_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, coro::net::domain_t):
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %eax
movq %rdi, %rbx
leaq 0x4(%rdi), %rdx
xorps %xmm0, %xmm0
movups %xmm0, 0x4(%rdi)
movl %eax, (%rdi)
movq (%rsi), %rsi
movl %eax, %edi
callq 0x3470
cmpl $0x1, %eax
jne 0x4744
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl $0x10, %edi
callq 0x3150
movq %rax, %rbx
leaq 0x58fa(%rip), %rsi # 0xa052
movq %rax, %rdi
callq 0x3100
movq 0xa889(%rip), %rsi # 0xeff0
movq 0xa832(%rip), %rdx # 0xefa0
movq %rbx, %rdi
callq 0x3410
movq %rax, %r14
movq %rbx, %rdi
callq 0x31f0
movq %r14, %rdi
callq 0x3430
nop
|
_ZN4coro3net10ip_address11from_stringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_8domain_tE:
push r14
push rbx
push rax
mov eax, edx
mov rbx, rdi
lea rdx, [rdi+4]
xorps xmm0, xmm0
movups xmmword ptr [rdi+4], xmm0
mov [rdi], eax
mov rsi, [rsi]
mov edi, eax
call _inet_pton
cmp eax, 1
jnz short loc_4744
mov rax, rbx
add rsp, 8
pop rbx
pop r14
retn
loc_4744:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aCoroNetIpAddre; "coro::net::ip_address faild to convert "...
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
mov rdi, rbx; void *
call ___cxa_free_exception
mov rdi, r14
call __Unwind_Resume
|
long long coro::net::ip_address::from_string(long long a1, _QWORD *a2, unsigned int a3)
{
std::runtime_error *exception; // rbx
*(_OWORD *)(a1 + 4) = 0LL;
*(_DWORD *)a1 = a3;
if ( (unsigned int)inet_pton(a3, *a2, a1 + 4) != 1 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "coro::net::ip_address faild to convert from string");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
return a1;
}
|
from_string:
PUSH R14
PUSH RBX
PUSH RAX
MOV EAX,EDX
MOV RBX,RDI
LEA RDX,[RDI + 0x4]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x4],XMM0
MOV dword ptr [RDI],EAX
MOV RSI,qword ptr [RSI]
MOV EDI,EAX
CALL 0x00103470
CMP EAX,0x1
JNZ 0x00104744
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R14
RET
LAB_00104744:
MOV EDI,0x10
CALL 0x00103150
MOV RBX,RAX
LAB_00104751:
LEA RSI,[0x10a052]
MOV RDI,RAX
CALL 0x00103100
LAB_00104760:
MOV RSI,qword ptr [0x0010eff0]
MOV RDX,qword ptr [0x0010efa0]
MOV RDI,RBX
CALL 0x00103410
|
/* coro::net::ip_address::from_string(std::__cxx11::string const&, coro::net::domain_t) */
ip_address * __thiscall
coro::net::ip_address::from_string(ip_address *this,int8 *param_1,int param_3)
{
int iVar1;
runtime_error *this_00;
*(int8 *)(this + 4) = 0;
*(int8 *)(this + 0xc) = 0;
*(int *)this = param_3;
iVar1 = inet_pton(param_3,(char *)*param_1,this + 4);
if (iVar1 == 1) {
return this;
}
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00104751 to 0010475f has its CatchHandler @ 00104776 */
std::runtime_error::runtime_error(this_00,"coro::net::ip_address faild to convert from string");
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_0010eff0,PTR__runtime_error_0010efa0);
}
|
|
56,924
|
fct_reset_events_waits_history(PFS_thread*)
|
eloqsql/storage/perfschema/pfs_events_waits.cc
|
static void fct_reset_events_waits_history(PFS_thread *pfs_thread)
{
PFS_events_waits *wait= pfs_thread->m_waits_history;
PFS_events_waits *wait_last= wait + events_waits_history_per_thread;
pfs_thread->m_waits_history_index= 0;
pfs_thread->m_waits_history_full= false;
for ( ; wait < wait_last; wait++)
wait->m_wait_class= NO_WAIT_CLASS;
}
|
O0
|
cpp
|
fct_reset_events_waits_history(PFS_thread*):
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0xca0(%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
leaq 0x3b56f6(%rip), %rcx # 0x40da98
imulq $0xb0, (%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movl $0x0, 0xc9c(%rax)
movq -0x8(%rbp), %rax
movb $0x0, 0xc98(%rax)
movq -0x10(%rbp), %rax
cmpq -0x18(%rbp), %rax
jae 0x583ee
movq -0x10(%rbp), %rax
movl $0x0, 0x58(%rax)
movq -0x10(%rbp), %rax
addq $0xb0, %rax
movq %rax, -0x10(%rbp)
jmp 0x583c9
popq %rbp
retq
|
_ZL30fct_reset_events_waits_historyP10PFS_thread:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov rax, [rax+0CA0h]
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
lea rcx, events_waits_history_per_thread
imul rcx, [rcx], 0B0h
add rax, rcx
mov [rbp+var_18], rax
mov rax, [rbp+var_8]
mov dword ptr [rax+0C9Ch], 0
mov rax, [rbp+var_8]
mov byte ptr [rax+0C98h], 0
loc_583C9:
mov rax, [rbp+var_10]
cmp rax, [rbp+var_18]
jnb short loc_583EE
mov rax, [rbp+var_10]
mov dword ptr [rax+58h], 0
mov rax, [rbp+var_10]
add rax, 0B0h
mov [rbp+var_10], rax
jmp short loc_583C9
loc_583EE:
pop rbp
retn
|
unsigned long long fct_reset_events_waits_history(PFS_thread *a1)
{
unsigned long long result; // rax
unsigned long long v2; // [rsp+0h] [rbp-18h]
unsigned long long v3; // [rsp+8h] [rbp-10h]
v3 = *((_QWORD *)a1 + 404);
v2 = 176 * events_waits_history_per_thread + v3;
*((_DWORD *)a1 + 807) = 0;
*((_BYTE *)a1 + 3224) = 0;
while ( 1 )
{
result = v3;
if ( v3 >= v2 )
break;
*(_DWORD *)(v3 + 88) = 0;
v3 += 176LL;
}
return result;
}
|
fct_reset_events_waits_history:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0xca0]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x10]
LEA RCX,[0x50da98]
IMUL RCX,qword ptr [RCX],0xb0
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0xc9c],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0xc98],0x0
LAB_001583c9:
MOV RAX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RBP + -0x18]
JNC 0x001583ee
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x58],0x0
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0xb0
MOV qword ptr [RBP + -0x10],RAX
JMP 0x001583c9
LAB_001583ee:
POP RBP
RET
|
/* fct_reset_events_waits_history(PFS_thread*) */
void fct_reset_events_waits_history(PFS_thread *param_1)
{
ulong uVar1;
ulong local_18;
local_18 = *(ulong *)(param_1 + 0xca0);
uVar1 = local_18 + events_waits_history_per_thread * 0xb0;
*(int4 *)(param_1 + 0xc9c) = 0;
param_1[0xc98] = (PFS_thread)0x0;
for (; local_18 < uVar1; local_18 = local_18 + 0xb0) {
*(int4 *)(local_18 + 0x58) = 0;
}
return;
}
|
|
56,925
|
ma_control_file_write_and_force
|
eloqsql/storage/maria/ma_control_file.c
|
int ma_control_file_write_and_force(LSN last_checkpoint_lsn_arg,
uint32 last_logno_arg,
TrID max_trid_arg,
uint8 recovery_failures_arg)
{
uchar buffer[CF_MAX_SIZE];
uint32 sum;
my_bool no_need_sync;
DBUG_ENTER("ma_control_file_write_and_force");
/*
We don't need to sync if this is just an increase of
recovery_failures: it's even good if that counter is not increased on disk
in case of power or hardware failure (less false positives when removing
logs).
*/
no_need_sync= ((last_checkpoint_lsn == last_checkpoint_lsn_arg) &&
(last_logno == last_logno_arg) &&
(max_trid_in_control_file == max_trid_arg) &&
(recovery_failures_arg > 0));
if (control_file_fd < 0)
DBUG_RETURN(1);
#ifndef DBUG_OFF
if (maria_multi_threaded)
translog_lock_handler_assert_owner();
#endif
lsn_store(buffer + CF_LSN_OFFSET, last_checkpoint_lsn_arg);
int4store(buffer + CF_FILENO_OFFSET, last_logno_arg);
transid_store(buffer + CF_MAX_TRID_OFFSET, max_trid_arg);
(buffer + CF_RECOV_FAIL_OFFSET)[0]= recovery_failures_arg;
if (cf_changeable_size > CF_CHANGEABLE_TOTAL_SIZE)
{
/*
More room than needed for us. Must be a newer version. Clear part which
we cannot maintain, so that any future version notices we didn't
maintain its extra data.
*/
uint zeroed= cf_changeable_size - CF_CHANGEABLE_TOTAL_SIZE;
char msg[150];
bzero(buffer + CF_CHANGEABLE_TOTAL_SIZE, zeroed);
my_snprintf(msg, sizeof(msg),
"Control file must be from a newer version; zero-ing out %u"
" unknown bytes in control file at offset %u", zeroed,
cf_changeable_size + cf_create_time_size);
ma_message_no_user(ME_WARNING, msg);
}
else
{
/* not enough room for what we need to store: enlarge */
cf_changeable_size= CF_CHANGEABLE_TOTAL_SIZE;
}
/* Note that the create-time portion is not touched */
/* Checksum is stored first */
compile_time_assert(CF_CHECKSUM_OFFSET == 0);
sum= my_checksum(0, buffer + CF_CHECKSUM_SIZE,
cf_changeable_size - CF_CHECKSUM_SIZE);
int4store(buffer, sum);
if (my_pwrite(control_file_fd, buffer, cf_changeable_size,
cf_create_time_size, MYF(MY_FNABP | MY_WME)) ||
(!no_need_sync && mysql_file_sync(control_file_fd, MYF(MY_WME))))
DBUG_RETURN(1);
last_checkpoint_lsn= last_checkpoint_lsn_arg;
last_logno= last_logno_arg;
max_trid_in_control_file= max_trid_arg;
recovery_failures= recovery_failures_arg;
cf_changeable_size= CF_CHANGEABLE_TOTAL_SIZE; /* no more warning */
DBUG_RETURN(0);
}
|
O3
|
c
|
ma_control_file_write_and_force:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2b8, %rsp # imm = 0x2B8
movl %ecx, %r12d
movq %rdx, %r14
movq %rdi, %r13
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
cmpq %rdi, 0x3b5a26(%rip) # 0x3fd568
setne %al
cmpl %esi, 0x3b5a25(%rip) # 0x3fd570
setne %dl
cmpq %r14, 0x3b5a23(%rip) # 0x3fd578
setne %dil
testl %ecx, %ecx
sete %cl
movl $0x1, %r15d
cmpl $0x0, 0x33c625(%rip) # 0x384190
js 0x47d2e
movb %dil, -0x2d1(%rbp)
movb %dl, -0x2d2(%rbp)
movb %cl, -0x2d3(%rbp)
movb %al, -0x2d4(%rbp)
movq %r13, %rax
shrq $0x20, %rax
leaq -0x22c(%rbp), %r15
movb %al, (%r15)
movq %r13, %rax
shrq $0x28, %rax
movb %al, 0x1(%r15)
movq %r13, %rax
shrq $0x30, %rax
movb %al, 0x2(%r15)
movl %r13d, 0x3(%r15)
movl %esi, 0x7(%r15)
movl %r14d, 0xb(%r15)
movq %r14, %rax
shrq $0x20, %rax
movw %ax, 0xf(%r15)
movb %r12b, 0x11(%r15)
movl 0x3b59b5(%rip), %ebx # 0x3fd588
cmpl $0x17, %ebx
movl %esi, -0x2dc(%rbp)
jb 0x47c56
movl %r12d, -0x2d8(%rbp)
leal -0x16(%rbx), %r12d
leaq -0x21a(%rbp), %rdi
movl $0x1ea, %ecx # imm = 0x1EA
xorl %esi, %esi
movq %r12, %rdx
callq 0x297f0
addl 0x3b597f(%rip), %ebx # 0x3fd584
leaq 0x91db2(%rip), %rdx # 0xd99be
leaq -0x2d0(%rbp), %rdi
movl $0x96, %esi
movl %r12d, %ecx
movl -0x2d8(%rbp), %r12d
movl %ebx, %r8d
xorl %eax, %eax
callq 0xd6956
leaq 0x91df1(%rip), %rsi # 0xd9a24
movl $0x800, %edx # imm = 0x800
movl $0xa8, %edi
leaq -0x2d0(%rbp), %rcx
xorl %eax, %eax
callq 0x9de41
movl 0x3b5937(%rip), %edx # 0x3fd588
addl $-0x4, %edx
jmp 0x47c65
movl $0x16, 0x3b5928(%rip) # 0x3fd588
movl $0x12, %edx
xorl %edi, %edi
movq %r15, %rsi
callq 0xa7b30
leaq -0x230(%rbp), %rsi
movl %eax, (%rsi)
movl 0x33c512(%rip), %edi # 0x384190
movl 0x3b5904(%rip), %edx # 0x3fd588
movl 0x3b58fa(%rip), %ecx # 0x3fd584
movl $0x12, %r8d
callq 0xa033e
testq %rax, %rax
je 0x47ca5
movl $0x1, %r15d
jmp 0x47d2e
movb -0x2d4(%rbp), %al
orb -0x2d2(%rbp), %al
movb -0x2d3(%rbp), %cl
orb -0x2d1(%rbp), %cl
orb %al, %cl
movl $0x1, %r15d
je 0x47d00
movl 0x33c4c3(%rip), %ebx # 0x384190
leaq 0x33e33c(%rip), %rax # 0x386010
movq (%rax), %rax
leaq -0x2d0(%rbp), %rdi
movl %ebx, %esi
movl $0x10, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x47d52
movl $0x10, %esi
movl %ebx, %edi
callq 0xa0ff4
testl %eax, %eax
jne 0x47d2e
movq %r13, 0x3b5861(%rip) # 0x3fd568
movl -0x2dc(%rbp), %eax
movl %eax, 0x3b585d(%rip) # 0x3fd570
movq %r14, 0x3b585e(%rip) # 0x3fd578
movb %r12b, 0x3b585f(%rip) # 0x3fd580
movl $0x16, 0x3b585d(%rip) # 0x3fd588
xorl %r15d, %r15d
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x47d71
movl %r15d, %eax
addq $0x2b8, %rsp # imm = 0x2B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0x2e0(%rbp), %r15
movq %rax, %rdi
movl %ebx, %esi
movq %r15, %rdx
callq 0x2a799
movl (%r15), %eax
movl $0x1, %r15d
jmp 0x47cfc
callq 0x29270
|
ma_control_file_write_and_force:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 2B8h
mov r12d, ecx
mov r14, rdx
mov r13, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
cmp cs:last_checkpoint_lsn, rdi
setnz al
cmp cs:last_logno, esi
setnz dl
cmp cs:max_trid_in_control_file, r14
setnz dil
test ecx, ecx
setz cl
mov r15d, 1
cmp cs:control_file_fd, 0
js loc_47D2E
mov [rbp+var_2D1], dil
mov [rbp+var_2D2], dl
mov [rbp+var_2D3], cl
mov [rbp+var_2D4], al
mov rax, r13
shr rax, 20h
lea r15, [rbp+var_22C]
mov [r15], al
mov rax, r13
shr rax, 28h
mov [r15+1], al
mov rax, r13
shr rax, 30h
mov [r15+2], al
mov [r15+3], r13d
mov [r15+7], esi
mov [r15+0Bh], r14d
mov rax, r14
shr rax, 20h
mov [r15+0Fh], ax
mov [r15+11h], r12b
mov ebx, cs:cf_changeable_size
cmp ebx, 17h
mov [rbp+var_2DC], esi
jb short loc_47C56
mov [rbp+var_2D8], r12d
lea r12d, [rbx-16h]
lea rdi, [rbp+var_21A]
mov ecx, 1EAh
xor esi, esi
mov rdx, r12
call ___memset_chk
add ebx, cs:cf_create_time_size
lea rdx, aControlFileMus; "Control file must be from a newer versi"...
lea rdi, [rbp+var_2D0]
mov esi, 96h
mov ecx, r12d
mov r12d, [rbp+var_2D8]
mov r8d, ebx
xor eax, eax
call my_snprintf
lea rsi, aAriaEngineS; "Aria engine: %s"
mov edx, 800h
mov edi, 0A8h
lea rcx, [rbp+var_2D0]
xor eax, eax
call my_printf_error
mov edx, cs:cf_changeable_size
add edx, 0FFFFFFFCh
jmp short loc_47C65
loc_47C56:
mov cs:cf_changeable_size, 16h
mov edx, 12h
loc_47C65:
xor edi, edi
mov rsi, r15
call my_checksum
lea rsi, [rbp+var_230]
mov [rsi], eax
mov edi, cs:control_file_fd
mov edx, cs:cf_changeable_size
mov ecx, cs:cf_create_time_size
mov r8d, 12h
call my_pwrite
test rax, rax
jz short loc_47CA5
mov r15d, 1
jmp loc_47D2E
loc_47CA5:
mov al, [rbp+var_2D4]
or al, [rbp+var_2D2]
mov cl, [rbp+var_2D3]
or cl, [rbp+var_2D1]
or cl, al
mov r15d, 1
jz short loc_47D00
mov ebx, cs:control_file_fd
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_2D0]
mov esi, ebx
mov edx, 10h
call qword ptr [rax+158h]
test rax, rax
jnz short loc_47D52
mov esi, 10h
mov edi, ebx
call my_sync
loc_47CFC:
test eax, eax
jnz short loc_47D2E
loc_47D00:
mov cs:last_checkpoint_lsn, r13
mov eax, [rbp+var_2DC]
mov cs:last_logno, eax
mov cs:max_trid_in_control_file, r14
mov cs:recovery_failures, r12b
mov cs:cf_changeable_size, 16h
xor r15d, r15d
loc_47D2E:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_47D71
mov eax, r15d
add rsp, 2B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_47D52:
lea r15, [rbp+var_2E0]
mov rdi, rax
mov esi, ebx
mov rdx, r15
call ma_control_file_write_and_force_cold_1
mov eax, [r15]
mov r15d, 1
jmp short loc_47CFC
loc_47D71:
call ___stack_chk_fail
|
long long ma_control_file_write_and_force(long long a1, int a2, long long a3, int a4)
{
int v4; // r12d
bool v6; // cl
unsigned int v7; // r15d
int v8; // ebx
int v9; // ecx
int v10; // r9d
int v11; // r8d
int v12; // r9d
long long v13; // rdx
long long v14; // rcx
unsigned int v15; // ebx
long long v16; // rax
int v17; // eax
int v19; // [rsp+0h] [rbp-2E0h] BYREF
int v20; // [rsp+4h] [rbp-2DCh]
int v21; // [rsp+8h] [rbp-2D8h]
int v22; // [rsp+Ch] [rbp-2D4h]
_BYTE v23[160]; // [rsp+10h] [rbp-2D0h] BYREF
int v24; // [rsp+B0h] [rbp-230h] BYREF
_BYTE v25[3]; // [rsp+B4h] [rbp-22Ch] BYREF
int v26; // [rsp+B7h] [rbp-229h]
int v27; // [rsp+BBh] [rbp-225h]
int v28; // [rsp+BFh] [rbp-221h]
__int16 v29; // [rsp+C3h] [rbp-21Dh]
char v30; // [rsp+C5h] [rbp-21Bh]
char v31[490]; // [rsp+C6h] [rbp-21Ah] BYREF
unsigned long long v32; // [rsp+2B0h] [rbp-30h]
v4 = a4;
v32 = __readfsqword(0x28u);
v6 = a4 == 0;
v7 = 1;
if ( control_file_fd >= 0 )
{
HIBYTE(v22) = max_trid_in_control_file != a3;
BYTE2(v22) = last_logno != a2;
BYTE1(v22) = v6;
LOBYTE(v22) = last_checkpoint_lsn != a1;
v25[0] = BYTE4(a1);
v25[1] = BYTE5(a1);
v25[2] = BYTE6(a1);
v26 = a1;
v27 = a2;
v28 = a3;
v29 = WORD2(a3);
v30 = v4;
v8 = cf_changeable_size;
v20 = a2;
if ( (unsigned int)cf_changeable_size < 0x17 )
{
cf_changeable_size = 22;
v13 = 18LL;
}
else
{
v21 = v4;
v4 = cf_changeable_size - 22;
__memset_chk(v31, 0LL, (unsigned int)(cf_changeable_size - 22), 490LL);
v9 = v4;
LOBYTE(v4) = v21;
my_snprintf(
(unsigned int)v23,
150,
(unsigned int)"Control file must be from a newer version; zero-ing out %u unknown bytes in control file at offset %u",
v9,
cf_create_time_size + v8,
v10,
v19);
my_printf_error(168, (unsigned int)"Aria engine: %s", 2048, (unsigned int)v23, v11, v12);
v13 = (unsigned int)(cf_changeable_size - 4);
}
v24 = my_checksum(0LL, v25, v13);
if ( my_pwrite(
(unsigned int)control_file_fd,
&v24,
(unsigned int)cf_changeable_size,
(unsigned int)cf_create_time_size,
18LL) )
{
return 1;
}
else
{
v7 = 1;
if ( !v22
|| ((v15 = control_file_fd,
LOBYTE(v14) = BYTE2(v22) | v22 | HIBYTE(v22) | BYTE1(v22),
(v16 = ((long long ( *)(_BYTE *, _QWORD, long long, long long))PSI_server[43])(
v23,
(unsigned int)control_file_fd,
16LL,
v14)) != 0)
? (ma_control_file_write_and_force_cold_1(v16, v15, &v19), v17 = v19, v7 = 1)
: (v17 = my_sync(v15, 16LL)),
!v17) )
{
last_checkpoint_lsn = a1;
last_logno = v20;
max_trid_in_control_file = a3;
recovery_failures = v4;
cf_changeable_size = 22;
return 0;
}
}
}
return v7;
}
|
ma_control_file_write_and_force:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x2b8
MOV R12D,ECX
MOV R14,RDX
MOV R13,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
CMP qword ptr [0x004fd568],RDI
SETNZ AL
CMP dword ptr [0x004fd570],ESI
SETNZ DL
CMP qword ptr [0x004fd578],R14
SETNZ DIL
TEST ECX,ECX
SETZ CL
MOV R15D,0x1
CMP dword ptr [0x00484190],0x0
JS 0x00147d2e
MOV byte ptr [RBP + -0x2d1],DIL
MOV byte ptr [RBP + -0x2d2],DL
MOV byte ptr [RBP + -0x2d3],CL
MOV byte ptr [RBP + -0x2d4],AL
MOV RAX,R13
SHR RAX,0x20
LEA R15,[RBP + -0x22c]
MOV byte ptr [R15],AL
MOV RAX,R13
SHR RAX,0x28
MOV byte ptr [R15 + 0x1],AL
MOV RAX,R13
SHR RAX,0x30
MOV byte ptr [R15 + 0x2],AL
MOV dword ptr [R15 + 0x3],R13D
MOV dword ptr [R15 + 0x7],ESI
MOV dword ptr [R15 + 0xb],R14D
MOV RAX,R14
SHR RAX,0x20
MOV word ptr [R15 + 0xf],AX
MOV byte ptr [R15 + 0x11],R12B
MOV EBX,dword ptr [0x004fd588]
CMP EBX,0x17
MOV dword ptr [RBP + -0x2dc],ESI
JC 0x00147c56
MOV dword ptr [RBP + -0x2d8],R12D
LEA R12D,[RBX + -0x16]
LEA RDI,[RBP + -0x21a]
MOV ECX,0x1ea
XOR ESI,ESI
MOV RDX,R12
CALL 0x001297f0
ADD EBX,dword ptr [0x004fd584]
LEA RDX,[0x1d99be]
LEA RDI,[RBP + -0x2d0]
MOV ESI,0x96
MOV ECX,R12D
MOV R12D,dword ptr [RBP + -0x2d8]
MOV R8D,EBX
XOR EAX,EAX
CALL 0x001d6956
LEA RSI,[0x1d9a24]
MOV EDX,0x800
MOV EDI,0xa8
LEA RCX,[RBP + -0x2d0]
XOR EAX,EAX
CALL 0x0019de41
MOV EDX,dword ptr [0x004fd588]
ADD EDX,-0x4
JMP 0x00147c65
LAB_00147c56:
MOV dword ptr [0x004fd588],0x16
MOV EDX,0x12
LAB_00147c65:
XOR EDI,EDI
MOV RSI,R15
CALL 0x001a7b30
LEA RSI,[RBP + -0x230]
MOV dword ptr [RSI],EAX
MOV EDI,dword ptr [0x00484190]
MOV EDX,dword ptr [0x004fd588]
MOV ECX,dword ptr [0x004fd584]
MOV R8D,0x12
CALL 0x001a033e
TEST RAX,RAX
JZ 0x00147ca5
MOV R15D,0x1
JMP 0x00147d2e
LAB_00147ca5:
MOV AL,byte ptr [RBP + -0x2d4]
OR AL,byte ptr [RBP + -0x2d2]
MOV CL,byte ptr [RBP + -0x2d3]
OR CL,byte ptr [RBP + -0x2d1]
OR CL,AL
MOV R15D,0x1
JZ 0x00147d00
MOV EBX,dword ptr [0x00484190]
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0x2d0]
MOV ESI,EBX
MOV EDX,0x10
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x00147d52
MOV ESI,0x10
MOV EDI,EBX
CALL 0x001a0ff4
LAB_00147cfc:
TEST EAX,EAX
JNZ 0x00147d2e
LAB_00147d00:
MOV qword ptr [0x004fd568],R13
MOV EAX,dword ptr [RBP + -0x2dc]
MOV dword ptr [0x004fd570],EAX
MOV qword ptr [0x004fd578],R14
MOV byte ptr [0x004fd580],R12B
MOV dword ptr [0x004fd588],0x16
XOR R15D,R15D
LAB_00147d2e:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00147d71
MOV EAX,R15D
ADD RSP,0x2b8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00147d52:
LEA R15,[RBP + -0x2e0]
MOV RDI,RAX
MOV ESI,EBX
MOV RDX,R15
CALL 0x0012a799
MOV EAX,dword ptr [R15]
MOV R15D,0x1
JMP 0x00147cfc
LAB_00147d71:
CALL 0x00129270
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
int8 ma_control_file_write_and_force(long param_1,int param_2,long param_3,int param_4)
{
uint uVar1;
long lVar2;
int iVar3;
int8 uVar4;
long in_FS_OFFSET;
int local_2e8;
int local_2e4;
int local_2e0;
char local_2dc;
char local_2db;
char local_2da;
char local_2d9;
int1 local_2d8 [160];
int4 local_238;
int1 local_234;
int1 local_233;
int1 local_232;
int4 local_231;
int local_22d;
int4 local_229;
int2 local_225;
int1 local_223;
int1 local_222 [490];
long local_38;
uVar1 = _cf_changeable_size;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
uVar4 = 1;
if (-1 < control_file_fd) {
local_234 = (int1)((ulong)param_1 >> 0x20);
local_233 = (int1)((ulong)param_1 >> 0x28);
local_232 = (int1)((ulong)param_1 >> 0x30);
local_231 = (int4)param_1;
local_229 = (int4)param_3;
local_225 = (int2)((ulong)param_3 >> 0x20);
local_223 = (int1)param_4;
local_2e4 = param_2;
local_2dc = last_checkpoint_lsn != param_1;
local_2db = param_4 == 0;
local_2da = last_logno != param_2;
local_2d9 = max_trid_in_control_file != param_3;
local_22d = param_2;
if (_cf_changeable_size < 0x17) {
_cf_changeable_size = 0x16;
iVar3 = 0x12;
}
else {
iVar3 = _cf_changeable_size - 0x16;
local_2e0 = param_4;
__memset_chk(local_222,0,iVar3,0x1ea);
param_4 = local_2e0;
my_snprintf(local_2d8,0x96,
"Control file must be from a newer version; zero-ing out %u unknown bytes in control file at offset %u"
,iVar3,uVar1 + cf_create_time_size);
my_printf_error(0xa8,"Aria engine: %s",0x800,local_2d8);
iVar3 = _cf_changeable_size - 4;
}
local_238 = my_checksum(0,&local_234,iVar3);
lVar2 = my_pwrite(control_file_fd,&local_238,_cf_changeable_size,cf_create_time_size,0x12);
iVar3 = control_file_fd;
if (lVar2 == 0) {
if ((local_2db != '\0' || local_2d9 != '\0') || (local_2dc != '\0' || local_2da != '\0')) {
lVar2 = (**(code **)(PSI_server + 0x158))(local_2d8,control_file_fd,0x10);
if (lVar2 == 0) {
local_2e8 = my_sync(iVar3,0x10);
}
else {
ma_control_file_write_and_force_cold_1(lVar2,iVar3,&local_2e8);
}
uVar4 = 1;
if (local_2e8 != 0) goto LAB_00147d2e;
}
last_logno = local_2e4;
recovery_failures = (int1)param_4;
_cf_changeable_size = 0x16;
uVar4 = 0;
last_checkpoint_lsn = param_1;
max_trid_in_control_file = param_3;
}
else {
uVar4 = 1;
}
}
LAB_00147d2e:
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return uVar4;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
56,926
|
mi_seq_search
|
eloqsql/storage/myisam/mi_search.c
|
int _mi_seq_search(MI_INFO *info, register MI_KEYDEF *keyinfo, uchar *page,
uchar *key, uint key_len, uint comp_flag, uchar **ret_pos,
uchar *buff, my_bool *last_key)
{
int UNINIT_VAR(flag);
uint nod_flag,UNINIT_VAR(length),not_used[2];
uchar t_buff[HA_MAX_KEY_BUFF],*end;
DBUG_ENTER("_mi_seq_search");
end= page+mi_getint(page);
nod_flag=mi_test_if_nod(page);
page+=2+nod_flag;
*ret_pos=page;
t_buff[0]=0; /* Avoid bugs */
while (page < end)
{
length=(*keyinfo->get_key)(keyinfo,nod_flag,&page,t_buff);
if (length == 0 || page > end)
{
mi_print_error(info->s, HA_ERR_CRASHED);
my_errno=HA_ERR_CRASHED;
DBUG_PRINT("error",
("Found wrong key: length: %u page: %p end: %p",
length, page, end));
DBUG_RETURN(MI_FOUND_WRONG_KEY);
}
if ((flag=ha_key_cmp(keyinfo->seg,t_buff,key,key_len,comp_flag,
not_used)) >= 0)
break;
#ifdef EXTRA_DEBUG
DBUG_PRINT("loop",("page: 0x%lx key: '%s' flag: %d", (long) page, t_buff,
flag));
#endif
memcpy(buff,t_buff,length);
*ret_pos=page;
}
if (flag == 0)
memcpy(buff,t_buff,length); /* Result is first key */
*last_key= page == end;
DBUG_PRINT("exit",("flag: %d ret_pos: %p", flag, *ret_pos));
DBUG_RETURN(flag);
}
|
O3
|
c
|
mi_seq_search:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x508, %rsp # imm = 0x508
movl %r9d, -0x508(%rbp)
movl %r8d, -0x504(%rbp)
movq %rcx, -0x520(%rbp)
movq %rsi, -0x510(%rbp)
movq 0x10(%rbp), %rbx
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movzbl 0x1(%rdx), %ecx
movzbl (%rdx), %r9d
movl %r9d, %eax
andl $0x7f, %eax
shll $0x8, %eax
orq %rcx, %rax
xorl %esi, %esi
testb %r9b, %r9b
jns 0x84980
movq (%rdi), %rcx
movl 0x17c(%rcx), %esi
movq %rdi, -0x518(%rbp)
leaq (%rdx,%rax), %rcx
movq %rcx, -0x500(%rbp)
leal 0x2(%rsi), %ecx
addq %rcx, %rdx
movq %rdx, -0x4f8(%rbp)
movq %rdx, (%rbx)
movb $0x0, -0x4f0(%rbp)
cmpl %ecx, %eax
jbe 0x84a8f
leaq -0x4f0(%rbp), %rcx
movq -0x510(%rbp), %rdi
movq %rsi, %r12
leaq -0x4f8(%rbp), %rdx
movq %rcx, %r13
callq *0x48(%rdi)
testl %eax, %eax
je 0x84a49
movl %eax, %r15d
movq -0x500(%rbp), %rax
cmpq %rax, -0x4f8(%rbp)
ja 0x84a49
movq -0x510(%rbp), %rax
movq 0x28(%rax), %rdi
movq %r13, %rsi
movq -0x520(%rbp), %rdx
movl -0x504(%rbp), %ecx
movl -0x508(%rbp), %r8d
leaq -0x528(%rbp), %r9
callq 0x9e822
movl %eax, %r14d
testl %eax, %eax
jns 0x84a77
movl %r15d, %edx
movq 0x18(%rbp), %rdi
movq %r13, %rsi
callq 0x29080
movq -0x4f8(%rbp), %rax
movq %rax, (%rbx)
cmpq -0x500(%rbp), %rax
movq %r12, %rsi
movq %r13, %rcx
jb 0x849b8
jmp 0x84a8f
movq -0x518(%rbp), %rax
movq (%rax), %rax
movq 0x268(%rax), %rsi
movl $0x7e, %edi
callq 0x7af4e
callq 0xa1b22
movl $0x7e, (%rax)
movl $0x7fffffff, %r14d # imm = 0x7FFFFFFF
jmp 0x84aa4
jne 0x84a8f
movl %r15d, %edx
leaq -0x4f0(%rbp), %rsi
movq 0x18(%rbp), %rdi
callq 0x29080
xorl %r14d, %r14d
movq -0x500(%rbp), %rax
cmpq %rax, -0x4f8(%rbp)
movq 0x20(%rbp), %rax
sete (%rax)
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x84ac8
movl %r14d, %eax
addq $0x508, %rsp # imm = 0x508
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x29270
|
_mi_seq_search:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 508h
mov [rbp+var_508], r9d
mov [rbp+var_504], r8d
mov [rbp+var_520], rcx
mov [rbp+var_510], rsi
mov rbx, [rbp+arg_0]
mov rax, fs:28h
mov [rbp+var_30], rax
movzx ecx, byte ptr [rdx+1]
movzx r9d, byte ptr [rdx]
mov eax, r9d
and eax, 7Fh
shl eax, 8
or rax, rcx
xor esi, esi
test r9b, r9b
jns short loc_84980
mov rcx, [rdi]
mov esi, [rcx+17Ch]
loc_84980:
mov [rbp+var_518], rdi
lea rcx, [rdx+rax]
mov [rbp+var_500], rcx
lea ecx, [rsi+2]
add rdx, rcx
mov [rbp+var_4F8], rdx
mov [rbx], rdx
mov [rbp+var_4F0], 0
cmp eax, ecx
jbe loc_84A8F
lea rcx, [rbp+var_4F0]
loc_849B8:
mov rdi, [rbp+var_510]
mov r12, rsi
lea rdx, [rbp+var_4F8]
mov r13, rcx
call qword ptr [rdi+48h]
test eax, eax
jz short loc_84A49
mov r15d, eax
mov rax, [rbp+var_500]
cmp [rbp+var_4F8], rax
ja short loc_84A49
mov rax, [rbp+var_510]
mov rdi, [rax+28h]
mov rsi, r13
mov rdx, [rbp+var_520]
mov ecx, [rbp+var_504]
mov r8d, [rbp+var_508]
lea r9, [rbp+var_528]
call ha_key_cmp
mov r14d, eax
test eax, eax
jns short loc_84A77
mov edx, r15d
mov rdi, [rbp+arg_8]
mov rsi, r13
call _memcpy
mov rax, [rbp+var_4F8]
mov [rbx], rax
cmp rax, [rbp+var_500]
mov rsi, r12
mov rcx, r13
jb loc_849B8
jmp short loc_84A8F
loc_84A49:
mov rax, [rbp+var_518]
mov rax, [rax]
mov rsi, [rax+268h]
mov edi, 7Eh ; '~'
call mi_report_error
call _my_thread_var
mov dword ptr [rax], 7Eh ; '~'
mov r14d, 7FFFFFFFh
jmp short loc_84AA4
loc_84A77:
jnz short loc_84A8F
mov edx, r15d
lea rsi, [rbp+var_4F0]
mov rdi, [rbp+arg_8]
call _memcpy
xor r14d, r14d
loc_84A8F:
mov rax, [rbp+var_500]
cmp [rbp+var_4F8], rax
mov rax, [rbp+arg_10]
setz byte ptr [rax]
loc_84AA4:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_84AC8
mov eax, r14d
add rsp, 508h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_84AC8:
call ___stack_chk_fail
|
long long mi_seq_search(
long long a1,
long long a2,
char *a3,
long long a4,
unsigned int a5,
unsigned int a6,
char **a7,
long long a8,
bool *a9)
{
unsigned int v9; // r14d
unsigned long long v10; // rax
long long v11; // rsi
long long v12; // rcx
_BYTE *v13; // rcx
_BYTE *v14; // r13
unsigned int v15; // eax
unsigned int v16; // r15d
int v17; // eax
char *v18; // rax
const char *v19; // rsi
char v21[8]; // [rsp+8h] [rbp-528h] BYREF
long long v22; // [rsp+10h] [rbp-520h]
long long v23; // [rsp+18h] [rbp-518h]
long long v24; // [rsp+20h] [rbp-510h]
unsigned int v25; // [rsp+28h] [rbp-508h]
unsigned int v26; // [rsp+2Ch] [rbp-504h]
char *v27; // [rsp+30h] [rbp-500h]
char *v28; // [rsp+38h] [rbp-4F8h] BYREF
_BYTE v29[1216]; // [rsp+40h] [rbp-4F0h] BYREF
unsigned long long v30; // [rsp+500h] [rbp-30h]
v25 = a6;
v26 = a5;
v22 = a4;
v24 = a2;
v30 = __readfsqword(0x28u);
v10 = (unsigned __int8)a3[1] | (unsigned long long)((unsigned __int8)(*a3 & 0x7F) << 8);
v11 = 0LL;
if ( *a3 < 0 )
v11 = *(unsigned int *)(*(_QWORD *)a1 + 380LL);
v23 = a1;
v27 = &a3[v10];
v12 = (unsigned int)(v11 + 2);
v28 = &a3[v12];
*a7 = &a3[v12];
v29[0] = 0;
if ( (unsigned int)v10 > (unsigned int)v12 )
{
v13 = v29;
while ( 1 )
{
v14 = v13;
v15 = (*(long long ( **)(long long, long long, char **))(v24 + 72))(v24, v11, &v28);
if ( !v15 || (v16 = v15, v28 > v27) )
{
v19 = *(const char **)(*(_QWORD *)v23 + 616LL);
mi_report_error(126, (long long)v19);
*(_DWORD *)my_thread_var(126LL, v19) = 126;
return 0x7FFFFFFF;
}
v17 = ha_key_cmp(*(_QWORD *)(v24 + 40), v14, v22, v26, v25, v21);
v9 = v17;
if ( v17 >= 0 )
break;
memcpy(a8, v14, v16);
v18 = v28;
*a7 = v28;
v13 = v14;
if ( v18 >= v27 )
goto LABEL_13;
}
if ( !v17 )
{
memcpy(a8, v29, v16);
v9 = 0;
}
}
LABEL_13:
*a9 = v28 == v27;
return v9;
}
|
_mi_seq_search:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x508
MOV dword ptr [RBP + -0x508],R9D
MOV dword ptr [RBP + -0x504],R8D
MOV qword ptr [RBP + -0x520],RCX
MOV qword ptr [RBP + -0x510],RSI
MOV RBX,qword ptr [RBP + 0x10]
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOVZX ECX,byte ptr [RDX + 0x1]
MOVZX R9D,byte ptr [RDX]
MOV EAX,R9D
AND EAX,0x7f
SHL EAX,0x8
OR RAX,RCX
XOR ESI,ESI
TEST R9B,R9B
JNS 0x00184980
MOV RCX,qword ptr [RDI]
MOV ESI,dword ptr [RCX + 0x17c]
LAB_00184980:
MOV qword ptr [RBP + -0x518],RDI
LEA RCX,[RDX + RAX*0x1]
MOV qword ptr [RBP + -0x500],RCX
LEA ECX,[RSI + 0x2]
ADD RDX,RCX
MOV qword ptr [RBP + -0x4f8],RDX
MOV qword ptr [RBX],RDX
MOV byte ptr [RBP + -0x4f0],0x0
CMP EAX,ECX
JBE 0x00184a8f
LEA RCX,[RBP + -0x4f0]
LAB_001849b8:
MOV RDI,qword ptr [RBP + -0x510]
MOV R12,RSI
LEA RDX,[RBP + -0x4f8]
MOV R13,RCX
CALL qword ptr [RDI + 0x48]
TEST EAX,EAX
JZ 0x00184a49
MOV R15D,EAX
MOV RAX,qword ptr [RBP + -0x500]
CMP qword ptr [RBP + -0x4f8],RAX
JA 0x00184a49
MOV RAX,qword ptr [RBP + -0x510]
MOV RDI,qword ptr [RAX + 0x28]
MOV RSI,R13
MOV RDX,qword ptr [RBP + -0x520]
MOV ECX,dword ptr [RBP + -0x504]
MOV R8D,dword ptr [RBP + -0x508]
LEA R9,[RBP + -0x528]
CALL 0x0019e822
MOV R14D,EAX
TEST EAX,EAX
JNS 0x00184a77
MOV EDX,R15D
MOV RDI,qword ptr [RBP + 0x18]
MOV RSI,R13
CALL 0x00129080
MOV RAX,qword ptr [RBP + -0x4f8]
MOV qword ptr [RBX],RAX
CMP RAX,qword ptr [RBP + -0x500]
MOV RSI,R12
MOV RCX,R13
JC 0x001849b8
JMP 0x00184a8f
LAB_00184a49:
MOV RAX,qword ptr [RBP + -0x518]
MOV RAX,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x268]
MOV EDI,0x7e
CALL 0x0017af4e
CALL 0x001a1b22
MOV dword ptr [RAX],0x7e
MOV R14D,0x7fffffff
JMP 0x00184aa4
LAB_00184a77:
JNZ 0x00184a8f
MOV EDX,R15D
LEA RSI,[RBP + -0x4f0]
MOV RDI,qword ptr [RBP + 0x18]
CALL 0x00129080
XOR R14D,R14D
LAB_00184a8f:
MOV RAX,qword ptr [RBP + -0x500]
CMP qword ptr [RBP + -0x4f8],RAX
MOV RAX,qword ptr [RBP + 0x20]
SETZ byte ptr [RAX]
LAB_00184aa4:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00184ac8
MOV EAX,R14D
ADD RSP,0x508
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00184ac8:
CALL 0x00129270
|
int _mi_seq_search(long *param_1,long param_2,byte *param_3,int8 param_4,int4 param_5,
int4 param_6,int8 *param_7,void *param_8,int8 param_9)
{
uint uVar1;
ulong uVar2;
int4 *puVar3;
int iVar4;
int unaff_R14D;
long in_FS_OFFSET;
int1 local_530 [8];
int8 local_528;
long *local_520;
long local_518;
int4 local_510;
int4 local_50c;
byte *local_508;
byte *local_500;
int1 local_4f8 [1216];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
uVar2 = (ulong)((*param_3 & 0x7f) << 8) | (ulong)param_3[1];
iVar4 = 0;
if ((char)*param_3 < '\0') {
iVar4 = *(int *)(*param_1 + 0x17c);
}
local_508 = param_3 + uVar2;
local_500 = param_3 + (iVar4 + 2U);
*param_7 = local_500;
local_4f8[0] = 0;
local_528 = param_4;
local_520 = param_1;
local_518 = param_2;
local_510 = param_6;
local_50c = param_5;
if (iVar4 + 2U < (uint)uVar2) {
do {
uVar1 = (**(code **)(local_518 + 0x48))(local_518,iVar4,&local_500);
if ((uVar1 == 0) || (local_508 < local_500)) {
mi_report_error(0x7e,*(int8 *)(*local_520 + 0x268));
puVar3 = (int4 *)_my_thread_var();
*puVar3 = 0x7e;
unaff_R14D = 0x7fffffff;
goto LAB_00184aa4;
}
unaff_R14D = ha_key_cmp(*(int8 *)(local_518 + 0x28),local_4f8,local_528,local_50c,
local_510,local_530);
if (-1 < unaff_R14D) {
if (unaff_R14D == 0) {
memcpy(param_8,local_4f8,(ulong)uVar1);
unaff_R14D = 0;
}
break;
}
memcpy(param_8,local_4f8,(ulong)uVar1);
*param_7 = local_500;
} while (local_500 < local_508);
}
*(bool *)param_9 = local_500 == local_508;
LAB_00184aa4:
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return unaff_R14D;
}
|
|
56,927
|
my_vfprintf
|
eloqsql/strings/my_vsnprintf.c
|
int my_vfprintf(FILE *stream, const char* format, va_list args)
{
char cvtbuf[1024];
int alloc= 0;
char *p= cvtbuf;
size_t cur_len= sizeof(cvtbuf), actual;
int ret;
/*
We do not know how much buffer we need.
So start with a reasonably-sized stack-allocated buffer, and increase
it exponentially until it is big enough.
*/
for (;;)
{
size_t new_len;
actual= my_vsnprintf(p, cur_len, format, args);
if (actual < cur_len - 1)
break;
/*
Not enough space (or just enough with nothing to spare - but we cannot
distinguish this case from the return value). Allocate a bigger buffer
and try again.
*/
if (alloc)
my_free(p);
else
alloc= 1;
new_len= cur_len*2;
if (new_len < cur_len)
return 0; /* Overflow */
cur_len= new_len;
p= my_malloc(PSI_INSTRUMENT_ME, cur_len, MYF(MY_FAE));
if (!p)
return 0;
}
ret= (int) actual;
if (fputs(p, stream) < 0)
ret= -1;
if (alloc)
my_free(p);
return ret;
}
|
O3
|
c
|
my_vfprintf:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x418, %rsp # imm = 0x418
movq %rdx, -0x440(%rbp)
movq %rsi, %r12
movq %rdi, -0x438(%rbp)
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movb $0x1, %bl
movl $0x400, %r13d # imm = 0x400
leaq -0x430(%rbp), %r14
leaq 0x2bb0d4(%rip), %rdi # 0x314760
movq %r14, %rsi
movq %r13, %rdx
movq %r12, %rcx
movq -0x440(%rbp), %r8
callq 0x583dc
movq %rax, %r15
leaq -0x1(%r13), %rax
cmpq %rax, %r15
jb 0x596dd
testb $0x1, %bl
jne 0x596ba
movq %r14, %rdi
callq 0x25ad2
testq %r13, %r13
js 0x5970a
addq %r13, %r13
xorl %ebx, %ebx
movl $0x8, %edx
xorl %edi, %edi
movq %r13, %rsi
callq 0x258a5
movq %rax, %r14
testq %rax, %rax
jne 0x59685
jmp 0x5970c
movq %r14, %rdi
movq -0x438(%rbp), %rsi
callq 0x24360
testl %eax, %eax
movl $0xffffffff, %r12d # imm = 0xFFFFFFFF
cmovnsl %r15d, %r12d
testb $0x1, %bl
jne 0x59705
movq %r14, %rdi
callq 0x25ad2
movl %r12d, %ebx
jmp 0x5970c
xorl %ebx, %ebx
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x5972f
movl %ebx, %eax
addq $0x418, %rsp # imm = 0x418
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x24340
|
my_vfprintf:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 418h
mov [rbp+var_440], rdx
mov r12, rsi
mov [rbp+var_438], rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov bl, 1
mov r13d, 400h
lea r14, [rbp+var_430]
loc_59685:
lea rdi, my_charset_latin1
mov rsi, r14
mov rdx, r13
mov rcx, r12
mov r8, [rbp+var_440]
call my_vsnprintf_ex
mov r15, rax
lea rax, [r13-1]
cmp r15, rax
jb short loc_596DD
test bl, 1
jnz short loc_596BA
mov rdi, r14
call my_free
loc_596BA:
test r13, r13
js short loc_5970A
add r13, r13
xor ebx, ebx
mov edx, 8
xor edi, edi
mov rsi, r13
call my_malloc
mov r14, rax
test rax, rax
jnz short loc_59685
jmp short loc_5970C
loc_596DD:
mov rdi, r14
mov rsi, [rbp+var_438]
call _fputs
test eax, eax
mov r12d, 0FFFFFFFFh
cmovns r12d, r15d
test bl, 1
jnz short loc_59705
mov rdi, r14
call my_free
loc_59705:
mov ebx, r12d
jmp short loc_5970C
loc_5970A:
xor ebx, ebx
loc_5970C:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_5972F
mov eax, ebx
add rsp, 418h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_5972F:
call ___stack_chk_fail
|
long long my_vfprintf(long long a1, unsigned __int8 *a2, unsigned int *a3)
{
unsigned int v3; // ebx
long long v4; // r13
char *v5; // r14
unsigned long long v6; // r15
unsigned int v7; // r12d
char v10; // [rsp+10h] [rbp-430h] BYREF
unsigned long long v11; // [rsp+410h] [rbp-30h]
v11 = __readfsqword(0x28u);
LOBYTE(v3) = 1;
v4 = 1024LL;
v5 = &v10;
while ( 1 )
{
v6 = my_vsnprintf_ex((long long)my_charset_latin1, (unsigned long long)v5, v4, a2, a3);
if ( v6 < v4 - 1 )
break;
if ( (v3 & 1) == 0 )
my_free((long long)v5);
if ( v4 < 0 )
return 0;
v4 *= 2LL;
v3 = 0;
v5 = (char *)my_malloc(0, v4, 8);
if ( !v5 )
return v3;
}
v7 = -1;
if ( (int)fputs(v5, a1) >= 0 )
v7 = v6;
if ( (v3 & 1) == 0 )
my_free((long long)v5);
return v7;
}
|
my_vfprintf:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x418
MOV qword ptr [RBP + -0x440],RDX
MOV R12,RSI
MOV qword ptr [RBP + -0x438],RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV BL,0x1
MOV R13D,0x400
LEA R14,[RBP + -0x430]
LAB_00159685:
LEA RDI,[0x414760]
MOV RSI,R14
MOV RDX,R13
MOV RCX,R12
MOV R8,qword ptr [RBP + -0x440]
CALL 0x001583dc
MOV R15,RAX
LEA RAX,[R13 + -0x1]
CMP R15,RAX
JC 0x001596dd
TEST BL,0x1
JNZ 0x001596ba
MOV RDI,R14
CALL 0x00125ad2
LAB_001596ba:
TEST R13,R13
JS 0x0015970a
ADD R13,R13
XOR EBX,EBX
MOV EDX,0x8
XOR EDI,EDI
MOV RSI,R13
CALL 0x001258a5
MOV R14,RAX
TEST RAX,RAX
JNZ 0x00159685
JMP 0x0015970c
LAB_001596dd:
MOV RDI,R14
MOV RSI,qword ptr [RBP + -0x438]
CALL 0x00124360
TEST EAX,EAX
MOV R12D,0xffffffff
CMOVNS R12D,R15D
TEST BL,0x1
JNZ 0x00159705
MOV RDI,R14
CALL 0x00125ad2
LAB_00159705:
MOV EBX,R12D
JMP 0x0015970c
LAB_0015970a:
XOR EBX,EBX
LAB_0015970c:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x0015972f
MOV EAX,EBX
ADD RSP,0x418
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0015972f:
CALL 0x00124340
|
ulong my_vfprintf(FILE *param_1,int8 param_2,int8 param_3)
{
int iVar1;
ulong uVar2;
char *__s;
ulong uVar3;
ulong uVar4;
long lVar5;
long in_FS_OFFSET;
char local_438 [1024];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
lVar5 = 0x400;
__s = local_438;
uVar3 = 1;
do {
uVar2 = my_vsnprintf_ex(&my_charset_latin1,__s,lVar5,param_2,param_3);
if (uVar2 < lVar5 - 1U) {
iVar1 = fputs(__s,param_1);
uVar4 = 0xffffffff;
if (-1 < iVar1) {
uVar4 = uVar2 & 0xffffffff;
}
if (uVar3 == 0) {
my_free(__s);
}
break;
}
if ((char)uVar3 == '\0') {
my_free(__s);
}
if (lVar5 < 0) {
uVar4 = 0;
break;
}
lVar5 = lVar5 * 2;
uVar4 = 0;
__s = (char *)my_malloc(0,lVar5,8);
uVar3 = uVar4;
} while (__s != (char *)0x0);
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return uVar4;
}
|
|
56,928
|
nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<std::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>>::decode(unsigned char&, unsigned int&, unsigned char)
|
llama.cpp/common/json.hpp
|
static std::uint8_t decode(std::uint8_t& state, std::uint32_t& codep, const std::uint8_t byte) noexcept
{
static const std::array<std::uint8_t, 400> utf8d =
{
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 00..1F
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 20..3F
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 40..5F
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 60..7F
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, // 80..9F
7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // A0..BF
8, 8, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, // C0..DF
0xA, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x4, 0x3, 0x3, // E0..EF
0xB, 0x6, 0x6, 0x6, 0x5, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, // F0..FF
0x0, 0x1, 0x2, 0x3, 0x5, 0x8, 0x7, 0x1, 0x1, 0x1, 0x4, 0x6, 0x1, 0x1, 0x1, 0x1, // s0..s0
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, // s1..s2
1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, // s3..s4
1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, // s5..s6
1, 3, 1, 1, 1, 1, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 // s7..s8
}
};
JSON_ASSERT(byte < utf8d.size());
const std::uint8_t type = utf8d[byte];
codep = (state != UTF8_ACCEPT)
? (byte & 0x3fu) | (codep << 6u)
: (0xFFu >> type) & (byte);
const std::size_t index = 256u + static_cast<size_t>(state) * 16u + static_cast<size_t>(type);
JSON_ASSERT(index < utf8d.size());
state = utf8d[index];
return state;
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<std::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>>::decode(unsigned char&, unsigned int&, unsigned char):
pushq %rax
movl %edx, %ecx
leaq 0x9ea59(%rip), %rax # 0x12af39
movzbl (%rax,%rcx), %ecx
cmpb $0x0, (%rdi)
je 0x8c4fa
andb $0x3f, %dl
movzbl %dl, %r8d
movl (%rsi), %edx
shll $0x6, %edx
orl %r8d, %edx
jmp 0x8c509
movl $0xff, %r8d
shrl %cl, %r8d
movzbl %dl, %edx
andl %r8d, %edx
movl %edx, (%rsi)
movzbl (%rdi), %edx
shll $0x4, %edx
movl %ecx, %ecx
addq %rdx, %rcx
addq $0x100, %rcx # imm = 0x100
cmpq $0x190, %rcx # imm = 0x190
jae 0x8c52d
movb (%rax,%rcx), %al
movb %al, (%rdi)
popq %rcx
retq
leaq 0x9b3e5(%rip), %rdi # 0x127919
leaq 0x9361d(%rip), %rdx # 0x11fb58
leaq 0x9c79a(%rip), %rcx # 0x128cdc
movl $0x49fb, %esi # imm = 0x49FB
xorl %eax, %eax
callq 0x21ef0
movq %rax, %rdi
callq 0x33a55
|
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE6decodeERhRjh:
push rax
mov ecx, edx
lea rax, _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE6decodeERhRjhE5utf8d; nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::decode(uchar &,uint &,uchar)::utf8d
movzx ecx, byte ptr [rax+rcx]
cmp byte ptr [rdi], 0
jz short loc_8C4FA
and dl, 3Fh
movzx r8d, dl
mov edx, [rsi]
shl edx, 6
or edx, r8d
jmp short loc_8C509
loc_8C4FA:
mov r8d, 0FFh
shr r8d, cl
movzx edx, dl
and edx, r8d
loc_8C509:
mov [rsi], edx
movzx edx, byte ptr [rdi]
shl edx, 4
mov ecx, ecx
add rcx, rdx
add rcx, 100h
cmp rcx, 190h
jnb short loc_8C52D
mov al, [rax+rcx]
mov [rdi], al
pop rcx
retn
loc_8C52D:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aIndexUtf8dSize; "index < utf8d.size()"
mov esi, 49FBh
xor eax, eax
call _ggml_abort
mov rdi, rax
call __clang_call_terminate
|
unsigned __int8 nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<std::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>>::decode(
unsigned __int8 *a1,
unsigned int *a2,
int a3)
{
unsigned int v3; // ecx
unsigned int v4; // edx
unsigned long long v5; // rcx
unsigned __int8 result; // al
void *v7; // rax
v3 = nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<std::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>>::decode(unsigned char &,unsigned int &,unsigned char)::utf8d[a3];
if ( *a1 )
v4 = a3 & 0x3F | (*a2 << 6);
else
v4 = (0xFFu >> v3) & (unsigned __int8)a3;
*a2 = v4;
v5 = 16 * (unsigned int)*a1 + (unsigned long long)v3 + 256;
if ( v5 >= 0x190 )
{
ggml_abort(
"/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",
18939LL,
"GGML_ASSERT(%s) failed",
"index < utf8d.size()");
_clang_call_terminate(v7);
}
result = nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<std::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>>::decode(unsigned char &,unsigned int &,unsigned char)::utf8d[v5];
*a1 = result;
return result;
}
|
decode:
PUSH RAX
MOV ECX,EDX
LEA RAX,[0x22af39]
MOVZX ECX,byte ptr [RAX + RCX*0x1]
CMP byte ptr [RDI],0x0
JZ 0x0018c4fa
AND DL,0x3f
MOVZX R8D,DL
MOV EDX,dword ptr [RSI]
SHL EDX,0x6
OR EDX,R8D
JMP 0x0018c509
LAB_0018c4fa:
MOV R8D,0xff
SHR R8D,CL
MOVZX EDX,DL
AND EDX,R8D
LAB_0018c509:
MOV dword ptr [RSI],EDX
MOVZX EDX,byte ptr [RDI]
SHL EDX,0x4
MOV ECX,ECX
ADD RCX,RDX
ADD RCX,0x100
CMP RCX,0x190
JNC 0x0018c52d
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RDI],AL
POP RCX
RET
LAB_0018c52d:
LEA RDI,[0x227919]
LEA RDX,[0x21fb58]
LEA RCX,[0x228cdc]
MOV ESI,0x49fb
XOR EAX,EAX
CALL 0x00121ef0
|
/* nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<std::map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::decode(unsigned char&, unsigned int&, unsigned char) */
void nlohmann::json_abi_v3_11_3::detail::
serializer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::decode(uchar *param_1,uint *param_2,uchar param_3)
{
byte bVar1;
long lVar2;
uint uVar3;
int7 in_register_00000011;
bVar1 = decode(unsigned_char&,unsigned_int&,unsigned_char)::utf8d
[CONCAT71(in_register_00000011,param_3) & 0xffffffff];
if (*param_1 == '\0') {
uVar3 = (uint)param_3 & 0xffU >> (bVar1 & 0x1f);
}
else {
uVar3 = *param_2 << 6 | (uint)(param_3 & 0x3f);
}
*param_2 = uVar3;
lVar2 = (ulong)bVar1 + (ulong)*param_1 * 0x10;
if (lVar2 + 0x100U < 400) {
*param_1 = decode(unsigned_char&,unsigned_int&,unsigned_char)::utf8d[lVar2 + 0x100];
return;
}
/* try { // try from 0018c52d to 0018c54d has its CatchHandler @ 0018c54e */
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",0x49fb,
"GGML_ASSERT(%s) failed","index < utf8d.size()");
}
|
|
56,929
|
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>::push_back(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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>>>)
|
llama.cpp/common/json.hpp
|
void push_back(initializer_list_t init)
{
if (is_object() && init.size() == 2 && (*init.begin())->is_string())
{
basic_json&& key = init.begin()->moved_or_copied();
push_back(typename object_t::value_type(
std::move(key.get_ref<string_t&>()), (init.begin() + 1)->moved_or_copied()));
}
else
{
push_back(basic_json(init));
}
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::push_back(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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>>>):
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rsi, %r14
movq %rdi, %rbx
cmpb $0x1, (%rdi)
sete %al
cmpq $0x2, %rdx
sete %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xb0bd1
movq 0x10(%r14), %rax
testq %rax, %rax
cmoveq %r14, %rax
cmpb $0x3, (%rax)
jne 0xb0bd1
leaq 0x10(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0xd013c
movq %r15, %rdi
callq 0xd0e76
movq %rax, %r15
addq $0x18, %r14
movq %rsp, %rdi
movq %r14, %rsi
callq 0xd013c
leaq 0x20(%rsp), %r14
movq %rsp, %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0xd0b94
movq %rbx, %rdi
movq %r14, %rsi
callq 0xd0aa0
leaq 0x40(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x84776
movq %rbx, %rdi
callq 0x88e90
movq -0x20(%rbx), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0xb0bb5
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21170
movq %rsp, %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x84776
movq %rbx, %rdi
callq 0x88e90
leaq 0x10(%rsp), %rbx
jmp 0xb0bfc
leaq 0x20(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movl $0x1, %ecx
movl $0x2, %r8d
callq 0xb088c
movq %rbx, %rdi
movq %r15, %rsi
callq 0xcdd80
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x84776
movq %rbx, %rdi
callq 0x88e90
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0xbbeb4
movq %rsp, %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x84776
movq %r14, %rdi
callq 0x88e90
jmp 0xb0c41
jmp 0xb0c3e
movq %rax, %rbx
leaq 0x10(%rsp), %r14
jmp 0xb0c50
movq %rax, %rbx
leaq 0x20(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x84776
movq %r14, %rdi
callq 0x88e90
movq %rbx, %rdi
callq 0x21af0
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backESt16initializer_listINS0_6detail8json_refISD_EEE:
push r15
push r14
push rbx
sub rsp, 50h
mov r14, rsi
mov rbx, rdi
cmp byte ptr [rdi], 1
setz al
cmp rdx, 2
setz cl
and cl, al
cmp cl, 1
jnz loc_B0BD1
mov rax, [r14+10h]
test rax, rax
cmovz rax, r14
cmp byte ptr [rax], 3
jnz loc_B0BD1
lea r15, [rsp+68h+var_58]
mov rdi, r15
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15moved_or_copiedEv; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::moved_or_copied(void)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE12get_ref_implIRS9_SD_EET_RT0_; 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>::get_ref_impl<std::string&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(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 r15, rax
add r14, 18h
mov rdi, rsp
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15moved_or_copiedEv; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::moved_or_copied(void)
lea r14, [rsp+68h+var_48]
mov rdx, rsp
mov rdi, r14
mov rsi, r15
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEEC2IS5_SF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
mov rdi, rbx
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backERKSt4pairIKS9_SD_E; 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>::push_back(std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> const&)
lea rbx, [rsp+68h+var_28]
mov rdi, rbx
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [rbx-20h]; void *
lea rax, [rsp+68h+var_38]
cmp rdi, rax
jz short loc_B0BB5
mov rsi, [rsp+68h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_B0BB5:
mov rbx, rsp
mov rdi, rbx
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
lea rbx, [rsp+68h+var_58]
jmp short loc_B0BFC
loc_B0BD1:
lea r15, [rsp+68h+var_48]
mov rdi, r15
mov rsi, r14
mov ecx, 1
mov r8d, 2
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; 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(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)
mov rdi, rbx
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9push_backEOSD_; 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>::push_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>&&)
lea rbx, [rsp+68h+var_48]
loc_B0BFC:
mov rdi, rbx
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
add rsp, 50h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
lea rdi, [rsp+arg_18]
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEED2Ev; std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~pair()
mov r14, rsp
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
jmp short loc_B0C41
jmp short $+2
loc_B0C3E:
mov rbx, rax
loc_B0C41:
lea r14, [rsp+arg_8]
jmp short loc_B0C50
mov rbx, rax
lea r14, [rsp+arg_18]
loc_B0C50:
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, rbx
call __Unwind_Resume
|
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::push_back(
_BYTE *a1,
long long a2,
long long a3)
{
_BYTE *v3; // rax
long long v4; // r15
char *v5; // rbx
char v7[16]; // [rsp+0h] [rbp-68h] BYREF
_BYTE v8[16]; // [rsp+10h] [rbp-58h] BYREF
void *v9[2]; // [rsp+20h] [rbp-48h] BYREF
long long v10; // [rsp+30h] [rbp-38h] BYREF
char v11[40]; // [rsp+40h] [rbp-28h] BYREF
if ( *a1 != 1 || a3 != 2 )
goto LABEL_8;
v3 = *(_BYTE **)(a2 + 16);
if ( !v3 )
v3 = (_BYTE *)a2;
if ( *v3 == 3 )
{
nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::moved_or_copied(
v8,
a2);
v4 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::get_ref_impl<std::string&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(v8);
nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::moved_or_copied(
v7,
a2 + 24);
ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEEC2IS5_SF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_(
v9,
v4,
v7);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::push_back(
a1,
v9);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v11);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v11);
if ( v9[0] != &v10 )
operator delete(v9[0], v10 + 1);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v7);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v7);
v5 = v8;
}
else
{
LABEL_8:
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
(long long)v9,
(char *)a2,
a3,
1,
2);
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>::push_back(
a1,
v9);
v5 = (char *)v9;
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v5);
return nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v5);
}
|
push_back:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x50
MOV R14,RSI
MOV RBX,RDI
CMP byte ptr [RDI],0x1
SETZ AL
CMP RDX,0x2
SETZ CL
AND CL,AL
CMP CL,0x1
JNZ 0x001b0bd1
MOV RAX,qword ptr [R14 + 0x10]
TEST RAX,RAX
CMOVZ RAX,R14
CMP byte ptr [RAX],0x3
JNZ 0x001b0bd1
LEA R15,[RSP + 0x10]
MOV RDI,R15
MOV RSI,R14
CALL 0x001d013c
LAB_001b0b4b:
MOV RDI,R15
CALL 0x001d0e76
MOV R15,RAX
ADD R14,0x18
LAB_001b0b5a:
MOV RDI,RSP
MOV RSI,R14
CALL 0x001d013c
LEA R14,[RSP + 0x20]
MOV RDX,RSP
MOV RDI,R14
MOV RSI,R15
CALL 0x001d0b94
LAB_001b0b78:
MOV RDI,RBX
MOV RSI,R14
CALL 0x001d0aa0
LAB_001b0b83:
LEA RBX,[RSP + 0x40]
MOV RDI,RBX
XOR ESI,ESI
CALL 0x00184776
MOV RDI,RBX
CALL 0x00188e90
MOV RDI,qword ptr [RBX + -0x20]
LEA RAX,[RSP + 0x30]
CMP RDI,RAX
JZ 0x001b0bb5
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x00121170
LAB_001b0bb5:
MOV RBX,RSP
MOV RDI,RBX
XOR ESI,ESI
CALL 0x00184776
MOV RDI,RBX
CALL 0x00188e90
LEA RBX,[RSP + 0x10]
JMP 0x001b0bfc
LAB_001b0bd1:
LEA R15,[RSP + 0x20]
MOV RDI,R15
MOV RSI,R14
MOV ECX,0x1
MOV R8D,0x2
CALL 0x001b088c
LAB_001b0bec:
MOV RDI,RBX
MOV RSI,R15
CALL 0x001cdd80
LAB_001b0bf7:
LEA RBX,[RSP + 0x20]
LAB_001b0bfc:
MOV RDI,RBX
XOR ESI,ESI
CALL 0x00184776
MOV RDI,RBX
CALL 0x00188e90
ADD RSP,0x50
POP RBX
POP R14
POP R15
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >,
void>::push_back(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> > >) */
void nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::push_back(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*param_1,char *param_2,long param_3)
{
char *pcVar1;
string *psVar2;
data *this;
data adStack_68 [16];
basic_json local_58 [16];
long *local_48 [2];
long local_38 [2];
data local_28 [16];
if (param_3 == 2 &&
*param_1 ==
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x1) {
pcVar1 = *(char **)(param_2 + 0x10);
if (*(char **)(param_2 + 0x10) == (char *)0x0) {
pcVar1 = param_2;
}
if (*pcVar1 == '\x03') {
detail::
json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::moved_or_copied();
/* try { // try from 001b0b4b to 001b0b52 has its CatchHandler @ 001b0c3e */
psVar2 = get_ref_impl<std::__cxx11::string&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(local_58);
/* try { // try from 001b0b5a to 001b0b64 has its CatchHandler @ 001b0c3c */
detail::
json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::moved_or_copied();
_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEEC2IS5_SF_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISJ_SK_EEEbE4typeELb1EEEOSJ_OSK_
((pair *)local_48,psVar2,adStack_68);
/* try { // try from 001b0b78 to 001b0b82 has its CatchHandler @ 001b0c18 */
push_back(param_1,(pair *)local_48);
assert_invariant(SUB81(local_28,0));
data::~data(local_28);
if (local_48[0] != local_38) {
operator_delete(local_48[0],local_38[0] + 1);
}
assert_invariant(SUB81(adStack_68,0));
data::~data(adStack_68);
this = (data *)local_58;
goto LAB_001b0bfc;
}
}
basic_json((basic_json *)local_48,param_2,param_3,1,2);
/* try { // try from 001b0bec to 001b0bf6 has its CatchHandler @ 001b0c48 */
push_back(param_1,(basic_json *)local_48);
this = (data *)local_48;
LAB_001b0bfc:
assert_invariant(SUB81(this,0));
data::~data(this);
return;
}
|
|
56,930
|
my_wc_mb_tis620
|
eloqsql/strings/ctype-tis620.c
|
static
int my_wc_mb_tis620(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;
pl= uni_to_cs[(wc>>8) & 0xFF];
str[0]= pl ? pl[wc & 0xFF] : '\0';
return (!str[0] && wc) ? MY_CS_ILUNI : 1;
}
|
O3
|
c
|
my_wc_mb_tis620:
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0x3b83a
pushq %rbp
movq %rsp, %rbp
pushq %rbx
movq %rsi, %rbx
movzbl %bh, %eax
leaq 0x2ae8dd(%rip), %rcx # 0x2ea0f0
movq (%rcx,%rax,8), %rax
testq %rax, %rax
je 0x3b824
movzbl %bl, %ecx
movb (%rax,%rcx), %al
jmp 0x3b826
xorl %eax, %eax
movb %al, (%rdx)
testb %al, %al
setne %al
testq %rbx, %rbx
sete %cl
orb %al, %cl
movzbl %cl, %eax
popq %rbx
popq %rbp
retq
|
my_wc_mb_tis620:
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb short locret_3B83A
push rbp
mov rbp, rsp
push rbx
mov rbx, rsi
movzx eax, bh
lea rcx, uni_to_cs_0
mov rax, [rcx+rax*8]
test rax, rax
jz short loc_3B824
movzx ecx, bl
mov al, [rax+rcx]
jmp short loc_3B826
loc_3B824:
xor eax, eax
loc_3B826:
mov [rdx], al
test al, al
setnz al
test rbx, rbx
setz cl
or cl, al
movzx eax, cl
pop rbx
pop rbp
locret_3B83A:
retn
|
long long my_wc_mb_tis620(long long a1, long long a2, _BYTE *a3, unsigned long long a4)
{
long long result; // rax
long long v5; // rax
char v6; // al
result = 4294967195LL;
if ( (unsigned long long)a3 < a4 )
{
v5 = (long long)*(&uni_to_cs_0 + BYTE1(a2));
if ( v5 )
v6 = *(_BYTE *)(v5 + (unsigned __int8)a2);
else
v6 = 0;
*a3 = v6;
return (v6 != 0) | (unsigned __int8)(a2 == 0);
}
return result;
}
|
my_wc_mb_tis620:
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x0013b83a
PUSH RBP
MOV RBP,RSP
PUSH RBX
MOV RBX,RSI
MOVZX EAX,BH
LEA RCX,[0x3ea0f0]
MOV RAX,qword ptr [RCX + RAX*0x8]
TEST RAX,RAX
JZ 0x0013b824
MOVZX ECX,BL
MOV AL,byte ptr [RAX + RCX*0x1]
JMP 0x0013b826
LAB_0013b824:
XOR EAX,EAX
LAB_0013b826:
MOV byte ptr [RDX],AL
TEST AL,AL
SETNZ AL
TEST RBX,RBX
SETZ CL
OR CL,AL
MOVZX EAX,CL
POP RBX
POP RBP
LAB_0013b83a:
RET
|
ulong my_wc_mb_tis620(int8 param_1,ulong param_2,char *param_3,char *param_4)
{
char cVar1;
ulong uVar2;
uVar2 = 0xffffff9b;
if (param_3 < param_4) {
if (*(long *)(uni_to_cs + (param_2 >> 8 & 0xff) * 8) == 0) {
cVar1 = '\0';
}
else {
cVar1 = *(char *)(*(long *)(uni_to_cs + (param_2 >> 8 & 0xff) * 8) + (param_2 & 0xff));
}
*param_3 = cVar1;
uVar2 = (ulong)(param_2 == 0 || cVar1 != '\0');
}
return uVar2;
}
|
|
56,931
|
Acore::Impl::StringConvertImpl::For<unsigned short, void>::FromString(std::basic_string_view<char, std::char_traits<char>>, int)
|
SylCore-WoTLK/src/common/Utilities/StringConvert.h
|
static Optional<T> FromString(std::string_view str, int base = 10)
{
if (base == 0)
{
if (StringEqualI(str.substr(0, 2), "0x"))
{
base = 16;
str.remove_prefix(2);
}
else if (StringEqualI(str.substr(0, 2), "0b"))
{
base = 2;
str.remove_prefix(2);
}
else
{
base = 10;
}
if (str.empty())
{
return std::nullopt;
}
}
char const* const start = str.data();
char const* const end = (start + str.length());
T val;
std::from_chars_result const res = std::from_chars(start, end, val, base);
if ((res.ptr == end) && (res.ec == std::errc()))
{
return val;
}
else
{
return std::nullopt;
}
}
|
O0
|
c
|
Acore::Impl::StringConvertImpl::For<unsigned short, void>::FromString(std::basic_string_view<char, std::char_traits<char>>, int):
subq $0xa8, %rsp
movq %rdi, 0x90(%rsp)
movq %rsi, 0x98(%rsp)
movl %edx, 0x8c(%rsp)
cmpl $0x0, 0x8c(%rsp)
jne 0xf9f94
leaq 0x90(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0x2, %edx
callq 0x91270
movq %rax, 0x78(%rsp)
movq %rdx, 0x80(%rsp)
leaq 0x68(%rsp), %rdi
leaq 0x21cadc(%rip), %rsi # 0x316987
callq 0x2e0e0
movq 0x78(%rsp), %rdi
movq 0x80(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq 0x70(%rsp), %rcx
callq 0x1f7f60
testb $0x1, %al
jne 0xf9ed2
jmp 0xf9ef1
movl $0x10, 0x8c(%rsp)
leaq 0x90(%rsp), %rdi
movl $0x2, %esi
callq 0x91310
jmp 0xf9f6d
leaq 0x90(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0x2, %edx
callq 0x91270
movq %rax, 0x58(%rsp)
movq %rdx, 0x60(%rsp)
leaq 0x48(%rsp), %rdi
leaq 0x21ca6d(%rip), %rsi # 0x31698a
callq 0x2e0e0
movq 0x58(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq 0x50(%rsp), %rcx
callq 0x1f7f60
testb $0x1, %al
jne 0xf9f41
jmp 0xf9f60
movl $0x2, 0x8c(%rsp)
leaq 0x90(%rsp), %rdi
movl $0x2, %esi
callq 0x91310
jmp 0xf9f6b
movl $0xa, 0x8c(%rsp)
jmp 0xf9f6d
leaq 0x90(%rsp), %rdi
callq 0x91350
testb $0x1, %al
jne 0xf9f80
jmp 0xf9f92
leaq 0xa6(%rsp), %rdi
callq 0xfa040
jmp 0xfa025
jmp 0xf9f94
leaq 0x90(%rsp), %rdi
callq 0x31650
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x90(%rsp), %rdi
callq 0x87b80
movq %rax, %rcx
movq 0x8(%rsp), %rax
addq %rcx, %rax
movq %rax, 0x30(%rsp)
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rsi
movl 0x8c(%rsp), %ecx
leaq 0x2f(%rsp), %rdx
callq 0xfa060
movq %rax, 0x18(%rsp)
movl %edx, 0x20(%rsp)
movq 0x18(%rsp), %rax
cmpq 0x30(%rsp), %rax
jne 0xfa018
cmpl $0x0, 0x20(%rsp)
jne 0xfa018
leaq 0xa6(%rsp), %rdi
leaq 0x2f(%rsp), %rsi
callq 0xfa220
jmp 0xfa025
leaq 0xa6(%rsp), %rdi
callq 0xfa040
movw 0xa6(%rsp), %ax
addq $0xa8, %rsp
retq
nopw %cs:(%rax,%rax)
nop
|
_ZN5Acore4Impl17StringConvertImpl3ForIavE10FromStringESt17basic_string_viewIcSt11char_traitsIcEEi:
sub rsp, 0A8h
mov [rsp+0A8h+var_18], rdi
mov [rsp+0A8h+var_10], rsi
mov [rsp+0A8h+var_1C], edx
cmp [rsp+0A8h+var_1C], 0
jnz loc_F9F94
lea rdi, [rsp+0A8h+var_18]
xor eax, eax
mov esi, eax
mov edx, 2
call _ZNKSt17basic_string_viewIcSt11char_traitsIcEE6substrEmm; std::string_view::substr(ulong,ulong)
mov [rsp+0A8h+var_30], rax
mov [rsp+0A8h+var_28], rdx
lea rdi, [rsp+0A8h+var_40]
lea rsi, a0x; "0x"
call _ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc; std::string_view::basic_string_view(char const*)
mov rdi, [rsp+0A8h+var_30]
mov rsi, [rsp+0A8h+var_28]
mov rdx, [rsp+0A8h+var_40]
mov rcx, [rsp+0A8h+var_38]
call _Z12StringEqualISt17basic_string_viewIcSt11char_traitsIcEES2_; StringEqualI(std::string_view,std::string_view)
test al, 1
jnz short loc_F9ED2
jmp short loc_F9EF1
loc_F9ED2:
mov [rsp+0A8h+var_1C], 10h
lea rdi, [rsp+0A8h+var_18]
mov esi, 2
call _ZNSt17basic_string_viewIcSt11char_traitsIcEE13remove_prefixEm; std::string_view::remove_prefix(ulong)
jmp short loc_F9F6D
loc_F9EF1:
lea rdi, [rsp+0A8h+var_18]
xor eax, eax
mov esi, eax
mov edx, 2
call _ZNKSt17basic_string_viewIcSt11char_traitsIcEE6substrEmm; std::string_view::substr(ulong,ulong)
mov [rsp+0A8h+var_50], rax
mov [rsp+0A8h+var_48], rdx
lea rdi, [rsp+0A8h+var_60]
lea rsi, a0b; "0b"
call _ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc; std::string_view::basic_string_view(char const*)
mov rdi, [rsp+0A8h+var_50]
mov rsi, [rsp+0A8h+var_48]
mov rdx, [rsp+0A8h+var_60]
mov rcx, [rsp+0A8h+var_58]
call _Z12StringEqualISt17basic_string_viewIcSt11char_traitsIcEES2_; StringEqualI(std::string_view,std::string_view)
test al, 1
jnz short loc_F9F41
jmp short loc_F9F60
loc_F9F41:
mov [rsp+0A8h+var_1C], 2
lea rdi, [rsp+0A8h+var_18]
mov esi, 2
call _ZNSt17basic_string_viewIcSt11char_traitsIcEE13remove_prefixEm; std::string_view::remove_prefix(ulong)
jmp short loc_F9F6B
loc_F9F60:
mov [rsp+0A8h+var_1C], 0Ah
loc_F9F6B:
jmp short $+2
loc_F9F6D:
lea rdi, [rsp+0A8h+var_18]
call _ZNKSt17basic_string_viewIcSt11char_traitsIcEE5emptyEv; std::string_view::empty(void)
test al, 1
jnz short loc_F9F80
jmp short loc_F9F92
loc_F9F80:
lea rdi, [rsp+0A8h+var_2]
call _ZNSt8optionalIaEC2ESt9nullopt_t; std::optional<signed char>::optional(std::nullopt_t)
jmp loc_FA025
loc_F9F92:
jmp short $+2
loc_F9F94:
lea rdi, [rsp+0A8h+var_18]
call _ZNKSt17basic_string_viewIcSt11char_traitsIcEE4dataEv; std::string_view::data(void)
mov [rsp+0A8h+var_70], rax
mov rax, [rsp+0A8h+var_70]
mov [rsp+0A8h+var_A0], rax
lea rdi, [rsp+0A8h+var_18]
call _ZNKSt17basic_string_viewIcSt11char_traitsIcEE6lengthEv; std::string_view::length(void)
mov rcx, rax
mov rax, [rsp+0A8h+var_A0]
add rax, rcx
mov [rsp+0A8h+var_78], rax
mov rdi, [rsp+0A8h+var_70]
mov rsi, [rsp+0A8h+var_78]
mov ecx, [rsp+0A8h+var_1C]
lea rdx, [rsp+0A8h+var_79]
call _ZSt10from_charsIaTnNSt9enable_ifIXsr5__or_ISt5__or_IJS1_IJSt7is_sameINSt9remove_cvIT_E4typeEaES2_IS6_sES2_IS6_iES2_IS6_lES2_IS6_xES2_IS6_nEEES1_IJS2_IS6_hES2_IS6_tES2_IS6_jES2_IS6_mES2_IS6_yES2_IS6_oEEEEES2_IcS6_EEE5valueEiE4typeELi0EESt17from_chars_resultPKcSR_RS4_i
mov [rsp+0A8h+var_90], rax
mov [rsp+0A8h+var_88], edx
mov rax, [rsp+0A8h+var_90]
cmp rax, [rsp+0A8h+var_78]
jnz short loc_FA018
cmp [rsp+0A8h+var_88], 0
jnz short loc_FA018
lea rdi, [rsp+0A8h+var_2]
lea rsi, [rsp+0A8h+var_79]
call _ZNSt8optionalIaEC2IaTnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS0_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES3_IS4_ISt10in_place_tSB_EESt16is_constructibleIaJS7_EESt14is_convertibleIS7_aEEEbE4typeELb1EEEOS7_
jmp short loc_FA025
loc_FA018:
lea rdi, [rsp+0A8h+var_2]
call _ZNSt8optionalIaEC2ESt9nullopt_t; std::optional<signed char>::optional(std::nullopt_t)
loc_FA025:
mov ax, [rsp+0A8h+var_2]
add rsp, 0A8h
retn
|
__int16 Acore::Impl::StringConvertImpl::For<signed char,void>::FromString(
long long a1,
long long a2,
unsigned int a3)
{
long long v3; // rdx
long long v4; // rdx
int v5; // edx
long long v7; // [rsp+18h] [rbp-90h]
char v8; // [rsp+2Fh] [rbp-79h] BYREF
long long v9; // [rsp+30h] [rbp-78h]
long long v10; // [rsp+38h] [rbp-70h]
long long v11[2]; // [rsp+48h] [rbp-60h] BYREF
long long v12; // [rsp+58h] [rbp-50h]
long long v13; // [rsp+60h] [rbp-48h]
long long v14[2]; // [rsp+68h] [rbp-40h] BYREF
long long v15; // [rsp+78h] [rbp-30h]
long long v16; // [rsp+80h] [rbp-28h]
unsigned int v17; // [rsp+8Ch] [rbp-1Ch]
_QWORD v18[2]; // [rsp+90h] [rbp-18h] BYREF
__int16 v19; // [rsp+A6h] [rbp-2h] BYREF
v18[0] = a1;
v18[1] = a2;
v17 = a3;
if ( a3 )
goto LABEL_9;
v15 = std::string_view::substr(v18, 0LL, 2LL);
v16 = v3;
std::string_view::basic_string_view(v14, (long long)"0x");
if ( (StringEqualI(v15, v16, v14[0], v14[1]) & 1) != 0 )
{
v17 = 16;
std::string_view::remove_prefix(v18, 2LL);
}
else
{
v12 = std::string_view::substr(v18, 0LL, 2LL);
v13 = v4;
std::string_view::basic_string_view(v11, (long long)"0b");
if ( (StringEqualI(v12, v13, v11[0], v11[1]) & 1) != 0 )
{
v17 = 2;
std::string_view::remove_prefix(v18, 2LL);
}
else
{
v17 = 10;
}
}
if ( !std::string_view::empty(v18) )
{
LABEL_9:
v10 = std::string_view::data((long long)v18);
v9 = std::string_view::length((long long)v18) + v10;
v7 = ZSt10from_charsIaTnNSt9enable_ifIXsr5__or_ISt5__or_IJS1_IJSt7is_sameINSt9remove_cvIT_E4typeEaES2_IS6_sES2_IS6_iES2_IS6_lES2_IS6_xES2_IS6_nEEES1_IJS2_IS6_hES2_IS6_tES2_IS6_jES2_IS6_mES2_IS6_yES2_IS6_oEEEEES2_IcS6_EEE5valueEiE4typeELi0EESt17from_chars_resultPKcSR_RS4_i(
v10,
v9,
&v8,
v17);
if ( v7 != v9 || v5 )
std::optional<signed char>::optional(&v19);
else
ZNSt8optionalIaEC2IaTnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS0_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES3_IS4_ISt10in_place_tSB_EESt16is_constructibleIaJS7_EESt14is_convertibleIS7_aEEEbE4typeELb1EEEOS7_(
&v19,
&v8);
}
else
{
std::optional<signed char>::optional(&v19);
}
return v19;
}
|
FromString:
SUB RSP,0xa8
MOV qword ptr [RSP + 0x90],RDI
MOV qword ptr [RSP + 0x98],RSI
MOV dword ptr [RSP + 0x8c],EDX
CMP dword ptr [RSP + 0x8c],0x0
JNZ 0x001f9f94
LEA RDI,[RSP + 0x90]
XOR EAX,EAX
MOV ESI,EAX
MOV EDX,0x2
CALL 0x00191270
MOV qword ptr [RSP + 0x78],RAX
MOV qword ptr [RSP + 0x80],RDX
LEA RDI,[RSP + 0x68]
LEA RSI,[0x416987]
CALL 0x0012e0e0
MOV RDI,qword ptr [RSP + 0x78]
MOV RSI,qword ptr [RSP + 0x80]
MOV RDX,qword ptr [RSP + 0x68]
MOV RCX,qword ptr [RSP + 0x70]
CALL 0x002f7f60
TEST AL,0x1
JNZ 0x001f9ed2
JMP 0x001f9ef1
LAB_001f9ed2:
MOV dword ptr [RSP + 0x8c],0x10
LEA RDI,[RSP + 0x90]
MOV ESI,0x2
CALL 0x00191310
JMP 0x001f9f6d
LAB_001f9ef1:
LEA RDI,[RSP + 0x90]
XOR EAX,EAX
MOV ESI,EAX
MOV EDX,0x2
CALL 0x00191270
MOV qword ptr [RSP + 0x58],RAX
MOV qword ptr [RSP + 0x60],RDX
LEA RDI,[RSP + 0x48]
LEA RSI,[0x41698a]
CALL 0x0012e0e0
MOV RDI,qword ptr [RSP + 0x58]
MOV RSI,qword ptr [RSP + 0x60]
MOV RDX,qword ptr [RSP + 0x48]
MOV RCX,qword ptr [RSP + 0x50]
CALL 0x002f7f60
TEST AL,0x1
JNZ 0x001f9f41
JMP 0x001f9f60
LAB_001f9f41:
MOV dword ptr [RSP + 0x8c],0x2
LEA RDI,[RSP + 0x90]
MOV ESI,0x2
CALL 0x00191310
JMP 0x001f9f6b
LAB_001f9f60:
MOV dword ptr [RSP + 0x8c],0xa
LAB_001f9f6b:
JMP 0x001f9f6d
LAB_001f9f6d:
LEA RDI,[RSP + 0x90]
CALL 0x00191350
TEST AL,0x1
JNZ 0x001f9f80
JMP 0x001f9f92
LAB_001f9f80:
LEA RDI,[RSP + 0xa6]
CALL 0x001fa040
JMP 0x001fa025
LAB_001f9f92:
JMP 0x001f9f94
LAB_001f9f94:
LEA RDI,[RSP + 0x90]
CALL 0x00131650
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x8],RAX
LEA RDI,[RSP + 0x90]
CALL 0x00187b80
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x8]
ADD RAX,RCX
MOV qword ptr [RSP + 0x30],RAX
MOV RDI,qword ptr [RSP + 0x38]
MOV RSI,qword ptr [RSP + 0x30]
MOV ECX,dword ptr [RSP + 0x8c]
LEA RDX,[RSP + 0x2f]
CALL 0x001fa060
MOV qword ptr [RSP + 0x18],RAX
MOV dword ptr [RSP + 0x20],EDX
MOV RAX,qword ptr [RSP + 0x18]
CMP RAX,qword ptr [RSP + 0x30]
JNZ 0x001fa018
CMP dword ptr [RSP + 0x20],0x0
JNZ 0x001fa018
LEA RDI,[RSP + 0xa6]
LEA RSI,[RSP + 0x2f]
CALL 0x001fa220
JMP 0x001fa025
LAB_001fa018:
LEA RDI,[RSP + 0xa6]
CALL 0x001fa040
LAB_001fa025:
MOV AX,word ptr [RSP + 0xa6]
ADD RSP,0xa8
RET
|
/* Acore::Impl::StringConvertImpl::For<signed char, void>::FromString(std::basic_string_view<char,
std::char_traits<char> >, int) */
int2 __thiscall
Acore::Impl::StringConvertImpl::For<signed_char,void>::FromString
(For<signed_char,void> *this,int8 param_2,int param_3)
{
ulong uVar1;
long lVar2;
int1 auVar3 [12];
int1 local_79;
long local_78;
long local_70;
int8 local_60;
int8 local_58;
int1 local_50 [16];
int8 local_40;
int8 local_38;
int1 local_30 [16];
int local_1c;
For<signed_char,void> *local_18;
int8 local_10;
int2 local_2;
local_1c = param_3;
local_18 = this;
local_10 = param_2;
if (param_3 == 0) {
local_30 = std::basic_string_view<char,std::char_traits<char>>::substr
((basic_string_view<char,std::char_traits<char>> *)&local_18,0,2);
std::basic_string_view<char,std::char_traits<char>>::basic_string_view
((basic_string_view<char,std::char_traits<char>> *)&local_40,"0x");
uVar1 = StringEqualI(local_30._0_8_,local_30._8_8_,local_40,local_38);
if ((uVar1 & 1) == 0) {
local_50 = std::basic_string_view<char,std::char_traits<char>>::substr
((basic_string_view<char,std::char_traits<char>> *)&local_18,0,2);
std::basic_string_view<char,std::char_traits<char>>::basic_string_view
((basic_string_view<char,std::char_traits<char>> *)&local_60,"0b");
uVar1 = StringEqualI(local_50._0_8_,local_50._8_8_,local_60,local_58);
if ((uVar1 & 1) == 0) {
local_1c = 10;
}
else {
local_1c = 2;
std::basic_string_view<char,std::char_traits<char>>::remove_prefix
((basic_string_view<char,std::char_traits<char>> *)&local_18,2);
}
}
else {
local_1c = 0x10;
std::basic_string_view<char,std::char_traits<char>>::remove_prefix
((basic_string_view<char,std::char_traits<char>> *)&local_18,2);
}
uVar1 = std::basic_string_view<char,std::char_traits<char>>::empty
((basic_string_view<char,std::char_traits<char>> *)&local_18);
if ((uVar1 & 1) != 0) {
std::optional<signed_char>::optional(&local_2);
return local_2;
}
}
lVar2 = std::basic_string_view<char,std::char_traits<char>>::data
((basic_string_view<char,std::char_traits<char>> *)&local_18);
local_70 = lVar2;
local_78 = std::basic_string_view<char,std::char_traits<char>>::length
((basic_string_view<char,std::char_traits<char>> *)&local_18);
local_78 = lVar2 + local_78;
auVar3 = _ZSt10from_charsIaTnNSt9enable_ifIXsr5__or_ISt5__or_IJS1_IJSt7is_sameINSt9remove_cvIT_E4typeEaES2_IS6_sES2_IS6_iES2_IS6_lES2_IS6_xES2_IS6_nEEES1_IJS2_IS6_hES2_IS6_tES2_IS6_jES2_IS6_mES2_IS6_yES2_IS6_oEEEEES2_IcS6_EEE5valueEiE4typeELi0EESt17from_chars_resultPKcSR_RS4_i
(local_70,local_78,&local_79,local_1c);
if ((auVar3._0_8_ == local_78) && (auVar3._8_4_ == 0)) {
_ZNSt8optionalIaEC2IaTnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS0_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES3_IS4_ISt10in_place_tSB_EESt16is_constructibleIaJS7_EESt14is_convertibleIS7_aEEEbE4typeELb1EEEOS7_
(&local_2,&local_79);
}
else {
std::optional<signed_char>::optional(&local_2);
}
return local_2;
}
|
|
56,932
|
LefDefParser::defiPath::addTaperRule(char const*)
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiPath.cpp
|
void defiPath::addTaperRule(const char* l) {
int len = strlen(l)+1;
if (numUsed_ == numAllocated_)
bumpSize(numAllocated_ * 2);
keys_[numUsed_] = 'R' ;
data_[numUsed_] = malloc(len);
strcpy((char*)(data_[numUsed_]), defData->DEFCASE(l));
(numUsed_)++;
}
|
O0
|
cpp
|
LefDefParser::defiPath::addTaperRule(char const*):
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rdi
callq 0x70e0
movq 0x8(%rsp), %rcx
addq $0x1, %rax
movl %eax, 0x14(%rsp)
movl 0x10(%rcx), %eax
cmpl 0x14(%rcx), %eax
jne 0x1b786
movq 0x8(%rsp), %rdi
movl 0x14(%rdi), %esi
shll %esi
callq 0x1a7d0
movq 0x8(%rsp), %rcx
movq (%rcx), %rax
movslq 0x10(%rcx), %rcx
movl $0x52, (%rax,%rcx,4)
movslq 0x14(%rsp), %rdi
callq 0x72d0
movq %rax, %rsi
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rcx
movslq 0x10(%rax), %rdx
movq %rsi, (%rcx,%rdx,8)
movq 0x8(%rax), %rcx
movslq 0x10(%rax), %rdx
movq (%rcx,%rdx,8), %rcx
movq %rcx, (%rsp)
movq 0x40(%rax), %rdi
movq 0x18(%rsp), %rsi
callq 0x27ed0
movq (%rsp), %rdi
movq %rax, %rsi
callq 0x7220
movq 0x8(%rsp), %rax
movl 0x10(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x10(%rax)
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
|
_ZN12LefDefParser8defiPath12addTaperRuleEPKc:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov [rsp+28h+var_10], rsi
mov rax, [rsp+28h+var_8]
mov [rsp+28h+var_20], rax
mov rdi, [rsp+28h+var_10]
call _strlen
mov rcx, [rsp+28h+var_20]
add rax, 1
mov [rsp+28h+var_14], eax
mov eax, [rcx+10h]
cmp eax, [rcx+14h]
jnz short loc_1B786
mov rdi, [rsp+28h+var_20]; this
mov esi, [rdi+14h]
shl esi, 1; int
call _ZN12LefDefParser8defiPath8bumpSizeEi; LefDefParser::defiPath::bumpSize(int)
loc_1B786:
mov rcx, [rsp+28h+var_20]
mov rax, [rcx]
movsxd rcx, dword ptr [rcx+10h]
mov dword ptr [rax+rcx*4], 52h ; 'R'
movsxd rdi, [rsp+28h+var_14]
call _malloc
mov rsi, rax
mov rax, [rsp+28h+var_20]
mov rcx, [rax+8]
movsxd rdx, dword ptr [rax+10h]
mov [rcx+rdx*8], rsi
mov rcx, [rax+8]
movsxd rdx, dword ptr [rax+10h]
mov rcx, [rcx+rdx*8]
mov [rsp+28h+var_28], rcx
mov rdi, [rax+40h]; this
mov rsi, [rsp+28h+var_10]; char *
call _ZN12LefDefParser8defrData7DEFCASEEPKc; LefDefParser::defrData::DEFCASE(char const*)
mov rdi, [rsp+28h+var_28]
mov rsi, rax
call _strcpy
mov rax, [rsp+28h+var_20]
mov ecx, [rax+10h]
add ecx, 1
mov [rax+10h], ecx
add rsp, 28h
retn
|
LefDefParser::defrData ** LefDefParser::defiPath::addTaperRule(LefDefParser::defrData **this, const char *a2)
{
long long v2; // rax
long long v3; // rdx
LefDefParser::defrData **result; // rax
long long v5; // [rsp+0h] [rbp-28h]
int v6; // [rsp+14h] [rbp-14h]
v6 = strlen(a2) + 1;
if ( *((_DWORD *)this + 4) == *((_DWORD *)this + 5) )
LefDefParser::defiPath::bumpSize((LefDefParser::defiPath *)this, 2 * *((_DWORD *)this + 5));
*((_DWORD *)*this + *((int *)this + 4)) = 82;
*((_QWORD *)this[1] + *((int *)this + 4)) = malloc(v6);
v5 = *((_QWORD *)this[1] + *((int *)this + 4));
v2 = LefDefParser::defrData::DEFCASE(this[8], a2);
strcpy(v5, v2, v3);
result = this;
++*((_DWORD *)this + 4);
return result;
}
|
addTaperRule:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x18],RSI
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x001070e0
MOV RCX,qword ptr [RSP + 0x8]
ADD RAX,0x1
MOV dword ptr [RSP + 0x14],EAX
MOV EAX,dword ptr [RCX + 0x10]
CMP EAX,dword ptr [RCX + 0x14]
JNZ 0x0011b786
MOV RDI,qword ptr [RSP + 0x8]
MOV ESI,dword ptr [RDI + 0x14]
SHL ESI,0x1
CALL 0x0011a7d0
LAB_0011b786:
MOV RCX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RCX]
MOVSXD RCX,dword ptr [RCX + 0x10]
MOV dword ptr [RAX + RCX*0x4],0x52
MOVSXD RDI,dword ptr [RSP + 0x14]
CALL 0x001072d0
MOV RSI,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RAX + 0x8]
MOVSXD RDX,dword ptr [RAX + 0x10]
MOV qword ptr [RCX + RDX*0x8],RSI
MOV RCX,qword ptr [RAX + 0x8]
MOVSXD RDX,dword ptr [RAX + 0x10]
MOV RCX,qword ptr [RCX + RDX*0x8]
MOV qword ptr [RSP],RCX
MOV RDI,qword ptr [RAX + 0x40]
MOV RSI,qword ptr [RSP + 0x18]
CALL 0x00127ed0
MOV RDI,qword ptr [RSP]
MOV RSI,RAX
CALL 0x00107220
MOV RAX,qword ptr [RSP + 0x8]
MOV ECX,dword ptr [RAX + 0x10]
ADD ECX,0x1
MOV dword ptr [RAX + 0x10],ECX
ADD RSP,0x28
RET
|
/* LefDefParser::defiPath::addTaperRule(char const*) */
void __thiscall LefDefParser::defiPath::addTaperRule(defiPath *this,char *param_1)
{
char *__dest;
size_t sVar1;
void *pvVar2;
char *__src;
sVar1 = strlen(param_1);
if (*(int *)(this + 0x10) == *(int *)(this + 0x14)) {
bumpSize(this,*(int *)(this + 0x14) << 1);
}
*(int4 *)(*(long *)this + (long)*(int *)(this + 0x10) * 4) = 0x52;
pvVar2 = malloc((long)((int)sVar1 + 1));
*(void **)(*(long *)(this + 8) + (long)*(int *)(this + 0x10) * 8) = pvVar2;
__dest = *(char **)(*(long *)(this + 8) + (long)*(int *)(this + 0x10) * 8);
__src = (char *)defrData::DEFCASE(*(defrData **)(this + 0x40),param_1);
strcpy(__dest,__src);
*(int *)(this + 0x10) = *(int *)(this + 0x10) + 1;
return;
}
|
|
56,933
|
my_wildcmp_bin_impl
|
eloqsql/strings/ctype-bin.c
|
static
int my_wildcmp_bin_impl(CHARSET_INFO *cs,
const char *str,const char *str_end,
const char *wildstr,const char *wildend,
int escape, int w_one, int w_many, int recurse_level)
{
int result= -1; /* Not found, using wildcards */
if (my_string_stack_guard && my_string_stack_guard(recurse_level))
return 1;
while (wildstr != wildend)
{
while (*wildstr != w_many && *wildstr != w_one)
{
if (*wildstr == escape && wildstr+1 != wildend)
wildstr++;
if (str == str_end || likeconv(cs,*wildstr++) != likeconv(cs,*str++))
return(1); /* No match */
if (wildstr == wildend)
return(str != str_end); /* Match if both are at end */
result=1; /* Found an anchor char */
}
if (*wildstr == w_one)
{
do
{
if (str == str_end) /* Skip one char if possible */
return(result);
INC_PTR(cs,str,str_end);
} while (++wildstr < wildend && *wildstr == w_one);
if (wildstr == wildend)
break;
}
if (*wildstr == w_many)
{ /* Found w_many */
uchar cmp;
wildstr++;
/* Remove any '%' and '_' from the wild search string */
for (; wildstr != wildend ; wildstr++)
{
if (*wildstr == w_many)
continue;
if (*wildstr == w_one)
{
if (str == str_end)
return(-1);
INC_PTR(cs,str,str_end);
continue;
}
break; /* Not a wild character */
}
if (wildstr == wildend)
return(0); /* match if w_many is last */
if (str == str_end)
return(-1);
if ((cmp= *wildstr) == escape && wildstr+1 != wildend)
cmp= *++wildstr;
INC_PTR(cs,wildstr,wildend); /* This is compared through cmp */
cmp=likeconv(cs,cmp);
do
{
while (str != str_end && (uchar) likeconv(cs,*str) != cmp)
str++;
if (str++ == str_end)
return(-1);
{
int tmp=my_wildcmp_bin_impl(cs,str,str_end,wildstr,wildend,escape,w_one,
w_many, recurse_level + 1);
if (tmp <= 0)
return(tmp);
}
} while (str != str_end);
return(-1);
}
}
return(str != str_end ? 1 : 0);
}
|
O0
|
c
|
my_wildcmp_bin_impl:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movl 0x20(%rbp), %eax
movl 0x18(%rbp), %eax
movl 0x10(%rbp), %eax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movl %r9d, -0x34(%rbp)
movl $0xffffffff, -0x38(%rbp) # imm = 0xFFFFFFFF
leaq 0x3719d1(%rip), %rax # 0x3b6448
cmpq $0x0, (%rax)
je 0x44a9d
leaq 0x3719c4(%rip), %rax # 0x3b6448
movq (%rax), %rax
movl 0x20(%rbp), %edi
callq *%rax
cmpl $0x0, %eax
je 0x44a9d
movl $0x1, -0x4(%rbp)
jmp 0x44d9a
jmp 0x44a9f
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
je 0x44d82
jmp 0x44aaf
movq -0x28(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl 0x18(%rbp), %ecx
movb %al, -0x41(%rbp)
je 0x44ad0
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl 0x10(%rbp), %eax
setne %al
movb %al, -0x41(%rbp)
movb -0x41(%rbp), %al
testb $0x1, %al
jne 0x44adc
jmp 0x44b6e
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl -0x34(%rbp), %eax
jne 0x44b02
movq -0x28(%rbp), %rax
addq $0x1, %rax
cmpq -0x30(%rbp), %rax
je 0x44b02
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
je 0x44b34
movq -0x28(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x28(%rbp)
movsbl (%rax), %eax
movq -0x18(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x18(%rbp)
movsbl (%rcx), %ecx
cmpl %ecx, %eax
je 0x44b40
movl $0x1, -0x4(%rbp)
jmp 0x44d9a
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jne 0x44b62
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x4(%rbp)
jmp 0x44d9a
movl $0x1, -0x38(%rbp)
jmp 0x44aaf
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl 0x10(%rbp), %eax
jne 0x44bdc
jmp 0x44b7c
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jne 0x44b91
movl -0x38(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x44d9a
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
movq -0x28(%rbp), %rcx
addq $0x1, %rcx
movq %rcx, -0x28(%rbp)
xorl %eax, %eax
cmpq -0x30(%rbp), %rcx
movb %al, -0x42(%rbp)
jae 0x44bc4
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl 0x10(%rbp), %eax
sete %al
movb %al, -0x42(%rbp)
movb -0x42(%rbp), %al
testb $0x1, %al
jne 0x44b7c
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jne 0x44bda
jmp 0x44d82
jmp 0x44bdc
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl 0x18(%rbp), %eax
jne 0x44d7d
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
je 0x44c50
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl 0x18(%rbp), %eax
jne 0x44c10
jmp 0x44c42
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl 0x10(%rbp), %eax
jne 0x44c40
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jne 0x44c32
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x44d9a
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x44c42
jmp 0x44c50
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x44bf8
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jne 0x44c66
movl $0x0, -0x4(%rbp)
jmp 0x44d9a
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jne 0x44c7c
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x44d9a
movq -0x28(%rbp), %rax
movb (%rax), %al
movb %al, -0x39(%rbp)
movzbl %al, %eax
cmpl -0x34(%rbp), %eax
jne 0x44cb0
movq -0x28(%rbp), %rax
addq $0x1, %rax
cmpq -0x30(%rbp), %rax
je 0x44cb0
movq -0x28(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x28(%rbp)
movb 0x1(%rax), %al
movb %al, -0x39(%rbp)
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movb -0x39(%rbp), %al
movb %al, -0x39(%rbp)
jmp 0x44cc4
movq -0x18(%rbp), %rcx
xorl %eax, %eax
cmpq -0x20(%rbp), %rcx
movb %al, -0x43(%rbp)
je 0x44ce6
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
movzbl -0x39(%rbp), %ecx
cmpl %ecx, %eax
setne %al
movb %al, -0x43(%rbp)
movb -0x43(%rbp), %al
testb $0x1, %al
jne 0x44cef
jmp 0x44cfd
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x44cc4
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
cmpq -0x20(%rbp), %rax
jne 0x44d1b
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x44d9a
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
movl -0x34(%rbp), %r9d
movl 0x10(%rbp), %r11d
movl 0x18(%rbp), %r10d
movl 0x20(%rbp), %eax
addl $0x1, %eax
movl %r11d, (%rsp)
movl %r10d, 0x8(%rsp)
movl %eax, 0x10(%rsp)
callq 0x44a40
movl %eax, -0x40(%rbp)
cmpl $0x0, -0x40(%rbp)
jg 0x44d64
movl -0x40(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x44d9a
jmp 0x44d66
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jne 0x44cc2
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x44d9a
jmp 0x44a9f
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rsi
xorl %eax, %eax
movl $0x1, %ecx
cmpq %rsi, %rdx
cmovnel %ecx, %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_wildcmp_bin_impl:
push rbp
mov rbp, rsp
sub rsp, 60h
mov eax, [rbp+arg_10]
mov eax, [rbp+arg_8]
mov eax, [rbp+arg_0]
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 [rbp+var_34], r9d
mov [rbp+var_38], 0FFFFFFFFh
lea rax, my_string_stack_guard
cmp qword ptr [rax], 0
jz short loc_44A9D
lea rax, my_string_stack_guard
mov rax, [rax]
mov edi, [rbp+arg_10]
call rax
cmp eax, 0
jz short loc_44A9D
mov [rbp+var_4], 1
jmp loc_44D9A
loc_44A9D:
jmp short $+2
loc_44A9F:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_30]
jz loc_44D82
jmp short $+2
loc_44AAF:
mov rax, [rbp+var_28]
movsx ecx, byte ptr [rax]
xor eax, eax
cmp ecx, [rbp+arg_8]
mov [rbp+var_41], al
jz short loc_44AD0
mov rax, [rbp+var_28]
movsx eax, byte ptr [rax]
cmp eax, [rbp+arg_0]
setnz al
mov [rbp+var_41], al
loc_44AD0:
mov al, [rbp+var_41]
test al, 1
jnz short loc_44ADC
jmp loc_44B6E
loc_44ADC:
mov rax, [rbp+var_28]
movsx eax, byte ptr [rax]
cmp eax, [rbp+var_34]
jnz short loc_44B02
mov rax, [rbp+var_28]
add rax, 1
cmp rax, [rbp+var_30]
jz short loc_44B02
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
loc_44B02:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jz short loc_44B34
mov rax, [rbp+var_28]
mov rcx, rax
add rcx, 1
mov [rbp+var_28], rcx
movsx eax, byte ptr [rax]
mov rcx, [rbp+var_18]
mov rdx, rcx
add rdx, 1
mov [rbp+var_18], rdx
movsx ecx, byte ptr [rcx]
cmp eax, ecx
jz short loc_44B40
loc_44B34:
mov [rbp+var_4], 1
jmp loc_44D9A
loc_44B40:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_30]
jnz short loc_44B62
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
setnz al
and al, 1
movzx eax, al
mov [rbp+var_4], eax
jmp loc_44D9A
loc_44B62:
mov [rbp+var_38], 1
jmp loc_44AAF
loc_44B6E:
mov rax, [rbp+var_28]
movsx eax, byte ptr [rax]
cmp eax, [rbp+arg_0]
jnz short loc_44BDC
jmp short $+2
loc_44B7C:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jnz short loc_44B91
mov eax, [rbp+var_38]
mov [rbp+var_4], eax
jmp loc_44D9A
loc_44B91:
mov rax, [rbp+var_18]
add rax, 1
mov [rbp+var_18], rax
mov rcx, [rbp+var_28]
add rcx, 1
mov [rbp+var_28], rcx
xor eax, eax
cmp rcx, [rbp+var_30]
mov [rbp+var_42], al
jnb short loc_44BC4
mov rax, [rbp+var_28]
movsx eax, byte ptr [rax]
cmp eax, [rbp+arg_0]
setz al
mov [rbp+var_42], al
loc_44BC4:
mov al, [rbp+var_42]
test al, 1
jnz short loc_44B7C
mov rax, [rbp+var_28]
cmp rax, [rbp+var_30]
jnz short loc_44BDA
jmp loc_44D82
loc_44BDA:
jmp short $+2
loc_44BDC:
mov rax, [rbp+var_28]
movsx eax, byte ptr [rax]
cmp eax, [rbp+arg_8]
jnz loc_44D7D
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
loc_44BF8:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_30]
jz short loc_44C50
mov rax, [rbp+var_28]
movsx eax, byte ptr [rax]
cmp eax, [rbp+arg_8]
jnz short loc_44C10
jmp short loc_44C42
loc_44C10:
mov rax, [rbp+var_28]
movsx eax, byte ptr [rax]
cmp eax, [rbp+arg_0]
jnz short loc_44C40
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jnz short loc_44C32
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_44D9A
loc_44C32:
mov rax, [rbp+var_18]
add rax, 1
mov [rbp+var_18], rax
jmp short loc_44C42
loc_44C40:
jmp short loc_44C50
loc_44C42:
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
jmp short loc_44BF8
loc_44C50:
mov rax, [rbp+var_28]
cmp rax, [rbp+var_30]
jnz short loc_44C66
mov [rbp+var_4], 0
jmp loc_44D9A
loc_44C66:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jnz short loc_44C7C
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_44D9A
loc_44C7C:
mov rax, [rbp+var_28]
mov al, [rax]
mov [rbp+var_39], al
movzx eax, al
cmp eax, [rbp+var_34]
jnz short loc_44CB0
mov rax, [rbp+var_28]
add rax, 1
cmp rax, [rbp+var_30]
jz short loc_44CB0
mov rax, [rbp+var_28]
mov rcx, rax
add rcx, 1
mov [rbp+var_28], rcx
mov al, [rax+1]
mov [rbp+var_39], al
loc_44CB0:
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
mov al, [rbp+var_39]
mov [rbp+var_39], al
loc_44CC2:
jmp short $+2
loc_44CC4:
mov rcx, [rbp+var_18]
xor eax, eax
cmp rcx, [rbp+var_20]
mov [rbp+var_43], al
jz short loc_44CE6
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax]
movzx ecx, [rbp+var_39]
cmp eax, ecx
setnz al
mov [rbp+var_43], al
loc_44CE6:
mov al, [rbp+var_43]
test al, 1
jnz short loc_44CEF
jmp short loc_44CFD
loc_44CEF:
mov rax, [rbp+var_18]
add rax, 1
mov [rbp+var_18], rax
jmp short loc_44CC4
loc_44CFD:
mov rax, [rbp+var_18]
mov rcx, rax
add rcx, 1
mov [rbp+var_18], rcx
cmp rax, [rbp+var_20]
jnz short loc_44D1B
mov [rbp+var_4], 0FFFFFFFFh
jmp short loc_44D9A
loc_44D1B:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_28]
mov r8, [rbp+var_30]
mov r9d, [rbp+var_34]
mov r11d, [rbp+arg_0]
mov r10d, [rbp+arg_8]
mov eax, [rbp+arg_10]
add eax, 1
mov [rsp+60h+var_60], r11d
mov [rsp+60h+var_58], r10d
mov [rsp+60h+var_50], eax
call my_wildcmp_bin_impl
mov [rbp+var_40], eax
cmp [rbp+var_40], 0
jg short loc_44D64
mov eax, [rbp+var_40]
mov [rbp+var_4], eax
jmp short loc_44D9A
loc_44D64:
jmp short $+2
loc_44D66:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jnz loc_44CC2
mov [rbp+var_4], 0FFFFFFFFh
jmp short loc_44D9A
loc_44D7D:
jmp loc_44A9F
loc_44D82:
mov rdx, [rbp+var_18]
mov rsi, [rbp+var_20]
xor eax, eax
mov ecx, 1
cmp rdx, rsi
cmovnz eax, ecx
mov [rbp+var_4], eax
loc_44D9A:
mov eax, [rbp+var_4]
add rsp, 60h
pop rbp
retn
|
long long my_wildcmp_bin_impl(
int a1,
unsigned __int8 *a2,
unsigned __int8 *a3,
char *a4,
char *a5,
int a6,
int a7,
int a8,
unsigned int a9)
{
char *v9; // rax
unsigned __int8 *v10; // rcx
char *v11; // rax
unsigned __int8 *v12; // rax
bool v14; // [rsp+1Dh] [rbp-43h]
bool v15; // [rsp+1Eh] [rbp-42h]
bool v16; // [rsp+1Fh] [rbp-41h]
int v17; // [rsp+20h] [rbp-40h]
unsigned __int8 v18; // [rsp+27h] [rbp-39h]
unsigned int v19; // [rsp+28h] [rbp-38h]
char *i; // [rsp+38h] [rbp-28h]
int v24; // [rsp+38h] [rbp-28h]
v19 = -1;
if ( my_string_stack_guard && (unsigned int)my_string_stack_guard(a9) )
{
return 1;
}
else
{
do
{
if ( a4 != a5 )
{
while ( 1 )
{
v16 = 0;
if ( *a4 != a8 )
v16 = *a4 != a7;
if ( !v16 )
break;
if ( *a4 == a6 && a4 + 1 != a5 )
++a4;
if ( a2 == a3 )
return 1;
v9 = a4++;
v10 = a2++;
if ( *v9 != (char)*v10 )
return 1;
if ( a4 == a5 )
return a2 != a3;
v19 = 1;
}
if ( *a4 != a7 )
continue;
do
{
if ( a2 == a3 )
return v19;
++a2;
++a4;
v15 = 0;
if ( a4 < a5 )
v15 = *a4 == a7;
}
while ( v15 );
if ( a4 != a5 )
continue;
}
return a2 != a3;
}
while ( *a4 != a8 );
for ( i = a4 + 1; i != a5; ++i )
{
if ( *i != a8 )
{
if ( *i != a7 )
break;
if ( a2 == a3 )
return (unsigned int)-1;
++a2;
}
}
if ( i == a5 )
{
return 0;
}
else if ( a2 == a3 )
{
return (unsigned int)-1;
}
else
{
v18 = *i;
if ( (unsigned __int8)*i == a6 && i + 1 != a5 )
{
v11 = i;
LODWORD(i) = (_DWORD)i + 1;
v18 = v11[1];
}
v24 = (_DWORD)i + 1;
do
{
while ( 1 )
{
v14 = 0;
if ( a2 != a3 )
v14 = *a2 != v18;
if ( !v14 )
break;
++a2;
}
v12 = a2++;
if ( v12 == a3 )
return (unsigned int)-1;
v17 = my_wildcmp_bin_impl(a1, (_DWORD)a2, (_DWORD)a3, v24, (_DWORD)a5, a6, a7, a8, a9 + 1);
if ( v17 <= 0 )
return (unsigned int)v17;
}
while ( a2 != a3 );
return (unsigned int)-1;
}
}
}
|
my_wildcmp_bin_impl:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV EAX,dword ptr [RBP + 0x20]
MOV EAX,dword ptr [RBP + 0x18]
MOV EAX,dword ptr [RBP + 0x10]
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 dword ptr [RBP + -0x34],R9D
MOV dword ptr [RBP + -0x38],0xffffffff
LEA RAX,[0x4b6448]
CMP qword ptr [RAX],0x0
JZ 0x00144a9d
LEA RAX,[0x4b6448]
MOV RAX,qword ptr [RAX]
MOV EDI,dword ptr [RBP + 0x20]
CALL RAX
CMP EAX,0x0
JZ 0x00144a9d
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00144d9a
LAB_00144a9d:
JMP 0x00144a9f
LAB_00144a9f:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x30]
JZ 0x00144d82
JMP 0x00144aaf
LAB_00144aaf:
MOV RAX,qword ptr [RBP + -0x28]
MOVSX ECX,byte ptr [RAX]
XOR EAX,EAX
CMP ECX,dword ptr [RBP + 0x18]
MOV byte ptr [RBP + -0x41],AL
JZ 0x00144ad0
MOV RAX,qword ptr [RBP + -0x28]
MOVSX EAX,byte ptr [RAX]
CMP EAX,dword ptr [RBP + 0x10]
SETNZ AL
MOV byte ptr [RBP + -0x41],AL
LAB_00144ad0:
MOV AL,byte ptr [RBP + -0x41]
TEST AL,0x1
JNZ 0x00144adc
JMP 0x00144b6e
LAB_00144adc:
MOV RAX,qword ptr [RBP + -0x28]
MOVSX EAX,byte ptr [RAX]
CMP EAX,dword ptr [RBP + -0x34]
JNZ 0x00144b02
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
CMP RAX,qword ptr [RBP + -0x30]
JZ 0x00144b02
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
LAB_00144b02:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JZ 0x00144b34
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x28],RCX
MOVSX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x18]
MOV RDX,RCX
ADD RDX,0x1
MOV qword ptr [RBP + -0x18],RDX
MOVSX ECX,byte ptr [RCX]
CMP EAX,ECX
JZ 0x00144b40
LAB_00144b34:
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00144d9a
LAB_00144b40:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00144b62
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00144d9a
LAB_00144b62:
MOV dword ptr [RBP + -0x38],0x1
JMP 0x00144aaf
LAB_00144b6e:
MOV RAX,qword ptr [RBP + -0x28]
MOVSX EAX,byte ptr [RAX]
CMP EAX,dword ptr [RBP + 0x10]
JNZ 0x00144bdc
JMP 0x00144b7c
LAB_00144b7c:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JNZ 0x00144b91
MOV EAX,dword ptr [RBP + -0x38]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00144d9a
LAB_00144b91:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
MOV qword ptr [RBP + -0x18],RAX
MOV RCX,qword ptr [RBP + -0x28]
ADD RCX,0x1
MOV qword ptr [RBP + -0x28],RCX
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x30]
MOV byte ptr [RBP + -0x42],AL
JNC 0x00144bc4
MOV RAX,qword ptr [RBP + -0x28]
MOVSX EAX,byte ptr [RAX]
CMP EAX,dword ptr [RBP + 0x10]
SETZ AL
MOV byte ptr [RBP + -0x42],AL
LAB_00144bc4:
MOV AL,byte ptr [RBP + -0x42]
TEST AL,0x1
JNZ 0x00144b7c
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00144bda
JMP 0x00144d82
LAB_00144bda:
JMP 0x00144bdc
LAB_00144bdc:
MOV RAX,qword ptr [RBP + -0x28]
MOVSX EAX,byte ptr [RAX]
CMP EAX,dword ptr [RBP + 0x18]
JNZ 0x00144d7d
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
LAB_00144bf8:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x30]
JZ 0x00144c50
MOV RAX,qword ptr [RBP + -0x28]
MOVSX EAX,byte ptr [RAX]
CMP EAX,dword ptr [RBP + 0x18]
JNZ 0x00144c10
JMP 0x00144c42
LAB_00144c10:
MOV RAX,qword ptr [RBP + -0x28]
MOVSX EAX,byte ptr [RAX]
CMP EAX,dword ptr [RBP + 0x10]
JNZ 0x00144c40
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JNZ 0x00144c32
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x00144d9a
LAB_00144c32:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
MOV qword ptr [RBP + -0x18],RAX
JMP 0x00144c42
LAB_00144c40:
JMP 0x00144c50
LAB_00144c42:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
JMP 0x00144bf8
LAB_00144c50:
MOV RAX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00144c66
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00144d9a
LAB_00144c66:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JNZ 0x00144c7c
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x00144d9a
LAB_00144c7c:
MOV RAX,qword ptr [RBP + -0x28]
MOV AL,byte ptr [RAX]
MOV byte ptr [RBP + -0x39],AL
MOVZX EAX,AL
CMP EAX,dword ptr [RBP + -0x34]
JNZ 0x00144cb0
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
CMP RAX,qword ptr [RBP + -0x30]
JZ 0x00144cb0
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x28],RCX
MOV AL,byte ptr [RAX + 0x1]
MOV byte ptr [RBP + -0x39],AL
LAB_00144cb0:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
MOV AL,byte ptr [RBP + -0x39]
MOV byte ptr [RBP + -0x39],AL
LAB_00144cc2:
JMP 0x00144cc4
LAB_00144cc4:
MOV RCX,qword ptr [RBP + -0x18]
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x20]
MOV byte ptr [RBP + -0x43],AL
JZ 0x00144ce6
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
MOVZX ECX,byte ptr [RBP + -0x39]
CMP EAX,ECX
SETNZ AL
MOV byte ptr [RBP + -0x43],AL
LAB_00144ce6:
MOV AL,byte ptr [RBP + -0x43]
TEST AL,0x1
JNZ 0x00144cef
JMP 0x00144cfd
LAB_00144cef:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
MOV qword ptr [RBP + -0x18],RAX
JMP 0x00144cc4
LAB_00144cfd:
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x18],RCX
CMP RAX,qword ptr [RBP + -0x20]
JNZ 0x00144d1b
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x00144d9a
LAB_00144d1b:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x28]
MOV R8,qword ptr [RBP + -0x30]
MOV R9D,dword ptr [RBP + -0x34]
MOV R11D,dword ptr [RBP + 0x10]
MOV R10D,dword ptr [RBP + 0x18]
MOV EAX,dword ptr [RBP + 0x20]
ADD EAX,0x1
MOV dword ptr [RSP],R11D
MOV dword ptr [RSP + 0x8],R10D
MOV dword ptr [RSP + 0x10],EAX
CALL 0x00144a40
MOV dword ptr [RBP + -0x40],EAX
CMP dword ptr [RBP + -0x40],0x0
JG 0x00144d64
MOV EAX,dword ptr [RBP + -0x40]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00144d9a
LAB_00144d64:
JMP 0x00144d66
LAB_00144d66:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JNZ 0x00144cc2
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x00144d9a
LAB_00144d7d:
JMP 0x00144a9f
LAB_00144d82:
MOV RDX,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
XOR EAX,EAX
MOV ECX,0x1
CMP RDX,RSI
CMOVNZ EAX,ECX
MOV dword ptr [RBP + -0x4],EAX
LAB_00144d9a:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x60
POP RBP
RET
|
uint my_wildcmp_bin_impl(int8 param_1,byte *param_2,byte *param_3,byte *param_4,byte *param_5,
uint param_6,int param_7,int param_8,int param_9)
{
int iVar1;
uint uVar2;
byte *pbVar3;
bool bVar4;
byte local_41;
uint local_40;
byte *local_30;
byte *local_20;
uint local_c;
local_40 = 0xffffffff;
local_30 = param_4;
local_20 = param_2;
if ((my_string_stack_guard == (code *)0x0) ||
(iVar1 = (*my_string_stack_guard)(param_9), iVar1 == 0)) {
do {
if (local_30 == param_5) {
LAB_00144d82:
return (uint)(local_20 != param_3);
}
while( true ) {
bVar4 = false;
if ((char)*local_30 != param_8) {
bVar4 = (char)*local_30 != param_7;
}
if (!bVar4) break;
if (((int)(char)*local_30 == param_6) && (local_30 + 1 != param_5)) {
local_30 = local_30 + 1;
}
if (local_20 == param_3) {
return 1;
}
if (*local_30 != *local_20) {
return 1;
}
if (local_30 + 1 == param_5) {
return (uint)(local_20 + 1 != param_3);
}
local_40 = 1;
local_30 = local_30 + 1;
local_20 = local_20 + 1;
}
if ((char)*local_30 == param_7) {
do {
if (local_20 == param_3) {
return local_40;
}
local_20 = local_20 + 1;
local_30 = local_30 + 1;
bVar4 = false;
if (local_30 < param_5) {
bVar4 = (char)*local_30 == param_7;
}
} while (bVar4);
if (local_30 == param_5) goto LAB_00144d82;
}
} while ((char)*local_30 != param_8);
while (pbVar3 = local_30, local_30 = pbVar3 + 1, local_30 != param_5) {
if ((char)*local_30 != param_8) {
if ((char)*local_30 != param_7) break;
if (local_20 == param_3) {
return 0xffffffff;
}
local_20 = local_20 + 1;
}
}
if (local_30 == param_5) {
local_c = 0;
}
else if (local_20 == param_3) {
local_c = 0xffffffff;
}
else {
local_41 = *local_30;
if ((local_41 == param_6) && (pbVar3 + 2 != param_5)) {
local_30 = pbVar3 + 2;
local_41 = pbVar3[2];
}
do {
while( true ) {
bVar4 = false;
if (local_20 != param_3) {
bVar4 = *local_20 != local_41;
}
if (!bVar4) break;
local_20 = local_20 + 1;
}
pbVar3 = local_20 + 1;
if (local_20 == param_3) {
return 0xffffffff;
}
uVar2 = my_wildcmp_bin_impl(param_1,pbVar3,param_3,local_30 + 1,param_5,param_6,param_7,
param_8,param_9 + 1);
if ((int)uVar2 < 1) {
return uVar2;
}
local_20 = pbVar3;
} while (pbVar3 != param_3);
local_c = 0xffffffff;
}
}
else {
local_c = 1;
}
return local_c;
}
|
|
56,934
|
js_reflect_deleteProperty
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_reflect_deleteProperty(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue obj;
JSAtom atom;
int ret;
obj = argv[0];
if (JS_VALUE_GET_TAG(obj) != JS_TAG_OBJECT)
return JS_ThrowTypeErrorNotAnObject(ctx);
atom = JS_ValueToAtom(ctx, argv[1]);
if (unlikely(atom == JS_ATOM_NULL))
return JS_EXCEPTION;
ret = JS_DeleteProperty(ctx, obj, atom, 0);
JS_FreeAtom(ctx, atom);
if (ret < 0)
return JS_EXCEPTION;
else
return js_bool(ret);
}
|
O0
|
c
|
js_reflect_deleteProperty:
subq $0x58, %rsp
movq %rsi, 0x38(%rsp)
movq %rdx, 0x40(%rsp)
movq %rdi, 0x30(%rsp)
movl %ecx, 0x2c(%rsp)
movq %r8, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq (%rax), %rcx
movq %rcx, 0x10(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
cmpl $-0x1, %eax
je 0xd8185
movq 0x30(%rsp), %rdi
callq 0x2e2e0
movq %rax, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
jmp 0xd8226
movq 0x30(%rsp), %rdi
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
callq 0x2ff40
movl %eax, 0xc(%rsp)
cmpl $0x0, 0xc(%rsp)
sete %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0xd81cc
movl $0x0, 0x48(%rsp)
movq $0x6, 0x50(%rsp)
jmp 0xd8226
movq 0x30(%rsp), %rdi
movl 0xc(%rsp), %ecx
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
xorl %r8d, %r8d
callq 0x36390
movl %eax, 0x8(%rsp)
movq 0x30(%rsp), %rdi
movl 0xc(%rsp), %esi
callq 0x27d80
cmpl $0x0, 0x8(%rsp)
jge 0xd8213
movl $0x0, 0x48(%rsp)
movq $0x6, 0x50(%rsp)
jmp 0xd8226
movl 0x8(%rsp), %edi
callq 0x55f90
movq %rax, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
movq 0x48(%rsp), %rax
movq 0x50(%rsp), %rdx
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)
|
js_reflect_deleteProperty:
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 rax, [rsp+58h+var_38]
mov rcx, [rax]
mov [rsp+58h+var_48], rcx
mov rax, [rax+8]
mov [rsp+58h+var_40], rax
mov rax, [rsp+58h+var_40]
cmp eax, 0FFFFFFFFh
jz short loc_D8185
mov rdi, [rsp+58h+var_28]
call JS_ThrowTypeErrorNotAnObject
mov [rsp+58h+var_10], rax
mov [rsp+58h+var_8], rdx
jmp loc_D8226
loc_D8185:
mov rdi, [rsp+58h+var_28]
mov rax, [rsp+58h+var_38]
mov rsi, [rax+10h]
mov rdx, [rax+18h]
call JS_ValueToAtom
mov [rsp+58h+var_4C], eax
cmp [rsp+58h+var_4C], 0
setz al
xor al, 0FFh
xor al, 0FFh
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_D81CC
mov dword ptr [rsp+58h+var_10], 0
mov [rsp+58h+var_8], 6
jmp short loc_D8226
loc_D81CC:
mov rdi, [rsp+58h+var_28]
mov ecx, [rsp+58h+var_4C]
mov rsi, [rsp+58h+var_48]
mov rdx, [rsp+58h+var_40]
xor r8d, r8d
call JS_DeleteProperty
mov [rsp+58h+var_50], eax
mov rdi, [rsp+58h+var_28]
mov esi, [rsp+58h+var_4C]
call JS_FreeAtom
cmp [rsp+58h+var_50], 0
jge short loc_D8213
mov dword ptr [rsp+58h+var_10], 0
mov [rsp+58h+var_8], 6
jmp short loc_D8226
loc_D8213:
mov edi, [rsp+58h+var_50]
call js_bool
mov [rsp+58h+var_10], rax
mov [rsp+58h+var_8], rdx
loc_D8226:
mov rax, [rsp+58h+var_10]
mov rdx, [rsp+58h+var_8]
add rsp, 58h
retn
|
long long js_reflect_deleteProperty(
long long a1,
long long a2,
long long a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
long long a12,
long long *a13,
long long a14)
{
double v14; // xmm4_8
double v15; // xmm5_8
int v17; // [rsp+8h] [rbp-50h]
unsigned int v18; // [rsp+Ch] [rbp-4Ch]
long long v19; // [rsp+10h] [rbp-48h]
long long v20; // [rsp+18h] [rbp-40h]
long long v21; // [rsp+48h] [rbp-10h]
v19 = *a13;
v20 = a13[1];
if ( (_DWORD)v20 != -1 )
return JS_ThrowTypeErrorNotAnObject(a1, a4, a5, a6, a7, a8, a9, a10, a11, a2, a3, *a13, (long long)a13, a14);
v18 = JS_ValueToAtom(a1, a13[2], a13[3]);
if ( v18 )
{
v17 = JS_DeleteProperty(a1, v19, v20, v18, 0, a4, a5, a6, a7, v14, v15, a10, a11);
JS_FreeAtom(a1, v18);
if ( v17 >= 0 )
return js_bool(v17);
else
LODWORD(v21) = 0;
}
else
{
LODWORD(v21) = 0;
}
return v21;
}
|
js_reflect_deleteProperty:
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 RAX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP + 0x10],RCX
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [RSP + 0x18]
CMP EAX,-0x1
JZ 0x001d8185
MOV RDI,qword ptr [RSP + 0x30]
CALL 0x0012e2e0
MOV qword ptr [RSP + 0x48],RAX
MOV qword ptr [RSP + 0x50],RDX
JMP 0x001d8226
LAB_001d8185:
MOV RDI,qword ptr [RSP + 0x30]
MOV RAX,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RAX + 0x10]
MOV RDX,qword ptr [RAX + 0x18]
CALL 0x0012ff40
MOV dword ptr [RSP + 0xc],EAX
CMP dword ptr [RSP + 0xc],0x0
SETZ AL
XOR AL,0xff
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001d81cc
MOV dword ptr [RSP + 0x48],0x0
MOV qword ptr [RSP + 0x50],0x6
JMP 0x001d8226
LAB_001d81cc:
MOV RDI,qword ptr [RSP + 0x30]
MOV ECX,dword ptr [RSP + 0xc]
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x18]
XOR R8D,R8D
CALL 0x00136390
MOV dword ptr [RSP + 0x8],EAX
MOV RDI,qword ptr [RSP + 0x30]
MOV ESI,dword ptr [RSP + 0xc]
CALL 0x00127d80
CMP dword ptr [RSP + 0x8],0x0
JGE 0x001d8213
MOV dword ptr [RSP + 0x48],0x0
MOV qword ptr [RSP + 0x50],0x6
JMP 0x001d8226
LAB_001d8213:
MOV EDI,dword ptr [RSP + 0x8]
CALL 0x00155f90
MOV qword ptr [RSP + 0x48],RAX
MOV qword ptr [RSP + 0x50],RDX
LAB_001d8226:
MOV RAX,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x50]
ADD RSP,0x58
RET
|
int1 [16] js_reflect_deleteProperty(int8 param_1)
{
int8 uVar1;
int8 uVar2;
int iVar3;
int iVar4;
int8 *in_R8;
int1 auVar5 [16];
int4 local_10;
int4 uStack_c;
int8 local_8;
uVar1 = *in_R8;
uVar2 = in_R8[1];
if ((int)uVar2 == -1) {
iVar3 = JS_ValueToAtom(param_1,in_R8[2],in_R8[3]);
if (iVar3 == 0) {
local_10 = 0;
local_8 = 6;
}
else {
iVar4 = JS_DeleteProperty(param_1,uVar1,uVar2,iVar3,0);
JS_FreeAtom(param_1,iVar3);
if (iVar4 < 0) {
local_10 = 0;
local_8 = 6;
}
else {
auVar5 = js_bool(iVar4);
local_8 = auVar5._8_8_;
local_10 = auVar5._0_4_;
uStack_c = auVar5._4_4_;
}
}
}
else {
auVar5 = JS_ThrowTypeErrorNotAnObject(param_1);
local_8 = auVar5._8_8_;
local_10 = auVar5._0_4_;
uStack_c = auVar5._4_4_;
}
auVar5._4_4_ = uStack_c;
auVar5._0_4_ = local_10;
auVar5._8_8_ = local_8;
return auVar5;
}
|
|
56,935
|
js_reflect_deleteProperty
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_reflect_deleteProperty(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue obj;
JSAtom atom;
int ret;
obj = argv[0];
if (JS_VALUE_GET_TAG(obj) != JS_TAG_OBJECT)
return JS_ThrowTypeErrorNotAnObject(ctx);
atom = JS_ValueToAtom(ctx, argv[1]);
if (unlikely(atom == JS_ATOM_NULL))
return JS_EXCEPTION;
ret = JS_DeleteProperty(ctx, obj, atom, 0);
JS_FreeAtom(ctx, atom);
if (ret < 0)
return JS_EXCEPTION;
else
return js_bool(ret);
}
|
O1
|
c
|
js_reflect_deleteProperty:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r15
movq 0x8(%r8), %r12
cmpl $-0x1, %r12d
jne 0x1281f
movq (%r8), %r13
movq 0x10(%r8), %rsi
movq 0x18(%r8), %rdx
movq %r15, %rdi
callq 0x2347f
pushq $0x6
popq %r14
testl %eax, %eax
je 0x1284b
movl %eax, %ebp
xorl %ebx, %ebx
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
movl %eax, %ecx
xorl %r8d, %r8d
callq 0x26127
movl %eax, %r12d
movq %r15, %rdi
movl %ebp, %esi
callq 0x1fbc4
testl %r12d, %r12d
js 0x12836
setne %al
movzbl %al, %ebx
pushq $0x1
jmp 0x12834
leaq 0x8b0f7(%rip), %rsi # 0x9d91d
xorl %ebx, %ebx
movq %r15, %rdi
xorl %eax, %eax
callq 0x21953
pushq $0x6
popq %r14
movq %rbx, %rax
movq %r14, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ebx, %ebx
jmp 0x12836
|
js_reflect_deleteProperty:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r15, rdi
mov r12, [r8+8]
cmp r12d, 0FFFFFFFFh
jnz short loc_1281F
mov r13, [r8]
mov rsi, [r8+10h]
mov rdx, [r8+18h]
mov rdi, r15
call JS_ValueToAtom
push 6
pop r14
test eax, eax
jz short loc_1284B
mov ebp, eax
xor ebx, ebx
mov rdi, r15
mov rsi, r13
mov rdx, r12
mov ecx, eax
xor r8d, r8d
call JS_DeleteProperty
mov r12d, eax
mov rdi, r15
mov esi, ebp
call JS_FreeAtom
test r12d, r12d
js short loc_12836
setnz al
movzx ebx, al
push 1
jmp short loc_12834
loc_1281F:
lea rsi, aOperandPrototy+20h; "not an object"
xor ebx, ebx
mov rdi, r15
xor eax, eax
call JS_ThrowTypeError
push 6
loc_12834:
pop r14
loc_12836:
mov rax, rbx
mov rdx, r14
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_1284B:
xor ebx, ebx
jmp short loc_12836
|
_BOOL8 js_reflect_deleteProperty(long long a1, long long a2, int a3, int a4, long long *a5, int a6)
{
long long v6; // r12
long long v7; // r13
unsigned int v8; // eax
unsigned int v9; // ebp
long long v10; // rbx
int v11; // r12d
v6 = a5[1];
if ( (_DWORD)v6 == -1 )
{
v7 = *a5;
v8 = JS_ValueToAtom(a1, a5[2], a5[3]);
if ( v8 )
{
v9 = v8;
v10 = 0LL;
v11 = JS_DeleteProperty(a1, v7, v6, v8, 0LL);
JS_FreeAtom(a1, v9);
if ( v11 >= 0 )
return v11 != 0;
}
else
{
return 0LL;
}
}
else
{
v10 = 0LL;
JS_ThrowTypeError(a1, (unsigned int)"not an object", a3, a4, (_DWORD)a5, a6);
}
return v10;
}
|
js_reflect_deleteProperty:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,RDI
MOV R12,qword ptr [R8 + 0x8]
CMP R12D,-0x1
JNZ 0x0011281f
MOV R13,qword ptr [R8]
MOV RSI,qword ptr [R8 + 0x10]
MOV RDX,qword ptr [R8 + 0x18]
MOV RDI,R15
CALL 0x0012347f
PUSH 0x6
POP R14
TEST EAX,EAX
JZ 0x0011284b
MOV EBP,EAX
XOR EBX,EBX
MOV RDI,R15
MOV RSI,R13
MOV RDX,R12
MOV ECX,EAX
XOR R8D,R8D
CALL 0x00126127
MOV R12D,EAX
MOV RDI,R15
MOV ESI,EBP
CALL 0x0011fbc4
TEST R12D,R12D
JS 0x00112836
SETNZ AL
MOVZX EBX,AL
PUSH 0x1
JMP 0x00112834
LAB_0011281f:
LEA RSI,[0x19d91d]
XOR EBX,EBX
MOV RDI,R15
XOR EAX,EAX
CALL 0x00121953
PUSH 0x6
LAB_00112834:
POP R14
LAB_00112836:
MOV RAX,RBX
MOV RDX,R14
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0011284b:
XOR EBX,EBX
JMP 0x00112836
|
bool js_reflect_deleteProperty(int8 param_1)
{
int8 uVar1;
int8 uVar2;
int iVar3;
int iVar4;
int8 *in_R8;
bool bVar5;
uVar1 = in_R8[1];
if ((int)uVar1 == -1) {
uVar2 = *in_R8;
iVar3 = JS_ValueToAtom(param_1,in_R8[2],in_R8[3]);
if (iVar3 == 0) {
return false;
}
iVar4 = JS_DeleteProperty(param_1,uVar2,uVar1,iVar3,0);
JS_FreeAtom(param_1,iVar3);
bVar5 = iVar4 != 0;
if (iVar4 < 0) {
return false;
}
}
else {
bVar5 = false;
JS_ThrowTypeError(param_1,"not an object");
}
return bVar5;
}
|
|
56,936
|
js_reflect_deleteProperty
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_reflect_deleteProperty(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue obj;
JSAtom atom;
int ret;
obj = argv[0];
if (JS_VALUE_GET_TAG(obj) != JS_TAG_OBJECT)
return JS_ThrowTypeErrorNotAnObject(ctx);
atom = JS_ValueToAtom(ctx, argv[1]);
if (unlikely(atom == JS_ATOM_NULL))
return JS_EXCEPTION;
ret = JS_DeleteProperty(ctx, obj, atom, 0);
JS_FreeAtom(ctx, atom);
if (ret < 0)
return JS_EXCEPTION;
else
return js_bool(ret);
}
|
O3
|
c
|
js_reflect_deleteProperty:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r15
movq 0x8(%r8), %r12
cmpl $-0x1, %r12d
jne 0x12ecb
movq (%r8), %r13
movq 0x10(%r8), %rsi
movq 0x18(%r8), %rdx
movq %r15, %rdi
callq 0x23ad1
pushq $0x6
popq %r14
testl %eax, %eax
je 0x12ef7
movl %eax, %ebp
xorl %ebx, %ebx
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
movl %eax, %ecx
xorl %r8d, %r8d
callq 0x26827
movl %eax, %r12d
movq %r15, %rdi
movl %ebp, %esi
callq 0x202f5
testl %r12d, %r12d
js 0x12ee2
setne %al
movzbl %al, %ebx
pushq $0x1
jmp 0x12ee0
leaq 0x8da1b(%rip), %rsi # 0xa08ed
xorl %ebx, %ebx
movq %r15, %rdi
xorl %eax, %eax
callq 0x2214f
pushq $0x6
popq %r14
movq %rbx, %rax
movq %r14, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ebx, %ebx
jmp 0x12ee2
|
js_reflect_deleteProperty:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r15, rdi
mov r12, [r8+8]
cmp r12d, 0FFFFFFFFh
jnz short loc_12ECB
mov r13, [r8]
mov rsi, [r8+10h]
mov rdx, [r8+18h]
mov rdi, r15
call JS_ValueToAtom
push 6
pop r14
test eax, eax
jz short loc_12EF7
mov ebp, eax
xor ebx, ebx
mov rdi, r15
mov rsi, r13
mov rdx, r12
mov ecx, eax
xor r8d, r8d
call JS_DeleteProperty
mov r12d, eax
mov rdi, r15
mov esi, ebp
call JS_FreeAtom
test r12d, r12d
js short loc_12EE2
setnz al
movzx ebx, al
push 1
jmp short loc_12EE0
loc_12ECB:
lea rsi, aOperandPrototy+20h; "not an object"
xor ebx, ebx
mov rdi, r15
xor eax, eax
call JS_ThrowTypeError
push 6
loc_12EE0:
pop r14
loc_12EE2:
mov rax, rbx
mov rdx, r14
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_12EF7:
xor ebx, ebx
jmp short loc_12EE2
|
_BOOL8 js_reflect_deleteProperty(long long a1, long long a2, int a3, int a4, long long *a5, int a6)
{
long long v6; // r12
long long v7; // r13
unsigned int v8; // eax
unsigned int v9; // ebp
long long v10; // rbx
int v11; // r12d
v6 = a5[1];
if ( (_DWORD)v6 == -1 )
{
v7 = *a5;
v8 = JS_ValueToAtom(a1, a5[2], a5[3]);
if ( v8 )
{
v9 = v8;
v10 = 0LL;
v11 = JS_DeleteProperty(a1, v7, v6, v8, 0LL);
JS_FreeAtom(a1, v9);
if ( v11 >= 0 )
return v11 != 0;
}
else
{
return 0LL;
}
}
else
{
v10 = 0LL;
JS_ThrowTypeError(a1, (unsigned int)"not an object", a3, a4, (_DWORD)a5, a6);
}
return v10;
}
|
js_reflect_deleteProperty:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,RDI
MOV R12,qword ptr [R8 + 0x8]
CMP R12D,-0x1
JNZ 0x00112ecb
MOV R13,qword ptr [R8]
MOV RSI,qword ptr [R8 + 0x10]
MOV RDX,qword ptr [R8 + 0x18]
MOV RDI,R15
CALL 0x00123ad1
PUSH 0x6
POP R14
TEST EAX,EAX
JZ 0x00112ef7
MOV EBP,EAX
XOR EBX,EBX
MOV RDI,R15
MOV RSI,R13
MOV RDX,R12
MOV ECX,EAX
XOR R8D,R8D
CALL 0x00126827
MOV R12D,EAX
MOV RDI,R15
MOV ESI,EBP
CALL 0x001202f5
TEST R12D,R12D
JS 0x00112ee2
SETNZ AL
MOVZX EBX,AL
PUSH 0x1
JMP 0x00112ee0
LAB_00112ecb:
LEA RSI,[0x1a08ed]
XOR EBX,EBX
MOV RDI,R15
XOR EAX,EAX
CALL 0x0012214f
PUSH 0x6
LAB_00112ee0:
POP R14
LAB_00112ee2:
MOV RAX,RBX
MOV RDX,R14
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00112ef7:
XOR EBX,EBX
JMP 0x00112ee2
|
bool js_reflect_deleteProperty(int8 param_1)
{
int8 uVar1;
int8 uVar2;
int iVar3;
int iVar4;
int8 *in_R8;
bool bVar5;
uVar1 = in_R8[1];
if ((int)uVar1 == -1) {
uVar2 = *in_R8;
iVar3 = JS_ValueToAtom(param_1,in_R8[2],in_R8[3]);
if (iVar3 == 0) {
return false;
}
iVar4 = JS_DeleteProperty(param_1,uVar2,uVar1,iVar3,0);
JS_FreeAtom(param_1,iVar3);
bVar5 = iVar4 != 0;
if (iVar4 < 0) {
return false;
}
}
else {
bVar5 = false;
JS_ThrowTypeError(param_1,"not an object");
}
return bVar5;
}
|
|
56,937
|
my_strnncoll_8bit_bin
|
eloqsql/strings/ctype-bin.c
|
static int my_strnncoll_8bit_bin(CHARSET_INFO * cs __attribute__((unused)),
const uchar *s, size_t slen,
const uchar *t, size_t tlen,
my_bool t_is_prefix)
{
size_t len=MY_MIN(slen,tlen);
int cmp= memcmp(s,t,len);
return cmp ? cmp : (int)((t_is_prefix ? len : slen) - tlen);
}
|
O0
|
c
|
my_strnncoll_8bit_bin:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movb %r9b, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movb %al, -0x29(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x28(%rbp), %rax
jae 0x3cda6
movq -0x18(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x3cdae
movq -0x28(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x24130
movl %eax, -0x3c(%rbp)
cmpl $0x0, -0x3c(%rbp)
je 0x3cdd8
movl -0x3c(%rbp), %eax
movl %eax, -0x4c(%rbp)
jmp 0x3cdfe
movsbl -0x29(%rbp), %eax
cmpl $0x0, %eax
je 0x3cdeb
movq -0x38(%rbp), %rax
movq %rax, -0x58(%rbp)
jmp 0x3cdf3
movq -0x18(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
subq -0x28(%rbp), %rax
movl %eax, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
my_strnncoll_8bit_bin:
push rbp
mov rbp, rsp
sub rsp, 60h
mov al, r9b
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_29], al
mov rax, [rbp+var_18]
cmp rax, [rbp+var_28]
jnb short loc_3CDA6
mov rax, [rbp+var_18]
mov [rbp+var_48], rax
jmp short loc_3CDAE
loc_3CDA6:
mov rax, [rbp+var_28]
mov [rbp+var_48], rax
loc_3CDAE:
mov rax, [rbp+var_48]
mov [rbp+var_38], rax
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_38]
call _memcmp
mov [rbp+var_3C], eax
cmp [rbp+var_3C], 0
jz short loc_3CDD8
mov eax, [rbp+var_3C]
mov [rbp+var_4C], eax
jmp short loc_3CDFE
loc_3CDD8:
movsx eax, [rbp+var_29]
cmp eax, 0
jz short loc_3CDEB
mov rax, [rbp+var_38]
mov [rbp+var_58], rax
jmp short loc_3CDF3
loc_3CDEB:
mov rax, [rbp+var_18]
mov [rbp+var_58], rax
loc_3CDF3:
mov rax, [rbp+var_58]
sub rax, [rbp+var_28]
mov [rbp+var_4C], eax
loc_3CDFE:
mov eax, [rbp+var_4C]
add rsp, 60h
pop rbp
retn
|
long long my_strnncoll_8bit_bin(
long long a1,
long long a2,
unsigned long long a3,
long long a4,
unsigned long long a5,
char a6)
{
int v7; // [rsp+8h] [rbp-58h]
unsigned long long v9; // [rsp+18h] [rbp-48h]
unsigned int v10; // [rsp+24h] [rbp-3Ch]
int v12; // [rsp+38h] [rbp-28h]
int v13; // [rsp+48h] [rbp-18h]
v13 = a3;
v12 = a5;
if ( a3 >= a5 )
v9 = a5;
else
v9 = a3;
v10 = memcmp(a2, a4, v9);
if ( v10 )
{
return v10;
}
else
{
if ( a6 )
v7 = v9;
else
v7 = v13;
return (unsigned int)(v7 - v12);
}
}
|
my_strnncoll_8bit_bin:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV AL,R9B
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV byte ptr [RBP + -0x29],AL
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x28]
JNC 0x0013cda6
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x48],RAX
JMP 0x0013cdae
LAB_0013cda6:
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x48],RAX
LAB_0013cdae:
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0x38],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x38]
CALL 0x00124130
MOV dword ptr [RBP + -0x3c],EAX
CMP dword ptr [RBP + -0x3c],0x0
JZ 0x0013cdd8
MOV EAX,dword ptr [RBP + -0x3c]
MOV dword ptr [RBP + -0x4c],EAX
JMP 0x0013cdfe
LAB_0013cdd8:
MOVSX EAX,byte ptr [RBP + -0x29]
CMP EAX,0x0
JZ 0x0013cdeb
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x58],RAX
JMP 0x0013cdf3
LAB_0013cdeb:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x58],RAX
LAB_0013cdf3:
MOV RAX,qword ptr [RBP + -0x58]
SUB RAX,qword ptr [RBP + -0x28]
MOV dword ptr [RBP + -0x4c],EAX
LAB_0013cdfe:
MOV EAX,dword ptr [RBP + -0x4c]
ADD RSP,0x60
POP RBP
RET
|
int my_strnncoll_8bit_bin
(int8 param_1,void *param_2,ulong param_3,void *param_4,ulong param_5,
char param_6)
{
ulong local_60;
int local_54;
size_t local_50;
local_50 = param_5;
if (param_3 < param_5) {
local_50 = param_3;
}
local_54 = memcmp(param_2,param_4,local_50);
if (local_54 == 0) {
local_60 = param_3;
if (param_6 != '\0') {
local_60 = local_50;
}
local_54 = (int)local_60 - (int)param_5;
}
return local_54;
}
|
|
56,938
|
long minja::Value::get<long>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, long) const
|
monkey531[P]llama/common/minja.hpp
|
T get(const std::string & key, T default_value) const {
if (!contains(key)) return default_value;
return at(key).get<T>();
}
|
O3
|
cpp
|
long minja::Value::get<long>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, long) const:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
movq %rsi, %rdi
movq %rdx, %rsi
callq 0xb6d50
testb %al, %al
je 0xd1c72
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0xad8f0
movq %r15, %rdi
movq %r14, %rsi
callq 0xb68f2
movq %rbx, %rdi
movq %rax, %rsi
callq 0xaaa02
leaq 0x48(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x88dae
movq %r14, %rdi
callq 0x8e068
movq -0x8(%r14), %rdi
testq %rdi, %rdi
je 0xd1c33
callq 0x50ba8
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0xd1c42
callq 0x50ba8
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0xd1c51
callq 0x50ba8
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xd1cc6
movq 0x8431e(%rip), %rax # 0x155f80
cmpb $0x0, (%rax)
je 0xd1cb1
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0xd1cbb
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq (%r14), %rdx
leaq 0x10(%r14), %rax
cmpq %rax, %rdx
je 0xd1c91
movq %rdx, (%rbx)
movq (%rax), %rcx
movq %rcx, 0x10(%rbx)
jmp 0xd1c97
movups (%rax), %xmm0
movups %xmm0, (%rcx)
movq 0x8(%r14), %rcx
movq %rcx, 0x8(%rbx)
movq %rax, (%r14)
movq $0x0, 0x8(%r14)
movb $0x0, 0x10(%r14)
jmp 0xd1cc6
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0xd1cc6
movq (%rdi), %rax
callq *0x18(%rax)
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0xa9892
movq %rbx, %rdi
callq 0x1e660
|
_ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_RKS7_S8_:
push r15
push r14
push r12
push rbx
sub rsp, 58h
mov r14, rcx
mov r12, rdx
mov r15, rsi
mov rbx, rdi
mov rdi, rsi
mov rsi, rdx
call _ZNK5minja5Value8containsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::contains(std::string const&)
test al, al
jz loc_D1C72
lea r14, [rsp+78h+var_70]
mov rdi, r14
mov rsi, r12
call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&)
mov rdi, r15; this
mov rsi, r14; minja::Value *
call _ZN5minja5Value2atERKS0_; minja::Value::at(minja::Value const&)
mov rdi, rbx
mov rsi, rax
call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void)
lea r14, [rsp+78h+var_30]
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [r14-8]
test rdi, rdi
jz short loc_D1C33
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_D1C33:
mov rdi, [rsp+78h+var_48]
test rdi, rdi
jz short loc_D1C42
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_D1C42:
mov rdi, [rsp+78h+var_58]
test rdi, rdi
jz short loc_D1C51
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_D1C51:
mov rdi, [rsp+78h+var_68]
test rdi, rdi
jz short loc_D1CC6
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_D1CB1
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_D1CBB
loc_D1C72:
lea rcx, [rbx+10h]
mov [rbx], rcx
mov rdx, [r14]
lea rax, [r14+10h]
cmp rdx, rax
jz short loc_D1C91
mov [rbx], rdx
mov rcx, [rax]
mov [rbx+10h], rcx
jmp short loc_D1C97
loc_D1C91:
movups xmm0, xmmword ptr [rax]
movups xmmword ptr [rcx], xmm0
loc_D1C97:
mov rcx, [r14+8]
mov [rbx+8], rcx
mov [r14], rax
mov qword ptr [r14+8], 0
mov byte ptr [r14+10h], 0
jmp short loc_D1CC6
loc_D1CB1:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_D1CBB:
cmp eax, 1
jnz short loc_D1CC6
mov rax, [rdi]
call qword ptr [rax+18h]
loc_D1CC6:
mov rax, rbx
add rsp, 58h
pop rbx
pop r12
pop r14
pop r15
retn
mov rbx, rax
lea rdi, [rsp+arg_0]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov rdi, rbx
call __Unwind_Resume
|
long long minja::Value::get<std::string>(long long a1, minja::Value *a2, long long a3, long long a4)
{
_QWORD *v7; // rax
long long v8; // rdi
signed __int32 v9; // eax
_OWORD *v10; // rax
_BYTE v12[8]; // [rsp+8h] [rbp-70h] BYREF
long long v13; // [rsp+10h] [rbp-68h]
volatile signed __int32 *v14; // [rsp+20h] [rbp-58h]
volatile signed __int32 *v15; // [rsp+30h] [rbp-48h]
volatile signed __int32 *v16; // [rsp+40h] [rbp-38h]
char v17[48]; // [rsp+48h] [rbp-30h] BYREF
if ( minja::Value::contains((long long)a2, a3) )
{
minja::Value::Value((long long)v12, a3);
v7 = (_QWORD *)minja::Value::at(a2, (const minja::Value *)v12);
minja::Value::get<std::string>(a1, v7);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v17);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v17);
if ( v16 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v16);
if ( v15 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v15);
if ( v14 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v14);
v8 = v13;
if ( v13 )
{
if ( _libc_single_threaded )
{
v9 = *(_DWORD *)(v13 + 12);
*(_DWORD *)(v13 + 12) = v9 - 1;
}
else
{
v9 = _InterlockedExchangeAdd((volatile signed __int32 *)(v13 + 12), 0xFFFFFFFF);
}
if ( v9 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v8 + 24LL))(v8, 0LL);
}
}
else
{
*(_QWORD *)a1 = a1 + 16;
v10 = (_OWORD *)(a4 + 16);
if ( *(_QWORD *)a4 == a4 + 16 )
{
*(_OWORD *)(a1 + 16) = *v10;
}
else
{
*(_QWORD *)a1 = *(_QWORD *)a4;
*(_QWORD *)(a1 + 16) = *(_QWORD *)v10;
}
*(_QWORD *)(a1 + 8) = *(_QWORD *)(a4 + 8);
*(_QWORD *)a4 = v10;
*(_QWORD *)(a4 + 8) = 0LL;
*(_BYTE *)(a4 + 16) = 0;
}
return a1;
}
|
get<std::__cxx11::string>:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV R14,RCX
MOV R12,RDX
MOV R15,RSI
MOV RBX,RDI
MOV RDI,RSI
MOV RSI,RDX
CALL 0x001b6d50
TEST AL,AL
JZ 0x001d1c72
LEA R14,[RSP + 0x8]
MOV RDI,R14
MOV RSI,R12
CALL 0x001ad8f0
LAB_001d1bf8:
MOV RDI,R15
MOV RSI,R14
CALL 0x001b68f2
MOV RDI,RBX
MOV RSI,RAX
CALL 0x001aaa02
LAB_001d1c0e:
LEA R14,[RSP + 0x48]
MOV RDI,R14
XOR ESI,ESI
CALL 0x00188dae
MOV RDI,R14
CALL 0x0018e068
MOV RDI,qword ptr [R14 + -0x8]
TEST RDI,RDI
JZ 0x001d1c33
CALL 0x00150ba8
LAB_001d1c33:
MOV RDI,qword ptr [RSP + 0x30]
TEST RDI,RDI
JZ 0x001d1c42
CALL 0x00150ba8
LAB_001d1c42:
MOV RDI,qword ptr [RSP + 0x20]
TEST RDI,RDI
JZ 0x001d1c51
CALL 0x00150ba8
LAB_001d1c51:
MOV RDI,qword ptr [RSP + 0x10]
TEST RDI,RDI
JZ 0x001d1cc6
MOV RAX,qword ptr [0x00255f80]
CMP byte ptr [RAX],0x0
JZ 0x001d1cb1
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x001d1cbb
LAB_001d1c72:
LEA RCX,[RBX + 0x10]
MOV qword ptr [RBX],RCX
MOV RDX,qword ptr [R14]
LEA RAX,[R14 + 0x10]
CMP RDX,RAX
JZ 0x001d1c91
MOV qword ptr [RBX],RDX
MOV RCX,qword ptr [RAX]
MOV qword ptr [RBX + 0x10],RCX
JMP 0x001d1c97
LAB_001d1c91:
MOVUPS XMM0,xmmword ptr [RAX]
MOVUPS xmmword ptr [RCX],XMM0
LAB_001d1c97:
MOV RCX,qword ptr [R14 + 0x8]
MOV qword ptr [RBX + 0x8],RCX
MOV qword ptr [R14],RAX
MOV qword ptr [R14 + 0x8],0x0
MOV byte ptr [R14 + 0x10],0x0
JMP 0x001d1cc6
LAB_001d1cb1:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_001d1cbb:
CMP EAX,0x1
JNZ 0x001d1cc6
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_001d1cc6:
MOV RAX,RBX
ADD RSP,0x58
POP RBX
POP R12
POP R14
POP R15
RET
|
/* std::__cxx11::string minja::Value::get<std::__cxx11::string >(std::__cxx11::string const&,
std::__cxx11::string) const */
long * minja::Value::get<std::__cxx11::string>
(long *param_1,Value *param_2,string *param_3,int8 *param_4)
{
long *plVar1;
int *piVar2;
long lVar3;
char cVar4;
int iVar5;
Value local_70 [8];
long *local_68;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_58;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_48;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_38;
data local_30 [16];
cVar4 = contains(param_2,param_3);
if (cVar4 == '\0') {
*param_1 = (long)(param_1 + 2);
plVar1 = param_4 + 2;
if ((long *)*param_4 == plVar1) {
lVar3 = param_4[3];
param_1[2] = *plVar1;
param_1[3] = lVar3;
}
else {
*param_1 = (long)*param_4;
param_1[2] = *plVar1;
}
param_1[1] = param_4[1];
*param_4 = plVar1;
param_4[1] = 0;
*(int1 *)(param_4 + 2) = 0;
}
else {
Value(local_70,param_3);
/* try { // try from 001d1bf8 to 001d1c0d has its CatchHandler @ 001d1cd5 */
at(param_2,local_70);
get<std::__cxx11::string>();
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_30,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_30);
if (local_38 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_38);
}
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);
}
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);
}
if (local_68 != (long *)0x0) {
if (*PTR___libc_single_threaded_00255f80 == '\0') {
LOCK();
piVar2 = (int *)((long)local_68 + 0xc);
iVar5 = *piVar2;
*piVar2 = *piVar2 + -1;
UNLOCK();
}
else {
iVar5 = *(int *)((long)local_68 + 0xc);
*(int *)((long)local_68 + 0xc) = iVar5 + -1;
}
if (iVar5 == 1) {
(**(code **)(*local_68 + 0x18))();
}
}
}
return param_1;
}
|
|
56,939
|
compMSL(LefDefParser::defrCallbackType_e, LefDefParser::defiComponentMaskShiftLayer*, void*)
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/defdiff/diffDefRW.cpp
|
int compMSL(defrCallbackType_e c, defiComponentMaskShiftLayer* co, defiUserData ud) {
int i;
checkType(c);
if (ud != userData) dataError();
if (co->numMaskShiftLayers()) {
fprintf(fout, "\nCOMPONENTMASKSHIFT ");
for (i = 0; i < co->numMaskShiftLayers(); i++) {
fprintf(fout, "%s ", co->maskShiftLayer(i));
}
fprintf(fout, ";\n");
}
return 0;
}
|
O3
|
cpp
|
compMSL(LefDefParser::defrCallbackType_e, LefDefParser::defiComponentMaskShiftLayer*, void*):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
cmpl $0x68, %edi
jb 0x685a
movq 0x5ca0c(%rip), %rcx # 0x63250
leaq 0x37c44(%rip), %rdi # 0x3e48f
movl $0x27, %esi
movl $0x1, %edx
callq 0x6350
cmpq %r14, 0x5c9f7(%rip) # 0x63258
je 0x6880
movq 0x5c9e6(%rip), %rcx # 0x63250
leaq 0x37bf3(%rip), %rdi # 0x3e464
movl $0x2a, %esi
movl $0x1, %edx
callq 0x6350
movq %rbx, %rdi
callq 0xf870
testl %eax, %eax
je 0x690a
movq 0x5c9bd(%rip), %rcx # 0x63250
leaq 0x37c1d(%rip), %rdi # 0x3e4b7
movl $0x14, %esi
movl $0x1, %edx
callq 0x6350
movq %rbx, %rdi
callq 0xf870
testl %eax, %eax
jle 0x68ed
leaq 0x38610(%rip), %r14 # 0x3eecc
xorl %ebp, %ebp
movq 0x5c98b(%rip), %r15 # 0x63250
movq %rbx, %rdi
movl %ebp, %esi
callq 0xf874
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x6290
incl %ebp
movq %rbx, %rdi
callq 0xf870
cmpl %eax, %ebp
jl 0x68be
movq 0x5c95c(%rip), %rcx # 0x63250
leaq 0x37bd1(%rip), %rdi # 0x3e4cc
movl $0x2, %esi
movl $0x1, %edx
callq 0x6350
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
_Z7compMSLN12LefDefParser18defrCallbackType_eEPNS_27defiComponentMaskShiftLayerEPv:
push rbp
push r15
push r14
push rbx
push rax
mov r14, rdx
mov rbx, rsi
cmp edi, 68h ; 'h'
jb short loc_685A
mov rcx, cs:fout
lea rdi, aErrorCallbackT; "ERROR: callback type is out of bounds!"...
mov esi, 27h ; '''
mov edx, 1
call _fwrite
loc_685A:
cmp cs:userData, r14
jz short loc_6880
mov rcx, cs:fout
lea rdi, aErrorReturnedU; "ERROR: returned user data is not correc"...
mov esi, 2Ah ; '*'
mov edx, 1
call _fwrite
loc_6880:
mov rdi, rbx; this
call _ZNK12LefDefParser27defiComponentMaskShiftLayer18numMaskShiftLayersEv; LefDefParser::defiComponentMaskShiftLayer::numMaskShiftLayers(void)
test eax, eax
jz short loc_690A
mov rcx, cs:fout
lea rdi, aComponentmasks; "\nCOMPONENTMASKSHIFT "
mov esi, 14h
mov edx, 1
call _fwrite
mov rdi, rbx; this
call _ZNK12LefDefParser27defiComponentMaskShiftLayer18numMaskShiftLayersEv; LefDefParser::defiComponentMaskShiftLayer::numMaskShiftLayers(void)
test eax, eax
jle short loc_68ED
lea r14, aDDS+0Ah; "%s "
xor ebp, ebp
loc_68BE:
mov r15, cs:fout
mov rdi, rbx; this
mov esi, ebp; int
call _ZNK12LefDefParser27defiComponentMaskShiftLayer14maskShiftLayerEi; LefDefParser::defiComponentMaskShiftLayer::maskShiftLayer(int)
mov rdi, r15
mov rsi, r14
mov rdx, rax
xor eax, eax
call _fprintf
inc ebp
mov rdi, rbx; this
call _ZNK12LefDefParser27defiComponentMaskShiftLayer18numMaskShiftLayersEv; LefDefParser::defiComponentMaskShiftLayer::numMaskShiftLayers(void)
cmp ebp, eax
jl short loc_68BE
loc_68ED:
mov rcx, cs:fout
lea rdi, asc_3E4CC; ";\n"
mov esi, 2
mov edx, 1
call _fwrite
loc_690A:
xor eax, eax
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long compMSL(unsigned int a1, LefDefParser::defiComponentMaskShiftLayer *a2, long long a3)
{
int v4; // ebp
long long v5; // r15
const char *v6; // rax
if ( a1 >= 0x68 )
fwrite("ERROR: callback type is out of bounds!\n", 39LL, 1LL, fout);
if ( userData != a3 )
fwrite("ERROR: returned user data is not correct!\n", 42LL, 1LL, fout);
if ( (unsigned int)LefDefParser::defiComponentMaskShiftLayer::numMaskShiftLayers(a2) )
{
fwrite("\nCOMPONENTMASKSHIFT ", 20LL, 1LL, fout);
if ( (int)LefDefParser::defiComponentMaskShiftLayer::numMaskShiftLayers(a2) > 0 )
{
v4 = 0;
do
{
v5 = fout;
v6 = (const char *)LefDefParser::defiComponentMaskShiftLayer::maskShiftLayer(a2, v4);
fprintf(v5, "%s ", v6);
++v4;
}
while ( v4 < (int)LefDefParser::defiComponentMaskShiftLayer::numMaskShiftLayers(a2) );
}
fwrite(";\n", 2LL, 1LL, fout);
}
return 0LL;
}
|
compMSL:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RDX
MOV RBX,RSI
CMP EDI,0x68
JC 0x0010685a
MOV RCX,qword ptr [0x00163250]
LEA RDI,[0x13e48f]
MOV ESI,0x27
MOV EDX,0x1
CALL 0x00106350
LAB_0010685a:
CMP qword ptr [0x00163258],R14
JZ 0x00106880
MOV RCX,qword ptr [0x00163250]
LEA RDI,[0x13e464]
MOV ESI,0x2a
MOV EDX,0x1
CALL 0x00106350
LAB_00106880:
MOV RDI,RBX
CALL 0x0010f870
TEST EAX,EAX
JZ 0x0010690a
MOV RCX,qword ptr [0x00163250]
LEA RDI,[0x13e4b7]
MOV ESI,0x14
MOV EDX,0x1
CALL 0x00106350
MOV RDI,RBX
CALL 0x0010f870
TEST EAX,EAX
JLE 0x001068ed
LEA R14,[0x13eecc]
XOR EBP,EBP
LAB_001068be:
MOV R15,qword ptr [0x00163250]
MOV RDI,RBX
MOV ESI,EBP
CALL 0x0010f874
MOV RDI,R15
MOV RSI,R14
MOV RDX,RAX
XOR EAX,EAX
CALL 0x00106290
INC EBP
MOV RDI,RBX
CALL 0x0010f870
CMP EBP,EAX
JL 0x001068be
LAB_001068ed:
MOV RCX,qword ptr [0x00163250]
LEA RDI,[0x13e4cc]
MOV ESI,0x2
MOV EDX,0x1
CALL 0x00106350
LAB_0010690a:
XOR EAX,EAX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* compMSL(LefDefParser::defrCallbackType_e, LefDefParser::defiComponentMaskShiftLayer*, void*) */
int8 compMSL(uint param_1,defiComponentMaskShiftLayer *param_2,long param_3)
{
FILE *__stream;
int iVar1;
int iVar2;
int8 uVar3;
if (0x67 < param_1) {
fwrite("ERROR: callback type is out of bounds!\n",0x27,1,fout);
}
if (userData != param_3) {
fwrite("ERROR: returned user data is not correct!\n",0x2a,1,fout);
}
iVar1 = LefDefParser::defiComponentMaskShiftLayer::numMaskShiftLayers(param_2);
if (iVar1 != 0) {
fwrite("\nCOMPONENTMASKSHIFT ",0x14,1,fout);
iVar1 = LefDefParser::defiComponentMaskShiftLayer::numMaskShiftLayers(param_2);
if (0 < iVar1) {
iVar1 = 0;
do {
__stream = fout;
uVar3 = LefDefParser::defiComponentMaskShiftLayer::maskShiftLayer(param_2,iVar1);
fprintf(__stream,"%s ",uVar3);
iVar1 = iVar1 + 1;
iVar2 = LefDefParser::defiComponentMaskShiftLayer::numMaskShiftLayers(param_2);
} while (iVar1 < iVar2);
}
fwrite(&DAT_0013e4cc,2,1,fout);
}
return 0;
}
|
|
56,940
|
mbr_join_square
|
eloqsql/storage/myisam/rt_split.c
|
static double mbr_join_square(const double *a, const double *b, int n_dim)
{
const double *end = a + n_dim * 2;
double square = 1.0;
do
{
square *=
((a[1] < b[1]) ? b[1] : a[1]) - ((a[0] > b[0]) ? b[0] : a[0]);
a += 2;
b += 2;
}while (a != end);
/* Check if not finite (i.e. infinity or NaN) */
if (!isfinite(square))
square = DBL_MAX;
return square;
}
|
O0
|
c
|
mbr_join_square:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rax
movl -0x14(%rbp), %ecx
shll %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movsd 0x82d1a(%rip), %xmm0 # 0x158c58
movsd %xmm0, -0x28(%rbp)
movq -0x8(%rbp), %rax
movsd 0x8(%rax), %xmm1
movq -0x10(%rbp), %rax
movsd 0x8(%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0xd5f6b
movq -0x10(%rbp), %rax
movsd 0x8(%rax), %xmm0
movsd %xmm0, -0x30(%rbp)
jmp 0xd5f79
movq -0x8(%rbp), %rax
movsd 0x8(%rax), %xmm0
movsd %xmm0, -0x30(%rbp)
movsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
movq -0x8(%rbp), %rax
movsd (%rax), %xmm0
movq -0x10(%rbp), %rax
ucomisd (%rax), %xmm0
jbe 0xd5fa4
movq -0x10(%rbp), %rax
movsd (%rax), %xmm0
movsd %xmm0, -0x40(%rbp)
jmp 0xd5fb1
movq -0x8(%rbp), %rax
movsd (%rax), %xmm0
movsd %xmm0, -0x40(%rbp)
movsd -0x38(%rbp), %xmm0
movsd -0x40(%rbp), %xmm1
subsd %xmm1, %xmm0
mulsd -0x28(%rbp), %xmm0
movsd %xmm0, -0x28(%rbp)
movq -0x8(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x8(%rbp)
movq -0x10(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
cmpq -0x20(%rbp), %rax
jne 0xd5f43
movsd -0x28(%rbp), %xmm0
movq %xmm0, %rax
movabsq $0x7fffffffffffffff, %rcx # imm = 0x7FFFFFFFFFFFFFFF
andq %rcx, %rax
movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000
subq %rcx, %rax
setl %al
testb $0x1, %al
jne 0xd6027
movsd 0x82c4e(%rip), %xmm0 # 0x158c70
movsd %xmm0, -0x28(%rbp)
movsd -0x28(%rbp), %xmm0
popq %rbp
retq
nop
|
mbr_join_square_0:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov rax, [rbp+var_8]
mov ecx, [rbp+var_14]
shl ecx, 1
movsxd rcx, ecx
shl rcx, 3
add rax, rcx
mov [rbp+var_20], rax
movsd xmm0, cs:qword_158C58
movsd [rbp+var_28], xmm0
loc_D5F43:
mov rax, [rbp+var_8]
movsd xmm1, qword ptr [rax+8]
mov rax, [rbp+var_10]
movsd xmm0, qword ptr [rax+8]
ucomisd xmm0, xmm1
jbe short loc_D5F6B
mov rax, [rbp+var_10]
movsd xmm0, qword ptr [rax+8]
movsd [rbp+var_30], xmm0
jmp short loc_D5F79
loc_D5F6B:
mov rax, [rbp+var_8]
movsd xmm0, qword ptr [rax+8]
movsd [rbp+var_30], xmm0
loc_D5F79:
movsd xmm0, [rbp+var_30]
movsd [rbp+var_38], xmm0
mov rax, [rbp+var_8]
movsd xmm0, qword ptr [rax]
mov rax, [rbp+var_10]
ucomisd xmm0, qword ptr [rax]
jbe short loc_D5FA4
mov rax, [rbp+var_10]
movsd xmm0, qword ptr [rax]
movsd [rbp+var_40], xmm0
jmp short loc_D5FB1
loc_D5FA4:
mov rax, [rbp+var_8]
movsd xmm0, qword ptr [rax]
movsd [rbp+var_40], xmm0
loc_D5FB1:
movsd xmm0, [rbp+var_38]
movsd xmm1, [rbp+var_40]
subsd xmm0, xmm1
mulsd xmm0, [rbp+var_28]
movsd [rbp+var_28], xmm0
mov rax, [rbp+var_8]
add rax, 10h
mov [rbp+var_8], rax
mov rax, [rbp+var_10]
add rax, 10h
mov [rbp+var_10], rax
mov rax, [rbp+var_8]
cmp rax, [rbp+var_20]
jnz loc_D5F43
movsd xmm0, [rbp+var_28]
movq rax, xmm0
mov rcx, 7FFFFFFFFFFFFFFFh
and rax, rcx
mov rcx, 7FF0000000000000h
sub rax, rcx
setl al
test al, 1
jnz short loc_D6027
movsd xmm0, cs:qword_158C70
movsd [rbp+var_28], xmm0
loc_D6027:
movsd xmm0, [rbp+var_28]
pop rbp
retn
|
double mbr_join_square_0(double *a1, double *a2, int a3)
{
double v4; // [rsp+0h] [rbp-40h]
double v5; // [rsp+10h] [rbp-30h]
double v6; // [rsp+18h] [rbp-28h]
double *v8; // [rsp+38h] [rbp-8h]
v8 = a1;
v6 = 1.0;
do
{
if ( a2[1] <= v8[1] )
v5 = v8[1];
else
v5 = a2[1];
if ( *v8 <= *a2 )
v4 = *v8;
else
v4 = *a2;
v6 = (v5 - v4) * v6;
v8 += 2;
a2 += 2;
}
while ( v8 != &a1[2 * a3] );
if ( (*(_QWORD *)&v6 & 0x7FFFFFFFFFFFFFFFuLL) >= 0x7FF0000000000000LL )
return 1.797693134862316e308;
return v6;
}
|
mbr_join_square:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0x14]
SHL ECX,0x1
MOVSXD RCX,ECX
SHL RCX,0x3
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOVSD XMM0,qword ptr [0x00258c58]
MOVSD qword ptr [RBP + -0x28],XMM0
LAB_001d5f43:
MOV RAX,qword ptr [RBP + -0x8]
MOVSD XMM1,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOVSD XMM0,qword ptr [RAX + 0x8]
UCOMISD XMM0,XMM1
JBE 0x001d5f6b
MOV RAX,qword ptr [RBP + -0x10]
MOVSD XMM0,qword ptr [RAX + 0x8]
MOVSD qword ptr [RBP + -0x30],XMM0
JMP 0x001d5f79
LAB_001d5f6b:
MOV RAX,qword ptr [RBP + -0x8]
MOVSD XMM0,qword ptr [RAX + 0x8]
MOVSD qword ptr [RBP + -0x30],XMM0
LAB_001d5f79:
MOVSD XMM0,qword ptr [RBP + -0x30]
MOVSD qword ptr [RBP + -0x38],XMM0
MOV RAX,qword ptr [RBP + -0x8]
MOVSD XMM0,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
UCOMISD XMM0,qword ptr [RAX]
JBE 0x001d5fa4
MOV RAX,qword ptr [RBP + -0x10]
MOVSD XMM0,qword ptr [RAX]
MOVSD qword ptr [RBP + -0x40],XMM0
JMP 0x001d5fb1
LAB_001d5fa4:
MOV RAX,qword ptr [RBP + -0x8]
MOVSD XMM0,qword ptr [RAX]
MOVSD qword ptr [RBP + -0x40],XMM0
LAB_001d5fb1:
MOVSD XMM0,qword ptr [RBP + -0x38]
MOVSD XMM1,qword ptr [RBP + -0x40]
SUBSD XMM0,XMM1
MULSD XMM0,qword ptr [RBP + -0x28]
MOVSD qword ptr [RBP + -0x28],XMM0
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x10
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x10
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RBP + -0x20]
JNZ 0x001d5f43
MOVSD XMM0,qword ptr [RBP + -0x28]
MOVQ RAX,XMM0
MOV RCX,0x7fffffffffffffff
AND RAX,RCX
MOV RCX,0x7ff0000000000000
SUB RAX,RCX
SETL AL
TEST AL,0x1
JNZ 0x001d6027
MOVSD XMM0,qword ptr [0x00258c70]
MOVSD qword ptr [RBP + -0x28],XMM0
LAB_001d6027:
MOVSD XMM0,qword ptr [RBP + -0x28]
POP RBP
RET
|
double mbr_join_square(double *param_1,double *param_2,int param_3)
{
double local_48;
double local_38;
double local_30;
double *local_18;
double *local_10;
local_30 = DAT_00258c58;
local_18 = param_2;
local_10 = param_1;
do {
if (local_18[1] <= local_10[1]) {
local_38 = local_10[1];
}
else {
local_38 = local_18[1];
}
if (*local_10 < *local_18 || *local_10 == *local_18) {
local_48 = *local_10;
}
else {
local_48 = *local_18;
}
local_30 = (local_38 - local_48) * local_30;
local_10 = local_10 + 2;
local_18 = local_18 + 2;
} while (local_10 != param_1 + (param_3 << 1));
if (0x7fefffffffffffff < (ulong)ABS(local_30)) {
local_30 = DAT_00258c70;
}
return local_30;
}
|
|
56,941
|
resolve_collation
|
eloqsql/mysys/charset.c
|
my_bool resolve_collation(const char *cl_name,
CHARSET_INFO *default_cl,
CHARSET_INFO **cl,
myf my_flags)
{
*cl= get_charset_by_name(cl_name, my_flags);
if (*cl == NULL)
{
*cl= default_cl;
return TRUE;
}
return FALSE;
}
|
O3
|
c
|
resolve_collation:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0xc0, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %rsi
movq %fs:0x28, %rax
movq %rax, -0x18(%rbp)
leaq -0xc8(%rbp), %rdi
movb $0x0, (%rdi)
leaq -0x13af(%rip), %rax # 0x776f2
movq %rax, 0x80(%rdi)
leaq -0x13ae(%rip), %rax # 0x77701
movq %rax, 0x88(%rdi)
leaq -0x13a1(%rip), %rax # 0x7771c
movq %rax, 0x90(%rdi)
leaq 0xbc67(%rip), %rax # 0x84732
movq %rax, 0x98(%rdi)
leaq 0x2f6c47(%rip), %rax # 0x36f720
movq (%rax), %rax
movq %rax, 0xa0(%rdi)
leaq -0x13b0(%rip), %rax # 0x7773a
movq %rax, 0xa8(%rdi)
movq %rcx, %rdx
callq 0x7866c
movq %rax, %rcx
testq %rax, %rax
sete %al
cmovneq %rcx, %r14
movq %r14, (%rbx)
movq %fs:0x28, %rcx
cmpq -0x18(%rbp), %rcx
jne 0x78b24
addq $0xc0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
callq 0x3a340
|
resolve_collation:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 0C0h
mov rbx, rdx
mov r14, rsi
mov rsi, rdi
mov rax, fs:28h
mov [rbp+var_18], rax
lea rdi, [rbp+var_C8]
mov byte ptr [rdi], 0
lea rax, my_once_alloc_c
mov [rdi+80h], rax
lea rax, my_malloc_c
mov [rdi+88h], rax
lea rax, my_realloc_c
mov [rdi+90h], rax
lea rax, my_free
mov [rdi+98h], rax
lea rax, my_charset_error_reporter
mov rax, [rax]
mov [rdi+0A0h], rax
lea rax, add_collation
mov [rdi+0A8h], rax
mov rdx, rcx
call my_collation_get_by_name
mov rcx, rax
test rax, rax
setz al
cmovnz r14, rcx
mov [rbx], r14
mov rcx, fs:28h
cmp rcx, [rbp+var_18]
jnz short loc_78B24
add rsp, 0C0h
pop rbx
pop r14
pop rbp
retn
loc_78B24:
call ___stack_chk_fail
|
bool resolve_collation(long long a1, long long a2, long long *a3, long long a4)
{
long long v6; // rcx
bool result; // al
char v8[128]; // [rsp+8h] [rbp-C8h] BYREF
long long ( *v9)(long long); // [rsp+88h] [rbp-48h]
long long ( *v10)(long long); // [rsp+90h] [rbp-40h]
long long ( *v11)(long long, long long); // [rsp+98h] [rbp-38h]
long long ( *v12)(_QWORD); // [rsp+A0h] [rbp-30h]
long long ( *v13)(); // [rsp+A8h] [rbp-28h]
long long ( *v14)(unsigned int *); // [rsp+B0h] [rbp-20h]
unsigned long long v15; // [rsp+B8h] [rbp-18h]
v15 = __readfsqword(0x28u);
v8[0] = 0;
v9 = my_once_alloc_c;
v10 = my_malloc_c;
v11 = my_realloc_c;
v12 = my_free;
v13 = my_charset_error_reporter;
v14 = add_collation;
v6 = my_collation_get_by_name((long long)v8, a1, a4);
result = v6 == 0;
if ( v6 )
a2 = v6;
*a3 = a2;
return result;
}
|
resolve_collation:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0xc0
MOV RBX,RDX
MOV R14,RSI
MOV RSI,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x18],RAX
LEA RDI,[RBP + -0xc8]
MOV byte ptr [RDI],0x0
LEA RAX,[0x1776f2]
MOV qword ptr [RDI + 0x80],RAX
LEA RAX,[0x177701]
MOV qword ptr [RDI + 0x88],RAX
LEA RAX,[0x17771c]
MOV qword ptr [RDI + 0x90],RAX
LEA RAX,[0x184732]
MOV qword ptr [RDI + 0x98],RAX
LEA RAX,[0x46f720]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RDI + 0xa0],RAX
LEA RAX,[0x17773a]
MOV qword ptr [RDI + 0xa8],RAX
MOV RDX,RCX
CALL 0x0017866c
MOV RCX,RAX
TEST RAX,RAX
SETZ AL
CMOVNZ R14,RCX
MOV qword ptr [RBX],R14
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x18]
JNZ 0x00178b24
ADD RSP,0xc0
POP RBX
POP R14
POP RBP
RET
LAB_00178b24:
CALL 0x0013a340
|
bool resolve_collation(int8 param_1,long param_2,long *param_3,int8 param_4)
{
long lVar1;
long in_FS_OFFSET;
int1 local_d0 [128];
code *local_50;
code *local_48;
code *local_40;
code *local_38;
int *local_30;
code *local_28;
long local_20;
local_20 = *(long *)(in_FS_OFFSET + 0x28);
local_d0[0] = 0;
local_50 = my_once_alloc_c;
local_48 = my_malloc_c;
local_40 = my_realloc_c;
local_38 = my_free;
local_30 = my_charset_error_reporter;
local_28 = add_collation;
lVar1 = my_collation_get_by_name(local_d0,param_1,param_4);
if (lVar1 != 0) {
param_2 = lVar1;
}
*param_3 = param_2;
if (*(long *)(in_FS_OFFSET + 0x28) == local_20) {
return lVar1 == 0;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
56,942
|
my_is_symlink
|
eloqsql/mysys/my_symlink.c
|
int my_is_symlink(const char *filename __attribute__((unused)))
{
#if defined (HAVE_LSTAT) && defined (S_ISLNK)
struct stat stat_buff;
if (lstat(filename, &stat_buff))
return 0;
MSAN_STAT_WORKAROUND(&stat_buff);
return !!S_ISLNK(stat_buff.st_mode);
#elif defined (_WIN32)
DWORD dwAttr = GetFileAttributes(filename);
return (dwAttr != INVALID_FILE_ATTRIBUTES) &&
(dwAttr & FILE_ATTRIBUTE_REPARSE_POINT);
#else /* No symlinks */
return 0;
#endif
}
|
O0
|
c
|
my_is_symlink:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x2a4f0
cmpl $0x0, %eax
je 0xfd9bd
movl $0x0, -0x4(%rbp)
jmp 0xfd9dc
movl -0x88(%rbp), %eax
andl $0xf000, %eax # imm = 0xF000
cmpl $0xa000, %eax # imm = 0xA000
sete %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xa0, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
my_is_symlink:
push rbp
mov rbp, rsp
sub rsp, 0A0h
mov [rbp+var_10], rdi
mov rdi, [rbp+var_10]
lea rsi, [rbp+var_A0]
call _lstat64
cmp eax, 0
jz short loc_FD9BD
mov [rbp+var_4], 0
jmp short loc_FD9DC
loc_FD9BD:
mov eax, [rbp+var_88]
and eax, 0F000h
cmp eax, 0A000h
setz al
xor al, 0FFh
xor al, 0FFh
and al, 1
movzx eax, al
mov [rbp+var_4], eax
loc_FD9DC:
mov eax, [rbp+var_4]
add rsp, 0A0h
pop rbp
retn
|
_BOOL8 my_is_symlink(long long a1)
{
_BYTE v2[24]; // [rsp+0h] [rbp-A0h] BYREF
int v3; // [rsp+18h] [rbp-88h]
long long v4; // [rsp+90h] [rbp-10h]
v4 = a1;
return !(unsigned int)lstat64(a1, v2) && (v3 & 0xF000) == 40960;
}
|
my_is_symlink:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xa0
MOV qword ptr [RBP + -0x10],RDI
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[RBP + -0xa0]
CALL 0x0012a4f0
CMP EAX,0x0
JZ 0x001fd9bd
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001fd9dc
LAB_001fd9bd:
MOV EAX,dword ptr [RBP + -0x88]
AND EAX,0xf000
CMP EAX,0xa000
SETZ AL
XOR AL,0xff
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
MOV dword ptr [RBP + -0x4],EAX
LAB_001fd9dc:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0xa0
POP RBP
RET
|
bool my_is_symlink(char *param_1)
{
int iVar1;
stat64 local_a8;
char *local_18;
local_18 = param_1;
iVar1 = lstat64(param_1,&local_a8);
return iVar1 == 0 && (local_a8.st_mode & 0xf000) == 0xa000;
}
|
|
56,943
|
my_is_symlink
|
eloqsql/mysys/my_symlink.c
|
int my_is_symlink(const char *filename __attribute__((unused)))
{
#if defined (HAVE_LSTAT) && defined (S_ISLNK)
struct stat stat_buff;
if (lstat(filename, &stat_buff))
return 0;
MSAN_STAT_WORKAROUND(&stat_buff);
return !!S_ISLNK(stat_buff.st_mode);
#elif defined (_WIN32)
DWORD dwAttr = GetFileAttributes(filename);
return (dwAttr != INVALID_FILE_ATTRIBUTES) &&
(dwAttr & FILE_ATTRIBUTE_REPARSE_POINT);
#else /* No symlinks */
return 0;
#endif
}
|
O3
|
c
|
my_is_symlink:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x98, %rsp
leaq -0x98(%rbp), %rbx
movq %rbx, %rsi
callq 0x2a520
movl 0x18(%rbx), %edx
andl $0xf000, %edx # imm = 0xF000
xorl $0xa000, %edx # imm = 0xA000
xorl %ecx, %ecx
orl %eax, %edx
sete %cl
movl %ecx, %eax
addq $0x98, %rsp
popq %rbx
popq %rbp
retq
|
my_is_symlink:
push rbp
mov rbp, rsp
push rbx
sub rsp, 98h
lea rbx, [rbp+var_98]
mov rsi, rbx
call _lstat64
mov edx, [rbx+18h]
and edx, 0F000h
xor edx, 0A000h
xor ecx, ecx
or edx, eax
setz cl
mov eax, ecx
add rsp, 98h
pop rbx
pop rbp
retn
|
_BOOL8 my_is_symlink(long long a1)
{
int v1; // eax
_BYTE v3[24]; // [rsp+8h] [rbp-98h] BYREF
__int16 v4; // [rsp+20h] [rbp-80h]
v1 = lstat64(a1, v3);
return (v1 | v4 & 0xF000 ^ 0xA000) == 0;
}
|
my_is_symlink:
PUSH RBP
MOV RBP,RSP
PUSH RBX
SUB RSP,0x98
LEA RBX,[RBP + -0x98]
MOV RSI,RBX
CALL 0x0012a520
MOV EDX,dword ptr [RBX + 0x18]
AND EDX,0xf000
XOR EDX,0xa000
XOR ECX,ECX
OR EDX,EAX
SETZ CL
MOV EAX,ECX
ADD RSP,0x98
POP RBX
POP RBP
RET
|
bool my_is_symlink(char *param_1)
{
int iVar1;
stat64 local_a0;
iVar1 = lstat64(param_1,&local_a0);
return (local_a0.st_mode & 0xf000) == 0xa000 && iVar1 == 0;
}
|
|
56,944
|
ma_bitmap_find_new_place
|
eloqsql/storage/maria/ma_bitmap.c
|
my_bool _ma_bitmap_find_new_place(MARIA_HA *info, MARIA_ROW *row,
pgcache_page_no_t page, uint free_size,
MARIA_BITMAP_BLOCKS *blocks)
{
MARIA_SHARE *share= info->s;
my_bool res= 1;
uint position;
uint head_length, row_length, rest_length, extents_length;
ulonglong bitmap_page;
DBUG_ENTER("_ma_bitmap_find_new_place");
blocks->count= 0;
blocks->tail_page_skipped= blocks->page_skipped= 0;
row->extents_count= 0;
info->bitmap_blocks.elements= ELEMENTS_RESERVED_FOR_MAIN_PART;
mysql_mutex_lock(&share->bitmap.bitmap_lock);
/*
First allocate all blobs (so that we can find out the needed size for
the main block.
*/
if (row->blob_length && allocate_blobs(info, row))
goto abort;
/* Switch bitmap to current head page */
bitmap_page= page - page % share->bitmap.pages_covered;
if (share->bitmap.page != bitmap_page &&
_ma_change_bitmap_page(info, &share->bitmap, bitmap_page))
goto abort;
extents_length= row->extents_count * ROW_EXTENT_SIZE;
if ((head_length= (row->head_length + extents_length + 3)) <= free_size)
{
/* Main row part fits into one page */
position= ELEMENTS_RESERVED_FOR_MAIN_PART - 1;
use_head(info, page, head_length, position);
row->space_on_head_page= head_length;
goto end;
}
/* Allocate enough space */
head_length+= ELEMENTS_RESERVED_FOR_MAIN_PART * ROW_EXTENT_SIZE;
/*
The first segment size is stored in 'row_length'
We have to add ELEMENTS_RESERVED_FOR_MAIN_PART here as the extent
information may be up to this size when the header splits.
*/
row_length= find_where_to_split_row(share, row, row->extents_count +
ELEMENTS_RESERVED_FOR_MAIN_PART-1,
free_size);
position= 0;
rest_length= head_length - row_length;
if (rest_length <= MAX_TAIL_SIZE(share->block_size))
position= ELEMENTS_RESERVED_FOR_MAIN_PART -2; /* Only head and tail */
use_head(info, page, row_length, position);
row->space_on_head_page= row_length;
if (write_rest_of_head(info, position, rest_length))
goto abort;
end:
blocks->block= dynamic_element(&info->bitmap_blocks, position,
MARIA_BITMAP_BLOCK*);
blocks->block->sub_blocks= ELEMENTS_RESERVED_FOR_MAIN_PART - position;
/* First block's page_count is for all blocks */
blocks->count= info->bitmap_blocks.elements - position;
res= 0;
abort:
mysql_mutex_unlock(&share->bitmap.bitmap_lock);
DBUG_RETURN(res);
}
|
O3
|
c
|
ma_bitmap_find_new_place:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, -0x2c(%rbp)
movq %rdx, %rbx
movq %rsi, %r13
movq %rdi, %r12
movq (%rdi), %r14
xorl %eax, %eax
movl %eax, 0x8(%r8)
movq %r8, -0x38(%rbp)
movw $0x0, 0xc(%r8)
movl %eax, 0xac(%rsi)
movl $0x4, 0x2c8(%rdi)
leaq 0xa98(%r14), %rdi
cmpq $0x0, 0xad8(%r14)
movq %rdi, -0x40(%rbp)
jne 0x41f19
callq 0x29220
cmpq $0x0, 0x88(%r13)
je 0x41cd7
movq %r12, %rdi
movq %r13, %rsi
callq 0x4191e
movb $0x1, %r15b
testb %al, %al
jne 0x41ef2
movq %rbx, %rax
xorl %edx, %edx
divq 0xb48(%r14)
movq %rdx, %rax
movq %rbx, %rdx
subq %rax, %rdx
cmpq %rdx, 0xa20(%r14)
je 0x41d0f
leaq 0xa10(%r14), %rsi
movq %r12, %rdi
callq 0x41f41
movb $0x1, %r15b
testb %al, %al
jne 0x41ef2
movl 0xa0(%r13), %r15d
movl 0xac(%r13), %edx
leal (,%rdx,8), %esi
subl %edx, %esi
leal (%r15,%rsi), %eax
addl $0x3, %eax
movl -0x2c(%rbp), %ecx
cmpl %ecx, %eax
jbe 0x41d93
addl %esi, %r15d
addl $0x3, %edx
movq %r14, %rdi
movq %r13, %rsi
callq 0x41ad5
subl %eax, %r15d
addl $0x1f, %r15d
movl 0x7bc(%r14), %ecx
leal (%rcx,%rcx,2), %ecx
shrl $0x2, %ecx
movq (%r12), %rdx
movq 0x2c0(%r12), %rsi
cmpl %ecx, %r15d
jbe 0x41e1b
movl $0x0, -0x2c(%rbp)
movl $0x15, %edi
movl $0x14, %ecx
movl $0xc, %r9d
movl $0x8, %r10d
movq %rsi, %r8
jmp 0x41e3c
movq (%r12), %rdx
movq 0x2c0(%r12), %r8
movq %rbx, 0x48(%r8)
movl $0x8001, 0x50(%r8) # imm = 0x8001
movl %eax, 0x54(%r8)
movb $0x4, 0x5c(%r8)
movl 0xa20(%rdx), %ecx
notl %ecx
addl %ecx, %ebx
leal (%rbx,%rbx,2), %ecx
movq 0xa18(%rdx), %rsi
movl %ecx, %edi
shrl $0x3, %edi
movzwl (%rsi,%rdi), %r9d
andb $0x7, %cl
movl %r9d, %r10d
shrl %cl, %r10d
andb $0x7, %r10b
movb %r10b, 0x5d(%r8)
movl $0x7, %r8d
shll %cl, %r8d
notl %r8d
andl %r9d, %r8d
movl $0x4, %r9d
shll %cl, %r9d
orl %r8d, %r9d
movw %r9w, (%rsi,%rdi)
movb $0x1, 0xa30(%rdx)
movl %eax, 0xb8(%r13)
movl $0x3, %ebx
jmp 0x41ebf
leaq 0x30(%rsi), %r8
movl $0x2, -0x2c(%rbp)
movl $0x45, %edi
movl $0x44, %ecx
movl $0x3c, %r9d
movl $0x38, %r10d
movq %rbx, (%r8)
movl $0x8001, (%rsi,%r10) # imm = 0x8001
movl %eax, (%rsi,%r9)
movb $0x4, (%rsi,%rcx)
movl 0xa20(%rdx), %ecx
notl %ecx
addl %ecx, %ebx
leal (%rbx,%rbx,2), %ecx
movq 0xa18(%rdx), %r8
movl %ecx, %r9d
shrl $0x3, %r9d
movzwl (%r8,%r9), %r10d
andb $0x7, %cl
movl %r10d, %r11d
shrl %cl, %r11d
andb $0x7, %r11b
movb %r11b, (%rsi,%rdi)
movl $0x7, %esi
shll %cl, %esi
notl %esi
andl %r10d, %esi
movl $0x4, %edi
shll %cl, %edi
orl %esi, %edi
movw %di, (%r8,%r9)
movb $0x1, 0xa30(%rdx)
movl %eax, 0xb8(%r13)
movl %r15d, %edx
movq %r12, %rdi
movl -0x2c(%rbp), %ebx
movl %ebx, %esi
callq 0x41b71
movb $0x1, %r15b
testb %al, %al
jne 0x41ef2
movq 0x2c0(%r12), %rax
movl %ebx, %ecx
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rax
movq -0x38(%rbp), %rdx
movq %rax, (%rdx)
movl $0x4, %ecx
subl %ebx, %ecx
movl %ecx, 0x10(%rax)
movl 0x2c8(%r12), %eax
subl %ebx, %eax
movl %eax, 0x8(%rdx)
xorl %r15d, %r15d
movq 0xad8(%r14), %rdi
testq %rdi, %rdi
jne 0x41f2f
movq -0x40(%rbp), %rdi
callq 0x291e0
movl %r15d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x98bcd(%rip), %rsi # 0xdaaed
movl $0x8b1, %edx # imm = 0x8B1
callq 0x2eb8f
jmp 0x41cb7
leaq 0x34618a(%rip), %rax # 0x3880c0
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x41efe
|
_ma_bitmap_find_new_place:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov [rbp+var_2C], ecx
mov rbx, rdx
mov r13, rsi
mov r12, rdi
mov r14, [rdi]
xor eax, eax
mov [r8+8], eax
mov [rbp+var_38], r8
mov word ptr [r8+0Ch], 0
mov [rsi+0ACh], eax
mov dword ptr [rdi+2C8h], 4
lea rdi, [r14+0A98h]
cmp qword ptr [r14+0AD8h], 0
mov [rbp+var_40], rdi
jnz loc_41F19
call _pthread_mutex_lock
loc_41CB7:
cmp qword ptr [r13+88h], 0
jz short loc_41CD7
mov rdi, r12
mov rsi, r13
call allocate_blobs
mov r15b, 1
test al, al
jnz loc_41EF2
loc_41CD7:
mov rax, rbx
xor edx, edx
div qword ptr [r14+0B48h]
mov rax, rdx
mov rdx, rbx
sub rdx, rax
cmp [r14+0A20h], rdx
jz short loc_41D0F
lea rsi, [r14+0A10h]
mov rdi, r12
call _ma_change_bitmap_page
mov r15b, 1
test al, al
jnz loc_41EF2
loc_41D0F:
mov r15d, [r13+0A0h]
mov edx, [r13+0ACh]
lea esi, ds:0[rdx*8]
sub esi, edx
lea eax, [r15+rsi]
add eax, 3
mov ecx, [rbp+var_2C]
cmp eax, ecx
jbe short loc_41D93
add r15d, esi
add edx, 3
mov rdi, r14
mov rsi, r13
call find_where_to_split_row
sub r15d, eax
add r15d, 1Fh
mov ecx, [r14+7BCh]
lea ecx, [rcx+rcx*2]
shr ecx, 2
mov rdx, [r12]
mov rsi, [r12+2C0h]
cmp r15d, ecx
jbe loc_41E1B
mov [rbp+var_2C], 0
mov edi, 15h
mov ecx, 14h
mov r9d, 0Ch
mov r10d, 8
mov r8, rsi
jmp loc_41E3C
loc_41D93:
mov rdx, [r12]
mov r8, [r12+2C0h]
mov [r8+48h], rbx
mov dword ptr [r8+50h], 8001h
mov [r8+54h], eax
mov byte ptr [r8+5Ch], 4
mov ecx, [rdx+0A20h]
not ecx
add ebx, ecx
lea ecx, [rbx+rbx*2]
mov rsi, [rdx+0A18h]
mov edi, ecx
shr edi, 3
movzx r9d, word ptr [rsi+rdi]
and cl, 7
mov r10d, r9d
shr r10d, cl
and r10b, 7
mov [r8+5Dh], r10b
mov r8d, 7
shl r8d, cl
not r8d
and r8d, r9d
mov r9d, 4
shl r9d, cl
or r9d, r8d
mov [rsi+rdi], r9w
mov byte ptr [rdx+0A30h], 1
mov [r13+0B8h], eax
mov ebx, 3
jmp loc_41EBF
loc_41E1B:
lea r8, [rsi+30h]
mov [rbp+var_2C], 2
mov edi, 45h ; 'E'
mov ecx, 44h ; 'D'
mov r9d, 3Ch ; '<'
mov r10d, 38h ; '8'
loc_41E3C:
mov [r8], rbx
mov dword ptr [rsi+r10], 8001h
mov [rsi+r9], eax
mov byte ptr [rsi+rcx], 4
mov ecx, [rdx+0A20h]
not ecx
add ebx, ecx
lea ecx, [rbx+rbx*2]
mov r8, [rdx+0A18h]
mov r9d, ecx
shr r9d, 3
movzx r10d, word ptr [r8+r9]
and cl, 7
mov r11d, r10d
shr r11d, cl
and r11b, 7
mov [rsi+rdi], r11b
mov esi, 7
shl esi, cl
not esi
and esi, r10d
mov edi, 4
shl edi, cl
or edi, esi
mov [r8+r9], di
mov byte ptr [rdx+0A30h], 1
mov [r13+0B8h], eax
mov edx, r15d
mov rdi, r12
mov ebx, [rbp+var_2C]
mov esi, ebx
call write_rest_of_head
mov r15b, 1
test al, al
jnz short loc_41EF2
loc_41EBF:
mov rax, [r12+2C0h]
mov ecx, ebx
lea rcx, [rcx+rcx*2]
lea rax, [rax+rcx*8]
mov rdx, [rbp+var_38]
mov [rdx], rax
mov ecx, 4
sub ecx, ebx
mov [rax+10h], ecx
mov eax, [r12+2C8h]
sub eax, ebx
mov [rdx+8], eax
xor r15d, r15d
loc_41EF2:
mov rdi, [r14+0AD8h]
test rdi, rdi
jnz short loc_41F2F
loc_41EFE:
mov rdi, [rbp+var_40]
call _pthread_mutex_unlock
mov eax, r15d
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_41F19:
lea rsi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 8B1h
call psi_mutex_lock
jmp loc_41CB7
loc_41F2F:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_41EFE
|
long long ma_bitmap_find_new_place(long long a1, long long a2, unsigned long long a3, unsigned int a4, long long a5)
{
unsigned int v5; // r15d
long long v9; // r14
long long v10; // rdi
long long v11; // rcx
unsigned long long v12; // rdx
int v13; // r15d
int v14; // edx
int v15; // esi
unsigned int v16; // eax
int where_to_split_row; // eax
long long v18; // rdx
long long v19; // rsi
long long v20; // rdi
long long v21; // rcx
long long v22; // r9
long long v23; // r10
unsigned long long *v24; // r8
long long v25; // rdx
long long v26; // r8
long long v27; // rsi
long long v28; // rdi
unsigned __int16 v29; // r9
char v30; // cl
unsigned int v31; // ebx
long long v32; // r8
long long v33; // r9
unsigned __int16 v34; // r10
char v35; // cl
char v36; // al
long long v37; // rax
long long v38; // rdi
int v42; // [rsp+14h] [rbp-2Ch]
v9 = *(_QWORD *)a1;
*(_DWORD *)(a5 + 8) = 0;
*(_WORD *)(a5 + 12) = 0;
*(_DWORD *)(a2 + 172) = 0;
*(_DWORD *)(a1 + 712) = 4;
v10 = v9 + 2712;
if ( *(_QWORD *)(v9 + 2776) )
psi_mutex_lock(v10, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c", 0x8B1u);
else
pthread_mutex_lock(v10);
if ( *(_QWORD *)(a2 + 136) )
{
LOBYTE(v5) = 1;
if ( allocate_blobs((long long *)a1, a2) )
goto LABEL_14;
}
v12 = a3 - a3 % *(_QWORD *)(v9 + 2888);
if ( *(_QWORD *)(v9 + 2592) != v12 )
{
LOBYTE(v5) = 1;
if ( (unsigned __int8)ma_change_bitmap_page(a1, v9 + 2576, v12, v11) )
goto LABEL_14;
}
v13 = *(_DWORD *)(a2 + 160);
v14 = *(_DWORD *)(a2 + 172);
v15 = 7 * v14;
v16 = v13 + 7 * v14 + 3;
if ( v16 <= a4 )
{
v25 = *(_QWORD *)a1;
v26 = *(_QWORD *)(a1 + 704);
*(_QWORD *)(v26 + 72) = a3;
*(_DWORD *)(v26 + 80) = 32769;
*(_DWORD *)(v26 + 84) = v16;
*(_BYTE *)(v26 + 92) = 4;
v27 = *(_QWORD *)(v25 + 2584);
v28 = (unsigned int)(3 * (~*(_DWORD *)(v25 + 2592) + a3)) >> 3;
v29 = *(_WORD *)(v27 + v28);
v30 = (3 * (~*(_BYTE *)(v25 + 2592) + a3)) & 7;
*(_BYTE *)(v26 + 93) = (v29 >> v30) & 7;
*(_WORD *)(v27 + v28) = v29 & ~(7 << v30) | (4 << v30);
*(_BYTE *)(v25 + 2608) = 1;
*(_DWORD *)(a2 + 184) = v16;
v31 = 3;
}
else
{
where_to_split_row = find_where_to_split_row((unsigned int *)v9, a2, v14 + 3, a4);
v5 = v15 + v13 - where_to_split_row + 31;
v18 = *(_QWORD *)a1;
v19 = *(_QWORD *)(a1 + 704);
if ( v5 <= (unsigned int)(3 * *(_DWORD *)(v9 + 1980)) >> 2 )
{
v24 = (unsigned long long *)(v19 + 48);
v42 = 2;
v20 = 69LL;
v21 = 68LL;
v22 = 60LL;
v23 = 56LL;
}
else
{
v42 = 0;
v20 = 21LL;
v21 = 20LL;
v22 = 12LL;
v23 = 8LL;
v24 = *(unsigned long long **)(a1 + 704);
}
*v24 = a3;
*(_DWORD *)(v19 + v23) = 32769;
*(_DWORD *)(v19 + v22) = where_to_split_row;
*(_BYTE *)(v19 + v21) = 4;
v32 = *(_QWORD *)(v18 + 2584);
v33 = (unsigned int)(3 * (~*(_DWORD *)(v18 + 2592) + a3)) >> 3;
v34 = *(_WORD *)(v32 + v33);
v35 = (3 * (~*(_BYTE *)(v18 + 2592) + a3)) & 7;
*(_BYTE *)(v19 + v20) = (v34 >> v35) & 7;
*(_WORD *)(v32 + v33) = v34 & ~(7 << v35) | (4 << v35);
*(_BYTE *)(v18 + 2608) = 1;
*(_DWORD *)(a2 + 184) = where_to_split_row;
v31 = v42;
v36 = write_rest_of_head((_QWORD *)a1, v42, v5);
LOBYTE(v5) = 1;
if ( v36 )
goto LABEL_14;
}
v37 = *(_QWORD *)(a1 + 704) + 24LL * v31;
*(_QWORD *)a5 = v37;
*(_DWORD *)(v37 + 16) = 4 - v31;
*(_DWORD *)(a5 + 8) = *(_DWORD *)(a1 + 712) - v31;
v5 = 0;
LABEL_14:
v38 = *(_QWORD *)(v9 + 2776);
if ( v38 )
((void ( *)(long long))PSI_server[44])(v38);
pthread_mutex_unlock(v9 + 2712);
return v5;
}
|
_ma_bitmap_find_new_place:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV dword ptr [RBP + -0x2c],ECX
MOV RBX,RDX
MOV R13,RSI
MOV R12,RDI
MOV R14,qword ptr [RDI]
XOR EAX,EAX
MOV dword ptr [R8 + 0x8],EAX
MOV qword ptr [RBP + -0x38],R8
MOV word ptr [R8 + 0xc],0x0
MOV dword ptr [RSI + 0xac],EAX
MOV dword ptr [RDI + 0x2c8],0x4
LEA RDI,[R14 + 0xa98]
CMP qword ptr [R14 + 0xad8],0x0
MOV qword ptr [RBP + -0x40],RDI
JNZ 0x00141f19
CALL 0x00129220
LAB_00141cb7:
CMP qword ptr [R13 + 0x88],0x0
JZ 0x00141cd7
MOV RDI,R12
MOV RSI,R13
CALL 0x0014191e
MOV R15B,0x1
TEST AL,AL
JNZ 0x00141ef2
LAB_00141cd7:
MOV RAX,RBX
XOR EDX,EDX
DIV qword ptr [R14 + 0xb48]
MOV RAX,RDX
MOV RDX,RBX
SUB RDX,RAX
CMP qword ptr [R14 + 0xa20],RDX
JZ 0x00141d0f
LEA RSI,[R14 + 0xa10]
MOV RDI,R12
CALL 0x00141f41
MOV R15B,0x1
TEST AL,AL
JNZ 0x00141ef2
LAB_00141d0f:
MOV R15D,dword ptr [R13 + 0xa0]
MOV EDX,dword ptr [R13 + 0xac]
LEA ESI,[RDX*0x8]
SUB ESI,EDX
LEA EAX,[R15 + RSI*0x1]
ADD EAX,0x3
MOV ECX,dword ptr [RBP + -0x2c]
CMP EAX,ECX
JBE 0x00141d93
ADD R15D,ESI
ADD EDX,0x3
MOV RDI,R14
MOV RSI,R13
CALL 0x00141ad5
SUB R15D,EAX
ADD R15D,0x1f
MOV ECX,dword ptr [R14 + 0x7bc]
LEA ECX,[RCX + RCX*0x2]
SHR ECX,0x2
MOV RDX,qword ptr [R12]
MOV RSI,qword ptr [R12 + 0x2c0]
CMP R15D,ECX
JBE 0x00141e1b
MOV dword ptr [RBP + -0x2c],0x0
MOV EDI,0x15
MOV ECX,0x14
MOV R9D,0xc
MOV R10D,0x8
MOV R8,RSI
JMP 0x00141e3c
LAB_00141d93:
MOV RDX,qword ptr [R12]
MOV R8,qword ptr [R12 + 0x2c0]
MOV qword ptr [R8 + 0x48],RBX
MOV dword ptr [R8 + 0x50],0x8001
MOV dword ptr [R8 + 0x54],EAX
MOV byte ptr [R8 + 0x5c],0x4
MOV ECX,dword ptr [RDX + 0xa20]
NOT ECX
ADD EBX,ECX
LEA ECX,[RBX + RBX*0x2]
MOV RSI,qword ptr [RDX + 0xa18]
MOV EDI,ECX
SHR EDI,0x3
MOVZX R9D,word ptr [RSI + RDI*0x1]
AND CL,0x7
MOV R10D,R9D
SHR R10D,CL
AND R10B,0x7
MOV byte ptr [R8 + 0x5d],R10B
MOV R8D,0x7
SHL R8D,CL
NOT R8D
AND R8D,R9D
MOV R9D,0x4
SHL R9D,CL
OR R9D,R8D
MOV word ptr [RSI + RDI*0x1],R9W
MOV byte ptr [RDX + 0xa30],0x1
MOV dword ptr [R13 + 0xb8],EAX
MOV EBX,0x3
JMP 0x00141ebf
LAB_00141e1b:
LEA R8,[RSI + 0x30]
MOV dword ptr [RBP + -0x2c],0x2
MOV EDI,0x45
MOV ECX,0x44
MOV R9D,0x3c
MOV R10D,0x38
LAB_00141e3c:
MOV qword ptr [R8],RBX
MOV dword ptr [RSI + R10*0x1],0x8001
MOV dword ptr [RSI + R9*0x1],EAX
MOV byte ptr [RSI + RCX*0x1],0x4
MOV ECX,dword ptr [RDX + 0xa20]
NOT ECX
ADD EBX,ECX
LEA ECX,[RBX + RBX*0x2]
MOV R8,qword ptr [RDX + 0xa18]
MOV R9D,ECX
SHR R9D,0x3
MOVZX R10D,word ptr [R8 + R9*0x1]
AND CL,0x7
MOV R11D,R10D
SHR R11D,CL
AND R11B,0x7
MOV byte ptr [RSI + RDI*0x1],R11B
MOV ESI,0x7
SHL ESI,CL
NOT ESI
AND ESI,R10D
MOV EDI,0x4
SHL EDI,CL
OR EDI,ESI
MOV word ptr [R8 + R9*0x1],DI
MOV byte ptr [RDX + 0xa30],0x1
MOV dword ptr [R13 + 0xb8],EAX
MOV EDX,R15D
MOV RDI,R12
MOV EBX,dword ptr [RBP + -0x2c]
MOV ESI,EBX
CALL 0x00141b71
MOV R15B,0x1
TEST AL,AL
JNZ 0x00141ef2
LAB_00141ebf:
MOV RAX,qword ptr [R12 + 0x2c0]
MOV ECX,EBX
LEA RCX,[RCX + RCX*0x2]
LEA RAX,[RAX + RCX*0x8]
MOV RDX,qword ptr [RBP + -0x38]
MOV qword ptr [RDX],RAX
MOV ECX,0x4
SUB ECX,EBX
MOV dword ptr [RAX + 0x10],ECX
MOV EAX,dword ptr [R12 + 0x2c8]
SUB EAX,EBX
MOV dword ptr [RDX + 0x8],EAX
XOR R15D,R15D
LAB_00141ef2:
MOV RDI,qword ptr [R14 + 0xad8]
TEST RDI,RDI
JNZ 0x00141f2f
LAB_00141efe:
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x001291e0
MOV EAX,R15D
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00141f19:
LEA RSI,[0x1daaed]
MOV EDX,0x8b1
CALL 0x0012eb8f
JMP 0x00141cb7
LAB_00141f2f:
LEA RAX,[0x4880c0]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x00141efe
|
ulong _ma_bitmap_find_new_place(long *param_1,long param_2,ulong param_3,uint param_4,long *param_5)
{
pthread_mutex_t *__mutex;
ushort uVar1;
int iVar2;
long lVar3;
long lVar4;
ulong *puVar5;
uint uVar6;
int iVar7;
char cVar8;
uint uVar9;
int iVar10;
byte bVar11;
long lVar12;
long lVar13;
ulong uVar14;
ulong *puVar15;
long lVar16;
long lVar17;
ulong unaff_R15;
uint local_34;
lVar3 = *param_1;
*(int4 *)(param_5 + 1) = 0;
*(int2 *)((long)param_5 + 0xc) = 0;
*(int4 *)(param_2 + 0xac) = 0;
*(int4 *)(param_1 + 0x59) = 4;
__mutex = (pthread_mutex_t *)(lVar3 + 0xa98);
if (*(long *)(lVar3 + 0xad8) == 0) {
pthread_mutex_lock(__mutex);
}
else {
psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c",
0x8b1);
}
if (*(long *)(param_2 + 0x88) != 0) {
cVar8 = allocate_blobs(param_1,param_2);
unaff_R15 = CONCAT71((int7)(unaff_R15 >> 8),1);
if (cVar8 != '\0') goto LAB_00141ef2;
}
if (*(long *)(lVar3 + 0xa20) != param_3 - param_3 % *(ulong *)(lVar3 + 0xb48)) {
cVar8 = _ma_change_bitmap_page(param_1,lVar3 + 0xa10);
unaff_R15 = CONCAT71((int7)(unaff_R15 >> 8),1);
if (cVar8 != '\0') goto LAB_00141ef2;
}
iVar2 = *(int *)(param_2 + 0xa0);
iVar7 = *(int *)(param_2 + 0xac) * 7;
uVar9 = iVar2 + iVar7 + 3;
if (param_4 < uVar9) {
iVar10 = find_where_to_split_row(lVar3,param_2,*(int *)(param_2 + 0xac) + 3);
uVar9 = ((iVar2 + iVar7) - iVar10) + 0x1f;
lVar4 = *param_1;
puVar5 = (ulong *)param_1[0x58];
if ((uint)(*(int *)(lVar3 + 0x7bc) * 3) >> 2 < uVar9) {
local_34 = 0;
lVar13 = 0x15;
lVar12 = 0x14;
lVar16 = 0xc;
lVar17 = 8;
puVar15 = puVar5;
}
else {
puVar15 = puVar5 + 6;
local_34 = 2;
lVar13 = 0x45;
lVar12 = 0x44;
lVar16 = 0x3c;
lVar17 = 0x38;
}
*puVar15 = param_3;
*(int4 *)((long)puVar5 + lVar17) = 0x8001;
*(int *)((long)puVar5 + lVar16) = iVar10;
*(int1 *)((long)puVar5 + lVar12) = 4;
uVar6 = ((int)param_3 + ~*(uint *)(lVar4 + 0xa20)) * 3;
lVar12 = *(long *)(lVar4 + 0xa18);
uVar14 = (ulong)(uVar6 >> 3);
uVar1 = *(ushort *)(lVar12 + uVar14);
bVar11 = (byte)uVar6 & 7;
*(byte *)((long)puVar5 + lVar13) = (byte)(uVar1 >> bVar11) & 7;
*(ushort *)(lVar12 + uVar14) = (ushort)(4 << bVar11) | ~(ushort)(7 << bVar11) & uVar1;
*(int1 *)(lVar4 + 0xa30) = 1;
*(int *)(param_2 + 0xb8) = iVar10;
cVar8 = write_rest_of_head(param_1,local_34,uVar9);
unaff_R15 = CONCAT71((uint7)(uint3)(uVar9 >> 8),1);
if (cVar8 != '\0') goto LAB_00141ef2;
}
else {
lVar4 = *param_1;
lVar12 = param_1[0x58];
*(ulong *)(lVar12 + 0x48) = param_3;
*(int4 *)(lVar12 + 0x50) = 0x8001;
*(uint *)(lVar12 + 0x54) = uVar9;
*(int1 *)(lVar12 + 0x5c) = 4;
uVar6 = ((int)param_3 + ~*(uint *)(lVar4 + 0xa20)) * 3;
lVar13 = *(long *)(lVar4 + 0xa18);
uVar14 = (ulong)(uVar6 >> 3);
uVar1 = *(ushort *)(lVar13 + uVar14);
bVar11 = (byte)uVar6 & 7;
*(byte *)(lVar12 + 0x5d) = (byte)(uVar1 >> bVar11) & 7;
*(ushort *)(lVar13 + uVar14) = (ushort)(4 << bVar11) | ~(ushort)(7 << bVar11) & uVar1;
*(int1 *)(lVar4 + 0xa30) = 1;
*(uint *)(param_2 + 0xb8) = uVar9;
local_34 = 3;
}
lVar4 = param_1[0x58] + (ulong)local_34 * 0x18;
*param_5 = lVar4;
*(uint *)(lVar4 + 0x10) = 4 - local_34;
*(uint *)(param_5 + 1) = (int)param_1[0x59] - local_34;
unaff_R15 = 0;
LAB_00141ef2:
if (*(long *)(lVar3 + 0xad8) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(__mutex);
return unaff_R15 & 0xffffffff;
}
|
|
56,945
|
my_strnncollsp_padspace_bin
|
eloqsql/strings/ctype-bin.c
|
int my_strnncollsp_padspace_bin(const uchar *str, size_t length)
{
for ( ; length ; str++, length--)
{
if (*str < ' ')
return -1;
else if (*str > ' ')
return 1;
}
return 0;
}
|
O3
|
c
|
my_strnncollsp_padspace_bin:
pushq %rbp
movq %rsp, %rbp
testq %rsi, %rsi
je 0x30dc0
xorl %eax, %eax
cmpb $0x20, (%rdi,%rax)
jb 0x30dc4
jne 0x30dcb
incq %rax
cmpq %rax, %rsi
jne 0x30db0
xorl %eax, %eax
jmp 0x30dd0
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
jmp 0x30dd0
movl $0x1, %eax
popq %rbp
retq
|
my_strnncollsp_padspace_bin:
push rbp
mov rbp, rsp
test rsi, rsi
jz short loc_30DC0
xor eax, eax
loc_30DB0:
cmp byte ptr [rdi+rax], 20h ; ' '
jb short loc_30DC4
jnz short loc_30DCB
inc rax
cmp rsi, rax
jnz short loc_30DB0
loc_30DC0:
xor eax, eax
jmp short loc_30DD0
loc_30DC4:
mov eax, 0FFFFFFFFh
jmp short loc_30DD0
loc_30DCB:
mov eax, 1
loc_30DD0:
pop rbp
retn
|
long long my_strnncollsp_padspace_bin(long long a1, long long a2)
{
long long v2; // rax
if ( !a2 )
return 0LL;
v2 = 0LL;
while ( 1 )
{
if ( *(_BYTE *)(a1 + v2) < 0x20u )
return 0xFFFFFFFFLL;
if ( *(_BYTE *)(a1 + v2) != 32 )
break;
if ( a2 == ++v2 )
return 0LL;
}
return 1LL;
}
|
my_strnncollsp_padspace_bin:
PUSH RBP
MOV RBP,RSP
TEST RSI,RSI
JZ 0x00130dc0
XOR EAX,EAX
LAB_00130db0:
CMP byte ptr [RDI + RAX*0x1],0x20
JC 0x00130dc4
JNZ 0x00130dcb
INC RAX
CMP RSI,RAX
JNZ 0x00130db0
LAB_00130dc0:
XOR EAX,EAX
JMP 0x00130dd0
LAB_00130dc4:
MOV EAX,0xffffffff
JMP 0x00130dd0
LAB_00130dcb:
MOV EAX,0x1
LAB_00130dd0:
POP RBP
RET
|
int8 my_strnncollsp_padspace_bin(long param_1,long param_2)
{
long lVar1;
if (param_2 != 0) {
lVar1 = 0;
do {
if (*(byte *)(param_1 + lVar1) < 0x20) {
return 0xffffffff;
}
if (*(byte *)(param_1 + lVar1) != 0x20) {
return 1;
}
lVar1 = lVar1 + 1;
} while (param_2 != lVar1);
}
return 0;
}
|
|
56,946
|
google::protobuf::compiler::csharp::Generator::Generate(google::protobuf::FileDescriptor const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, google::protobuf::compiler::GeneratorContext*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*) const
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/csharp/csharp_generator.cc
|
bool Generator::Generate(const FileDescriptor* file,
const std::string& parameter,
GeneratorContext* generator_context,
std::string* error) const {
std::vector<std::pair<std::string, std::string> > options;
ParseGeneratorParameter(parameter, &options);
struct Options cli_options;
for (int i = 0; i < options.size(); i++) {
if (options[i].first == "file_extension") {
cli_options.file_extension = options[i].second;
} else if (options[i].first == "base_namespace") {
cli_options.base_namespace = options[i].second;
cli_options.base_namespace_specified = true;
} else if (options[i].first == "internal_access") {
cli_options.internal_access = true;
} else if (options[i].first == "serializable") {
cli_options.serializable = true;
} else {
*error = "Unknown generator option: " + options[i].first;
return false;
}
}
std::string filename_error = "";
std::string filename = GetOutputFile(file,
cli_options.file_extension,
cli_options.base_namespace_specified,
cli_options.base_namespace,
&filename_error);
if (filename.empty()) {
*error = filename_error;
return false;
}
std::unique_ptr<io::ZeroCopyOutputStream> output(
generator_context->Open(filename));
io::Printer printer(output.get(), '$');
GenerateFile(file, &printer, &cli_options);
return true;
}
|
O0
|
cpp
|
google::protobuf::compiler::csharp::Generator::Generate(google::protobuf::FileDescriptor const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, google::protobuf::compiler::GeneratorContext*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*) const:
subq $0x248, %rsp # imm = 0x248
movq %rdi, 0x238(%rsp)
movq %rsi, 0x230(%rsp)
movq %rdx, 0x228(%rsp)
movq %rcx, 0x220(%rsp)
movq %r8, 0x218(%rsp)
leaq 0x200(%rsp), %rdi
movq %rdi, 0x40(%rsp)
callq 0x37240
movq 0x40(%rsp), %rsi
movq 0x228(%rsp), %rdi
callq 0x28470
jmp 0x66c85
leaq 0x1a8(%rsp), %rdi
callq 0x67200
jmp 0x66c94
movl $0x0, 0x1a4(%rsp)
movslq 0x1a4(%rsp), %rax
movq %rax, 0x38(%rsp)
leaq 0x200(%rsp), %rdi
callq 0x299f0
movq %rax, %rcx
movq 0x38(%rsp), %rax
cmpq %rcx, %rax
jae 0x66ed1
movslq 0x1a4(%rsp), %rsi
leaq 0x200(%rsp), %rdi
callq 0x38430
movq %rax, %rdi
leaq 0x345672(%rip), %rsi # 0x3ac35b
callq 0x371b0
movb %al, 0x37(%rsp)
jmp 0x66cf4
movb 0x37(%rsp), %al
testb $0x1, %al
jne 0x66cfe
jmp 0x66d60
movslq 0x1a4(%rsp), %rsi
leaq 0x200(%rsp), %rdi
callq 0x38430
movq %rax, %rsi
addq $0x20, %rsi
leaq 0x1a8(%rsp), %rdi
callq 0x21be0
jmp 0x66d29
jmp 0x66eb9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1f8(%rsp)
movl %eax, 0x1f4(%rsp)
jmp 0x671d7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1f8(%rsp)
movl %eax, 0x1f4(%rsp)
jmp 0x671ca
movslq 0x1a4(%rsp), %rsi
leaq 0x200(%rsp), %rdi
callq 0x38430
movq %rax, %rdi
leaq 0x3455eb(%rip), %rsi # 0x3ac36a
callq 0x371b0
movb %al, 0x36(%rsp)
jmp 0x66d8a
movb 0x36(%rsp), %al
testb $0x1, %al
jne 0x66d94
jmp 0x66dcc
movslq 0x1a4(%rsp), %rsi
leaq 0x200(%rsp), %rdi
callq 0x38430
movq %rax, %rsi
addq $0x20, %rsi
leaq 0x1c8(%rsp), %rdi
callq 0x21be0
jmp 0x66dbf
movb $0x1, 0x1e8(%rsp)
jmp 0x66eb7
movslq 0x1a4(%rsp), %rsi
leaq 0x200(%rsp), %rdi
callq 0x38430
movq %rax, %rdi
leaq 0x34558e(%rip), %rsi # 0x3ac379
callq 0x371b0
movb %al, 0x35(%rsp)
jmp 0x66df6
movb 0x35(%rsp), %al
testb $0x1, %al
jne 0x66e00
jmp 0x66e0d
movb $0x1, 0x1e9(%rsp)
jmp 0x66eb5
movslq 0x1a4(%rsp), %rsi
leaq 0x200(%rsp), %rdi
callq 0x38430
movq %rax, %rdi
leaq 0x34555d(%rip), %rsi # 0x3ac389
callq 0x371b0
movb %al, 0x34(%rsp)
jmp 0x66e37
movb 0x34(%rsp), %al
testb $0x1, %al
jne 0x66e41
jmp 0x66e4b
movb $0x1, 0x1ea(%rsp)
jmp 0x66eb3
movslq 0x1a4(%rsp), %rsi
leaq 0x200(%rsp), %rdi
callq 0x38430
movq %rax, %rdx
leaq 0x349779(%rip), %rsi # 0x3b05e3
leaq 0x180(%rsp), %rdi
callq 0x4d3a0
jmp 0x66e79
movq 0x218(%rsp), %rdi
leaq 0x180(%rsp), %rsi
callq 0x215e0
leaq 0x180(%rsp), %rdi
callq 0x21cc8
movb $0x0, 0x247(%rsp)
movl $0x1, 0x17c(%rsp)
jmp 0x6719f
jmp 0x66eb5
jmp 0x66eb7
jmp 0x66eb9
jmp 0x66ebb
movl 0x1a4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1a4(%rsp)
jmp 0x66c9f
leaq 0x157(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0x21a00
movq 0x28(%rsp), %rdx
leaq 0x34167a(%rip), %rsi # 0x3a8569
leaq 0x158(%rsp), %rdi
callq 0x21890
jmp 0x66efe
leaq 0x157(%rsp), %rdi
callq 0x21cb0
movq 0x230(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0x110(%rsp), %rdi
leaq 0x1a8(%rsp), %rsi
callq 0x21160
jmp 0x66f2f
movb 0x1e8(%rsp), %al
movb %al, 0x1f(%rsp)
leaq 0x1c8(%rsp), %rsi
leaq 0xf0(%rsp), %rdi
callq 0x21160
jmp 0x66f51
movq 0x20(%rsp), %rsi
movb 0x1f(%rsp), %al
movzbl %al, %ecx
andl $0x1, %ecx
leaq 0x130(%rsp), %rdi
leaq 0x110(%rsp), %rdx
leaq 0xf0(%rsp), %r8
leaq 0x158(%rsp), %r9
callq 0x68dd0
jmp 0x66f87
leaq 0xf0(%rsp), %rdi
callq 0x21cc8
leaq 0x110(%rsp), %rdi
callq 0x21cc8
leaq 0x130(%rsp), %rdi
callq 0x212d0
testb $0x1, %al
jne 0x66fb7
jmp 0x67087
movq 0x218(%rsp), %rdi
leaq 0x158(%rsp), %rsi
callq 0x21be0
jmp 0x66fce
movb $0x0, 0x247(%rsp)
movl $0x1, 0x17c(%rsp)
jmp 0x67167
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1f8(%rsp)
movl %eax, 0x1f4(%rsp)
leaq 0x157(%rsp), %rdi
callq 0x21cb0
jmp 0x671ca
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1f8(%rsp)
movl %eax, 0x1f4(%rsp)
jmp 0x67190
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1f8(%rsp)
movl %eax, 0x1f4(%rsp)
jmp 0x6705c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1f8(%rsp)
movl %eax, 0x1f4(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0x21cc8
leaq 0x110(%rsp), %rdi
callq 0x21cc8
jmp 0x67190
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1f8(%rsp)
movl %eax, 0x1f4(%rsp)
jmp 0x67183
movq 0x220(%rsp), %rdi
movq (%rdi), %rax
movq 0x10(%rax), %rax
leaq 0x130(%rsp), %rsi
callq *%rax
movq %rax, 0x10(%rsp)
jmp 0x670a7
movq 0x10(%rsp), %rsi
leaq 0xe8(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x4d4d0
movq 0x8(%rsp), %rdi
callq 0x39590
movq %rax, %rsi
leaq 0x48(%rsp), %rdi
movl $0x24, %edx
callq 0x322f80
jmp 0x670dc
movq 0x230(%rsp), %rdi
leaq 0x48(%rsp), %rsi
leaq 0x1a8(%rsp), %rdx
callq 0x66ba0
jmp 0x670f8
movb $0x1, 0x247(%rsp)
movl $0x1, 0x17c(%rsp)
leaq 0x48(%rsp), %rdi
callq 0x3230a0
leaq 0xe8(%rsp), %rdi
callq 0x396b0
jmp 0x67167
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1f8(%rsp)
movl %eax, 0x1f4(%rsp)
jmp 0x67158
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1f8(%rsp)
movl %eax, 0x1f4(%rsp)
leaq 0x48(%rsp), %rdi
callq 0x3230a0
leaq 0xe8(%rsp), %rdi
callq 0x396b0
jmp 0x67183
leaq 0x130(%rsp), %rdi
callq 0x21cc8
leaq 0x158(%rsp), %rdi
callq 0x21cc8
jmp 0x6719f
leaq 0x130(%rsp), %rdi
callq 0x21cc8
leaq 0x158(%rsp), %rdi
callq 0x21cc8
jmp 0x671ca
leaq 0x1a8(%rsp), %rdi
callq 0x672f0
leaq 0x200(%rsp), %rdi
callq 0x37280
movb 0x247(%rsp), %al
andb $0x1, %al
addq $0x248, %rsp # imm = 0x248
retq
leaq 0x1a8(%rsp), %rdi
callq 0x672f0
leaq 0x200(%rsp), %rdi
callq 0x37280
movq 0x1f8(%rsp), %rdi
callq 0x21700
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
|
_ZNK6google8protobuf8compiler6csharp9Generator8GenerateEPKNS0_14FileDescriptorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS1_16GeneratorContextEPSC_:
sub rsp, 248h
mov [rsp+248h+var_10], rdi
mov [rsp+248h+var_18], rsi
mov [rsp+248h+var_20], rdx
mov [rsp+248h+var_28], rcx
mov [rsp+248h+var_30], r8
lea rdi, [rsp+248h+var_48]
mov qword ptr [rsp+248h+var_208], rdi; int
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EEC2Ev; std::vector<std::pair<std::string,std::string>>::vector(void)
mov rsi, qword ptr [rsp+248h+var_208]
mov rdi, [rsp+248h+var_20]
call _ZN6google8protobuf8compiler23ParseGeneratorParameterERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPSt6vectorISt4pairIS7_S7_ESaISC_EE; google::protobuf::compiler::ParseGeneratorParameter(std::string const&,std::vector<std::pair<std::string,std::string>> *)
jmp short $+2
loc_66C85:
lea rdi, [rsp+248h+var_A0]; this
call _ZN6google8protobuf8compiler6csharp7OptionsC2Ev; google::protobuf::compiler::csharp::Options::Options(void)
jmp short $+2
loc_66C94:
mov [rsp+248h+var_A4], 0
loc_66C9F:
movsxd rax, [rsp+248h+var_A4]
mov qword ptr [rsp+248h+var_210], rax; int
lea rdi, [rsp+248h+var_48]
call _ZNKSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EE4sizeEv; std::vector<std::pair<std::string,std::string>>::size(void)
mov rcx, rax
mov rax, qword ptr [rsp+248h+var_210]
cmp rax, rcx
jnb loc_66ED1
movsxd rsi, [rsp+248h+var_A4]
lea rdi, [rsp+248h+var_48]
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EEixEm; std::vector<std::pair<std::string,std::string>>::operator[](ulong)
mov rdi, rax
lea rsi, aFileExtension; "file_extension"
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
mov [rsp+248h+var_211], al
jmp short $+2
loc_66CF4:
mov al, [rsp+248h+var_211]
test al, 1
jnz short loc_66CFE
jmp short loc_66D60
loc_66CFE:
movsxd rsi, [rsp+248h+var_A4]
lea rdi, [rsp+248h+var_48]
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EEixEm; std::vector<std::pair<std::string,std::string>>::operator[](ulong)
mov rsi, rax
add rsi, 20h ; ' '
lea rdi, [rsp+248h+var_A0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
jmp short $+2
loc_66D29:
jmp loc_66EB9
mov rcx, rax
mov eax, edx
mov [rsp+arg_1F0], rcx
mov [rsp+arg_1EC], eax
jmp loc_671D7
mov rcx, rax
mov eax, edx
mov [rsp+arg_1F0], rcx
mov [rsp+arg_1EC], eax
jmp loc_671CA
loc_66D60:
movsxd rsi, [rsp+248h+var_A4]
lea rdi, [rsp+248h+var_48]
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EEixEm; std::vector<std::pair<std::string,std::string>>::operator[](ulong)
mov rdi, rax
lea rsi, aBaseNamespace; "base_namespace"
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
mov [rsp+248h+var_212], al
jmp short $+2
loc_66D8A:
mov al, [rsp+248h+var_212]
test al, 1
jnz short loc_66D94
jmp short loc_66DCC
loc_66D94:
movsxd rsi, [rsp+248h+var_A4]
lea rdi, [rsp+248h+var_48]
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EEixEm; std::vector<std::pair<std::string,std::string>>::operator[](ulong)
mov rsi, rax
add rsi, 20h ; ' '
lea rdi, [rsp+248h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
jmp short $+2
loc_66DBF:
mov [rsp+248h+var_60], 1
jmp loc_66EB7
loc_66DCC:
movsxd rsi, [rsp+248h+var_A4]
lea rdi, [rsp+248h+var_48]
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EEixEm; std::vector<std::pair<std::string,std::string>>::operator[](ulong)
mov rdi, rax
lea rsi, aInternalAccess; "internal_access"
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
mov [rsp+248h+var_213], al
jmp short $+2
loc_66DF6:
mov al, [rsp+248h+var_213]
test al, 1
jnz short loc_66E00
jmp short loc_66E0D
loc_66E00:
mov [rsp+248h+var_5F], 1
jmp loc_66EB5
loc_66E0D:
movsxd rsi, [rsp+248h+var_A4]
lea rdi, [rsp+248h+var_48]
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EEixEm; std::vector<std::pair<std::string,std::string>>::operator[](ulong)
mov rdi, rax
lea rsi, aSerializable; "serializable"
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
mov [rsp+248h+var_214], al
jmp short $+2
loc_66E37:
mov al, [rsp+248h+var_214]
test al, 1
jnz short loc_66E41
jmp short loc_66E4B
loc_66E41:
mov [rsp+248h+var_5E], 1
jmp short loc_66EB3
loc_66E4B:
movsxd rsi, [rsp+248h+var_A4]
lea rdi, [rsp+248h+var_48]
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EEixEm; std::vector<std::pair<std::string,std::string>>::operator[](ulong)
mov rdx, rax; int
lea rsi, aErrorUnknownGe+7; int
lea rdi, [rsp+248h+var_C8]; int
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&)
jmp short $+2
loc_66E79:
mov rdi, [rsp+248h+var_30]
lea rsi, [rsp+248h+var_C8]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
lea rdi, [rsp+248h+var_C8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov [rsp+248h+var_1], 0
mov [rsp+248h+var_CC], 1
jmp loc_6719F
loc_66EB3:
jmp short $+2
loc_66EB5:
jmp short $+2
loc_66EB7:
jmp short $+2
loc_66EB9:
jmp short $+2
loc_66EBB:
mov eax, [rsp+248h+var_A4]
add eax, 1
mov [rsp+248h+var_A4], eax
jmp loc_66C9F
loc_66ED1:
lea rdi, [rsp+248h+var_F1]
mov qword ptr [rsp+248h+var_220], rdi; int
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, qword ptr [rsp+248h+var_220]
lea rsi, asc_3A8567+2; ""
lea rdi, [rsp+248h+var_F1+1]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EPKcRKS3_; std::string::basic_string(char const*,std::allocator<char> const&)
jmp short $+2
loc_66EFE:
lea rdi, [rsp+248h+var_F1]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
mov rax, [rsp+248h+var_18]
mov qword ptr [rsp+248h+var_228], rax; int
lea rdi, [rsp+248h+var_138]
lea rsi, [rsp+248h+var_A0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&)
jmp short $+2
loc_66F2F:
mov al, [rsp+248h+var_60]
mov [rsp+248h+var_229], al
lea rsi, [rsp+248h+var_80]
lea rdi, [rsp+248h+var_158]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&)
jmp short $+2
loc_66F51:
mov rsi, qword ptr [rsp+248h+var_228]
mov al, [rsp+248h+var_229]
movzx ecx, al
and ecx, 1
lea rdi, [rsp+248h+var_118]; __int64
lea rdx, [rsp+248h+var_138]
lea r8, [rsp+248h+var_158]
lea r9, [rsp+248h+var_F1+1]
call _ZN6google8protobuf8compiler6csharp13GetOutputFileEPKNS0_14FileDescriptorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbSB_PSB_; google::protobuf::compiler::csharp::GetOutputFile(google::protobuf::FileDescriptor const*,std::string,bool,std::string,std::string*)
jmp short $+2
loc_66F87:
lea rdi, [rsp+248h+var_158]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+248h+var_138]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+248h+var_118]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_66FB7
jmp loc_67087
loc_66FB7:
mov rdi, [rsp+248h+var_30]
lea rsi, [rsp+248h+var_F1+1]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
jmp short $+2
loc_66FCE:
mov [rsp+248h+var_1], 0
mov [rsp+248h+var_CC], 1
jmp loc_67167
mov rcx, rax
mov eax, edx
mov [rsp+arg_1F0], rcx
mov [rsp+arg_1EC], eax
lea rdi, [rsp+arg_14F]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_671CA
mov rcx, rax
mov eax, edx
mov [rsp+arg_1F0], rcx
mov [rsp+arg_1EC], eax
jmp loc_67190
mov rcx, rax
mov eax, edx
mov [rsp+arg_1F0], rcx
mov [rsp+arg_1EC], eax
jmp short loc_6705C
mov rcx, rax
mov eax, edx
mov [rsp+arg_1F0], rcx
mov [rsp+arg_1EC], eax
lea rdi, [rsp+arg_E8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_6705C:
lea rdi, [rsp+arg_108]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_67190
mov rcx, rax
mov eax, edx
mov [rsp+arg_1F0], rcx
mov [rsp+arg_1EC], eax
jmp loc_67183
loc_67087:
mov rdi, [rsp+248h+var_28]
mov rax, [rdi]
mov rax, [rax+10h]
lea rsi, [rsp+248h+var_118]
call rax
mov [rsp+248h+var_238], rax
jmp short $+2
loc_670A7:
mov rsi, [rsp+248h+var_238]
lea rdi, [rsp+248h+var_160]
mov [rsp+248h+var_240], rdi
call _ZNSt10unique_ptrIN6google8protobuf2io20ZeroCopyOutputStreamESt14default_deleteIS3_EEC2IS5_vEEPS3_; std::unique_ptr<google::protobuf::io::ZeroCopyOutputStream>::unique_ptr<std::default_delete<google::protobuf::io::ZeroCopyOutputStream>,void>(google::protobuf::io::ZeroCopyOutputStream*)
mov rdi, [rsp+248h+var_240]
call _ZNKSt10unique_ptrIN6google8protobuf2io20ZeroCopyOutputStreamESt14default_deleteIS3_EE3getEv; std::unique_ptr<google::protobuf::io::ZeroCopyOutputStream>::get(void)
mov rsi, rax; google::protobuf::io::ZeroCopyOutputStream *
lea rdi, [rsp+248h+var_200]; this
mov edx, 24h ; '$'; char
call _ZN6google8protobuf2io7PrinterC2EPNS1_20ZeroCopyOutputStreamEc; google::protobuf::io::Printer::Printer(google::protobuf::io::ZeroCopyOutputStream *,char)
jmp short $+2
loc_670DC:
mov rdi, [rsp+248h+var_18]; this
lea rsi, [rsp+248h+var_200]; google::protobuf::FileDescriptor *
lea rdx, [rsp+248h+var_A0]; google::protobuf::io::Printer *
call _ZN6google8protobuf8compiler6csharp12GenerateFileEPKNS0_14FileDescriptorEPNS0_2io7PrinterEPKNS2_7OptionsE; google::protobuf::compiler::csharp::GenerateFile(google::protobuf::FileDescriptor const*,google::protobuf::io::Printer *,google::protobuf::compiler::csharp::Options const*)
jmp short $+2
loc_670F8:
mov [rsp+248h+var_1], 1
mov [rsp+248h+var_CC], 1
lea rdi, [rsp+248h+var_200]; this
call _ZN6google8protobuf2io7PrinterD2Ev; google::protobuf::io::Printer::~Printer()
lea rdi, [rsp+248h+var_160]
call _ZNSt10unique_ptrIN6google8protobuf2io20ZeroCopyOutputStreamESt14default_deleteIS3_EED2Ev; std::unique_ptr<google::protobuf::io::ZeroCopyOutputStream>::~unique_ptr()
jmp short loc_67167
mov rcx, rax
mov eax, edx
mov [rsp+arg_1F0], rcx
mov [rsp+arg_1EC], eax
jmp short loc_67158
mov rcx, rax
mov eax, edx
mov [rsp+arg_1F0], rcx
mov [rsp+arg_1EC], eax
lea rdi, [rsp+arg_40]; this
call _ZN6google8protobuf2io7PrinterD2Ev; google::protobuf::io::Printer::~Printer()
loc_67158:
lea rdi, [rsp+arg_E0]
call _ZNSt10unique_ptrIN6google8protobuf2io20ZeroCopyOutputStreamESt14default_deleteIS3_EED2Ev; std::unique_ptr<google::protobuf::io::ZeroCopyOutputStream>::~unique_ptr()
jmp short loc_67183
loc_67167:
lea rdi, [rsp+248h+var_118]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+248h+var_F1+1]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_6719F
loc_67183:
lea rdi, [rsp+arg_128]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_67190:
lea rdi, [rsp+arg_150]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_671CA
loc_6719F:
lea rdi, [rsp+248h+var_A0]; this
call _ZN6google8protobuf8compiler6csharp7OptionsD2Ev; google::protobuf::compiler::csharp::Options::~Options()
lea rdi, [rsp+248h+var_48]
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EED2Ev; std::vector<std::pair<std::string,std::string>>::~vector()
mov al, [rsp+248h+var_1]
and al, 1
add rsp, 248h
retn
loc_671CA:
lea rdi, [rsp+arg_1A0]; this
call _ZN6google8protobuf8compiler6csharp7OptionsD2Ev; google::protobuf::compiler::csharp::Options::~Options()
loc_671D7:
lea rdi, [rsp+arg_1F8]
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EED2Ev; std::vector<std::pair<std::string,std::string>>::~vector()
mov rdi, [rsp+arg_1F0]
call __Unwind_Resume
|
char google::protobuf::compiler::csharp::Generator::Generate(
long long a1,
google::protobuf::compiler::csharp *a2,
long long a3,
long long a4,
long long a5)
{
const char *v5; // rsi
long long v6; // rax
long long v7; // rax
long long v8; // rax
long long v9; // rax
long long v10; // rax
google::protobuf::io::ZeroCopyOutputStream *v11; // rax
const google::protobuf::compiler::csharp::Options *v12; // rcx
char v14; // [rsp+1Fh] [rbp-229h]
google::protobuf::compiler::csharp *v15; // [rsp+20h] [rbp-228h]
_BYTE v16[160]; // [rsp+48h] [rbp-200h] BYREF
_BYTE v17[8]; // [rsp+E8h] [rbp-160h] BYREF
_BYTE v18[32]; // [rsp+F0h] [rbp-158h] BYREF
_BYTE v19[32]; // [rsp+110h] [rbp-138h] BYREF
long long v20[4]; // [rsp+130h] [rbp-118h] BYREF
int v21[9]; // [rsp+157h] [rbp-F1h] BYREF
int v22; // [rsp+17Ch] [rbp-CCh]
int v23[9]; // [rsp+180h] [rbp-C8h] BYREF
int i; // [rsp+1A4h] [rbp-A4h]
_BYTE v25[32]; // [rsp+1A8h] [rbp-A0h] BYREF
_BYTE v26[32]; // [rsp+1C8h] [rbp-80h] BYREF
char v27; // [rsp+1E8h] [rbp-60h]
char v28; // [rsp+1E9h] [rbp-5Fh]
char v29; // [rsp+1EAh] [rbp-5Eh]
long long v30[3]; // [rsp+200h] [rbp-48h] BYREF
long long v31; // [rsp+218h] [rbp-30h]
long long v32; // [rsp+220h] [rbp-28h]
long long v33; // [rsp+228h] [rbp-20h]
google::protobuf::compiler::csharp *v34; // [rsp+230h] [rbp-18h]
long long v35; // [rsp+238h] [rbp-10h]
char v36; // [rsp+247h] [rbp-1h]
v35 = a1;
v34 = a2;
v33 = a3;
v32 = a4;
v31 = a5;
std::vector<std::pair<std::string,std::string>>::vector((long long)v30);
v5 = (const char *)v30;
google::protobuf::compiler::ParseGeneratorParameter(v33, (long long)v30);
google::protobuf::compiler::csharp::Options::Options((google::protobuf::compiler::csharp::Options *)v25);
for ( i = 0; i < (unsigned long long)std::vector<std::pair<std::string,std::string>>::size(v30); ++i )
{
v6 = std::vector<std::pair<std::string,std::string>>::operator[](v30, i);
if ( std::operator==<char>(v6, (long long)"file_extension") )
{
v5 = (const char *)(std::vector<std::pair<std::string,std::string>>::operator[](v30, i) + 32);
std::string::operator=(v25, v5);
}
else
{
v7 = std::vector<std::pair<std::string,std::string>>::operator[](v30, i);
if ( std::operator==<char>(v7, (long long)"base_namespace") )
{
v5 = (const char *)(std::vector<std::pair<std::string,std::string>>::operator[](v30, i) + 32);
std::string::operator=(v26, v5);
v27 = 1;
}
else
{
v8 = std::vector<std::pair<std::string,std::string>>::operator[](v30, i);
v5 = "internal_access";
if ( std::operator==<char>(v8, (long long)"internal_access") )
{
v28 = 1;
}
else
{
v9 = std::vector<std::pair<std::string,std::string>>::operator[](v30, i);
v5 = "serializable";
if ( !std::operator==<char>(v9, (long long)"serializable") )
{
v10 = std::vector<std::pair<std::string,std::string>>::operator[](v30, i);
std::operator+<char>((long long)v23, (long long)"Unknown generator option: ", v10);
std::string::operator=(v31, v23);
std::string::~string(v23);
v36 = 0;
v22 = 1;
goto LABEL_17;
}
v29 = 1;
}
}
}
}
std::allocator<char>::allocator(v21, v5);
std::string::basic_string((char *)v21 + 1, "", v21);
std::allocator<char>::~allocator(v21);
v15 = v34;
std::string::basic_string(v19, v25);
v14 = v27;
std::string::basic_string(v18, v26);
google::protobuf::compiler::csharp::GetOutputFile(v20, v15, v19, v14 & 1, v18, (char *)v21 + 1);
std::string::~string(v18);
std::string::~string(v19);
if ( (std::string::empty(v20) & 1) != 0 )
{
std::string::operator=(v31, (char *)v21 + 1);
v36 = 0;
v22 = 1;
}
else
{
(*(void ( **)(long long, long long *))(*(_QWORD *)v32 + 16LL))(v32, v20);
std::unique_ptr<google::protobuf::io::ZeroCopyOutputStream>::unique_ptr<std::default_delete<google::protobuf::io::ZeroCopyOutputStream>,void>();
v11 = (google::protobuf::io::ZeroCopyOutputStream *)std::unique_ptr<google::protobuf::io::ZeroCopyOutputStream>::get();
google::protobuf::io::Printer::Printer((google::protobuf::io::Printer *)v16, v11, 36);
google::protobuf::compiler::csharp::GenerateFile(
v34,
(const google::protobuf::FileDescriptor *)v16,
(google::protobuf::io::Printer *)v25,
v12);
v36 = 1;
v22 = 1;
google::protobuf::io::Printer::~Printer((google::protobuf::io::Printer *)v16);
std::unique_ptr<google::protobuf::io::ZeroCopyOutputStream>::~unique_ptr((long long)v17);
}
std::string::~string(v20);
std::string::~string((char *)v21 + 1);
LABEL_17:
google::protobuf::compiler::csharp::Options::~Options((google::protobuf::compiler::csharp::Options *)v25);
std::vector<std::pair<std::string,std::string>>::~vector(v30);
return v36 & 1;
}
|
Generate:
SUB RSP,0x248
MOV qword ptr [RSP + 0x238],RDI
MOV qword ptr [RSP + 0x230],RSI
MOV qword ptr [RSP + 0x228],RDX
MOV qword ptr [RSP + 0x220],RCX
MOV qword ptr [RSP + 0x218],R8
LEA RDI,[RSP + 0x200]
MOV qword ptr [RSP + 0x40],RDI
CALL 0x00137240
MOV RSI,qword ptr [RSP + 0x40]
MOV RDI,qword ptr [RSP + 0x228]
LAB_00166c7e:
CALL 0x00128470
JMP 0x00166c85
LAB_00166c85:
LEA RDI,[RSP + 0x1a8]
CALL 0x00167200
JMP 0x00166c94
LAB_00166c94:
MOV dword ptr [RSP + 0x1a4],0x0
LAB_00166c9f:
MOVSXD RAX,dword ptr [RSP + 0x1a4]
MOV qword ptr [RSP + 0x38],RAX
LEA RDI,[RSP + 0x200]
CALL 0x001299f0
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x38]
CMP RAX,RCX
JNC 0x00166ed1
MOVSXD RSI,dword ptr [RSP + 0x1a4]
LEA RDI,[RSP + 0x200]
CALL 0x00138430
MOV RDI,RAX
LAB_00166ce2:
LEA RSI,[0x4ac35b]
CALL 0x001371b0
MOV byte ptr [RSP + 0x37],AL
JMP 0x00166cf4
LAB_00166cf4:
MOV AL,byte ptr [RSP + 0x37]
TEST AL,0x1
JNZ 0x00166cfe
JMP 0x00166d60
LAB_00166cfe:
MOVSXD RSI,dword ptr [RSP + 0x1a4]
LEA RDI,[RSP + 0x200]
CALL 0x00138430
MOV RSI,RAX
ADD RSI,0x20
LEA RDI,[RSP + 0x1a8]
CALL 0x00121be0
JMP 0x00166d29
LAB_00166d29:
JMP 0x00166eb9
LAB_00166d60:
MOVSXD RSI,dword ptr [RSP + 0x1a4]
LEA RDI,[RSP + 0x200]
CALL 0x00138430
MOV RDI,RAX
LEA RSI,[0x4ac36a]
CALL 0x001371b0
MOV byte ptr [RSP + 0x36],AL
JMP 0x00166d8a
LAB_00166d8a:
MOV AL,byte ptr [RSP + 0x36]
TEST AL,0x1
JNZ 0x00166d94
JMP 0x00166dcc
LAB_00166d94:
MOVSXD RSI,dword ptr [RSP + 0x1a4]
LEA RDI,[RSP + 0x200]
CALL 0x00138430
MOV RSI,RAX
ADD RSI,0x20
LEA RDI,[RSP + 0x1c8]
CALL 0x00121be0
JMP 0x00166dbf
LAB_00166dbf:
MOV byte ptr [RSP + 0x1e8],0x1
JMP 0x00166eb7
LAB_00166dcc:
MOVSXD RSI,dword ptr [RSP + 0x1a4]
LEA RDI,[RSP + 0x200]
CALL 0x00138430
MOV RDI,RAX
LEA RSI,[0x4ac379]
CALL 0x001371b0
MOV byte ptr [RSP + 0x35],AL
JMP 0x00166df6
LAB_00166df6:
MOV AL,byte ptr [RSP + 0x35]
TEST AL,0x1
JNZ 0x00166e00
JMP 0x00166e0d
LAB_00166e00:
MOV byte ptr [RSP + 0x1e9],0x1
JMP 0x00166eb5
LAB_00166e0d:
MOVSXD RSI,dword ptr [RSP + 0x1a4]
LEA RDI,[RSP + 0x200]
CALL 0x00138430
MOV RDI,RAX
LEA RSI,[0x4ac389]
CALL 0x001371b0
MOV byte ptr [RSP + 0x34],AL
JMP 0x00166e37
LAB_00166e37:
MOV AL,byte ptr [RSP + 0x34]
TEST AL,0x1
JNZ 0x00166e41
JMP 0x00166e4b
LAB_00166e41:
MOV byte ptr [RSP + 0x1ea],0x1
JMP 0x00166eb3
LAB_00166e4b:
MOVSXD RSI,dword ptr [RSP + 0x1a4]
LEA RDI,[RSP + 0x200]
CALL 0x00138430
MOV RDX,RAX
LEA RSI,[0x4b05e3]
LEA RDI,[RSP + 0x180]
CALL 0x0014d3a0
JMP 0x00166e79
LAB_00166e79:
MOV RDI,qword ptr [RSP + 0x218]
LEA RSI,[RSP + 0x180]
CALL 0x001215e0
LEA RDI,[RSP + 0x180]
CALL 0x00121cc8
MOV byte ptr [RSP + 0x247],0x0
MOV dword ptr [RSP + 0x17c],0x1
JMP 0x0016719f
LAB_00166eb3:
JMP 0x00166eb5
LAB_00166eb5:
JMP 0x00166eb7
LAB_00166eb7:
JMP 0x00166eb9
LAB_00166eb9:
JMP 0x00166ebb
LAB_00166ebb:
MOV EAX,dword ptr [RSP + 0x1a4]
ADD EAX,0x1
MOV dword ptr [RSP + 0x1a4],EAX
JMP 0x00166c9f
LAB_00166ed1:
LEA RDI,[RSP + 0x157]
MOV qword ptr [RSP + 0x28],RDI
CALL 0x00121a00
MOV RDX,qword ptr [RSP + 0x28]
LAB_00166ee8:
LEA RSI,[0x4a8569]
LEA RDI,[RSP + 0x158]
CALL 0x00121890
JMP 0x00166efe
LAB_00166efe:
LEA RDI,[RSP + 0x157]
CALL 0x00121cb0
MOV RAX,qword ptr [RSP + 0x230]
MOV qword ptr [RSP + 0x20],RAX
LAB_00166f18:
LEA RDI,[RSP + 0x110]
LEA RSI,[RSP + 0x1a8]
CALL 0x00121160
JMP 0x00166f2f
LAB_00166f2f:
MOV AL,byte ptr [RSP + 0x1e8]
MOV byte ptr [RSP + 0x1f],AL
LEA RSI,[RSP + 0x1c8]
LAB_00166f42:
LEA RDI,[RSP + 0xf0]
CALL 0x00121160
JMP 0x00166f51
LAB_00166f51:
MOV RSI,qword ptr [RSP + 0x20]
MOV AL,byte ptr [RSP + 0x1f]
MOVZX ECX,AL
AND ECX,0x1
LEA RDI,[RSP + 0x130]
LEA RDX,[RSP + 0x110]
LEA R8,[RSP + 0xf0]
LEA R9,[RSP + 0x158]
CALL 0x00168dd0
JMP 0x00166f87
LAB_00166f87:
LEA RDI,[RSP + 0xf0]
CALL 0x00121cc8
LEA RDI,[RSP + 0x110]
CALL 0x00121cc8
LEA RDI,[RSP + 0x130]
CALL 0x001212d0
TEST AL,0x1
JNZ 0x00166fb7
JMP 0x00167087
LAB_00166fb7:
MOV RDI,qword ptr [RSP + 0x218]
LAB_00166fbf:
LEA RSI,[RSP + 0x158]
CALL 0x00121be0
JMP 0x00166fce
LAB_00166fce:
MOV byte ptr [RSP + 0x247],0x0
MOV dword ptr [RSP + 0x17c],0x1
JMP 0x00167167
LAB_00167087:
MOV RDI,qword ptr [RSP + 0x220]
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + 0x10]
LEA RSI,[RSP + 0x130]
CALL RAX
MOV qword ptr [RSP + 0x10],RAX
JMP 0x001670a7
LAB_001670a7:
MOV RSI,qword ptr [RSP + 0x10]
LEA RDI,[RSP + 0xe8]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x0014d4d0
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00139590
MOV RSI,RAX
LAB_001670cb:
LEA RDI,[RSP + 0x48]
MOV EDX,0x24
CALL 0x00422f80
JMP 0x001670dc
LAB_001670dc:
MOV RDI,qword ptr [RSP + 0x230]
LAB_001670e4:
LEA RSI,[RSP + 0x48]
LEA RDX,[RSP + 0x1a8]
CALL 0x00166ba0
LAB_001670f6:
JMP 0x001670f8
LAB_001670f8:
MOV byte ptr [RSP + 0x247],0x1
MOV dword ptr [RSP + 0x17c],0x1
LEA RDI,[RSP + 0x48]
CALL 0x004230a0
LEA RDI,[RSP + 0xe8]
CALL 0x001396b0
JMP 0x00167167
LAB_00167167:
LEA RDI,[RSP + 0x130]
CALL 0x00121cc8
LEA RDI,[RSP + 0x158]
CALL 0x00121cc8
JMP 0x0016719f
LAB_0016719f:
LEA RDI,[RSP + 0x1a8]
CALL 0x001672f0
LEA RDI,[RSP + 0x200]
CALL 0x00137280
MOV AL,byte ptr [RSP + 0x247]
AND AL,0x1
ADD RSP,0x248
RET
|
/* google::protobuf::compiler::csharp::Generator::Generate(google::protobuf::FileDescriptor const*,
std::__cxx11::string const&, google::protobuf::compiler::GeneratorContext*,
std::__cxx11::string*) const */
ulong __thiscall
google::protobuf::compiler::csharp::Generator::Generate
(Generator *this,FileDescriptor *param_1,string *param_2,GeneratorContext *param_3,
string *param_4)
{
byte bVar1;
FileDescriptor *pFVar2;
bool bVar3;
ulong uVar4;
ulong uVar5;
string *psVar6;
long lVar7;
ZeroCopyOutputStream *pZVar8;
int8 uVar9;
Printer local_200 [160];
unique_ptr<google::protobuf::io::ZeroCopyOutputStream,std::default_delete<google::protobuf::io::ZeroCopyOutputStream>>
local_160 [8];
string local_158 [32];
string local_138 [32];
csharp local_118 [39];
allocator local_f1;
string local_f0 [36];
int4 local_cc;
string local_c8 [36];
int local_a4;
Options local_a0 [32];
string local_80 [32];
byte local_60;
int1 local_5f;
int1 local_5e;
vector<std::pair<std::__cxx11::string,std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string,std::__cxx11::string>>>
local_48 [24];
string *local_30;
GeneratorContext *local_28;
string *local_20;
FileDescriptor *local_18;
Generator *local_10;
int1 local_1;
local_30 = param_4;
local_28 = param_3;
local_20 = param_2;
local_18 = param_1;
local_10 = this;
std::
vector<std::pair<std::__cxx11::string,std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string,std::__cxx11::string>>>
::vector(local_48);
/* try { // try from 00166c7e to 00166c91 has its CatchHandler @ 00166d2e */
ParseGeneratorParameter(local_20,(vector *)local_48);
Options::Options(local_a0);
local_a4 = 0;
do {
uVar4 = (ulong)local_a4;
uVar5 = std::
vector<std::pair<std::__cxx11::string,std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string,std::__cxx11::string>>>
::size(local_48);
if (uVar5 <= uVar4) {
std::allocator<char>::allocator();
/* try { // try from 00166ee8 to 00166efb has its CatchHandler @ 00166fe6 */
std::__cxx11::string::string(local_f0,"",&local_f1);
std::allocator<char>::~allocator((allocator<char> *)&local_f1);
pFVar2 = local_18;
/* try { // try from 00166f18 to 00166f2c has its CatchHandler @ 0016700c */
std::__cxx11::string::string(local_138,(string *)local_a0);
bVar1 = local_60;
/* try { // try from 00166f42 to 00166f4e has its CatchHandler @ 00167025 */
std::__cxx11::string::string(local_158,local_80);
/* try { // try from 00166f51 to 00166f84 has its CatchHandler @ 0016703b */
GetOutputFile(local_118,pFVar2,local_138,bVar1 & 1,local_158,local_f0);
std::__cxx11::string::~string(local_158);
std::__cxx11::string::~string(local_138);
uVar4 = std::__cxx11::string::empty();
if ((uVar4 & 1) == 0) {
pZVar8 = (ZeroCopyOutputStream *)(**(code **)(*(long *)local_28 + 0x10))(local_28,local_118)
;
std::
unique_ptr<google::protobuf::io::ZeroCopyOutputStream,std::default_delete<google::protobuf::io::ZeroCopyOutputStream>>
::unique_ptr<std::default_delete<google::protobuf::io::ZeroCopyOutputStream>,void>
(local_160,pZVar8);
pZVar8 = (ZeroCopyOutputStream *)
std::
unique_ptr<google::protobuf::io::ZeroCopyOutputStream,std::default_delete<google::protobuf::io::ZeroCopyOutputStream>>
::get(local_160);
/* try { // try from 001670cb to 001670d9 has its CatchHandler @ 00167124 */
io::Printer::Printer(local_200,pZVar8,'$');
/* try { // try from 001670e4 to 001670f5 has its CatchHandler @ 0016713a */
GenerateFile(local_18,local_200,local_a0);
local_1 = 1;
local_cc = 1;
io::Printer::~Printer(local_200);
std::
unique_ptr<google::protobuf::io::ZeroCopyOutputStream,std::default_delete<google::protobuf::io::ZeroCopyOutputStream>>
::~unique_ptr(local_160);
}
else {
/* try { // try from 00166fbf to 0016709f has its CatchHandler @ 0016706e */
std::__cxx11::string::operator=(local_30,local_f0);
local_1 = 0;
local_cc = 1;
}
std::__cxx11::string::~string((string *)local_118);
std::__cxx11::string::~string(local_f0);
LAB_0016719f:
Options::~Options(local_a0);
uVar9 = std::
vector<std::pair<std::__cxx11::string,std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string,std::__cxx11::string>>>
::~vector(local_48);
return CONCAT71((int7)((ulong)uVar9 >> 8),local_1) & 0xffffffffffffff01;
}
psVar6 = (string *)
std::
vector<std::pair<std::__cxx11::string,std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string,std::__cxx11::string>>>
::operator[](local_48,(long)local_a4);
/* try { // try from 00166ce2 to 00166e76 has its CatchHandler @ 00166d47 */
bVar3 = std::operator==(psVar6,"file_extension");
if (bVar3) {
lVar7 = std::
vector<std::pair<std::__cxx11::string,std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string,std::__cxx11::string>>>
::operator[](local_48,(long)local_a4);
std::__cxx11::string::operator=((string *)local_a0,(string *)(lVar7 + 0x20));
}
else {
psVar6 = (string *)
std::
vector<std::pair<std::__cxx11::string,std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string,std::__cxx11::string>>>
::operator[](local_48,(long)local_a4);
bVar3 = std::operator==(psVar6,"base_namespace");
if (bVar3) {
lVar7 = std::
vector<std::pair<std::__cxx11::string,std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string,std::__cxx11::string>>>
::operator[](local_48,(long)local_a4);
std::__cxx11::string::operator=(local_80,(string *)(lVar7 + 0x20));
local_60 = 1;
}
else {
psVar6 = (string *)
std::
vector<std::pair<std::__cxx11::string,std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string,std::__cxx11::string>>>
::operator[](local_48,(long)local_a4);
bVar3 = std::operator==(psVar6,"internal_access");
if (bVar3) {
local_5f = 1;
}
else {
psVar6 = (string *)
std::
vector<std::pair<std::__cxx11::string,std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string,std::__cxx11::string>>>
::operator[](local_48,(long)local_a4);
bVar3 = std::operator==(psVar6,"serializable");
if (!bVar3) {
std::
vector<std::pair<std::__cxx11::string,std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string,std::__cxx11::string>>>
::operator[](local_48,(long)local_a4);
std::operator+((char *)local_c8,(string *)0x4b05e3);
std::__cxx11::string::operator=(local_30,local_c8);
std::__cxx11::string::~string(local_c8);
local_1 = 0;
local_cc = 1;
goto LAB_0016719f;
}
local_5e = 1;
}
}
}
local_a4 = local_a4 + 1;
} while( true );
}
|
|
56,947
|
my_coll_parser_exec
|
eloqsql/strings/ctype-uca.c
|
static int
my_coll_parser_exec(MY_COLL_RULE_PARSER *p)
{
if (!my_coll_parser_scan_settings(p))
return 0;
while (my_coll_parser_curr(p)->term == MY_COLL_LEXEM_RESET)
{
if (!my_coll_parser_scan_rule(p))
return 0;
}
/* Make sure no unparsed input data left */
return my_coll_parser_scan_term(p, MY_COLL_LEXEM_EOF);
}
|
O0
|
c
|
my_coll_parser_exec:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4f240
cmpl $0x0, %eax
jne 0x4ec13
movl $0x0, -0x4(%rbp)
jmp 0x4ec4a
jmp 0x4ec15
movq -0x10(%rbp), %rdi
callq 0x4ed70
cmpl $0x4, (%rax)
jne 0x4ec3c
movq -0x10(%rbp), %rdi
callq 0x4f290
cmpl $0x0, %eax
jne 0x4ec3a
movl $0x0, -0x4(%rbp)
jmp 0x4ec4a
jmp 0x4ec15
movq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0x4f340
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_coll_parser_exec:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_10], rdi
mov rdi, [rbp+var_10]
call my_coll_parser_scan_settings
cmp eax, 0
jnz short loc_4EC13
mov [rbp+var_4], 0
jmp short loc_4EC4A
loc_4EC13:
jmp short $+2
loc_4EC15:
mov rdi, [rbp+var_10]
call my_coll_parser_curr
cmp dword ptr [rax], 4
jnz short loc_4EC3C
mov rdi, [rbp+var_10]
call my_coll_parser_scan_rule
cmp eax, 0
jnz short loc_4EC3A
mov [rbp+var_4], 0
jmp short loc_4EC4A
loc_4EC3A:
jmp short loc_4EC15
loc_4EC3C:
mov rdi, [rbp+var_10]
xor esi, esi
call my_coll_parser_scan_term
mov [rbp+var_4], eax
loc_4EC4A:
mov eax, [rbp+var_4]
add rsp, 10h
pop rbp
retn
|
long long my_coll_parser_exec(long long a1)
{
if ( (unsigned int)my_coll_parser_scan_settings(a1) )
{
while ( *(_DWORD *)my_coll_parser_curr(a1) == 4 )
{
if ( !(unsigned int)my_coll_parser_scan_rule(a1) )
return 0;
}
return (unsigned int)my_coll_parser_scan_term(a1, 0LL);
}
else
{
return 0;
}
}
|
my_coll_parser_exec:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x10],RDI
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0014f240
CMP EAX,0x0
JNZ 0x0014ec13
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0014ec4a
LAB_0014ec13:
JMP 0x0014ec15
LAB_0014ec15:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0014ed70
CMP dword ptr [RAX],0x4
JNZ 0x0014ec3c
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0014f290
CMP EAX,0x0
JNZ 0x0014ec3a
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0014ec4a
LAB_0014ec3a:
JMP 0x0014ec15
LAB_0014ec3c:
MOV RDI,qword ptr [RBP + -0x10]
XOR ESI,ESI
CALL 0x0014f340
MOV dword ptr [RBP + -0x4],EAX
LAB_0014ec4a:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x10
POP RBP
RET
|
int4 my_coll_parser_exec(int8 param_1)
{
int iVar1;
int4 uVar2;
int *piVar3;
iVar1 = my_coll_parser_scan_settings(param_1);
while( true ) {
if (iVar1 == 0) {
return 0;
}
piVar3 = (int *)my_coll_parser_curr(param_1);
if (*piVar3 != 4) break;
iVar1 = my_coll_parser_scan_rule(param_1);
}
uVar2 = my_coll_parser_scan_term(param_1,0);
return uVar2;
}
|
|
56,948
|
inline_mysql_cond_signal
|
eloqsql/include/mysql/psi/mysql_thread.h
|
static inline int inline_mysql_cond_signal(
mysql_cond_t *that)
{
int result;
#ifdef HAVE_PSI_COND_INTERFACE
if (psi_likely(that->m_psi != NULL))
PSI_COND_CALL(signal_cond)(that->m_psi);
#endif
result= pthread_cond_signal(&that->m_cond);
return result;
}
|
O0
|
c
|
inline_mysql_cond_signal:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x30(%rax)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0xfa19b
leaq 0x1c6fd1(%rip), %rax # 0x2c1158
movq (%rax), %rax
movq 0x170(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x30(%rcx), %rdi
callq *%rax
movq -0x8(%rbp), %rdi
callq 0x2a580
movl %eax, -0xc(%rbp)
movl -0xc(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
|
inline_mysql_cond_signal_4:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
cmp qword ptr [rax+30h], 0
setnz al
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_FA19B
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+170h]
mov rcx, [rbp+var_8]
mov rdi, [rcx+30h]
call rax
loc_FA19B:
mov rdi, [rbp+var_8]
call _pthread_cond_signal
mov [rbp+var_C], eax
mov eax, [rbp+var_C]
add rsp, 10h
pop rbp
retn
|
long long inline_mysql_cond_signal_4(long long a1)
{
if ( *(_QWORD *)(a1 + 48) )
((void ( *)(_QWORD))PSI_server[46])(*(_QWORD *)(a1 + 48));
return (unsigned int)pthread_cond_signal(a1);
}
|
inline_mysql_cond_signal:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x30],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001fa19b
LEA RAX,[0x3c1158]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x170]
MOV RCX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RCX + 0x30]
CALL RAX
LAB_001fa19b:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0012a580
MOV dword ptr [RBP + -0xc],EAX
MOV EAX,dword ptr [RBP + -0xc]
ADD RSP,0x10
POP RBP
RET
|
int inline_mysql_cond_signal(pthread_cond_t *param_1)
{
int iVar1;
if (param_1[1].__align != 0) {
(**(code **)(PSI_server + 0x170))(param_1[1].__align);
}
iVar1 = pthread_cond_signal(param_1);
return iVar1;
}
|
|
56,949
|
my_uni_utf32
|
eloqsql/strings/ctype-ucs2.c
|
static int
my_uni_utf32(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *s, uchar *e)
{
if (s + 4 > e)
return MY_CS_TOOSMALL4;
if (wc > 0x10FFFF)
return MY_CS_ILUNI;
s[0]= (uchar) (wc >> 24);
s[1]= (uchar) (wc >> 16) & 0xFF;
s[2]= (uchar) (wc >> 8) & 0xFF;
s[3]= (uchar) wc & 0xFF;
return 4;
}
|
O3
|
c
|
my_uni_utf32:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
movq %rsi, %rbx
leaq 0x4(%rdx), %rsi
movl $0xffffff98, %eax # imm = 0xFFFFFF98
cmpq %rcx, %rsi
ja 0x47e94
xorl %eax, %eax
cmpq $0x10ffff, %rbx # imm = 0x10FFFF
ja 0x47e94
movb $0x0, (%rdx)
movl %ebx, %eax
shrl $0x10, %eax
movb %al, 0x1(%rdx)
movb %bh, 0x2(%rdx)
movb %bl, 0x3(%rdx)
movl $0x4, %eax
popq %rbx
popq %rbp
retq
|
my_uni_utf32:
push rbp
mov rbp, rsp
push rbx
mov rbx, rsi
lea rsi, [rdx+4]
mov eax, 0FFFFFF98h
cmp rsi, rcx
ja short loc_47E94
xor eax, eax
cmp rbx, offset unk_10FFFF
ja short loc_47E94
mov byte ptr [rdx], 0
mov eax, ebx
shr eax, 10h
mov [rdx+1], al
mov [rdx+2], bh
mov [rdx+3], bl
mov eax, 4
loc_47E94:
pop rbx
pop rbp
retn
|
long long my_uni_utf32(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4)
{
long long result; // rax
result = 4294967192LL;
if ( (unsigned long long)(a3 + 4) <= a4 )
{
result = 0LL;
if ( a2 <= (unsigned long long)&unk_10FFFF )
{
*a3 = 0;
a3[1] = BYTE2(a2);
a3[2] = BYTE1(a2);
a3[3] = a2;
return 4LL;
}
}
return result;
}
|
my_uni_utf32:
PUSH RBP
MOV RBP,RSP
PUSH RBX
MOV RBX,RSI
LEA RSI,[RDX + 0x4]
MOV EAX,0xffffff98
CMP RSI,RCX
JA 0x00147e94
XOR EAX,EAX
CMP RBX,0x10ffff
JA 0x00147e94
MOV byte ptr [RDX],0x0
MOV EAX,EBX
SHR EAX,0x10
MOV byte ptr [RDX + 0x1],AL
MOV byte ptr [RDX + 0x2],BH
MOV byte ptr [RDX + 0x3],BL
MOV EAX,0x4
LAB_00147e94:
POP RBX
POP RBP
RET
|
int8 my_uni_utf32(int8 param_1,ulong param_2,int1 *param_3,int1 *param_4)
{
int8 uVar1;
uVar1 = 0xffffff98;
if ((param_3 + 4 <= param_4) && (uVar1 = 0, param_2 < 0x110000)) {
*param_3 = 0;
param_3[1] = (char)(param_2 >> 0x10);
param_3[2] = (char)(param_2 >> 8);
param_3[3] = (char)param_2;
uVar1 = 4;
}
return uVar1;
}
|
|
56,950
|
ggml_compute_forward_clamp_f32(ggml_compute_params const*, ggml_tensor*)
|
ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp
|
static void ggml_compute_forward_clamp_f32(
const ggml_compute_params * params,
ggml_tensor * dst) {
const ggml_tensor * src0 = dst->src[0];
float min;
float max;
memcpy(&min, (float *) dst->op_params + 0, sizeof(float));
memcpy(&max, (float *) dst->op_params + 1, sizeof(float));
const int ith = params->ith;
const int nth = params->nth;
const int n = ggml_nrows(src0);
const int nc = src0->ne[0];
const size_t nb00 = src0->nb[0];
const size_t nb01 = src0->nb[1];
const size_t nb0 = dst->nb[0];
const size_t nb1 = dst->nb[1];
GGML_ASSERT( nb0 == sizeof(float));
GGML_ASSERT(nb00 == sizeof(float));
for (int j = ith; j < n; j += nth) {
float * dst_ptr = (float *) ((char *) dst->data + j*nb1);
float * src0_ptr = (float *) ((char *) src0->data + j*nb01);
for (int i = 0; i < nc; i++) {
dst_ptr[i] = MAX(MIN(src0_ptr[i], max), min);
}
}
}
|
O0
|
cpp
|
ggml_compute_forward_clamp_f32(ggml_compute_params const*, ggml_tensor*):
subq $0x78, %rsp
movq %rdi, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movq 0x68(%rsp), %rax
movq 0x98(%rax), %rax
movq %rax, 0x60(%rsp)
movq 0x68(%rsp), %rax
movl 0x54(%rax), %eax
movl %eax, 0x5c(%rsp)
movq 0x68(%rsp), %rax
movl 0x58(%rax), %eax
movl %eax, 0x58(%rsp)
movq 0x70(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x54(%rsp)
movq 0x70(%rsp), %rax
movl 0x4(%rax), %eax
movl %eax, 0x50(%rsp)
movq 0x60(%rsp), %rdi
callq 0xfee0
movl %eax, 0x4c(%rsp)
movq 0x60(%rsp), %rax
movq 0x10(%rax), %rax
movl %eax, 0x48(%rsp)
movq 0x60(%rsp), %rax
movq 0x30(%rax), %rax
movq %rax, 0x40(%rsp)
movq 0x60(%rsp), %rax
movq 0x38(%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x68(%rsp), %rax
movq 0x30(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x68(%rsp), %rax
movq 0x38(%rax), %rax
movq %rax, 0x28(%rsp)
cmpq $0x4, 0x30(%rsp)
je 0x95aea
leaq 0x1fbc8(%rip), %rdi # 0xb5698
movl $0x1317, %esi # imm = 0x1317
leaq 0x15ea2(%rip), %rdx # 0xab97e
leaq 0x16343(%rip), %rcx # 0xabe26
movb $0x0, %al
callq 0x10660
cmpq $0x4, 0x40(%rsp)
je 0x95b13
leaq 0x1fb9f(%rip), %rdi # 0xb5698
movl $0x1318, %esi # imm = 0x1318
leaq 0x15e79(%rip), %rdx # 0xab97e
leaq 0x1fe61(%rip), %rcx # 0xb596d
movb $0x0, %al
callq 0x10660
movl 0x54(%rsp), %eax
movl %eax, 0x24(%rsp)
movl 0x24(%rsp), %eax
cmpl 0x4c(%rsp), %eax
jge 0x95c56
movq 0x68(%rsp), %rax
movq 0xf8(%rax), %rax
movslq 0x24(%rsp), %rcx
imulq 0x28(%rsp), %rcx
addq %rcx, %rax
movq %rax, 0x18(%rsp)
movq 0x60(%rsp), %rax
movq 0xf8(%rax), %rax
movslq 0x24(%rsp), %rcx
imulq 0x38(%rsp), %rcx
addq %rcx, %rax
movq %rax, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
movl 0xc(%rsp), %eax
cmpl 0x48(%rsp), %eax
jge 0x95c43
movq 0x10(%rsp), %rax
movslq 0xc(%rsp), %rcx
vmovss (%rax,%rcx,4), %xmm1
vmovss 0x58(%rsp), %xmm0
vucomiss %xmm1, %xmm0
jbe 0x95baf
movq 0x10(%rsp), %rax
movslq 0xc(%rsp), %rcx
vmovss (%rax,%rcx,4), %xmm0
vmovss %xmm0, 0x8(%rsp)
jmp 0x95bbb
vmovss 0x58(%rsp), %xmm0
vmovss %xmm0, 0x8(%rsp)
vmovss 0x8(%rsp), %xmm0
vucomiss 0x5c(%rsp), %xmm0
jbe 0x95c14
movq 0x10(%rsp), %rax
movslq 0xc(%rsp), %rcx
vmovss (%rax,%rcx,4), %xmm1
vmovss 0x58(%rsp), %xmm0
vucomiss %xmm1, %xmm0
jbe 0x95bfb
movq 0x10(%rsp), %rax
movslq 0xc(%rsp), %rcx
vmovss (%rax,%rcx,4), %xmm0
vmovss %xmm0, 0x4(%rsp)
jmp 0x95c07
vmovss 0x58(%rsp), %xmm0
vmovss %xmm0, 0x4(%rsp)
vmovss 0x4(%rsp), %xmm0
vmovss %xmm0, (%rsp)
jmp 0x95c1f
vmovss 0x5c(%rsp), %xmm0
vmovss %xmm0, (%rsp)
vmovss (%rsp), %xmm0
movq 0x18(%rsp), %rax
movslq 0xc(%rsp), %rcx
vmovss %xmm0, (%rax,%rcx,4)
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x95b6f
jmp 0x95c45
movl 0x50(%rsp), %eax
addl 0x24(%rsp), %eax
movl %eax, 0x24(%rsp)
jmp 0x95b1b
addq $0x78, %rsp
retq
nopl (%rax,%rax)
|
_ZL30ggml_compute_forward_clamp_f32PK19ggml_compute_paramsP11ggml_tensor:
sub rsp, 78h
mov [rsp+78h+var_8], rdi
mov [rsp+78h+var_10], rsi
mov rax, [rsp+78h+var_10]
mov rax, [rax+98h]
mov [rsp+78h+var_18], rax
mov rax, [rsp+78h+var_10]
mov eax, [rax+54h]
mov [rsp+78h+var_1C], eax
mov rax, [rsp+78h+var_10]
mov eax, [rax+58h]
mov [rsp+78h+var_20], eax
mov rax, [rsp+78h+var_8]
mov eax, [rax]
mov [rsp+78h+var_24], eax
mov rax, [rsp+78h+var_8]
mov eax, [rax+4]
mov [rsp+78h+var_28], eax
mov rdi, [rsp+78h+var_18]
call _ggml_nrows
mov [rsp+78h+var_2C], eax
mov rax, [rsp+78h+var_18]
mov rax, [rax+10h]
mov [rsp+78h+var_30], eax
mov rax, [rsp+78h+var_18]
mov rax, [rax+30h]
mov [rsp+78h+var_38], rax
mov rax, [rsp+78h+var_18]
mov rax, [rax+38h]
mov [rsp+78h+var_40], rax
mov rax, [rsp+78h+var_10]
mov rax, [rax+30h]
mov [rsp+78h+var_48], rax
mov rax, [rsp+78h+var_10]
mov rax, [rax+38h]
mov [rsp+78h+var_50], rax
cmp [rsp+78h+var_48], 4
jz short loc_95AEA
lea rdi, aWorkspaceLlm4b_6; "/workspace/llm4binary/github/2025_star3"...
mov esi, 1317h
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNb0SizeofFloat; "nb0 == sizeof(float)"
mov al, 0
call _ggml_abort
loc_95AEA:
cmp [rsp+78h+var_38], 4
jz short loc_95B13
lea rdi, aWorkspaceLlm4b_6; "/workspace/llm4binary/github/2025_star3"...
mov esi, 1318h
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNb00SizeofFloa; "nb00 == sizeof(float)"
mov al, 0
call _ggml_abort
loc_95B13:
mov eax, [rsp+78h+var_24]
mov [rsp+78h+var_54], eax
loc_95B1B:
mov eax, [rsp+78h+var_54]
cmp eax, [rsp+78h+var_2C]
jge loc_95C56
mov rax, [rsp+78h+var_10]
mov rax, [rax+0F8h]
movsxd rcx, [rsp+78h+var_54]
imul rcx, [rsp+78h+var_50]
add rax, rcx
mov [rsp+78h+var_60], rax
mov rax, [rsp+78h+var_18]
mov rax, [rax+0F8h]
movsxd rcx, [rsp+78h+var_54]
imul rcx, [rsp+78h+var_40]
add rax, rcx
mov [rsp+78h+var_68], rax
mov [rsp+78h+var_6C], 0
loc_95B6F:
mov eax, [rsp+78h+var_6C]
cmp eax, [rsp+78h+var_30]
jge loc_95C43
mov rax, [rsp+78h+var_68]
movsxd rcx, [rsp+78h+var_6C]
vmovss xmm1, dword ptr [rax+rcx*4]
vmovss xmm0, [rsp+78h+var_20]
vucomiss xmm0, xmm1
jbe short loc_95BAF
mov rax, [rsp+78h+var_68]
movsxd rcx, [rsp+78h+var_6C]
vmovss xmm0, dword ptr [rax+rcx*4]
vmovss [rsp+78h+var_70], xmm0
jmp short loc_95BBB
loc_95BAF:
vmovss xmm0, [rsp+78h+var_20]
vmovss [rsp+78h+var_70], xmm0
loc_95BBB:
vmovss xmm0, [rsp+78h+var_70]
vucomiss xmm0, [rsp+78h+var_1C]
jbe short loc_95C14
mov rax, [rsp+78h+var_68]
movsxd rcx, [rsp+78h+var_6C]
vmovss xmm1, dword ptr [rax+rcx*4]
vmovss xmm0, [rsp+78h+var_20]
vucomiss xmm0, xmm1
jbe short loc_95BFB
mov rax, [rsp+78h+var_68]
movsxd rcx, [rsp+78h+var_6C]
vmovss xmm0, dword ptr [rax+rcx*4]
vmovss [rsp+78h+var_74], xmm0
jmp short loc_95C07
loc_95BFB:
vmovss xmm0, [rsp+78h+var_20]
vmovss [rsp+78h+var_74], xmm0
loc_95C07:
vmovss xmm0, [rsp+78h+var_74]
vmovss [rsp+78h+var_78], xmm0
jmp short loc_95C1F
loc_95C14:
vmovss xmm0, [rsp+78h+var_1C]
vmovss [rsp+78h+var_78], xmm0
loc_95C1F:
vmovss xmm0, [rsp+78h+var_78]
mov rax, [rsp+78h+var_60]
movsxd rcx, [rsp+78h+var_6C]
vmovss dword ptr [rax+rcx*4], xmm0
mov eax, [rsp+78h+var_6C]
add eax, 1
mov [rsp+78h+var_6C], eax
jmp loc_95B6F
loc_95C43:
jmp short $+2
loc_95C45:
mov eax, [rsp+78h+var_28]
add eax, [rsp+78h+var_54]
mov [rsp+78h+var_54], eax
jmp loc_95B1B
loc_95C56:
add rsp, 78h
retn
|
long long ggml_compute_forward_clamp_f32(unsigned int *a1, long long a2)
{
long long result; // rax
unsigned int j; // [rsp+Ch] [rbp-6Ch]
long long v28; // [rsp+10h] [rbp-68h]
long long v29; // [rsp+18h] [rbp-60h]
unsigned int i; // [rsp+24h] [rbp-54h]
long long v31; // [rsp+28h] [rbp-50h]
long long v32; // [rsp+38h] [rbp-40h]
long long v33; // [rsp+40h] [rbp-38h]
unsigned int v34; // [rsp+48h] [rbp-30h]
int v35; // [rsp+4Ch] [rbp-2Ch]
unsigned int v36; // [rsp+50h] [rbp-28h]
unsigned int v37; // [rsp+54h] [rbp-24h]
int v38; // [rsp+58h] [rbp-20h]
int v39; // [rsp+5Ch] [rbp-1Ch]
_QWORD *v40; // [rsp+60h] [rbp-18h]
v40 = *(_QWORD **)(a2 + 152);
v39 = *(_DWORD *)(a2 + 84);
v38 = *(_DWORD *)(a2 + 88);
v37 = *a1;
v36 = a1[1];
v35 = ggml_nrows(v40);
v34 = v40[2];
v33 = v40[6];
v32 = v40[7];
v31 = *(_QWORD *)(a2 + 56);
if ( *(_QWORD *)(a2 + 48) != 4LL )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
4887LL,
"GGML_ASSERT(%s) failed",
"nb0 == sizeof(float)");
if ( v33 != 4 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp",
4888LL,
"GGML_ASSERT(%s) failed",
"nb00 == sizeof(float)");
for ( i = v37; ; i += v36 )
{
result = i;
if ( (int)i >= v35 )
break;
v29 = v31 * (int)i + *(_QWORD *)(a2 + 248);
v28 = v32 * (int)i + v40[31];
for ( j = 0; (int)j < (int)v34; ++j )
{
_RAX = v28;
_RCX = (int)j;
__asm
{
vmovss xmm1, dword ptr [rax+rcx*4]
vmovss xmm0, [rsp+78h+var_20]
vucomiss xmm0, xmm1
}
if ( j <= v34 )
{
__asm
{
vmovss xmm0, [rsp+78h+var_20]
vmovss [rsp+78h+var_70], xmm0
}
}
else
{
_RAX = v28;
_RCX = (int)j;
__asm
{
vmovss xmm0, dword ptr [rax+rcx*4]
vmovss [rsp+78h+var_70], xmm0
}
}
__asm
{
vmovss xmm0, [rsp+78h+var_70]
vucomiss xmm0, [rsp+78h+var_1C]
}
if ( j <= v34 )
{
__asm
{
vmovss xmm0, [rsp+78h+var_1C]
vmovss [rsp+78h+var_78], xmm0
}
}
else
{
_RAX = v28;
_RCX = (int)j;
__asm
{
vmovss xmm1, dword ptr [rax+rcx*4]
vmovss xmm0, [rsp+78h+var_20]
vucomiss xmm0, xmm1
}
_RAX = v28;
_RCX = (int)j;
__asm
{
vmovss xmm0, dword ptr [rax+rcx*4]
vmovss [rsp+78h+var_74], xmm0
vmovss xmm0, [rsp+78h+var_74]
vmovss [rsp+78h+var_78], xmm0
}
}
__asm { vmovss xmm0, [rsp+78h+var_78] }
_RAX = v29;
_RCX = (int)j;
__asm { vmovss dword ptr [rax+rcx*4], xmm0 }
}
}
return result;
}
|
ggml_compute_forward_clamp_f32:
SUB RSP,0x78
MOV qword ptr [RSP + 0x70],RDI
MOV qword ptr [RSP + 0x68],RSI
MOV RAX,qword ptr [RSP + 0x68]
MOV RAX,qword ptr [RAX + 0x98]
MOV qword ptr [RSP + 0x60],RAX
MOV RAX,qword ptr [RSP + 0x68]
MOV EAX,dword ptr [RAX + 0x54]
MOV dword ptr [RSP + 0x5c],EAX
MOV RAX,qword ptr [RSP + 0x68]
MOV EAX,dword ptr [RAX + 0x58]
MOV dword ptr [RSP + 0x58],EAX
MOV RAX,qword ptr [RSP + 0x70]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RSP + 0x54],EAX
MOV RAX,qword ptr [RSP + 0x70]
MOV EAX,dword ptr [RAX + 0x4]
MOV dword ptr [RSP + 0x50],EAX
MOV RDI,qword ptr [RSP + 0x60]
CALL 0x0010fee0
MOV dword ptr [RSP + 0x4c],EAX
MOV RAX,qword ptr [RSP + 0x60]
MOV RAX,qword ptr [RAX + 0x10]
MOV dword ptr [RSP + 0x48],EAX
MOV RAX,qword ptr [RSP + 0x60]
MOV RAX,qword ptr [RAX + 0x30]
MOV qword ptr [RSP + 0x40],RAX
MOV RAX,qword ptr [RSP + 0x60]
MOV RAX,qword ptr [RAX + 0x38]
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0x68]
MOV RAX,qword ptr [RAX + 0x30]
MOV qword ptr [RSP + 0x30],RAX
MOV RAX,qword ptr [RSP + 0x68]
MOV RAX,qword ptr [RAX + 0x38]
MOV qword ptr [RSP + 0x28],RAX
CMP qword ptr [RSP + 0x30],0x4
JZ 0x00195aea
LEA RDI,[0x1b5698]
MOV ESI,0x1317
LEA RDX,[0x1ab97e]
LEA RCX,[0x1abe26]
MOV AL,0x0
CALL 0x00110660
LAB_00195aea:
CMP qword ptr [RSP + 0x40],0x4
JZ 0x00195b13
LEA RDI,[0x1b5698]
MOV ESI,0x1318
LEA RDX,[0x1ab97e]
LEA RCX,[0x1b596d]
MOV AL,0x0
CALL 0x00110660
LAB_00195b13:
MOV EAX,dword ptr [RSP + 0x54]
MOV dword ptr [RSP + 0x24],EAX
LAB_00195b1b:
MOV EAX,dword ptr [RSP + 0x24]
CMP EAX,dword ptr [RSP + 0x4c]
JGE 0x00195c56
MOV RAX,qword ptr [RSP + 0x68]
MOV RAX,qword ptr [RAX + 0xf8]
MOVSXD RCX,dword ptr [RSP + 0x24]
IMUL RCX,qword ptr [RSP + 0x28]
ADD RAX,RCX
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [RSP + 0x60]
MOV RAX,qword ptr [RAX + 0xf8]
MOVSXD RCX,dword ptr [RSP + 0x24]
IMUL RCX,qword ptr [RSP + 0x38]
ADD RAX,RCX
MOV qword ptr [RSP + 0x10],RAX
MOV dword ptr [RSP + 0xc],0x0
LAB_00195b6f:
MOV EAX,dword ptr [RSP + 0xc]
CMP EAX,dword ptr [RSP + 0x48]
JGE 0x00195c43
MOV RAX,qword ptr [RSP + 0x10]
MOVSXD RCX,dword ptr [RSP + 0xc]
VMOVSS XMM1,dword ptr [RAX + RCX*0x4]
VMOVSS XMM0,dword ptr [RSP + 0x58]
VUCOMISS XMM0,XMM1
JBE 0x00195baf
MOV RAX,qword ptr [RSP + 0x10]
MOVSXD RCX,dword ptr [RSP + 0xc]
VMOVSS XMM0,dword ptr [RAX + RCX*0x4]
VMOVSS dword ptr [RSP + 0x8],XMM0
JMP 0x00195bbb
LAB_00195baf:
VMOVSS XMM0,dword ptr [RSP + 0x58]
VMOVSS dword ptr [RSP + 0x8],XMM0
LAB_00195bbb:
VMOVSS XMM0,dword ptr [RSP + 0x8]
VUCOMISS XMM0,dword ptr [RSP + 0x5c]
JBE 0x00195c14
MOV RAX,qword ptr [RSP + 0x10]
MOVSXD RCX,dword ptr [RSP + 0xc]
VMOVSS XMM1,dword ptr [RAX + RCX*0x4]
VMOVSS XMM0,dword ptr [RSP + 0x58]
VUCOMISS XMM0,XMM1
JBE 0x00195bfb
MOV RAX,qword ptr [RSP + 0x10]
MOVSXD RCX,dword ptr [RSP + 0xc]
VMOVSS XMM0,dword ptr [RAX + RCX*0x4]
VMOVSS dword ptr [RSP + 0x4],XMM0
JMP 0x00195c07
LAB_00195bfb:
VMOVSS XMM0,dword ptr [RSP + 0x58]
VMOVSS dword ptr [RSP + 0x4],XMM0
LAB_00195c07:
VMOVSS XMM0,dword ptr [RSP + 0x4]
VMOVSS dword ptr [RSP],XMM0
JMP 0x00195c1f
LAB_00195c14:
VMOVSS XMM0,dword ptr [RSP + 0x5c]
VMOVSS dword ptr [RSP],XMM0
LAB_00195c1f:
VMOVSS XMM0,dword ptr [RSP]
MOV RAX,qword ptr [RSP + 0x18]
MOVSXD RCX,dword ptr [RSP + 0xc]
VMOVSS dword ptr [RAX + RCX*0x4],XMM0
MOV EAX,dword ptr [RSP + 0xc]
ADD EAX,0x1
MOV dword ptr [RSP + 0xc],EAX
JMP 0x00195b6f
LAB_00195c43:
JMP 0x00195c45
LAB_00195c45:
MOV EAX,dword ptr [RSP + 0x50]
ADD EAX,dword ptr [RSP + 0x24]
MOV dword ptr [RSP + 0x24],EAX
JMP 0x00195b1b
LAB_00195c56:
ADD RSP,0x78
RET
|
/* ggml_compute_forward_clamp_f32(ggml_compute_params const*, ggml_tensor*) */
void ggml_compute_forward_clamp_f32(ggml_compute_params *param_1,ggml_tensor *param_2)
{
float fVar1;
float fVar2;
int iVar3;
long lVar4;
int8 uVar5;
long lVar6;
long lVar7;
long lVar8;
int iVar9;
long lVar10;
float local_78;
float local_74;
float local_70;
int local_6c;
int local_54;
lVar4 = *(long *)(param_2 + 0x98);
fVar1 = *(float *)(param_2 + 0x54);
fVar2 = *(float *)(param_2 + 0x58);
local_54 = *(int *)param_1;
iVar3 = *(int *)(param_1 + 4);
iVar9 = ggml_nrows(lVar4);
uVar5 = *(int8 *)(lVar4 + 0x10);
lVar6 = *(long *)(lVar4 + 0x30);
lVar7 = *(long *)(lVar4 + 0x38);
lVar8 = *(long *)(param_2 + 0x38);
if (*(long *)(param_2 + 0x30) != 4) {
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp"
,0x1317,"GGML_ASSERT(%s) failed","nb0 == sizeof(float)");
}
if (lVar6 != 4) {
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-cpu/ops.cpp"
,0x1318,"GGML_ASSERT(%s) failed","nb00 == sizeof(float)");
}
for (; local_54 < iVar9; local_54 = iVar3 + local_54) {
lVar6 = *(long *)(param_2 + 0xf8);
lVar10 = *(long *)(lVar4 + 0xf8) + local_54 * lVar7;
for (local_6c = 0; local_6c < (int)uVar5; local_6c = local_6c + 1) {
local_70 = fVar2;
if (*(float *)(lVar10 + (long)local_6c * 4) < fVar2) {
local_70 = *(float *)(lVar10 + (long)local_6c * 4);
}
local_78 = fVar1;
if (fVar1 < local_70) {
local_74 = fVar2;
if (*(float *)(lVar10 + (long)local_6c * 4) < fVar2) {
local_74 = *(float *)(lVar10 + (long)local_6c * 4);
}
local_78 = local_74;
}
*(float *)(lVar6 + local_54 * lVar8 + (long)local_6c * 4) = local_78;
}
}
return;
}
|
|
56,951
|
free_tree
|
eloqsql/mysys/tree.c
|
static int free_tree(TREE *tree, my_bool abort, myf free_flags)
{
int error, first_error= 0;
DBUG_ENTER("free_tree");
DBUG_PRINT("enter",("tree: %p", tree));
if (tree->root) /* If initialized */
{
if (tree->with_delete)
{
if ((error= delete_tree_element(tree, tree->root, abort)))
{
first_error= first_error ? first_error : error;
abort= 1;
}
}
else
{
if (tree->free)
{
if (tree->memory_limit)
(*tree->free)(NULL, free_init, tree->custom_arg);
if ((error= delete_tree_element(tree, tree->root, abort)))
first_error= first_error ? first_error : error;
if (tree->memory_limit)
(*tree->free)(NULL, free_end, tree->custom_arg);
}
free_root(&tree->mem_root, free_flags);
}
}
tree->root= &null_element;
tree->elements_in_tree=0;
tree->allocated=0;
DBUG_RETURN(first_error);
}
|
O3
|
c
|
free_tree:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %r15d
movq %rdi, %rbx
movq (%rdi), %rsi
testq %rsi, %rsi
je 0xa4069
cmpb $0x0, 0x278(%rbx)
je 0xa406e
movsbl %r15b, %edx
movq %rbx, %rdi
callq 0xa4cc2
movl %eax, %r15d
jmp 0xa40d8
xorl %r15d, %r15d
jmp 0xa40d8
movq %rdx, %r14
movq 0x280(%rbx), %rax
testq %rax, %rax
je 0xa40c6
cmpq $0x0, 0x218(%rbx)
je 0xa4097
movq 0x230(%rbx), %rdx
xorl %edi, %edi
xorl %esi, %esi
callq *%rax
movq (%rbx), %rsi
movsbl %r15b, %edx
movq %rbx, %rdi
callq 0xa4cc2
movl %eax, %r15d
cmpq $0x0, 0x218(%rbx)
je 0xa40c9
movq 0x230(%rbx), %rdx
xorl %edi, %edi
movl $0x2, %esi
callq *0x280(%rbx)
jmp 0xa40c9
xorl %r15d, %r15d
leaq 0x238(%rbx), %rdi
movq %r14, %rsi
callq 0x9c843
leaq 0x2e0ae1(%rip), %rax # 0x384bc0
movq %rax, (%rbx)
movl $0x0, 0x20c(%rbx)
movq $0x0, 0x220(%rbx)
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
free_tree:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov r15d, esi
mov rbx, rdi
mov rsi, [rdi]
test rsi, rsi
jz short loc_A4069
cmp byte ptr [rbx+278h], 0
jz short loc_A406E
movsx edx, r15b
mov rdi, rbx
call delete_tree_element
mov r15d, eax
jmp short loc_A40D8
loc_A4069:
xor r15d, r15d
jmp short loc_A40D8
loc_A406E:
mov r14, rdx
mov rax, [rbx+280h]
test rax, rax
jz short loc_A40C6
cmp qword ptr [rbx+218h], 0
jz short loc_A4097
mov rdx, [rbx+230h]
xor edi, edi
xor esi, esi
call rax
mov rsi, [rbx]
loc_A4097:
movsx edx, r15b
mov rdi, rbx
call delete_tree_element
mov r15d, eax
cmp qword ptr [rbx+218h], 0
jz short loc_A40C9
mov rdx, [rbx+230h]
xor edi, edi
mov esi, 2
call qword ptr [rbx+280h]
jmp short loc_A40C9
loc_A40C6:
xor r15d, r15d
loc_A40C9:
lea rdi, [rbx+238h]
mov rsi, r14
call free_root
loc_A40D8:
lea rax, null_element
mov [rbx], rax
mov dword ptr [rbx+20Ch], 0
mov qword ptr [rbx+220h], 0
mov eax, r15d
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long free_tree(long long *a1, char a2, char a3)
{
long long v4; // rsi
unsigned int v5; // r15d
void ( *v7)(_QWORD, _QWORD, long long); // rax
v4 = *a1;
if ( *a1 )
{
if ( *((_BYTE *)a1 + 632) )
{
v5 = delete_tree_element(a1, v4, (unsigned int)a2);
}
else
{
v7 = (void ( *)(_QWORD, _QWORD, long long))a1[80];
if ( v7 )
{
if ( a1[67] )
{
v7(0LL, 0LL, a1[70]);
v4 = *a1;
}
v5 = delete_tree_element(a1, v4, (unsigned int)a2);
if ( a1[67] )
((void ( *)(_QWORD, long long, long long))a1[80])(0LL, 2LL, a1[70]);
}
else
{
v5 = 0;
}
free_root(a1 + 71, a3);
}
}
else
{
v5 = 0;
}
*a1 = (long long)&null_element;
*((_DWORD *)a1 + 131) = 0;
a1[68] = 0LL;
return v5;
}
|
free_tree:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R15D,ESI
MOV RBX,RDI
MOV RSI,qword ptr [RDI]
TEST RSI,RSI
JZ 0x001a4069
CMP byte ptr [RBX + 0x278],0x0
JZ 0x001a406e
MOVSX EDX,R15B
MOV RDI,RBX
CALL 0x001a4cc2
MOV R15D,EAX
JMP 0x001a40d8
LAB_001a4069:
XOR R15D,R15D
JMP 0x001a40d8
LAB_001a406e:
MOV R14,RDX
MOV RAX,qword ptr [RBX + 0x280]
TEST RAX,RAX
JZ 0x001a40c6
CMP qword ptr [RBX + 0x218],0x0
JZ 0x001a4097
MOV RDX,qword ptr [RBX + 0x230]
XOR EDI,EDI
XOR ESI,ESI
CALL RAX
MOV RSI,qword ptr [RBX]
LAB_001a4097:
MOVSX EDX,R15B
MOV RDI,RBX
CALL 0x001a4cc2
MOV R15D,EAX
CMP qword ptr [RBX + 0x218],0x0
JZ 0x001a40c9
MOV RDX,qword ptr [RBX + 0x230]
XOR EDI,EDI
MOV ESI,0x2
CALL qword ptr [RBX + 0x280]
JMP 0x001a40c9
LAB_001a40c6:
XOR R15D,R15D
LAB_001a40c9:
LEA RDI,[RBX + 0x238]
MOV RSI,R14
CALL 0x0019c843
LAB_001a40d8:
LEA RAX,[0x484bc0]
MOV qword ptr [RBX],RAX
MOV dword ptr [RBX + 0x20c],0x0
MOV qword ptr [RBX + 0x220],0x0
MOV EAX,R15D
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
int4 free_tree(long *param_1,char param_2,int8 param_3)
{
int4 uVar1;
long lVar2;
lVar2 = *param_1;
if (lVar2 == 0) {
uVar1 = 0;
}
else if ((char)param_1[0x4f] == '\0') {
if ((code *)param_1[0x50] == (code *)0x0) {
uVar1 = 0;
}
else {
if (param_1[0x43] != 0) {
(*(code *)param_1[0x50])(0,0,param_1[0x46]);
lVar2 = *param_1;
}
uVar1 = delete_tree_element(param_1,lVar2,(int)param_2);
if (param_1[0x43] != 0) {
(*(code *)param_1[0x50])(0,2,param_1[0x46]);
}
}
free_root(param_1 + 0x47,param_3);
}
else {
uVar1 = delete_tree_element(param_1,lVar2,(int)param_2);
}
*param_1 = (long)null_element;
*(int4 *)((long)param_1 + 0x20c) = 0;
param_1[0x44] = 0;
return uVar1;
}
|
|
56,952
|
JS_NewRuntime2
|
bluesky950520[P]quickjs/quickjs.c
|
JSRuntime *JS_NewRuntime2(const JSMallocFunctions *mf, void *opaque)
{
JSRuntime *rt;
JSMallocState ms;
memset(&ms, 0, sizeof(ms));
ms.opaque = opaque;
ms.malloc_limit = 0;
rt = mf->js_calloc(opaque, 1, sizeof(JSRuntime));
if (!rt)
return NULL;
rt->mf = *mf;
if (!rt->mf.js_malloc_usable_size) {
/* use dummy function if none provided */
rt->mf.js_malloc_usable_size = js_malloc_usable_size_unknown;
}
/* Inline what js_malloc_rt does since we cannot use it here. */
ms.malloc_count++;
ms.malloc_size += rt->mf.js_malloc_usable_size(rt) + MALLOC_OVERHEAD;
rt->malloc_state = ms;
rt->malloc_gc_threshold = 256 * 1024;
bf_context_init(&rt->bf_ctx, js_bf_realloc, rt);
init_list_head(&rt->context_list);
init_list_head(&rt->gc_obj_list);
init_list_head(&rt->gc_zero_ref_count_list);
rt->gc_phase = JS_GC_PHASE_NONE;
#ifdef DUMP_LEAKS
init_list_head(&rt->string_list);
#endif
init_list_head(&rt->job_list);
if (JS_InitAtoms(rt))
goto fail;
/* create the object, array and function classes */
if (init_class_range(rt, js_std_class_def, JS_CLASS_OBJECT,
countof(js_std_class_def)) < 0)
goto fail;
rt->class_array[JS_CLASS_ARGUMENTS].exotic = &js_arguments_exotic_methods;
rt->class_array[JS_CLASS_STRING].exotic = &js_string_exotic_methods;
rt->class_array[JS_CLASS_MODULE_NS].exotic = &js_module_ns_exotic_methods;
rt->class_array[JS_CLASS_C_FUNCTION].call = js_call_c_function;
rt->class_array[JS_CLASS_C_FUNCTION_DATA].call = js_c_function_data_call;
rt->class_array[JS_CLASS_BOUND_FUNCTION].call = js_call_bound_function;
rt->class_array[JS_CLASS_GENERATOR_FUNCTION].call = js_generator_function_call;
if (init_shape_hash(rt))
goto fail;
rt->js_class_id_alloc = JS_CLASS_INIT_COUNT;
rt->stack_size = JS_DEFAULT_STACK_SIZE;
#ifdef __wasi__
rt->stack_size = 0;
#endif
JS_UpdateStackTop(rt);
rt->current_exception = JS_UNINITIALIZED;
return rt;
fail:
JS_FreeRuntime(rt);
return NULL;
}
|
O1
|
c
|
JS_NewRuntime2:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
movl $0x1, %esi
movl $0x228, %edx # imm = 0x228
movq %r14, %rdi
callq *(%r15)
testq %rax, %rax
jne 0x1ccb8
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x20(%r15), %rax
movq %rax, 0x20(%rbx)
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups %xmm1, 0x10(%rbx)
movups %xmm0, (%rbx)
testq %rax, %rax
jne 0x1cce3
leaq 0x162(%rip), %rax # 0x1ce41
movq %rax, 0x20(%rbx)
movq %rbx, %rdi
callq *0x20(%rbx)
addq $0x8, %rax
movq $0x1, 0x28(%rbx)
movq %rax, 0x30(%rbx)
xorl %r15d, %r15d
movq %r15, 0x38(%rbx)
movq %r14, 0x40(%rbx)
movq $0x40000, 0xd0(%rbx) # imm = 0x40000
leaq 0x198(%rbx), %rdi
leaq 0x127(%rip), %rsi # 0x1ce44
movq %rbx, %rdx
callq 0x84928
leaq 0x88(%rbx), %rax
movq %rax, 0x88(%rbx)
movq %rax, 0x90(%rbx)
leaq 0x98(%rbx), %rax
movq %rax, 0x98(%rbx)
movq %rax, 0xa0(%rbx)
leaq 0xa8(%rbx), %rax
movq %rax, 0xa8(%rbx)
movq %rax, 0xb0(%rbx)
movb $0x0, 0xc8(%rbx)
movq %rbx, %rax
addq $0x130, %rax # imm = 0x130
movq %rax, 0x130(%rbx)
movq %rax, 0x138(%rbx)
movl %r15d, 0x50(%rbx)
movq %r15, 0x60(%rbx)
movq %r15, 0x54(%rbx)
movl %r15d, 0x70(%rbx)
movq %rbx, %rdi
movl $0x100, %esi # imm = 0x100
callq 0x1090e
testl %eax, %eax
jne 0x1ce22
movl $0x1, %r12d
leaq 0x80b40(%rip), %r14 # 0x9d8f0
movl $0x4, %r13d
xorl %eax, %eax
cmpl $0xd3, %r12d
setae %al
cmpl $0xd2, %r12d
leal 0x1(%rax,%rax), %ebp
cmovel %r13d, %ebp
movq %r14, %rdi
callq 0xe240
movq %rax, %r15
movq %rbx, %rdi
movq %r14, %rsi
movl %r15d, %edx
movl %ebp, %ecx
callq 0xf48e
testl %eax, %eax
je 0x1ce22
movslq %r15d, %rax
addq %rax, %r14
incq %r14
incl %r12d
cmpl $0xe0, %r12d
jne 0x1cdb6
leaq 0xaa8a4(%rip), %rsi # 0xc76b0
movq %rbx, %rdi
movl $0x1, %edx
movl $0x2f, %ecx
callq 0x1ce49
testl %eax, %eax
jns 0x1ce2f
movq %rbx, %rdi
callq 0x1d50a
jmp 0x1cca4
movq %rbx, %rdi
callq 0x12e1c
testb $0x1, %al
je 0x1cca6
jmp 0x1ce22
|
JS_NewRuntime2:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, rsi
mov r15, rdi
mov esi, 1
mov edx, 228h
mov rdi, r14
call qword ptr [r15]
test rax, rax
jnz short loc_1CCB8
loc_1CCA4:
xor ebx, ebx
loc_1CCA6:
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_1CCB8:
mov rbx, rax
mov rax, [r15+20h]
mov [rbx+20h], rax
movups xmm0, xmmword ptr [r15]
movups xmm1, xmmword ptr [r15+10h]
movups xmmword ptr [rbx+10h], xmm1
movups xmmword ptr [rbx], xmm0
test rax, rax
jnz short loc_1CCE3
lea rax, js_malloc_usable_size_unknown
mov [rbx+20h], rax
loc_1CCE3:
mov rdi, rbx
call qword ptr [rbx+20h]
add rax, 8
mov qword ptr [rbx+28h], 1
mov [rbx+30h], rax
xor r15d, r15d
mov [rbx+38h], r15
mov [rbx+40h], r14
mov qword ptr [rbx+0D0h], 40000h
lea rdi, [rbx+198h]
lea rsi, js_bf_realloc
mov rdx, rbx
call bf_context_init
lea rax, [rbx+88h]
mov [rbx+88h], rax
mov [rbx+90h], rax
lea rax, [rbx+98h]
mov [rbx+98h], rax
mov [rbx+0A0h], rax
lea rax, [rbx+0A8h]
mov [rbx+0A8h], rax
mov [rbx+0B0h], rax
mov byte ptr [rbx+0C8h], 0
mov rax, rbx
add rax, 130h
mov [rbx+130h], rax
mov [rbx+138h], rax
mov [rbx+50h], r15d
mov [rbx+60h], r15
mov [rbx+54h], r15
mov [rbx+70h], r15d
mov rdi, rbx
mov esi, 100h
call JS_ResizeAtomHash
test eax, eax
jnz short loc_1CE22
mov r12d, 1
lea r14, js_atom_init; "null"
mov r13d, 4
loc_1CDB6:
xor eax, eax
cmp r12d, 0D3h
setnb al
cmp r12d, 0D2h
lea ebp, [rax+rax+1]
cmovz ebp, r13d
mov rdi, r14
call _strlen
mov r15, rax
mov rdi, rbx
mov rsi, r14
mov edx, r15d
mov ecx, ebp
call __JS_NewAtomInit
test eax, eax
jz short loc_1CE22
movsxd rax, r15d
add r14, rax
inc r14
inc r12d
cmp r12d, 0E0h
jnz short loc_1CDB6
lea rsi, js_std_class_def
mov rdi, rbx
mov edx, 1
mov ecx, 2Fh ; '/'
call init_class_range
test eax, eax
jns short loc_1CE2F
loc_1CE22:
mov rdi, rbx
call JS_FreeRuntime
jmp loc_1CCA4
loc_1CE2F:
mov rdi, rbx
call JS_NewRuntime2_cold_1
test al, 1
jz loc_1CCA6
jmp short loc_1CE22
|
long long JS_NewRuntime2(__int128 *a1, long long a2)
{
long long v2; // rax
long long v3; // rbx
long long v5; // rax
__int128 v6; // xmm0
long long v7; // rax
unsigned int v8; // r12d
const char *v9; // r14
unsigned int v10; // ebp
int v11; // r15d
v2 = (*(long long ( **)(long long, long long, long long))a1)(a2, 1LL, 552LL);
if ( v2 )
{
v3 = v2;
v5 = *((_QWORD *)a1 + 4);
*(_QWORD *)(v3 + 32) = v5;
v6 = *a1;
*(_OWORD *)(v3 + 16) = a1[1];
*(_OWORD *)v3 = v6;
if ( !v5 )
*(_QWORD *)(v3 + 32) = js_malloc_usable_size_unknown;
v7 = (*(long long ( **)(long long))(v3 + 32))(v3);
*(_QWORD *)(v3 + 40) = 1LL;
*(_QWORD *)(v3 + 48) = v7 + 8;
*(_QWORD *)(v3 + 56) = 0LL;
*(_QWORD *)(v3 + 64) = a2;
*(_QWORD *)(v3 + 208) = 0x40000LL;
bf_context_init(v3 + 408, js_bf_realloc, v3);
*(_QWORD *)(v3 + 136) = v3 + 136;
*(_QWORD *)(v3 + 144) = v3 + 136;
*(_QWORD *)(v3 + 152) = v3 + 152;
*(_QWORD *)(v3 + 160) = v3 + 152;
*(_QWORD *)(v3 + 168) = v3 + 168;
*(_QWORD *)(v3 + 176) = v3 + 168;
*(_BYTE *)(v3 + 200) = 0;
*(_QWORD *)(v3 + 304) = v3 + 304;
*(_QWORD *)(v3 + 312) = v3 + 304;
*(_DWORD *)(v3 + 80) = 0;
*(_QWORD *)(v3 + 96) = 0LL;
*(_QWORD *)(v3 + 84) = 0LL;
*(_DWORD *)(v3 + 112) = 0;
if ( !(unsigned int)JS_ResizeAtomHash(v3, 256) )
{
v8 = 1;
v9 = "null";
while ( 1 )
{
v10 = 2 * (v8 >= 0xD3) + 1;
if ( v8 == 210 )
v10 = 4;
v11 = strlen(v9);
if ( !(unsigned int)_JS_NewAtomInit(v3, (long long)v9, v11, v10) )
break;
v9 += v11 + 1;
if ( ++v8 == 224 )
{
if ( (int)init_class_range(v3, &js_std_class_def, 1LL, 47LL) >= 0 && (JS_NewRuntime2_cold_1(v3) & 1) == 0 )
return v3;
break;
}
}
}
JS_FreeRuntime(v3);
}
return 0LL;
}
|
JS_NewRuntime2:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV R15,RDI
MOV ESI,0x1
MOV EDX,0x228
MOV RDI,R14
CALL qword ptr [R15]
TEST RAX,RAX
JNZ 0x0011ccb8
LAB_0011cca4:
XOR EBX,EBX
LAB_0011cca6:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0011ccb8:
MOV RBX,RAX
MOV RAX,qword ptr [R15 + 0x20]
MOV qword ptr [RBX + 0x20],RAX
MOVUPS XMM0,xmmword ptr [R15]
MOVUPS XMM1,xmmword ptr [R15 + 0x10]
MOVUPS xmmword ptr [RBX + 0x10],XMM1
MOVUPS xmmword ptr [RBX],XMM0
TEST RAX,RAX
JNZ 0x0011cce3
LEA RAX,[0x11ce41]
MOV qword ptr [RBX + 0x20],RAX
LAB_0011cce3:
MOV RDI,RBX
CALL qword ptr [RBX + 0x20]
ADD RAX,0x8
MOV qword ptr [RBX + 0x28],0x1
MOV qword ptr [RBX + 0x30],RAX
XOR R15D,R15D
MOV qword ptr [RBX + 0x38],R15
MOV qword ptr [RBX + 0x40],R14
MOV qword ptr [RBX + 0xd0],0x40000
LEA RDI,[RBX + 0x198]
LEA RSI,[0x11ce44]
MOV RDX,RBX
CALL 0x00184928
LEA RAX,[RBX + 0x88]
MOV qword ptr [RBX + 0x88],RAX
MOV qword ptr [RBX + 0x90],RAX
LEA RAX,[RBX + 0x98]
MOV qword ptr [RBX + 0x98],RAX
MOV qword ptr [RBX + 0xa0],RAX
LEA RAX,[RBX + 0xa8]
MOV qword ptr [RBX + 0xa8],RAX
MOV qword ptr [RBX + 0xb0],RAX
MOV byte ptr [RBX + 0xc8],0x0
MOV RAX,RBX
ADD RAX,0x130
MOV qword ptr [RBX + 0x130],RAX
MOV qword ptr [RBX + 0x138],RAX
MOV dword ptr [RBX + 0x50],R15D
MOV qword ptr [RBX + 0x60],R15
MOV qword ptr [RBX + 0x54],R15
MOV dword ptr [RBX + 0x70],R15D
MOV RDI,RBX
MOV ESI,0x100
CALL 0x0011090e
TEST EAX,EAX
JNZ 0x0011ce22
MOV R12D,0x1
LEA R14,[0x19d8f0]
MOV R13D,0x4
LAB_0011cdb6:
XOR EAX,EAX
CMP R12D,0xd3
SETNC AL
CMP R12D,0xd2
LEA EBP,[RAX + RAX*0x1 + 0x1]
CMOVZ EBP,R13D
MOV RDI,R14
CALL 0x0010e240
MOV R15,RAX
MOV RDI,RBX
MOV RSI,R14
MOV EDX,R15D
MOV ECX,EBP
CALL 0x0010f48e
TEST EAX,EAX
JZ 0x0011ce22
MOVSXD RAX,R15D
ADD R14,RAX
INC R14
INC R12D
CMP R12D,0xe0
JNZ 0x0011cdb6
LEA RSI,[0x1c76b0]
MOV RDI,RBX
MOV EDX,0x1
MOV ECX,0x2f
CALL 0x0011ce49
TEST EAX,EAX
JNS 0x0011ce2f
LAB_0011ce22:
MOV RDI,RBX
CALL 0x0011d50a
JMP 0x0011cca4
LAB_0011ce2f:
MOV RDI,RBX
CALL 0x00112e1c
TEST AL,0x1
JZ 0x0011cca6
JMP 0x0011ce22
|
int4 * JS_NewRuntime2(int8 *param_1,int8 param_2)
{
int4 uVar1;
int4 uVar2;
int4 uVar3;
int4 uVar4;
int4 uVar5;
int4 uVar6;
int4 uVar7;
int iVar8;
int4 *puVar9;
long lVar10;
size_t sVar11;
ulong uVar12;
char cVar13;
uint uVar14;
char *__s;
puVar9 = (int4 *)(*(code *)*param_1)(param_2,1,0x228);
if (puVar9 != (int4 *)0x0) {
lVar10 = param_1[4];
*(long *)(puVar9 + 8) = lVar10;
uVar1 = *(int4 *)param_1;
uVar2 = *(int4 *)((long)param_1 + 4);
uVar3 = *(int4 *)(param_1 + 1);
uVar4 = *(int4 *)((long)param_1 + 0xc);
uVar5 = *(int4 *)((long)param_1 + 0x14);
uVar6 = *(int4 *)(param_1 + 3);
uVar7 = *(int4 *)((long)param_1 + 0x1c);
puVar9[4] = *(int4 *)(param_1 + 2);
puVar9[5] = uVar5;
puVar9[6] = uVar6;
puVar9[7] = uVar7;
*puVar9 = uVar1;
puVar9[1] = uVar2;
puVar9[2] = uVar3;
puVar9[3] = uVar4;
if (lVar10 == 0) {
*(code **)(puVar9 + 8) = js_malloc_usable_size_unknown;
}
lVar10 = (**(code **)(puVar9 + 8))(puVar9);
*(int8 *)(puVar9 + 10) = 1;
*(long *)(puVar9 + 0xc) = lVar10 + 8;
*(int8 *)(puVar9 + 0xe) = 0;
*(int8 *)(puVar9 + 0x10) = param_2;
*(int8 *)(puVar9 + 0x34) = 0x40000;
bf_context_init(puVar9 + 0x66,js_bf_realloc,puVar9);
*(int4 **)(puVar9 + 0x22) = puVar9 + 0x22;
*(int4 **)(puVar9 + 0x24) = puVar9 + 0x22;
*(int4 **)(puVar9 + 0x26) = puVar9 + 0x26;
*(int4 **)(puVar9 + 0x28) = puVar9 + 0x26;
*(int4 **)(puVar9 + 0x2a) = puVar9 + 0x2a;
*(int4 **)(puVar9 + 0x2c) = puVar9 + 0x2a;
*(int1 *)(puVar9 + 0x32) = 0;
*(int4 **)(puVar9 + 0x4c) = puVar9 + 0x4c;
*(int4 **)(puVar9 + 0x4e) = puVar9 + 0x4c;
puVar9[0x14] = 0;
*(int8 *)(puVar9 + 0x18) = 0;
*(int8 *)(puVar9 + 0x15) = 0;
puVar9[0x1c] = 0;
iVar8 = JS_ResizeAtomHash(puVar9,0x100);
if (iVar8 == 0) {
uVar14 = 1;
__s = "null";
do {
cVar13 = (0xd2 < uVar14) * '\x02' + '\x01';
if (uVar14 == 0xd2) {
cVar13 = '\x04';
}
sVar11 = strlen(__s);
iVar8 = __JS_NewAtomInit(puVar9,__s,sVar11 & 0xffffffff,cVar13);
if (iVar8 == 0) goto LAB_0011ce22;
__s = __s + (long)(int)sVar11 + 1;
uVar14 = uVar14 + 1;
} while (uVar14 != 0xe0);
iVar8 = init_class_range(puVar9,&js_std_class_def,1,0x2f);
if ((-1 < iVar8) && (uVar12 = JS_NewRuntime2_cold_1(puVar9), (uVar12 & 1) == 0)) {
return puVar9;
}
}
LAB_0011ce22:
JS_FreeRuntime(puVar9);
}
return (int4 *)0x0;
}
|
|
56,953
|
JS_NewRuntime2
|
bluesky950520[P]quickjs/quickjs.c
|
JSRuntime *JS_NewRuntime2(const JSMallocFunctions *mf, void *opaque)
{
JSRuntime *rt;
JSMallocState ms;
memset(&ms, 0, sizeof(ms));
ms.opaque = opaque;
ms.malloc_limit = 0;
rt = mf->js_calloc(opaque, 1, sizeof(JSRuntime));
if (!rt)
return NULL;
rt->mf = *mf;
if (!rt->mf.js_malloc_usable_size) {
/* use dummy function if none provided */
rt->mf.js_malloc_usable_size = js_malloc_usable_size_unknown;
}
/* Inline what js_malloc_rt does since we cannot use it here. */
ms.malloc_count++;
ms.malloc_size += rt->mf.js_malloc_usable_size(rt) + MALLOC_OVERHEAD;
rt->malloc_state = ms;
rt->malloc_gc_threshold = 256 * 1024;
bf_context_init(&rt->bf_ctx, js_bf_realloc, rt);
init_list_head(&rt->context_list);
init_list_head(&rt->gc_obj_list);
init_list_head(&rt->gc_zero_ref_count_list);
rt->gc_phase = JS_GC_PHASE_NONE;
#ifdef DUMP_LEAKS
init_list_head(&rt->string_list);
#endif
init_list_head(&rt->job_list);
if (JS_InitAtoms(rt))
goto fail;
/* create the object, array and function classes */
if (init_class_range(rt, js_std_class_def, JS_CLASS_OBJECT,
countof(js_std_class_def)) < 0)
goto fail;
rt->class_array[JS_CLASS_ARGUMENTS].exotic = &js_arguments_exotic_methods;
rt->class_array[JS_CLASS_STRING].exotic = &js_string_exotic_methods;
rt->class_array[JS_CLASS_MODULE_NS].exotic = &js_module_ns_exotic_methods;
rt->class_array[JS_CLASS_C_FUNCTION].call = js_call_c_function;
rt->class_array[JS_CLASS_C_FUNCTION_DATA].call = js_c_function_data_call;
rt->class_array[JS_CLASS_BOUND_FUNCTION].call = js_call_bound_function;
rt->class_array[JS_CLASS_GENERATOR_FUNCTION].call = js_generator_function_call;
if (init_shape_hash(rt))
goto fail;
rt->js_class_id_alloc = JS_CLASS_INIT_COUNT;
rt->stack_size = JS_DEFAULT_STACK_SIZE;
#ifdef __wasi__
rt->stack_size = 0;
#endif
JS_UpdateStackTop(rt);
rt->current_exception = JS_UNINITIALIZED;
return rt;
fail:
JS_FreeRuntime(rt);
return NULL;
}
|
O3
|
c
|
JS_NewRuntime2:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
movl $0x1, %esi
movl $0x228, %edx # imm = 0x228
movq %r14, %rdi
callq *(%r15)
testq %rax, %rax
jne 0x1d5a0
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x20(%r15), %rax
movq %rax, 0x20(%rbx)
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups %xmm1, 0x10(%rbx)
movups %xmm0, (%rbx)
testq %rax, %rax
jne 0x1d5cb
leaq 0x161(%rip), %rax # 0x1d728
movq %rax, 0x20(%rbx)
movq %rbx, %rdi
callq *%rax
addq $0x8, %rax
movq $0x1, 0x28(%rbx)
movq %rax, 0x30(%rbx)
xorl %r15d, %r15d
movq %r15, 0x38(%rbx)
movq %r14, 0x40(%rbx)
movq $0x40000, 0xd0(%rbx) # imm = 0x40000
leaq 0x198(%rbx), %rdi
leaq 0x127(%rip), %rsi # 0x1d72b
movq %rbx, %rdx
callq 0x8736c
leaq 0x88(%rbx), %rax
movq %rax, 0x88(%rbx)
movq %rax, 0x90(%rbx)
leaq 0x98(%rbx), %rax
movq %rax, 0x98(%rbx)
movq %rax, 0xa0(%rbx)
leaq 0xa8(%rbx), %rax
movq %rax, 0xa8(%rbx)
movq %rax, 0xb0(%rbx)
movb $0x0, 0xc8(%rbx)
movq %rbx, %rax
addq $0x130, %rax # imm = 0x130
movq %rax, 0x130(%rbx)
movq %rax, 0x138(%rbx)
movl %r15d, 0x50(%rbx)
movq %r15, 0x60(%rbx)
movq %r15, 0x54(%rbx)
movl %r15d, 0x70(%rbx)
movq %rbx, %rdi
movl $0x100, %esi # imm = 0x100
callq 0x10bfc
testl %eax, %eax
jne 0x1d709
movl $0x1, %r12d
leaq 0x831d9(%rip), %r14 # 0xa0870
movl $0x4, %r13d
xorl %eax, %eax
cmpl $0xd3, %r12d
setae %al
cmpl $0xd2, %r12d
leal 0x1(%rax,%rax), %ebp
cmovel %r13d, %ebp
movq %r14, %rdi
callq 0xe240
movq %rax, %r15
movq %rbx, %rdi
movq %r14, %rsi
movl %r15d, %edx
movl %ebp, %ecx
callq 0xf4da
testl %eax, %eax
je 0x1d709
movslq %r15d, %rax
addq %rax, %r14
incq %r14
incl %r12d
cmpl $0xe0, %r12d
jne 0x1d69d
leaq 0xacfbd(%rip), %rsi # 0xca6b0
movq %rbx, %rdi
movl $0x1, %edx
movl $0x2f, %ecx
callq 0x1d730
testl %eax, %eax
jns 0x1d716
movq %rbx, %rdi
callq 0x1dddf
jmp 0x1d58c
movq %rbx, %rdi
callq 0x13537
testb $0x1, %al
je 0x1d58e
jmp 0x1d709
|
JS_NewRuntime2:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, rsi
mov r15, rdi
mov esi, 1
mov edx, 228h
mov rdi, r14
call qword ptr [r15]
test rax, rax
jnz short loc_1D5A0
loc_1D58C:
xor ebx, ebx
loc_1D58E:
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_1D5A0:
mov rbx, rax
mov rax, [r15+20h]
mov [rbx+20h], rax
movups xmm0, xmmword ptr [r15]
movups xmm1, xmmword ptr [r15+10h]
movups xmmword ptr [rbx+10h], xmm1
movups xmmword ptr [rbx], xmm0
test rax, rax
jnz short loc_1D5CB
lea rax, js_malloc_usable_size_unknown
mov [rbx+20h], rax
loc_1D5CB:
mov rdi, rbx
call rax
add rax, 8
mov qword ptr [rbx+28h], 1
mov [rbx+30h], rax
xor r15d, r15d
mov [rbx+38h], r15
mov [rbx+40h], r14
mov qword ptr [rbx+0D0h], offset loc_40000
lea rdi, [rbx+198h]
lea rsi, js_bf_realloc
mov rdx, rbx
call bf_context_init
lea rax, [rbx+88h]
mov [rbx+88h], rax
mov [rbx+90h], rax
lea rax, [rbx+98h]
mov [rbx+98h], rax
mov [rbx+0A0h], rax
lea rax, [rbx+0A8h]
mov [rbx+0A8h], rax
mov [rbx+0B0h], rax
mov byte ptr [rbx+0C8h], 0
mov rax, rbx
add rax, 130h
mov [rbx+130h], rax
mov [rbx+138h], rax
mov [rbx+50h], r15d
mov [rbx+60h], r15
mov [rbx+54h], r15
mov [rbx+70h], r15d
mov rdi, rbx
mov esi, 100h
call JS_ResizeAtomHash
test eax, eax
jnz short loc_1D709
mov r12d, 1
lea r14, js_atom_init; "null"
mov r13d, 4
loc_1D69D:
xor eax, eax
cmp r12d, 0D3h
setnb al
cmp r12d, 0D2h
lea ebp, [rax+rax+1]
cmovz ebp, r13d
mov rdi, r14
call _strlen
mov r15, rax
mov rdi, rbx
mov rsi, r14
mov edx, r15d
mov ecx, ebp
call __JS_NewAtomInit
test eax, eax
jz short loc_1D709
movsxd rax, r15d
add r14, rax
inc r14
inc r12d
cmp r12d, 0E0h
jnz short loc_1D69D
lea rsi, js_std_class_def
mov rdi, rbx
mov edx, 1
mov ecx, 2Fh ; '/'
call init_class_range
test eax, eax
jns short loc_1D716
loc_1D709:
mov rdi, rbx
call JS_FreeRuntime
jmp loc_1D58C
loc_1D716:
mov rdi, rbx
call JS_NewRuntime2_cold_1
test al, 1
jz loc_1D58E
jmp short loc_1D709
|
long long JS_NewRuntime2(__int128 *a1, long long a2)
{
long long v2; // rax
long long v3; // rbx
long long ( *v5)(); // rax
__int128 v6; // xmm0
long long v7; // rax
unsigned int v8; // r12d
const char *v9; // r14
unsigned int v10; // ebp
int v11; // r15d
v2 = (*(long long ( **)(long long, long long, long long))a1)(a2, 1LL, 552LL);
if ( v2 )
{
v3 = v2;
v5 = (long long ( *)())*((_QWORD *)a1 + 4);
*(_QWORD *)(v3 + 32) = v5;
v6 = *a1;
*(_OWORD *)(v3 + 16) = a1[1];
*(_OWORD *)v3 = v6;
if ( !v5 )
{
v5 = js_malloc_usable_size_unknown;
*(_QWORD *)(v3 + 32) = js_malloc_usable_size_unknown;
}
v7 = ((long long ( *)(long long))v5)(v3);
*(_QWORD *)(v3 + 40) = 1LL;
*(_QWORD *)(v3 + 48) = v7 + 8;
*(_QWORD *)(v3 + 56) = 0LL;
*(_QWORD *)(v3 + 64) = a2;
*(_QWORD *)(v3 + 208) = &loc_40000;
bf_context_init(v3 + 408, js_bf_realloc, v3);
*(_QWORD *)(v3 + 136) = v3 + 136;
*(_QWORD *)(v3 + 144) = v3 + 136;
*(_QWORD *)(v3 + 152) = v3 + 152;
*(_QWORD *)(v3 + 160) = v3 + 152;
*(_QWORD *)(v3 + 168) = v3 + 168;
*(_QWORD *)(v3 + 176) = v3 + 168;
*(_BYTE *)(v3 + 200) = 0;
*(_QWORD *)(v3 + 304) = v3 + 304;
*(_QWORD *)(v3 + 312) = v3 + 304;
*(_DWORD *)(v3 + 80) = 0;
*(_QWORD *)(v3 + 96) = 0LL;
*(_QWORD *)(v3 + 84) = 0LL;
*(_DWORD *)(v3 + 112) = 0;
if ( !(unsigned int)JS_ResizeAtomHash(v3, 256) )
{
v8 = 1;
v9 = "null";
while ( 1 )
{
v10 = 2 * (v8 >= 0xD3) + 1;
if ( v8 == 210 )
v10 = 4;
v11 = strlen(v9);
if ( !(unsigned int)_JS_NewAtomInit(v3, (long long)v9, v11, v10) )
break;
v9 += v11 + 1;
if ( ++v8 == 224 )
{
if ( (int)init_class_range(v3, &js_std_class_def, 1LL, 47LL) >= 0 && (JS_NewRuntime2_cold_1(v3) & 1) == 0 )
return v3;
break;
}
}
}
JS_FreeRuntime(v3);
}
return 0LL;
}
|
JS_NewRuntime2:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV R15,RDI
MOV ESI,0x1
MOV EDX,0x228
MOV RDI,R14
CALL qword ptr [R15]
TEST RAX,RAX
JNZ 0x0011d5a0
LAB_0011d58c:
XOR EBX,EBX
LAB_0011d58e:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0011d5a0:
MOV RBX,RAX
MOV RAX,qword ptr [R15 + 0x20]
MOV qword ptr [RBX + 0x20],RAX
MOVUPS XMM0,xmmword ptr [R15]
MOVUPS XMM1,xmmword ptr [R15 + 0x10]
MOVUPS xmmword ptr [RBX + 0x10],XMM1
MOVUPS xmmword ptr [RBX],XMM0
TEST RAX,RAX
JNZ 0x0011d5cb
LEA RAX,[0x11d728]
MOV qword ptr [RBX + 0x20],RAX
LAB_0011d5cb:
MOV RDI,RBX
CALL RAX
ADD RAX,0x8
MOV qword ptr [RBX + 0x28],0x1
MOV qword ptr [RBX + 0x30],RAX
XOR R15D,R15D
MOV qword ptr [RBX + 0x38],R15
MOV qword ptr [RBX + 0x40],R14
MOV qword ptr [RBX + 0xd0],0x40000
LEA RDI,[RBX + 0x198]
LEA RSI,[0x11d72b]
MOV RDX,RBX
CALL 0x0018736c
LEA RAX,[RBX + 0x88]
MOV qword ptr [RBX + 0x88],RAX
MOV qword ptr [RBX + 0x90],RAX
LEA RAX,[RBX + 0x98]
MOV qword ptr [RBX + 0x98],RAX
MOV qword ptr [RBX + 0xa0],RAX
LEA RAX,[RBX + 0xa8]
MOV qword ptr [RBX + 0xa8],RAX
MOV qword ptr [RBX + 0xb0],RAX
MOV byte ptr [RBX + 0xc8],0x0
MOV RAX,RBX
ADD RAX,0x130
MOV qword ptr [RBX + 0x130],RAX
MOV qword ptr [RBX + 0x138],RAX
MOV dword ptr [RBX + 0x50],R15D
MOV qword ptr [RBX + 0x60],R15
MOV qword ptr [RBX + 0x54],R15
MOV dword ptr [RBX + 0x70],R15D
MOV RDI,RBX
MOV ESI,0x100
CALL 0x00110bfc
TEST EAX,EAX
JNZ 0x0011d709
MOV R12D,0x1
LEA R14,[0x1a0870]
MOV R13D,0x4
LAB_0011d69d:
XOR EAX,EAX
CMP R12D,0xd3
SETNC AL
CMP R12D,0xd2
LEA EBP,[RAX + RAX*0x1 + 0x1]
CMOVZ EBP,R13D
MOV RDI,R14
CALL 0x0010e240
MOV R15,RAX
MOV RDI,RBX
MOV RSI,R14
MOV EDX,R15D
MOV ECX,EBP
CALL 0x0010f4da
TEST EAX,EAX
JZ 0x0011d709
MOVSXD RAX,R15D
ADD R14,RAX
INC R14
INC R12D
CMP R12D,0xe0
JNZ 0x0011d69d
LEA RSI,[0x1ca6b0]
MOV RDI,RBX
MOV EDX,0x1
MOV ECX,0x2f
CALL 0x0011d730
TEST EAX,EAX
JNS 0x0011d716
LAB_0011d709:
MOV RDI,RBX
CALL 0x0011dddf
JMP 0x0011d58c
LAB_0011d716:
MOV RDI,RBX
CALL 0x00113537
TEST AL,0x1
JZ 0x0011d58e
JMP 0x0011d709
|
int4 * JS_NewRuntime2(int8 *param_1,int8 param_2)
{
int4 uVar1;
int4 uVar2;
int4 uVar3;
int4 uVar4;
int4 uVar5;
int4 uVar6;
int4 uVar7;
int iVar8;
int4 *puVar9;
code *pcVar10;
long lVar11;
size_t sVar12;
ulong uVar13;
char cVar14;
uint uVar15;
char *__s;
puVar9 = (int4 *)(*(code *)*param_1)(param_2,1,0x228);
if (puVar9 != (int4 *)0x0) {
pcVar10 = (code *)param_1[4];
*(code **)(puVar9 + 8) = pcVar10;
uVar1 = *(int4 *)param_1;
uVar2 = *(int4 *)((long)param_1 + 4);
uVar3 = *(int4 *)(param_1 + 1);
uVar4 = *(int4 *)((long)param_1 + 0xc);
uVar5 = *(int4 *)((long)param_1 + 0x14);
uVar6 = *(int4 *)(param_1 + 3);
uVar7 = *(int4 *)((long)param_1 + 0x1c);
puVar9[4] = *(int4 *)(param_1 + 2);
puVar9[5] = uVar5;
puVar9[6] = uVar6;
puVar9[7] = uVar7;
*puVar9 = uVar1;
puVar9[1] = uVar2;
puVar9[2] = uVar3;
puVar9[3] = uVar4;
if (pcVar10 == (code *)0x0) {
pcVar10 = js_malloc_usable_size_unknown;
*(code **)(puVar9 + 8) = js_malloc_usable_size_unknown;
}
lVar11 = (*pcVar10)(puVar9);
*(int8 *)(puVar9 + 10) = 1;
*(long *)(puVar9 + 0xc) = lVar11 + 8;
*(int8 *)(puVar9 + 0xe) = 0;
*(int8 *)(puVar9 + 0x10) = param_2;
*(int8 *)(puVar9 + 0x34) = 0x40000;
bf_context_init(puVar9 + 0x66,js_bf_realloc,puVar9);
*(int4 **)(puVar9 + 0x22) = puVar9 + 0x22;
*(int4 **)(puVar9 + 0x24) = puVar9 + 0x22;
*(int4 **)(puVar9 + 0x26) = puVar9 + 0x26;
*(int4 **)(puVar9 + 0x28) = puVar9 + 0x26;
*(int4 **)(puVar9 + 0x2a) = puVar9 + 0x2a;
*(int4 **)(puVar9 + 0x2c) = puVar9 + 0x2a;
*(int1 *)(puVar9 + 0x32) = 0;
*(int4 **)(puVar9 + 0x4c) = puVar9 + 0x4c;
*(int4 **)(puVar9 + 0x4e) = puVar9 + 0x4c;
puVar9[0x14] = 0;
*(int8 *)(puVar9 + 0x18) = 0;
*(int8 *)(puVar9 + 0x15) = 0;
puVar9[0x1c] = 0;
iVar8 = JS_ResizeAtomHash(puVar9,0x100);
if (iVar8 == 0) {
uVar15 = 1;
__s = "null";
do {
cVar14 = (0xd2 < uVar15) * '\x02' + '\x01';
if (uVar15 == 0xd2) {
cVar14 = '\x04';
}
sVar12 = strlen(__s);
iVar8 = __JS_NewAtomInit(puVar9,__s,sVar12 & 0xffffffff,cVar14);
if (iVar8 == 0) goto LAB_0011d709;
__s = __s + (long)(int)sVar12 + 1;
uVar15 = uVar15 + 1;
} while (uVar15 != 0xe0);
iVar8 = init_class_range(puVar9,&js_std_class_def,1,0x2f);
if ((-1 < iVar8) && (uVar13 = JS_NewRuntime2_cold_1(puVar9), (uVar13 & 1) == 0)) {
return puVar9;
}
}
LAB_0011d709:
JS_FreeRuntime(puVar9);
}
return (int4 *)0x0;
}
|
|
56,954
|
mi_reset
|
eloqsql/storage/myisam/mi_extra.c
|
int mi_reset(MI_INFO *info)
{
int error= 0;
MYISAM_SHARE *share=info->s;
DBUG_ENTER("mi_reset");
/*
Free buffers and reset the following flags:
EXTRA_CACHE, EXTRA_WRITE_CACHE, EXTRA_KEYREAD, EXTRA_QUICK
If the row buffer cache is large (for dynamic tables), reduce it
to save memory.
*/
if (info->opt_flag & (READ_CACHE_USED | WRITE_CACHE_USED))
{
info->opt_flag&= ~(READ_CACHE_USED | WRITE_CACHE_USED);
error= end_io_cache(&info->rec_cache);
}
if (share->base.blobs)
mi_alloc_rec_buff(info, -1, &info->rec_buff);
#if defined(HAVE_MMAP) && defined(HAVE_MADVISE)
if (info->opt_flag & MEMMAP_USED)
madvise((char*) share->file_map, share->state.state.data_file_length,
MADV_RANDOM);
#endif
info->opt_flag&= ~(KEY_READ_USED | REMEMBER_OLD_POS);
info->quick_mode=0;
info->lastinx= 0; /* Use first index as def */
info->last_search_keypage= info->lastpos= HA_OFFSET_ERROR;
info->page_changed= 1;
info->update= ((info->update & HA_STATE_CHANGED) | HA_STATE_NEXT_FOUND |
HA_STATE_PREV_FOUND);
DBUG_RETURN(error);
}
|
O0
|
c
|
mi_reset:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movl 0x1c8(%rax), %eax
andl $0x12, %eax
cmpl $0x0, %eax
je 0xaf5f6
movq -0x8(%rbp), %rax
movl 0x1c8(%rax), %ecx
andl $-0x13, %ecx
movl %ecx, 0x1c8(%rax)
movq -0x8(%rbp), %rdi
addq $0x220, %rdi # imm = 0x220
callq 0xe3910
movl %eax, -0xc(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x0, 0x188(%rax)
je 0xaf61e
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rdx
addq $0x120, %rdx # imm = 0x120
movq $-0x1, %rsi
callq 0xb8500
movq -0x8(%rbp), %rax
movl 0x1c8(%rax), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0xaf64d
movq -0x18(%rbp), %rax
movq 0x270(%rax), %rdi
movq -0x18(%rbp), %rax
movq 0x40(%rax), %rsi
movl $0x1, %edx
callq 0x2a450
movq -0x8(%rbp), %rax
movl 0x1c8(%rax), %ecx
andl $-0x49, %ecx
movl %ecx, 0x1c8(%rax)
movq -0x8(%rbp), %rax
movb $0x0, 0x33b(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x1d4(%rax)
movq -0x8(%rbp), %rax
movq $-0x1, 0x170(%rax)
movq -0x8(%rbp), %rax
movq $-0x1, 0x198(%rax)
movq -0x8(%rbp), %rax
movb $0x1, 0x33c(%rax)
movq -0x8(%rbp), %rax
movl 0x1d0(%rax), %ecx
andl $0x1, %ecx
orl $0x10, %ecx
orl $0x20, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x1d0(%rax)
movl -0xc(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nop
|
mi_reset:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_C], 0
mov rax, [rbp+var_8]
mov rax, [rax]
mov [rbp+var_18], rax
mov rax, [rbp+var_8]
mov eax, [rax+1C8h]
and eax, 12h
cmp eax, 0
jz short loc_AF5F6
mov rax, [rbp+var_8]
mov ecx, [rax+1C8h]
and ecx, 0FFFFFFEDh
mov [rax+1C8h], ecx
mov rdi, [rbp+var_8]
add rdi, 220h
call end_io_cache
mov [rbp+var_C], eax
loc_AF5F6:
mov rax, [rbp+var_18]
cmp dword ptr [rax+188h], 0
jz short loc_AF61E
mov rdi, [rbp+var_8]
mov rdx, [rbp+var_8]
add rdx, 120h
mov rsi, 0FFFFFFFFFFFFFFFFh
call mi_alloc_rec_buff
loc_AF61E:
mov rax, [rbp+var_8]
mov eax, [rax+1C8h]
and eax, 20h
cmp eax, 0
jz short loc_AF64D
mov rax, [rbp+var_18]
mov rdi, [rax+270h]
mov rax, [rbp+var_18]
mov rsi, [rax+40h]
mov edx, 1
call _madvise
loc_AF64D:
mov rax, [rbp+var_8]
mov ecx, [rax+1C8h]
and ecx, 0FFFFFFB7h
mov [rax+1C8h], ecx
mov rax, [rbp+var_8]
mov byte ptr [rax+33Bh], 0
mov rax, [rbp+var_8]
mov dword ptr [rax+1D4h], 0
mov rax, [rbp+var_8]
mov qword ptr [rax+170h], 0FFFFFFFFFFFFFFFFh
mov rax, [rbp+var_8]
mov qword ptr [rax+198h], 0FFFFFFFFFFFFFFFFh
mov rax, [rbp+var_8]
mov byte ptr [rax+33Ch], 1
mov rax, [rbp+var_8]
mov ecx, [rax+1D0h]
and ecx, 1
or ecx, 10h
or ecx, 20h
mov rax, [rbp+var_8]
mov [rax+1D0h], ecx
mov eax, [rbp+var_C]
mov [rbp+var_1C], eax
mov eax, [rbp+var_1C]
add rsp, 20h
pop rbp
retn
|
long long mi_reset(long long *a1)
{
long long v2; // [rsp+8h] [rbp-18h]
unsigned int v3; // [rsp+14h] [rbp-Ch]
v3 = 0;
v2 = *a1;
if ( (a1[57] & 0x12) != 0 )
{
*((_DWORD *)a1 + 114) &= 0xFFFFFFED;
v3 = end_io_cache(a1 + 68);
}
if ( *(_DWORD *)(v2 + 392) )
mi_alloc_rec_buff(a1, -1LL, a1 + 36);
if ( (a1[57] & 0x20) != 0 )
madvise(*(_QWORD *)(v2 + 624), *(_QWORD *)(v2 + 64), 1LL);
*((_DWORD *)a1 + 114) &= 0xFFFFFFB7;
*((_BYTE *)a1 + 827) = 0;
*((_DWORD *)a1 + 117) = 0;
a1[46] = -1LL;
a1[51] = -1LL;
*((_BYTE *)a1 + 828) = 1;
*((_DWORD *)a1 + 116) = a1[58] & 1 | 0x30;
return v3;
}
|
mi_reset:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x1c8]
AND EAX,0x12
CMP EAX,0x0
JZ 0x001af5f6
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x1c8]
AND ECX,0xffffffed
MOV dword ptr [RAX + 0x1c8],ECX
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x220
CALL 0x001e3910
MOV dword ptr [RBP + -0xc],EAX
LAB_001af5f6:
MOV RAX,qword ptr [RBP + -0x18]
CMP dword ptr [RAX + 0x188],0x0
JZ 0x001af61e
MOV RDI,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [RBP + -0x8]
ADD RDX,0x120
MOV RSI,-0x1
CALL 0x001b8500
LAB_001af61e:
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x1c8]
AND EAX,0x20
CMP EAX,0x0
JZ 0x001af64d
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX + 0x270]
MOV RAX,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RAX + 0x40]
MOV EDX,0x1
CALL 0x0012a450
LAB_001af64d:
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x1c8]
AND ECX,0xffffffb7
MOV dword ptr [RAX + 0x1c8],ECX
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x33b],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x1d4],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x170],-0x1
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x198],-0x1
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX + 0x33c],0x1
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0x1d0]
AND ECX,0x1
OR ECX,0x10
OR ECX,0x20
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x1d0],ECX
MOV EAX,dword ptr [RBP + -0xc]
MOV dword ptr [RBP + -0x1c],EAX
MOV EAX,dword ptr [RBP + -0x1c]
ADD RSP,0x20
POP RBP
RET
|
int4 mi_reset(long *param_1)
{
long lVar1;
int4 local_14;
local_14 = 0;
lVar1 = *param_1;
if ((*(uint *)(param_1 + 0x39) & 0x12) != 0) {
*(uint *)(param_1 + 0x39) = *(uint *)(param_1 + 0x39) & 0xffffffed;
local_14 = end_io_cache(param_1 + 0x44);
}
if (*(int *)(lVar1 + 0x188) != 0) {
mi_alloc_rec_buff(param_1,0xffffffffffffffff,param_1 + 0x24);
}
if ((*(uint *)(param_1 + 0x39) & 0x20) != 0) {
madvise(*(void **)(lVar1 + 0x270),*(size_t *)(lVar1 + 0x40),1);
}
*(uint *)(param_1 + 0x39) = *(uint *)(param_1 + 0x39) & 0xffffffb7;
*(int1 *)((long)param_1 + 0x33b) = 0;
*(int4 *)((long)param_1 + 0x1d4) = 0;
param_1[0x2e] = -1;
param_1[0x33] = -1;
*(int1 *)((long)param_1 + 0x33c) = 1;
*(uint *)(param_1 + 0x3a) = *(uint *)(param_1 + 0x3a) & 1 | 0x30;
return local_14;
}
|
|
56,955
|
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::key(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
|
llama.cpp/common/./json.hpp
|
bool key(string_t& val)
{
BasicJsonType k = BasicJsonType(val);
// check callback for key
const bool keep = callback(static_cast<int>(ref_stack.size()), parse_event_t::key, k);
key_keep_stack.push_back(keep);
// add discarded value at given key and store the reference for later
if (keep && ref_stack.back())
{
object_element = &(ref_stack.back()->m_data.m_value.object->operator[](val) = discarded);
}
return true;
}
|
O3
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::key(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rsp), %rdi
callq 0x79ebc
movq 0x10(%rbx), %rax
subq 0x8(%rbx), %rax
shrq $0x3, %rax
movl %eax, 0xc(%rsp)
movb $0x4, 0xb(%rsp)
cmpq $0x0, 0x90(%rbx)
je 0x859e8
leaq 0x80(%rbx), %rdi
leaq 0xc(%rsp), %rsi
leaq 0xb(%rsp), %rdx
leaq 0x10(%rsp), %rcx
callq *0x98(%rbx)
movl %eax, %ebp
leaq 0x48(%rbx), %rdi
movzbl %al, %esi
callq 0x85106
testb %bpl, %bpl
je 0x859c6
movq 0x10(%rbx), %rax
cmpq $0x0, -0x8(%rax)
je 0x859c6
leaq 0xa8(%rbx), %rsi
leaq 0x20(%rsp), %rdi
callq 0x5e9f4
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rax
movq 0x8(%rax), %rdi
movq %r14, %rsi
callq 0x86fae
leaq 0x20(%rsp), %r14
movq %rax, %rdi
movq %r14, %rsi
callq 0x5d676
movq %rax, 0x70(%rbx)
movq %r14, %rdi
xorl %esi, %esi
callq 0x4adea
movq %r14, %rdi
callq 0x4b6f6
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x4adea
movq %rbx, %rdi
callq 0x4b6f6
movb $0x1, %al
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
callq 0x265f0
movq %rax, %rbx
leaq 0x20(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x4adea
movq %r14, %rdi
callq 0x4b6f6
jmp 0x85a0c
movq %rax, %rbx
leaq 0x10(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x4adea
movq %r14, %rdi
callq 0x4b6f6
movq %rbx, %rdi
callq 0x25ca0
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE3keyERSB_:
push rbp
push r14
push rbx
sub rsp, 30h
mov r14, rsi
mov rbx, rdi
lea rdi, [rsp+48h+var_38]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
mov rax, [rbx+10h]
sub rax, [rbx+8]
shr rax, 3
mov [rsp+48h+var_3C], eax
mov [rsp+48h+var_3D], 4
cmp qword ptr [rbx+90h], 0
jz loc_859E8
lea rdi, [rbx+80h]
lea rsi, [rsp+48h+var_3C]
lea rdx, [rsp+48h+var_3D]
lea rcx, [rsp+48h+var_38]
call qword ptr [rbx+98h]
mov ebp, eax
lea rdi, [rbx+48h]
movzx esi, al
call _ZNSt6vectorIbSaIbEE9push_backEb; std::vector<bool>::push_back(bool)
test bpl, bpl
jz short loc_859C6
mov rax, [rbx+10h]
cmp qword ptr [rax-8], 0
jz short loc_859C6
lea rsi, [rbx+0A8h]
lea rdi, [rsp+48h+var_28]
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 rax, [rax-8]
mov rdi, [rax+8]
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEEixERSH_; nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator[](std::string const&)
lea r14, [rsp+48h+var_28]
mov rdi, rax
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 [rbx+70h], rax
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
loc_859C6:
lea rbx, [rsp+48h+var_38]
mov rdi, rbx
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov al, 1
add rsp, 30h
pop rbx
pop r14
pop rbp
retn
loc_859E8:
call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void)
mov rbx, rax
lea r14, [rsp+48h+var_28]
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
jmp short loc_85A0C
mov rbx, rax
loc_85A0C:
lea r14, [rsp+48h+var_38]
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, rbx
call __Unwind_Resume
|
char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::key(
long long a1,
long long a2)
{
unsigned __int8 v2; // bp
long long v3; // rax
char v5; // [rsp+Bh] [rbp-3Dh] BYREF
int v6; // [rsp+Ch] [rbp-3Ch] BYREF
unsigned __int8 v7[16]; // [rsp+10h] [rbp-38h] BYREF
unsigned __int8 v8[40]; // [rsp+20h] [rbp-28h] BYREF
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_(
v7,
a2);
v6 = (*(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 8)) >> 3;
v5 = 4;
if ( !*(_QWORD *)(a1 + 144) )
std::__throw_bad_function_call();
v2 = (*(long long ( **)(long long, int *, char *, unsigned __int8 *))(a1 + 152))(a1 + 128, &v6, &v5, v7);
std::vector<bool>::push_back(a1 + 72, v2);
if ( v2 && *(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL) )
{
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(
v8,
(unsigned __int8 *)(a1 + 168));
v3 = nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator[](
*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL) + 8LL),
a2);
*(_QWORD *)(a1 + 112) = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
v3,
(long long)v8);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v8);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v8);
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v7);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v7);
return 1;
}
|
key:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV R14,RSI
MOV RBX,RDI
LEA RDI,[RSP + 0x10]
CALL 0x00179ebc
MOV RAX,qword ptr [RBX + 0x10]
SUB RAX,qword ptr [RBX + 0x8]
SHR RAX,0x3
MOV dword ptr [RSP + 0xc],EAX
MOV byte ptr [RSP + 0xb],0x4
CMP qword ptr [RBX + 0x90],0x0
JZ 0x001859e8
LEA RDI,[RBX + 0x80]
LAB_00185948:
LEA RSI,[RSP + 0xc]
LEA RDX,[RSP + 0xb]
LEA RCX,[RSP + 0x10]
CALL qword ptr [RBX + 0x98]
MOV EBP,EAX
LEA RDI,[RBX + 0x48]
MOVZX ESI,AL
CALL 0x00185106
TEST BPL,BPL
JZ 0x001859c6
MOV RAX,qword ptr [RBX + 0x10]
CMP qword ptr [RAX + -0x8],0x0
JZ 0x001859c6
LEA RSI,[RBX + 0xa8]
LEA RDI,[RSP + 0x20]
CALL 0x0015e9f4
MOV RAX,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [RAX + -0x8]
MOV RDI,qword ptr [RAX + 0x8]
LAB_00185998:
MOV RSI,R14
CALL 0x00186fae
LEA R14,[RSP + 0x20]
MOV RDI,RAX
MOV RSI,R14
CALL 0x0015d676
MOV qword ptr [RBX + 0x70],RAX
MOV RDI,R14
XOR ESI,ESI
CALL 0x0014adea
MOV RDI,R14
CALL 0x0014b6f6
LAB_001859c6:
LEA RBX,[RSP + 0x10]
MOV RDI,RBX
XOR ESI,ESI
CALL 0x0014adea
MOV RDI,RBX
CALL 0x0014b6f6
MOV AL,0x1
ADD RSP,0x30
POP RBX
POP R14
POP RBP
RET
LAB_001859e8:
CALL 0x001265f0
|
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::key(std::__cxx11::string&) */
int8 __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::key(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this,string *param_1)
{
bool bVar1;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*pbVar2;
int8 uVar3;
int1 local_3d;
int4 local_3c;
data local_38 [16];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_28 [16];
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SH_EE5valueEiE4typeELi0EEEOT_
(local_38);
local_3c = (int4)((ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3);
local_3d = 4;
if (*(long *)(this + 0x90) != 0) {
/* try { // try from 00185948 to 0018598b has its CatchHandler @ 00185a09 */
bVar1 = (bool)(**(code **)(this + 0x98))(this + 0x80,&local_3c,&local_3d,local_38);
std::vector<bool,std::allocator<bool>>::push_back
((vector<bool,std::allocator<bool>> *)(this + 0x48),bVar1);
if ((bVar1 != false) && (*(long *)(*(long *)(this + 0x10) + -8) != 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_28,(basic_json *)(this + 0xa8));
/* try { // try from 00185998 to 0018599f has its CatchHandler @ 001859ed */
pbVar2 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
::operator[](*(ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>
**)(*(long *)(*(long *)(this + 0x10) + -8) + 8),param_1);
uVar3 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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=(pbVar2,(data *)local_28);
*(int8 *)(this + 0x70) = uVar3;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81((data *)local_28,0));
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)local_28);
}
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_38,0));
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_38);
return 1;
}
/* WARNING: Subroutine does not return */
/* try { // try from 001859e8 to 001859ec has its CatchHandler @ 00185a09 */
std::__throw_bad_function_call();
}
|
|
56,956
|
add_slave_statements
|
eloqsql/client/mysqldump.c
|
static int add_slave_statements(void)
{
if (opt_comments)
fprintf(md_result_file,
"\n--\n-- start slave statement to make a recovery dump)\n--\n\n");
if (multi_source)
fprintf(md_result_file, "START ALL SLAVES;\n");
else
fprintf(md_result_file, "START SLAVE;\n");
return(0);
}
|
O0
|
c
|
add_slave_statements:
pushq %rbp
movq %rsp, %rbp
cmpb $0x0, 0x3c4eef(%rip) # 0x4015ea
je 0x3c712
movq 0x3c4dac(%rip), %rdi # 0x4014b0
leaq 0xa2bb3(%rip), %rsi # 0xdf2be
movb $0x0, %al
callq 0x381d0
cmpl $0x0, 0x3c4f07(%rip) # 0x401620
je 0x3c732
movq 0x3c4d8e(%rip), %rdi # 0x4014b0
leaq 0xa2bd0(%rip), %rsi # 0xdf2f9
movb $0x0, %al
callq 0x381d0
jmp 0x3c747
movq 0x3c4d77(%rip), %rdi # 0x4014b0
leaq 0xa2bcc(%rip), %rsi # 0xdf30c
movb $0x0, %al
callq 0x381d0
xorl %eax, %eax
popq %rbp
retq
nopl (%rax,%rax)
|
add_slave_statements:
push rbp
mov rbp, rsp
cmp cs:opt_comments, 0
jz short loc_3C712
mov rdi, cs:md_result_file
lea rsi, aStartSlaveStat; "\n--\n-- start slave statement to make "...
mov al, 0
call _fprintf
loc_3C712:
cmp cs:multi_source, 0
jz short loc_3C732
mov rdi, cs:md_result_file
lea rsi, aStartAllSlaves; "START ALL SLAVES;\n"
mov al, 0
call _fprintf
jmp short loc_3C747
loc_3C732:
mov rdi, cs:md_result_file
lea rsi, aStartSlave; "START SLAVE;\n"
mov al, 0
call _fprintf
loc_3C747:
xor eax, eax
pop rbp
retn
|
long long add_slave_statements()
{
if ( opt_comments )
fprintf(md_result_file, "\n--\n-- start slave statement to make a recovery dump)\n--\n\n");
if ( multi_source )
fprintf(md_result_file, "START ALL SLAVES;\n");
else
fprintf(md_result_file, "START SLAVE;\n");
return 0LL;
}
|
add_slave_statements:
PUSH RBP
MOV RBP,RSP
CMP byte ptr [0x005015ea],0x0
JZ 0x0013c712
MOV RDI,qword ptr [0x005014b0]
LEA RSI,[0x1df2be]
MOV AL,0x0
CALL 0x001381d0
LAB_0013c712:
CMP dword ptr [0x00501620],0x0
JZ 0x0013c732
MOV RDI,qword ptr [0x005014b0]
LEA RSI,[0x1df2f9]
MOV AL,0x0
CALL 0x001381d0
JMP 0x0013c747
LAB_0013c732:
MOV RDI,qword ptr [0x005014b0]
LEA RSI,[0x1df30c]
MOV AL,0x0
CALL 0x001381d0
LAB_0013c747:
XOR EAX,EAX
POP RBP
RET
|
int8 add_slave_statements(void)
{
if (opt_comments != '\0') {
fprintf(md_result_file,"\n--\n-- start slave statement to make a recovery dump)\n--\n\n");
}
if (multi_source == 0) {
fprintf(md_result_file,"START SLAVE;\n");
}
else {
fprintf(md_result_file,"START ALL SLAVES;\n");
}
return 0;
}
|
|
56,957
|
my_rmtree
|
eloqsql/mysys/my_delete.c
|
int my_rmtree(const char *dir, myf MyFlags)
{
char path[FN_REFLEN];
char sep[] = { FN_LIBCHAR, 0 };
int err = 0;
uint i;
MY_DIR *dir_info = my_dir(dir, MYF(MY_DONT_SORT | MY_WANT_STAT));
if (!dir_info)
return 1;
for (i = 0; i < dir_info->number_of_files; i++)
{
FILEINFO *file = dir_info->dir_entry + i;
/* Skip "." and ".." */
if (!strcmp(file->name, ".") || !strcmp(file->name, ".."))
continue;
strxnmov(path, sizeof(path), dir, sep, file->name, NULL);
if (!MY_S_ISDIR(file->mystat->st_mode))
{
err = my_delete(path, MyFlags);
#ifdef _WIN32
/*
On Windows, check and possible reset readonly attribute.
my_delete(), or DeleteFile does not remove theses files.
*/
if (err)
{
DWORD attr = GetFileAttributes(path);
if (attr != INVALID_FILE_ATTRIBUTES &&
(attr & FILE_ATTRIBUTE_READONLY))
{
SetFileAttributes(path, attr &~FILE_ATTRIBUTE_READONLY);
err = my_delete(path, MyFlags);
}
}
#endif
}
else
err = my_rmtree(path, MyFlags);
if (err)
break;
}
my_dirend(dir_info);
if (!err)
err = rmdir(dir);
return err;
}
|
O3
|
c
|
my_rmtree:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x228, %rsp # imm = 0x228
movq %rsi, -0x240(%rbp)
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movw $0x2f, -0x232(%rbp)
movl $0x4000, %esi # imm = 0x4000
movq %rdi, -0x248(%rbp)
callq 0x59be1
testq %rax, %rax
je 0x58631
movq %rax, %r15
movl 0x8(%rax), %eax
testl %eax, %eax
je 0x58618
movl $0x8, %r14d
leaq -0x230(%rbp), %rbx
xorl %r12d, %r12d
movq (%r15), %r13
movq -0x8(%r13,%r14), %r8
cmpb $0x2e, (%r8)
jne 0x585a1
cmpb $0x0, 0x1(%r8)
je 0x58606
cmpb $0x2e, 0x1(%r8)
jne 0x585a1
cmpb $0x0, 0x2(%r8)
je 0x58606
movl $0x200, %esi # imm = 0x200
movq %rbx, %rdi
movq -0x248(%rbp), %rdx
leaq -0x232(%rbp), %rcx
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x8f760
movq (%r13,%r14), %rax
movl 0x18(%rax), %eax
movl $0xf000, %ecx # imm = 0xF000
andl %ecx, %eax
movq %rbx, %rdi
cmpl $0x4000, %eax # imm = 0x4000
jne 0x585e8
movq -0x240(%rbp), %rsi
callq 0x58515
jmp 0x585f4
movq -0x240(%rbp), %rsi
callq 0x58440
movl %eax, %r13d
testl %eax, %eax
jne 0x58639
movl 0x8(%r15), %eax
leaq -0x230(%rbp), %rbx
incq %r12
movl %eax, %ecx
addq $0x10, %r14
cmpq %rcx, %r12
jb 0x5857e
movq %r15, %rdi
callq 0x59bb0
movq -0x248(%rbp), %rdi
callq 0x28130
movl %eax, %r13d
jmp 0x58641
movl $0x1, %r13d
jmp 0x58641
movq %r15, %rdi
callq 0x59bb0
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x58665
movl %r13d, %eax
addq $0x228, %rsp # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x283f0
nop
|
my_rmtree:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 228h
mov [rbp+var_240], rsi
mov rax, fs:28h
mov [rbp+var_30], rax
mov [rbp+var_232], 2Fh ; '/'
mov esi, 4000h
mov [rbp+var_248], rdi
call my_dir
test rax, rax
jz loc_58631
mov r15, rax
mov eax, [rax+8]
test eax, eax
jz loc_58618
mov r14d, 8
lea rbx, [rbp+var_230]
xor r12d, r12d
loc_5857E:
mov r13, [r15]
mov r8, [r13+r14-8]
cmp byte ptr [r8], 2Eh ; '.'
jnz short loc_585A1
cmp byte ptr [r8+1], 0
jz short loc_58606
cmp byte ptr [r8+1], 2Eh ; '.'
jnz short loc_585A1
cmp byte ptr [r8+2], 0
jz short loc_58606
loc_585A1:
mov esi, 200h
mov rdi, rbx
mov rdx, [rbp+var_248]
lea rcx, [rbp+var_232]
xor r9d, r9d
xor eax, eax
call strxnmov
mov rax, [r13+r14+0]
mov eax, [rax+18h]
mov ecx, 0F000h
and eax, ecx
mov rdi, rbx
cmp eax, 4000h
jnz short loc_585E8
mov rsi, [rbp+var_240]
call my_rmtree
jmp short loc_585F4
loc_585E8:
mov rsi, [rbp+var_240]
call my_delete
loc_585F4:
mov r13d, eax
test eax, eax
jnz short loc_58639
mov eax, [r15+8]
lea rbx, [rbp+var_230]
loc_58606:
inc r12
mov ecx, eax
add r14, 10h
cmp r12, rcx
jb loc_5857E
loc_58618:
mov rdi, r15
call my_dirend
mov rdi, [rbp+var_248]
call _rmdir
mov r13d, eax
jmp short loc_58641
loc_58631:
mov r13d, 1
jmp short loc_58641
loc_58639:
mov rdi, r15
call my_dirend
loc_58641:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_58665
mov eax, r13d
add rsp, 228h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_58665:
call ___stack_chk_fail
|
long long my_rmtree(long long a1, long long a2)
{
long long v2; // rax
long long v3; // r15
unsigned int v4; // eax
long long v5; // r14
unsigned long long i; // r12
long long v7; // r13
_BYTE *v8; // r8
unsigned int v9; // eax
unsigned int v10; // r13d
char v12; // [rsp+0h] [rbp-250h]
__int16 v13; // [rsp+1Eh] [rbp-232h] BYREF
_BYTE v14[512]; // [rsp+20h] [rbp-230h] BYREF
unsigned long long v15; // [rsp+220h] [rbp-30h]
v15 = __readfsqword(0x28u);
v13 = 47;
v2 = my_dir(a1, 0x4000LL);
if ( v2 )
{
v3 = v2;
v4 = *(_DWORD *)(v2 + 8);
if ( v4 )
{
v5 = 8LL;
for ( i = 0LL; i < v4; ++i )
{
v7 = *(_QWORD *)v3;
v8 = *(_BYTE **)(*(_QWORD *)v3 + v5 - 8);
if ( *v8 != 46 || v8[1] && (v8[1] != 46 || v8[2]) )
{
strxnmov((unsigned int)v14, 512, a1, (unsigned int)&v13, (_DWORD)v8, 0, v12);
if ( (*(_DWORD *)(*(_QWORD *)(v7 + v5) + 24LL) & 0xF000) == 0x4000 )
v9 = my_rmtree(v14, a2);
else
v9 = my_delete((long long)v14, a2);
v10 = v9;
if ( v9 )
{
my_dirend(v3);
return v10;
}
v4 = *(_DWORD *)(v3 + 8);
}
v5 += 16LL;
}
}
my_dirend(v3);
return (unsigned int)rmdir(a1);
}
else
{
return 1;
}
}
|
my_rmtree:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x228
MOV qword ptr [RBP + -0x240],RSI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV word ptr [RBP + -0x232],0x2f
MOV ESI,0x4000
MOV qword ptr [RBP + -0x248],RDI
CALL 0x00159be1
TEST RAX,RAX
JZ 0x00158631
MOV R15,RAX
MOV EAX,dword ptr [RAX + 0x8]
TEST EAX,EAX
JZ 0x00158618
MOV R14D,0x8
LEA RBX,[RBP + -0x230]
XOR R12D,R12D
LAB_0015857e:
MOV R13,qword ptr [R15]
MOV R8,qword ptr [R13 + R14*0x1 + -0x8]
CMP byte ptr [R8],0x2e
JNZ 0x001585a1
CMP byte ptr [R8 + 0x1],0x0
JZ 0x00158606
CMP byte ptr [R8 + 0x1],0x2e
JNZ 0x001585a1
CMP byte ptr [R8 + 0x2],0x0
JZ 0x00158606
LAB_001585a1:
MOV ESI,0x200
MOV RDI,RBX
MOV RDX,qword ptr [RBP + -0x248]
LEA RCX,[RBP + -0x232]
XOR R9D,R9D
XOR EAX,EAX
CALL 0x0018f760
MOV RAX,qword ptr [R13 + R14*0x1]
MOV EAX,dword ptr [RAX + 0x18]
MOV ECX,0xf000
AND EAX,ECX
MOV RDI,RBX
CMP EAX,0x4000
JNZ 0x001585e8
MOV RSI,qword ptr [RBP + -0x240]
CALL 0x00158515
JMP 0x001585f4
LAB_001585e8:
MOV RSI,qword ptr [RBP + -0x240]
CALL 0x00158440
LAB_001585f4:
MOV R13D,EAX
TEST EAX,EAX
JNZ 0x00158639
MOV EAX,dword ptr [R15 + 0x8]
LEA RBX,[RBP + -0x230]
LAB_00158606:
INC R12
MOV ECX,EAX
ADD R14,0x10
CMP R12,RCX
JC 0x0015857e
LAB_00158618:
MOV RDI,R15
CALL 0x00159bb0
MOV RDI,qword ptr [RBP + -0x248]
CALL 0x00128130
MOV R13D,EAX
JMP 0x00158641
LAB_00158631:
MOV R13D,0x1
JMP 0x00158641
LAB_00158639:
MOV RDI,R15
CALL 0x00159bb0
LAB_00158641:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00158665
MOV EAX,R13D
ADD RSP,0x228
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00158665:
CALL 0x001283f0
|
int my_rmtree(char *param_1,int8 param_2)
{
long lVar1;
char *pcVar2;
uint uVar3;
int iVar4;
long *plVar5;
ulong uVar6;
long lVar7;
long in_FS_OFFSET;
int2 local_23a;
int1 local_238 [512];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
local_23a = 0x2f;
plVar5 = (long *)my_dir(param_1,0x4000);
if (plVar5 == (long *)0x0) {
iVar4 = 1;
}
else {
uVar3 = *(uint *)(plVar5 + 1);
if (uVar3 != 0) {
lVar7 = 8;
uVar6 = 0;
do {
lVar1 = *plVar5;
pcVar2 = *(char **)(lVar1 + -8 + lVar7);
if ((*pcVar2 != '.') || ((pcVar2[1] != '\0' && ((pcVar2[1] != '.' || (pcVar2[2] != '\0')))))
) {
strxnmov(local_238,0x200,param_1,&local_23a,pcVar2,0);
if ((*(uint *)(*(long *)(lVar1 + lVar7) + 0x18) & 0xf000) == 0x4000) {
iVar4 = my_rmtree(local_238,param_2);
}
else {
iVar4 = my_delete(local_238,param_2);
}
if (iVar4 != 0) {
my_dirend(plVar5);
goto LAB_00158641;
}
uVar3 = *(uint *)(plVar5 + 1);
}
uVar6 = uVar6 + 1;
lVar7 = lVar7 + 0x10;
} while (uVar6 < uVar3);
}
my_dirend(plVar5);
iVar4 = rmdir(param_1);
}
LAB_00158641:
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return iVar4;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
56,958
|
testing::AssertionResult& testing::AssertionResult::operator<<<char [12]>(char const (&) [12])
|
giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/include/gtest/gtest-assertion-result.h
|
AssertionResult& operator<<(const T& value) {
AppendMessage(Message() << value);
return *this;
}
|
O3
|
c
|
testing::AssertionResult& testing::AssertionResult::operator<<<char [12]>(char const (&) [12]):
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x1c968
movq (%r15), %rdi
addq $0x10, %rdi
movq %r14, %rsi
callq 0x18140
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0xe5d6
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x36c4e
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x36c6e
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, %rdi
callq 0x8990
|
_ZN7testing15AssertionResultlsINS_14TestPartResultEEERS0_RKT_:
push r15
push r14
push rbx
sub rsp, 10h
mov r14, rsi
mov rbx, rdi
lea r15, [rsp+28h+var_20]
mov rdi, r15; this
call _ZN7testing7MessageC2Ev; testing::Message::Message(void)
mov rdi, [r15]
add rdi, 10h
mov rsi, r14
call _ZN7testinglsERSoRKNS_14TestPartResultE; testing::operator<<(std::ostream &,testing::TestPartResult const&)
lea rsi, [rsp+28h+var_20]; testing::Message *
mov rdi, rbx; this
call _ZN7testing15AssertionResult13AppendMessageERKNS_7MessageE; testing::AssertionResult::AppendMessage(testing::Message const&)
mov rdi, [rsp+28h+var_20]
test rdi, rdi
jz short loc_36C4E
mov rax, [rdi]
call qword ptr [rax+8]
loc_36C4E:
mov rax, rbx
add rsp, 10h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
mov rdi, [rsp+arg_0]
test rdi, rdi
jz short loc_36C6E
mov rax, [rdi]
call qword ptr [rax+8]
loc_36C6E:
mov rdi, rbx
call __Unwind_Resume
|
testing::AssertionResult * testing::AssertionResult::operator<<<testing::TestPartResult>(
testing::AssertionResult *this,
int *a2)
{
_QWORD v3[4]; // [rsp+8h] [rbp-20h] BYREF
testing::Message::Message((testing::Message *)v3);
testing::operator<<(v3[0] + 16LL, a2);
testing::AssertionResult::AppendMessage(this, (const testing::Message *)v3);
if ( v3[0] )
(*(void ( **)(_QWORD))(*(_QWORD *)v3[0] + 8LL))(v3[0]);
return this;
}
|
operator<<:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV R14,RSI
MOV RBX,RDI
LEA R15,[RSP + 0x8]
MOV RDI,R15
CALL 0x0011c968
MOV RDI,qword ptr [R15]
ADD RDI,0x10
LAB_00136c29:
MOV RSI,R14
CALL 0x00118140
LEA RSI,[RSP + 0x8]
MOV RDI,RBX
CALL 0x0010e5d6
LAB_00136c3e:
MOV RDI,qword ptr [RSP + 0x8]
TEST RDI,RDI
JZ 0x00136c4e
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
LAB_00136c4e:
MOV RAX,RBX
ADD RSP,0x10
POP RBX
POP R14
POP R15
RET
|
/* testing::AssertionResult&
testing::AssertionResult::TEMPNAMEPLACEHOLDERVALUE(testing::TestPartResult const&) */
AssertionResult * __thiscall
testing::AssertionResult::operator<<(AssertionResult *this,TestPartResult *param_1)
{
long *local_20;
Message::Message((Message *)&local_20);
/* try { // try from 00136c29 to 00136c3d has its CatchHandler @ 00136c5b */
testing::operator<<((ostream *)(local_20 + 2),param_1);
AppendMessage((Message *)this);
if (local_20 != (long *)0x0) {
(**(code **)(*local_20 + 8))();
}
return this;
}
|
|
56,959
|
nglog::LogDestination::~LogDestination()
|
ng-log[P]ng-log/src/logging.cc
|
void LogDestination::SetLoggerImpl(base::Logger* logger) {
if (logger_ == logger) {
// Prevent releasing currently held sink on reset
return;
}
if (logger_ && logger_ != &fileobject_) {
// Delete user-specified logger set via SetLogger().
delete logger_;
}
logger_ = logger;
}
|
O1
|
cpp
|
nglog::LogDestination::~LogDestination():
pushq %rbx
movq %rdi, %rbx
movq 0xc8(%rdi), %rdi
cmpq %rbx, %rdi
je 0xa97a
testq %rdi, %rdi
je 0xa973
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, 0xc8(%rbx)
movq %rbx, %rdi
popq %rbx
jmp 0xa980
|
_ZN5nglog14LogDestinationD2Ev:
push rbx; Alternative name is 'nglog::LogDestination::~LogDestination()'
mov rbx, rdi
mov rdi, [rdi+0C8h]
cmp rdi, rbx
jz short loc_A97A
test rdi, rdi
jz short loc_A973
mov rax, [rdi]
call qword ptr [rax+8]
loc_A973:
mov [rbx+0C8h], rbx
loc_A97A:
mov rdi, rbx; this
pop rbx
jmp short $+2; nglog::`anonymous namespace'::LogFileObject::~LogFileObject()
|
void nglog::LogDestination::~LogDestination(nglog::LogDestination *this)
{
nglog::LogDestination *v2; // rdi
v2 = (nglog::LogDestination *)*((_QWORD *)this + 25);
if ( v2 != this )
{
if ( v2 )
(*(void ( **)(nglog::LogDestination *))(*(_QWORD *)v2 + 8LL))(v2);
*((_QWORD *)this + 25) = this;
}
nglog::`anonymous namespace'::LogFileObject::~LogFileObject(this);
}
|
~LogDestination:
PUSH RBX
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0xc8]
CMP RDI,RBX
JZ 0x0010a97a
TEST RDI,RDI
JZ 0x0010a973
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
LAB_0010a973:
MOV qword ptr [RBX + 0xc8],RBX
LAB_0010a97a:
MOV RDI,RBX
POP RBX
JMP 0x0010a980
|
/* nglog::LogDestination::~LogDestination() */
void __thiscall nglog::LogDestination::~LogDestination(LogDestination *this)
{
LogDestination *pLVar1;
pLVar1 = *(LogDestination **)(this + 200);
if (pLVar1 != this) {
if (pLVar1 != (LogDestination *)0x0) {
(**(code **)(*(long *)pLVar1 + 8))();
}
*(LogDestination **)(this + 200) = this;
}
(anonymous_namespace)::LogFileObject::~LogFileObject((LogFileObject *)this);
return;
}
|
|
56,960
|
nglog::LogDestination::~LogDestination()
|
ng-log[P]ng-log/src/logging.cc
|
void LogDestination::SetLoggerImpl(base::Logger* logger) {
if (logger_ == logger) {
// Prevent releasing currently held sink on reset
return;
}
if (logger_ && logger_ != &fileobject_) {
// Delete user-specified logger set via SetLogger().
delete logger_;
}
logger_ = logger;
}
|
O3
|
cpp
|
nglog::LogDestination::~LogDestination():
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0xc8(%rdi), %rdi
cmpq %rsi, %rdi
je 0xa885
movq %rsi, %rbx
testq %rdi, %rdi
sete %al
cmpq %r14, %rdi
sete %cl
orb %al, %cl
jne 0xa87e
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, 0xc8(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
|
_ZN5nglog14LogDestination13SetLoggerImplEPNS_4base6LoggerE:
push r14
push rbx
push rax
mov r14, rdi
mov rdi, [rdi+0C8h]
cmp rdi, rsi
jz short loc_A885
mov rbx, rsi
test rdi, rdi
setz al
cmp rdi, r14
setz cl
or cl, al
jnz short loc_A87E
mov rax, [rdi]
call qword ptr [rax+8]
loc_A87E:
mov [r14+0C8h], rbx
loc_A885:
add rsp, 8
pop rbx
pop r14
retn
|
char nglog::LogDestination::SetLoggerImpl(nglog::LogDestination *this, nglog::base::Logger *a2)
{
nglog::base::Logger *v3; // rdi
char result; // al
v3 = (nglog::base::Logger *)*((_QWORD *)this + 25);
if ( v3 != a2 )
{
result = v3 == 0LL;
if ( v3 != 0LL && v3 != this )
result = (*(long long ( **)(nglog::base::Logger *))(*(_QWORD *)v3 + 8LL))(v3);
*((_QWORD *)this + 25) = a2;
}
return result;
}
|
SetLoggerImpl:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RDI
MOV RDI,qword ptr [RDI + 0xc8]
CMP RDI,RSI
JZ 0x0010a885
MOV RBX,RSI
TEST RDI,RDI
SETZ AL
CMP RDI,R14
SETZ CL
OR CL,AL
JNZ 0x0010a87e
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
LAB_0010a87e:
MOV qword ptr [R14 + 0xc8],RBX
LAB_0010a885:
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* nglog::LogDestination::SetLoggerImpl(nglog::base::Logger*) */
void __thiscall nglog::LogDestination::SetLoggerImpl(LogDestination *this,Logger *param_1)
{
Logger *pLVar1;
pLVar1 = *(Logger **)(this + 200);
if (pLVar1 != param_1) {
if (pLVar1 != (Logger *)this && pLVar1 != (Logger *)0x0) {
(**(code **)(*(long *)pLVar1 + 8))();
}
*(Logger **)(this + 200) = param_1;
}
return;
}
|
|
56,961
|
common_init()
|
llama.cpp/common/common.cpp
|
void common_init() {
llama_log_set([](ggml_log_level level, const char * text, void * /*user_data*/) {
if (LOG_DEFAULT_LLAMA <= common_log_verbosity_thold) {
common_log_add(common_log_main(), level, "%s", text);
}
}, NULL);
#ifdef NDEBUG
const char * build_type = "";
#else
const char * build_type = " (debug)";
#endif
LOG_INF("build: %d (%s) with %s for %s%s\n", LLAMA_BUILD_NUMBER, LLAMA_COMMIT, LLAMA_COMPILER, LLAMA_BUILD_TARGET, build_type);
}
|
O3
|
cpp
|
common_init():
pushq %rax
leaq 0x45cf(%rip), %rdi # 0x57be6
xorl %esi, %esi
callq 0x17a00
leaq 0x256eb(%rip), %rax # 0x78d10
cmpl $0x0, (%rax)
js 0x53679
callq 0x59b9f
leaq 0x2546a(%rip), %rcx # 0x78aa0
movl (%rcx), %ecx
leaq 0x25469(%rip), %rdx # 0x78aa8
movq (%rdx), %r8
leaq 0x25467(%rip), %rdx # 0x78ab0
movq (%rdx), %r9
leaq 0x25465(%rip), %r10 # 0x78ab8
leaq 0x85f2(%rip), %r11 # 0x5bc4c
leaq 0xf3dc(%rip), %rdx # 0x62a3d
movq %rax, %rdi
movl $0x2, %esi
xorl %eax, %eax
pushq %r11
pushq (%r10)
callq 0x59c3c
addq $0x10, %rsp
popq %rax
retq
|
_Z11common_initv:
push rax
lea rdi, _ZZ11common_initvEN3$_08__invokeE14ggml_log_levelPKcPv; common_init(void)::$_0::__invoke(ggml_log_level,char const*,void *)
xor esi, esi
call _llama_log_set
lea rax, common_log_verbosity_thold
cmp dword ptr [rax], 0
js short loc_53679
call _Z15common_log_mainv; common_log_main(void)
lea rcx, LLAMA_BUILD_NUMBER
mov ecx, [rcx]
lea rdx, LLAMA_COMMIT
mov r8, [rdx]
lea rdx, LLAMA_COMPILER
mov r9, [rdx]
lea r10, LLAMA_BUILD_TARGET
lea r11, aNoteDebugGramm+0CAh; ""
lea rdx, aBuildDSWithSFo; "build: %d (%s) with %s for %s%s\n"
mov rdi, rax
mov esi, 2
xor eax, eax
push r11
push qword ptr [r10]
call _Z14common_log_addP10common_log14ggml_log_levelPKcz; common_log_add(common_log *,ggml_log_level,char const*,...)
add rsp, 10h
loc_53679:
pop rax
retn
|
void __spoils<rdx,rcx,r8,r9,r10,r11,xmm4,xmm5> common_init(void)
{
int v0; // eax
llama_log_set(common_init(void)::$_0::__invoke, 0LL);
if ( common_log_verbosity_thold >= 0 )
{
v0 = common_log_main();
common_log_add(
v0,
2,
(unsigned int)"build: %d (%s) with %s for %s%s\n",
LLAMA_BUILD_NUMBER,
(_DWORD)LLAMA_COMMIT,
(_DWORD)LLAMA_COMPILER);
}
}
|
common_init:
PUSH RAX
LEA RDI,[0x157be6]
XOR ESI,ESI
CALL 0x00117a00
LEA RAX,[0x178d10]
CMP dword ptr [RAX],0x0
JS 0x00153679
CALL 0x00159b9f
LEA RCX,[0x178aa0]
MOV ECX,dword ptr [RCX]
LEA RDX,[0x178aa8]
MOV R8,qword ptr [RDX]
LEA RDX,[0x178ab0]
MOV R9,qword ptr [RDX]
LEA R10,[0x178ab8]
LEA R11,[0x15bc4c]
LEA RDX,[0x162a3d]
MOV RDI,RAX
MOV ESI,0x2
XOR EAX,EAX
PUSH R11
PUSH qword ptr [R10]
CALL 0x00159c3c
ADD RSP,0x10
LAB_00153679:
POP RAX
RET
|
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* common_init() */
int8 common_init(void)
{
int8 in_RAX;
int8 uVar1;
llama_log_set(common_init()::$_0::__invoke,0);
if (-1 < common_log_verbosity_thold) {
uVar1 = common_log_main();
common_log_add(uVar1,2,"build: %d (%s) with %s for %s%s\n",LLAMA_BUILD_NUMBER,LLAMA_COMMIT,
LLAMA_COMPILER,LLAMA_BUILD_TARGET,"");
}
return in_RAX;
}
|
|
56,962
|
gguf_set_val_i8
|
llama.cpp/ggml/src/gguf.cpp
|
void gguf_set_val_i8(struct gguf_context * ctx, const char * key, int8_t val) {
gguf_check_reserved_keys(key, val);
gguf_remove_key(ctx, key);
ctx->kv.emplace_back(key, val);
}
|
O3
|
cpp
|
gguf_set_val_i8:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, 0x8(%rsp)
movb %dl, 0x6(%rsp)
leaq 0x10(%rsp), %r15
leaq 0x7(%rsp), %rdx
movq %r15, %rdi
callq 0x17d20
leaq 0x1bff1(%rip), %rsi # 0x59da2
movq %r15, %rdi
callq 0x163d0
testl %eax, %eax
je 0x3de03
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3ddd8
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x17080
movq %rbx, %rdi
movq %r14, %rsi
callq 0x17670
addq $0x8, %rbx
leaq 0x8(%rsp), %rsi
leaq 0x6(%rsp), %rdx
movq %rbx, %rdi
callq 0x17370
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x1bf3b(%rip), %rdi # 0x59d45
leaq 0x1c75b(%rip), %rdx # 0x5a56c
movl $0x3a8, %esi # imm = 0x3A8
xorl %eax, %eax
callq 0x17c80
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3de3b
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x17080
movq %rbx, %rdi
callq 0x17e50
|
gguf_set_val_i8:
push r15
push r14
push rbx
sub rsp, 30h
mov r14, rsi
mov rbx, rdi
mov [rsp+48h+var_40], rsi
mov [rsp+48h+var_42], dl
lea r15, [rsp+48h+var_38]
lea rdx, [rsp+48h+var_41]
mov rdi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rsi, aGeneralAlignme; "general.alignment"
mov rdi, r15
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_3DE03
lea rax, [rsp+48h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_3DDD8
mov rsi, [rsp+48h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3DDD8:
mov rdi, rbx
mov rsi, r14
call _gguf_remove_key
add rbx, 8
lea rsi, [rsp+48h+var_40]
lea rdx, [rsp+48h+var_42]
mov rdi, rbx
call __ZNSt6vectorI7gguf_kvSaIS0_EE12emplace_backIJRPKcRaEEERS0_DpOT_; std::vector<gguf_kv>::emplace_back<char const*&,signed char &>(char const*&,signed char &)
add rsp, 30h
pop rbx
pop r14
pop r15
retn
loc_3DE03:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github2025/llama."...
lea rdx, aGeneralAlignme_0; "general.alignment must be type u32"
mov esi, 3A8h
xor eax, eax
call _ggml_abort
mov rbx, rax
lea rax, [rsp+48h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_3DE3B
mov rsi, [rsp+48h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3DE3B:
mov rdi, rbx
call __Unwind_Resume
|
long long gguf_set_val_i8(long long a1, long long a2, char a3)
{
int v3; // ecx
int v4; // r8d
int v5; // r9d
char v7; // [rsp+6h] [rbp-42h] BYREF
char v8; // [rsp+7h] [rbp-41h] BYREF
long long v9; // [rsp+8h] [rbp-40h] BYREF
void *v10[2]; // [rsp+10h] [rbp-38h] BYREF
long long v11; // [rsp+20h] [rbp-28h] BYREF
v9 = a2;
v7 = a3;
std::string::basic_string<std::allocator<char>>(v10, a2, &v8);
if ( !(unsigned int)std::string::compare(v10, "general.alignment") )
ggml_abort(
(unsigned int)"/workspace/llm4binary/github2025/llama.cpp/ggml/src/gguf.cpp",
936,
(unsigned int)"general.alignment must be type u32",
v3,
v4,
v5);
if ( v10[0] != &v11 )
operator delete(v10[0], v11 + 1);
gguf_remove_key(a1, a2);
return std::vector<gguf_kv>::emplace_back<char const*&,signed char &>(a1 + 8, &v9, &v7);
}
|
gguf_set_val_i8:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV R14,RSI
MOV RBX,RDI
MOV qword ptr [RSP + 0x8],RSI
MOV byte ptr [RSP + 0x6],DL
LEA R15,[RSP + 0x10]
LEA RDX,[RSP + 0x7]
MOV RDI,R15
CALL 0x00117d20
LEA RSI,[0x159da2]
MOV RDI,R15
CALL 0x001163d0
TEST EAX,EAX
JZ 0x0013de03
LEA RAX,[RSP + 0x20]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0013ddd8
MOV RSI,qword ptr [RSP + 0x20]
INC RSI
CALL 0x00117080
LAB_0013ddd8:
MOV RDI,RBX
MOV RSI,R14
CALL 0x00117670
ADD RBX,0x8
LEA RSI,[RSP + 0x8]
LEA RDX,[RSP + 0x6]
MOV RDI,RBX
CALL 0x00117370
ADD RSP,0x30
POP RBX
POP R14
POP R15
RET
LAB_0013de03:
LEA RDI,[0x159d45]
LEA RDX,[0x15a56c]
MOV ESI,0x3a8
XOR EAX,EAX
CALL 0x00117c80
|
void gguf_set_val_i8(long param_1,char *param_2,int1 param_3)
{
int iVar1;
int1 local_42;
allocator local_41;
char *local_40;
long *local_38 [2];
long local_28 [2];
local_42 = param_3;
local_40 = param_2;
std::__cxx11::string::string<std::allocator<char>>((string *)local_38,param_2,&local_41);
iVar1 = std::__cxx11::string::compare((char *)local_38);
if (iVar1 != 0) {
if (local_38[0] != local_28) {
operator_delete(local_38[0],local_28[0] + 1);
}
gguf_remove_key(param_1,param_2);
std::vector<gguf_kv,std::allocator<gguf_kv>>::emplace_back<char_const*&,signed_char&>
((vector<gguf_kv,std::allocator<gguf_kv>> *)(param_1 + 8),&local_40,&local_42);
return;
}
/* try { // try from 0013de03 to 0013de1c has its CatchHandler @ 0013de1d */
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github2025/llama.cpp/ggml/src/gguf.cpp",0x3a8,
"general.alignment must be type u32");
}
|
|
56,963
|
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 0xd1455
pushq %rbp
movq %rsp, %rbp
decq %rdx
movq %rdi, %rcx
leaq 0x1(%rcx), %rax
movb $0x0, (%rcx)
cmpq %rsi, %rax
jae 0xd143f
movb $0x20, 0x1(%rcx)
addq $0x2, %rcx
movq %rcx, %rax
addq $-0x1, %rdx
setb %r8b
cmpq %rsi, %rax
jae 0xd1454
movq %rax, %rcx
testb %r8b, %r8b
jne 0xd1428
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_D1455
push rbp
mov rbp, rsp
dec rdx
mov rcx, rdi
loc_D1428:
lea rax, [rcx+1]
mov byte ptr [rcx], 0
cmp rax, rsi
jnb short loc_D143F
mov byte ptr [rcx+1], 20h ; ' '
add rcx, 2
mov rax, rcx
loc_D143F:
add rdx, 0FFFFFFFFFFFFFFFFh
setb r8b
cmp rax, rsi
jnb short loc_D1454
mov rcx, rax
test r8b, r8b
jnz short loc_D1428
loc_D1454:
pop rbp
loc_D1455:
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 0x001d1455
PUSH RBP
MOV RBP,RSP
DEC RDX
MOV RCX,RDI
LAB_001d1428:
LEA RAX,[RCX + 0x1]
MOV byte ptr [RCX],0x0
CMP RAX,RSI
JNC 0x001d143f
MOV byte ptr [RCX + 0x1],0x20
ADD RCX,0x2
MOV RAX,RCX
LAB_001d143f:
ADD RDX,-0x1
SETC R8B
CMP RAX,RSI
JNC 0x001d1454
MOV RCX,RAX
TEST R8B,R8B
JNZ 0x001d1428
LAB_001d1454:
POP RBP
LAB_001d1455:
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;
}
|
|
56,964
|
glfwInitHint
|
untodesu[P]riteg/build_O0/_deps/glfw-src/src/init.c
|
GLFWAPI void glfwInitHint(int hint, int value)
{
switch (hint)
{
case GLFW_JOYSTICK_HAT_BUTTONS:
_glfwInitHints.hatButtons = value;
return;
case GLFW_COCOA_CHDIR_RESOURCES:
_glfwInitHints.ns.chdir = value;
return;
case GLFW_COCOA_MENUBAR:
_glfwInitHints.ns.menubar = value;
return;
}
_glfwInputError(GLFW_INVALID_ENUM,
"Invalid init hint 0x%08X", hint);
}
|
O0
|
c
|
glfwInitHint:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movl -0x4(%rbp), %eax
movl %eax, -0xc(%rbp)
subl $0x50001, %eax # imm = 0x50001
je 0x22875
jmp 0x2285d
movl -0xc(%rbp), %eax
subl $0x51001, %eax # imm = 0x51001
je 0x22880
jmp 0x22869
movl -0xc(%rbp), %eax
subl $0x51002, %eax # imm = 0x51002
je 0x2288b
jmp 0x22896
movl -0x8(%rbp), %eax
movl %eax, 0xbdd7a(%rip) # 0xe05f8
jmp 0x228ac
movl -0x8(%rbp), %eax
movl %eax, 0xbdd77(%rip) # 0xe0600
jmp 0x228ac
movl -0x8(%rbp), %eax
movl %eax, 0xbdd68(%rip) # 0xe05fc
jmp 0x228ac
movl -0x4(%rbp), %edx
movl $0x10003, %edi # imm = 0x10003
leaq 0x952ba(%rip), %rsi # 0xb7b5f
movb $0x0, %al
callq 0x221a0
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
glfwInitHint:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_4], edi
mov [rbp+var_8], esi
mov eax, [rbp+var_4]
mov [rbp+var_C], eax
sub eax, 50001h
jz short loc_22875
jmp short $+2
loc_2285D:
mov eax, [rbp+var_C]
sub eax, 51001h
jz short loc_22880
jmp short $+2
loc_22869:
mov eax, [rbp+var_C]
sub eax, 51002h
jz short loc_2288B
jmp short loc_22896
loc_22875:
mov eax, [rbp+var_8]
mov dword ptr cs:_glfwInitHints, eax
jmp short loc_228AC
loc_22880:
mov eax, [rbp+var_8]
mov cs:dword_E0600, eax
jmp short loc_228AC
loc_2288B:
mov eax, [rbp+var_8]
mov dword ptr cs:_glfwInitHints+4, eax
jmp short loc_228AC
loc_22896:
mov edx, [rbp+var_4]
mov edi, 10003h
lea rsi, aInvalidInitHin; "Invalid init hint 0x%08X"
mov al, 0
call _glfwInputError
loc_228AC:
add rsp, 10h
pop rbp
retn
|
long long glfwInitHint(int a1, unsigned int a2)
{
long long result; // rax
switch ( a1 )
{
case 327681:
result = a2;
LODWORD(glfwInitHints) = a2;
break;
case 331777:
result = a2;
dword_E0600 = a2;
break;
case 331778:
result = a2;
HIDWORD(glfwInitHints) = a2;
break;
default:
return glfwInputError(0x10003u, (long long)"Invalid init hint 0x%08X", a1);
}
return result;
}
|
glfwInitHint:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV dword ptr [RBP + -0x4],EDI
MOV dword ptr [RBP + -0x8],ESI
MOV EAX,dword ptr [RBP + -0x4]
MOV dword ptr [RBP + -0xc],EAX
SUB EAX,0x50001
JZ 0x00122875
JMP 0x0012285d
LAB_0012285d:
MOV EAX,dword ptr [RBP + -0xc]
SUB EAX,0x51001
JZ 0x00122880
JMP 0x00122869
LAB_00122869:
MOV EAX,dword ptr [RBP + -0xc]
SUB EAX,0x51002
JZ 0x0012288b
JMP 0x00122896
LAB_00122875:
MOV EAX,dword ptr [RBP + -0x8]
MOV dword ptr [0x001e05f8],EAX
JMP 0x001228ac
LAB_00122880:
MOV EAX,dword ptr [RBP + -0x8]
MOV dword ptr [0x001e0600],EAX
JMP 0x001228ac
LAB_0012288b:
MOV EAX,dword ptr [RBP + -0x8]
MOV dword ptr [0x001e05fc],EAX
JMP 0x001228ac
LAB_00122896:
MOV EDX,dword ptr [RBP + -0x4]
MOV EDI,0x10003
LEA RSI,[0x1b7b5f]
MOV AL,0x0
CALL 0x001221a0
LAB_001228ac:
ADD RSP,0x10
POP RBP
RET
|
void glfwInitHint(int param_1,int4 param_2)
{
int4 uVar1;
int4 uVar2;
int4 uVar3;
uVar1 = param_2;
uVar2 = _glfwInitHints._4_4_;
uVar3 = DAT_001e0600;
if (((param_1 != 0x50001) &&
(uVar1 = (int4)_glfwInitHints, uVar3 = param_2, param_1 != 0x51001)) &&
(uVar2 = param_2, uVar3 = DAT_001e0600, param_1 != 0x51002)) {
_glfwInputError(0x10003,"Invalid init hint 0x%08X",param_1);
uVar1 = (int4)_glfwInitHints;
uVar2 = _glfwInitHints._4_4_;
uVar3 = DAT_001e0600;
}
DAT_001e0600 = uVar3;
_glfwInitHints._4_4_ = uVar2;
_glfwInitHints._0_4_ = uVar1;
return;
}
|
|
56,965
|
AST::Node::getValue[abi:cxx11]() const
|
11AgReS1SoR11[P]Graph/Common/AST/src/Node.hpp
|
std::string getValue() const noexcept { return value; }
|
O1
|
cpp
|
AST::Node::getValue[abi:cxx11]() const:
pushq %rbx
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
movq %rax, %rsi
callq 0x18bd6
movq %rbx, %rax
popq %rbx
retq
movq %rax, %rdi
callq 0x18aef
|
_ZNK3AST4Node8getValueB5cxx11Ev:
push rbx
mov rbx, rdi
lea rax, [rdi+10h]
mov [rdi], rax
mov rax, [rsi]
mov rdx, [rsi+8]
add rdx, rax
mov rsi, rax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
mov rax, rbx
pop rbx
retn
mov rdi, rax
call __clang_call_terminate
|
_QWORD * AST::Node::getValue[abi:cxx11](_QWORD *a1, _QWORD *a2)
{
*a1 = a1 + 2;
std::string::_M_construct<char *>(a1, *a2, *a2 + a2[1]);
return a1;
}
|
getValue[abi:cxx11]:
PUSH RBX
MOV RBX,RDI
LEA RAX,[RDI + 0x10]
MOV qword ptr [RDI],RAX
MOV RAX,qword ptr [RSI]
MOV RDX,qword ptr [RSI + 0x8]
ADD RDX,RAX
LAB_00118b31:
MOV RSI,RAX
CALL 0x00118bd6
MOV RAX,RBX
POP RBX
RET
|
/* AST::Node::getValue[abi:cxx11]() const */
void AST::Node::getValue_abi_cxx11_(void)
{
long *in_RSI;
long *in_RDI;
*in_RDI = (long)(in_RDI + 2);
/* try { // try from 00118b31 to 00118b38 has its CatchHandler @ 00118b3e */
std::__cxx11::string::_M_construct<char*>(in_RDI,*in_RSI,in_RSI[1] + *in_RSI);
return;
}
|
|
56,966
|
AST::Node::getValue[abi:cxx11]() const
|
11AgReS1SoR11[P]Graph/Common/AST/src/Node.hpp
|
std::string getValue() const noexcept { return value; }
|
O3
|
cpp
|
AST::Node::getValue[abi:cxx11]() const:
pushq %rbx
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
movq %rax, %rsi
callq 0x18c02
movq %rbx, %rax
popq %rbx
retq
movq %rax, %rdi
callq 0x18b14
|
_ZNK3AST4Node8getValueB5cxx11Ev:
push rbx
mov rbx, rdi
lea rax, [rdi+10h]
mov [rdi], rax
mov rax, [rsi]
mov rdx, [rsi+8]
add rdx, rax
mov rsi, rax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
mov rax, rbx
pop rbx
retn
mov rdi, rax
call __clang_call_terminate
|
_QWORD * AST::Node::getValue[abi:cxx11](_QWORD *a1, _QWORD *a2)
{
*a1 = a1 + 2;
std::string::_M_construct<char *>(a1, *a2, *a2 + a2[1]);
return a1;
}
|
getValue[abi:cxx11]:
PUSH RBX
MOV RBX,RDI
LEA RAX,[RDI + 0x10]
MOV qword ptr [RDI],RAX
MOV RAX,qword ptr [RSI]
MOV RDX,qword ptr [RSI + 0x8]
ADD RDX,RAX
LAB_00118b57:
MOV RSI,RAX
CALL 0x00118c02
MOV RAX,RBX
POP RBX
RET
|
/* AST::Node::getValue[abi:cxx11]() const */
void AST::Node::getValue_abi_cxx11_(void)
{
long *in_RSI;
long *in_RDI;
*in_RDI = (long)(in_RDI + 2);
/* try { // try from 00118b57 to 00118b5e has its CatchHandler @ 00118b64 */
std::__cxx11::string::_M_construct<char*>(in_RDI,*in_RSI,in_RSI[1] + *in_RSI);
return;
}
|
|
56,967
|
my_mb_wc_utf8mb3_quick
|
eloqsql/strings/ctype-utf8.h
|
static inline int
my_mb_wc_utf8mb3_quick(my_wc_t * pwc, const uchar *s, const uchar *e)
{
uchar c;
if (s >= e)
return MY_CS_TOOSMALL;
c= s[0];
if (c < 0x80)
{
*pwc = c;
return 1;
}
else if (c < 0xc2)
return MY_CS_ILSEQ;
else if (c < 0xe0)
{
if (s+2 > e) /* We need 2 characters */
return MY_CS_TOOSMALL2;
if (!(IS_CONTINUATION_BYTE(s[1])))
return MY_CS_ILSEQ;
*pwc= UTF8MB2_CODE(c, s[1]);
return 2;
}
else if (c < 0xf0)
{
if (s+3 > e) /* We need 3 characters */
return MY_CS_TOOSMALL3;
if (!IS_UTF8MB3_STEP2(c, s[1], s[2]))
return MY_CS_ILSEQ;
*pwc= UTF8MB3_CODE(c, s[1], s[2]);
return 3;
}
return MY_CS_ILSEQ;
}
|
O0
|
c
|
my_mb_wc_utf8mb3_quick:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jb 0x59c76
movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B
jmp 0x59df3
movq -0x18(%rbp), %rax
movb (%rax), %al
movb %al, -0x21(%rbp)
movzbl -0x21(%rbp), %eax
cmpl $0x80, %eax
jge 0x59ca3
movzbl -0x21(%rbp), %eax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x59df3
movzbl -0x21(%rbp), %eax
cmpl $0xc2, %eax
jge 0x59cba
movl $0x0, -0x4(%rbp)
jmp 0x59df3
movzbl -0x21(%rbp), %eax
cmpl $0xe0, %eax
jge 0x59d30
movq -0x18(%rbp), %rax
addq $0x2, %rax
cmpq -0x20(%rbp), %rax
jbe 0x59cdf
movl $0xffffff9a, -0x4(%rbp) # imm = 0xFFFFFF9A
jmp 0x59df3
movq -0x18(%rbp), %rax
movzbl 0x1(%rax), %eax
xorl $0x80, %eax
cmpl $0x40, %eax
jl 0x59cfd
movl $0x0, -0x4(%rbp)
jmp 0x59df3
movzbl -0x21(%rbp), %eax
andl $0x1f, %eax
movslq %eax, %rcx
shlq $0x6, %rcx
movq -0x18(%rbp), %rax
movzbl 0x1(%rax), %eax
xorl $0x80, %eax
cltq
orq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movl $0x2, -0x4(%rbp)
jmp 0x59df3
movzbl -0x21(%rbp), %eax
cmpl $0xf0, %eax
jge 0x59de6
movq -0x18(%rbp), %rax
addq $0x3, %rax
cmpq -0x20(%rbp), %rax
jbe 0x59d59
movl $0xffffff99, -0x4(%rbp) # imm = 0xFFFFFF99
jmp 0x59df3
movq -0x18(%rbp), %rax
movzbl 0x1(%rax), %eax
xorl $0x80, %eax
cmpl $0x40, %eax
jge 0x59d97
movq -0x18(%rbp), %rax
movzbl 0x2(%rax), %eax
xorl $0x80, %eax
cmpl $0x40, %eax
jge 0x59d97
movzbl -0x21(%rbp), %eax
cmpl $0xe1, %eax
jge 0x59da0
movq -0x18(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0xa0, %eax
jge 0x59da0
movl $0x0, -0x4(%rbp)
jmp 0x59df3
movzbl -0x21(%rbp), %eax
andl $0xf, %eax
movslq %eax, %rcx
shlq $0xc, %rcx
movq -0x18(%rbp), %rax
movzbl 0x1(%rax), %eax
xorl $0x80, %eax
cltq
shlq $0x6, %rax
orq %rax, %rcx
movq -0x18(%rbp), %rax
movzbl 0x2(%rax), %eax
xorl $0x80, %eax
cltq
orq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movl $0x3, -0x4(%rbp)
jmp 0x59df3
jmp 0x59de8
jmp 0x59dea
jmp 0x59dec
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax,%rax)
|
my_mb_wc_utf8mb3_quick:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jb short loc_59C76
mov [rbp+var_4], 0FFFFFF9Bh
jmp loc_59DF3
loc_59C76:
mov rax, [rbp+var_18]
mov al, [rax]
mov [rbp+var_21], al
movzx eax, [rbp+var_21]
cmp eax, 80h
jge short loc_59CA3
movzx eax, [rbp+var_21]
mov ecx, eax
mov rax, [rbp+var_10]
mov [rax], rcx
mov [rbp+var_4], 1
jmp loc_59DF3
loc_59CA3:
movzx eax, [rbp+var_21]
cmp eax, 0C2h
jge short loc_59CBA
mov [rbp+var_4], 0
jmp loc_59DF3
loc_59CBA:
movzx eax, [rbp+var_21]
cmp eax, 0E0h
jge short loc_59D30
mov rax, [rbp+var_18]
add rax, 2
cmp rax, [rbp+var_20]
jbe short loc_59CDF
mov [rbp+var_4], 0FFFFFF9Ah
jmp loc_59DF3
loc_59CDF:
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+1]
xor eax, 80h
cmp eax, 40h ; '@'
jl short loc_59CFD
mov [rbp+var_4], 0
jmp loc_59DF3
loc_59CFD:
movzx eax, [rbp+var_21]
and eax, 1Fh
movsxd rcx, eax
shl rcx, 6
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+1]
xor eax, 80h
cdqe
or rcx, rax
mov rax, [rbp+var_10]
mov [rax], rcx
mov [rbp+var_4], 2
jmp loc_59DF3
loc_59D30:
movzx eax, [rbp+var_21]
cmp eax, 0F0h
jge loc_59DE6
mov rax, [rbp+var_18]
add rax, 3
cmp rax, [rbp+var_20]
jbe short loc_59D59
mov [rbp+var_4], 0FFFFFF99h
jmp loc_59DF3
loc_59D59:
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+1]
xor eax, 80h
cmp eax, 40h ; '@'
jge short loc_59D97
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+2]
xor eax, 80h
cmp eax, 40h ; '@'
jge short loc_59D97
movzx eax, [rbp+var_21]
cmp eax, 0E1h
jge short loc_59DA0
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+1]
cmp eax, 0A0h
jge short loc_59DA0
loc_59D97:
mov [rbp+var_4], 0
jmp short loc_59DF3
loc_59DA0:
movzx eax, [rbp+var_21]
and eax, 0Fh
movsxd rcx, eax
shl rcx, 0Ch
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+1]
xor eax, 80h
cdqe
shl rax, 6
or rcx, rax
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax+2]
xor eax, 80h
cdqe
or rcx, rax
mov rax, [rbp+var_10]
mov [rax], rcx
mov [rbp+var_4], 3
jmp short loc_59DF3
loc_59DE6:
jmp short $+2
loc_59DE8:
jmp short $+2
loc_59DEA:
jmp short $+2
loc_59DEC:
mov [rbp+var_4], 0
loc_59DF3:
mov eax, [rbp+var_4]
pop rbp
retn
|
long long my_mb_wc_utf8mb3_quick(unsigned long long *a1, unsigned __int8 *a2, unsigned long long a3)
{
unsigned __int8 v4; // [rsp+1h] [rbp-21h]
if ( (unsigned long long)a2 < a3 )
{
v4 = *a2;
if ( *a2 >= 0x80u )
{
if ( v4 >= 0xC2u )
{
if ( v4 >= 0xE0u )
{
if ( v4 >= 0xF0u )
{
return 0;
}
else if ( (unsigned long long)(a2 + 3) <= a3 )
{
if ( (a2[1] ^ 0x80) < 64 && (a2[2] ^ 0x80) < 64 && (v4 >= 0xE1u || a2[1] >= 0xA0u) )
{
*a1 = a2[2] ^ 0x80u | ((long long)(a2[1] ^ 0x80u) << 6) | ((unsigned long long)(v4 & 0xF) << 12);
return 3;
}
else
{
return 0;
}
}
else
{
return (unsigned int)-103;
}
}
else if ( (unsigned long long)(a2 + 2) <= a3 )
{
if ( (a2[1] ^ 0x80) < 64 )
{
*a1 = a2[1] ^ 0x80u | ((unsigned long long)(v4 & 0x1F) << 6);
return 2;
}
else
{
return 0;
}
}
else
{
return (unsigned int)-102;
}
}
else
{
return 0;
}
}
else
{
*a1 = v4;
return 1;
}
}
else
{
return (unsigned int)-101;
}
}
|
my_mb_wc_utf8mb3_quick:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JC 0x00159c76
MOV dword ptr [RBP + -0x4],0xffffff9b
JMP 0x00159df3
LAB_00159c76:
MOV RAX,qword ptr [RBP + -0x18]
MOV AL,byte ptr [RAX]
MOV byte ptr [RBP + -0x21],AL
MOVZX EAX,byte ptr [RBP + -0x21]
CMP EAX,0x80
JGE 0x00159ca3
MOVZX EAX,byte ptr [RBP + -0x21]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00159df3
LAB_00159ca3:
MOVZX EAX,byte ptr [RBP + -0x21]
CMP EAX,0xc2
JGE 0x00159cba
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00159df3
LAB_00159cba:
MOVZX EAX,byte ptr [RBP + -0x21]
CMP EAX,0xe0
JGE 0x00159d30
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x2
CMP RAX,qword ptr [RBP + -0x20]
JBE 0x00159cdf
MOV dword ptr [RBP + -0x4],0xffffff9a
JMP 0x00159df3
LAB_00159cdf:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x1]
XOR EAX,0x80
CMP EAX,0x40
JL 0x00159cfd
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00159df3
LAB_00159cfd:
MOVZX EAX,byte ptr [RBP + -0x21]
AND EAX,0x1f
MOVSXD RCX,EAX
SHL RCX,0x6
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x1]
XOR EAX,0x80
CDQE
OR RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV dword ptr [RBP + -0x4],0x2
JMP 0x00159df3
LAB_00159d30:
MOVZX EAX,byte ptr [RBP + -0x21]
CMP EAX,0xf0
JGE 0x00159de6
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x3
CMP RAX,qword ptr [RBP + -0x20]
JBE 0x00159d59
MOV dword ptr [RBP + -0x4],0xffffff99
JMP 0x00159df3
LAB_00159d59:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x1]
XOR EAX,0x80
CMP EAX,0x40
JGE 0x00159d97
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x2]
XOR EAX,0x80
CMP EAX,0x40
JGE 0x00159d97
MOVZX EAX,byte ptr [RBP + -0x21]
CMP EAX,0xe1
JGE 0x00159da0
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x1]
CMP EAX,0xa0
JGE 0x00159da0
LAB_00159d97:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00159df3
LAB_00159da0:
MOVZX EAX,byte ptr [RBP + -0x21]
AND EAX,0xf
MOVSXD RCX,EAX
SHL RCX,0xc
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x1]
XOR EAX,0x80
CDQE
SHL RAX,0x6
OR RCX,RAX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x2]
XOR EAX,0x80
CDQE
OR RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV dword ptr [RBP + -0x4],0x3
JMP 0x00159df3
LAB_00159de6:
JMP 0x00159de8
LAB_00159de8:
JMP 0x00159dea
LAB_00159dea:
JMP 0x00159dec
LAB_00159dec:
MOV dword ptr [RBP + -0x4],0x0
LAB_00159df3:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int4 my_mb_wc_utf8mb3_quick(ulong *param_1,byte *param_2,byte *param_3)
{
byte bVar1;
int4 local_c;
if (param_2 < param_3) {
bVar1 = *param_2;
if (bVar1 < 0x80) {
*param_1 = (ulong)bVar1;
local_c = 1;
}
else if (bVar1 < 0xc2) {
local_c = 0;
}
else if (bVar1 < 0xe0) {
if (param_3 < param_2 + 2) {
local_c = 0xffffff9a;
}
else if ((param_2[1] ^ 0x80) < 0x40) {
*param_1 = (long)(int)(bVar1 & 0x1f) << 6 | (long)(int)(param_2[1] ^ 0x80);
local_c = 2;
}
else {
local_c = 0;
}
}
else if (bVar1 < 0xf0) {
if (param_3 < param_2 + 3) {
local_c = 0xffffff99;
}
else if ((((param_2[1] ^ 0x80) < 0x40) && ((param_2[2] ^ 0x80) < 0x40)) &&
((0xe0 < bVar1 || (0x9f < param_2[1])))) {
*param_1 = (long)(int)(bVar1 & 0xf) << 0xc | (long)(int)(param_2[1] ^ 0x80) << 6 |
(long)(int)(param_2[2] ^ 0x80);
local_c = 3;
}
else {
local_c = 0;
}
}
else {
local_c = 0;
}
}
else {
local_c = 0xffffff9b;
}
return local_c;
}
|
|
56,968
|
mysql_reset_connection
|
eloqsql/libmariadb/libmariadb/mariadb_lib.c
|
int STDCALL mysql_reset_connection(MYSQL *mysql)
{
int rc;
/* check if connection handler is active */
if (IS_CONNHDLR_ACTIVE(mysql))
{
if (mysql->extension->conn_hdlr->plugin && mysql->extension->conn_hdlr->plugin->reset)
return(mysql->extension->conn_hdlr->plugin->reset(mysql));
}
/* skip result sets */
if (mysql->status == MYSQL_STATUS_USE_RESULT ||
mysql->status == MYSQL_STATUS_GET_RESULT ||
mysql->status & SERVER_MORE_RESULTS_EXIST)
{
mthd_my_skip_result(mysql);
mysql->status= MYSQL_STATUS_READY;
}
rc= ma_simple_command(mysql, COM_RESET_CONNECTION, 0, 0, 0, 0);
if (rc && mysql->options.reconnect)
{
/* There is no big sense in resetting but we need reconnect */
rc= ma_simple_command(mysql, COM_RESET_CONNECTION,0,0,0,0);
}
if (rc)
return 1;
/* reset the connection in all active statements */
ma_invalidate_stmts(mysql, "mysql_reset_connection()");
free_old_query(mysql);
mysql->status= MYSQL_STATUS_READY;
mysql->affected_rows= ~(my_ulonglong)0;
mysql->insert_id= 0;
return 0;
}
|
O3
|
c
|
mysql_reset_connection:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x4f0(%rdi), %rax
testq %rax, %rax
je 0x1d6cd
movq (%rax), %rax
testq %rax, %rax
je 0x1d6cd
movq (%rax), %rax
testq %rax, %rax
je 0x1d6cd
movq 0x80(%rax), %rax
testq %rax, %rax
je 0x1d6cd
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmpq *%rax
movl 0x488(%rbx), %eax
leal -0x3(%rax), %ecx
cmpl $-0x2, %ecx
setb %cl
testb $0x8, %al
sete %al
testb %al, %cl
jne 0x1d6f7
movq %rbx, %rdi
callq 0x16b4e
movl $0x0, 0x488(%rbx)
movq 0x4d0(%rbx), %rax
movq %rbx, %rdi
movl $0x1f, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq *0x10(%rax)
testl %eax, %eax
je 0x1d746
movl $0x1, %r14d
cmpb $0x0, 0x43b(%rbx)
je 0x1d780
movq 0x4d0(%rbx), %rax
movq %rbx, %rdi
movl $0x1f, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq *0x10(%rax)
testl %eax, %eax
jne 0x1d780
leaq 0x1864c(%rip), %rsi # 0x35d99
movq %rbx, %rdi
callq 0x1aa66
movq %rbx, %rdi
callq 0x1ae22
movl $0x0, 0x488(%rbx)
movq $-0x1, 0x338(%rbx)
movq $0x0, 0x340(%rbx)
xorl %r14d, %r14d
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
|
mysql_reset_connection:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rdi
mov rax, [rdi+4F0h]
test rax, rax
jz short loc_1D6CD
mov rax, [rax]
test rax, rax
jz short loc_1D6CD
mov rax, [rax]
test rax, rax
jz short loc_1D6CD
mov rax, [rax+80h]
test rax, rax
jz short loc_1D6CD
mov rdi, rbx
pop rbx
pop r14
pop rbp
jmp rax
loc_1D6CD:
mov eax, [rbx+488h]
lea ecx, [rax-3]
cmp ecx, 0FFFFFFFEh
setb cl
test al, 8
setz al
test cl, al
jnz short loc_1D6F7
mov rdi, rbx
call mthd_my_skip_result
mov dword ptr [rbx+488h], 0
loc_1D6F7:
mov rax, [rbx+4D0h]
mov rdi, rbx
mov esi, 1Fh
xor edx, edx
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
call qword ptr [rax+10h]
test eax, eax
jz short loc_1D746
mov r14d, 1
cmp byte ptr [rbx+43Bh], 0
jz short loc_1D780
mov rax, [rbx+4D0h]
mov rdi, rbx
mov esi, 1Fh
xor edx, edx
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
call qword ptr [rax+10h]
test eax, eax
jnz short loc_1D780
loc_1D746:
lea rsi, aMysqlResetConn; "mysql_reset_connection()"
mov rdi, rbx
call ma_invalidate_stmts
mov rdi, rbx
call free_old_query
mov dword ptr [rbx+488h], 0
mov qword ptr [rbx+338h], 0FFFFFFFFFFFFFFFFh
mov qword ptr [rbx+340h], 0
xor r14d, r14d
loc_1D780:
mov eax, r14d
pop rbx
pop r14
pop rbp
retn
|
long long mysql_reset_connection(long long a1, long long a2, long long a3, long long a4, unsigned long long a5, int a6)
{
long long **v6; // rax
long long *v7; // rax
long long v8; // rax
long long ( *v9)(long long); // rax
int v11; // eax
long long v12; // rcx
unsigned int v13; // r14d
v6 = *(long long ***)(a1 + 1264);
if ( v6 )
{
v7 = *v6;
if ( v7 )
{
v8 = *v7;
if ( v8 )
{
v9 = *(long long ( **)(long long))(v8 + 128);
if ( v9 )
return v9(a1);
}
}
}
v11 = *(_DWORD *)(a1 + 1160);
v12 = (unsigned int)(v11 - 3);
LOBYTE(v12) = (unsigned int)v12 < 0xFFFFFFFE;
if ( (((v11 & 8) == 0) & (unsigned __int8)v12) == 0 )
{
mthd_my_skip_result(a1, a2, a3, v12, a5, a6);
*(_DWORD *)(a1 + 1160) = 0;
}
if ( !(*(unsigned int ( **)(long long, long long, _QWORD, _QWORD, _QWORD, _QWORD))(*(_QWORD *)(a1 + 1232) + 16LL))(
a1,
31LL,
0LL,
0LL,
0LL,
0LL)
|| (v13 = 1, *(_BYTE *)(a1 + 1083))
&& !(*(unsigned int ( **)(long long, long long, _QWORD, _QWORD, _QWORD, _QWORD))(*(_QWORD *)(a1 + 1232) + 16LL))(
a1,
31LL,
0LL,
0LL,
0LL,
0LL) )
{
ma_invalidate_stmts(a1, "mysql_reset_connection()");
free_old_query(a1);
*(_DWORD *)(a1 + 1160) = 0;
*(_QWORD *)(a1 + 824) = -1LL;
*(_QWORD *)(a1 + 832) = 0LL;
return 0;
}
return v13;
}
|
mysql_reset_connection:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x4f0]
TEST RAX,RAX
JZ 0x0011d6cd
MOV RAX,qword ptr [RAX]
TEST RAX,RAX
JZ 0x0011d6cd
MOV RAX,qword ptr [RAX]
TEST RAX,RAX
JZ 0x0011d6cd
MOV RAX,qword ptr [RAX + 0x80]
TEST RAX,RAX
JZ 0x0011d6cd
MOV RDI,RBX
POP RBX
POP R14
POP RBP
JMP RAX
LAB_0011d6cd:
MOV EAX,dword ptr [RBX + 0x488]
LEA ECX,[RAX + -0x3]
CMP ECX,-0x2
SETC CL
TEST AL,0x8
SETZ AL
TEST CL,AL
JNZ 0x0011d6f7
MOV RDI,RBX
CALL 0x00116b4e
MOV dword ptr [RBX + 0x488],0x0
LAB_0011d6f7:
MOV RAX,qword ptr [RBX + 0x4d0]
MOV RDI,RBX
MOV ESI,0x1f
XOR EDX,EDX
XOR ECX,ECX
XOR R8D,R8D
XOR R9D,R9D
CALL qword ptr [RAX + 0x10]
TEST EAX,EAX
JZ 0x0011d746
MOV R14D,0x1
CMP byte ptr [RBX + 0x43b],0x0
JZ 0x0011d780
MOV RAX,qword ptr [RBX + 0x4d0]
MOV RDI,RBX
MOV ESI,0x1f
XOR EDX,EDX
XOR ECX,ECX
XOR R8D,R8D
XOR R9D,R9D
CALL qword ptr [RAX + 0x10]
TEST EAX,EAX
JNZ 0x0011d780
LAB_0011d746:
LEA RSI,[0x135d99]
MOV RDI,RBX
CALL 0x0011aa66
MOV RDI,RBX
CALL 0x0011ae22
MOV dword ptr [RBX + 0x488],0x0
MOV qword ptr [RBX + 0x338],-0x1
MOV qword ptr [RBX + 0x340],0x0
XOR R14D,R14D
LAB_0011d780:
MOV EAX,R14D
POP RBX
POP R14
POP RBP
RET
|
int8 mysql_reset_connection(long param_1)
{
long *plVar1;
long lVar2;
code *UNRECOVERED_JUMPTABLE;
int iVar3;
int8 uVar4;
if ((((*(long **)(param_1 + 0x4f0) != (long *)0x0) &&
(plVar1 = (long *)**(long **)(param_1 + 0x4f0), plVar1 != (long *)0x0)) &&
(lVar2 = *plVar1, lVar2 != 0)) &&
(UNRECOVERED_JUMPTABLE = *(code **)(lVar2 + 0x80), UNRECOVERED_JUMPTABLE != (code *)0x0)) {
/* WARNING: Could not recover jumptable at 0x0011d6cb. Too many branches */
/* WARNING: Treating indirect jump as call */
uVar4 = (*UNRECOVERED_JUMPTABLE)(param_1);
return uVar4;
}
if (0xfffffffd < *(uint *)(param_1 + 0x488) - 3 || (*(uint *)(param_1 + 0x488) & 8) != 0) {
mthd_my_skip_result(param_1);
*(int4 *)(param_1 + 0x488) = 0;
}
iVar3 = (**(code **)(*(long *)(param_1 + 0x4d0) + 0x10))(param_1,0x1f,0,0,0,0);
if (iVar3 != 0) {
if (*(char *)(param_1 + 0x43b) == '\0') {
return 1;
}
iVar3 = (**(code **)(*(long *)(param_1 + 0x4d0) + 0x10))(param_1,0x1f,0,0,0,0);
if (iVar3 != 0) {
return 1;
}
}
ma_invalidate_stmts(param_1,"mysql_reset_connection()");
free_old_query(param_1);
*(int4 *)(param_1 + 0x488) = 0;
*(int8 *)(param_1 + 0x338) = 0xffffffffffffffff;
*(int8 *)(param_1 + 0x340) = 0;
return 0;
}
|
|
56,969
|
nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::dump_float(double)
|
monkey531[P]llama/common/json.hpp
|
void dump_float(number_float_t x)
{
// NaN / inf
if (!std::isfinite(x))
{
o->write_characters("null", 4);
return;
}
// If number_float_t is an IEEE-754 single or double precision number,
// use the Grisu2 algorithm to produce short numbers which are
// guaranteed to round-trip, using strtof and strtod, resp.
//
// NB: The test below works if <long double> == <double>.
static constexpr bool is_ieee_single_or_double
= (std::numeric_limits<number_float_t>::is_iec559 && std::numeric_limits<number_float_t>::digits == 24 && std::numeric_limits<number_float_t>::max_exponent == 128) ||
(std::numeric_limits<number_float_t>::is_iec559 && std::numeric_limits<number_float_t>::digits == 53 && std::numeric_limits<number_float_t>::max_exponent == 1024);
dump_float(x, std::integral_constant<bool, is_ieee_single_or_double>());
}
|
O0
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::dump_float(double):
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movsd %xmm0, 0x18(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
movsd 0x18(%rsp), %xmm0
callq 0xacdc0
testb $0x1, %al
jne 0x18da09
movq 0x8(%rsp), %rdi
callq 0x18c320
movq %rax, %rdi
movq (%rdi), %rax
leaq 0x836af(%rip), %rsi # 0x2110ae
movl $0x4, %edx
callq *0x8(%rax)
jmp 0x18da19
movq 0x8(%rsp), %rdi
movsd 0x18(%rsp), %xmm0
callq 0x18e4e0
addq $0x28, %rsp
retq
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE10dump_floatEd:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
movsd [rsp+28h+var_10], xmm0
mov rax, [rsp+28h+var_8]
mov [rsp+28h+var_20], rax
movsd xmm0, [rsp+28h+var_10]; double
call _ZSt8isfinited; std::isfinite(double)
test al, 1
jnz short loc_18DA09
mov rdi, [rsp+28h+var_20]
call _ZNKSt19__shared_ptr_accessIN8nlohmann16json_abi_v3_11_36detail23output_adapter_protocolIcEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<nlohmann::json_abi_v3_11_3::detail::output_adapter_protocol<char>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void)
mov rdi, rax
mov rax, [rdi]
lea rsi, aOnNull_0+5; "null"
mov edx, 4
call qword ptr [rax+8]
jmp short loc_18DA19
loc_18DA09:
mov rdi, [rsp+28h+var_20]
movsd xmm0, [rsp+28h+var_10]
call _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE10dump_floatEdSt17integral_constantIbLb1EE; nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::dump_float(double,std::integral_constant<bool,true>)
loc_18DA19:
add rsp, 28h
retn
|
long long nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::dump_float(
long long a1,
double a2)
{
long long v2; // rax
if ( std::isfinite(a2) )
return nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::dump_float(
a1,
a2);
v2 = std::__shared_ptr_access<nlohmann::json_abi_v3_11_3::detail::output_adapter_protocol<char>,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(a1);
return (*(long long ( **)(long long, char *, long long))(*(_QWORD *)v2 + 8LL))(v2, "null", 4LL);
}
|
__uninit_copy<__gnu_cxx::__normal_iterator<common_sampler_type_const*,std::vector<common_sampler_type,std::allocator<common_sampler_type>>>,common_sampler_type*>:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x18],RSI
MOV qword ptr [RSP + 0x10],RDX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x8],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP],RAX
MOV RDX,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP]
CALL 0x0018da00
ADD RSP,0x28
RET
|
/* common_sampler_type*
std::__uninitialized_copy<true>::__uninit_copy<__gnu_cxx::__normal_iterator<common_sampler_type
const*, std::vector<common_sampler_type, std::allocator<common_sampler_type> > >,
common_sampler_type*>(__gnu_cxx::__normal_iterator<common_sampler_type const*,
std::vector<common_sampler_type, std::allocator<common_sampler_type> > >,
__gnu_cxx::__normal_iterator<common_sampler_type const*, std::vector<common_sampler_type,
std::allocator<common_sampler_type> > >, common_sampler_type*) */
common_sampler_type *
std::__uninitialized_copy<true>::
__uninit_copy<__gnu_cxx::__normal_iterator<common_sampler_type_const*,std::vector<common_sampler_type,std::allocator<common_sampler_type>>>,common_sampler_type*>
(int8 param_1,int8 param_2,int8 param_3)
{
common_sampler_type *pcVar1;
pcVar1 = copy<__gnu_cxx::__normal_iterator<common_sampler_type_const*,std::vector<common_sampler_type,std::allocator<common_sampler_type>>>,common_sampler_type*>
(param_1,param_2,param_3);
return pcVar1;
}
|
|
56,970
|
my_strnncoll_win1250ch
|
eloqsql/strings/ctype-win1250ch.c
|
static int my_strnncoll_win1250ch(CHARSET_INFO *cs __attribute__((unused)),
const uchar *s1, size_t len1,
const uchar *s2, size_t len2,
my_bool s2_is_prefix)
{
int v1, v2;
const uchar *p1, * p2;
int pass1 = 0, pass2 = 0;
int diff;
if (s2_is_prefix && len1 > len2)
len1=len2;
p1 = s1; p2 = s2;
do
{
NEXT_CMP_VALUE(s1, p1, pass1, v1, (int)len1);
NEXT_CMP_VALUE(s2, p2, pass2, v2, (int)len2);
if ((diff = v1 - v2))
return diff;
} while (v1);
return 0;
}
|
O3
|
c
|
my_strnncoll_win1250ch:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
cmpq %r8, %rdx
movq %r8, %rax
cmovbq %rdx, %rax
testb %r9b, %r9b
cmoveq %rdx, %rax
movq %rax, -0x70(%rbp)
movslq %eax, %rdx
movq %r8, -0x78(%rbp)
movslq %r8d, %r9
movl $0x1, %eax
movl $0x1, %edi
subq %rsi, %rdi
movq %rdi, -0x60(%rbp)
subq %rcx, %rax
movq %rax, -0x68(%rbp)
xorl %r13d, %r13d
leaq 0x28e576(%rip), %r14 # 0x33e310
movq %rsi, %r15
movq %rcx, %r12
xorl %ebx, %ebx
movq %rcx, -0x48(%rbp)
movq %rsi, -0x58(%rbp)
movq %r15, %rax
subq %rsi, %rax
cmpq %rdx, %rax
jge 0xafdc2
testl %r13d, %r13d
je 0xafdf0
movl $0x9, %r8d
jmp 0xafdeb
testl %r13d, %r13d
sete %r8b
cmpl $0x0, -0x70(%rbp)
setg %dil
xorl %eax, %eax
testb %r8b, %dil
je 0xafeb6
movl $0x1, %r13d
movl $0x9, %r8d
movq %rsi, %r15
movq %r14, %rax
jmp 0xafe00
xorl %r13d, %r13d
movl $0x8, %r8d
leaq 0x28e410(%rip), %rax # 0x33e210
movzbl (%r15), %edi
movb (%rax,%rdi), %al
cmpb $-0x1, %al
jne 0xafeb0
movq %r8, -0x50(%rbp)
movq %r12, -0x38(%rbp)
movl %ebx, -0x2c(%rbp)
movq %r13, -0x40(%rbp)
movq %r15, %r11
subq %rsi, %r11
movq -0x60(%rbp), %rax
leaq (%rax,%r15), %rcx
xorl %edi, %edi
movq %r15, %r12
movq %rdi, %r8
shlq $0x4, %r8
leaq 0x2bb241(%rip), %rax # 0x36b080
movq (%r8,%rax), %r13
movb (%r13), %r10b
testb %r10b, %r10b
je 0xafe77
cmpq %rdx, %r11
jge 0xafe77
incq %r13
movq %rcx, %rbx
cmpb (%r15), %r10b
jne 0xafe7c
incq %r15
movb (%r13), %r10b
testb %r10b, %r10b
je 0xafe77
leaq 0x1(%rbx), %rax
incq %r13
cmpq %rdx, %rbx
movq %rax, %rbx
jl 0xafe57
testb %r10b, %r10b
je 0xafe8c
incq %rdi
cmpq $0x50, %rdi
movq %r12, %r15
jne 0xafe31
movb $-0x1, %al
jmp 0xafea1
leaq 0x2bb1ed(%rip), %rax # 0x36b080
addq %rax, %r8
movq -0x50(%rbp), %rax
movb (%r8,%rax), %al
decq %r15
movq -0x48(%rbp), %rcx
movq -0x40(%rbp), %r13
movl -0x2c(%rbp), %ebx
movq -0x38(%rbp), %r12
movzbl %al, %eax
incq %r15
movq %r12, %rdi
subq %rcx, %rdi
cmpq %r9, %rdi
jge 0xafecd
testl %ebx, %ebx
je 0xafefa
movl $0x9, %r10d
jmp 0xafef5
testl %ebx, %ebx
sete %dil
cmpl $0x0, -0x78(%rbp)
setg %r8b
xorl %r10d, %r10d
testb %dil, %r8b
je 0xafff4
movl $0x1, %ebx
movl $0x9, %r10d
movq %rcx, %r12
movq %r14, %r8
jmp 0xaff09
xorl %ebx, %ebx
movl $0x8, %r10d
leaq 0x28e307(%rip), %r8 # 0x33e210
movzbl (%r12), %edi
movb (%r8,%rdi), %dil
cmpb $-0x1, %dil
jne 0xaffed
movq %r10, -0x50(%rbp)
movq %r15, -0x38(%rbp)
movl %ebx, -0x2c(%rbp)
movq %r13, -0x40(%rbp)
movq %r12, %r14
subq %rcx, %r14
movq -0x68(%rbp), %rcx
movq %r12, %r11
leaq (%rcx,%r12), %rsi
xorl %r8d, %r8d
movq %r8, %r15
shlq $0x4, %r15
leaq 0x2bb133(%rip), %rcx # 0x36b080
movq (%r15,%rcx), %rbx
movb (%rbx), %r13b
testb %r13b, %r13b
je 0xaff88
cmpq %r9, %r14
jge 0xaff88
incq %rbx
movq %rsi, %rdi
movq %r11, %r10
cmpb (%r10), %r13b
jne 0xaff90
incq %r10
movb (%rbx), %r13b
testb %r13b, %r13b
je 0xaff8b
leaq 0x1(%rdi), %r12
incq %rbx
cmpq %r9, %rdi
movq %r12, %rdi
jl 0xaff67
jmp 0xaff8b
movq %r11, %r10
testb %r13b, %r13b
je 0xaffbb
incq %r8
cmpq $0x50, %r8
jne 0xaff3f
movb $-0x1, %dil
movq -0x48(%rbp), %rcx
movq -0x58(%rbp), %rsi
leaq 0x28e365(%rip), %r14 # 0x33e310
movq -0x40(%rbp), %r13
movl -0x2c(%rbp), %ebx
movq -0x38(%rbp), %r15
movq %r11, %r12
jmp 0xaffed
leaq 0x2bb0be(%rip), %rcx # 0x36b080
addq %rcx, %r15
movq -0x50(%rbp), %rcx
movb (%r15,%rcx), %dil
decq %r10
movq %r10, %r12
movq -0x48(%rbp), %rcx
movq -0x58(%rbp), %rsi
leaq 0x28e32e(%rip), %r14 # 0x33e310
movq -0x40(%rbp), %r13
movl -0x2c(%rbp), %ebx
movq -0x38(%rbp), %r15
movzbl %dil, %r10d
incq %r12
testl %eax, %eax
je 0xb0001
cmpl %r10d, %eax
je 0xafdaa
subl %r10d, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
my_strnncoll_win1250ch:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
cmp rdx, r8
mov rax, r8
cmovb rax, rdx
test r9b, r9b
cmovz rax, rdx
mov [rbp+var_70], rax
movsxd rdx, eax
mov [rbp+var_78], r8
movsxd r9, r8d
mov eax, 1
mov edi, 1
sub rdi, rsi
mov [rbp+var_60], rdi
sub rax, rcx
mov [rbp+var_68], rax
xor r13d, r13d
lea r14, _sort_order_win1250ch2
mov r15, rsi
mov r12, rcx
xor ebx, ebx
mov [rbp+var_48], rcx
mov [rbp+var_58], rsi
loc_AFDAA:
mov rax, r15
sub rax, rsi
cmp rax, rdx
jge short loc_AFDC2
test r13d, r13d
jz short loc_AFDF0
mov r8d, 9
jmp short loc_AFDEB
loc_AFDC2:
test r13d, r13d
setz r8b
cmp dword ptr [rbp+var_70], 0
setnle dil
xor eax, eax
test dil, r8b
jz loc_AFEB6
mov r13d, 1
mov r8d, 9
mov r15, rsi
loc_AFDEB:
mov rax, r14
jmp short loc_AFE00
loc_AFDF0:
xor r13d, r13d
mov r8d, 8
lea rax, _sort_order_win1250ch1
loc_AFE00:
movzx edi, byte ptr [r15]
mov al, [rax+rdi]
cmp al, 0FFh
jnz loc_AFEB0
mov [rbp+var_50], r8
mov [rbp+var_38], r12
mov [rbp+var_2C], ebx
mov [rbp+var_40], r13
mov r11, r15
sub r11, rsi
mov rax, [rbp+var_60]
lea rcx, [rax+r15]
xor edi, edi
mov r12, r15
loc_AFE31:
mov r8, rdi
shl r8, 4
lea rax, doubles_0
mov r13, [r8+rax]
mov r10b, [r13+0]
test r10b, r10b
jz short loc_AFE77
cmp r11, rdx
jge short loc_AFE77
inc r13
mov rbx, rcx
loc_AFE57:
cmp r10b, [r15]
jnz short loc_AFE7C
inc r15
mov r10b, [r13+0]
test r10b, r10b
jz short loc_AFE77
lea rax, [rbx+1]
inc r13
cmp rbx, rdx
mov rbx, rax
jl short loc_AFE57
loc_AFE77:
test r10b, r10b
jz short loc_AFE8C
loc_AFE7C:
inc rdi
cmp rdi, 50h ; 'P'
mov r15, r12
jnz short loc_AFE31
mov al, 0FFh
jmp short loc_AFEA1
loc_AFE8C:
lea rax, doubles_0
add r8, rax
mov rax, [rbp+var_50]
mov al, [r8+rax]
dec r15
loc_AFEA1:
mov rcx, [rbp+var_48]
mov r13, [rbp+var_40]
mov ebx, [rbp+var_2C]
mov r12, [rbp+var_38]
loc_AFEB0:
movzx eax, al
inc r15
loc_AFEB6:
mov rdi, r12
sub rdi, rcx
cmp rdi, r9
jge short loc_AFECD
test ebx, ebx
jz short loc_AFEFA
mov r10d, 9
jmp short loc_AFEF5
loc_AFECD:
test ebx, ebx
setz dil
cmp dword ptr [rbp+var_78], 0
setnle r8b
xor r10d, r10d
test r8b, dil
jz loc_AFFF4
mov ebx, 1
mov r10d, 9
mov r12, rcx
loc_AFEF5:
mov r8, r14
jmp short loc_AFF09
loc_AFEFA:
xor ebx, ebx
mov r10d, 8
lea r8, _sort_order_win1250ch1
loc_AFF09:
movzx edi, byte ptr [r12]
mov dil, [r8+rdi]
cmp dil, 0FFh
jnz loc_AFFED
mov [rbp+var_50], r10
mov [rbp+var_38], r15
mov [rbp+var_2C], ebx
mov [rbp+var_40], r13
mov r14, r12
sub r14, rcx
mov rcx, [rbp+var_68]
mov r11, r12
lea rsi, [rcx+r12]
xor r8d, r8d
loc_AFF3F:
mov r15, r8
shl r15, 4
lea rcx, doubles_0
mov rbx, [r15+rcx]
mov r13b, [rbx]
test r13b, r13b
jz short loc_AFF88
cmp r14, r9
jge short loc_AFF88
inc rbx
mov rdi, rsi
mov r10, r11
loc_AFF67:
cmp r13b, [r10]
jnz short loc_AFF90
inc r10
mov r13b, [rbx]
test r13b, r13b
jz short loc_AFF8B
lea r12, [rdi+1]
inc rbx
cmp rdi, r9
mov rdi, r12
jl short loc_AFF67
jmp short loc_AFF8B
loc_AFF88:
mov r10, r11
loc_AFF8B:
test r13b, r13b
jz short loc_AFFBB
loc_AFF90:
inc r8
cmp r8, 50h ; 'P'
jnz short loc_AFF3F
mov dil, 0FFh
mov rcx, [rbp+var_48]
mov rsi, [rbp+var_58]
lea r14, _sort_order_win1250ch2
mov r13, [rbp+var_40]
mov ebx, [rbp+var_2C]
mov r15, [rbp+var_38]
mov r12, r11
jmp short loc_AFFED
loc_AFFBB:
lea rcx, doubles_0
add r15, rcx
mov rcx, [rbp+var_50]
mov dil, [r15+rcx]
dec r10
mov r12, r10
mov rcx, [rbp+var_48]
mov rsi, [rbp+var_58]
lea r14, _sort_order_win1250ch2
mov r13, [rbp+var_40]
mov ebx, [rbp+var_2C]
mov r15, [rbp+var_38]
loc_AFFED:
movzx r10d, dil
inc r12
loc_AFFF4:
test eax, eax
jz short loc_B0001
cmp eax, r10d
jz loc_AFDAA
loc_B0001:
sub eax, r10d
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long my_strnncoll_win1250ch(
long long a1,
_BYTE *a2,
unsigned long long a3,
unsigned __int8 *a4,
unsigned long long a5,
char a6)
{
int v6; // eax
long long v7; // rdx
long long v8; // r9
long long v9; // r13
_BYTE *v10; // r15
unsigned __int8 *v11; // r12
int v12; // ebx
long long v13; // r8
_BYTE *v14; // rax
_BYTE *v15; // r11
_BYTE *v16; // rcx
long long v17; // rdi
_BYTE *v18; // r12
char *v19; // r13
char v20; // r10
char *v21; // r13
_BYTE *v22; // rbx
bool v23; // cc
long long v24; // r10
int v25; // r10d
_BYTE *v26; // r8
unsigned __int8 v27; // di
long long v28; // r8
char *v29; // rbx
char v30; // r13
char *v31; // rbx
unsigned __int8 *v32; // rdi
_BYTE *v33; // r10
int v35; // [rsp+0h] [rbp-78h]
int v36; // [rsp+8h] [rbp-70h]
long long v37; // [rsp+10h] [rbp-68h]
long long v38; // [rsp+18h] [rbp-60h]
_BYTE *v39; // [rsp+20h] [rbp-58h]
long long v40; // [rsp+28h] [rbp-50h]
unsigned __int8 *v41; // [rsp+30h] [rbp-48h]
long long v42; // [rsp+38h] [rbp-40h]
long long v43; // [rsp+38h] [rbp-40h]
unsigned __int8 *v44; // [rsp+40h] [rbp-38h]
int v45; // [rsp+4Ch] [rbp-2Ch]
int v46; // [rsp+4Ch] [rbp-2Ch]
v6 = a5;
if ( a3 < a5 )
v6 = a3;
if ( !a6 )
v6 = a3;
v36 = v6;
v7 = v6;
v35 = a5;
v8 = (int)a5;
v38 = 1LL - (_QWORD)a2;
v37 = 1LL - (_QWORD)a4;
v9 = 0LL;
v10 = a2;
v11 = a4;
v12 = 0;
v41 = a4;
v39 = a2;
do
{
if ( v10 - a2 >= v7 )
{
LODWORD(v14) = 0;
if ( (_DWORD)v9 != 0 || v36 <= 0 )
goto LABEL_27;
v9 = 1LL;
v13 = 9LL;
v10 = a2;
}
else
{
if ( !(_DWORD)v9 )
{
v9 = 0LL;
v13 = 8LL;
v14 = &sort_order_win1250ch1;
goto LABEL_13;
}
v13 = 9LL;
}
v14 = &sort_order_win1250ch2;
LABEL_13:
LOBYTE(v14) = v14[(unsigned __int8)*v10];
if ( (_BYTE)v14 != 0xFF )
goto LABEL_26;
v44 = v11;
v45 = v12;
v42 = v9;
v15 = (_BYTE *)(v10 - a2);
v16 = &v10[v38];
v17 = 0LL;
v18 = v10;
while ( 1 )
{
v19 = (char *)*(&doubles_0 + 2 * v17);
v20 = *v19;
if ( *v19 && (long long)v15 < v7 )
{
v21 = v19 + 1;
v22 = v16;
while ( v20 == *v10 )
{
++v10;
v20 = *v21;
if ( *v21 )
{
++v21;
v23 = (long long)v22++ < v7;
if ( v23 )
continue;
}
goto LABEL_21;
}
goto LABEL_22;
}
LABEL_21:
if ( !v20 )
break;
LABEL_22:
++v17;
v10 = v18;
if ( v17 == 80 )
{
LOBYTE(v14) = -1;
goto LABEL_25;
}
}
LOBYTE(v14) = *((_BYTE *)&doubles_0 + 16 * v17 + v13);
--v10;
LABEL_25:
a4 = v41;
v9 = v42;
v12 = v45;
v11 = v44;
LABEL_26:
LODWORD(v14) = (unsigned __int8)v14;
++v10;
LABEL_27:
if ( v11 - a4 >= v8 )
{
v25 = 0;
if ( v12 != 0 || v35 <= 0 )
continue;
v12 = 1;
v24 = 9LL;
v11 = a4;
LABEL_32:
v26 = &sort_order_win1250ch2;
}
else
{
if ( v12 )
{
v24 = 9LL;
goto LABEL_32;
}
v12 = 0;
v24 = 8LL;
v26 = &sort_order_win1250ch1;
}
v27 = v26[*v11];
if ( v27 != 0xFF )
goto LABEL_48;
v40 = v24;
v46 = v12;
v43 = v9;
v28 = 0LL;
while ( 2 )
{
v29 = (char *)*(&doubles_0 + 2 * v28);
v30 = *v29;
if ( *v29 && v11 - a4 < v8 )
{
v31 = v29 + 1;
v32 = &v11[v37];
v33 = v11;
while ( v30 == *v33 )
{
++v33;
v30 = *v31;
if ( *v31 )
{
++v31;
v23 = (long long)v32++ < v8;
if ( v23 )
continue;
}
goto LABEL_44;
}
goto LABEL_45;
}
v33 = v11;
LABEL_44:
if ( v30 )
{
LABEL_45:
if ( ++v28 == 80 )
{
v27 = -1;
a4 = v41;
a2 = v39;
v9 = v43;
v12 = v46;
goto LABEL_48;
}
continue;
}
break;
}
v27 = *((_BYTE *)&doubles_0 + 16 * v28 + v40);
v11 = v33 - 1;
a4 = v41;
a2 = v39;
v9 = v43;
v12 = v46;
LABEL_48:
v25 = v27;
++v11;
}
while ( (_DWORD)v14 && (_DWORD)v14 == v25 );
return (unsigned int)((_DWORD)v14 - v25);
}
|
my_strnncoll_win1250ch:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
CMP RDX,R8
MOV RAX,R8
CMOVC RAX,RDX
TEST R9B,R9B
CMOVZ RAX,RDX
MOV qword ptr [RBP + -0x70],RAX
MOVSXD RDX,EAX
MOV qword ptr [RBP + -0x78],R8
MOVSXD R9,R8D
MOV EAX,0x1
MOV EDI,0x1
SUB RDI,RSI
MOV qword ptr [RBP + -0x60],RDI
SUB RAX,RCX
MOV qword ptr [RBP + -0x68],RAX
XOR R13D,R13D
LEA R14,[0x43e310]
MOV R15,RSI
MOV R12,RCX
XOR EBX,EBX
MOV qword ptr [RBP + -0x48],RCX
MOV qword ptr [RBP + -0x58],RSI
LAB_001afdaa:
MOV RAX,R15
SUB RAX,RSI
CMP RAX,RDX
JGE 0x001afdc2
TEST R13D,R13D
JZ 0x001afdf0
MOV R8D,0x9
JMP 0x001afdeb
LAB_001afdc2:
TEST R13D,R13D
SETZ R8B
CMP dword ptr [RBP + -0x70],0x0
SETG DIL
XOR EAX,EAX
TEST DIL,R8B
JZ 0x001afeb6
MOV R13D,0x1
MOV R8D,0x9
MOV R15,RSI
LAB_001afdeb:
MOV RAX,R14
JMP 0x001afe00
LAB_001afdf0:
XOR R13D,R13D
MOV R8D,0x8
LEA RAX,[0x43e210]
LAB_001afe00:
MOVZX EDI,byte ptr [R15]
MOV AL,byte ptr [RAX + RDI*0x1]
CMP AL,0xff
JNZ 0x001afeb0
MOV qword ptr [RBP + -0x50],R8
MOV qword ptr [RBP + -0x38],R12
MOV dword ptr [RBP + -0x2c],EBX
MOV qword ptr [RBP + -0x40],R13
MOV R11,R15
SUB R11,RSI
MOV RAX,qword ptr [RBP + -0x60]
LEA RCX,[RAX + R15*0x1]
XOR EDI,EDI
MOV R12,R15
LAB_001afe31:
MOV R8,RDI
SHL R8,0x4
LEA RAX,[0x46b080]
MOV R13,qword ptr [R8 + RAX*0x1]
MOV R10B,byte ptr [R13]
TEST R10B,R10B
JZ 0x001afe77
CMP R11,RDX
JGE 0x001afe77
INC R13
MOV RBX,RCX
LAB_001afe57:
CMP R10B,byte ptr [R15]
JNZ 0x001afe7c
INC R15
MOV R10B,byte ptr [R13]
TEST R10B,R10B
JZ 0x001afe77
LEA RAX,[RBX + 0x1]
INC R13
CMP RBX,RDX
MOV RBX,RAX
JL 0x001afe57
LAB_001afe77:
TEST R10B,R10B
JZ 0x001afe8c
LAB_001afe7c:
INC RDI
CMP RDI,0x50
MOV R15,R12
JNZ 0x001afe31
MOV AL,0xff
JMP 0x001afea1
LAB_001afe8c:
LEA RAX,[0x46b080]
ADD R8,RAX
MOV RAX,qword ptr [RBP + -0x50]
MOV AL,byte ptr [R8 + RAX*0x1]
DEC R15
LAB_001afea1:
MOV RCX,qword ptr [RBP + -0x48]
MOV R13,qword ptr [RBP + -0x40]
MOV EBX,dword ptr [RBP + -0x2c]
MOV R12,qword ptr [RBP + -0x38]
LAB_001afeb0:
MOVZX EAX,AL
INC R15
LAB_001afeb6:
MOV RDI,R12
SUB RDI,RCX
CMP RDI,R9
JGE 0x001afecd
TEST EBX,EBX
JZ 0x001afefa
MOV R10D,0x9
JMP 0x001afef5
LAB_001afecd:
TEST EBX,EBX
SETZ DIL
CMP dword ptr [RBP + -0x78],0x0
SETG R8B
XOR R10D,R10D
TEST R8B,DIL
JZ 0x001afff4
MOV EBX,0x1
MOV R10D,0x9
MOV R12,RCX
LAB_001afef5:
MOV R8,R14
JMP 0x001aff09
LAB_001afefa:
XOR EBX,EBX
MOV R10D,0x8
LEA R8,[0x43e210]
LAB_001aff09:
MOVZX EDI,byte ptr [R12]
MOV DIL,byte ptr [R8 + RDI*0x1]
CMP DIL,0xff
JNZ 0x001affed
MOV qword ptr [RBP + -0x50],R10
MOV qword ptr [RBP + -0x38],R15
MOV dword ptr [RBP + -0x2c],EBX
MOV qword ptr [RBP + -0x40],R13
MOV R14,R12
SUB R14,RCX
MOV RCX,qword ptr [RBP + -0x68]
MOV R11,R12
LEA RSI,[RCX + R12*0x1]
XOR R8D,R8D
LAB_001aff3f:
MOV R15,R8
SHL R15,0x4
LEA RCX,[0x46b080]
MOV RBX,qword ptr [R15 + RCX*0x1]
MOV R13B,byte ptr [RBX]
TEST R13B,R13B
JZ 0x001aff88
CMP R14,R9
JGE 0x001aff88
INC RBX
MOV RDI,RSI
MOV R10,R11
LAB_001aff67:
CMP R13B,byte ptr [R10]
JNZ 0x001aff90
INC R10
MOV R13B,byte ptr [RBX]
TEST R13B,R13B
JZ 0x001aff8b
LEA R12,[RDI + 0x1]
INC RBX
CMP RDI,R9
MOV RDI,R12
JL 0x001aff67
JMP 0x001aff8b
LAB_001aff88:
MOV R10,R11
LAB_001aff8b:
TEST R13B,R13B
JZ 0x001affbb
LAB_001aff90:
INC R8
CMP R8,0x50
JNZ 0x001aff3f
MOV DIL,0xff
MOV RCX,qword ptr [RBP + -0x48]
MOV RSI,qword ptr [RBP + -0x58]
LEA R14,[0x43e310]
MOV R13,qword ptr [RBP + -0x40]
MOV EBX,dword ptr [RBP + -0x2c]
MOV R15,qword ptr [RBP + -0x38]
MOV R12,R11
JMP 0x001affed
LAB_001affbb:
LEA RCX,[0x46b080]
ADD R15,RCX
MOV RCX,qword ptr [RBP + -0x50]
MOV DIL,byte ptr [R15 + RCX*0x1]
DEC R10
MOV R12,R10
MOV RCX,qword ptr [RBP + -0x48]
MOV RSI,qword ptr [RBP + -0x58]
LEA R14,[0x43e310]
MOV R13,qword ptr [RBP + -0x40]
MOV EBX,dword ptr [RBP + -0x2c]
MOV R15,qword ptr [RBP + -0x38]
LAB_001affed:
MOVZX R10D,DIL
INC R12
LAB_001afff4:
TEST EAX,EAX
JZ 0x001b0001
CMP EAX,R10D
JZ 0x001afdaa
LAB_001b0001:
SUB EAX,R10D
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int my_strnncoll_win1250ch
(int8 param_1,byte *param_2,ulong param_3,byte *param_4,ulong param_5,
char param_6)
{
bool bVar1;
bool bVar2;
byte *pbVar3;
byte *pbVar4;
byte *pbVar5;
byte bVar6;
int iVar7;
ulong uVar9;
int1 *puVar10;
long lVar11;
int iVar12;
uint uVar13;
long lVar14;
byte *pbVar15;
byte *pbVar16;
byte *pbVar17;
byte *pbVar18;
uint uVar8;
uVar9 = param_5;
if (param_3 < param_5) {
uVar9 = param_3;
}
if (param_6 == '\0') {
uVar9 = param_3;
}
iVar7 = (int)uVar9;
iVar12 = (int)param_5;
bVar2 = false;
bVar1 = false;
pbVar15 = param_4;
pbVar18 = param_2;
do {
if ((long)pbVar18 - (long)param_2 < (long)iVar7) {
if (bVar2) {
LAB_001afdeb:
lVar14 = 9;
puVar10 = _sort_order_win1250ch2;
}
else {
bVar2 = false;
lVar14 = 8;
puVar10 = _sort_order_win1250ch1;
}
bVar6 = puVar10[*pbVar18];
if (bVar6 == 0xff) {
lVar11 = 0;
do {
pbVar16 = (&doubles)[lVar11 * 2];
bVar6 = *pbVar16;
pbVar17 = pbVar18;
pbVar5 = pbVar18 + (1 - (long)param_2);
pbVar4 = pbVar18 + -(long)param_2;
if (bVar6 != 0) {
while (pbVar3 = pbVar5, (long)pbVar4 < (long)iVar7) {
pbVar16 = pbVar16 + 1;
if (bVar6 != *pbVar17) goto LAB_001afe7c;
pbVar17 = pbVar17 + 1;
bVar6 = *pbVar16;
if (bVar6 == 0) break;
pbVar5 = pbVar3 + 1;
pbVar4 = pbVar3;
}
}
if (bVar6 == 0) {
bVar6 = *(byte *)((long)&doubles + lVar14 + lVar11 * 0x10);
pbVar18 = pbVar17 + -1;
goto LAB_001afeb0;
}
LAB_001afe7c:
lVar11 = lVar11 + 1;
} while (lVar11 != 0x50);
bVar6 = 0xff;
}
LAB_001afeb0:
uVar8 = (uint)bVar6;
pbVar18 = pbVar18 + 1;
}
else {
uVar8 = 0;
if (0 < iVar7 && !bVar2) {
bVar2 = true;
pbVar18 = param_2;
goto LAB_001afdeb;
}
}
if ((long)pbVar15 - (long)param_4 < (long)iVar12) {
if (bVar1) {
LAB_001afef5:
lVar14 = 9;
puVar10 = _sort_order_win1250ch2;
}
else {
bVar1 = false;
lVar14 = 8;
puVar10 = _sort_order_win1250ch1;
}
bVar6 = puVar10[*pbVar15];
if (bVar6 == 0xff) {
lVar11 = 0;
do {
pbVar16 = (&doubles)[lVar11 * 2];
bVar6 = *pbVar16;
pbVar17 = pbVar15;
pbVar5 = pbVar15 + (1 - (long)param_4);
pbVar4 = pbVar15 + -(long)param_4;
if (bVar6 != 0) {
while (pbVar3 = pbVar5, (long)pbVar4 < (long)iVar12) {
pbVar16 = pbVar16 + 1;
if (bVar6 != *pbVar17) goto LAB_001aff90;
pbVar17 = pbVar17 + 1;
bVar6 = *pbVar16;
if (bVar6 == 0) break;
pbVar5 = pbVar3 + 1;
pbVar4 = pbVar3;
}
}
if (bVar6 == 0) {
bVar6 = *(byte *)((long)&doubles + lVar14 + lVar11 * 0x10);
pbVar15 = pbVar17 + -1;
goto LAB_001affed;
}
LAB_001aff90:
lVar11 = lVar11 + 1;
} while (lVar11 != 0x50);
bVar6 = 0xff;
}
LAB_001affed:
uVar13 = (uint)bVar6;
pbVar15 = pbVar15 + 1;
}
else {
uVar13 = 0;
if (0 < iVar12 && !bVar1) {
bVar1 = true;
pbVar15 = param_4;
goto LAB_001afef5;
}
}
if ((uVar8 == 0) || (uVar8 != uVar13)) {
return uVar8 - uVar13;
}
} while( true );
}
|
|
56,971
|
tprint
|
eloqsql/storage/maria/ma_recovery_util.c
|
void tprint(FILE *trace_file __attribute__ ((unused)),
const char *format __attribute__ ((unused)), ...)
{
va_list args;
#ifndef DBUG_OFF
{
char buff[1024];
size_t length;
va_start(args, format);
length= my_vsnprintf(buff, sizeof(buff)-1, format, args);
if (length && buff[length-1] == '\n')
buff[length-1]= 0; /* Don't print end \n */
DBUG_PRINT("info", ("%s", buff));
va_end(args);
}
#endif
va_start(args, format);
if (trace_file != NULL)
vfprintf(trace_file, format, args);
va_end(args);
}
|
O3
|
c
|
tprint:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rsi, %r10
leaq -0xd0(%rbp), %rsi
movq %rdx, 0x10(%rsi)
movq %rcx, 0x18(%rsi)
movq %r8, 0x20(%rsi)
movq %r9, 0x28(%rsi)
testb %al, %al
je 0x3f677
movaps %xmm0, -0xa0(%rbp)
movaps %xmm1, -0x90(%rbp)
movaps %xmm2, -0x80(%rbp)
movaps %xmm3, -0x70(%rbp)
movaps %xmm4, -0x60(%rbp)
movaps %xmm5, -0x50(%rbp)
movaps %xmm6, -0x40(%rbp)
movaps %xmm7, -0x30(%rbp)
movq %rsi, -0x10(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movabsq $0x3000000010, %rax # imm = 0x3000000010
movq %rax, -0x20(%rbp)
testq %rdi, %rdi
je 0x3f6a7
leaq -0x20(%rbp), %rcx
movl $0x1, %esi
movq %r10, %rdx
callq 0x29730
addq $0xd0, %rsp
popq %rbp
retq
|
tprint:
push rbp
mov rbp, rsp
sub rsp, 0D0h
mov r10, rsi
lea rsi, [rbp+var_D0]
mov [rsi+10h], rdx
mov [rsi+18h], rcx
mov [rsi+20h], r8
mov [rsi+28h], r9
test al, al
jz short loc_3F677
movaps [rbp+var_A0], xmm0
movaps [rbp+var_90], xmm1
movaps [rbp+var_80], xmm2
movaps [rbp+var_70], xmm3
movaps [rbp+var_60], xmm4
movaps [rbp+var_50], xmm5
movaps [rbp+var_40], xmm6
movaps [rbp+var_30], xmm7
loc_3F677:
mov [rbp+var_10], rsi
lea rax, [rbp+arg_0]
mov [rbp+var_18], rax
mov rax, 3000000010h
mov [rbp+var_20], rax
test rdi, rdi
jz short loc_3F6A7
lea rcx, [rbp+var_20]
mov esi, 1
mov rdx, r10
call ___vfprintf_chk
loc_3F6A7:
add rsp, 0D0h
pop rbp
retn
|
long long tprint(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14,
char a15)
{
long long result; // rax
char v16; // [rsp+0h] [rbp-D0h] BYREF
long long v17; // [rsp+10h] [rbp-C0h]
long long v18; // [rsp+18h] [rbp-B8h]
long long v19; // [rsp+20h] [rbp-B0h]
long long v20; // [rsp+28h] [rbp-A8h]
__m128 v21; // [rsp+30h] [rbp-A0h]
__m128 v22; // [rsp+40h] [rbp-90h]
__m128 v23; // [rsp+50h] [rbp-80h]
__m128 v24; // [rsp+60h] [rbp-70h]
__m128 v25; // [rsp+70h] [rbp-60h]
__m128 v26; // [rsp+80h] [rbp-50h]
__m128 v27; // [rsp+90h] [rbp-40h]
__m128 v28; // [rsp+A0h] [rbp-30h]
_QWORD v29[4]; // [rsp+B0h] [rbp-20h] BYREF
v21 = a7;
v22 = a8;
v23 = a9;
v24 = a10;
v25 = a11;
v26 = a12;
v27 = a13;
v28 = a14;
v17 = a3;
v18 = a4;
v19 = a5;
v20 = a6;
v29[2] = &v16;
v29[1] = &a15;
result = 0x3000000010LL;
v29[0] = 0x3000000010LL;
if ( a1 )
return __vfprintf_chk(a1, 1LL, a2, v29);
return result;
}
|
tprint:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xd0
MOV R10,RSI
LEA RSI,[RBP + -0xd0]
MOV qword ptr [RSI + 0x10],RDX
MOV qword ptr [RSI + 0x18],RCX
MOV qword ptr [RSI + 0x20],R8
MOV qword ptr [RSI + 0x28],R9
TEST AL,AL
JZ 0x0013f677
MOVAPS xmmword ptr [RBP + -0xa0],XMM0
MOVAPS xmmword ptr [RBP + -0x90],XMM1
MOVAPS xmmword ptr [RBP + -0x80],XMM2
MOVAPS xmmword ptr [RBP + -0x70],XMM3
MOVAPS xmmword ptr [RBP + -0x60],XMM4
MOVAPS xmmword ptr [RBP + -0x50],XMM5
MOVAPS xmmword ptr [RBP + -0x40],XMM6
MOVAPS xmmword ptr [RBP + -0x30],XMM7
LAB_0013f677:
MOV qword ptr [RBP + -0x10],RSI
LEA RAX,[RBP + 0x10]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,0x3000000010
MOV qword ptr [RBP + -0x20],RAX
TEST RDI,RDI
JZ 0x0013f6a7
LEA RCX,[RBP + -0x20]
MOV ESI,0x1
MOV RDX,R10
CALL 0x00129730
LAB_0013f6a7:
ADD RSP,0xd0
POP RBP
RET
|
void tprint(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int8 param_7,int8 param_8,long param_9,
int8 param_10,int8 param_11,int8 param_12,int8 param_13,
int8 param_14)
{
char in_AL;
int1 local_d8 [16];
int8 local_c8;
int8 local_c0;
int8 local_b8;
int8 local_b0;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 local_78;
int8 local_68;
int8 local_58;
int8 local_48;
int8 local_38;
int8 local_28;
int1 *local_20;
int1 *local_18;
local_18 = local_d8;
if (in_AL != '\0') {
local_a8 = param_1;
local_98 = param_2;
local_88 = param_3;
local_78 = param_4;
local_68 = param_5;
local_58 = param_6;
local_48 = param_7;
local_38 = param_8;
}
local_20 = &stack0x00000008;
local_28 = 0x3000000010;
if (param_9 != 0) {
local_c8 = param_11;
local_c0 = param_12;
local_b8 = param_13;
local_b0 = param_14;
__vfprintf_chk(param_9,1,param_10,&local_28);
}
return;
}
|
|
56,972
|
ma_checksum
|
eloqsql/storage/maria/ma_checksum.c
|
ha_checksum _ma_checksum(MARIA_HA *info, const uchar *record)
{
ha_checksum crc=0;
uint i,end;
MARIA_COLUMNDEF *base_column= info->s->columndef;
uint16 *column_nr= info->s->column_nr;
if (info->s->base.null_bytes)
crc= my_checksum(crc, record, info->s->base.null_bytes);
for (i= 0, end= info->s->base.fields ; i < end ; i++)
{
MARIA_COLUMNDEF *column= base_column + column_nr[i];
const uchar *pos;
ulong length;
if (record[column->null_pos] & column->null_bit)
continue; /* Null field */
pos= record + column->offset;
switch (column->type) {
case FIELD_BLOB:
{
uint blob_size_length= column->length- portable_sizeof_char_ptr;
length= _ma_calc_blob_length(blob_size_length, pos);
if (length)
{
memcpy((char**) &pos, pos + blob_size_length, sizeof(char*));
crc= my_checksum(crc, pos, length);
}
continue;
}
case FIELD_VARCHAR:
{
uint pack_length= column->fill_length;
if (pack_length == 1)
length= (ulong) *pos;
else
length= uint2korr(pos);
pos+= pack_length; /* Skip length information */
break;
}
default:
length= column->length;
break;
}
crc= my_checksum(crc, pos, length);
}
return crc;
}
|
O0
|
c
|
ma_checksum:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x588(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x5a8(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
cmpl $0x0, 0x3fc(%rax)
je 0x72379
movl -0x14(%rbp), %edi
movq -0x10(%rbp), %rsi
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl 0x3fc(%rax), %eax
movl %eax, %edx
callq 0x1093b0
movl %eax, -0x14(%rbp)
movl $0x0, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl 0x3c8(%rax), %eax
movl %eax, -0x1c(%rbp)
movl -0x18(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jae 0x724bd
movq -0x28(%rbp), %rax
movq -0x30(%rbp), %rcx
movl -0x18(%rbp), %edx
movzwl (%rcx,%rdx,2), %ecx
movslq %ecx, %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq -0x38(%rbp), %rcx
movzwl 0xe(%rcx), %ecx
movzbl (%rax,%rcx), %eax
movq -0x38(%rbp), %rcx
movzbl 0x12(%rcx), %ecx
andl %ecx, %eax
cmpl $0x0, %eax
je 0x723dd
jmp 0x724af
movq -0x10(%rbp), %rax
movq -0x38(%rbp), %rcx
movl 0x4(%rcx), %ecx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x54(%rbp)
subl $0x4, %eax
je 0x7240c
jmp 0x723ff
movl -0x54(%rbp), %eax
subl $0x8, %eax
je 0x72455
jmp 0x72490
movq -0x38(%rbp), %rax
movzwl 0x8(%rax), %eax
subl $0x8, %eax
movl %eax, -0x4c(%rbp)
movl -0x4c(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x4e640
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
je 0x72453
movq -0x40(%rbp), %rax
movl -0x4c(%rbp), %ecx
movq (%rax,%rcx), %rax
movq %rax, -0x40(%rbp)
movl -0x14(%rbp), %edi
movq -0x40(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0x1093b0
movl %eax, -0x14(%rbp)
jmp 0x724af
movq -0x38(%rbp), %rax
movzwl 0xc(%rax), %eax
movl %eax, -0x50(%rbp)
cmpl $0x1, -0x50(%rbp)
jne 0x72473
movq -0x40(%rbp), %rax
movzbl (%rax), %eax
movq %rax, -0x48(%rbp)
jmp 0x7247e
movq -0x40(%rbp), %rax
movzwl (%rax), %eax
movq %rax, -0x48(%rbp)
movl -0x50(%rbp), %ecx
movq -0x40(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
jmp 0x7249c
movq -0x38(%rbp), %rax
movzwl 0x8(%rax), %eax
movq %rax, -0x48(%rbp)
movl -0x14(%rbp), %edi
movq -0x40(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0x1093b0
movl %eax, -0x14(%rbp)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x72390
movl -0x14(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
_ma_checksum:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], 0
mov rax, [rbp+var_8]
mov rax, [rax]
mov rax, [rax+588h]
mov [rbp+var_28], rax
mov rax, [rbp+var_8]
mov rax, [rax]
mov rax, [rax+5A8h]
mov [rbp+var_30], rax
mov rax, [rbp+var_8]
mov rax, [rax]
cmp dword ptr [rax+3FCh], 0
jz short loc_72379
mov edi, [rbp+var_14]
mov rsi, [rbp+var_10]
mov rax, [rbp+var_8]
mov rax, [rax]
mov eax, [rax+3FCh]
mov edx, eax
call my_checksum
mov [rbp+var_14], eax
loc_72379:
mov [rbp+var_18], 0
mov rax, [rbp+var_8]
mov rax, [rax]
mov eax, [rax+3C8h]
mov [rbp+var_1C], eax
loc_72390:
mov eax, [rbp+var_18]
cmp eax, [rbp+var_1C]
jnb loc_724BD
mov rax, [rbp+var_28]
mov rcx, [rbp+var_30]
mov edx, [rbp+var_18]
movzx ecx, word ptr [rcx+rdx*2]
movsxd rcx, ecx
imul rcx, 38h ; '8'
add rax, rcx
mov [rbp+var_38], rax
mov rax, [rbp+var_10]
mov rcx, [rbp+var_38]
movzx ecx, word ptr [rcx+0Eh]
movzx eax, byte ptr [rax+rcx]
mov rcx, [rbp+var_38]
movzx ecx, byte ptr [rcx+12h]
and eax, ecx
cmp eax, 0
jz short loc_723DD
jmp loc_724AF
loc_723DD:
mov rax, [rbp+var_10]
mov rcx, [rbp+var_38]
mov ecx, [rcx+4]
add rax, rcx
mov [rbp+var_40], rax
mov rax, [rbp+var_38]
mov eax, [rax]
mov [rbp+var_54], eax
sub eax, 4
jz short loc_7240C
jmp short $+2
loc_723FF:
mov eax, [rbp+var_54]
sub eax, 8
jz short loc_72455
jmp loc_72490
loc_7240C:
mov rax, [rbp+var_38]
movzx eax, word ptr [rax+8]
sub eax, 8
mov [rbp+var_4C], eax
mov edi, [rbp+var_4C]
mov rsi, [rbp+var_40]
call _ma_calc_blob_length
mov [rbp+var_48], rax
cmp [rbp+var_48], 0
jz short loc_72453
mov rax, [rbp+var_40]
mov ecx, [rbp+var_4C]
mov rax, [rax+rcx]
mov [rbp+var_40], rax
mov edi, [rbp+var_14]
mov rsi, [rbp+var_40]
mov rdx, [rbp+var_48]
call my_checksum
mov [rbp+var_14], eax
loc_72453:
jmp short loc_724AF
loc_72455:
mov rax, [rbp+var_38]
movzx eax, word ptr [rax+0Ch]
mov [rbp+var_50], eax
cmp [rbp+var_50], 1
jnz short loc_72473
mov rax, [rbp+var_40]
movzx eax, byte ptr [rax]
mov [rbp+var_48], rax
jmp short loc_7247E
loc_72473:
mov rax, [rbp+var_40]
movzx eax, word ptr [rax]
mov [rbp+var_48], rax
loc_7247E:
mov ecx, [rbp+var_50]
mov rax, [rbp+var_40]
mov ecx, ecx
add rax, rcx
mov [rbp+var_40], rax
jmp short loc_7249C
loc_72490:
mov rax, [rbp+var_38]
movzx eax, word ptr [rax+8]
mov [rbp+var_48], rax
loc_7249C:
mov edi, [rbp+var_14]
mov rsi, [rbp+var_40]
mov rdx, [rbp+var_48]
call my_checksum
mov [rbp+var_14], eax
loc_724AF:
mov eax, [rbp+var_18]
add eax, 1
mov [rbp+var_18], eax
jmp loc_72390
loc_724BD:
mov eax, [rbp+var_14]
add rsp, 60h
pop rbp
retn
|
long long ma_checksum(long long a1, long long a2)
{
unsigned int v3; // [rsp+14h] [rbp-4Ch]
long long v4; // [rsp+18h] [rbp-48h]
long long v5; // [rsp+18h] [rbp-48h]
unsigned __int8 *v6; // [rsp+20h] [rbp-40h]
long long v7; // [rsp+28h] [rbp-38h]
long long v8; // [rsp+30h] [rbp-30h]
long long v9; // [rsp+38h] [rbp-28h]
unsigned int v10; // [rsp+44h] [rbp-1Ch]
unsigned int v11; // [rsp+48h] [rbp-18h]
unsigned int v12; // [rsp+4Ch] [rbp-14h]
v12 = 0;
v9 = *(_QWORD *)(*(_QWORD *)a1 + 1416LL);
v8 = *(_QWORD *)(*(_QWORD *)a1 + 1448LL);
if ( *(_DWORD *)(*(_QWORD *)a1 + 1020LL) )
v12 = my_checksum(0LL, a2, *(unsigned int *)(*(_QWORD *)a1 + 1020LL));
v11 = 0;
v10 = *(_DWORD *)(*(_QWORD *)a1 + 968LL);
while ( v11 < v10 )
{
v7 = 56LL * *(unsigned __int16 *)(v8 + 2LL * v11) + v9;
if ( (*(_BYTE *)(v7 + 18) & *(_BYTE *)(a2 + *(unsigned __int16 *)(v7 + 14))) == 0 )
{
v6 = (unsigned __int8 *)(*(unsigned int *)(v7 + 4) + a2);
if ( *(_DWORD *)v7 == 4 )
{
v3 = *(unsigned __int16 *)(v7 + 8) - 8;
v4 = ma_calc_blob_length(v3, v6);
if ( v4 )
v12 = my_checksum(v12, *(_QWORD *)&v6[v3], v4);
}
else
{
if ( *(_DWORD *)v7 == 8 )
{
if ( *(_WORD *)(v7 + 12) == 1 )
v5 = *v6;
else
v5 = *(unsigned __int16 *)v6;
v6 += *(unsigned __int16 *)(v7 + 12);
}
else
{
v5 = *(unsigned __int16 *)(v7 + 8);
}
v12 = my_checksum(v12, v6, v5);
}
}
++v11;
}
return v12;
}
|
_ma_checksum:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x588]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x5a8]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
CMP dword ptr [RAX + 0x3fc],0x0
JZ 0x00172379
MOV EDI,dword ptr [RBP + -0x14]
MOV RSI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX + 0x3fc]
MOV EDX,EAX
CALL 0x002093b0
MOV dword ptr [RBP + -0x14],EAX
LAB_00172379:
MOV dword ptr [RBP + -0x18],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX + 0x3c8]
MOV dword ptr [RBP + -0x1c],EAX
LAB_00172390:
MOV EAX,dword ptr [RBP + -0x18]
CMP EAX,dword ptr [RBP + -0x1c]
JNC 0x001724bd
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x30]
MOV EDX,dword ptr [RBP + -0x18]
MOVZX ECX,word ptr [RCX + RDX*0x2]
MOVSXD RCX,ECX
IMUL RCX,RCX,0x38
ADD RAX,RCX
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x38]
MOVZX ECX,word ptr [RCX + 0xe]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV RCX,qword ptr [RBP + -0x38]
MOVZX ECX,byte ptr [RCX + 0x12]
AND EAX,ECX
CMP EAX,0x0
JZ 0x001723dd
JMP 0x001724af
LAB_001723dd:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RCX + 0x4]
ADD RAX,RCX
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x54],EAX
SUB EAX,0x4
JZ 0x0017240c
JMP 0x001723ff
LAB_001723ff:
MOV EAX,dword ptr [RBP + -0x54]
SUB EAX,0x8
JZ 0x00172455
JMP 0x00172490
LAB_0017240c:
MOV RAX,qword ptr [RBP + -0x38]
MOVZX EAX,word ptr [RAX + 0x8]
SUB EAX,0x8
MOV dword ptr [RBP + -0x4c],EAX
MOV EDI,dword ptr [RBP + -0x4c]
MOV RSI,qword ptr [RBP + -0x40]
CALL 0x0014e640
MOV qword ptr [RBP + -0x48],RAX
CMP qword ptr [RBP + -0x48],0x0
JZ 0x00172453
MOV RAX,qword ptr [RBP + -0x40]
MOV ECX,dword ptr [RBP + -0x4c]
MOV RAX,qword ptr [RAX + RCX*0x1]
MOV qword ptr [RBP + -0x40],RAX
MOV EDI,dword ptr [RBP + -0x14]
MOV RSI,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x48]
CALL 0x002093b0
MOV dword ptr [RBP + -0x14],EAX
LAB_00172453:
JMP 0x001724af
LAB_00172455:
MOV RAX,qword ptr [RBP + -0x38]
MOVZX EAX,word ptr [RAX + 0xc]
MOV dword ptr [RBP + -0x50],EAX
CMP dword ptr [RBP + -0x50],0x1
JNZ 0x00172473
MOV RAX,qword ptr [RBP + -0x40]
MOVZX EAX,byte ptr [RAX]
MOV qword ptr [RBP + -0x48],RAX
JMP 0x0017247e
LAB_00172473:
MOV RAX,qword ptr [RBP + -0x40]
MOVZX EAX,word ptr [RAX]
MOV qword ptr [RBP + -0x48],RAX
LAB_0017247e:
MOV ECX,dword ptr [RBP + -0x50]
MOV RAX,qword ptr [RBP + -0x40]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x40],RAX
JMP 0x0017249c
LAB_00172490:
MOV RAX,qword ptr [RBP + -0x38]
MOVZX EAX,word ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x48],RAX
LAB_0017249c:
MOV EDI,dword ptr [RBP + -0x14]
MOV RSI,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x48]
CALL 0x002093b0
MOV dword ptr [RBP + -0x14],EAX
LAB_001724af:
MOV EAX,dword ptr [RBP + -0x18]
ADD EAX,0x1
MOV dword ptr [RBP + -0x18],EAX
JMP 0x00172390
LAB_001724bd:
MOV EAX,dword ptr [RBP + -0x14]
ADD RSP,0x60
POP RBP
RET
|
int4 _ma_checksum(long *param_1,long param_2)
{
uint uVar1;
long lVar2;
long lVar3;
ushort uVar4;
int *piVar5;
long lVar6;
ushort *local_48;
uint local_20;
int4 local_1c;
local_1c = 0;
lVar2 = *(long *)(*param_1 + 0x588);
lVar3 = *(long *)(*param_1 + 0x5a8);
if (*(int *)(*param_1 + 0x3fc) != 0) {
local_1c = my_checksum(0,param_2,*(int4 *)(*param_1 + 0x3fc));
}
local_20 = 0;
uVar1 = *(uint *)(*param_1 + 0x3c8);
for (; local_20 < uVar1; local_20 = local_20 + 1) {
piVar5 = (int *)(lVar2 + (long)(int)(uint)*(ushort *)(lVar3 + (ulong)local_20 * 2) * 0x38);
if ((*(byte *)(param_2 + (ulong)*(ushort *)((long)piVar5 + 0xe)) &
*(byte *)((long)piVar5 + 0x12)) == 0) {
local_48 = (ushort *)(param_2 + (ulong)(uint)piVar5[1]);
if (*piVar5 == 4) {
uVar4 = *(ushort *)(piVar5 + 2);
lVar6 = _ma_calc_blob_length(uVar4 - 8,local_48);
if (lVar6 != 0) {
local_1c = my_checksum(local_1c,*(int8 *)((long)local_48 + (ulong)(uVar4 - 8)),lVar6
);
}
}
else {
if (*piVar5 == 8) {
if (*(ushort *)(piVar5 + 3) == 1) {
uVar4 = (ushort)(byte)*local_48;
}
else {
uVar4 = *local_48;
}
local_48 = (ushort *)((long)local_48 + (ulong)(uint)*(ushort *)(piVar5 + 3));
}
else {
uVar4 = *(ushort *)(piVar5 + 2);
}
local_1c = my_checksum(local_1c,local_48,uVar4);
}
}
}
return local_1c;
}
|
|
56,973
|
google::protobuf::Reflection::AddEnumValueInternal(google::protobuf::Message*, google::protobuf::FieldDescriptor const*, int) const
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/generated_message_reflection.cc
|
void Reflection::AddEnumValueInternal(Message* message,
const FieldDescriptor* field,
int value) const {
if (field->is_extension()) {
MutableExtensionSet(message)->AddEnum(field->number(), field->type(),
field->options().packed(), value,
field);
} else {
AddField<int>(message, field, value);
}
}
|
O0
|
cpp
|
google::protobuf::Reflection::AddEnumValueInternal(google::protobuf::Message*, google::protobuf::FieldDescriptor const*, int) const:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movl %ecx, 0x2c(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x30(%rsp), %rdi
callq 0x73300
testb $0x1, %al
jne 0x111821
jmp 0x11188a
movq 0x20(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x10bee0
movq %rax, 0x10(%rsp)
movq 0x30(%rsp), %rdi
callq 0x73db0
movl %eax, 0x1c(%rsp)
movq 0x30(%rsp), %rdi
callq 0x74910
movb %al, 0xf(%rsp)
movq 0x30(%rsp), %rdi
callq 0x76460
movq %rax, %rdi
callq 0x76e30
movb 0xf(%rsp), %cl
movq 0x10(%rsp), %rdi
movl 0x1c(%rsp), %esi
movl 0x2c(%rsp), %r8d
movq 0x30(%rsp), %r9
movzbl %cl, %edx
movzbl %al, %ecx
andl $0x1, %ecx
callq 0x193bf0
jmp 0x1118a3
movq 0x20(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x30(%rsp), %rdx
leaq 0x2c(%rsp), %rcx
callq 0x11c310
addq $0x48, %rsp
retq
nopl (%rax,%rax)
|
_ZNK6google8protobuf10Reflection20AddEnumValueInternalEPNS0_7MessageEPKNS0_15FieldDescriptorEi:
sub rsp, 48h
mov [rsp+48h+var_8], rdi
mov [rsp+48h+var_10], rsi
mov [rsp+48h+var_18], rdx
mov [rsp+48h+var_1C], ecx
mov rax, [rsp+48h+var_8]
mov [rsp+48h+var_28], rax
mov rdi, [rsp+48h+var_18]; this
call _ZNK6google8protobuf15FieldDescriptor12is_extensionEv; google::protobuf::FieldDescriptor::is_extension(void)
test al, 1
jnz short loc_111821
jmp short loc_11188A
loc_111821:
mov rdi, [rsp+48h+var_28]; this
mov rsi, [rsp+48h+var_10]; google::protobuf::Message *
call _ZNK6google8protobuf10Reflection19MutableExtensionSetEPNS0_7MessageE; google::protobuf::Reflection::MutableExtensionSet(google::protobuf::Message *)
mov [rsp+48h+var_38], rax
mov rdi, [rsp+48h+var_18]; this
call _ZNK6google8protobuf15FieldDescriptor6numberEv; google::protobuf::FieldDescriptor::number(void)
mov [rsp+48h+var_2C], eax
mov rdi, [rsp+48h+var_18]; this
call _ZNK6google8protobuf15FieldDescriptor4typeEv; google::protobuf::FieldDescriptor::type(void)
mov [rsp+48h+var_39], al
mov rdi, [rsp+48h+var_18]; this
call _ZNK6google8protobuf15FieldDescriptor7optionsEv; google::protobuf::FieldDescriptor::options(void)
mov rdi, rax; this
call _ZNK6google8protobuf12FieldOptions6packedEv; google::protobuf::FieldOptions::packed(void)
mov cl, [rsp+48h+var_39]
mov rdi, [rsp+48h+var_38]; this
mov esi, [rsp+48h+var_2C]; int
mov r8d, [rsp+48h+var_1C]; int
mov r9, [rsp+48h+var_18]; google::protobuf::FieldDescriptor *
movzx edx, cl; unsigned __int8
movzx ecx, al
and ecx, 1; bool
call _ZN6google8protobuf8internal12ExtensionSet7AddEnumEihbiPKNS0_15FieldDescriptorE; google::protobuf::internal::ExtensionSet::AddEnum(int,uchar,bool,int,google::protobuf::FieldDescriptor const*)
jmp short loc_1118A3
loc_11188A:
mov rdi, [rsp+48h+var_28]
mov rsi, [rsp+48h+var_10]
mov rdx, [rsp+48h+var_18]
lea rcx, [rsp+48h+var_1C]
call _ZNK6google8protobuf10Reflection8AddFieldIiEEvPNS0_7MessageEPKNS0_15FieldDescriptorERKT_; google::protobuf::Reflection::AddField<int>(google::protobuf::Message *,google::protobuf::FieldDescriptor const*,int const&)
loc_1118A3:
add rsp, 48h
retn
|
long long google::protobuf::Reflection::AddEnumValueInternal(
google::protobuf::Reflection *this,
google::protobuf::Message *a2,
const google::protobuf::FieldDescriptor *a3,
int a4)
{
google::protobuf::FieldOptions *v4; // rax
char v5; // al
unsigned __int8 v7; // [rsp+Fh] [rbp-39h]
google::protobuf::internal::ExtensionSet *v8; // [rsp+10h] [rbp-38h]
int v9; // [rsp+1Ch] [rbp-2Ch]
int v10; // [rsp+2Ch] [rbp-1Ch] BYREF
google::protobuf::FieldDescriptor *v11; // [rsp+30h] [rbp-18h]
google::protobuf::Message *v12; // [rsp+38h] [rbp-10h]
google::protobuf::Reflection *v13; // [rsp+40h] [rbp-8h]
v13 = this;
v12 = a2;
v11 = a3;
v10 = a4;
if ( !google::protobuf::FieldDescriptor::is_extension(a3) )
return google::protobuf::Reflection::AddField<int>(this, v12, v11, &v10);
v8 = (google::protobuf::internal::ExtensionSet *)google::protobuf::Reflection::MutableExtensionSet(this, v12);
v9 = google::protobuf::FieldDescriptor::number(v11);
v7 = google::protobuf::FieldDescriptor::type(v11);
v4 = (google::protobuf::FieldOptions *)google::protobuf::FieldDescriptor::options(v11);
v5 = google::protobuf::FieldOptions::packed(v4);
return google::protobuf::internal::ExtensionSet::AddEnum(v8, v9, v7, v5 & 1, v10, v11);
}
| |||
56,974
|
google::protobuf::Reflection::AddEnumValueInternal(google::protobuf::Message*, google::protobuf::FieldDescriptor const*, int) const
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/generated_message_reflection.cc
|
void Reflection::AddEnumValueInternal(Message* message,
const FieldDescriptor* field,
int value) const {
if (field->is_extension()) {
MutableExtensionSet(message)->AddEnum(field->number(), field->type(),
field->options().packed(), value,
field);
} else {
AddField<int>(message, field, value);
}
}
|
O3
|
cpp
|
google::protobuf::Reflection::AddEnumValueInternal(google::protobuf::Message*, google::protobuf::FieldDescriptor const*, int) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %ecx, %ebx
movq %rdx, %r15
movq %rsi, %r14
testb $0x8, 0x1(%rdx)
jne 0x6a260
addq $0x8, %rdi
movq %r15, %rsi
callq 0x6ea6a
movl %eax, %eax
leaq (%r14,%rax), %r15
movl (%r14,%rax), %r12d
cmpl 0x4(%r14,%rax), %r12d
jne 0x6a2ac
leal 0x1(%r12), %ebp
movq %r15, %rdi
movl %ebp, %esi
callq 0xa18bc
movq 0x8(%r15), %rax
movl %ebx, (%rax,%r12,4)
jmp 0x6a2b9
movl 0x28(%rdi), %eax
addq %rax, %r14
movl 0x4(%r15), %ebp
movq 0x18(%r15), %rdi
testq %rdi, %rdi
je 0x6a28d
leaq -0x2f65a(%rip), %rax # 0x3ac20
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq %rsp, %rdx
movq %r15, (%rdx)
callq 0x3fc96
movzbl 0x2(%r15), %edx
movq 0x38(%r15), %rax
movzbl 0x50(%rax), %ecx
movq %r14, %rdi
movl %ebp, %esi
movl %ebx, %r8d
movq %r15, %r9
callq 0x95ca4
jmp 0x6a2bc
movq 0x8(%r15), %rax
movl %ebx, (%rax,%r12,4)
leal 0x1(%r12), %ebp
movl %ebp, (%r15)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
|
_ZNK6google8protobuf10Reflection20AddEnumValueInternalEPNS0_7MessageEPKNS0_15FieldDescriptorEi:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 10h
mov ebx, ecx
mov r15, rdx
mov r14, rsi
test byte ptr [rdx+1], 8
jnz short loc_6A260
add rdi, 8; this
mov rsi, r15; google::protobuf::FieldDescriptor *
call _ZNK6google8protobuf8internal16ReflectionSchema14GetFieldOffsetEPKNS0_15FieldDescriptorE; google::protobuf::internal::ReflectionSchema::GetFieldOffset(google::protobuf::FieldDescriptor const*)
mov eax, eax
lea r15, [r14+rax]
mov r12d, [r14+rax]
cmp r12d, [r14+rax+4]
jnz short loc_6A2AC
lea ebp, [r12+1]
mov rdi, r15
mov esi, ebp
call _ZN6google8protobuf13RepeatedFieldIiE7ReserveEi; google::protobuf::RepeatedField<int>::Reserve(int)
mov rax, [r15+8]
mov [rax+r12*4], ebx
jmp short loc_6A2B9
loc_6A260:
mov eax, [rdi+28h]
add r14, rax
mov ebp, [r15+4]
mov rdi, [r15+18h]
test rdi, rdi
jz short loc_6A28D
lea rax, _ZN6google8protobuf15FieldDescriptor12TypeOnceInitEPKS1_; google::protobuf::FieldDescriptor::TypeOnceInit(google::protobuf::FieldDescriptor const*)
lea rsi, [rsp+38h+var_30]
mov [rsi], rax
mov rdx, rsp
mov [rdx], r15
call _ZSt9call_onceIPFvPKN6google8protobuf15FieldDescriptorEEJS4_EEvRSt9once_flagOT_DpOT0_; std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(std::once_flag &,void (*)(google::protobuf::FieldDescriptor const*) &&,google::protobuf::FieldDescriptor const* &&)
loc_6A28D:
movzx edx, byte ptr [r15+2]; unsigned __int8
mov rax, [r15+38h]
movzx ecx, byte ptr [rax+50h]; bool
mov rdi, r14; this
mov esi, ebp; int
mov r8d, ebx; int
mov r9, r15; google::protobuf::FieldDescriptor *
call _ZN6google8protobuf8internal12ExtensionSet7AddEnumEihbiPKNS0_15FieldDescriptorE; google::protobuf::internal::ExtensionSet::AddEnum(int,uchar,bool,int,google::protobuf::FieldDescriptor const*)
jmp short loc_6A2BC
loc_6A2AC:
mov rax, [r15+8]
mov [rax+r12*4], ebx
lea ebp, [r12+1]
loc_6A2B9:
mov [r15], ebp
loc_6A2BC:
add rsp, 10h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
|
long long google::protobuf::Reflection::AddEnumValueInternal(
google::protobuf::Reflection *this,
google::protobuf::Message *a2,
const google::protobuf::FieldDescriptor *a3,
long long a4,
long long a5,
long long a6)
{
int v6; // ebx
unsigned int FieldOffset; // eax
unsigned int *v9; // r15
long long v10; // r12
unsigned int v11; // ebp
long long result; // rax
google::protobuf::internal::ExtensionSet *v13; // r14
int v14; // ebp
long long v15; // rdi
const google::protobuf::FieldDescriptor *v16; // [rsp+0h] [rbp-38h] BYREF
long long ( *v17[6])(google::protobuf::FieldDescriptor *, const google::protobuf::FieldDescriptor *); // [rsp+8h] [rbp-30h] BYREF
v6 = a4;
if ( (*((_BYTE *)a3 + 1) & 8) != 0 )
{
v13 = (google::protobuf::Message *)((char *)a2 + *((unsigned int *)this + 10));
v14 = *((_DWORD *)a3 + 1);
v15 = *((_QWORD *)a3 + 3);
if ( v15 )
{
v17[0] = google::protobuf::FieldDescriptor::TypeOnceInit;
v16 = a3;
std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(
v15,
(long long)v17,
(long long)&v16,
a4,
a5,
a6);
}
return google::protobuf::internal::ExtensionSet::AddEnum(
v13,
v14,
*((_BYTE *)a3 + 2),
*(_BYTE *)(*((_QWORD *)a3 + 7) + 80LL),
v6,
a3);
}
else
{
FieldOffset = google::protobuf::internal::ReflectionSchema::GetFieldOffset(
(google::protobuf::Reflection *)((char *)this + 8),
a3);
v9 = (unsigned int *)((char *)a2 + FieldOffset);
v10 = *v9;
if ( (_DWORD)v10 == v9[1] )
{
v11 = v10 + 1;
google::protobuf::RepeatedField<int>::Reserve((char *)a2 + FieldOffset, (unsigned int)(v10 + 1));
result = *((_QWORD *)v9 + 1);
*(_DWORD *)(result + 4 * v10) = v6;
}
else
{
result = *((_QWORD *)v9 + 1);
*(_DWORD *)(result + 4 * v10) = v6;
v11 = v10 + 1;
}
*v9 = v11;
}
return result;
}
|
AddEnumValueInternal:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV EBX,ECX
MOV R15,RDX
MOV R14,RSI
TEST byte ptr [RDX + 0x1],0x8
JNZ 0x0016a260
ADD RDI,0x8
MOV RSI,R15
CALL 0x0016ea6a
MOV EAX,EAX
LEA R15,[R14 + RAX*0x1]
MOV R12D,dword ptr [R14 + RAX*0x1]
CMP R12D,dword ptr [R14 + RAX*0x1 + 0x4]
JNZ 0x0016a2ac
LEA EBP,[R12 + 0x1]
MOV RDI,R15
MOV ESI,EBP
CALL 0x001a18bc
MOV RAX,qword ptr [R15 + 0x8]
MOV dword ptr [RAX + R12*0x4],EBX
JMP 0x0016a2b9
LAB_0016a260:
MOV EAX,dword ptr [RDI + 0x28]
ADD R14,RAX
MOV EBP,dword ptr [R15 + 0x4]
MOV RDI,qword ptr [R15 + 0x18]
TEST RDI,RDI
JZ 0x0016a28d
LEA RAX,[0x13ac20]
LEA RSI,[RSP + 0x8]
MOV qword ptr [RSI],RAX
MOV RDX,RSP
MOV qword ptr [RDX],R15
CALL 0x0013fc96
LAB_0016a28d:
MOVZX EDX,byte ptr [R15 + 0x2]
MOV RAX,qword ptr [R15 + 0x38]
MOVZX ECX,byte ptr [RAX + 0x50]
MOV RDI,R14
MOV ESI,EBP
MOV R8D,EBX
MOV R9,R15
CALL 0x00195ca4
JMP 0x0016a2bc
LAB_0016a2ac:
MOV RAX,qword ptr [R15 + 0x8]
MOV dword ptr [RAX + R12*0x4],EBX
LEA EBP,[R12 + 0x1]
LAB_0016a2b9:
MOV dword ptr [R15],EBP
LAB_0016a2bc:
ADD RSP,0x10
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* google::protobuf::Reflection::AddEnumValueInternal(google::protobuf::Message*,
google::protobuf::FieldDescriptor const*, int) const */
void __thiscall
google::protobuf::Reflection::AddEnumValueInternal
(Reflection *this,Message *param_1,FieldDescriptor *param_2,int param_3)
{
RepeatedField<int> *this_00;
int iVar1;
uint uVar2;
ulong uVar3;
FieldDescriptor *local_38;
code *local_30;
if (((byte)param_2[1] & 8) == 0) {
uVar2 = internal::ReflectionSchema::GetFieldOffset((ReflectionSchema *)(this + 8),param_2);
uVar3 = (ulong)uVar2;
this_00 = (RepeatedField<int> *)(param_1 + uVar3);
uVar2 = *(uint *)(param_1 + uVar3);
if (uVar2 == *(uint *)(param_1 + uVar3 + 4)) {
RepeatedField<int>::Reserve(this_00,uVar2 + 1);
*(int *)(*(long *)(this_00 + 8) + (ulong)uVar2 * 4) = param_3;
}
else {
*(int *)(*(long *)(this_00 + 8) + (ulong)uVar2 * 4) = param_3;
}
*(uint *)this_00 = uVar2 + 1;
}
else {
uVar2 = *(uint *)(this + 0x28);
iVar1 = *(int *)(param_2 + 4);
if (*(once_flag **)(param_2 + 0x18) != (once_flag *)0x0) {
local_30 = FieldDescriptor::TypeOnceInit;
local_38 = param_2;
std::
call_once<void(*)(google::protobuf::FieldDescriptor_const*),google::protobuf::FieldDescriptor_const*>
(*(once_flag **)(param_2 + 0x18),(_func_void_FieldDescriptor_ptr *)&local_30,
&local_38);
}
internal::ExtensionSet::AddEnum
((ExtensionSet *)(param_1 + uVar2),iVar1,(uchar)param_2[2],
*(bool *)(*(long *)(param_2 + 0x38) + 0x50),param_3,param_2);
}
return;
}
|
|
56,975
|
testing::internal::StringStreamToString(std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char>>*)
|
giladroyz[P]FindPeaks/build_O0/_deps/googletest-src/googletest/src/gtest.cc
|
std::string StringStreamToString(::std::stringstream* ss) {
const ::std::string& str = ss->str();
const char* const start = str.c_str();
const char* const end = start + str.length();
std::string result;
result.reserve(static_cast<size_t>(2 * (end - start)));
for (const char* ch = start; ch != end; ++ch) {
if (*ch == '\0') {
result += "\\0"; // Replaces NUL with "\\0";
} else {
result += *ch;
}
}
return result;
}
|
O0
|
cpp
|
testing::internal::StringStreamToString(std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char>>*):
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x70(%rbp)
movq %rdi, %rax
movq %rax, -0x88(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rsi
leaq -0x38(%rbp), %rdi
movq %rdi, -0x80(%rbp)
callq 0xa5f0
movq -0x80(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
callq 0xa260
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x18(%rbp), %rdi
callq 0xaab0
movq -0x70(%rbp), %rdi
movq %rax, %rcx
movq -0x78(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movb $0x0, -0x49(%rbp)
callq 0xa9d0
movq -0x70(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rax
subq %rax, %rsi
addq %rsi, %rsi
callq 0xab00
jmp 0x2632c
movq -0x40(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
cmpq -0x48(%rbp), %rax
je 0x263a2
movq -0x68(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x2637e
movq -0x70(%rbp), %rdi
leaq 0x54fff(%rip), %rsi # 0x7b354
callq 0xa5e0
jmp 0x2635c
jmp 0x26392
movq -0x70(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
callq 0xad98
leaq -0x38(%rbp), %rdi
callq 0xad98
jmp 0x263ce
movq -0x70(%rbp), %rdi
movq -0x68(%rbp), %rax
movsbl (%rax), %esi
callq 0xa3a0
jmp 0x26390
jmp 0x26392
jmp 0x26394
movq -0x68(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x68(%rbp)
jmp 0x26334
movb $0x1, -0x49(%rbp)
testb $0x1, -0x49(%rbp)
jne 0x263b5
movq -0x70(%rbp), %rdi
callq 0xad98
leaq -0x38(%rbp), %rdi
callq 0xad98
movq -0x88(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
movq -0x58(%rbp), %rdi
callq 0xac00
nopw (%rax,%rax)
|
_ZN7testing8internal20StringStreamToStringEPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE:
push rbp
mov rbp, rsp
sub rsp, 90h
mov [rbp+var_70], rdi
mov rax, rdi
mov [rbp+var_88], rax
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rsi, [rbp+var_10]
lea rdi, [rbp+var_38]
mov [rbp+var_80], rdi
call __ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::str(void)
mov rax, [rbp+var_80]
mov [rbp+var_18], rax
mov rdi, [rbp+var_18]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void)
mov [rbp+var_40], rax
mov rax, [rbp+var_40]
mov [rbp+var_78], rax
mov rdi, [rbp+var_18]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv; std::string::length(void)
mov rdi, [rbp+var_70]
mov rcx, rax
mov rax, [rbp+var_78]
add rax, rcx
mov [rbp+var_48], rax
mov [rbp+var_49], 0
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void)
mov rdi, [rbp+var_70]
mov rsi, [rbp+var_48]
mov rax, [rbp+var_40]
sub rsi, rax
add rsi, rsi
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
jmp short $+2
loc_2632C:
mov rax, [rbp+var_40]
mov [rbp+var_68], rax
loc_26334:
mov rax, [rbp+var_68]
cmp rax, [rbp+var_48]
jz short loc_263A2
mov rax, [rbp+var_68]
movsx eax, byte ptr [rax]
cmp eax, 0
jnz short loc_2637E
mov rdi, [rbp+var_70]
lea rsi, a0; "\\0"
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc; std::string::operator+=(char const*)
jmp short $+2
loc_2635C:
jmp short loc_26392
mov rdi, [rbp+var_70]; void *
mov rcx, rax
mov eax, edx
mov [rbp+var_58], rcx
mov [rbp+var_5C], eax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rbp+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_263CE
loc_2637E:
mov rdi, [rbp+var_70]
mov rax, [rbp+var_68]
movsx esi, byte ptr [rax]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc; std::string::operator+=(char)
jmp short $+2
loc_26390:
jmp short $+2
loc_26392:
jmp short $+2
loc_26394:
mov rax, [rbp+var_68]
add rax, 1
mov [rbp+var_68], rax
jmp short loc_26334
loc_263A2:
mov [rbp+var_49], 1
test [rbp+var_49], 1
jnz short loc_263B5
mov rdi, [rbp+var_70]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_263B5:
lea rdi, [rbp+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov rax, [rbp+var_88]
add rsp, 90h
pop rbp
retn
loc_263CE:
mov rdi, [rbp+var_58]
call __Unwind_Resume
|
long long testing::internal::StringStreamToString(long long a1, long long a2)
{
long long v3; // [rsp+18h] [rbp-78h]
_BYTE *i; // [rsp+28h] [rbp-68h]
_BYTE *v5; // [rsp+48h] [rbp-48h]
_BYTE v6[32]; // [rsp+58h] [rbp-38h] BYREF
_BYTE *v7; // [rsp+78h] [rbp-18h]
long long v8; // [rsp+80h] [rbp-10h]
long long v9; // [rsp+88h] [rbp-8h]
v9 = a1;
v8 = a2;
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::str(v6, a2);
v7 = v6;
v3 = std::string::c_str(v6);
v5 = (_BYTE *)(std::string::length(v7) + v3);
std::string::basic_string(a1);
std::string::reserve(a1, 2LL * (_QWORD)&v5[-v3]);
for ( i = (_BYTE *)v3; i != v5; ++i )
{
if ( *i )
std::string::operator+=(a1, (unsigned int)(char)*i);
else
std::string::operator+=(a1, "\\0");
}
std::string::~string(v6);
return a1;
}
|
StringStreamToString:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV qword ptr [RBP + -0x70],RDI
MOV RAX,RDI
MOV qword ptr [RBP + -0x88],RAX
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RSI,qword ptr [RBP + -0x10]
LEA RDI,[RBP + -0x38]
MOV qword ptr [RBP + -0x80],RDI
CALL 0x0010a5f0
MOV RAX,qword ptr [RBP + -0x80]
MOV qword ptr [RBP + -0x18],RAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x0010a260
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x78],RAX
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x0010aab0
MOV RDI,qword ptr [RBP + -0x70]
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x78]
ADD RAX,RCX
MOV qword ptr [RBP + -0x48],RAX
MOV byte ptr [RBP + -0x49],0x0
CALL 0x0010a9d0
MOV RDI,qword ptr [RBP + -0x70]
MOV RSI,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RBP + -0x40]
SUB RSI,RAX
ADD RSI,RSI
LAB_00126325:
CALL 0x0010ab00
JMP 0x0012632c
LAB_0012632c:
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x68],RAX
LAB_00126334:
MOV RAX,qword ptr [RBP + -0x68]
CMP RAX,qword ptr [RBP + -0x48]
JZ 0x001263a2
MOV RAX,qword ptr [RBP + -0x68]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
JNZ 0x0012637e
MOV RDI,qword ptr [RBP + -0x70]
LEA RSI,[0x17b354]
CALL 0x0010a5e0
JMP 0x0012635c
LAB_0012635c:
JMP 0x00126392
LAB_0012637e:
MOV RDI,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RBP + -0x68]
MOVSX ESI,byte ptr [RAX]
CALL 0x0010a3a0
LAB_0012638e:
JMP 0x00126390
LAB_00126390:
JMP 0x00126392
LAB_00126392:
JMP 0x00126394
LAB_00126394:
MOV RAX,qword ptr [RBP + -0x68]
ADD RAX,0x1
MOV qword ptr [RBP + -0x68],RAX
JMP 0x00126334
LAB_001263a2:
MOV byte ptr [RBP + -0x49],0x1
TEST byte ptr [RBP + -0x49],0x1
JNZ 0x001263b5
MOV RDI,qword ptr [RBP + -0x70]
CALL 0x0010ad98
LAB_001263b5:
LEA RDI,[RBP + -0x38]
CALL 0x0010ad98
MOV RAX,qword ptr [RBP + -0x88]
ADD RSP,0x90
POP RBP
RET
|
/* WARNING: Removing unreachable block (ram,0x001263ac) */
/* testing::internal::StringStreamToString(std::__cxx11::stringstream*) */
internal * __thiscall testing::internal::StringStreamToString(internal *this,stringstream *param_1)
{
long lVar1;
char *pcVar2;
char *local_70;
string local_40 [32];
string *local_20;
stringstream *local_18;
internal *local_10;
local_18 = param_1;
local_10 = this;
std::__cxx11::stringstream::str();
local_20 = local_40;
local_70 = (char *)std::__cxx11::string::c_str();
lVar1 = std::__cxx11::string::length();
pcVar2 = local_70 + lVar1;
std::__cxx11::string::string((string *)this);
/* try { // try from 00126325 to 0012638d has its CatchHandler @ 0012635e */
std::__cxx11::string::reserve((ulong)this);
for (; local_70 != pcVar2; local_70 = local_70 + 1) {
if (*local_70 == '\0') {
std::__cxx11::string::operator+=((string *)this,"\\0");
}
else {
std::__cxx11::string::operator+=((string *)this,*local_70);
}
}
std::__cxx11::string::~string(local_40);
return this;
}
|
|
56,976
|
ma_ft_add
|
eloqsql/storage/maria/ma_ft_update.c
|
int _ma_ft_add(MARIA_HA *info, uint keynr, uchar *keybuf, const uchar *record,
my_off_t pos)
{
int error= -1;
FT_WORD *wlist;
DBUG_ENTER("_ma_ft_add");
DBUG_PRINT("enter",("keynr: %d",keynr));
if ((wlist= _ma_ft_parserecord(info, keynr, record, &info->ft_memroot)))
error= _ma_ft_store(info,keynr,keybuf,wlist,pos);
free_root(&info->ft_memroot, MYF(MY_MARK_BLOCKS_FREE));
DBUG_PRINT("exit",("Return: %d",error));
DBUG_RETURN(error);
}
|
O3
|
c
|
ma_ft_add:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rdx, %r15
movl %esi, %r12d
movq %rdi, %r13
leaq 0x328(%rdi), %rbx
movq %rcx, %rdx
movq %rbx, %rcx
callq 0x6b4f0
testq %rax, %rax
je 0x6ba2d
movq %r13, %rdi
movl %r12d, %esi
movq %r15, %rdx
movq %rax, %rcx
movq %r14, %r8
callq 0x6b96a
movl %eax, %r14d
jmp 0x6ba33
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
movl $0x2, %esi
movq %rbx, %rdi
callq 0x9de3f
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
_ma_ft_add:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, r8
mov r15, rdx
mov r12d, esi
mov r13, rdi
lea rbx, [rdi+328h]
mov rdx, rcx
mov rcx, rbx
call _ma_ft_parserecord
test rax, rax
jz short loc_6BA2D
mov rdi, r13
mov esi, r12d
mov rdx, r15
mov rcx, rax
mov r8, r14
call _ma_ft_store
mov r14d, eax
jmp short loc_6BA33
loc_6BA2D:
mov r14d, 0FFFFFFFFh
loc_6BA33:
mov esi, 2
mov rdi, rbx
call free_root
mov eax, r14d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long ma_ft_add(_QWORD *a1, unsigned int a2, char *a3, long long a4, long long a5, __m128i a6)
{
_QWORD *v8; // rax
unsigned int v9; // r14d
v8 = ma_ft_parserecord(a1, a2, a4, (long long)(a1 + 101));
if ( v8 )
v9 = ma_ft_store(a1, a2, a3, v8, a5, a6);
else
v9 = -1;
free_root(a1 + 101, 2LL);
return v9;
}
|
_ma_ft_add:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,R8
MOV R15,RDX
MOV R12D,ESI
MOV R13,RDI
LEA RBX,[RDI + 0x328]
MOV RDX,RCX
MOV RCX,RBX
CALL 0x0016b4f0
TEST RAX,RAX
JZ 0x0016ba2d
MOV RDI,R13
MOV ESI,R12D
MOV RDX,R15
MOV RCX,RAX
MOV R8,R14
CALL 0x0016b96a
MOV R14D,EAX
JMP 0x0016ba33
LAB_0016ba2d:
MOV R14D,0xffffffff
LAB_0016ba33:
MOV ESI,0x2
MOV RDI,RBX
CALL 0x0019de3f
MOV EAX,R14D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int4
_ma_ft_add(long param_1,ulong param_2,int8 param_3,int8 param_4,int8 param_5)
{
int4 uVar1;
long lVar2;
lVar2 = _ma_ft_parserecord(param_1,param_2,param_4,param_1 + 0x328);
if (lVar2 == 0) {
uVar1 = 0xffffffff;
}
else {
uVar1 = _ma_ft_store(param_1,param_2 & 0xffffffff,param_3,lVar2,param_5);
}
free_root(param_1 + 0x328,2);
return uVar1;
}
|
|
56,977
|
my_set_max_open_files
|
eloqsql/mysys/my_file.c
|
uint my_set_max_open_files(uint files)
{
struct st_my_file_info *tmp;
DBUG_ENTER("my_set_max_open_files");
DBUG_PRINT("enter",("files: %u my_file_limit: %u", files, my_file_limit));
files+= MY_FILE_MIN;
files= set_max_open_files(MY_MIN(files, OS_FILE_LIMIT));
if (files <= MY_NFILE)
DBUG_RETURN(files);
if (!(tmp= (struct st_my_file_info*) my_malloc(key_memory_my_file_info,
sizeof(*tmp) * files,
MYF(MY_WME))))
DBUG_RETURN(MY_NFILE);
/* Copy any initialized files */
memcpy((char*) tmp, (char*) my_file_info,
sizeof(*tmp) * MY_MIN(my_file_limit, files));
bzero((char*) (tmp + my_file_limit),
MY_MAX((int) (files- my_file_limit), 0)*sizeof(*tmp));
my_free_open_file_info(); /* Free if already allocated */
my_file_info= tmp;
my_file_limit= files;
DBUG_PRINT("exit",("files: %u", files));
DBUG_RETURN(files);
}
|
O3
|
c
|
my_set_max_open_files:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edi, %r14d
leaq -0x38(%rbp), %rsi
movl $0x7, %edi
callq 0x29340
testl %eax, %eax
je 0x9e5fe
movl %r14d, %ebx
cmpl $0x41, %ebx
jb 0x9e661
leaq 0xb6a12f(%rip), %rax # 0xc08694
movl (%rax), %edi
movl %ebx, %esi
shlq $0x4, %rsi
movl $0x10, %edx
callq 0x9ff21
testq %rax, %rax
je 0x9e65c
movq %rax, %r14
leaq 0x2e758e(%rip), %r12 # 0x385b18
movq (%r12), %rsi
leaq 0x2e757b(%rip), %r13 # 0x385b10
movl (%r13), %edx
cmpl %ebx, %edx
cmovael %ebx, %edx
shlq $0x4, %rdx
movq %rax, %rdi
callq 0x29080
movl (%r13), %edi
movl %ebx, %edx
subl %edi, %edx
shlq $0x4, %rdi
addq %r14, %rdi
xorl %eax, %eax
testl %edx, %edx
cmovlel %eax, %edx
shlq $0x4, %rdx
xorl %esi, %esi
callq 0x292b0
movq (%r12), %r15
cmpq 0x2e59f2(%rip), %r15 # 0x383fc8
je 0x9e5f4
leaq 0xb69b91(%rip), %rdi # 0xc08170
movl $0x400, %edx # imm = 0x400
movq %r15, %rsi
callq 0x29080
movq %r15, %rdi
callq 0xa014e
movq %r14, (%r12)
movl %ebx, (%r13)
jmp 0x9e661
movq -0x38(%rbp), %rbx
cmpq $-0x1, %rbx
je 0x9e552
movl %r14d, %eax
cmpq %rax, %rbx
jae 0x9e552
leaq -0x38(%rbp), %rsi
movq %rax, 0x8(%rsi)
movq %rax, (%rsi)
movl $0x7, %edi
callq 0x29520
testl %eax, %eax
jne 0x9e555
leaq -0x38(%rbp), %rbx
movq $0x0, (%rbx)
movl $0x7, %edi
movq %rbx, %rsi
callq 0x29340
movq (%rbx), %rbx
testq %rbx, %rbx
cmovel %r14d, %ebx
jmp 0x9e555
movl $0x40, %ebx
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
my_set_max_open_files:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r14d, edi
lea rsi, [rbp+var_38]
mov edi, 7
call _getrlimit64
test eax, eax
jz loc_9E5FE
loc_9E552:
mov ebx, r14d
loc_9E555:
cmp ebx, 41h ; 'A'
jb loc_9E661
lea rax, key_memory_my_file_info
mov edi, [rax]
mov esi, ebx
shl rsi, 4
mov edx, 10h
call my_malloc
test rax, rax
jz loc_9E65C
mov r14, rax
lea r12, my_file_info
mov rsi, [r12]
lea r13, my_file_limit
mov edx, [r13+0]
cmp edx, ebx
cmovnb edx, ebx
shl rdx, 4
mov rdi, rax
call _memcpy
mov edi, [r13+0]
mov edx, ebx
sub edx, edi
shl rdi, 4
add rdi, r14
xor eax, eax
test edx, edx
cmovle edx, eax
shl rdx, 4
xor esi, esi
call _memset
mov r15, [r12]
cmp r15, cs:my_file_info_default_ptr
jz short loc_9E5F4
lea rdi, my_file_info_default
mov edx, 400h
mov rsi, r15
call _memcpy
mov rdi, r15
call my_free
loc_9E5F4:
mov [r12], r14
mov [r13+0], ebx
jmp short loc_9E661
loc_9E5FE:
mov rbx, [rbp+var_38]
cmp rbx, 0FFFFFFFFFFFFFFFFh
jz loc_9E552
mov eax, r14d
cmp rbx, rax
jnb loc_9E552
lea rsi, [rbp+var_38]
mov [rsi+8], rax
mov [rsi], rax
mov edi, 7
call _setrlimit64
test eax, eax
jnz loc_9E555
lea rbx, [rbp+var_38]
mov qword ptr [rbx], 0
mov edi, 7
mov rsi, rbx
call _getrlimit64
mov rbx, [rbx]
test rbx, rbx
cmovz ebx, r14d
jmp loc_9E555
loc_9E65C:
mov ebx, 40h ; '@'
loc_9E661:
mov eax, ebx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long my_set_max_open_files(unsigned int a1)
{
unsigned int v1; // ebx
long long v2; // rax
char *v3; // r14
long long v4; // rdx
long long v5; // rdx
void *v6; // r15
_QWORD v8[7]; // [rsp+8h] [rbp-38h] BYREF
if ( (unsigned int)getrlimit64(7LL, v8) || (v1 = v8[0], v8[0] == -1LL) || v8[0] >= (unsigned long long)a1 )
{
v1 = a1;
}
else
{
v8[1] = a1;
v8[0] = a1;
if ( !(unsigned int)setrlimit64(7LL) )
{
v8[0] = 0LL;
getrlimit64(7LL, v8);
v1 = v8[0];
if ( !v8[0] )
v1 = a1;
}
}
if ( v1 >= 0x41 )
{
v2 = my_malloc(key_memory_my_file_info, 16LL * v1, 16LL);
if ( v2 )
{
v3 = (char *)v2;
v4 = my_file_limit;
if ( my_file_limit >= v1 )
v4 = v1;
memcpy(v2, my_file_info, 16 * v4);
v5 = v1 - my_file_limit;
if ( (int)v5 <= 0 )
v5 = 0LL;
memset(&v3[16 * my_file_limit], 0LL, 16 * v5);
v6 = my_file_info;
if ( my_file_info != &my_file_info_default )
{
memcpy(&my_file_info_default, my_file_info, 1024LL);
my_free(v6);
}
my_file_info = v3;
my_file_limit = v1;
}
else
{
return 64;
}
}
return v1;
}
|
my_set_max_open_files:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R14D,EDI
LEA RSI,[RBP + -0x38]
MOV EDI,0x7
CALL 0x00129340
TEST EAX,EAX
JZ 0x0019e5fe
LAB_0019e552:
MOV EBX,R14D
LAB_0019e555:
CMP EBX,0x41
JC 0x0019e661
LEA RAX,[0xd08694]
MOV EDI,dword ptr [RAX]
MOV ESI,EBX
SHL RSI,0x4
MOV EDX,0x10
CALL 0x0019ff21
TEST RAX,RAX
JZ 0x0019e65c
MOV R14,RAX
LEA R12,[0x485b18]
MOV RSI,qword ptr [R12]
LEA R13,[0x485b10]
MOV EDX,dword ptr [R13]
CMP EDX,EBX
CMOVNC EDX,EBX
SHL RDX,0x4
MOV RDI,RAX
CALL 0x00129080
MOV EDI,dword ptr [R13]
MOV EDX,EBX
SUB EDX,EDI
SHL RDI,0x4
ADD RDI,R14
XOR EAX,EAX
TEST EDX,EDX
CMOVLE EDX,EAX
SHL RDX,0x4
XOR ESI,ESI
CALL 0x001292b0
MOV R15,qword ptr [R12]
CMP R15,qword ptr [0x00483fc8]
JZ 0x0019e5f4
LEA RDI,[0xd08170]
MOV EDX,0x400
MOV RSI,R15
CALL 0x00129080
MOV RDI,R15
CALL 0x001a014e
LAB_0019e5f4:
MOV qword ptr [R12],R14
MOV dword ptr [R13],EBX
JMP 0x0019e661
LAB_0019e5fe:
MOV RBX,qword ptr [RBP + -0x38]
CMP RBX,-0x1
JZ 0x0019e552
MOV EAX,R14D
CMP RBX,RAX
JNC 0x0019e552
LEA RSI,[RBP + -0x38]
MOV qword ptr [RSI + 0x8],RAX
MOV qword ptr [RSI],RAX
MOV EDI,0x7
CALL 0x00129520
TEST EAX,EAX
JNZ 0x0019e555
LEA RBX,[RBP + -0x38]
MOV qword ptr [RBX],0x0
MOV EDI,0x7
MOV RSI,RBX
CALL 0x00129340
MOV RBX,qword ptr [RBX]
TEST RBX,RBX
CMOVZ EBX,R14D
JMP 0x0019e555
LAB_0019e65c:
MOV EBX,0x40
LAB_0019e661:
MOV EAX,EBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Enum "__rlimit_resource": Some values do not have unique names */
ulong my_set_max_open_files(uint param_1)
{
uint uVar1;
int *puVar2;
rlim64_t rVar3;
int iVar4;
int *__dest;
ulong uVar5;
uint uVar6;
rlim64_t rVar7;
rlimit64 local_40;
rVar7 = (rlim64_t)param_1;
iVar4 = getrlimit64(RLIMIT_NOFILE,&local_40);
rVar3 = local_40.rlim_cur;
if ((((iVar4 == 0) && (local_40.rlim_cur != 0xffffffffffffffff)) && (local_40.rlim_cur < rVar7))
&& (local_40.rlim_cur = rVar7, local_40.rlim_max = rVar7,
iVar4 = setrlimit64(RLIMIT_NOFILE,&local_40), rVar7 = rVar3, iVar4 == 0)) {
local_40.rlim_cur = 0;
getrlimit64(RLIMIT_NOFILE,&local_40);
rVar7 = local_40.rlim_cur & 0xffffffff;
if (local_40.rlim_cur == 0) {
rVar7 = (rlim64_t)param_1;
}
}
uVar6 = (uint)rVar7;
uVar1 = my_file_limit;
__dest = my_file_info;
if (0x40 < uVar6) {
__dest = (int *)my_malloc(key_memory_my_file_info,(rVar7 & 0xffffffff) << 4,0x10);
if (__dest == (int *)0x0) {
rVar7 = 0x40;
uVar1 = my_file_limit;
__dest = my_file_info;
}
else {
uVar5 = (ulong)my_file_limit;
if (uVar6 <= my_file_limit) {
uVar5 = rVar7 & 0xffffffff;
}
memcpy(__dest,my_file_info,uVar5 << 4);
uVar1 = uVar6 - my_file_limit;
if ((int)(uVar6 - my_file_limit) < 1) {
uVar1 = 0;
}
memset(__dest + (ulong)my_file_limit * 0x10,0,(ulong)uVar1 << 4);
puVar2 = my_file_info;
uVar1 = uVar6;
if (my_file_info != PTR_my_file_info_default_00483fc8) {
memcpy(my_file_info_default,my_file_info,0x400);
my_free(puVar2);
}
}
}
my_file_info = __dest;
my_file_limit = uVar1;
return rVar7 & 0xffffffff;
}
|
|
56,978
|
YogaTest_layoutable_children_contents_leaf_node_Test::TestBody()
|
yoga-mod/tests/YGLayoutableChildrenTest.cpp
|
TEST(YogaTest, layoutable_children_contents_leaf_node) {
YGNodeRef root = YGNodeNew();
YGNodeRef root_child0 = YGNodeNew();
YGNodeRef root_child1 = YGNodeNew();
YGNodeRef root_child2 = YGNodeNew();
YGNodeInsertChild(root, root_child0, 0);
YGNodeInsertChild(root, root_child1, 1);
YGNodeInsertChild(root, root_child2, 2);
YGNodeStyleSetDisplay(root_child1, YGDisplayContents);
std::vector<facebook::yoga::Node*> order = {
facebook::yoga::resolveRef(root_child0),
facebook::yoga::resolveRef(root_child2),
};
auto correctOrderIt = order.begin();
for (auto node : facebook::yoga::resolveRef(root)->getLayoutChildren()) {
ASSERT_EQ(node, *correctOrderIt);
correctOrderIt++;
}
YGNodeFreeRecursive(root);
}
|
O3
|
cpp
|
YogaTest_layoutable_children_contents_leaf_node_Test::TestBody():
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
callq 0x366b25
movq %rax, %r12
callq 0x366b25
movq %rax, %rbx
callq 0x366b25
movq %rax, %r15
callq 0x366b25
movq %rax, %r14
movq %r12, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x36703b
movl $0x1, %edx
movq %r12, %rdi
movq %r15, %rsi
callq 0x36703b
movl $0x2, %edx
movq %r12, %rdi
movq %r14, %rsi
callq 0x36703b
movq %r15, %rdi
movl $0x2, %esi
callq 0x367d17
leaq -0x60(%rbp), %rsi
movq %rbx, (%rsi)
movq %r14, 0x8(%rsi)
leaq -0x88(%rbp), %rbx
leaq -0x38(%rbp), %rcx
movl $0x2, %edx
movq %rbx, %rdi
callq 0x9cd16
movq (%rbx), %r15
leaq -0x90(%rbp), %rsi
movq %r12, -0x68(%rbp)
movq %r12, (%rsi)
leaq -0x60(%rbp), %rdi
callq 0x9cd5c
leaq 0x2ff6d7(%rip), %r13 # 0x39cc5e
leaq -0x38(%rbp), %rbx
leaq -0x70(%rbp), %r14
leaq -0x60(%rbp), %r12
movq -0x60(%rbp), %rcx
movq -0x58(%rbp), %rsi
movq %rcx, %rax
orq %rsi, %rax
je 0x9d607
movq 0x218(%rcx), %rax
movq 0x220(%rcx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rsi, %rdx
jbe 0x9d6e7
movq (%rax,%rsi,8), %rax
movq %rax, -0x70(%rbp)
movq %rbx, %rdi
leaq 0x2fbaf9(%rip), %rsi # 0x3990cc
movq %r13, %rdx
movq %r14, %rcx
movq %r15, %r8
callq 0x9de94
cmpb $0x0, -0x38(%rbp)
je 0x9d633
movq -0x30(%rbp), %rsi
testq %rsi, %rsi
je 0x9d5f9
leaq -0x30(%rbp), %rdi
callq 0x6fd1c
addq $0x8, %r15
movq %r12, %rdi
callq 0x9dd5e
jmp 0x9d593
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x9d625
movq (%rdi), %rbx
movl $0x18, %esi
callq 0x32440
movq %rbx, %rdi
testq %rbx, %rbx
jne 0x9d610
movq -0x68(%rbp), %rdi
callq 0x366db0
jmp 0x9d6c0
leaq -0x48(%rbp), %rdi
callq 0x37f68a
movq -0x30(%rbp), %rax
testq %rax, %rax
je 0x9d64a
movq (%rax), %r8
jmp 0x9d651
leaq 0x30bd59(%rip), %r8 # 0x3a93aa
leaq 0x2ff5b9(%rip), %rdx # 0x39cc11
leaq -0x40(%rbp), %rdi
movl $0x2, %esi
movl $0x9e, %ecx
callq 0x37cfa4
leaq -0x40(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x37bc92
leaq -0x40(%rbp), %rdi
callq 0x37d01c
movq -0x48(%rbp), %rdi
testq %rdi, %rdi
je 0x9d690
movq (%rdi), %rax
callq *0x8(%rax)
movq -0x30(%rbp), %rsi
testq %rsi, %rsi
je 0x9d6a2
leaq -0x30(%rbp), %rdi
callq 0x6fd1c
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x9d6c0
movq (%rdi), %rbx
movl $0x18, %esi
callq 0x32440
movq %rbx, %rdi
testq %rbx, %rbx
jne 0x9d6ab
movq -0x88(%rbp), %rdi
testq %rdi, %rdi
je 0x9d6d8
movq -0x78(%rbp), %rsi
subq %rdi, %rsi
callq 0x32440
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2fccbe(%rip), %rdi # 0x39a3ac
xorl %eax, %eax
callq 0x32750
movq %rax, %r14
leaq -0x40(%rbp), %rdi
callq 0x37d01c
jmp 0x9d706
movq %rax, %r14
movq -0x48(%rbp), %rdi
testq %rdi, %rdi
je 0x9d71a
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x9d71a
movq %rax, %r14
movq -0x30(%rbp), %rsi
testq %rsi, %rsi
je 0x9d73c
leaq -0x30(%rbp), %rdi
callq 0x6fd1c
jmp 0x9d73c
jmp 0x9d730
movq %rax, %r14
jmp 0x9d75a
jmp 0x9d739
jmp 0x9d739
movq %rax, %r14
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x9d75a
movq (%rdi), %rbx
movl $0x18, %esi
callq 0x32440
movq %rbx, %rdi
testq %rbx, %rbx
jne 0x9d745
movq -0x88(%rbp), %rdi
testq %rdi, %rdi
je 0x9d772
movq -0x78(%rbp), %rsi
subq %rdi, %rsi
callq 0x32440
movq %r14, %rdi
callq 0x32840
|
_ZN52YogaTest_layoutable_children_contents_leaf_node_Test8TestBodyEv:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
call YGNodeNew
mov r12, rax
call YGNodeNew
mov rbx, rax
call YGNodeNew
mov r15, rax
call YGNodeNew
mov r14, rax
mov rdi, r12; this
mov rsi, rbx; facebook::yoga::Node *
xor edx, edx; unsigned __int64
call YGNodeInsertChild
mov edx, 1; unsigned __int64
mov rdi, r12; this
mov rsi, r15; facebook::yoga::Node *
call YGNodeInsertChild
mov edx, 2; unsigned __int64
mov rdi, r12; this
mov rsi, r14; facebook::yoga::Node *
call YGNodeInsertChild
mov rdi, r15
mov esi, 2
call YGNodeStyleSetDisplay
lea rsi, [rbp+var_60]
mov [rsi], rbx
mov [rsi+8], r14
lea rbx, [rbp+var_88]
lea rcx, [rbp+var_38]
mov edx, 2
mov rdi, rbx
call _ZNSt6vectorIPN8facebook4yoga4NodeESaIS3_EEC2ESt16initializer_listIS3_ERKS4_; std::vector<facebook::yoga::Node *>::vector(std::initializer_list<facebook::yoga::Node *>,std::allocator<facebook::yoga::Node *> const&)
mov r15, [rbx]
lea rsi, [rbp+var_90]
mov [rbp+var_68], r12
mov [rsi], r12
lea rdi, [rbp+var_60]
call _ZNK8facebook4yoga18LayoutableChildrenINS0_4NodeEE5beginEv; facebook::yoga::LayoutableChildren<facebook::yoga::Node>::begin(void)
lea r13, aCorrectorderit; "*correctOrderIt"
lea rbx, [rbp+var_38]
lea r14, [rbp+var_70]
lea r12, [rbp+var_60]
loc_9D593:
mov rcx, [rbp+var_60]
mov rsi, [rbp+var_58]
mov rax, rcx
or rax, rsi
jz short loc_9D607
mov rax, [rcx+218h]
mov rdx, [rcx+220h]
sub rdx, rax
sar rdx, 3
cmp rdx, rsi
jbe loc_9D6E7
mov rax, [rax+rsi*8]
mov [rbp+var_70], rax
mov rdi, rbx; this
lea rsi, aLasteventNode+0Ch; "node"
mov rdx, r13
mov rcx, r14
mov r8, r15
call _ZN7testing8internal11CmpHelperEQIPN8facebook4yoga4NodeES5_EENS_15AssertionResultEPKcS8_RKT_RKT0_; testing::internal::CmpHelperEQ<facebook::yoga::Node *,facebook::yoga::Node *>(char const*,char const*,facebook::yoga::Node * const&,facebook::yoga::Node * const&)
cmp [rbp+var_38], 0
jz short loc_9D633
mov rsi, [rbp+var_30]
test rsi, rsi
jz short loc_9D5F9
lea rdi, [rbp+var_30]
call _ZNKSt14default_deleteINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS5_; std::default_delete<std::string>::operator()(std::string*)
loc_9D5F9:
add r15, 8
mov rdi, r12
call _ZN8facebook4yoga18LayoutableChildrenINS0_4NodeEE8Iterator4nextEv; facebook::yoga::LayoutableChildren<facebook::yoga::Node>::Iterator::next(void)
jmp short loc_9D593
loc_9D607:
mov rdi, [rbp+var_50]; void *
test rdi, rdi
jz short loc_9D625
loc_9D610:
mov rbx, [rdi]
mov esi, 18h; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
mov rdi, rbx
test rbx, rbx
jnz short loc_9D610
loc_9D625:
mov rdi, [rbp+var_68]
call YGNodeFreeRecursive
jmp loc_9D6C0
loc_9D633:
lea rdi, [rbp+var_48]; this
call _ZN7testing7MessageC2Ev; testing::Message::Message(void)
mov rax, [rbp+var_30]
test rax, rax
jz short loc_9D64A
mov r8, [rax]
jmp short loc_9D651
loc_9D64A:
lea r8, aSFromSSMsTotal+1Ah; ""
loc_9D651:
lea rdx, aWorkspaceLlm4b_12; "/workspace/llm4binary/github2025/yoga-m"...
lea rdi, [rbp+var_40]
mov esi, 2
mov ecx, 9Eh
call _ZN7testing8internal12AssertHelperC2ENS_14TestPartResult4TypeEPKciS5_; testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type,char const*,int,char const*)
lea rdi, [rbp+var_40]
lea rsi, [rbp+var_48]
call _ZNK7testing8internal12AssertHelperaSERKNS_7MessageE; testing::internal::AssertHelper::operator=(testing::Message const&)
lea rdi, [rbp+var_40]; this
call _ZN7testing8internal12AssertHelperD2Ev; testing::internal::AssertHelper::~AssertHelper()
mov rdi, [rbp+var_48]
test rdi, rdi
jz short loc_9D690
mov rax, [rdi]
call qword ptr [rax+8]
loc_9D690:
mov rsi, [rbp+var_30]
test rsi, rsi
jz short loc_9D6A2
lea rdi, [rbp+var_30]
call _ZNKSt14default_deleteINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS5_; std::default_delete<std::string>::operator()(std::string*)
loc_9D6A2:
mov rdi, [rbp+var_50]; void *
test rdi, rdi
jz short loc_9D6C0
loc_9D6AB:
mov rbx, [rdi]
mov esi, 18h; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
mov rdi, rbx
test rbx, rbx
jnz short loc_9D6AB
loc_9D6C0:
mov rdi, [rbp+var_88]; void *
test rdi, rdi
jz short loc_9D6D8
mov rsi, [rbp+var_78]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_9D6D8:
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_9D6E7:
lea rdi, aVectorMRangeCh; "vector::_M_range_check: __n (which is %"...
xor eax, eax
call __ZSt24__throw_out_of_range_fmtPKcz; std::__throw_out_of_range_fmt(char const*,...)
mov r14, rax
lea rdi, [rbp+var_40]; this
call _ZN7testing8internal12AssertHelperD2Ev; testing::internal::AssertHelper::~AssertHelper()
jmp short loc_9D706
mov r14, rax
loc_9D706:
mov rdi, [rbp+var_48]
test rdi, rdi
jz short loc_9D71A
mov rax, [rdi]
call qword ptr [rax+8]
jmp short loc_9D71A
mov r14, rax
loc_9D71A:
mov rsi, [rbp+var_30]
test rsi, rsi
jz short loc_9D73C
lea rdi, [rbp+var_30]
call _ZNKSt14default_deleteINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS5_; std::default_delete<std::string>::operator()(std::string*)
jmp short loc_9D73C
jmp short $+2
loc_9D730:
mov r14, rax
jmp short loc_9D75A
jmp short loc_9D739
jmp short $+2
loc_9D739:
mov r14, rax
loc_9D73C:
mov rdi, [rbp+var_50]; void *
test rdi, rdi
jz short loc_9D75A
loc_9D745:
mov rbx, [rdi]
mov esi, 18h; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
mov rdi, rbx
test rbx, rbx
jnz short loc_9D745
loc_9D75A:
mov rdi, [rbp+var_88]; void *
test rdi, rdi
jz short loc_9D772
mov rsi, [rbp+var_78]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_9D772:
mov rdi, r14
call __Unwind_Resume
|
void YogaTest_layoutable_children_contents_leaf_node_Test::TestBody(
YogaTest_layoutable_children_contents_leaf_node_Test *this)
{
facebook::yoga::Node *v1; // r12
facebook::yoga::Node *v2; // rbx
facebook::yoga::Node *v3; // r15
facebook::yoga::Node *v4; // r14
char *v5; // r15
long long v6; // rax
unsigned long long v7; // rdx
_QWORD *v8; // rdi
_QWORD *v9; // rbx
char *v10; // r8
double v11; // xmm0_8
_QWORD *v12; // rdi
_QWORD *v13; // rbx
facebook::yoga::Node *v14; // [rsp+0h] [rbp-90h] BYREF
void *v15[4]; // [rsp+8h] [rbp-88h] BYREF
facebook::yoga::Node *v16; // [rsp+28h] [rbp-68h]
__int128 v17; // [rsp+30h] [rbp-60h] BYREF
void *v18; // [rsp+40h] [rbp-50h]
long long v19; // [rsp+48h] [rbp-48h] BYREF
_BYTE v20[8]; // [rsp+50h] [rbp-40h] BYREF
_BYTE v21[8]; // [rsp+58h] [rbp-38h] BYREF
long long v22[6]; // [rsp+60h] [rbp-30h] BYREF
v1 = (facebook::yoga::Node *)YGNodeNew(this);
v2 = (facebook::yoga::Node *)YGNodeNew(this);
v3 = (facebook::yoga::Node *)YGNodeNew(this);
v4 = (facebook::yoga::Node *)YGNodeNew(this);
YGNodeInsertChild(v1, v2, 0LL);
YGNodeInsertChild(v1, v3, 1uLL);
YGNodeInsertChild(v1, v4, 2uLL);
YGNodeStyleSetDisplay(v3, 2LL);
*(_QWORD *)&v17 = v2;
*((_QWORD *)&v17 + 1) = v4;
std::vector<facebook::yoga::Node *>::vector((long long)v15, (long long)&v17, 2LL);
v5 = (char *)v15[0];
v16 = v1;
v14 = v1;
facebook::yoga::LayoutableChildren<facebook::yoga::Node>::begin((long long)&v17, (long long)&v14);
while ( v17 != 0 )
{
v6 = *(_QWORD *)(v17 + 536);
v7 = (*(_QWORD *)(v17 + 544) - v6) >> 3;
if ( v7 <= *((_QWORD *)&v17 + 1) )
std::__throw_out_of_range_fmt(
"vector::_M_range_check: __n (which is %zu) >= this->size() (which is %zu)",
*((size_t *)&v17 + 1),
v7);
v15[3] = *(void **)(v6 + 8LL * *((_QWORD *)&v17 + 1));
testing::internal::CmpHelperEQ<facebook::yoga::Node *,facebook::yoga::Node *>((testing *)v21);
if ( !v21[0] )
{
testing::Message::Message((testing::Message *)&v19);
if ( v22[0] )
v10 = *(char **)v22[0];
else
v10 = "";
testing::internal::AssertHelper::AssertHelper(
v20,
2LL,
"/workspace/llm4binary/github2025/yoga-mod/tests/YGLayoutableChildrenTest.cpp",
158LL,
v10);
v11 = testing::internal::AssertHelper::operator=(v20, &v19);
testing::internal::AssertHelper::~AssertHelper((testing::internal::AssertHelper *)v20);
if ( v19 )
(*(void ( **)(long long, double))(*(_QWORD *)v19 + 8LL))(v19, v11);
if ( v22[0] )
std::default_delete<std::string>::operator()((long long)v22, v22[0]);
v12 = v18;
if ( v18 )
{
do
{
v13 = (_QWORD *)*v12;
operator delete(v12, 0x18uLL);
v12 = v13;
}
while ( v13 );
}
goto LABEL_20;
}
if ( v22[0] )
std::default_delete<std::string>::operator()((long long)v22, v22[0]);
v5 += 8;
facebook::yoga::LayoutableChildren<facebook::yoga::Node>::Iterator::next(&v17);
}
v8 = v18;
if ( v18 )
{
do
{
v9 = (_QWORD *)*v8;
operator delete(v8, 0x18uLL);
v8 = v9;
}
while ( v9 );
}
YGNodeFreeRecursive(v16);
LABEL_20:
if ( v15[0] )
operator delete(v15[0], (char *)v15[2] - (char *)v15[0]);
}
|
TestBody:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
CALL 0x00466b25
MOV R12,RAX
CALL 0x00466b25
MOV RBX,RAX
CALL 0x00466b25
MOV R15,RAX
CALL 0x00466b25
MOV R14,RAX
MOV RDI,R12
MOV RSI,RBX
XOR EDX,EDX
CALL 0x0046703b
MOV EDX,0x1
MOV RDI,R12
MOV RSI,R15
CALL 0x0046703b
MOV EDX,0x2
MOV RDI,R12
MOV RSI,R14
CALL 0x0046703b
MOV RDI,R15
MOV ESI,0x2
CALL 0x00467d17
LEA RSI,[RBP + -0x60]
MOV qword ptr [RSI],RBX
MOV qword ptr [RSI + 0x8],R14
LEA RBX,[RBP + -0x88]
LEA RCX,[RBP + -0x38]
MOV EDX,0x2
MOV RDI,RBX
CALL 0x0019cd16
MOV R15,qword ptr [RBX]
LEA RSI,[RBP + -0x90]
MOV qword ptr [RBP + -0x68],R12
MOV qword ptr [RSI],R12
LAB_0019d577:
LEA RDI,[RBP + -0x60]
CALL 0x0019cd5c
LEA R13,[0x49cc5e]
LEA RBX,[RBP + -0x38]
LEA R14,[RBP + -0x70]
LEA R12,[RBP + -0x60]
LAB_0019d593:
MOV RCX,qword ptr [RBP + -0x60]
MOV RSI,qword ptr [RBP + -0x58]
MOV RAX,RCX
OR RAX,RSI
JZ 0x0019d607
MOV RAX,qword ptr [RCX + 0x218]
MOV RDX,qword ptr [RCX + 0x220]
SUB RDX,RAX
SAR RDX,0x3
CMP RDX,RSI
JBE 0x0019d6e7
MOV RAX,qword ptr [RAX + RSI*0x8]
MOV qword ptr [RBP + -0x70],RAX
LAB_0019d5c9:
MOV RDI,RBX
LEA RSI,[0x4990cc]
MOV RDX,R13
MOV RCX,R14
MOV R8,R15
CALL 0x0019de94
CMP byte ptr [RBP + -0x38],0x0
JZ 0x0019d633
MOV RSI,qword ptr [RBP + -0x30]
TEST RSI,RSI
JZ 0x0019d5f9
LEA RDI,[RBP + -0x30]
CALL 0x0016fd1c
LAB_0019d5f9:
ADD R15,0x8
LAB_0019d5fd:
MOV RDI,R12
CALL 0x0019dd5e
JMP 0x0019d593
LAB_0019d607:
MOV RDI,qword ptr [RBP + -0x50]
TEST RDI,RDI
JZ 0x0019d625
LAB_0019d610:
MOV RBX,qword ptr [RDI]
MOV ESI,0x18
CALL 0x00132440
MOV RDI,RBX
TEST RBX,RBX
JNZ 0x0019d610
LAB_0019d625:
MOV RDI,qword ptr [RBP + -0x68]
CALL 0x00466db0
JMP 0x0019d6c0
LAB_0019d633:
LEA RDI,[RBP + -0x48]
CALL 0x0047f68a
MOV RAX,qword ptr [RBP + -0x30]
TEST RAX,RAX
JZ 0x0019d64a
MOV R8,qword ptr [RAX]
JMP 0x0019d651
LAB_0019d64a:
LEA R8,[0x4a93aa]
LAB_0019d651:
LEA RDX,[0x49cc11]
LEA RDI,[RBP + -0x40]
MOV ESI,0x2
MOV ECX,0x9e
CALL 0x0047cfa4
LAB_0019d66b:
LEA RDI,[RBP + -0x40]
LEA RSI,[RBP + -0x48]
CALL 0x0047bc92
LAB_0019d678:
LEA RDI,[RBP + -0x40]
CALL 0x0047d01c
MOV RDI,qword ptr [RBP + -0x48]
TEST RDI,RDI
JZ 0x0019d690
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
LAB_0019d690:
MOV RSI,qword ptr [RBP + -0x30]
TEST RSI,RSI
JZ 0x0019d6a2
LEA RDI,[RBP + -0x30]
CALL 0x0016fd1c
LAB_0019d6a2:
MOV RDI,qword ptr [RBP + -0x50]
TEST RDI,RDI
JZ 0x0019d6c0
LAB_0019d6ab:
MOV RBX,qword ptr [RDI]
MOV ESI,0x18
CALL 0x00132440
MOV RDI,RBX
TEST RBX,RBX
JNZ 0x0019d6ab
LAB_0019d6c0:
MOV RDI,qword ptr [RBP + -0x88]
TEST RDI,RDI
JZ 0x0019d6d8
MOV RSI,qword ptr [RBP + -0x78]
SUB RSI,RDI
CALL 0x00132440
LAB_0019d6d8:
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0019d6e7:
LEA RDI,[0x49a3ac]
XOR EAX,EAX
CALL 0x00132750
|
/* YogaTest_layoutable_children_contents_leaf_node_Test::TestBody() */
void YogaTest_layoutable_children_contents_leaf_node_Test::TestBody(void)
{
int8 *puVar1;
int8 uVar2;
long lVar3;
int8 uVar4;
ulong uVar5;
char *pcVar6;
int8 in_R9;
Node **ppNVar7;
Node **local_90 [2];
long local_80;
Node *local_78;
int8 local_70;
long local_68;
ulong local_60;
int8 *local_58;
long *local_50;
AssertHelper local_48 [8];
internal local_40 [8];
string *local_38;
uVar2 = YGNodeNew();
lVar3 = YGNodeNew();
uVar4 = YGNodeNew();
uVar5 = YGNodeNew();
YGNodeInsertChild(uVar2,lVar3,0);
YGNodeInsertChild(uVar2,uVar4,1);
YGNodeInsertChild(uVar2,uVar5,2);
YGNodeStyleSetDisplay(uVar4,2);
local_68 = lVar3;
local_60 = uVar5;
std::vector<facebook::yoga::Node*,std::allocator<facebook::yoga::Node*>>::vector
((vector<facebook::yoga::Node*,std::allocator<facebook::yoga::Node*>> *)local_90,
&local_68,2,local_40);
ppNVar7 = local_90[0];
local_70 = uVar2;
/* try { // try from 0019d577 to 0019d57f has its CatchHandler @ 0019d730 */
facebook::yoga::LayoutableChildren<facebook::yoga::Node>::begin();
do {
if (local_68 == 0 && local_60 == 0) {
while (local_58 != (int8 *)0x0) {
puVar1 = (int8 *)*local_58;
operator_delete(local_58,0x18);
local_58 = puVar1;
}
/* try { // try from 0019d625 to 0019d62d has its CatchHandler @ 0019d72e */
YGNodeFreeRecursive(local_70);
LAB_0019d6c0:
if (local_90[0] != (Node **)0x0) {
operator_delete(local_90[0],local_80 - (long)local_90[0]);
}
return;
}
if ((ulong)(*(long *)(local_68 + 0x220) - *(long *)(local_68 + 0x218) >> 3) <= local_60) {
/* try { // try from 0019d6e7 to 0019d6f4 has its CatchHandler @ 0019d737 */
/* WARNING: Subroutine does not return */
std::__throw_out_of_range_fmt
("vector::_M_range_check: __n (which is %zu) >= this->size() (which is %zu)");
}
local_78 = *(Node **)(*(long *)(local_68 + 0x218) + local_60 * 8);
/* try { // try from 0019d5c9 to 0019d5e0 has its CatchHandler @ 0019d739 */
testing::internal::CmpHelperEQ<facebook::yoga::Node*,facebook::yoga::Node*>
(local_40,"node","*correctOrderIt",&local_78,ppNVar7);
if (local_40[0] == (internal)0x0) {
/* try { // try from 0019d633 to 0019d63b has its CatchHandler @ 0019d717 */
testing::Message::Message((Message *)&local_50);
if (local_38 == (string *)0x0) {
pcVar6 = "";
}
else {
pcVar6 = *(char **)local_38;
}
/* try { // try from 0019d651 to 0019d66a has its CatchHandler @ 0019d703 */
testing::internal::AssertHelper::AssertHelper
(local_48,2,
"/workspace/llm4binary/github2025/yoga-mod/tests/YGLayoutableChildrenTest.cpp",0x9e
,pcVar6,in_R9,uVar2);
/* try { // try from 0019d66b to 0019d677 has its CatchHandler @ 0019d6f5 */
testing::internal::AssertHelper::operator=(local_48,(Message *)&local_50);
testing::internal::AssertHelper::~AssertHelper(local_48);
if (local_50 != (long *)0x0) {
(**(code **)(*local_50 + 8))();
}
if (local_38 != (string *)0x0) {
std::default_delete<std::__cxx11::string>::operator()
((default_delete<std::__cxx11::string> *)&local_38,local_38);
}
while (local_58 != (int8 *)0x0) {
puVar1 = (int8 *)*local_58;
operator_delete(local_58,0x18);
local_58 = puVar1;
}
goto LAB_0019d6c0;
}
if (local_38 != (string *)0x0) {
std::default_delete<std::__cxx11::string>::operator()
((default_delete<std::__cxx11::string> *)&local_38,local_38);
}
ppNVar7 = ppNVar7 + 1;
/* try { // try from 0019d5fd to 0019d604 has its CatchHandler @ 0019d735 */
facebook::yoga::LayoutableChildren<facebook::yoga::Node>::Iterator::next((Iterator *)&local_68);
} while( true );
}
|
|
56,979
|
get_all_kv_cache_types[abi:cxx11]()
|
monkey531[P]llama/common/arg.cpp
|
static std::string get_all_kv_cache_types() {
std::ostringstream msg;
for (const auto & type : kv_cache_types) {
msg << ggml_type_name(type) << (&type == &kv_cache_types.back() ? "" : ", ");
}
return msg.str();
}
|
O3
|
cpp
|
get_all_kv_cache_types[abi:cxx11]():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp # imm = 0x188
movq %rdi, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
callq 0x1aba0
movq 0xdee64(%rip), %r12 # 0x12cd78
movq 0xdee65(%rip), %r13 # 0x12cd80
cmpq %r13, %r12
je 0x4dfa9
leaq 0x98456(%rip), %rbp # 0xe6381
leaq 0xa1711(%rip), %rbx # 0xef643
leaq 0x10(%rsp), %r14
movl (%r12), %edi
callq 0x1a840
movq %rax, %r15
testq %rax, %rax
je 0x4df60
movq %r15, %rdi
callq 0x1a400
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x1aa10
jmp 0x4df7c
movq 0x10(%rsp), %rax
movq -0x18(%rax), %rax
leaq (%rsp,%rax), %rdi
addq $0x10, %rdi
movl 0x20(%rdi), %esi
orl $0x1, %esi
callq 0x1af10
movq 0xdedfd(%rip), %rax # 0x12cd80
addq $-0x4, %rax
xorl %edx, %edx
cmpq %rax, %r12
setne %dl
movq %rbx, %rsi
cmoveq %rbp, %rsi
addl %edx, %edx
movq %r14, %rdi
callq 0x1aa10
addq $0x4, %r12
cmpq %r13, %r12
jne 0x4df37
leaq 0x18(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x1add0
movq 0xddfb9(%rip), %rsi # 0x12bf78
leaq 0x10(%rsp), %rdi
callq 0x1a4c0
leaq 0x80(%rsp), %rdi
callq 0x1a2d0
addq $0x188, %rsp # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4dfea
movq %rax, %rbx
movq 0xddf84(%rip), %rsi # 0x12bf78
leaq 0x10(%rsp), %rdi
callq 0x1a4c0
leaq 0x80(%rsp), %rdi
callq 0x1a2d0
movq %rbx, %rdi
callq 0x1afd0
|
_ZL22get_all_kv_cache_typesB5cxx11v:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 188h
mov [rsp+1B8h+var_1B0], rdi
lea rdi, [rsp+1B8h+var_1A8]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void)
mov r12, cs:_ZL14kv_cache_types; kv_cache_types
mov r13, cs:qword_12CD80
cmp r12, r13
jz loc_4DFA9
lea rbp, aTarget+9; ""
lea rbx, aZuD+6; ", "
lea r14, [rsp+1B8h+var_1A8]
loc_4DF37:
mov edi, [r12]
call _ggml_type_name
mov r15, rax
test rax, rax
jz short loc_4DF60
mov rdi, r15
call _strlen
mov rdi, r14
mov rsi, r15
mov rdx, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
jmp short loc_4DF7C
loc_4DF60:
mov rax, [rsp+1B8h+var_1A8]
mov rax, [rax-18h]
lea rdi, [rsp+rax+1B8h+var_1B8]
add rdi, 10h
mov esi, [rdi+20h]
or esi, 1
call __ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate; std::ios::clear(std::_Ios_Iostate)
loc_4DF7C:
mov rax, cs:qword_12CD80
add rax, 0FFFFFFFFFFFFFFFCh
xor edx, edx
cmp r12, rax
setnz dl
mov rsi, rbx
cmovz rsi, rbp
add edx, edx
mov rdi, r14
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
add r12, 4
cmp r12, r13
jnz short loc_4DF37
loc_4DFA9:
lea rsi, [rsp+1B8h+var_1A0]
mov rdi, [rsp+1B8h+var_1B0]
call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void)
mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+1B8h+var_1A8]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream()
lea rdi, [rsp+1B8h+var_138]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
add rsp, 188h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_4DFEA:
mov rbx, rax
mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+arg_8]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream()
lea rdi, [rsp+arg_78]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rdi, rbx
call __Unwind_Resume
|
void get_all_kv_cache_types[abi:cxx11](long long a1)
{
unsigned int *v1; // r12
long long i; // r13
long long v3; // rax
long long v4; // r15
long long v5; // rax
char *v6; // rsi
long long v7; // [rsp+10h] [rbp-1A8h] BYREF
_BYTE v8[104]; // [rsp+18h] [rbp-1A0h] BYREF
_BYTE v9[312]; // [rsp+80h] [rbp-138h] BYREF
std::ostringstream::basic_ostringstream(&v7);
v1 = (unsigned int *)kv_cache_types;
for ( i = qword_12CD80; v1 != (unsigned int *)i; ++v1 )
{
v3 = ggml_type_name(*v1);
v4 = v3;
if ( v3 )
{
v5 = strlen(v3);
std::__ostream_insert<char,std::char_traits<char>>(&v7, v4, v5);
}
else
{
std::ios::clear(&v8[*(_QWORD *)(v7 - 24) - 8], *(_DWORD *)&v8[*(_QWORD *)(v7 - 24) + 24] | 1u);
}
v6 = ", ";
if ( v1 == (unsigned int *)(qword_12CD80 - 4) )
v6 = "";
std::__ostream_insert<char,std::char_traits<char>>(
&v7,
v6,
2 * (unsigned int)(v1 != (unsigned int *)(qword_12CD80 - 4)));
}
std::stringbuf::str(a1, v8);
std::ostringstream::~ostringstream(&v7, &`VTT for'std::ostringstream);
std::ios_base::~ios_base((std::ios_base *)v9);
}
|
get_all_kv_cache_types[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x188
MOV qword ptr [RSP + 0x8],RDI
LEA RDI,[RSP + 0x10]
CALL 0x0011aba0
MOV R12,qword ptr [0x0022cd78]
MOV R13,qword ptr [0x0022cd80]
CMP R12,R13
JZ 0x0014dfa9
LEA RBP,[0x1e6381]
LEA RBX,[0x1ef643]
LEA R14,[RSP + 0x10]
LAB_0014df37:
MOV EDI,dword ptr [R12]
LAB_0014df3b:
CALL 0x0011a840
MOV R15,RAX
TEST RAX,RAX
JZ 0x0014df60
MOV RDI,R15
CALL 0x0011a400
MOV RDI,R14
MOV RSI,R15
MOV RDX,RAX
CALL 0x0011aa10
JMP 0x0014df7c
LAB_0014df60:
MOV RAX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RAX + -0x18]
LEA RDI,[RSP + RAX*0x1]
ADD RDI,0x10
MOV ESI,dword ptr [RDI + 0x20]
OR ESI,0x1
CALL 0x0011af10
LAB_0014df7c:
MOV RAX,qword ptr [0x0022cd80]
ADD RAX,-0x4
XOR EDX,EDX
CMP R12,RAX
SETNZ DL
MOV RSI,RBX
CMOVZ RSI,RBP
ADD EDX,EDX
MOV RDI,R14
CALL 0x0011aa10
ADD R12,0x4
CMP R12,R13
JNZ 0x0014df37
LAB_0014dfa9:
LEA RSI,[RSP + 0x18]
LAB_0014dfae:
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x0011add0
LAB_0014dfb8:
MOV RSI,qword ptr [0x0022bf78]
LEA RDI,[RSP + 0x10]
CALL 0x0011a4c0
LEA RDI,[RSP + 0x80]
CALL 0x0011a2d0
ADD RSP,0x188
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* get_all_kv_cache_types[abi:cxx11]() */
void get_all_kv_cache_types_abi_cxx11_(void)
{
int4 *puVar1;
char *pcVar2;
size_t sVar3;
int4 *puVar4;
long local_1a8 [4];
uint auStack_188 [20];
ios_base local_138 [264];
std::__cxx11::ostringstream::ostringstream((ostringstream *)local_1a8);
puVar1 = DAT_0022cd80;
if (kv_cache_types != DAT_0022cd80) {
puVar4 = kv_cache_types;
do {
/* try { // try from 0014df3b to 0014df9f has its CatchHandler @ 0014dfea */
pcVar2 = (char *)ggml_type_name(*puVar4);
if (pcVar2 == (char *)0x0) {
std::ios::clear((long)local_1a8 + *(long *)(local_1a8[0] + -0x18),
*(uint *)((long)auStack_188 + *(long *)(local_1a8[0] + -0x18)) | 1);
}
else {
sVar3 = strlen(pcVar2);
std::__ostream_insert<char,std::char_traits<char>>((ostream *)local_1a8,pcVar2,sVar3);
}
pcVar2 = ", ";
if (puVar4 == DAT_0022cd80 + -1) {
pcVar2 = "";
}
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)local_1a8,pcVar2,(ulong)((uint)(puVar4 != DAT_0022cd80 + -1) * 2));
puVar4 = puVar4 + 1;
} while (puVar4 != puVar1);
}
/* try { // try from 0014dfae to 0014dfb7 has its CatchHandler @ 0014dfe8 */
std::__cxx11::stringbuf::str();
std::__cxx11::ostringstream::~ostringstream((ostringstream *)local_1a8);
std::ios_base::~ios_base(local_138);
return;
}
|
|
56,980
|
js_atomics_wait
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_atomics_wait(JSContext *ctx,
JSValue this_obj,
int argc, JSValue *argv)
{
int64_t v;
int32_t v32;
void *ptr;
int64_t timeout;
JSAtomicsWaiter waiter_s, *waiter;
int ret, size_log2, res;
double d;
ptr = js_atomics_get_ptr(ctx, NULL, &size_log2, NULL,
argv[0], argv[1], 2);
if (!ptr)
return JS_EXCEPTION;
if (size_log2 == 3) {
if (JS_ToBigInt64(ctx, &v, argv[2]))
return JS_EXCEPTION;
} else {
if (JS_ToInt32(ctx, &v32, argv[2]))
return JS_EXCEPTION;
v = v32;
}
if (JS_ToFloat64(ctx, &d, argv[3]))
return JS_EXCEPTION;
if (isnan(d) || d >= 0x1p63)
timeout = INT64_MAX;
else if (d < 0)
timeout = 0;
else
timeout = (int64_t)d;
if (!ctx->rt->can_block)
return JS_ThrowTypeError(ctx, "cannot block in this thread");
/* XXX: inefficient if large number of waiters, should hash on
'ptr' value */
js_mutex_lock(&js_atomics_mutex);
if (size_log2 == 3) {
res = *(int64_t *)ptr != v;
} else {
res = *(int32_t *)ptr != v;
}
if (res) {
js_mutex_unlock(&js_atomics_mutex);
return JS_AtomToString(ctx, JS_ATOM_not_equal);
}
waiter = &waiter_s;
waiter->ptr = ptr;
js_cond_init(&waiter->cond);
waiter->linked = TRUE;
list_add_tail(&waiter->link, &js_atomics_waiter_list);
if (timeout == INT64_MAX) {
js_cond_wait(&waiter->cond, &js_atomics_mutex);
ret = 0;
} else {
ret = js_cond_timedwait(&waiter->cond, &js_atomics_mutex, timeout * 1e6 /* to ns */);
}
if (waiter->linked)
list_del(&waiter->link);
js_mutex_unlock(&js_atomics_mutex);
js_cond_destroy(&waiter->cond);
if (ret == -1) {
return JS_AtomToString(ctx, JS_ATOM_timed_out);
} else {
return JS_AtomToString(ctx, JS_ATOM_ok);
}
}
|
O1
|
c
|
js_atomics_wait:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %r8, %r12
movq %rdi, %rbx
movq (%r8), %r8
movq 0x8(%r12), %r9
movupd 0x10(%r12), %xmm0
movupd %xmm0, (%rsp)
movl $0x2, 0x10(%rsp)
xorl %r13d, %r13d
leaq 0x24(%rsp), %rdx
xorl %esi, %esi
xorl %ecx, %ecx
callq 0x7edcd
movl $0x6, %r14d
testq %rax, %rax
je 0x7ea19
movq %rax, %r15
cmpl $0x3, 0x24(%rsp)
movq 0x20(%r12), %rdx
movq 0x28(%r12), %rcx
jne 0x7e9cf
movq %rdx, 0x40(%rsp)
cmpl $-0x9, %ecx
jb 0x7e9bc
movq 0x40(%rsp), %rax
incl (%rax)
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x277c4
testl %eax, %eax
jne 0x7ea16
jmp 0x7e9fb
movq %rdx, 0x40(%rsp)
cmpl $-0x9, %ecx
jb 0x7e9e0
movq 0x40(%rsp), %rax
incl (%rax)
leaq 0x34(%rsp), %rsi
movq %rbx, %rdi
callq 0x26daf
testl %eax, %eax
jne 0x7ea16
movslq 0x34(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x30(%r12), %rdx
movq 0x38(%r12), %rcx
leaq 0x38(%rsp), %rsi
movq %rbx, %rdi
callq 0x26a6d
testl %eax, %eax
je 0x7ea37
xorl %r13d, %r13d
xorl %r12d, %r12d
movl %r13d, %eax
orq %r12, %rax
movq %r14, %rdx
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
movsd 0x38(%rsp), %xmm0
ucomisd %xmm0, %xmm0
movq %rax, %r13
jp 0x7ea71
ucomisd 0x1e758(%rip), %xmm0 # 0x9d1b0
movq %rax, %r13
jae 0x7ea71
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jbe 0x7ea6c
xorl %r13d, %r13d
jmp 0x7ea71
cvttsd2si %xmm0, %r13
movq 0x18(%rbx), %rax
cmpb $0x0, 0x180(%rax)
je 0x7ea9b
leaq 0x4cb43(%rip), %rdi # 0xcb5c8
callq 0x1bb53
cmpl $0x3, 0x24(%rsp)
jne 0x7eab4
movq (%r15), %rax
cmpq 0x28(%rsp), %rax
jmp 0x7eabc
leaq 0x22370(%rip), %rsi # 0xa0e12
xorl %r13d, %r13d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x21953
jmp 0x7ea19
movslq (%r15), %rax
cmpq %rax, 0x28(%rsp)
setne %al
movabsq $-0x100000000, %r12 # imm = 0xFFFFFFFF00000000
movabsq $-0x4000000000000000, %rbp # imm = 0xC000000000000000
movabsq $0x4000000000000000, %r14 # imm = 0x4000000000000000
testb %al, %al
je 0x7eb17
leaq 0x4cae0(%rip), %rdi # 0xcb5c8
movl $0x80000000, %r15d # imm = 0x80000000
callq 0x1bb64
movq 0x18(%rbx), %rax
movq 0x68(%rax), %rax
movq 0x470(%rax), %r13
movq 0x4(%r13), %rcx
andq %rcx, %rbp
cmpq %r14, %rbp
sete %dl
cmpl %r15d, %ecx
jmp 0x7ec2e
leaq 0x58(%rsp), %r14
movq %r15, 0x30(%r14)
movq %r14, %rdi
callq 0x1bb75
movl $0x1, -0x8(%r14)
leaq 0x4c9f9(%rip), %rax # 0xcb530
movq 0x4c9f2(%rip), %rcx # 0xcb530
leaq 0x40(%rsp), %rdx
movq %rdx, 0x8(%rcx)
movq %rcx, (%rdx)
movq %rax, 0x8(%rdx)
movq %rdx, 0x4c9db(%rip) # 0xcb530
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
cmpq %rax, %r13
jne 0x7eb78
leaq 0x4ca5d(%rip), %rsi # 0xcb5c8
movq %r14, %rdi
callq 0x1bbfb
xorl %r15d, %r15d
jmp 0x7ebbd
xorps %xmm0, %xmm0
cvtsi2sd %r13, %xmm0
mulsd 0x1e5c8(%rip), %xmm0 # 0x9d150
cvttsd2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0x1e614(%rip), %xmm0 # 0x9d1b0
cvttsd2si %xmm0, %rdx
andq %rcx, %rdx
orq %rax, %rdx
leaq 0x4ca1a(%rip), %rsi # 0xcb5c8
movq %r14, %rdi
callq 0x1bc0c
cmpl $-0x1, %eax
sete %r15b
cmpl $0x0, 0x50(%rsp)
je 0x7ebdf
movq 0x40(%rsp), %rax
movq 0x48(%rsp), %rcx
movq %rcx, 0x8(%rax)
movq %rax, (%rcx)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x40(%rsp)
leaq 0x4c9e2(%rip), %rdi # 0xcb5c8
callq 0x1bb64
movq %r14, %rdi
callq 0x1bbc8
movq 0x18(%rbx), %rax
movq 0x68(%rax), %rax
testb %r15b, %r15b
je 0x7ec09
movq 0x478(%rax), %r13
jmp 0x7ec10
movq 0x480(%rax), %r13
movq 0x4(%r13), %rcx
andq %rcx, %rbp
movabsq $0x4000000000000000, %rdx # imm = 0x4000000000000000
cmpq %rdx, %rbp
sete %dl
movl $0x80000000, %esi # imm = 0x80000000
cmpl %esi, %ecx
setne %cl
orb %dl, %cl
jne 0x7ec3c
movq 0x178(%rax), %r13
incl (%r13)
andq %r13, %r12
movq $-0x7, %r14
jmp 0x7ea1c
|
js_atomics_wait:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 98h
mov r12, r8
mov rbx, rdi
mov r8, [r8]
mov r9, [r12+8]
movupd xmm0, xmmword ptr [r12+10h]
movupd [rsp+0C8h+var_C8], xmm0
mov [rsp+0C8h+var_B8], 2
xor r13d, r13d
lea rdx, [rsp+0C8h+var_A4]
xor esi, esi
xor ecx, ecx
call js_atomics_get_ptr
mov r14d, 6
test rax, rax
jz loc_7EA19
mov r15, rax
cmp [rsp+0C8h+var_A4], 3
mov rdx, [r12+20h]
mov rcx, [r12+28h]
jnz short loc_7E9CF
mov qword ptr [rsp+0C8h+var_88], rdx
cmp ecx, 0FFFFFFF7h
jb short loc_7E9BC
mov rax, qword ptr [rsp+0C8h+var_88]
inc dword ptr [rax]
loc_7E9BC:
lea rsi, [rsp+0C8h+var_A0]
mov rdi, rbx
call JS_ToBigInt64Free
test eax, eax
jnz short loc_7EA16
jmp short loc_7E9FB
loc_7E9CF:
mov qword ptr [rsp+0C8h+var_88], rdx
cmp ecx, 0FFFFFFF7h
jb short loc_7E9E0
mov rax, qword ptr [rsp+0C8h+var_88]
inc dword ptr [rax]
loc_7E9E0:
lea rsi, [rsp+0C8h+var_94]
mov rdi, rbx
call JS_ToInt32Free
test eax, eax
jnz short loc_7EA16
movsxd rax, [rsp+0C8h+var_94]
mov [rsp+0C8h+var_A0], rax
loc_7E9FB:
mov rdx, [r12+30h]
mov rcx, [r12+38h]
lea rsi, [rsp+0C8h+var_90]
mov rdi, rbx
call JS_ToFloat64
test eax, eax
jz short loc_7EA37
loc_7EA16:
xor r13d, r13d
loc_7EA19:
xor r12d, r12d
loc_7EA1C:
mov eax, r13d
or rax, r12
mov rdx, r14
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_7EA37:
mov rax, 7FFFFFFFFFFFFFFFh
movsd xmm0, [rsp+0C8h+var_90]
ucomisd xmm0, xmm0
mov r13, rax
jp short loc_7EA71
ucomisd xmm0, cs:qword_9D1B0
mov r13, rax
jnb short loc_7EA71
xorpd xmm1, xmm1
ucomisd xmm1, xmm0
jbe short loc_7EA6C
xor r13d, r13d
jmp short loc_7EA71
loc_7EA6C:
cvttsd2si r13, xmm0
loc_7EA71:
mov rax, [rbx+18h]
cmp byte ptr [rax+180h], 0
jz short loc_7EA9B
lea rdi, js_atomics_mutex
call js_mutex_lock
cmp [rsp+0C8h+var_A4], 3
jnz short loc_7EAB4
mov rax, [r15]
cmp rax, [rsp+0C8h+var_A0]
jmp short loc_7EABC
loc_7EA9B:
lea rsi, aCannotBlockInT; "cannot block in this thread"
xor r13d, r13d
mov rdi, rbx
xor eax, eax
call JS_ThrowTypeError
jmp loc_7EA19
loc_7EAB4:
movsxd rax, dword ptr [r15]
cmp [rsp+0C8h+var_A0], rax
loc_7EABC:
setnz al
mov r12, 0FFFFFFFF00000000h
mov rbp, 0C000000000000000h
mov r14, 4000000000000000h
test al, al
jz short loc_7EB17
lea rdi, js_atomics_mutex
mov r15d, 80000000h
call js_mutex_unlock
mov rax, [rbx+18h]
mov rax, [rax+68h]
mov r13, [rax+470h]
mov rcx, [r13+4]
and rbp, rcx
cmp rbp, r14
setz dl
cmp ecx, r15d
jmp loc_7EC2E
loc_7EB17:
lea r14, [rsp+0C8h+var_70]
mov [r14+30h], r15
mov rdi, r14
call js_cond_init
mov dword ptr [r14-8], 1
lea rax, js_atomics_waiter_list
mov rcx, cs:js_atomics_waiter_list
lea rdx, [rsp+0C8h+var_88]
mov [rcx+8], rdx
mov [rdx], rcx
mov [rdx+8], rax
mov cs:js_atomics_waiter_list, rdx
mov rax, 7FFFFFFFFFFFFFFFh
cmp r13, rax
jnz short loc_7EB78
lea rsi, js_atomics_mutex
mov rdi, r14
call js_cond_wait
xor r15d, r15d
jmp short loc_7EBBD
loc_7EB78:
xorps xmm0, xmm0
cvtsi2sd xmm0, r13
mulsd xmm0, cs:qword_9D150
cvttsd2si rax, xmm0
mov rcx, rax
sar rcx, 3Fh
subsd xmm0, cs:qword_9D1B0
cvttsd2si rdx, xmm0
and rdx, rcx
or rdx, rax
lea rsi, js_atomics_mutex
mov rdi, r14
call js_cond_timedwait
cmp eax, 0FFFFFFFFh
setz r15b
loc_7EBBD:
cmp [rsp+0C8h+var_78], 0
jz short loc_7EBDF
mov rax, qword ptr [rsp+0C8h+var_88]
mov rcx, qword ptr [rsp+0C8h+var_88+8]
mov [rax+8], rcx
mov [rcx], rax
xorpd xmm0, xmm0
movapd [rsp+0C8h+var_88], xmm0
loc_7EBDF:
lea rdi, js_atomics_mutex
call js_mutex_unlock
mov rdi, r14
call js_cond_destroy
mov rax, [rbx+18h]
mov rax, [rax+68h]
test r15b, r15b
jz short loc_7EC09
mov r13, [rax+478h]
jmp short loc_7EC10
loc_7EC09:
mov r13, [rax+480h]
loc_7EC10:
mov rcx, [r13+4]
and rbp, rcx
mov rdx, 4000000000000000h
cmp rbp, rdx
setz dl
mov esi, 80000000h
cmp ecx, esi
loc_7EC2E:
setnz cl
or cl, dl
jnz short loc_7EC3C
mov r13, [rax+178h]
loc_7EC3C:
inc dword ptr [r13+0]
and r12, r13
mov r14, 0FFFFFFFFFFFFFFF9h
jmp loc_7EA1C
|
unsigned long long js_atomics_wait(
long long a1,
double a2,
__m128 a3,
__m128 a4,
__m128 a5,
double a6,
double a7,
__m128 a8,
__m128 a9,
long long a10,
long long a11,
long long a12,
long long a13)
{
long long v14; // r13
long long ptr; // rax
int *v16; // r15
unsigned long long v17; // rdx
long long v18; // rcx
long long v19; // rdx
long long v20; // rcx
long long v21; // r8
long long v22; // r9
__m128 v23; // xmm4
__m128 v24; // xmm5
unsigned long long v25; // r12
long long v27; // r13
bool v28; // zf
_QWORD *v29; // rax
long long v30; // rcx
bool v31; // dl
bool v32; // zf
void *v33; // rcx
bool v34; // r15
__int128 v35; // kr00_16
long long v36; // rcx
char v37; // [rsp+0h] [rbp-C8h]
int v38; // [rsp+24h] [rbp-A4h] BYREF
long long v39; // [rsp+28h] [rbp-A0h] BYREF
int v40; // [rsp+34h] [rbp-94h] BYREF
double v41; // [rsp+38h] [rbp-90h] BYREF
__int128 v42; // [rsp+40h] [rbp-88h] BYREF
int v43; // [rsp+50h] [rbp-78h]
_BYTE v44[48]; // [rsp+58h] [rbp-70h] BYREF
int *v45; // [rsp+88h] [rbp-40h]
LODWORD(v14) = 0;
ptr = js_atomics_get_ptr(
a1,
0,
(unsigned int)&v38,
0,
*(_QWORD *)a13,
*(_QWORD *)(a13 + 8),
*(_OWORD *)(a13 + 16),
*(_QWORD *)(a13 + 24),
2);
if ( !ptr )
goto LABEL_13;
v16 = (int *)ptr;
v17 = *(_QWORD *)(a13 + 32);
v18 = *(_QWORD *)(a13 + 40);
if ( v38 == 3 )
{
*(_QWORD *)&v42 = *(_QWORD *)(a13 + 32);
if ( (unsigned int)v18 >= 0xFFFFFFF7 )
++*(_DWORD *)v42;
if ( (unsigned int)JS_ToBigInt64Free(a1, &v39) )
goto LABEL_12;
}
else
{
*(_QWORD *)&v42 = *(_QWORD *)(a13 + 32);
if ( (unsigned int)v18 >= 0xFFFFFFF7 )
++*(_DWORD *)v42;
if ( (unsigned int)JS_ToInt32Free(a1, &v40, v17, v18) )
goto LABEL_12;
v39 = v40;
}
if ( (unsigned int)JS_ToFloat64(a1, &v41, *(_DWORD **)(a13 + 48), *(_QWORD *)(a13 + 56)) )
{
LABEL_12:
LODWORD(v14) = 0;
LABEL_13:
v25 = 0LL;
return v25 | (unsigned int)v14;
}
v27 = 0x7FFFFFFFFFFFFFFFLL;
if ( v41 < 9.223372036854776e18 )
{
a3 = 0LL;
if ( v41 >= 0.0 )
v27 = (unsigned int)(int)v41;
else
v27 = 0LL;
}
if ( !*(_BYTE *)(*(_QWORD *)(a1 + 24) + 384LL) )
{
LODWORD(v14) = 0;
JS_ThrowTypeError(
a1,
(long long)"cannot block in this thread",
v19,
v20,
v21,
v22,
(__m128)*(unsigned long long *)&v41,
a3,
a4,
a5,
v23,
v24,
a8,
a9,
v37);
goto LABEL_13;
}
js_mutex_lock((long long)&js_atomics_mutex);
if ( v38 == 3 )
v28 = *(_QWORD *)v16 == v39;
else
v28 = v39 == *v16;
if ( v28 )
{
v45 = v16;
js_cond_init((long long)v44);
v43 = 1;
v33 = js_atomics_waiter_list;
*((_QWORD *)js_atomics_waiter_list + 1) = &v42;
*(_QWORD *)&v42 = v33;
*((_QWORD *)&v42 + 1) = &js_atomics_waiter_list;
js_atomics_waiter_list = &v42;
if ( v27 == 0x7FFFFFFFFFFFFFFFLL )
{
js_cond_wait();
v34 = 0;
}
else
{
v34 = (unsigned int)js_cond_timedwait(
(long long)v44,
(long long)&js_atomics_mutex,
(unsigned int)(int)((double)(int)v27 * 1000000.0)) == -1;
}
if ( v43 )
{
v35 = v42;
*(_QWORD *)(v42 + 8) = *((_QWORD *)&v42 + 1);
**((_QWORD **)&v35 + 1) = v35;
v42 = 0LL;
}
js_mutex_unlock((long long)&js_atomics_mutex);
js_cond_destroy();
v29 = *(_QWORD **)(*(_QWORD *)(a1 + 24) + 104LL);
if ( v34 )
v14 = v29[143];
else
v14 = v29[144];
v36 = *(_QWORD *)(v14 + 4);
v31 = (v36 & 0xC000000000000000LL) == 0x4000000000000000LL;
v32 = (_DWORD)v36 == 0x80000000;
}
else
{
js_mutex_unlock((long long)&js_atomics_mutex);
v29 = *(_QWORD **)(*(_QWORD *)(a1 + 24) + 104LL);
v14 = v29[142];
v30 = *(_QWORD *)(v14 + 4);
v31 = (v30 & 0xC000000000000000LL) == 0x4000000000000000LL;
v32 = (_DWORD)v30 == 0x80000000;
}
if ( !v31 && v32 )
v14 = v29[47];
++*(_DWORD *)v14;
v25 = v14 & 0xFFFFFFFF00000000LL;
return v25 | (unsigned int)v14;
}
|
js_atomics_wait:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x98
MOV R12,R8
MOV RBX,RDI
MOV R8,qword ptr [R8]
MOV R9,qword ptr [R12 + 0x8]
MOVUPD XMM0,xmmword ptr [R12 + 0x10]
MOVUPD xmmword ptr [RSP],XMM0
MOV dword ptr [RSP + 0x10],0x2
XOR R13D,R13D
LEA RDX,[RSP + 0x24]
XOR ESI,ESI
XOR ECX,ECX
CALL 0x0017edcd
MOV R14D,0x6
TEST RAX,RAX
JZ 0x0017ea19
MOV R15,RAX
CMP dword ptr [RSP + 0x24],0x3
MOV RDX,qword ptr [R12 + 0x20]
MOV RCX,qword ptr [R12 + 0x28]
JNZ 0x0017e9cf
MOV qword ptr [RSP + 0x40],RDX
CMP ECX,-0x9
JC 0x0017e9bc
MOV RAX,qword ptr [RSP + 0x40]
INC dword ptr [RAX]
LAB_0017e9bc:
LEA RSI,[RSP + 0x28]
MOV RDI,RBX
CALL 0x001277c4
TEST EAX,EAX
JNZ 0x0017ea16
JMP 0x0017e9fb
LAB_0017e9cf:
MOV qword ptr [RSP + 0x40],RDX
CMP ECX,-0x9
JC 0x0017e9e0
MOV RAX,qword ptr [RSP + 0x40]
INC dword ptr [RAX]
LAB_0017e9e0:
LEA RSI,[RSP + 0x34]
MOV RDI,RBX
CALL 0x00126daf
TEST EAX,EAX
JNZ 0x0017ea16
MOVSXD RAX,dword ptr [RSP + 0x34]
MOV qword ptr [RSP + 0x28],RAX
LAB_0017e9fb:
MOV RDX,qword ptr [R12 + 0x30]
MOV RCX,qword ptr [R12 + 0x38]
LEA RSI,[RSP + 0x38]
MOV RDI,RBX
CALL 0x00126a6d
TEST EAX,EAX
JZ 0x0017ea37
LAB_0017ea16:
XOR R13D,R13D
LAB_0017ea19:
XOR R12D,R12D
LAB_0017ea1c:
MOV EAX,R13D
OR RAX,R12
MOV RDX,R14
ADD RSP,0x98
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0017ea37:
MOV RAX,0x7fffffffffffffff
MOVSD XMM0,qword ptr [RSP + 0x38]
UCOMISD XMM0,XMM0
MOV R13,RAX
JP 0x0017ea71
UCOMISD XMM0,qword ptr [0x0019d1b0]
MOV R13,RAX
JNC 0x0017ea71
XORPD XMM1,XMM1
UCOMISD XMM1,XMM0
JBE 0x0017ea6c
XOR R13D,R13D
JMP 0x0017ea71
LAB_0017ea6c:
CVTTSD2SI R13,XMM0
LAB_0017ea71:
MOV RAX,qword ptr [RBX + 0x18]
CMP byte ptr [RAX + 0x180],0x0
JZ 0x0017ea9b
LEA RDI,[0x1cb5c8]
CALL 0x0011bb53
CMP dword ptr [RSP + 0x24],0x3
JNZ 0x0017eab4
MOV RAX,qword ptr [R15]
CMP RAX,qword ptr [RSP + 0x28]
JMP 0x0017eabc
LAB_0017ea9b:
LEA RSI,[0x1a0e12]
XOR R13D,R13D
MOV RDI,RBX
XOR EAX,EAX
CALL 0x00121953
JMP 0x0017ea19
LAB_0017eab4:
MOVSXD RAX,dword ptr [R15]
CMP qword ptr [RSP + 0x28],RAX
LAB_0017eabc:
SETNZ AL
MOV R12,-0x100000000
MOV RBP,-0x4000000000000000
MOV R14,0x4000000000000000
TEST AL,AL
JZ 0x0017eb17
LEA RDI,[0x1cb5c8]
MOV R15D,0x80000000
CALL 0x0011bb64
MOV RAX,qword ptr [RBX + 0x18]
MOV RAX,qword ptr [RAX + 0x68]
MOV R13,qword ptr [RAX + 0x470]
MOV RCX,qword ptr [R13 + 0x4]
AND RBP,RCX
CMP RBP,R14
SETZ DL
CMP ECX,R15D
JMP 0x0017ec2e
LAB_0017eb17:
LEA R14,[RSP + 0x58]
MOV qword ptr [R14 + 0x30],R15
MOV RDI,R14
CALL 0x0011bb75
MOV dword ptr [R14 + -0x8],0x1
LEA RAX,[0x1cb530]
MOV RCX,qword ptr [0x001cb530]
LEA RDX,[RSP + 0x40]
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RDX],RCX
MOV qword ptr [RDX + 0x8],RAX
MOV qword ptr [0x001cb530],RDX
MOV RAX,0x7fffffffffffffff
CMP R13,RAX
JNZ 0x0017eb78
LEA RSI,[0x1cb5c8]
MOV RDI,R14
CALL 0x0011bbfb
XOR R15D,R15D
JMP 0x0017ebbd
LAB_0017eb78:
XORPS XMM0,XMM0
CVTSI2SD XMM0,R13
MULSD XMM0,qword ptr [0x0019d150]
CVTTSD2SI RAX,XMM0
MOV RCX,RAX
SAR RCX,0x3f
SUBSD XMM0,qword ptr [0x0019d1b0]
CVTTSD2SI RDX,XMM0
AND RDX,RCX
OR RDX,RAX
LEA RSI,[0x1cb5c8]
MOV RDI,R14
CALL 0x0011bc0c
CMP EAX,-0x1
SETZ R15B
LAB_0017ebbd:
CMP dword ptr [RSP + 0x50],0x0
JZ 0x0017ebdf
MOV RAX,qword ptr [RSP + 0x40]
MOV RCX,qword ptr [RSP + 0x48]
MOV qword ptr [RAX + 0x8],RCX
MOV qword ptr [RCX],RAX
XORPD XMM0,XMM0
MOVAPD xmmword ptr [RSP + 0x40],XMM0
LAB_0017ebdf:
LEA RDI,[0x1cb5c8]
CALL 0x0011bb64
MOV RDI,R14
CALL 0x0011bbc8
MOV RAX,qword ptr [RBX + 0x18]
MOV RAX,qword ptr [RAX + 0x68]
TEST R15B,R15B
JZ 0x0017ec09
MOV R13,qword ptr [RAX + 0x478]
JMP 0x0017ec10
LAB_0017ec09:
MOV R13,qword ptr [RAX + 0x480]
LAB_0017ec10:
MOV RCX,qword ptr [R13 + 0x4]
AND RBP,RCX
MOV RDX,0x4000000000000000
CMP RBP,RDX
SETZ DL
MOV ESI,0x80000000
CMP ECX,ESI
LAB_0017ec2e:
SETNZ CL
OR CL,DL
JNZ 0x0017ec3c
MOV R13,qword ptr [RAX + 0x178]
LAB_0017ec3c:
INC dword ptr [R13]
AND R12,R13
MOV R14,-0x7
JMP 0x0017ea1c
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
int1 [16] js_atomics_wait(long param_1)
{
int iVar1;
long *plVar2;
long lVar3;
int8 *in_R8;
ulong uVar4;
long lVar5;
int *piVar6;
int8 uVar7;
bool bVar8;
int1 auVar9 [16];
int local_a4;
long local_a0;
int local_94;
double local_90;
int *local_88;
int **ppuStack_80;
int local_78;
int1 local_70 [48];
long *local_40;
plVar2 = (long *)js_atomics_get_ptr(param_1,0,&local_a4,0,*in_R8,in_R8[1],
*(int4 *)(in_R8 + 2),*(int4 *)(in_R8 + 3),2);
uVar7 = 6;
if (plVar2 != (long *)0x0) {
local_88 = (int *)in_R8[4];
if (local_a4 == 3) {
if (0xfffffff6 < (uint)in_R8[5]) {
*local_88 = *local_88 + 1;
}
iVar1 = JS_ToBigInt64Free(param_1,&local_a0);
if (iVar1 == 0) {
LAB_0017e9fb:
iVar1 = JS_ToFloat64(param_1,&local_90,in_R8[6],in_R8[7]);
if (iVar1 == 0) {
lVar5 = 0x7fffffffffffffff;
if (local_90 < DAT_0019d1b0) {
if (0.0 <= local_90) {
lVar5 = (long)local_90;
}
else {
lVar5 = 0;
}
}
if (*(char *)(*(long *)(param_1 + 0x18) + 0x180) != '\0') {
js_mutex_lock(js_atomics_mutex);
if (local_a4 == 3) {
lVar3 = *plVar2;
}
else {
lVar3 = (long)(int)*plVar2;
}
if (lVar3 == local_a0) {
local_40 = plVar2;
js_cond_init(local_70);
local_78 = 1;
*(int ***)(js_atomics_waiter_list + 8) = &local_88;
local_88 = (int *)js_atomics_waiter_list;
ppuStack_80 = &js_atomics_waiter_list;
js_atomics_waiter_list = (int *)&local_88;
if (lVar5 == 0x7fffffffffffffff) {
js_cond_wait(local_70,js_atomics_mutex);
bVar8 = false;
}
else {
uVar4 = (ulong)((double)lVar5 * _DAT_0019d150);
iVar1 = js_cond_timedwait(local_70,js_atomics_mutex,
(long)((double)lVar5 * _DAT_0019d150 - DAT_0019d1b0) &
(long)uVar4 >> 0x3f | uVar4);
bVar8 = iVar1 == -1;
}
if (local_78 != 0) {
*(int ***)(local_88 + 2) = ppuStack_80;
*ppuStack_80 = (int *)local_88;
local_88 = (int *)0x0;
ppuStack_80 = (int **)0x0;
}
js_mutex_unlock(js_atomics_mutex);
js_cond_destroy(local_70);
lVar5 = *(long *)(*(long *)(param_1 + 0x18) + 0x68);
if (bVar8) {
piVar6 = *(int **)(lVar5 + 0x478);
}
else {
piVar6 = *(int **)(lVar5 + 0x480);
}
uVar4 = *(ulong *)(piVar6 + 1);
iVar1 = (int)uVar4;
}
else {
js_mutex_unlock(js_atomics_mutex);
lVar5 = *(long *)(*(long *)(param_1 + 0x18) + 0x68);
piVar6 = *(int **)(lVar5 + 0x470);
uVar4 = *(ulong *)(piVar6 + 1);
iVar1 = (int)uVar4;
}
if (iVar1 == -0x80000000 && (uVar4 & 0xc000000000000000) != 0x4000000000000000) {
piVar6 = *(int **)(lVar5 + 0x178);
}
*piVar6 = *piVar6 + 1;
uVar4 = (ulong)piVar6 & 0xffffffff00000000;
uVar7 = 0xfffffffffffffff9;
goto LAB_0017ea1c;
}
JS_ThrowTypeError(param_1,"cannot block in this thread");
}
}
}
else {
if (0xfffffff6 < (uint)in_R8[5]) {
*local_88 = *local_88 + 1;
}
iVar1 = JS_ToInt32Free(param_1,&local_94);
if (iVar1 == 0) {
local_a0 = (long)local_94;
goto LAB_0017e9fb;
}
}
}
piVar6 = (int *)0x0;
uVar4 = 0;
LAB_0017ea1c:
auVar9._0_8_ = (ulong)piVar6 & 0xffffffff | uVar4;
auVar9._8_8_ = uVar7;
return auVar9;
}
|
|
56,981
|
js_atomics_wait
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_atomics_wait(JSContext *ctx,
JSValue this_obj,
int argc, JSValue *argv)
{
int64_t v;
int32_t v32;
void *ptr;
int64_t timeout;
JSAtomicsWaiter waiter_s, *waiter;
int ret, size_log2, res;
double d;
ptr = js_atomics_get_ptr(ctx, NULL, &size_log2, NULL,
argv[0], argv[1], 2);
if (!ptr)
return JS_EXCEPTION;
if (size_log2 == 3) {
if (JS_ToBigInt64(ctx, &v, argv[2]))
return JS_EXCEPTION;
} else {
if (JS_ToInt32(ctx, &v32, argv[2]))
return JS_EXCEPTION;
v = v32;
}
if (JS_ToFloat64(ctx, &d, argv[3]))
return JS_EXCEPTION;
if (isnan(d) || d >= 0x1p63)
timeout = INT64_MAX;
else if (d < 0)
timeout = 0;
else
timeout = (int64_t)d;
if (!ctx->rt->can_block)
return JS_ThrowTypeError(ctx, "cannot block in this thread");
/* XXX: inefficient if large number of waiters, should hash on
'ptr' value */
js_mutex_lock(&js_atomics_mutex);
if (size_log2 == 3) {
res = *(int64_t *)ptr != v;
} else {
res = *(int32_t *)ptr != v;
}
if (res) {
js_mutex_unlock(&js_atomics_mutex);
return JS_AtomToString(ctx, JS_ATOM_not_equal);
}
waiter = &waiter_s;
waiter->ptr = ptr;
js_cond_init(&waiter->cond);
waiter->linked = TRUE;
list_add_tail(&waiter->link, &js_atomics_waiter_list);
if (timeout == INT64_MAX) {
js_cond_wait(&waiter->cond, &js_atomics_mutex);
ret = 0;
} else {
ret = js_cond_timedwait(&waiter->cond, &js_atomics_mutex, timeout * 1e6 /* to ns */);
}
if (waiter->linked)
list_del(&waiter->link);
js_mutex_unlock(&js_atomics_mutex);
js_cond_destroy(&waiter->cond);
if (ret == -1) {
return JS_AtomToString(ctx, JS_ATOM_timed_out);
} else {
return JS_AtomToString(ctx, JS_ATOM_ok);
}
}
|
O3
|
c
|
js_atomics_wait:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %r8, %r12
movq %rdi, %rbx
movq (%r8), %r8
movq 0x8(%r12), %r9
movupd 0x10(%r12), %xmm0
movupd %xmm0, (%rsp)
movl $0x2, 0x10(%rsp)
xorl %r13d, %r13d
leaq 0x24(%rsp), %rdx
xorl %esi, %esi
xorl %ecx, %ecx
callq 0x81840
movl $0x6, %r14d
testq %rax, %rax
je 0x81493
movq %rax, %r15
cmpl $0x3, 0x24(%rsp)
movq 0x20(%r12), %rdx
movq 0x28(%r12), %rcx
jne 0x81453
cmpl $-0x9, %ecx
jb 0x81440
incl (%rdx)
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x27de2
testl %eax, %eax
jne 0x81490
jmp 0x81475
cmpl $-0x9, %ecx
jb 0x8145a
incl (%rdx)
leaq 0x34(%rsp), %rsi
movq %rbx, %rdi
callq 0x27408
testl %eax, %eax
jne 0x81490
movslq 0x34(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x30(%r12), %rdx
movq 0x38(%r12), %rcx
leaq 0x38(%rsp), %rsi
movq %rbx, %rdi
callq 0x2712e
testl %eax, %eax
je 0x814b1
xorl %r13d, %r13d
xorl %r12d, %r12d
movl %r13d, %eax
orq %r12, %rax
movq %r14, %rdx
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
movsd 0x38(%rsp), %xmm0
ucomisd %xmm0, %xmm0
movq %rax, %r13
jp 0x814eb
ucomisd 0x1ecae(%rip), %xmm0 # 0xa0180
movq %rax, %r13
jae 0x814eb
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jbe 0x814e6
xorl %r13d, %r13d
jmp 0x814eb
cvttsd2si %xmm0, %r13
movq 0x18(%rbx), %rax
cmpb $0x0, 0x180(%rax)
je 0x81569
movabsq $-0x100000000, %r12 # imm = 0xFFFFFFFF00000000
movabsq $-0x4000000000000000, %rbp # imm = 0xC000000000000000
movl $0x80000000, %r14d # imm = 0x80000000
leaq 0x4d0af(%rip), %rdi # 0xce5c8
callq 0x1c429
cmpl $0x3, 0x24(%rsp)
jne 0x81582
movq (%r15), %rax
cmpq 0x28(%rsp), %rax
je 0x8158c
leaq 0x4d092(%rip), %rdi # 0xce5c8
callq 0x1c43a
movq 0x18(%rbx), %rax
movq 0x68(%rax), %rax
movq 0x470(%rax), %r13
movq 0x4(%r13), %rcx
andq %rcx, %rbp
movabsq $0x4000000000000000, %rdx # imm = 0x4000000000000000
cmpq %rdx, %rbp
sete %dl
cmpl %r14d, %ecx
jmp 0x816a3
leaq 0x2285c(%rip), %rsi # 0xa3dcc
xorl %r13d, %r13d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2214f
jmp 0x81493
movslq (%r15), %rax
cmpq %rax, 0x28(%rsp)
jne 0x8152f
leaq 0x58(%rsp), %r14
movq %r15, 0x30(%r14)
movq %r14, %rdi
callq 0x1c44b
movl $0x1, -0x8(%r14)
leaq 0x4cf84(%rip), %rax # 0xce530
movq 0x4cf7d(%rip), %rcx # 0xce530
leaq 0x40(%rsp), %rdx
movq %rdx, 0x8(%rcx)
movq %rcx, (%rdx)
movq %rax, 0x8(%rdx)
movq %rdx, 0x4cf66(%rip) # 0xce530
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
cmpq %rax, %r13
jne 0x815ed
leaq 0x4cfe8(%rip), %rsi # 0xce5c8
movq %r14, %rdi
callq 0x1c4d1
xorl %r15d, %r15d
jmp 0x81632
xorps %xmm0, %xmm0
cvtsi2sd %r13, %xmm0
mulsd 0x1eb23(%rip), %xmm0 # 0xa0120
cvttsd2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0x1eb6f(%rip), %xmm0 # 0xa0180
cvttsd2si %xmm0, %rdx
andq %rcx, %rdx
orq %rax, %rdx
leaq 0x4cfa5(%rip), %rsi # 0xce5c8
movq %r14, %rdi
callq 0x1c4e2
cmpl $-0x1, %eax
sete %r15b
cmpl $0x0, 0x50(%rsp)
je 0x81654
movq 0x40(%rsp), %rax
movq 0x48(%rsp), %rcx
movq %rcx, 0x8(%rax)
movq %rax, (%rcx)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x40(%rsp)
leaq 0x4cf6d(%rip), %rdi # 0xce5c8
callq 0x1c43a
movq %r14, %rdi
callq 0x1c49e
movq 0x18(%rbx), %rax
movq 0x68(%rax), %rax
testb %r15b, %r15b
je 0x8167e
movq 0x478(%rax), %r13
jmp 0x81685
movq 0x480(%rax), %r13
movq 0x4(%r13), %rcx
andq %rcx, %rbp
movabsq $0x4000000000000000, %rdx # imm = 0x4000000000000000
cmpq %rdx, %rbp
sete %dl
movl $0x80000000, %esi # imm = 0x80000000
cmpl %esi, %ecx
setne %cl
orb %dl, %cl
jne 0x816b1
movq 0x178(%rax), %r13
incl (%r13)
andq %r13, %r12
movq $-0x7, %r14
jmp 0x81496
|
js_atomics_wait:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 98h
mov r12, r8
mov rbx, rdi
mov r8, [r8]
mov r9, [r12+8]
movupd xmm0, xmmword ptr [r12+10h]
movupd [rsp+0C8h+var_C8], xmm0
mov [rsp+0C8h+var_B8], 2
xor r13d, r13d
lea rdx, [rsp+0C8h+var_A4]
xor esi, esi
xor ecx, ecx
call js_atomics_get_ptr
mov r14d, 6
test rax, rax
jz short loc_81493
mov r15, rax
cmp [rsp+0C8h+var_A4], 3
mov rdx, [r12+20h]
mov rcx, [r12+28h]
jnz short loc_81453
cmp ecx, 0FFFFFFF7h
jb short loc_81440
inc dword ptr [rdx]
loc_81440:
lea rsi, [rsp+0C8h+var_A0]
mov rdi, rbx
call JS_ToBigInt64Free
test eax, eax
jnz short loc_81490
jmp short loc_81475
loc_81453:
cmp ecx, 0FFFFFFF7h
jb short loc_8145A
inc dword ptr [rdx]
loc_8145A:
lea rsi, [rsp+0C8h+var_94]
mov rdi, rbx
call JS_ToInt32Free
test eax, eax
jnz short loc_81490
movsxd rax, [rsp+0C8h+var_94]
mov [rsp+0C8h+var_A0], rax
loc_81475:
mov rdx, [r12+30h]
mov rcx, [r12+38h]
lea rsi, [rsp+0C8h+var_90]
mov rdi, rbx
call JS_ToFloat64
test eax, eax
jz short loc_814B1
loc_81490:
xor r13d, r13d
loc_81493:
xor r12d, r12d
loc_81496:
mov eax, r13d
or rax, r12
mov rdx, r14
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_814B1:
mov rax, 7FFFFFFFFFFFFFFFh
movsd xmm0, [rsp+0C8h+var_90]
ucomisd xmm0, xmm0
mov r13, rax
jp short loc_814EB
ucomisd xmm0, cs:qword_A0180
mov r13, rax
jnb short loc_814EB
xorpd xmm1, xmm1
ucomisd xmm1, xmm0
jbe short loc_814E6
xor r13d, r13d
jmp short loc_814EB
loc_814E6:
cvttsd2si r13, xmm0
loc_814EB:
mov rax, [rbx+18h]
cmp byte ptr [rax+180h], 0
jz short loc_81569
mov r12, 0FFFFFFFF00000000h
mov rbp, 0C000000000000000h
mov r14d, 80000000h
lea rdi, js_atomics_mutex
call js_mutex_lock
cmp [rsp+0C8h+var_A4], 3
jnz short loc_81582
mov rax, [r15]
cmp rax, [rsp+0C8h+var_A0]
jz short loc_8158C
loc_8152F:
lea rdi, js_atomics_mutex
call js_mutex_unlock
mov rax, [rbx+18h]
mov rax, [rax+68h]
mov r13, [rax+470h]
mov rcx, [r13+4]
and rbp, rcx
mov rdx, 4000000000000000h
cmp rbp, rdx
setz dl
cmp ecx, r14d
jmp loc_816A3
loc_81569:
lea rsi, aCannotBlockInT; "cannot block in this thread"
xor r13d, r13d
mov rdi, rbx
xor eax, eax
call JS_ThrowTypeError
jmp loc_81493
loc_81582:
movsxd rax, dword ptr [r15]
cmp [rsp+0C8h+var_A0], rax
jnz short loc_8152F
loc_8158C:
lea r14, [rsp+0C8h+var_70]
mov [r14+30h], r15
mov rdi, r14
call js_cond_init
mov dword ptr [r14-8], 1
lea rax, js_atomics_waiter_list
mov rcx, cs:js_atomics_waiter_list
lea rdx, [rsp+0C8h+var_88]
mov [rcx+8], rdx
mov [rdx], rcx
mov [rdx+8], rax
mov cs:js_atomics_waiter_list, rdx
mov rax, 7FFFFFFFFFFFFFFFh
cmp r13, rax
jnz short loc_815ED
lea rsi, js_atomics_mutex
mov rdi, r14
call js_cond_wait
xor r15d, r15d
jmp short loc_81632
loc_815ED:
xorps xmm0, xmm0
cvtsi2sd xmm0, r13
mulsd xmm0, cs:qword_A0120
cvttsd2si rax, xmm0
mov rcx, rax
sar rcx, 3Fh
subsd xmm0, cs:qword_A0180
cvttsd2si rdx, xmm0
and rdx, rcx
or rdx, rax
lea rsi, js_atomics_mutex
mov rdi, r14
call js_cond_timedwait
cmp eax, 0FFFFFFFFh
setz r15b
loc_81632:
cmp [rsp+0C8h+var_78], 0
jz short loc_81654
mov rax, qword ptr [rsp+0C8h+var_88]
mov rcx, qword ptr [rsp+0C8h+var_88+8]
mov [rax+8], rcx
mov [rcx], rax
xorpd xmm0, xmm0
movapd [rsp+0C8h+var_88], xmm0
loc_81654:
lea rdi, js_atomics_mutex
call js_mutex_unlock
mov rdi, r14
call js_cond_destroy
mov rax, [rbx+18h]
mov rax, [rax+68h]
test r15b, r15b
jz short loc_8167E
mov r13, [rax+478h]
jmp short loc_81685
loc_8167E:
mov r13, [rax+480h]
loc_81685:
mov rcx, [r13+4]
and rbp, rcx
mov rdx, 4000000000000000h
cmp rbp, rdx
setz dl
mov esi, 80000000h
cmp ecx, esi
loc_816A3:
setnz cl
or cl, dl
jnz short loc_816B1
mov r13, [rax+178h]
loc_816B1:
inc dword ptr [r13+0]
and r12, r13
mov r14, 0FFFFFFFFFFFFFFF9h
jmp loc_81496
|
unsigned long long js_atomics_wait(
long long a1,
double a2,
__m128 a3,
__m128 a4,
__m128 a5,
double a6,
double a7,
__m128 a8,
__m128 a9,
long long a10,
long long a11,
long long a12,
long long a13)
{
long long v14; // r13
long long ptr; // rax
_DWORD *v16; // r15
_DWORD *v17; // rdx
long long v18; // rcx
long long v19; // rdx
long long v20; // rcx
long long v21; // r8
long long v22; // r9
__m128 v23; // xmm4
__m128 v24; // xmm5
unsigned long long v25; // r12
long long v27; // r13
_QWORD *v28; // rax
long long v29; // rcx
bool v30; // dl
bool v31; // zf
void *v32; // rcx
bool v33; // r15
__int128 v34; // kr00_16
long long v35; // rcx
char v36; // [rsp+0h] [rbp-C8h]
int v37; // [rsp+24h] [rbp-A4h] BYREF
long long v38; // [rsp+28h] [rbp-A0h] BYREF
int v39; // [rsp+34h] [rbp-94h] BYREF
double v40; // [rsp+38h] [rbp-90h] BYREF
__int128 v41; // [rsp+40h] [rbp-88h] BYREF
int v42; // [rsp+50h] [rbp-78h]
_BYTE v43[48]; // [rsp+58h] [rbp-70h] BYREF
_DWORD *v44; // [rsp+88h] [rbp-40h]
LODWORD(v14) = 0;
ptr = js_atomics_get_ptr(
a1,
0,
(unsigned int)&v37,
0,
*(_QWORD *)a13,
*(_QWORD *)(a13 + 8),
*(_QWORD *)(a13 + 16),
*(_QWORD *)(a13 + 24),
2);
if ( !ptr )
goto LABEL_13;
v16 = (_DWORD *)ptr;
v17 = *(_DWORD **)(a13 + 32);
v18 = *(_QWORD *)(a13 + 40);
if ( v37 == 3 )
{
if ( (unsigned int)v18 >= 0xFFFFFFF7 )
++*v17;
if ( (unsigned int)JS_ToBigInt64Free(a1, &v38) )
goto LABEL_12;
}
else
{
if ( (unsigned int)v18 >= 0xFFFFFFF7 )
++*v17;
if ( (unsigned int)JS_ToInt32Free(a1, &v39, (unsigned long long)v17, v18) )
goto LABEL_12;
v38 = v39;
}
if ( (unsigned int)JS_ToFloat64(a1, &v40, *(_DWORD **)(a13 + 48), *(_QWORD *)(a13 + 56)) )
{
LABEL_12:
LODWORD(v14) = 0;
LABEL_13:
v25 = 0LL;
return v25 | (unsigned int)v14;
}
v27 = 0x7FFFFFFFFFFFFFFFLL;
if ( v40 < 9.223372036854776e18 )
{
a3 = 0LL;
if ( v40 >= 0.0 )
v27 = (unsigned int)(int)v40;
else
v27 = 0LL;
}
if ( !*(_BYTE *)(*(_QWORD *)(a1 + 24) + 384LL) )
{
LODWORD(v14) = 0;
JS_ThrowTypeError(
a1,
(long long)"cannot block in this thread",
v19,
v20,
v21,
v22,
(__m128)*(unsigned long long *)&v40,
a3,
a4,
a5,
v23,
v24,
a8,
a9,
v36);
goto LABEL_13;
}
js_mutex_lock((long long)&js_atomics_mutex);
if ( v37 != 3 )
{
if ( v38 != *v16 )
goto LABEL_22;
LABEL_25:
v44 = v16;
js_cond_init((long long)v43);
v42 = 1;
v32 = js_atomics_waiter_list;
*((_QWORD *)js_atomics_waiter_list + 1) = &v41;
*(_QWORD *)&v41 = v32;
*((_QWORD *)&v41 + 1) = &js_atomics_waiter_list;
js_atomics_waiter_list = &v41;
if ( v27 == 0x7FFFFFFFFFFFFFFFLL )
{
js_cond_wait();
v33 = 0;
}
else
{
v33 = (unsigned int)js_cond_timedwait(
(long long)v43,
(long long)&js_atomics_mutex,
(unsigned int)(int)((double)(int)v27 * 1000000.0)) == -1;
}
if ( v42 )
{
v34 = v41;
*(_QWORD *)(v41 + 8) = *((_QWORD *)&v41 + 1);
**((_QWORD **)&v34 + 1) = v34;
v41 = 0LL;
}
js_mutex_unlock((long long)&js_atomics_mutex);
js_cond_destroy();
v28 = *(_QWORD **)(*(_QWORD *)(a1 + 24) + 104LL);
if ( v33 )
v14 = v28[143];
else
v14 = v28[144];
v35 = *(_QWORD *)(v14 + 4);
v30 = (v35 & 0xC000000000000000LL) == 0x4000000000000000LL;
v31 = (_DWORD)v35 == 0x80000000;
goto LABEL_34;
}
if ( *(_QWORD *)v16 == v38 )
goto LABEL_25;
LABEL_22:
js_mutex_unlock((long long)&js_atomics_mutex);
v28 = *(_QWORD **)(*(_QWORD *)(a1 + 24) + 104LL);
v14 = v28[142];
v29 = *(_QWORD *)(v14 + 4);
v30 = (v29 & 0xC000000000000000LL) == 0x4000000000000000LL;
v31 = (_DWORD)v29 == 0x80000000;
LABEL_34:
if ( !v30 && v31 )
v14 = v28[47];
++*(_DWORD *)v14;
v25 = v14 & 0xFFFFFFFF00000000LL;
return v25 | (unsigned int)v14;
}
|
js_atomics_wait:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x98
MOV R12,R8
MOV RBX,RDI
MOV R8,qword ptr [R8]
MOV R9,qword ptr [R12 + 0x8]
MOVUPD XMM0,xmmword ptr [R12 + 0x10]
MOVUPD xmmword ptr [RSP],XMM0
MOV dword ptr [RSP + 0x10],0x2
XOR R13D,R13D
LEA RDX,[RSP + 0x24]
XOR ESI,ESI
XOR ECX,ECX
CALL 0x00181840
MOV R14D,0x6
TEST RAX,RAX
JZ 0x00181493
MOV R15,RAX
CMP dword ptr [RSP + 0x24],0x3
MOV RDX,qword ptr [R12 + 0x20]
MOV RCX,qword ptr [R12 + 0x28]
JNZ 0x00181453
CMP ECX,-0x9
JC 0x00181440
INC dword ptr [RDX]
LAB_00181440:
LEA RSI,[RSP + 0x28]
MOV RDI,RBX
CALL 0x00127de2
TEST EAX,EAX
JNZ 0x00181490
JMP 0x00181475
LAB_00181453:
CMP ECX,-0x9
JC 0x0018145a
INC dword ptr [RDX]
LAB_0018145a:
LEA RSI,[RSP + 0x34]
MOV RDI,RBX
CALL 0x00127408
TEST EAX,EAX
JNZ 0x00181490
MOVSXD RAX,dword ptr [RSP + 0x34]
MOV qword ptr [RSP + 0x28],RAX
LAB_00181475:
MOV RDX,qword ptr [R12 + 0x30]
MOV RCX,qword ptr [R12 + 0x38]
LEA RSI,[RSP + 0x38]
MOV RDI,RBX
CALL 0x0012712e
TEST EAX,EAX
JZ 0x001814b1
LAB_00181490:
XOR R13D,R13D
LAB_00181493:
XOR R12D,R12D
LAB_00181496:
MOV EAX,R13D
OR RAX,R12
MOV RDX,R14
ADD RSP,0x98
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001814b1:
MOV RAX,0x7fffffffffffffff
MOVSD XMM0,qword ptr [RSP + 0x38]
UCOMISD XMM0,XMM0
MOV R13,RAX
JP 0x001814eb
UCOMISD XMM0,qword ptr [0x001a0180]
MOV R13,RAX
JNC 0x001814eb
XORPD XMM1,XMM1
UCOMISD XMM1,XMM0
JBE 0x001814e6
XOR R13D,R13D
JMP 0x001814eb
LAB_001814e6:
CVTTSD2SI R13,XMM0
LAB_001814eb:
MOV RAX,qword ptr [RBX + 0x18]
CMP byte ptr [RAX + 0x180],0x0
JZ 0x00181569
MOV R12,-0x100000000
MOV RBP,-0x4000000000000000
MOV R14D,0x80000000
LEA RDI,[0x1ce5c8]
CALL 0x0011c429
CMP dword ptr [RSP + 0x24],0x3
JNZ 0x00181582
MOV RAX,qword ptr [R15]
CMP RAX,qword ptr [RSP + 0x28]
JZ 0x0018158c
LAB_0018152f:
LEA RDI,[0x1ce5c8]
CALL 0x0011c43a
MOV RAX,qword ptr [RBX + 0x18]
MOV RAX,qword ptr [RAX + 0x68]
MOV R13,qword ptr [RAX + 0x470]
MOV RCX,qword ptr [R13 + 0x4]
AND RBP,RCX
MOV RDX,0x4000000000000000
CMP RBP,RDX
SETZ DL
CMP ECX,R14D
JMP 0x001816a3
LAB_00181569:
LEA RSI,[0x1a3dcc]
XOR R13D,R13D
MOV RDI,RBX
XOR EAX,EAX
CALL 0x0012214f
JMP 0x00181493
LAB_00181582:
MOVSXD RAX,dword ptr [R15]
CMP qword ptr [RSP + 0x28],RAX
JNZ 0x0018152f
LAB_0018158c:
LEA R14,[RSP + 0x58]
MOV qword ptr [R14 + 0x30],R15
MOV RDI,R14
CALL 0x0011c44b
MOV dword ptr [R14 + -0x8],0x1
LEA RAX,[0x1ce530]
MOV RCX,qword ptr [0x001ce530]
LEA RDX,[RSP + 0x40]
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RDX],RCX
MOV qword ptr [RDX + 0x8],RAX
MOV qword ptr [0x001ce530],RDX
MOV RAX,0x7fffffffffffffff
CMP R13,RAX
JNZ 0x001815ed
LEA RSI,[0x1ce5c8]
MOV RDI,R14
CALL 0x0011c4d1
XOR R15D,R15D
JMP 0x00181632
LAB_001815ed:
XORPS XMM0,XMM0
CVTSI2SD XMM0,R13
MULSD XMM0,qword ptr [0x001a0120]
CVTTSD2SI RAX,XMM0
MOV RCX,RAX
SAR RCX,0x3f
SUBSD XMM0,qword ptr [0x001a0180]
CVTTSD2SI RDX,XMM0
AND RDX,RCX
OR RDX,RAX
LEA RSI,[0x1ce5c8]
MOV RDI,R14
CALL 0x0011c4e2
CMP EAX,-0x1
SETZ R15B
LAB_00181632:
CMP dword ptr [RSP + 0x50],0x0
JZ 0x00181654
MOV RAX,qword ptr [RSP + 0x40]
MOV RCX,qword ptr [RSP + 0x48]
MOV qword ptr [RAX + 0x8],RCX
MOV qword ptr [RCX],RAX
XORPD XMM0,XMM0
MOVAPD xmmword ptr [RSP + 0x40],XMM0
LAB_00181654:
LEA RDI,[0x1ce5c8]
CALL 0x0011c43a
MOV RDI,R14
CALL 0x0011c49e
MOV RAX,qword ptr [RBX + 0x18]
MOV RAX,qword ptr [RAX + 0x68]
TEST R15B,R15B
JZ 0x0018167e
MOV R13,qword ptr [RAX + 0x478]
JMP 0x00181685
LAB_0018167e:
MOV R13,qword ptr [RAX + 0x480]
LAB_00181685:
MOV RCX,qword ptr [R13 + 0x4]
AND RBP,RCX
MOV RDX,0x4000000000000000
CMP RBP,RDX
SETZ DL
MOV ESI,0x80000000
CMP ECX,ESI
LAB_001816a3:
SETNZ CL
OR CL,DL
JNZ 0x001816b1
MOV R13,qword ptr [RAX + 0x178]
LAB_001816b1:
INC dword ptr [R13]
AND R12,R13
MOV R14,-0x7
JMP 0x00181496
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
int1 [16] js_atomics_wait(long param_1)
{
int iVar1;
long *plVar2;
int8 *in_R8;
ulong uVar3;
long lVar4;
int *piVar5;
int8 uVar6;
bool bVar7;
int1 auVar8 [16];
int local_a4;
long local_a0;
int local_94;
double local_90;
int *local_88;
int **ppuStack_80;
int local_78;
int1 local_70 [48];
long *local_40;
plVar2 = (long *)js_atomics_get_ptr(param_1,0,&local_a4,0,*in_R8,in_R8[1],
*(int4 *)(in_R8 + 2),*(int4 *)(in_R8 + 3),2);
uVar6 = 6;
if (plVar2 != (long *)0x0) {
piVar5 = (int *)in_R8[4];
if (local_a4 == 3) {
if (0xfffffff6 < (uint)in_R8[5]) {
*piVar5 = *piVar5 + 1;
}
iVar1 = JS_ToBigInt64Free(param_1,&local_a0);
if (iVar1 == 0) {
LAB_00181475:
iVar1 = JS_ToFloat64(param_1,&local_90,in_R8[6],in_R8[7]);
if (iVar1 == 0) {
lVar4 = 0x7fffffffffffffff;
if (local_90 < DAT_001a0180) {
if (0.0 <= local_90) {
lVar4 = (long)local_90;
}
else {
lVar4 = 0;
}
}
if (*(char *)(*(long *)(param_1 + 0x18) + 0x180) != '\0') {
js_mutex_lock(js_atomics_mutex);
if (local_a4 == 3) {
if (*plVar2 != local_a0) goto LAB_0018152f;
LAB_0018158c:
local_40 = plVar2;
js_cond_init(local_70);
local_78 = 1;
*(int ***)(js_atomics_waiter_list + 8) = &local_88;
local_88 = js_atomics_waiter_list;
ppuStack_80 = &js_atomics_waiter_list;
js_atomics_waiter_list = (int *)&local_88;
if (lVar4 == 0x7fffffffffffffff) {
js_cond_wait(local_70,js_atomics_mutex);
bVar7 = false;
}
else {
uVar3 = (ulong)((double)lVar4 * _DAT_001a0120);
iVar1 = js_cond_timedwait(local_70,js_atomics_mutex,
(long)((double)lVar4 * _DAT_001a0120 - DAT_001a0180) &
(long)uVar3 >> 0x3f | uVar3);
bVar7 = iVar1 == -1;
}
if (local_78 != 0) {
*(int ***)(local_88 + 8) = ppuStack_80;
*ppuStack_80 = local_88;
local_88 = (int *)0x0;
ppuStack_80 = (int **)0x0;
}
js_mutex_unlock(js_atomics_mutex);
js_cond_destroy(local_70);
lVar4 = *(long *)(*(long *)(param_1 + 0x18) + 0x68);
if (bVar7) {
piVar5 = *(int **)(lVar4 + 0x478);
}
else {
piVar5 = *(int **)(lVar4 + 0x480);
}
uVar3 = *(ulong *)(piVar5 + 1);
iVar1 = (int)uVar3;
}
else {
if (local_a0 == (int)*plVar2) goto LAB_0018158c;
LAB_0018152f:
js_mutex_unlock(js_atomics_mutex);
lVar4 = *(long *)(*(long *)(param_1 + 0x18) + 0x68);
piVar5 = *(int **)(lVar4 + 0x470);
uVar3 = *(ulong *)(piVar5 + 1);
iVar1 = (int)uVar3;
}
if (iVar1 == -0x80000000 && (uVar3 & 0xc000000000000000) != 0x4000000000000000) {
piVar5 = *(int **)(lVar4 + 0x178);
}
*piVar5 = *piVar5 + 1;
uVar3 = (ulong)piVar5 & 0xffffffff00000000;
uVar6 = 0xfffffffffffffff9;
goto LAB_00181496;
}
JS_ThrowTypeError(param_1,"cannot block in this thread");
}
}
}
else {
if (0xfffffff6 < (uint)in_R8[5]) {
*piVar5 = *piVar5 + 1;
}
iVar1 = JS_ToInt32Free(param_1,&local_94);
if (iVar1 == 0) {
local_a0 = (long)local_94;
goto LAB_00181475;
}
}
}
piVar5 = (int *)0x0;
uVar3 = 0;
LAB_00181496:
auVar8._0_8_ = (ulong)piVar5 & 0xffffffff | uVar3;
auVar8._8_8_ = uVar6;
return auVar8;
}
|
|
56,982
|
ggml_compute_forward_hardswish
|
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c
|
static void ggml_compute_forward_hardswish(
const struct ggml_compute_params * params,
struct ggml_tensor * dst) {
const struct ggml_tensor * src0 = dst->src[0];
switch (src0->type) {
case GGML_TYPE_F32:
{
ggml_compute_forward_hardswish_f32(params, dst);
} break;
default:
{
GGML_ABORT("fatal error");
}
}
}
|
O0
|
c
|
ggml_compute_forward_hardswish:
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
testl %eax, %eax
jne 0x3905a
jmp 0x3904b
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x3aa20
jmp 0x39074
leaq 0x3ab01(%rip), %rdi # 0x73b62
movl $0x1a84, %esi # imm = 0x1A84
leaq 0x3ad50(%rip), %rdx # 0x73dbd
movb $0x0, %al
callq 0xe270
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
ggml_compute_forward_hardswish:
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]
test eax, eax
jnz short loc_3905A
jmp short $+2
loc_3904B:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
call ggml_compute_forward_hardswish_f32
jmp short loc_39074
loc_3905A:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 1A84h
lea rdx, aFatalError; "fatal error"
mov al, 0
call _ggml_abort
loc_39074:
add rsp, 20h
pop rbp
retn
|
double ggml_compute_forward_hardswish(long long a1, long long a2)
{
double result; // xmm0_8
if ( **(_DWORD **)(a2 + 152) )
return ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c",
6788LL,
"fatal error");
ggml_compute_forward_hardswish_f32(a1, a2);
return result;
}
|
ggml_compute_forward_hardswish:
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]
TEST EAX,EAX
JNZ 0x0013905a
JMP 0x0013904b
LAB_0013904b:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x0013aa20
JMP 0x00139074
LAB_0013905a:
LEA RDI,[0x173b62]
MOV ESI,0x1a84
LEA RDX,[0x173dbd]
MOV AL,0x0
CALL 0x0010e270
LAB_00139074:
ADD RSP,0x20
POP RBP
RET
|
void ggml_compute_forward_hardswish(int8 param_1,long param_2)
{
if (**(int **)(param_2 + 0x98) == 0) {
ggml_compute_forward_hardswish_f32(param_1,param_2);
}
else {
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c"
,0x1a84,"fatal error");
}
return;
}
|
|
56,983
|
pvio_socket_set_timeout
|
eloqsql/libmariadb/plugins/pvio/pvio_socket.c
|
my_bool pvio_socket_set_timeout(MARIADB_PVIO *pvio, enum enum_pvio_timeout type, int timeout)
{
struct st_pvio_socket *csock= NULL;
if (!pvio)
return 1;
csock= (struct st_pvio_socket *)pvio->data;
pvio->timeout[type]= (timeout > 0) ? timeout * 1000 : -1;
if (csock)
return pvio_socket_change_timeout(pvio, type, timeout * 1000);
return 0;
}
|
O0
|
c
|
pvio_socket_set_timeout:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq $0x0, -0x20(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x48df7
movb $0x1, -0x1(%rbp)
jmp 0x48e4f
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
cmpl $0x0, -0x18(%rbp)
jle 0x48e14
imull $0x3e8, -0x18(%rbp), %eax # imm = 0x3E8
movl %eax, -0x24(%rbp)
jmp 0x48e1e
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
movl %eax, -0x24(%rbp)
jmp 0x48e1e
movl -0x24(%rbp), %edx
movq -0x10(%rbp), %rax
movl -0x14(%rbp), %ecx
movl %edx, 0x24(%rax,%rcx,4)
cmpq $0x0, -0x20(%rbp)
je 0x48e4b
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
imull $0x3e8, -0x18(%rbp), %edx # imm = 0x3E8
callq 0x4a400
movb %al, -0x1(%rbp)
jmp 0x48e4f
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
pvio_socket_set_timeout:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov [rbp+var_20], 0
cmp [rbp+var_10], 0
jnz short loc_48DF7
mov [rbp+var_1], 1
jmp short loc_48E4F
loc_48DF7:
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_20], rax
cmp [rbp+var_18], 0
jle short loc_48E14
imul eax, [rbp+var_18], 3E8h
mov [rbp+var_24], eax
jmp short loc_48E1E
loc_48E14:
mov eax, 0FFFFFFFFh
mov [rbp+var_24], eax
jmp short $+2
loc_48E1E:
mov edx, [rbp+var_24]
mov rax, [rbp+var_10]
mov ecx, [rbp+var_14]
mov [rax+rcx*4+24h], edx
cmp [rbp+var_20], 0
jz short loc_48E4B
mov rdi, [rbp+var_10]
mov esi, [rbp+var_14]
imul edx, [rbp+var_18], 3E8h
call pvio_socket_change_timeout
mov [rbp+var_1], al
jmp short loc_48E4F
loc_48E4B:
mov [rbp+var_1], 0
loc_48E4F:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
|
char pvio_socket_set_timeout(_QWORD *a1, unsigned int a2, int a3)
{
int v4; // [rsp+Ch] [rbp-24h]
long long v5; // [rsp+10h] [rbp-20h]
if ( !a1 )
return 1;
v5 = *a1;
if ( a3 <= 0 )
v4 = -1;
else
v4 = 1000 * a3;
*((_DWORD *)a1 + a2 + 9) = v4;
if ( v5 )
return pvio_socket_change_timeout(a1, a2, (unsigned int)(1000 * a3));
else
return 0;
}
|
pvio_socket_set_timeout:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV qword ptr [RBP + -0x20],0x0
CMP qword ptr [RBP + -0x10],0x0
JNZ 0x00148df7
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00148e4f
LAB_00148df7:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
CMP dword ptr [RBP + -0x18],0x0
JLE 0x00148e14
IMUL EAX,dword ptr [RBP + -0x18],0x3e8
MOV dword ptr [RBP + -0x24],EAX
JMP 0x00148e1e
LAB_00148e14:
MOV EAX,0xffffffff
MOV dword ptr [RBP + -0x24],EAX
JMP 0x00148e1e
LAB_00148e1e:
MOV EDX,dword ptr [RBP + -0x24]
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x14]
MOV dword ptr [RAX + RCX*0x4 + 0x24],EDX
CMP qword ptr [RBP + -0x20],0x0
JZ 0x00148e4b
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x14]
IMUL EDX,dword ptr [RBP + -0x18],0x3e8
CALL 0x0014a400
MOV byte ptr [RBP + -0x1],AL
JMP 0x00148e4f
LAB_00148e4b:
MOV byte ptr [RBP + -0x1],0x0
LAB_00148e4f:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1 pvio_socket_set_timeout(long *param_1,uint param_2,int param_3)
{
long lVar1;
int local_2c;
int1 local_9;
if (param_1 == (long *)0x0) {
local_9 = 1;
}
else {
lVar1 = *param_1;
if (param_3 < 1) {
local_2c = -1;
}
else {
local_2c = param_3 * 1000;
}
*(int *)((long)param_1 + (ulong)param_2 * 4 + 0x24) = local_2c;
if (lVar1 == 0) {
local_9 = 0;
}
else {
local_9 = pvio_socket_change_timeout(param_1,param_2,param_3 * 1000);
}
}
return local_9;
}
|
|
56,984
|
pvio_socket_set_timeout
|
eloqsql/libmariadb/plugins/pvio/pvio_socket.c
|
my_bool pvio_socket_set_timeout(MARIADB_PVIO *pvio, enum enum_pvio_timeout type, int timeout)
{
struct st_pvio_socket *csock= NULL;
if (!pvio)
return 1;
csock= (struct st_pvio_socket *)pvio->data;
pvio->timeout[type]= (timeout > 0) ? timeout * 1000 : -1;
if (csock)
return pvio_socket_change_timeout(pvio, type, timeout * 1000);
return 0;
}
|
O3
|
c
|
pvio_socket_set_timeout:
pushq %rbp
movq %rsp, %rbp
testq %rdi, %rdi
je 0x33a55
movl %edx, %eax
imull $0x3e8, %edx, %edx # imm = 0x3E8
testl %eax, %eax
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
cmovgl %edx, %eax
movl %esi, %ecx
cmpq $0x0, (%rdi)
movl %eax, 0x24(%rdi,%rcx,4)
je 0x33a59
popq %rbp
jmp 0x346ac
movb $0x1, %al
jmp 0x33a5b
xorl %eax, %eax
popq %rbp
retq
|
pvio_socket_set_timeout:
push rbp
mov rbp, rsp
test rdi, rdi
jz short loc_33A55
mov eax, edx
imul edx, 3E8h
test eax, eax
mov eax, 0FFFFFFFFh
cmovg eax, edx
mov ecx, esi
cmp qword ptr [rdi], 0
mov [rdi+rcx*4+24h], eax
jz short loc_33A59
pop rbp
jmp pvio_socket_change_timeout
loc_33A55:
mov al, 1
jmp short loc_33A5B
loc_33A59:
xor eax, eax
loc_33A5B:
pop rbp
retn
|
char pvio_socket_set_timeout(_QWORD *a1, unsigned int a2, int a3)
{
int v4; // edx
bool v5; // cc
int v6; // eax
bool v7; // zf
if ( !a1 )
return 1;
v4 = 1000 * a3;
v5 = a3 <= 0;
v6 = -1;
if ( !v5 )
v6 = v4;
v7 = *a1 == 0LL;
*((_DWORD *)a1 + a2 + 9) = v6;
if ( v7 )
return 0;
else
return pvio_socket_change_timeout();
}
|
pvio_socket_set_timeout:
PUSH RBP
MOV RBP,RSP
TEST RDI,RDI
JZ 0x00133a55
MOV EAX,EDX
IMUL EDX,EDX,0x3e8
TEST EAX,EAX
MOV EAX,0xffffffff
CMOVG EAX,EDX
MOV ECX,ESI
CMP qword ptr [RDI],0x0
MOV dword ptr [RDI + RCX*0x4 + 0x24],EAX
JZ 0x00133a59
POP RBP
JMP 0x001346ac
LAB_00133a55:
MOV AL,0x1
JMP 0x00133a5b
LAB_00133a59:
XOR EAX,EAX
LAB_00133a5b:
POP RBP
RET
|
int8 pvio_socket_set_timeout(long *param_1,uint param_2,int param_3)
{
long lVar1;
int iVar2;
int8 uVar3;
if (param_1 == (long *)0x0) {
uVar3 = 1;
}
else {
iVar2 = -1;
if (0 < param_3) {
iVar2 = param_3 * 1000;
}
lVar1 = *param_1;
*(int *)((long)param_1 + (ulong)param_2 * 4 + 0x24) = iVar2;
if (lVar1 != 0) {
uVar3 = pvio_socket_change_timeout();
return uVar3;
}
uVar3 = 0;
}
return uVar3;
}
|
|
56,985
|
stbtt__csctx_rccurve_to
|
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-stb-truetype.h
|
static void stbtt__csctx_rccurve_to(stbtt__csctx *ctx, float dx1, float dy1, float dx2, float dy2, float dx3, float dy3)
{
float cx1 = ctx->x + dx1;
float cy1 = ctx->y + dy1;
float cx2 = cx1 + dx2;
float cy2 = cy1 + dy2;
ctx->x = cx2 + dx3;
ctx->y = cy2 + dy3;
stbtt__csctx_v(ctx, STBTT_vcubic, (int)ctx->x, (int)ctx->y, (int)cx1, (int)cy1, (int)cx2, (int)cy2);
}
|
O1
|
c
|
stbtt__csctx_rccurve_to:
pushq %rax
addss 0x10(%rdi), %xmm0
addss 0x14(%rdi), %xmm1
addss %xmm0, %xmm2
addss %xmm1, %xmm3
addss %xmm2, %xmm4
movss %xmm4, 0x10(%rdi)
addss %xmm3, %xmm5
movss %xmm5, 0x14(%rdi)
cvttss2si %xmm4, %edx
cvttss2si %xmm5, %ecx
cvttss2si %xmm0, %r8d
cvttss2si %xmm1, %r9d
cvttss2si %xmm2, %eax
cvttss2si %xmm3, %r10d
movl $0x4, %esi
pushq %r10
pushq %rax
callq 0x27b47
addq $0x10, %rsp
popq %rax
retq
|
stbtt__csctx_rccurve_to:
push rax
addss xmm0, dword ptr [rdi+10h]
addss xmm1, dword ptr [rdi+14h]
addss xmm2, xmm0
addss xmm3, xmm1
addss xmm4, xmm2
movss dword ptr [rdi+10h], xmm4
addss xmm5, xmm3
movss dword ptr [rdi+14h], xmm5
cvttss2si edx, xmm4
cvttss2si ecx, xmm5
cvttss2si r8d, xmm0
cvttss2si r9d, xmm1
cvttss2si eax, xmm2
cvttss2si r10d, xmm3
mov esi, 4
push r10
push rax
call stbtt__csctx_v
add rsp, 10h
pop rax
retn
|
void __spoils<rdx,rcx,r8,r9,r10,r11,xmm0,xmm4,xmm5> stbtt__csctx_rccurve_to(
long long a1,
float a2,
float a3,
float a4,
float a5,
float a6,
float a7)
{
float v7; // xmm0_4
float v8; // xmm1_4
float v9; // xmm2_4
float v10; // xmm3_4
float v11; // xmm4_4
float v12; // xmm5_4
v7 = a2 + *(float *)(a1 + 16);
v8 = a3 + *(float *)(a1 + 20);
v9 = a4 + v7;
v10 = a5 + v8;
v11 = a6 + v9;
*(float *)(a1 + 16) = v11;
v12 = a7 + v10;
*(float *)(a1 + 20) = v12;
stbtt__csctx_v(a1, 4, (int)v11, (int)v12, (int)v7, (int)v8, (int)v9, (int)v10);
}
|
stbtt__csctx_rccurve_to:
PUSH RAX
ADDSS XMM0,dword ptr [RDI + 0x10]
ADDSS XMM1,dword ptr [RDI + 0x14]
ADDSS XMM2,XMM0
ADDSS XMM3,XMM1
ADDSS XMM4,XMM2
MOVSS dword ptr [RDI + 0x10],XMM4
ADDSS XMM5,XMM3
MOVSS dword ptr [RDI + 0x14],XMM5
CVTTSS2SI EDX,XMM4
CVTTSS2SI ECX,XMM5
CVTTSS2SI R8D,XMM0
CVTTSS2SI R9D,XMM1
CVTTSS2SI EAX,XMM2
CVTTSS2SI R10D,XMM3
MOV ESI,0x4
PUSH R10
PUSH RAX
CALL 0x00127b47
ADD RSP,0x10
POP RAX
RET
|
int8
stbtt__csctx_rccurve_to
(float param_1,float param_2,float param_3,float param_4,float param_5,float param_6,
long param_7)
{
int8 in_RAX;
int4 in_register_00000094;
param_1 = param_1 + *(float *)(param_7 + 0x10);
param_2 = param_2 + *(float *)(param_7 + 0x14);
param_3 = param_3 + param_1;
param_4 = param_4 + param_2;
param_5 = param_5 + param_3;
*(float *)(param_7 + 0x10) = param_5;
param_6 = param_6 + param_4;
*(float *)(param_7 + 0x14) = param_6;
stbtt__csctx_v(param_7,4,(int)param_5,(int)param_6,(int)param_1,(int)param_2,(int)param_3,
CONCAT44(in_register_00000094,(int)param_4));
return in_RAX;
}
|
|
56,986
|
glfwPlatformGetWindowSize
|
untodesu[P]riteg/build_O3/_deps/glfw-src/src/x11_window.c
|
void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height)
{
XWindowAttributes attribs;
XGetWindowAttributes(_glfw.x11.display, window->x11.handle, &attribs);
if (width)
*width = attribs.width;
if (height)
*height = attribs.height;
}
|
O3
|
c
|
glfwPlatformGetWindowSize:
pushq %r14
pushq %rbx
subq $0x88, %rsp
movq %rdx, %rbx
movq %rsi, %r14
leaq 0x8588a(%rip), %rax # 0xa8638
movq 0x1fec0(%rax), %rax
movq 0x348(%rdi), %rsi
movq %rsp, %rdx
movq %rax, %rdi
callq 0xcf20
testq %r14, %r14
je 0x22dd3
movl 0x8(%rsp), %eax
movl %eax, (%r14)
testq %rbx, %rbx
je 0x22dde
movl 0xc(%rsp), %eax
movl %eax, (%rbx)
addq $0x88, %rsp
popq %rbx
popq %r14
retq
|
_glfwPlatformGetWindowSize:
push r14
push rbx
sub rsp, 88h
mov rbx, rdx
mov r14, rsi
lea rax, _glfw
mov rax, [rax+1FEC0h]
mov rsi, [rdi+348h]
mov rdx, rsp
mov rdi, rax
call _XGetWindowAttributes
test r14, r14
jz short loc_22DD3
mov eax, [rsp+98h+var_90]
mov [r14], eax
loc_22DD3:
test rbx, rbx
jz short loc_22DDE
mov eax, [rsp+98h+var_8C]
mov [rbx], eax
loc_22DDE:
add rsp, 88h
pop rbx
pop r14
retn
|
long long glfwPlatformGetWindowSize(long long a1, unsigned int *a2, unsigned int *a3)
{
long long result; // rax
long long v5; // [rsp+0h] [rbp-98h] BYREF
unsigned int v6; // [rsp+8h] [rbp-90h]
unsigned int v7; // [rsp+Ch] [rbp-8Ch]
result = XGetWindowAttributes(*(_QWORD *)&glfw[32688], *(_QWORD *)(a1 + 840), &v5);
if ( a2 )
{
result = v6;
*a2 = v6;
}
if ( a3 )
{
result = v7;
*a3 = v7;
}
return result;
}
|
_glfwPlatformGetWindowSize:
PUSH R14
PUSH RBX
SUB RSP,0x88
MOV RBX,RDX
MOV R14,RSI
LEA RAX,[0x1a8638]
MOV RAX,qword ptr [RAX + 0x1fec0]
MOV RSI,qword ptr [RDI + 0x348]
MOV RDX,RSP
MOV RDI,RAX
CALL 0x0010cf20
TEST R14,R14
JZ 0x00122dd3
MOV EAX,dword ptr [RSP + 0x8]
MOV dword ptr [R14],EAX
LAB_00122dd3:
TEST RBX,RBX
JZ 0x00122dde
MOV EAX,dword ptr [RSP + 0xc]
MOV dword ptr [RBX],EAX
LAB_00122dde:
ADD RSP,0x88
POP RBX
POP R14
RET
|
void _glfwPlatformGetWindowSize(long param_1,int4 *param_2,int4 *param_3)
{
int1 auStack_98 [8];
int4 local_90;
int4 local_8c;
XGetWindowAttributes(DAT_001c84f8,*(int8 *)(param_1 + 0x348),auStack_98);
if (param_2 != (int4 *)0x0) {
*param_2 = local_90;
}
if (param_3 != (int4 *)0x0) {
*param_3 = local_8c;
}
return;
}
|
|
56,987
|
keys_free
|
eloqsql/storage/maria/ma_write.c
|
static int keys_free(void* key_arg, TREE_FREE mode, void *param_arg)
{
/*
Probably I can use info->lastkey here, but I'm not sure,
and to be safe I'd better use local lastkey.
*/
bulk_insert_param *param= (bulk_insert_param*)param_arg;
MARIA_SHARE *share= param->info->s;
uchar lastkey[MARIA_MAX_KEY_BUFF], *key= (uchar*)key_arg;
uint keylen;
MARIA_KEYDEF *keyinfo= share->keyinfo + param->keynr;
MARIA_KEY tmp_key;
switch (mode) {
case free_init:
if (share->lock_key_trees)
{
mysql_rwlock_wrlock(&keyinfo->root_lock);
keyinfo->version++;
}
return 0;
case free_free:
/* Note: keylen doesn't contain transid lengths */
keylen= _ma_keylength(keyinfo, key);
tmp_key.data= lastkey;
tmp_key.keyinfo= keyinfo;
tmp_key.data_length= keylen - share->rec_reflength;
tmp_key.ref_length= param->info->bulk_insert_ref_length;
tmp_key.flag= (param->info->bulk_insert_ref_length ==
share->rec_reflength ? 0 : SEARCH_USER_KEY_HAS_TRANSID);
/*
We have to copy key as ma_ck_write_btree may need the buffer for
copying middle key up if tree is growing
*/
memcpy(lastkey, key, tmp_key.data_length + tmp_key.ref_length);
_ma_ck_write_btree(param->info, &tmp_key);
return 0;
case free_end:
if (share->lock_key_trees)
mysql_rwlock_unlock(&keyinfo->root_lock);
return 0;
}
return 0;
}
|
O3
|
c
|
keys_free:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa08, %rsp # imm = 0xA08
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq (%rdx), %rax
movq (%rax), %r13
movl 0x8(%rdx), %eax
imulq $0x118, %rax, %rbx # imm = 0x118
addq 0x570(%r13), %rbx
cmpl $0x2, %esi
je 0x59146
cmpl $0x1, %esi
je 0x590d6
testl %esi, %esi
jne 0x59168
cmpb $0x0, 0x7e3(%r13)
je 0x59168
leaq 0x8(%rbx), %rdi
cmpq $0x0, 0x98(%rbx)
jne 0x5919d
callq 0xaebe1
incl 0xb8(%rbx)
jmp 0x59168
movq %rdx, %r15
movq %rdi, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3e810
leaq -0xa10(%rbp), %rdi
leaq -0xa30(%rbp), %r12
movq %rdi, (%r12)
movq %rbx, 0x8(%r12)
movl 0x740(%r13), %ecx
subl %ecx, %eax
movl %eax, 0x10(%r12)
movq (%r15), %rbx
movl 0x640(%rbx), %edx
xorl %esi, %esi
cmpl %ecx, %edx
setne %sil
movl %edx, 0x14(%r12)
shll $0x13, %esi
movl %esi, 0x18(%r12)
addl %eax, %edx
movl $0x9d3, %ecx # imm = 0x9D3
movq %r14, %rsi
callq 0x2a420
movq %rbx, %rdi
movq %r12, %rsi
callq 0x56bb6
jmp 0x59168
cmpb $0x0, 0x7e3(%r13)
je 0x59168
movq 0x98(%rbx), %rdi
addq $0x8, %rbx
testq %rdi, %rdi
jne 0x5918b
movq %rbx, %rdi
callq 0xaec82
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x591b3
xorl %eax, %eax
addq $0xa08, %rsp # imm = 0xA08
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x33a8c6(%rip), %rax # 0x393a58
movq (%rax), %rax
callq *0x168(%rax)
jmp 0x59160
leaq 0x8c1a2(%rip), %rsi # 0xe5346
movl $0x6af, %edx # imm = 0x6AF
callq 0x30abb
jmp 0x590cb
callq 0x2a250
|
keys_free:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0A08h
mov rax, fs:28h
mov [rbp+var_30], rax
mov rax, [rdx]
mov r13, [rax]
mov eax, [rdx+8]
imul rbx, rax, 118h
add rbx, [r13+570h]
cmp esi, 2
jz loc_59146
cmp esi, 1
jz short loc_590D6
test esi, esi
jnz loc_59168
cmp byte ptr [r13+7E3h], 0
jz loc_59168
lea rdi, [rbx+8]
cmp qword ptr [rbx+98h], 0
jnz loc_5919D
call my_rw_wrlock
loc_590CB:
inc dword ptr [rbx+0B8h]
jmp loc_59168
loc_590D6:
mov r15, rdx
mov r14, rdi
mov rdi, rbx
mov rsi, r14
call _ma_keylength
lea rdi, [rbp+var_A10]
lea r12, [rbp+var_A30]
mov [r12], rdi
mov [r12+8], rbx
mov ecx, [r13+740h]
sub eax, ecx
mov [r12+10h], eax
mov rbx, [r15]
mov edx, [rbx+640h]
xor esi, esi
cmp edx, ecx
setnz sil
mov [r12+14h], edx
shl esi, 13h
mov [r12+18h], esi
add edx, eax
mov ecx, 9D3h
mov rsi, r14
call ___memcpy_chk
mov rdi, rbx
mov rsi, r12
call _ma_ck_write_btree
jmp short loc_59168
loc_59146:
cmp byte ptr [r13+7E3h], 0
jz short loc_59168
mov rdi, [rbx+98h]
add rbx, 8
test rdi, rdi
jnz short loc_5918B
loc_59160:
mov rdi, rbx
call my_rw_unlock
loc_59168:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_591B3
xor eax, eax
add rsp, 0A08h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_5918B:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+168h]
jmp short loc_59160
loc_5919D:
lea rsi, aWorkspaceLlm4b_33; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 6AFh
call psi_rwlock_wrlock
jmp loc_590CB
loc_591B3:
call ___stack_chk_fail
|
long long keys_free(unsigned __int8 *a1, int a2, unsigned int *a3)
{
long long v3; // r13
long long v4; // rax
long long v5; // rbx
long long v6; // rdi
int v8; // eax
int v9; // ecx
long long *v10; // rbx
long long v11; // rdi
long long v12; // rbx
__int128 v14; // [rsp+0h] [rbp-A30h] BYREF
int v15; // [rsp+10h] [rbp-A20h]
int v16; // [rsp+14h] [rbp-A1Ch]
int v17; // [rsp+18h] [rbp-A18h]
_BYTE v18[2528]; // [rsp+20h] [rbp-A10h] BYREF
unsigned long long v19; // [rsp+A00h] [rbp-30h]
v19 = __readfsqword(0x28u);
v3 = **(_QWORD **)a3;
v4 = a3[2];
v5 = *(_QWORD *)(v3 + 1392) + 280 * v4;
if ( a2 == 2 )
{
if ( *(_BYTE *)(v3 + 2019) )
{
v11 = *(_QWORD *)(v5 + 152);
v12 = v5 + 8;
if ( v11 )
PSI_server[45]();
my_rw_unlock(v12);
}
}
else if ( a2 == 1 )
{
v8 = ma_keylength(*(_QWORD *)(v3 + 1392) + 280 * v4, a1);
*(_QWORD *)&v14 = v18;
*((_QWORD *)&v14 + 1) = v5;
v9 = *(_DWORD *)(v3 + 1856);
v15 = v8 - v9;
v10 = *(long long **)a3;
v16 = *(_DWORD *)(*(_QWORD *)a3 + 1600LL);
v17 = (v16 != v9) << 19;
__memcpy_chk(v18, a1, (unsigned int)(v8 - v9 + v16), 2515LL);
ma_ck_write_btree((long long)v10, &v14);
}
else if ( !a2 && *(_BYTE *)(v3 + 2019) )
{
v6 = v5 + 8;
if ( *(_QWORD *)(v5 + 152) )
psi_rwlock_wrlock(v6, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_write.c", 0x6AFu);
else
my_rw_wrlock(v6);
++*(_DWORD *)(v5 + 184);
}
return 0LL;
}
|
keys_free:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xa08
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RDX]
MOV R13,qword ptr [RAX]
MOV EAX,dword ptr [RDX + 0x8]
IMUL RBX,RAX,0x118
ADD RBX,qword ptr [R13 + 0x570]
CMP ESI,0x2
JZ 0x00159146
CMP ESI,0x1
JZ 0x001590d6
TEST ESI,ESI
JNZ 0x00159168
CMP byte ptr [R13 + 0x7e3],0x0
JZ 0x00159168
LEA RDI,[RBX + 0x8]
CMP qword ptr [RBX + 0x98],0x0
JNZ 0x0015919d
CALL 0x001aebe1
LAB_001590cb:
INC dword ptr [RBX + 0xb8]
JMP 0x00159168
LAB_001590d6:
MOV R15,RDX
MOV R14,RDI
MOV RDI,RBX
MOV RSI,R14
CALL 0x0013e810
LEA RDI,[RBP + -0xa10]
LEA R12,[RBP + -0xa30]
MOV qword ptr [R12],RDI
MOV qword ptr [R12 + 0x8],RBX
MOV ECX,dword ptr [R13 + 0x740]
SUB EAX,ECX
MOV dword ptr [R12 + 0x10],EAX
MOV RBX,qword ptr [R15]
MOV EDX,dword ptr [RBX + 0x640]
XOR ESI,ESI
CMP EDX,ECX
SETNZ SIL
MOV dword ptr [R12 + 0x14],EDX
SHL ESI,0x13
MOV dword ptr [R12 + 0x18],ESI
ADD EDX,EAX
MOV ECX,0x9d3
MOV RSI,R14
CALL 0x0012a420
MOV RDI,RBX
MOV RSI,R12
CALL 0x00156bb6
JMP 0x00159168
LAB_00159146:
CMP byte ptr [R13 + 0x7e3],0x0
JZ 0x00159168
MOV RDI,qword ptr [RBX + 0x98]
ADD RBX,0x8
TEST RDI,RDI
JNZ 0x0015918b
LAB_00159160:
MOV RDI,RBX
CALL 0x001aec82
LAB_00159168:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x001591b3
XOR EAX,EAX
ADD RSP,0xa08
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0015918b:
LEA RAX,[0x493a58]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x168]
JMP 0x00159160
LAB_0015919d:
LEA RSI,[0x1e5346]
MOV EDX,0x6af
CALL 0x00130abb
JMP 0x001590cb
LAB_001591b3:
CALL 0x0012a250
|
int8 keys_free(int8 param_1,int param_2,long *param_3)
{
long lVar1;
long lVar2;
long lVar3;
long in_FS_OFFSET;
int1 *local_a38;
long local_a30;
int local_a28;
int local_a24;
int local_a20;
int1 local_a18 [2528];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
lVar1 = *(long *)*param_3;
lVar3 = (ulong)*(uint *)(param_3 + 1) * 0x118 + *(long *)(lVar1 + 0x570);
if (param_2 == 2) {
if (*(char *)(lVar1 + 0x7e3) != '\0') {
if (*(long *)(lVar3 + 0x98) != 0) {
(**(code **)(PSI_server + 0x168))();
}
my_rw_unlock(lVar3 + 8);
}
}
else if (param_2 == 1) {
local_a28 = _ma_keylength(lVar3,param_1);
local_a38 = local_a18;
local_a28 = local_a28 - *(int *)(lVar1 + 0x740);
lVar2 = *param_3;
local_a24 = *(int *)(lVar2 + 0x640);
local_a20 = (uint)(local_a24 != *(int *)(lVar1 + 0x740)) << 0x13;
local_a30 = lVar3;
__memcpy_chk(local_a38,param_1,local_a24 + local_a28,0x9d3);
_ma_ck_write_btree(lVar2,&local_a38);
}
else if ((param_2 == 0) && (*(char *)(lVar1 + 0x7e3) != '\0')) {
if (*(long *)(lVar3 + 0x98) == 0) {
my_rw_wrlock();
}
else {
psi_rwlock_wrlock(lVar3 + 8,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_write.c",0x6af);
}
*(int *)(lVar3 + 0xb8) = *(int *)(lVar3 + 0xb8) + 1;
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return 0;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
56,988
|
my_close
|
eloqsql/mysys/my_open.c
|
int my_close(File fd, myf MyFlags)
{
int err;
char *name= NULL;
DBUG_ENTER("my_close");
DBUG_PRINT("my",("fd: %d MyFlags: %lu",fd, MyFlags));
if (!(MyFlags & (MY_WME | MY_FAE)))
MyFlags|= my_global_flags;
if ((uint) fd < my_file_limit && my_file_info[fd].type != UNOPEN)
{
name= my_file_info[fd].name;
my_file_info[fd].name= NULL;
my_file_info[fd].type= UNOPEN;
}
#ifndef _WIN32
err= close(fd);
#else
err= my_win_close(fd);
#endif
if (err)
{
DBUG_PRINT("error",("Got error %d on close",err));
my_errno=errno;
if (MyFlags & (MY_FAE | MY_WME))
my_error(EE_BADCLOSE, MYF(ME_BELL | (MyFlags & (ME_NOTE | ME_ERROR_LOG))),
name,errno);
}
if (name)
{
my_free(name);
}
my_atomic_add32_explicit(&my_file_opened, -1, MY_MEMORY_ORDER_RELAXED);
DBUG_RETURN(err);
}
|
O0
|
c
|
my_close:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq $0x0, -0x20(%rbp)
jmp 0x2fcb9
movq -0x10(%rbp), %rax
andq $0x18, %rax
cmpq $0x0, %rax
jne 0x2fcd9
leaq 0x35606a(%rip), %rax # 0x385d38
movq (%rax), %rax
orq -0x10(%rbp), %rax
movq %rax, -0x10(%rbp)
movl -0x4(%rbp), %eax
leaq 0x19e71d(%rip), %rcx # 0x1ce400
cmpl (%rcx), %eax
jae 0x2fd56
leaq 0x19e71a(%rip), %rax # 0x1ce408
movq (%rax), %rax
movslq -0x4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
cmpl $0x0, 0x8(%rax)
je 0x2fd56
leaq 0x19e6ff(%rip), %rax # 0x1ce408
movq (%rax), %rax
movslq -0x4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
leaq 0x19e6e3(%rip), %rax # 0x1ce408
movq (%rax), %rax
movslq -0x4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq $0x0, (%rax)
leaq 0x19e6c7(%rip), %rax # 0x1ce408
movq (%rax), %rax
movslq -0x4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl $0x0, 0x8(%rax)
movl -0x4(%rbp), %edi
callq 0x24690
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x2fdc4
jmp 0x2fd69
jmp 0x2fd6b
callq 0x24050
movl (%rax), %eax
movl %eax, -0x2c(%rbp)
callq 0x26580
movl -0x2c(%rbp), %ecx
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
andq $0x18, %rax
cmpq $0x0, %rax
je 0x2fdc2
movq -0x10(%rbp), %rax
andq $0x440, %rax # imm = 0x440
orq $0x4, %rax
movq %rax, -0x40(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x38(%rbp)
callq 0x24050
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
movl (%rax), %ecx
movl $0x4, %edi
movb $0x0, %al
callq 0x2e540
jmp 0x2fdc4
cmpq $0x0, -0x20(%rbp)
je 0x2fdd4
movq -0x20(%rbp), %rdi
callq 0x2f830
movl $0xffffffff, -0x24(%rbp) # imm = 0xFFFFFFFF
movl -0x24(%rbp), %eax
leaq 0x355f5f(%rip), %rcx # 0x385d44
lock
xaddl %eax, (%rcx)
movl %eax, -0x28(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x44(%rbp)
movl -0x44(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
my_close:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov [rbp+var_20], 0
jmp short $+2
loc_2FCB9:
mov rax, [rbp+var_10]
and rax, 18h
cmp rax, 0
jnz short loc_2FCD9
lea rax, my_global_flags
mov rax, [rax]
or rax, [rbp+var_10]
mov [rbp+var_10], rax
loc_2FCD9:
mov eax, [rbp+var_4]
lea rcx, my_file_limit
cmp eax, [rcx]
jnb short loc_2FD56
lea rax, my_file_info
mov rax, [rax]
movsxd rcx, [rbp+var_4]
shl rcx, 4
add rax, rcx
cmp dword ptr [rax+8], 0
jz short loc_2FD56
lea rax, my_file_info
mov rax, [rax]
movsxd rcx, [rbp+var_4]
shl rcx, 4
add rax, rcx
mov rax, [rax]
mov [rbp+var_20], rax
lea rax, my_file_info
mov rax, [rax]
movsxd rcx, [rbp+var_4]
shl rcx, 4
add rax, rcx
mov qword ptr [rax], 0
lea rax, my_file_info
mov rax, [rax]
movsxd rcx, [rbp+var_4]
shl rcx, 4
add rax, rcx
mov dword ptr [rax+8], 0
loc_2FD56:
mov edi, [rbp+var_4]
call _close
mov [rbp+var_14], eax
cmp [rbp+var_14], 0
jz short loc_2FDC4
jmp short $+2
loc_2FD69:
jmp short $+2
loc_2FD6B:
call ___errno_location
mov eax, [rax]
mov [rbp+var_2C], eax
call _my_thread_var
mov ecx, [rbp+var_2C]
mov [rax], ecx
mov rax, [rbp+var_10]
and rax, 18h
cmp rax, 0
jz short loc_2FDC2
mov rax, [rbp+var_10]
and rax, 440h
or rax, 4
mov [rbp+var_40], rax
mov rax, [rbp+var_20]
mov [rbp+var_38], rax
call ___errno_location
mov rsi, [rbp+var_40]
mov rdx, [rbp+var_38]
mov ecx, [rax]
mov edi, 4
mov al, 0
call my_error
loc_2FDC2:
jmp short $+2
loc_2FDC4:
cmp [rbp+var_20], 0
jz short loc_2FDD4
mov rdi, [rbp+var_20]
call my_free
loc_2FDD4:
mov [rbp+var_24], 0FFFFFFFFh
mov eax, [rbp+var_24]
lea rcx, my_file_opened
lock xadd [rcx], eax
mov [rbp+var_28], eax
mov eax, [rbp+var_14]
mov [rbp+var_44], eax
mov eax, [rbp+var_44]
add rsp, 50h
pop rbp
retn
|
long long my_close(unsigned int a1, __int16 a2)
{
unsigned int *v2; // rax
int v4; // [rsp+24h] [rbp-2Ch]
long long v5; // [rsp+30h] [rbp-20h]
unsigned int v6; // [rsp+3Ch] [rbp-14h]
__int16 v7; // [rsp+40h] [rbp-10h]
v7 = a2;
v5 = 0LL;
if ( (a2 & 0x18) == 0 )
v7 = a2 | my_global_flags;
if ( a1 < my_file_limit && *((_DWORD *)my_file_info + 4 * (int)a1 + 2) )
{
v5 = *((_QWORD *)my_file_info + 2 * (int)a1);
*((_QWORD *)my_file_info + 2 * (int)a1) = 0LL;
*((_DWORD *)my_file_info + 4 * (int)a1 + 2) = 0;
}
v6 = close(a1);
if ( v6 )
{
v4 = *(_DWORD *)__errno_location();
*(_DWORD *)my_thread_var() = v4;
if ( (v7 & 0x18) != 0 )
{
v2 = (unsigned int *)__errno_location();
my_error(4u, v7 & 0x440 | 4LL, v5, *v2);
}
}
if ( v5 )
my_free(v5);
_InterlockedExchangeAdd(my_file_opened, 0xFFFFFFFF);
return v6;
}
|
my_close:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x20],0x0
JMP 0x0012fcb9
LAB_0012fcb9:
MOV RAX,qword ptr [RBP + -0x10]
AND RAX,0x18
CMP RAX,0x0
JNZ 0x0012fcd9
LEA RAX,[0x485d38]
MOV RAX,qword ptr [RAX]
OR RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x10],RAX
LAB_0012fcd9:
MOV EAX,dword ptr [RBP + -0x4]
LEA RCX,[0x2ce400]
CMP EAX,dword ptr [RCX]
JNC 0x0012fd56
LEA RAX,[0x2ce408]
MOV RAX,qword ptr [RAX]
MOVSXD RCX,dword ptr [RBP + -0x4]
SHL RCX,0x4
ADD RAX,RCX
CMP dword ptr [RAX + 0x8],0x0
JZ 0x0012fd56
LEA RAX,[0x2ce408]
MOV RAX,qword ptr [RAX]
MOVSXD RCX,dword ptr [RBP + -0x4]
SHL RCX,0x4
ADD RAX,RCX
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
LEA RAX,[0x2ce408]
MOV RAX,qword ptr [RAX]
MOVSXD RCX,dword ptr [RBP + -0x4]
SHL RCX,0x4
ADD RAX,RCX
MOV qword ptr [RAX],0x0
LEA RAX,[0x2ce408]
MOV RAX,qword ptr [RAX]
MOVSXD RCX,dword ptr [RBP + -0x4]
SHL RCX,0x4
ADD RAX,RCX
MOV dword ptr [RAX + 0x8],0x0
LAB_0012fd56:
MOV EDI,dword ptr [RBP + -0x4]
CALL 0x00124690
MOV dword ptr [RBP + -0x14],EAX
CMP dword ptr [RBP + -0x14],0x0
JZ 0x0012fdc4
JMP 0x0012fd69
LAB_0012fd69:
JMP 0x0012fd6b
LAB_0012fd6b:
CALL 0x00124050
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x2c],EAX
CALL 0x00126580
MOV ECX,dword ptr [RBP + -0x2c]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x10]
AND RAX,0x18
CMP RAX,0x0
JZ 0x0012fdc2
MOV RAX,qword ptr [RBP + -0x10]
AND RAX,0x440
OR RAX,0x4
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x38],RAX
CALL 0x00124050
MOV RSI,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RAX]
MOV EDI,0x4
MOV AL,0x0
CALL 0x0012e540
LAB_0012fdc2:
JMP 0x0012fdc4
LAB_0012fdc4:
CMP qword ptr [RBP + -0x20],0x0
JZ 0x0012fdd4
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0012f830
LAB_0012fdd4:
MOV dword ptr [RBP + -0x24],0xffffffff
MOV EAX,dword ptr [RBP + -0x24]
LEA RCX,[0x485d44]
XADD.LOCK dword ptr [RCX],EAX
MOV dword ptr [RBP + -0x28],EAX
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x44],EAX
MOV EAX,dword ptr [RBP + -0x44]
ADD RSP,0x50
POP RBP
RET
|
int my_close(uint param_1,ulong param_2)
{
int iVar1;
int iVar2;
int *piVar3;
long local_28;
ulong local_18;
local_28 = 0;
local_18 = param_2;
if ((param_2 & 0x18) == 0) {
local_18 = my_global_flags | param_2;
}
if ((param_1 < my_file_limit) && (*(int *)(my_file_info + (long)(int)param_1 * 0x10 + 8) != 0)) {
local_28 = *(long *)(my_file_info + (long)(int)param_1 * 0x10);
*(int8 *)(my_file_info + (long)(int)param_1 * 0x10) = 0;
*(int4 *)(my_file_info + (long)(int)param_1 * 0x10 + 8) = 0;
}
iVar2 = close(param_1);
if (iVar2 != 0) {
piVar3 = __errno_location();
iVar1 = *piVar3;
piVar3 = (int *)_my_thread_var();
*piVar3 = iVar1;
if ((local_18 & 0x18) != 0) {
piVar3 = __errno_location();
my_error(4,local_18 & 0x440 | 4,local_28,*piVar3);
}
}
if (local_28 != 0) {
my_free(local_28);
}
LOCK();
my_file_opened = my_file_opened + -1;
UNLOCK();
return iVar2;
}
|
|
56,989
|
js_finrec_mark
|
bluesky950520[P]quickjs/quickjs.c
|
static void js_finrec_mark(JSRuntime *rt, JSValue val, JS_MarkFunc *mark_func)
{
JSFinalizationRegistryData *frd = JS_GetOpaque(val, JS_CLASS_FINALIZATION_REGISTRY);
if (frd) {
JS_MarkValue(rt, frd->cb, mark_func);
struct list_head *el;
list_for_each(el, &frd->entries) {
JSFinRecEntry *fre = list_entry(el, JSFinRecEntry, link);
JS_MarkValue(rt, fre->held_val, mark_func);
JS_MarkValue(rt, fre->token, mark_func);
}
}
}
|
O0
|
c
|
js_finrec_mark:
subq $0x38, %rsp
movq %rsi, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq %rdi, 0x20(%rsp)
movq %rcx, 0x18(%rsp)
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
movl $0x3b, %edx
callq 0x37090
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x10(%rsp)
je 0xe42d7
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
movq 0x18(%rax), %rsi
movq 0x20(%rax), %rdx
callq 0x29920
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rcx
cmpq %rcx, %rax
je 0xe42d5
movq 0x8(%rsp), %rax
movq %rax, (%rsp)
movq 0x20(%rsp), %rdi
movq (%rsp), %rax
movq 0x18(%rsp), %rcx
movq 0x30(%rax), %rsi
movq 0x38(%rax), %rdx
callq 0x29920
movq 0x20(%rsp), %rdi
movq (%rsp), %rax
movq 0x18(%rsp), %rcx
movq 0x40(%rax), %rsi
movq 0x48(%rax), %rdx
callq 0x29920
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x8(%rsp)
jmp 0xe4277
jmp 0xe42d7
addq $0x38, %rsp
retq
nopl (%rax)
|
js_finrec_mark:
sub rsp, 38h
mov [rsp+38h+var_10], rsi
mov [rsp+38h+var_8], rdx
mov [rsp+38h+var_18], rdi
mov [rsp+38h+var_20], rcx
mov rdi, [rsp+38h+var_10]
mov rsi, [rsp+38h+var_8]
mov edx, 3Bh ; ';'
call JS_GetOpaque
mov [rsp+38h+var_28], rax
cmp [rsp+38h+var_28], 0
jz loc_E42D7
mov rdi, [rsp+38h+var_18]
mov rax, [rsp+38h+var_28]
mov rcx, [rsp+38h+var_20]
mov rsi, [rax+18h]
mov rdx, [rax+20h]
call JS_MarkValue
mov rax, [rsp+38h+var_28]
mov rax, [rax+8]
mov [rsp+38h+var_30], rax
loc_E4277:
mov rax, [rsp+38h+var_30]
mov rcx, [rsp+38h+var_28]
cmp rax, rcx
jz short loc_E42D5
mov rax, [rsp+38h+var_30]
mov [rsp+38h+var_38], rax
mov rdi, [rsp+38h+var_18]
mov rax, [rsp+38h+var_38]
mov rcx, [rsp+38h+var_20]
mov rsi, [rax+30h]
mov rdx, [rax+38h]
call JS_MarkValue
mov rdi, [rsp+38h+var_18]
mov rax, [rsp+38h+var_38]
mov rcx, [rsp+38h+var_20]
mov rsi, [rax+40h]
mov rdx, [rax+48h]
call JS_MarkValue
mov rax, [rsp+38h+var_30]
mov rax, [rax+8]
mov [rsp+38h+var_30], rax
jmp short loc_E4277
loc_E42D5:
jmp short $+2
loc_E42D7:
add rsp, 38h
retn
|
long long js_finrec_mark(long long a1, long long a2, int a3, long long ( *a4)(long long, long long))
{
long long result; // rax
_QWORD *i; // [rsp+8h] [rbp-30h]
_QWORD *v6; // [rsp+10h] [rbp-28h]
result = JS_GetOpaque(a2, a3, 59);
v6 = (_QWORD *)result;
if ( result )
{
JS_MarkValue(a1, *(_QWORD *)(result + 24), *(_QWORD *)(result + 32), a4);
for ( i = (_QWORD *)v6[1]; ; i = (_QWORD *)i[1] )
{
result = (long long)i;
if ( i == v6 )
break;
JS_MarkValue(a1, i[6], i[7], a4);
JS_MarkValue(a1, i[8], i[9], a4);
}
}
return result;
}
|
js_finrec_mark:
SUB RSP,0x38
MOV qword ptr [RSP + 0x28],RSI
MOV qword ptr [RSP + 0x30],RDX
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x18],RCX
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x30]
MOV EDX,0x3b
CALL 0x00137090
MOV qword ptr [RSP + 0x10],RAX
CMP qword ptr [RSP + 0x10],0x0
JZ 0x001e42d7
MOV RDI,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RAX + 0x18]
MOV RDX,qword ptr [RAX + 0x20]
CALL 0x00129920
MOV RAX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RAX
LAB_001e4277:
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x10]
CMP RAX,RCX
JZ 0x001e42d5
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP],RAX
MOV RDI,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP]
MOV RCX,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RAX + 0x30]
MOV RDX,qword ptr [RAX + 0x38]
CALL 0x00129920
MOV RDI,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP]
MOV RCX,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RAX + 0x40]
MOV RDX,qword ptr [RAX + 0x48]
CALL 0x00129920
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RAX
JMP 0x001e4277
LAB_001e42d5:
JMP 0x001e42d7
LAB_001e42d7:
ADD RSP,0x38
RET
|
void js_finrec_mark(int8 param_1,int8 param_2,int8 param_3,int8 param_4)
{
long lVar1;
int8 local_30;
lVar1 = JS_GetOpaque(param_2,param_3,0x3b);
if (lVar1 != 0) {
JS_MarkValue(param_1,*(int8 *)(lVar1 + 0x18),*(int8 *)(lVar1 + 0x20),param_4);
for (local_30 = *(long *)(lVar1 + 8); local_30 != lVar1; local_30 = *(long *)(local_30 + 8)) {
JS_MarkValue(param_1,*(int8 *)(local_30 + 0x30),*(int8 *)(local_30 + 0x38),param_4
);
JS_MarkValue(param_1,*(int8 *)(local_30 + 0x40),*(int8 *)(local_30 + 0x48),param_4
);
}
}
return;
}
|
|
56,990
|
my_caseup_utf8mb3
|
eloqsql/strings/ctype-utf8.c
|
static size_t my_caseup_utf8mb3(CHARSET_INFO *cs,
const char *src, size_t srclen,
char *dst, size_t dstlen)
{
my_wc_t wc;
int srcres, dstres;
const char *srcend= src + srclen;
char *dstend= dst + dstlen, *dst0= dst;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
DBUG_ASSERT(src != dst || cs->caseup_multiply == 1);
while ((src < srcend) &&
(srcres= my_utf8mb3_uni(cs, &wc, (uchar *) src, (uchar*) srcend)) > 0)
{
my_toupper_utf8mb3(uni_plane, &wc);
if ((dstres= my_uni_utf8mb3(cs, wc, (uchar*) dst, (uchar*) dstend)) <= 0)
break;
src+= srcres;
dst+= dstres;
}
return (size_t) (dst - dst0);
}
|
O0
|
c
|
my_caseup_utf8mb3:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x10(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x20(%rbp), %rax
addq -0x28(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rax
movq 0x78(%rax), %rax
movq %rax, -0x58(%rbp)
jmp 0x654aa
jmp 0x654ac
movq -0x10(%rbp), %rcx
xorl %eax, %eax
cmpq -0x40(%rbp), %rcx
movb %al, -0x59(%rbp)
jae 0x654dc
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rdx
movq -0x40(%rbp), %rcx
leaq -0x30(%rbp), %rsi
callq 0x65140
movl %eax, -0x34(%rbp)
cmpl $0x0, %eax
setg %al
movb %al, -0x59(%rbp)
movb -0x59(%rbp), %al
testb $0x1, %al
jne 0x654e5
jmp 0x65538
movq -0x58(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x662b0
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x48(%rbp), %rcx
callq 0x65170
movl %eax, -0x38(%rbp)
cmpl $0x0, %eax
jg 0x65511
jmp 0x65538
movl -0x34(%rbp), %ecx
movq -0x10(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movl -0x38(%rbp), %ecx
movq -0x20(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
jmp 0x654ac
movq -0x20(%rbp), %rax
movq -0x50(%rbp), %rcx
subq %rcx, %rax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)
|
my_caseup_utf8mb3:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov rax, [rbp+var_10]
add rax, [rbp+var_18]
mov [rbp+var_40], rax
mov rax, [rbp+var_20]
add rax, [rbp+var_28]
mov [rbp+var_48], rax
mov rax, [rbp+var_20]
mov [rbp+var_50], rax
mov rax, [rbp+var_8]
mov rax, [rax+78h]
mov [rbp+var_58], rax
jmp short $+2
loc_654AA:
jmp short $+2
loc_654AC:
mov rcx, [rbp+var_10]
xor eax, eax
cmp rcx, [rbp+var_40]
mov [rbp+var_59], al
jnb short loc_654DC
mov rdi, [rbp+var_8]
mov rdx, [rbp+var_10]
mov rcx, [rbp+var_40]
lea rsi, [rbp+var_30]
call my_utf8mb3_uni
mov [rbp+var_34], eax
cmp eax, 0
setnle al
mov [rbp+var_59], al
loc_654DC:
mov al, [rbp+var_59]
test al, 1
jnz short loc_654E5
jmp short loc_65538
loc_654E5:
mov rdi, [rbp+var_58]
lea rsi, [rbp+var_30]
call my_toupper_utf8mb3
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_30]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_48]
call my_uni_utf8mb3
mov [rbp+var_38], eax
cmp eax, 0
jg short loc_65511
jmp short loc_65538
loc_65511:
mov ecx, [rbp+var_34]
mov rax, [rbp+var_10]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_10], rax
mov ecx, [rbp+var_38]
mov rax, [rbp+var_20]
movsxd rcx, ecx
add rax, rcx
mov [rbp+var_20], rax
jmp loc_654AC
loc_65538:
mov rax, [rbp+var_20]
mov rcx, [rbp+var_50]
sub rax, rcx
add rsp, 60h
pop rbp
retn
|
_BYTE * my_caseup_utf8mb3(long long a1, unsigned long long a2, long long a3, _BYTE *a4, long long a5, long long a6)
{
bool v7; // [rsp+7h] [rbp-59h]
long long v8; // [rsp+8h] [rbp-58h]
unsigned long long v10; // [rsp+18h] [rbp-48h]
unsigned long long v11; // [rsp+20h] [rbp-40h]
int v12; // [rsp+28h] [rbp-38h]
int v13; // [rsp+2Ch] [rbp-34h]
unsigned long long v14[2]; // [rsp+30h] [rbp-30h] BYREF
_BYTE *v15; // [rsp+40h] [rbp-20h]
long long v16; // [rsp+48h] [rbp-18h]
unsigned long long v17; // [rsp+50h] [rbp-10h]
long long v18; // [rsp+58h] [rbp-8h]
v18 = a1;
v17 = a2;
v16 = a3;
v15 = a4;
v14[1] = a5;
v11 = a3 + a2;
v10 = (unsigned long long)&a4[a5];
v8 = *(_QWORD *)(a1 + 120);
while ( 1 )
{
v7 = 0;
if ( v17 < v11 )
{
v13 = my_utf8mb3_uni(v18, (long long)v14, v17, v11, a5, a6);
v7 = v13 > 0;
}
if ( !v7 )
break;
my_toupper_utf8mb3(v8, v14);
v12 = my_uni_utf8mb3(v18, v14[0], v15, v10);
if ( v12 <= 0 )
break;
v17 += v13;
v15 += v12;
}
return (_BYTE *)(v15 - a4);
}
|
my_caseup_utf8mb3:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x78]
MOV qword ptr [RBP + -0x58],RAX
JMP 0x001654aa
LAB_001654aa:
JMP 0x001654ac
LAB_001654ac:
MOV RCX,qword ptr [RBP + -0x10]
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x40]
MOV byte ptr [RBP + -0x59],AL
JNC 0x001654dc
MOV RDI,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x40]
LEA RSI,[RBP + -0x30]
CALL 0x00165140
MOV dword ptr [RBP + -0x34],EAX
CMP EAX,0x0
SETG AL
MOV byte ptr [RBP + -0x59],AL
LAB_001654dc:
MOV AL,byte ptr [RBP + -0x59]
TEST AL,0x1
JNZ 0x001654e5
JMP 0x00165538
LAB_001654e5:
MOV RDI,qword ptr [RBP + -0x58]
LEA RSI,[RBP + -0x30]
CALL 0x001662b0
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x48]
CALL 0x00165170
MOV dword ptr [RBP + -0x38],EAX
CMP EAX,0x0
JG 0x00165511
JMP 0x00165538
LAB_00165511:
MOV ECX,dword ptr [RBP + -0x34]
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
MOV ECX,dword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x20]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
JMP 0x001654ac
LAB_00165538:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x50]
SUB RAX,RCX
ADD RSP,0x60
POP RBP
RET
|
long my_caseup_utf8mb3(long param_1,ulong param_2,long param_3,long param_4,long param_5)
{
int8 uVar1;
bool bVar2;
int iVar3;
int local_3c;
int8 local_38;
long local_30;
long local_28;
long local_20;
ulong local_18;
long local_10;
uVar1 = *(int8 *)(param_1 + 0x78);
local_30 = param_5;
local_28 = param_4;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
while( true ) {
bVar2 = false;
if (local_18 < param_2 + param_3) {
local_3c = my_utf8mb3_uni(local_10,&local_38,local_18,param_2 + param_3);
bVar2 = 0 < local_3c;
}
if (!bVar2) break;
my_toupper_utf8mb3(uVar1,&local_38);
iVar3 = my_uni_utf8mb3(local_10,local_38,local_28,param_4 + param_5);
if (iVar3 < 1) break;
local_18 = local_18 + (long)local_3c;
local_28 = local_28 + iVar3;
}
return local_28 - param_4;
}
|
|
56,991
|
SDL_PollEventInmplementation(SDL::Application&, SDL_Event*)
|
SDL3Lite/source/SDL3/SDL_Events.cpp
|
int SDL_PollEventInmplementation(SDL::Application& application, SDL_Event* dest)
{
SDL_Event event;
if (application.PollEvent(event))
{
memcpy(dest, &event, sizeof(SDL_Event));
return 1;
}
application.PollEvents();
return 0;
}
|
O3
|
cpp
|
SDL_PollEventInmplementation(SDL::Application&, SDL_Event*):
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq 0x18(%rsp), %rdi
movq %rsp, %rsi
callq 0x221a0
testb $0x1, %al
jne 0x2cad1
jmp 0x2caf0
movq 0x10(%rsp), %rax
movq (%rsp), %rcx
movq %rcx, (%rax)
movq 0x8(%rsp), %rcx
movq %rcx, 0x8(%rax)
movl $0x1, 0x24(%rsp)
jmp 0x2cb02
movq 0x18(%rsp), %rdi
callq 0x22540
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nopl (%rax,%rax)
|
_Z28SDL_PollEventInmplementationRN3SDL11ApplicationEP9SDL_Event:
sub rsp, 28h
mov [rsp+28h+var_10], rdi
mov [rsp+28h+var_18], rsi
mov rdi, [rsp+28h+var_10]
mov rsi, rsp
call __ZN3SDL11Application9PollEventER9SDL_Event; SDL::Application::PollEvent(SDL_Event &)
test al, 1
jnz short loc_2CAD1
jmp short loc_2CAF0
loc_2CAD1:
mov rax, [rsp+28h+var_18]
mov rcx, [rsp+28h+var_28]
mov [rax], rcx
mov rcx, [rsp+28h+var_20]
mov [rax+8], rcx
mov [rsp+28h+var_4], 1
jmp short loc_2CB02
loc_2CAF0:
mov rdi, [rsp+28h+var_10]; this
call __ZN3SDL11Application10PollEventsEv; SDL::Application::PollEvents(void)
mov [rsp+28h+var_4], 0
loc_2CB02:
mov eax, [rsp+28h+var_4]
add rsp, 28h
retn
|
long long SDL_PollEventInmplementation(SDL::Application *a1, _QWORD *a2)
{
_QWORD *v2; // rax
_QWORD v4[2]; // [rsp+0h] [rbp-28h] BYREF
_QWORD *v5; // [rsp+10h] [rbp-18h]
SDL::Application *v6; // [rsp+18h] [rbp-10h]
v6 = a1;
v5 = a2;
if ( (SDL::Application::PollEvent(a1, v4) & 1) != 0 )
{
v2 = v5;
*v5 = v4[0];
v2[1] = v4[1];
return 1;
}
else
{
SDL::Application::PollEvents(v6);
return 0;
}
}
|
SDL_PollEventInmplementation:
SUB RSP,0x28
MOV qword ptr [RSP + 0x18],RDI
MOV qword ptr [RSP + 0x10],RSI
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,RSP
CALL 0x001221a0
TEST AL,0x1
JNZ 0x0012cad1
JMP 0x0012caf0
LAB_0012cad1:
MOV RAX,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX + 0x8],RCX
MOV dword ptr [RSP + 0x24],0x1
JMP 0x0012cb02
LAB_0012caf0:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x00122540
MOV dword ptr [RSP + 0x24],0x0
LAB_0012cb02:
MOV EAX,dword ptr [RSP + 0x24]
ADD RSP,0x28
RET
|
/* SDL_PollEventInmplementation(SDL::Application&, SDL_Event*) */
bool SDL_PollEventInmplementation(Application *param_1,SDL_Event *param_2)
{
ulong uVar1;
bool bVar2;
int8 local_28;
int8 local_20;
SDL_Event *local_18;
Application *local_10;
local_18 = param_2;
local_10 = param_1;
uVar1 = SDL::Application::PollEvent(param_1,(SDL_Event *)&local_28);
bVar2 = (uVar1 & 1) != 0;
if (bVar2) {
*(int8 *)local_18 = local_28;
*(int8 *)(local_18 + 8) = local_20;
}
else {
SDL::Application::PollEvents(local_10);
}
return bVar2;
}
|
|
56,992
|
POINTonE2_affine_on_curve
|
corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/e2.c
|
static bool_t POINTonE2_affine_on_curve(const POINTonE2_affine *p)
{
vec384x XXX, YY;
sqr_fp2(XXX, p->X);
mul_fp2(XXX, XXX, p->X); /* X^3 */
add_fp2(XXX, XXX, B_E2); /* X^3 + B */
sqr_fp2(YY, p->Y); /* Y^2 */
return vec_is_equal(XXX, YY, sizeof(XXX));
}
|
O0
|
c
|
POINTonE2_affine_on_curve:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x8(%rbp)
leaq -0x70(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0xb6750
leaq -0x70(%rbp), %rdi
leaq -0x70(%rbp), %rsi
movq -0x8(%rbp), %rdx
callq 0xb66e0
leaq -0x70(%rbp), %rdi
leaq -0x70(%rbp), %rsi
leaq 0x3d694(%rip), %rdx # 0xe9340
callq 0xb64b0
leaq -0xd0(%rbp), %rdi
movq -0x8(%rbp), %rsi
addq $0x60, %rsi
callq 0xb6750
leaq -0x70(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
movl $0x60, %edx
callq 0xab4c0
addq $0xd0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
|
POINTonE2_affine_on_curve:
push rbp
mov rbp, rsp
sub rsp, 0D0h
mov [rbp+var_8], rdi
lea rdi, [rbp+var_70]
mov rsi, [rbp+var_8]
call sqr_fp2
lea rdi, [rbp+var_70]
lea rsi, [rbp+var_70]
mov rdx, [rbp+var_8]
call mul_fp2
lea rdi, [rbp+var_70]
lea rsi, [rbp+var_70]
lea rdx, B_E2
call add_fp2
lea rdi, [rbp+var_D0]
mov rsi, [rbp+var_8]
add rsi, 60h ; '`'
call sqr_fp2
lea rdi, [rbp+var_70]
lea rsi, [rbp+var_D0]
mov edx, 60h ; '`'
call vec_is_equal
add rsp, 0D0h
pop rbp
retn
|
unsigned long long POINTonE2_affine_on_curve(long long a1)
{
_BYTE v2[96]; // [rsp+0h] [rbp-D0h] BYREF
_BYTE v3[104]; // [rsp+60h] [rbp-70h] BYREF
long long v4; // [rsp+C8h] [rbp-8h]
v4 = a1;
sqr_fp2(v3, a1);
mul_fp2(v3, v3, v4);
add_fp2(v3, v3, &B_E2);
sqr_fp2(v2, v4 + 96);
return vec_is_equal((long long)v3, (long long)v2, 0x60uLL);
}
|
POINTonE2_affine_on_curve:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xd0
MOV qword ptr [RBP + -0x8],RDI
LEA RDI,[RBP + -0x70]
MOV RSI,qword ptr [RBP + -0x8]
CALL 0x001b6750
LEA RDI,[RBP + -0x70]
LEA RSI,[RBP + -0x70]
MOV RDX,qword ptr [RBP + -0x8]
CALL 0x001b66e0
LEA RDI,[RBP + -0x70]
LEA RSI,[RBP + -0x70]
LEA RDX,[0x1e9340]
CALL 0x001b64b0
LEA RDI,[RBP + -0xd0]
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0x60
CALL 0x001b6750
LEA RDI,[RBP + -0x70]
LEA RSI,[RBP + -0xd0]
MOV EDX,0x60
CALL 0x001ab4c0
ADD RSP,0xd0
POP RBP
RET
|
void POINTonE2_affine_on_curve(long param_1)
{
int1 local_d8 [96];
int1 local_78 [104];
long local_10;
local_10 = param_1;
sqr_fp2(local_78,param_1);
mul_fp2(local_78,local_78,local_10);
add_fp2(local_78,local_78,B_E2);
sqr_fp2(local_d8,local_10 + 0x60);
vec_is_equal(local_78,local_d8,0x60);
return;
}
|
|
56,993
|
minja::SetTemplateToken::SetTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::shared_ptr<minja::Expression>&&)
|
llama.cpp/common/minja/minja.hpp
|
SetTemplateToken(const Location & loc, SpaceHandling pre, SpaceHandling post, const std::string & ns, const std::vector<std::string> & vns, std::shared_ptr<Expression> && v)
: TemplateToken(Type::Set, loc, pre, post), ns(ns), var_names(vns), value(std::move(v)) {}
|
O3
|
cpp
|
minja::SetTemplateToken::SetTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::shared_ptr<minja::Expression>&&):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r9, %r14
movq %rdi, %rbx
leaq 0x5a978(%rip), %r12 # 0xfe960
addq $0x10, %r12
movq %r12, (%rdi)
movl $0xa, 0x8(%rdi)
movq (%rsi), %rax
movq %rax, 0x10(%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x18(%rdi)
testq %rax, %rax
je 0xa401f
movq 0x5bf7f(%rip), %rdi # 0xfff90
cmpb $0x0, (%rdi)
je 0xa401b
incl 0x8(%rax)
jmp 0xa401f
lock
incl 0x8(%rax)
movq 0x10(%rsi), %rax
movq %rax, 0x20(%rbx)
movl %edx, 0x28(%rbx)
movl %ecx, 0x2c(%rbx)
leaq 0x5b244(%rip), %rax # 0xff278
addq $0x10, %rax
movq %rax, (%rbx)
leaq 0x30(%rbx), %r15
leaq 0x40(%rbx), %r13
movq %r13, 0x30(%rbx)
movq (%r8), %rsi
movq 0x8(%r8), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x40a2c
leaq 0x50(%rbx), %rdi
movq %r14, %rsi
callq 0x393c6
movq 0x30(%rsp), %rax
xorl %ecx, %ecx
movq %rcx, 0x70(%rbx)
movups (%rax), %xmm0
movq %rcx, 0x8(%rax)
movups %xmm0, 0x68(%rbx)
movq %rcx, (%rax)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%r15), %rdi
cmpq %r13, %rdi
je 0xa40a4
movq (%r13), %rsi
incq %rsi
callq 0x1c110
jmp 0xa40a4
movq %rax, %r14
movq %r12, (%rbx)
addq $0x18, %rbx
movq %rbx, %rdi
callq 0x34564
movq %r14, %rdi
callq 0x1c7d0
nop
|
_ZN5minja16SetTemplateTokenC2ERKNS_8LocationENS_13SpaceHandlingES4_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorISA_SaISA_EEOSt10shared_ptrINS_10ExpressionEE:
push r15
push r14
push r13
push r12
push rbx
mov r14, r9
mov rbx, rdi
lea r12, _ZTVN5minja13TemplateTokenE; `vtable for'minja::TemplateToken
add r12, 10h
mov [rdi], r12
mov dword ptr [rdi+8], 0Ah
mov rax, [rsi]
mov [rdi+10h], rax
mov rax, [rsi+8]
mov [rdi+18h], rax
test rax, rax
jz short loc_A401F
mov rdi, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag
cmp byte ptr [rdi], 0
jz short loc_A401B
inc dword ptr [rax+8]
jmp short loc_A401F
loc_A401B:
lock inc dword ptr [rax+8]
loc_A401F:
mov rax, [rsi+10h]
mov [rbx+20h], rax
mov [rbx+28h], edx
mov [rbx+2Ch], ecx
lea rax, _ZTVN5minja16SetTemplateTokenE; `vtable for'minja::SetTemplateToken
add rax, 10h
mov [rbx], rax
lea r15, [rbx+30h]
lea r13, [rbx+40h]
mov [rbx+30h], r13
mov rsi, [r8]
mov rdx, [r8+8]
add rdx, rsi
mov rdi, r15
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rdi, [rbx+50h]
mov rsi, r14
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&)
mov rax, [rsp+28h+arg_0]
xor ecx, ecx
mov [rbx+70h], rcx
movups xmm0, xmmword ptr [rax]
mov [rax+8], rcx
movups xmmword ptr [rbx+68h], xmm0
mov [rax], rcx
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
mov r14, rax
mov rdi, [r15]; void *
cmp rdi, r13
jz short loc_A40A4
mov rsi, [r13+0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_A40A4
mov r14, rax
loc_A40A4:
mov [rbx], r12
add rbx, 18h
mov rdi, rbx
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, r14
call __Unwind_Resume
|
long long minja::SetTemplateToken::SetTemplateToken(
long long a1,
_QWORD *a2,
int a3,
int a4,
long long a5,
_QWORD *a6,
__int128 *a7)
{
long long v8; // rax
long long result; // rax
__int128 v10; // xmm0
*(_QWORD *)a1 = &`vtable for'minja::TemplateToken + 2;
*(_DWORD *)(a1 + 8) = 10;
*(_QWORD *)(a1 + 16) = *a2;
v8 = a2[1];
*(_QWORD *)(a1 + 24) = v8;
if ( v8 )
{
if ( _libc_single_threaded )
++*(_DWORD *)(v8 + 8);
else
_InterlockedIncrement((volatile signed __int32 *)(v8 + 8));
}
*(_QWORD *)(a1 + 32) = a2[2];
*(_DWORD *)(a1 + 40) = a3;
*(_DWORD *)(a1 + 44) = a4;
*(_QWORD *)a1 = &`vtable for'minja::SetTemplateToken + 2;
*(_QWORD *)(a1 + 48) = a1 + 64;
std::string::_M_construct<char *>(a1 + 48, *(_BYTE **)a5, *(_QWORD *)a5 + *(_QWORD *)(a5 + 8));
std::vector<std::string>::vector(a1 + 80, a6);
result = (long long)a7;
*(_QWORD *)(a1 + 112) = 0LL;
v10 = *a7;
*((_QWORD *)a7 + 1) = 0LL;
*(_OWORD *)(a1 + 104) = v10;
*(_QWORD *)a7 = 0LL;
return result;
}
|
SetTemplateToken:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV R14,R9
MOV RBX,RDI
LEA R12,[0x1fe960]
ADD R12,0x10
MOV qword ptr [RDI],R12
MOV dword ptr [RDI + 0x8],0xa
MOV RAX,qword ptr [RSI]
MOV qword ptr [RDI + 0x10],RAX
MOV RAX,qword ptr [RSI + 0x8]
MOV qword ptr [RDI + 0x18],RAX
TEST RAX,RAX
JZ 0x001a401f
MOV RDI,qword ptr [0x001fff90]
CMP byte ptr [RDI],0x0
JZ 0x001a401b
INC dword ptr [RAX + 0x8]
JMP 0x001a401f
LAB_001a401b:
INC.LOCK dword ptr [RAX + 0x8]
LAB_001a401f:
MOV RAX,qword ptr [RSI + 0x10]
MOV qword ptr [RBX + 0x20],RAX
MOV dword ptr [RBX + 0x28],EDX
MOV dword ptr [RBX + 0x2c],ECX
LEA RAX,[0x1ff278]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
LEA R15,[RBX + 0x30]
LEA R13,[RBX + 0x40]
MOV qword ptr [RBX + 0x30],R13
MOV RSI,qword ptr [R8]
MOV RDX,qword ptr [R8 + 0x8]
ADD RDX,RSI
LAB_001a4051:
MOV RDI,R15
CALL 0x00140a2c
LEA RDI,[RBX + 0x50]
LAB_001a405d:
MOV RSI,R14
CALL 0x001393c6
LAB_001a4065:
MOV RAX,qword ptr [RSP + 0x30]
XOR ECX,ECX
MOV qword ptr [RBX + 0x70],RCX
MOVUPS XMM0,xmmword ptr [RAX]
MOV qword ptr [RAX + 0x8],RCX
MOVUPS xmmword ptr [RBX + 0x68],XMM0
MOV qword ptr [RAX],RCX
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* minja::SetTemplateToken::SetTemplateToken(minja::Location const&, minja::SpaceHandling,
minja::SpaceHandling, std::__cxx11::string const&, std::vector<std::__cxx11::string,
std::allocator<std::__cxx11::string > > const&, std::shared_ptr<minja::Expression>&&) */
void __thiscall
minja::SetTemplateToken::SetTemplateToken
(SetTemplateToken *this,int8 *param_1,int4 param_3,int4 param_4,
long *param_5,vector *param_6,int8 *param_7)
{
long lVar1;
int8 uVar2;
*(int ***)this = &PTR__TemplateToken_001fe970;
*(int4 *)(this + 8) = 10;
*(int8 *)(this + 0x10) = *param_1;
lVar1 = param_1[1];
*(long *)(this + 0x18) = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_001fff90 == '\0') {
LOCK();
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
UNLOCK();
}
else {
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
}
}
*(int8 *)(this + 0x20) = param_1[2];
*(int4 *)(this + 0x28) = param_3;
*(int4 *)(this + 0x2c) = param_4;
*(int ***)this = &PTR__SetTemplateToken_001ff288;
*(SetTemplateToken **)(this + 0x30) = this + 0x40;
/* try { // try from 001a4051 to 001a4058 has its CatchHandler @ 001a40a1 */
std::__cxx11::string::_M_construct<char*>(this + 0x30,*param_5,param_5[1] + *param_5);
/* try { // try from 001a405d to 001a4064 has its CatchHandler @ 001a4088 */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x50),
param_6);
*(int8 *)(this + 0x70) = 0;
uVar2 = param_7[1];
param_7[1] = 0;
*(int8 *)(this + 0x68) = *param_7;
*(int8 *)(this + 0x70) = uVar2;
*param_7 = 0;
return;
}
|
|
56,994
|
char const* fmt::v8::detail::parse_width<char, fmt::v8::detail::specs_checker<fmt::v8::detail::specs_handler<char>>&>(char const*, char const*, fmt::v8::detail::specs_checker<fmt::v8::detail::specs_handler<char>>&)
|
aimrt_mujoco_sim/_deps/spdlog_lib-src/include/spdlog/fmt/bundled/core.h
|
FMT_CONSTEXPR auto parse_width(const Char* begin, const Char* end,
Handler&& handler) -> const Char* {
using detail::auto_id;
struct width_adapter {
Handler& handler;
FMT_CONSTEXPR void operator()() { handler.on_dynamic_width(auto_id()); }
FMT_CONSTEXPR void operator()(int id) { handler.on_dynamic_width(id); }
FMT_CONSTEXPR void operator()(basic_string_view<Char> id) {
handler.on_dynamic_width(id);
}
FMT_CONSTEXPR void on_error(const char* message) {
if (message) handler.on_error(message);
}
};
FMT_ASSERT(begin != end, "");
if ('0' <= *begin && *begin <= '9') {
int width = parse_nonnegative_int(begin, end, -1);
if (width != -1)
handler.on_width(width);
else
handler.on_error("number is too big");
} else if (*begin == '{') {
++begin;
if (begin != end) begin = parse_arg_id(begin, end, width_adapter{handler});
if (begin == end || *begin != '}')
return handler.on_error("invalid format string"), begin;
++begin;
}
return begin;
}
|
O3
|
c
|
char const* fmt::v8::detail::parse_width<char, fmt::v8::detail::specs_checker<fmt::v8::detail::specs_handler<char>>&>(char const*, char const*, fmt::v8::detail::specs_checker<fmt::v8::detail::specs_handler<char>>&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, 0x20(%rsp)
movb (%rdi), %al
leal -0x30(%rax), %ecx
cmpb $0x9, %cl
ja 0x30558
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
callq 0x30299
cmpl $-0x1, %eax
je 0x305e2
movq (%r15), %rcx
movl %eax, (%rcx)
movq 0x20(%rsp), %rbx
jmp 0x305d3
movq %rdi, %rbx
cmpb $0x7b, %al
jne 0x305d3
incq %rbx
movq %rbx, 0x20(%rsp)
cmpq %r14, %rbx
je 0x305c6
movq %r15, 0x28(%rsp)
movzbl (%rbx), %eax
cmpl $0x3a, %eax
je 0x3057e
cmpl $0x7d, %eax
jne 0x305ae
leaq 0x30(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x30a04
movaps (%r12), %xmm0
movaps 0x10(%r12), %xmm1
movaps %xmm1, 0x10(%rsp)
movaps %xmm0, (%rsp)
callq 0x308f2
movq (%r15), %rcx
movl %eax, (%rcx)
jmp 0x305c1
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x307c7
movq %rax, %rbx
movq %rbx, 0x20(%rsp)
cmpq %r14, %rbx
je 0x305eb
cmpb $0x7d, (%rbx)
jne 0x305eb
incq %rbx
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x1a734(%rip), %rsi # 0x4ad1d
jmp 0x305f2
leaq 0x1a773(%rip), %rsi # 0x4ad65
leaq 0x30(%rsp), %rdi
callq 0x449b6
|
_ZN3fmt2v86detail11parse_widthIcRNS1_13specs_checkerINS1_13specs_handlerIcEEEEEEPKT_SA_SA_OT0_:
push r15
push r14
push r12
push rbx
sub rsp, 58h
mov r15, rdx
mov r14, rsi
mov [rsp+78h+var_58], rdi
mov al, [rdi]
lea ecx, [rax-30h]
cmp cl, 9
ja short loc_30558
lea rdi, [rsp+78h+var_58]
mov rsi, r14
mov edx, 0FFFFFFFFh
call _ZN3fmt2v86detail21parse_nonnegative_intIcEEiRPKT_S5_i; fmt::v8::detail::parse_nonnegative_int<char>(char const*&,char const*,int)
cmp eax, 0FFFFFFFFh
jz loc_305E2
mov rcx, [r15]
mov [rcx], eax
mov rbx, [rsp+78h+var_58]
jmp short loc_305D3
loc_30558:
mov rbx, rdi
cmp al, 7Bh ; '{'
jnz short loc_305D3
inc rbx
mov [rsp+78h+var_58], rbx
cmp rbx, r14
jz short loc_305C6
mov [rsp+78h+var_50], r15
movzx eax, byte ptr [rbx]
cmp eax, 3Ah ; ':'
jz short loc_3057E
cmp eax, 7Dh ; '}'
jnz short loc_305AE
loc_3057E:
lea r12, [rsp+78h+var_48]
mov rdi, r12
mov rsi, r15
call _ZN3fmt2v86detail13specs_handlerIcE7get_argENS1_7auto_idE; fmt::v8::detail::specs_handler<char>::get_arg(fmt::v8::detail::auto_id)
movaps xmm0, xmmword ptr [r12]
movaps xmm1, xmmword ptr [r12+10h]
movaps [rsp+78h+var_68], xmm1
movaps [rsp+78h+var_78], xmm0
call _ZN3fmt2v86detail16get_dynamic_specINS1_13width_checkerENS0_16basic_format_argINS0_20basic_format_contextINS0_8appenderEcEEEENS1_13error_handlerEEEiT0_T1_; fmt::v8::detail::get_dynamic_spec<fmt::v8::detail::width_checker,fmt::v8::basic_format_arg<fmt::v8::basic_format_context<fmt::v8::appender,char>>,fmt::v8::detail::error_handler>(fmt::v8::basic_format_arg<fmt::v8::basic_format_context<fmt::v8::appender,char>>,fmt::v8::detail::error_handler)
mov rcx, [r15]
mov [rcx], eax
jmp short loc_305C1
loc_305AE:
lea rdx, [rsp+78h+var_50]
mov rdi, rbx
mov rsi, r14
call _ZN3fmt2v86detail15do_parse_arg_idIcRZNS1_11parse_widthIcRNS1_13specs_checkerINS1_13specs_handlerIcEEEEEEPKT_SB_SB_OT0_E13width_adapterEESB_SB_SB_SD_; fmt::v8::detail::do_parse_arg_id<char,fmt::v8::detail::parse_width<char,fmt::v8::detail::specs_checker<fmt::v8::detail::specs_handler<char>> &>(char const*,char const*,fmt::v8::detail::specs_checker<fmt::v8::detail::specs_handler<char>> &)::width_adapter &>(char const*,char const*,fmt::v8::detail::parse_width<char,fmt::v8::detail::specs_checker<fmt::v8::detail::specs_handler<char>> &>(char const*,char const*,fmt::v8::detail::specs_checker<fmt::v8::detail::specs_handler<char>> &)::width_adapter)
mov rbx, rax
loc_305C1:
mov [rsp+78h+var_58], rbx
loc_305C6:
cmp rbx, r14
jz short loc_305EB
cmp byte ptr [rbx], 7Dh ; '}'
jnz short loc_305EB
inc rbx
loc_305D3:
mov rax, rbx
add rsp, 58h
pop rbx
pop r12
pop r14
pop r15
retn
loc_305E2:
lea rsi, aNumberIsTooBig; "number is too big"
jmp short loc_305F2
loc_305EB:
lea rsi, aInvalidFormatS; "invalid format string"
loc_305F2:
lea rdi, [rsp+78h+var_48]; this
call _ZN3fmt2v86detail13error_handler8on_errorEPKc; fmt::v8::detail::error_handler::on_error(char const*)
|
char * fmt::v8::detail::parse_width<char,fmt::v8::detail::specs_checker<fmt::v8::detail::specs_handler<char>> &>(
char *a1,
char *a2,
_DWORD **a3)
{
int v5; // eax
char *v6; // rbx
char *v7; // rbx
int v8; // eax
int v9; // esi
int v10; // edx
int v11; // ecx
int v12; // r8d
int v13; // r9d
const char *v15; // rsi
char *v16; // [rsp+20h] [rbp-58h] BYREF
_DWORD **v17; // [rsp+28h] [rbp-50h] BYREF
char v18[8]; // [rsp+30h] [rbp-48h] BYREF
__int16 v19; // [rsp+38h] [rbp-40h]
int v20; // [rsp+40h] [rbp-38h]
v16 = a1;
if ( (unsigned __int8)(*a1 - 48) > 9u )
{
v6 = a1;
if ( *a1 != 123 )
return v6;
v7 = a1 + 1;
v16 = a1 + 1;
if ( a1 + 1 != a2 )
{
v17 = a3;
v8 = (unsigned __int8)*v7;
if ( v8 == 58 || v8 == 125 )
{
v9 = (int)a3;
fmt::v8::detail::specs_handler<char>::get_arg(v18, a3);
**a3 = fmt::v8::detail::get_dynamic_spec<fmt::v8::detail::width_checker,fmt::v8::basic_format_arg<fmt::v8::basic_format_context<fmt::v8::appender,char>>,fmt::v8::detail::error_handler>(
(unsigned int)v18,
v9,
v10,
v11,
v12,
v13,
v18[0],
v19,
v20);
}
else
{
v7 = (char *)fmt::v8::detail::do_parse_arg_id<char,char const* fmt::v8::detail::parse_width<char,fmt::v8::detail::specs_checker<fmt::v8::detail::specs_handler<char>> &>(char const*,char const*,fmt::v8::detail::specs_checker<fmt::v8::detail::specs_handler<char>> &)::width_adapter &>(
v7,
a2,
&v17);
}
v16 = v7;
}
if ( v7 != a2 && *v7 == 125 )
return v7 + 1;
v15 = "invalid format string";
LABEL_17:
fmt::v8::detail::error_handler::on_error((fmt::v8::detail::error_handler *)v18, v15);
}
v5 = fmt::v8::detail::parse_nonnegative_int<char>(&v16, a2, 0xFFFFFFFF);
if ( v5 == -1 )
{
v15 = "number is too big";
goto LABEL_17;
}
**a3 = v5;
return v16;
}
|
parse_width<char,fmt::v8::detail::specs_checker<fmt::v8::detail::specs_handler<char>>&>:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV R15,RDX
MOV R14,RSI
MOV qword ptr [RSP + 0x20],RDI
MOV AL,byte ptr [RDI]
LEA ECX,[RAX + -0x30]
CMP CL,0x9
JA 0x00130558
LEA RDI,[RSP + 0x20]
MOV RSI,R14
MOV EDX,0xffffffff
CALL 0x00130299
CMP EAX,-0x1
JZ 0x001305e2
MOV RCX,qword ptr [R15]
MOV dword ptr [RCX],EAX
MOV RBX,qword ptr [RSP + 0x20]
JMP 0x001305d3
LAB_00130558:
MOV RBX,RDI
CMP AL,0x7b
JNZ 0x001305d3
INC RBX
MOV qword ptr [RSP + 0x20],RBX
CMP RBX,R14
JZ 0x001305c6
MOV qword ptr [RSP + 0x28],R15
MOVZX EAX,byte ptr [RBX]
CMP EAX,0x3a
JZ 0x0013057e
CMP EAX,0x7d
JNZ 0x001305ae
LAB_0013057e:
LEA R12,[RSP + 0x30]
MOV RDI,R12
MOV RSI,R15
CALL 0x00130a04
MOVAPS XMM0,xmmword ptr [R12]
MOVAPS XMM1,xmmword ptr [R12 + 0x10]
MOVAPS xmmword ptr [RSP + 0x10],XMM1
MOVAPS xmmword ptr [RSP],XMM0
CALL 0x001308f2
MOV RCX,qword ptr [R15]
MOV dword ptr [RCX],EAX
JMP 0x001305c1
LAB_001305ae:
LEA RDX,[RSP + 0x28]
MOV RDI,RBX
MOV RSI,R14
CALL 0x001307c7
MOV RBX,RAX
LAB_001305c1:
MOV qword ptr [RSP + 0x20],RBX
LAB_001305c6:
CMP RBX,R14
JZ 0x001305eb
CMP byte ptr [RBX],0x7d
JNZ 0x001305eb
INC RBX
LAB_001305d3:
MOV RAX,RBX
ADD RSP,0x58
POP RBX
POP R12
POP R14
POP R15
RET
LAB_001305e2:
LEA RSI,[0x14ad1d]
JMP 0x001305f2
LAB_001305eb:
LEA RSI,[0x14ad65]
LAB_001305f2:
LEA RDI,[RSP + 0x30]
CALL 0x001449b6
|
/* char const* fmt::v8::detail::parse_width<char,
fmt::v8::detail::specs_checker<fmt::v8::detail::specs_handler<char> >&>(char const*, char const*,
fmt::v8::detail::specs_checker<fmt::v8::detail::specs_handler<char> >&) */
char * fmt::v8::detail::
parse_width<char,fmt::v8::detail::specs_checker<fmt::v8::detail::specs_handler<char>>&>
(char *param_1,char *param_2,specs_checker *param_3)
{
int iVar1;
char *pcVar2;
char *pcVar3;
char *local_58;
specs_checker *local_50;
specs_handler<char> local_48 [40];
local_58 = param_1;
if ((byte)(*param_1 - 0x30U) < 10) {
iVar1 = parse_nonnegative_int<char>(&local_58,param_2,-1);
if (iVar1 == -1) {
pcVar3 = "number is too big";
LAB_001305f2:
/* WARNING: Subroutine does not return */
error_handler::on_error((error_handler *)local_48,pcVar3);
}
**(int **)param_3 = iVar1;
}
else if (*param_1 == '{') {
pcVar2 = param_1 + 1;
if (pcVar2 != param_2) {
local_58 = pcVar2;
local_50 = param_3;
if ((*pcVar2 == ':') || (*pcVar2 == '}')) {
specs_handler<char>::get_arg(local_48,param_3);
iVar1 = get_dynamic_spec<fmt::v8::detail::width_checker,fmt::v8::basic_format_arg<fmt::v8::basic_format_context<fmt::v8::appender,char>>,fmt::v8::detail::error_handler>
();
**(int **)param_3 = iVar1;
}
else {
pcVar2 = do_parse_arg_id<char,fmt::v8::detail::parse_width<char,fmt::v8::detail::specs_checker<fmt::v8::detail::specs_handler<char>>&>(char_const*,char_const*,fmt::v8::detail::specs_checker<fmt::v8::detail::specs_handler<char>>&)::width_adapter&>
(pcVar2,param_2,(specs_checker *)&local_50);
}
}
if ((pcVar2 == param_2) || (*pcVar2 != '}')) {
pcVar3 = "invalid format string";
local_58 = pcVar2;
goto LAB_001305f2;
}
local_58 = pcVar2 + 1;
}
return local_58;
}
|
|
56,995
|
my_fstat
|
eloqsql/mysys/my_lib.c
|
int my_fstat(File Filedes, MY_STAT *stat_area,
myf MyFlags __attribute__((unused)))
{
DBUG_ENTER("my_fstat");
DBUG_PRINT("my",("fd: %d MyFlags: %lu", Filedes, MyFlags));
#ifdef _WIN32
DBUG_RETURN(my_win_fstat(Filedes, stat_area));
#elif defined HAVE_valgrind
{
int s= fstat(Filedes, stat_area);
if (!s)
MSAN_STAT_WORKAROUND(stat_area);
DBUG_RETURN(s);
}
#else
DBUG_RETURN(fstat(Filedes, (struct stat *) stat_area));
#endif
}
|
O0
|
c
|
my_fstat:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
jmp 0x38eb5
jmp 0x38eb7
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0x255f0
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nop
|
my_fstat:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
jmp short $+2
loc_38EB5:
jmp short $+2
loc_38EB7:
mov edi, [rbp+var_4]
mov rsi, [rbp+var_10]
call _fstat64
mov [rbp+var_1C], eax
mov eax, [rbp+var_1C]
add rsp, 20h
pop rbp
retn
|
long long my_fstat(unsigned int a1, long long a2)
{
return (unsigned int)fstat64(a1, a2);
}
|
my_fstat:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
JMP 0x00138eb5
LAB_00138eb5:
JMP 0x00138eb7
LAB_00138eb7:
MOV EDI,dword ptr [RBP + -0x4]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x001255f0
MOV dword ptr [RBP + -0x1c],EAX
MOV EAX,dword ptr [RBP + -0x1c]
ADD RSP,0x20
POP RBP
RET
|
int my_fstat(int param_1,stat64 *param_2)
{
int iVar1;
iVar1 = fstat64(param_1,param_2);
return iVar1;
}
|
|
56,996
|
plutovg_surface_create_for_data
|
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-surface.c
|
plutovg_surface_t* plutovg_surface_create_for_data(unsigned char* data, int width, int height, int stride)
{
plutovg_surface_t* surface = malloc(sizeof(plutovg_surface_t));
surface->ref_count = 1;
surface->width = width;
surface->height = height;
surface->stride = stride;
surface->data = data;
return surface;
}
|
O0
|
c
|
plutovg_surface_create_for_data:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movl $0x18, %edi
callq 0xb4d0
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movl $0x1, (%rax)
movl -0xc(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x4(%rax)
movl -0x10(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x8(%rax)
movl -0x14(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0xc(%rax)
movq -0x8(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x20(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
plutovg_surface_create_for_data:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_10], edx
mov [rbp+var_14], ecx
mov edi, 18h
call _malloc
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
mov dword ptr [rax], 1
mov ecx, [rbp+var_C]
mov rax, [rbp+var_20]
mov [rax+4], ecx
mov ecx, [rbp+var_10]
mov rax, [rbp+var_20]
mov [rax+8], ecx
mov ecx, [rbp+var_14]
mov rax, [rbp+var_20]
mov [rax+0Ch], ecx
mov rcx, [rbp+var_8]
mov rax, [rbp+var_20]
mov [rax+10h], rcx
mov rax, [rbp+var_20]
add rsp, 20h
pop rbp
retn
|
long long plutovg_surface_create_for_data(long long a1, int a2, int a3, int a4)
{
long long result; // rax
result = malloc(24LL);
*(_DWORD *)result = 1;
*(_DWORD *)(result + 4) = a2;
*(_DWORD *)(result + 8) = a3;
*(_DWORD *)(result + 12) = a4;
*(_QWORD *)(result + 16) = a1;
return result;
}
|
plutovg_surface_create_for_data:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV dword ptr [RBP + -0x10],EDX
MOV dword ptr [RBP + -0x14],ECX
MOV EDI,0x18
CALL 0x0010b4d0
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX],0x1
MOV ECX,dword ptr [RBP + -0xc]
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x4],ECX
MOV ECX,dword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x8],ECX
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0xc],ECX
MOV RCX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x20]
ADD RSP,0x20
POP RBP
RET
|
int4 *
plutovg_surface_create_for_data
(int8 param_1,int4 param_2,int4 param_3,int4 param_4)
{
int4 *puVar1;
puVar1 = (int4 *)malloc(0x18);
*puVar1 = 1;
puVar1[1] = param_2;
puVar1[2] = param_3;
puVar1[3] = param_4;
*(int8 *)(puVar1 + 4) = param_1;
return puVar1;
}
|
|
56,997
|
psi_mutex_trylock
|
eloqsql/mysys/my_thr_init.c
|
ATTRIBUTE_COLD int psi_mutex_trylock(mysql_mutex_t *that,
const char *file, uint line)
{
PSI_mutex_locker_state state;
PSI_mutex_locker *locker= PSI_MUTEX_CALL(start_mutex_wait)
(&state, that->m_psi, PSI_MUTEX_TRYLOCK, file, line);
# ifdef SAFE_MUTEX
int result= safe_mutex_lock(&that->m_mutex, TRUE, file, line);
# else
int result= pthread_mutex_trylock(&that->m_mutex);
# endif
if (locker)
PSI_MUTEX_CALL(end_mutex_wait)(locker, result);
return result;
}
|
O0
|
c
|
psi_mutex_trylock:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
leaq 0x1ac65e(%rip), %rax # 0x1d57e8
movq (%rax), %rax
movq 0x190(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x40(%rcx), %rsi
movq -0x10(%rbp), %rcx
movl -0x14(%rbp), %r8d
leaq -0x48(%rbp), %rdi
movl $0x1, %edx
callq *%rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rdi
callq 0x24090
movl %eax, -0x54(%rbp)
cmpq $0x0, -0x50(%rbp)
je 0x291e0
leaq 0x1ac61b(%rip), %rax # 0x1d57e8
movq (%rax), %rax
movq 0x198(%rax), %rax
movq -0x50(%rbp), %rdi
movl -0x54(%rbp), %esi
callq *%rax
movl -0x54(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)
|
psi_mutex_trylock:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+190h]
mov rcx, [rbp+var_8]
mov rsi, [rcx+40h]
mov rcx, [rbp+var_10]
mov r8d, [rbp+var_14]
lea rdi, [rbp+var_48]
mov edx, 1
call rax
mov [rbp+var_50], rax
mov rdi, [rbp+var_8]
call _pthread_mutex_trylock
mov [rbp+var_54], eax
cmp [rbp+var_50], 0
jz short loc_291E0
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+198h]
mov rdi, [rbp+var_50]
mov esi, [rbp+var_54]
call rax
loc_291E0:
mov eax, [rbp+var_54]
add rsp, 60h
pop rbp
retn
|
long long psi_mutex_trylock(long long a1, long long a2, unsigned int a3)
{
unsigned int v4; // [rsp+Ch] [rbp-54h]
long long v5; // [rsp+10h] [rbp-50h]
_BYTE v6[52]; // [rsp+18h] [rbp-48h] BYREF
unsigned int v7; // [rsp+4Ch] [rbp-14h]
long long v8; // [rsp+50h] [rbp-10h]
long long v9; // [rsp+58h] [rbp-8h]
v9 = a1;
v8 = a2;
v7 = a3;
v5 = (*((long long ( **)(_BYTE *, _QWORD, long long, long long, _QWORD))PSI_server + 50))(
v6,
*(_QWORD *)(a1 + 64),
1LL,
a2,
a3);
v4 = pthread_mutex_trylock(v9);
if ( v5 )
(*((void ( **)(long long, _QWORD))PSI_server + 51))(v5, v4);
return v4;
}
|
psi_mutex_trylock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
LEA RAX,[0x2d57e8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x190]
MOV RCX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RCX + 0x40]
MOV RCX,qword ptr [RBP + -0x10]
MOV R8D,dword ptr [RBP + -0x14]
LEA RDI,[RBP + -0x48]
MOV EDX,0x1
CALL RAX
MOV qword ptr [RBP + -0x50],RAX
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00124090
MOV dword ptr [RBP + -0x54],EAX
CMP qword ptr [RBP + -0x50],0x0
JZ 0x001291e0
LEA RAX,[0x2d57e8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x198]
MOV RDI,qword ptr [RBP + -0x50]
MOV ESI,dword ptr [RBP + -0x54]
CALL RAX
LAB_001291e0:
MOV EAX,dword ptr [RBP + -0x54]
ADD RSP,0x60
POP RBP
RET
|
int psi_mutex_trylock(pthread_mutex_t *param_1,int8 param_2,int4 param_3)
{
int iVar1;
long lVar2;
int1 local_50 [52];
int4 local_1c;
int8 local_18;
pthread_mutex_t *local_10;
local_1c = param_3;
local_18 = param_2;
local_10 = param_1;
lVar2 = (**(code **)(PSI_server + 400))
(local_50,*(int8 *)((long)param_1 + 0x40),1,param_2,param_3);
iVar1 = pthread_mutex_trylock(local_10);
if (lVar2 != 0) {
(**(code **)(PSI_server + 0x198))(lVar2,iVar1);
}
return iVar1;
}
|
|
56,998
|
ImPlotInputMap::ImPlotInputMap()
|
zkingston[P]unknot/build_O1/_deps/implot-src/implot.cpp
|
void MapInputDefault(ImPlotInputMap* dst) {
ImPlotInputMap& map = dst ? *dst : GetInputMap();
map.Pan = ImGuiMouseButton_Left;
map.PanMod = ImGuiMod_None;
map.Fit = ImGuiMouseButton_Left;
map.Menu = ImGuiMouseButton_Right;
map.Select = ImGuiMouseButton_Right;
map.SelectMod = ImGuiMod_None;
map.SelectCancel = ImGuiMouseButton_Left;
map.SelectHorzMod = ImGuiMod_Alt;
map.SelectVertMod = ImGuiMod_Shift;
map.OverrideMod = ImGuiMod_Ctrl;
map.ZoomMod = ImGuiMod_None;
map.ZoomRate = 0.1f;
}
|
O1
|
cpp
|
ImPlotInputMap::ImPlotInputMap():
movaps 0x1ec495(%rip), %xmm0 # 0x299860
movups %xmm0, 0x20(%rdi)
movaps 0x1ec49a(%rip), %xmm0 # 0x299870
movups %xmm0, (%rdi)
movaps 0x1ec4a0(%rip), %xmm0 # 0x299880
movups %xmm0, 0x10(%rdi)
retq
|
_ZN14ImPlotInputMapC2Ev:
movaps xmm0, cs:xmmword_299860
movups xmmword ptr [rdi+20h], xmm0
movaps xmm0, cs:xmmword_299870
movups xmmword ptr [rdi], xmm0
movaps xmm0, cs:xmmword_299880
movups xmmword ptr [rdi+10h], xmm0
retn
|
void ImPlotInputMap::ImPlotInputMap(ImPlotInputMap *this)
{
*((_OWORD *)this + 2) = xmmword_299860;
*(_OWORD *)this = xmmword_299870;
*((_OWORD *)this + 1) = xmmword_299880;
}
|
ImPlotInputMap:
MOVAPS XMM0,xmmword ptr [0x00399860]
MOVUPS xmmword ptr [RDI + 0x20],XMM0
MOVAPS XMM0,xmmword ptr [0x00399870]
MOVUPS xmmword ptr [RDI],XMM0
MOVAPS XMM0,xmmword ptr [0x00399880]
MOVUPS xmmword ptr [RDI + 0x10],XMM0
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* ImPlotInputMap::ImPlotInputMap() */
void __thiscall ImPlotInputMap::ImPlotInputMap(ImPlotInputMap *this)
{
int8 uVar1;
uVar1 = _UNK_00399868;
*(int8 *)(this + 0x20) = _DAT_00399860;
*(int8 *)(this + 0x28) = uVar1;
uVar1 = _UNK_00399878;
*(int8 *)this = _DAT_00399870;
*(int8 *)(this + 8) = uVar1;
uVar1 = _UNK_00399888;
*(int8 *)(this + 0x10) = _DAT_00399880;
*(int8 *)(this + 0x18) = uVar1;
return;
}
|
|
56,999
|
my_charpos_utf16
|
eloqsql/strings/ctype-ucs2.c
|
static size_t
my_charpos_utf16(CHARSET_INFO *cs,
const char *b, const char *e, size_t pos)
{
const char *b0= b;
uint charlen;
for ( ; pos; b+= charlen, pos--)
{
if (!(charlen= my_ismbchar(cs, b, e)))
return (e + 2 - b0); /* Error, return pos outside the string */
}
return (size_t) (pos ? (e + 2 - b0) : (b - b0));
}
|
O0
|
c
|
my_charpos_utf16:
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 -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x6ac85
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x6e320
movl %eax, -0x34(%rbp)
cmpl $0x0, %eax
jne 0x6ac65
movq -0x20(%rbp), %rax
addq $0x2, %rax
movq -0x30(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x8(%rbp)
jmp 0x6acb8
jmp 0x6ac67
movl -0x34(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movq -0x28(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x6ac30
cmpq $0x0, -0x28(%rbp)
je 0x6aca1
movq -0x20(%rbp), %rax
addq $0x2, %rax
movq -0x30(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x40(%rbp)
jmp 0x6acb0
movq -0x18(%rbp), %rax
movq -0x30(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_charpos_utf16:
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 rax, [rbp+var_18]
mov [rbp+var_30], rax
loc_6AC30:
cmp [rbp+var_28], 0
jz short loc_6AC85
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
call my_ismbchar_1
mov [rbp+var_34], eax
cmp eax, 0
jnz short loc_6AC65
mov rax, [rbp+var_20]
add rax, 2
mov rcx, [rbp+var_30]
sub rax, rcx
mov [rbp+var_8], rax
jmp short loc_6ACB8
loc_6AC65:
jmp short $+2
loc_6AC67:
mov ecx, [rbp+var_34]
mov rax, [rbp+var_18]
mov ecx, ecx
add rax, rcx
mov [rbp+var_18], rax
mov rax, [rbp+var_28]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_28], rax
jmp short loc_6AC30
loc_6AC85:
cmp [rbp+var_28], 0
jz short loc_6ACA1
mov rax, [rbp+var_20]
add rax, 2
mov rcx, [rbp+var_30]
sub rax, rcx
mov [rbp+var_40], rax
jmp short loc_6ACB0
loc_6ACA1:
mov rax, [rbp+var_18]
mov rcx, [rbp+var_30]
sub rax, rcx
mov [rbp+var_40], rax
loc_6ACB0:
mov rax, [rbp+var_40]
mov [rbp+var_8], rax
loc_6ACB8:
mov rax, [rbp+var_8]
add rsp, 40h
pop rbp
retn
|
long long my_charpos_utf16(long long a1, long long a2, long long a3, long long a4)
{
unsigned int v5; // [rsp+Ch] [rbp-34h]
long long v8; // [rsp+28h] [rbp-18h]
v8 = a2;
while ( a4 )
{
v5 = my_ismbchar_1(a1, v8, a3);
if ( !v5 )
return a3 + 2 - a2;
v8 += v5;
--a4;
}
return v8 - a2;
}
|
my_charpos_utf16:
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 RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
LAB_0016ac30:
CMP qword ptr [RBP + -0x28],0x0
JZ 0x0016ac85
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x0016e320
MOV dword ptr [RBP + -0x34],EAX
CMP EAX,0x0
JNZ 0x0016ac65
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x2
MOV RCX,qword ptr [RBP + -0x30]
SUB RAX,RCX
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0016acb8
LAB_0016ac65:
JMP 0x0016ac67
LAB_0016ac67:
MOV ECX,dword ptr [RBP + -0x34]
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0016ac30
LAB_0016ac85:
CMP qword ptr [RBP + -0x28],0x0
JZ 0x0016aca1
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x2
MOV RCX,qword ptr [RBP + -0x30]
SUB RAX,RCX
MOV qword ptr [RBP + -0x40],RAX
JMP 0x0016acb0
LAB_0016aca1:
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x30]
SUB RAX,RCX
MOV qword ptr [RBP + -0x40],RAX
LAB_0016acb0:
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x8],RAX
LAB_0016acb8:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x40
POP RBP
RET
|
/* WARNING: Removing unreachable block (ram,0x0016ac8c) */
long my_charpos_utf16(int8 param_1,long param_2,long param_3,long param_4)
{
uint uVar1;
long local_30;
long local_20;
local_30 = param_4;
local_20 = param_2;
while( true ) {
if (local_30 == 0) {
return local_20 - param_2;
}
uVar1 = my_ismbchar(param_1,local_20,param_3);
if (uVar1 == 0) break;
local_20 = local_20 + (ulong)uVar1;
local_30 = local_30 + -1;
}
return (param_3 + 2) - param_2;
}
|
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.