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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
30,300 | pfs_end_table_lock_wait_v1 | eloqsql/storage/perfschema/pfs.cc | void pfs_end_table_lock_wait_v1(PSI_table_locker* locker)
{
PSI_table_locker_state *state= reinterpret_cast<PSI_table_locker_state*> (locker);
assert(state != NULL);
ulonglong timer_end= 0;
ulonglong wait_time= 0;
PFS_table *table= reinterpret_cast<PFS_table *> (state->m_table);
assert(table != NULL);
PFS_single_stat *stat= & table->m_table_stat.m_lock_stat.m_stat[state->m_index];
uint flags= state->m_flags;
if (flags & STATE_FLAG_TIMED)
{
timer_end= state->m_timer();
wait_time= timer_end - state->m_timer_start;
stat->aggregate_value(wait_time);
}
else
{
stat->aggregate_counted();
}
if (flags & STATE_FLAG_THREAD)
{
PFS_thread *thread= reinterpret_cast<PFS_thread *> (state->m_thread);
assert(thread != NULL);
PFS_single_stat *event_name_array;
event_name_array= thread->write_instr_class_waits_stats();
/*
Aggregate to EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME
(for wait/lock/table/sql/handler)
*/
if (flags & STATE_FLAG_TIMED)
{
event_name_array[GLOBAL_TABLE_LOCK_EVENT_INDEX].aggregate_value(wait_time);
}
else
{
event_name_array[GLOBAL_TABLE_LOCK_EVENT_INDEX].aggregate_counted();
}
if (flags & STATE_FLAG_EVENT)
{
PFS_events_waits *wait= reinterpret_cast<PFS_events_waits*> (state->m_wait);
assert(wait != NULL);
wait->m_timer_end= timer_end;
wait->m_end_event_id= thread->m_event_id;
if (thread->m_flag_events_waits_history)
insert_events_waits_history(thread, wait);
if (thread->m_flag_events_waits_history_long)
insert_events_waits_history_long(wait);
thread->m_events_waits_current--;
assert(wait == thread->m_events_waits_current);
}
}
table->m_has_lock_stats= true;
} | O0 | cpp | pfs_end_table_lock_wait_v1:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq $0x0, -0x18(%rbp)
movq $0x0, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
addq $0x30, %rax
addq $0x2288, %rax # imm = 0x2288
movq -0x10(%rbp), %rcx
movl 0x38(%rcx), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x4cafe
movq -0x10(%rbp), %rax
callq *0x28(%rax)
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
subq 0x20(%rcx), %rax
movq %rax, -0x20(%rbp)
movq -0x30(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x51b50
jmp 0x4cb07
movq -0x30(%rbp), %rdi
callq 0x51a90
movl -0x34(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x4cbdb
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
callq 0x409d0
movq %rax, -0x48(%rbp)
movl -0x34(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x4cb4d
movq -0x48(%rbp), %rdi
addq $0x20, %rdi
movq -0x20(%rbp), %rsi
callq 0x51b50
jmp 0x4cb5a
movq -0x48(%rbp), %rdi
addq $0x20, %rdi
callq 0x51a90
movl -0x34(%rbp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x4cbd9
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x18(%rbp), %rcx
movq -0x50(%rbp), %rax
movq %rcx, 0x40(%rax)
movq -0x40(%rbp), %rax
movq 0x7f8(%rax), %rcx
movq -0x50(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x40(%rbp), %rax
testb $0x1, 0x7e2(%rax)
je 0x4cbaa
movq -0x40(%rbp), %rdi
movq -0x50(%rbp), %rsi
callq 0x581a0
movq -0x40(%rbp), %rax
testb $0x1, 0x7e3(%rax)
je 0x4cbc0
movq -0x50(%rbp), %rdi
callq 0x58270
movq -0x40(%rbp), %rax
movq 0x7f0(%rax), %rcx
addq $-0xb0, %rcx
movq %rcx, 0x7f0(%rax)
jmp 0x4cbdb
movq -0x28(%rbp), %rax
movb $0x1, 0x5(%rax)
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)
| pfs_end_table_lock_wait_v1:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov [rbp+var_10], rax
mov [rbp+var_18], 0
mov [rbp+var_20], 0
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
add rax, 30h ; '0'
add rax, 2288h
mov rcx, [rbp+var_10]
mov ecx, [rcx+38h]
shl rcx, 5
add rax, rcx
mov [rbp+var_30], rax
mov rax, [rbp+var_10]
mov eax, [rax]
mov [rbp+var_34], eax
mov eax, [rbp+var_34]
and eax, 1
cmp eax, 0
jz short loc_4CAFE
mov rax, [rbp+var_10]
call qword ptr [rax+28h]
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
mov rcx, [rbp+var_10]
sub rax, [rcx+20h]
mov [rbp+var_20], rax
mov rdi, [rbp+var_30]; this
mov rsi, [rbp+var_20]; unsigned __int64
call _ZN15PFS_single_stat15aggregate_valueEy; PFS_single_stat::aggregate_value(ulong long)
jmp short loc_4CB07
loc_4CAFE:
mov rdi, [rbp+var_30]; this
call _ZN15PFS_single_stat17aggregate_countedEv; PFS_single_stat::aggregate_counted(void)
loc_4CB07:
mov eax, [rbp+var_34]
and eax, 2
cmp eax, 0
jz loc_4CBDB
mov rax, [rbp+var_10]
mov rax, [rax+18h]
mov [rbp+var_40], rax
mov rdi, [rbp+var_40]; this
call _ZN20PFS_connection_slice29write_instr_class_waits_statsEv; PFS_connection_slice::write_instr_class_waits_stats(void)
mov [rbp+var_48], rax
mov eax, [rbp+var_34]
and eax, 1
cmp eax, 0
jz short loc_4CB4D
mov rdi, [rbp+var_48]
add rdi, 20h ; ' '; this
mov rsi, [rbp+var_20]; unsigned __int64
call _ZN15PFS_single_stat15aggregate_valueEy; PFS_single_stat::aggregate_value(ulong long)
jmp short loc_4CB5A
loc_4CB4D:
mov rdi, [rbp+var_48]
add rdi, 20h ; ' '; this
call _ZN15PFS_single_stat17aggregate_countedEv; PFS_single_stat::aggregate_counted(void)
loc_4CB5A:
mov eax, [rbp+var_34]
and eax, 4
cmp eax, 0
jz short loc_4CBD9
mov rax, [rbp+var_10]
mov rax, [rax+30h]
mov [rbp+var_50], rax
mov rcx, [rbp+var_18]
mov rax, [rbp+var_50]
mov [rax+40h], rcx
mov rax, [rbp+var_40]
mov rcx, [rax+7F8h]
mov rax, [rbp+var_50]
mov [rax+10h], rcx
mov rax, [rbp+var_40]
test byte ptr [rax+7E2h], 1
jz short loc_4CBAA
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_50]
call _Z27insert_events_waits_historyP10PFS_threadP16PFS_events_waits; insert_events_waits_history(PFS_thread *,PFS_events_waits *)
loc_4CBAA:
mov rax, [rbp+var_40]
test byte ptr [rax+7E3h], 1
jz short loc_4CBC0
mov rdi, [rbp+var_50]
call _Z32insert_events_waits_history_longP16PFS_events_waits; insert_events_waits_history_long(PFS_events_waits *)
loc_4CBC0:
mov rax, [rbp+var_40]
mov rcx, [rax+7F0h]
add rcx, 0FFFFFFFFFFFFFF50h
mov [rax+7F0h], rcx
loc_4CBD9:
jmp short $+2
loc_4CBDB:
mov rax, [rbp+var_28]
mov byte ptr [rax+5], 1
add rsp, 50h
pop rbp
retn
| long long pfs_end_table_lock_wait_v1(int *a1)
{
long long result; // rax
long long v2; // [rsp+0h] [rbp-50h]
long long v3; // [rsp+8h] [rbp-48h]
PFS_connection_slice *v4; // [rsp+10h] [rbp-40h]
int v5; // [rsp+1Ch] [rbp-34h]
PFS_single_stat *v6; // [rsp+20h] [rbp-30h]
long long v7; // [rsp+28h] [rbp-28h]
unsigned long long v8; // [rsp+30h] [rbp-20h]
long long v9; // [rsp+38h] [rbp-18h]
v9 = 0LL;
v8 = 0LL;
v7 = *((_QWORD *)a1 + 1);
v6 = (PFS_single_stat *)(32LL * (unsigned int)a1[14] + v7 + 8888);
v5 = *a1;
if ( (*a1 & 1) != 0 )
{
v9 = (*((long long (**)(void))a1 + 5))();
v8 = v9 - *((_QWORD *)a1 + 4);
PFS_single_stat::aggregate_value(v6, v8);
}
else
{
PFS_single_stat::aggregate_counted(v6);
}
if ( (v5 & 2) != 0 )
{
v4 = (PFS_connection_slice *)*((_QWORD *)a1 + 3);
v3 = PFS_connection_slice::write_instr_class_waits_stats(v4);
if ( (v5 & 1) != 0 )
PFS_single_stat::aggregate_value((PFS_single_stat *)(v3 + 32), v8);
else
PFS_single_stat::aggregate_counted((PFS_single_stat *)(v3 + 32));
if ( (v5 & 4) != 0 )
{
v2 = *((_QWORD *)a1 + 6);
*(_QWORD *)(v2 + 64) = v9;
*(_QWORD *)(v2 + 16) = *((_QWORD *)v4 + 255);
if ( (*((_BYTE *)v4 + 2018) & 1) != 0 )
insert_events_waits_history(v4, v2);
if ( (*((_BYTE *)v4 + 2019) & 1) != 0 )
insert_events_waits_history_long(v2);
*((_QWORD *)v4 + 254) -= 176LL;
}
}
result = v7;
*(_BYTE *)(v7 + 5) = 1;
return result;
}
| pfs_end_table_lock_wait_v1:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RAX
MOV qword ptr [RBP + -0x18],0x0
MOV qword ptr [RBP + -0x20],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x30
ADD RAX,0x2288
MOV RCX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RCX + 0x38]
SHL RCX,0x5
ADD RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x34],EAX
MOV EAX,dword ptr [RBP + -0x34]
AND EAX,0x1
CMP EAX,0x0
JZ 0x0014cafe
MOV RAX,qword ptr [RBP + -0x10]
CALL qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x10]
SUB RAX,qword ptr [RCX + 0x20]
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x00151b50
JMP 0x0014cb07
LAB_0014cafe:
MOV RDI,qword ptr [RBP + -0x30]
CALL 0x00151a90
LAB_0014cb07:
MOV EAX,dword ptr [RBP + -0x34]
AND EAX,0x2
CMP EAX,0x0
JZ 0x0014cbdb
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x40],RAX
MOV RDI,qword ptr [RBP + -0x40]
CALL 0x001409d0
MOV qword ptr [RBP + -0x48],RAX
MOV EAX,dword ptr [RBP + -0x34]
AND EAX,0x1
CMP EAX,0x0
JZ 0x0014cb4d
MOV RDI,qword ptr [RBP + -0x48]
ADD RDI,0x20
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x00151b50
JMP 0x0014cb5a
LAB_0014cb4d:
MOV RDI,qword ptr [RBP + -0x48]
ADD RDI,0x20
CALL 0x00151a90
LAB_0014cb5a:
MOV EAX,dword ptr [RBP + -0x34]
AND EAX,0x4
CMP EAX,0x0
JZ 0x0014cbd9
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x30]
MOV qword ptr [RBP + -0x50],RAX
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RAX + 0x40],RCX
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RAX + 0x7f8]
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x40]
TEST byte ptr [RAX + 0x7e2],0x1
JZ 0x0014cbaa
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x50]
CALL 0x001581a0
LAB_0014cbaa:
MOV RAX,qword ptr [RBP + -0x40]
TEST byte ptr [RAX + 0x7e3],0x1
JZ 0x0014cbc0
MOV RDI,qword ptr [RBP + -0x50]
CALL 0x00158270
LAB_0014cbc0:
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RAX + 0x7f0]
ADD RCX,-0xb0
MOV qword ptr [RAX + 0x7f0],RCX
LAB_0014cbd9:
JMP 0x0014cbdb
LAB_0014cbdb:
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX + 0x5],0x1
ADD RSP,0x50
POP RBP
RET
|
void pfs_end_table_lock_wait_v1(uint *param_1)
{
uint uVar1;
long lVar2;
PFS_connection_slice *this;
PFS_events_waits *pPVar3;
PFS_single_stat *this_00;
long lVar4;
ulonglong local_28;
long local_20;
local_20 = 0;
local_28 = 0;
lVar2 = *(long *)(param_1 + 2);
this_00 = (PFS_single_stat *)(lVar2 + 0x22b8 + (ulong)param_1[0xe] * 0x20);
uVar1 = *param_1;
if ((uVar1 & 1) == 0) {
PFS_single_stat::aggregate_counted(this_00);
}
else {
local_20 = (**(code **)(param_1 + 10))();
local_28 = local_20 - *(long *)(param_1 + 8);
PFS_single_stat::aggregate_value(this_00,local_28);
}
if ((uVar1 & 2) != 0) {
this = *(PFS_connection_slice **)(param_1 + 6);
lVar4 = PFS_connection_slice::write_instr_class_waits_stats(this);
if ((uVar1 & 1) == 0) {
PFS_single_stat::aggregate_counted((PFS_single_stat *)(lVar4 + 0x20));
}
else {
PFS_single_stat::aggregate_value((PFS_single_stat *)(lVar4 + 0x20),local_28);
}
if ((uVar1 & 4) != 0) {
pPVar3 = *(PFS_events_waits **)(param_1 + 0xc);
*(long *)(pPVar3 + 0x40) = local_20;
*(int8 *)(pPVar3 + 0x10) = *(int8 *)(this + 0x7f8);
if (((byte)this[0x7e2] & 1) != 0) {
insert_events_waits_history((PFS_thread *)this,pPVar3);
}
if (((byte)this[0x7e3] & 1) != 0) {
insert_events_waits_history_long(pPVar3);
}
*(long *)(this + 0x7f0) = *(long *)(this + 0x7f0) + -0xb0;
}
}
*(int1 *)(lVar2 + 5) = 1;
return;
}
| |
30,301 | common_chat_params_init_command_r7b(minja::chat_template const&, common_chat_inputs const&) | monkey531[P]llama/common/chat.cpp | static common_chat_params common_chat_params_init_command_r7b(const common_chat_template & tmpl, const struct common_chat_inputs & inputs) {
common_chat_params data;
data.grammar_lazy = inputs.tool_choice != "required";
data.grammar = build_grammar([&](const common_grammar_builder & builder) {
auto schemas = json::array();
foreach_function(inputs.tools, [&](const json & tool) {
const auto & function = tool["function"];
schemas.push_back({
{"type", "object"},
{"properties", {
{"tool_call_id", {
{"type", "string"},
// Command-R's template expects an integer string.
{"pattern", "^[0-9]{1,10}$"},
}},
{"tool_name", {
{"type", "string"},
{"const", function["name"]},
}},
{"parameters", function["parameters"]},
}},
{"required", json::array({"tool_call_id", "tool_name", "parameters"})},
});
});
auto schema = json {
{"type", "array"},
{"items", schemas.size() == 1 ? schemas[0] : json {{"anyOf", schemas}}},
{"minItems", 1},
};
if (!inputs.parallel_tool_calls) {
schema["maxItems"] = 1;
}
builder.add_rule("root", "\"<|START_ACTION|>\" " + builder.add_schema("tool_calls", schema) + " \"<|END_ACTION|>\"");
}, grammar_options);
data.grammar_triggers.push_back({"<|START_ACTION|>", /* .at_start = */ false});
data.preserved_tokens = {
"<|START_RESPONSE|>",
"<|END_RESPONSE|>",
"<|START_THINKING|>",
"<|END_THINKING|>",
"<|END_ACTION|>",
};
data.prompt = tmpl.apply(inputs.messages, inputs.tools.empty() ? json() : inputs.tools, inputs.add_generation_prompt);
data.format = COMMON_CHAT_FORMAT_COMMAND_R7B;
return data;
} | O3 | cpp | common_chat_params_init_command_r7b(minja::chat_template const&, common_chat_inputs const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rdx, %r14
movq %rsi, %rbp
movq %rdi, %rbx
movl $0x0, (%rdi)
xorl %r15d, %r15d
movb %r15b, 0x8(%rdi)
movq %r15, 0x10(%rdi)
leaq 0x28(%rdi), %rax
movq %rax, 0x18(%rdi)
movq %r15, 0x20(%rdi)
movb %r15b, 0x28(%rdi)
movb %r15b, 0x38(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rdi)
movups %xmm0, 0x50(%rdi)
movups %xmm0, 0x60(%rdi)
movups %xmm0, 0x70(%rdi)
movq %r15, 0x80(%rdi)
leaq 0x20(%rdx), %rdi
leaq 0x1e69f(%rip), %rsi # 0xefed5
callq 0xa5275
movb %al, 0x38(%rbx)
leaq 0x8(%rsp), %rsi
movq %r15, 0x8(%rsi)
movq %r14, (%rsi)
leaq 0xe49d(%rip), %rax # 0xdfcee
movq %rax, 0x18(%rsi)
leaq 0xed12(%rip), %rax # 0xe056e
movq %rax, 0x10(%rsi)
leaq 0x245a1(%rip), %rdx # 0xf5e08
leaq 0x38(%rsp), %rdi
callq 0xbb3c8
leaq 0x18(%rbx), %rdi
leaq 0x38(%rsp), %r12
movq %r12, %rsi
callq 0x1aad0
movq (%r12), %rdi
leaq 0x48(%rsp), %r15
cmpq %r15, %rdi
je 0xd189d
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x1a8f0
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0xd18b6
leaq 0x8(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0x38(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x2562f(%rip), %rsi # 0xf6ef4
leaq 0x25638(%rip), %rdx # 0xf6f04
callq 0x22338
leaq 0x40(%rbx), %rdi
leaq 0x38(%rsp), %rsi
movb $0x0, 0x20(%rsi)
callq 0xe42c0
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0xd18fa
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x1a8f0
leaq 0x38(%rsp), %r12
movq %r15, (%r12)
leaq 0x25ac0(%rip), %rsi # 0xf73ca
leaq 0x25acb(%rip), %rdx # 0xf73dc
movq %r12, %rdi
callq 0x22338
leaq 0x58(%rsp), %r13
leaq 0x68(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x25aaf(%rip), %rsi # 0xf73dd
leaq 0x25ab8(%rip), %rdx # 0xf73ed
movq %r13, %rdi
callq 0x22338
leaq 0x78(%rsp), %r13
leaq 0x88(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x25a99(%rip), %rsi # 0xf73ee
leaq 0x25aa4(%rip), %rdx # 0xf7400
movq %r13, %rdi
callq 0x22338
leaq 0x98(%rsp), %r13
leaq 0xa8(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x25a82(%rip), %rsi # 0xf7401
leaq 0x25a8b(%rip), %rdx # 0xf7411
movq %r13, %rdi
callq 0x22338
leaq 0xb8(%rsp), %r13
leaq 0xc8(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x25a69(%rip), %rsi # 0xf7412
leaq 0x25a70(%rip), %rdx # 0xf7420
movq %r13, %rdi
callq 0x22338
leaq 0x58(%rbx), %rdi
leaq 0xd8(%rsp), %r12
leaq 0x38(%rsp), %rsi
movq %r12, %rdx
callq 0xe46a2
movq $-0xa0, %r12
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0xd19ec
movq (%r15), %rsi
incq %rsi
callq 0x1a8f0
addq $-0x20, %r15
addq $0x20, %r12
jne 0xd19d8
movzbl 0x10(%r14), %eax
testl %eax, %eax
leaq 0x48(%rsp), %r15
je 0xd1a2b
cmpl $0x2, %eax
je 0xd1a0e
cmpl $0x1, %eax
jne 0xd1a1b
movq 0x18(%r14), %rax
movq (%rax), %rcx
cmpq 0x8(%rax), %rcx
je 0xd1a2b
leaq 0x10(%r14), %rsi
leaq 0x8(%rsp), %rdi
callq 0x5dac6
jmp 0xd1a39
movb $0x0, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movzbl 0x68(%r14), %r8d
leaq 0x28(%rsp), %r9
movb $0x0, (%r9)
movq $0x0, 0x8(%r9)
movl $0x1, (%rsp)
leaq 0x38(%rsp), %rdi
leaq 0x8(%rsp), %rcx
movq %rbp, %rsi
movq %r14, %rdx
callq 0xa1994
leaq 0xd8(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x7fc76
movb 0x8(%rbx), %al
leaq 0xd8(%rsp), %rdi
movb (%rdi), %cl
movb %cl, 0x8(%rbx)
movb %al, (%rdi)
movq 0x10(%rbx), %rax
movq 0x8(%rdi), %rcx
movq %rcx, 0x10(%rbx)
movq %rax, 0x8(%rdi)
callq 0x5df92
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0xd1abb
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x1a8f0
leaq 0x28(%rsp), %rdi
callq 0x5df92
leaq 0x8(%rsp), %rdi
callq 0x5df92
movl $0xa, (%rbx)
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xd1b8a
jmp 0xd1bbb
movq %rax, %r14
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0xd1b10
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x1a8f0
jmp 0xd1b10
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x5df92
leaq 0x8(%rsp), %rdi
callq 0x5df92
jmp 0xd1b8d
movq %rax, %r14
leaq 0x38(%rsp), %rsi
movq %r12, %rdi
callq 0x1c7db
jmp 0xd1b8d
jmp 0xd1b3e
jmp 0xd1b3e
jmp 0xd1b3e
movq %rax, %r14
addq $-0x10, %r13
movq -0x10(%r13), %rdi
cmpq %rdi, %r13
je 0xd1b5a
movq (%r13), %rsi
incq %rsi
callq 0x1a8f0
leaq -0x20(%r13), %rax
addq $-0x10, %r13
cmpq %r12, %r13
movq %rax, %r13
jne 0xd1b45
jmp 0xd1b8d
jmp 0xd1b8a
movq %rax, %r14
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0xd1b8d
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x1a8f0
jmp 0xd1b8d
movq %rax, %r14
movq %rbx, %rdi
callq 0x7e7a8
movq %r14, %rdi
callq 0x1afb0
movq %rax, %r14
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0xd1b8d
leaq 0x8(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0xd1b8d
movq %rax, %rdi
callq 0x21a05
| _ZL35common_chat_params_init_command_r7bRKN5minja13chat_templateERK18common_chat_inputs:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0E8h
mov r14, rdx
mov rbp, rsi
mov rbx, rdi
mov dword ptr [rdi], 0
xor r15d, r15d
mov [rdi+8], r15b
mov [rdi+10h], r15
lea rax, [rdi+28h]
mov [rdi+18h], rax
mov [rdi+20h], r15
mov [rdi+28h], r15b
mov [rdi+38h], r15b
xorps xmm0, xmm0
movups xmmword ptr [rdi+40h], xmm0
movups xmmword ptr [rdi+50h], xmm0
movups xmmword ptr [rdi+60h], xmm0
movups xmmword ptr [rdi+70h], xmm0
mov [rdi+80h], r15
lea rdi, [rdx+20h]
lea rsi, aRequired; "required"
call _ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_
mov [rbx+38h], al
lea rsi, [rsp+118h+var_110]
mov [rsi+8], r15
mov [rsi], r14
lea rax, _ZNSt17_Function_handlerIFvRK22common_grammar_builderEZL35common_chat_params_init_command_r7bRKN5minja13chat_templateERK18common_chat_inputsE3$_0E9_M_invokeERKSt9_Any_dataS2_; std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_command_r7b(minja::chat_template const&,common_chat_inputs const&)::$_0>::_M_invoke(std::_Any_data const&,common_grammar_builder const&)
mov [rsi+18h], rax
lea rax, _ZNSt17_Function_handlerIFvRK22common_grammar_builderEZL35common_chat_params_init_command_r7bRKN5minja13chat_templateERK18common_chat_inputsE3$_0E10_M_managerERSt9_Any_dataRKSD_St18_Manager_operation; std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_command_r7b(minja::chat_template const&,common_chat_inputs const&)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation)
mov [rsi+10h], rax
lea rdx, _ZL15grammar_options; grammar_options
lea rdi, [rsp+118h+var_E0]
call _Z13build_grammarB5cxx11RKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_options; build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)
lea rdi, [rbx+18h]
lea r12, [rsp+118h+var_E0]
mov rsi, r12
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [r12]; void *
lea r15, [rsp+118h+var_D0]
cmp rdi, r15
jz short loc_D189D
mov rsi, [rsp+118h+var_D0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_D189D:
mov rax, [rsp+118h+var_100]
test rax, rax
jz short loc_D18B6
lea rdi, [rsp+118h+var_110]
mov rsi, rdi
mov edx, 3
call rax
loc_D18B6:
lea rdi, [rsp+118h+var_E0]
mov [rdi], r15
lea rsi, aEndThinkingSta+10h; "<|START_ACTION|>"
lea rdx, aEndThinkingSta+20h; ""
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, [rbx+40h]
lea rsi, [rsp+118h+var_E0]
mov byte ptr [rsi+20h], 0
call _ZNSt6vectorI22common_grammar_triggerSaIS0_EE12emplace_backIJS0_EEERS0_DpOT_; std::vector<common_grammar_trigger>::emplace_back<common_grammar_trigger>(common_grammar_trigger &&)
mov rdi, [rsp+118h+var_E0]; void *
cmp rdi, r15
jz short loc_D18FA
mov rsi, [rsp+118h+var_D0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_D18FA:
lea r12, [rsp+118h+var_E0]
mov [r12], r15
lea rsi, aStartResponse; "<|START_RESPONSE|>"
lea rdx, aStartResponse+12h; ""
mov rdi, 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)
lea r13, [rsp+118h+var_C0]
lea rax, [rsp+118h+var_B0]
mov [rax-10h], rax
lea rsi, aEndResponse; "<|END_RESPONSE|>"
lea rdx, aEndResponse+10h; ""
mov rdi, r13
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 r13, [rsp+118h+var_A0]
lea rax, [rsp+118h+var_90]
mov [rax-10h], rax
lea rsi, aStartThinking; "<|START_THINKING|>"
lea rdx, aStartThinking+12h; ""
mov rdi, r13
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 r13, [rsp+118h+var_80]
lea rax, [rsp+118h+var_70]
mov [rax-10h], rax
lea rsi, aEndThinking; "<|END_THINKING|>"
lea rdx, aEndThinking+10h; ""
mov rdi, r13
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 r13, [rsp+118h+var_60]
lea r15, [rsp+118h+var_50]
mov [r15-10h], r15
lea rsi, aEndAction; "<|END_ACTION|>"
lea rdx, aEndAction+0Eh; ""
mov rdi, r13
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, [rbx+58h]
lea r12, [rsp+118h+var_40]
lea rsi, [rsp+118h+var_E0]
mov rdx, r12
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE13_M_assign_auxIPKS5_EEvT_SB_St20forward_iterator_tag; std::vector<std::string>::_M_assign_aux<std::string const*>(std::string const*,std::string const*,std::forward_iterator_tag)
mov r12, 0FFFFFFFFFFFFFF60h
loc_D19D8:
mov rdi, [r15-10h]; void *
cmp r15, rdi
jz short loc_D19EC
mov rsi, [r15]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_D19EC:
add r15, 0FFFFFFFFFFFFFFE0h
add r12, 20h ; ' '
jnz short loc_D19D8
movzx eax, byte ptr [r14+10h]
test eax, eax
lea r15, [rsp+118h+var_D0]
jz short loc_D1A2B
cmp eax, 2
jz short loc_D1A0E
cmp eax, 1
jnz short loc_D1A1B
loc_D1A0E:
mov rax, [r14+18h]
mov rcx, [rax]
cmp rcx, [rax+8]
jz short loc_D1A2B
loc_D1A1B:
lea rsi, [r14+10h]
lea rdi, [rsp+118h+var_110]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
jmp short loc_D1A39
loc_D1A2B:
mov [rsp+118h+var_110], 0
mov [rsp+118h+var_108], 0
loc_D1A39:
movzx r8d, byte ptr [r14+68h]
lea r9, [rsp+118h+var_F0]
mov byte ptr [r9], 0
mov qword ptr [r9+8], 0
mov [rsp+118h+var_118], 1
lea rdi, [rsp+118h+var_E0]
lea rcx, [rsp+118h+var_110]
mov rsi, rbp
mov rdx, r14
call _ZNK5minja13chat_template5applyERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEESH_bSH_b; minja::chat_template::apply(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,bool,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&,bool)
lea rdi, [rsp+118h+var_40]
lea rsi, [rsp+118h+var_E0]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_
mov al, [rbx+8]
lea rdi, [rsp+118h+var_40]
mov cl, [rdi]
mov [rbx+8], cl
mov [rdi], al
mov rax, [rbx+10h]
mov rcx, [rdi+8]
mov [rbx+10h], rcx
mov [rdi+8], rax
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, [rsp+118h+var_E0]; void *
cmp rdi, r15
jz short loc_D1ABB
mov rsi, [rsp+118h+var_D0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_D1ABB:
lea rdi, [rsp+118h+var_F0]
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 rdi, [rsp+118h+var_110]
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 dword ptr [rbx], 0Ah
add rsp, 0E8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp loc_D1B8A
jmp loc_D1BBB
mov r14, rax
mov rdi, [rsp+118h+var_E0]; void *
cmp rdi, r15
jz short loc_D1B10
mov rsi, [rsp+118h+var_D0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_D1B10
mov r14, rax
loc_D1B10:
lea rdi, [rsp+118h+var_F0]
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 rdi, [rsp+118h+var_110]
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_D1B8D
mov r14, rax
lea rsi, [rsp+118h+var_E0]
mov rdi, r12
call _ZL35common_chat_params_init_command_r7bRKN5minja13chat_templateERK18common_chat_inputs_cold_1; common_chat_params_init_command_r7b(minja::chat_template const&,common_chat_inputs const&) [clone]
jmp short loc_D1B8D
jmp short loc_D1B3E
jmp short loc_D1B3E
jmp short $+2
loc_D1B3E:
mov r14, rax
add r13, 0FFFFFFFFFFFFFFF0h
loc_D1B45:
mov rdi, [r13-10h]; void *
cmp r13, rdi
jz short loc_D1B5A
mov rsi, [r13+0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_D1B5A:
lea rax, [r13-20h]
add r13, 0FFFFFFFFFFFFFFF0h
cmp r13, r12
mov r13, rax
jnz short loc_D1B45
jmp short loc_D1B8D
jmp short loc_D1B8A
mov r14, rax
mov rdi, [rsp+118h+var_E0]; void *
cmp rdi, r15
jz short loc_D1B8D
mov rsi, [rsp+118h+var_D0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_D1B8D
loc_D1B8A:
mov r14, rax
loc_D1B8D:
mov rdi, rbx; this
call _ZN18common_chat_paramsD2Ev; common_chat_params::~common_chat_params()
mov rdi, r14
call __Unwind_Resume
mov r14, rax
mov rax, [rsp+118h+var_100]
test rax, rax
jz short loc_D1B8D
lea rdi, [rsp+118h+var_110]
mov rsi, rdi
mov edx, 3
call rax
jmp short loc_D1B8D
loc_D1BBB:
mov rdi, rax
call __clang_call_terminate
| long long common_chat_params_init_command_r7b(
const minja::chat_template *a1,
const common_chat_inputs *a2,
long long a3)
{
long long v5; // rcx
int v6; // r8d
int v7; // r9d
_QWORD *v8; // r15
long long v9; // r12
_QWORD *v10; // rdi
int v11; // eax
int v12; // r8d
char v13; // al
long long v14; // rax
long long result; // rax
long long v16; // [rsp+8h] [rbp-110h] BYREF
long long v17; // [rsp+10h] [rbp-108h]
long long ( *v18)(); // [rsp+18h] [rbp-100h]
long long ( *v19)(); // [rsp+20h] [rbp-F8h]
_BYTE v20[8]; // [rsp+28h] [rbp-F0h] BYREF
long long v21; // [rsp+30h] [rbp-E8h]
void *v22[2]; // [rsp+38h] [rbp-E0h] BYREF
_QWORD v23[2]; // [rsp+48h] [rbp-D0h] BYREF
char *v24; // [rsp+58h] [rbp-C0h] BYREF
char v25; // [rsp+68h] [rbp-B0h] BYREF
char *v26; // [rsp+78h] [rbp-A0h] BYREF
char v27; // [rsp+88h] [rbp-90h] BYREF
char *v28; // [rsp+98h] [rbp-80h] BYREF
char v29; // [rsp+A8h] [rbp-70h] BYREF
_BYTE *v30; // [rsp+B8h] [rbp-60h] BYREF
_BYTE v31[16]; // [rsp+C8h] [rbp-50h] BYREF
char v32[8]; // [rsp+D8h] [rbp-40h] BYREF
long long v33; // [rsp+E0h] [rbp-38h]
*(_DWORD *)a1 = 0;
*((_BYTE *)a1 + 8) = 0;
*((_QWORD *)a1 + 2) = 0LL;
*((_QWORD *)a1 + 3) = (char *)a1 + 40;
*((_QWORD *)a1 + 4) = 0LL;
*((_BYTE *)a1 + 40) = 0;
*((_BYTE *)a1 + 56) = 0;
*((_OWORD *)a1 + 4) = 0LL;
*((_OWORD *)a1 + 5) = 0LL;
*((_OWORD *)a1 + 6) = 0LL;
*((_OWORD *)a1 + 7) = 0LL;
*((_QWORD *)a1 + 16) = 0LL;
*((_BYTE *)a1 + 56) = ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_(
a3 + 32,
(long long)"required");
v17 = 0LL;
v16 = a3;
v19 = std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_command_r7b(minja::chat_template const&,common_chat_inputs const&)::$_0>::_M_invoke;
v18 = std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_command_r7b(minja::chat_template const&,common_chat_inputs const&)::$_0>::_M_manager;
build_grammar[abi:cxx11]((long long)v22, (long long)&v16, grammar_options, v5, v6, v7);
std::string::operator=((char *)a1 + 24, v22);
if ( v22[0] != v23 )
operator delete(v22[0], v23[0] + 1LL);
if ( v18 )
((void ( *)(long long *, long long *, long long))v18)(&v16, &v16, 3LL);
v22[0] = v23;
std::string::_M_construct<char const*>((long long)v22, "<|START_ACTION|>", (long long)"");
LOBYTE(v24) = 0;
std::vector<common_grammar_trigger>::emplace_back<common_grammar_trigger>((char *)a1 + 64);
if ( v22[0] != v23 )
operator delete(v22[0], v23[0] + 1LL);
v22[0] = v23;
std::string::_M_construct<char const*>((long long)v22, "<|START_RESPONSE|>", (long long)"");
v24 = &v25;
std::string::_M_construct<char const*>((long long)&v24, "<|END_RESPONSE|>", (long long)"");
v26 = &v27;
std::string::_M_construct<char const*>((long long)&v26, "<|START_THINKING|>", (long long)"");
v28 = &v29;
std::string::_M_construct<char const*>((long long)&v28, "<|END_THINKING|>", (long long)"");
v8 = v31;
v30 = v31;
std::string::_M_construct<char const*>((long long)&v30, "<|END_ACTION|>", (long long)"");
std::vector<std::string>::_M_assign_aux<std::string const*>((char *)a1 + 88, v22, v32);
v9 = -160LL;
do
{
v10 = (_QWORD *)*(v8 - 2);
if ( v8 != v10 )
operator delete(v10, *v8 + 1LL);
v8 -= 4;
v9 += 32LL;
}
while ( v9 );
v11 = *(unsigned __int8 *)(a3 + 16);
if ( !*(_BYTE *)(a3 + 16)
|| (v11 == 2 || v11 == 1) && **(_QWORD **)(a3 + 24) == *(_QWORD *)(*(_QWORD *)(a3 + 24) + 8LL) )
{
LOBYTE(v16) = 0;
v17 = 0LL;
}
else
{
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(
(unsigned __int8 *)&v16,
(unsigned __int8 *)(a3 + 16));
}
v12 = *(unsigned __int8 *)(a3 + 104);
v20[0] = 0;
v21 = 0LL;
minja::chat_template::apply((long long)v22, a2, (unsigned __int8 *)a3, (unsigned __int8 *)&v16, v12, v20, 1);
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_(v32);
v13 = *((_BYTE *)a1 + 8);
*((_BYTE *)a1 + 8) = v32[0];
v32[0] = v13;
v14 = *((_QWORD *)a1 + 2);
*((_QWORD *)a1 + 2) = v33;
v33 = v14;
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(v32);
if ( v22[0] != v23 )
operator delete(v22[0], v23[0] + 1LL);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v20);
result = 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(&v16);
*(_DWORD *)a1 = 10;
return result;
}
| common_chat_params_init_command_r7b:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xe8
MOV R14,RDX
MOV RBP,RSI
MOV RBX,RDI
MOV dword ptr [RDI],0x0
XOR R15D,R15D
MOV byte ptr [RDI + 0x8],R15B
MOV qword ptr [RDI + 0x10],R15
LEA RAX,[RDI + 0x28]
MOV qword ptr [RDI + 0x18],RAX
MOV qword ptr [RDI + 0x20],R15
MOV byte ptr [RDI + 0x28],R15B
MOV byte ptr [RDI + 0x38],R15B
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x40],XMM0
MOVUPS xmmword ptr [RDI + 0x50],XMM0
MOVUPS xmmword ptr [RDI + 0x60],XMM0
MOVUPS xmmword ptr [RDI + 0x70],XMM0
MOV qword ptr [RDI + 0x80],R15
LEA RDI,[RDX + 0x20]
LEA RSI,[0x1efed5]
CALL 0x001a5275
MOV byte ptr [RBX + 0x38],AL
LEA RSI,[RSP + 0x8]
MOV qword ptr [RSI + 0x8],R15
MOV qword ptr [RSI],R14
LEA RAX,[0x1dfcee]
MOV qword ptr [RSI + 0x18],RAX
LEA RAX,[0x1e056e]
MOV qword ptr [RSI + 0x10],RAX
LAB_001d1860:
LEA RDX,[0x1f5e08]
LEA RDI,[RSP + 0x38]
CALL 0x001bb3c8
LEA RDI,[RBX + 0x18]
LEA R12,[RSP + 0x38]
MOV RSI,R12
CALL 0x0011aad0
MOV RDI,qword ptr [R12]
LEA R15,[RSP + 0x48]
CMP RDI,R15
JZ 0x001d189d
MOV RSI,qword ptr [RSP + 0x48]
INC RSI
CALL 0x0011a8f0
LAB_001d189d:
MOV RAX,qword ptr [RSP + 0x18]
TEST RAX,RAX
JZ 0x001d18b6
LAB_001d18a7:
LEA RDI,[RSP + 0x8]
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_001d18b6:
LEA RDI,[RSP + 0x38]
MOV qword ptr [RDI],R15
LAB_001d18be:
LEA RSI,[0x1f6ef4]
LEA RDX,[0x1f6f04]
CALL 0x00122338
LEA RDI,[RBX + 0x40]
LEA RSI,[RSP + 0x38]
MOV byte ptr [RSI + 0x20],0x0
LAB_001d18de:
CALL 0x001e42c0
MOV RDI,qword ptr [RSP + 0x38]
CMP RDI,R15
JZ 0x001d18fa
MOV RSI,qword ptr [RSP + 0x48]
INC RSI
CALL 0x0011a8f0
LAB_001d18fa:
LEA R12,[RSP + 0x38]
MOV qword ptr [R12],R15
LAB_001d1903:
LEA RSI,[0x1f73ca]
LEA RDX,[0x1f73dc]
MOV RDI,R12
CALL 0x00122338
LEA R13,[RSP + 0x58]
LEA RAX,[RSP + 0x68]
MOV qword ptr [RAX + -0x10],RAX
LAB_001d1927:
LEA RSI,[0x1f73dd]
LEA RDX,[0x1f73ed]
MOV RDI,R13
CALL 0x00122338
LEA R13,[RSP + 0x78]
LEA RAX,[RSP + 0x88]
MOV qword ptr [RAX + -0x10],RAX
LAB_001d194e:
LEA RSI,[0x1f73ee]
LEA RDX,[0x1f7400]
MOV RDI,R13
CALL 0x00122338
LEA R13,[RSP + 0x98]
LEA RAX,[RSP + 0xa8]
MOV qword ptr [RAX + -0x10],RAX
LAB_001d1978:
LEA RSI,[0x1f7401]
LEA RDX,[0x1f7411]
MOV RDI,R13
CALL 0x00122338
LEA R13,[RSP + 0xb8]
LEA R15,[RSP + 0xc8]
MOV qword ptr [R15 + -0x10],R15
LAB_001d19a2:
LEA RSI,[0x1f7412]
LEA RDX,[0x1f7420]
MOV RDI,R13
CALL 0x00122338
LEA RDI,[RBX + 0x58]
LEA R12,[RSP + 0xd8]
LAB_001d19c4:
LEA RSI,[RSP + 0x38]
MOV RDX,R12
CALL 0x001e46a2
MOV R12,-0xa0
LAB_001d19d8:
MOV RDI,qword ptr [R15 + -0x10]
CMP R15,RDI
JZ 0x001d19ec
MOV RSI,qword ptr [R15]
INC RSI
CALL 0x0011a8f0
LAB_001d19ec:
ADD R15,-0x20
ADD R12,0x20
JNZ 0x001d19d8
MOVZX EAX,byte ptr [R14 + 0x10]
TEST EAX,EAX
LEA R15,[RSP + 0x48]
JZ 0x001d1a2b
CMP EAX,0x2
JZ 0x001d1a0e
CMP EAX,0x1
JNZ 0x001d1a1b
LAB_001d1a0e:
MOV RAX,qword ptr [R14 + 0x18]
MOV RCX,qword ptr [RAX]
CMP RCX,qword ptr [RAX + 0x8]
JZ 0x001d1a2b
LAB_001d1a1b:
LEA RSI,[R14 + 0x10]
LEA RDI,[RSP + 0x8]
CALL 0x0015dac6
JMP 0x001d1a39
LAB_001d1a2b:
MOV byte ptr [RSP + 0x8],0x0
MOV qword ptr [RSP + 0x10],0x0
LAB_001d1a39:
MOVZX R8D,byte ptr [R14 + 0x68]
LEA R9,[RSP + 0x28]
MOV byte ptr [R9],0x0
MOV qword ptr [R9 + 0x8],0x0
LAB_001d1a4f:
MOV dword ptr [RSP],0x1
LEA RDI,[RSP + 0x38]
LEA RCX,[RSP + 0x8]
MOV RSI,RBP
MOV RDX,R14
CALL 0x001a1994
LAB_001d1a6b:
LEA RDI,[RSP + 0xd8]
LEA RSI,[RSP + 0x38]
CALL 0x0017fc76
LAB_001d1a7d:
MOV AL,byte ptr [RBX + 0x8]
LEA RDI,[RSP + 0xd8]
MOV CL,byte ptr [RDI]
MOV byte ptr [RBX + 0x8],CL
MOV byte ptr [RDI],AL
MOV RAX,qword ptr [RBX + 0x10]
MOV RCX,qword ptr [RDI + 0x8]
MOV qword ptr [RBX + 0x10],RCX
MOV qword ptr [RDI + 0x8],RAX
CALL 0x0015df92
MOV RDI,qword ptr [RSP + 0x38]
CMP RDI,R15
JZ 0x001d1abb
MOV RSI,qword ptr [RSP + 0x48]
INC RSI
CALL 0x0011a8f0
LAB_001d1abb:
LEA RDI,[RSP + 0x28]
CALL 0x0015df92
LEA RDI,[RSP + 0x8]
CALL 0x0015df92
MOV dword ptr [RBX],0xa
ADD RSP,0xe8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* common_chat_params_init_command_r7b(minja::chat_template const&, common_chat_inputs const&) */
void common_chat_params_init_command_r7b(chat_template *param_1,common_chat_inputs *param_2)
{
char cVar1;
int8 uVar2;
chat_template cVar3;
ulong in_RDX;
long lVar4;
long *plVar5;
ulong local_110 [2];
code *local_100;
code *local_f8;
data local_f0 [8];
int8 local_e8;
long *local_e0 [2];
long local_d0 [2];
int1 *local_c0 [2];
int1 local_b0 [16];
int1 *local_a0 [2];
int1 local_90 [16];
int1 *local_80 [2];
int1 local_70 [16];
long *local_60 [2];
long local_50 [2];
chat_template local_40 [8];
int8 local_38;
*(int4 *)param_1 = 0;
param_1[8] = (chat_template)0x0;
*(int8 *)(param_1 + 0x10) = 0;
*(chat_template **)(param_1 + 0x18) = param_1 + 0x28;
*(int8 *)(param_1 + 0x20) = 0;
param_1[0x28] = (chat_template)0x0;
param_1[0x38] = (chat_template)0x0;
*(int8 *)(param_1 + 0x40) = 0;
*(int8 *)(param_1 + 0x48) = 0;
*(int8 *)(param_1 + 0x50) = 0;
*(int8 *)(param_1 + 0x58) = 0;
*(int8 *)(param_1 + 0x60) = 0;
*(int8 *)(param_1 + 0x68) = 0;
*(int8 *)(param_1 + 0x70) = 0;
*(int8 *)(param_1 + 0x78) = 0;
*(int8 *)(param_1 + 0x80) = 0;
cVar3 = (chat_template)
_ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_
(in_RDX + 0x20,"required");
param_1[0x38] = cVar3;
local_110[1] = 0;
local_f8 = std::
_Function_handler<void(common_grammar_builder_const&),common_chat_params_init_command_r7b(minja::chat_template_const&,common_chat_inputs_const&)::$_0>
::_M_invoke;
local_100 = std::
_Function_handler<void(common_grammar_builder_const&),common_chat_params_init_command_r7b(minja::chat_template_const&,common_chat_inputs_const&)::$_0>
::_M_manager;
/* try { // try from 001d1860 to 001d1870 has its CatchHandler @ 001d1b9d */
local_110[0] = in_RDX;
build_grammar_abi_cxx11_((function *)local_e0,(common_grammar_options *)local_110);
std::__cxx11::string::operator=((string *)(param_1 + 0x18),(string *)local_e0);
if (local_e0[0] != local_d0) {
operator_delete(local_e0[0],local_d0[0] + 1);
}
if (local_100 != (code *)0x0) {
/* try { // try from 001d18a7 to 001d18b5 has its CatchHandler @ 001d1aec */
(*local_100)(local_110,local_110,3);
}
local_e0[0] = local_d0;
/* try { // try from 001d18be to 001d18d0 has its CatchHandler @ 001d1b8a */
std::__cxx11::string::_M_construct<char_const*>(local_e0,"<|START_ACTION|>","");
local_c0[0] = (int1 *)((ulong)local_c0[0] & 0xffffffffffffff00);
/* try { // try from 001d18de to 001d18e2 has its CatchHandler @ 001d1b6e */
std::vector<common_grammar_trigger,std::allocator<common_grammar_trigger>>::
emplace_back<common_grammar_trigger>
((vector<common_grammar_trigger,std::allocator<common_grammar_trigger>> *)
(param_1 + 0x40),(common_grammar_trigger *)local_e0);
if (local_e0[0] != local_d0) {
operator_delete(local_e0[0],local_d0[0] + 1);
}
local_e0[0] = local_d0;
/* try { // try from 001d1903 to 001d1918 has its CatchHandler @ 001d1b6c */
std::__cxx11::string::_M_construct<char_const*>(local_e0,"<|START_RESPONSE|>","");
local_c0[0] = local_b0;
/* try { // try from 001d1927 to 001d193c has its CatchHandler @ 001d1b3e */
std::__cxx11::string::_M_construct<char_const*>(local_c0,"<|END_RESPONSE|>","");
local_a0[0] = local_90;
/* try { // try from 001d194e to 001d1963 has its CatchHandler @ 001d1b3c */
std::__cxx11::string::_M_construct<char_const*>(local_a0,"<|START_THINKING|>","");
local_80[0] = local_70;
/* try { // try from 001d1978 to 001d198d has its CatchHandler @ 001d1b3a */
std::__cxx11::string::_M_construct<char_const*>(local_80,"<|END_THINKING|>","");
plVar5 = local_50;
local_60[0] = plVar5;
/* try { // try from 001d19a2 to 001d19b7 has its CatchHandler @ 001d1b38 */
std::__cxx11::string::_M_construct<char_const*>(local_60,"<|END_ACTION|>","");
/* try { // try from 001d19c4 to 001d19d0 has its CatchHandler @ 001d1b26 */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::
_M_assign_aux<std::__cxx11::string_const*>(param_1 + 0x58,local_e0,local_40);
lVar4 = -0xa0;
do {
if (plVar5 != (long *)plVar5[-2]) {
operator_delete((long *)plVar5[-2],*plVar5 + 1);
}
plVar5 = plVar5 + -4;
lVar4 = lVar4 + 0x20;
} while (lVar4 != 0);
cVar1 = *(char *)(in_RDX + 0x10);
if ((cVar1 == '\0') ||
(((cVar1 == '\x02' || (cVar1 == '\x01')) &&
(**(long **)(in_RDX + 0x18) == (*(long **)(in_RDX + 0x18))[1])))) {
local_110[0] = local_110[0] & 0xffffffffffffff00;
local_110[1] = 0;
}
else {
/* try { // try from 001d1a1b to 001d1a28 has its CatchHandler @ 001d1ae7 */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)local_110,(basic_json *)(in_RDX + 0x10));
}
local_f0[0] = (data)0x0;
local_e8 = 0;
/* try { // try from 001d1a4f to 001d1a6a has its CatchHandler @ 001d1b0d */
minja::chat_template::apply
((basic_json *)local_e0,(basic_json *)param_2,SUB81(in_RDX,0),(basic_json *)local_110,
*(bool *)(in_RDX + 0x68));
/* try { // try from 001d1a6b to 001d1a7c has its CatchHandler @ 001d1af1 */
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_
(local_40,local_e0);
cVar3 = param_1[8];
param_1[8] = local_40[0];
uVar2 = *(int8 *)(param_1 + 0x10);
*(int8 *)(param_1 + 0x10) = local_38;
local_40[0] = cVar3;
local_38 = uVar2;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_40);
if (local_e0[0] != local_d0) {
operator_delete(local_e0[0],local_d0[0] + 1);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_f0);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_110);
*(int4 *)param_1 = 10;
return;
}
| |
30,302 | nglog::LogDestination::MaybeLogToEmail(nglog::LogSeverity, char const*, unsigned long) | ng-log[P]ng-log/src/logging.cc | inline void LogDestination::MaybeLogToEmail(LogSeverity severity,
const char* message, size_t len) {
if (severity >= email_logging_severity_ || severity >= FLAGS_logemaillevel) {
string to(FLAGS_alsologtoemail);
if (!addresses_.empty()) {
if (!to.empty()) {
to += ",";
}
to += addresses_;
}
const string subject(string("[LOG] ") + LogSeverityNames[severity] + ": " +
tools::ProgramInvocationShortName());
string body(hostname());
body += "\n\n";
body.append(message, len);
// should NOT use SendEmail(). The caller of this function holds the
// log_mutex and SendEmail() calls LOG/VLOG which will block trying to
// acquire the log_mutex object. Use SendEmailInternal() and set
// use_logging to false.
SendEmailInternal(to.c_str(), subject.c_str(), body.c_str(), false);
}
} | O0 | cpp | nglog::LogDestination::MaybeLogToEmail(nglog::LogSeverity, char const*, unsigned long):
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp # imm = 0x120
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl -0x4(%rbp), %eax
cmpl 0x585c9(%rip), %eax # 0x70768
jae 0x181b3
movl -0x4(%rbp), %eax
leaq 0x58a4d(%rip), %rcx # 0x70bf8
cmpl (%rcx), %eax
jl 0x1843c
leaq 0x573b6(%rip), %rax # 0x6f570
movq (%rax), %rsi
leaq -0x38(%rbp), %rdi
callq 0x92d0
leaq 0x58b53(%rip), %rdi # 0x70d20
callq 0x9c20
testb $0x1, %al
jne 0x1821c
leaq -0x38(%rbp), %rdi
callq 0x9c20
testb $0x1, %al
jne 0x18208
leaq 0x35af6(%rip), %rsi # 0x4dce0
leaq -0x38(%rbp), %rdi
callq 0x96b0
jmp 0x181f5
jmp 0x18208
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x18431
leaq 0x58b11(%rip), %rsi # 0x70d20
leaq -0x38(%rbp), %rdi
callq 0x9960
jmp 0x1821a
jmp 0x1821c
leaq -0xc9(%rbp), %rdi
movq %rdi, -0xf8(%rbp)
callq 0x9d10
movq -0xf8(%rbp), %rdx
leaq 0x35aa5(%rip), %rsi # 0x4dce2
leaq -0xc8(%rbp), %rdi
callq 0xbe70
jmp 0x1824b
movl -0x4(%rbp), %eax
movl %eax, %ecx
leaq 0x57359(%rip), %rax # 0x6f5b0
movq (%rax,%rcx,8), %rdx
leaq -0xa8(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0x19a20
jmp 0x18270
leaq 0x358fd(%rip), %rdx # 0x4db74
leaq -0x88(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x19a20
jmp 0x1828c
callq 0x4b280
movq %rax, -0x100(%rbp)
jmp 0x1829a
movq -0x100(%rbp), %rdx
leaq -0x68(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x19a20
jmp 0x182b3
leaq -0x88(%rbp), %rdi
callq 0x9ea8
leaq -0xa8(%rbp), %rdi
callq 0x9ea8
leaq -0xc8(%rbp), %rdi
callq 0x9ea8
leaq -0xc9(%rbp), %rdi
callq 0x97c0
callq 0xd930
movq %rax, -0x108(%rbp)
jmp 0x182f1
movq -0x108(%rbp), %rsi
leaq -0xf0(%rbp), %rdi
callq 0x92d0
jmp 0x18306
leaq 0x359dc(%rip), %rsi # 0x4dce9
leaq -0xf0(%rbp), %rdi
callq 0x96b0
jmp 0x1831b
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0xf0(%rbp), %rdi
callq 0x90f0
jmp 0x18331
leaq -0x38(%rbp), %rdi
callq 0x92b0
movq %rax, -0x118(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x92b0
movq %rax, -0x110(%rbp)
leaq -0xf0(%rbp), %rdi
callq 0x92b0
movq -0x118(%rbp), %rdi
movq -0x110(%rbp), %rsi
movq %rax, %rdx
xorl %ecx, %ecx
callq 0x10c60
jmp 0x18377
leaq -0xf0(%rbp), %rdi
callq 0x9ea8
leaq -0x68(%rbp), %rdi
callq 0x9ea8
leaq -0x38(%rbp), %rdi
callq 0x9ea8
jmp 0x1843c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x183f4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x183e8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x183dc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x9ea8
leaq -0xa8(%rbp), %rdi
callq 0x9ea8
leaq -0xc8(%rbp), %rdi
callq 0x9ea8
leaq -0xc9(%rbp), %rdi
callq 0x97c0
jmp 0x18431
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x18428
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0xf0(%rbp), %rdi
callq 0x9ea8
leaq -0x68(%rbp), %rdi
callq 0x9ea8
leaq -0x38(%rbp), %rdi
callq 0x9ea8
jmp 0x18445
addq $0x120, %rsp # imm = 0x120
popq %rbp
retq
movq -0x40(%rbp), %rdi
callq 0x9d00
nop
| _ZN5nglog14LogDestination15MaybeLogToEmailENS_11LogSeverityEPKcm:
push rbp
mov rbp, rsp
sub rsp, 120h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov eax, [rbp+var_4]
cmp eax, cs:_ZN5nglog14LogDestination23email_logging_severity_E; nglog::LogDestination::email_logging_severity_
jnb short loc_181B3
mov eax, [rbp+var_4]
lea rcx, _ZN3fLI19FLAGS_logemaillevelE; fLI::FLAGS_logemaillevel
cmp eax, [rcx]
jl loc_1843C
loc_181B3:
lea rax, _ZN3fLS20FLAGS_alsologtoemailB5cxx11E; fLS::FLAGS_alsologtoemail
mov rsi, [rax]
lea rdi, [rbp+var_38]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&)
lea rdi, _ZN5nglog14LogDestination10addresses_B5cxx11E; nglog::LogDestination::addresses_
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_1821C
lea rdi, [rbp+var_38]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_18208
lea rsi, asc_4DCE0; ","
lea rdi, [rbp+var_38]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc; std::string::operator+=(char const*)
jmp short $+2
loc_181F5:
jmp short loc_18208
mov rcx, rax
mov eax, edx
mov [rbp+var_40], rcx
mov [rbp+var_44], eax
jmp loc_18431
loc_18208:
lea rsi, _ZN5nglog14LogDestination10addresses_B5cxx11E; nglog::LogDestination::addresses_
lea rdi, [rbp+var_38]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_; std::string::operator+=(std::string const&)
jmp short $+2
loc_1821A:
jmp short $+2
loc_1821C:
lea rdi, [rbp+var_C9]
mov [rbp+var_F8], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, [rbp+var_F8]
lea rsi, aLog_0; "[LOG] "
lea rdi, [rbp+var_C8]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_1824B:
mov eax, [rbp+var_4]
mov ecx, eax
lea rax, _ZN5nglogL16LogSeverityNamesE; nglog::LogSeverityNames
mov rdx, [rax+rcx*8]
lea rdi, [rbp+var_A8]
lea rsi, [rbp+var_C8]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
jmp short $+2
loc_18270:
lea rdx, aRunningDuratio+1Ah; ": "
lea rdi, [rbp+var_88]; this
lea rsi, [rbp+var_A8]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
jmp short $+2
loc_1828C:
call _ZN5nglog5tools26ProgramInvocationShortNameEv; nglog::tools::ProgramInvocationShortName(void)
mov [rbp+var_100], rax
jmp short $+2
loc_1829A:
mov rdx, [rbp+var_100]
lea rdi, [rbp+var_68]
lea rsi, [rbp+var_88]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
jmp short $+2
loc_182B3:
lea rdi, [rbp+var_88]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rbp+var_A8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rbp+var_C8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rbp+var_C9]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
call _ZN5nglog14LogDestination8hostnameB5cxx11Ev; nglog::LogDestination::hostname(void)
mov [rbp+var_108], rax
jmp short $+2
loc_182F1:
mov rsi, [rbp+var_108]
lea rdi, [rbp+var_F0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&)
jmp short $+2
loc_18306:
lea rsi, asc_4DCE9; "\n\n"
lea rdi, [rbp+var_F0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc; std::string::operator+=(char const*)
jmp short $+2
loc_1831B:
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
lea rdi, [rbp+var_F0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm; std::string::append(char const*,ulong)
jmp short $+2
loc_18331:
lea rdi, [rbp+var_38]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void)
mov [rbp+var_118], rax
lea rdi, [rbp+var_68]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void)
mov [rbp+var_110], rax
lea rdi, [rbp+var_F0]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void)
mov rdi, [rbp+var_118]; this
mov rsi, [rbp+var_110]; char *
mov rdx, rax; char *
xor ecx, ecx; char *
call _ZN5nglogL17SendEmailInternalEPKcS1_S1_b; nglog::SendEmailInternal(char const*,char const*,char const*,bool)
jmp short $+2
loc_18377:
lea rdi, [rbp+var_F0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rbp+var_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rbp+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_1843C
mov rcx, rax
mov eax, edx
mov [rbp+var_40], rcx
mov [rbp+var_44], eax
jmp short loc_183F4
mov rcx, rax
mov eax, edx
mov [rbp+var_40], rcx
mov [rbp+var_44], eax
jmp short loc_183E8
mov rcx, rax
mov eax, edx
mov [rbp+var_40], rcx
mov [rbp+var_44], eax
jmp short loc_183DC
mov rcx, rax
mov eax, edx
mov [rbp+var_40], rcx
mov [rbp+var_44], eax
lea rdi, [rbp+var_88]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_183DC:
lea rdi, [rbp+var_A8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_183E8:
lea rdi, [rbp+var_C8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_183F4:
lea rdi, [rbp+var_C9]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_18431
mov rcx, rax
mov eax, edx
mov [rbp+var_40], rcx
mov [rbp+var_44], eax
jmp short loc_18428
mov rcx, rax
mov eax, edx
mov [rbp+var_40], rcx
mov [rbp+var_44], eax
lea rdi, [rbp+var_F0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_18428:
lea rdi, [rbp+var_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_18431:
lea rdi, [rbp+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_18445
loc_1843C:
add rsp, 120h
pop rbp
retn
loc_18445:
mov rdi, [rbp+var_40]
call __Unwind_Resume
| void nglog::LogDestination::MaybeLogToEmail(unsigned int a1, long long a2, long long a3)
{
const char *v3; // rax
nglog *v4; // [rsp+8h] [rbp-118h]
char *v5; // [rsp+10h] [rbp-110h]
void *v6; // [rsp+18h] [rbp-108h]
long long v7; // [rsp+20h] [rbp-100h]
_BYTE v8[39]; // [rsp+30h] [rbp-F0h] BYREF
char v9; // [rsp+57h] [rbp-C9h] BYREF
_BYTE v10[32]; // [rsp+58h] [rbp-C8h] BYREF
_BYTE v11[32]; // [rsp+78h] [rbp-A8h] BYREF
_BYTE v12[32]; // [rsp+98h] [rbp-88h] BYREF
_BYTE v13[36]; // [rsp+B8h] [rbp-68h] BYREF
_BYTE v14[32]; // [rsp+E8h] [rbp-38h] BYREF
long long v15; // [rsp+108h] [rbp-18h]
long long v16; // [rsp+110h] [rbp-10h]
signed int v17; // [rsp+11Ch] [rbp-4h]
v17 = a1;
v16 = a2;
v15 = a3;
if ( a1 >= nglog::LogDestination::email_logging_severity_ || v17 >= fLI::FLAGS_logemaillevel )
{
std::string::basic_string(v14, &fLS::FLAGS_alsologtoemail_buf[abi:cxx11]);
if ( (std::string::empty(&nglog::LogDestination::addresses_[abi:cxx11]) & 1) == 0 )
{
if ( (std::string::empty(v14) & 1) == 0 )
std::string::operator+=(v14, ",");
std::string::operator+=(v14, &nglog::LogDestination::addresses_[abi:cxx11]);
}
std::allocator<char>::allocator();
std::string::basic_string<std::allocator<char>>((long long)v10, (long long)"[LOG] ", (long long)&v9);
std::operator+<char>(v11, v10, nglog::LogSeverityNames[v17]);
std::operator+<char>(v12, v11, ": ");
v7 = nglog::tools::ProgramInvocationShortName((nglog::tools *)v12);
std::operator+<char>(v13, v12, v7);
std::string::~string(v12);
std::string::~string(v11);
std::string::~string(v10);
std::allocator<char>::~allocator(&v9);
v6 = nglog::LogDestination::hostname[abi:cxx11]();
std::string::basic_string(v8, v6);
std::string::operator+=(v8, "\n\n");
std::string::append(v8, v16, v15);
v4 = (nglog *)std::string::c_str(v14);
v5 = (char *)std::string::c_str(v13);
v3 = (const char *)std::string::c_str(v8);
nglog::SendEmailInternal(v4, v5, v3, 0LL);
std::string::~string(v8);
std::string::~string(v13);
std::string::~string(v14);
}
}
| MaybeLogToEmail:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x120
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV EAX,dword ptr [RBP + -0x4]
CMP EAX,dword ptr [0x00170768]
JNC 0x001181b3
MOV EAX,dword ptr [RBP + -0x4]
LEA RCX,[0x170bf8]
CMP EAX,dword ptr [RCX]
JL 0x0011843c
LAB_001181b3:
LEA RAX,[0x16f570]
MOV RSI,qword ptr [RAX]
LEA RDI,[RBP + -0x38]
CALL 0x001092d0
LEA RDI,[0x170d20]
CALL 0x00109c20
TEST AL,0x1
JNZ 0x0011821c
LEA RDI,[RBP + -0x38]
CALL 0x00109c20
TEST AL,0x1
JNZ 0x00118208
LAB_001181e3:
LEA RSI,[0x14dce0]
LEA RDI,[RBP + -0x38]
CALL 0x001096b0
JMP 0x001181f5
LAB_001181f5:
JMP 0x00118208
LAB_00118208:
LEA RSI,[0x170d20]
LEA RDI,[RBP + -0x38]
CALL 0x00109960
JMP 0x0011821a
LAB_0011821a:
JMP 0x0011821c
LAB_0011821c:
LEA RDI,[RBP + -0xc9]
MOV qword ptr [RBP + -0xf8],RDI
CALL 0x00109d10
MOV RDX,qword ptr [RBP + -0xf8]
LAB_00118236:
LEA RSI,[0x14dce2]
LEA RDI,[RBP + -0xc8]
CALL 0x0010be70
JMP 0x0011824b
LAB_0011824b:
MOV EAX,dword ptr [RBP + -0x4]
MOV ECX,EAX
LEA RAX,[0x16f5b0]
MOV RDX,qword ptr [RAX + RCX*0x8]
LAB_0011825b:
LEA RDI,[RBP + -0xa8]
LEA RSI,[RBP + -0xc8]
CALL 0x00119a20
JMP 0x00118270
LAB_00118270:
LEA RDX,[0x14db74]
LEA RDI,[RBP + -0x88]
LEA RSI,[RBP + -0xa8]
CALL 0x00119a20
JMP 0x0011828c
LAB_0011828c:
CALL 0x0014b280
MOV qword ptr [RBP + -0x100],RAX
JMP 0x0011829a
LAB_0011829a:
MOV RDX,qword ptr [RBP + -0x100]
LEA RDI,[RBP + -0x68]
LEA RSI,[RBP + -0x88]
CALL 0x00119a20
JMP 0x001182b3
LAB_001182b3:
LEA RDI,[RBP + -0x88]
CALL 0x00109ea8
LEA RDI,[RBP + -0xa8]
CALL 0x00109ea8
LEA RDI,[RBP + -0xc8]
CALL 0x00109ea8
LEA RDI,[RBP + -0xc9]
CALL 0x001097c0
LAB_001182e3:
CALL 0x0010d930
MOV qword ptr [RBP + -0x108],RAX
JMP 0x001182f1
LAB_001182f1:
MOV RSI,qword ptr [RBP + -0x108]
LEA RDI,[RBP + -0xf0]
CALL 0x001092d0
JMP 0x00118306
LAB_00118306:
LEA RSI,[0x14dce9]
LEA RDI,[RBP + -0xf0]
CALL 0x001096b0
JMP 0x0011831b
LAB_0011831b:
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
LEA RDI,[RBP + -0xf0]
CALL 0x001090f0
JMP 0x00118331
LAB_00118331:
LEA RDI,[RBP + -0x38]
CALL 0x001092b0
MOV qword ptr [RBP + -0x118],RAX
LEA RDI,[RBP + -0x68]
CALL 0x001092b0
MOV qword ptr [RBP + -0x110],RAX
LEA RDI,[RBP + -0xf0]
CALL 0x001092b0
MOV RDI,qword ptr [RBP + -0x118]
MOV RSI,qword ptr [RBP + -0x110]
MOV RDX,RAX
XOR ECX,ECX
CALL 0x00110c60
LAB_00118375:
JMP 0x00118377
LAB_00118377:
LEA RDI,[RBP + -0xf0]
CALL 0x00109ea8
LEA RDI,[RBP + -0x68]
CALL 0x00109ea8
LEA RDI,[RBP + -0x38]
CALL 0x00109ea8
JMP 0x0011843c
LAB_0011843c:
ADD RSP,0x120
POP RBP
RET
|
/* nglog::LogDestination::MaybeLogToEmail(nglog::LogSeverity, char const*, unsigned long) */
void nglog::LogDestination::MaybeLogToEmail(uint param_1,ulong param_2,int8 param_3)
{
ulong uVar1;
string *psVar2;
char *pcVar3;
char *pcVar4;
char *pcVar5;
string local_f8 [39];
allocator local_d1;
string local_d0 [32];
string local_b0 [32];
string local_90 [32];
string local_70 [48];
string local_40 [32];
int8 local_20;
ulong local_18;
uint local_c;
if ((email_logging_severity_ <= param_1) || (fLI::FLAGS_logemaillevel <= (int)param_1)) {
local_20 = param_3;
local_18 = param_2;
local_c = param_1;
std::__cxx11::string::string(local_40,(string *)fLS::FLAGS_alsologtoemail_abi_cxx11_);
uVar1 = std::__cxx11::string::empty();
if ((uVar1 & 1) == 0) {
uVar1 = std::__cxx11::string::empty();
if ((uVar1 & 1) == 0) {
/* try { // try from 001181e3 to 00118217 has its CatchHandler @ 001181f7 */
std::__cxx11::string::operator+=(local_40,",");
}
std::__cxx11::string::operator+=(local_40,(string *)addresses__abi_cxx11_);
}
std::allocator<char>::allocator();
/* try { // try from 00118236 to 00118248 has its CatchHandler @ 0011839a */
std::__cxx11::string::string<std::allocator<char>>(local_d0,"[LOG] ",&local_d1);
/* try { // try from 0011825b to 0011826d has its CatchHandler @ 001183a8 */
std::operator+(local_b0,(char *)local_d0);
/* try { // try from 00118270 to 00118289 has its CatchHandler @ 001183b6 */
std::operator+(local_90,(char *)local_b0);
/* try { // try from 0011828c to 001182b0 has its CatchHandler @ 001183c4 */
tools::ProgramInvocationShortName();
std::operator+(local_70,(char *)local_90);
std::__cxx11::string::~string(local_90);
std::__cxx11::string::~string(local_b0);
std::__cxx11::string::~string(local_d0);
std::allocator<char>::~allocator((allocator<char> *)&local_d1);
/* try { // try from 001182e3 to 00118303 has its CatchHandler @ 00118402 */
psVar2 = (string *)hostname_abi_cxx11_();
std::__cxx11::string::string(local_f8,psVar2);
/* try { // try from 00118306 to 00118374 has its CatchHandler @ 00118410 */
std::__cxx11::string::operator+=(local_f8,"\n\n");
std::__cxx11::string::append((char *)local_f8,local_18);
pcVar3 = (char *)std::__cxx11::string::c_str();
pcVar4 = (char *)std::__cxx11::string::c_str();
pcVar5 = (char *)std::__cxx11::string::c_str();
SendEmailInternal(pcVar3,pcVar4,pcVar5,false);
std::__cxx11::string::~string(local_f8);
std::__cxx11::string::~string(local_70);
std::__cxx11::string::~string(local_40);
}
return;
}
| |
30,303 | LefDefParser::lefwLayerAntennaDiffAreaRatio(double) | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp | int
lefwLayerAntennaDiffAreaRatio(double value)
{
lefw54Num = LEFW_ANTENNADIFFAREARATIO;
if (!lefwFile)
return LEFW_UNINITIALIZED;
if (lefwState != LEFW_LAYERROUTING_START && lefwState != LEFW_LAYERROUTING
&& lefwState != LEFW_LAYER_START && lefwState != LEFW_LAYER)
return LEFW_BAD_ORDER;
// only routing or cut calls this func
if (!lefwIsRouting && !lefwIsCut)
return LEFW_BAD_DATA;
if (versionNum < 5.4)
return LEFW_WRONG_VERSION;
if (lefwWriteEncrypt)
encPrint(lefwFile, (char*) " ANTENNADIFFAREARATIO %.11g ;\n", value);
else
fprintf(lefwFile, " ANTENNADIFFAREARATIO %.11g ;\n", value);
lefwLines++;
return LEFW_OK;
} | O0 | cpp | LefDefParser::lefwLayerAntennaDiffAreaRatio(double):
subq $0x18, %rsp
movsd %xmm0, 0x8(%rsp)
movl $0x66, 0x1e268(%rip) # 0x32d4c
leaq 0x1e315(%rip), %rax # 0x32e00
cmpq $0x0, (%rax)
jne 0x14afe
movl $0x1, 0x14(%rsp)
jmp 0x14be0
leaq 0x1e54b(%rip), %rax # 0x33050
cmpl $0x7, (%rax)
je 0x14b3b
leaq 0x1e53f(%rip), %rax # 0x33050
cmpl $0x1f, (%rax)
je 0x14b3b
leaq 0x1e533(%rip), %rax # 0x33050
cmpl $0x6, (%rax)
je 0x14b3b
leaq 0x1e527(%rip), %rax # 0x33050
cmpl $0x1c, (%rax)
je 0x14b3b
movl $0x2, 0x14(%rsp)
jmp 0x14be0
leaq 0x1e582(%rip), %rax # 0x330c4
cmpl $0x0, (%rax)
jne 0x14b60
leaq 0x1e536(%rip), %rax # 0x33084
cmpl $0x0, (%rax)
jne 0x14b60
movl $0x3, 0x14(%rsp)
jmp 0x14be0
movsd 0x14698(%rip), %xmm0 # 0x29200
ucomisd 0x1e1d0(%rip), %xmm0 # 0x32d40
jbe 0x14b7c
movl $0x5, 0x14(%rsp)
jmp 0x14be0
cmpl $0x0, 0x1e569(%rip) # 0x330ec
je 0x14ba5
leaq 0x1e274(%rip), %rax # 0x32e00
movq (%rax), %rdi
movsd 0x8(%rsp), %xmm0
leaq 0x15efc(%rip), %rsi # 0x2aa98
movb $0x1, %al
callq 0x289b0
jmp 0x14bc3
leaq 0x1e254(%rip), %rax # 0x32e00
movq (%rax), %rdi
movsd 0x8(%rsp), %xmm0
leaq 0x15edc(%rip), %rsi # 0x2aa98
movb $0x1, %al
callq 0x1100
leaq 0x1e482(%rip), %rax # 0x3304c
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0x1e476(%rip), %rax # 0x3304c
movl %ecx, (%rax)
movl $0x0, 0x14(%rsp)
movl 0x14(%rsp), %eax
addq $0x18, %rsp
retq
nopl (%rax)
| _ZN12LefDefParser29lefwLayerAntennaDiffAreaRatioEd:
sub rsp, 18h
movsd [rsp+18h+var_10], xmm0
mov cs:_ZN12LefDefParserL9lefw54NumE, 66h ; 'f'; LefDefParser::lefw54Num
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
cmp qword ptr [rax], 0
jnz short loc_14AFE
mov [rsp+18h+var_4], 1
jmp loc_14BE0
loc_14AFE:
lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
cmp dword ptr [rax], 7
jz short loc_14B3B
lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
cmp dword ptr [rax], 1Fh
jz short loc_14B3B
lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
cmp dword ptr [rax], 6
jz short loc_14B3B
lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState
cmp dword ptr [rax], 1Ch
jz short loc_14B3B
mov [rsp+18h+var_4], 2
jmp loc_14BE0
loc_14B3B:
lea rax, _ZN12LefDefParser13lefwIsRoutingE; LefDefParser::lefwIsRouting
cmp dword ptr [rax], 0
jnz short loc_14B60
lea rax, _ZN12LefDefParser9lefwIsCutE; LefDefParser::lefwIsCut
cmp dword ptr [rax], 0
jnz short loc_14B60
mov [rsp+18h+var_4], 3
jmp loc_14BE0
loc_14B60:
movsd xmm0, cs:dbl_29200
ucomisd xmm0, cs:_ZN12LefDefParserL10versionNumE; LefDefParser::versionNum
jbe short loc_14B7C
mov [rsp+18h+var_4], 5
jmp short loc_14BE0
loc_14B7C:
cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 0; LefDefParser::lefwWriteEncrypt
jz short loc_14BA5
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
movsd xmm0, [rsp+18h+var_10]
lea rsi, aAntennadiffare; " ANTENNADIFFAREARATIO %.11g ;\n"
mov al, 1
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
jmp short loc_14BC3
loc_14BA5:
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
movsd xmm0, [rsp+18h+var_10]
lea rsi, aAntennadiffare; " ANTENNADIFFAREARATIO %.11g ;\n"
mov al, 1
call _fprintf
loc_14BC3:
lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines
mov ecx, [rax]
add ecx, 1
lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines
mov [rax], ecx
mov [rsp+18h+var_4], 0
loc_14BE0:
mov eax, [rsp+18h+var_4]
add rsp, 18h
retn
| long long LefDefParser::lefwLayerAntennaDiffAreaRatio(
LefDefParser *this,
double a2,
long long a3,
int a4,
int a5,
int a6,
int a7)
{
LefDefParser::lefw54Num = 102;
if ( *(_QWORD *)&LefDefParser::lefwFile )
{
if ( LefDefParser::lefwState == 7
|| LefDefParser::lefwState == 31
|| LefDefParser::lefwState == 6
|| LefDefParser::lefwState == 28 )
{
if ( LefDefParser::lefwIsRouting || LefDefParser::lefwIsCut )
{
if ( *(double *)&LefDefParser::versionNum >= 5.4 )
{
if ( LefDefParser::lefwWriteEncrypt )
LefDefParser::encPrint(
LefDefParser::lefwFile,
(unsigned int)" ANTENNADIFFAREARATIO %.11g ;\n",
a4,
a5,
a6,
a7);
else
fprintf(*(_QWORD *)&LefDefParser::lefwFile, " ANTENNADIFFAREARATIO %.11g ;\n", a2);
++LefDefParser::lefwLines;
return 0;
}
else
{
return 5;
}
}
else
{
return 3;
}
}
else
{
return 2;
}
}
else
{
return 1;
}
}
| lefwLayerAntennaDiffAreaRatio:
SUB RSP,0x18
MOVSD qword ptr [RSP + 0x8],XMM0
MOV dword ptr [0x00132d4c],0x66
LEA RAX,[0x132e00]
CMP qword ptr [RAX],0x0
JNZ 0x00114afe
MOV dword ptr [RSP + 0x14],0x1
JMP 0x00114be0
LAB_00114afe:
LEA RAX,[0x133050]
CMP dword ptr [RAX],0x7
JZ 0x00114b3b
LEA RAX,[0x133050]
CMP dword ptr [RAX],0x1f
JZ 0x00114b3b
LEA RAX,[0x133050]
CMP dword ptr [RAX],0x6
JZ 0x00114b3b
LEA RAX,[0x133050]
CMP dword ptr [RAX],0x1c
JZ 0x00114b3b
MOV dword ptr [RSP + 0x14],0x2
JMP 0x00114be0
LAB_00114b3b:
LEA RAX,[0x1330c4]
CMP dword ptr [RAX],0x0
JNZ 0x00114b60
LEA RAX,[0x133084]
CMP dword ptr [RAX],0x0
JNZ 0x00114b60
MOV dword ptr [RSP + 0x14],0x3
JMP 0x00114be0
LAB_00114b60:
MOVSD XMM0,qword ptr [0x00129200]
UCOMISD XMM0,qword ptr [0x00132d40]
JBE 0x00114b7c
MOV dword ptr [RSP + 0x14],0x5
JMP 0x00114be0
LAB_00114b7c:
CMP dword ptr [0x001330ec],0x0
JZ 0x00114ba5
LEA RAX,[0x132e00]
MOV RDI,qword ptr [RAX]
MOVSD XMM0,qword ptr [RSP + 0x8]
LEA RSI,[0x12aa98]
MOV AL,0x1
CALL 0x001289b0
JMP 0x00114bc3
LAB_00114ba5:
LEA RAX,[0x132e00]
MOV RDI,qword ptr [RAX]
MOVSD XMM0,qword ptr [RSP + 0x8]
LEA RSI,[0x12aa98]
MOV AL,0x1
CALL 0x00101100
LAB_00114bc3:
LEA RAX,[0x13304c]
MOV ECX,dword ptr [RAX]
ADD ECX,0x1
LEA RAX,[0x13304c]
MOV dword ptr [RAX],ECX
MOV dword ptr [RSP + 0x14],0x0
LAB_00114be0:
MOV EAX,dword ptr [RSP + 0x14]
ADD RSP,0x18
RET
|
/* LefDefParser::lefwLayerAntennaDiffAreaRatio(double) */
int4 LefDefParser::lefwLayerAntennaDiffAreaRatio(double param_1)
{
int4 local_4;
lefw54Num = 0x66;
if (lefwFile == (_IO_FILE *)0x0) {
local_4 = 1;
}
else if ((((lefwState == 7) || (lefwState == 0x1f)) || (lefwState == 6)) || (lefwState == 0x1c)) {
if ((lefwIsRouting == 0) && (lefwIsCut == 0)) {
local_4 = 3;
}
else if (DAT_00129200 <= versionNum) {
if (lefwWriteEncrypt == 0) {
fprintf(lefwFile," ANTENNADIFFAREARATIO %.11g ;\n",param_1);
}
else {
encPrint(lefwFile," ANTENNADIFFAREARATIO %.11g ;\n",param_1);
}
lefwLines = lefwLines + 1;
local_4 = 0;
}
else {
local_4 = 5;
}
}
else {
local_4 = 2;
}
return local_4;
}
| |
30,304 | common_chat_params_init_deepseek_r1(minja::chat_template const&, common_chat_inputs const&) | monkey531[P]llama/common/chat.cpp | static common_chat_params common_chat_params_init_deepseek_r1(const common_chat_template & tmpl, const struct common_chat_inputs & inputs) {
common_chat_params data;
data.grammar_lazy = inputs.tool_choice != "required";
data.grammar = build_grammar([&](const common_grammar_builder & builder) {
std::vector<std::string> tool_rules;
foreach_function(inputs.tools, [&](const json & tool) {
const auto & function = tool["function"];
std::string name = function["name"];
auto parameters = function["parameters"];
auto args_rule = builder.add_schema(name + "-args", parameters);
tool_rules.push_back(builder.add_rule(name + "-call",
"\"<|tool▁call▁begin|>function<|tool▁sep|>" + name + "\\n```json\\n\" " + args_rule + " \"```<|tool▁call▁end|>\""));
});
data.grammar_triggers.push_back({"<|tool▁calls▁begin|>", /* .at_start = */ false});
data.preserved_tokens = {
"<|tool▁sep|>",
"<|tool▁call▁end|>",
};
builder.add_rule("root", "\"<|tool▁calls▁begin|>\" (" + string_join(tool_rules, " | ") + ")" + (inputs.parallel_tool_calls ? "*" : "") + " space");
}, grammar_options);
data.prompt = tmpl.apply(inputs.messages, inputs.tools.empty() ? json() : inputs.tools, inputs.add_generation_prompt);
data.format = COMMON_CHAT_FORMAT_DEEPSEEK_R1;
return data;
} | O0 | cpp | common_chat_params_init_deepseek_r1(minja::chat_template const&, common_chat_inputs const&):
subq $0x118, %rsp # imm = 0x118
movq %rdi, 0x38(%rsp)
movq %rdi, %rax
movq %rax, 0x30(%rsp)
movq %rdi, 0x110(%rsp)
movq %rsi, 0x108(%rsp)
movq %rdx, 0x100(%rsp)
movb $0x0, 0xff(%rsp)
callq 0x193c30
movq 0x100(%rsp), %rdi
addq $0x20, %rdi
leaq 0x5ecfe(%rip), %rsi # 0x1c326a
callq 0x11f930
movq 0x38(%rsp), %rdi
movb %al, 0x38(%rdi)
movq 0x100(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq %rdi, 0xb0(%rsp)
leaq 0xb8(%rsp), %rdi
movq %rdi, 0x40(%rsp)
leaq 0xa8(%rsp), %rsi
callq 0x179ce0
movq 0x40(%rsp), %rsi
leaq 0x66b5d(%rip), %rdx # 0x1cb114
leaq 0xd8(%rsp), %rdi
callq 0x19e3e0
jmp 0x1645c6
movq 0x38(%rsp), %rdi
addq $0x18, %rdi
leaq 0xd8(%rsp), %rsi
callq 0x527f0
leaq 0xd8(%rsp), %rdi
callq 0x53180
leaq 0xb8(%rsp), %rdi
callq 0x193ca0
movq 0x108(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x100(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x100(%rsp), %rdi
addq $0x10, %rdi
callq 0xb1b80
testb $0x1, %al
jne 0x164627
jmp 0x164637
leaq 0x58(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x7d530
jmp 0x164651
movq 0x100(%rsp), %rsi
addq $0x10, %rsi
leaq 0x58(%rsp), %rdi
callq 0x7ac50
jmp 0x16464f
jmp 0x164651
movq 0x100(%rsp), %rax
movzbl 0x68(%rax), %eax
movl %eax, 0x14(%rsp)
xorl %eax, %eax
movl %eax, %esi
leaq 0x48(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x7d530
movl 0x14(%rsp), %r8d
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x18(%rsp), %r9
movq %rsp, %rax
movl $0x1, (%rax)
andl $0x1, %r8d
leaq 0x68(%rsp), %rdi
leaq 0x58(%rsp), %rcx
callq 0x11a520
jmp 0x1646a6
leaq 0x88(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x7ec00
jmp 0x1646ba
movq 0x38(%rsp), %rdi
addq $0x8, %rdi
leaq 0x88(%rsp), %rsi
callq 0x7a770
leaq 0x88(%rsp), %rdi
callq 0x7a7f0
leaq 0x68(%rsp), %rdi
callq 0x53180
leaq 0x48(%rsp), %rdi
callq 0x7a7f0
leaq 0x58(%rsp), %rdi
callq 0x7a7f0
movq 0x38(%rsp), %rax
movl $0x5, (%rax)
movb $0x1, 0xff(%rsp)
testb $0x1, 0xff(%rsp)
jne 0x1647ae
jmp 0x1647a4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa0(%rsp)
movl %eax, 0x9c(%rsp)
leaq 0xb8(%rsp), %rdi
callq 0x193ca0
jmp 0x1647bb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa0(%rsp)
movl %eax, 0x9c(%rsp)
jmp 0x1647bb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa0(%rsp)
movl %eax, 0x9c(%rsp)
jmp 0x16478e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa0(%rsp)
movl %eax, 0x9c(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x53180
leaq 0x48(%rsp), %rdi
callq 0x7a7f0
leaq 0x58(%rsp), %rdi
callq 0x7a7f0
jmp 0x1647bb
movq 0x38(%rsp), %rdi
callq 0x7a820
movq 0x30(%rsp), %rax
addq $0x118, %rsp # imm = 0x118
retq
movq 0x38(%rsp), %rdi
callq 0x7a820
movq 0xa0(%rsp), %rdi
callq 0x529b0
nopw %cs:(%rax,%rax)
| _ZL35common_chat_params_init_deepseek_r1RKN5minja13chat_templateERK18common_chat_inputs:
sub rsp, 118h
mov [rsp+118h+var_E0], rdi
mov rax, rdi
mov [rsp+118h+var_E8], rax
mov [rsp+118h+var_8], rdi
mov [rsp+118h+var_10], rsi
mov [rsp+118h+var_18], rdx
mov [rsp+118h+var_19], 0
call _ZN18common_chat_paramsC2Ev; common_chat_params::common_chat_params(void)
mov rdi, [rsp+118h+var_18]
add rdi, 20h ; ' '
lea rsi, aRequired; "required"
call _ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_
mov rdi, [rsp+118h+var_E0]
mov [rdi+38h], al
mov rax, [rsp+118h+var_18]
mov [rsp+118h+var_70], rax
mov [rsp+118h+var_68], rdi
lea rdi, [rsp+118h+var_60]
mov [rsp+118h+var_D8], rdi
lea rsi, [rsp+118h+var_70]
call _ZNSt8functionIFvRK22common_grammar_builderEEC2IZL35common_chat_params_init_deepseek_r1RKN5minja13chat_templateERK18common_chat_inputsE3$_0vEEOT_; std::function<void ()(common_grammar_builder const&)>::function<common_chat_params_init_deepseek_r1(minja::chat_template const&,common_chat_inputs const&)::$_0,void>(common_chat_params_init_deepseek_r1(minja::chat_template const&,common_chat_inputs const&)::$_0 &&)
mov rsi, [rsp+118h+var_D8]
lea rdx, _ZL15grammar_options; grammar_options
lea rdi, [rsp+118h+var_40]
call _Z13build_grammarB5cxx11RKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_options; build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)
jmp short $+2
loc_1645C6:
mov rdi, [rsp+118h+var_E0]
add rdi, 18h
lea rsi, [rsp+118h+var_40]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
lea rdi, [rsp+118h+var_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+118h+var_60]
call _ZNSt8functionIFvRK22common_grammar_builderEED2Ev; std::function<void ()(common_grammar_builder const&)>::~function()
mov rax, [rsp+118h+var_10]
mov [rsp+118h+var_F8], rax
mov rax, [rsp+118h+var_18]
mov [rsp+118h+var_F0], rax
mov rdi, [rsp+118h+var_18]
add rdi, 10h
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5emptyEv; 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>::empty(void)
test al, 1
jnz short loc_164627
jmp short loc_164637
loc_164627:
lea rdi, [rsp+118h+var_C0]
xor eax, eax
mov esi, eax
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EDn; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(decltype(nullptr))
jmp short loc_164651
loc_164637:
mov rsi, [rsp+118h+var_18]
add rsi, 10h
lea rdi, [rsp+118h+var_C0]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
jmp short $+2
loc_16464F:
jmp short $+2
loc_164651:
mov rax, [rsp+118h+var_18]
movzx eax, byte ptr [rax+68h]
mov [rsp+118h+var_104], eax
xor eax, eax
mov esi, eax
lea rdi, [rsp+118h+var_D0]
mov [rsp+118h+var_100], rdi
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EDn; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(decltype(nullptr))
mov r8d, [rsp+118h+var_104]
mov rsi, [rsp+118h+var_F8]
mov rdx, [rsp+118h+var_F0]
mov r9, [rsp+118h+var_100]
mov rax, rsp
mov dword ptr [rax], 1
and r8d, 1
lea rdi, [rsp+118h+var_B0]
lea rcx, [rsp+118h+var_C0]
call _ZNK5minja13chat_template5applyERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEESH_bSH_b; minja::chat_template::apply(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,bool,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&,bool)
jmp short $+2
loc_1646A6:
lea rdi, [rsp+118h+var_90]
lea rsi, [rsp+118h+var_B0]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_
jmp short $+2
loc_1646BA:
mov rdi, [rsp+118h+var_E0]
add rdi, 8
lea rsi, [rsp+118h+var_90]
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>)
lea rdi, [rsp+118h+var_90]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
lea rdi, [rsp+118h+var_B0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+118h+var_D0]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
lea rdi, [rsp+118h+var_C0]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
mov rax, [rsp+118h+var_E0]
mov dword ptr [rax], 5
mov [rsp+118h+var_19], 1
test [rsp+118h+var_19], 1
jnz loc_1647AE
jmp loc_1647A4
mov rcx, rax
mov eax, edx
mov [rsp+arg_98], rcx
mov [rsp+arg_94], eax
lea rdi, [rsp+arg_B0]
call _ZNSt8functionIFvRK22common_grammar_builderEED2Ev; std::function<void ()(common_grammar_builder const&)>::~function()
jmp short loc_1647BB
mov rcx, rax
mov eax, edx
mov [rsp+arg_98], rcx
mov [rsp+arg_94], eax
jmp short loc_1647BB
mov rcx, rax
mov eax, edx
mov [rsp+arg_98], rcx
mov [rsp+arg_94], eax
jmp short loc_16478E
mov rcx, rax
mov eax, edx
mov [rsp+arg_98], rcx
mov [rsp+arg_94], eax
lea rdi, [rsp+arg_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_16478E:
lea rdi, [rsp+arg_40]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
lea rdi, [rsp+arg_50]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
jmp short loc_1647BB
loc_1647A4:
mov rdi, [rsp+118h+var_E0]; this
call _ZN18common_chat_paramsD2Ev; common_chat_params::~common_chat_params()
loc_1647AE:
mov rax, [rsp+118h+var_E8]
add rsp, 118h
retn
loc_1647BB:
mov rdi, [rsp+arg_30]; this
call _ZN18common_chat_paramsD2Ev; common_chat_params::~common_chat_params()
mov rdi, [rsp+arg_98]
call __Unwind_Resume
| const minja::chat_template * common_chat_params_init_deepseek_r1(
const minja::chat_template *a1,
const common_chat_inputs *a2,
long long a3)
{
int v3; // edx
int v4; // ecx
int v5; // r8d
int v6; // r9d
int v8; // [rsp+0h] [rbp-118h]
char v9; // [rsp+14h] [rbp-104h]
const common_chat_inputs *v10; // [rsp+20h] [rbp-F8h]
long long v11; // [rsp+28h] [rbp-F0h]
_BYTE v12[16]; // [rsp+48h] [rbp-D0h] BYREF
_BYTE v13[16]; // [rsp+58h] [rbp-C0h] BYREF
_BYTE v14[32]; // [rsp+68h] [rbp-B0h] BYREF
_OWORD v15[2]; // [rsp+88h] [rbp-90h] BYREF
_QWORD v16[2]; // [rsp+A8h] [rbp-70h] BYREF
_BYTE v17[32]; // [rsp+B8h] [rbp-60h] BYREF
_BYTE v18[40]; // [rsp+D8h] [rbp-40h] BYREF
long long v19; // [rsp+100h] [rbp-18h]
const common_chat_inputs *v20; // [rsp+108h] [rbp-10h]
const minja::chat_template *v21; // [rsp+110h] [rbp-8h]
v21 = a1;
v20 = a2;
v19 = a3;
v18[39] = 0;
common_chat_params::common_chat_params(a1);
*((_BYTE *)a1 + 56) = ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_(
v19 + 32,
(long long)"required",
v3,
v4,
v5,
v6);
v16[0] = v19;
v16[1] = a1;
std::function<void ()(common_grammar_builder const&)>::function<common_chat_params_init_deepseek_r1(minja::chat_template const&,common_chat_inputs const&)::$_0,void>(
v17,
v16);
build_grammar[abi:cxx11]((unsigned int)v18, v8);
std::string::operator=((char *)a1 + 24, v18);
std::string::~string(v18);
std::function<void ()(common_grammar_builder const&)>::~function(v17);
v10 = v20;
v11 = v19;
if ( (nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::empty(v19 + 16) & 1) != 0 )
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json((long long)v13);
else
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
(long long)v13,
v19 + 16);
v9 = *(_BYTE *)(v19 + 104);
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)v12);
minja::chat_template::apply((long long)v14, v10, v11, (long long)v13, v9 & 1, v12, 1);
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_(
v15,
(long long)v14);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
(long long)a1 + 8,
(long long)v15);
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)v15);
std::string::~string(v14);
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)v12);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v13);
*(_DWORD *)a1 = 5;
return a1;
}
| |||
30,305 | common_chat_params_init_deepseek_r1(minja::chat_template const&, common_chat_inputs const&) | monkey531[P]llama/common/chat.cpp | static common_chat_params common_chat_params_init_deepseek_r1(const common_chat_template & tmpl, const struct common_chat_inputs & inputs) {
common_chat_params data;
data.grammar_lazy = inputs.tool_choice != "required";
data.grammar = build_grammar([&](const common_grammar_builder & builder) {
std::vector<std::string> tool_rules;
foreach_function(inputs.tools, [&](const json & tool) {
const auto & function = tool["function"];
std::string name = function["name"];
auto parameters = function["parameters"];
auto args_rule = builder.add_schema(name + "-args", parameters);
tool_rules.push_back(builder.add_rule(name + "-call",
"\"<|tool▁call▁begin|>function<|tool▁sep|>" + name + "\\n```json\\n\" " + args_rule + " \"```<|tool▁call▁end|>\""));
});
data.grammar_triggers.push_back({"<|tool▁calls▁begin|>", /* .at_start = */ false});
data.preserved_tokens = {
"<|tool▁sep|>",
"<|tool▁call▁end|>",
};
builder.add_rule("root", "\"<|tool▁calls▁begin|>\" (" + string_join(tool_rules, " | ") + ")" + (inputs.parallel_tool_calls ? "*" : "") + " space");
}, grammar_options);
data.prompt = tmpl.apply(inputs.messages, inputs.tools.empty() ? json() : inputs.tools, inputs.add_generation_prompt);
data.format = COMMON_CHAT_FORMAT_DEEPSEEK_R1;
return data;
} | O1 | cpp | common_chat_params_init_deepseek_r1(minja::chat_template const&, common_chat_inputs const&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movl $0x0, (%rdi)
xorl %eax, %eax
movb %al, 0x8(%rdi)
movq %rax, 0x10(%rdi)
leaq 0x28(%rdi), %rcx
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
movb %al, 0x28(%rdi)
movb %al, 0x38(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rdi)
movups %xmm0, 0x50(%rdi)
movups %xmm0, 0x60(%rdi)
movups %xmm0, 0x70(%rdi)
movq %rax, 0x80(%rdi)
leaq 0x20(%rdx), %rdi
leaq 0x28c81(%rip), %rsi # 0xb077f
callq 0x6e5a7
movb %al, 0x38(%rbx)
leaq 0x10(%rsp), %rsi
xorps %xmm0, %xmm0
movaps %xmm0, (%rsi)
movaps %xmm0, 0x10(%rsi)
movq %r14, (%rsi)
movq %rbx, 0x8(%rsi)
leaq 0xd447(%rip), %rax # 0x94f6a
movq %rax, 0x18(%rsi)
leaq 0xdad8(%rip), %rax # 0x95606
movq %rax, 0x10(%rsi)
leaq 0x2faf3(%rip), %rdx # 0xb762c
leaq 0x38(%rsp), %rdi
callq 0x9d566
leaq 0x18(%rbx), %rdi
leaq 0x38(%rsp), %r12
movq %r12, %rsi
callq 0x19850
movq (%r12), %rdi
leaq 0x48(%rsp), %r12
cmpq %r12, %rdi
je 0x87b6f
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x196e0
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0x87b88
leaq 0x10(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movzbl 0x10(%r14), %eax
leal -0x1(%rax), %ecx
cmpl $0x2, %ecx
jae 0x87bb2
movq 0x18(%r14), %rax
movq (%rax), %rcx
cmpq 0x8(%rax), %rcx
je 0x87bb6
leaq 0x10(%r14), %rsi
leaq 0x10(%rsp), %rdi
callq 0x2fe56
jmp 0x87bc4
testl %eax, %eax
jne 0x87ba2
movb $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movzbl 0x68(%r14), %r8d
leaq 0x58(%rsp), %r9
movb $0x0, (%r9)
movq $0x0, 0x8(%r9)
movl $0x1, (%rsp)
leaq 0x38(%rsp), %rdi
leaq 0x10(%rsp), %rcx
movq %r15, %rsi
movq %r14, %rdx
callq 0x6ac66
leaq 0x68(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x312d8
movb 0x8(%rbx), %al
leaq 0x68(%rsp), %rdi
movb (%rdi), %cl
movb %cl, 0x8(%rbx)
movb %al, (%rdi)
movq 0x10(%rbx), %rax
movq 0x8(%rdi), %rcx
movq %rcx, 0x10(%rbx)
movq %rax, 0x8(%rdi)
callq 0x4fdb4
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0x87c40
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x196e0
leaq 0x58(%rsp), %rdi
callq 0x4fdb4
leaq 0x10(%rsp), %rdi
callq 0x4fdb4
movl $0x5, (%rbx)
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
jmp 0x87cc1
jmp 0x87cd1
movq %rax, %r14
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0x87c8f
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x196e0
jmp 0x87c8f
movq %rax, %r14
leaq 0x58(%rsp), %rdi
callq 0x4fdb4
leaq 0x10(%rsp), %rdi
callq 0x4fdb4
jmp 0x87cc1
movq %rax, %r14
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0x87cc1
leaq 0x10(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rdi
callq 0x2fbc6
movq %r14, %rdi
callq 0x19c10
movq %rax, %rdi
callq 0x208a9
| _ZL35common_chat_params_init_deepseek_r1RKN5minja13chat_templateERK18common_chat_inputs:
push r15
push r14
push r12
push rbx
sub rsp, 78h
mov r14, rdx
mov r15, rsi
mov rbx, rdi
mov dword ptr [rdi], 0
xor eax, eax
mov [rdi+8], al
mov [rdi+10h], rax
lea rcx, [rdi+28h]
mov [rdi+18h], rcx
mov [rdi+20h], rax
mov [rdi+28h], al
mov [rdi+38h], al
xorps xmm0, xmm0
movups xmmword ptr [rdi+40h], xmm0
movups xmmword ptr [rdi+50h], xmm0
movups xmmword ptr [rdi+60h], xmm0
movups xmmword ptr [rdi+70h], xmm0
mov [rdi+80h], rax
lea rdi, [rdx+20h]
lea rsi, aRequired; "required"
call _ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_
mov [rbx+38h], al
lea rsi, [rsp+98h+var_88]
xorps xmm0, xmm0
movaps xmmword ptr [rsi], xmm0
movaps xmmword ptr [rsi+10h], xmm0
mov [rsi], r14
mov [rsi+8], rbx
lea rax, _ZNSt17_Function_handlerIFvRK22common_grammar_builderEZL35common_chat_params_init_deepseek_r1RKN5minja13chat_templateERK18common_chat_inputsE3$_0E9_M_invokeERKSt9_Any_dataS2_; std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_deepseek_r1(minja::chat_template const&,common_chat_inputs const&)::$_0>::_M_invoke(std::_Any_data const&,common_grammar_builder const&)
mov [rsi+18h], rax
lea rax, _ZNSt17_Function_handlerIFvRK22common_grammar_builderEZL35common_chat_params_init_deepseek_r1RKN5minja13chat_templateERK18common_chat_inputsE3$_0E10_M_managerERSt9_Any_dataRKSD_St18_Manager_operation; std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_deepseek_r1(minja::chat_template const&,common_chat_inputs const&)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation)
mov [rsi+10h], rax
lea rdx, _ZL15grammar_options; grammar_options
lea rdi, [rsp+98h+var_60]
call _Z13build_grammarB5cxx11RKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_options; build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)
lea rdi, [rbx+18h]
lea r12, [rsp+98h+var_60]
mov rsi, r12
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [r12]; void *
lea r12, [rsp+98h+var_50]
cmp rdi, r12
jz short loc_87B6F
mov rsi, [rsp+98h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_87B6F:
mov rax, [rsp+98h+var_78]
test rax, rax
jz short loc_87B88
lea rdi, [rsp+98h+var_88]
mov rsi, rdi
mov edx, 3
call rax
loc_87B88:
movzx eax, byte ptr [r14+10h]
lea ecx, [rax-1]
cmp ecx, 2
jnb short loc_87BB2
mov rax, [r14+18h]
mov rcx, [rax]
cmp rcx, [rax+8]
jz short loc_87BB6
loc_87BA2:
lea rsi, [r14+10h]
lea rdi, [rsp+98h+var_88]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
jmp short loc_87BC4
loc_87BB2:
test eax, eax
jnz short loc_87BA2
loc_87BB6:
mov [rsp+98h+var_88], 0
mov [rsp+98h+var_80], 0
loc_87BC4:
movzx r8d, byte ptr [r14+68h]
lea r9, [rsp+98h+var_40]
mov byte ptr [r9], 0
mov qword ptr [r9+8], 0
mov [rsp+98h+var_98], 1
lea rdi, [rsp+98h+var_60]
lea rcx, [rsp+98h+var_88]
mov rsi, r15
mov rdx, r14
call _ZNK5minja13chat_template5applyERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEESH_bSH_b; minja::chat_template::apply(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,bool,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&,bool)
lea rdi, [rsp+98h+var_30]
lea rsi, [rsp+98h+var_60]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_
mov al, [rbx+8]
lea rdi, [rsp+98h+var_30]
mov cl, [rdi]
mov [rbx+8], cl
mov [rdi], al
mov rax, [rbx+10h]
mov rcx, [rdi+8]
mov [rbx+10h], rcx
mov [rdi+8], rax
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, [rsp+98h+var_60]; void *
cmp rdi, r12
jz short loc_87C40
mov rsi, [rsp+98h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_87C40:
lea rdi, [rsp+98h+var_40]
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 rdi, [rsp+98h+var_88]
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 dword ptr [rbx], 5
mov rax, rbx
add rsp, 78h
pop rbx
pop r12
pop r14
pop r15
retn
mov r14, rax
jmp short loc_87CC1
jmp short loc_87CD1
mov r14, rax
mov rdi, [rsp+98h+var_60]; void *
cmp rdi, r12
jz short loc_87C8F
mov rsi, [rsp+98h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_87C8F
mov r14, rax
loc_87C8F:
lea rdi, [rsp+98h+var_40]
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 rdi, [rsp+98h+var_88]
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_87CC1
mov r14, rax
mov rax, [rsp+98h+var_78]
test rax, rax
jz short loc_87CC1
lea rdi, [rsp+98h+var_88]
mov rsi, rdi
mov edx, 3
call rax
loc_87CC1:
mov rdi, rbx; this
call _ZN18common_chat_paramsD2Ev; common_chat_params::~common_chat_params()
mov rdi, r14
call __Unwind_Resume
loc_87CD1:
mov rdi, rax
call __clang_call_terminate
| const minja::chat_template * common_chat_params_init_deepseek_r1(
const minja::chat_template *a1,
const common_chat_inputs *a2,
long long a3)
{
int v4; // r8d
char v5; // al
long long v6; // rax
long long v8; // [rsp+10h] [rbp-88h] BYREF
const minja::chat_template *v9; // [rsp+18h] [rbp-80h]
long long ( *v10)(); // [rsp+20h] [rbp-78h]
long long ( *v11)(); // [rsp+28h] [rbp-70h]
void *v12[2]; // [rsp+38h] [rbp-60h] BYREF
_QWORD v13[2]; // [rsp+48h] [rbp-50h] BYREF
void *v14[2]; // [rsp+58h] [rbp-40h] BYREF
_OWORD v15[3]; // [rsp+68h] [rbp-30h] BYREF
*(_DWORD *)a1 = 0;
*((_BYTE *)a1 + 8) = 0;
*((_QWORD *)a1 + 2) = 0LL;
*((_QWORD *)a1 + 3) = (char *)a1 + 40;
*((_QWORD *)a1 + 4) = 0LL;
*((_BYTE *)a1 + 40) = 0;
*((_BYTE *)a1 + 56) = 0;
*((_OWORD *)a1 + 4) = 0LL;
*((_OWORD *)a1 + 5) = 0LL;
*((_OWORD *)a1 + 6) = 0LL;
*((_OWORD *)a1 + 7) = 0LL;
*((_QWORD *)a1 + 16) = 0LL;
*((_BYTE *)a1 + 56) = ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_(
a3 + 32,
(long long)"required");
v8 = a3;
v9 = a1;
v11 = std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_deepseek_r1(minja::chat_template const&,common_chat_inputs const&)::$_0>::_M_invoke;
v10 = std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_deepseek_r1(minja::chat_template const&,common_chat_inputs const&)::$_0>::_M_manager;
build_grammar[abi:cxx11](v12, &v8, &grammar_options);
std::string::operator=((char *)a1 + 24, v12);
if ( v12[0] != v13 )
operator delete(v12[0], v13[0] + 1LL);
if ( v10 )
((void ( *)(long long *, long long *, long long))v10)(&v8, &v8, 3LL);
if ( (unsigned int)*(unsigned __int8 *)(a3 + 16) - 1 >= 2 )
{
if ( *(_BYTE *)(a3 + 16) )
goto LABEL_7;
}
else if ( **(_QWORD **)(a3 + 24) != *(_QWORD *)(*(_QWORD *)(a3 + 24) + 8LL) )
{
LABEL_7:
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
(long long)&v8,
a3 + 16);
goto LABEL_10;
}
LOBYTE(v8) = 0;
v9 = 0LL;
LABEL_10:
v4 = *(unsigned __int8 *)(a3 + 104);
LOBYTE(v14[0]) = 0;
v14[1] = 0LL;
minja::chat_template::apply((long long)v12, a2, a3, (unsigned __int8 *)&v8, v4, (unsigned __int8 *)v14, 1);
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_(v15);
v5 = *((_BYTE *)a1 + 8);
*((_BYTE *)a1 + 8) = v15[0];
LOBYTE(v15[0]) = v5;
v6 = *((_QWORD *)a1 + 2);
*((_QWORD *)a1 + 2) = *((_QWORD *)&v15[0] + 1);
*((_QWORD *)&v15[0] + 1) = v6;
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((void **)v15);
if ( v12[0] != v13 )
operator delete(v12[0], v13[0] + 1LL);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v14);
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((void **)&v8);
*(_DWORD *)a1 = 5;
return a1;
}
| common_chat_params_init_deepseek_r1:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
MOV dword ptr [RDI],0x0
XOR EAX,EAX
MOV byte ptr [RDI + 0x8],AL
MOV qword ptr [RDI + 0x10],RAX
LEA RCX,[RDI + 0x28]
MOV qword ptr [RDI + 0x18],RCX
MOV qword ptr [RDI + 0x20],RAX
MOV byte ptr [RDI + 0x28],AL
MOV byte ptr [RDI + 0x38],AL
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x40],XMM0
MOVUPS xmmword ptr [RDI + 0x50],XMM0
MOVUPS xmmword ptr [RDI + 0x60],XMM0
MOVUPS xmmword ptr [RDI + 0x70],XMM0
MOV qword ptr [RDI + 0x80],RAX
LEA RDI,[RDX + 0x20]
LEA RSI,[0x1b077f]
CALL 0x0016e5a7
MOV byte ptr [RBX + 0x38],AL
LEA RSI,[RSP + 0x10]
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSI],XMM0
MOVAPS xmmword ptr [RSI + 0x10],XMM0
MOV qword ptr [RSI],R14
MOV qword ptr [RSI + 0x8],RBX
LEA RAX,[0x194f6a]
MOV qword ptr [RSI + 0x18],RAX
LEA RAX,[0x195606]
MOV qword ptr [RSI + 0x10],RAX
LAB_00187b32:
LEA RDX,[0x1b762c]
LEA RDI,[RSP + 0x38]
CALL 0x0019d566
LEA RDI,[RBX + 0x18]
LEA R12,[RSP + 0x38]
MOV RSI,R12
CALL 0x00119850
MOV RDI,qword ptr [R12]
LEA R12,[RSP + 0x48]
CMP RDI,R12
JZ 0x00187b6f
MOV RSI,qword ptr [RSP + 0x48]
INC RSI
CALL 0x001196e0
LAB_00187b6f:
MOV RAX,qword ptr [RSP + 0x20]
TEST RAX,RAX
JZ 0x00187b88
LAB_00187b79:
LEA RDI,[RSP + 0x10]
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_00187b88:
MOVZX EAX,byte ptr [R14 + 0x10]
LEA ECX,[RAX + -0x1]
CMP ECX,0x2
JNC 0x00187bb2
MOV RAX,qword ptr [R14 + 0x18]
MOV RCX,qword ptr [RAX]
CMP RCX,qword ptr [RAX + 0x8]
JZ 0x00187bb6
LAB_00187ba2:
LEA RSI,[R14 + 0x10]
LEA RDI,[RSP + 0x10]
CALL 0x0012fe56
JMP 0x00187bc4
LAB_00187bb2:
TEST EAX,EAX
JNZ 0x00187ba2
LAB_00187bb6:
MOV byte ptr [RSP + 0x10],0x0
MOV qword ptr [RSP + 0x18],0x0
LAB_00187bc4:
MOVZX R8D,byte ptr [R14 + 0x68]
LEA R9,[RSP + 0x58]
MOV byte ptr [R9],0x0
MOV qword ptr [R9 + 0x8],0x0
LAB_00187bda:
MOV dword ptr [RSP],0x1
LEA RDI,[RSP + 0x38]
LEA RCX,[RSP + 0x10]
MOV RSI,R15
MOV RDX,R14
CALL 0x0016ac66
LAB_00187bf6:
LEA RDI,[RSP + 0x68]
LEA RSI,[RSP + 0x38]
CALL 0x001312d8
MOV AL,byte ptr [RBX + 0x8]
LEA RDI,[RSP + 0x68]
MOV CL,byte ptr [RDI]
MOV byte ptr [RBX + 0x8],CL
MOV byte ptr [RDI],AL
MOV RAX,qword ptr [RBX + 0x10]
MOV RCX,qword ptr [RDI + 0x8]
MOV qword ptr [RBX + 0x10],RCX
MOV qword ptr [RDI + 0x8],RAX
CALL 0x0014fdb4
MOV RDI,qword ptr [RSP + 0x38]
CMP RDI,R12
JZ 0x00187c40
MOV RSI,qword ptr [RSP + 0x48]
INC RSI
CALL 0x001196e0
LAB_00187c40:
LEA RDI,[RSP + 0x58]
CALL 0x0014fdb4
LEA RDI,[RSP + 0x10]
CALL 0x0014fdb4
MOV dword ptr [RBX],0x5
MOV RAX,RBX
ADD RSP,0x78
POP RBX
POP R12
POP R14
POP R15
RET
|
/* common_chat_params_init_deepseek_r1(minja::chat_template const&, common_chat_inputs const&) */
chat_template *
common_chat_params_init_deepseek_r1(chat_template *param_1,common_chat_inputs *param_2)
{
int8 uVar1;
chat_template cVar2;
ulong in_RDX;
ulong local_88;
chat_template *pcStack_80;
code *local_78;
code *pcStack_70;
long *local_60 [2];
long local_50 [2];
data local_40 [8];
int8 local_38;
chat_template local_30 [8];
int8 local_28;
*(int4 *)param_1 = 0;
param_1[8] = (chat_template)0x0;
*(int8 *)(param_1 + 0x10) = 0;
*(chat_template **)(param_1 + 0x18) = param_1 + 0x28;
*(int8 *)(param_1 + 0x20) = 0;
param_1[0x28] = (chat_template)0x0;
param_1[0x38] = (chat_template)0x0;
*(int8 *)(param_1 + 0x40) = 0;
*(int8 *)(param_1 + 0x48) = 0;
*(int8 *)(param_1 + 0x50) = 0;
*(int8 *)(param_1 + 0x58) = 0;
*(int8 *)(param_1 + 0x60) = 0;
*(int8 *)(param_1 + 0x68) = 0;
*(int8 *)(param_1 + 0x70) = 0;
*(int8 *)(param_1 + 0x78) = 0;
*(int8 *)(param_1 + 0x80) = 0;
cVar2 = (chat_template)
_ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_
(in_RDX + 0x20,"required");
param_1[0x38] = cVar2;
pcStack_70 = std::
_Function_handler<void(common_grammar_builder_const&),common_chat_params_init_deepseek_r1(minja::chat_template_const&,common_chat_inputs_const&)::$_0>
::_M_invoke;
local_78 = std::
_Function_handler<void(common_grammar_builder_const&),common_chat_params_init_deepseek_r1(minja::chat_template_const&,common_chat_inputs_const&)::$_0>
::_M_manager;
/* try { // try from 00187b32 to 00187b42 has its CatchHandler @ 00187ca5 */
local_88 = in_RDX;
pcStack_80 = param_1;
build_grammar_abi_cxx11_((function *)local_60,(common_grammar_options *)&local_88);
std::__cxx11::string::operator=((string *)(param_1 + 0x18),(string *)local_60);
if (local_60[0] != local_50) {
operator_delete(local_60[0],local_50[0] + 1);
}
if (local_78 != (code *)0x0) {
/* try { // try from 00187b79 to 00187b87 has its CatchHandler @ 00187c6e */
(*local_78)(&local_88,&local_88,3);
}
if (*(byte *)(in_RDX + 0x10) - 1 < 2) {
if (**(long **)(in_RDX + 0x18) == (*(long **)(in_RDX + 0x18))[1]) {
LAB_00187bb6:
local_88 = local_88 & 0xffffffffffffff00;
pcStack_80 = (chat_template *)0x0;
goto LAB_00187bc4;
}
}
else if (*(byte *)(in_RDX + 0x10) == 0) goto LAB_00187bb6;
/* try { // try from 00187ba2 to 00187baf has its CatchHandler @ 00187c69 */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)&local_88,(basic_json *)(in_RDX + 0x10));
LAB_00187bc4:
local_40[0] = (data)0x0;
local_38 = 0;
/* try { // try from 00187bda to 00187bf5 has its CatchHandler @ 00187c8c */
minja::chat_template::apply
((basic_json *)local_60,(basic_json *)param_2,SUB81(in_RDX,0),(basic_json *)&local_88,
*(bool *)(in_RDX + 0x68));
/* try { // try from 00187bf6 to 00187c04 has its CatchHandler @ 00187c70 */
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_
(local_30,local_60);
cVar2 = param_1[8];
param_1[8] = local_30[0];
uVar1 = *(int8 *)(param_1 + 0x10);
*(int8 *)(param_1 + 0x10) = local_28;
local_30[0] = cVar2;
local_28 = uVar1;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_30);
if (local_60[0] != local_50) {
operator_delete(local_60[0],local_50[0] + 1);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_40);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_88);
*(int4 *)param_1 = 5;
return param_1;
}
| |
30,306 | common_chat_params_init_deepseek_r1(minja::chat_template const&, common_chat_inputs const&) | monkey531[P]llama/common/chat.cpp | static common_chat_params common_chat_params_init_deepseek_r1(const common_chat_template & tmpl, const struct common_chat_inputs & inputs) {
common_chat_params data;
data.grammar_lazy = inputs.tool_choice != "required";
data.grammar = build_grammar([&](const common_grammar_builder & builder) {
std::vector<std::string> tool_rules;
foreach_function(inputs.tools, [&](const json & tool) {
const auto & function = tool["function"];
std::string name = function["name"];
auto parameters = function["parameters"];
auto args_rule = builder.add_schema(name + "-args", parameters);
tool_rules.push_back(builder.add_rule(name + "-call",
"\"<|tool▁call▁begin|>function<|tool▁sep|>" + name + "\\n```json\\n\" " + args_rule + " \"```<|tool▁call▁end|>\""));
});
data.grammar_triggers.push_back({"<|tool▁calls▁begin|>", /* .at_start = */ false});
data.preserved_tokens = {
"<|tool▁sep|>",
"<|tool▁call▁end|>",
};
builder.add_rule("root", "\"<|tool▁calls▁begin|>\" (" + string_join(tool_rules, " | ") + ")" + (inputs.parallel_tool_calls ? "*" : "") + " space");
}, grammar_options);
data.prompt = tmpl.apply(inputs.messages, inputs.tools.empty() ? json() : inputs.tools, inputs.add_generation_prompt);
data.format = COMMON_CHAT_FORMAT_DEEPSEEK_R1;
return data;
} | O3 | cpp | common_chat_params_init_deepseek_r1(minja::chat_template const&, common_chat_inputs const&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movl $0x0, (%rdi)
xorl %eax, %eax
movb %al, 0x8(%rdi)
movq %rax, 0x10(%rdi)
leaq 0x28(%rdi), %rcx
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
movb %al, 0x28(%rdi)
movb %al, 0x38(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rdi)
movups %xmm0, 0x50(%rdi)
movups %xmm0, 0x60(%rdi)
movups %xmm0, 0x70(%rdi)
movq %rax, 0x80(%rdi)
leaq 0x20(%rdx), %rdi
leaq 0x276a0(%rip), %rsi # 0xac76f
callq 0x6bdcd
movb %al, 0x38(%rbx)
leaq 0x8(%rsp), %rsi
movq %r14, (%rsi)
movq %rbx, 0x8(%rsi)
leaq 0xc926(%rip), %rax # 0x91a10
movq %rax, 0x18(%rsi)
leaq 0xcf63(%rip), %rax # 0x92058
movq %rax, 0x10(%rsi)
leaq 0x2e50c(%rip), %rdx # 0xb360c
leaq 0x28(%rsp), %rdi
callq 0x997ac
leaq 0x18(%rbx), %rdi
leaq 0x28(%rsp), %r12
movq %r12, %rsi
callq 0x18850
movq (%r12), %rdi
leaq 0x38(%rsp), %r12
cmpq %r12, %rdi
je 0x85136
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x186e0
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x8514f
leaq 0x8(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movzbl 0x10(%r14), %eax
testl %eax, %eax
je 0x8517f
cmpl $0x2, %eax
je 0x85162
cmpl $0x1, %eax
jne 0x8516f
movq 0x18(%r14), %rax
movq (%rax), %rcx
cmpq 0x8(%rax), %rcx
je 0x8517f
leaq 0x10(%r14), %rsi
leaq 0x8(%rsp), %rdi
callq 0x2dfb0
jmp 0x8518d
movb $0x0, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movzbl 0x68(%r14), %r8d
leaq 0x48(%rsp), %r9
movb $0x0, (%r9)
movq $0x0, 0x8(%r9)
movl $0x1, (%rsp)
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rcx
movq %r15, %rsi
movq %r14, %rdx
callq 0x684ec
leaq 0x58(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x2f304
movb 0x8(%rbx), %al
leaq 0x58(%rsp), %rdi
movb (%rdi), %cl
movb %cl, 0x8(%rbx)
movb %al, (%rdi)
movq 0x10(%rbx), %rax
movq 0x8(%rdi), %rcx
movq %rcx, 0x10(%rbx)
movq %rax, 0x8(%rdi)
callq 0x4d7e0
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x85209
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x186e0
leaq 0x48(%rsp), %rdi
callq 0x4d7e0
leaq 0x8(%rsp), %rdi
callq 0x4d7e0
movl $0x5, (%rbx)
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
jmp 0x85287
jmp 0x85297
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x85255
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x186e0
jmp 0x85255
movq %rax, %r14
leaq 0x48(%rsp), %rdi
callq 0x4d7e0
leaq 0x8(%rsp), %rdi
callq 0x4d7e0
jmp 0x85287
movq %rax, %r14
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x85287
leaq 0x8(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rdi
callq 0x2dd20
movq %r14, %rdi
callq 0x18c10
movq %rax, %rdi
callq 0x1f25d
| _ZL35common_chat_params_init_deepseek_r1RKN5minja13chat_templateERK18common_chat_inputs:
push r15
push r14
push r12
push rbx
sub rsp, 68h
mov r14, rdx
mov r15, rsi
mov rbx, rdi
mov dword ptr [rdi], 0
xor eax, eax
mov [rdi+8], al
mov [rdi+10h], rax
lea rcx, [rdi+28h]
mov [rdi+18h], rcx
mov [rdi+20h], rax
mov [rdi+28h], al
mov [rdi+38h], al
xorps xmm0, xmm0
movups xmmword ptr [rdi+40h], xmm0
movups xmmword ptr [rdi+50h], xmm0
movups xmmword ptr [rdi+60h], xmm0
movups xmmword ptr [rdi+70h], xmm0
mov [rdi+80h], rax
lea rdi, [rdx+20h]
lea rsi, aRequired; "required"
call _ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_
mov [rbx+38h], al
lea rsi, [rsp+88h+var_80]
mov [rsi], r14
mov [rsi+8], rbx
lea rax, _ZNSt17_Function_handlerIFvRK22common_grammar_builderEZL35common_chat_params_init_deepseek_r1RKN5minja13chat_templateERK18common_chat_inputsE3$_0E9_M_invokeERKSt9_Any_dataS2_; std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_deepseek_r1(minja::chat_template const&,common_chat_inputs const&)::$_0>::_M_invoke(std::_Any_data const&,common_grammar_builder const&)
mov [rsi+18h], rax
lea rax, _ZNSt17_Function_handlerIFvRK22common_grammar_builderEZL35common_chat_params_init_deepseek_r1RKN5minja13chat_templateERK18common_chat_inputsE3$_0E10_M_managerERSt9_Any_dataRKSD_St18_Manager_operation; std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_deepseek_r1(minja::chat_template const&,common_chat_inputs const&)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation)
mov [rsi+10h], rax
lea rdx, _ZL15grammar_options; grammar_options
lea rdi, [rsp+88h+var_60]
call _Z13build_grammarB5cxx11RKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_options; build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)
lea rdi, [rbx+18h]
lea r12, [rsp+88h+var_60]
mov rsi, r12
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [r12]; void *
lea r12, [rsp+88h+var_50]
cmp rdi, r12
jz short loc_85136
mov rsi, [rsp+88h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_85136:
mov rax, [rsp+88h+var_70]
test rax, rax
jz short loc_8514F
lea rdi, [rsp+88h+var_80]
mov rsi, rdi
mov edx, 3
call rax
loc_8514F:
movzx eax, byte ptr [r14+10h]
test eax, eax
jz short loc_8517F
cmp eax, 2
jz short loc_85162
cmp eax, 1
jnz short loc_8516F
loc_85162:
mov rax, [r14+18h]
mov rcx, [rax]
cmp rcx, [rax+8]
jz short loc_8517F
loc_8516F:
lea rsi, [r14+10h]
lea rdi, [rsp+88h+var_80]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
jmp short loc_8518D
loc_8517F:
mov [rsp+88h+var_80], 0
mov [rsp+88h+var_78], 0
loc_8518D:
movzx r8d, byte ptr [r14+68h]
lea r9, [rsp+88h+var_40]
mov byte ptr [r9], 0
mov qword ptr [r9+8], 0
mov [rsp+88h+var_88], 1
lea rdi, [rsp+88h+var_60]
lea rcx, [rsp+88h+var_80]
mov rsi, r15
mov rdx, r14
call _ZNK5minja13chat_template5applyERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEESH_bSH_b; minja::chat_template::apply(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,bool,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&,bool)
lea rdi, [rsp+88h+var_30]
lea rsi, [rsp+88h+var_60]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_
mov al, [rbx+8]
lea rdi, [rsp+88h+var_30]
mov cl, [rdi]
mov [rbx+8], cl
mov [rdi], al
mov rax, [rbx+10h]
mov rcx, [rdi+8]
mov [rbx+10h], rcx
mov [rdi+8], rax
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, [rsp+88h+var_60]; void *
cmp rdi, r12
jz short loc_85209
mov rsi, [rsp+88h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_85209:
lea rdi, [rsp+88h+var_40]
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 rdi, [rsp+88h+var_80]
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 dword ptr [rbx], 5
add rsp, 68h
pop rbx
pop r12
pop r14
pop r15
retn
mov r14, rax
jmp short loc_85287
jmp short loc_85297
mov r14, rax
mov rdi, [rsp+88h+var_60]; void *
cmp rdi, r12
jz short loc_85255
mov rsi, [rsp+88h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_85255
mov r14, rax
loc_85255:
lea rdi, [rsp+88h+var_40]
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 rdi, [rsp+88h+var_80]
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_85287
mov r14, rax
mov rax, [rsp+88h+var_70]
test rax, rax
jz short loc_85287
lea rdi, [rsp+88h+var_80]
mov rsi, rdi
mov edx, 3
call rax
loc_85287:
mov rdi, rbx; this
call _ZN18common_chat_paramsD2Ev; common_chat_params::~common_chat_params()
mov rdi, r14
call __Unwind_Resume
loc_85297:
mov rdi, rax
call __clang_call_terminate
| void common_chat_params_init_deepseek_r1(
const minja::chat_template *a1,
const common_chat_inputs *a2,
long long a3)
{
int v4; // eax
int v5; // r8d
char v6; // al
long long v7; // rax
void **v8; // [rsp+8h] [rbp-80h] BYREF
const minja::chat_template *v9; // [rsp+10h] [rbp-78h]
long long ( *v10)(); // [rsp+18h] [rbp-70h]
long long ( *v11)(); // [rsp+20h] [rbp-68h]
void *v12[2]; // [rsp+28h] [rbp-60h] BYREF
_QWORD v13[2]; // [rsp+38h] [rbp-50h] BYREF
void **v14[2]; // [rsp+48h] [rbp-40h] BYREF
_OWORD v15[3]; // [rsp+58h] [rbp-30h] BYREF
*(_DWORD *)a1 = 0;
*((_BYTE *)a1 + 8) = 0;
*((_QWORD *)a1 + 2) = 0LL;
*((_QWORD *)a1 + 3) = (char *)a1 + 40;
*((_QWORD *)a1 + 4) = 0LL;
*((_BYTE *)a1 + 40) = 0;
*((_BYTE *)a1 + 56) = 0;
*((_OWORD *)a1 + 4) = 0LL;
*((_OWORD *)a1 + 5) = 0LL;
*((_OWORD *)a1 + 6) = 0LL;
*((_OWORD *)a1 + 7) = 0LL;
*((_QWORD *)a1 + 16) = 0LL;
*((_BYTE *)a1 + 56) = ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_(
a3 + 32,
(long long)"required");
v8 = (void **)a3;
v9 = a1;
v11 = std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_deepseek_r1(minja::chat_template const&,common_chat_inputs const&)::$_0>::_M_invoke;
v10 = std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_deepseek_r1(minja::chat_template const&,common_chat_inputs const&)::$_0>::_M_manager;
build_grammar[abi:cxx11](v12, &v8, &grammar_options);
std::string::operator=((char *)a1 + 24, v12);
if ( v12[0] != v13 )
operator delete(v12[0], v13[0] + 1LL);
if ( v10 )
((void ( *)(void ***, void ***, long long))v10)(&v8, &v8, 3LL);
v4 = *(unsigned __int8 *)(a3 + 16);
if ( !*(_BYTE *)(a3 + 16) || (v4 == 2 || v4 == 1) && **(_QWORD **)(a3 + 24) == *(_QWORD *)(*(_QWORD *)(a3 + 24) + 8LL) )
{
LOBYTE(v8) = 0;
v9 = 0LL;
}
else
{
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
(long long)&v8,
a3 + 16);
}
v5 = *(unsigned __int8 *)(a3 + 104);
LOBYTE(v14[0]) = 0;
v14[1] = 0LL;
minja::chat_template::apply((long long)v12, a2, a3, (unsigned __int8 *)&v8, v5, v14, 1);
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_(v15);
v6 = *((_BYTE *)a1 + 8);
*((_BYTE *)a1 + 8) = v15[0];
LOBYTE(v15[0]) = v6;
v7 = *((_QWORD *)a1 + 2);
*((_QWORD *)a1 + 2) = *((_QWORD *)&v15[0] + 1);
*((_QWORD *)&v15[0] + 1) = 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((void ***)v15);
if ( v12[0] != v13 )
operator delete(v12[0], v13[0] + 1LL);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v14);
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);
*(_DWORD *)a1 = 5;
}
| common_chat_params_init_deepseek_r1:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
MOV dword ptr [RDI],0x0
XOR EAX,EAX
MOV byte ptr [RDI + 0x8],AL
MOV qword ptr [RDI + 0x10],RAX
LEA RCX,[RDI + 0x28]
MOV qword ptr [RDI + 0x18],RCX
MOV qword ptr [RDI + 0x20],RAX
MOV byte ptr [RDI + 0x28],AL
MOV byte ptr [RDI + 0x38],AL
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x40],XMM0
MOVUPS xmmword ptr [RDI + 0x50],XMM0
MOVUPS xmmword ptr [RDI + 0x60],XMM0
MOVUPS xmmword ptr [RDI + 0x70],XMM0
MOV qword ptr [RDI + 0x80],RAX
LEA RDI,[RDX + 0x20]
LEA RSI,[0x1ac76f]
CALL 0x0016bdcd
MOV byte ptr [RBX + 0x38],AL
LEA RSI,[RSP + 0x8]
MOV qword ptr [RSI],R14
MOV qword ptr [RSI + 0x8],RBX
LEA RAX,[0x191a10]
MOV qword ptr [RSI + 0x18],RAX
LEA RAX,[0x192058]
MOV qword ptr [RSI + 0x10],RAX
LAB_001850f9:
LEA RDX,[0x1b360c]
LEA RDI,[RSP + 0x28]
CALL 0x001997ac
LEA RDI,[RBX + 0x18]
LEA R12,[RSP + 0x28]
MOV RSI,R12
CALL 0x00118850
MOV RDI,qword ptr [R12]
LEA R12,[RSP + 0x38]
CMP RDI,R12
JZ 0x00185136
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x001186e0
LAB_00185136:
MOV RAX,qword ptr [RSP + 0x18]
TEST RAX,RAX
JZ 0x0018514f
LAB_00185140:
LEA RDI,[RSP + 0x8]
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_0018514f:
MOVZX EAX,byte ptr [R14 + 0x10]
TEST EAX,EAX
JZ 0x0018517f
CMP EAX,0x2
JZ 0x00185162
CMP EAX,0x1
JNZ 0x0018516f
LAB_00185162:
MOV RAX,qword ptr [R14 + 0x18]
MOV RCX,qword ptr [RAX]
CMP RCX,qword ptr [RAX + 0x8]
JZ 0x0018517f
LAB_0018516f:
LEA RSI,[R14 + 0x10]
LEA RDI,[RSP + 0x8]
CALL 0x0012dfb0
JMP 0x0018518d
LAB_0018517f:
MOV byte ptr [RSP + 0x8],0x0
MOV qword ptr [RSP + 0x10],0x0
LAB_0018518d:
MOVZX R8D,byte ptr [R14 + 0x68]
LEA R9,[RSP + 0x48]
MOV byte ptr [R9],0x0
MOV qword ptr [R9 + 0x8],0x0
LAB_001851a3:
MOV dword ptr [RSP],0x1
LEA RDI,[RSP + 0x28]
LEA RCX,[RSP + 0x8]
MOV RSI,R15
MOV RDX,R14
CALL 0x001684ec
LAB_001851bf:
LEA RDI,[RSP + 0x58]
LEA RSI,[RSP + 0x28]
CALL 0x0012f304
MOV AL,byte ptr [RBX + 0x8]
LEA RDI,[RSP + 0x58]
MOV CL,byte ptr [RDI]
MOV byte ptr [RBX + 0x8],CL
MOV byte ptr [RDI],AL
MOV RAX,qword ptr [RBX + 0x10]
MOV RCX,qword ptr [RDI + 0x8]
MOV qword ptr [RBX + 0x10],RCX
MOV qword ptr [RDI + 0x8],RAX
CALL 0x0014d7e0
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R12
JZ 0x00185209
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x001186e0
LAB_00185209:
LEA RDI,[RSP + 0x48]
CALL 0x0014d7e0
LEA RDI,[RSP + 0x8]
CALL 0x0014d7e0
MOV dword ptr [RBX],0x5
ADD RSP,0x68
POP RBX
POP R12
POP R14
POP R15
RET
|
/* common_chat_params_init_deepseek_r1(minja::chat_template const&, common_chat_inputs const&) */
void common_chat_params_init_deepseek_r1(chat_template *param_1,common_chat_inputs *param_2)
{
char cVar1;
int8 uVar2;
chat_template cVar3;
ulong in_RDX;
ulong local_80;
chat_template *local_78;
code *local_70;
code *local_68;
long *local_60 [2];
long local_50 [2];
data local_40 [8];
int8 local_38;
chat_template local_30 [8];
int8 local_28;
*(int4 *)param_1 = 0;
param_1[8] = (chat_template)0x0;
*(int8 *)(param_1 + 0x10) = 0;
*(chat_template **)(param_1 + 0x18) = param_1 + 0x28;
*(int8 *)(param_1 + 0x20) = 0;
param_1[0x28] = (chat_template)0x0;
param_1[0x38] = (chat_template)0x0;
*(int8 *)(param_1 + 0x40) = 0;
*(int8 *)(param_1 + 0x48) = 0;
*(int8 *)(param_1 + 0x50) = 0;
*(int8 *)(param_1 + 0x58) = 0;
*(int8 *)(param_1 + 0x60) = 0;
*(int8 *)(param_1 + 0x68) = 0;
*(int8 *)(param_1 + 0x70) = 0;
*(int8 *)(param_1 + 0x78) = 0;
*(int8 *)(param_1 + 0x80) = 0;
cVar3 = (chat_template)
_ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_
(in_RDX + 0x20,"required");
param_1[0x38] = cVar3;
local_68 = std::
_Function_handler<void(common_grammar_builder_const&),common_chat_params_init_deepseek_r1(minja::chat_template_const&,common_chat_inputs_const&)::$_0>
::_M_invoke;
local_70 = std::
_Function_handler<void(common_grammar_builder_const&),common_chat_params_init_deepseek_r1(minja::chat_template_const&,common_chat_inputs_const&)::$_0>
::_M_manager;
/* try { // try from 001850f9 to 00185109 has its CatchHandler @ 0018526b */
local_80 = in_RDX;
local_78 = param_1;
build_grammar_abi_cxx11_((function *)local_60,(common_grammar_options *)&local_80);
std::__cxx11::string::operator=((string *)(param_1 + 0x18),(string *)local_60);
if (local_60[0] != local_50) {
operator_delete(local_60[0],local_50[0] + 1);
}
if (local_70 != (code *)0x0) {
/* try { // try from 00185140 to 0018514e has its CatchHandler @ 00185234 */
(*local_70)(&local_80,&local_80,3);
}
cVar1 = *(char *)(in_RDX + 0x10);
if ((cVar1 == '\0') ||
(((cVar1 == '\x02' || (cVar1 == '\x01')) &&
(**(long **)(in_RDX + 0x18) == (*(long **)(in_RDX + 0x18))[1])))) {
local_80 = local_80 & 0xffffffffffffff00;
local_78 = (chat_template *)0x0;
}
else {
/* try { // try from 0018516f to 0018517c has its CatchHandler @ 0018522f */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)&local_80,(basic_json *)(in_RDX + 0x10));
}
local_40[0] = (data)0x0;
local_38 = 0;
/* try { // try from 001851a3 to 001851be has its CatchHandler @ 00185252 */
minja::chat_template::apply
((basic_json *)local_60,(basic_json *)param_2,SUB81(in_RDX,0),(basic_json *)&local_80,
*(bool *)(in_RDX + 0x68));
/* try { // try from 001851bf to 001851cd has its CatchHandler @ 00185236 */
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_
(local_30,local_60);
cVar3 = param_1[8];
param_1[8] = local_30[0];
uVar2 = *(int8 *)(param_1 + 0x10);
*(int8 *)(param_1 + 0x10) = local_28;
local_30[0] = cVar3;
local_28 = uVar2;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_30);
if (local_60[0] != local_50) {
operator_delete(local_60[0],local_50[0] + 1);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_40);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_80);
*(int4 *)param_1 = 5;
return;
}
| |
30,307 | my_uni_ucs2 | eloqsql/strings/ctype-ucs2.c | static int my_uni_ucs2(CHARSET_INFO *cs __attribute__((unused)) ,
my_wc_t wc, uchar *r, uchar *e)
{
if ( r+2 > e )
return MY_CS_TOOSMALL2;
if (wc > 0xFFFF) /* UCS2 does not support characters outside BMP */
return MY_CS_ILUNI;
r[0]= (uchar) (wc >> 8);
r[1]= (uchar) (wc & 0xFF);
return 2;
} | O0 | c | my_uni_ucs2:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x20(%rbp), %rax
addq $0x2, %rax
cmpq -0x28(%rbp), %rax
jbe 0x1373edb
movl $0xffffff9a, -0x4(%rbp) # imm = 0xFFFFFF9A
jmp 0x1373f18
cmpq $0xffff, -0x18(%rbp) # imm = 0xFFFF
jbe 0x1373eee
movl $0x0, -0x4(%rbp)
jmp 0x1373f18
movq -0x18(%rbp), %rax
shrq $0x8, %rax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, (%rax)
movq -0x18(%rbp), %rax
andq $0xff, %rax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, 0x1(%rax)
movl $0x2, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax)
| my_uni_ucs2:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_20]
add rax, 2
cmp rax, [rbp+var_28]
jbe short loc_1373EDB
mov [rbp+var_4], 0FFFFFF9Ah
jmp short loc_1373F18
loc_1373EDB:
cmp [rbp+var_18], 0FFFFh
jbe short loc_1373EEE
mov [rbp+var_4], 0
jmp short loc_1373F18
loc_1373EEE:
mov rax, [rbp+var_18]
shr rax, 8
mov cl, al
mov rax, [rbp+var_20]
mov [rax], cl
mov rax, [rbp+var_18]
and rax, 0FFh
mov cl, al
mov rax, [rbp+var_20]
mov [rax+1], cl
mov [rbp+var_4], 2
loc_1373F18:
mov eax, [rbp+var_4]
pop rbp
retn
| long long my_uni_ucs2(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4)
{
if ( (unsigned long long)(a3 + 2) <= a4 )
{
if ( a2 <= 0xFFFF )
{
*a3 = BYTE1(a2);
a3[1] = a2;
return 2;
}
else
{
return 0;
}
}
else
{
return (unsigned int)-102;
}
}
| dict_stats_process_entry_from_defrag_pool:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
JMP 0x01373ebe
LAB_01373ebe:
LEA RDI,[RBP + -0x10]
LEA RSI,[RBP + -0x18]
CALL 0x01374a80
TEST AL,0x1
JNZ 0x01373ed4
JMP 0x01373f6b
LAB_01373ed4:
MOV qword ptr [RBP + -0x20],0x0
MOV RDI,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x8]
XOR ESI,ESI
MOV EDX,0x3
LEA R8,[RBP + -0x20]
CALL 0x0113e4c0
MOV qword ptr [RBP + -0x28],RAX
CMP qword ptr [RBP + -0x28],0x0
JZ 0x01373f6b
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x48]
SHR RAX,0x2b
AND RAX,0x1
CMP EAX,0x0
JNZ 0x01373f27
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x01134080
MOV qword ptr [RBP + -0x38],RAX
JMP 0x01373f2f
LAB_01373f27:
XOR EAX,EAX
MOV qword ptr [RBP + -0x38],RAX
JMP 0x01373f2f
LAB_01373f2f:
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x30],RAX
CMP qword ptr [RBP + -0x30],0x0
JZ 0x01373f58
MOV RDI,qword ptr [RBP + -0x30]
CALL 0x011ca890
TEST AL,0x1
JNZ 0x01373f4d
JMP 0x01373f56
LAB_01373f4d:
MOV RDI,qword ptr [RBP + -0x30]
CALL 0x01374270
LAB_01373f56:
JMP 0x01373f58
LAB_01373f58:
MOV RDI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RBP + -0x20]
XOR ESI,ESI
CALL 0x01131690
LAB_01373f6b:
ADD RSP,0x40
POP RBP
RET
|
/* dict_stats_process_entry_from_defrag_pool(THD*) */
void dict_stats_process_entry_from_defrag_pool(THD *param_1)
{
ulong uVar1;
dict_table_t *pdVar2;
dict_index_t *local_40;
MDL_ticket *local_28;
ulong local_20;
ulong local_18;
THD *local_10;
local_10 = param_1;
uVar1 = dict_stats_defrag_pool_get(&local_18,&local_20);
if ((uVar1 & 1) != 0) {
local_28 = (MDL_ticket *)0x0;
pdVar2 = dict_table_open_on_id<false>(local_18,0,3,local_10,&local_28);
if (pdVar2 != (dict_table_t *)0x0) {
if (((uint)((ulong)*(int8 *)(pdVar2 + 0x48) >> 0x2b) & 1) == 0) {
local_40 = (dict_index_t *)dict_table_find_index_on_id(pdVar2,local_20);
}
else {
local_40 = (dict_index_t *)0x0;
}
if ((local_40 != (dict_index_t *)0x0) &&
(uVar1 = dict_index_t::is_btree(local_40), (uVar1 & 1) != 0)) {
dict_stats_save_defrag_stats(local_40);
}
dict_table_close(pdVar2,false,local_10,local_28);
}
}
return;
}
| |
30,308 | my_printf_error | eloqsql/mysys/my_error.c | void my_printf_error(uint error, const char *format, myf MyFlags, ...)
{
va_list args;
char ebuff[ERRMSGSIZE];
DBUG_ENTER("my_printf_error");
DBUG_PRINT("my", ("nr: %d MyFlags: %lu errno: %d format: %s",
error, MyFlags, errno, format));
va_start(args,MyFlags);
(void) my_vsnprintf_ex(&my_charset_utf8mb3_general_ci, ebuff,
sizeof(ebuff), format, args);
va_end(args);
(*error_handler_hook)(error, ebuff, MyFlags);
DBUG_VOID_RETURN;
} | O0 | c | my_printf_error:
pushq %rbp
movq %rsp, %rbp
subq $0x2f0, %rsp # imm = 0x2F0
testb %al, %al
je 0x3d977
movaps %xmm0, -0x2c0(%rbp)
movaps %xmm1, -0x2b0(%rbp)
movaps %xmm2, -0x2a0(%rbp)
movaps %xmm3, -0x290(%rbp)
movaps %xmm4, -0x280(%rbp)
movaps %xmm5, -0x270(%rbp)
movaps %xmm6, -0x260(%rbp)
movaps %xmm7, -0x250(%rbp)
movq %r9, -0x2c8(%rbp)
movq %r8, -0x2d0(%rbp)
movq %rcx, -0x2d8(%rbp)
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movl %edi, -0x214(%rbp)
movq %rsi, -0x220(%rbp)
movq %rdx, -0x228(%rbp)
jmp 0x3d9af
leaq -0x240(%rbp), %rax
leaq -0x2f0(%rbp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x18, (%rax)
leaq -0x210(%rbp), %rsi
movq -0x220(%rbp), %rcx
leaq -0x240(%rbp), %r8
leaq 0x35304e(%rip), %rdi # 0x390a40
movl $0x200, %edx # imm = 0x200
callq 0x82360
leaq -0x240(%rbp), %rax
leaq 0x19f9e6(%rip), %rax # 0x1dd3f0
movq (%rax), %rax
movl -0x214(%rbp), %edi
leaq -0x210(%rbp), %rsi
movq -0x228(%rbp), %rdx
callq *%rax
jmp 0x3da25
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x3da40
addq $0x2f0, %rsp # imm = 0x2F0
popq %rbp
retq
callq 0x242c0
nopw %cs:(%rax,%rax)
| my_printf_error:
push rbp
mov rbp, rsp
sub rsp, 2F0h
test al, al
jz short loc_3D977
movaps [rbp+var_2C0], xmm0
movaps [rbp+var_2B0], xmm1
movaps [rbp+var_2A0], xmm2
movaps [rbp+var_290], xmm3
movaps [rbp+var_280], xmm4
movaps [rbp+var_270], xmm5
movaps [rbp+var_260], xmm6
movaps [rbp+var_250], xmm7
loc_3D977:
mov [rbp+var_2C8], r9
mov [rbp+var_2D0], r8
mov [rbp+var_2D8], rcx
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_214], edi
mov [rbp+var_220], rsi
mov [rbp+var_228], rdx
jmp short $+2
loc_3D9AF:
lea rax, [rbp+var_240]
lea rcx, [rbp+var_2F0]
mov [rax+10h], rcx
lea rcx, [rbp+arg_0]
mov [rax+8], rcx
mov dword ptr [rax+4], 30h ; '0'
mov dword ptr [rax], 18h
lea rsi, [rbp+var_210]
mov rcx, [rbp+var_220]
lea r8, [rbp+var_240]
lea rdi, my_charset_utf8mb3_general_ci
mov edx, 200h
call my_vsnprintf_ex
lea rax, [rbp+var_240]
lea rax, error_handler_hook
mov rax, [rax]
mov edi, [rbp+var_214]
lea rsi, [rbp+var_210]
mov rdx, [rbp+var_228]
call rax
jmp short $+2
loc_3DA25:
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_3DA40
add rsp, 2F0h
pop rbp
retn
loc_3DA40:
call ___stack_chk_fail
| unsigned long long my_printf_error(unsigned int a1, long long a2, long long a3, ...)
{
va_list va; // [rsp+B0h] [rbp-240h] BYREF
long long v5; // [rsp+C8h] [rbp-228h]
long long v6; // [rsp+D0h] [rbp-220h]
unsigned int v7; // [rsp+DCh] [rbp-214h]
_BYTE v8[520]; // [rsp+E0h] [rbp-210h] BYREF
unsigned long long v9; // [rsp+2E8h] [rbp-8h]
va_start(va, a3);
v9 = __readfsqword(0x28u);
v7 = a1;
v6 = a2;
v5 = a3;
my_vsnprintf_ex(&my_charset_utf8mb3_general_ci, v8, 512LL, a2, va);
((void ( *)(long long, long long, __int16))error_handler_hook[0])(v7, (long long)v8, v5);
return __readfsqword(0x28u);
}
| my_printf_error:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x2f0
TEST AL,AL
JZ 0x0013d977
MOVAPS xmmword ptr [RBP + -0x2c0],XMM0
MOVAPS xmmword ptr [RBP + -0x2b0],XMM1
MOVAPS xmmword ptr [RBP + -0x2a0],XMM2
MOVAPS xmmword ptr [RBP + -0x290],XMM3
MOVAPS xmmword ptr [RBP + -0x280],XMM4
MOVAPS xmmword ptr [RBP + -0x270],XMM5
MOVAPS xmmword ptr [RBP + -0x260],XMM6
MOVAPS xmmword ptr [RBP + -0x250],XMM7
LAB_0013d977:
MOV qword ptr [RBP + -0x2c8],R9
MOV qword ptr [RBP + -0x2d0],R8
MOV qword ptr [RBP + -0x2d8],RCX
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV dword ptr [RBP + -0x214],EDI
MOV qword ptr [RBP + -0x220],RSI
MOV qword ptr [RBP + -0x228],RDX
JMP 0x0013d9af
LAB_0013d9af:
LEA RAX,[RBP + -0x240]
LEA RCX,[RBP + -0x2f0]
MOV qword ptr [RAX + 0x10],RCX
LEA RCX,[RBP + 0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV dword ptr [RAX + 0x4],0x30
MOV dword ptr [RAX],0x18
LEA RSI,[RBP + -0x210]
MOV RCX,qword ptr [RBP + -0x220]
LEA R8,[RBP + -0x240]
LEA RDI,[0x490a40]
MOV EDX,0x200
CALL 0x00182360
LEA RAX,[RBP + -0x240]
LEA RAX,[0x2dd3f0]
MOV RAX,qword ptr [RAX]
MOV EDI,dword ptr [RBP + -0x214]
LEA RSI,[RBP + -0x210]
MOV RDX,qword ptr [RBP + -0x228]
CALL RAX
JMP 0x0013da25
LAB_0013da25:
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x0013da40
ADD RSP,0x2f0
POP RBP
RET
LAB_0013da40:
CALL 0x001242c0
|
void my_printf_error(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int8 param_7,int8 param_8,
int4 param_9,int8 param_10,int8 param_11,int8 param_12,
int8 param_13,int8 param_14)
{
char in_AL;
long in_FS_OFFSET;
int1 local_2f8 [24];
int8 local_2e0;
int8 local_2d8;
int8 local_2d0;
int8 local_2c8;
int8 local_2b8;
int8 local_2a8;
int8 local_298;
int8 local_288;
int8 local_278;
int8 local_268;
int8 local_258;
int4 local_248;
int4 local_244;
int1 *local_240;
int1 *local_238;
int8 local_230;
int8 local_228;
int4 local_21c;
int1 local_218 [520];
long local_10;
if (in_AL != '\0') {
local_2c8 = param_1;
local_2b8 = param_2;
local_2a8 = param_3;
local_298 = param_4;
local_288 = param_5;
local_278 = param_6;
local_268 = param_7;
local_258 = param_8;
}
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_238 = local_2f8;
local_240 = &stack0x00000008;
local_244 = 0x30;
local_248 = 0x18;
local_2e0 = param_12;
local_2d8 = param_13;
local_2d0 = param_14;
local_230 = param_11;
local_228 = param_10;
local_21c = param_9;
my_vsnprintf_ex(my_charset_utf8mb3_general_ci,local_218,0x200,param_10,&local_248);
(*(code *)error_handler_hook)(local_21c,local_218,local_230);
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
30,309 | lunasvg::SVGStyleElement::SVGStyleElement(lunasvg::Document*) | dmazzella[P]pylunasvg/lunasvg/source/svgelement.h | SVGNode(Document* document)
: m_document(document)
{} | O1 | c | lunasvg::SVGStyleElement::SVGStyleElement(lunasvg::Document*):
movq %rsi, 0x8(%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
leaq 0x48887(%rip), %rcx # 0x588b8
movq %rcx, (%rdi)
leaq 0x33151(%rip), %rcx # 0x4318c
movups (%rcx), %xmm0
movups %xmm0, 0x18(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rdi)
movabsq $0x414000003f800000, %rcx # imm = 0x414000003F800000
movq %rcx, 0x38(%rdi)
movl $0x13000000, 0x40(%rdi) # imm = 0x13000000
leaq 0x58(%rdi), %rcx
movups %xmm0, 0x48(%rdi)
movq %rcx, 0x60(%rdi)
movq %rcx, 0x58(%rdi)
movq %rax, 0x68(%rdi)
leaq 0x48e77(%rip), %rax # 0x58ef0
movq %rax, (%rdi)
retq
nop
| _ZN7lunasvg15SVGStyleElementC2EPNS_8DocumentE:
mov [rdi+8], rsi
xor eax, eax
mov [rdi+10h], rax
lea rcx, off_588B8
mov [rdi], rcx
lea rcx, _ZN7lunasvg4Rect7InvalidE; lunasvg::Rect::Invalid
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rdi+18h], xmm0
xorps xmm0, xmm0
movups xmmword ptr [rdi+28h], xmm0
mov rcx, 414000003F800000h
mov [rdi+38h], rcx
mov dword ptr [rdi+40h], 13000000h
lea rcx, [rdi+58h]
movups xmmword ptr [rdi+48h], xmm0
mov [rdi+60h], rcx
mov [rdi+58h], rcx
mov [rdi+68h], rax
lea rax, off_58EF0
mov [rdi], rax
retn
| void ( ** lunasvg::SVGStyleElement::SVGStyleElement(
lunasvg::SVGStyleElement *this,
lunasvg::Document *a2))(lunasvg::SVGElement *__hidden this)
{
void ( **result)(lunasvg::SVGElement *__hidden); // rax
*((_QWORD *)this + 1) = a2;
*((_QWORD *)this + 2) = 0LL;
*(_QWORD *)this = off_588B8;
*(_OWORD *)((char *)this + 24) = lunasvg::Rect::Invalid;
*(_OWORD *)((char *)this + 40) = 0LL;
*((_QWORD *)this + 7) = 0x414000003F800000LL;
*((_DWORD *)this + 16) = 318767104;
*(_OWORD *)((char *)this + 72) = 0LL;
*((_QWORD *)this + 12) = (char *)this + 88;
*((_QWORD *)this + 11) = (char *)this + 88;
*((_QWORD *)this + 13) = 0LL;
result = off_58EF0;
*(_QWORD *)this = off_58EF0;
return result;
}
| SVGStyleElement:
MOV qword ptr [RDI + 0x8],RSI
XOR EAX,EAX
MOV qword ptr [RDI + 0x10],RAX
LEA RCX,[0x1588b8]
MOV qword ptr [RDI],RCX
LEA RCX,[0x14318c]
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RDI + 0x18],XMM0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x28],XMM0
MOV RCX,0x414000003f800000
MOV qword ptr [RDI + 0x38],RCX
MOV dword ptr [RDI + 0x40],0x13000000
LEA RCX,[RDI + 0x58]
MOVUPS xmmword ptr [RDI + 0x48],XMM0
MOV qword ptr [RDI + 0x60],RCX
MOV qword ptr [RDI + 0x58],RCX
MOV qword ptr [RDI + 0x68],RAX
LEA RAX,[0x158ef0]
MOV qword ptr [RDI],RAX
RET
|
/* lunasvg::SVGStyleElement::SVGStyleElement(lunasvg::Document*) */
void __thiscall lunasvg::SVGStyleElement::SVGStyleElement(SVGStyleElement *this,Document *param_1)
{
int8 uVar1;
*(Document **)(this + 8) = param_1;
*(int8 *)(this + 0x10) = 0;
*(int ***)this = &PTR__SVGElement_001588b8;
uVar1 = Rect::Invalid._8_8_;
*(int8 *)(this + 0x18) = Rect::Invalid._0_8_;
*(int8 *)(this + 0x20) = uVar1;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0x414000003f800000;
*(int4 *)(this + 0x40) = 0x13000000;
*(int8 *)(this + 0x48) = 0;
*(int8 *)(this + 0x50) = 0;
*(SVGStyleElement **)(this + 0x60) = this + 0x58;
*(SVGStyleElement **)(this + 0x58) = this + 0x58;
*(int8 *)(this + 0x68) = 0;
*(int ***)this = &PTR__SVGElement_00158ef0;
return;
}
| |
30,310 | nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<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*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const*) | monkey531[P]llama/common/json.hpp | static type_error create(int id_, const std::string& what_arg, BasicJsonContext context)
{
const std::string w = concat(exception::name("type_error", id_), exception::diagnostics(context), what_arg);
return {id_, w.c_str()};
} | O2 | cpp | nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<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*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const*):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x88, %rsp
movq %rcx, %r15
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x48720(%rip), %rsi # 0x8e7a9
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x22836
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movl %ebp, %edx
callq 0x3cb66
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x3cbdc
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %r14, %rcx
callq 0x3cafc
leaq 0x8(%rsp), %rdi
callq 0x20d88
leaq 0x48(%rsp), %rdi
callq 0x20d88
leaq 0x28(%rsp), %rdi
callq 0x20d88
movq 0x68(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x3cbfe
leaq 0x68(%rsp), %rdi
callq 0x20d88
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
jmp 0x46145
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x20d88
jmp 0x46131
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x20d88
jmp 0x46140
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x20d88
jmp 0x4614f
movq %rax, %rbx
movq %rbx, %rdi
callq 0x20ba0
| _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_:
push rbp
push r15
push r14
push rbx
sub rsp, 88h
mov r15, rcx
mov r14, rdx
mov ebp, esi
mov rbx, rdi
lea rsi, aTypeError; "type_error"
lea rdi, [rsp+0A8h+var_80]
lea rdx, [rsp+0A8h+var_A1]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdi, [rsp+0A8h+var_60]
lea rsi, [rsp+0A8h+var_80]
mov edx, ebp
call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int)
lea rdi, [rsp+0A8h+var_A0]
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_36detail9exception11diagnosticsINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEESC_PKT_; nlohmann::json_abi_v3_11_3::detail::exception::diagnostics<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> const*)
lea rdi, [rsp+0A8h+var_40]
lea rsi, [rsp+0A8h+var_60]
lea rdx, [rsp+0A8h+var_A0]
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS8_S8_RKS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>(std::string,std::string,std::string const&)
lea rdi, [rsp+0A8h+var_A0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdx, [rsp+0A8h+var_40]; char *
mov rdi, rbx; this
mov esi, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail10type_errorC2EiPKc; nlohmann::json_abi_v3_11_3::detail::type_error::type_error(int,char const*)
lea rdi, [rsp+0A8h+var_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rax, rbx
add rsp, 88h
pop rbx
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rdi, [rsp+arg_60]
jmp short loc_46145
mov rbx, rax
lea rdi, [rsp+arg_0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_46131
mov rbx, rax
loc_46131:
lea rdi, [rsp+arg_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_46140
mov rbx, rax
loc_46140:
lea rdi, [rsp+arg_20]; void *
loc_46145:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_4614F
mov rbx, rax
loc_4614F:
mov rdi, rbx
call __Unwind_Resume
| nlohmann::json_abi_v3_11_3::detail::type_error * ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
nlohmann::json_abi_v3_11_3::detail::type_error *this,
int a2,
long long a3)
{
_QWORD v5[4]; // [rsp+8h] [rbp-A0h] BYREF
_QWORD v6[4]; // [rsp+28h] [rbp-80h] BYREF
_BYTE v7[32]; // [rsp+48h] [rbp-60h] BYREF
char *v8[8]; // [rsp+68h] [rbp-40h] BYREF
std::string::basic_string<std::allocator<char>>(v6, (long long)"type_error");
nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v7, (long long)v6, a2);
nlohmann::json_abi_v3_11_3::detail::exception::diagnostics<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>>(v5);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>(
(long long)v8,
(long long)v7,
(long long)v5,
a3);
std::string::~string(v5);
std::string::~string(v7);
std::string::~string(v6);
nlohmann::json_abi_v3_11_3::detail::type_error::type_error(this, a2, v8[0]);
std::string::~string(v8);
return this;
}
| _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x88
MOV R15,RCX
MOV R14,RDX
MOV EBP,ESI
MOV RBX,RDI
LAB_00146082:
LEA RSI,[0x18e7a9]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x7]
CALL 0x00122836
LAB_00146098:
LEA RDI,[RSP + 0x48]
LEA RSI,[RSP + 0x28]
MOV EDX,EBP
CALL 0x0013cb66
LAB_001460a9:
LEA RDI,[RSP + 0x8]
MOV RSI,R15
CALL 0x0013cbdc
LAB_001460b6:
LEA RDI,[RSP + 0x68]
LEA RSI,[RSP + 0x48]
LEA RDX,[RSP + 0x8]
MOV RCX,R14
CALL 0x0013cafc
LEA RDI,[RSP + 0x8]
CALL 0x00120d88
LEA RDI,[RSP + 0x48]
CALL 0x00120d88
LEA RDI,[RSP + 0x28]
CALL 0x00120d88
MOV RDX,qword ptr [RSP + 0x68]
LAB_001460f0:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x0013cbfe
LAB_001460fa:
LEA RDI,[RSP + 0x68]
CALL 0x00120d88
MOV RAX,RBX
ADD RSP,0x88
POP RBX
POP R14
POP R15
POP RBP
RET
|
type_error *
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(type_error *param_1,int param_2,string *param_3)
{
allocator local_a1;
string local_a0 [32];
string local_80 [32];
exception local_60 [32];
char *local_40 [4];
/* try { // try from 00146082 to 00146097 has its CatchHandler @ 0014614c */
std::__cxx11::string::string<std::allocator<char>>(local_80,"type_error",&local_a1);
/* try { // try from 00146098 to 001460a8 has its CatchHandler @ 0014613d */
nlohmann::json_abi_v3_11_3::detail::exception::name(local_60,local_80,param_2);
/* try { // try from 001460a9 to 001460b5 has its CatchHandler @ 0014612e */
nlohmann::json_abi_v3_11_3::detail::exception::
diagnostics<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_a0);
/* try { // try from 001460b6 to 001460cc has its CatchHandler @ 0014611f */
nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,std::__cxx11::string,std::__cxx11::string,std::__cxx11::string_const&>
((detail *)local_40,(string *)local_60,local_a0,param_3);
std::__cxx11::string::~string(local_a0);
std::__cxx11::string::~string((string *)local_60);
std::__cxx11::string::~string(local_80);
/* try { // try from 001460f0 to 001460f9 has its CatchHandler @ 00146115 */
nlohmann::json_abi_v3_11_3::detail::type_error::type_error(param_1,param_2,local_40[0]);
std::__cxx11::string::~string((string *)local_40);
return param_1;
}
| |
30,311 | nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<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*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const*) | monkey531[P]llama/common/json.hpp | static type_error create(int id_, const std::string& what_arg, BasicJsonContext context)
{
const std::string w = concat(exception::name("type_error", id_), exception::diagnostics(context), what_arg);
return {id_, w.c_str()};
} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<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*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x456c2(%rip), %rsi # 0xa97e9
leaq 0x456c5(%rip), %rdx # 0xa97f3
leaq 0x28(%rsp), %rdi
callq 0x1c7c8
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movl %ebp, %edx
callq 0x3d550
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
xorl %eax, %eax
movq %rax, -0x8(%r14)
movb %al, (%r14)
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq %rax, -0x8(%r12)
movb %al, (%r12)
movq 0x8(%r15), %rsi
addq 0x50(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x18a20
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0x181d0
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0x181d0
movq (%r15), %rsi
movq 0x8(%r15), %rdx
leaq 0x8(%rsp), %rdi
callq 0x181d0
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x641d1
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x186a0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x641ec
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x186a0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x64203
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x186a0
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x3d74c
leaq 0x760c7(%rip), %rax # 0xda2e0
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x64237
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x186a0
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x642c5
movq 0x18(%rsp), %rsi
jmp 0x642bd
movq %rax, %rbx
jmp 0x642ae
movq %rax, %rbx
jmp 0x642c5
movq %rdx, %rbx
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x64287
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x186a0
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rdx
leaq 0x88(%rsp), %r12
movq %r14, %rsi
movq %r15, %rcx
movl %ebx, %r8d
movq %r12, %r9
callq 0x194c8
movq (%r12), %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x642c5
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x186a0
movq %rbx, %rdi
callq 0x18ba0
nop
| _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 98h
mov r15, rdx
mov ebp, esi
mov rbx, rdi
lea r13, [rsp+0C8h+var_90]
mov [r13-10h], r13
lea rsi, aTypeError; "type_error"
lea rdx, aTypeError+0Ah; ""
lea rdi, [rsp+0C8h+var_A0]
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+0C8h+var_80]; int
lea rsi, [rsp+0C8h+var_A0]; int
mov edx, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int)
lea r14, [rsp+0C8h+var_50]
mov [r14-10h], r14
xor eax, eax
mov [r14-8], rax
mov [r14], al
lea r12, [rsp+0C8h+var_B0]
mov [r12-10h], r12
mov [r12-8], rax
mov [r12], al
mov rsi, [r15+8]
add rsi, [rsp+0C8h+var_78]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rsi, qword ptr [rsp+0C8h+var_80]
mov rdx, [rsp+0C8h+var_78]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rsi, [rsp+0C8h+var_60]
mov rdx, [rsp+0C8h+var_58]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rsi, [r15]
mov rdx, [r15+8]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rdi, [rsp+0C8h+var_60]; void *
cmp rdi, r14
jz short loc_641D1
mov rsi, [rsp+0C8h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_641D1:
lea rax, [rsp+0C8h+var_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_641EC
mov rsi, [rsp+0C8h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_641EC:
mov rdi, [rsp+0C8h+var_A0]; void *
cmp rdi, r13
jz short loc_64203
mov rsi, [rsp+0C8h+var_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_64203:
mov rdx, [rsp+0C8h+var_C0]; char *
mov rdi, rbx; this
mov esi, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionC2EiPKc; nlohmann::json_abi_v3_11_3::detail::exception::exception(int,char const*)
lea rax, _ZTVN8nlohmann16json_abi_v3_11_36detail10type_errorE; `vtable for'nlohmann::json_abi_v3_11_3::detail::type_error
add rax, 10h
mov [rbx], rax
mov rdi, [rsp+0C8h+var_C0]; void *
cmp rdi, r12
jz short loc_64237
mov rsi, [rsp+0C8h+var_B0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_64237:
mov rax, rbx
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
mov rdi, [rsp+arg_0]
cmp rdi, r12
jz short loc_642C5
mov rsi, [rsp+arg_10]
jmp short loc_642BD
mov rbx, rax
jmp short loc_642AE
mov rbx, rax
jmp short loc_642C5
mov rbx, rdx
mov r15, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r12
jz short loc_64287
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_64287:
lea rdi, [rsp+arg_60]
lea rdx, [rsp+arg_40]
lea r12, [rsp+arg_80]
mov rsi, r14
mov rcx, r15
mov r8d, ebx
mov r9, r12
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5__cold_1
mov rbx, [r12]
loc_642AE:
mov rdi, [rsp+arg_20]; void *
cmp rdi, r13
jz short loc_642C5
mov rsi, [rsp+arg_30]
loc_642BD:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_642C5:
mov rdi, rbx
call __Unwind_Resume
| nlohmann::json_abi_v3_11_3::detail::exception * ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_(
nlohmann::json_abi_v3_11_3::detail::exception *this,
int a2,
_QWORD *a3)
{
char *v5[2]; // [rsp+8h] [rbp-C0h] BYREF
_QWORD v6[2]; // [rsp+18h] [rbp-B0h] BYREF
void *v7[2]; // [rsp+28h] [rbp-A0h] BYREF
_QWORD v8[2]; // [rsp+38h] [rbp-90h] BYREF
int v9[2]; // [rsp+48h] [rbp-80h] BYREF
long long v10; // [rsp+50h] [rbp-78h]
long long v11; // [rsp+58h] [rbp-70h] BYREF
void *v12; // [rsp+68h] [rbp-60h]
long long v13; // [rsp+70h] [rbp-58h]
_QWORD v14[10]; // [rsp+78h] [rbp-50h] BYREF
v7[0] = v8;
std::string::_M_construct<char const*>((long long)v7, "type_error", (long long)"");
nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v9, (long long)v7, a2);
v12 = v14;
v13 = 0LL;
LOBYTE(v14[0]) = 0;
v5[0] = (char *)v6;
v5[1] = 0LL;
LOBYTE(v6[0]) = 0;
std::string::reserve(v5, v10 + a3[1]);
std::string::_M_append(v5, *(_QWORD *)v9);
std::string::_M_append(v5, v12);
std::string::_M_append(v5, *a3);
if ( v12 != v14 )
operator delete(v12, v14[0] + 1LL);
if ( *(long long **)v9 != &v11 )
operator delete(*(void **)v9, v11 + 1);
if ( v7[0] != v8 )
operator delete(v7[0], v8[0] + 1LL);
nlohmann::json_abi_v3_11_3::detail::exception::exception(this, a2, v5[0]);
*(_QWORD *)this = &`vtable for'nlohmann::json_abi_v3_11_3::detail::type_error + 2;
if ( (_QWORD *)v5[0] != v6 )
operator delete(v5[0], v6[0] + 1LL);
return this;
}
| _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x98
MOV R15,RDX
MOV EBP,ESI
MOV RBX,RDI
LEA R13,[RSP + 0x38]
MOV qword ptr [R13 + -0x10],R13
LAB_00164120:
LEA RSI,[0x1a97e9]
LEA RDX,[0x1a97f3]
LEA RDI,[RSP + 0x28]
CALL 0x0011c7c8
LAB_00164138:
LEA RDI,[RSP + 0x48]
LEA RSI,[RSP + 0x28]
MOV EDX,EBP
CALL 0x0013d550
LEA R14,[RSP + 0x78]
MOV qword ptr [R14 + -0x10],R14
XOR EAX,EAX
MOV qword ptr [R14 + -0x8],RAX
MOV byte ptr [R14],AL
LEA R12,[RSP + 0x18]
MOV qword ptr [R12 + -0x10],R12
MOV qword ptr [R12 + -0x8],RAX
MOV byte ptr [R12],AL
MOV RSI,qword ptr [R15 + 0x8]
ADD RSI,qword ptr [RSP + 0x50]
LAB_00164177:
LEA RDI,[RSP + 0x8]
CALL 0x00118a20
MOV RSI,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x50]
LEA RDI,[RSP + 0x8]
CALL 0x001181d0
MOV RSI,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0x70]
LEA RDI,[RSP + 0x8]
CALL 0x001181d0
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
LEA RDI,[RSP + 0x8]
CALL 0x001181d0
MOV RDI,qword ptr [RSP + 0x68]
CMP RDI,R14
JZ 0x001641d1
MOV RSI,qword ptr [RSP + 0x78]
INC RSI
CALL 0x001186a0
LAB_001641d1:
LEA RAX,[RSP + 0x58]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001641ec
MOV RSI,qword ptr [RSP + 0x58]
INC RSI
CALL 0x001186a0
LAB_001641ec:
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R13
JZ 0x00164203
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x001186a0
LAB_00164203:
MOV RDX,qword ptr [RSP + 0x8]
LAB_00164208:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x0013d74c
LAB_00164212:
LEA RAX,[0x1da2e0]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x00164237
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001186a0
LAB_00164237:
MOV RAX,RBX
ADD RSP,0x98
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
exception *
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
(exception *param_1,int param_2,ulong *param_3)
{
char *local_c0;
int8 local_b8;
char local_b0;
int7 uStack_af;
long *local_a0 [2];
long local_90 [2];
long *local_80 [2];
long local_70 [2];
int1 *local_60;
int8 local_58;
int1 local_50;
int7 uStack_4f;
/* try { // try from 00164120 to 00164137 has its CatchHandler @ 00164265 */
local_a0[0] = local_90;
std::__cxx11::string::_M_construct<char_const*>(local_a0,"type_error","");
/* try { // try from 00164138 to 00164148 has its CatchHandler @ 00164260 */
nlohmann::json_abi_v3_11_3::detail::exception::name
((exception *)local_80,(string *)local_a0,param_2);
local_58 = 0;
local_50 = 0;
local_b8 = 0;
local_b0 = '\0';
/* try { // try from 00164177 to 001641b9 has its CatchHandler @ 0016426a */
local_c0 = &local_b0;
local_60 = &local_50;
std::__cxx11::string::reserve((ulong)&local_c0);
std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_80[0]);
std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_60);
std::__cxx11::string::_M_append((char *)&local_c0,*param_3);
if (local_60 != &local_50) {
operator_delete(local_60,CONCAT71(uStack_4f,local_50) + 1);
}
if (local_80[0] != local_70) {
operator_delete(local_80[0],local_70[0] + 1);
}
if (local_a0[0] != local_90) {
operator_delete(local_a0[0],local_90[0] + 1);
}
/* try { // try from 00164208 to 00164211 has its CatchHandler @ 0016424c */
nlohmann::json_abi_v3_11_3::detail::exception::exception(param_1,param_2,local_c0);
*(int ***)param_1 = &PTR__exception_001da2f0;
if (local_c0 != &local_b0) {
operator_delete(local_c0,CONCAT71(uStack_af,local_b0) + 1);
}
return param_1;
}
| |
30,312 | maria_page_crc_check | eloqsql/storage/maria/ma_pagecrc.c | my_bool maria_page_crc_check(uchar *page,
pgcache_page_no_t page_no,
MARIA_SHARE *share,
uint32 no_crc_val,
int data_length)
{
uint32 crc= uint4korr(page + share->block_size - CRC_SIZE), new_crc;
my_bool res;
DBUG_ENTER("maria_page_crc_check");
DBUG_ASSERT((uint)data_length <= share->block_size - CRC_SIZE);
/* we need this assert to get following comparison working */
compile_time_assert(MARIA_NO_CRC_BITMAP_PAGE ==
MARIA_NO_CRC_NORMAL_PAGE - 1 &&
MARIA_NO_CRC_NORMAL_PAGE == 0xffffffff);
/*
If crc is no_crc_val then
the page has no crc, so there is nothing to check.
*/
if (crc >= MARIA_NO_CRC_BITMAP_PAGE)
{
DBUG_PRINT("info", ("No crc: %lu crc: %lu page: %lu ",
(ulong) no_crc_val, (ulong) crc, (ulong) page_no));
if (crc != no_crc_val)
{
my_errno= HA_ERR_WRONG_CRC;
DBUG_PRINT("error", ("Wrong no CRC value"));
DBUG_RETURN(1);
}
DBUG_RETURN(0);
}
new_crc= maria_page_crc((uint32) page_no, page, data_length);
DBUG_ASSERT(new_crc != no_crc_val);
res= MY_TEST(new_crc != crc);
if (res)
{
/*
Bitmap pages may be totally zero filled in some cases.
This happens when we get a crash after the pagecache has written
out a page that is on a newly created bitmap page and we get
a crash before the bitmap page is written out.
We handle this case with the following logic:
When reading, approve of bitmap pages where all bytes are zero
(This is after all a bitmap pages where no data is reserved and
the CRC will be corrected at next write)
*/
if (no_crc_val == MARIA_NO_CRC_BITMAP_PAGE &&
crc == 0 && _ma_check_if_zero(page, data_length))
{
DBUG_PRINT("warning", ("Found bitmap page that was not initialized"));
DBUG_RETURN(0);
}
DBUG_PRINT("error", ("Page: %lu crc: %lu calculated crc: %lu",
(ulong) page_no, (ulong) crc, (ulong) new_crc));
my_errno= HA_ERR_WRONG_CRC;
}
DBUG_RETURN(res);
} | O0 | c | maria_page_crc_check:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movl %r8d, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq -0x20(%rbp), %rcx
movl 0x7bc(%rcx), %ecx
movl -0x4(%rax,%rcx), %eax
movl %eax, -0x2c(%rbp)
jmp 0x42ab2
jmp 0x42ab4
jmp 0x42ab6
cmpl $-0x2, -0x2c(%rbp)
jb 0x42ae5
jmp 0x42abe
jmp 0x42ac0
movl -0x2c(%rbp), %eax
cmpl -0x24(%rbp), %eax
je 0x42add
callq 0xf7a70
movl $0xb0, (%rax)
jmp 0x42ad5
jmp 0x42ad7
movb $0x1, -0x1(%rbp)
jmp 0x42b5b
jmp 0x42adf
movb $0x0, -0x1(%rbp)
jmp 0x42b5b
movq -0x18(%rbp), %rax
movl %eax, %edi
movq -0x10(%rbp), %rsi
movl -0x28(%rbp), %edx
callq 0x42b70
movl %eax, -0x30(%rbp)
jmp 0x42afc
movl -0x30(%rbp), %edx
movl -0x2c(%rbp), %esi
xorl %eax, %eax
movl $0x1, %ecx
cmpl %esi, %edx
cmovnel %ecx, %eax
movb %al, -0x31(%rbp)
cmpb $0x0, -0x31(%rbp)
je 0x42b53
cmpl $-0x2, -0x24(%rbp)
jne 0x42b44
cmpl $0x0, -0x2c(%rbp)
jne 0x42b44
movq -0x10(%rbp), %rdi
movslq -0x28(%rbp), %rsi
callq 0x4aab0
movsbl %al, %eax
cmpl $0x0, %eax
je 0x42b44
jmp 0x42b3a
jmp 0x42b3c
jmp 0x42b3e
movb $0x0, -0x1(%rbp)
jmp 0x42b5b
jmp 0x42b46
jmp 0x42b48
callq 0xf7a70
movl $0xb0, (%rax)
jmp 0x42b55
movb -0x31(%rbp), %al
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| maria_page_crc_check:
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_24], ecx
mov [rbp+var_28], r8d
mov rax, [rbp+var_10]
mov rcx, [rbp+var_20]
mov ecx, [rcx+7BCh]
mov eax, [rax+rcx-4]
mov [rbp+var_2C], eax
jmp short $+2
loc_42AB2:
jmp short $+2
loc_42AB4:
jmp short $+2
loc_42AB6:
cmp [rbp+var_2C], 0FFFFFFFEh
jb short loc_42AE5
jmp short $+2
loc_42ABE:
jmp short $+2
loc_42AC0:
mov eax, [rbp+var_2C]
cmp eax, [rbp+var_24]
jz short loc_42ADD
call _my_thread_var
mov dword ptr [rax], 0B0h
jmp short $+2
loc_42AD5:
jmp short $+2
loc_42AD7:
mov [rbp+var_1], 1
jmp short loc_42B5B
loc_42ADD:
jmp short $+2
loc_42ADF:
mov [rbp+var_1], 0
jmp short loc_42B5B
loc_42AE5:
mov rax, [rbp+var_18]
mov edi, eax
mov rsi, [rbp+var_10]
mov edx, [rbp+var_28]
call maria_page_crc
mov [rbp+var_30], eax
jmp short $+2
loc_42AFC:
mov edx, [rbp+var_30]
mov esi, [rbp+var_2C]
xor eax, eax
mov ecx, 1
cmp edx, esi
cmovnz eax, ecx
mov [rbp+var_31], al
cmp [rbp+var_31], 0
jz short loc_42B53
cmp [rbp+var_24], 0FFFFFFFEh
jnz short loc_42B44
cmp [rbp+var_2C], 0
jnz short loc_42B44
mov rdi, [rbp+var_10]
movsxd rsi, [rbp+var_28]
call _ma_check_if_zero
movsx eax, al
cmp eax, 0
jz short loc_42B44
jmp short $+2
loc_42B3A:
jmp short $+2
loc_42B3C:
jmp short $+2
loc_42B3E:
mov [rbp+var_1], 0
jmp short loc_42B5B
loc_42B44:
jmp short $+2
loc_42B46:
jmp short $+2
loc_42B48:
call _my_thread_var
mov dword ptr [rax], 0B0h
loc_42B53:
jmp short $+2
loc_42B55:
mov al, [rbp+var_31]
mov [rbp+var_1], al
loc_42B5B:
mov al, [rbp+var_1]
add rsp, 40h
pop rbp
retn
| char maria_page_crc_check(long long a1, unsigned int a2, long long a3, int a4, unsigned int a5)
{
bool v6; // [rsp+Fh] [rbp-31h]
unsigned int v7; // [rsp+14h] [rbp-2Ch]
v7 = *(_DWORD *)(a1 + *(unsigned int *)(a3 + 1980) - 4);
if ( v7 < 0xFFFFFFFE )
{
v6 = (unsigned int)maria_page_crc(a2, a1, a5) != v7;
if ( v6 )
{
if ( a4 == -2 && !v7 && (unsigned __int8)ma_check_if_zero(a1, (int)a5) )
return 0;
*(_DWORD *)my_thread_var() = 176;
}
return v6;
}
if ( v7 == a4 )
return 0;
*(_DWORD *)my_thread_var() = 176;
return 1;
}
| maria_page_crc_check:
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 dword ptr [RBP + -0x24],ECX
MOV dword ptr [RBP + -0x28],R8D
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RCX + 0x7bc]
MOV EAX,dword ptr [RAX + RCX*0x1 + -0x4]
MOV dword ptr [RBP + -0x2c],EAX
JMP 0x00142ab2
LAB_00142ab2:
JMP 0x00142ab4
LAB_00142ab4:
JMP 0x00142ab6
LAB_00142ab6:
CMP dword ptr [RBP + -0x2c],-0x2
JC 0x00142ae5
JMP 0x00142abe
LAB_00142abe:
JMP 0x00142ac0
LAB_00142ac0:
MOV EAX,dword ptr [RBP + -0x2c]
CMP EAX,dword ptr [RBP + -0x24]
JZ 0x00142add
CALL 0x001f7a70
MOV dword ptr [RAX],0xb0
JMP 0x00142ad5
LAB_00142ad5:
JMP 0x00142ad7
LAB_00142ad7:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00142b5b
LAB_00142add:
JMP 0x00142adf
LAB_00142adf:
MOV byte ptr [RBP + -0x1],0x0
JMP 0x00142b5b
LAB_00142ae5:
MOV RAX,qword ptr [RBP + -0x18]
MOV EDI,EAX
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RBP + -0x28]
CALL 0x00142b70
MOV dword ptr [RBP + -0x30],EAX
JMP 0x00142afc
LAB_00142afc:
MOV EDX,dword ptr [RBP + -0x30]
MOV ESI,dword ptr [RBP + -0x2c]
XOR EAX,EAX
MOV ECX,0x1
CMP EDX,ESI
CMOVNZ EAX,ECX
MOV byte ptr [RBP + -0x31],AL
CMP byte ptr [RBP + -0x31],0x0
JZ 0x00142b53
CMP dword ptr [RBP + -0x24],-0x2
JNZ 0x00142b44
CMP dword ptr [RBP + -0x2c],0x0
JNZ 0x00142b44
MOV RDI,qword ptr [RBP + -0x10]
MOVSXD RSI,dword ptr [RBP + -0x28]
CALL 0x0014aab0
MOVSX EAX,AL
CMP EAX,0x0
JZ 0x00142b44
JMP 0x00142b3a
LAB_00142b3a:
JMP 0x00142b3c
LAB_00142b3c:
JMP 0x00142b3e
LAB_00142b3e:
MOV byte ptr [RBP + -0x1],0x0
JMP 0x00142b5b
LAB_00142b44:
JMP 0x00142b46
LAB_00142b46:
JMP 0x00142b48
LAB_00142b48:
CALL 0x001f7a70
MOV dword ptr [RAX],0xb0
LAB_00142b53:
JMP 0x00142b55
LAB_00142b55:
MOV AL,byte ptr [RBP + -0x31]
MOV byte ptr [RBP + -0x1],AL
LAB_00142b5b:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x40
POP RBP
RET
|
bool maria_page_crc_check(long param_1,int4 param_2,long param_3,uint param_4,int param_5)
{
uint uVar1;
char cVar2;
uint uVar3;
int4 *puVar4;
bool local_9;
uVar1 = *(uint *)(param_1 + -4 + (ulong)*(uint *)(param_3 + 0x7bc));
if (uVar1 < 0xfffffffe) {
uVar3 = maria_page_crc(param_2,param_1,param_5);
local_9 = uVar3 != uVar1;
if (local_9) {
if (((param_4 == 0xfffffffe) && (uVar1 == 0)) &&
(cVar2 = _ma_check_if_zero(param_1,(long)param_5), cVar2 != '\0')) {
local_9 = false;
}
else {
puVar4 = (int4 *)_my_thread_var();
*puVar4 = 0xb0;
}
}
}
else if (uVar1 == param_4) {
local_9 = false;
}
else {
puVar4 = (int4 *)_my_thread_var();
*puVar4 = 0xb0;
local_9 = true;
}
return local_9;
}
| |
30,313 | stop_waiting | eloqsql/mysys/waiting_threads.c | static int stop_waiting(WT_THD *thd)
{
int ret;
WT_RESOURCE *rc= thd->waiting_for;
DBUG_ENTER("stop_waiting");
if (!rc)
DBUG_RETURN(WT_OK);
/*
nobody's trying to free the resource now,
as its waiter_count is guaranteed to be non-zero
*/
rc_wrlock(rc);
ret= stop_waiting_locked(thd);
DBUG_RETURN(ret);
} | O0 | c | stop_waiting:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0xff7aa
jmp 0xff7a1
movl $0x0, -0x4(%rbp)
jmp 0xff7c5
movq -0x20(%rbp), %rdi
callq 0xff580
movq -0x10(%rbp), %rdi
callq 0xff5e0
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nop
| stop_waiting:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
mov rax, [rax+28h]
mov [rbp+var_20], rax
cmp [rbp+var_20], 0
jnz short loc_FF7AA
jmp short $+2
loc_FF7A1:
mov [rbp+var_4], 0
jmp short loc_FF7C5
loc_FF7AA:
mov rdi, [rbp+var_20]
call rc_wrlock
mov rdi, [rbp+var_10]
call stop_waiting_locked
mov [rbp+var_14], eax
mov eax, [rbp+var_14]
mov [rbp+var_4], eax
loc_FF7C5:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
| long long stop_waiting(long long a1)
{
long long v2; // [rsp+0h] [rbp-20h]
v2 = *(_QWORD *)(a1 + 40);
if ( v2 )
{
rc_wrlock(v2);
return (unsigned int)stop_waiting_locked(a1);
}
else
{
return 0;
}
}
| stop_waiting:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x20],RAX
CMP qword ptr [RBP + -0x20],0x0
JNZ 0x001ff7aa
JMP 0x001ff7a1
LAB_001ff7a1:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001ff7c5
LAB_001ff7aa:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001ff580
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001ff5e0
MOV dword ptr [RBP + -0x14],EAX
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x4],EAX
LAB_001ff7c5:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int4 stop_waiting(long param_1)
{
int4 local_c;
if (*(long *)(param_1 + 0x28) == 0) {
local_c = 0;
}
else {
rc_wrlock(*(long *)(param_1 + 0x28));
local_c = stop_waiting_locked(param_1);
}
return local_c;
}
| |
30,314 | void 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>>::dump_integer<unsigned long, 0>(unsigned long) | llama.cpp/common/json.hpp | void dump_integer(NumberType x)
{
static constexpr std::array<std::array<char, 2>, 100> digits_to_99
{
{
{{'0', '0'}}, {{'0', '1'}}, {{'0', '2'}}, {{'0', '3'}}, {{'0', '4'}}, {{'0', '5'}}, {{'0', '6'}}, {{'0', '7'}}, {{'0', '8'}}, {{'0', '9'}},
{{'1', '0'}}, {{'1', '1'}}, {{'1', '2'}}, {{'1', '3'}}, {{'1', '4'}}, {{'1', '5'}}, {{'1', '6'}}, {{'1', '7'}}, {{'1', '8'}}, {{'1', '9'}},
{{'2', '0'}}, {{'2', '1'}}, {{'2', '2'}}, {{'2', '3'}}, {{'2', '4'}}, {{'2', '5'}}, {{'2', '6'}}, {{'2', '7'}}, {{'2', '8'}}, {{'2', '9'}},
{{'3', '0'}}, {{'3', '1'}}, {{'3', '2'}}, {{'3', '3'}}, {{'3', '4'}}, {{'3', '5'}}, {{'3', '6'}}, {{'3', '7'}}, {{'3', '8'}}, {{'3', '9'}},
{{'4', '0'}}, {{'4', '1'}}, {{'4', '2'}}, {{'4', '3'}}, {{'4', '4'}}, {{'4', '5'}}, {{'4', '6'}}, {{'4', '7'}}, {{'4', '8'}}, {{'4', '9'}},
{{'5', '0'}}, {{'5', '1'}}, {{'5', '2'}}, {{'5', '3'}}, {{'5', '4'}}, {{'5', '5'}}, {{'5', '6'}}, {{'5', '7'}}, {{'5', '8'}}, {{'5', '9'}},
{{'6', '0'}}, {{'6', '1'}}, {{'6', '2'}}, {{'6', '3'}}, {{'6', '4'}}, {{'6', '5'}}, {{'6', '6'}}, {{'6', '7'}}, {{'6', '8'}}, {{'6', '9'}},
{{'7', '0'}}, {{'7', '1'}}, {{'7', '2'}}, {{'7', '3'}}, {{'7', '4'}}, {{'7', '5'}}, {{'7', '6'}}, {{'7', '7'}}, {{'7', '8'}}, {{'7', '9'}},
{{'8', '0'}}, {{'8', '1'}}, {{'8', '2'}}, {{'8', '3'}}, {{'8', '4'}}, {{'8', '5'}}, {{'8', '6'}}, {{'8', '7'}}, {{'8', '8'}}, {{'8', '9'}},
{{'9', '0'}}, {{'9', '1'}}, {{'9', '2'}}, {{'9', '3'}}, {{'9', '4'}}, {{'9', '5'}}, {{'9', '6'}}, {{'9', '7'}}, {{'9', '8'}}, {{'9', '9'}},
}
};
// special case for "0"
if (x == 0)
{
o->write_character('0');
return;
}
// use a pointer to fill the buffer
auto buffer_ptr = number_buffer.begin(); // NOLINT(llvm-qualified-auto,readability-qualified-auto,cppcoreguidelines-pro-type-vararg,hicpp-vararg)
number_unsigned_t abs_value;
unsigned int n_chars{};
if (is_negative_number(x))
{
*buffer_ptr = '-';
abs_value = remove_sign(static_cast<number_integer_t>(x));
// account one more byte for the minus sign
n_chars = 1 + count_digits(abs_value);
}
else
{
abs_value = static_cast<number_unsigned_t>(x);
n_chars = count_digits(abs_value);
}
// spare 1 byte for '\0'
JSON_ASSERT(n_chars < number_buffer.size() - 1);
// jump to the end to generate the string from backward,
// so we later avoid reversing the result
buffer_ptr += n_chars;
// Fast int2ascii implementation inspired by "Fastware" talk by Andrei Alexandrescu
// See: https://www.youtube.com/watch?v=o4-CwDo2zpg
while (abs_value >= 100)
{
const auto digits_index = static_cast<unsigned>((abs_value % 100));
abs_value /= 100;
*(--buffer_ptr) = digits_to_99[digits_index][1];
*(--buffer_ptr) = digits_to_99[digits_index][0];
}
if (abs_value >= 10)
{
const auto digits_index = static_cast<unsigned>(abs_value);
*(--buffer_ptr) = digits_to_99[digits_index][1];
*(--buffer_ptr) = digits_to_99[digits_index][0];
}
else
{
*(--buffer_ptr) = static_cast<char>('0' + abs_value);
}
o->write_characters(number_buffer.data(), n_chars);
} | O3 | cpp | void 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>>::dump_integer<unsigned long, 0>(unsigned long):
testl %esi, %esi
je 0xd3cf4
movl %esi, %eax
leaq 0x10(%rdi), %rsi
movzbl %al, %ecx
movl $0x1, %edx
cmpb $0xa, %cl
jb 0xd3cda
movl $0x2, %edx
cmpb $0x64, %al
jae 0xd3d04
leaq (%rsi,%rdx), %r8
cmpb $0xa, %al
jb 0xd3d2f
leaq 0x52637(%rip), %rax # 0x126320
movzwl (%rax,%rcx,2), %eax
movw %ax, -0x2(%r8)
jmp 0xd3d35
movq (%rdi), %rdi
movq (%rdi), %rax
movq (%rax), %rax
movl $0x30, %esi
jmpq *%rax
leal (%rcx,%rcx,4), %edx
leal (%rcx,%rdx,8), %ecx
shrl $0xc, %ecx
imull $0x64, %ecx, %edx
subb %dl, %al
movzbl %al, %eax
leaq 0x52604(%rip), %rdx # 0x126320
movzwl (%rdx,%rax,2), %eax
leaq 0x11(%rdi), %r8
movw %ax, 0x11(%rdi)
movl $0x3, %edx
movl %ecx, %eax
orb $0x30, %al
movb %al, -0x1(%r8)
movq (%rdi), %rdi
movq (%rdi), %rax
movq 0x8(%rax), %rax
jmpq *%rax
nop
| _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_:
test esi, esi
jz short loc_D3CF4
mov eax, esi
lea rsi, [rdi+10h]
movzx ecx, al
mov edx, 1
cmp cl, 0Ah
jb short loc_D3CDA
mov edx, 2
cmp al, 64h ; 'd'
jnb short loc_D3D04
loc_D3CDA:
lea r8, [rsi+rdx]
cmp al, 0Ah
jb short loc_D3D2F
lea rax, _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99
movzx eax, word ptr [rax+rcx*2]
mov [r8-2], ax
jmp short loc_D3D35
loc_D3CF4:
mov rdi, [rdi]
mov rax, [rdi]
mov rax, [rax]
mov esi, 30h ; '0'
jmp rax
loc_D3D04:
lea edx, [rcx+rcx*4]
lea ecx, [rcx+rdx*8]
shr ecx, 0Ch
imul edx, ecx, 64h ; 'd'
sub al, dl
movzx eax, al
lea rdx, _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99
movzx eax, word ptr [rdx+rax*2]
lea r8, [rdi+11h]
mov [rdi+11h], ax
mov edx, 3
mov eax, ecx
loc_D3D2F:
or al, 30h
mov [r8-1], al
loc_D3D35:
mov rdi, [rdi]
mov rax, [rdi]
mov rax, [rax+8]
jmp rax
| long long ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_(
_QWORD *a1,
int a2)
{
char v2; // al
long long v3; // rdx
char *v4; // r8
if ( !a2 )
return (**(long long ( ***)(_QWORD, long long))*a1)(*a1, 48LL);
v2 = a2;
v3 = 1LL;
if ( (unsigned __int8)a2 >= 0xAu )
{
v3 = 2LL;
if ( (unsigned __int8)a2 >= 0x64u )
{
v4 = (char *)a1 + 17;
*(_WORD *)((char *)a1 + 17) = ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99[(unsigned __int8)a2 % 0x64u];
v2 = (unsigned __int8)a2 / 0x64u;
goto LABEL_8;
}
}
v4 = (char *)a1 + v3 + 16;
if ( (unsigned __int8)a2 < 0xAu )
{
LABEL_8:
*(v4 - 1) = v2 | 0x30;
return (*(long long ( **)(_QWORD))(*(_QWORD *)*a1 + 8LL))(*a1);
}
*((_WORD *)v4 - 1) = ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99[(unsigned __int8)a2];
return (*(long long ( **)(_QWORD))(*(_QWORD *)*a1 + 8LL))(*a1);
}
| _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_:
TEST ESI,ESI
JZ 0x001d3cf4
MOV EAX,ESI
LEA RSI,[RDI + 0x10]
MOVZX ECX,AL
MOV EDX,0x1
CMP CL,0xa
JC 0x001d3cda
MOV EDX,0x2
CMP AL,0x64
JNC 0x001d3d04
LAB_001d3cda:
LEA R8,[RSI + RDX*0x1]
CMP AL,0xa
JC 0x001d3d2f
LEA RAX,[0x226320]
MOVZX EAX,word ptr [RAX + RCX*0x2]
MOV word ptr [R8 + -0x2],AX
JMP 0x001d3d35
LAB_001d3cf4:
MOV RDI,qword ptr [RDI]
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX]
MOV ESI,0x30
JMP RAX
LAB_001d3d04:
LEA EDX,[RCX + RCX*0x4]
LEA ECX,[RCX + RDX*0x8]
SHR ECX,0xc
IMUL EDX,ECX,0x64
SUB AL,DL
MOVZX EAX,AL
LEA RDX,[0x226320]
MOVZX EAX,word ptr [RDX + RAX*0x2]
LEA R8,[RDI + 0x11]
MOV word ptr [RDI + 0x11],AX
MOV EDX,0x3
MOV EAX,ECX
LAB_001d3d2f:
OR AL,0x30
MOV byte ptr [R8 + -0x1],AL
LAB_001d3d35:
MOV RDI,qword ptr [RDI]
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + 0x8]
JMP RAX
|
void _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_
(int8 *param_1,uint param_2)
{
byte bVar1;
byte bVar2;
long lVar3;
long lVar4;
if (param_2 == 0) {
/* WARNING: Could not recover jumptable at 0x001d3d02. Too many branches */
/* WARNING: Treating indirect jump as call */
(*(code *)**(int8 **)*param_1)((int8 *)*param_1,0x30);
return;
}
bVar1 = (byte)param_2;
lVar3 = 1;
if ((bVar1 < 10) || (lVar3 = 2, bVar1 < 100)) {
lVar4 = (long)(param_1 + 2) + lVar3;
bVar2 = bVar1;
if (9 < bVar1) {
*(int2 *)(lVar4 + -2) =
*(int2 *)
(
_ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99
+ (ulong)bVar1 * 2);
goto LAB_001d3d35;
}
}
else {
bVar2 = (byte)((param_2 & 0xff) + ((param_2 & 0xff) + (param_2 & 0xff) * 4) * 8 >> 0xc);
lVar4 = (long)param_1 + 0x11;
*(int2 *)((long)param_1 + 0x11) =
*(int2 *)
(
_ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIhTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99
+ (ulong)(byte)(bVar1 + bVar2 * -100) * 2);
lVar3 = 3;
}
*(byte *)(lVar4 + -1) = bVar2 | 0x30;
LAB_001d3d35:
/* WARNING: Could not recover jumptable at 0x001d3d3f. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(*(long *)*param_1 + 8))((long *)*param_1,param_1 + 2,lVar3);
return;
}
| |
30,315 | fmt::v10::appender fmt::v10::detail::write<char, fmt::v10::appender, unsigned long long, 0>(fmt::v10::appender, unsigned long long) | AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/fmt/bundled/format.h | FMT_CONSTEXPR auto write(OutputIt out, T value) -> OutputIt {
auto abs_value = static_cast<uint32_or_64_or_128_t<T>>(value);
bool negative = is_negative(value);
// Don't do -abs_value since it trips unsigned-integer-overflow sanitizer.
if (negative) abs_value = ~abs_value + 1;
int num_digits = count_digits(abs_value);
auto size = (negative ? 1 : 0) + static_cast<size_t>(num_digits);
auto it = reserve(out, size);
if (auto ptr = to_pointer<Char>(it, size)) {
if (negative) *ptr++ = static_cast<Char>('-');
format_decimal<Char>(ptr, abs_value, num_digits);
return out;
}
if (negative) *it++ = static_cast<Char>('-');
it = format_decimal<Char>(it, abs_value, num_digits).end;
return base_iterator(out, it);
} | O0 | c | fmt::v10::appender fmt::v10::detail::write<char, fmt::v10::appender, unsigned long long, 0>(fmt::v10::appender, unsigned long long):
subq $0x98, %rsp
movq %rdi, 0x88(%rsp)
movq %rsi, 0x80(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x80(%rsp), %rdi
callq 0xcde90
andb $0x1, %al
movb %al, 0x77(%rsp)
testb $0x1, 0x77(%rsp)
je 0xcdd30
movq 0x78(%rsp), %rax
xorq $-0x1, %rax
addq $0x1, %rax
movq %rax, 0x78(%rsp)
movq 0x78(%rsp), %rdi
callq 0x96d30
movl %eax, 0x70(%rsp)
movb 0x77(%rsp), %dl
xorl %eax, %eax
movl $0x1, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
cltq
movslq 0x70(%rsp), %rcx
addq %rcx, %rax
movq %rax, 0x68(%rsp)
movq 0x68(%rsp), %rsi
leaq 0x88(%rsp), %rdi
callq 0xcd6b0
movq (%rax), %rax
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x68(%rsp), %rsi
movq 0x50(%rsp), %rdi
callq 0xcd6c0
movq %rax, 0x58(%rsp)
cmpq $0x0, 0x58(%rsp)
je 0xcddeb
testb $0x1, 0x77(%rsp)
je 0xcddb9
movq 0x58(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x58(%rsp)
movb $0x2d, (%rax)
movq 0x58(%rsp), %rdi
movq 0x78(%rsp), %rsi
movl 0x70(%rsp), %edx
callq 0x96e20
movq %rax, 0x40(%rsp)
movq %rdx, 0x48(%rsp)
movq 0x88(%rsp), %rax
movq %rax, 0x90(%rsp)
jmp 0xcde7e
testb $0x1, 0x77(%rsp)
je 0xcde1f
movb $0x2d, 0x3f(%rsp)
leaq 0x60(%rsp), %rdi
xorl %esi, %esi
callq 0x24c00
movq %rax, 0x30(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x24c20
movq %rax, %rdi
leaq 0x3f(%rsp), %rsi
callq 0x24c30
movq 0x60(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x78(%rsp), %rsi
movl 0x70(%rsp), %edx
movq 0x18(%rsp), %rdi
callq 0xcdc50
movq %rax, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x88(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0xcd7e0
movq %rax, 0x90(%rsp)
movq 0x90(%rsp), %rax
addq $0x98, %rsp
retq
nop
| _ZN3fmt3v106detail5writeIcNS0_8appenderEyTnNSt9enable_ifIXaaaasr11is_integralIT1_EE5valuentsr3std7is_sameIS5_bEE5valuentsr3std7is_sameIS5_T_EE5valueEiE4typeELi0EEET0_S9_S5_:
sub rsp, 98h
mov [rsp+98h+var_10], rdi
mov [rsp+98h+var_18], rsi
mov rax, [rsp+98h+var_18]
mov [rsp+98h+var_20], rax
mov rdi, [rsp+98h+var_18]
call _ZN3fmt3v106detail11is_negativeIyTnNSt9enable_ifIXntsr9is_signedIT_EE5valueEiE4typeELi0EEEbS4_
and al, 1
mov [rsp+98h+var_21], al
test [rsp+98h+var_21], 1
jz short loc_CDD30
mov rax, [rsp+98h+var_20]
xor rax, 0FFFFFFFFFFFFFFFFh
add rax, 1
mov [rsp+98h+var_20], rax
loc_CDD30:
mov rdi, [rsp+98h+var_20]; this
call _ZN3fmt3v106detail12count_digitsEm; fmt::v10::detail::count_digits(ulong)
mov [rsp+98h+var_28], eax
mov dl, [rsp+98h+var_21]
xor eax, eax
mov ecx, 1
test dl, 1
cmovnz eax, ecx
cdqe
movsxd rcx, [rsp+98h+var_28]
add rax, rcx
mov [rsp+98h+var_30], rax
mov rsi, [rsp+98h+var_30]
lea rdi, [rsp+98h+var_10]
call _ZN3fmt3v106detail7reserveINS0_8appenderEEERT_S5_m; fmt::v10::detail::reserve<fmt::v10::appender>(fmt::v10::appender &,ulong)
mov rax, [rax]
mov [rsp+98h+var_38], rax
mov rax, [rsp+98h+var_38]
mov [rsp+98h+var_48], rax
mov rsi, [rsp+98h+var_30]
mov rdi, [rsp+98h+var_48]
call _ZN3fmt3v106detail10to_pointerIcEEPT_NSt11conditionalIXsr3std7is_sameIS3_cEE5valueENS0_8appenderESt20back_insert_iteratorINS1_6bufferIS3_EEEE4typeEm
mov [rsp+98h+var_40], rax
cmp [rsp+98h+var_40], 0
jz short loc_CDDEB
test [rsp+98h+var_21], 1
jz short loc_CDDB9
mov rax, [rsp+98h+var_40]
mov rcx, rax
add rcx, 1
mov [rsp+98h+var_40], rcx
mov byte ptr [rax], 2Dh ; '-'
loc_CDDB9:
mov rdi, [rsp+98h+var_40]
mov rsi, [rsp+98h+var_20]
mov edx, [rsp+98h+var_28]
call _ZN3fmt3v106detail14format_decimalIcmEENS1_21format_decimal_resultIPT_EES5_T0_i; fmt::v10::detail::format_decimal<char,ulong>(char *,ulong,int)
mov [rsp+98h+var_58], rax
mov [rsp+98h+var_50], rdx
mov rax, [rsp+98h+var_10]
mov [rsp+98h+var_8], rax
jmp loc_CDE7E
loc_CDDEB:
test [rsp+98h+var_21], 1
jz short loc_CDE1F
mov [rsp+98h+var_59], 2Dh ; '-'
lea rdi, [rsp+98h+var_38]
xor esi, esi
call _ZN3fmt3v108appenderppEi; fmt::v10::appender::operator++(int)
mov [rsp+98h+var_68], rax
lea rdi, [rsp+98h+var_68]
call _ZNSt20back_insert_iteratorIN3fmt3v106detail6bufferIcEEEdeEv; std::back_insert_iterator<fmt::v10::detail::buffer<char>>::operator*(void)
mov rdi, rax
lea rsi, [rsp+98h+var_59]
call _ZNSt20back_insert_iteratorIN3fmt3v106detail6bufferIcEEEaSEOc; std::back_insert_iterator<fmt::v10::detail::buffer<char>>::operator=(char &&)
loc_CDE1F:
mov rax, [rsp+98h+var_38]
mov [rsp+98h+var_80], rax
mov rsi, [rsp+98h+var_20]
mov edx, [rsp+98h+var_28]
mov rdi, [rsp+98h+var_80]
call _ZN3fmt3v106detail14format_decimalIcmNS0_8appenderETnNSt9enable_ifIXntsr3std10is_pointerINSt9remove_cvINSt16remove_referenceIT1_E4typeEE4typeEEE5valueEiE4typeELi0EEENS1_21format_decimal_resultIS7_EES7_T0_i
mov [rsp+98h+var_78], rax
mov [rsp+98h+var_70], rdx
mov rax, [rsp+98h+var_70]
mov [rsp+98h+var_38], rax
mov rax, [rsp+98h+var_10]
mov [rsp+98h+var_88], rax
mov rax, [rsp+98h+var_38]
mov [rsp+98h+var_90], rax
mov rdi, [rsp+98h+var_88]
mov rsi, [rsp+98h+var_90]
call _ZN3fmt3v106detail13base_iteratorINS0_8appenderEEET_S4_S4_; fmt::v10::detail::base_iterator<fmt::v10::appender>(fmt::v10::appender,fmt::v10::appender)
mov [rsp+98h+var_8], rax
loc_CDE7E:
mov rax, [rsp+98h+var_8]
add rsp, 98h
retn
| long long ZN3fmt3v106detail5writeIcNS0_8appenderEyTnNSt9enable_ifIXaaaasr11is_integralIT1_EE5valuentsr3std7is_sameIS5_bEE5valuentsr3std7is_sameIS5_T_EE5valueEiE4typeELi0EEET0_S9_S5_(
long long a1,
fmt::v10::detail *a2)
{
_BYTE *v2; // rax
long long v3; // rdx
_QWORD *v4; // rax
long long v5; // rdx
long long v7; // [rsp+30h] [rbp-68h] BYREF
char v8; // [rsp+3Fh] [rbp-59h] BYREF
_WORD *v9; // [rsp+40h] [rbp-58h]
long long v10; // [rsp+48h] [rbp-50h]
long long v11; // [rsp+50h] [rbp-48h]
_BYTE *v12; // [rsp+58h] [rbp-40h]
long long v13; // [rsp+60h] [rbp-38h] BYREF
long long v14; // [rsp+68h] [rbp-30h]
int v15; // [rsp+70h] [rbp-28h]
char v16; // [rsp+77h] [rbp-21h]
fmt::v10::detail *v17; // [rsp+78h] [rbp-20h]
fmt::v10::detail *v18; // [rsp+80h] [rbp-18h]
long long v19; // [rsp+88h] [rbp-10h] BYREF
v19 = a1;
v18 = a2;
v17 = a2;
v16 = ZN3fmt3v106detail11is_negativeIyTnNSt9enable_ifIXntsr9is_signedIT_EE5valueEiE4typeELi0EEEbS4_(a2) & 1;
if ( v16 )
v17 = (fmt::v10::detail *)-(long long)v17;
v15 = fmt::v10::detail::count_digits(v17, (unsigned long long)a2);
v14 = v15 + (unsigned long long)((v16 & 1) != 0);
v13 = *(_QWORD *)fmt::v10::detail::reserve<fmt::v10::appender>((long long)&v19);
v11 = v13;
v12 = (_BYTE *)fmt::v10::detail::to_pointer<char>(v13, v14);
if ( v12 )
{
if ( (v16 & 1) != 0 )
{
v2 = v12++;
*v2 = 45;
}
v9 = fmt::v10::detail::format_decimal<char,unsigned long>((long long)v12, v17, v15);
v10 = v3;
return v19;
}
else
{
if ( (v16 & 1) != 0 )
{
v8 = 45;
v7 = fmt::v10::appender::operator++((long long)&v13);
v4 = (_QWORD *)std::back_insert_iterator<fmt::v10::detail::buffer<char>>::operator*((long long)&v7);
std::back_insert_iterator<fmt::v10::detail::buffer<char>>::operator=(v4, (long long)&v8);
}
ZN3fmt3v106detail14format_decimalIcmNS0_8appenderETnNSt9enable_ifIXntsr3std10is_pointerINSt9remove_cvINSt16remove_referenceIT1_E4typeEE4typeEEE5valueEiE4typeELi0EEENS1_21format_decimal_resultIS7_EES7_T0_i(
v13,
v17,
v15);
v13 = v5;
return fmt::v10::detail::base_iterator<fmt::v10::appender>(v19, v5);
}
}
| _ZN3fmt3v106detail5writeIcNS0_8appenderEyTnNSt9enable_ifIXaaaasr11is_integralIT1_EE5valuentsr3std7is_sameIS5_bEE5valuentsr3std7is_sameIS5_T_EE5valueEiE4typeELi0EEET0_S9_S5_:
SUB RSP,0x98
MOV qword ptr [RSP + 0x88],RDI
MOV qword ptr [RSP + 0x80],RSI
MOV RAX,qword ptr [RSP + 0x80]
MOV qword ptr [RSP + 0x78],RAX
MOV RDI,qword ptr [RSP + 0x80]
CALL 0x001cde90
AND AL,0x1
MOV byte ptr [RSP + 0x77],AL
TEST byte ptr [RSP + 0x77],0x1
JZ 0x001cdd30
MOV RAX,qword ptr [RSP + 0x78]
XOR RAX,-0x1
ADD RAX,0x1
MOV qword ptr [RSP + 0x78],RAX
LAB_001cdd30:
MOV RDI,qword ptr [RSP + 0x78]
CALL 0x00196d30
MOV dword ptr [RSP + 0x70],EAX
MOV DL,byte ptr [RSP + 0x77]
XOR EAX,EAX
MOV ECX,0x1
TEST DL,0x1
CMOVNZ EAX,ECX
CDQE
MOVSXD RCX,dword ptr [RSP + 0x70]
ADD RAX,RCX
MOV qword ptr [RSP + 0x68],RAX
MOV RSI,qword ptr [RSP + 0x68]
LEA RDI,[RSP + 0x88]
CALL 0x001cd6b0
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x60],RAX
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x50],RAX
MOV RSI,qword ptr [RSP + 0x68]
MOV RDI,qword ptr [RSP + 0x50]
CALL 0x001cd6c0
MOV qword ptr [RSP + 0x58],RAX
CMP qword ptr [RSP + 0x58],0x0
JZ 0x001cddeb
TEST byte ptr [RSP + 0x77],0x1
JZ 0x001cddb9
MOV RAX,qword ptr [RSP + 0x58]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RSP + 0x58],RCX
MOV byte ptr [RAX],0x2d
LAB_001cddb9:
MOV RDI,qword ptr [RSP + 0x58]
MOV RSI,qword ptr [RSP + 0x78]
MOV EDX,dword ptr [RSP + 0x70]
CALL 0x00196e20
MOV qword ptr [RSP + 0x40],RAX
MOV qword ptr [RSP + 0x48],RDX
MOV RAX,qword ptr [RSP + 0x88]
MOV qword ptr [RSP + 0x90],RAX
JMP 0x001cde7e
LAB_001cddeb:
TEST byte ptr [RSP + 0x77],0x1
JZ 0x001cde1f
MOV byte ptr [RSP + 0x3f],0x2d
LEA RDI,[RSP + 0x60]
XOR ESI,ESI
CALL 0x00124c00
MOV qword ptr [RSP + 0x30],RAX
LEA RDI,[RSP + 0x30]
CALL 0x00124c20
MOV RDI,RAX
LEA RSI,[RSP + 0x3f]
CALL 0x00124c30
LAB_001cde1f:
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x18],RAX
MOV RSI,qword ptr [RSP + 0x78]
MOV EDX,dword ptr [RSP + 0x70]
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x001cdc50
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0x28],RDX
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x60],RAX
MOV RAX,qword ptr [RSP + 0x88]
MOV qword ptr [RSP + 0x10],RAX
MOV RAX,qword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0x8]
CALL 0x001cd7e0
MOV qword ptr [RSP + 0x90],RAX
LAB_001cde7e:
MOV RAX,qword ptr [RSP + 0x90]
ADD RSP,0x98
RET
|
int8
_ZN3fmt3v106detail5writeIcNS0_8appenderEyTnNSt9enable_ifIXaaaasr11is_integralIT1_EE5valuentsr3std7is_sameIS5_bEE5valuentsr3std7is_sameIS5_T_EE5valueEiE4typeELi0EEET0_S9_S5_
(int8 param_1,ulong param_2)
{
int8 *puVar1;
back_insert_iterator<fmt::v10::detail::buffer<char>> *this;
int8 extraout_RDX;
int8 local_68;
char local_59 [17];
int8 local_48;
char *local_40;
int8 local_38;
ulong local_30;
int local_28;
byte local_21;
ulong local_20;
ulong local_18;
int8 local_10;
int8 local_8;
local_20 = param_2;
local_18 = param_2;
local_10 = param_1;
local_21 = _ZN3fmt3v106detail11is_negativeIyTnNSt9enable_ifIXntsr9is_signedIT_EE5valueEiE4typeELi0EEEbS4_
(param_2);
local_21 = local_21 & 1;
if (local_21 != 0) {
local_20 = (local_20 ^ 0xffffffffffffffff) + 1;
}
local_28 = fmt::v10::detail::count_digits(local_20);
local_30 = (long)(int)(uint)((local_21 & 1) != 0) + (long)local_28;
puVar1 = (int8 *)
fmt::v10::detail::reserve<fmt::v10::appender>((appender *)&local_10,local_30);
local_48 = *puVar1;
local_38 = local_48;
local_40 = fmt::v10::detail::to_pointer<char>(local_48);
if (local_40 == (char *)0x0) {
if ((local_21 & 1) != 0) {
local_59[0] = '-';
local_68 = fmt::v10::appender::operator++((appender *)&local_38,0);
this = (back_insert_iterator<fmt::v10::detail::buffer<char>> *)
std::back_insert_iterator<fmt::v10::detail::buffer<char>>::operator*
((back_insert_iterator<fmt::v10::detail::buffer<char>> *)&local_68);
std::back_insert_iterator<fmt::v10::detail::buffer<char>>::operator=(this,local_59);
}
_ZN3fmt3v106detail14format_decimalIcmNS0_8appenderETnNSt9enable_ifIXntsr3std10is_pointerINSt9remove_cvINSt16remove_referenceIT1_E4typeEE4typeEEE5valueEiE4typeELi0EEENS1_21format_decimal_resultIS7_EES7_T0_i
(local_38,local_20,local_28);
local_38 = extraout_RDX;
local_8 = fmt::v10::detail::base_iterator<fmt::v10::appender>(local_10,extraout_RDX);
}
else {
if ((local_21 & 1) != 0) {
*local_40 = '-';
local_40 = local_40 + 1;
}
fmt::v10::detail::format_decimal<char,unsigned_long>(local_40,local_20,local_28);
local_8 = local_10;
}
return local_8;
}
| |
30,316 | nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::end_object() | monkey531[P]llama/common/json.hpp | bool end_object()
{
if (ref_stack.back())
{
if (!callback(static_cast<int>(ref_stack.size()) - 1, parse_event_t::object_end, *ref_stack.back()))
{
// discard object
*ref_stack.back() = discarded;
}
else
{
ref_stack.back()->set_parents();
}
}
JSON_ASSERT(!ref_stack.empty());
JSON_ASSERT(!keep_stack.empty());
ref_stack.pop_back();
keep_stack.pop_back();
if (!ref_stack.empty() && ref_stack.back() && ref_stack.back()->is_structured())
{
// remove discarded value
for (auto it = ref_stack.back()->begin(); it != ref_stack.back()->end(); ++it)
{
if (it->is_discarded())
{
ref_stack.back()->erase(it);
break;
}
}
}
return true;
} | 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>>::end_object():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %rax
movq -0x8(%rax), %rcx
testq %rcx, %rcx
je 0x496d2
subq 0x8(%rbx), %rax
shrq $0x3, %rax
decl %eax
movl %eax, 0x28(%rsp)
movb $0x1, 0x8(%rsp)
cmpq $0x0, 0x90(%rbx)
je 0x4987d
leaq 0x80(%rbx), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq *0x98(%rbx)
testb %al, %al
jne 0x496d2
leaq 0xa8(%rbx), %rsi
leaq 0x48(%rsp), %r14
movq %r14, %rdi
callq 0x2c080
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rdi
movq %r14, %rsi
callq 0x2bda6
movq %r14, %rdi
xorl %esi, %esi
callq 0x3ecbc
movq %r14, %rdi
callq 0x4b8aa
movq 0x8(%rbx), %rcx
movq 0x10(%rbx), %rax
cmpq %rax, %rcx
je 0x49840
movq 0x30(%rbx), %rdx
movl 0x38(%rbx), %esi
cmpq %rdx, 0x20(%rbx)
sete %dil
testl %esi, %esi
sete %r8b
andb %dil, %r8b
cmpb $0x1, %r8b
je 0x4985c
leaq -0x8(%rax), %rdi
movq %rdi, 0x10(%rbx)
subl $0x1, %esi
movl %esi, 0x38(%rbx)
jae 0x49724
movl $0x3f, 0x38(%rbx)
addq $-0x8, %rdx
movq %rdx, 0x30(%rbx)
cmpq %rdi, %rcx
je 0x4982f
movq -0x10(%rax), %rax
testq %rax, %rax
je 0x4982f
movb (%rax), %cl
decb %cl
cmpb $0x1, %cl
ja 0x4982f
movabsq $-0x8000000000000000, %r12 # imm = 0x8000000000000000
leaq 0x28(%rsp), %r14
movq %rax, (%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r14)
movq %r12, 0x18(%r14)
movq %r14, %rdi
callq 0x4abf8
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rax
leaq 0x8(%rsp), %r15
movq %rax, (%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r15)
movq %r12, 0x18(%r15)
movq %r15, %rdi
callq 0x4af74
movq %r14, %rdi
movq %r15, %rsi
callq 0x4ac6a
testb %al, %al
jne 0x4982f
leaq 0x30(%rsp), %r13
leaq 0x10(%rsp), %rbp
leaq 0x28(%rsp), %r14
leaq 0x8(%rsp), %r15
movq %r14, %rdi
callq 0x4a7d0
cmpb $0x9, (%rax)
je 0x497ff
movq %r14, %rdi
callq 0x4abaa
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rax
movq %rax, 0x8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rbp)
movq %r12, 0x20(%rsp)
movq %r15, %rdi
callq 0x4af74
movq %r14, %rdi
movq %r15, %rsi
callq 0x4ac6a
testb %al, %al
je 0x497b8
jmp 0x4982f
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rsi
movq 0x28(%rsp), %rax
leaq 0x58(%rsp), %rdx
movq %rax, (%rdx)
movups (%r13), %xmm0
movups %xmm0, 0x8(%rdx)
movq 0x10(%r13), %rax
movq %rax, 0x18(%rdx)
leaq 0x8(%rsp), %rdi
callq 0x4a91c
movb $0x1, %al
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x60f56(%rip), %rdi # 0xaa79d
leaq 0x5f723(%rip), %rdx # 0xa8f71
leaq 0x6245a(%rip), %rcx # 0xabcaf
movl $0x1bbd, %esi # imm = 0x1BBD
jmp 0x49876
leaq 0x60f3a(%rip), %rdi # 0xaa79d
leaq 0x5f707(%rip), %rdx # 0xa8f71
leaq 0x623b8(%rip), %rcx # 0xabc29
movl $0x1bbe, %esi # imm = 0x1BBE
xorl %eax, %eax
callq 0x18af0
callq 0x18250
| _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE10end_objectEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov rbx, rdi
mov rax, [rdi+10h]
mov rcx, [rax-8]
test rcx, rcx
jz short loc_496D2
sub rax, [rbx+8]
shr rax, 3
dec eax
mov dword ptr [rsp+0A8h+var_80], eax
mov byte ptr [rsp+0A8h+var_A0], 1
cmp qword ptr [rbx+90h], 0
jz loc_4987D
lea rdi, [rbx+80h]
lea rsi, [rsp+0A8h+var_80]
lea rdx, [rsp+0A8h+var_A0]
call qword ptr [rbx+98h]
test al, al
jnz short loc_496D2
lea rsi, [rbx+0A8h]
lea r14, [rsp+0A8h+var_60]
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
mov rax, [rbx+10h]
mov rdi, [rax-8]
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r14
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_496D2:
mov rcx, [rbx+8]
mov rax, [rbx+10h]
cmp rcx, rax
jz loc_49840
mov rdx, [rbx+30h]
mov esi, [rbx+38h]
cmp [rbx+20h], rdx
setz dil
test esi, esi
setz r8b
and r8b, dil
cmp r8b, 1
jz loc_4985C
lea rdi, [rax-8]
mov [rbx+10h], rdi
sub esi, 1
mov [rbx+38h], esi
jnb short loc_49724
mov dword ptr [rbx+38h], 3Fh ; '?'
add rdx, 0FFFFFFFFFFFFFFF8h
mov [rbx+30h], rdx
loc_49724:
cmp rcx, rdi
jz loc_4982F
mov rax, [rax-10h]
test rax, rax
jz loc_4982F
mov cl, [rax]
dec cl
cmp cl, 1
ja loc_4982F
mov r12, 8000000000000000h
lea r14, [rsp+0A8h+var_80]
mov [r14], rax
xorps xmm0, xmm0
movups xmmword ptr [r14+8], xmm0
mov [r14+18h], r12
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE9set_beginEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::set_begin(void)
mov rax, [rbx+10h]
mov rax, [rax-8]
lea r15, [rsp+0A8h+var_A0]
mov [r15], rax
xorps xmm0, xmm0
movups xmmword ptr [r15+8], xmm0
mov [r15+18h], r12
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE7set_endEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::set_end(void)
mov rdi, r14
mov rsi, r15
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_
test al, al
jnz loc_4982F
lea r13, [rsp+0A8h+var_78]
lea rbp, [rsp+0A8h+var_98]
lea r14, [rsp+0A8h+var_80]
lea r15, [rsp+0A8h+var_A0]
loc_497B8:
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEptEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::operator->(void)
cmp byte ptr [rax], 9
jz short loc_497FF
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEppEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::operator++(void)
mov rax, [rbx+10h]
mov rax, [rax-8]
mov [rsp+0A8h+var_A0], rax
xorps xmm0, xmm0
movups xmmword ptr [rbp+0], xmm0
mov [rsp+0A8h+var_88], r12
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE7set_endEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::set_end(void)
mov rdi, r14
mov rsi, r15
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_
test al, al
jz short loc_497B8
jmp short loc_4982F
loc_497FF:
mov rax, [rbx+10h]
mov rsi, [rax-8]
mov rax, [rsp+0A8h+var_80]
lea rdx, [rsp+0A8h+var_50]
mov [rdx], rax
movups xmm0, xmmword ptr [r13+0]
movups xmmword ptr [rdx+8], xmm0
mov rax, [r13+10h]
mov [rdx+18h], rax
lea rdi, [rsp+0A8h+var_A0]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_
loc_4982F:
mov al, 1
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_49840:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aRefStackEmpty; "!ref_stack.empty()"
mov esi, 1BBDh
jmp short loc_49876
loc_4985C:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aKeepStackEmpty; "!keep_stack.empty()"
mov esi, 1BBEh
loc_49876:
xor eax, eax
call _ggml_abort
loc_4987D:
call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void)
| char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::end_object(
long long a1)
{
long long v1; // rax
long long v2; // rcx
long long v3; // rax
long long v4; // rdx
int v5; // esi
_BYTE *v6; // rax
long long v7; // rsi
long long v9; // [rsp+8h] [rbp-A0h] BYREF
__int128 v10; // [rsp+10h] [rbp-98h]
unsigned long long v11; // [rsp+20h] [rbp-88h]
_BYTE *v12; // [rsp+28h] [rbp-80h] BYREF
__int128 v13; // [rsp+30h] [rbp-78h]
unsigned long long v14; // [rsp+40h] [rbp-68h]
char v15[16]; // [rsp+48h] [rbp-60h] BYREF
_BYTE *v16; // [rsp+58h] [rbp-50h]
__int128 v17; // [rsp+60h] [rbp-48h]
unsigned long long v18; // [rsp+70h] [rbp-38h]
v1 = *(_QWORD *)(a1 + 16);
if ( *(_QWORD *)(v1 - 8) )
{
LODWORD(v12) = ((unsigned long long)(v1 - *(_QWORD *)(a1 + 8)) >> 3) - 1;
LOBYTE(v9) = 1;
if ( !*(_QWORD *)(a1 + 144) )
goto LABEL_20;
if ( !(*(unsigned __int8 ( **)(long long, _BYTE **, long long *))(a1 + 152))(a1 + 128, &v12, &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>::basic_json(
(long long)v15,
a1 + 168);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
*(char **)(*(_QWORD *)(a1 + 16) - 8LL),
v15);
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(v15);
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(v15);
}
}
v2 = *(_QWORD *)(a1 + 8);
v3 = *(_QWORD *)(a1 + 16);
if ( v2 == v3 )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7101LL,
"GGML_ASSERT(%s) failed",
"!ref_stack.empty()");
goto LABEL_20;
}
v4 = *(_QWORD *)(a1 + 48);
v5 = *(_DWORD *)(a1 + 56);
if ( *(_QWORD *)(a1 + 32) == v4 && v5 == 0 )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7102LL,
"GGML_ASSERT(%s) failed",
"!keep_stack.empty()");
LABEL_20:
std::__throw_bad_function_call();
}
*(_QWORD *)(a1 + 16) = v3 - 8;
*(_DWORD *)(a1 + 56) = v5 - 1;
if ( !v5 )
{
*(_DWORD *)(a1 + 56) = 63;
*(_QWORD *)(a1 + 48) = v4 - 8;
}
if ( v2 != v3 - 8 )
{
v6 = *(_BYTE **)(v3 - 16);
if ( v6 )
{
if ( (unsigned __int8)(*v6 - 1) <= 1u )
{
v12 = v6;
v13 = 0LL;
v14 = 0x8000000000000000LL;
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::set_begin(&v12);
v9 = *(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL);
v10 = 0LL;
v11 = 0x8000000000000000LL;
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::set_end(&v9);
if ( !(unsigned __int8)ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_(
&v12,
&v9) )
{
while ( *(_BYTE *)nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::operator->(&v12) != 9 )
{
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::operator++(&v12);
v9 = *(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL);
v10 = 0LL;
v11 = 0x8000000000000000LL;
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::set_end(&v9);
if ( (unsigned __int8)ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_(
&v12,
&v9) )
return 1;
}
v7 = *(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL);
v16 = v12;
v17 = v13;
v18 = v14;
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_(
&v9,
v7);
}
}
}
}
return 1;
}
| end_object:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x10]
MOV RCX,qword ptr [RAX + -0x8]
TEST RCX,RCX
JZ 0x001496d2
SUB RAX,qword ptr [RBX + 0x8]
SHR RAX,0x3
DEC EAX
MOV dword ptr [RSP + 0x28],EAX
MOV byte ptr [RSP + 0x8],0x1
CMP qword ptr [RBX + 0x90],0x0
JZ 0x0014987d
LEA RDI,[RBX + 0x80]
LEA RSI,[RSP + 0x28]
LEA RDX,[RSP + 0x8]
CALL qword ptr [RBX + 0x98]
TEST AL,AL
JNZ 0x001496d2
LEA RSI,[RBX + 0xa8]
LEA R14,[RSP + 0x48]
MOV RDI,R14
CALL 0x0012c080
MOV RAX,qword ptr [RBX + 0x10]
MOV RDI,qword ptr [RAX + -0x8]
MOV RSI,R14
CALL 0x0012bda6
MOV RDI,R14
XOR ESI,ESI
CALL 0x0013ecbc
MOV RDI,R14
CALL 0x0014b8aa
LAB_001496d2:
MOV RCX,qword ptr [RBX + 0x8]
MOV RAX,qword ptr [RBX + 0x10]
CMP RCX,RAX
JZ 0x00149840
MOV RDX,qword ptr [RBX + 0x30]
MOV ESI,dword ptr [RBX + 0x38]
CMP qword ptr [RBX + 0x20],RDX
SETZ DIL
TEST ESI,ESI
SETZ R8B
AND R8B,DIL
CMP R8B,0x1
JZ 0x0014985c
LEA RDI,[RAX + -0x8]
MOV qword ptr [RBX + 0x10],RDI
SUB ESI,0x1
MOV dword ptr [RBX + 0x38],ESI
JNC 0x00149724
MOV dword ptr [RBX + 0x38],0x3f
ADD RDX,-0x8
MOV qword ptr [RBX + 0x30],RDX
LAB_00149724:
CMP RCX,RDI
JZ 0x0014982f
MOV RAX,qword ptr [RAX + -0x10]
TEST RAX,RAX
JZ 0x0014982f
MOV CL,byte ptr [RAX]
DEC CL
CMP CL,0x1
JA 0x0014982f
MOV R12,-0x8000000000000000
LEA R14,[RSP + 0x28]
MOV qword ptr [R14],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R14 + 0x8],XMM0
MOV qword ptr [R14 + 0x18],R12
MOV RDI,R14
CALL 0x0014abf8
MOV RAX,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [RAX + -0x8]
LEA R15,[RSP + 0x8]
MOV qword ptr [R15],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R15 + 0x8],XMM0
MOV qword ptr [R15 + 0x18],R12
MOV RDI,R15
CALL 0x0014af74
MOV RDI,R14
MOV RSI,R15
CALL 0x0014ac6a
TEST AL,AL
JNZ 0x0014982f
LEA R13,[RSP + 0x30]
LEA RBP,[RSP + 0x10]
LEA R14,[RSP + 0x28]
LEA R15,[RSP + 0x8]
LAB_001497b8:
MOV RDI,R14
CALL 0x0014a7d0
CMP byte ptr [RAX],0x9
JZ 0x001497ff
MOV RDI,R14
CALL 0x0014abaa
MOV RAX,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [RAX + -0x8]
MOV qword ptr [RSP + 0x8],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBP],XMM0
MOV qword ptr [RSP + 0x20],R12
MOV RDI,R15
CALL 0x0014af74
MOV RDI,R14
MOV RSI,R15
CALL 0x0014ac6a
TEST AL,AL
JZ 0x001497b8
JMP 0x0014982f
LAB_001497ff:
MOV RAX,qword ptr [RBX + 0x10]
MOV RSI,qword ptr [RAX + -0x8]
MOV RAX,qword ptr [RSP + 0x28]
LEA RDX,[RSP + 0x58]
MOV qword ptr [RDX],RAX
MOVUPS XMM0,xmmword ptr [R13]
MOVUPS xmmword ptr [RDX + 0x8],XMM0
MOV RAX,qword ptr [R13 + 0x10]
MOV qword ptr [RDX + 0x18],RAX
LEA RDI,[RSP + 0x8]
CALL 0x0014a91c
LAB_0014982f:
MOV AL,0x1
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00149840:
LEA RDI,[0x1aa79d]
LEA RDX,[0x1a8f71]
LEA RCX,[0x1abcaf]
MOV ESI,0x1bbd
JMP 0x00149876
LAB_0014985c:
LEA RDI,[0x1aa79d]
LEA RDX,[0x1a8f71]
LEA RCX,[0x1abc29]
MOV ESI,0x1bbe
LAB_00149876:
XOR EAX,EAX
CALL 0x00118af0
LAB_0014987d:
CALL 0x00118250
|
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::end_object() */
int8 __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::end_object(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this)
{
int iVar1;
long lVar2;
char cVar3;
char *pcVar4;
int8 uVar5;
int8 local_a0;
int8 local_98;
int8 uStack_90;
int8 local_88;
char *local_80;
int8 local_78;
int8 uStack_70;
int8 local_68;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_60 [16];
char *local_50;
int4 local_48;
int4 uStack_44;
int4 uStack_40;
int4 uStack_3c;
int8 local_38;
if (*(long *)(*(long *)(this + 0x10) + -8) != 0) {
local_80 = (char *)CONCAT44(local_80._4_4_,
(int)((ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3) +
-1);
local_a0 = CONCAT71(local_a0._1_7_,1);
if (*(long *)(this + 0x90) == 0) {
/* WARNING: Subroutine does not return */
std::__throw_bad_function_call();
}
cVar3 = (**(code **)(this + 0x98))(this + 0x80,&local_80,&local_a0);
if (cVar3 == '\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_60,(basic_json *)(this + 0xa8));
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)(*(long *)(this + 0x10) + -8),local_60);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_60,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_60);
}
}
lVar2 = *(long *)(this + 0x10);
if (*(long *)(this + 8) == lVar2) {
pcVar4 = "!ref_stack.empty()";
uVar5 = 0x1bbd;
}
else {
iVar1 = *(int *)(this + 0x38);
if (iVar1 != 0 || *(long *)(this + 0x20) != *(long *)(this + 0x30)) {
*(long *)(this + 0x10) = lVar2 + -8;
*(int *)(this + 0x38) = iVar1 + -1;
if (iVar1 == 0) {
*(int4 *)(this + 0x38) = 0x3f;
*(long *)(this + 0x30) = *(long *)(this + 0x30) + -8;
}
if (((*(long *)(this + 8) != lVar2 + -8) &&
(local_80 = *(char **)(lVar2 + -0x10), local_80 != (char *)0x0)) &&
((byte)(*local_80 - 1U) < 2)) {
local_78 = 0;
uStack_70 = 0;
local_68 = 0x8000000000000000;
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::set_begin((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_80);
local_a0 = *(int8 *)(*(long *)(this + 0x10) + -8);
local_98 = 0;
uStack_90 = 0;
local_88 = 0x8000000000000000;
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::set_end((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_a0);
cVar3 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_
((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_80,
(iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_a0);
if (cVar3 == '\0') {
do {
pcVar4 = (char *)iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::operator->((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_80);
if (*pcVar4 == '\t') {
local_50 = local_80;
local_48 = (int4)local_78;
uStack_44 = local_78._4_4_;
uStack_40 = (int4)uStack_70;
uStack_3c = uStack_70._4_4_;
local_38 = local_68;
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_
(&local_a0,*(int8 *)(*(long *)(this + 0x10) + -8));
return 1;
}
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::operator++((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_80);
local_a0 = *(int8 *)(*(long *)(this + 0x10) + -8);
local_98 = 0;
uStack_90 = 0;
local_88 = 0x8000000000000000;
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::set_end((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_a0);
cVar3 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_
((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_80,
(iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_a0);
} while (cVar3 == '\0');
}
}
return 1;
}
pcVar4 = "!keep_stack.empty()";
uVar5 = 0x1bbe;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",uVar5,
"GGML_ASSERT(%s) failed",pcVar4);
}
| |
30,317 | bool moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent, moodycamel::ConcurrentQueueDefaultTraits>::try_dequeue<emittra::Emittra::QueuedEvent>(emittra::Emittra::QueuedEvent&) | angrymouse[P]emittra/include/concurrentqueue.h | bool try_dequeue(U& item)
{
// Instead of simply trying each producer in turn (which could cause needless contention on the first
// producer), we score them heuristically.
size_t nonEmptyCount = 0;
ProducerBase* best = nullptr;
size_t bestSize = 0;
for (auto ptr = producerListTail.load(std::memory_order_acquire); nonEmptyCount < 3 && ptr != nullptr; ptr = ptr->next_prod()) {
auto size = ptr->size_approx();
if (size > 0) {
if (size > bestSize) {
bestSize = size;
best = ptr;
}
++nonEmptyCount;
}
}
// If there was at least one non-empty queue but it appears empty at the time
// we try to dequeue from it, we need to make sure every queue's been tried
if (nonEmptyCount > 0) {
if ((details::likely)(best->dequeue(item))) {
return true;
}
for (auto ptr = producerListTail.load(std::memory_order_acquire); ptr != nullptr; ptr = ptr->next_prod()) {
if (ptr != best && ptr->dequeue(item)) {
return true;
}
}
}
return false;
} | O1 | c | bool moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent, moodycamel::ConcurrentQueueDefaultTraits>::try_dequeue<emittra::Emittra::QueuedEvent>(emittra::Emittra::QueuedEvent&):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r15
movq (%rdi), %rax
testq %rax, %rax
je 0x6752
xorl %ecx, %ecx
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
xorl %esi, %esi
xorl %r14d, %r14d
xorl %edi, %edi
movq %rsi, %r8
movq 0x20(%rax), %r9
movq 0x28(%rax), %r10
movq %r10, %r11
subq %r9, %r11
subq %r10, %r9
cmpq %rdx, %r11
cmovbeq %rcx, %r9
cmpq %rsi, %r9
cmovaq %r9, %rsi
movq %r14, %r10
cmovaq %rax, %r14
movq %rdi, %r11
xorl %edi, %edi
testq %r9, %r9
cmoveq %r10, %r14
cmoveq %r8, %rsi
setne %dil
addq %r11, %rdi
movq 0x8(%rax), %r8
leaq -0x8(%r8), %rax
testq %r8, %r8
cmoveq %r8, %rax
cmpq $0x2, %rdi
ja 0x674a
testq %r8, %r8
jne 0x66f0
testq %rdi, %rdi
sete %al
jmp 0x6757
movb $0x1, %al
xorl %r14d, %r14d
testb %al, %al
je 0x675f
xorl %ebp, %ebp
jmp 0x6785
cmpb $0x1, 0x48(%r14)
jne 0x6773
movq %r14, %rdi
movq %rbx, %rsi
callq 0x99d2
jmp 0x677e
movq %r14, %rdi
movq %rbx, %rsi
callq 0x9af8
movb $0x1, %bpl
testb %al, %al
je 0x6792
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq (%r15), %r15
testq %r15, %r15
je 0x675b
cmpq %r14, %r15
je 0x67c2
cmpb $0x1, 0x48(%r15)
jne 0x67b3
movq %r15, %rdi
movq %rbx, %rsi
callq 0x99d2
jmp 0x67be
movq %r15, %rdi
movq %rbx, %rsi
callq 0x9af8
testb %al, %al
jne 0x6785
movq 0x8(%r15), %rax
leaq -0x8(%rax), %r15
testq %rax, %rax
cmoveq %rax, %r15
jne 0x679a
jmp 0x675b
nop
| _ZN10moodycamel15ConcurrentQueueIN7emittra7Emittra11QueuedEventENS_28ConcurrentQueueDefaultTraitsEE11try_dequeueIS3_EEbRT_:
push rbp
push r15
push r14
push rbx
push rax
mov rbx, rsi
mov r15, rdi
mov rax, [rdi]
test rax, rax
jz short loc_6752
xor ecx, ecx
mov rdx, 8000000000000000h
xor esi, esi
xor r14d, r14d
xor edi, edi
loc_66F0:
mov r8, rsi
mov r9, [rax+20h]
mov r10, [rax+28h]
mov r11, r10
sub r11, r9
sub r9, r10
cmp r11, rdx
cmovbe r9, rcx
cmp r9, rsi
cmova rsi, r9
mov r10, r14
cmova r14, rax
mov r11, rdi
xor edi, edi
test r9, r9
cmovz r14, r10
cmovz rsi, r8
setnz dil
add rdi, r11
mov r8, [rax+8]
lea rax, [r8-8]
test r8, r8
cmovz rax, r8
cmp rdi, 2
ja short loc_674A
test r8, r8
jnz short loc_66F0
loc_674A:
test rdi, rdi
setz al
jmp short loc_6757
loc_6752:
mov al, 1
xor r14d, r14d
loc_6757:
test al, al
jz short loc_675F
loc_675B:
xor ebp, ebp
jmp short loc_6785
loc_675F:
cmp byte ptr [r14+48h], 1
jnz short loc_6773
mov rdi, r14
mov rsi, rbx
call _ZN10moodycamel15ConcurrentQueueIN7emittra7Emittra11QueuedEventENS_28ConcurrentQueueDefaultTraitsEE16ExplicitProducer7dequeueIS3_EEbRT_; moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ExplicitProducer::dequeue<emittra::Emittra::QueuedEvent>(emittra::Emittra::QueuedEvent &)
jmp short loc_677E
loc_6773:
mov rdi, r14
mov rsi, rbx
call _ZN10moodycamel15ConcurrentQueueIN7emittra7Emittra11QueuedEventENS_28ConcurrentQueueDefaultTraitsEE16ImplicitProducer7dequeueIS3_EEbRT_; moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::dequeue<emittra::Emittra::QueuedEvent>(emittra::Emittra::QueuedEvent &)
loc_677E:
mov bpl, 1
test al, al
jz short loc_6792
loc_6785:
mov eax, ebp
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_6792:
mov r15, [r15]
test r15, r15
jz short loc_675B
loc_679A:
cmp r15, r14
jz short loc_67C2
cmp byte ptr [r15+48h], 1
jnz short loc_67B3
mov rdi, r15
mov rsi, rbx
call _ZN10moodycamel15ConcurrentQueueIN7emittra7Emittra11QueuedEventENS_28ConcurrentQueueDefaultTraitsEE16ExplicitProducer7dequeueIS3_EEbRT_; moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ExplicitProducer::dequeue<emittra::Emittra::QueuedEvent>(emittra::Emittra::QueuedEvent &)
jmp short loc_67BE
loc_67B3:
mov rdi, r15
mov rsi, rbx
call _ZN10moodycamel15ConcurrentQueueIN7emittra7Emittra11QueuedEventENS_28ConcurrentQueueDefaultTraitsEE16ImplicitProducer7dequeueIS3_EEbRT_; moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::dequeue<emittra::Emittra::QueuedEvent>(emittra::Emittra::QueuedEvent &)
loc_67BE:
test al, al
jnz short loc_6785
loc_67C2:
mov rax, [r15+8]
lea r15, [rax-8]
test rax, rax
cmovz r15, rax
jnz short loc_679A
jmp short loc_675B
| long long moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::try_dequeue<emittra::Emittra::QueuedEvent>(
_QWORD *a1,
long long a2,
unsigned long long a3,
long long a4)
{
unsigned int v4; // ebp
_QWORD *v7; // rax
unsigned long long v8; // rsi
_QWORD *v9; // r14
unsigned long long v10; // rdi
unsigned long long v11; // r8
long long v12; // r9
unsigned long long v13; // r11
unsigned long long v14; // r9
bool v15; // cc
_QWORD *v16; // r10
unsigned long long v17; // r11
long long v18; // rdi
long long v19; // r8
bool v20; // al
char v21; // al
long long v22; // rdx
long long v23; // rcx
_QWORD *v25; // r15
long long v27; // rax
v7 = (_QWORD *)*a1;
if ( *a1 )
{
a4 = 0LL;
a3 = 0x8000000000000000LL;
v8 = 0LL;
v9 = 0LL;
v10 = 0LL;
do
{
v11 = v8;
v12 = v7[4];
v13 = v7[5] - v12;
v14 = v12 - v7[5];
if ( v13 <= 0x8000000000000000LL )
v14 = 0LL;
v15 = v14 <= v8;
if ( v14 > v8 )
v8 = v14;
v16 = v9;
if ( !v15 )
v9 = v7;
v17 = v10;
v18 = 0LL;
if ( !v14 )
{
v9 = v16;
v8 = v11;
}
LOBYTE(v18) = v14 != 0;
v10 = v17 + v18;
v19 = v7[1];
v7 = (_QWORD *)(v19 - 8);
if ( !v19 )
v7 = 0LL;
}
while ( v10 <= 2 && v19 );
v20 = v10 == 0;
}
else
{
v20 = 1;
v9 = 0LL;
}
if ( v20 )
return 0;
if ( *((_BYTE *)v9 + 72) == 1 )
v21 = moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ExplicitProducer::dequeue<emittra::Emittra::QueuedEvent>(
v9,
a2,
a3,
a4);
else
v21 = moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::dequeue<emittra::Emittra::QueuedEvent>(
v9,
a2,
a3,
a4);
LOBYTE(v4) = 1;
if ( !v21 )
{
v25 = (_QWORD *)*a1;
if ( !v25 )
return 0;
while ( 1 )
{
if ( v25 != v9 )
{
if ( *((_BYTE *)v25 + 72) == 1
? moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ExplicitProducer::dequeue<emittra::Emittra::QueuedEvent>(
v25,
a2,
v22,
v23)
: (unsigned __int8)moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer::dequeue<emittra::Emittra::QueuedEvent>(
v25,
a2,
v22,
v23) )
{
break;
}
}
v27 = v25[1];
v25 = (_QWORD *)(v27 - 8);
if ( !v27 )
return 0;
}
}
return v4;
}
| try_dequeue<emittra::Emittra::QueuedEvent>:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R15,RDI
MOV RAX,qword ptr [RDI]
TEST RAX,RAX
JZ 0x00106752
XOR ECX,ECX
MOV RDX,-0x8000000000000000
XOR ESI,ESI
XOR R14D,R14D
XOR EDI,EDI
LAB_001066f0:
MOV R8,RSI
MOV R9,qword ptr [RAX + 0x20]
MOV R10,qword ptr [RAX + 0x28]
MOV R11,R10
SUB R11,R9
SUB R9,R10
CMP R11,RDX
CMOVBE R9,RCX
CMP R9,RSI
CMOVA RSI,R9
MOV R10,R14
CMOVA R14,RAX
MOV R11,RDI
XOR EDI,EDI
TEST R9,R9
CMOVZ R14,R10
CMOVZ RSI,R8
SETNZ DIL
ADD RDI,R11
MOV R8,qword ptr [RAX + 0x8]
LEA RAX,[R8 + -0x8]
TEST R8,R8
CMOVZ RAX,R8
CMP RDI,0x2
JA 0x0010674a
TEST R8,R8
JNZ 0x001066f0
LAB_0010674a:
TEST RDI,RDI
SETZ AL
JMP 0x00106757
LAB_00106752:
MOV AL,0x1
XOR R14D,R14D
LAB_00106757:
TEST AL,AL
JZ 0x0010675f
LAB_0010675b:
XOR EBP,EBP
JMP 0x00106785
LAB_0010675f:
CMP byte ptr [R14 + 0x48],0x1
JNZ 0x00106773
MOV RDI,R14
MOV RSI,RBX
CALL 0x001099d2
JMP 0x0010677e
LAB_00106773:
MOV RDI,R14
MOV RSI,RBX
CALL 0x00109af8
LAB_0010677e:
MOV BPL,0x1
TEST AL,AL
JZ 0x00106792
LAB_00106785:
MOV EAX,EBP
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_00106792:
MOV R15,qword ptr [R15]
TEST R15,R15
JZ 0x0010675b
LAB_0010679a:
CMP R15,R14
JZ 0x001067c2
CMP byte ptr [R15 + 0x48],0x1
JNZ 0x001067b3
MOV RDI,R15
MOV RSI,RBX
CALL 0x001099d2
JMP 0x001067be
LAB_001067b3:
MOV RDI,R15
MOV RSI,RBX
CALL 0x00109af8
LAB_001067be:
TEST AL,AL
JNZ 0x00106785
LAB_001067c2:
MOV RAX,qword ptr [R15 + 0x8]
LEA R15,[RAX + -0x8]
TEST RAX,RAX
CMOVZ R15,RAX
JNZ 0x0010679a
JMP 0x0010675b
|
/* bool moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,
moodycamel::ConcurrentQueueDefaultTraits>::try_dequeue<emittra::Emittra::QueuedEvent>(emittra::Emittra::QueuedEvent&)
*/
bool __thiscall
moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>
::try_dequeue<emittra::Emittra::QueuedEvent>
(ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>
*this,QueuedEvent *param_1)
{
long lVar1;
ExplicitProducer *pEVar2;
ulong uVar3;
ulong uVar4;
ulong uVar5;
ulong uVar6;
ExplicitProducer *this_00;
ExplicitProducer *pEVar7;
bool bVar8;
pEVar2 = *(ExplicitProducer **)this;
if (pEVar2 == (ExplicitProducer *)0x0) {
bVar8 = true;
this_00 = (ExplicitProducer *)0x0;
}
else {
this_00 = (ExplicitProducer *)0x0;
uVar5 = 0;
uVar3 = 0;
do {
uVar6 = *(long *)(pEVar2 + 0x20) - *(long *)(pEVar2 + 0x28);
if ((ulong)(*(long *)(pEVar2 + 0x28) - *(long *)(pEVar2 + 0x20)) < 0x8000000000000001) {
uVar6 = 0;
}
pEVar7 = this_00;
uVar4 = uVar3;
if (uVar3 < uVar6) {
pEVar7 = pEVar2;
uVar4 = uVar6;
}
if (uVar6 == 0) {
uVar4 = uVar3;
pEVar7 = this_00;
}
this_00 = pEVar7;
uVar5 = (uVar6 != 0) + uVar5;
lVar1 = *(long *)(pEVar2 + 8);
pEVar2 = (ExplicitProducer *)(lVar1 + -8);
if (lVar1 == 0) {
pEVar2 = (ExplicitProducer *)0x0;
}
} while ((uVar5 < 3) && (uVar3 = uVar4, lVar1 != 0));
bVar8 = uVar5 == 0;
}
if (!bVar8) {
if (this_00[0x48] == (ExplicitProducer)0x1) {
bVar8 = ExplicitProducer::dequeue<emittra::Emittra::QueuedEvent>(this_00,param_1);
}
else {
bVar8 = ImplicitProducer::dequeue<emittra::Emittra::QueuedEvent>
((ImplicitProducer *)this_00,param_1);
}
if (bVar8 != false) {
return true;
}
pEVar2 = *(ExplicitProducer **)this;
pEVar7 = pEVar2;
while (pEVar7 != (ExplicitProducer *)0x0) {
if (pEVar2 != this_00) {
if (pEVar2[0x48] == (ExplicitProducer)0x1) {
bVar8 = ExplicitProducer::dequeue<emittra::Emittra::QueuedEvent>(pEVar2,param_1);
}
else {
bVar8 = ImplicitProducer::dequeue<emittra::Emittra::QueuedEvent>
((ImplicitProducer *)pEVar2,param_1);
}
if (bVar8 != false) {
return true;
}
}
pEVar7 = *(ExplicitProducer **)(pEVar2 + 8);
pEVar2 = pEVar7 + -8;
}
}
return false;
}
| |
30,318 | ggml_rms_norm_impl | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c | static struct ggml_tensor * ggml_rms_norm_impl(
struct ggml_context * ctx,
struct ggml_tensor * a,
float eps,
bool inplace) {
struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a);
ggml_set_op_params(result, &eps, sizeof(eps));
result->op = GGML_OP_RMS_NORM;
result->src[0] = a;
return result;
} | O2 | c | ggml_rms_norm_impl:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movss %xmm0, 0x4(%rsp)
testl %edx, %edx
je 0x22346
callq 0x1d410
jmp 0x2234b
callq 0x1e7a0
movq %rax, %r14
leaq 0x4(%rsp), %rsi
pushq $0x4
popq %rdx
movq %rax, %rdi
callq 0x2221d
movl $0x17, 0x50(%r14)
movq %rbx, 0x98(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| ggml_rms_norm_impl:
push r14
push rbx
push rax
mov rbx, rsi
movss [rsp+18h+var_14], xmm0
test edx, edx
jz short loc_22346
call _ggml_view_tensor
jmp short loc_2234B
loc_22346:
call _ggml_dup_tensor
loc_2234B:
mov r14, rax
lea rsi, [rsp+18h+var_14]
push 4
pop rdx
mov rdi, rax
call ggml_set_op_params
mov dword ptr [r14+50h], 17h
mov [r14+98h], rbx
mov rax, r14
add rsp, 8
pop rbx
pop r14
retn
| long long ggml_rms_norm_impl(
long long a1,
unsigned int *a2,
int a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11)
{
long long v11; // rax
long long v12; // rcx
long long v13; // r8
long long v14; // r9
__m128 v15; // xmm4
__m128 v16; // xmm5
long long v17; // r14
__int32 v19[5]; // [rsp+0h] [rbp-14h] BYREF
v19[0] = a4.m128_i32[0];
if ( a3 )
v11 = ggml_view_tensor(a1, (long long)a2, a4, a5, a6, a7, a8, a9, a10, a11);
else
v11 = ggml_dup_tensor(a1, a2);
v17 = v11;
ggml_set_op_params(v11, (long long)v19, 4LL, a4, a5, a6, a7, v15, v16, a10, a11, v12, v13, v14);
*(_DWORD *)(v17 + 80) = 23;
*(_QWORD *)(v17 + 152) = a2;
return v17;
}
| ggml_rms_norm_impl:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOVSS dword ptr [RSP + 0x4],XMM0
TEST EDX,EDX
JZ 0x00122346
CALL 0x0011d410
JMP 0x0012234b
LAB_00122346:
CALL 0x0011e7a0
LAB_0012234b:
MOV R14,RAX
LEA RSI,[RSP + 0x4]
PUSH 0x4
POP RDX
MOV RDI,RAX
CALL 0x0012221d
MOV dword ptr [R14 + 0x50],0x17
MOV qword ptr [R14 + 0x98],RBX
MOV RAX,R14
ADD RSP,0x8
POP RBX
POP R14
RET
|
long ggml_rms_norm_impl(int8 param_1,int8 param_2,int param_3)
{
long lVar1;
int1 local_14 [4];
if (param_3 == 0) {
lVar1 = ggml_dup_tensor();
}
else {
lVar1 = ggml_view_tensor();
}
ggml_set_op_params(lVar1,local_14,4);
*(int4 *)(lVar1 + 0x50) = 0x17;
*(int8 *)(lVar1 + 0x98) = param_2;
return lVar1;
}
| |
30,319 | ggml_rms_norm_impl | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c | static struct ggml_tensor * ggml_rms_norm_impl(
struct ggml_context * ctx,
struct ggml_tensor * a,
float eps,
bool inplace) {
struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a);
ggml_set_op_params(result, &eps, sizeof(eps));
result->op = GGML_OP_RMS_NORM;
result->src[0] = a;
return result;
} | O3 | c | ggml_rms_norm_impl:
pushq %rbx
subq $0x10, %rsp
movss %xmm0, 0xc(%rsp)
movq %rsi, %rbx
testl %edx, %edx
je 0x1b9aa
movq %rbx, %rsi
callq 0x16260
jmp 0x1b9c0
movl (%rbx), %esi
leaq 0x10(%rbx), %rcx
movl $0x4, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x1a57f
testq %rax, %rax
je 0x1b9e4
movss 0xc(%rsp), %xmm0
movss %xmm0, 0x54(%rax)
movl $0x17, 0x50(%rax)
movq %rbx, 0x98(%rax)
addq $0x10, %rsp
popq %rbx
retq
leaq 0x32d7e(%rip), %rdi # 0x4e769
leaq 0x30c73(%rip), %rdx # 0x4c665
leaq 0x32e9d(%rip), %rcx # 0x4e896
movl $0x70, %esi
xorl %eax, %eax
callq 0x17cd0
| ggml_rms_norm_impl:
push rbx
sub rsp, 10h
movss [rsp+18h+var_C], xmm0
mov rbx, rsi
test edx, edx
jz short loc_1B9AA
mov rsi, rbx
call _ggml_view_tensor
jmp short loc_1B9C0
loc_1B9AA:
mov esi, [rbx]
lea rcx, [rbx+10h]
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
loc_1B9C0:
test rax, rax
jz short loc_1B9E4
movss xmm0, [rsp+18h+var_C]
movss dword ptr [rax+54h], xmm0
mov dword ptr [rax+50h], 17h
mov [rax+98h], rbx
add rsp, 10h
pop rbx
retn
loc_1B9E4:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorNull; "tensor != NULL"
mov esi, 70h ; 'p'
xor eax, eax
call _ggml_abort
| long long ggml_rms_norm_impl(long long a1, long long a2, int a3, double a4)
{
long long result; // rax
int v5; // r8d
int v6; // r9d
if ( a3 )
result = ggml_view_tensor(a1, a2, a4);
else
result = ggml_new_tensor_impl(a1, *(_DWORD *)a2, 4u, (long long *)(a2 + 16), 0LL, 0LL, a4);
if ( !result )
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-impl.h",
112,
(unsigned int)"GGML_ASSERT(%s) failed",
(unsigned int)"tensor != NULL",
v5,
v6);
*(_DWORD *)(result + 84) = LODWORD(a4);
*(_DWORD *)(result + 80) = 23;
*(_QWORD *)(result + 152) = a2;
return result;
}
| ggml_rms_norm_impl:
PUSH RBX
SUB RSP,0x10
MOVSS dword ptr [RSP + 0xc],XMM0
MOV RBX,RSI
TEST EDX,EDX
JZ 0x0011b9aa
MOV RSI,RBX
CALL 0x00116260
JMP 0x0011b9c0
LAB_0011b9aa:
MOV ESI,dword ptr [RBX]
LEA RCX,[RBX + 0x10]
MOV EDX,0x4
XOR R8D,R8D
XOR R9D,R9D
CALL 0x0011a57f
LAB_0011b9c0:
TEST RAX,RAX
JZ 0x0011b9e4
MOVSS XMM0,dword ptr [RSP + 0xc]
MOVSS dword ptr [RAX + 0x54],XMM0
MOV dword ptr [RAX + 0x50],0x17
MOV qword ptr [RAX + 0x98],RBX
ADD RSP,0x10
POP RBX
RET
LAB_0011b9e4:
LEA RDI,[0x14e769]
LEA RDX,[0x14c665]
LEA RCX,[0x14e896]
MOV ESI,0x70
XOR EAX,EAX
CALL 0x00117cd0
|
void ggml_rms_norm_impl(int4 param_1,int8 param_2,int4 *param_3,int param_4)
{
long lVar1;
if (param_4 == 0) {
lVar1 = ggml_new_tensor_impl(param_2,*param_3,4,param_3 + 4,0,0);
}
else {
lVar1 = ggml_view_tensor(param_2,param_3);
}
if (lVar1 != 0) {
*(int4 *)(lVar1 + 0x54) = param_1;
*(int4 *)(lVar1 + 0x50) = 0x17;
*(int4 **)(lVar1 + 0x98) = param_3;
return;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-impl.h"
,0x70,"GGML_ASSERT(%s) failed","tensor != NULL");
}
| |
30,320 | plutovg_path_add_command | dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-path.c | static plutovg_path_element_t* plutovg_path_add_command(plutovg_path_t* path, plutovg_path_command_t command, int npoints)
{
const int length = npoints + 1;
plutovg_array_ensure(path->elements, length);
plutovg_path_element_t* elements = path->elements.data + path->elements.size;
elements->header.command = command;
elements->header.length = length;
path->elements.size += length;
path->num_points += npoints;
return elements + 1;
} | O1 | c | plutovg_path_add_command:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
leal 0x1(%rbx), %r15d
movl 0x20(%rdi), %eax
addl %r15d, %eax
movl 0x24(%rdi), %edx
cmpl %edx, %eax
jle 0xa3f5
testl %edx, %edx
movl $0x8, %ecx
cmovnel %edx, %ecx
movl %ecx, %r12d
leal (%r12,%r12), %ecx
cmpl %eax, %r12d
jl 0xa3d1
movq 0x18(%r14), %rdi
movslq %r12d, %rsi
shlq $0x3, %rsi
callq 0x31f0
movq %rax, 0x18(%r14)
movl %r12d, 0x24(%r14)
movq 0x18(%r14), %rax
movslq 0x20(%r14), %rcx
leaq (%rax,%rcx,8), %rax
addq $0x8, %rax
movl %ebp, -0x8(%rax)
movl %r15d, -0x4(%rax)
addl %r15d, 0x20(%r14)
addl %ebx, 0x4(%r14)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| plutovg_path_add_command:
push rbp
push r15
push r14
push r12
push rbx
mov ebx, edx
mov ebp, esi
mov r14, rdi
lea r15d, [rbx+1]
mov eax, [rdi+20h]
add eax, r15d
mov edx, [rdi+24h]
cmp eax, edx
jle short loc_A3F5
test edx, edx
mov ecx, 8
cmovnz ecx, edx
loc_A3D1:
mov r12d, ecx
lea ecx, [r12+r12]
cmp r12d, eax
jl short loc_A3D1
mov rdi, [r14+18h]
movsxd rsi, r12d
shl rsi, 3
call _realloc
mov [r14+18h], rax
mov [r14+24h], r12d
loc_A3F5:
mov rax, [r14+18h]
movsxd rcx, dword ptr [r14+20h]
lea rax, [rax+rcx*8]
add rax, 8
mov [rax-8], ebp
mov [rax-4], r15d
add [r14+20h], r15d
add [r14+4], ebx
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long plutovg_path_add_command(long long a1, int a2, int a3)
{
int v4; // r15d
int v5; // eax
long long v6; // rdx
long long v7; // rcx
int v8; // r12d
long long result; // rax
v4 = a3 + 1;
v5 = a3 + 1 + *(_DWORD *)(a1 + 32);
v6 = *(unsigned int *)(a1 + 36);
if ( v5 > (int)v6 )
{
LODWORD(v7) = 8;
if ( (_DWORD)v6 )
LODWORD(v7) = *(_DWORD *)(a1 + 36);
do
{
v8 = v7;
v7 = (unsigned int)(2 * v7);
}
while ( v8 < v5 );
*(_QWORD *)(a1 + 24) = realloc(*(_QWORD *)(a1 + 24), 8LL * v8, v6, v7);
*(_DWORD *)(a1 + 36) = v8;
}
result = *(_QWORD *)(a1 + 24) + 8LL * *(int *)(a1 + 32) + 8;
*(_DWORD *)(result - 8) = a2;
*(_DWORD *)(result - 4) = v4;
*(_DWORD *)(a1 + 32) += v4;
*(_DWORD *)(a1 + 4) += a3;
return result;
}
| plutovg_path_add_command:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV EBX,EDX
MOV EBP,ESI
MOV R14,RDI
LEA R15D,[RBX + 0x1]
MOV EAX,dword ptr [RDI + 0x20]
ADD EAX,R15D
MOV EDX,dword ptr [RDI + 0x24]
CMP EAX,EDX
JLE 0x0010a3f5
TEST EDX,EDX
MOV ECX,0x8
CMOVNZ ECX,EDX
LAB_0010a3d1:
MOV R12D,ECX
LEA ECX,[R12 + R12*0x1]
CMP R12D,EAX
JL 0x0010a3d1
MOV RDI,qword ptr [R14 + 0x18]
MOVSXD RSI,R12D
SHL RSI,0x3
CALL 0x001031f0
MOV qword ptr [R14 + 0x18],RAX
MOV dword ptr [R14 + 0x24],R12D
LAB_0010a3f5:
MOV RAX,qword ptr [R14 + 0x18]
MOVSXD RCX,dword ptr [R14 + 0x20]
LEA RAX,[RAX + RCX*0x8]
ADD RAX,0x8
MOV dword ptr [RAX + -0x8],EBP
MOV dword ptr [RAX + -0x4],R15D
ADD dword ptr [R14 + 0x20],R15D
ADD dword ptr [R14 + 0x4],EBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
void plutovg_path_add_command(long param_1,int4 param_2,int param_3)
{
int4 *puVar1;
int iVar2;
int iVar3;
void *pvVar4;
int iVar5;
int iVar6;
iVar6 = param_3 + 1;
iVar3 = *(int *)(param_1 + 0x20) + iVar6;
iVar5 = *(int *)(param_1 + 0x24);
if (iVar5 < iVar3) {
iVar2 = 8;
if (iVar5 != 0) {
iVar2 = iVar5;
}
do {
iVar5 = iVar2;
iVar2 = iVar5 * 2;
} while (iVar5 < iVar3);
pvVar4 = realloc(*(void **)(param_1 + 0x18),(long)iVar5 << 3);
*(void **)(param_1 + 0x18) = pvVar4;
*(int *)(param_1 + 0x24) = iVar5;
}
puVar1 = (int4 *)(*(long *)(param_1 + 0x18) + (long)*(int *)(param_1 + 0x20) * 8);
*puVar1 = param_2;
puVar1[1] = iVar6;
*(int *)(param_1 + 0x20) = *(int *)(param_1 + 0x20) + iVar6;
*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + param_3;
return;
}
| |
30,321 | plutovg_path_add_command | dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-path.c | static plutovg_path_element_t* plutovg_path_add_command(plutovg_path_t* path, plutovg_path_command_t command, int npoints)
{
const int length = npoints + 1;
plutovg_array_ensure(path->elements, length);
plutovg_path_element_t* elements = path->elements.data + path->elements.size;
elements->header.command = command;
elements->header.length = length;
path->elements.size += length;
path->num_points += npoints;
return elements + 1;
} | O2 | c | plutovg_path_add_command:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
leal 0x1(%rbx), %r15d
movl 0x20(%rdi), %ecx
movl 0x24(%rdi), %edx
leal (%rcx,%rbx), %eax
incl %eax
cmpl %edx, %eax
jle 0x90d6
testl %edx, %edx
pushq $0x8
popq %rcx
cmovnel %edx, %ecx
movl %ecx, %r12d
leal (%r12,%r12), %ecx
cmpl %eax, %r12d
jl 0x90ac
movq 0x18(%r14), %rdi
movslq %r12d, %rsi
shlq $0x3, %rsi
callq 0x31f0
movq %rax, 0x18(%r14)
movl %r12d, 0x24(%r14)
movl 0x20(%r14), %ecx
jmp 0x90da
movq 0x18(%r14), %rax
movslq %ecx, %rcx
leaq (%rax,%rcx,8), %rax
addq $0x8, %rax
movl %ebp, -0x8(%rax)
movl %r15d, -0x4(%rax)
addl %r15d, 0x20(%r14)
addl %ebx, 0x4(%r14)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| plutovg_path_add_command:
push rbp
push r15
push r14
push r12
push rbx
mov ebx, edx
mov ebp, esi
mov r14, rdi
lea r15d, [rbx+1]
mov ecx, [rdi+20h]
mov edx, [rdi+24h]
lea eax, [rcx+rbx]
inc eax
cmp eax, edx
jle short loc_90D6
test edx, edx
push 8
pop rcx
cmovnz ecx, edx
loc_90AC:
mov r12d, ecx
lea ecx, [r12+r12]
cmp r12d, eax
jl short loc_90AC
mov rdi, [r14+18h]
movsxd rsi, r12d
shl rsi, 3
call _realloc
mov [r14+18h], rax
mov [r14+24h], r12d
mov ecx, [r14+20h]
jmp short loc_90DA
loc_90D6:
mov rax, [r14+18h]
loc_90DA:
movsxd rcx, ecx
lea rax, [rax+rcx*8]
add rax, 8
mov [rax-8], ebp
mov [rax-4], r15d
add [r14+20h], r15d
add [r14+4], ebx
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long plutovg_path_add_command(long long a1, int a2, int a3)
{
int v4; // r15d
int v5; // ecx
int v6; // edx
int v7; // eax
int v8; // ecx
int v9; // r12d
long long v10; // rax
long long result; // rax
v4 = a3 + 1;
v5 = *(_DWORD *)(a1 + 32);
v6 = *(_DWORD *)(a1 + 36);
v7 = v5 + a3 + 1;
if ( v7 <= v6 )
{
v10 = *(_QWORD *)(a1 + 24);
}
else
{
v8 = 8;
if ( v6 )
v8 = *(_DWORD *)(a1 + 36);
do
{
v9 = v8;
v8 *= 2;
}
while ( v9 < v7 );
v10 = realloc(*(_QWORD *)(a1 + 24), 8LL * v9);
*(_QWORD *)(a1 + 24) = v10;
*(_DWORD *)(a1 + 36) = v9;
v5 = *(_DWORD *)(a1 + 32);
}
result = v10 + 8LL * v5 + 8;
*(_DWORD *)(result - 8) = a2;
*(_DWORD *)(result - 4) = v4;
*(_DWORD *)(a1 + 32) += v4;
*(_DWORD *)(a1 + 4) += a3;
return result;
}
| plutovg_path_add_command:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV EBX,EDX
MOV EBP,ESI
MOV R14,RDI
LEA R15D,[RBX + 0x1]
MOV ECX,dword ptr [RDI + 0x20]
MOV EDX,dword ptr [RDI + 0x24]
LEA EAX,[RCX + RBX*0x1]
INC EAX
CMP EAX,EDX
JLE 0x001090d6
TEST EDX,EDX
PUSH 0x8
POP RCX
CMOVNZ ECX,EDX
LAB_001090ac:
MOV R12D,ECX
LEA ECX,[R12 + R12*0x1]
CMP R12D,EAX
JL 0x001090ac
MOV RDI,qword ptr [R14 + 0x18]
MOVSXD RSI,R12D
SHL RSI,0x3
CALL 0x001031f0
MOV qword ptr [R14 + 0x18],RAX
MOV dword ptr [R14 + 0x24],R12D
MOV ECX,dword ptr [R14 + 0x20]
JMP 0x001090da
LAB_001090d6:
MOV RAX,qword ptr [R14 + 0x18]
LAB_001090da:
MOVSXD RCX,ECX
LEA RAX,[RAX + RCX*0x8]
ADD RAX,0x8
MOV dword ptr [RAX + -0x8],EBP
MOV dword ptr [RAX + -0x4],R15D
ADD dword ptr [R14 + 0x20],R15D
ADD dword ptr [R14 + 0x4],EBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
void plutovg_path_add_command(long param_1,int4 param_2,int param_3)
{
int4 *puVar1;
int iVar2;
void *pvVar3;
int iVar4;
int iVar5;
iVar5 = *(int *)(param_1 + 0x20);
iVar4 = *(int *)(param_1 + 0x24);
iVar2 = iVar5 + param_3 + 1;
if (iVar4 < iVar2) {
iVar5 = 8;
if (iVar4 != 0) {
iVar5 = iVar4;
}
do {
iVar4 = iVar5;
iVar5 = iVar4 * 2;
} while (iVar4 < iVar2);
pvVar3 = realloc(*(void **)(param_1 + 0x18),(long)iVar4 << 3);
*(void **)(param_1 + 0x18) = pvVar3;
*(int *)(param_1 + 0x24) = iVar4;
iVar5 = *(int *)(param_1 + 0x20);
}
else {
pvVar3 = *(void **)(param_1 + 0x18);
}
puVar1 = (int4 *)((long)pvVar3 + (long)iVar5 * 8);
*puVar1 = param_2;
puVar1[1] = param_3 + 1;
*(int *)(param_1 + 0x20) = *(int *)(param_1 + 0x20) + param_3 + 1;
*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + param_3;
return;
}
| |
30,322 | get_length | eloqsql/strings/my_vsnprintf.c | static const char *get_length(const char *fmt, size_t *length, uint *pre_zero)
{
for (; my_isdigit(&my_charset_latin1, *fmt); fmt++)
{
*length= *length * 10 + (uint)(*fmt - '0');
if (!*length)
*pre_zero|= PREZERO_ARG; /* first digit was 0 */
}
return fmt;
} | O3 | c | get_length:
pushq %rbp
movq %rsp, %rbp
movq %rdi, %rax
leaq 0x2bb762(%rip), %rcx # 0x314760
movq 0x40(%rcx), %r8
movzbl (%rdi), %edi
testb $0x4, 0x1(%r8,%rdi)
je 0x59036
movq (%rsi), %r8
leaq (%r8,%r8,4), %r8
addq %r8, %r8
movsbl %dil, %edi
addl $-0x30, %edi
addq %r8, %rdi
movq %rdi, (%rsi)
jne 0x59029
orb $0x4, (%rdx)
movq 0x40(%rcx), %r8
movzbl 0x1(%rax), %edi
incq %rax
jmp 0x59005
popq %rbp
retq
| get_length:
push rbp
mov rbp, rsp
mov rax, rdi
lea rcx, my_charset_latin1
mov r8, [rcx+40h]
movzx edi, byte ptr [rdi]
loc_59005:
test byte ptr [r8+rdi+1], 4
jz short loc_59036
mov r8, [rsi]
lea r8, [r8+r8*4]
add r8, r8
movsx edi, dil
add edi, 0FFFFFFD0h
add rdi, r8
mov [rsi], rdi
jnz short loc_59029
or byte ptr [rdx], 4
loc_59029:
mov r8, [rcx+40h]
movzx edi, byte ptr [rax+1]
inc rax
jmp short loc_59005
loc_59036:
pop rbp
retn
| unsigned __int8 * get_length(unsigned __int8 *a1, _QWORD *a2, _BYTE *a3)
{
unsigned __int8 *result; // rax
long long v4; // r8
long long i; // rdi
long long v6; // r8
long long v7; // rdi
result = a1;
v4 = *(_QWORD *)&my_charset_latin1[16];
for ( i = *a1; (*(_BYTE *)(v4 + i + 1) & 4) != 0; i = *++result )
{
v6 = 10LL * *a2;
v7 = (unsigned int)((char)i - 48);
*a2 = v6 + v7;
if ( !(v6 + v7) )
*a3 |= 4u;
v4 = *(_QWORD *)&my_charset_latin1[16];
}
return result;
}
| get_length:
PUSH RBP
MOV RBP,RSP
MOV RAX,RDI
LEA RCX,[0x414760]
MOV R8,qword ptr [RCX + 0x40]
MOVZX EDI,byte ptr [RDI]
LAB_00159005:
TEST byte ptr [R8 + RDI*0x1 + 0x1],0x4
JZ 0x00159036
MOV R8,qword ptr [RSI]
LEA R8,[R8 + R8*0x4]
ADD R8,R8
MOVSX EDI,DIL
ADD EDI,-0x30
ADD RDI,R8
MOV qword ptr [RSI],RDI
JNZ 0x00159029
OR byte ptr [RDX],0x4
LAB_00159029:
MOV R8,qword ptr [RCX + 0x40]
MOVZX EDI,byte ptr [RAX + 0x1]
INC RAX
JMP 0x00159005
LAB_00159036:
POP RBP
RET
|
void get_length(byte *param_1,long *param_2,byte *param_3)
{
byte bVar1;
long lVar2;
bVar1 = *param_1;
while ((PTR_ctype_latin1_004147a0[(ulong)bVar1 + 1] & 4) != 0) {
lVar2 = (ulong)((int)(char)bVar1 - 0x30) + *param_2 * 10;
*param_2 = lVar2;
if (lVar2 == 0) {
*param_3 = *param_3 | 4;
}
bVar1 = param_1[1];
param_1 = param_1 + 1;
}
return;
}
| |
30,323 | alloc_dynamic | eloqsql/mysys/array.c | void *alloc_dynamic(DYNAMIC_ARRAY *array)
{
DBUG_ENTER("alloc_dynamic");
DBUG_ASSERT(array->size_of_element); /* Ensure init() is called */
if (array->elements == array->max_element)
{
char *new_ptr;
if (array->malloc_flags & MY_INIT_BUFFER_USED)
{
/*
In this scenario, the buffer is statically preallocated,
so we have to create an all-new malloc since we overflowed
*/
if (!(new_ptr= (char *) my_malloc(array->m_psi_key,
(array->max_element+
array->alloc_increment) *
array->size_of_element,
MYF(array->malloc_flags | MY_WME))))
DBUG_RETURN(0);
if (array->elements)
memcpy(new_ptr, array->buffer,
array->elements * array->size_of_element);
array->malloc_flags&= ~MY_INIT_BUFFER_USED;
}
else if (!(new_ptr=(char*)
my_realloc(array->m_psi_key, array->buffer,
(array->max_element+ array->alloc_increment) *
array->size_of_element,
MYF(MY_WME | MY_ALLOW_ZERO_PTR |
array->malloc_flags))))
DBUG_RETURN(0);
array->buffer= (uchar*) new_ptr;
array->max_element+=array->alloc_increment;
}
DBUG_RETURN(array->buffer+(array->elements++ * array->size_of_element));
} | O0 | c | alloc_dynamic:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
jmp 0x32bae
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
movq -0x10(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jne 0x32cd7
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
andq $0x100, %rax # imm = 0x100
cmpq $0x0, %rax
je 0x32c6a
movq -0x10(%rbp), %rax
movl 0x18(%rax), %edi
movq -0x10(%rbp), %rax
movl 0xc(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x10(%rcx), %eax
movq -0x10(%rbp), %rcx
imull 0x14(%rcx), %eax
movl %eax, %eax
movl %eax, %esi
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rdx
orq $0x10, %rdx
callq 0x28c30
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
jne 0x32c25
jmp 0x32c18
movq $0x0, -0x8(%rbp)
jmp 0x32d00
movq -0x10(%rbp), %rax
cmpl $0x0, 0x8(%rax)
je 0x32c52
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
movq -0x10(%rbp), %rcx
imull 0x14(%rcx), %eax
movl %eax, %eax
movl %eax, %edx
callq 0x24230
movq -0x10(%rbp), %rax
movabsq $0xfffffeff, %rcx # imm = 0xFFFFFEFF
andq 0x20(%rax), %rcx
movq %rcx, 0x20(%rax)
jmp 0x32cbb
movq -0x10(%rbp), %rax
movl 0x18(%rax), %edi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x10(%rbp), %rax
movl 0xc(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x10(%rcx), %eax
movq -0x10(%rbp), %rcx
imull 0x14(%rcx), %eax
movl %eax, %eax
movl %eax, %edx
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rcx
orq $0x50, %rcx
callq 0x28e00
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
jne 0x32cb9
jmp 0x32caf
movq $0x0, -0x8(%rbp)
jmp 0x32d00
jmp 0x32cbb
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movl 0x10(%rax), %ecx
movq -0x10(%rbp), %rax
addl 0xc(%rax), %ecx
movl %ecx, 0xc(%rax)
jmp 0x32cd9
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rdx
movl 0x8(%rdx), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, 0x8(%rdx)
movq -0x10(%rbp), %rdx
imull 0x14(%rdx), %ecx
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| alloc_dynamic:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
jmp short $+2
loc_32BAE:
mov rax, [rbp+var_10]
mov eax, [rax+8]
mov rcx, [rbp+var_10]
cmp eax, [rcx+0Ch]
jnz loc_32CD7
mov rax, [rbp+var_10]
mov rax, [rax+20h]
and rax, 100h
cmp rax, 0
jz loc_32C6A
mov rax, [rbp+var_10]
mov edi, [rax+18h]
mov rax, [rbp+var_10]
mov eax, [rax+0Ch]
mov rcx, [rbp+var_10]
add eax, [rcx+10h]
mov rcx, [rbp+var_10]
imul eax, [rcx+14h]
mov eax, eax
mov esi, eax
mov rax, [rbp+var_10]
mov rdx, [rax+20h]
or rdx, 10h
call my_malloc
mov [rbp+var_18], rax
cmp rax, 0
jnz short loc_32C25
jmp short $+2
loc_32C18:
mov [rbp+var_8], 0
jmp loc_32D00
loc_32C25:
mov rax, [rbp+var_10]
cmp dword ptr [rax+8], 0
jz short loc_32C52
mov rdi, [rbp+var_18]
mov rax, [rbp+var_10]
mov rsi, [rax]
mov rax, [rbp+var_10]
mov eax, [rax+8]
mov rcx, [rbp+var_10]
imul eax, [rcx+14h]
mov eax, eax
mov edx, eax
call _memcpy
loc_32C52:
mov rax, [rbp+var_10]
mov rcx, 0FFFFFEFFh
and rcx, [rax+20h]
mov [rax+20h], rcx
jmp short loc_32CBB
loc_32C6A:
mov rax, [rbp+var_10]
mov edi, [rax+18h]
mov rax, [rbp+var_10]
mov rsi, [rax]
mov rax, [rbp+var_10]
mov eax, [rax+0Ch]
mov rcx, [rbp+var_10]
add eax, [rcx+10h]
mov rcx, [rbp+var_10]
imul eax, [rcx+14h]
mov eax, eax
mov edx, eax
mov rax, [rbp+var_10]
mov rcx, [rax+20h]
or rcx, 50h
call my_realloc
mov [rbp+var_18], rax
cmp rax, 0
jnz short loc_32CB9
jmp short $+2
loc_32CAF:
mov [rbp+var_8], 0
jmp short loc_32D00
loc_32CB9:
jmp short $+2
loc_32CBB:
mov rcx, [rbp+var_18]
mov rax, [rbp+var_10]
mov [rax], rcx
mov rax, [rbp+var_10]
mov ecx, [rax+10h]
mov rax, [rbp+var_10]
add ecx, [rax+0Ch]
mov [rax+0Ch], ecx
loc_32CD7:
jmp short $+2
loc_32CD9:
mov rax, [rbp+var_10]
mov rax, [rax]
mov rdx, [rbp+var_10]
mov ecx, [rdx+8]
mov esi, ecx
add esi, 1
mov [rdx+8], esi
mov rdx, [rbp+var_10]
imul ecx, [rdx+14h]
mov ecx, ecx
add rax, rcx
mov [rbp+var_8], rax
loc_32D00:
mov rax, [rbp+var_8]
add rsp, 20h
pop rbp
retn
| long long alloc_dynamic(long long *a1)
{
long long v1; // rax
int v2; // ecx
long long v4; // [rsp+8h] [rbp-18h]
if ( *((_DWORD *)a1 + 2) != *((_DWORD *)a1 + 3) )
goto LABEL_11;
if ( (a1[4] & 0x100) == 0 )
{
v4 = my_realloc(
*((_DWORD *)a1 + 6),
*a1,
(unsigned int)(*((_DWORD *)a1 + 5) * (*((_DWORD *)a1 + 4) + *((_DWORD *)a1 + 3))),
*((_BYTE *)a1 + 32) | 0x50u);
if ( !v4 )
return 0LL;
goto LABEL_10;
}
v4 = my_malloc(
*((_DWORD *)a1 + 6),
(unsigned int)(*((_DWORD *)a1 + 5) * (*((_DWORD *)a1 + 4) + *((_DWORD *)a1 + 3))),
*((_DWORD *)a1 + 8) | 0x10u);
if ( v4 )
{
if ( *((_DWORD *)a1 + 2) )
memcpy(v4, *a1, (unsigned int)(*((_DWORD *)a1 + 5) * *((_DWORD *)a1 + 2)));
a1[4] &= 0xFFFFFEFFuLL;
LABEL_10:
*a1 = v4;
*((_DWORD *)a1 + 3) += *((_DWORD *)a1 + 4);
LABEL_11:
v1 = *a1;
v2 = *((_DWORD *)a1 + 2);
*((_DWORD *)a1 + 2) = v2 + 1;
return (unsigned int)(*((_DWORD *)a1 + 5) * v2) + v1;
}
return 0LL;
}
| alloc_dynamic:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
JMP 0x00132bae
LAB_00132bae:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x10]
CMP EAX,dword ptr [RCX + 0xc]
JNZ 0x00132cd7
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
AND RAX,0x100
CMP RAX,0x0
JZ 0x00132c6a
MOV RAX,qword ptr [RBP + -0x10]
MOV EDI,dword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0xc]
MOV RCX,qword ptr [RBP + -0x10]
ADD EAX,dword ptr [RCX + 0x10]
MOV RCX,qword ptr [RBP + -0x10]
IMUL EAX,dword ptr [RCX + 0x14]
MOV EAX,EAX
MOV ESI,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX + 0x20]
OR RDX,0x10
CALL 0x00128c30
MOV qword ptr [RBP + -0x18],RAX
CMP RAX,0x0
JNZ 0x00132c25
JMP 0x00132c18
LAB_00132c18:
MOV qword ptr [RBP + -0x8],0x0
JMP 0x00132d00
LAB_00132c25:
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x8],0x0
JZ 0x00132c52
MOV RDI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x10]
IMUL EAX,dword ptr [RCX + 0x14]
MOV EAX,EAX
MOV EDX,EAX
CALL 0x00124230
LAB_00132c52:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,0xfffffeff
AND RCX,qword ptr [RAX + 0x20]
MOV qword ptr [RAX + 0x20],RCX
JMP 0x00132cbb
LAB_00132c6a:
MOV RAX,qword ptr [RBP + -0x10]
MOV EDI,dword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0xc]
MOV RCX,qword ptr [RBP + -0x10]
ADD EAX,dword ptr [RCX + 0x10]
MOV RCX,qword ptr [RBP + -0x10]
IMUL EAX,dword ptr [RCX + 0x14]
MOV EAX,EAX
MOV EDX,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x20]
OR RCX,0x50
CALL 0x00128e00
MOV qword ptr [RBP + -0x18],RAX
CMP RAX,0x0
JNZ 0x00132cb9
JMP 0x00132caf
LAB_00132caf:
MOV qword ptr [RBP + -0x8],0x0
JMP 0x00132d00
LAB_00132cb9:
JMP 0x00132cbb
LAB_00132cbb:
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x10]
ADD ECX,dword ptr [RAX + 0xc]
MOV dword ptr [RAX + 0xc],ECX
LAB_00132cd7:
JMP 0x00132cd9
LAB_00132cd9:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RDX + 0x8]
MOV ESI,ECX
ADD ESI,0x1
MOV dword ptr [RDX + 0x8],ESI
MOV RDX,qword ptr [RBP + -0x10]
IMUL ECX,dword ptr [RDX + 0x14]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x8],RAX
LAB_00132d00:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x20
POP RBP
RET
|
long alloc_dynamic(long *param_1)
{
long lVar1;
void *local_20;
if ((int)param_1[1] == *(int *)((long)param_1 + 0xc)) {
if ((param_1[4] & 0x100U) == 0) {
local_20 = (void *)my_realloc((int)param_1[3],*param_1,
(*(int *)((long)param_1 + 0xc) + (int)param_1[2]) *
*(int *)((long)param_1 + 0x14),param_1[4] | 0x50);
if (local_20 == (void *)0x0) {
return 0;
}
}
else {
local_20 = (void *)my_malloc((int)param_1[3],
(*(int *)((long)param_1 + 0xc) + (int)param_1[2]) *
*(int *)((long)param_1 + 0x14),param_1[4] | 0x10);
if (local_20 == (void *)0x0) {
return 0;
}
if ((int)param_1[1] != 0) {
memcpy(local_20,(void *)*param_1,
(ulong)(uint)((int)param_1[1] * *(int *)((long)param_1 + 0x14)));
}
param_1[4] = param_1[4] & 0xfffffeff;
}
*param_1 = (long)local_20;
*(int *)((long)param_1 + 0xc) = (int)param_1[2] + *(int *)((long)param_1 + 0xc);
}
lVar1 = param_1[1];
*(int *)(param_1 + 1) = (int)lVar1 + 1;
return *param_1 + (ulong)(uint)((int)lVar1 * *(int *)((long)param_1 + 0x14));
}
| |
30,324 | bitmap_bits_set | eloqsql/mysys/my_bitmap.c | uint bitmap_bits_set(const MY_BITMAP *map)
{
my_bitmap_map *data_ptr= map->bitmap;
my_bitmap_map *end= map->last_word_ptr;
uint res= 0;
DBUG_ASSERT(map->bitmap);
for (; data_ptr < end; data_ptr++)
res+= my_count_bits_uint32(*data_ptr);
/*Reset last bits to zero*/
res+= my_count_bits_uint32(*map->last_word_ptr & ~map->last_word_mask);
return res;
} | O0 | c | bitmap_bits_set:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
jmp 0xf087c
jmp 0xf087e
movq -0x10(%rbp), %rax
cmpq -0x18(%rbp), %rax
jae 0xf08a7
movq -0x10(%rbp), %rax
movl (%rax), %edi
callq 0xf08e0
addl -0x1c(%rbp), %eax
movl %eax, -0x1c(%rbp)
movq -0x10(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x10(%rbp)
jmp 0xf087e
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movl (%rax), %edi
movq -0x8(%rbp), %rax
movl 0x18(%rax), %eax
xorl $-0x1, %eax
andl %eax, %edi
callq 0xf08e0
addl -0x1c(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| bitmap_bits_set:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov rax, [rax]
mov [rbp+var_10], rax
mov rax, [rbp+var_8]
mov rax, [rax+8]
mov [rbp+var_18], rax
mov [rbp+var_1C], 0
jmp short $+2
loc_F087C:
jmp short $+2
loc_F087E:
mov rax, [rbp+var_10]
cmp rax, [rbp+var_18]
jnb short loc_F08A7
mov rax, [rbp+var_10]
mov edi, [rax]
call my_count_bits_uint32
add eax, [rbp+var_1C]
mov [rbp+var_1C], eax
mov rax, [rbp+var_10]
add rax, 4
mov [rbp+var_10], rax
jmp short loc_F087E
loc_F08A7:
mov rax, [rbp+var_8]
mov rax, [rax+8]
mov edi, [rax]
mov rax, [rbp+var_8]
mov eax, [rax+18h]
xor eax, 0FFFFFFFFh
and edi, eax
call my_count_bits_uint32
add eax, [rbp+var_1C]
mov [rbp+var_1C], eax
mov eax, [rbp+var_1C]
add rsp, 20h
pop rbp
retn
| long long bitmap_bits_set(unsigned int **a1)
{
int v2; // [rsp+4h] [rbp-1Ch]
unsigned long long v3; // [rsp+8h] [rbp-18h]
unsigned int *v4; // [rsp+10h] [rbp-10h]
v4 = *a1;
v3 = (unsigned long long)a1[1];
v2 = 0;
while ( (unsigned long long)v4 < v3 )
v2 += my_count_bits_uint32(*v4++);
return v2 + (unsigned int)my_count_bits_uint32(~*((_DWORD *)a1 + 6) & *a1[1]);
}
| bitmap_bits_set:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x18],RAX
MOV dword ptr [RBP + -0x1c],0x0
JMP 0x001f087c
LAB_001f087c:
JMP 0x001f087e
LAB_001f087e:
MOV RAX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RBP + -0x18]
JNC 0x001f08a7
MOV RAX,qword ptr [RBP + -0x10]
MOV EDI,dword ptr [RAX]
CALL 0x001f08e0
ADD EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x1c],EAX
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x4
MOV qword ptr [RBP + -0x10],RAX
JMP 0x001f087e
LAB_001f08a7:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV EDI,dword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x18]
XOR EAX,0xffffffff
AND EDI,EAX
CALL 0x001f08e0
ADD EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x1c],EAX
MOV EAX,dword ptr [RBP + -0x1c]
ADD RSP,0x20
POP RBP
RET
|
int bitmap_bits_set(int8 *param_1)
{
int4 *puVar1;
int iVar2;
int local_24;
int4 *local_18;
local_18 = (int4 *)*param_1;
puVar1 = (int4 *)param_1[1];
local_24 = 0;
for (; local_18 < puVar1; local_18 = local_18 + 1) {
iVar2 = my_count_bits_uint32(*local_18);
local_24 = iVar2 + local_24;
}
iVar2 = my_count_bits_uint32(*(uint *)param_1[1] & (*(uint *)(param_1 + 3) ^ 0xffffffff));
return iVar2 + local_24;
}
| |
30,325 | my_string_metadata_get | eloqsql/strings/ctype.c | void
my_string_metadata_get(MY_STRING_METADATA *metadata,
CHARSET_INFO *cs, const char *str, size_t length)
{
if (cs->mbmaxlen == 1 && !(cs->state & MY_CS_NONASCII))
{
metadata->char_length= length;
metadata->repertoire= my_string_repertoire_8bit(cs, str, (ulong)length);
}
else
{
my_string_metadata_get_mb(metadata, cs, str, (ulong)length);
}
} | O3 | c | my_string_metadata_get:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
cmpl $0x1, 0x9c(%rsi)
jne 0x561ad
testb $0x20, 0xd(%r12)
jne 0x561ad
movq %r14, (%rbx)
movl $0x3, %eax
testq %r14, %r14
je 0x5618d
movl $0x2000, %ecx # imm = 0x2000
andl 0xc(%r12), %ecx
jne 0x561a8
testq %r14, %r14
jle 0x561a3
addq %r15, %r14
cmpb $0x0, (%r15)
js 0x561a8
incq %r15
cmpq %r14, %r15
jb 0x56195
movl $0x1, %eax
movl %eax, 0x8(%rbx)
jmp 0x56217
movl $0x1, 0x8(%rbx)
movq $0x0, (%rbx)
testq %r14, %r14
jle 0x56217
addq %r15, %r14
leaq -0x30(%rbp), %r13
movq 0xb8(%r12), %rax
movq %r12, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq *0x28(%rax)
testl %eax, %eax
jle 0x561f2
cmpq $0x80, -0x30(%rbp)
jb 0x5620a
orb $0x2, 0x8(%rbx)
jmp 0x5620a
je 0x56201
orb $0x2, 0x8(%rbx)
cmpl $-0x64, %eax
jb 0x56217
negl %eax
jmp 0x5620a
orb $0x2, 0x8(%rbx)
movl $0x1, %eax
movl %eax, %eax
addq %rax, %r15
incq (%rbx)
cmpq %r14, %r15
jb 0x561c7
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_string_metadata_get:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, rcx
mov r15, rdx
mov r12, rsi
mov rbx, rdi
cmp dword ptr [rsi+9Ch], 1
jnz short loc_561AD
test byte ptr [r12+0Dh], 20h
jnz short loc_561AD
mov [rbx], r14
mov eax, 3
test r14, r14
jz short loc_5618D
mov ecx, 2000h
and ecx, [r12+0Ch]
jnz short loc_561A8
loc_5618D:
test r14, r14
jle short loc_561A3
add r14, r15
loc_56195:
cmp byte ptr [r15], 0
js short loc_561A8
inc r15
cmp r15, r14
jb short loc_56195
loc_561A3:
mov eax, 1
loc_561A8:
mov [rbx+8], eax
jmp short loc_56217
loc_561AD:
mov dword ptr [rbx+8], 1
mov qword ptr [rbx], 0
test r14, r14
jle short loc_56217
add r14, r15
lea r13, [rbp+var_30]
loc_561C7:
mov rax, [r12+0B8h]
mov rdi, r12
mov rsi, r13
mov rdx, r15
mov rcx, r14
call qword ptr [rax+28h]
test eax, eax
jle short loc_561F2
cmp [rbp+var_30], 80h
jb short loc_5620A
or byte ptr [rbx+8], 2
jmp short loc_5620A
loc_561F2:
jz short loc_56201
or byte ptr [rbx+8], 2
cmp eax, 0FFFFFF9Ch
jb short loc_56217
neg eax
jmp short loc_5620A
loc_56201:
or byte ptr [rbx+8], 2
mov eax, 1
loc_5620A:
mov eax, eax
add r15, rax
inc qword ptr [rbx]
cmp r15, r14
jb short loc_561C7
loc_56217:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long my_string_metadata_get(long long a1, long long a2, char *a3, long long a4)
{
long long result; // rax
char *v5; // r15
unsigned long long v6; // r14
unsigned long long v7[6]; // [rsp+0h] [rbp-30h] BYREF
v7[0] = result;
v5 = a3;
if ( *(_DWORD *)(a2 + 156) != 1 || (*(_BYTE *)(a2 + 13) & 0x20) != 0 )
{
*(_DWORD *)(a1 + 8) = 1;
*(_QWORD *)a1 = 0LL;
if ( a4 > 0 )
{
v6 = (unsigned long long)&a3[a4];
do
{
result = (*(long long ( **)(long long, unsigned long long *, char *, unsigned long long))(*(_QWORD *)(a2 + 184)
+ 40LL))(
a2,
v7,
v5,
v6);
if ( (int)result <= 0 )
{
if ( (_DWORD)result )
{
*(_BYTE *)(a1 + 8) |= 2u;
if ( (unsigned int)result < 0xFFFFFF9C )
return result;
LODWORD(result) = -(int)result;
}
else
{
*(_BYTE *)(a1 + 8) |= 2u;
LODWORD(result) = 1;
}
}
else if ( v7[0] >= 0x80 )
{
*(_BYTE *)(a1 + 8) |= 2u;
}
result = (unsigned int)result;
v5 += (unsigned int)result;
++*(_QWORD *)a1;
}
while ( (unsigned long long)v5 < v6 );
}
}
else
{
*(_QWORD *)a1 = a4;
result = 3LL;
if ( !a4 || (*(_DWORD *)(a2 + 12) & 0x2000) == 0 )
{
if ( a4 <= 0 )
{
LABEL_8:
result = 1LL;
}
else
{
while ( *v5 >= 0 )
{
if ( ++v5 >= &a3[a4] )
goto LABEL_8;
}
}
}
*(_DWORD *)(a1 + 8) = result;
}
return result;
}
| my_string_metadata_get:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RCX
MOV R15,RDX
MOV R12,RSI
MOV RBX,RDI
CMP dword ptr [RSI + 0x9c],0x1
JNZ 0x001561ad
TEST byte ptr [R12 + 0xd],0x20
JNZ 0x001561ad
MOV qword ptr [RBX],R14
MOV EAX,0x3
TEST R14,R14
JZ 0x0015618d
MOV ECX,0x2000
AND ECX,dword ptr [R12 + 0xc]
JNZ 0x001561a8
LAB_0015618d:
TEST R14,R14
JLE 0x001561a3
ADD R14,R15
LAB_00156195:
CMP byte ptr [R15],0x0
JS 0x001561a8
INC R15
CMP R15,R14
JC 0x00156195
LAB_001561a3:
MOV EAX,0x1
LAB_001561a8:
MOV dword ptr [RBX + 0x8],EAX
JMP 0x00156217
LAB_001561ad:
MOV dword ptr [RBX + 0x8],0x1
MOV qword ptr [RBX],0x0
TEST R14,R14
JLE 0x00156217
ADD R14,R15
LEA R13,[RBP + -0x30]
LAB_001561c7:
MOV RAX,qword ptr [R12 + 0xb8]
MOV RDI,R12
MOV RSI,R13
MOV RDX,R15
MOV RCX,R14
CALL qword ptr [RAX + 0x28]
TEST EAX,EAX
JLE 0x001561f2
CMP qword ptr [RBP + -0x30],0x80
JC 0x0015620a
OR byte ptr [RBX + 0x8],0x2
JMP 0x0015620a
LAB_001561f2:
JZ 0x00156201
OR byte ptr [RBX + 0x8],0x2
CMP EAX,-0x64
JC 0x00156217
NEG EAX
JMP 0x0015620a
LAB_00156201:
OR byte ptr [RBX + 0x8],0x2
MOV EAX,0x1
LAB_0015620a:
MOV EAX,EAX
ADD R15,RAX
INC qword ptr [RBX]
CMP R15,R14
JC 0x001561c7
LAB_00156217:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void my_string_metadata_get(long *param_1,long param_2,char *param_3,long param_4)
{
int4 uVar1;
uint uVar2;
ulong in_RAX;
char *pcVar3;
ulong local_38;
if ((*(int *)(param_2 + 0x9c) == 1) && ((*(byte *)(param_2 + 0xd) & 0x20) == 0)) {
*param_1 = param_4;
uVar1 = 3;
if ((param_4 == 0) || ((*(uint *)(param_2 + 0xc) & 0x2000) == 0)) {
if (0 < param_4) {
pcVar3 = param_3 + param_4;
do {
if (*param_3 < '\0') goto LAB_001561a8;
param_3 = param_3 + 1;
} while (param_3 < pcVar3);
}
uVar1 = 1;
}
LAB_001561a8:
*(int4 *)(param_1 + 1) = uVar1;
}
else {
*(int4 *)(param_1 + 1) = 1;
*param_1 = 0;
if (0 < param_4) {
pcVar3 = param_3 + param_4;
local_38 = in_RAX;
do {
uVar2 = (**(code **)(*(long *)(param_2 + 0xb8) + 0x28))(param_2,&local_38,param_3,pcVar3);
if ((int)uVar2 < 1) {
if (uVar2 == 0) {
*(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 2;
uVar2 = 1;
}
else {
*(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 2;
if (uVar2 < 0xffffff9c) {
return;
}
uVar2 = -uVar2;
}
}
else if (0x7f < local_38) {
*(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 2;
}
param_3 = param_3 + uVar2;
*param_1 = *param_1 + 1;
} while (param_3 < pcVar3);
}
}
return;
}
| |
30,326 | inline_mysql_file_pread | eloqsql/include/mysql/psi/mysql_file.h | static inline size_t
inline_mysql_file_pread(
#ifdef HAVE_PSI_FILE_INTERFACE
const char *src_file, uint src_line,
#endif
File file, uchar *buffer, size_t count, my_off_t offset, myf flags)
{
size_t result;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
size_t bytes_read;
locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_READ);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_wait)(locker, count, src_file, src_line);
result= my_pread(file, buffer, count, offset, flags);
if (flags & (MY_NABP | MY_FNABP))
bytes_read= (result == 0) ? count : 0;
else
bytes_read= (result != MY_FILE_ERROR) ? result : 0;
PSI_FILE_CALL(end_file_wait)(locker, bytes_read);
return result;
}
#endif
result= my_pread(file, buffer, count, offset, flags);
return result;
} | O0 | c | inline_mysql_file_pread:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
leaq 0x1e989c(%rip), %rax # 0x2c0238
movq (%rax), %rax
movq 0x158(%rax), %rax
movl -0x18(%rbp), %esi
leaq -0x88(%rbp), %rdi
movl $0x6, %edx
callq *%rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0xd6aaf
leaq 0x1e9852(%rip), %rax # 0x2c0238
movq (%rax), %rax
movq 0x210(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x10(%rbp), %rdx
movl -0x14(%rbp), %ecx
callq *%rax
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq 0x10(%rbp), %r8
callq 0xf4600
movq %rax, -0x38(%rbp)
movq 0x10(%rbp), %rax
andq $0x6, %rax
cmpq $0x0, %rax
je 0xd6a5a
cmpq $0x0, -0x38(%rbp)
jne 0xd6a3f
movq -0x28(%rbp), %rax
movq %rax, -0x98(%rbp)
jmp 0xd6a4a
xorl %eax, %eax
movq %rax, -0x98(%rbp)
jmp 0xd6a4a
movq -0x98(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0xd6a87
cmpq $-0x1, -0x38(%rbp)
je 0xd6a6e
movq -0x38(%rbp), %rax
movq %rax, -0xa0(%rbp)
jmp 0xd6a79
xorl %eax, %eax
movq %rax, -0xa0(%rbp)
jmp 0xd6a79
movq -0xa0(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq 0x1e97aa(%rip), %rax # 0x2c0238
movq (%rax), %rax
movq 0x218(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x90(%rbp), %rsi
callq *%rax
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xd6ad3
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq 0x10(%rbp), %r8
callq 0xf4600
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xa0, %rsp
popq %rbp
retq
| inline_mysql_file_pread_8:
push rbp
mov rbp, rsp
sub rsp, 0A0h
mov rax, [rbp+arg_0]
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+158h]
mov esi, [rbp+var_18]
lea rdi, [rbp+var_88]
mov edx, 6
call rax
mov [rbp+var_40], rax
cmp [rbp+var_40], 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 loc_D6AAF
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+210h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_10]
mov ecx, [rbp+var_14]
call rax
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
mov rcx, [rbp+var_30]
mov r8, [rbp+arg_0]
call my_pread
mov [rbp+var_38], rax
mov rax, [rbp+arg_0]
and rax, 6
cmp rax, 0
jz short loc_D6A5A
cmp [rbp+var_38], 0
jnz short loc_D6A3F
mov rax, [rbp+var_28]
mov [rbp+var_98], rax
jmp short loc_D6A4A
loc_D6A3F:
xor eax, eax
mov [rbp+var_98], rax
jmp short $+2
loc_D6A4A:
mov rax, [rbp+var_98]
mov [rbp+var_90], rax
jmp short loc_D6A87
loc_D6A5A:
cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh
jz short loc_D6A6E
mov rax, [rbp+var_38]
mov [rbp+var_A0], rax
jmp short loc_D6A79
loc_D6A6E:
xor eax, eax
mov [rbp+var_A0], rax
jmp short $+2
loc_D6A79:
mov rax, [rbp+var_A0]
mov [rbp+var_90], rax
loc_D6A87:
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+218h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_90]
call rax
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
jmp short loc_D6AD3
loc_D6AAF:
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
mov rcx, [rbp+var_30]
mov r8, [rbp+arg_0]
call my_pread
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
loc_D6AD3:
mov rax, [rbp+var_8]
add rsp, 0A0h
pop rbp
retn
| long long inline_mysql_file_pread_8(
long long a1,
unsigned int a2,
unsigned int a3,
long long a4,
long long a5,
long long a6,
long long a7)
{
long long v8; // [rsp+0h] [rbp-A0h]
long long v9; // [rsp+8h] [rbp-98h]
_BYTE v10[72]; // [rsp+18h] [rbp-88h] BYREF
long long v11; // [rsp+60h] [rbp-40h]
long long v12; // [rsp+68h] [rbp-38h]
long long v13; // [rsp+70h] [rbp-30h]
long long v14; // [rsp+78h] [rbp-28h]
long long v15; // [rsp+80h] [rbp-20h]
unsigned int v16; // [rsp+88h] [rbp-18h]
unsigned int v17; // [rsp+8Ch] [rbp-14h]
long long v18; // [rsp+90h] [rbp-10h]
v18 = a1;
v17 = a2;
v16 = a3;
v15 = a4;
v14 = a5;
v13 = a6;
v11 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v10, a3, 6LL);
if ( v11 )
{
((void ( *)(long long, long long, long long, _QWORD))PSI_server[66])(v11, v14, v18, v17);
v12 = my_pread(v16, v15, v14, v13, a7);
if ( (a7 & 6) != 0 )
{
if ( v12 )
v9 = 0LL;
else
v9 = v14;
((void ( *)(long long, long long))PSI_server[67])(v11, v9);
}
else
{
if ( v12 == -1 )
v8 = 0LL;
else
v8 = v12;
((void ( *)(long long, long long))PSI_server[67])(v11, v8);
}
return v12;
}
else
{
return my_pread(v16, v15, v14, v13, a7);
}
}
| inline_mysql_file_pread:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xa0
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
LEA RAX,[0x3c0238]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x158]
MOV ESI,dword ptr [RBP + -0x18]
LEA RDI,[RBP + -0x88]
MOV EDX,0x6
CALL RAX
MOV qword ptr [RBP + -0x40],RAX
CMP qword ptr [RBP + -0x40],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 0x001d6aaf
LEA RAX,[0x3c0238]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x210]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x14]
CALL RAX
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x30]
MOV R8,qword ptr [RBP + 0x10]
CALL 0x001f4600
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + 0x10]
AND RAX,0x6
CMP RAX,0x0
JZ 0x001d6a5a
CMP qword ptr [RBP + -0x38],0x0
JNZ 0x001d6a3f
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x98],RAX
JMP 0x001d6a4a
LAB_001d6a3f:
XOR EAX,EAX
MOV qword ptr [RBP + -0x98],RAX
JMP 0x001d6a4a
LAB_001d6a4a:
MOV RAX,qword ptr [RBP + -0x98]
MOV qword ptr [RBP + -0x90],RAX
JMP 0x001d6a87
LAB_001d6a5a:
CMP qword ptr [RBP + -0x38],-0x1
JZ 0x001d6a6e
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x001d6a79
LAB_001d6a6e:
XOR EAX,EAX
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x001d6a79
LAB_001d6a79:
MOV RAX,qword ptr [RBP + -0xa0]
MOV qword ptr [RBP + -0x90],RAX
LAB_001d6a87:
LEA RAX,[0x3c0238]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x218]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x90]
CALL RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001d6ad3
LAB_001d6aaf:
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x30]
MOV R8,qword ptr [RBP + 0x10]
CALL 0x001f4600
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
LAB_001d6ad3:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0xa0
POP RBP
RET
|
long inline_mysql_file_pread
(int8 param_1,int4 param_2,int4 param_3,int8 param_4,
long param_5,int8 param_6,ulong param_7)
{
long local_a8;
long local_a0;
long local_98;
int1 local_90 [72];
long local_48;
long local_40;
int8 local_38;
long local_30;
int8 local_28;
int4 local_20;
int4 local_1c;
int8 local_18;
long local_10;
local_38 = param_6;
local_30 = param_5;
local_28 = param_4;
local_20 = param_3;
local_1c = param_2;
local_18 = param_1;
local_48 = (**(code **)(PSI_server + 0x158))(local_90,param_3,6);
if (local_48 == 0) {
local_10 = my_pread(local_20,local_28,local_30,local_38,param_7);
}
else {
(**(code **)(PSI_server + 0x210))(local_48,local_30,local_18,local_1c);
local_40 = my_pread(local_20,local_28,local_30,local_38,param_7);
if ((param_7 & 6) == 0) {
local_a8 = local_40;
if (local_40 == -1) {
local_a8 = 0;
}
local_98 = local_a8;
}
else {
if (local_40 == 0) {
local_a0 = local_30;
}
else {
local_a0 = 0;
}
local_98 = local_a0;
}
(**(code **)(PSI_server + 0x218))(local_48,local_98);
local_10 = local_40;
}
return local_10;
}
| |
30,327 | uf_varchar2 | eloqsql/storage/myisam/mi_packrec.c | static void uf_varchar2(MI_COLUMNDEF *rec, MI_BIT_BUFF *bit_buff,
uchar *to, uchar *end __attribute__((unused)))
{
if (get_bit(bit_buff))
to[0]=to[1]=0; /* Zero lengths */
else
{
ulong length=get_bits(bit_buff,rec->space_length_bits);
int2store(to,length);
decode_bytes(rec,bit_buff,to+2,to+2+length);
}
} | O3 | c | uf_varchar2:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl 0x4(%rsi), %eax
testl %eax, %eax
je 0x83b2b
movl (%r14), %r13d
decl %eax
movl %eax, 0x4(%r14)
btl %eax, %r13d
jae 0x83b48
movw $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x823cd
movl $0x1f, 0x4(%r14)
movl (%r14), %r13d
movl $0x1f, %eax
testl %r13d, %r13d
js 0x83b17
movl 0x1c(%r15), %r12d
movl %eax, %ecx
subl %r12d, %ecx
jae 0x83b8d
subl %eax, %r12d
movl %eax, %eax
leaq 0x5df11(%rip), %rcx # 0xe1a70
andl (%rcx,%rax,4), %r13d
movl %r12d, %ecx
shll %cl, %r13d
movq %r14, %rdi
callq 0x823cd
movl $0x20, %eax
subl %r12d, %eax
movl %eax, 0x4(%r14)
movl (%r14), %eax
negl %r12d
movl %r12d, %ecx
shrl %cl, %eax
addl %eax, %r13d
jmp 0x83ba3
movl %ecx, 0x4(%r14)
shrl %cl, %r13d
movl 0x1c(%r15), %eax
leaq 0x5ded1(%rip), %rcx # 0xe1a70
andl (%rcx,%rax,4), %r13d
movl %r13d, %eax
movw %r13w, (%rbx)
leaq (%rbx,%rax), %rcx
addq $0x2, %rcx
addq $0x2, %rbx
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x82cbe
| uf_varchar2_0:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdx
mov r14, rsi
mov r15, rdi
mov eax, [rsi+4]
test eax, eax
jz short loc_83B2B
mov r13d, [r14]
dec eax
mov [r14+4], eax
bt r13d, eax
jnb short loc_83B48
loc_83B17:
mov word ptr [rbx], 0
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_83B2B:
mov rdi, r14
call fill_buffer_0
mov dword ptr [r14+4], 1Fh
mov r13d, [r14]
mov eax, 1Fh
test r13d, r13d
js short loc_83B17
loc_83B48:
mov r12d, [r15+1Ch]
mov ecx, eax
sub ecx, r12d
jnb short loc_83B8D
sub r12d, eax
mov eax, eax
lea rcx, mask_0
and r13d, [rcx+rax*4]
mov ecx, r12d
shl r13d, cl
mov rdi, r14
call fill_buffer_0
mov eax, 20h ; ' '
sub eax, r12d
mov [r14+4], eax
mov eax, [r14]
neg r12d
mov ecx, r12d
shr eax, cl
add r13d, eax
jmp short loc_83BA3
loc_83B8D:
mov [r14+4], ecx
shr r13d, cl
mov eax, [r15+1Ch]
lea rcx, mask_0
and r13d, [rcx+rax*4]
loc_83BA3:
mov eax, r13d
mov [rbx], r13w
lea rcx, [rbx+rax]
add rcx, 2
add rbx, 2
mov rdi, r15
mov rsi, r14
mov rdx, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp decode_bytes_0
| long long uf_varchar2_0(long long a1, unsigned int *a2, long long a3)
{
unsigned int v4; // eax
unsigned int v5; // r13d
long long result; // rax
unsigned int v7; // r12d
unsigned int v8; // ecx
int v9; // r12d
int v10; // r13d
unsigned int v11; // r13d
v4 = a2[1];
if ( v4 )
{
v5 = *a2;
result = v4 - 1;
a2[1] = result;
if ( _bittest((const int *)&v5, result) )
{
LABEL_3:
*(_WORD *)a3 = 0;
return result;
}
}
else
{
fill_buffer_0((long long)a2);
a2[1] = 31;
v5 = *a2;
result = 31LL;
if ( (*a2 & 0x80000000) != 0 )
goto LABEL_3;
}
v7 = *(_DWORD *)(a1 + 28);
v8 = result - v7;
if ( (unsigned int)result >= v7 )
{
a2[1] = v8;
v11 = mask_0[*(unsigned int *)(a1 + 28)] & (v5 >> v8);
}
else
{
v9 = v7 - result;
v10 = (mask_0[(unsigned int)result] & v5) << v9;
fill_buffer_0((long long)a2);
a2[1] = 32 - v9;
v11 = (*a2 >> -(char)v9) + v10;
}
*(_WORD *)a3 = v11;
return (long long)decode_bytes_0(a1, (long long)a2, (_BYTE *)(a3 + 2), (_BYTE *)(a3 + v11 + 2));
}
| uf_varchar2:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
MOV EAX,dword ptr [RSI + 0x4]
TEST EAX,EAX
JZ 0x00183b2b
MOV R13D,dword ptr [R14]
DEC EAX
MOV dword ptr [R14 + 0x4],EAX
BT R13D,EAX
JNC 0x00183b48
LAB_00183b17:
MOV word ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00183b2b:
MOV RDI,R14
CALL 0x001823cd
MOV dword ptr [R14 + 0x4],0x1f
MOV R13D,dword ptr [R14]
MOV EAX,0x1f
TEST R13D,R13D
JS 0x00183b17
LAB_00183b48:
MOV R12D,dword ptr [R15 + 0x1c]
MOV ECX,EAX
SUB ECX,R12D
JNC 0x00183b8d
SUB R12D,EAX
MOV EAX,EAX
LEA RCX,[0x1e1a70]
AND R13D,dword ptr [RCX + RAX*0x4]
MOV ECX,R12D
SHL R13D,CL
MOV RDI,R14
CALL 0x001823cd
MOV EAX,0x20
SUB EAX,R12D
MOV dword ptr [R14 + 0x4],EAX
MOV EAX,dword ptr [R14]
NEG R12D
MOV ECX,R12D
SHR EAX,CL
ADD R13D,EAX
JMP 0x00183ba3
LAB_00183b8d:
MOV dword ptr [R14 + 0x4],ECX
SHR R13D,CL
MOV EAX,dword ptr [R15 + 0x1c]
LEA RCX,[0x1e1a70]
AND R13D,dword ptr [RCX + RAX*0x4]
LAB_00183ba3:
MOV EAX,R13D
MOV word ptr [RBX],R13W
LEA RCX,[RBX + RAX*0x1]
ADD RCX,0x2
ADD RBX,0x2
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00182cbe
|
void uf_varchar2(long param_1,uint *param_2,int2 *param_3)
{
uint uVar1;
uint uVar2;
uint uVar3;
byte bVar4;
uint uVar5;
if (param_2[1] == 0) {
fill_buffer(param_2);
param_2[1] = 0x1f;
uVar5 = *param_2;
uVar3 = 0x1f;
if (-1 < (int)uVar5) goto LAB_00183b48;
}
else {
uVar5 = *param_2;
uVar3 = param_2[1] - 1;
param_2[1] = uVar3;
if ((uVar5 >> (uVar3 & 0x1f) & 1) == 0) {
LAB_00183b48:
uVar1 = *(uint *)(param_1 + 0x1c);
if (uVar3 < uVar1) {
uVar2 = (&mask)[uVar3];
bVar4 = (byte)(uVar1 - uVar3);
fill_buffer(param_2);
param_2[1] = 0x20 - (uVar1 - uVar3);
uVar5 = ((uVar5 & uVar2) << (bVar4 & 0x1f)) + (*param_2 >> (-bVar4 & 0x1f));
}
else {
param_2[1] = uVar3 - uVar1;
uVar5 = uVar5 >> ((byte)(uVar3 - uVar1) & 0x1f) & (&mask)[*(uint *)(param_1 + 0x1c)];
}
*param_3 = (short)uVar5;
decode_bytes(param_1,param_2,param_3 + 1,(long)param_3 + (ulong)uVar5 + 2);
return;
}
}
*param_3 = 0;
return;
}
| |
30,328 | get_charset_by_csname | eloqsql/mysys/charset.c | CHARSET_INFO *
get_charset_by_csname(const char *cs_name, uint cs_flags, myf flags)
{
MY_CHARSET_LOADER loader;
my_charset_loader_init_mysys(&loader);
return my_charset_get_by_name(&loader, cs_name, cs_flags, flags);
} | O3 | c | get_charset_by_csname:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdx, %rcx
movl %esi, %edx
movq %rdi, %rsi
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
leaq -0xb8(%rbp), %rdi
movb $0x0, (%rdi)
leaq -0x1249(%rip), %rax # 0x264b6
movq %rax, 0x80(%rdi)
leaq -0x1248(%rip), %rax # 0x264c5
movq %rax, 0x88(%rdi)
leaq -0x123b(%rip), %rax # 0x264e0
movq %rax, 0x90(%rdi)
leaq 0x2b55(%rip), %rax # 0x2a27e
movq %rax, 0x98(%rdi)
leaq 0x2c60e1(%rip), %rax # 0x2ed818
movq (%rax), %rax
movq %rax, 0xa0(%rdi)
leaq -0x124a(%rip), %rax # 0x264fe
movq %rax, 0xa8(%rdi)
callq 0x275f8
movq %fs:0x28, %rcx
cmpq -0x8(%rbp), %rcx
jne 0x2776c
addq $0xc0, %rsp
popq %rbp
retq
callq 0x242e0
| get_charset_by_csname:
push rbp
mov rbp, rsp
sub rsp, 0C0h
mov rcx, rdx
mov edx, esi
mov rsi, rdi
mov rax, fs:28h
mov [rbp+var_8], rax
lea rdi, [rbp+var_B8]
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
call my_charset_get_by_name
mov rcx, fs:28h
cmp rcx, [rbp+var_8]
jnz short loc_2776C
add rsp, 0C0h
pop rbp
retn
loc_2776C:
call ___stack_chk_fail
| long long get_charset_by_csname(long long a1, unsigned int a2, long long a3)
{
_BYTE v4[128]; // [rsp+8h] [rbp-B8h] BYREF
long long ( *v5)(long long); // [rsp+88h] [rbp-38h]
long long ( *v6)(long long); // [rsp+90h] [rbp-30h]
long long ( *v7)(long long, long long); // [rsp+98h] [rbp-28h]
long long ( *v8)(); // [rsp+A0h] [rbp-20h]
long long ( *v9)(); // [rsp+A8h] [rbp-18h]
long long ( *v10)(unsigned int *); // [rsp+B0h] [rbp-10h]
unsigned long long v11; // [rsp+B8h] [rbp-8h]
v11 = __readfsqword(0x28u);
v4[0] = 0;
v5 = my_once_alloc_c;
v6 = my_malloc_c;
v7 = my_realloc_c;
v8 = my_free;
v9 = my_charset_error_reporter;
v10 = add_collation;
return my_charset_get_by_name((long long)v4, a1, a2, a3);
}
| get_charset_by_csname:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xc0
MOV RCX,RDX
MOV EDX,ESI
MOV RSI,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
LEA RDI,[RBP + -0xb8]
MOV byte ptr [RDI],0x0
LEA RAX,[0x1264b6]
MOV qword ptr [RDI + 0x80],RAX
LEA RAX,[0x1264c5]
MOV qword ptr [RDI + 0x88],RAX
LEA RAX,[0x1264e0]
MOV qword ptr [RDI + 0x90],RAX
LEA RAX,[0x12a27e]
MOV qword ptr [RDI + 0x98],RAX
LEA RAX,[0x3ed818]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RDI + 0xa0],RAX
LEA RAX,[0x1264fe]
MOV qword ptr [RDI + 0xa8],RAX
CALL 0x001275f8
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x8]
JNZ 0x0012776c
ADD RSP,0xc0
POP RBP
RET
LAB_0012776c:
CALL 0x001242e0
|
void get_charset_by_csname(int8 param_1,int4 param_2,int8 param_3)
{
long in_FS_OFFSET;
int1 local_c0 [128];
code *local_40;
code *local_38;
code *local_30;
code *local_28;
int *local_20;
code *local_18;
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_c0[0] = 0;
local_40 = my_once_alloc_c;
local_38 = my_malloc_c;
local_30 = my_realloc_c;
local_28 = my_free;
local_20 = my_charset_error_reporter;
local_18 = add_collation;
my_charset_get_by_name(local_c0,param_1,param_2,param_3);
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
30,329 | stbi__high_bit(unsigned int) | monkey531[P]llama/examples/llava/../../common/stb_image.h | static int stbi__high_bit(unsigned int z)
{
int n=0;
if (z == 0) return -1;
if (z >= 0x10000) { n += 16; z >>= 16; }
if (z >= 0x00100) { n += 8; z >>= 8; }
if (z >= 0x00010) { n += 4; z >>= 4; }
if (z >= 0x00004) { n += 2; z >>= 2; }
if (z >= 0x00002) { n += 1;/* >>= 1;*/ }
return n;
} | O0 | c | stbi__high_bit(unsigned int):
movl %edi, -0x8(%rsp)
movl $0x0, -0xc(%rsp)
cmpl $0x0, -0x8(%rsp)
jne 0x93e20
movl $0xffffffff, -0x4(%rsp) # imm = 0xFFFFFFFF
jmp 0x93eb4
cmpl $0x10000, -0x8(%rsp) # imm = 0x10000
jb 0x93e40
movl -0xc(%rsp), %eax
addl $0x10, %eax
movl %eax, -0xc(%rsp)
movl -0x8(%rsp), %eax
shrl $0x10, %eax
movl %eax, -0x8(%rsp)
cmpl $0x100, -0x8(%rsp) # imm = 0x100
jb 0x93e60
movl -0xc(%rsp), %eax
addl $0x8, %eax
movl %eax, -0xc(%rsp)
movl -0x8(%rsp), %eax
shrl $0x8, %eax
movl %eax, -0x8(%rsp)
cmpl $0x10, -0x8(%rsp)
jb 0x93e7d
movl -0xc(%rsp), %eax
addl $0x4, %eax
movl %eax, -0xc(%rsp)
movl -0x8(%rsp), %eax
shrl $0x4, %eax
movl %eax, -0x8(%rsp)
cmpl $0x4, -0x8(%rsp)
jb 0x93e9a
movl -0xc(%rsp), %eax
addl $0x2, %eax
movl %eax, -0xc(%rsp)
movl -0x8(%rsp), %eax
shrl $0x2, %eax
movl %eax, -0x8(%rsp)
cmpl $0x2, -0x8(%rsp)
jb 0x93eac
movl -0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rsp)
movl -0xc(%rsp), %eax
movl %eax, -0x4(%rsp)
movl -0x4(%rsp), %eax
retq
nopl (%rax)
| _ZL14stbi__high_bitj:
mov [rsp+var_8], edi
mov [rsp+var_C], 0
cmp [rsp+var_8], 0
jnz short loc_93E20
mov [rsp+var_4], 0FFFFFFFFh
jmp loc_93EB4
loc_93E20:
cmp [rsp+var_8], offset stru_10000
jb short loc_93E40
mov eax, [rsp+var_C]
add eax, 10h
mov [rsp+var_C], eax
mov eax, [rsp+var_8]
shr eax, 10h
mov [rsp+var_8], eax
loc_93E40:
cmp [rsp+var_8], 100h
jb short loc_93E60
mov eax, [rsp+var_C]
add eax, 8
mov [rsp+var_C], eax
mov eax, [rsp+var_8]
shr eax, 8
mov [rsp+var_8], eax
loc_93E60:
cmp [rsp+var_8], 10h
jb short loc_93E7D
mov eax, [rsp+var_C]
add eax, 4
mov [rsp+var_C], eax
mov eax, [rsp+var_8]
shr eax, 4
mov [rsp+var_8], eax
loc_93E7D:
cmp [rsp+var_8], 4
jb short loc_93E9A
mov eax, [rsp+var_C]
add eax, 2
mov [rsp+var_C], eax
mov eax, [rsp+var_8]
shr eax, 2
mov [rsp+var_8], eax
loc_93E9A:
cmp [rsp+var_8], 2
jb short loc_93EAC
mov eax, [rsp+var_C]
add eax, 1
mov [rsp+var_C], eax
loc_93EAC:
mov eax, [rsp+var_C]
mov [rsp+var_4], eax
loc_93EB4:
mov eax, [rsp+var_4]
retn
| long long stbi__high_bit(unsigned int a1)
{
unsigned int v2; // [rsp+0h] [rbp-Ch]
unsigned int v3; // [rsp+4h] [rbp-8h]
v3 = a1;
v2 = 0;
if ( a1 )
{
if ( a1 >= (unsigned int)&stru_10000 )
{
v2 = 16;
v3 = HIWORD(a1);
}
if ( v3 >= 0x100 )
{
v2 += 8;
v3 >>= 8;
}
if ( v3 >= 0x10 )
{
v2 += 4;
v3 >>= 4;
}
if ( v3 >= 4 )
{
v2 += 2;
v3 >>= 2;
}
if ( v3 >= 2 )
++v2;
return v2;
}
else
{
return (unsigned int)-1;
}
}
| stbi__high_bit:
MOV dword ptr [RSP + -0x8],EDI
MOV dword ptr [RSP + -0xc],0x0
CMP dword ptr [RSP + -0x8],0x0
JNZ 0x00193e20
MOV dword ptr [RSP + -0x4],0xffffffff
JMP 0x00193eb4
LAB_00193e20:
CMP dword ptr [RSP + -0x8],0x10000
JC 0x00193e40
MOV EAX,dword ptr [RSP + -0xc]
ADD EAX,0x10
MOV dword ptr [RSP + -0xc],EAX
MOV EAX,dword ptr [RSP + -0x8]
SHR EAX,0x10
MOV dword ptr [RSP + -0x8],EAX
LAB_00193e40:
CMP dword ptr [RSP + -0x8],0x100
JC 0x00193e60
MOV EAX,dword ptr [RSP + -0xc]
ADD EAX,0x8
MOV dword ptr [RSP + -0xc],EAX
MOV EAX,dword ptr [RSP + -0x8]
SHR EAX,0x8
MOV dword ptr [RSP + -0x8],EAX
LAB_00193e60:
CMP dword ptr [RSP + -0x8],0x10
JC 0x00193e7d
MOV EAX,dword ptr [RSP + -0xc]
ADD EAX,0x4
MOV dword ptr [RSP + -0xc],EAX
MOV EAX,dword ptr [RSP + -0x8]
SHR EAX,0x4
MOV dword ptr [RSP + -0x8],EAX
LAB_00193e7d:
CMP dword ptr [RSP + -0x8],0x4
JC 0x00193e9a
MOV EAX,dword ptr [RSP + -0xc]
ADD EAX,0x2
MOV dword ptr [RSP + -0xc],EAX
MOV EAX,dword ptr [RSP + -0x8]
SHR EAX,0x2
MOV dword ptr [RSP + -0x8],EAX
LAB_00193e9a:
CMP dword ptr [RSP + -0x8],0x2
JC 0x00193eac
MOV EAX,dword ptr [RSP + -0xc]
ADD EAX,0x1
MOV dword ptr [RSP + -0xc],EAX
LAB_00193eac:
MOV EAX,dword ptr [RSP + -0xc]
MOV dword ptr [RSP + -0x4],EAX
LAB_00193eb4:
MOV EAX,dword ptr [RSP + -0x4]
RET
|
/* stbi__high_bit(unsigned int) */
int stbi__high_bit(uint param_1)
{
int4 local_c;
int4 local_8;
int4 local_4;
local_c = 0;
if (param_1 == 0) {
local_4 = -1;
}
else {
local_8 = param_1;
if (0xffff < param_1) {
local_c = 0x10;
local_8 = param_1 >> 0x10;
}
if (0xff < local_8) {
local_c = local_c + 8;
local_8 = local_8 >> 8;
}
if (0xf < local_8) {
local_c = local_c + 4;
local_8 = local_8 >> 4;
}
if (3 < local_8) {
local_c = local_c + 2;
local_8 = local_8 >> 2;
}
if (1 < local_8) {
local_c = local_c + 1;
}
local_4 = local_c;
}
return local_4;
}
| |
30,330 | my_strtoll10_utf32 | eloqsql/strings/ctype-ucs2.c | static longlong
my_strtoll10_utf32(CHARSET_INFO *cs __attribute__((unused)),
const char *nptr, char **endptr, int *error)
{
const char *s, *end, *start, *n_end, *true_end;
uchar c;
unsigned long i, j, k;
ulonglong li;
int negative;
ulong cutoff, cutoff2, cutoff3;
s= nptr;
/* If fixed length string */
if (endptr)
{
/* Make sure string length is even */
end= s + ((*endptr - s) / 4) * 4;
while (s < end && !s[0] && !s[1] && !s[2] &&
(s[3] == ' ' || s[3] == '\t'))
s+= 4;
if (s == end)
goto no_conv;
}
else
{
/* We don't support null terminated strings in UCS2 */
goto no_conv;
}
/* Check for a sign. */
negative= 0;
if (!s[0] && !s[1] && !s[2] && s[3] == '-')
{
*error= -1; /* Mark as negative number */
negative= 1;
s+= 4;
if (s == end)
goto no_conv;
cutoff= MAX_NEGATIVE_NUMBER / LFACTOR2;
cutoff2= (MAX_NEGATIVE_NUMBER % LFACTOR2) / 100;
cutoff3= MAX_NEGATIVE_NUMBER % 100;
}
else
{
*error= 0;
if (!s[0] && !s[1] && !s[2] && s[3] == '+')
{
s+= 4;
if (s == end)
goto no_conv;
}
cutoff= ULONGLONG_MAX / LFACTOR2;
cutoff2= ULONGLONG_MAX % LFACTOR2 / 100;
cutoff3= ULONGLONG_MAX % 100;
}
/* Handle case where we have a lot of pre-zero */
if (!s[0] && !s[1] && !s[2] && s[3] == '0')
{
i= 0;
do
{
s+= 4;
if (s == end)
goto end_i; /* Return 0 */
}
while (!s[0] && !s[1] && !s[2] && s[3] == '0');
n_end= s + 4 * INIT_CNT;
}
else
{
/* Read first digit to check that it's a valid number */
if (s[0] || s[1] || s[2] || (c= (s[3]-'0')) > 9)
goto no_conv;
i= c;
s+= 4;
n_end= s + 4 * (INIT_CNT-1);
}
/* Handle first 9 digits and store them in i */
if (n_end > end)
n_end= end;
for (; s != n_end ; s+= 4)
{
if (s[0] || s[1] || s[2] || (c= (s[3] - '0')) > 9)
goto end_i;
i= i * 10 + c;
}
if (s == end)
goto end_i;
/* Handle next 9 digits and store them in j */
j= 0;
start= s; /* Used to know how much to shift i */
n_end= true_end= s + 4 * INIT_CNT;
if (n_end > end)
n_end= end;
do
{
if (s[0] || s[1] || s[2] || (c= (s[3] - '0')) > 9)
goto end_i_and_j;
j= j * 10 + c;
s+= 4;
} while (s != n_end);
if (s == end)
{
if (s != true_end)
goto end_i_and_j;
goto end3;
}
if (s[0] || s[1] || s[2] || (c= (s[3] - '0')) > 9)
goto end3;
/* Handle the next 1 or 2 digits and store them in k */
k=c;
s+= 4;
if (s == end || s[0] || s[1] || s[2] || (c= (s[3]-'0')) > 9)
goto end4;
k= k * 10 + c;
s+= 4;
*endptr= (char*) s;
/* number string should have ended here */
if (s != end && !s[0] && !s[1] && !s[2] && (c= (s[3] - '0')) <= 9)
goto overflow;
/* Check that we didn't get an overflow with the last digit */
if (i > cutoff || (i == cutoff && ((j > cutoff2 || j == cutoff2) &&
k > cutoff3)))
goto overflow;
li= i * LFACTOR2+ (ulonglong) j * 100 + k;
return (longlong) li;
overflow: /* *endptr is set here */
*error= MY_ERRNO_ERANGE;
return negative ? LONGLONG_MIN : (longlong) ULONGLONG_MAX;
end_i:
*endptr= (char*) s;
return (negative ? ((longlong) -(long) i) : (longlong) i);
end_i_and_j:
li= (ulonglong) i * lfactor[(size_t) (s-start) / 4] + j;
*endptr= (char*) s;
return (negative ? -((longlong) li) : (longlong) li);
end3:
li= (ulonglong) i*LFACTOR+ (ulonglong) j;
*endptr= (char*) s;
return (negative ? -((longlong) li) : (longlong) li);
end4:
li= (ulonglong) i*LFACTOR1+ (ulonglong) j * 10 + k;
*endptr= (char*) s;
if (negative)
{
if (li > MAX_NEGATIVE_NUMBER)
goto overflow;
return -((longlong) li);
}
return (longlong) li;
no_conv:
/* There was no number to convert. */
*error= MY_ERRNO_EDOM;
*endptr= (char *) nptr;
return 0;
} | O3 | c | my_strtoll10_utf32:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
testq %rdx, %rdx
je 0x4d22e
movq (%rdx), %rdi
subq %rsi, %rdi
leaq 0x3(%rdi), %rax
testq %rdi, %rdi
cmovnsq %rdi, %rax
andq $-0x4, %rax
addq %rsi, %rax
movq %rsi, %r11
cmpq $0x4, %rdi
jl 0x4d138
movq %rsi, %r11
cmpb $0x0, (%r11)
jne 0x4d138
cmpb $0x0, 0x1(%r11)
jne 0x4d138
cmpb $0x0, 0x2(%r11)
jne 0x4d138
movzbl 0x3(%r11), %edi
cmpl $0x20, %edi
je 0x4d12f
cmpl $0x9, %edi
jne 0x4d138
addq $0x4, %r11
cmpq %rax, %r11
jb 0x4d10c
cmpq %rax, %r11
je 0x4d22e
cmpb $0x0, (%r11)
jne 0x4d185
cmpb $0x0, 0x1(%r11)
jne 0x4d185
cmpb $0x0, 0x2(%r11)
jne 0x4d185
cmpb $0x2d, 0x3(%r11)
jne 0x4d185
movl $0xffffffff, (%rcx) # imm = 0xFFFFFFFF
addq $0x4, %r11
cmpq %rax, %r11
je 0x4d22e
movl $0x8, %r8d
movl $0x15f797ae, %r9d # imm = 0x15F797AE
movl $0x57f5ff8, %r10d # imm = 0x57F5FF8
xorl %edi, %edi
jmp 0x4d1c8
movl $0x0, (%rcx)
cmpb $0x0, (%r11)
jne 0x4d22e
movl $0xf, %r8d
movl $0x2bef2f5c, %r9d # imm = 0x2BEF2F5C
movl $0xafebff0, %r10d # imm = 0xAFEBFF0
movb $0x1, %dil
cmpb $0x0, 0x1(%r11)
jne 0x4d1c8
cmpb $0x0, 0x2(%r11)
jne 0x4d1c8
cmpb $0x2b, 0x3(%r11)
jne 0x4d1c8
addq $0x4, %r11
cmpq %rax, %r11
je 0x4d22e
cmpb $0x0, (%r11)
jne 0x4d22e
cmpb $0x0, 0x1(%r11)
jne 0x4d22e
cmpb $0x0, 0x2(%r11)
jne 0x4d21b
cmpb $0x30, 0x3(%r11)
jne 0x4d21b
addq $0x28, %r11
xorl %esi, %esi
leaq -0x24(%r11), %rbx
cmpq %rax, %rbx
je 0x4d3d1
movq %r11, %r14
cmpb $0x0, (%rbx)
jne 0x4d217
cmpb $0x0, -0x23(%r14)
jne 0x4d217
cmpb $0x0, -0x22(%r14)
jne 0x4d217
leaq 0x4(%r14), %r11
cmpb $0x30, -0x21(%r14)
je 0x4d1e9
xorl %esi, %esi
jmp 0x4d252
cmpb $0x0, 0x2(%r11)
jne 0x4d22e
movb 0x3(%r11), %bl
addb $-0x30, %bl
cmpb $0x9, %bl
jbe 0x4d244
movl $0x21, (%rcx)
movq %rsi, (%rdx)
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movzbl %bl, %esi
leaq 0x4(%r11), %rbx
addq $0x24, %r11
movq %r11, %r14
cmpq %rax, %r14
cmovaq %rax, %r14
cmpq %r14, %rbx
je 0x4d29f
cmpb $0x0, (%rbx)
jne 0x4d3ce
cmpb $0x0, 0x1(%rbx)
jne 0x4d3ce
cmpb $0x0, 0x2(%rbx)
jne 0x4d3ce
movb 0x3(%rbx), %r11b
addb $-0x30, %r11b
cmpb $0x9, %r11b
ja 0x4d3ce
leaq (%rsi,%rsi,4), %rsi
movzbl %r11b, %r11d
leaq (%r11,%rsi,2), %rsi
addq $0x4, %rbx
jmp 0x4d259
cmpq %rax, %rbx
je 0x4d3ce
leaq 0x24(%rbx), %r12
cmpq %rax, %r12
cmovaq %rax, %r12
leaq 0x8(%rbx), %r14
movl $0x24, %r13d
xorl %r11d, %r11d
cmpb $0x0, -0x8(%r14)
jne 0x4d3d6
cmpb $0x0, -0x7(%r14)
jne 0x4d3d6
cmpb $0x0, -0x6(%r14)
jne 0x4d3d6
movb -0x5(%r14), %r15b
addb $-0x30, %r15b
cmpb $0x9, %r15b
ja 0x4d3d6
leaq (%r11,%r11,4), %r11
movzbl %r15b, %r15d
leaq (%r15,%r11,2), %r11
leaq 0x4(%r14), %r15
addq $-0x4, %r14
addq $-0x4, %r13
cmpq %r12, %r14
movq %r15, %r14
jne 0x4d2c0
leaq -0x8(%r15), %r14
cmpq %rax, %r12
je 0x4d408
cmpb $0x0, (%r14)
jne 0x4d40d
cmpb $0x0, -0x7(%r15)
jne 0x4d40d
cmpb $0x0, -0x6(%r15)
jne 0x4d40d
movb -0x5(%r15), %bl
addb $-0x30, %bl
cmpb $0x9, %bl
ja 0x4d40d
movzbl %bl, %ebx
leaq -0x4(%r15), %r12
cmpq %rax, %r12
je 0x4d383
cmpb $0x0, -0x4(%r15)
jne 0x4d383
cmpb $0x0, -0x3(%r15)
jne 0x4d383
cmpb $0x0, -0x2(%r15)
jne 0x4d383
movb -0x1(%r15), %r14b
addb $-0x30, %r14b
cmpb $0x9, %r14b
jbe 0x4d434
movabsq $0x2540be400, %rax # imm = 0x2540BE400
imulq %rax, %rsi
leaq (%r11,%r11,4), %rax
leaq (%rsi,%rax,2), %rax
addq %rbx, %rax
movq %r12, (%rdx)
testb %dil, %dil
jne 0x4d239
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
cmpq %rdx, %rax
jbe 0x4d42c
movl $0x22, (%rcx)
movzbl %dil, %eax
negq %rax
btsq $0x3f, %rax
jmp 0x4d239
movq %rbx, %rax
movq %rax, (%rdx)
jmp 0x4d3f6
addq $-0x8, %r14
movq %r14, %rax
subq %rbx, %rax
andq $-0x4, %rax
leaq 0x20cd05(%rip), %rcx # 0x25a0f0
imulq (%rcx,%rax,2), %rsi
addq %r11, %rsi
movq %r14, (%rdx)
movq %rsi, %rax
negq %rax
testb %dil, %dil
cmovneq %rsi, %rax
jmp 0x4d239
testq %r13, %r13
jne 0x4d3da
imulq $0x3b9aca00, %rsi, %rax # imm = 0x3B9ACA00
addq %rax, %r11
movq %r14, (%rdx)
movq %r11, %rax
negq %rax
testb %dil, %dil
cmovneq %r11, %rax
jmp 0x4d239
negq %rax
jmp 0x4d239
movq %r15, (%rdx)
cmpq %rax, %r15
je 0x4d45e
cmpb $0x0, (%r15)
jne 0x4d45e
cmpb $0x0, 0x1(%r15)
jne 0x4d45e
cmpb $0x0, 0x2(%r15)
jne 0x4d45e
movb 0x3(%r15), %al
addb $-0x30, %al
cmpb $0xa, %al
jb 0x4d3b7
cmpq %r10, %rsi
ja 0x4d3b7
leaq (%rbx,%rbx,4), %rax
movzbl %r14b, %edx
leaq (%rdx,%rax,2), %rax
cmpq %r10, %rsi
jne 0x4d486
cmpq %r9, %r11
jb 0x4d486
cmpl %r8d, %eax
ja 0x4d3b7
movabsq $0x174876e800, %rcx # imm = 0x174876E800
imulq %rcx, %rsi
imulq $0x64, %r11, %rcx
addq %rax, %rsi
addq %rcx, %rsi
movq %rsi, %rax
jmp 0x4d239
| my_strtoll10_utf32:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
test rdx, rdx
jz loc_4D22E
mov rdi, [rdx]
sub rdi, rsi
lea rax, [rdi+3]
test rdi, rdi
cmovns rax, rdi
and rax, 0FFFFFFFFFFFFFFFCh
add rax, rsi
mov r11, rsi
cmp rdi, 4
jl short loc_4D138
mov r11, rsi
loc_4D10C:
cmp byte ptr [r11], 0
jnz short loc_4D138
cmp byte ptr [r11+1], 0
jnz short loc_4D138
cmp byte ptr [r11+2], 0
jnz short loc_4D138
movzx edi, byte ptr [r11+3]
cmp edi, 20h ; ' '
jz short loc_4D12F
cmp edi, 9
jnz short loc_4D138
loc_4D12F:
add r11, 4
cmp r11, rax
jb short loc_4D10C
loc_4D138:
cmp r11, rax
jz loc_4D22E
cmp byte ptr [r11], 0
jnz short loc_4D185
cmp byte ptr [r11+1], 0
jnz short loc_4D185
cmp byte ptr [r11+2], 0
jnz short loc_4D185
cmp byte ptr [r11+3], 2Dh ; '-'
jnz short loc_4D185
mov dword ptr [rcx], 0FFFFFFFFh
add r11, 4
cmp r11, rax
jz loc_4D22E
mov r8d, 8
mov r9d, 15F797AEh
mov r10d, 57F5FF8h
xor edi, edi
jmp short loc_4D1C8
loc_4D185:
mov dword ptr [rcx], 0
cmp byte ptr [r11], 0
jnz loc_4D22E
mov r8d, 0Fh
mov r9d, 2BEF2F5Ch
mov r10d, 0AFEBFF0h
mov dil, 1
cmp byte ptr [r11+1], 0
jnz short loc_4D1C8
cmp byte ptr [r11+2], 0
jnz short loc_4D1C8
cmp byte ptr [r11+3], 2Bh ; '+'
jnz short loc_4D1C8
add r11, 4
cmp r11, rax
jz short loc_4D22E
loc_4D1C8:
cmp byte ptr [r11], 0
jnz short loc_4D22E
cmp byte ptr [r11+1], 0
jnz short loc_4D22E
cmp byte ptr [r11+2], 0
jnz short loc_4D21B
cmp byte ptr [r11+3], 30h ; '0'
jnz short loc_4D21B
add r11, 28h ; '('
xor esi, esi
loc_4D1E9:
lea rbx, [r11-24h]
cmp rbx, rax
jz loc_4D3D1
mov r14, r11
cmp byte ptr [rbx], 0
jnz short loc_4D217
cmp byte ptr [r14-23h], 0
jnz short loc_4D217
cmp byte ptr [r14-22h], 0
jnz short loc_4D217
lea r11, [r14+4]
cmp byte ptr [r14-21h], 30h ; '0'
jz short loc_4D1E9
loc_4D217:
xor esi, esi
jmp short loc_4D252
loc_4D21B:
cmp byte ptr [r11+2], 0
jnz short loc_4D22E
mov bl, [r11+3]
add bl, 0D0h
cmp bl, 9
jbe short loc_4D244
loc_4D22E:
mov dword ptr [rcx], 21h ; '!'
mov [rdx], rsi
xor eax, eax
loc_4D239:
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_4D244:
movzx esi, bl
lea rbx, [r11+4]
add r11, 24h ; '$'
mov r14, r11
loc_4D252:
cmp r14, rax
cmova r14, rax
loc_4D259:
cmp rbx, r14
jz short loc_4D29F
cmp byte ptr [rbx], 0
jnz loc_4D3CE
cmp byte ptr [rbx+1], 0
jnz loc_4D3CE
cmp byte ptr [rbx+2], 0
jnz loc_4D3CE
mov r11b, [rbx+3]
add r11b, 0D0h
cmp r11b, 9
ja loc_4D3CE
lea rsi, [rsi+rsi*4]
movzx r11d, r11b
lea rsi, [r11+rsi*2]
add rbx, 4
jmp short loc_4D259
loc_4D29F:
cmp rbx, rax
jz loc_4D3CE
lea r12, [rbx+24h]
cmp r12, rax
cmova r12, rax
lea r14, [rbx+8]
mov r13d, 24h ; '$'
xor r11d, r11d
loc_4D2C0:
cmp byte ptr [r14-8], 0
jnz loc_4D3D6
cmp byte ptr [r14-7], 0
jnz loc_4D3D6
cmp byte ptr [r14-6], 0
jnz loc_4D3D6
mov r15b, [r14-5]
add r15b, 0D0h
cmp r15b, 9
ja loc_4D3D6
lea r11, [r11+r11*4]
movzx r15d, r15b
lea r11, [r15+r11*2]
lea r15, [r14+4]
add r14, 0FFFFFFFFFFFFFFFCh
add r13, 0FFFFFFFFFFFFFFFCh
cmp r14, r12
mov r14, r15
jnz short loc_4D2C0
lea r14, [r15-8]
cmp r12, rax
jz loc_4D408
cmp byte ptr [r14], 0
jnz loc_4D40D
cmp byte ptr [r15-7], 0
jnz loc_4D40D
cmp byte ptr [r15-6], 0
jnz loc_4D40D
mov bl, [r15-5]
add bl, 0D0h
cmp bl, 9
ja loc_4D40D
movzx ebx, bl
lea r12, [r15-4]
cmp r12, rax
jz short loc_4D383
cmp byte ptr [r15-4], 0
jnz short loc_4D383
cmp byte ptr [r15-3], 0
jnz short loc_4D383
cmp byte ptr [r15-2], 0
jnz short loc_4D383
mov r14b, [r15-1]
add r14b, 0D0h
cmp r14b, 9
jbe loc_4D434
loc_4D383:
mov rax, 2540BE400h
imul rsi, rax
lea rax, [r11+r11*4]
lea rax, [rsi+rax*2]
add rax, rbx
mov [rdx], r12
test dil, dil
jnz loc_4D239
mov rdx, 8000000000000000h
cmp rax, rdx
jbe short loc_4D42C
loc_4D3B7:
mov dword ptr [rcx], 22h ; '"'
movzx eax, dil
neg rax
bts rax, 3Fh ; '?'
jmp loc_4D239
loc_4D3CE:
mov rax, rbx
loc_4D3D1:
mov [rdx], rax
jmp short loc_4D3F6
loc_4D3D6:
add r14, 0FFFFFFFFFFFFFFF8h
loc_4D3DA:
mov rax, r14
sub rax, rbx
and rax, 0FFFFFFFFFFFFFFFCh
lea rcx, lfactor
imul rsi, [rcx+rax*2]
add rsi, r11
mov [rdx], r14
loc_4D3F6:
mov rax, rsi
neg rax
test dil, dil
cmovnz rax, rsi
jmp loc_4D239
loc_4D408:
test r13, r13
jnz short loc_4D3DA
loc_4D40D:
imul rax, rsi, 3B9ACA00h
add r11, rax
mov [rdx], r14
mov rax, r11
neg rax
test dil, dil
cmovnz rax, r11
jmp loc_4D239
loc_4D42C:
neg rax
jmp loc_4D239
loc_4D434:
mov [rdx], r15
cmp r15, rax
jz short loc_4D45E
cmp byte ptr [r15], 0
jnz short loc_4D45E
cmp byte ptr [r15+1], 0
jnz short loc_4D45E
cmp byte ptr [r15+2], 0
jnz short loc_4D45E
mov al, [r15+3]
add al, 0D0h
cmp al, 0Ah
jb loc_4D3B7
loc_4D45E:
cmp rsi, r10
ja loc_4D3B7
lea rax, [rbx+rbx*4]
movzx edx, r14b
lea rax, [rdx+rax*2]
cmp rsi, r10
jnz short loc_4D486
cmp r11, r9
jb short loc_4D486
cmp eax, r8d
ja loc_4D3B7
loc_4D486:
mov rcx, 174876E800h
imul rsi, rcx
imul rcx, r11, 64h ; 'd'
add rsi, rax
add rsi, rcx
mov rax, rsi
jmp loc_4D239
| unsigned long long my_strtoll10_utf32(long long a1, _BYTE *a2, unsigned long long *a3, _DWORD *a4)
{
long long v4; // rdi
long long v5; // rax
unsigned long long v6; // rax
_BYTE *v7; // r11
int v8; // edi
unsigned int v9; // r8d
unsigned long long v10; // r9
unsigned long long v11; // r10
unsigned __int8 v12; // di
_BYTE *v13; // r11
unsigned long long v14; // rsi
_BYTE *v15; // rbx
_BYTE *v16; // r14
unsigned __int8 v17; // bl
unsigned long long result; // rax
unsigned __int8 v19; // r11
_BYTE *v20; // r12
_BYTE *v21; // r14
long long v22; // r13
unsigned long long v23; // r11
unsigned __int8 v24; // r15
_BYTE *v25; // r15
bool v26; // zf
_BYTE *v27; // r14
unsigned __int8 v28; // bl
unsigned __int8 v29; // r14
unsigned long long v30; // r11
long long v31; // rax
if ( !a3 )
goto LABEL_37;
v4 = *a3 - (_QWORD)a2;
v5 = v4 + 3;
if ( v4 >= 0 )
v5 = *a3 - (_QWORD)a2;
v6 = (unsigned long long)&a2[v5 & 0xFFFFFFFFFFFFFFFCLL];
v7 = a2;
if ( v4 >= 4 )
{
v7 = a2;
do
{
if ( *v7 )
break;
if ( v7[1] )
break;
if ( v7[2] )
break;
v8 = (unsigned __int8)v7[3];
if ( v8 != 32 && v8 != 9 )
break;
v7 += 4;
}
while ( (unsigned long long)v7 < v6 );
}
if ( v7 == (_BYTE *)v6 )
goto LABEL_37;
if ( *v7 || v7[1] || v7[2] || v7[3] != 45 )
{
*a4 = 0;
if ( *v7 )
goto LABEL_37;
v9 = 15;
v10 = 737095516LL;
v11 = 184467440LL;
v12 = 1;
if ( !v7[1] && !v7[2] && v7[3] == 43 )
{
v7 += 4;
if ( v7 == (_BYTE *)v6 )
goto LABEL_37;
}
}
else
{
*a4 = -1;
v7 += 4;
if ( v7 == (_BYTE *)v6 )
goto LABEL_37;
v9 = 8;
v10 = 368547758LL;
v11 = 92233720LL;
v12 = 0;
}
if ( *v7 || v7[1] )
goto LABEL_37;
if ( !v7[2] && v7[3] == 48 )
{
v13 = v7 + 40;
v14 = 0LL;
while ( 1 )
{
v15 = v13 - 36;
if ( v13 - 36 == (_BYTE *)v6 )
goto LABEL_71;
v16 = v13;
if ( !*v15 && !*(v13 - 35) && !*(v13 - 34) )
{
v13 += 4;
if ( *(v16 - 33) == 48 )
continue;
}
v14 = 0LL;
goto LABEL_40;
}
}
if ( v7[2] || (v17 = v7[3] - 48, v17 > 9u) )
{
LABEL_37:
*a4 = 33;
*a3 = (unsigned long long)a2;
return 0LL;
}
v14 = v17;
v15 = v7 + 4;
v16 = v7 + 36;
LABEL_40:
if ( (unsigned long long)v16 > v6 )
v16 = (_BYTE *)v6;
while ( v15 != v16 )
{
if ( *v15 )
goto LABEL_70;
if ( v15[1] )
goto LABEL_70;
if ( v15[2] )
goto LABEL_70;
v19 = v15[3] - 48;
if ( v19 > 9u )
goto LABEL_70;
v14 = v19 + 10 * v14;
v15 += 4;
}
if ( v15 != (_BYTE *)v6 )
{
v20 = v15 + 36;
if ( (unsigned long long)(v15 + 36) > v6 )
v20 = (_BYTE *)v6;
v21 = v15 + 8;
v22 = 36LL;
v23 = 0LL;
while ( !*(v21 - 8) )
{
if ( *(v21 - 7) )
break;
if ( *(v21 - 6) )
break;
v24 = *(v21 - 5) - 48;
if ( v24 > 9u )
break;
v23 = v24 + 10 * v23;
v25 = v21 + 4;
v22 -= 4LL;
v26 = v21 - 4 == v20;
v21 += 4;
if ( v26 )
{
v27 = v25 - 8;
if ( v20 != (_BYTE *)v6 )
{
if ( !*v27 && !*(v25 - 7) && !*(v25 - 6) )
{
v28 = *(v25 - 5) - 48;
if ( v28 <= 9u )
{
if ( v25 - 4 == (_BYTE *)v6 || *(v25 - 4) || *(v25 - 3) || *(v25 - 2) || (v29 = *(v25 - 1) - 48, v29 > 9u) )
{
result = v28 + 10000000000LL * v14 + 10 * v23;
*a3 = (unsigned long long)(v25 - 4);
if ( v12 )
return result;
if ( result > 0x8000000000000000LL )
goto LABEL_69;
return -(long long)result;
}
else
{
*a3 = (unsigned long long)v25;
if ( v25 != (_BYTE *)v6 && !*v25 && !v25[1] && !v25[2] && (unsigned __int8)(v25[3] - 48) < 0xAu
|| v14 > v11
|| (v31 = v29 + 10LL * v28, v14 == v11) && v23 >= v10 && (unsigned int)v31 > v9 )
{
LABEL_69:
*a4 = 34;
return -(long long)v12 | 0x8000000000000000LL;
}
return 100 * v23 + v31 + 100000000000LL * v14;
}
}
}
LABEL_78:
v30 = 1000000000 * v14 + v23;
*a3 = (unsigned long long)v27;
result = -(long long)v30;
if ( v12 )
return v30;
return result;
}
if ( !v22 )
goto LABEL_78;
LABEL_73:
v14 = v23 + *(_QWORD *)((char *)&lfactor + 2 * ((v27 - v15) & 0xFFFFFFFFFFFFFFFCLL)) * v14;
*a3 = (unsigned long long)v27;
goto LABEL_74;
}
}
v27 = v21 - 8;
goto LABEL_73;
}
LABEL_70:
v6 = (unsigned long long)v15;
LABEL_71:
*a3 = v6;
LABEL_74:
result = -(long long)v14;
if ( v12 )
return v14;
return result;
}
| my_strtoll10_utf32:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
TEST RDX,RDX
JZ 0x0014d22e
MOV RDI,qword ptr [RDX]
SUB RDI,RSI
LEA RAX,[RDI + 0x3]
TEST RDI,RDI
CMOVNS RAX,RDI
AND RAX,-0x4
ADD RAX,RSI
MOV R11,RSI
CMP RDI,0x4
JL 0x0014d138
MOV R11,RSI
LAB_0014d10c:
CMP byte ptr [R11],0x0
JNZ 0x0014d138
CMP byte ptr [R11 + 0x1],0x0
JNZ 0x0014d138
CMP byte ptr [R11 + 0x2],0x0
JNZ 0x0014d138
MOVZX EDI,byte ptr [R11 + 0x3]
CMP EDI,0x20
JZ 0x0014d12f
CMP EDI,0x9
JNZ 0x0014d138
LAB_0014d12f:
ADD R11,0x4
CMP R11,RAX
JC 0x0014d10c
LAB_0014d138:
CMP R11,RAX
JZ 0x0014d22e
CMP byte ptr [R11],0x0
JNZ 0x0014d185
CMP byte ptr [R11 + 0x1],0x0
JNZ 0x0014d185
CMP byte ptr [R11 + 0x2],0x0
JNZ 0x0014d185
CMP byte ptr [R11 + 0x3],0x2d
JNZ 0x0014d185
MOV dword ptr [RCX],0xffffffff
ADD R11,0x4
CMP R11,RAX
JZ 0x0014d22e
MOV R8D,0x8
MOV R9D,0x15f797ae
MOV R10D,0x57f5ff8
XOR EDI,EDI
JMP 0x0014d1c8
LAB_0014d185:
MOV dword ptr [RCX],0x0
CMP byte ptr [R11],0x0
JNZ 0x0014d22e
MOV R8D,0xf
MOV R9D,0x2bef2f5c
MOV R10D,0xafebff0
MOV DIL,0x1
CMP byte ptr [R11 + 0x1],0x0
JNZ 0x0014d1c8
CMP byte ptr [R11 + 0x2],0x0
JNZ 0x0014d1c8
CMP byte ptr [R11 + 0x3],0x2b
JNZ 0x0014d1c8
ADD R11,0x4
CMP R11,RAX
JZ 0x0014d22e
LAB_0014d1c8:
CMP byte ptr [R11],0x0
JNZ 0x0014d22e
CMP byte ptr [R11 + 0x1],0x0
JNZ 0x0014d22e
CMP byte ptr [R11 + 0x2],0x0
JNZ 0x0014d21b
CMP byte ptr [R11 + 0x3],0x30
JNZ 0x0014d21b
ADD R11,0x28
XOR ESI,ESI
LAB_0014d1e9:
LEA RBX,[R11 + -0x24]
CMP RBX,RAX
JZ 0x0014d3d1
MOV R14,R11
CMP byte ptr [RBX],0x0
JNZ 0x0014d217
CMP byte ptr [R14 + -0x23],0x0
JNZ 0x0014d217
CMP byte ptr [R14 + -0x22],0x0
JNZ 0x0014d217
LEA R11,[R14 + 0x4]
CMP byte ptr [R14 + -0x21],0x30
JZ 0x0014d1e9
LAB_0014d217:
XOR ESI,ESI
JMP 0x0014d252
LAB_0014d21b:
CMP byte ptr [R11 + 0x2],0x0
JNZ 0x0014d22e
MOV BL,byte ptr [R11 + 0x3]
ADD BL,0xd0
CMP BL,0x9
JBE 0x0014d244
LAB_0014d22e:
MOV dword ptr [RCX],0x21
MOV qword ptr [RDX],RSI
XOR EAX,EAX
LAB_0014d239:
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0014d244:
MOVZX ESI,BL
LEA RBX,[R11 + 0x4]
ADD R11,0x24
MOV R14,R11
LAB_0014d252:
CMP R14,RAX
CMOVA R14,RAX
LAB_0014d259:
CMP RBX,R14
JZ 0x0014d29f
CMP byte ptr [RBX],0x0
JNZ 0x0014d3ce
CMP byte ptr [RBX + 0x1],0x0
JNZ 0x0014d3ce
CMP byte ptr [RBX + 0x2],0x0
JNZ 0x0014d3ce
MOV R11B,byte ptr [RBX + 0x3]
ADD R11B,0xd0
CMP R11B,0x9
JA 0x0014d3ce
LEA RSI,[RSI + RSI*0x4]
MOVZX R11D,R11B
LEA RSI,[R11 + RSI*0x2]
ADD RBX,0x4
JMP 0x0014d259
LAB_0014d29f:
CMP RBX,RAX
JZ 0x0014d3ce
LEA R12,[RBX + 0x24]
CMP R12,RAX
CMOVA R12,RAX
LEA R14,[RBX + 0x8]
MOV R13D,0x24
XOR R11D,R11D
LAB_0014d2c0:
CMP byte ptr [R14 + -0x8],0x0
JNZ 0x0014d3d6
CMP byte ptr [R14 + -0x7],0x0
JNZ 0x0014d3d6
CMP byte ptr [R14 + -0x6],0x0
JNZ 0x0014d3d6
MOV R15B,byte ptr [R14 + -0x5]
ADD R15B,0xd0
CMP R15B,0x9
JA 0x0014d3d6
LEA R11,[R11 + R11*0x4]
MOVZX R15D,R15B
LEA R11,[R15 + R11*0x2]
LEA R15,[R14 + 0x4]
ADD R14,-0x4
ADD R13,-0x4
CMP R14,R12
MOV R14,R15
JNZ 0x0014d2c0
LEA R14,[R15 + -0x8]
CMP R12,RAX
JZ 0x0014d408
CMP byte ptr [R14],0x0
JNZ 0x0014d40d
CMP byte ptr [R15 + -0x7],0x0
JNZ 0x0014d40d
CMP byte ptr [R15 + -0x6],0x0
JNZ 0x0014d40d
MOV BL,byte ptr [R15 + -0x5]
ADD BL,0xd0
CMP BL,0x9
JA 0x0014d40d
MOVZX EBX,BL
LEA R12,[R15 + -0x4]
CMP R12,RAX
JZ 0x0014d383
CMP byte ptr [R15 + -0x4],0x0
JNZ 0x0014d383
CMP byte ptr [R15 + -0x3],0x0
JNZ 0x0014d383
CMP byte ptr [R15 + -0x2],0x0
JNZ 0x0014d383
MOV R14B,byte ptr [R15 + -0x1]
ADD R14B,0xd0
CMP R14B,0x9
JBE 0x0014d434
LAB_0014d383:
MOV RAX,0x2540be400
IMUL RSI,RAX
LEA RAX,[R11 + R11*0x4]
LEA RAX,[RSI + RAX*0x2]
ADD RAX,RBX
MOV qword ptr [RDX],R12
TEST DIL,DIL
JNZ 0x0014d239
MOV RDX,-0x8000000000000000
CMP RAX,RDX
JBE 0x0014d42c
LAB_0014d3b7:
MOV dword ptr [RCX],0x22
MOVZX EAX,DIL
NEG RAX
BTS RAX,0x3f
JMP 0x0014d239
LAB_0014d3ce:
MOV RAX,RBX
LAB_0014d3d1:
MOV qword ptr [RDX],RAX
JMP 0x0014d3f6
LAB_0014d3d6:
ADD R14,-0x8
LAB_0014d3da:
MOV RAX,R14
SUB RAX,RBX
AND RAX,-0x4
LEA RCX,[0x35a0f0]
IMUL RSI,qword ptr [RCX + RAX*0x2]
ADD RSI,R11
MOV qword ptr [RDX],R14
LAB_0014d3f6:
MOV RAX,RSI
NEG RAX
TEST DIL,DIL
CMOVNZ RAX,RSI
JMP 0x0014d239
LAB_0014d408:
TEST R13,R13
JNZ 0x0014d3da
LAB_0014d40d:
IMUL RAX,RSI,0x3b9aca00
ADD R11,RAX
MOV qword ptr [RDX],R14
MOV RAX,R11
NEG RAX
TEST DIL,DIL
CMOVNZ RAX,R11
JMP 0x0014d239
LAB_0014d42c:
NEG RAX
JMP 0x0014d239
LAB_0014d434:
MOV qword ptr [RDX],R15
CMP R15,RAX
JZ 0x0014d45e
CMP byte ptr [R15],0x0
JNZ 0x0014d45e
CMP byte ptr [R15 + 0x1],0x0
JNZ 0x0014d45e
CMP byte ptr [R15 + 0x2],0x0
JNZ 0x0014d45e
MOV AL,byte ptr [R15 + 0x3]
ADD AL,0xd0
CMP AL,0xa
JC 0x0014d3b7
LAB_0014d45e:
CMP RSI,R10
JA 0x0014d3b7
LEA RAX,[RBX + RBX*0x4]
MOVZX EDX,R14B
LEA RAX,[RDX + RAX*0x2]
CMP RSI,R10
JNZ 0x0014d486
CMP R11,R9
JC 0x0014d486
CMP EAX,R8D
JA 0x0014d3b7
LAB_0014d486:
MOV RCX,0x174876e800
IMUL RSI,RCX
IMUL RCX,R11,0x64
ADD RSI,RAX
ADD RSI,RCX
MOV RAX,RSI
JMP 0x0014d239
|
ulong my_strtoll10_utf32(int8 param_1,char *param_2,long *param_3,int4 *param_4)
{
char *pcVar1;
char cVar2;
char *pcVar3;
byte bVar4;
char *pcVar5;
ulong uVar6;
byte bVar7;
ulong uVar8;
uint uVar9;
ulong uVar10;
char *pcVar11;
ulong uVar12;
long lVar13;
char *pcVar14;
char *pcVar15;
if (param_3 != (long *)0x0) {
uVar8 = *param_3 - (long)param_2;
uVar10 = uVar8 + 3;
if (-1 < (long)uVar8) {
uVar10 = uVar8;
}
pcVar3 = param_2 + (uVar10 & 0xfffffffffffffffc);
pcVar11 = param_2;
if (3 < (long)uVar8) {
do {
if ((((*pcVar11 != '\0') || (pcVar11[1] != '\0')) || (pcVar11[2] != '\0')) ||
((pcVar11[3] != ' ' && (pcVar11[3] != '\t')))) break;
pcVar11 = pcVar11 + 4;
} while (pcVar11 < pcVar3);
}
if (pcVar11 != pcVar3) {
if (((*pcVar11 == '\0') && (pcVar11[1] == '\0')) &&
((pcVar11[2] == '\0' && (pcVar11[3] == '-')))) {
*param_4 = 0xffffffff;
pcVar11 = pcVar11 + 4;
if (pcVar11 == pcVar3) goto LAB_0014d22e;
uVar9 = 8;
uVar10 = 0x15f797ae;
uVar8 = 0x57f5ff8;
bVar7 = 0;
}
else {
*param_4 = 0;
if (*pcVar11 != '\0') goto LAB_0014d22e;
uVar9 = 0xf;
uVar10 = 0x2bef2f5c;
uVar8 = 0xafebff0;
bVar7 = 1;
if ((((pcVar11[1] == '\0') && (pcVar11[2] == '\0')) && (pcVar11[3] == '+')) &&
(pcVar11 = pcVar11 + 4, pcVar11 == pcVar3)) goto LAB_0014d22e;
}
if ((*pcVar11 == '\0') && (pcVar11[1] == '\0')) {
if ((pcVar11[2] == '\0') && (pcVar11[3] == '0')) {
uVar6 = 0;
pcVar5 = pcVar11 + 0x28;
do {
pcVar11 = pcVar5;
pcVar1 = pcVar11 + -0x24;
pcVar5 = pcVar3;
if (pcVar1 == pcVar3) goto LAB_0014d3d1;
} while ((((*pcVar1 == '\0') && (pcVar11[-0x23] == '\0')) && (pcVar11[-0x22] == '\0')) &&
(pcVar5 = pcVar11 + 4, pcVar11[-0x21] == '0'));
uVar6 = 0;
pcVar5 = pcVar1;
}
else {
if ((pcVar11[2] != '\0') || (9 < (byte)(pcVar11[3] - 0x30U))) goto LAB_0014d22e;
uVar6 = (ulong)(byte)(pcVar11[3] - 0x30U);
pcVar5 = pcVar11 + 4;
pcVar11 = pcVar11 + 0x24;
}
if (pcVar3 < pcVar11) {
pcVar11 = pcVar3;
}
for (; pcVar5 != pcVar11; pcVar5 = pcVar5 + 4) {
if (((*pcVar5 != '\0') || (pcVar5[1] != '\0')) ||
((pcVar5[2] != '\0' || (9 < (byte)(pcVar5[3] - 0x30U))))) goto LAB_0014d3d1;
uVar6 = (ulong)(byte)(pcVar5[3] - 0x30U) + uVar6 * 10;
}
if (pcVar5 != pcVar3) {
pcVar11 = pcVar5 + 0x24;
if (pcVar3 < pcVar5 + 0x24) {
pcVar11 = pcVar3;
}
lVar13 = 0x24;
uVar12 = 0;
pcVar1 = pcVar5 + 8;
do {
pcVar14 = pcVar1;
if (((pcVar14[-8] != '\0') || (pcVar14[-7] != '\0')) ||
((pcVar14[-6] != '\0' || (9 < (byte)(pcVar14[-5] - 0x30U))))) {
pcVar15 = pcVar14 + -8;
goto LAB_0014d3da;
}
uVar12 = (ulong)(byte)(pcVar14[-5] - 0x30U) + uVar12 * 10;
pcVar1 = pcVar14 + 4;
lVar13 = lVar13 + -4;
} while (pcVar14 + -4 != pcVar11);
pcVar15 = pcVar14 + -4;
if (pcVar11 == pcVar3) {
if (lVar13 != 0) {
LAB_0014d3da:
uVar6 = uVar6 * *(long *)((long)&lfactor +
((long)pcVar15 - (long)pcVar5 & 0xfffffffffffffffcU) * 2) +
uVar12;
*param_3 = (long)pcVar15;
goto LAB_0014d3f6;
}
}
else if ((((*pcVar15 == '\0') && (pcVar14[-3] == '\0')) && (pcVar14[-2] == '\0')) &&
(bVar4 = pcVar14[-1] - 0x30, bVar4 < 10)) {
if (((pcVar14 == pcVar3) || (*pcVar14 != '\0')) ||
((pcVar14[1] != '\0' ||
((pcVar14[2] != '\0' || (cVar2 = pcVar14[3], 9 < (byte)(cVar2 - 0x30U))))))) {
uVar10 = uVar6 * 10000000000 + uVar12 * 10 + (ulong)bVar4;
*param_3 = (long)pcVar14;
if (bVar7 != 0) {
return uVar10;
}
if (uVar10 < 0x8000000000000001) {
return -uVar10;
}
}
else {
*param_3 = (long)pcVar1;
if ((((((pcVar1 == pcVar3) || (*pcVar1 != '\0')) || (pcVar14[5] != '\0')) ||
((pcVar14[6] != '\0' || (9 < (byte)(pcVar14[7] - 0x30U))))) && (uVar6 <= uVar8))
&& (((lVar13 = (ulong)(byte)(cVar2 - 0x30U) + (ulong)bVar4 * 10, uVar6 != uVar8 ||
(uVar12 < uVar10)) || ((uint)lVar13 <= uVar9)))) {
return uVar6 * 100000000000 + lVar13 + uVar12 * 100;
}
}
*param_4 = 0x22;
return -(ulong)bVar7 | 0x8000000000000000;
}
uVar12 = uVar12 + uVar6 * 1000000000;
*param_3 = (long)pcVar15;
if (bVar7 == 0) {
return -uVar12;
}
return uVar12;
}
LAB_0014d3d1:
*param_3 = (long)pcVar5;
LAB_0014d3f6:
if (bVar7 == 0) {
return -uVar6;
}
return uVar6;
}
}
}
LAB_0014d22e:
*param_4 = 0x21;
*param_3 = (long)param_2;
return 0;
}
| |
30,331 | change_simple_key_cache_param | eloqsql/mysys/mf_keycache.c | static
void change_simple_key_cache_param(SIMPLE_KEY_CACHE_CB *keycache, uint division_limit,
uint age_threshold)
{
DBUG_ENTER("change_simple_key_cache_param");
keycache_pthread_mutex_lock(&keycache->cache_lock);
if (division_limit)
keycache->min_warm_blocks= (keycache->disk_blocks *
division_limit / 100 + 1);
if (age_threshold)
keycache->age_threshold= (keycache->disk_blocks *
age_threshold / 100);
keycache_pthread_mutex_unlock(&keycache->cache_lock);
DBUG_VOID_RETURN;
} | O0 | c | change_simple_key_cache_param:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq -0x8(%rbp), %rdi
addq $0xc0, %rdi
leaq 0x6d9e7(%rip), %rsi # 0x15307b
movl $0x399, %edx # imm = 0x399
callq 0xe2bf0
cmpl $0x0, -0xc(%rbp)
je 0xe56c7
movq -0x8(%rbp), %rax
movl 0x48(%rax), %eax
imull -0xc(%rbp), %eax
movl $0x64, %ecx
xorl %edx, %edx
divl %ecx
addl $0x1, %eax
movl %eax, %eax
movl %eax, %ecx
movq -0x8(%rbp), %rax
movq %rcx, 0x20(%rax)
cmpl $0x0, -0x10(%rbp)
je 0xe56ed
movq -0x8(%rbp), %rax
movl 0x48(%rax), %eax
imull -0x10(%rbp), %eax
movl $0x64, %ecx
xorl %edx, %edx
divl %ecx
movl %eax, %eax
movl %eax, %ecx
movq -0x8(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x8(%rbp), %rdi
addq $0xc0, %rdi
callq 0xe3610
jmp 0xe56ff
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| change_simple_key_cache_param:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_10], edx
mov rdi, [rbp+var_8]
add rdi, 0C0h
lea rsi, aWorkspaceLlm4b_36; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 399h
call inline_mysql_mutex_lock_24
cmp [rbp+var_C], 0
jz short loc_E56C7
mov rax, [rbp+var_8]
mov eax, [rax+48h]
imul eax, [rbp+var_C]
mov ecx, 64h ; 'd'
xor edx, edx
div ecx
add eax, 1
mov eax, eax
mov ecx, eax
mov rax, [rbp+var_8]
mov [rax+20h], rcx
loc_E56C7:
cmp [rbp+var_10], 0
jz short loc_E56ED
mov rax, [rbp+var_8]
mov eax, [rax+48h]
imul eax, [rbp+var_10]
mov ecx, 64h ; 'd'
xor edx, edx
div ecx
mov eax, eax
mov ecx, eax
mov rax, [rbp+var_8]
mov [rax+28h], rcx
loc_E56ED:
mov rdi, [rbp+var_8]
add rdi, 0C0h
call inline_mysql_mutex_unlock_25
jmp short $+2
loc_E56FF:
add rsp, 10h
pop rbp
retn
| long long change_simple_key_cache_param(long long a1, int a2, int a3)
{
inline_mysql_mutex_lock_24(a1 + 192, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c", 0x399u);
if ( a2 )
*(_QWORD *)(a1 + 32) = a2 * *(_DWORD *)(a1 + 72) / 0x64u + 1;
if ( a3 )
*(_QWORD *)(a1 + 40) = a3 * *(_DWORD *)(a1 + 72) / 0x64u;
return inline_mysql_mutex_unlock_25(a1 + 192);
}
| change_simple_key_cache_param:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV dword ptr [RBP + -0x10],EDX
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0xc0
LEA RSI,[0x25307b]
MOV EDX,0x399
CALL 0x001e2bf0
CMP dword ptr [RBP + -0xc],0x0
JZ 0x001e56c7
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x48]
IMUL EAX,dword ptr [RBP + -0xc]
MOV ECX,0x64
XOR EDX,EDX
DIV ECX
ADD EAX,0x1
MOV EAX,EAX
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x20],RCX
LAB_001e56c7:
CMP dword ptr [RBP + -0x10],0x0
JZ 0x001e56ed
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x48]
IMUL EAX,dword ptr [RBP + -0x10]
MOV ECX,0x64
XOR EDX,EDX
DIV ECX
MOV EAX,EAX
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x28],RCX
LAB_001e56ed:
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0xc0
CALL 0x001e3610
JMP 0x001e56ff
LAB_001e56ff:
ADD RSP,0x10
POP RBP
RET
|
void change_simple_key_cache_param(long param_1,int param_2,int param_3)
{
inline_mysql_mutex_lock
(param_1 + 0xc0,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c",0x399);
if (param_2 != 0) {
*(ulong *)(param_1 + 0x20) = (ulong)((uint)(*(int *)(param_1 + 0x48) * param_2) / 100 + 1);
}
if (param_3 != 0) {
*(ulong *)(param_1 + 0x28) = (ulong)(uint)(*(int *)(param_1 + 0x48) * param_3) / 100;
}
inline_mysql_mutex_unlock(param_1 + 0xc0);
return;
}
| |
30,332 | fini_one_value | eloqsql/mysys/my_getopt.c | static void fini_one_value(const struct my_option *option, void *variable,
longlong value __attribute__ ((unused)))
{
DBUG_ENTER("fini_one_value");
switch ((option->var_type & GET_TYPE_MASK)) {
case GET_STR_ALLOC:
my_free(*((char**) variable));
*((char**) variable)= NULL;
break;
default: /* dummy default to avoid compiler warnings */
break;
}
DBUG_VOID_RETURN;
} | O3 | c | fini_one_value:
movl 0x30(%rdi), %eax
andl $0x3f, %eax
cmpl $0xa, %eax
jne 0x82e90
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq (%rsi), %rdi
callq 0x84732
movq $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| fini_one_value:
mov eax, [rdi+30h]
and eax, 3Fh
cmp eax, 0Ah
jnz short locret_82E90
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rsi
mov rdi, [rsi]
call my_free
mov qword ptr [rbx], 0
add rsp, 8
pop rbx
pop rbp
locret_82E90:
retn
| long long fini_one_value(long long a1, _QWORD *a2)
{
long long result; // rax
result = *(_DWORD *)(a1 + 48) & 0x3F;
if ( (_DWORD)result == 10 )
{
result = my_free(*a2);
*a2 = 0LL;
}
return result;
}
| fini_one_value:
MOV EAX,dword ptr [RDI + 0x30]
AND EAX,0x3f
CMP EAX,0xa
JNZ 0x00182e90
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV RDI,qword ptr [RSI]
CALL 0x00184732
MOV qword ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP RBP
LAB_00182e90:
RET
|
void fini_one_value(long param_1,int8 *param_2)
{
if ((*(uint *)(param_1 + 0x30) & 0x3f) == 10) {
my_free(*param_2);
*param_2 = 0;
}
return;
}
| |
30,333 | nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2(char*, int&, int&, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp) | monkey531[P]llama/common/json.hpp | inline void grisu2(char* buf, int& len, int& decimal_exponent,
diyfp m_minus, diyfp v, diyfp m_plus)
{
JSON_ASSERT(m_plus.e == m_minus.e);
JSON_ASSERT(m_plus.e == v.e);
// --------(-----------------------+-----------------------)-------- (A)
// m- v m+
//
// --------------------(-----------+-----------------------)-------- (B)
// m- v m+
//
// First scale v (and m- and m+) such that the exponent is in the range
// [alpha, gamma].
const cached_power cached = get_cached_power_for_binary_exponent(m_plus.e);
const diyfp c_minus_k(cached.f, cached.e); // = c ~= 10^-k
// The exponent of the products is = v.e + c_minus_k.e + q and is in the range [alpha,gamma]
const diyfp w = diyfp::mul(v, c_minus_k);
const diyfp w_minus = diyfp::mul(m_minus, c_minus_k);
const diyfp w_plus = diyfp::mul(m_plus, c_minus_k);
// ----(---+---)---------------(---+---)---------------(---+---)----
// w- w w+
// = c*m- = c*v = c*m+
//
// diyfp::mul rounds its result and c_minus_k is approximated too. w, w- and
// w+ are now off by a small amount.
// In fact:
//
// w - v * 10^k < 1 ulp
//
// To account for this inaccuracy, add resp. subtract 1 ulp.
//
// --------+---[---------------(---+---)---------------]---+--------
// w- M- w M+ w+
//
// Now any number in [M-, M+] (bounds included) will round to w when input,
// regardless of how the input rounding algorithm breaks ties.
//
// And digit_gen generates the shortest possible such number in [M-, M+].
// Note that this does not mean that Grisu2 always generates the shortest
// possible number in the interval (m-, m+).
const diyfp M_minus(w_minus.f + 1, w_minus.e);
const diyfp M_plus (w_plus.f - 1, w_plus.e );
decimal_exponent = -cached.k; // = -(-k) = k
grisu2_digit_gen(buf, len, decimal_exponent, M_minus, w, M_plus);
} | O2 | cpp | nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2(char*, int&, int&, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp, nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rcx, 0x58(%rsp)
movl %r8d, 0x60(%rsp)
cmpl %r8d, 0xc8(%rsp)
jne 0x886d8
movq %rdi, 0x20(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
leaq 0xb0(%rsp), %r13
cmpl %r8d, 0x8(%r13)
jne 0x886f4
movl %r8d, %edi
callq 0x887ad
movq %rdx, %r12
leaq 0x68(%rsp), %r14
movq %rax, (%r14)
movl %r12d, 0x8(%r14)
movq %r13, %rdi
movq %r14, %rsi
callq 0x888e2
movq %rax, %r15
movl %edx, %ebx
leaq 0x58(%rsp), %rdi
movq %r14, %rsi
callq 0x888e2
movq %rax, %r13
movl %edx, %ebp
leaq 0xc0(%rsp), %rdi
movq %r14, %rsi
callq 0x888e2
incq %r13
decq %rax
shrq $0x20, %r12
negl %r12d
movq 0x30(%rsp), %rcx
movl %r12d, (%rcx)
movq %r15, 0x48(%rsp)
movl %ebx, 0x50(%rsp)
movq %rax, 0x38(%rsp)
movl %edx, 0x40(%rsp)
movups 0x38(%rsp), %xmm0
movups %xmm0, 0x10(%rsp)
movups 0x48(%rsp), %xmm0
movups %xmm0, (%rsp)
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq %rcx, %rdx
movq %r13, %rcx
movl %ebp, %r8d
callq 0x8893e
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2788d(%rip), %rdi # 0xaff6c
leaq 0x21b06(%rip), %rdx # 0xaa1ec
leaq 0x2d0a0(%rip), %rcx # 0xb578d
movl $0x454b, %esi # imm = 0x454B
jmp 0x8870e
leaq 0x27871(%rip), %rdi # 0xaff6c
leaq 0x21aea(%rip), %rdx # 0xaa1ec
leaq 0x2d09a(%rip), %rcx # 0xb57a3
movl $0x454c, %esi # imm = 0x454C
xorl %eax, %eax
callq 0x23ec0
nop
| _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl6grisu2EPcRiS4_NS2_5diyfpES5_S5_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov [rsp+0A8h+var_50], rcx
mov [rsp+0A8h+var_48], r8d
cmp [rsp+0A8h+arg_18], r8d
jnz loc_886D8
mov [rsp+0A8h+var_88], rdi
mov [rsp+0A8h+var_80], rsi
mov [rsp+0A8h+var_78], rdx
lea r13, [rsp+0A8h+arg_0]
cmp [r13+8], r8d
jnz loc_886F4
mov edi, r8d; this
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl36get_cached_power_for_binary_exponentEi; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent(int)
mov r12, rdx
lea r14, [rsp+0A8h+var_40]
mov [r14], rax
mov [r14+8], r12d
mov rdi, r13
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp3mulERKS3_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&)
mov r15, rax
mov ebx, edx
lea rdi, [rsp+0A8h+var_50]
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp3mulERKS3_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&)
mov r13, rax
mov ebp, edx
lea rdi, [rsp+0A8h+arg_10]
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl5diyfp3mulERKS3_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp const&)
inc r13
dec rax
shr r12, 20h
neg r12d
mov rcx, [rsp+0A8h+var_78]
mov [rcx], r12d
mov qword ptr [rsp+0A8h+var_60], r15
mov dword ptr [rsp+0A8h+var_60+8], ebx
mov qword ptr [rsp+0A8h+var_70], rax
mov dword ptr [rsp+0A8h+var_70+8], edx
movups xmm0, [rsp+0A8h+var_70]
movups [rsp+0A8h+var_98], xmm0
movups xmm0, [rsp+0A8h+var_60]
movups [rsp+0A8h+var_A8], xmm0
mov rdi, [rsp+0A8h+var_88]
mov rsi, [rsp+0A8h+var_80]
mov rdx, rcx
mov rcx, r13
mov r8d, ebp
call _ZN8nlohmann16json_abi_v3_11_36detail9dtoa_impl16grisu2_digit_genEPcRiS4_NS2_5diyfpES5_S5_; nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_digit_gen(char *,int &,int &,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp,nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp)
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_886D8:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aMPlusEMMinusE; "m_plus.e == m_minus.e"
mov esi, 454Bh
jmp short loc_8870E
loc_886F4:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aMPlusEVE; "m_plus.e == v.e"
mov esi, 454Ch
loc_8870E:
xor eax, eax
call _ggml_abort
nop
| long long nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2(
int a1,
int a2,
_DWORD *a3,
long long a4,
unsigned int a5,
long long a6,
char a7,
int a8,
char a9,
int a10)
{
long long cached_power_for_binary_exponent; // rax
int v11; // rdx^4
int v12; // r12^4
int v13; // edx
char v14; // r15
int v15; // edx
int v16; // ebx
int v17; // r13d
int v18; // edx
int v19; // ebp
char v20; // al
int v21; // edx
int v22; // r9d
long long v25; // [rsp+58h] [rbp-50h] BYREF
unsigned int v26; // [rsp+60h] [rbp-48h]
long long v27; // [rsp+68h] [rbp-40h] BYREF
int v28; // [rsp+70h] [rbp-38h]
v25 = a4;
v26 = a5;
if ( a10 == a5 )
{
if ( a8 == a5 )
{
cached_power_for_binary_exponent = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::get_cached_power_for_binary_exponent(
(nlohmann::json_abi_v3_11_3::detail::dtoa_impl *)a5,
a2);
v12 = v11;
v27 = cached_power_for_binary_exponent;
v28 = v13;
v14 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(&a7, &v27);
v16 = v15;
v17 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(&v25, &v27);
v19 = v18;
v20 = nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::mul(&a9, &v27);
*a3 = -v12;
return nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2_digit_gen(
a1,
a2,
(_DWORD)a3,
v17 + 1,
v19,
v22,
v14,
v16,
v20 - 1,
v21);
}
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17740LL,
"GGML_ASSERT(%s) failed",
"m_plus.e == v.e");
}
else
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
17739LL,
"GGML_ASSERT(%s) failed",
"m_plus.e == m_minus.e");
}
return nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp::normalize("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp");
}
| grisu2:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV qword ptr [RSP + 0x58],RCX
MOV dword ptr [RSP + 0x60],R8D
CMP dword ptr [RSP + 0xc8],R8D
JNZ 0x001886d8
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x28],RSI
MOV qword ptr [RSP + 0x30],RDX
LEA R13,[RSP + 0xb0]
CMP dword ptr [R13 + 0x8],R8D
JNZ 0x001886f4
MOV EDI,R8D
CALL 0x001887ad
MOV R12,RDX
LEA R14,[RSP + 0x68]
MOV qword ptr [R14],RAX
MOV dword ptr [R14 + 0x8],R12D
MOV RDI,R13
MOV RSI,R14
CALL 0x001888e2
MOV R15,RAX
MOV EBX,EDX
LEA RDI,[RSP + 0x58]
MOV RSI,R14
CALL 0x001888e2
MOV R13,RAX
MOV EBP,EDX
LEA RDI,[RSP + 0xc0]
MOV RSI,R14
CALL 0x001888e2
INC R13
DEC RAX
SHR R12,0x20
NEG R12D
MOV RCX,qword ptr [RSP + 0x30]
MOV dword ptr [RCX],R12D
MOV qword ptr [RSP + 0x48],R15
MOV dword ptr [RSP + 0x50],EBX
MOV qword ptr [RSP + 0x38],RAX
MOV dword ptr [RSP + 0x40],EDX
MOVUPS XMM0,xmmword ptr [RSP + 0x38]
MOVUPS xmmword ptr [RSP + 0x10],XMM0
MOVUPS XMM0,xmmword ptr [RSP + 0x48]
MOVUPS xmmword ptr [RSP],XMM0
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RSP + 0x28]
MOV RDX,RCX
MOV RCX,R13
MOV R8D,EBP
CALL 0x0018893e
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001886d8:
LEA RDI,[0x1aff6c]
LEA RDX,[0x1aa1ec]
LEA RCX,[0x1b578d]
MOV ESI,0x454b
JMP 0x0018870e
LAB_001886f4:
LEA RDI,[0x1aff6c]
LEA RDX,[0x1aa1ec]
LEA RCX,[0x1b57a3]
MOV ESI,0x454c
LAB_0018870e:
XOR EAX,EAX
CALL 0x00123ec0
|
/* nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2(char*, int&, int&,
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp,
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp,
nlohmann::json_abi_v3_11_3::detail::dtoa_impl::diyfp) */
void nlohmann::json_abi_v3_11_3::detail::dtoa_impl::grisu2
(int8 param_1,int8 param_2,int *param_3,int8 param_4,int param_5,
int8 param_6,int8 param_7,int param_8,int8 param_9,int param_10)
{
int4 uVar1;
char *pcVar2;
int4 extraout_EDX;
int8 uVar3;
int1 auVar4 [16];
int1 auVar5 [12];
int1 auVar6 [12];
int4 uStack_64;
int8 local_50;
int local_48;
int8 local_40;
int4 local_38;
local_50 = param_4;
local_48 = param_5;
if (param_10 == param_5) {
if (param_8 == param_5) {
auVar4 = get_cached_power_for_binary_exponent(param_5);
local_40 = auVar4._0_8_;
local_38 = auVar4._8_4_;
uVar1 = diyfp::mul((diyfp *)¶m_7,(diyfp *)&local_40);
auVar5 = diyfp::mul((diyfp *)&local_50,(diyfp *)&local_40);
auVar6 = diyfp::mul((diyfp *)¶m_9,(diyfp *)&local_40);
*param_3 = -auVar4._12_4_;
grisu2_digit_gen(param_1,param_2,param_3,auVar5._0_8_ + 1,auVar5._8_4_,param_6,uVar1,
extraout_EDX,auVar6._0_8_ + -1,CONCAT44(uStack_64,auVar6._8_4_));
return;
}
pcVar2 = "m_plus.e == v.e";
uVar3 = 0x454c;
}
else {
pcVar2 = "m_plus.e == m_minus.e";
uVar3 = 0x454b;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",uVar3,
"GGML_ASSERT(%s) failed",pcVar2);
}
| |
30,334 | nglog::LogMessage::SendToSyslogAndLog() | ng-log[P]ng-log/src/logging.cc | void LogMessage::SendToSyslogAndLog() {
#ifdef HAVE_SYSLOG_H
// Before any calls to syslog(), make a single call to openlog()
static bool openlog_already_called = false;
if (!openlog_already_called) {
openlog(tools::ProgramInvocationShortName(),
LOG_CONS | LOG_NDELAY | LOG_PID, LOG_USER);
openlog_already_called = true;
}
// This array maps Google severity levels to syslog levels
const int SEVERITY_TO_LEVEL[] = {LOG_INFO, LOG_WARNING, LOG_ERR, LOG_EMERG};
syslog(LOG_USER | SEVERITY_TO_LEVEL[static_cast<int>(data_->severity_)],
"%.*s", static_cast<int>(data_->num_chars_to_syslog_),
data_->message_text_ + data_->num_prefix_chars_);
SendToLog();
#else
LOG(ERROR) << "No syslog support: message=" << data_->message_text_;
#endif
} | O3 | cpp | nglog::LogMessage::SendToSyslogAndLog():
pushq %rbx
movq %rdi, %rbx
cmpb $0x0, 0x33bca(%rip) # 0x3ed89
jne 0xb1df
callq 0x2122f
movq %rax, %rdi
movl $0xb, %esi
movl $0x8, %edx
callq 0x7430
movb $0x1, 0x33baa(%rip) # 0x3ed89
movq 0x8(%rbx), %rax
movslq 0x7698(%rax), %rcx
leaq 0x1845f(%rip), %rdx # 0x23650
movl (%rdx,%rcx,4), %edi
orl $0x8, %edi
movl 0x76c8(%rax), %edx
movq 0x76b8(%rax), %rcx
addq %rax, %rcx
addq $0x4, %rcx
leaq 0x1749e(%rip), %rsi # 0x226b0
xorl %eax, %eax
callq 0x70a0
movq %rbx, %rdi
popq %rbx
jmp 0xa33a
| _ZN5nglog10LogMessage18SendToSyslogAndLogEv:
push rbx
mov rbx, rdi
cmp cs:_ZZN5nglog10LogMessage18SendToSyslogAndLogEvE22openlog_already_called, 0; nglog::LogMessage::SendToSyslogAndLog(void)::openlog_already_called
jnz short loc_B1DF
call _ZN5nglog5tools26ProgramInvocationShortNameEv; nglog::tools::ProgramInvocationShortName(void)
mov rdi, rax
mov esi, 0Bh
mov edx, 8
call _openlog
mov cs:_ZZN5nglog10LogMessage18SendToSyslogAndLogEvE22openlog_already_called, 1; nglog::LogMessage::SendToSyslogAndLog(void)::openlog_already_called
loc_B1DF:
mov rax, [rbx+8]
movsxd rcx, dword ptr [rax+7698h]
lea rdx, unk_23650
mov edi, [rdx+rcx*4]
or edi, 8
mov edx, [rax+76C8h]
mov rcx, [rax+76B8h]
add rcx, rax
add rcx, 4
lea rsi, aS; "%.*s"
xor eax, eax
call _syslog
mov rdi, rbx; this
pop rbx
jmp _ZN5nglog10LogMessage9SendToLogEv; nglog::LogMessage::SendToLog(void)
| long long nglog::LogMessage::SendToSyslogAndLog(nglog::LogMessage *this)
{
long long v1; // rax
if ( !nglog::LogMessage::SendToSyslogAndLog(void)::openlog_already_called )
{
v1 = nglog::tools::ProgramInvocationShortName(this);
openlog(v1, 11LL, 8LL);
nglog::LogMessage::SendToSyslogAndLog(void)::openlog_already_called = 1;
}
syslog(
dword_23650[*(int *)(*((_QWORD *)this + 1) + 30360LL)] | 8u,
"%.*s",
*(_DWORD *)(*((_QWORD *)this + 1) + 30408LL),
(const char *)(*((_QWORD *)this + 1) + *(_QWORD *)(*((_QWORD *)this + 1) + 30392LL) + 4LL));
return nglog::LogMessage::SendToLog(this);
}
| SendToSyslogAndLog:
PUSH RBX
MOV RBX,RDI
CMP byte ptr [0x0013ed89],0x0
JNZ 0x0010b1df
CALL 0x0012122f
MOV RDI,RAX
MOV ESI,0xb
MOV EDX,0x8
CALL 0x00107430
MOV byte ptr [0x0013ed89],0x1
LAB_0010b1df:
MOV RAX,qword ptr [RBX + 0x8]
MOVSXD RCX,dword ptr [RAX + 0x7698]
LEA RDX,[0x123650]
MOV EDI,dword ptr [RDX + RCX*0x4]
OR EDI,0x8
MOV EDX,dword ptr [RAX + 0x76c8]
MOV RCX,qword ptr [RAX + 0x76b8]
ADD RCX,RAX
ADD RCX,0x4
LEA RSI,[0x1226b0]
XOR EAX,EAX
CALL 0x001070a0
MOV RDI,RBX
POP RBX
JMP 0x0010a33a
|
/* nglog::LogMessage::SendToSyslogAndLog() */
void __thiscall nglog::LogMessage::SendToSyslogAndLog(LogMessage *this)
{
long lVar1;
char *__ident;
if (SendToSyslogAndLog()::openlog_already_called == '\0') {
__ident = (char *)tools::ProgramInvocationShortName();
openlog(__ident,0xb,8);
SendToSyslogAndLog()::openlog_already_called = '\x01';
}
lVar1 = *(long *)(this + 8);
syslog(*(uint *)(&DAT_00123650 + (long)*(int *)(lVar1 + 0x7698) * 4) | 8,"%.*s",
(ulong)*(uint *)(lVar1 + 0x76c8),*(long *)(lVar1 + 0x76b8) + lVar1 + 4);
SendToLog(this);
return;
}
| |
30,335 | gzdirect | 3fs/build_O3/src/apache-arrow-cpp/cpp/zlib_ep-prefix/src/zlib_ep/gzread.c | int ZEXPORT gzdirect(file)
gzFile file;
{
gz_statep state;
/* get internal structure */
if (file == NULL)
return 0;
state = (gz_statep)file;
/* if the state is not known, but we can find out, then do so (this is
mainly for right after a gzopen() or gzdopen()) */
if (state->mode == GZ_READ && state->how == LOOK && state->x.have == 0)
(void)gz_look(state);
/* return 1 if transparent, 0 if processing a gzip stream */
return state->direct;
} | O3 | c | gzdirect:
testq %rdi, %rdi
je 0x7da1
pushq %rbx
movq %rdi, %rbx
cmpl $0x1c4f, 0x18(%rdi) # imm = 0x1C4F
jne 0x7d9c
cmpl $0x0, 0x44(%rbx)
jne 0x7d9c
cmpl $0x0, (%rbx)
jne 0x7d9c
movq %rbx, %rdi
callq 0x7da4
movl 0x40(%rbx), %eax
popq %rbx
retq
xorl %eax, %eax
retq
| gzdirect:
test rdi, rdi
jz short loc_7DA1
push rbx
mov rbx, rdi
cmp dword ptr [rdi+18h], 1C4Fh
jnz short loc_7D9C
cmp dword ptr [rbx+44h], 0
jnz short loc_7D9C
cmp dword ptr [rbx], 0
jnz short loc_7D9C
mov rdi, rbx
call gz_look
loc_7D9C:
mov eax, [rbx+40h]
pop rbx
retn
loc_7DA1:
xor eax, eax
retn
| long long gzdirect(_DWORD *a1)
{
if ( !a1 )
return 0LL;
if ( a1[6] == 7247 && !a1[17] && !*a1 )
gz_look(a1);
return (unsigned int)a1[16];
}
| gzdirect:
TEST RDI,RDI
JZ 0x00107da1
PUSH RBX
MOV RBX,RDI
CMP dword ptr [RDI + 0x18],0x1c4f
JNZ 0x00107d9c
CMP dword ptr [RBX + 0x44],0x0
JNZ 0x00107d9c
CMP dword ptr [RBX],0x0
JNZ 0x00107d9c
MOV RDI,RBX
CALL 0x00107da4
LAB_00107d9c:
MOV EAX,dword ptr [RBX + 0x40]
POP RBX
RET
LAB_00107da1:
XOR EAX,EAX
RET
|
int gzdirect(int *param_1)
{
if (param_1 != (int *)0x0) {
if (((param_1[6] == 0x1c4f) && (param_1[0x11] == 0)) && (*param_1 == 0)) {
gz_look(param_1);
}
return param_1[0x10];
}
return 0;
}
| |
30,336 | maria_ft_simple_get_word | eloqsql/storage/maria/ma_ft_parser.c | uchar maria_ft_simple_get_word(CHARSET_INFO *cs, uchar **start,
const uchar *end, FT_WORD *word,
my_bool skip_stopwords)
{
uchar *doc= *start;
uint mwc, length;
int ctype, mbl;
DBUG_ENTER("maria_ft_simple_get_word");
do
{
for (;; doc+= (mbl > 0 ? mbl : (mbl < 0 ? -mbl : 1)))
{
if (doc >= end)
DBUG_RETURN(0);
mbl= my_ci_ctype(cs, &ctype, doc, end);
if (true_word_char(ctype, *doc))
break;
}
mwc= length= 0;
for (word->pos= doc; doc < end; length++,
doc+= (mbl > 0 ? mbl : (mbl < 0 ? -mbl : 1)))
{
mbl= my_ci_ctype(cs, &ctype, doc, end);
if (true_word_char(ctype, *doc))
mwc= 0;
else if (!misc_word_char(*doc) || mwc)
break;
else
mwc++;
}
word->len= (uint)(doc-word->pos) - mwc;
if (skip_stopwords == FALSE ||
(length >= ft_min_word_len && length < ft_max_word_len &&
!is_stopword((char *) word->pos, word->len)))
{
*start= doc;
DBUG_RETURN(1);
}
} while (doc < end);
DBUG_RETURN(0);
} | O3 | c | maria_ft_simple_get_word:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, -0x30(%rbp)
movq %rcx, -0x38(%rbp)
movq %rdx, %r12
movq %rdi, %r13
movq %rsi, -0x40(%rbp)
movq (%rsi), %r15
leaq -0x2c(%rbp), %rbx
movl $0x1, %r14d
cmpq %r12, %r15
jae 0x4615e
movq 0xb8(%r13), %rax
movq %r13, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq *0x38(%rax)
testb $0x7, -0x2c(%rbp)
jne 0x460b4
cmpb $0x5f, (%r15)
je 0x460b4
movl %eax, %ecx
negl %ecx
testl %eax, %eax
cmovel %r14d, %ecx
cmovgl %eax, %ecx
addq %rcx, %r15
jmp 0x46077
movq -0x38(%rbp), %rcx
movq %r15, (%rcx)
xorl %r14d, %r14d
cmpq %r12, %r15
jae 0x46105
movq 0xb8(%r13), %rax
movq %r13, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq *0x38(%rax)
testb $0x7, -0x2c(%rbp)
jne 0x460e5
cmpb $0x5f, (%r15)
jne 0x4610c
incl %r14d
movl %eax, %ecx
negl %ecx
testl %eax, %eax
movl $0x1, %edx
cmovel %edx, %ecx
cmovgl %eax, %ecx
addq %rcx, %r15
cmpq %r12, %r15
jb 0x460c3
xorl %edx, %edx
jmp 0x4610e
movq %r15, %rdi
xorl %edx, %edx
jmp 0x46118
movb $0x1, %dl
movq -0x38(%rbp), %rcx
movq (%rcx), %rdi
movl %r14d, %r14d
movq %r15, %rax
subq %rdi, %rax
movl %eax, 0x8(%rcx)
cmpb $0x0, -0x30(%rbp)
je 0x4616f
leaq 0x33e0b2(%rip), %rcx # 0x3841e0
cmpq %r14, (%rcx)
ja 0x46150
leaq 0x33e0ae(%rip), %rcx # 0x3841e8
cmpq %r14, (%rcx)
jbe 0x46150
movl %eax, %esi
movq %rdx, %r14
callq 0x7140d
movq %r14, %rdx
testl %eax, %eax
je 0x4616f
testb %dl, %dl
movl $0x1, %r14d
jne 0x46077
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x40(%rbp), %rax
movq %r15, (%rax)
movb $0x1, %al
jmp 0x46160
| maria_ft_simple_get_word:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov [rbp+var_30], r8d
mov [rbp+var_38], rcx
mov r12, rdx
mov r13, rdi
mov [rbp+var_40], rsi
mov r15, [rsi]
lea rbx, [rbp+var_2C]
mov r14d, 1
loc_46077:
cmp r15, r12
jnb loc_4615E
mov rax, [r13+0B8h]
mov rdi, r13
mov rsi, rbx
mov rdx, r15
mov rcx, r12
call qword ptr [rax+38h]
test [rbp+var_2C], 7
jnz short loc_460B4
cmp byte ptr [r15], 5Fh ; '_'
jz short loc_460B4
mov ecx, eax
neg ecx
test eax, eax
cmovz ecx, r14d
cmovg ecx, eax
add r15, rcx
jmp short loc_46077
loc_460B4:
mov rcx, [rbp+var_38]
mov [rcx], r15
xor r14d, r14d
cmp r15, r12
jnb short loc_46105
loc_460C3:
mov rax, [r13+0B8h]
mov rdi, r13
mov rsi, rbx
mov rdx, r15
mov rcx, r12
call qword ptr [rax+38h]
test [rbp+var_2C], 7
jnz short loc_460E5
cmp byte ptr [r15], 5Fh ; '_'
jnz short loc_4610C
loc_460E5:
inc r14d
mov ecx, eax
neg ecx
test eax, eax
mov edx, 1
cmovz ecx, edx
cmovg ecx, eax
add r15, rcx
cmp r15, r12
jb short loc_460C3
xor edx, edx
jmp short loc_4610E
loc_46105:
mov rdi, r15
xor edx, edx
jmp short loc_46118
loc_4610C:
mov dl, 1
loc_4610E:
mov rcx, [rbp+var_38]
mov rdi, [rcx]
mov r14d, r14d
loc_46118:
mov rax, r15
sub rax, rdi
mov [rcx+8], eax
cmp byte ptr [rbp+var_30], 0
jz short loc_4616F
lea rcx, ft_min_word_len
cmp [rcx], r14
ja short loc_46150
lea rcx, ft_max_word_len
cmp [rcx], r14
jbe short loc_46150
mov esi, eax
mov r14, rdx
call is_stopword
mov rdx, r14
test eax, eax
jz short loc_4616F
loc_46150:
test dl, dl
mov r14d, 1
jnz loc_46077
loc_4615E:
xor eax, eax
loc_46160:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_4616F:
mov rax, [rbp+var_40]
mov [rax], r15
mov al, 1
jmp short loc_46160
| char maria_ft_simple_get_word(long long a1, _BYTE **a2, unsigned long long a3, _QWORD *a4, char a5)
{
_BYTE *v7; // r15
int v8; // eax
long long v9; // rcx
_QWORD *v10; // rcx
unsigned long long v11; // r14
int v12; // eax
long long v13; // rcx
char v14; // dl
_BYTE *v15; // rdi
char v16; // r14
int v17; // eax
_BYTE v21[44]; // [rsp+14h] [rbp-2Ch] BYREF
v7 = *a2;
while ( 1 )
{
while ( 1 )
{
if ( (unsigned long long)v7 >= a3 )
return 0;
v8 = (*(long long ( **)(long long, _BYTE *, _BYTE *, unsigned long long))(*(_QWORD *)(a1 + 184) + 56LL))(
a1,
v21,
v7,
a3);
if ( (v21[0] & 7) != 0 || *v7 == 95 )
break;
v9 = (unsigned int)-v8;
if ( !v8 )
v9 = 1LL;
if ( v8 > 0 )
v9 = (unsigned int)v8;
v7 += v9;
}
v10 = a4;
*a4 = v7;
v11 = 0LL;
if ( (unsigned long long)v7 >= a3 )
{
v15 = v7;
v14 = 0;
}
else
{
while ( 1 )
{
v12 = (*(long long ( **)(long long, _BYTE *, _BYTE *, unsigned long long))(*(_QWORD *)(a1 + 184) + 56LL))(
a1,
v21,
v7,
a3);
if ( (v21[0] & 7) == 0 && *v7 != 95 )
break;
LODWORD(v11) = v11 + 1;
v13 = (unsigned int)-v12;
if ( !v12 )
v13 = 1LL;
if ( v12 > 0 )
v13 = (unsigned int)v12;
v7 += v13;
if ( (unsigned long long)v7 >= a3 )
{
v14 = 0;
goto LABEL_21;
}
}
v14 = 1;
LABEL_21:
v10 = a4;
v15 = (_BYTE *)*a4;
v11 = (unsigned int)v11;
}
*((_DWORD *)v10 + 2) = (_DWORD)v7 - (_DWORD)v15;
if ( !a5 )
break;
if ( ft_min_word_len <= v11 && ft_max_word_len > v11 )
{
v16 = v14;
v17 = is_stopword(v15, (unsigned int)((_DWORD)v7 - (_DWORD)v15));
v14 = v16;
if ( !v17 )
break;
}
if ( !v14 )
return 0;
}
*a2 = v7;
return 1;
}
| maria_ft_simple_get_word:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV dword ptr [RBP + -0x30],R8D
MOV qword ptr [RBP + -0x38],RCX
MOV R12,RDX
MOV R13,RDI
MOV qword ptr [RBP + -0x40],RSI
MOV R15,qword ptr [RSI]
LEA RBX,[RBP + -0x2c]
MOV R14D,0x1
LAB_00146077:
CMP R15,R12
JNC 0x0014615e
MOV RAX,qword ptr [R13 + 0xb8]
MOV RDI,R13
MOV RSI,RBX
MOV RDX,R15
MOV RCX,R12
CALL qword ptr [RAX + 0x38]
TEST byte ptr [RBP + -0x2c],0x7
JNZ 0x001460b4
CMP byte ptr [R15],0x5f
JZ 0x001460b4
MOV ECX,EAX
NEG ECX
TEST EAX,EAX
CMOVZ ECX,R14D
CMOVG ECX,EAX
ADD R15,RCX
JMP 0x00146077
LAB_001460b4:
MOV RCX,qword ptr [RBP + -0x38]
MOV qword ptr [RCX],R15
XOR R14D,R14D
CMP R15,R12
JNC 0x00146105
LAB_001460c3:
MOV RAX,qword ptr [R13 + 0xb8]
MOV RDI,R13
MOV RSI,RBX
MOV RDX,R15
MOV RCX,R12
CALL qword ptr [RAX + 0x38]
TEST byte ptr [RBP + -0x2c],0x7
JNZ 0x001460e5
CMP byte ptr [R15],0x5f
JNZ 0x0014610c
LAB_001460e5:
INC R14D
MOV ECX,EAX
NEG ECX
TEST EAX,EAX
MOV EDX,0x1
CMOVZ ECX,EDX
CMOVG ECX,EAX
ADD R15,RCX
CMP R15,R12
JC 0x001460c3
XOR EDX,EDX
JMP 0x0014610e
LAB_00146105:
MOV RDI,R15
XOR EDX,EDX
JMP 0x00146118
LAB_0014610c:
MOV DL,0x1
LAB_0014610e:
MOV RCX,qword ptr [RBP + -0x38]
MOV RDI,qword ptr [RCX]
MOV R14D,R14D
LAB_00146118:
MOV RAX,R15
SUB RAX,RDI
MOV dword ptr [RCX + 0x8],EAX
CMP byte ptr [RBP + -0x30],0x0
JZ 0x0014616f
LEA RCX,[0x4841e0]
CMP qword ptr [RCX],R14
JA 0x00146150
LEA RCX,[0x4841e8]
CMP qword ptr [RCX],R14
JBE 0x00146150
MOV ESI,EAX
MOV R14,RDX
CALL 0x0017140d
MOV RDX,R14
TEST EAX,EAX
JZ 0x0014616f
LAB_00146150:
TEST DL,DL
MOV R14D,0x1
JNZ 0x00146077
LAB_0014615e:
XOR EAX,EAX
LAB_00146160:
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0014616f:
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RAX],R15
MOV AL,0x1
JMP 0x00146160
|
int8
maria_ft_simple_get_word
(long param_1,int8 *param_2,char *param_3,int8 *param_4,char param_5)
{
bool bVar1;
uint uVar2;
int iVar3;
ulong uVar4;
ulong uVar5;
uint uVar6;
char *pcVar7;
char *pcVar8;
byte local_34 [4];
pcVar7 = (char *)*param_2;
do {
while( true ) {
if (param_3 <= pcVar7) {
return 0;
}
uVar2 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x38))(param_1,local_34,pcVar7,param_3);
if (((local_34[0] & 7) != 0) || (*pcVar7 == '_')) break;
uVar4 = (ulong)-uVar2;
if (uVar2 == 0) {
uVar4 = 1;
}
if (0 < (int)uVar2) {
uVar4 = (ulong)uVar2;
}
pcVar7 = pcVar7 + uVar4;
}
*param_4 = pcVar7;
uVar4 = 0;
if (pcVar7 < param_3) {
do {
uVar6 = (uint)uVar4;
uVar2 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x38))(param_1,local_34,pcVar7,param_3);
if (((local_34[0] & 7) == 0) && (*pcVar7 != '_')) {
bVar1 = true;
pcVar8 = pcVar7;
goto LAB_0014610e;
}
uVar6 = uVar6 + 1;
uVar4 = (ulong)uVar6;
uVar5 = (ulong)-uVar2;
if (uVar2 == 0) {
uVar5 = 1;
}
if (0 < (int)uVar2) {
uVar5 = (ulong)uVar2;
}
pcVar7 = pcVar7 + uVar5;
} while (pcVar7 < param_3);
bVar1 = false;
pcVar8 = pcVar7;
LAB_0014610e:
pcVar7 = (char *)*param_4;
uVar4 = (ulong)uVar6;
}
else {
bVar1 = false;
pcVar8 = pcVar7;
}
*(int *)(param_4 + 1) = (int)((long)pcVar8 - (long)pcVar7);
if ((param_5 == '\0') ||
(((ft_min_word_len <= uVar4 && (uVar4 < ft_max_word_len)) &&
(iVar3 = is_stopword(pcVar7,(long)pcVar8 - (long)pcVar7 & 0xffffffff), iVar3 == 0)))) {
*param_2 = pcVar8;
return 1;
}
pcVar7 = pcVar8;
if (!bVar1) {
return 0;
}
} while( true );
}
| |
30,337 | Field::GetDataBinary() const | SylCore-WoTLK/src/server/database/Database/Field.cpp | Binary Field::GetDataBinary() const
{
Binary result = {};
if (!data.value || !data.length)
return result;
#ifdef ACORE_STRICT_DATABASE_TYPE_CHECKS
if (!IsCorrectFieldType<Binary>(meta->Type))
{
LogWrongType(__FUNCTION__, "Binary");
return {};
}
#endif
result.resize(data.length);
memcpy(result.data(), data.value, data.length);
return result;
} | O3 | cpp | Field::GetDataBinary() const:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
cmpq $0x0, (%rsi)
je 0x6350b
movq %rsi, %r14
movl 0x8(%rsi), %esi
testq %rsi, %rsi
je 0x6350b
movq %rbx, %rdi
callq 0x34d56
movq (%rbx), %rdi
movq (%r14), %rsi
movl 0x8(%r14), %edx
callq 0x1b0f0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x6352d
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0xd32e8
movq %r14, %rdi
callq 0x1bba0
| _ZNK5Field13GetDataBinaryEv:
push r14
push rbx
push rax
mov rbx, rdi
xorps xmm0, xmm0
movups xmmword ptr [rdi], xmm0
mov qword ptr [rdi+10h], 0
cmp qword ptr [rsi], 0
jz short loc_6350B
mov r14, rsi
mov esi, [rsi+8]
test rsi, rsi
jz short loc_6350B
mov rdi, rbx
call _ZNSt6vectorIhSaIhEE6resizeEm; std::vector<uchar>::resize(ulong)
mov rdi, [rbx]
mov rsi, [r14]
mov edx, [r14+8]
call _memcpy
loc_6350B:
mov rax, rbx
add rsp, 8
pop rbx
pop r14
retn
mov r14, rax
mov rdi, [rbx]; void *
test rdi, rdi
jz short loc_6352D
mov rsi, [rbx+10h]
sub rsi, rdi; unsigned __int64
call _ZdlPvm; operator delete(void *,ulong)
loc_6352D:
mov rdi, r14
call __Unwind_Resume
| Field * Field::GetDataBinary(Field *this, long long a2)
{
unsigned long long v2; // rsi
*(_OWORD *)this = 0LL;
*((_QWORD *)this + 2) = 0LL;
if ( *(_QWORD *)a2 )
{
v2 = *(unsigned int *)(a2 + 8);
if ( v2 )
{
std::vector<unsigned char>::resize(this, v2);
memcpy(*(_QWORD *)this);
}
}
return this;
}
| GetDataBinary:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI],XMM0
MOV qword ptr [RDI + 0x10],0x0
CMP qword ptr [RSI],0x0
JZ 0x0016350b
MOV R14,RSI
MOV ESI,dword ptr [RSI + 0x8]
TEST RSI,RSI
JZ 0x0016350b
LAB_001634f4:
MOV RDI,RBX
CALL 0x00134d56
LAB_001634fc:
MOV RDI,qword ptr [RBX]
MOV RSI,qword ptr [R14]
MOV EDX,dword ptr [R14 + 0x8]
CALL 0x0011b0f0
LAB_0016350b:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* Field::GetDataBinary() const */
void Field::GetDataBinary(void)
{
long *in_RSI;
vector<unsigned_char,std::allocator<unsigned_char>> *in_RDI;
*(int8 *)in_RDI = 0;
*(int8 *)(in_RDI + 8) = 0;
*(int8 *)(in_RDI + 0x10) = 0;
if ((*in_RSI != 0) && ((ulong)*(uint *)(in_RSI + 1) != 0)) {
/* try { // try from 001634f4 to 001634fb has its CatchHandler @ 00163516 */
std::vector<unsigned_char,std::allocator<unsigned_char>>::resize
(in_RDI,(ulong)*(uint *)(in_RSI + 1));
memcpy(*(void **)in_RDI,(void *)*in_RSI,(ulong)*(uint *)(in_RSI + 1));
}
return;
}
| |
30,338 | spdlog::details::os::filesize(_IO_FILE*) | AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/details/os-inl.h | SPDLOG_INLINE size_t filesize(FILE *f) {
if (f == nullptr) {
throw_spdlog_ex("Failed getting file size. fd is null");
}
#if defined(_WIN32) && !defined(__CYGWIN__)
int fd = ::_fileno(f);
#if defined(_WIN64) // 64 bits
__int64 ret = ::_filelengthi64(fd);
if (ret >= 0) {
return static_cast<size_t>(ret);
}
#else // windows 32 bits
long ret = ::_filelength(fd);
if (ret >= 0) {
return static_cast<size_t>(ret);
}
#endif
#else // unix
// OpenBSD and AIX doesn't compile with :: before the fileno(..)
#if defined(__OpenBSD__) || defined(_AIX)
int fd = fileno(f);
#else
int fd = ::fileno(f);
#endif
// 64 bits(but not in osx, linux/musl or cygwin, where fstat64 is deprecated)
#if ((defined(__linux__) && defined(__GLIBC__)) || defined(__sun) || defined(_AIX)) && \
(defined(__LP64__) || defined(_LP64))
struct stat64 st;
if (::fstat64(fd, &st) == 0) {
return static_cast<size_t>(st.st_size);
}
#else // other unix or linux 32 bits or cygwin
struct stat st;
if (::fstat(fd, &st) == 0) {
return static_cast<size_t>(st.st_size);
}
#endif
#endif
throw_spdlog_ex("Failed getting file size from fd", errno);
return 0; // will not be reached.
} | O0 | c | spdlog::details::os::filesize(_IO_FILE*):
subq $0x108, %rsp # imm = 0x108
movq %rdi, 0x100(%rsp)
cmpq $0x0, 0x100(%rsp)
jne 0x3b043
leaq 0xdf(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x16d00
movq 0x8(%rsp), %rdx
leaq 0xdc4d1(%rip), %rsi # 0x1174ad
leaq 0xe0(%rsp), %rdi
callq 0x1dbb0
jmp 0x3afeb
leaq 0xe0(%rsp), %rdi
callq 0x39f60
jmp 0x3affa
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
jmp 0x3b031
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
leaq 0xe0(%rsp), %rdi
callq 0x1dfd0
leaq 0xdf(%rsp), %rdi
callq 0x16790
jmp 0x3b0f0
movq 0x100(%rsp), %rdi
callq 0x16770
movl %eax, 0xc8(%rsp)
movl 0xc8(%rsp), %edi
leaq 0x38(%rsp), %rsi
callq 0x16d50
cmpl $0x0, %eax
jne 0x3b07a
movq 0x68(%rsp), %rax
addq $0x108, %rsp # imm = 0x108
retq
leaq 0x17(%rsp), %rdi
movq %rdi, (%rsp)
callq 0x16d00
movq (%rsp), %rdx
leaq 0xdc43f(%rip), %rsi # 0x1174d2
leaq 0x18(%rsp), %rdi
callq 0x1dbb0
jmp 0x3b09f
callq 0x16050
movl (%rax), %esi
leaq 0x18(%rsp), %rdi
callq 0x39ef0
jmp 0x3b0b2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
jmp 0x3b0e6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
leaq 0x18(%rsp), %rdi
callq 0x1dfd0
leaq 0x17(%rsp), %rdi
callq 0x16790
movq 0xd0(%rsp), %rdi
callq 0x16cf0
nopl (%rax)
| _ZN6spdlog7details2os8filesizeEP8_IO_FILE:
sub rsp, 108h
mov [rsp+108h+var_8], rdi
cmp [rsp+108h+var_8], 0
jnz loc_3B043
lea rdi, [rsp+108h+var_29]
mov qword ptr [rsp+108h+var_100], rdi; int
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, qword ptr [rsp+108h+var_100]
lea rsi, aFailedGettingF; "Failed getting file size. fd is null"
lea rdi, [rsp+108h+var_29+1]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_3AFEB:
lea rdi, [rsp+108h+var_29+1]; int
call _ZN6spdlog15throw_spdlog_exENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; spdlog::throw_spdlog_ex(std::string)
jmp short $+2
loc_3AFFA:
mov rcx, rax
mov eax, edx
mov [rsp+108h+var_38], rcx
mov [rsp+108h+var_3C], eax
jmp short loc_3B031
mov rcx, rax
mov eax, edx
mov [rsp+108h+var_38], rcx
mov [rsp+108h+var_3C], eax
lea rdi, [rsp+108h+var_29+1]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_3B031:
lea rdi, [rsp+108h+var_29]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_3B0F0
loc_3B043:
mov rdi, [rsp+108h+var_8]
call _fileno
mov [rsp+108h+var_40], eax
mov edi, [rsp+108h+var_40]
lea rsi, [rsp+108h+var_D0]
call _fstat64
cmp eax, 0
jnz short loc_3B07A
mov rax, [rsp+108h+var_A0]
add rsp, 108h
retn
loc_3B07A:
lea rdi, [rsp+108h+var_F1]
mov [rsp+108h+var_108], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, [rsp+108h+var_108]
lea rsi, aFailedGettingF_0; "Failed getting file size from fd"
lea rdi, [rsp+108h+var_F0]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_3B09F:
call ___errno_location
mov esi, [rax]
lea rdi, [rsp+108h+var_F0]; int
call _ZN6spdlog15throw_spdlog_exERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; spdlog::throw_spdlog_ex(std::string const&,int)
jmp short $+2
loc_3B0B2:
mov rcx, rax
mov eax, edx
mov [rsp+108h+var_38], rcx
mov [rsp+108h+var_3C], eax
jmp short loc_3B0E6
mov rcx, rax
mov eax, edx
mov [rsp+108h+var_38], rcx
mov [rsp+108h+var_3C], eax
lea rdi, [rsp+108h+var_F0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_3B0E6:
lea rdi, [rsp+108h+var_F1]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
loc_3B0F0:
mov rdi, [rsp+108h+var_38]
call __Unwind_Resume
| long long spdlog::details::os::filesize(long long a1)
{
int v1; // edx
int v2; // ecx
int v3; // r8d
int v4; // r9d
unsigned int *v6; // rax
void *v7; // [rsp+0h] [rbp-108h]
int v8; // [rsp+10h] [rbp-F8h]
char v9; // [rsp+17h] [rbp-F1h] BYREF
int v10; // [rsp+18h] [rbp-F0h] BYREF
long long v11; // [rsp+20h] [rbp-E8h]
char v12; // [rsp+28h] [rbp-E0h]
_BYTE v13[48]; // [rsp+38h] [rbp-D0h] BYREF
long long v14; // [rsp+68h] [rbp-A0h]
unsigned int v15; // [rsp+C8h] [rbp-40h]
int v16[8]; // [rsp+DFh] [rbp-29h] BYREF
long long v17; // [rsp+100h] [rbp-8h]
v17 = a1;
if ( !a1 )
{
std::allocator<char>::allocator();
std::string::basic_string<std::allocator<char>>(
(long long)v16 + 1,
(long long)"Failed getting file size. fd is null",
(long long)v16);
spdlog::throw_spdlog_ex(
(long long)v16 + 1,
(int)"Failed getting file size. fd is null",
v1,
v2,
v3,
v4,
v7,
(int)v16,
v8,
v10,
v11,
v12);
}
v15 = fileno(v17);
if ( (unsigned int)fstat64(v15, v13) )
{
std::allocator<char>::allocator();
std::string::basic_string<std::allocator<char>>(
(long long)&v10,
(long long)"Failed getting file size from fd",
(long long)&v9);
v6 = (unsigned int *)__errno_location();
spdlog::throw_spdlog_ex((long long)&v10, *v6);
}
return v14;
}
| filesize:
SUB RSP,0x108
MOV qword ptr [RSP + 0x100],RDI
CMP qword ptr [RSP + 0x100],0x0
JNZ 0x0013b043
LEA RDI,[RSP + 0xdf]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x00116d00
MOV RDX,qword ptr [RSP + 0x8]
LAB_0013afd5:
LEA RSI,[0x2174ad]
LEA RDI,[RSP + 0xe0]
CALL 0x0011dbb0
JMP 0x0013afeb
LAB_0013afeb:
LEA RDI,[RSP + 0xe0]
CALL 0x00139f60
JMP 0x0013affa
LAB_0013affa:
MOV RCX,RAX
MOV EAX,EDX
MOV qword ptr [RSP + 0xd0],RCX
MOV dword ptr [RSP + 0xcc],EAX
JMP 0x0013b031
LAB_0013b031:
LEA RDI,[RSP + 0xdf]
CALL 0x00116790
JMP 0x0013b0f0
LAB_0013b043:
MOV RDI,qword ptr [RSP + 0x100]
CALL 0x00116770
MOV dword ptr [RSP + 0xc8],EAX
MOV EDI,dword ptr [RSP + 0xc8]
LEA RSI,[RSP + 0x38]
CALL 0x00116d50
CMP EAX,0x0
JNZ 0x0013b07a
MOV RAX,qword ptr [RSP + 0x68]
ADD RSP,0x108
RET
LAB_0013b07a:
LEA RDI,[RSP + 0x17]
MOV qword ptr [RSP],RDI
CALL 0x00116d00
MOV RDX,qword ptr [RSP]
LAB_0013b08c:
LEA RSI,[0x2174d2]
LEA RDI,[RSP + 0x18]
CALL 0x0011dbb0
JMP 0x0013b09f
LAB_0013b09f:
CALL 0x00116050
MOV ESI,dword ptr [RAX]
LAB_0013b0a6:
LEA RDI,[RSP + 0x18]
CALL 0x00139ef0
LAB_0013b0b0:
JMP 0x0013b0b2
LAB_0013b0b2:
MOV RCX,RAX
MOV EAX,EDX
MOV qword ptr [RSP + 0xd0],RCX
MOV dword ptr [RSP + 0xcc],EAX
JMP 0x0013b0e6
LAB_0013b0e6:
LEA RDI,[RSP + 0x17]
CALL 0x00116790
LAB_0013b0f0:
MOV RDI,qword ptr [RSP + 0xd0]
CALL 0x00116cf0
|
/* spdlog::details::os::filesize(_IO_FILE*) */
__off_t spdlog::details::os::filesize(_IO_FILE *param_1)
{
int iVar1;
int *piVar2;
int1 auVar3 [12];
allocator local_f1;
string local_f0 [32];
stat64 local_d0;
int local_40;
int4 local_3c;
int8 local_38;
allocator local_29;
string local_28 [32];
_IO_FILE *local_8;
local_8 = param_1;
if (param_1 == (_IO_FILE *)0x0) {
std::allocator<char>::allocator();
/* try { // try from 0013afd5 to 0013afe8 has its CatchHandler @ 0013affa */
std::__cxx11::string::string<std::allocator<char>>
(local_28,"Failed getting file size. fd is null",&local_29);
/* try { // try from 0013afeb to 0013aff7 has its CatchHandler @ 0013b010 */
auVar3 = throw_spdlog_ex(local_28);
local_3c = auVar3._8_4_;
local_38 = auVar3._0_8_;
/* catch() { ... } // from try @ 0013afd5 with catch @ 0013affa */
std::allocator<char>::~allocator((allocator<char> *)&local_29);
}
else {
local_40 = fileno(param_1);
iVar1 = fstat64(local_40,&local_d0);
if (iVar1 == 0) {
return local_d0.st_size;
}
std::allocator<char>::allocator();
/* try { // try from 0013b08c to 0013b09c has its CatchHandler @ 0013b0b2 */
std::__cxx11::string::string<std::allocator<char>>
(local_f0,"Failed getting file size from fd",&local_f1);
piVar2 = __errno_location();
/* try { // try from 0013b0a6 to 0013b0af has its CatchHandler @ 0013b0c8 */
auVar3 = throw_spdlog_ex(local_f0,*piVar2);
local_3c = auVar3._8_4_;
local_38 = auVar3._0_8_;
/* catch() { ... } // from try @ 0013b08c with catch @ 0013b0b2 */
std::allocator<char>::~allocator((allocator<char> *)&local_f1);
}
/* WARNING: Subroutine does not return */
_Unwind_Resume(local_38);
}
| |
30,339 | inline_mysql_file_pread | eloqsql/include/mysql/psi/mysql_file.h | static inline size_t
inline_mysql_file_pread(
#ifdef HAVE_PSI_FILE_INTERFACE
const char *src_file, uint src_line,
#endif
File file, uchar *buffer, size_t count, my_off_t offset, myf flags)
{
size_t result;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
size_t bytes_read;
locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_READ);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_wait)(locker, count, src_file, src_line);
result= my_pread(file, buffer, count, offset, flags);
if (flags & (MY_NABP | MY_FNABP))
bytes_read= (result == 0) ? count : 0;
else
bytes_read= (result != MY_FILE_ERROR) ? result : 0;
PSI_FILE_CALL(end_file_wait)(locker, bytes_read);
return result;
}
#endif
result= my_pread(file, buffer, count, offset, flags);
return result;
} | O0 | c | inline_mysql_file_pread:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
leaq 0x20eed4(%rip), %rax # 0x2c75a0
movq (%rax), %rax
movq 0x158(%rax), %rax
movl -0x18(%rbp), %esi
leaq -0x88(%rbp), %rdi
movl $0x6, %edx
callq *%rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0xb87df
leaq 0x20ee8a(%rip), %rax # 0x2c75a0
movq (%rax), %rax
movq 0x210(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x10(%rbp), %rdx
movl -0x14(%rbp), %ecx
callq *%rax
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq 0x10(%rbp), %r8
callq 0xfa750
movq %rax, -0x38(%rbp)
movq 0x10(%rbp), %rax
andq $0x6, %rax
cmpq $0x0, %rax
je 0xb878a
cmpq $0x0, -0x38(%rbp)
jne 0xb876f
movq -0x28(%rbp), %rax
movq %rax, -0x98(%rbp)
jmp 0xb877a
xorl %eax, %eax
movq %rax, -0x98(%rbp)
jmp 0xb877a
movq -0x98(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0xb87b7
cmpq $-0x1, -0x38(%rbp)
je 0xb879e
movq -0x38(%rbp), %rax
movq %rax, -0xa0(%rbp)
jmp 0xb87a9
xorl %eax, %eax
movq %rax, -0xa0(%rbp)
jmp 0xb87a9
movq -0xa0(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq 0x20ede2(%rip), %rax # 0x2c75a0
movq (%rax), %rax
movq 0x218(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x90(%rbp), %rsi
callq *%rax
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xb8803
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq 0x10(%rbp), %r8
callq 0xfa750
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xa0, %rsp
popq %rbp
retq
| inline_mysql_file_pread_7:
push rbp
mov rbp, rsp
sub rsp, 0A0h
mov rax, [rbp+arg_0]
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+158h]
mov esi, [rbp+var_18]
lea rdi, [rbp+var_88]
mov edx, 6
call rax
mov [rbp+var_40], rax
cmp [rbp+var_40], 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 loc_B87DF
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+210h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_10]
mov ecx, [rbp+var_14]
call rax
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
mov rcx, [rbp+var_30]
mov r8, [rbp+arg_0]
call my_pread
mov [rbp+var_38], rax
mov rax, [rbp+arg_0]
and rax, 6
cmp rax, 0
jz short loc_B878A
cmp [rbp+var_38], 0
jnz short loc_B876F
mov rax, [rbp+var_28]
mov [rbp+var_98], rax
jmp short loc_B877A
loc_B876F:
xor eax, eax
mov [rbp+var_98], rax
jmp short $+2
loc_B877A:
mov rax, [rbp+var_98]
mov [rbp+var_90], rax
jmp short loc_B87B7
loc_B878A:
cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh
jz short loc_B879E
mov rax, [rbp+var_38]
mov [rbp+var_A0], rax
jmp short loc_B87A9
loc_B879E:
xor eax, eax
mov [rbp+var_A0], rax
jmp short $+2
loc_B87A9:
mov rax, [rbp+var_A0]
mov [rbp+var_90], rax
loc_B87B7:
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+218h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_90]
call rax
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
jmp short loc_B8803
loc_B87DF:
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
mov rcx, [rbp+var_30]
mov r8, [rbp+arg_0]
call my_pread
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
loc_B8803:
mov rax, [rbp+var_8]
add rsp, 0A0h
pop rbp
retn
| long long inline_mysql_file_pread_7(
long long a1,
unsigned int a2,
unsigned int a3,
long long a4,
long long a5,
long long a6,
long long a7)
{
long long v8; // [rsp+0h] [rbp-A0h]
long long v9; // [rsp+8h] [rbp-98h]
_BYTE v10[72]; // [rsp+18h] [rbp-88h] BYREF
long long v11; // [rsp+60h] [rbp-40h]
long long v12; // [rsp+68h] [rbp-38h]
long long v13; // [rsp+70h] [rbp-30h]
long long v14; // [rsp+78h] [rbp-28h]
long long v15; // [rsp+80h] [rbp-20h]
unsigned int v16; // [rsp+88h] [rbp-18h]
unsigned int v17; // [rsp+8Ch] [rbp-14h]
long long v18; // [rsp+90h] [rbp-10h]
v18 = a1;
v17 = a2;
v16 = a3;
v15 = a4;
v14 = a5;
v13 = a6;
v11 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v10, a3, 6LL);
if ( v11 )
{
((void ( *)(long long, long long, long long, _QWORD))PSI_server[66])(v11, v14, v18, v17);
v12 = my_pread(v16, v15, v14, v13, a7);
if ( (a7 & 6) != 0 )
{
if ( v12 )
v9 = 0LL;
else
v9 = v14;
((void ( *)(long long, long long))PSI_server[67])(v11, v9);
}
else
{
if ( v12 == -1 )
v8 = 0LL;
else
v8 = v12;
((void ( *)(long long, long long))PSI_server[67])(v11, v8);
}
return v12;
}
else
{
return my_pread(v16, v15, v14, v13, a7);
}
}
| inline_mysql_file_pread:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xa0
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
LEA RAX,[0x3c75a0]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x158]
MOV ESI,dword ptr [RBP + -0x18]
LEA RDI,[RBP + -0x88]
MOV EDX,0x6
CALL RAX
MOV qword ptr [RBP + -0x40],RAX
CMP qword ptr [RBP + -0x40],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 0x001b87df
LEA RAX,[0x3c75a0]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x210]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x14]
CALL RAX
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x30]
MOV R8,qword ptr [RBP + 0x10]
CALL 0x001fa750
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + 0x10]
AND RAX,0x6
CMP RAX,0x0
JZ 0x001b878a
CMP qword ptr [RBP + -0x38],0x0
JNZ 0x001b876f
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x98],RAX
JMP 0x001b877a
LAB_001b876f:
XOR EAX,EAX
MOV qword ptr [RBP + -0x98],RAX
JMP 0x001b877a
LAB_001b877a:
MOV RAX,qword ptr [RBP + -0x98]
MOV qword ptr [RBP + -0x90],RAX
JMP 0x001b87b7
LAB_001b878a:
CMP qword ptr [RBP + -0x38],-0x1
JZ 0x001b879e
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x001b87a9
LAB_001b879e:
XOR EAX,EAX
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x001b87a9
LAB_001b87a9:
MOV RAX,qword ptr [RBP + -0xa0]
MOV qword ptr [RBP + -0x90],RAX
LAB_001b87b7:
LEA RAX,[0x3c75a0]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x218]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x90]
CALL RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001b8803
LAB_001b87df:
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x30]
MOV R8,qword ptr [RBP + 0x10]
CALL 0x001fa750
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
LAB_001b8803:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0xa0
POP RBP
RET
|
long inline_mysql_file_pread
(int8 param_1,int4 param_2,int4 param_3,int8 param_4,
long param_5,int8 param_6,ulong param_7)
{
long local_a8;
long local_a0;
long local_98;
int1 local_90 [72];
long local_48;
long local_40;
int8 local_38;
long local_30;
int8 local_28;
int4 local_20;
int4 local_1c;
int8 local_18;
long local_10;
local_38 = param_6;
local_30 = param_5;
local_28 = param_4;
local_20 = param_3;
local_1c = param_2;
local_18 = param_1;
local_48 = (**(code **)(PSI_server + 0x158))(local_90,param_3,6);
if (local_48 == 0) {
local_10 = my_pread(local_20,local_28,local_30,local_38,param_7);
}
else {
(**(code **)(PSI_server + 0x210))(local_48,local_30,local_18,local_1c);
local_40 = my_pread(local_20,local_28,local_30,local_38,param_7);
if ((param_7 & 6) == 0) {
local_a8 = local_40;
if (local_40 == -1) {
local_a8 = 0;
}
local_98 = local_a8;
}
else {
if (local_40 == 0) {
local_a0 = local_30;
}
else {
local_a0 = 0;
}
local_98 = local_a0;
}
(**(code **)(PSI_server + 0x218))(local_48,local_98);
local_10 = local_40;
}
return local_10;
}
| |
30,340 | inline_mysql_file_pread | eloqsql/include/mysql/psi/mysql_file.h | static inline size_t
inline_mysql_file_pread(
#ifdef HAVE_PSI_FILE_INTERFACE
const char *src_file, uint src_line,
#endif
File file, uchar *buffer, size_t count, my_off_t offset, myf flags)
{
size_t result;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
size_t bytes_read;
locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_READ);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_wait)(locker, count, src_file, src_line);
result= my_pread(file, buffer, count, offset, flags);
if (flags & (MY_NABP | MY_FNABP))
bytes_read= (result == 0) ? count : 0;
else
bytes_read= (result != MY_FILE_ERROR) ? result : 0;
PSI_FILE_CALL(end_file_wait)(locker, bytes_read);
return result;
}
#endif
result= my_pread(file, buffer, count, offset, flags);
return result;
} | O3 | c | inline_mysql_file_pread:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %r15d
movl %edi, %r13d
leaq 0x320805(%rip), %rax # 0x38c3c8
movq (%rax), %rax
leaq -0x70(%rbp), %rdi
movl $0x6, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x6bc05
movl $0x4, %r8d
movl %r15d, %edi
movq %r14, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0xa4f3c
movq %rax, %r14
movq %r14, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r12
leaq 0x3207b9(%rip), %rax # 0x38c3c8
movq (%rax), %rax
leaq 0x72d89(%rip), %rdx # 0xde9a2
movq %r12, %rdi
movq %rbx, %rsi
movl %r13d, %ecx
callq *0x210(%rax)
xorl %r13d, %r13d
movl $0x4, %r8d
movl %r15d, %edi
movq %r14, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0xa4f3c
movq %rax, %r14
testq %rax, %rax
cmoveq %rbx, %r13
leaq 0x320776(%rip), %rax # 0x38c3c8
movq (%rax), %rax
movq %r12, %rdi
movq %r13, %rsi
callq *0x218(%rax)
jmp 0x6bbf3
| inline_mysql_file_pread_1:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov rbx, rcx
mov r14, rdx
mov r15d, esi
mov r13d, edi
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_70]
mov edx, 6
call qword ptr [rax+158h]
test rax, rax
jnz short loc_6BC05
mov r8d, 4
mov edi, r15d
mov rsi, r14
mov rdx, rbx
xor ecx, ecx
call my_pread
mov r14, rax
loc_6BBF3:
mov rax, r14
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_6BC05:
mov r12, rax
lea rax, PSI_server
mov rax, [rax]
lea rdx, aWorkspaceLlm4b_11; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, r12
mov rsi, rbx
mov ecx, r13d
call qword ptr [rax+210h]
xor r13d, r13d
mov r8d, 4
mov edi, r15d
mov rsi, r14
mov rdx, rbx
xor ecx, ecx
call my_pread
mov r14, rax
test rax, rax
cmovz r13, rbx
lea rax, PSI_server
mov rax, [rax]
mov rdi, r12
mov rsi, r13
call qword ptr [rax+218h]
jmp short loc_6BBF3
| long long inline_mysql_file_pread_1(unsigned int a1, long long a2, long long a3, long long a4)
{
long long v6; // rax
long long v7; // r14
long long v9; // r12
long long v10; // r13
_BYTE v11[112]; // [rsp+0h] [rbp-70h] BYREF
v6 = ((long long ( *)(_BYTE *, long long, long long))PSI_server[43])(v11, a2, 6LL);
if ( !v6 )
return my_pread((unsigned int)a2, a3, a4, 0LL, 4LL);
v9 = v6;
((void ( *)(long long, long long, const char *, _QWORD))PSI_server[66])(
v6,
a4,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_open.c",
a1);
v10 = 0LL;
v7 = my_pread((unsigned int)a2, a3, a4, 0LL, 4LL);
if ( !v7 )
v10 = a4;
((void ( *)(long long, long long))PSI_server[67])(v9, v10);
return v7;
}
| inline_mysql_file_pread:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV RBX,RCX
MOV R14,RDX
MOV R15D,ESI
MOV R13D,EDI
LEA RAX,[0x48c3c8]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0x70]
MOV EDX,0x6
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x0016bc05
MOV R8D,0x4
MOV EDI,R15D
MOV RSI,R14
MOV RDX,RBX
XOR ECX,ECX
CALL 0x001a4f3c
MOV R14,RAX
LAB_0016bbf3:
MOV RAX,R14
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0016bc05:
MOV R12,RAX
LEA RAX,[0x48c3c8]
MOV RAX,qword ptr [RAX]
LEA RDX,[0x1de9a2]
MOV RDI,R12
MOV RSI,RBX
MOV ECX,R13D
CALL qword ptr [RAX + 0x210]
XOR R13D,R13D
MOV R8D,0x4
MOV EDI,R15D
MOV RSI,R14
MOV RDX,RBX
XOR ECX,ECX
CALL 0x001a4f3c
MOV R14,RAX
TEST RAX,RAX
CMOVZ R13,RBX
LEA RAX,[0x48c3c8]
MOV RAX,qword ptr [RAX]
MOV RDI,R12
MOV RSI,R13
CALL qword ptr [RAX + 0x218]
JMP 0x0016bbf3
|
long inline_mysql_file_pread(int4 param_1,ulong param_2,int8 param_3,int8 param_4)
{
long lVar1;
long lVar2;
int8 uVar3;
int1 local_78 [72];
lVar1 = (**(code **)(PSI_server + 0x158))(local_78,param_2,6);
if (lVar1 == 0) {
lVar2 = my_pread(param_2 & 0xffffffff,param_3,param_4,0,4);
}
else {
(**(code **)(PSI_server + 0x210))
(lVar1,param_4,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_open.c",
param_1);
lVar2 = my_pread(param_2 & 0xffffffff,param_3,param_4,0,4);
uVar3 = 0;
if (lVar2 == 0) {
uVar3 = param_4;
}
(**(code **)(PSI_server + 0x218))(lVar1,uVar3);
}
return lVar2;
}
| |
30,341 | ftxui::animation::easing::BackInOut(float) | Andrewchistyakov[P]flashcards_lyc/build_O2/_deps/ftxui-src/src/ftxui/component/animation.cpp | float BackInOut(float p) {
if (p < 0.5f) {
const float f = 2.f * p;
return 0.5f * (f * f * f - f * std::sin(f * kPi));
}
const float f = (1.f - (2.f * p - 1.f));
return 0.5f * (1.f - (f * f * f - f * std::sin(f * kPi))) + 0.5f;
} | O2 | cpp | ftxui::animation::easing::BackInOut(float):
pushq %rax
movaps %xmm0, %xmm1
movss 0x5070(%rip), %xmm0 # 0x32e90
ucomiss %xmm1, %xmm0
jbe 0x2de70
addss %xmm1, %xmm1
movss %xmm1, (%rsp)
movaps %xmm1, %xmm0
mulss %xmm1, %xmm0
movss %xmm0, 0x4(%rsp)
movss 0x75f5(%rip), %xmm0 # 0x35438
mulss %xmm1, %xmm0
callq 0xc3a0
movss (%rsp), %xmm2
mulss %xmm2, %xmm0
movss 0x4(%rsp), %xmm1
mulss %xmm2, %xmm1
subss %xmm0, %xmm1
mulss 0x5025(%rip), %xmm1 # 0x32e90
movaps %xmm1, %xmm0
popq %rax
retq
addss %xmm1, %xmm1
addss 0x75a8(%rip), %xmm1 # 0x35424
movss 0x5004(%rip), %xmm2 # 0x32e88
subss %xmm1, %xmm2
movss %xmm2, (%rsp)
movaps %xmm2, %xmm0
mulss %xmm2, %xmm0
movss %xmm0, 0x4(%rsp)
movss 0x7596(%rip), %xmm0 # 0x35438
mulss %xmm2, %xmm0
callq 0xc3a0
movss (%rsp), %xmm2
mulss %xmm2, %xmm0
movss 0x4(%rsp), %xmm1
mulss %xmm2, %xmm1
subss %xmm0, %xmm1
movss 0x4fbe(%rip), %xmm0 # 0x32e88
subss %xmm1, %xmm0
movss 0x4fba(%rip), %xmm1 # 0x32e90
mulss %xmm1, %xmm0
addss %xmm1, %xmm0
popq %rax
retq
| _ZN5ftxui9animation6easing9BackInOutEf:
push rax
movaps xmm1, xmm0
movss xmm0, cs:dword_32E90
ucomiss xmm0, xmm1
jbe short loc_2DE70
addss xmm1, xmm1
movss [rsp+8+var_8], xmm1
movaps xmm0, xmm1
mulss xmm0, xmm1
movss [rsp+8+var_4], xmm0
movss xmm0, cs:dword_35438
mulss xmm0, xmm1
call _sinf
movss xmm2, [rsp+8+var_8]
mulss xmm0, xmm2
movss xmm1, [rsp+8+var_4]
mulss xmm1, xmm2
subss xmm1, xmm0
mulss xmm1, cs:dword_32E90
movaps xmm0, xmm1
pop rax
retn
loc_2DE70:
addss xmm1, xmm1
addss xmm1, cs:dword_35424
movss xmm2, cs:dword_32E88
subss xmm2, xmm1
movss [rsp+8+var_8], xmm2
movaps xmm0, xmm2
mulss xmm0, xmm2
movss [rsp+8+var_4], xmm0
movss xmm0, cs:dword_35438
mulss xmm0, xmm2
call _sinf
movss xmm2, [rsp+8+var_8]
mulss xmm0, xmm2
movss xmm1, [rsp+8+var_4]
mulss xmm1, xmm2
subss xmm1, xmm0
movss xmm0, cs:dword_32E88
subss xmm0, xmm1
movss xmm1, cs:dword_32E90
mulss xmm0, xmm1
addss xmm0, xmm1
pop rax
retn
| long long ftxui::animation::easing::BackInOut(ftxui::animation::easing *this, float a2)
{
long long v3; // [rsp+0h] [rbp-8h]
if ( a2 >= 0.5 )
{
*(float *)&v3 = 1.0 - (float)((float)(a2 + a2) + -1.0);
*((float *)&v3 + 1) = *(float *)&v3 * *(float *)&v3;
sinf(this, 3.1415927 * *(float *)&v3);
}
else
{
*(float *)&v3 = a2 + a2;
*((float *)&v3 + 1) = *(float *)&v3 * *(float *)&v3;
sinf(this, 3.1415927 * (float)(a2 + a2));
}
return v3;
}
| BackInOut:
PUSH RAX
MOVAPS XMM1,XMM0
MOVSS XMM0,dword ptr [0x00132e90]
UCOMISS XMM0,XMM1
JBE 0x0012de70
ADDSS XMM1,XMM1
MOVSS dword ptr [RSP],XMM1
MOVAPS XMM0,XMM1
MULSS XMM0,XMM1
MOVSS dword ptr [RSP + 0x4],XMM0
MOVSS XMM0,dword ptr [0x00135438]
MULSS XMM0,XMM1
CALL 0x0010c3a0
MOVSS XMM2,dword ptr [RSP]
MULSS XMM0,XMM2
MOVSS XMM1,dword ptr [RSP + 0x4]
MULSS XMM1,XMM2
SUBSS XMM1,XMM0
MULSS XMM1,dword ptr [0x00132e90]
MOVAPS XMM0,XMM1
POP RAX
RET
LAB_0012de70:
ADDSS XMM1,XMM1
ADDSS XMM1,dword ptr [0x00135424]
MOVSS XMM2,dword ptr [0x00132e88]
SUBSS XMM2,XMM1
MOVSS dword ptr [RSP],XMM2
MOVAPS XMM0,XMM2
MULSS XMM0,XMM2
MOVSS dword ptr [RSP + 0x4],XMM0
MOVSS XMM0,dword ptr [0x00135438]
MULSS XMM0,XMM2
CALL 0x0010c3a0
MOVSS XMM2,dword ptr [RSP]
MULSS XMM0,XMM2
MOVSS XMM1,dword ptr [RSP + 0x4]
MULSS XMM1,XMM2
SUBSS XMM1,XMM0
MOVSS XMM0,dword ptr [0x00132e88]
SUBSS XMM0,XMM1
MOVSS XMM1,dword ptr [0x00132e90]
MULSS XMM0,XMM1
ADDSS XMM0,XMM1
POP RAX
RET
|
/* ftxui::animation::easing::BackInOut(float) */
int8 ftxui::animation::easing::BackInOut(float param_1)
{
float fVar1;
int8 local_8;
if (param_1 < DAT_00132e90) {
fVar1 = param_1 + param_1;
local_8 = CONCAT44(fVar1 * fVar1,fVar1);
sinf(DAT_00135438 * fVar1);
return local_8;
}
fVar1 = DAT_00132e88 - (param_1 + param_1 + DAT_00135424);
local_8 = CONCAT44(fVar1 * fVar1,fVar1);
sinf(DAT_00135438 * fVar1);
return local_8;
}
| |
30,342 | size_to_tail_pattern | eloqsql/storage/maria/ma_bitmap.c | static uint size_to_tail_pattern(MARIA_FILE_BITMAP *bitmap, uint size)
{
if (size <= bitmap->sizes[6])
return 6;
if (size <= bitmap->sizes[5])
return 5;
DBUG_ASSERT(size <= bitmap->sizes[0]);
return 0;
} | O0 | c | size_to_tail_pattern:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x120(%rcx), %eax
ja 0x661c3
movl $0x6, -0x4(%rbp)
jmp 0x661e6
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x11c(%rcx), %eax
ja 0x661db
movl $0x5, -0x4(%rbp)
jmp 0x661e6
jmp 0x661dd
jmp 0x661df
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax,%rax)
| size_to_tail_pattern:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov eax, [rbp+var_14]
mov rcx, [rbp+var_10]
cmp eax, [rcx+120h]
ja short loc_661C3
mov [rbp+var_4], 6
jmp short loc_661E6
loc_661C3:
mov eax, [rbp+var_14]
mov rcx, [rbp+var_10]
cmp eax, [rcx+11Ch]
ja short loc_661DB
mov [rbp+var_4], 5
jmp short loc_661E6
loc_661DB:
jmp short $+2
loc_661DD:
jmp short $+2
loc_661DF:
mov [rbp+var_4], 0
loc_661E6:
mov eax, [rbp+var_4]
pop rbp
retn
| long long size_to_tail_pattern(long long a1, unsigned int a2)
{
if ( a2 > *(_DWORD *)(a1 + 288) )
{
if ( a2 > *(_DWORD *)(a1 + 284) )
return 0;
else
return 5;
}
else
{
return 6;
}
}
| size_to_tail_pattern:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV EAX,dword ptr [RBP + -0x14]
MOV RCX,qword ptr [RBP + -0x10]
CMP EAX,dword ptr [RCX + 0x120]
JA 0x001661c3
MOV dword ptr [RBP + -0x4],0x6
JMP 0x001661e6
LAB_001661c3:
MOV EAX,dword ptr [RBP + -0x14]
MOV RCX,qword ptr [RBP + -0x10]
CMP EAX,dword ptr [RCX + 0x11c]
JA 0x001661db
MOV dword ptr [RBP + -0x4],0x5
JMP 0x001661e6
LAB_001661db:
JMP 0x001661dd
LAB_001661dd:
JMP 0x001661df
LAB_001661df:
MOV dword ptr [RBP + -0x4],0x0
LAB_001661e6:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int4 size_to_tail_pattern(long param_1,uint param_2)
{
int4 local_c;
if (*(uint *)(param_1 + 0x120) < param_2) {
if (*(uint *)(param_1 + 0x11c) < param_2) {
local_c = 0;
}
else {
local_c = 5;
}
}
else {
local_c = 6;
}
return local_c;
}
| |
30,343 | rw_pr_unlock | eloqsql/mysys/thr_rwlock.c | int rw_pr_unlock(rw_pr_lock_t *rwlock)
{
if (rwlock->active_writer)
{
/* We are unlocking wr-lock. */
#ifdef SAFE_MUTEX
rwlock->writer_thread= 0;
#endif
rwlock->active_writer= FALSE;
if (rwlock->writers_waiting_readers)
{
/*
Avoid expensive cond signal in case when there is no contention
or it is wr-only.
Note that from view point of performance it would be better to
signal on the condition variable after unlocking mutex (as it
reduces number of contex switches).
Unfortunately this would mean that such rwlock can't be safely
used by MDL subsystem, which relies on the fact that it is OK
to destroy rwlock once it is in unlocked state.
*/
pthread_cond_signal(&rwlock->no_active_readers);
}
pthread_mutex_unlock(&rwlock->lock);
}
else
{
/* We are unlocking rd-lock. */
pthread_mutex_lock(&rwlock->lock);
rwlock->active_readers--;
if (rwlock->active_readers == 0 &&
rwlock->writers_waiting_readers)
{
/*
If we are last reader and there are waiting
writers wake them up.
*/
pthread_cond_signal(&rwlock->no_active_readers);
}
pthread_mutex_unlock(&rwlock->lock);
}
return 0;
} | O3 | c | rw_pr_unlock:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpb $0x0, 0x60(%rdi)
je 0x49138
movb $0x0, 0x60(%rbx)
cmpl $0x0, 0x5c(%rbx)
je 0x49145
leaq 0x28(%rbx), %rdi
callq 0x24040
jmp 0x49145
movq %rbx, %rdi
callq 0x24440
decl 0x58(%rbx)
je 0x49127
movq %rbx, %rdi
callq 0x24200
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
| rw_pr_unlock:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
cmp byte ptr [rdi+60h], 0
jz short loc_49138
mov byte ptr [rbx+60h], 0
loc_49127:
cmp dword ptr [rbx+5Ch], 0
jz short loc_49145
lea rdi, [rbx+28h]
call _pthread_cond_signal
jmp short loc_49145
loc_49138:
mov rdi, rbx
call _pthread_mutex_lock
dec dword ptr [rbx+58h]
jz short loc_49127
loc_49145:
mov rdi, rbx
call _pthread_mutex_unlock
xor eax, eax
add rsp, 8
pop rbx
pop rbp
retn
| long long rw_pr_unlock(long long a1)
{
if ( *(_BYTE *)(a1 + 96) )
{
*(_BYTE *)(a1 + 96) = 0;
}
else
{
pthread_mutex_lock(a1);
if ( (*(_DWORD *)(a1 + 88))-- != 1 )
goto LABEL_6;
}
if ( *(_DWORD *)(a1 + 92) )
pthread_cond_signal(a1 + 40);
LABEL_6:
pthread_mutex_unlock(a1);
return 0LL;
}
| rw_pr_unlock:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
CMP byte ptr [RDI + 0x60],0x0
JZ 0x00149138
MOV byte ptr [RBX + 0x60],0x0
LAB_00149127:
CMP dword ptr [RBX + 0x5c],0x0
JZ 0x00149145
LEA RDI,[RBX + 0x28]
CALL 0x00124040
JMP 0x00149145
LAB_00149138:
MOV RDI,RBX
CALL 0x00124440
DEC dword ptr [RBX + 0x58]
JZ 0x00149127
LAB_00149145:
MOV RDI,RBX
CALL 0x00124200
XOR EAX,EAX
ADD RSP,0x8
POP RBX
POP RBP
RET
|
int8 rw_pr_unlock(pthread_mutex_t *param_1)
{
int *piVar1;
if (*(char *)((long)param_1 + 0x60) == '\0') {
pthread_mutex_lock(param_1);
piVar1 = (int *)((long)param_1 + 0x58);
*piVar1 = *piVar1 + -1;
if (*piVar1 != 0) goto LAB_00149145;
}
else {
*(int1 *)((long)param_1 + 0x60) = 0;
}
if (*(int *)((long)param_1 + 0x5c) != 0) {
pthread_cond_signal((pthread_cond_t *)(param_1 + 1));
}
LAB_00149145:
pthread_mutex_unlock(param_1);
return 0;
}
| |
30,344 | js_realloc2 | bluesky950520[P]quickjs/quickjs.c | void *js_realloc2(JSContext *ctx, void *ptr, size_t size, size_t *pslack)
{
void *ret;
ret = js_realloc_rt(ctx->rt, ptr, size);
if (unlikely(!ret && size != 0)) {
JS_ThrowOutOfMemory(ctx);
return NULL;
}
if (pslack) {
size_t new_size = js_malloc_usable_size_rt(ctx->rt, ret);
*pslack = (new_size > size) ? new_size - size : 0;
}
return ret;
} | O0 | c | js_realloc2:
subq $0x58, %rsp
movq %rdi, 0x48(%rsp)
movq %rsi, 0x40(%rsp)
movq %rdx, 0x38(%rsp)
movq %rcx, 0x30(%rsp)
movq 0x48(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x40(%rsp), %rsi
movq 0x38(%rsp), %rdx
callq 0x27cd0
movq %rax, 0x28(%rsp)
xorl %eax, %eax
cmpq $0x0, 0x28(%rsp)
movb %al, 0xf(%rsp)
jne 0x281c0
cmpq $0x0, 0x38(%rsp)
setne %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x281f4
movq 0x48(%rsp), %rdi
callq 0x27f00
movq %rax, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movq $0x0, 0x50(%rsp)
jmp 0x2824e
cmpq $0x0, 0x30(%rsp)
je 0x28244
movq 0x48(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x28(%rsp), %rsi
callq 0x27e20
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
cmpq 0x38(%rsp), %rax
jbe 0x28230
movq 0x10(%rsp), %rax
subq 0x38(%rsp), %rax
movq %rax, (%rsp)
jmp 0x28238
xorl %eax, %eax
movq %rax, (%rsp)
jmp 0x28238
movq (%rsp), %rcx
movq 0x30(%rsp), %rax
movq %rcx, (%rax)
movq 0x28(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rax
addq $0x58, %rsp
retq
nopl (%rax,%rax)
| js_realloc2:
sub rsp, 58h
mov [rsp+58h+var_10], rdi
mov [rsp+58h+var_18], rsi
mov [rsp+58h+var_20], rdx
mov [rsp+58h+var_28], rcx
mov rax, [rsp+58h+var_10]
mov rdi, [rax+18h]
mov rsi, [rsp+58h+var_18]
mov rdx, [rsp+58h+var_20]
call js_realloc_rt
mov [rsp+58h+var_30], rax
xor eax, eax
cmp [rsp+58h+var_30], 0
mov [rsp+58h+var_49], al
jnz short loc_281C0
cmp [rsp+58h+var_20], 0
setnz al
mov [rsp+58h+var_49], al
loc_281C0:
mov al, [rsp+58h+var_49]
xor al, 0FFh
xor al, 0FFh
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_281F4
mov rdi, [rsp+58h+var_10]
call JS_ThrowOutOfMemory
mov [rsp+58h+var_40], rax
mov [rsp+58h+var_38], rdx
mov [rsp+58h+var_8], 0
jmp short loc_2824E
loc_281F4:
cmp [rsp+58h+var_28], 0
jz short loc_28244
mov rax, [rsp+58h+var_10]
mov rdi, [rax+18h]
mov rsi, [rsp+58h+var_30]
call js_malloc_usable_size_rt
mov [rsp+58h+var_48], rax
mov rax, [rsp+58h+var_48]
cmp rax, [rsp+58h+var_20]
jbe short loc_28230
mov rax, [rsp+58h+var_48]
sub rax, [rsp+58h+var_20]
mov [rsp+58h+var_58], rax
jmp short loc_28238
loc_28230:
xor eax, eax
mov [rsp+58h+var_58], rax
jmp short $+2
loc_28238:
mov rcx, [rsp+58h+var_58]
mov rax, [rsp+58h+var_28]
mov [rax], rcx
loc_28244:
mov rax, [rsp+58h+var_30]
mov [rsp+58h+var_8], rax
loc_2824E:
mov rax, [rsp+58h+var_8]
add rsp, 58h
retn
| long long js_realloc2(long long a1, long long a2, unsigned long long a3, unsigned long long *a4)
{
int v4; // edx
long long v5; // rcx
int v6; // r8d
int v7; // r9d
unsigned long long v9; // [rsp+0h] [rbp-58h]
bool v10; // [rsp+Fh] [rbp-49h]
unsigned long long v11; // [rsp+10h] [rbp-48h]
long long v12; // [rsp+28h] [rbp-30h]
v12 = js_realloc_rt(*(_QWORD *)(a1 + 24), a2, a3);
v10 = 0;
if ( !v12 )
v10 = a3 != 0;
if ( v10 )
{
JS_ThrowOutOfMemory(a1, a2, v4, v5, v6, v7);
return 0LL;
}
else
{
if ( a4 )
{
v11 = js_malloc_usable_size_rt(*(_QWORD *)(a1 + 24), v12);
if ( v11 <= a3 )
v9 = 0LL;
else
v9 = v11 - a3;
*a4 = v9;
}
return v12;
}
}
| js_realloc2:
SUB RSP,0x58
MOV qword ptr [RSP + 0x48],RDI
MOV qword ptr [RSP + 0x40],RSI
MOV qword ptr [RSP + 0x38],RDX
MOV qword ptr [RSP + 0x30],RCX
MOV RAX,qword ptr [RSP + 0x48]
MOV RDI,qword ptr [RAX + 0x18]
MOV RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x38]
CALL 0x00127cd0
MOV qword ptr [RSP + 0x28],RAX
XOR EAX,EAX
CMP qword ptr [RSP + 0x28],0x0
MOV byte ptr [RSP + 0xf],AL
JNZ 0x001281c0
CMP qword ptr [RSP + 0x38],0x0
SETNZ AL
MOV byte ptr [RSP + 0xf],AL
LAB_001281c0:
MOV AL,byte ptr [RSP + 0xf]
XOR AL,0xff
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001281f4
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x00127f00
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0x20],RDX
MOV qword ptr [RSP + 0x50],0x0
JMP 0x0012824e
LAB_001281f4:
CMP qword ptr [RSP + 0x30],0x0
JZ 0x00128244
MOV RAX,qword ptr [RSP + 0x48]
MOV RDI,qword ptr [RAX + 0x18]
MOV RSI,qword ptr [RSP + 0x28]
CALL 0x00127e20
MOV qword ptr [RSP + 0x10],RAX
MOV RAX,qword ptr [RSP + 0x10]
CMP RAX,qword ptr [RSP + 0x38]
JBE 0x00128230
MOV RAX,qword ptr [RSP + 0x10]
SUB RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP],RAX
JMP 0x00128238
LAB_00128230:
XOR EAX,EAX
MOV qword ptr [RSP],RAX
JMP 0x00128238
LAB_00128238:
MOV RCX,qword ptr [RSP]
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RAX],RCX
LAB_00128244:
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x50],RAX
LAB_0012824e:
MOV RAX,qword ptr [RSP + 0x50]
ADD RSP,0x58
RET
|
long js_realloc2(long param_1,int8 param_2,ulong param_3,long *param_4)
{
ulong uVar1;
long local_58;
long local_8;
local_8 = js_realloc_rt(*(int8 *)(param_1 + 0x18),param_2,param_3);
if (local_8 == 0 && param_3 != 0) {
JS_ThrowOutOfMemory(param_1);
local_8 = 0;
}
else if (param_4 != (long *)0x0) {
uVar1 = js_malloc_usable_size_rt(*(int8 *)(param_1 + 0x18),local_8);
if (param_3 < uVar1) {
local_58 = uVar1 - param_3;
}
else {
local_58 = 0;
}
*param_4 = local_58;
}
return local_8;
}
| |
30,345 | js_realloc2 | bluesky950520[P]quickjs/quickjs.c | void *js_realloc2(JSContext *ctx, void *ptr, size_t size, size_t *pslack)
{
void *ret;
ret = js_realloc_rt(ctx->rt, ptr, size);
if (unlikely(!ret && size != 0)) {
JS_ThrowOutOfMemory(ctx);
return NULL;
}
if (pslack) {
size_t new_size = js_malloc_usable_size_rt(ctx->rt, ret);
*pslack = (new_size > size) ? new_size - size : 0;
}
return ret;
} | O2 | c | js_realloc2:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r15
movq %rdi, %r12
movq 0x18(%rdi), %rdi
callq 0x1acb9
movq %rax, %r14
testq %rax, %rax
setne %al
testq %r15, %r15
sete %cl
orb %al, %cl
je 0x1aeb9
testq %rbx, %rbx
je 0x1aeaa
movq 0x18(%r12), %rax
movq %r14, %rdi
callq *0x20(%rax)
xorl %ecx, %ecx
subq %r15, %rax
cmovaeq %rax, %rcx
movq %rcx, (%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %r12, %rdi
callq 0x1ad90
jmp 0x1aeaa
| js_realloc2:
push r15
push r14
push r12
push rbx
push rax
mov rbx, rcx
mov r15, rdx
mov r12, rdi
mov rdi, [rdi+18h]
call js_realloc_rt
mov r14, rax
test rax, rax
setnz al
test r15, r15
setz cl
or cl, al
jz short loc_1AEB9
test rbx, rbx
jz short loc_1AEAA
mov rax, [r12+18h]
mov rdi, r14
call qword ptr [rax+20h]
xor ecx, ecx
sub rax, r15
cmovnb rcx, rax
mov [rbx], rcx
loc_1AEAA:
mov rax, r14
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
loc_1AEB9:
mov rdi, r12
call JS_ThrowOutOfMemory
jmp short loc_1AEAA
| long long js_realloc2(long long a1, long long a2, unsigned long long a3, unsigned long long *a4)
{
int v6; // edx
int v7; // r8d
int v8; // r9d
long long v9; // r14
int v10; // ecx
unsigned long long v11; // rax
unsigned long long v12; // rcx
bool v13; // cf
unsigned long long v14; // rax
v9 = js_realloc_rt(*(_QWORD *)(a1 + 24), a2, a3);
LOBYTE(v10) = v9 != 0 || a3 == 0;
if ( (_BYTE)v10 )
{
if ( a4 )
{
v11 = (*(long long ( **)(long long))(*(_QWORD *)(a1 + 24) + 32LL))(v9);
v12 = 0LL;
v13 = v11 < a3;
v14 = v11 - a3;
if ( !v13 )
v12 = v14;
*a4 = v12;
}
}
else
{
JS_ThrowOutOfMemory(a1, a2, v6, v10, v7, v8);
}
return v9;
}
| js_realloc2:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RCX
MOV R15,RDX
MOV R12,RDI
MOV RDI,qword ptr [RDI + 0x18]
CALL 0x0011acb9
MOV R14,RAX
TEST RAX,RAX
SETNZ AL
TEST R15,R15
SETZ CL
OR CL,AL
JZ 0x0011aeb9
TEST RBX,RBX
JZ 0x0011aeaa
MOV RAX,qword ptr [R12 + 0x18]
MOV RDI,R14
CALL qword ptr [RAX + 0x20]
XOR ECX,ECX
SUB RAX,R15
CMOVNC RCX,RAX
MOV qword ptr [RBX],RCX
LAB_0011aeaa:
MOV RAX,R14
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
LAB_0011aeb9:
MOV RDI,R12
CALL 0x0011ad90
JMP 0x0011aeaa
|
long js_realloc2(long param_1,int8 param_2,ulong param_3,long *param_4)
{
long lVar1;
ulong uVar2;
long lVar3;
lVar1 = js_realloc_rt(*(int8 *)(param_1 + 0x18));
if (param_3 == 0 || lVar1 != 0) {
if (param_4 != (long *)0x0) {
uVar2 = (**(code **)(*(long *)(param_1 + 0x18) + 0x20))(lVar1);
lVar3 = 0;
if (param_3 <= uVar2) {
lVar3 = uVar2 - param_3;
}
*param_4 = lVar3;
}
}
else {
JS_ThrowOutOfMemory(param_1);
}
return lVar1;
}
| |
30,346 | Cache::loadBlockFromLowerLevel(unsigned int, unsigned int*) | DanielDanyang[P]CSC3050-2025-Spring-Project-4/src/Cache.cpp | void Cache::loadBlockFromLowerLevel(uint32_t addr, uint32_t *cycles) {
uint32_t blockSize = this->policy.blockSize;
// Initialize new block from memory
Block b;
b.valid = true;
b.modified = false;
b.tag = this->getTag(addr);
b.id = this->getId(addr);
b.size = blockSize;
b.data = std::vector<uint8_t>(b.size);
uint32_t bits = this->log2i(blockSize);
uint32_t mask = ~((1 << bits) - 1);
uint32_t blockAddrBegin = addr & mask;
for (uint32_t i = blockAddrBegin; i < blockAddrBegin + blockSize; ++i) {
if (this->lowerCache == nullptr) {
b.data[i - blockAddrBegin] = this->memory->getByteNoCache(i);
if (cycles) *cycles = 100;
} else
b.data[i - blockAddrBegin] = this->lowerCache->getByte(i, cycles);
}
// Find replace block
uint32_t id = this->getId(addr);
uint32_t blockIdBegin = id * this->policy.associativity;
uint32_t blockIdEnd = (id + 1) * this->policy.associativity;
uint32_t replaceId = this->getReplacementBlockId(blockIdBegin, blockIdEnd);
Block replaceBlock = this->blocks[replaceId];
if (replaceBlock.valid && replaceBlock.modified) {
this->writeBlockToLowerLevel(replaceBlock);
this->statistics.totalCycles += this->policy.missLatency;
}
this->blocks[replaceId] = b;
} | O2 | cpp | Cache::loadBlockFromLowerLevel(unsigned int, unsigned int*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %r14
movl 0x3c(%rdi), %r12d
leaq 0x50(%rsp), %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
andq $0x0, 0x10(%rbx)
movw $0x1, -0x18(%rbx)
callq 0x362a
movl %eax, -0x14(%rbx)
movq %r14, %rdi
movl %ebp, %esi
callq 0x3668
movl %eax, -0x10(%rbx)
movl %r12d, -0xc(%rbx)
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %r12, %rsi
callq 0x3dce
leaq 0x8(%rsp), %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x41aa
movq %r13, %rdi
callq 0x3fe0
movl %r12d, %esi
callq 0x3c16
movl %eax, %ecx
movl %ebp, %r13d
shrl %cl, %r13d
shll %cl, %r13d
addl %r13d, %r12d
xorl %ebx, %ebx
cmpq %r12, %r13
jae 0x386a
movq 0x30(%r14), %rdi
testq %rdi, %rdi
je 0x3842
movl %r13d, %esi
movq %r15, %rdx
callq 0x36a2
movq 0x50(%rsp), %rcx
movb %al, (%rcx,%rbx)
jmp 0x3862
movq 0x28(%r14), %rdi
movl %r13d, %esi
callq 0x2d66
movq 0x50(%rsp), %rcx
movb %al, (%rcx,%rbx)
testq %r15, %r15
je 0x3862
movl $0x64, (%r15)
incq %r13
incq %rbx
jmp 0x381f
movq %r14, %rdi
movl %ebp, %esi
callq 0x3668
movl 0x44(%r14), %esi
leal 0x1(%rax), %edx
imull %esi, %edx
imull %eax, %esi
movq %r14, %rdi
callq 0x3c32
movl %eax, %eax
imulq $0x30, %rax, %r15
movq 0x50(%r14), %rsi
addq %r15, %rsi
leaq 0x8(%rsp), %rdi
callq 0x3e20
cmpb $0x1, 0x8(%rsp)
leaq 0x50(%rsp), %rbx
jne 0x38c8
cmpb $0x1, 0x9(%rsp)
jne 0x38c8
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x3c84
movl 0x4c(%r14), %eax
addq %rax, 0x18(%r14)
addq 0x50(%r14), %r15
leaq 0x38(%rsp), %rsi
movq %r15, %rdi
callq 0x3e74
leaq 0x20(%rsp), %rdi
callq 0x3fe0
movq %rbx, %rdi
callq 0x3fe0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x390d
jmp 0x390d
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x3fe0
jmp 0x3910
movq %rax, %r14
leaq 0x50(%rsp), %rdi
callq 0x3fe0
movq %r14, %rdi
callq 0x2250
| _ZN5Cache23loadBlockFromLowerLevelEjPj:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov r15, rdx
mov ebp, esi
mov r14, rdi
mov r12d, [rdi+3Ch]
lea rbx, [rsp+98h+var_48]
xorps xmm0, xmm0
movups xmmword ptr [rbx], xmm0
and qword ptr [rbx+10h], 0
mov word ptr [rbx-18h], 1
call _ZN5Cache6getTagEj; Cache::getTag(uint)
mov [rbx-14h], eax
mov rdi, r14; this
mov esi, ebp; unsigned int
call _ZN5Cache5getIdEj; Cache::getId(uint)
mov [rbx-10h], eax
mov [rbx-0Ch], r12d
lea rdi, [rsp+98h+var_90]
lea rdx, [rsp+98h+var_91]
mov rsi, r12
call _ZNSt6vectorIhSaIhEEC2EmRKS0_; std::vector<uchar>::vector(ulong,std::allocator<uchar> const&)
lea r13, [rsp+98h+var_90]
mov rdi, rbx
mov rsi, r13
call _ZNSt6vectorIhSaIhEE14_M_move_assignEOS1_St17integral_constantIbLb1EE; std::vector<uchar>::_M_move_assign(std::vector<uchar>&&,std::integral_constant<bool,true>)
mov rdi, r13; this
call _ZNSt12_Vector_baseIhSaIhEED2Ev; std::_Vector_base<uchar>::~_Vector_base()
mov esi, r12d; unsigned int
call _ZN5Cache5log2iEj; Cache::log2i(uint)
mov ecx, eax
mov r13d, ebp
shr r13d, cl
shl r13d, cl
add r12d, r13d
xor ebx, ebx
loc_381F:
cmp r13, r12
jnb short loc_386A
mov rdi, [r14+30h]; this
test rdi, rdi
jz short loc_3842
mov esi, r13d; unsigned int
mov rdx, r15; unsigned int *
call _ZN5Cache7getByteEjPj; Cache::getByte(uint,uint *)
mov rcx, [rsp+98h+var_48]
mov [rcx+rbx], al
jmp short loc_3862
loc_3842:
mov rdi, [r14+28h]; this
mov esi, r13d; unsigned int
call _ZN13MemoryManager14getByteNoCacheEj; MemoryManager::getByteNoCache(uint)
mov rcx, [rsp+98h+var_48]
mov [rcx+rbx], al
test r15, r15
jz short loc_3862
mov dword ptr [r15], 64h ; 'd'
loc_3862:
inc r13
inc rbx
jmp short loc_381F
loc_386A:
mov rdi, r14; this
mov esi, ebp; unsigned int
call _ZN5Cache5getIdEj; Cache::getId(uint)
mov esi, [r14+44h]
lea edx, [rax+1]
imul edx, esi; unsigned int
imul esi, eax; unsigned int
mov rdi, r14; this
call _ZN5Cache21getReplacementBlockIdEjj; Cache::getReplacementBlockId(uint,uint)
mov eax, eax
imul r15, rax, 30h ; '0'
mov rsi, [r14+50h]
add rsi, r15
lea rdi, [rsp+98h+var_90]
call _ZN5Cache5BlockC2ERKS0_; Cache::Block::Block(Cache::Block const&)
cmp [rsp+98h+var_90], 1
lea rbx, [rsp+98h+var_48]
jnz short loc_38C8
cmp [rsp+98h+var_8F], 1
jnz short loc_38C8
lea rsi, [rsp+98h+var_90]
mov rdi, r14
call _ZN5Cache22writeBlockToLowerLevelERNS_5BlockE; Cache::writeBlockToLowerLevel(Cache::Block &)
mov eax, [r14+4Ch]
add [r14+18h], rax
loc_38C8:
add r15, [r14+50h]
lea rsi, [rsp+98h+var_60]
mov rdi, r15
call _ZN5Cache5BlockaSERKS0_; Cache::Block::operator=(Cache::Block const&)
lea rdi, [rsp+98h+var_78]
call _ZNSt12_Vector_baseIhSaIhEED2Ev; std::_Vector_base<uchar>::~_Vector_base()
mov rdi, rbx
call _ZNSt12_Vector_baseIhSaIhEED2Ev; std::_Vector_base<uchar>::~_Vector_base()
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_390D
jmp short loc_390D
mov r14, rax
lea rdi, [rsp+arg_18]
call _ZNSt12_Vector_baseIhSaIhEED2Ev; std::_Vector_base<uchar>::~_Vector_base()
jmp short loc_3910
loc_390D:
mov r14, rax
loc_3910:
lea rdi, [rsp+arg_48]
call _ZNSt12_Vector_baseIhSaIhEED2Ev; std::_Vector_base<uchar>::~_Vector_base()
mov rdi, r14
call __Unwind_Resume
| long long Cache::loadBlockFromLowerLevel(
MemoryManager **this,
unsigned int a2,
unsigned int *a3,
double a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11)
{
long long v13; // r12
char v14; // al
double v15; // xmm4_8
double v16; // xmm5_8
unsigned long long v17; // r13
unsigned long long v18; // r12
long long v19; // rbx
Cache *v20; // rdi
char Byte; // al
char ByteNoCache; // al
int v23; // eax
long long v24; // r15
char v26; // [rsp+7h] [rbp-91h] BYREF
_BYTE v27[24]; // [rsp+8h] [rbp-90h] BYREF
_BYTE v28[24]; // [rsp+20h] [rbp-78h] BYREF
__int16 v29[2]; // [rsp+38h] [rbp-60h] BYREF
int Tag; // [rsp+3Ch] [rbp-5Ch]
int Id; // [rsp+40h] [rbp-58h]
int v32; // [rsp+44h] [rbp-54h]
__int128 v33; // [rsp+50h] [rbp-48h] BYREF
long long v34; // [rsp+60h] [rbp-38h]
v13 = *((unsigned int *)this + 15);
v33 = 0LL;
v34 = 0LL;
v29[0] = 1;
Tag = Cache::getTag((Cache *)this, a2);
Id = Cache::getId((Cache *)this, a2);
v32 = v13;
std::vector<unsigned char>::vector(v27, v13, &v26);
std::vector<unsigned char>::_M_move_assign(&v33, v27);
std::_Vector_base<unsigned char>::~_Vector_base(v27);
v14 = Cache::log2i((Cache *)v27, v13);
v17 = a2 >> v14 << v14;
v18 = (unsigned int)(v17 + v13);
v19 = 0LL;
while ( v17 < v18 )
{
v20 = this[6];
if ( v20 )
{
Byte = Cache::getByte(v20, v17, a3);
*(_BYTE *)(v33 + v19) = Byte;
}
else
{
ByteNoCache = MemoryManager::getByteNoCache(this[5], v17, (__m128)0LL, a5, a6, a7, v15, v16, a10, a11);
*(_BYTE *)(v33 + v19) = ByteNoCache;
if ( a3 )
*a3 = 100;
}
++v17;
++v19;
}
v23 = Cache::getId((Cache *)this, a2);
v24 = 48LL
* (unsigned int)Cache::getReplacementBlockId(
(Cache *)this,
v23 * *((_DWORD *)this + 17),
*((_DWORD *)this + 17) * (v23 + 1));
Cache::Block::Block(v27, (char *)this[10] + v24);
if ( v27[0] == 1 && v27[1] == 1 )
{
Cache::writeBlockToLowerLevel(this, v27);
this[3] = (MemoryManager *)((char *)this[3] + *((unsigned int *)this + 19));
}
Cache::Block::operator=((char *)this[10] + v24, v29);
std::_Vector_base<unsigned char>::~_Vector_base(v28);
return std::_Vector_base<unsigned char>::~_Vector_base(&v33);
}
| loadBlockFromLowerLevel:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV R15,RDX
MOV EBP,ESI
MOV R14,RDI
MOV R12D,dword ptr [RDI + 0x3c]
LEA RBX,[RSP + 0x50]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
AND qword ptr [RBX + 0x10],0x0
MOV word ptr [RBX + -0x18],0x1
CALL 0x0010362a
MOV dword ptr [RBX + -0x14],EAX
MOV RDI,R14
MOV ESI,EBP
CALL 0x00103668
MOV dword ptr [RBX + -0x10],EAX
MOV dword ptr [RBX + -0xc],R12D
LAB_001037dd:
LEA RDI,[RSP + 0x8]
LEA RDX,[RSP + 0x7]
MOV RSI,R12
CALL 0x00103dce
LEA R13,[RSP + 0x8]
MOV RDI,RBX
MOV RSI,R13
CALL 0x001041aa
MOV RDI,R13
CALL 0x00103fe0
MOV ESI,R12D
CALL 0x00103c16
MOV ECX,EAX
MOV R13D,EBP
SHR R13D,CL
SHL R13D,CL
ADD R12D,R13D
XOR EBX,EBX
LAB_0010381f:
CMP R13,R12
JNC 0x0010386a
MOV RDI,qword ptr [R14 + 0x30]
TEST RDI,RDI
JZ 0x00103842
LAB_0010382d:
MOV ESI,R13D
MOV RDX,R15
CALL 0x001036a2
MOV RCX,qword ptr [RSP + 0x50]
MOV byte ptr [RCX + RBX*0x1],AL
JMP 0x00103862
LAB_00103842:
MOV RDI,qword ptr [R14 + 0x28]
MOV ESI,R13D
CALL 0x00102d66
MOV RCX,qword ptr [RSP + 0x50]
MOV byte ptr [RCX + RBX*0x1],AL
TEST R15,R15
JZ 0x00103862
MOV dword ptr [R15],0x64
LAB_00103862:
INC R13
INC RBX
JMP 0x0010381f
LAB_0010386a:
MOV RDI,R14
MOV ESI,EBP
CALL 0x00103668
MOV ESI,dword ptr [R14 + 0x44]
LEA EDX,[RAX + 0x1]
IMUL EDX,ESI
IMUL ESI,EAX
MOV RDI,R14
CALL 0x00103c32
MOV EAX,EAX
IMUL R15,RAX,0x30
MOV RSI,qword ptr [R14 + 0x50]
ADD RSI,R15
LAB_00103896:
LEA RDI,[RSP + 0x8]
CALL 0x00103e20
CMP byte ptr [RSP + 0x8],0x1
LEA RBX,[RSP + 0x50]
JNZ 0x001038c8
CMP byte ptr [RSP + 0x9],0x1
JNZ 0x001038c8
LAB_001038b3:
LEA RSI,[RSP + 0x8]
MOV RDI,R14
CALL 0x00103c84
MOV EAX,dword ptr [R14 + 0x4c]
ADD qword ptr [R14 + 0x18],RAX
LAB_001038c8:
ADD R15,qword ptr [R14 + 0x50]
LEA RSI,[RSP + 0x38]
MOV RDI,R15
CALL 0x00103e74
LAB_001038d9:
LEA RDI,[RSP + 0x20]
CALL 0x00103fe0
MOV RDI,RBX
CALL 0x00103fe0
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* Cache::loadBlockFromLowerLevel(unsigned int, unsigned int*) */
void __thiscall Cache::loadBlockFromLowerLevel(Cache *this,uint param_1,uint *param_2)
{
byte bVar1;
int1 uVar2;
int iVar3;
uint uVar4;
long lVar5;
_Vector_base<unsigned_char,std::allocator<unsigned_char>> *this_00;
uint uVar6;
ulong uVar7;
allocator local_91;
vector<unsigned_char,std::allocator<unsigned_char>> local_90;
char local_8f;
_Vector_base<unsigned_char,std::allocator<unsigned_char>> local_78 [24];
int2 local_60 [2];
int4 local_5c;
int4 local_58;
uint local_54;
long local_48 [3];
uVar4 = *(uint *)(this + 0x3c);
local_48[0] = 0;
local_48[1] = 0;
local_48[2] = 0;
local_60[0] = 1;
local_5c = getTag(this,param_1);
local_58 = getId(this,param_1);
/* try { // try from 001037dd to 001037ee has its CatchHandler @ 001038fc */
local_54 = uVar4;
std::vector<unsigned_char,std::allocator<unsigned_char>>::vector(&local_90,(ulong)uVar4,&local_91)
;
this_00 = (_Vector_base<unsigned_char,std::allocator<unsigned_char>> *)&local_90;
std::vector<unsigned_char,std::allocator<unsigned_char>>::_M_move_assign(local_48,this_00);
std::_Vector_base<unsigned_char,std::allocator<unsigned_char>>::~_Vector_base(this_00);
bVar1 = log2i((Cache *)this_00,uVar4);
uVar6 = (param_1 >> (bVar1 & 0x1f)) << (bVar1 & 0x1f);
lVar5 = 0;
for (uVar7 = (ulong)uVar6; uVar7 < uVar4 + uVar6; uVar7 = uVar7 + 1) {
if (*(Cache **)(this + 0x30) == (Cache *)0x0) {
uVar2 = MemoryManager::getByteNoCache(*(MemoryManager **)(this + 0x28),(uint)uVar7);
*(int1 *)(local_48[0] + lVar5) = uVar2;
if (param_2 != (uint *)0x0) {
*param_2 = 100;
}
}
else {
/* try { // try from 0010382d to 0010384d has its CatchHandler @ 0010390d */
uVar2 = getByte(*(Cache **)(this + 0x30),(uint)uVar7,param_2);
*(int1 *)(local_48[0] + lVar5) = uVar2;
}
lVar5 = lVar5 + 1;
}
iVar3 = getId(this,param_1);
uVar4 = getReplacementBlockId
(this,*(int *)(this + 0x44) * iVar3,(iVar3 + 1) * *(int *)(this + 0x44));
/* try { // try from 00103896 to 0010389f has its CatchHandler @ 001038fa */
Block::Block((Block *)&local_90,(Block *)(*(long *)(this + 0x50) + (ulong)uVar4 * 0x30));
if ((local_90 == (vector<unsigned_char,std::allocator<unsigned_char>>)0x1) && (local_8f == '\x01')
) {
/* try { // try from 001038b3 to 001038d8 has its CatchHandler @ 001038fe */
writeBlockToLowerLevel(this,(Block *)&local_90);
*(ulong *)(this + 0x18) = *(long *)(this + 0x18) + (ulong)*(uint *)(this + 0x4c);
}
Block::operator=((Block *)((ulong)uVar4 * 0x30 + *(long *)(this + 0x50)),(Block *)local_60);
std::_Vector_base<unsigned_char,std::allocator<unsigned_char>>::~_Vector_base(local_78);
std::_Vector_base<unsigned_char,std::allocator<unsigned_char>>::~_Vector_base
((_Vector_base<unsigned_char,std::allocator<unsigned_char>> *)local_48);
return;
}
| |
30,347 | Cache::loadBlockFromLowerLevel(unsigned int, unsigned int*) | DanielDanyang[P]CSC3050-2025-Spring-Project-4/src/Cache.cpp | void Cache::loadBlockFromLowerLevel(uint32_t addr, uint32_t *cycles) {
uint32_t blockSize = this->policy.blockSize;
// Initialize new block from memory
Block b;
b.valid = true;
b.modified = false;
b.tag = this->getTag(addr);
b.id = this->getId(addr);
b.size = blockSize;
b.data = std::vector<uint8_t>(b.size);
uint32_t bits = this->log2i(blockSize);
uint32_t mask = ~((1 << bits) - 1);
uint32_t blockAddrBegin = addr & mask;
for (uint32_t i = blockAddrBegin; i < blockAddrBegin + blockSize; ++i) {
if (this->lowerCache == nullptr) {
b.data[i - blockAddrBegin] = this->memory->getByteNoCache(i);
if (cycles) *cycles = 100;
} else
b.data[i - blockAddrBegin] = this->lowerCache->getByte(i, cycles);
}
// Find replace block
uint32_t id = this->getId(addr);
uint32_t blockIdBegin = id * this->policy.associativity;
uint32_t blockIdEnd = (id + 1) * this->policy.associativity;
uint32_t replaceId = this->getReplacementBlockId(blockIdBegin, blockIdEnd);
Block replaceBlock = this->blocks[replaceId];
if (replaceBlock.valid && replaceBlock.modified) {
this->writeBlockToLowerLevel(replaceBlock);
this->statistics.totalCycles += this->policy.missLatency;
}
this->blocks[replaceId] = b;
} | O3 | cpp | Cache::loadBlockFromLowerLevel(unsigned int, unsigned int*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
movl 0x3c(%rdi), %r15d
movw $0x1, 0x8(%rsp)
callq 0x3842
movl %eax, 0xc(%rsp)
movq %rbx, %rdi
movl %ebp, %esi
callq 0x38a6
movl %eax, 0x10(%rsp)
movl %r15d, 0x14(%rsp)
leaq 0x38(%rsp), %r13
leaq 0x3(%rsp), %rdx
movq %r13, %rdi
movq %r15, %rsi
callq 0x416a
movq (%r13), %r12
movq %r12, 0x20(%rsp)
movups 0x8(%r13), %xmm0
movups %xmm0, 0x28(%rsp)
testq %r15, %r15
je 0x3aab
xorl %ecx, %ecx
cmpl $0x1, %r15d
je 0x3ab0
movl %r15d, %edx
movl %r15d, %eax
shrl %eax
incl %ecx
cmpl $0x3, %edx
movl %eax, %edx
ja 0x3a9e
jmp 0x3ab0
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
movl %ebp, 0x4(%rsp)
movl %ebp, %eax
shrl %cl, %eax
shll %cl, %eax
leal (%rax,%r15), %ecx
cmpl %ecx, %eax
jae 0x3b09
movl %eax, %r13d
xorl %ebp, %ebp
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0x3ae3
leal (%r13,%rbp), %esi
movq %r14, %rdx
callq 0x3902
movb %al, (%r12,%rbp)
jmp 0x3b01
movq 0x28(%rbx), %rdi
leal (%r13,%rbp), %esi
callq 0x2f60
movb %al, (%r12,%rbp)
testq %r14, %r14
je 0x3b01
movl $0x64, (%r14)
incq %rbp
cmpl %ebp, %r15d
jne 0x3ac7
movq %rbx, %rdi
movl 0x4(%rsp), %esi
callq 0x38a6
movl 0x44(%rbx), %esi
leal 0x1(%rax), %edx
imull %esi, %edx
imull %eax, %esi
movq %rbx, %rdi
callq 0x3f44
movl %eax, %eax
leaq (%rax,%rax,2), %r14
shlq $0x4, %r14
movq 0x50(%rbx), %rsi
addq %r14, %rsi
leaq 0x38(%rsp), %rdi
callq 0x41ca
cmpb $0x1, 0x38(%rsp)
jne 0x3b66
cmpb $0x1, 0x39(%rsp)
jne 0x3b66
leaq 0x38(%rsp), %rsi
movq %rbx, %rdi
callq 0x3f9e
movl 0x4c(%rbx), %eax
addq %rax, 0x18(%rbx)
leaq 0x20(%rsp), %rsi
movq 0x50(%rbx), %rax
movl -0x8(%rsi), %ecx
leaq (%rax,%r14), %rdi
addq $0x18, %rdi
movl %ecx, -0x8(%rdi)
movups -0x18(%rsi), %xmm0
movups %xmm0, -0x18(%rdi)
callq 0x425a
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x3b99
callq 0x2150
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x3ba8
callq 0x2150
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x3bce
movq %rax, %rbx
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x3bce
callq 0x2150
movq 0x20(%rsp), %r12
jmp 0x3bd8
movq %rax, %rbx
testq %r12, %r12
je 0x3be5
movq %r12, %rdi
callq 0x2150
movq %rbx, %rdi
callq 0x2260
nop
| _ZN5Cache23loadBlockFromLowerLevelEjPj:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov r14, rdx
mov ebp, esi
mov rbx, rdi
mov r15d, [rdi+3Ch]
mov [rsp+98h+var_90], 1
call _ZN5Cache6getTagEj; Cache::getTag(uint)
mov [rsp+98h+var_8C], eax
mov rdi, rbx; this
mov esi, ebp; unsigned int
call _ZN5Cache5getIdEj; Cache::getId(uint)
mov [rsp+98h+var_88], eax
mov [rsp+98h+var_84], r15d
lea r13, [rsp+98h+var_60]
lea rdx, [rsp+98h+var_95]
mov rdi, r13
mov rsi, r15
call _ZNSt6vectorIhSaIhEEC2EmRKS0_; std::vector<uchar>::vector(ulong,std::allocator<uchar> const&)
mov r12, [r13+0]
mov [rsp+98h+var_78], r12
movups xmm0, xmmword ptr [r13+8]
movups [rsp+98h+var_70], xmm0
test r15, r15
jz short loc_3AAB
xor ecx, ecx
cmp r15d, 1
jz short loc_3AB0
mov edx, r15d
mov eax, r15d
loc_3A9E:
shr eax, 1
inc ecx
cmp edx, 3
mov edx, eax
ja short loc_3A9E
jmp short loc_3AB0
loc_3AAB:
mov ecx, 0FFFFFFFFh
loc_3AB0:
mov [rsp+98h+var_94], ebp
mov eax, ebp
shr eax, cl
shl eax, cl
lea ecx, [rax+r15]
cmp eax, ecx
jnb short loc_3B09
mov r13d, eax
xor ebp, ebp
loc_3AC7:
mov rdi, [rbx+30h]; this
test rdi, rdi
jz short loc_3AE3
lea esi, [r13+rbp+0]; unsigned int
mov rdx, r14; unsigned int *
call _ZN5Cache7getByteEjPj; Cache::getByte(uint,uint *)
mov [r12+rbp], al
jmp short loc_3B01
loc_3AE3:
mov rdi, [rbx+28h]; this
lea esi, [r13+rbp+0]; unsigned int
call _ZN13MemoryManager14getByteNoCacheEj; MemoryManager::getByteNoCache(uint)
mov [r12+rbp], al
test r14, r14
jz short loc_3B01
mov dword ptr [r14], 64h ; 'd'
loc_3B01:
inc rbp
cmp r15d, ebp
jnz short loc_3AC7
loc_3B09:
mov rdi, rbx; this
mov esi, [rsp+98h+var_94]; unsigned int
call _ZN5Cache5getIdEj; Cache::getId(uint)
mov esi, [rbx+44h]
lea edx, [rax+1]
imul edx, esi; unsigned int
imul esi, eax; unsigned int
mov rdi, rbx; this
call _ZN5Cache21getReplacementBlockIdEjj; Cache::getReplacementBlockId(uint,uint)
mov eax, eax
lea r14, [rax+rax*2]
shl r14, 4
mov rsi, [rbx+50h]
add rsi, r14
lea rdi, [rsp+98h+var_60]
call _ZN5Cache5BlockC2ERKS0_; Cache::Block::Block(Cache::Block const&)
cmp [rsp+98h+var_60], 1
jnz short loc_3B66
cmp [rsp+98h+var_5F], 1
jnz short loc_3B66
lea rsi, [rsp+98h+var_60]
mov rdi, rbx
call _ZN5Cache22writeBlockToLowerLevelERNS_5BlockE; Cache::writeBlockToLowerLevel(Cache::Block &)
mov eax, [rbx+4Ch]
add [rbx+18h], rax
loc_3B66:
lea rsi, [rsp+98h+var_78]
mov rax, [rbx+50h]
mov ecx, [rsi-8]
lea rdi, [rax+r14]
add rdi, 18h
mov [rdi-8], ecx
movups xmm0, xmmword ptr [rsi-18h]
movups xmmword ptr [rdi-18h], xmm0
call _ZNSt6vectorIhSaIhEEaSERKS1_; std::vector<uchar>::operator=(std::vector<uchar> const&)
mov rdi, [rsp+98h+var_48]; void *
test rdi, rdi
jz short loc_3B99
call __ZdlPv; operator delete(void *)
loc_3B99:
mov rdi, [rsp+98h+var_78]; void *
test rdi, rdi
jz short loc_3BA8
call __ZdlPv; operator delete(void *)
loc_3BA8:
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
jmp short loc_3BCE
mov rbx, rax
mov rdi, [rsp+arg_48]; void *
test rdi, rdi
jz short loc_3BCE
call __ZdlPv; operator delete(void *)
loc_3BCE:
mov r12, [rsp+arg_18]
jmp short loc_3BD8
mov rbx, rax
loc_3BD8:
test r12, r12
jz short loc_3BE5
mov rdi, r12; void *
call __ZdlPv; operator delete(void *)
loc_3BE5:
mov rdi, rbx
call __Unwind_Resume
| void Cache::loadBlockFromLowerLevel(
MemoryManager **this,
unsigned int a2,
unsigned int *a3,
double a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11)
{
long long v13; // r15
long long v14; // rdx
long long v15; // r8
long long v16; // r9
__m128 v17; // xmm4
__m128 v18; // xmm5
_BYTE *v19; // r12
__m128 v20; // xmm0
char v21; // cl
unsigned int v22; // eax
bool v23; // cc
unsigned int v24; // eax
long long v25; // rcx
unsigned int v26; // r13d
long long v27; // rbp
Cache *v28; // rdi
int Id; // eax
long long v30; // r14
long long v31; // rdi
char v32; // [rsp+3h] [rbp-95h] BYREF
unsigned int v33; // [rsp+4h] [rbp-94h]
__int128 v34; // [rsp+8h] [rbp-90h]
int v35; // [rsp+18h] [rbp-80h]
void *v36; // [rsp+20h] [rbp-78h]
__m128 v37; // [rsp+28h] [rbp-70h]
_BYTE *v38; // [rsp+38h] [rbp-60h] BYREF
__m128 v39; // [rsp+40h] [rbp-58h]
void *v40; // [rsp+50h] [rbp-48h]
v13 = *((unsigned int *)this + 15);
LOWORD(v34) = 1;
DWORD1(v34) = Cache::getTag((Cache *)this, a2);
DWORD2(v34) = Cache::getId((Cache *)this, a2);
HIDWORD(v34) = v13;
std::vector<unsigned char>::vector(&v38, v13, &v32);
v19 = v38;
v36 = v38;
v20 = v39;
v37 = v39;
if ( v13 )
{
v21 = 0;
if ( (_DWORD)v13 != 1 )
{
LODWORD(v14) = v13;
v22 = v13;
do
{
v22 >>= 1;
++v21;
v23 = (unsigned int)v14 <= 3;
v14 = v22;
}
while ( !v23 );
}
}
else
{
v21 = -1;
}
v33 = a2;
v24 = a2 >> v21 << v21;
v25 = v24 + (unsigned int)v13;
if ( v24 < (unsigned int)v25 )
{
v26 = v24;
v27 = 0LL;
do
{
v28 = this[6];
if ( v28 )
{
v19[v27] = Cache::getByte(v28, v26 + v27, a3);
}
else
{
v19[v27] = MemoryManager::getByteNoCache(
this[5],
v26 + (unsigned int)v27,
v14,
v25,
v15,
v16,
v20,
a5,
a6,
a7,
v17,
v18,
a10,
a11);
if ( a3 )
*a3 = 100;
}
++v27;
}
while ( (_DWORD)v13 != (_DWORD)v27 );
}
Id = Cache::getId((Cache *)this, v33);
v30 = 48LL
* (unsigned int)Cache::getReplacementBlockId(
(Cache *)this,
Id * *((_DWORD *)this + 17),
*((_DWORD *)this + 17) * (Id + 1));
Cache::Block::Block(&v38, (char *)this[10] + v30);
if ( (_WORD)v38 == 257 )
{
Cache::writeBlockToLowerLevel(this, &v38);
this[3] = (MemoryManager *)((char *)this[3] + *((unsigned int *)this + 19));
}
v31 = (long long)this[10] + v30 + 24;
*(_DWORD *)(v31 - 8) = v35;
*(_OWORD *)(v31 - 24) = v34;
std::vector<unsigned char>::operator=();
if ( v40 )
operator delete(v40);
if ( v36 )
operator delete(v36);
}
| loadBlockFromLowerLevel:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV R14,RDX
MOV EBP,ESI
MOV RBX,RDI
MOV R15D,dword ptr [RDI + 0x3c]
MOV word ptr [RSP + 0x8],0x1
CALL 0x00103842
MOV dword ptr [RSP + 0xc],EAX
MOV RDI,RBX
MOV ESI,EBP
CALL 0x001038a6
MOV dword ptr [RSP + 0x10],EAX
MOV dword ptr [RSP + 0x14],R15D
LEA R13,[RSP + 0x38]
LEA RDX,[RSP + 0x3]
MOV RDI,R13
MOV RSI,R15
CALL 0x0010416a
MOV R12,qword ptr [R13]
MOV qword ptr [RSP + 0x20],R12
MOVUPS XMM0,xmmword ptr [R13 + 0x8]
MOVUPS xmmword ptr [RSP + 0x28],XMM0
TEST R15,R15
JZ 0x00103aab
XOR ECX,ECX
CMP R15D,0x1
JZ 0x00103ab0
MOV EDX,R15D
MOV EAX,R15D
LAB_00103a9e:
SHR EAX,0x1
INC ECX
CMP EDX,0x3
MOV EDX,EAX
JA 0x00103a9e
JMP 0x00103ab0
LAB_00103aab:
MOV ECX,0xffffffff
LAB_00103ab0:
MOV dword ptr [RSP + 0x4],EBP
MOV EAX,EBP
SHR EAX,CL
SHL EAX,CL
LEA ECX,[RAX + R15*0x1]
CMP EAX,ECX
JNC 0x00103b09
MOV R13D,EAX
XOR EBP,EBP
LAB_00103ac7:
MOV RDI,qword ptr [RBX + 0x30]
TEST RDI,RDI
JZ 0x00103ae3
LEA ESI,[R13 + RBP*0x1]
LAB_00103ad5:
MOV RDX,R14
CALL 0x00103902
MOV byte ptr [R12 + RBP*0x1],AL
JMP 0x00103b01
LAB_00103ae3:
MOV RDI,qword ptr [RBX + 0x28]
LEA ESI,[R13 + RBP*0x1]
CALL 0x00102f60
MOV byte ptr [R12 + RBP*0x1],AL
TEST R14,R14
JZ 0x00103b01
MOV dword ptr [R14],0x64
LAB_00103b01:
INC RBP
CMP R15D,EBP
JNZ 0x00103ac7
LAB_00103b09:
MOV RDI,RBX
MOV ESI,dword ptr [RSP + 0x4]
CALL 0x001038a6
MOV ESI,dword ptr [RBX + 0x44]
LEA EDX,[RAX + 0x1]
IMUL EDX,ESI
IMUL ESI,EAX
MOV RDI,RBX
CALL 0x00103f44
MOV EAX,EAX
LEA R14,[RAX + RAX*0x2]
SHL R14,0x4
MOV RSI,qword ptr [RBX + 0x50]
ADD RSI,R14
LAB_00103b3a:
LEA RDI,[RSP + 0x38]
CALL 0x001041ca
CMP byte ptr [RSP + 0x38],0x1
JNZ 0x00103b66
CMP byte ptr [RSP + 0x39],0x1
JNZ 0x00103b66
LAB_00103b52:
LEA RSI,[RSP + 0x38]
MOV RDI,RBX
CALL 0x00103f9e
MOV EAX,dword ptr [RBX + 0x4c]
ADD qword ptr [RBX + 0x18],RAX
LAB_00103b66:
LEA RSI,[RSP + 0x20]
MOV RAX,qword ptr [RBX + 0x50]
MOV ECX,dword ptr [RSI + -0x8]
LEA RDI,[RAX + R14*0x1]
ADD RDI,0x18
MOV dword ptr [RDI + -0x8],ECX
MOVUPS XMM0,xmmword ptr [RSI + -0x18]
MOVUPS xmmword ptr [RDI + -0x18],XMM0
CALL 0x0010425a
LAB_00103b8a:
MOV RDI,qword ptr [RSP + 0x50]
TEST RDI,RDI
JZ 0x00103b99
CALL 0x00102150
LAB_00103b99:
MOV RDI,qword ptr [RSP + 0x20]
TEST RDI,RDI
JZ 0x00103ba8
CALL 0x00102150
LAB_00103ba8:
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* Cache::loadBlockFromLowerLevel(unsigned int, unsigned int*) */
void __thiscall Cache::loadBlockFromLowerLevel(Cache *this,uint param_1,uint *param_2)
{
int8 *puVar1;
uint uVar2;
void *pvVar3;
int1 uVar4;
int4 uVar5;
int4 uVar6;
uint uVar7;
int iVar8;
byte bVar9;
allocator *paVar11;
long lVar12;
int2 uStack_8e;
int4 local_80;
void *local_78;
int8 local_70;
int8 uStack_68;
Block local_60;
char cStack_5f;
int6 uStack_5e;
int8 local_58;
int8 uStack_50;
void *local_48;
byte bVar10;
uVar2 = *(uint *)(this + 0x3c);
paVar11 = (allocator *)(ulong)uVar2;
uVar5 = getTag(this,param_1);
uVar6 = getId(this,param_1);
std::vector<unsigned_char,std::allocator<unsigned_char>>::vector((ulong)&local_60,paVar11);
pvVar3 = (void *)CONCAT62(uStack_5e,CONCAT11(cStack_5f,local_60));
local_70 = local_58;
uStack_68 = uStack_50;
if (paVar11 == (allocator *)0x0) {
bVar9 = 0xff;
}
else {
bVar10 = 0;
bVar9 = 0;
if (uVar2 != 1) {
do {
bVar9 = bVar10 + 1;
uVar7 = (uint)paVar11;
paVar11 = (allocator *)((ulong)paVar11 >> 1);
bVar10 = bVar9;
} while (3 < uVar7);
}
}
uVar7 = (param_1 >> (bVar9 & 0x1f)) << (bVar9 & 0x1f);
local_78 = pvVar3;
if (uVar7 < uVar7 + uVar2) {
lVar12 = 0;
do {
if (*(Cache **)(this + 0x30) == (Cache *)0x0) {
uVar4 = MemoryManager::getByteNoCache(*(MemoryManager **)(this + 0x28),uVar7 + (int)lVar12);
*(int1 *)((long)pvVar3 + lVar12) = uVar4;
if (param_2 != (uint *)0x0) {
*param_2 = 100;
}
}
else {
/* try { // try from 00103ad5 to 00103af0 has its CatchHandler @ 00103bd5 */
uVar4 = getByte(*(Cache **)(this + 0x30),uVar7 + (int)lVar12,param_2);
*(int1 *)((long)pvVar3 + lVar12) = uVar4;
}
lVar12 = lVar12 + 1;
} while (uVar2 != (uint)lVar12);
}
iVar8 = getId(this,param_1);
uVar7 = getReplacementBlockId
(this,*(int *)(this + 0x44) * iVar8,(iVar8 + 1) * *(int *)(this + 0x44));
/* try { // try from 00103b3a to 00103b43 has its CatchHandler @ 00103bb7 */
Block::Block(&local_60,(Block *)(*(long *)(this + 0x50) + (ulong)uVar7 * 0x30));
if ((local_60 == (Block)0x1) && (cStack_5f == '\x01')) {
/* try { // try from 00103b52 to 00103b89 has its CatchHandler @ 00103bbc */
writeBlockToLowerLevel(this,&local_60);
*(ulong *)(this + 0x18) = *(long *)(this + 0x18) + (ulong)*(uint *)(this + 0x4c);
}
puVar1 = (int8 *)(*(long *)(this + 0x50) + (ulong)uVar7 * 0x30);
*(int4 *)(puVar1 + 2) = local_80;
*puVar1 = CONCAT44(uVar5,CONCAT22(uStack_8e,1));
puVar1[1] = CONCAT44(uVar2,uVar6);
std::vector<unsigned_char,std::allocator<unsigned_char>>::operator=
((vector<unsigned_char,std::allocator<unsigned_char>> *)(puVar1 + 3),(vector *)&local_78
);
if (local_48 != (void *)0x0) {
operator_delete(local_48);
}
if (local_78 != (void *)0x0) {
operator_delete(local_78);
}
return;
}
| |
30,348 | get_loc_or_ref | bluesky950520[P]quickjs/quickjs.c | static void get_loc_or_ref(DynBuf *bc, BOOL is_ref, int idx)
{
/* if the field is not initialized, the error is catched when
accessing it */
if (is_ref)
dbuf_putc(bc, OP_get_var_ref);
else
dbuf_putc(bc, OP_get_loc);
dbuf_put_u16(bc, idx);
} | O1 | c | get_loc_or_ref:
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rdi, %r14
testl %esi, %esi
movl $0x58, %eax
movl $0x5e, %esi
cmovel %eax, %esi
callq 0x1a8bc
leaq 0x6(%rsp), %rsi
movw %bx, (%rsi)
movl $0x2, %edx
movq %r14, %rdi
callq 0x1a80e
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| get_loc_or_ref:
push r14
push rbx
push rax
mov ebx, edx
mov r14, rdi
test esi, esi
mov eax, 58h ; 'X'
mov esi, 5Eh ; '^'
cmovz esi, eax
call dbuf_putc
lea rsi, [rsp+18h+var_12]
mov [rsi], bx
mov edx, 2
mov rdi, r14
call dbuf_put
add rsp, 8
pop rbx
pop r14
retn
| long long get_loc_or_ref(_QWORD *a1, int a2, __int16 a3)
{
long long v3; // rax
bool v5; // zf
char v6; // si
_WORD v8[9]; // [rsp+0h] [rbp-12h] BYREF
v8[0] = HIWORD(v3);
v5 = a2 == 0;
v6 = 94;
if ( v5 )
v6 = 88;
dbuf_putc(a1, v6);
v8[0] = a3;
return dbuf_put(a1, (long long)v8, 2LL);
}
| get_loc_or_ref:
PUSH R14
PUSH RBX
PUSH RAX
MOV EBX,EDX
MOV R14,RDI
TEST ESI,ESI
MOV EAX,0x58
MOV ESI,0x5e
CMOVZ ESI,EAX
CALL 0x0011a8bc
LEA RSI,[RSP + 0x6]
MOV word ptr [RSI],BX
MOV EDX,0x2
MOV RDI,R14
CALL 0x0011a80e
ADD RSP,0x8
POP RBX
POP R14
RET
|
void get_loc_or_ref(int8 param_1,int param_2,int2 param_3)
{
int8 in_RAX;
int8 uVar1;
int8 uStack_18;
uVar1 = 0x5e;
if (param_2 == 0) {
uVar1 = 0x58;
}
uStack_18 = in_RAX;
dbuf_putc(param_1,uVar1);
uStack_18 = CONCAT26(param_3,(int6)uStack_18);
dbuf_put(param_1,(long)&uStack_18 + 6,2);
return;
}
| |
30,349 | my_dirend | eloqsql/mysys/my_lib.c | void my_dirend(MY_DIR *dir)
{
MY_DIR_HANDLE *dirh= (MY_DIR_HANDLE*) dir;
DBUG_ENTER("my_dirend");
if (dirh)
{
delete_dynamic(&dirh->array);
free_root(&dirh->root, MYF(0));
my_free(dirh);
}
DBUG_VOID_RETURN;
} | O0 | c | my_dirend:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x2e482
movq -0x10(%rbp), %rdi
addq $0x10, %rdi
callq 0x266e0
movq -0x10(%rbp), %rdi
addq $0x38, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x327f0
movq -0x10(%rbp), %rdi
callq 0x274b0
jmp 0x2e484
jmp 0x2e486
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
| my_dirend:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov [rbp+var_10], rax
cmp [rbp+var_10], 0
jz short loc_2E482
mov rdi, [rbp+var_10]
add rdi, 10h
call delete_dynamic
mov rdi, [rbp+var_10]
add rdi, 38h ; '8'
xor eax, eax
mov esi, eax
call free_root
mov rdi, [rbp+var_10]
call my_free
loc_2E482:
jmp short $+2
loc_2E484:
jmp short $+2
loc_2E486:
add rsp, 10h
pop rbp
retn
| long long my_dirend(long long a1)
{
long long result; // rax
result = a1;
if ( a1 )
{
delete_dynamic(a1 + 16);
free_root(a1 + 56, 0LL);
return my_free(a1);
}
return result;
}
| my_dirend:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RAX
CMP qword ptr [RBP + -0x10],0x0
JZ 0x0012e482
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x10
CALL 0x001266e0
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x38
XOR EAX,EAX
MOV ESI,EAX
CALL 0x001327f0
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001274b0
LAB_0012e482:
JMP 0x0012e484
LAB_0012e484:
JMP 0x0012e486
LAB_0012e486:
ADD RSP,0x10
POP RBP
RET
|
void my_dirend(long param_1)
{
if (param_1 != 0) {
delete_dynamic(param_1 + 0x10);
free_root(param_1 + 0x38,0);
my_free(param_1);
}
return;
}
| |
30,350 | my_dirend | eloqsql/mysys/my_lib.c | void my_dirend(MY_DIR *dir)
{
MY_DIR_HANDLE *dirh= (MY_DIR_HANDLE*) dir;
DBUG_ENTER("my_dirend");
if (dirh)
{
delete_dynamic(&dirh->array);
free_root(&dirh->root, MYF(0));
my_free(dirh);
}
DBUG_VOID_RETURN;
} | O3 | c | my_dirend:
testq %rdi, %rdi
je 0x2a674
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
addq $0x10, %rdi
callq 0x25e94
leaq 0x38(%rbx), %rdi
xorl %esi, %esi
callq 0x2cbab
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2662e
retq
| my_dirend:
test rdi, rdi
jz short locret_2A674
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
add rdi, 10h
call delete_dynamic
lea rdi, [rbx+38h]
xor esi, esi
call free_root
mov rdi, rbx
add rsp, 8
pop rbx
pop rbp
jmp my_free
locret_2A674:
retn
| long long my_dirend(long long a1)
{
long long result; // rax
if ( a1 )
{
delete_dynamic((long long *)(a1 + 16));
free_root(a1 + 56, 0LL);
return my_free(a1);
}
return result;
}
| my_dirend:
TEST RDI,RDI
JZ 0x0012a674
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
ADD RDI,0x10
CALL 0x00125e94
LEA RDI,[RBX + 0x38]
XOR ESI,ESI
CALL 0x0012cbab
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x0012662e
LAB_0012a674:
RET
|
void my_dirend(long param_1)
{
if (param_1 != 0) {
delete_dynamic(param_1 + 0x10);
free_root(param_1 + 0x38,0);
my_free(param_1);
return;
}
return;
}
| |
30,351 | my_hash_delete | eloqsql/mysys/hash.c | my_bool my_hash_delete(HASH *hash, uchar *record)
{
uint pos2,idx,empty_index;
my_hash_value_type pos_hashnr, lastpos_hashnr;
size_t blength;
HASH_LINK *data,*lastpos,*gpos,*pos,*pos3,*empty;
DBUG_ENTER("my_hash_delete");
if (!hash->records)
DBUG_RETURN(1);
blength=hash->blength;
data=dynamic_element(&hash->array,0,HASH_LINK*);
/* Search after record with key */
pos= data + my_hash_mask(rec_hashnr(hash, record), blength, hash->records);
gpos = 0;
while (pos->data != record)
{
gpos=pos;
if (pos->next == NO_RECORD)
DBUG_RETURN(1); /* Key not found */
pos=data+pos->next;
}
if ( --(hash->records) < hash->blength >> 1) hash->blength>>=1;
lastpos=data+hash->records;
/* Remove link to record */
empty=pos; empty_index=(uint) (empty-data);
if (gpos)
gpos->next=pos->next; /* unlink current ptr */
else if (pos->next != NO_RECORD)
{
empty=data+(empty_index=pos->next);
pos[0]= empty[0];
}
if (empty == lastpos) /* last key at wrong pos or no next link */
goto exit;
/* Move the last key (lastpos) */
lastpos_hashnr= lastpos->hash_nr;
/* pos is where lastpos should be */
pos= data + my_hash_mask(lastpos_hashnr, hash->blength, hash->records);
if (pos == empty) /* Move to empty position. */
{
empty[0]=lastpos[0];
goto exit;
}
pos_hashnr= pos->hash_nr;
/* pos3 is where the pos should be */
pos3= data + my_hash_mask(pos_hashnr, hash->blength, hash->records);
if (pos != pos3)
{ /* pos is on wrong posit */
empty[0]=pos[0]; /* Save it here */
pos[0]=lastpos[0]; /* This should be here */
movelink(data,(uint) (pos-data),(uint) (pos3-data),empty_index);
goto exit;
}
pos2= my_hash_mask(lastpos_hashnr, blength, hash->records + 1);
if (pos2 == my_hash_mask(pos_hashnr, blength, hash->records + 1))
{ /* Identical key-positions */
if (pos2 != hash->records)
{
empty[0]=lastpos[0];
movelink(data,(uint) (lastpos-data),(uint) (pos-data),empty_index);
goto exit;
}
idx= (uint) (pos-data); /* Link pos->next after lastpos */
}
else idx= NO_RECORD; /* Different positions merge */
empty[0]=lastpos[0];
movelink(data,idx,empty_index,pos->next);
pos->next=empty_index;
exit:
(void) pop_dynamic(&hash->array);
if (hash->free)
(*hash->free)((uchar*) record);
DBUG_RETURN(0);
} | O0 | c | my_hash_delete:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x18(%rax)
jne 0x38939
jmp 0x38930
movb $0x1, -0x1(%rbp)
jmp 0x38cb2
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x38cc0
movl %eax, %edi
movq -0x38(%rbp), %rsi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdx
callq 0x38140
movl %eax, %ecx
movq -0x70(%rbp), %rax
movl %ecx, %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movq $0x0, -0x50(%rbp)
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rax
cmpq -0x18(%rbp), %rax
je 0x389d5
movq -0x58(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x58(%rbp), %rax
cmpl $-0x1, (%rax)
jne 0x389be
jmp 0x389b5
movb $0x1, -0x1(%rbp)
jmp 0x38cb2
movq -0x40(%rbp), %rax
movq -0x58(%rbp), %rcx
movl (%rcx), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
jmp 0x38994
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rax
addq $-0x1, %rax
movq %rax, 0x18(%rcx)
movq -0x10(%rbp), %rcx
movq 0x10(%rcx), %rcx
shrq %rcx
cmpq %rcx, %rax
jae 0x38a04
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
shrq %rcx
movq %rcx, 0x10(%rax)
movq -0x40(%rbp), %rax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
movq -0x40(%rbp), %rcx
subq %rcx, %rax
sarq $0x4, %rax
movl %eax, -0x24(%rbp)
cmpq $0x0, -0x50(%rbp)
je 0x38a4a
movq -0x58(%rbp), %rax
movl (%rax), %ecx
movq -0x50(%rbp), %rax
movl %ecx, (%rax)
jmp 0x38a85
movq -0x58(%rbp), %rax
cmpl $-0x1, (%rax)
je 0x38a83
movq -0x40(%rbp), %rax
movq -0x58(%rbp), %rcx
movl (%rcx), %ecx
movl %ecx, -0x24(%rbp)
movl %ecx, %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x68(%rbp)
movq -0x58(%rbp), %rax
movq -0x68(%rbp), %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
jmp 0x38a85
movq -0x68(%rbp), %rax
cmpq -0x48(%rbp), %rax
jne 0x38a94
jmp 0x38c86
movq -0x48(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x2c(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x78(%rbp)
movl -0x2c(%rbp), %edi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdx
callq 0x38140
movl %eax, %ecx
movq -0x78(%rbp), %rax
movl %ecx, %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
cmpq -0x68(%rbp), %rax
jne 0x38af6
movq -0x68(%rbp), %rax
movq -0x48(%rbp), %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
jmp 0x38c86
movq -0x58(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x28(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x80(%rbp)
movl -0x28(%rbp), %edi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdx
callq 0x38140
movl %eax, %ecx
movq -0x80(%rbp), %rax
movl %ecx, %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
movq -0x58(%rbp), %rax
cmpq -0x60(%rbp), %rax
je 0x38b9c
movq -0x68(%rbp), %rax
movq -0x58(%rbp), %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
movq -0x58(%rbp), %rax
movq -0x48(%rbp), %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
movq -0x40(%rbp), %rdi
movq -0x58(%rbp), %rax
movq -0x40(%rbp), %rcx
subq %rcx, %rax
sarq $0x4, %rax
movl %eax, %esi
movq -0x60(%rbp), %rax
movq -0x40(%rbp), %rcx
subq %rcx, %rax
sarq $0x4, %rax
movl %eax, %edx
movl -0x24(%rbp), %ecx
callq 0x388d0
jmp 0x38c86
movl -0x2c(%rbp), %edi
movq -0x38(%rbp), %rsi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdx
addq $0x1, %rdx
callq 0x38140
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0x84(%rbp)
movl -0x28(%rbp), %edi
movq -0x38(%rbp), %rsi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdx
addq $0x1, %rdx
callq 0x38140
movl %eax, %ecx
movl -0x84(%rbp), %eax
cmpl %ecx, %eax
jne 0x38c4b
movl -0x1c(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpq 0x18(%rcx), %rax
je 0x38c37
movq -0x68(%rbp), %rax
movq -0x48(%rbp), %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rax
movq -0x40(%rbp), %rcx
subq %rcx, %rax
sarq $0x4, %rax
movl %eax, %esi
movq -0x58(%rbp), %rax
movq -0x40(%rbp), %rcx
subq %rcx, %rax
sarq $0x4, %rax
movl %eax, %edx
movl -0x24(%rbp), %ecx
callq 0x388d0
jmp 0x38c86
movq -0x58(%rbp), %rax
movq -0x40(%rbp), %rcx
subq %rcx, %rax
sarq $0x4, %rax
movl %eax, -0x20(%rbp)
jmp 0x38c52
movl $0xffffffff, -0x20(%rbp) # imm = 0xFFFFFFFF
movq -0x68(%rbp), %rax
movq -0x48(%rbp), %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
movq -0x40(%rbp), %rdi
movl -0x20(%rbp), %esi
movl -0x24(%rbp), %edx
movq -0x58(%rbp), %rax
movl (%rax), %ecx
callq 0x388d0
movl -0x24(%rbp), %ecx
movq -0x58(%rbp), %rax
movl %ecx, (%rax)
movq -0x10(%rbp), %rdi
addq $0x28, %rdi
callq 0x32450
movq -0x10(%rbp), %rax
cmpq $0x0, 0x60(%rax)
je 0x38cac
movq -0x10(%rbp), %rax
movq 0x60(%rax), %rax
movq -0x18(%rbp), %rdi
callq *%rax
jmp 0x38cae
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x90, %rsp
popq %rbp
retq
nop
| my_hash_delete:
push rbp
mov rbp, rsp
sub rsp, 90h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
cmp qword ptr [rax+18h], 0
jnz short loc_38939
jmp short $+2
loc_38930:
mov [rbp+var_1], 1
jmp loc_38CB2
loc_38939:
mov rax, [rbp+var_10]
mov rax, [rax+10h]
mov [rbp+var_38], rax
mov rax, [rbp+var_10]
mov rax, [rax+28h]
mov [rbp+var_40], rax
mov rax, [rbp+var_40]
mov [rbp+var_70], rax
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call rec_hashnr
mov edi, eax
mov rsi, [rbp+var_38]
mov rax, [rbp+var_10]
mov rdx, [rax+18h]
call my_hash_mask
mov ecx, eax
mov rax, [rbp+var_70]
mov ecx, ecx
shl rcx, 4
add rax, rcx
mov [rbp+var_58], rax
mov [rbp+var_50], 0
loc_38994:
mov rax, [rbp+var_58]
mov rax, [rax+8]
cmp rax, [rbp+var_18]
jz short loc_389D5
mov rax, [rbp+var_58]
mov [rbp+var_50], rax
mov rax, [rbp+var_58]
cmp dword ptr [rax], 0FFFFFFFFh
jnz short loc_389BE
jmp short $+2
loc_389B5:
mov [rbp+var_1], 1
jmp loc_38CB2
loc_389BE:
mov rax, [rbp+var_40]
mov rcx, [rbp+var_58]
mov ecx, [rcx]
shl rcx, 4
add rax, rcx
mov [rbp+var_58], rax
jmp short loc_38994
loc_389D5:
mov rcx, [rbp+var_10]
mov rax, [rcx+18h]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rcx+18h], rax
mov rcx, [rbp+var_10]
mov rcx, [rcx+10h]
shr rcx, 1
cmp rax, rcx
jnb short loc_38A04
mov rax, [rbp+var_10]
mov rcx, [rax+10h]
shr rcx, 1
mov [rax+10h], rcx
loc_38A04:
mov rax, [rbp+var_40]
mov rcx, [rbp+var_10]
mov rcx, [rcx+18h]
shl rcx, 4
add rax, rcx
mov [rbp+var_48], rax
mov rax, [rbp+var_58]
mov [rbp+var_68], rax
mov rax, [rbp+var_68]
mov rcx, [rbp+var_40]
sub rax, rcx
sar rax, 4
mov [rbp+var_24], eax
cmp [rbp+var_50], 0
jz short loc_38A4A
mov rax, [rbp+var_58]
mov ecx, [rax]
mov rax, [rbp+var_50]
mov [rax], ecx
jmp short loc_38A85
loc_38A4A:
mov rax, [rbp+var_58]
cmp dword ptr [rax], 0FFFFFFFFh
jz short loc_38A83
mov rax, [rbp+var_40]
mov rcx, [rbp+var_58]
mov ecx, [rcx]
mov [rbp+var_24], ecx
mov ecx, ecx
shl rcx, 4
add rax, rcx
mov [rbp+var_68], rax
mov rax, [rbp+var_58]
mov rcx, [rbp+var_68]
mov rdx, [rcx]
mov [rax], rdx
mov rcx, [rcx+8]
mov [rax+8], rcx
loc_38A83:
jmp short $+2
loc_38A85:
mov rax, [rbp+var_68]
cmp rax, [rbp+var_48]
jnz short loc_38A94
jmp loc_38C86
loc_38A94:
mov rax, [rbp+var_48]
mov eax, [rax+4]
mov [rbp+var_2C], eax
mov rax, [rbp+var_40]
mov [rbp+var_78], rax
mov edi, [rbp+var_2C]
mov rax, [rbp+var_10]
mov rsi, [rax+10h]
mov rax, [rbp+var_10]
mov rdx, [rax+18h]
call my_hash_mask
mov ecx, eax
mov rax, [rbp+var_78]
mov ecx, ecx
shl rcx, 4
add rax, rcx
mov [rbp+var_58], rax
mov rax, [rbp+var_58]
cmp rax, [rbp+var_68]
jnz short loc_38AF6
mov rax, [rbp+var_68]
mov rcx, [rbp+var_48]
mov rdx, [rcx]
mov [rax], rdx
mov rcx, [rcx+8]
mov [rax+8], rcx
jmp loc_38C86
loc_38AF6:
mov rax, [rbp+var_58]
mov eax, [rax+4]
mov [rbp+var_28], eax
mov rax, [rbp+var_40]
mov [rbp+var_80], rax
mov edi, [rbp+var_28]
mov rax, [rbp+var_10]
mov rsi, [rax+10h]
mov rax, [rbp+var_10]
mov rdx, [rax+18h]
call my_hash_mask
mov ecx, eax
mov rax, [rbp+var_80]
mov ecx, ecx
shl rcx, 4
add rax, rcx
mov [rbp+var_60], rax
mov rax, [rbp+var_58]
cmp rax, [rbp+var_60]
jz short loc_38B9C
mov rax, [rbp+var_68]
mov rcx, [rbp+var_58]
mov rdx, [rcx]
mov [rax], rdx
mov rcx, [rcx+8]
mov [rax+8], rcx
mov rax, [rbp+var_58]
mov rcx, [rbp+var_48]
mov rdx, [rcx]
mov [rax], rdx
mov rcx, [rcx+8]
mov [rax+8], rcx
mov rdi, [rbp+var_40]
mov rax, [rbp+var_58]
mov rcx, [rbp+var_40]
sub rax, rcx
sar rax, 4
mov esi, eax
mov rax, [rbp+var_60]
mov rcx, [rbp+var_40]
sub rax, rcx
sar rax, 4
mov edx, eax
mov ecx, [rbp+var_24]
call movelink
jmp loc_38C86
loc_38B9C:
mov edi, [rbp+var_2C]
mov rsi, [rbp+var_38]
mov rax, [rbp+var_10]
mov rdx, [rax+18h]
add rdx, 1
call my_hash_mask
mov [rbp+var_1C], eax
mov eax, [rbp+var_1C]
mov [rbp+var_84], eax
mov edi, [rbp+var_28]
mov rsi, [rbp+var_38]
mov rax, [rbp+var_10]
mov rdx, [rax+18h]
add rdx, 1
call my_hash_mask
mov ecx, eax
mov eax, [rbp+var_84]
cmp eax, ecx
jnz short loc_38C4B
mov eax, [rbp+var_1C]
mov rcx, [rbp+var_10]
cmp rax, [rcx+18h]
jz short loc_38C37
mov rax, [rbp+var_68]
mov rcx, [rbp+var_48]
mov rdx, [rcx]
mov [rax], rdx
mov rcx, [rcx+8]
mov [rax+8], rcx
mov rdi, [rbp+var_40]
mov rax, [rbp+var_48]
mov rcx, [rbp+var_40]
sub rax, rcx
sar rax, 4
mov esi, eax
mov rax, [rbp+var_58]
mov rcx, [rbp+var_40]
sub rax, rcx
sar rax, 4
mov edx, eax
mov ecx, [rbp+var_24]
call movelink
jmp short loc_38C86
loc_38C37:
mov rax, [rbp+var_58]
mov rcx, [rbp+var_40]
sub rax, rcx
sar rax, 4
mov [rbp+var_20], eax
jmp short loc_38C52
loc_38C4B:
mov [rbp+var_20], 0FFFFFFFFh
loc_38C52:
mov rax, [rbp+var_68]
mov rcx, [rbp+var_48]
mov rdx, [rcx]
mov [rax], rdx
mov rcx, [rcx+8]
mov [rax+8], rcx
mov rdi, [rbp+var_40]
mov esi, [rbp+var_20]
mov edx, [rbp+var_24]
mov rax, [rbp+var_58]
mov ecx, [rax]
call movelink
mov ecx, [rbp+var_24]
mov rax, [rbp+var_58]
mov [rax], ecx
loc_38C86:
mov rdi, [rbp+var_10]
add rdi, 28h ; '('
call pop_dynamic
mov rax, [rbp+var_10]
cmp qword ptr [rax+60h], 0
jz short loc_38CAC
mov rax, [rbp+var_10]
mov rax, [rax+60h]
mov rdi, [rbp+var_18]
call rax
loc_38CAC:
jmp short $+2
loc_38CAE:
mov [rbp+var_1], 0
loc_38CB2:
mov al, [rbp+var_1]
add rsp, 90h
pop rbp
retn
| char my_hash_delete(long long a1, long long a2)
{
unsigned int v2; // eax
unsigned long long v3; // rax
_QWORD *v5; // [rsp+28h] [rbp-68h]
long long v6; // [rsp+30h] [rbp-60h]
unsigned int *v7; // [rsp+38h] [rbp-58h]
long long v8; // [rsp+38h] [rbp-58h]
_DWORD *v9; // [rsp+40h] [rbp-50h]
long long v10; // [rsp+48h] [rbp-48h]
long long v11; // [rsp+50h] [rbp-40h]
unsigned long long v12; // [rsp+58h] [rbp-38h]
unsigned int v13; // [rsp+64h] [rbp-2Ch]
unsigned int v14; // [rsp+68h] [rbp-28h]
unsigned int v15; // [rsp+6Ch] [rbp-24h]
int v16; // [rsp+70h] [rbp-20h]
int v17; // [rsp+74h] [rbp-1Ch]
if ( !*(_QWORD *)(a1 + 24) )
return 1;
v12 = *(_QWORD *)(a1 + 16);
v11 = *(_QWORD *)(a1 + 40);
v2 = rec_hashnr(a1, a2);
v7 = (unsigned int *)(16LL * (unsigned int)my_hash_mask(v2, v12, *(_QWORD *)(a1 + 24)) + v11);
v9 = 0LL;
while ( *((_QWORD *)v7 + 1) != a2 )
{
v9 = v7;
if ( *v7 == -1 )
return 1;
v7 = (unsigned int *)(16LL * *v7 + v11);
}
v3 = *(_QWORD *)(a1 + 24) - 1LL;
*(_QWORD *)(a1 + 24) = v3;
if ( v3 < *(_QWORD *)(a1 + 16) >> 1 )
*(_QWORD *)(a1 + 16) >>= 1;
v10 = 16LL * *(_QWORD *)(a1 + 24) + v11;
v5 = v7;
v15 = ((long long)v7 - v11) >> 4;
if ( v9 )
{
*v9 = *v7;
}
else if ( *v7 != -1 )
{
v15 = *v7;
v5 = (_QWORD *)(16LL * *v7 + v11);
*(_QWORD *)v7 = *v5;
*((_QWORD *)v7 + 1) = v5[1];
}
if ( v5 != (_QWORD *)v10 )
{
v13 = *(_DWORD *)(v10 + 4);
v8 = 16LL * (unsigned int)my_hash_mask(v13, *(_QWORD *)(a1 + 16), *(_QWORD *)(a1 + 24)) + v11;
if ( (_QWORD *)v8 == v5 )
{
*v5 = *(_QWORD *)v10;
v5[1] = *(_QWORD *)(v10 + 8);
}
else
{
v14 = *(_DWORD *)(v8 + 4);
v6 = 16LL * (unsigned int)my_hash_mask(v14, *(_QWORD *)(a1 + 16), *(_QWORD *)(a1 + 24)) + v11;
if ( v8 == v6 )
{
v17 = my_hash_mask(v13, v12, *(_QWORD *)(a1 + 24) + 1LL);
if ( v17 == (unsigned int)my_hash_mask(v14, v12, *(_QWORD *)(a1 + 24) + 1LL) )
{
if ( v17 != *(_QWORD *)(a1 + 24) )
{
*v5 = *(_QWORD *)v10;
v5[1] = *(_QWORD *)(v10 + 8);
movelink(v11, (v10 - v11) >> 4, (v8 - v11) >> 4, v15);
goto LABEL_25;
}
v16 = (v8 - v11) >> 4;
}
else
{
v16 = -1;
}
*v5 = *(_QWORD *)v10;
v5[1] = *(_QWORD *)(v10 + 8);
movelink(v11, v16, v15, *(_DWORD *)v8);
*(_DWORD *)v8 = v15;
goto LABEL_25;
}
*v5 = *(_QWORD *)v8;
v5[1] = *(_QWORD *)(v8 + 8);
*(_QWORD *)v8 = *(_QWORD *)v10;
*(_QWORD *)(v8 + 8) = *(_QWORD *)(v10 + 8);
movelink(v11, (v8 - v11) >> 4, (v6 - v11) >> 4, v15);
}
}
LABEL_25:
pop_dynamic((long long *)(a1 + 40));
if ( *(_QWORD *)(a1 + 96) )
(*(void ( **)(long long))(a1 + 96))(a2);
return 0;
}
| my_hash_delete:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x18],0x0
JNZ 0x00138939
JMP 0x00138930
LAB_00138930:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00138cb2
LAB_00138939:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x70],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x00138cc0
MOV EDI,EAX
MOV RSI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX + 0x18]
CALL 0x00138140
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x70]
MOV ECX,ECX
SHL RCX,0x4
ADD RAX,RCX
MOV qword ptr [RBP + -0x58],RAX
MOV qword ptr [RBP + -0x50],0x0
LAB_00138994:
MOV RAX,qword ptr [RBP + -0x58]
MOV RAX,qword ptr [RAX + 0x8]
CMP RAX,qword ptr [RBP + -0x18]
JZ 0x001389d5
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x58]
CMP dword ptr [RAX],-0x1
JNZ 0x001389be
JMP 0x001389b5
LAB_001389b5:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00138cb2
LAB_001389be:
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x58]
MOV ECX,dword ptr [RCX]
SHL RCX,0x4
ADD RAX,RCX
MOV qword ptr [RBP + -0x58],RAX
JMP 0x00138994
LAB_001389d5:
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RCX + 0x18]
ADD RAX,-0x1
MOV qword ptr [RCX + 0x18],RAX
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x10]
SHR RCX,0x1
CMP RAX,RCX
JNC 0x00138a04
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x10]
SHR RCX,0x1
MOV qword ptr [RAX + 0x10],RCX
LAB_00138a04:
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x18]
SHL RCX,0x4
ADD RAX,RCX
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,qword ptr [RBP + -0x68]
MOV RCX,qword ptr [RBP + -0x40]
SUB RAX,RCX
SAR RAX,0x4
MOV dword ptr [RBP + -0x24],EAX
CMP qword ptr [RBP + -0x50],0x0
JZ 0x00138a4a
MOV RAX,qword ptr [RBP + -0x58]
MOV ECX,dword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x50]
MOV dword ptr [RAX],ECX
JMP 0x00138a85
LAB_00138a4a:
MOV RAX,qword ptr [RBP + -0x58]
CMP dword ptr [RAX],-0x1
JZ 0x00138a83
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x58]
MOV ECX,dword ptr [RCX]
MOV dword ptr [RBP + -0x24],ECX
MOV ECX,ECX
SHL RCX,0x4
ADD RAX,RCX
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RBP + -0x68]
MOV RDX,qword ptr [RCX]
MOV qword ptr [RAX],RDX
MOV RCX,qword ptr [RCX + 0x8]
MOV qword ptr [RAX + 0x8],RCX
LAB_00138a83:
JMP 0x00138a85
LAB_00138a85:
MOV RAX,qword ptr [RBP + -0x68]
CMP RAX,qword ptr [RBP + -0x48]
JNZ 0x00138a94
JMP 0x00138c86
LAB_00138a94:
MOV RAX,qword ptr [RBP + -0x48]
MOV EAX,dword ptr [RAX + 0x4]
MOV dword ptr [RBP + -0x2c],EAX
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x78],RAX
MOV EDI,dword ptr [RBP + -0x2c]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX + 0x18]
CALL 0x00138140
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x78]
MOV ECX,ECX
SHL RCX,0x4
ADD RAX,RCX
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x58]
CMP RAX,qword ptr [RBP + -0x68]
JNZ 0x00138af6
MOV RAX,qword ptr [RBP + -0x68]
MOV RCX,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RCX]
MOV qword ptr [RAX],RDX
MOV RCX,qword ptr [RCX + 0x8]
MOV qword ptr [RAX + 0x8],RCX
JMP 0x00138c86
LAB_00138af6:
MOV RAX,qword ptr [RBP + -0x58]
MOV EAX,dword ptr [RAX + 0x4]
MOV dword ptr [RBP + -0x28],EAX
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x80],RAX
MOV EDI,dword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX + 0x18]
CALL 0x00138140
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x80]
MOV ECX,ECX
SHL RCX,0x4
ADD RAX,RCX
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x58]
CMP RAX,qword ptr [RBP + -0x60]
JZ 0x00138b9c
MOV RAX,qword ptr [RBP + -0x68]
MOV RCX,qword ptr [RBP + -0x58]
MOV RDX,qword ptr [RCX]
MOV qword ptr [RAX],RDX
MOV RCX,qword ptr [RCX + 0x8]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RCX]
MOV qword ptr [RAX],RDX
MOV RCX,qword ptr [RCX + 0x8]
MOV qword ptr [RAX + 0x8],RCX
MOV RDI,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RBP + -0x40]
SUB RAX,RCX
SAR RAX,0x4
MOV ESI,EAX
MOV RAX,qword ptr [RBP + -0x60]
MOV RCX,qword ptr [RBP + -0x40]
SUB RAX,RCX
SAR RAX,0x4
MOV EDX,EAX
MOV ECX,dword ptr [RBP + -0x24]
CALL 0x001388d0
JMP 0x00138c86
LAB_00138b9c:
MOV EDI,dword ptr [RBP + -0x2c]
MOV RSI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX + 0x18]
ADD RDX,0x1
CALL 0x00138140
MOV dword ptr [RBP + -0x1c],EAX
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x84],EAX
MOV EDI,dword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX + 0x18]
ADD RDX,0x1
CALL 0x00138140
MOV ECX,EAX
MOV EAX,dword ptr [RBP + -0x84]
CMP EAX,ECX
JNZ 0x00138c4b
MOV EAX,dword ptr [RBP + -0x1c]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x18]
JZ 0x00138c37
MOV RAX,qword ptr [RBP + -0x68]
MOV RCX,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RCX]
MOV qword ptr [RAX],RDX
MOV RCX,qword ptr [RCX + 0x8]
MOV qword ptr [RAX + 0x8],RCX
MOV RDI,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RBP + -0x40]
SUB RAX,RCX
SAR RAX,0x4
MOV ESI,EAX
MOV RAX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RBP + -0x40]
SUB RAX,RCX
SAR RAX,0x4
MOV EDX,EAX
MOV ECX,dword ptr [RBP + -0x24]
CALL 0x001388d0
JMP 0x00138c86
LAB_00138c37:
MOV RAX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RBP + -0x40]
SUB RAX,RCX
SAR RAX,0x4
MOV dword ptr [RBP + -0x20],EAX
JMP 0x00138c52
LAB_00138c4b:
MOV dword ptr [RBP + -0x20],0xffffffff
LAB_00138c52:
MOV RAX,qword ptr [RBP + -0x68]
MOV RCX,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RCX]
MOV qword ptr [RAX],RDX
MOV RCX,qword ptr [RCX + 0x8]
MOV qword ptr [RAX + 0x8],RCX
MOV RDI,qword ptr [RBP + -0x40]
MOV ESI,dword ptr [RBP + -0x20]
MOV EDX,dword ptr [RBP + -0x24]
MOV RAX,qword ptr [RBP + -0x58]
MOV ECX,dword ptr [RAX]
CALL 0x001388d0
MOV ECX,dword ptr [RBP + -0x24]
MOV RAX,qword ptr [RBP + -0x58]
MOV dword ptr [RAX],ECX
LAB_00138c86:
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x28
CALL 0x00132450
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x60],0x0
JZ 0x00138cac
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x60]
MOV RDI,qword ptr [RBP + -0x18]
CALL RAX
LAB_00138cac:
JMP 0x00138cae
LAB_00138cae:
MOV byte ptr [RBP + -0x1],0x0
LAB_00138cb2:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x90
POP RBP
RET
|
int1 my_hash_delete(long param_1,long param_2)
{
int8 uVar1;
long lVar2;
int4 uVar3;
uint uVar4;
uint uVar5;
uint uVar6;
ulong uVar7;
uint *puVar8;
uint *puVar9;
uint *puVar10;
uint *local_70;
uint *local_60;
uint *local_58;
uint local_2c;
int4 local_28;
if (*(long *)(param_1 + 0x18) == 0) {
return 1;
}
uVar1 = *(int8 *)(param_1 + 0x10);
lVar2 = *(long *)(param_1 + 0x28);
uVar3 = rec_hashnr(param_1,param_2);
uVar4 = my_hash_mask(uVar3,uVar1,*(int8 *)(param_1 + 0x18));
local_58 = (uint *)0x0;
while (local_60 = (uint *)(lVar2 + (ulong)uVar4 * 0x10), *(long *)(local_60 + 2) != param_2) {
local_58 = local_60;
if (*local_60 == 0xffffffff) {
return 1;
}
uVar4 = *local_60;
}
uVar7 = *(long *)(param_1 + 0x18) - 1;
*(ulong *)(param_1 + 0x18) = uVar7;
if (uVar7 < *(ulong *)(param_1 + 0x10) >> 1) {
*(ulong *)(param_1 + 0x10) = *(ulong *)(param_1 + 0x10) >> 1;
}
puVar8 = (uint *)(lVar2 + *(long *)(param_1 + 0x18) * 0x10);
local_70 = local_60;
local_2c = (uint)((long)local_60 - lVar2 >> 4);
if (local_58 == (uint *)0x0) {
if (*local_60 != 0xffffffff) {
local_2c = *local_60;
local_70 = (uint *)(lVar2 + (ulong)local_2c * 0x10);
*(int8 *)local_60 = *(int8 *)local_70;
*(int8 *)(local_60 + 2) = *(int8 *)(local_70 + 2);
}
}
else {
*local_58 = *local_60;
}
if (local_70 != puVar8) {
uVar4 = puVar8[1];
uVar5 = my_hash_mask(uVar4,*(int8 *)(param_1 + 0x10),*(int8 *)(param_1 + 0x18));
puVar9 = (uint *)(lVar2 + (ulong)uVar5 * 0x10);
if (puVar9 == local_70) {
*(int8 *)local_70 = *(int8 *)puVar8;
*(int8 *)(local_70 + 2) = *(int8 *)(puVar8 + 2);
}
else {
uVar5 = puVar9[1];
uVar6 = my_hash_mask(uVar5,*(int8 *)(param_1 + 0x10),*(int8 *)(param_1 + 0x18));
puVar10 = (uint *)(lVar2 + (ulong)uVar6 * 0x10);
if (puVar9 == puVar10) {
uVar4 = my_hash_mask(uVar4,uVar1,*(long *)(param_1 + 0x18) + 1);
uVar5 = my_hash_mask(uVar5,uVar1,*(long *)(param_1 + 0x18) + 1);
if (uVar4 == uVar5) {
if ((ulong)uVar4 != *(ulong *)(param_1 + 0x18)) {
*(int8 *)local_70 = *(int8 *)puVar8;
*(int8 *)(local_70 + 2) = *(int8 *)(puVar8 + 2);
movelink(lVar2,(long)puVar8 - lVar2 >> 4 & 0xffffffff,
(long)puVar9 - lVar2 >> 4 & 0xffffffff,local_2c);
goto LAB_00138c86;
}
local_28 = (int4)((long)puVar9 - lVar2 >> 4);
}
else {
local_28 = 0xffffffff;
}
*(int8 *)local_70 = *(int8 *)puVar8;
*(int8 *)(local_70 + 2) = *(int8 *)(puVar8 + 2);
movelink(lVar2,local_28,local_2c,*puVar9);
*puVar9 = local_2c;
}
else {
*(int8 *)local_70 = *(int8 *)puVar9;
*(int8 *)(local_70 + 2) = *(int8 *)(puVar9 + 2);
*(int8 *)puVar9 = *(int8 *)puVar8;
*(int8 *)(puVar9 + 2) = *(int8 *)(puVar8 + 2);
movelink(lVar2,(long)puVar9 - lVar2 >> 4 & 0xffffffff,
(long)puVar10 - lVar2 >> 4 & 0xffffffff,local_2c);
}
}
}
LAB_00138c86:
pop_dynamic(param_1 + 0x28);
if (*(long *)(param_1 + 0x60) != 0) {
(**(code **)(param_1 + 0x60))(param_2);
}
return 0;
}
| |
30,352 | coro::detail::when_all_task<unsigned long&&> coro::detail::make_when_all_task<coro::task<unsigned long>, unsigned long&&>(coro::task<unsigned long>) (.destroy) | AlayaLite/build_O3/_deps/libcoro-src/include/coro/when_all.hpp | static auto make_when_all_task(awaitable a) -> when_all_task<return_type>
{
if constexpr (std::is_void_v<return_type>)
{
co_await static_cast<awaitable&&>(a);
co_return;
}
else
{
co_yield co_await static_cast<awaitable&&>(a);
}
} | O3 | cpp | coro::detail::when_all_task<unsigned long&&> coro::detail::make_when_all_task<coro::task<unsigned long>, unsigned long&&>(coro::task<unsigned long>) (.destroy):
pushq %rbx
movq %rdi, %rbx
cmpq $0x0, 0x18(%rdi)
je 0x2ad3
leaq 0x18(%rbx), %rdi
callq 0x2130
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0x2adf
callq *0x8(%rdi)
movl $0x40, %esi
movq %rbx, %rdi
popq %rbx
jmp 0x2180
movq %rax, %rdi
callq 0x31de
nop
| _ZN4coro6detailL18make_when_all_taskITkNS_8concepts9awaitableENS_4taskImEEOmEENS0_13when_all_taskIT0_EET__destroy:
push rbx
mov rbx, rdi
cmp qword ptr [rdi+18h], 0
jz short loc_2AD3
lea rdi, [rbx+18h]; this
call __ZNSt15__exception_ptr13exception_ptr10_M_releaseEv; std::__exception_ptr::exception_ptr::_M_release(void)
loc_2AD3:
mov rdi, [rbx+30h]
test rdi, rdi
jz short loc_2ADF
call qword ptr [rdi+8]
loc_2ADF:
mov esi, 40h ; '@'; unsigned __int64
mov rdi, rbx; void *
pop rbx
jmp __ZdlPvm; operator delete(void *,ulong)
mov rdi, rax
call __clang_call_terminate
| void ZN4coro6detailL18make_when_all_taskITkNS_8concepts9awaitableENS_4taskImEEOmEENS0_13when_all_taskIT0_EET__destroy(
_QWORD *a1)
{
long long v2; // rdi
if ( a1[3] )
std::__exception_ptr::exception_ptr::_M_release((std::__exception_ptr::exception_ptr *)(a1 + 3));
v2 = a1[6];
if ( v2 )
(*(void (**)(void))(v2 + 8))();
operator delete(a1, 0x40uLL);
}
| _ZN4coro6detailL18make_when_all_taskITkNS_8concepts9awaitableENS_4taskImEEOmEENS0_13when_all_taskIT0_EET_.destroy:
PUSH RBX
MOV RBX,RDI
CMP qword ptr [RDI + 0x18],0x0
JZ 0x00102ad3
LEA RDI,[RBX + 0x18]
CALL 0x00102130
LAB_00102ad3:
MOV RDI,qword ptr [RBX + 0x30]
TEST RDI,RDI
JZ 0x00102adf
LAB_00102adc:
CALL qword ptr [RDI + 0x8]
LAB_00102adf:
MOV ESI,0x40
MOV RDI,RBX
POP RBX
JMP 0x00102180
|
void _ZN4coro6detailL18make_when_all_taskITkNS_8concepts9awaitableENS_4taskImEEOmEENS0_13when_all_taskIT0_EET__destroy
(void *param_1)
{
if (*(long *)((long)param_1 + 0x18) != 0) {
std::__exception_ptr::exception_ptr::_M_release();
}
if (*(long *)((long)param_1 + 0x30) != 0) {
/* try { // try from 00102adc to 00102ade has its CatchHandler @ 00102aed */
(**(code **)(*(long *)((long)param_1 + 0x30) + 8))();
}
operator_delete(param_1,0x40);
return;
}
| |
30,353 | handler::ha_index_read_map(unsigned char*, unsigned char const*, unsigned long, ha_rkey_function) | eloqsql/sql/handler.cc | int handler::ha_index_read_map(uchar *buf, const uchar *key,
key_part_map keypart_map,
enum ha_rkey_function find_flag)
{
int result;
DBUG_ENTER("handler::ha_index_read_map");
DBUG_ASSERT(table_share->tmp_table != NO_TMP_TABLE ||
m_lock_type != F_UNLCK);
DBUG_ASSERT(inited==INDEX);
TABLE_IO_WAIT(tracker, PSI_TABLE_FETCH_ROW, active_index, result,
{ result= index_read_map(buf, key, keypart_map, find_flag); })
increment_statistics(&SSV::ha_read_key_count);
if (!result)
{
update_index_statistics();
if (table->vfield && buf == table->record[0])
table->update_virtual_fields(this, VCOL_UPDATE_FOR_READ);
}
table->status=result ? STATUS_NOT_FOUND: 0;
DBUG_RETURN(result);
} | O0 | cpp | handler::ha_index_read_map(unsigned char*, unsigned char const*, unsigned long, ha_rkey_function):
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x80(%rbp)
jmp 0xc1f149
jmp 0xc1f14b
jmp 0xc1f14d
movq -0x80(%rbp), %rax
movq 0x418(%rax), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
je 0xc1f17a
movq -0x80(%rbp), %rax
movq 0x418(%rax), %rdi
movq 0x10(%rax), %rax
movq 0x48(%rax), %rsi
callq 0x97e380
movq -0x80(%rbp), %rax
cmpq $0x0, 0x478(%rax)
je 0xc1f328
movq -0x80(%rbp), %rax
movl 0x480(%rax), %eax
movl %eax, -0x84(%rbp)
testl %eax, %eax
je 0xc1f1c7
jmp 0xc1f1a2
movl -0x84(%rbp), %eax
subl $0x1, %eax
je 0xc1f252
jmp 0xc1f1b3
movl -0x84(%rbp), %eax
subl $0x2, %eax
je 0xc1f2e2
jmp 0xc1f2e4
movq -0x80(%rbp), %rcx
movq $0x0, -0x38(%rbp)
leaq 0xeef2f6(%rip), %rax # 0x1b0e4d0
movq (%rax), %rax
movq 0x1d0(%rax), %rax
movq 0x478(%rcx), %rsi
movl 0x19c(%rcx), %ecx
leaq -0x78(%rbp), %rdi
xorl %edx, %edx
leaq 0x7b5f55(%rip), %r8 # 0x13d5153
movl $0xdae, %r9d # imm = 0xDAE
callq *%rax
movq -0x80(%rbp), %rdi
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %r8d
movq (%rdi), %rax
callq *0x170(%rax)
movl %eax, -0x28(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0xc1f24d
leaq 0xeef298(%rip), %rax # 0x1b0e4d0
movq (%rax), %rax
movq 0x1d8(%rax), %rax
movq -0x38(%rbp), %rdi
movl $0x1, %esi
callq *%rax
jmp 0xc1f326
movq -0x80(%rbp), %rcx
leaq 0xeef273(%rip), %rax # 0x1b0e4d0
movq (%rax), %rax
movq 0x1d0(%rax), %rax
movq %rcx, %rdi
addq $0x498, %rdi # imm = 0x498
movq 0x478(%rcx), %rsi
movl 0x19c(%rcx), %ecx
xorl %edx, %edx
leaq 0x7b5ecc(%rip), %r8 # 0x13d5153
movl $0xdae, %r9d # imm = 0xDAE
callq *%rax
movq -0x80(%rbp), %rdi
movq %rax, 0x490(%rdi)
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %r8d
movq (%rdi), %rax
callq *0x170(%rax)
movl %eax, -0x28(%rbp)
cmpl $0x0, -0x28(%rbp)
jne 0xc1f2d2
movq -0x80(%rbp), %rax
movq 0x488(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x488(%rax)
movq -0x80(%rbp), %rax
movl $0x2, 0x480(%rax)
jmp 0xc1f326
jmp 0xc1f2e4
jmp 0xc1f2e6
jmp 0xc1f2e8
movq -0x80(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %r8d
movq (%rdi), %rax
callq *0x170(%rax)
movl %eax, -0x28(%rbp)
cmpl $0x0, -0x28(%rbp)
jne 0xc1f324
movq -0x80(%rbp), %rax
movq 0x488(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x488(%rax)
jmp 0xc1f326
jmp 0xc1f348
movq -0x80(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %r8d
movq (%rdi), %rax
callq *0x170(%rax)
movl %eax, -0x28(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0xc1f367
movq -0x80(%rbp), %rax
movq 0x418(%rax), %rdi
movq 0x10(%rax), %rax
movq 0x48(%rax), %rsi
callq 0x983f90
movq -0x80(%rbp), %rdi
movl $0x5a0, %esi # imm = 0x5A0
callq 0x983f40
cmpl $0x0, -0x28(%rbp)
jne 0xc1f3b9
movq -0x80(%rbp), %rdi
callq 0xc2c7d0
movq -0x80(%rbp), %rax
movq 0x10(%rax), %rax
cmpq $0x0, 0xb8(%rax)
je 0xc1f3b7
movq -0x80(%rbp), %rcx
movq -0x10(%rbp), %rax
movq 0x10(%rcx), %rcx
cmpq 0x50(%rcx), %rax
jne 0xc1f3b7
movq -0x80(%rbp), %rsi
movq 0x10(%rsi), %rdi
xorl %edx, %edx
callq 0xa1b450
jmp 0xc1f3b9
movq -0x80(%rbp), %rax
movl -0x28(%rbp), %esi
xorl %ecx, %ecx
movl $0x2, %edx
cmpl $0x0, %esi
cmovnel %edx, %ecx
movq 0x10(%rax), %rax
movl %ecx, 0x290(%rax)
movl -0x28(%rbp), %eax
addq $0x90, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ZN7handler17ha_index_read_mapEPhPKhm16ha_rkey_function:
push rbp
mov rbp, rsp
sub rsp, 90h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_24], r8d
mov rax, [rbp+var_8]
mov [rbp+var_80], rax
jmp short $+2
loc_C1F149:
jmp short $+2
loc_C1F14B:
jmp short $+2
loc_C1F14D:
mov rax, [rbp+var_80]
mov rax, [rax+418h]
mov [rbp+var_30], rax
cmp rax, 0
jz short loc_C1F17A
mov rax, [rbp+var_80]
mov rdi, [rax+418h]; this
mov rax, [rax+10h]
mov rsi, [rax+48h]; THD *
call _ZN17Exec_time_tracker14start_trackingEP3THD; Exec_time_tracker::start_tracking(THD *)
loc_C1F17A:
mov rax, [rbp+var_80]
cmp qword ptr [rax+478h], 0
jz loc_C1F328
mov rax, [rbp+var_80]
mov eax, [rax+480h]
mov [rbp+var_84], eax
test eax, eax
jz short loc_C1F1C7
jmp short $+2
loc_C1F1A2:
mov eax, [rbp+var_84]
sub eax, 1
jz loc_C1F252
jmp short $+2
loc_C1F1B3:
mov eax, [rbp+var_84]
sub eax, 2
jz loc_C1F2E2
jmp loc_C1F2E4
loc_C1F1C7:
mov rcx, [rbp+var_80]
mov [rbp+var_38], 0
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1D0h]
mov rsi, [rcx+478h]
mov ecx, [rcx+19Ch]
lea rdi, [rbp+var_78]
xor edx, edx
lea r8, aWorkspaceLlm4b_96; "/workspace/llm4binary/github2025/eloqsq"...
mov r9d, 0DAEh
call rax
mov rdi, [rbp+var_80]
mov [rbp+var_38], rax
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
mov r8d, [rbp+var_24]
mov rax, [rdi]
call qword ptr [rax+170h]
mov [rbp+var_28], eax
cmp [rbp+var_38], 0
jz short loc_C1F24D
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1D8h]
mov rdi, [rbp+var_38]
mov esi, 1
call rax
loc_C1F24D:
jmp loc_C1F326
loc_C1F252:
mov rcx, [rbp+var_80]
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1D0h]
mov rdi, rcx
add rdi, 498h
mov rsi, [rcx+478h]
mov ecx, [rcx+19Ch]
xor edx, edx
lea r8, aWorkspaceLlm4b_96; "/workspace/llm4binary/github2025/eloqsq"...
mov r9d, 0DAEh
call rax
mov rdi, [rbp+var_80]
mov [rdi+490h], rax
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
mov r8d, [rbp+var_24]
mov rax, [rdi]
call qword ptr [rax+170h]
mov [rbp+var_28], eax
cmp [rbp+var_28], 0
jnz short loc_C1F2D2
mov rax, [rbp+var_80]
mov rcx, [rax+488h]
add rcx, 1
mov [rax+488h], rcx
loc_C1F2D2:
mov rax, [rbp+var_80]
mov dword ptr [rax+480h], 2
jmp short loc_C1F326
loc_C1F2E2:
jmp short $+2
loc_C1F2E4:
jmp short $+2
loc_C1F2E6:
jmp short $+2
loc_C1F2E8:
mov rdi, [rbp+var_80]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
mov r8d, [rbp+var_24]
mov rax, [rdi]
call qword ptr [rax+170h]
mov [rbp+var_28], eax
cmp [rbp+var_28], 0
jnz short loc_C1F324
mov rax, [rbp+var_80]
mov rcx, [rax+488h]
add rcx, 1
mov [rax+488h], rcx
loc_C1F324:
jmp short $+2
loc_C1F326:
jmp short loc_C1F348
loc_C1F328:
mov rdi, [rbp+var_80]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
mov r8d, [rbp+var_24]
mov rax, [rdi]
call qword ptr [rax+170h]
mov [rbp+var_28], eax
loc_C1F348:
cmp [rbp+var_30], 0
jz short loc_C1F367
mov rax, [rbp+var_80]
mov rdi, [rax+418h]; this
mov rax, [rax+10h]
mov rsi, [rax+48h]; THD *
call _ZN17Exec_time_tracker13stop_trackingEP3THD; Exec_time_tracker::stop_tracking(THD *)
loc_C1F367:
mov rdi, [rbp+var_80]
mov esi, 5A0h
call _ZNK7handler20increment_statisticsEM17system_status_varm; handler::increment_statistics(ulong system_status_var::*)
cmp [rbp+var_28], 0
jnz short loc_C1F3B9
mov rdi, [rbp+var_80]; this
call _ZN7handler23update_index_statisticsEv; handler::update_index_statistics(void)
mov rax, [rbp+var_80]
mov rax, [rax+10h]
cmp qword ptr [rax+0B8h], 0
jz short loc_C1F3B7
mov rcx, [rbp+var_80]
mov rax, [rbp+var_10]
mov rcx, [rcx+10h]
cmp rax, [rcx+50h]
jnz short loc_C1F3B7
mov rsi, [rbp+var_80]
mov rdi, [rsi+10h]
xor edx, edx
call _ZN5TABLE21update_virtual_fieldsEP7handler21enum_vcol_update_mode; TABLE::update_virtual_fields(handler *,enum_vcol_update_mode)
loc_C1F3B7:
jmp short $+2
loc_C1F3B9:
mov rax, [rbp+var_80]
mov esi, [rbp+var_28]
xor ecx, ecx
mov edx, 2
cmp esi, 0
cmovnz ecx, edx
mov rax, [rax+10h]
mov [rax+290h], ecx
mov eax, [rbp+var_28]
add rsp, 90h
pop rbp
retn
| long long handler::ha_index_read_map(long long *a1, long long a2, long long a3, long long a4, unsigned int a5)
{
unsigned int v5; // eax
int v6; // ecx
int v8; // [rsp+Ch] [rbp-84h]
_BYTE v9[64]; // [rsp+18h] [rbp-78h] BYREF
long long v10; // [rsp+58h] [rbp-38h]
long long v11; // [rsp+60h] [rbp-30h]
unsigned int v12; // [rsp+68h] [rbp-28h]
unsigned int v13; // [rsp+6Ch] [rbp-24h]
long long v14; // [rsp+70h] [rbp-20h]
long long v15; // [rsp+78h] [rbp-18h]
long long v16; // [rsp+80h] [rbp-10h]
long long *v17; // [rsp+88h] [rbp-8h]
v17 = a1;
v16 = a2;
v15 = a3;
v14 = a4;
v13 = a5;
v11 = a1[131];
if ( v11 )
Exec_time_tracker::start_tracking((Exec_time_tracker *)a1[131], *(THD **)(a1[2] + 72));
if ( a1[143] )
{
v8 = *((_DWORD *)a1 + 288);
if ( v8 )
{
if ( v8 == 1 )
{
a1[146] = ((long long ( *)(long long *, long long, _QWORD, _QWORD, const char *, long long))PSI_server[58])(
a1 + 147,
a1[143],
0LL,
*((unsigned int *)a1 + 103),
"/workspace/llm4binary/github2025/eloqsql/sql/handler.cc",
3502LL);
v12 = (*(long long ( **)(long long *, long long, long long, long long, _QWORD))(*a1 + 368))(
a1,
v16,
v15,
v14,
v13);
if ( !v12 )
++a1[145];
*((_DWORD *)a1 + 288) = 2;
}
else
{
v5 = (*(long long ( **)(long long *, long long, long long, long long, _QWORD))(*a1 + 368))(
a1,
v16,
v15,
v14,
v13);
v12 = v5;
if ( !v5 )
++a1[145];
}
}
else
{
v10 = 0LL;
v10 = ((long long ( *)(_BYTE *, long long, _QWORD, _QWORD, const char *, long long))PSI_server[58])(
v9,
a1[143],
0LL,
*((unsigned int *)a1 + 103),
"/workspace/llm4binary/github2025/eloqsql/sql/handler.cc",
3502LL);
v12 = (*(long long ( **)(long long *, long long, long long, long long, _QWORD))(*a1 + 368))(
a1,
v16,
v15,
v14,
v13);
if ( v10 )
((void ( *)(long long, long long))PSI_server[59])(v10, 1LL);
}
}
else
{
v12 = (*(long long ( **)(long long *, long long, long long, long long, _QWORD))(*a1 + 368))(a1, v16, v15, v14, v13);
}
if ( v11 )
Exec_time_tracker::stop_tracking((Exec_time_tracker *)a1[131], *(THD **)(a1[2] + 72));
handler::increment_statistics((long long)a1, 1440LL);
if ( !v12 )
{
handler::update_index_statistics((handler *)a1);
if ( *(_QWORD *)(a1[2] + 184) )
{
if ( v16 == *(_QWORD *)(a1[2] + 80) )
TABLE::update_virtual_fields(a1[2], (handler *)a1, 0);
}
}
v6 = 0;
if ( v12 )
v6 = 2;
*(_DWORD *)(a1[2] + 656) = v6;
return v12;
}
| pre_next_row:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RDI
ADD RDI,0xb0
CALL 0x00c1e9c0
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
XOR CL,0xff
AND CL,0x1
MOV byte ptr [RAX + 0xd0],CL
ADD RSP,0x10
POP RBP
RET
|
/* Frame_range_current_row_bottom::pre_next_row() */
void __thiscall Frame_range_current_row_bottom::pre_next_row(Frame_range_current_row_bottom *this)
{
byte bVar1;
bVar1 = Group_bound_tracker::check_if_next_group((Group_bound_tracker *)(this + 0xb0));
this[0xd0] = (Frame_range_current_row_bottom)((bVar1 ^ 0xff) & 1);
return;
}
| |
30,354 | YogaTest_aspect_ratio_with_min_cross_defined_Test::TestBody() | yoga-mod/tests/YGAspectRatioTest.cpp | TEST(YogaTest, aspect_ratio_with_min_cross_defined) {
YGNodeRef root = YGNodeNew();
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
YGNodeStyleSetWidth(root, 100);
YGNodeStyleSetHeight(root, 100);
YGNodeRef root_child0 = YGNodeNew();
YGNodeStyleSetHeight(root_child0, 30);
YGNodeStyleSetMinWidth(root_child0, 40);
YGNodeStyleSetAspectRatio(root_child0, 1);
YGNodeInsertChild(root, root_child0, 0);
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
ASSERT_EQ(0, YGNodeLayoutGetLeft(root_child0));
ASSERT_EQ(0, YGNodeLayoutGetTop(root_child0));
ASSERT_EQ(40, YGNodeLayoutGetWidth(root_child0));
ASSERT_EQ(30, YGNodeLayoutGetHeight(root_child0));
YGNodeFreeRecursive(root);
} | O0 | cpp | YogaTest_aspect_ratio_with_min_cross_defined_Test::TestBody():
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x10(%rbp)
callq 0x7047d0
movq -0x10(%rbp), %rax
leaq 0x77d6cc(%rip), %rcx # 0x85d330
addq $0x10, %rcx
movq %rcx, (%rax)
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
| _ZN49YogaTest_aspect_ratio_with_min_cross_defined_TestC2Ev:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]; this
mov [rbp+var_10], rdi
call _ZN7testing4TestC2Ev; testing::Test::Test(void)
mov rax, [rbp+var_10]
lea rcx, _ZTV49YogaTest_aspect_ratio_with_min_cross_defined_Test; `vtable for'YogaTest_aspect_ratio_with_min_cross_defined_Test
add rcx, 10h
mov [rax], rcx
add rsp, 10h
pop rbp
retn
| void YogaTest_aspect_ratio_with_min_cross_defined_Test::YogaTest_aspect_ratio_with_min_cross_defined_Test(
YogaTest_aspect_ratio_with_min_cross_defined_Test *this)
{
testing::Test::Test(this);
*(_QWORD *)this = (char *)&`vtable for'YogaTest_aspect_ratio_with_min_cross_defined_Test + 16;
}
| YogaTest_aspect_ratio_with_min_cross_defined_Test:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RDI
CALL 0x008047d0
MOV RAX,qword ptr [RBP + -0x10]
LEA RCX,[0x95d330]
ADD RCX,0x10
MOV qword ptr [RAX],RCX
ADD RSP,0x10
POP RBP
RET
|
/* YogaTest_aspect_ratio_with_min_cross_defined_Test::YogaTest_aspect_ratio_with_min_cross_defined_Test()
*/
void __thiscall
YogaTest_aspect_ratio_with_min_cross_defined_Test::YogaTest_aspect_ratio_with_min_cross_defined_Test
(YogaTest_aspect_ratio_with_min_cross_defined_Test *this)
{
testing::Test::Test((Test *)this);
*(int ***)this = &PTR__YogaTest_aspect_ratio_with_min_cross_defined_Test_0095d340;
return;
}
| |
30,355 | allocate_tail | eloqsql/storage/maria/ma_bitmap.c | static my_bool allocate_tail(MARIA_FILE_BITMAP *bitmap, uint size,
MARIA_BITMAP_BLOCK *block)
{
uint min_bits= size_to_tail_pattern(bitmap, size);
uchar *data, *end, *best_data= 0;
my_bool first_found= 1;
uint best_bits= (uint) -1, UNINIT_VAR(best_pos);
DBUG_ENTER("allocate_tail");
DBUG_PRINT("enter", ("size: %u", size));
data= bitmap->map + (bitmap->full_tail_size/6)*6;
end= bitmap->map + bitmap->used_size;
/*
We have to add DIR_ENTRY_SIZE here as this is not part of the data size
See call to allocate_tail() in find_tail().
*/
DBUG_ASSERT(size <= MAX_TAIL_SIZE(bitmap->block_size) + DIR_ENTRY_SIZE);
for (; data < end; data += 6)
{
ulonglong bits= uint6korr(data); /* 6 bytes = 6*8/3= 16 patterns */
uint i;
/*
Skip common patterns
We can skip empty pages (if we already found a match) or
the following patterns: 1-4 (head pages, not suitable for tail) or
7 (full tail page). See 'Dynamic size records' comment at start of file.
At the moment we only skip full head and tail pages (ie, all bits are
set) as this is easy to detect with one simple test and is a
quite common case if we have blobs.
*/
if ((!bits && best_data) || bits == 0xffffffffffffLL ||
bits == 04444444444444444LL)
continue;
for (i= 0; i < 16; i++, bits >>= 3)
{
uint pattern= (uint) (bits & 7);
if (pattern == 0 ||
(pattern > FULL_HEAD_PAGE && pattern < FULL_TAIL_PAGE))
{
/* There is room for tail data */
if (first_found)
{
first_found= 0;
bitmap->full_tail_size= (uint)(data - bitmap->map);
}
}
if (pattern <= min_bits && (!pattern || pattern > FULL_HEAD_PAGE))
{
if ((int) pattern > (int) best_bits)
{
best_bits= pattern;
best_data= data;
best_pos= i;
if (pattern == min_bits)
goto found; /* Can't be better */
}
}
}
}
if (!best_data)
{
if (data >= bitmap->map + bitmap->total_size)
DBUG_RETURN(1);
DBUG_ASSERT(uint6korr(data) == 0);
/* Allocate data at end of bitmap */
best_data= data;
bitmap->used_size= (uint) (data - bitmap->map) + 6;
DBUG_ASSERT(bitmap->used_size <= bitmap->total_size);
best_pos= best_bits= 0;
}
found:
fill_block(bitmap, block, best_data, best_pos, best_bits, FULL_TAIL_PAGE);
DBUG_RETURN(0);
} | O0 | c | allocate_tail:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0x63830
movl %eax, -0x24(%rbp)
movq $0x0, -0x40(%rbp)
movb $0x1, -0x41(%rbp)
movl $0xffffffff, -0x48(%rbp) # imm = 0xFFFFFFFF
movl -0x4c(%rbp), %eax
movl %eax, -0x4c(%rbp)
jmp 0x6363d
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x10(%rbp), %rax
movl 0x2c(%rax), %eax
movl $0x6, %ecx
xorl %edx, %edx
divl %ecx
movl %eax, %ecx
movq -0x68(%rbp), %rax
imull $0x6, %ecx, %ecx
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movl 0x24(%rcx), %ecx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
jmp 0x63683
jmp 0x63685
movq -0x30(%rbp), %rax
cmpq -0x38(%rbp), %rax
jae 0x63795
movq -0x30(%rbp), %rdi
callq 0x60a00
movq %rax, -0x58(%rbp)
cmpq $0x0, -0x58(%rbp)
jne 0x636ae
cmpq $0x0, -0x40(%rbp)
jne 0x636ce
movabsq $0xffffffffffff, %rax # imm = 0xFFFFFFFFFFFF
cmpq %rax, -0x58(%rbp)
je 0x636ce
movabsq $0x924924924924, %rax # imm = 0x924924924924
cmpq %rax, -0x58(%rbp)
jne 0x636d3
jmp 0x63784
movl $0x0, -0x5c(%rbp)
cmpl $0x10, -0x5c(%rbp)
jae 0x63782
movq -0x58(%rbp), %rax
andq $0x7, %rax
movl %eax, -0x60(%rbp)
cmpl $0x0, -0x60(%rbp)
je 0x63701
cmpl $0x4, -0x60(%rbp)
jbe 0x63725
cmpl $0x7, -0x60(%rbp)
jae 0x63725
cmpb $0x0, -0x41(%rbp)
je 0x63723
movb $0x0, -0x41(%rbp)
movq -0x30(%rbp), %rax
movq -0x10(%rbp), %rcx
movq 0x8(%rcx), %rcx
subq %rcx, %rax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x2c(%rax)
jmp 0x63725
movl -0x60(%rbp), %eax
cmpl -0x24(%rbp), %eax
ja 0x63766
cmpl $0x0, -0x60(%rbp)
je 0x63739
cmpl $0x4, -0x60(%rbp)
jbe 0x63766
movl -0x60(%rbp), %eax
cmpl -0x48(%rbp), %eax
jle 0x63764
movl -0x60(%rbp), %eax
movl %eax, -0x48(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x40(%rbp)
movl -0x5c(%rbp), %eax
movl %eax, -0x4c(%rbp)
movl -0x60(%rbp), %eax
cmpl -0x24(%rbp), %eax
jne 0x63762
jmp 0x637fb
jmp 0x63764
jmp 0x63766
jmp 0x63768
movl -0x5c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5c(%rbp)
movq -0x58(%rbp), %rax
shrq $0x3, %rax
movq %rax, -0x58(%rbp)
jmp 0x636da
jmp 0x63784
movq -0x30(%rbp), %rax
addq $0x6, %rax
movq %rax, -0x30(%rbp)
jmp 0x63685
cmpq $0x0, -0x40(%rbp)
jne 0x637f9
movq -0x30(%rbp), %rax
movq -0x10(%rbp), %rcx
movq 0x8(%rcx), %rcx
movq -0x10(%rbp), %rdx
movl 0x128(%rdx), %edx
addq %rdx, %rcx
cmpq %rcx, %rax
jb 0x637c2
jmp 0x637bc
movb $0x1, -0x1(%rbp)
jmp 0x6381d
jmp 0x637c4
jmp 0x637c6
movq -0x30(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x30(%rbp), %rax
movq -0x10(%rbp), %rcx
movq 0x8(%rcx), %rcx
subq %rcx, %rax
movl %eax, %ecx
addl $0x6, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x24(%rax)
jmp 0x637eb
movl $0x0, -0x48(%rbp)
movl $0x0, -0x4c(%rbp)
jmp 0x637fb
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x40(%rbp), %rdx
movl -0x4c(%rbp), %ecx
movl -0x48(%rbp), %r8d
movl $0x7, %r9d
callq 0x62ca0
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| allocate_tail:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_20], rdx
mov rdi, [rbp+var_10]
mov esi, [rbp+var_14]
call size_to_tail_pattern
mov [rbp+var_24], eax
mov [rbp+var_40], 0
mov [rbp+var_41], 1
mov [rbp+var_48], 0FFFFFFFFh
mov eax, [rbp+var_4C]
mov [rbp+var_4C], eax
jmp short $+2
loc_6363D:
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov [rbp+var_68], rax
mov rax, [rbp+var_10]
mov eax, [rax+2Ch]
mov ecx, 6
xor edx, edx
div ecx
mov ecx, eax
mov rax, [rbp+var_68]
imul ecx, 6
mov ecx, ecx
add rax, rcx
mov [rbp+var_30], rax
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rcx, [rbp+var_10]
mov ecx, [rcx+24h]
add rax, rcx
mov [rbp+var_38], rax
jmp short $+2
loc_63683:
jmp short $+2
loc_63685:
mov rax, [rbp+var_30]
cmp rax, [rbp+var_38]
jnb loc_63795
mov rdi, [rbp+var_30]
call uint6korr_1
mov [rbp+var_58], rax
cmp [rbp+var_58], 0
jnz short loc_636AE
cmp [rbp+var_40], 0
jnz short loc_636CE
loc_636AE:
mov rax, 0FFFFFFFFFFFFh
cmp [rbp+var_58], rax
jz short loc_636CE
mov rax, 924924924924h
cmp [rbp+var_58], rax
jnz short loc_636D3
loc_636CE:
jmp loc_63784
loc_636D3:
mov [rbp+var_5C], 0
loc_636DA:
cmp [rbp+var_5C], 10h
jnb loc_63782
mov rax, [rbp+var_58]
and rax, 7
mov [rbp+var_60], eax
cmp [rbp+var_60], 0
jz short loc_63701
cmp [rbp+var_60], 4
jbe short loc_63725
cmp [rbp+var_60], 7
jnb short loc_63725
loc_63701:
cmp [rbp+var_41], 0
jz short loc_63723
mov [rbp+var_41], 0
mov rax, [rbp+var_30]
mov rcx, [rbp+var_10]
mov rcx, [rcx+8]
sub rax, rcx
mov ecx, eax
mov rax, [rbp+var_10]
mov [rax+2Ch], ecx
loc_63723:
jmp short $+2
loc_63725:
mov eax, [rbp+var_60]
cmp eax, [rbp+var_24]
ja short loc_63766
cmp [rbp+var_60], 0
jz short loc_63739
cmp [rbp+var_60], 4
jbe short loc_63766
loc_63739:
mov eax, [rbp+var_60]
cmp eax, [rbp+var_48]
jle short loc_63764
mov eax, [rbp+var_60]
mov [rbp+var_48], eax
mov rax, [rbp+var_30]
mov [rbp+var_40], rax
mov eax, [rbp+var_5C]
mov [rbp+var_4C], eax
mov eax, [rbp+var_60]
cmp eax, [rbp+var_24]
jnz short loc_63762
jmp loc_637FB
loc_63762:
jmp short $+2
loc_63764:
jmp short $+2
loc_63766:
jmp short $+2
loc_63768:
mov eax, [rbp+var_5C]
add eax, 1
mov [rbp+var_5C], eax
mov rax, [rbp+var_58]
shr rax, 3
mov [rbp+var_58], rax
jmp loc_636DA
loc_63782:
jmp short $+2
loc_63784:
mov rax, [rbp+var_30]
add rax, 6
mov [rbp+var_30], rax
jmp loc_63685
loc_63795:
cmp [rbp+var_40], 0
jnz short loc_637F9
mov rax, [rbp+var_30]
mov rcx, [rbp+var_10]
mov rcx, [rcx+8]
mov rdx, [rbp+var_10]
mov edx, [rdx+128h]
add rcx, rdx
cmp rax, rcx
jb short loc_637C2
jmp short $+2
loc_637BC:
mov [rbp+var_1], 1
jmp short loc_6381D
loc_637C2:
jmp short $+2
loc_637C4:
jmp short $+2
loc_637C6:
mov rax, [rbp+var_30]
mov [rbp+var_40], rax
mov rax, [rbp+var_30]
mov rcx, [rbp+var_10]
mov rcx, [rcx+8]
sub rax, rcx
mov ecx, eax
add ecx, 6
mov rax, [rbp+var_10]
mov [rax+24h], ecx
jmp short $+2
loc_637EB:
mov [rbp+var_48], 0
mov [rbp+var_4C], 0
loc_637F9:
jmp short $+2
loc_637FB:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_40]
mov ecx, [rbp+var_4C]
mov r8d, [rbp+var_48]
mov r9d, 7
call fill_block
mov [rbp+var_1], 0
loc_6381D:
mov al, [rbp+var_1]
add rsp, 70h
pop rbp
retn
| char allocate_tail(long long a1, unsigned int a2, long long a3)
{
unsigned int v4; // [rsp+10h] [rbp-60h]
unsigned int i; // [rsp+14h] [rbp-5Ch]
unsigned long long v6; // [rsp+18h] [rbp-58h]
int v7; // [rsp+24h] [rbp-4Ch]
signed int v8; // [rsp+28h] [rbp-48h]
char v9; // [rsp+2Fh] [rbp-41h]
long long v10; // [rsp+30h] [rbp-40h]
unsigned long long v11; // [rsp+38h] [rbp-38h]
unsigned int *v12; // [rsp+40h] [rbp-30h]
unsigned int v13; // [rsp+4Ch] [rbp-24h]
v13 = size_to_tail_pattern(a1, a2);
v10 = 0LL;
v9 = 1;
v8 = -1;
v12 = (unsigned int *)(6 * (*(_DWORD *)(a1 + 44) / 6u) + *(_QWORD *)(a1 + 8));
v11 = *(unsigned int *)(a1 + 36) + *(_QWORD *)(a1 + 8);
while ( (unsigned long long)v12 < v11 )
{
v6 = uint6korr_1(v12);
if ( (v6 || !v10) && v6 != 0xFFFFFFFFFFFFLL && v6 != 0x924924924924LL )
{
for ( i = 0; i < 0x10; ++i )
{
v4 = v6 & 7;
if ( ((v6 & 7) == 0 || v4 > 4 && v4 < 7) && v9 )
{
v9 = 0;
*(_DWORD *)(a1 + 44) = (_DWORD)v12 - *(_QWORD *)(a1 + 8);
}
if ( v4 <= v13 && ((v6 & 7) == 0 || v4 > 4) && (int)v4 > v8 )
{
v8 = v6 & 7;
v10 = (long long)v12;
v7 = i;
if ( v4 == v13 )
goto LABEL_26;
}
v6 >>= 3;
}
}
v12 = (unsigned int *)((char *)v12 + 6);
}
if ( v10 )
goto LABEL_26;
if ( (unsigned long long)v12 < (unsigned long long)*(unsigned int *)(a1 + 296) + *(_QWORD *)(a1 + 8) )
{
v10 = (long long)v12;
*(_DWORD *)(a1 + 36) = (_DWORD)v12 - *(_QWORD *)(a1 + 8) + 6;
v8 = 0;
v7 = 0;
LABEL_26:
fill_block(a1, a3, v10, v7, v8, 7);
return 0;
}
return 1;
}
| allocate_tail:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV qword ptr [RBP + -0x20],RDX
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x14]
CALL 0x00163830
MOV dword ptr [RBP + -0x24],EAX
MOV qword ptr [RBP + -0x40],0x0
MOV byte ptr [RBP + -0x41],0x1
MOV dword ptr [RBP + -0x48],0xffffffff
MOV EAX,dword ptr [RBP + -0x4c]
MOV dword ptr [RBP + -0x4c],EAX
JMP 0x0016363d
LAB_0016363d:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x2c]
MOV ECX,0x6
XOR EDX,EDX
DIV ECX
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x68]
IMUL ECX,ECX,0x6
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RCX + 0x24]
ADD RAX,RCX
MOV qword ptr [RBP + -0x38],RAX
JMP 0x00163683
LAB_00163683:
JMP 0x00163685
LAB_00163685:
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x38]
JNC 0x00163795
MOV RDI,qword ptr [RBP + -0x30]
CALL 0x00160a00
MOV qword ptr [RBP + -0x58],RAX
CMP qword ptr [RBP + -0x58],0x0
JNZ 0x001636ae
CMP qword ptr [RBP + -0x40],0x0
JNZ 0x001636ce
LAB_001636ae:
MOV RAX,0xffffffffffff
CMP qword ptr [RBP + -0x58],RAX
JZ 0x001636ce
MOV RAX,0x924924924924
CMP qword ptr [RBP + -0x58],RAX
JNZ 0x001636d3
LAB_001636ce:
JMP 0x00163784
LAB_001636d3:
MOV dword ptr [RBP + -0x5c],0x0
LAB_001636da:
CMP dword ptr [RBP + -0x5c],0x10
JNC 0x00163782
MOV RAX,qword ptr [RBP + -0x58]
AND RAX,0x7
MOV dword ptr [RBP + -0x60],EAX
CMP dword ptr [RBP + -0x60],0x0
JZ 0x00163701
CMP dword ptr [RBP + -0x60],0x4
JBE 0x00163725
CMP dword ptr [RBP + -0x60],0x7
JNC 0x00163725
LAB_00163701:
CMP byte ptr [RBP + -0x41],0x0
JZ 0x00163723
MOV byte ptr [RBP + -0x41],0x0
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x8]
SUB RAX,RCX
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x2c],ECX
LAB_00163723:
JMP 0x00163725
LAB_00163725:
MOV EAX,dword ptr [RBP + -0x60]
CMP EAX,dword ptr [RBP + -0x24]
JA 0x00163766
CMP dword ptr [RBP + -0x60],0x0
JZ 0x00163739
CMP dword ptr [RBP + -0x60],0x4
JBE 0x00163766
LAB_00163739:
MOV EAX,dword ptr [RBP + -0x60]
CMP EAX,dword ptr [RBP + -0x48]
JLE 0x00163764
MOV EAX,dword ptr [RBP + -0x60]
MOV dword ptr [RBP + -0x48],EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x40],RAX
MOV EAX,dword ptr [RBP + -0x5c]
MOV dword ptr [RBP + -0x4c],EAX
MOV EAX,dword ptr [RBP + -0x60]
CMP EAX,dword ptr [RBP + -0x24]
JNZ 0x00163762
JMP 0x001637fb
LAB_00163762:
JMP 0x00163764
LAB_00163764:
JMP 0x00163766
LAB_00163766:
JMP 0x00163768
LAB_00163768:
MOV EAX,dword ptr [RBP + -0x5c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x5c],EAX
MOV RAX,qword ptr [RBP + -0x58]
SHR RAX,0x3
MOV qword ptr [RBP + -0x58],RAX
JMP 0x001636da
LAB_00163782:
JMP 0x00163784
LAB_00163784:
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,0x6
MOV qword ptr [RBP + -0x30],RAX
JMP 0x00163685
LAB_00163795:
CMP qword ptr [RBP + -0x40],0x0
JNZ 0x001637f9
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x8]
MOV RDX,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RDX + 0x128]
ADD RCX,RDX
CMP RAX,RCX
JC 0x001637c2
JMP 0x001637bc
LAB_001637bc:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0016381d
LAB_001637c2:
JMP 0x001637c4
LAB_001637c4:
JMP 0x001637c6
LAB_001637c6:
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x8]
SUB RAX,RCX
MOV ECX,EAX
ADD ECX,0x6
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x24],ECX
JMP 0x001637eb
LAB_001637eb:
MOV dword ptr [RBP + -0x48],0x0
MOV dword ptr [RBP + -0x4c],0x0
LAB_001637f9:
JMP 0x001637fb
LAB_001637fb:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x40]
MOV ECX,dword ptr [RBP + -0x4c]
MOV R8D,dword ptr [RBP + -0x48]
MOV R9D,0x7
CALL 0x00162ca0
MOV byte ptr [RBP + -0x1],0x0
LAB_0016381d:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x70
POP RBP
RET
|
int1 allocate_tail(long param_1,int4 param_2,int8 param_3)
{
uint uVar1;
long lVar2;
bool bVar3;
uint uVar4;
uint uVar5;
uint local_64;
ulong local_60;
uint local_54;
uint local_50;
ulong local_48;
ulong local_38;
uVar4 = size_to_tail_pattern(param_1,param_2);
local_48 = 0;
bVar3 = true;
local_50 = 0xffffffff;
lVar2 = *(long *)(param_1 + 8);
uVar1 = *(uint *)(param_1 + 0x24);
for (local_38 = *(long *)(param_1 + 8) + (ulong)((*(uint *)(param_1 + 0x2c) / 6) * 6);
local_38 < lVar2 + (ulong)uVar1; local_38 = local_38 + 6) {
local_60 = uint6korr(local_38);
if ((((local_60 != 0) || (local_48 == 0)) && (local_60 != 0xffffffffffff)) &&
(local_60 != 0x924924924924)) {
for (local_64 = 0; local_64 < 0x10; local_64 = local_64 + 1) {
uVar5 = (uint)local_60 & 7;
if ((((local_60 & 7) == 0) || ((4 < uVar5 && (uVar5 < 7)))) && (bVar3)) {
bVar3 = false;
*(int *)(param_1 + 0x2c) = (int)local_38 - (int)*(int8 *)(param_1 + 8);
}
if (((uVar5 <= uVar4) && (((local_60 & 7) == 0 || (4 < uVar5)))) &&
((int)local_50 < (int)uVar5)) {
local_48 = local_38;
local_54 = local_64;
local_50 = uVar5;
if (uVar5 == uVar4) goto LAB_001637fb;
}
local_60 = local_60 >> 3;
}
}
}
if (local_48 == 0) {
if (*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x128) <= local_38) {
return 1;
}
local_48 = local_38;
*(int *)(param_1 + 0x24) = ((int)local_38 - (int)*(int8 *)(param_1 + 8)) + 6;
local_50 = 0;
local_54 = 0;
}
LAB_001637fb:
fill_block(param_1,param_3,local_48,local_54,local_50,7);
return 0;
}
| |
30,356 | mi_state_info_write | eloqsql/storage/myisam/mi_open.c | uint mi_state_info_write(File file, MI_STATE_INFO *state, uint pWrite)
{
uchar buff[MI_STATE_INFO_SIZE + MI_STATE_EXTRA_SIZE];
uchar *ptr=buff;
uint i, keys= (uint) state->header.keys,
key_blocks=state->header.max_block_size_index;
DBUG_ENTER("mi_state_info_write");
memcpy(ptr, &state->header, sizeof(state->header));
ptr+=sizeof(state->header);
/* open_count must be first because of _mi_mark_file_changed ! */
mi_int2store(ptr,state->open_count); ptr +=2;
*ptr++= (uchar)state->changed; *ptr++= state->sortkey;
mi_rowstore(ptr,state->state.records); ptr +=8;
mi_rowstore(ptr,state->state.del); ptr +=8;
mi_rowstore(ptr,state->split); ptr +=8;
mi_sizestore(ptr,state->dellink); ptr +=8;
mi_sizestore(ptr,state->state.key_file_length); ptr +=8;
mi_sizestore(ptr,state->state.data_file_length); ptr +=8;
mi_sizestore(ptr,state->state.empty); ptr +=8;
mi_sizestore(ptr,state->state.key_empty); ptr +=8;
mi_int8store(ptr,state->auto_increment); ptr +=8;
mi_int8store(ptr,(ulonglong) state->state.checksum);ptr +=8;
mi_int4store(ptr,state->process); ptr +=4;
mi_int4store(ptr,state->unique); ptr +=4;
mi_int4store(ptr,state->status); ptr +=4;
mi_int4store(ptr,state->update_count); ptr +=4;
ptr+=state->state_diff_length;
for (i=0; i < keys; i++)
{
mi_sizestore(ptr,state->key_root[i]); ptr +=8;
}
for (i=0; i < key_blocks; i++)
{
mi_sizestore(ptr,state->key_del[i]); ptr +=8;
}
if (pWrite & 2) /* From isamchk */
{
uint key_parts= mi_uint2korr(state->header.key_parts);
mi_int4store(ptr,state->sec_index_changed); ptr +=4;
mi_int4store(ptr,state->sec_index_used); ptr +=4;
mi_int4store(ptr,state->version); ptr +=4;
mi_int8store(ptr,state->key_map); ptr +=8;
mi_int8store(ptr,(ulonglong) state->create_time); ptr +=8;
mi_int8store(ptr,(ulonglong) state->recover_time); ptr +=8;
mi_int8store(ptr,(ulonglong) state->check_time); ptr +=8;
mi_sizestore(ptr,state->rec_per_key_rows); ptr+=8;
for (i=0 ; i < key_parts ; i++)
{
mi_int4store(ptr,state->rec_per_key_part[i]); ptr+=4;
}
}
if (pWrite & 1)
DBUG_RETURN(mysql_file_pwrite(file, buff, (size_t) (ptr-buff), 0L,
MYF(MY_NABP | MY_THREADSAFE)) != 0);
DBUG_RETURN(mysql_file_write(file, buff, (size_t) (ptr-buff),
MYF(MY_NABP)) != 0);
} | O3 | c | mi_state_info_write:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2388, %rsp # imm = 0x2388
movl %edi, %r13d
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movzbl 0x12(%rsi), %ecx
movzbl 0x15(%rsi), %eax
movq 0x10(%rsi), %rdi
movq %rdi, -0x2350(%rbp)
movups (%rsi), %xmm0
movaps %xmm0, -0x2360(%rbp)
movzwl 0xec(%rsi), %edi
rolw $0x8, %di
movw %di, -0x2348(%rbp)
movb 0xf0(%rsi), %dil
movb %dil, -0x2346(%rbp)
movb 0xe8(%rsi), %dil
movb %dil, -0x2345(%rbp)
movq 0x18(%rsi), %rdi
bswapq %rdi
movq %rdi, -0x2344(%rbp)
movq 0x20(%rsi), %rdi
bswapq %rdi
movq %rdi, -0x233c(%rbp)
movq 0x50(%rsi), %rdi
bswapq %rdi
movq %rdi, -0x2334(%rbp)
movq 0x58(%rsi), %rdi
bswapq %rdi
movq %rdi, -0x232c(%rbp)
movq 0x38(%rsi), %rdi
bswapq %rdi
movq %rdi, -0x2324(%rbp)
movq 0x40(%rsi), %rdi
bswapq %rdi
movq %rdi, -0x231c(%rbp)
movq 0x28(%rsi), %rdi
bswapq %rdi
movq %rdi, -0x2314(%rbp)
movq 0x30(%rsi), %rdi
bswapq %rdi
movq %rdi, -0x230c(%rbp)
movq 0x60(%rsi), %rdi
bswapq %rdi
movq %rdi, -0x2304(%rbp)
movl 0x48(%rsi), %ebx
movl %ebx, %edi
movl $0x0, -0x22fc(%rbp)
movb %bl, -0x22f5(%rbp)
movb %bh, -0x22f6(%rbp)
shrl $0x10, %ebx
shrl $0x18, %edi
movb %bl, -0x22f7(%rbp)
movb %dil, -0x22f8(%rbp)
movl 0x68(%rsi), %edi
bswapl %edi
movl %edi, -0x22f4(%rbp)
movl 0x70(%rsi), %edi
bswapl %edi
movl %edi, -0x22f0(%rbp)
movl 0x80(%rsi), %edi
bswapl %edi
movl %edi, -0x22ec(%rbp)
movl 0x78(%rsi), %edi
bswapl %edi
movl %edi, -0x22e8(%rbp)
movl 0xf4(%rsi), %edi
leaq (%rdi,%rbp), %r14
addq $-0x22e4, %r14 # imm = 0xDD1C
testq %rcx, %rcx
je 0x82cbc
movq 0x98(%rsi), %rdi
shll $0x3, %ecx
xorl %r8d, %r8d
movq (%rdi,%r8), %r9
bswapq %r9
movq %r9, (%r14,%r8)
addq $0x8, %r8
cmpq %r8, %rcx
jne 0x82ca5
addq %r8, %r14
testq %rax, %rax
je 0x82ce4
shll $0x3, %eax
xorl %ecx, %ecx
movq 0xa0(%rsi), %rdi
movq (%rdi,%rcx), %rdi
bswapq %rdi
movq %rdi, (%r14,%rcx)
addq $0x8, %rcx
cmpq %rcx, %rax
jne 0x82cc6
addq %rcx, %r14
testb $0x2, %dl
je 0x82d8a
movzbl 0xf(%rsi), %ecx
movzbl 0xe(%rsi), %eax
movl 0xb0(%rsi), %edi
bswapl %edi
movl %edi, (%r14)
movl 0xb8(%rsi), %edi
bswapl %edi
movl %edi, 0x4(%r14)
movl 0xc8(%rsi), %edi
bswapl %edi
movl %edi, 0x8(%r14)
movq 0xc0(%rsi), %rdi
bswapq %rdi
movq %rdi, 0xc(%r14)
movq 0xd0(%rsi), %rdi
bswapq %rdi
movq %rdi, 0x14(%r14)
movq 0xd8(%rsi), %rdi
bswapq %rdi
movq %rdi, 0x1c(%r14)
movq 0xe0(%rsi), %rdi
bswapq %rdi
movq %rdi, 0x24(%r14)
movq 0xa8(%rsi), %rdi
bswapq %rdi
shll $0x8, %eax
movq %rdi, 0x2c(%r14)
addq $0x34, %r14
orl %ecx, %eax
je 0x82d8a
shll $0x2, %eax
xorl %ecx, %ecx
movq 0x88(%rsi), %rdi
movl (%rdi,%rcx,2), %edi
bswapl %edi
movl %edi, (%r14,%rcx)
addq $0x4, %rcx
cmpq %rcx, %rax
jne 0x82d6e
addq %rcx, %r14
leaq -0x2360(%rbp), %rax
subq %rax, %r14
leaq 0x30c4bd(%rip), %r12 # 0x38f258
testb $0x1, %dl
jne 0x82ddb
movq (%r12), %rax
leaq -0x23a8(%rbp), %rdi
movl %r13d, %esi
movl $0x7, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x82e49
leaq -0x2360(%rbp), %rsi
movl $0x4, %ecx
movl %r13d, %edi
movq %r14, %rdx
callq 0x30a78
jmp 0x82e17
movq (%r12), %rax
leaq -0x23a8(%rbp), %rdi
movl %r13d, %esi
movl $0x7, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x82e89
leaq -0x2360(%rbp), %rsi
movl $0x804, %r8d # imm = 0x804
movl %r13d, %edi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0xa6e0a
movq %rax, %rbx
xorl %eax, %eax
testq %rbx, %rbx
setne %cl
movq %fs:0x28, %rdx
cmpq -0x30(%rbp), %rdx
jne 0x82ee3
movb %cl, %al
addq $0x2388, %rsp # imm = 0x2388
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
movq (%r12), %rax
leaq 0x604d4(%rip), %rdx # 0xe332b
movq %r15, %rdi
movq %r14, %rsi
movl $0x3cd, %ecx # imm = 0x3CD
callq *0x210(%rax)
leaq -0x2360(%rbp), %rsi
movl $0x4, %ecx
movl %r13d, %edi
movq %r14, %rdx
callq 0x30a78
movq %rax, %rbx
xorl %esi, %esi
testq %rax, %rax
jmp 0x82ecd
movq %rax, %r15
movq (%r12), %rax
leaq 0x60494(%rip), %rdx # 0xe332b
movq %r15, %rdi
movq %r14, %rsi
movl $0x3cb, %ecx # imm = 0x3CB
callq *0x210(%rax)
leaq -0x2360(%rbp), %rsi
movl $0x804, %r8d # imm = 0x804
movl %r13d, %edi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0xa6e0a
movq %rax, %rbx
testq %rax, %rax
movl $0x0, %esi
cmoveq %r14, %rsi
movq (%r12), %rax
movq %r15, %rdi
callq *0x218(%rax)
jmp 0x82e1a
callq 0x2a270
| mi_state_info_write:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 2388h
mov r13d, edi
mov rax, fs:28h
mov [rbp+var_30], rax
movzx ecx, byte ptr [rsi+12h]
movzx eax, byte ptr [rsi+15h]
mov rdi, [rsi+10h]
mov [rbp+var_2350], rdi
movups xmm0, xmmword ptr [rsi]
movaps [rbp+var_2360], xmm0
movzx edi, word ptr [rsi+0ECh]
rol di, 8
mov [rbp+var_2348], di
mov dil, [rsi+0F0h]
mov [rbp+var_2346], dil
mov dil, [rsi+0E8h]
mov [rbp+var_2345], dil
mov rdi, [rsi+18h]
bswap rdi
mov [rbp+var_2344], rdi
mov rdi, [rsi+20h]
bswap rdi
mov [rbp+var_233C], rdi
mov rdi, [rsi+50h]
bswap rdi
mov [rbp+var_2334], rdi
mov rdi, [rsi+58h]
bswap rdi
mov [rbp+var_232C], rdi
mov rdi, [rsi+38h]
bswap rdi
mov [rbp+var_2324], rdi
mov rdi, [rsi+40h]
bswap rdi
mov [rbp+var_231C], rdi
mov rdi, [rsi+28h]
bswap rdi
mov [rbp+var_2314], rdi
mov rdi, [rsi+30h]
bswap rdi
mov [rbp+var_230C], rdi
mov rdi, [rsi+60h]
bswap rdi
mov [rbp+var_2304], rdi
mov ebx, [rsi+48h]
mov edi, ebx
mov [rbp+var_22FC], 0
mov [rbp+var_22F5], bl
mov [rbp+var_22F6], bh
shr ebx, 10h
shr edi, 18h
mov [rbp+var_22F7], bl
mov [rbp+var_22F8], dil
mov edi, [rsi+68h]
bswap edi
mov [rbp+var_22F4], edi
mov edi, [rsi+70h]
bswap edi
mov [rbp+var_22F0], edi
mov edi, [rsi+80h]
bswap edi
mov [rbp+var_22EC], edi
mov edi, [rsi+78h]
bswap edi
mov [rbp+var_22E8], edi
mov edi, [rsi+0F4h]
lea r14, [rdi+rbp]
add r14, 0FFFFFFFFFFFFDD1Ch
test rcx, rcx
jz short loc_82CBC
mov rdi, [rsi+98h]
shl ecx, 3
xor r8d, r8d
loc_82CA5:
mov r9, [rdi+r8]
bswap r9
mov [r14+r8], r9
add r8, 8
cmp rcx, r8
jnz short loc_82CA5
add r14, r8
loc_82CBC:
test rax, rax
jz short loc_82CE4
shl eax, 3
xor ecx, ecx
loc_82CC6:
mov rdi, [rsi+0A0h]
mov rdi, [rdi+rcx]
bswap rdi
mov [r14+rcx], rdi
add rcx, 8
cmp rax, rcx
jnz short loc_82CC6
add r14, rcx
loc_82CE4:
test dl, 2
jz loc_82D8A
movzx ecx, byte ptr [rsi+0Fh]
movzx eax, byte ptr [rsi+0Eh]
mov edi, [rsi+0B0h]
bswap edi
mov [r14], edi
mov edi, [rsi+0B8h]
bswap edi
mov [r14+4], edi
mov edi, [rsi+0C8h]
bswap edi
mov [r14+8], edi
mov rdi, [rsi+0C0h]
bswap rdi
mov [r14+0Ch], rdi
mov rdi, [rsi+0D0h]
bswap rdi
mov [r14+14h], rdi
mov rdi, [rsi+0D8h]
bswap rdi
mov [r14+1Ch], rdi
mov rdi, [rsi+0E0h]
bswap rdi
mov [r14+24h], rdi
mov rdi, [rsi+0A8h]
bswap rdi
shl eax, 8
mov [r14+2Ch], rdi
add r14, 34h ; '4'
or eax, ecx
jz short loc_82D8A
shl eax, 2
xor ecx, ecx
loc_82D6E:
mov rdi, [rsi+88h]
mov edi, [rdi+rcx*2]
bswap edi
mov [r14+rcx], edi
add rcx, 4
cmp rax, rcx
jnz short loc_82D6E
add r14, rcx
loc_82D8A:
lea rax, [rbp+var_2360]
sub r14, rax
lea r12, PSI_server
test dl, 1
jnz short loc_82DDB
mov rax, [r12]
lea rdi, [rbp+var_23A8]
mov esi, r13d
mov edx, 7
call qword ptr [rax+158h]
test rax, rax
jnz loc_82E49
lea rsi, [rbp+var_2360]
mov ecx, 4
mov edi, r13d
mov rdx, r14
call my_write
jmp short loc_82E17
loc_82DDB:
mov rax, [r12]
lea rdi, [rbp+var_23A8]
mov esi, r13d
mov edx, 7
call qword ptr [rax+158h]
test rax, rax
jnz loc_82E89
lea rsi, [rbp+var_2360]
mov r8d, 804h
mov edi, r13d
mov rdx, r14
xor ecx, ecx
call my_pwrite
loc_82E17:
mov rbx, rax
loc_82E1A:
xor eax, eax
test rbx, rbx
setnz cl
mov rdx, fs:28h
cmp rdx, [rbp+var_30]
jnz loc_82EE3
mov al, cl
add rsp, 2388h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_82E49:
mov r15, rax
mov rax, [r12]
lea rdx, aWorkspaceLlm4b_17; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, r15
mov rsi, r14
mov ecx, 3CDh
call qword ptr [rax+210h]
lea rsi, [rbp+var_2360]
mov ecx, 4
mov edi, r13d
mov rdx, r14
call my_write
mov rbx, rax
xor esi, esi
test rax, rax
jmp short loc_82ECD
loc_82E89:
mov r15, rax
mov rax, [r12]
lea rdx, aWorkspaceLlm4b_17; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, r15
mov rsi, r14
mov ecx, 3CBh
call qword ptr [rax+210h]
lea rsi, [rbp+var_2360]
mov r8d, 804h
mov edi, r13d
mov rdx, r14
xor ecx, ecx
call my_pwrite
mov rbx, rax
test rax, rax
mov esi, 0
loc_82ECD:
cmovz rsi, r14
mov rax, [r12]
mov rdi, r15
call qword ptr [rax+218h]
jmp loc_82E1A
loc_82EE3:
call ___stack_chk_fail
| bool mi_state_info_write(unsigned int a1, __int128 *a2, char a3)
{
long long v4; // rcx
long long v5; // rax
int v6; // edi
_BYTE *v7; // r14
long long v8; // rdi
long long v9; // rcx
long long v10; // r8
long long v11; // rax
long long v12; // rcx
int v13; // ecx
int v14; // eax
int v15; // eax
long long v16; // rax
long long v17; // rcx
long long v18; // r14
long long v19; // rax
long long v20; // rax
long long v21; // rax
long long v22; // rbx
long long v24; // r15
long long v25; // rsi
bool v26; // zf
_BYTE v28[72]; // [rsp+8h] [rbp-23A8h] BYREF
__int128 v29; // [rsp+50h] [rbp-2360h] BYREF
long long v30; // [rsp+60h] [rbp-2350h]
__int16 v31; // [rsp+68h] [rbp-2348h]
char v32; // [rsp+6Ah] [rbp-2346h]
char v33; // [rsp+6Bh] [rbp-2345h]
unsigned long long v34; // [rsp+6Ch] [rbp-2344h]
unsigned long long v35; // [rsp+74h] [rbp-233Ch]
unsigned long long v36; // [rsp+7Ch] [rbp-2334h]
unsigned long long v37; // [rsp+84h] [rbp-232Ch]
unsigned long long v38; // [rsp+8Ch] [rbp-2324h]
unsigned long long v39; // [rsp+94h] [rbp-231Ch]
unsigned long long v40; // [rsp+9Ch] [rbp-2314h]
unsigned long long v41; // [rsp+A4h] [rbp-230Ch]
unsigned long long v42; // [rsp+ACh] [rbp-2304h]
int v43; // [rsp+B4h] [rbp-22FCh]
char v44; // [rsp+B8h] [rbp-22F8h]
char v45; // [rsp+B9h] [rbp-22F7h]
char v46; // [rsp+BAh] [rbp-22F6h]
char v47; // [rsp+BBh] [rbp-22F5h]
unsigned __int32 v48; // [rsp+BCh] [rbp-22F4h]
unsigned __int32 v49; // [rsp+C0h] [rbp-22F0h]
unsigned __int32 v50; // [rsp+C4h] [rbp-22ECh]
unsigned __int32 v51; // [rsp+C8h] [rbp-22E8h]
_BYTE v52[8884]; // [rsp+CCh] [rbp-22E4h] BYREF
unsigned long long v53; // [rsp+2380h] [rbp-30h]
v53 = __readfsqword(0x28u);
v4 = *((unsigned __int8 *)a2 + 18);
v5 = *((unsigned __int8 *)a2 + 21);
v30 = *((_QWORD *)a2 + 2);
v29 = *a2;
v31 = __ROL2__(*((_WORD *)a2 + 118), 8);
v32 = *((_BYTE *)a2 + 240);
v33 = *((_BYTE *)a2 + 232);
v34 = _byteswap_uint64(*((_QWORD *)a2 + 3));
v35 = _byteswap_uint64(*((_QWORD *)a2 + 4));
v36 = _byteswap_uint64(*((_QWORD *)a2 + 10));
v37 = _byteswap_uint64(*((_QWORD *)a2 + 11));
v38 = _byteswap_uint64(*((_QWORD *)a2 + 7));
v39 = _byteswap_uint64(*((_QWORD *)a2 + 8));
v40 = _byteswap_uint64(*((_QWORD *)a2 + 5));
v41 = _byteswap_uint64(*((_QWORD *)a2 + 6));
v42 = _byteswap_uint64(*((_QWORD *)a2 + 12));
v6 = *((_DWORD *)a2 + 18);
v43 = 0;
v46 = BYTE1(v6);
v47 = v6;
v45 = BYTE2(v6);
v44 = HIBYTE(v6);
v48 = _byteswap_ulong(*((_DWORD *)a2 + 26));
v49 = _byteswap_ulong(*((_DWORD *)a2 + 28));
v50 = _byteswap_ulong(*((_DWORD *)a2 + 32));
v51 = _byteswap_ulong(*((_DWORD *)a2 + 30));
v7 = &v52[*((unsigned int *)a2 + 61)];
if ( v4 )
{
v8 = *((_QWORD *)a2 + 19);
v9 = (unsigned int)(8 * v4);
v10 = 0LL;
do
{
*(_QWORD *)&v7[v10] = _byteswap_uint64(*(_QWORD *)(v8 + v10));
v10 += 8LL;
}
while ( v9 != v10 );
v7 += v10;
}
if ( v5 )
{
v11 = (unsigned int)(8 * v5);
v12 = 0LL;
do
{
*(_QWORD *)&v7[v12] = _byteswap_uint64(*(_QWORD *)(*((_QWORD *)a2 + 20) + v12));
v12 += 8LL;
}
while ( v11 != v12 );
v7 += v12;
}
if ( (a3 & 2) != 0 )
{
v13 = *((unsigned __int8 *)a2 + 15);
v14 = *((unsigned __int8 *)a2 + 14);
*(_DWORD *)v7 = _byteswap_ulong(*((_DWORD *)a2 + 44));
*((_DWORD *)v7 + 1) = _byteswap_ulong(*((_DWORD *)a2 + 46));
*((_DWORD *)v7 + 2) = _byteswap_ulong(*((_DWORD *)a2 + 50));
*(_QWORD *)(v7 + 12) = _byteswap_uint64(*((_QWORD *)a2 + 24));
*(_QWORD *)(v7 + 20) = _byteswap_uint64(*((_QWORD *)a2 + 26));
*(_QWORD *)(v7 + 28) = _byteswap_uint64(*((_QWORD *)a2 + 27));
*(_QWORD *)(v7 + 36) = _byteswap_uint64(*((_QWORD *)a2 + 28));
*(_QWORD *)(v7 + 44) = _byteswap_uint64(*((_QWORD *)a2 + 21));
v7 += 52;
v15 = v13 | (v14 << 8);
if ( v15 )
{
v16 = (unsigned int)(4 * v15);
v17 = 0LL;
do
{
*(_DWORD *)&v7[v17] = _byteswap_ulong(*(_DWORD *)(*((_QWORD *)a2 + 17) + 2 * v17));
v17 += 4LL;
}
while ( v16 != v17 );
v7 += v17;
}
}
v18 = v7 - (_BYTE *)&v29;
if ( (a3 & 1) != 0 )
{
v21 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v28, a1, 7LL);
if ( !v21 )
{
v20 = my_pwrite(a1, &v29, v18, 0LL, 2052LL);
goto LABEL_19;
}
v24 = v21;
((void ( *)(long long, long long, const char *, long long))PSI_server[66])(
v21,
v18,
"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_open.c",
971LL);
v22 = my_pwrite(a1, &v29, v18, 0LL, 2052LL);
v26 = v22 == 0;
v25 = 0LL;
}
else
{
v19 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v28, a1, 7LL);
if ( !v19 )
{
v20 = my_write(a1, (long long)&v29, v18, 4LL);
LABEL_19:
v22 = v20;
return v22 != 0;
}
v24 = v19;
((void ( *)(long long, long long, const char *, long long))PSI_server[66])(
v19,
v18,
"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_open.c",
973LL);
v22 = my_write(a1, (long long)&v29, v18, 4LL);
v25 = 0LL;
v26 = v22 == 0;
}
if ( v26 )
v25 = v18;
((void ( *)(long long, long long))PSI_server[67])(v24, v25);
return v22 != 0;
}
| mi_state_info_write:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x2388
MOV R13D,EDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOVZX ECX,byte ptr [RSI + 0x12]
MOVZX EAX,byte ptr [RSI + 0x15]
MOV RDI,qword ptr [RSI + 0x10]
MOV qword ptr [RBP + -0x2350],RDI
MOVUPS XMM0,xmmword ptr [RSI]
MOVAPS xmmword ptr [RBP + -0x2360],XMM0
MOVZX EDI,word ptr [RSI + 0xec]
ROL DI,0x8
MOV word ptr [RBP + -0x2348],DI
MOV DIL,byte ptr [RSI + 0xf0]
MOV byte ptr [RBP + -0x2346],DIL
MOV DIL,byte ptr [RSI + 0xe8]
MOV byte ptr [RBP + -0x2345],DIL
MOV RDI,qword ptr [RSI + 0x18]
BSWAP RDI
MOV qword ptr [RBP + -0x2344],RDI
MOV RDI,qword ptr [RSI + 0x20]
BSWAP RDI
MOV qword ptr [RBP + -0x233c],RDI
MOV RDI,qword ptr [RSI + 0x50]
BSWAP RDI
MOV qword ptr [RBP + -0x2334],RDI
MOV RDI,qword ptr [RSI + 0x58]
BSWAP RDI
MOV qword ptr [RBP + -0x232c],RDI
MOV RDI,qword ptr [RSI + 0x38]
BSWAP RDI
MOV qword ptr [RBP + -0x2324],RDI
MOV RDI,qword ptr [RSI + 0x40]
BSWAP RDI
MOV qword ptr [RBP + -0x231c],RDI
MOV RDI,qword ptr [RSI + 0x28]
BSWAP RDI
MOV qword ptr [RBP + -0x2314],RDI
MOV RDI,qword ptr [RSI + 0x30]
BSWAP RDI
MOV qword ptr [RBP + -0x230c],RDI
MOV RDI,qword ptr [RSI + 0x60]
BSWAP RDI
MOV qword ptr [RBP + -0x2304],RDI
MOV EBX,dword ptr [RSI + 0x48]
MOV EDI,EBX
MOV dword ptr [RBP + -0x22fc],0x0
MOV byte ptr [RBP + -0x22f5],BL
MOV byte ptr [RBP + -0x22f6],BH
SHR EBX,0x10
SHR EDI,0x18
MOV byte ptr [RBP + -0x22f7],BL
MOV byte ptr [RBP + -0x22f8],DIL
MOV EDI,dword ptr [RSI + 0x68]
BSWAP EDI
MOV dword ptr [RBP + -0x22f4],EDI
MOV EDI,dword ptr [RSI + 0x70]
BSWAP EDI
MOV dword ptr [RBP + -0x22f0],EDI
MOV EDI,dword ptr [RSI + 0x80]
BSWAP EDI
MOV dword ptr [RBP + -0x22ec],EDI
MOV EDI,dword ptr [RSI + 0x78]
BSWAP EDI
MOV dword ptr [RBP + -0x22e8],EDI
MOV EDI,dword ptr [RSI + 0xf4]
LEA R14,[RDI + RBP*0x1]
ADD R14,-0x22e4
TEST RCX,RCX
JZ 0x00182cbc
MOV RDI,qword ptr [RSI + 0x98]
SHL ECX,0x3
XOR R8D,R8D
LAB_00182ca5:
MOV R9,qword ptr [RDI + R8*0x1]
BSWAP R9
MOV qword ptr [R14 + R8*0x1],R9
ADD R8,0x8
CMP RCX,R8
JNZ 0x00182ca5
ADD R14,R8
LAB_00182cbc:
TEST RAX,RAX
JZ 0x00182ce4
SHL EAX,0x3
XOR ECX,ECX
LAB_00182cc6:
MOV RDI,qword ptr [RSI + 0xa0]
MOV RDI,qword ptr [RDI + RCX*0x1]
BSWAP RDI
MOV qword ptr [R14 + RCX*0x1],RDI
ADD RCX,0x8
CMP RAX,RCX
JNZ 0x00182cc6
ADD R14,RCX
LAB_00182ce4:
TEST DL,0x2
JZ 0x00182d8a
MOVZX ECX,byte ptr [RSI + 0xf]
MOVZX EAX,byte ptr [RSI + 0xe]
MOV EDI,dword ptr [RSI + 0xb0]
BSWAP EDI
MOV dword ptr [R14],EDI
MOV EDI,dword ptr [RSI + 0xb8]
BSWAP EDI
MOV dword ptr [R14 + 0x4],EDI
MOV EDI,dword ptr [RSI + 0xc8]
BSWAP EDI
MOV dword ptr [R14 + 0x8],EDI
MOV RDI,qword ptr [RSI + 0xc0]
BSWAP RDI
MOV qword ptr [R14 + 0xc],RDI
MOV RDI,qword ptr [RSI + 0xd0]
BSWAP RDI
MOV qword ptr [R14 + 0x14],RDI
MOV RDI,qword ptr [RSI + 0xd8]
BSWAP RDI
MOV qword ptr [R14 + 0x1c],RDI
MOV RDI,qword ptr [RSI + 0xe0]
BSWAP RDI
MOV qword ptr [R14 + 0x24],RDI
MOV RDI,qword ptr [RSI + 0xa8]
BSWAP RDI
SHL EAX,0x8
MOV qword ptr [R14 + 0x2c],RDI
ADD R14,0x34
OR EAX,ECX
JZ 0x00182d8a
SHL EAX,0x2
XOR ECX,ECX
LAB_00182d6e:
MOV RDI,qword ptr [RSI + 0x88]
MOV EDI,dword ptr [RDI + RCX*0x2]
BSWAP EDI
MOV dword ptr [R14 + RCX*0x1],EDI
ADD RCX,0x4
CMP RAX,RCX
JNZ 0x00182d6e
ADD R14,RCX
LAB_00182d8a:
LEA RAX,[RBP + -0x2360]
SUB R14,RAX
LEA R12,[0x48f258]
TEST DL,0x1
JNZ 0x00182ddb
MOV RAX,qword ptr [R12]
LEA RDI,[RBP + -0x23a8]
MOV ESI,R13D
MOV EDX,0x7
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x00182e49
LEA RSI,[RBP + -0x2360]
MOV ECX,0x4
MOV EDI,R13D
MOV RDX,R14
CALL 0x00130a78
JMP 0x00182e17
LAB_00182ddb:
MOV RAX,qword ptr [R12]
LEA RDI,[RBP + -0x23a8]
MOV ESI,R13D
MOV EDX,0x7
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x00182e89
LEA RSI,[RBP + -0x2360]
MOV R8D,0x804
MOV EDI,R13D
MOV RDX,R14
XOR ECX,ECX
CALL 0x001a6e0a
LAB_00182e17:
MOV RBX,RAX
LAB_00182e1a:
XOR EAX,EAX
TEST RBX,RBX
SETNZ CL
MOV RDX,qword ptr FS:[0x28]
CMP RDX,qword ptr [RBP + -0x30]
JNZ 0x00182ee3
MOV AL,CL
ADD RSP,0x2388
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00182e49:
MOV R15,RAX
MOV RAX,qword ptr [R12]
LEA RDX,[0x1e332b]
MOV RDI,R15
MOV RSI,R14
MOV ECX,0x3cd
CALL qword ptr [RAX + 0x210]
LEA RSI,[RBP + -0x2360]
MOV ECX,0x4
MOV EDI,R13D
MOV RDX,R14
CALL 0x00130a78
MOV RBX,RAX
XOR ESI,ESI
TEST RAX,RAX
JMP 0x00182ecd
LAB_00182e89:
MOV R15,RAX
MOV RAX,qword ptr [R12]
LEA RDX,[0x1e332b]
MOV RDI,R15
MOV RSI,R14
MOV ECX,0x3cb
CALL qword ptr [RAX + 0x210]
LEA RSI,[RBP + -0x2360]
MOV R8D,0x804
MOV EDI,R13D
MOV RDX,R14
XOR ECX,ECX
CALL 0x001a6e0a
MOV RBX,RAX
TEST RAX,RAX
MOV ESI,0x0
LAB_00182ecd:
CMOVZ RSI,R14
MOV RAX,qword ptr [R12]
MOV RDI,R15
CALL qword ptr [RAX + 0x218]
JMP 0x00182e1a
LAB_00182ee3:
CALL 0x0012a270
|
bool mi_state_info_write(int4 param_1,int4 *param_2,ulong param_3)
{
byte bVar1;
byte bVar2;
int1 uVar3;
int1 uVar4;
int4 uVar5;
uint uVar6;
ulong uVar7;
ushort uVar8;
long lVar9;
long lVar10;
long lVar11;
long lVar12;
uint *puVar13;
long in_FS_OFFSET;
int1 local_23b0 [72];
int4 local_2368;
int4 uStack_2364;
int4 uStack_2360;
int4 uStack_235c;
int8 local_2358;
ushort local_2350;
int1 local_234e;
int1 local_234d;
ulong local_234c;
ulong local_2344;
ulong local_233c;
ulong local_2334;
ulong local_232c;
ulong local_2324;
ulong local_231c;
ulong local_2314;
ulong local_230c;
int4 local_2304;
int1 local_2300;
int1 local_22ff;
int1 local_22fe;
int1 local_22fd;
uint local_22fc;
uint local_22f8;
uint local_22f4;
uint local_22f0;
ulong uStack_22ec;
uint auStack_22e4 [2219];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
bVar1 = *(byte *)((long)param_2 + 0x12);
bVar2 = *(byte *)((long)param_2 + 0x15);
local_2358 = *(int8 *)(param_2 + 4);
local_2368 = *param_2;
uStack_2364 = param_2[1];
uStack_2360 = param_2[2];
uStack_235c = param_2[3];
local_2350 = *(ushort *)(param_2 + 0x3b) << 8 | *(ushort *)(param_2 + 0x3b) >> 8;
local_234e = *(int1 *)(param_2 + 0x3c);
local_234d = *(int1 *)(param_2 + 0x3a);
uVar7 = *(ulong *)(param_2 + 6);
local_234c = uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18
| (uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 |
(uVar7 & 0xff0000) << 0x18 | (uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
uVar7 = *(ulong *)(param_2 + 8);
local_2344 = uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18
| (uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 |
(uVar7 & 0xff0000) << 0x18 | (uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
uVar7 = *(ulong *)(param_2 + 0x14);
local_233c = uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18
| (uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 |
(uVar7 & 0xff0000) << 0x18 | (uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
uVar7 = *(ulong *)(param_2 + 0x16);
local_2334 = uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18
| (uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 |
(uVar7 & 0xff0000) << 0x18 | (uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
uVar7 = *(ulong *)(param_2 + 0xe);
local_232c = uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18
| (uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 |
(uVar7 & 0xff0000) << 0x18 | (uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
uVar7 = *(ulong *)(param_2 + 0x10);
local_2324 = uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18
| (uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 |
(uVar7 & 0xff0000) << 0x18 | (uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
uVar7 = *(ulong *)(param_2 + 10);
local_231c = uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18
| (uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 |
(uVar7 & 0xff0000) << 0x18 | (uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
uVar7 = *(ulong *)(param_2 + 0xc);
local_2314 = uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18
| (uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 |
(uVar7 & 0xff0000) << 0x18 | (uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
uVar7 = *(ulong *)(param_2 + 0x18);
local_230c = uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18
| (uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 |
(uVar7 & 0xff0000) << 0x18 | (uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
uVar5 = param_2[0x12];
local_2304 = 0;
local_22fd = (int1)uVar5;
local_22fe = (int1)((uint)uVar5 >> 8);
local_22ff = (int1)((uint)uVar5 >> 0x10);
local_2300 = (int1)((uint)uVar5 >> 0x18);
uVar6 = param_2[0x1a];
local_22fc = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;
uVar6 = param_2[0x1c];
local_22f8 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;
uVar6 = param_2[0x20];
local_22f4 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;
uVar6 = param_2[0x1e];
local_22f0 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;
puVar13 = (uint *)((long)&uStack_22ec + (ulong)(uint)param_2[0x3d]);
if (bVar1 != 0) {
lVar10 = *(long *)(param_2 + 0x26);
lVar12 = 0;
do {
uVar7 = *(ulong *)(lVar10 + lVar12);
*(ulong *)((long)puVar13 + lVar12) =
uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18 |
(uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 | (uVar7 & 0xff0000) << 0x18 |
(uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
lVar12 = lVar12 + 8;
} while ((ulong)bVar1 * 8 != lVar12);
puVar13 = (uint *)((long)puVar13 + lVar12);
}
if (bVar2 != 0) {
lVar10 = 0;
do {
uVar7 = *(ulong *)(*(long *)(param_2 + 0x28) + lVar10);
*(ulong *)((long)puVar13 + lVar10) =
uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18 |
(uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 | (uVar7 & 0xff0000) << 0x18 |
(uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
lVar10 = lVar10 + 8;
} while ((ulong)bVar2 * 8 != lVar10);
puVar13 = (uint *)((long)puVar13 + lVar10);
}
if ((param_3 & 2) != 0) {
uVar3 = *(int1 *)((long)param_2 + 0xf);
uVar4 = *(int1 *)((long)param_2 + 0xe);
uVar6 = param_2[0x2c];
*puVar13 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;
uVar6 = param_2[0x2e];
puVar13[1] = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;
uVar6 = param_2[0x32];
puVar13[2] = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;
uVar7 = *(ulong *)(param_2 + 0x30);
*(ulong *)(puVar13 + 3) =
uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18 |
(uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 | (uVar7 & 0xff0000) << 0x18 |
(uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
uVar7 = *(ulong *)(param_2 + 0x34);
*(ulong *)(puVar13 + 5) =
uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18 |
(uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 | (uVar7 & 0xff0000) << 0x18 |
(uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
uVar7 = *(ulong *)(param_2 + 0x36);
*(ulong *)(puVar13 + 7) =
uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18 |
(uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 | (uVar7 & 0xff0000) << 0x18 |
(uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
uVar7 = *(ulong *)(param_2 + 0x38);
*(ulong *)(puVar13 + 9) =
uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18 |
(uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 | (uVar7 & 0xff0000) << 0x18 |
(uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
uVar7 = *(ulong *)(param_2 + 0x2a);
*(ulong *)(puVar13 + 0xb) =
uVar7 >> 0x38 | (uVar7 & 0xff000000000000) >> 0x28 | (uVar7 & 0xff0000000000) >> 0x18 |
(uVar7 & 0xff00000000) >> 8 | (uVar7 & 0xff000000) << 8 | (uVar7 & 0xff0000) << 0x18 |
(uVar7 & 0xff00) << 0x28 | uVar7 << 0x38;
puVar13 = puVar13 + 0xd;
uVar8 = CONCAT11(uVar4,uVar3);
if (uVar8 != 0) {
lVar10 = 0;
do {
uVar6 = *(uint *)(*(long *)(param_2 + 0x22) + lVar10 * 2);
*(uint *)((long)puVar13 + lVar10) =
uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;
lVar10 = lVar10 + 4;
} while ((ulong)uVar8 << 2 != lVar10);
puVar13 = (uint *)((long)puVar13 + lVar10);
}
}
lVar10 = (long)puVar13 - (long)&local_2368;
if ((param_3 & 1) == 0) {
lVar12 = (**(code **)(PSI_server + 0x158))(local_23b0,param_1,7);
if (lVar12 == 0) {
lVar9 = my_write(param_1,&local_2368,lVar10,4);
goto LAB_00182e1a;
}
(**(code **)(PSI_server + 0x210))
(lVar12,lVar10,"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_open.c",
0x3cd);
lVar9 = my_write(param_1,&local_2368,lVar10,4);
}
else {
lVar12 = (**(code **)(PSI_server + 0x158))(local_23b0,param_1,7);
if (lVar12 == 0) {
lVar9 = my_pwrite(param_1,&local_2368,lVar10,0,0x804);
goto LAB_00182e1a;
}
(**(code **)(PSI_server + 0x210))
(lVar12,lVar10,"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_open.c",
0x3cb);
lVar9 = my_pwrite(param_1,&local_2368,lVar10,0,0x804);
}
lVar11 = 0;
if (lVar9 == 0) {
lVar11 = lVar10;
}
(**(code **)(PSI_server + 0x218))(lVar12,lVar11);
LAB_00182e1a:
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return lVar9 != 0;
}
| |
30,357 | mi_update_static_record | eloqsql/storage/myisam/mi_statrec.c | int _mi_update_static_record(MI_INFO *info, my_off_t pos, const uchar *record)
{
info->rec_cache.seek_not_done=1; /* We have done a seek */
return (info->s->file_write(info,
record, info->s->base.reclength,
pos,
MYF(MY_NABP)) != 0);
} | O0 | c | mi_update_static_record:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movl $0x1, 0x300(%rax)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x2e8(%rax), %rax
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x8(%rbp), %rcx
movq (%rcx), %rcx
movq 0x140(%rcx), %rdx
movq -0x10(%rbp), %rcx
movl $0x4, %r8d
callq *%rax
cmpq $0x0, %rax
setne %al
andb $0x1, %al
movzbl %al, %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _mi_update_static_record:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_8]
mov dword ptr [rax+300h], 1
mov rax, [rbp+var_8]
mov rax, [rax]
mov rax, [rax+2E8h]
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_18]
mov rcx, [rbp+var_8]
mov rcx, [rcx]
mov rdx, [rcx+140h]
mov rcx, [rbp+var_10]
mov r8d, 4
call rax
cmp rax, 0
setnz al
and al, 1
movzx eax, al
add rsp, 20h
pop rbp
retn
| _BOOL8 mi_update_static_record(_DWORD *a1, long long a2, long long a3)
{
a1[192] = 1;
return (*(long long ( **)(_DWORD *, long long, _QWORD, long long, long long))(*(_QWORD *)a1 + 744LL))(
a1,
a3,
*(_QWORD *)(*(_QWORD *)a1 + 320LL),
a2,
4LL) != 0;
}
| _mi_update_static_record:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x300],0x1
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x2e8]
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RCX]
MOV RDX,qword ptr [RCX + 0x140]
MOV RCX,qword ptr [RBP + -0x10]
MOV R8D,0x4
CALL RAX
CMP RAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
ADD RSP,0x20
POP RBP
RET
|
bool _mi_update_static_record(long *param_1,int8 param_2,int8 param_3)
{
long lVar1;
*(int4 *)(param_1 + 0x60) = 1;
lVar1 = (**(code **)(*param_1 + 0x2e8))
(param_1,param_3,*(int8 *)(*param_1 + 0x140),param_2,4);
return lVar1 != 0;
}
| |
30,358 | my_wc_mb_euc_kr | eloqsql/strings/ctype-euc_kr.c | static int
my_wc_mb_euc_kr(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *s, uchar *e)
{
int code;
if (s >= e)
return MY_CS_TOOSMALL;
if ((uint) wc < 0x80)
{
s[0]= (uchar) wc;
return 1;
}
if (!(code=func_uni_ksc5601_onechar(wc)))
return MY_CS_ILUNI;
if (s+2>e)
return MY_CS_TOOSMALL2;
s[0]=code>>8;
s[1]=code&0xFF;
return 2;
} | O3 | c | my_wc_mb_euc_kr:
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0x3570e
cmpl $0x7f, %esi
ja 0x3570f
movb %sil, (%rdx)
movl $0x1, %eax
retq
leal -0xa1(%rsi), %eax
cmpl $0xc6, %eax
ja 0x3572a
movl %eax, %eax
leaq 0x9788b(%rip), %rsi # 0xccfb0
jmp 0x35822
leal -0x2c7(%rsi), %eax
cmpl $0x18a, %eax # imm = 0x18A
ja 0x35745
movl %eax, %eax
leaq 0x97a00(%rip), %rsi # 0xcd140
jmp 0x35822
leal -0x2015(%rsi), %eax
cmpl $0x2fd, %eax # imm = 0x2FD
ja 0x35760
movl %eax, %eax
leaq 0x97d05(%rip), %rsi # 0xcd460
jmp 0x35822
leal -0x2460(%rsi), %eax
cmpl $0x20d, %eax # imm = 0x20D
ja 0x3577b
movl %eax, %eax
leaq 0x982ea(%rip), %rsi # 0xcda60
jmp 0x35822
leal -0x3000(%rsi), %eax
cmpl $0x27f, %eax # imm = 0x27F
ja 0x35796
movl %eax, %eax
leaq 0x986ef(%rip), %rsi # 0xcde80
jmp 0x35822
leal -0x3380(%rsi), %eax
cmpl $0x5d, %eax
ja 0x357ac
movl %eax, %eax
leaq 0x98bd6(%rip), %rsi # 0xce380
jmp 0x35822
leal -0x4e00(%rsi), %eax
cmpl $0x467f, %eax # imm = 0x467F
ja 0x357c4
movl %eax, %eax
leaq 0x98c7e(%rip), %rsi # 0xce440
jmp 0x35822
leal -0x9577(%rsi), %eax
cmpl $0xa25, %eax # imm = 0xA25
ja 0x357dc
movl %eax, %eax
leaq 0xa1966(%rip), %rsi # 0xd7140
jmp 0x35822
leal -0xac00(%rsi), %eax
cmpl $0x2ba3, %eax # imm = 0x2BA3
ja 0x357f4
movl %eax, %eax
leaq 0xa2d9e(%rip), %rsi # 0xd8590
jmp 0x35822
leal -0xf900(%rsi), %eax
cmpl $0x10b, %eax # imm = 0x10B
ja 0x3580c
movl %eax, %eax
leaq 0xa84d6(%rip), %rsi # 0xddce0
jmp 0x35822
leal -0xff01(%rsi), %eax
cmpl $0xe5, %eax
ja 0x35852
movl %eax, %eax
leaq 0xa86de(%rip), %rsi # 0xddf00
leaq (%rsi,%rax,2), %rax
pushq %rbp
movq %rsp, %rbp
movzwl (%rax), %esi
testw %si, %si
je 0x3584e
leaq 0x2(%rdx), %rdi
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rcx, %rdi
ja 0x35850
rolw $0x8, %si
movw %si, (%rdx)
movl $0x2, %eax
jmp 0x35850
xorl %eax, %eax
popq %rbp
retq
xorl %eax, %eax
retq
| my_wc_mb_euc_kr:
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb short locret_3570E
cmp esi, 7Fh
ja short loc_3570F
mov [rdx], sil
mov eax, 1
locret_3570E:
retn
loc_3570F:
lea eax, [rsi-0A1h]
cmp eax, 0C6h
ja short loc_3572A
mov eax, eax
lea rsi, tab_uni_ksc56010
jmp loc_35822
loc_3572A:
lea eax, [rsi-2C7h]
cmp eax, 18Ah
ja short loc_35745
mov eax, eax
lea rsi, tab_uni_ksc56011
jmp loc_35822
loc_35745:
lea eax, [rsi-2015h]
cmp eax, 2FDh
ja short loc_35760
mov eax, eax
lea rsi, tab_uni_ksc56012
jmp loc_35822
loc_35760:
lea eax, [rsi-2460h]
cmp eax, 20Dh
ja short loc_3577B
mov eax, eax
lea rsi, tab_uni_ksc56013
jmp loc_35822
loc_3577B:
lea eax, [rsi-3000h]
cmp eax, 27Fh
ja short loc_35796
mov eax, eax
lea rsi, tab_uni_ksc56014
jmp loc_35822
loc_35796:
lea eax, [rsi-3380h]
cmp eax, 5Dh ; ']'
ja short loc_357AC
mov eax, eax
lea rsi, tab_uni_ksc56015
jmp short loc_35822
loc_357AC:
lea eax, [rsi-4E00h]
cmp eax, 467Fh
ja short loc_357C4
mov eax, eax
lea rsi, tab_uni_ksc56016
jmp short loc_35822
loc_357C4:
lea eax, [rsi-9577h]
cmp eax, 0A25h
ja short loc_357DC
mov eax, eax
lea rsi, tab_uni_ksc56017
jmp short loc_35822
loc_357DC:
lea eax, [rsi-0AC00h]
cmp eax, 2BA3h
ja short loc_357F4
mov eax, eax
lea rsi, tab_uni_ksc56018
jmp short loc_35822
loc_357F4:
lea eax, [rsi-0F900h]
cmp eax, 10Bh
ja short loc_3580C
mov eax, eax
lea rsi, tab_uni_ksc56019
jmp short loc_35822
loc_3580C:
lea eax, [rsi-0FF01h]
cmp eax, 0E5h
ja short loc_35852
mov eax, eax
lea rsi, tab_uni_ksc560110
loc_35822:
lea rax, [rsi+rax*2]
push rbp
mov rbp, rsp
movzx esi, word ptr [rax]
test si, si
jz short loc_3584E
lea rdi, [rdx+2]
mov eax, 0FFFFFF9Ah
cmp rdi, rcx
ja short loc_35850
rol si, 8
mov [rdx], si
mov eax, 2
jmp short loc_35850
loc_3584E:
xor eax, eax
loc_35850:
pop rbp
retn
loc_35852:
xor eax, eax
retn
| long long my_wc_mb_euc_kr(long long a1, unsigned int a2, _WORD *a3, unsigned long long a4)
{
long long result; // rax
long long v5; // rax
_WORD *v6; // rsi
__int16 v7; // si
result = 4294967195LL;
if ( (unsigned long long)a3 < a4 )
{
if ( a2 > 0x7F )
{
LODWORD(v5) = a2 - 161;
if ( a2 - 161 > 0xC6 )
{
LODWORD(v5) = a2 - 711;
if ( a2 - 711 > 0x18A )
{
LODWORD(v5) = a2 - 8213;
if ( a2 - 8213 > 0x2FD )
{
LODWORD(v5) = a2 - 9312;
if ( a2 - 9312 > 0x20D )
{
LODWORD(v5) = a2 - 12288;
if ( a2 - 12288 > 0x27F )
{
LODWORD(v5) = a2 - 13184;
if ( a2 - 13184 > 0x5D )
{
LODWORD(v5) = a2 - 19968;
if ( a2 - 19968 > 0x467F )
{
LODWORD(v5) = a2 - 38263;
if ( a2 - 38263 > 0xA25 )
{
LODWORD(v5) = a2 - 44032;
if ( a2 - 44032 > 0x2BA3 )
{
LODWORD(v5) = a2 - 63744;
if ( a2 - 63744 > 0x10B )
{
LODWORD(v5) = a2 - 65281;
if ( a2 - 65281 > 0xE5 )
return 0LL;
v5 = (unsigned int)v5;
v6 = &tab_uni_ksc560110;
}
else
{
v5 = (unsigned int)v5;
v6 = &tab_uni_ksc56019;
}
}
else
{
v5 = (unsigned int)v5;
v6 = &tab_uni_ksc56018;
}
}
else
{
v5 = (unsigned int)v5;
v6 = &tab_uni_ksc56017;
}
}
else
{
v5 = (unsigned int)v5;
v6 = &tab_uni_ksc56016;
}
}
else
{
v5 = (unsigned int)v5;
v6 = &tab_uni_ksc56015;
}
}
else
{
v5 = (unsigned int)v5;
v6 = &tab_uni_ksc56014;
}
}
else
{
v5 = (unsigned int)v5;
v6 = &tab_uni_ksc56013;
}
}
else
{
v5 = (unsigned int)v5;
v6 = &tab_uni_ksc56012;
}
}
else
{
v5 = (unsigned int)v5;
v6 = &tab_uni_ksc56011;
}
}
else
{
v5 = (unsigned int)v5;
v6 = &tab_uni_ksc56010;
}
v7 = v6[v5];
if ( v7 )
{
result = 4294967194LL;
if ( (unsigned long long)(a3 + 1) <= a4 )
{
*a3 = __ROL2__(v7, 8);
return 2LL;
}
}
else
{
return 0LL;
}
}
else
{
*(_BYTE *)a3 = a2;
return 1LL;
}
}
return result;
}
| my_wc_mb_euc_kr:
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x0013570e
CMP ESI,0x7f
JA 0x0013570f
MOV byte ptr [RDX],SIL
MOV EAX,0x1
LAB_0013570e:
RET
LAB_0013570f:
LEA EAX,[RSI + -0xa1]
CMP EAX,0xc6
JA 0x0013572a
MOV EAX,EAX
LEA RSI,[0x1ccfb0]
JMP 0x00135822
LAB_0013572a:
LEA EAX,[RSI + -0x2c7]
CMP EAX,0x18a
JA 0x00135745
MOV EAX,EAX
LEA RSI,[0x1cd140]
JMP 0x00135822
LAB_00135745:
LEA EAX,[RSI + -0x2015]
CMP EAX,0x2fd
JA 0x00135760
MOV EAX,EAX
LEA RSI,[0x1cd460]
JMP 0x00135822
LAB_00135760:
LEA EAX,[RSI + -0x2460]
CMP EAX,0x20d
JA 0x0013577b
MOV EAX,EAX
LEA RSI,[0x1cda60]
JMP 0x00135822
LAB_0013577b:
LEA EAX,[RSI + -0x3000]
CMP EAX,0x27f
JA 0x00135796
MOV EAX,EAX
LEA RSI,[0x1cde80]
JMP 0x00135822
LAB_00135796:
LEA EAX,[RSI + -0x3380]
CMP EAX,0x5d
JA 0x001357ac
MOV EAX,EAX
LEA RSI,[0x1ce380]
JMP 0x00135822
LAB_001357ac:
LEA EAX,[RSI + -0x4e00]
CMP EAX,0x467f
JA 0x001357c4
MOV EAX,EAX
LEA RSI,[0x1ce440]
JMP 0x00135822
LAB_001357c4:
LEA EAX,[RSI + -0x9577]
CMP EAX,0xa25
JA 0x001357dc
MOV EAX,EAX
LEA RSI,[0x1d7140]
JMP 0x00135822
LAB_001357dc:
LEA EAX,[RSI + -0xac00]
CMP EAX,0x2ba3
JA 0x001357f4
MOV EAX,EAX
LEA RSI,[0x1d8590]
JMP 0x00135822
LAB_001357f4:
LEA EAX,[RSI + -0xf900]
CMP EAX,0x10b
JA 0x0013580c
MOV EAX,EAX
LEA RSI,[0x1ddce0]
JMP 0x00135822
LAB_0013580c:
LEA EAX,[RSI + -0xff01]
CMP EAX,0xe5
JA 0x00135852
MOV EAX,EAX
LEA RSI,[0x1ddf00]
LAB_00135822:
LEA RAX,[RSI + RAX*0x2]
PUSH RBP
MOV RBP,RSP
MOVZX ESI,word ptr [RAX]
TEST SI,SI
JZ 0x0013584e
LEA RDI,[RDX + 0x2]
MOV EAX,0xffffff9a
CMP RDI,RCX
JA 0x00135850
ROL SI,0x8
MOV word ptr [RDX],SI
MOV EAX,0x2
JMP 0x00135850
LAB_0013584e:
XOR EAX,EAX
LAB_00135850:
POP RBP
RET
LAB_00135852:
XOR EAX,EAX
RET
|
int8 my_wc_mb_euc_kr(int8 param_1,uint param_2,ushort *param_3,ushort *param_4)
{
ushort uVar1;
int8 uVar2;
ulong uVar3;
int1 *puVar4;
uVar2 = 0xffffff9b;
if (param_3 < param_4) {
if (0x7f < param_2) {
if (param_2 - 0xa1 < 199) {
uVar3 = (ulong)(param_2 - 0xa1);
puVar4 = tab_uni_ksc56010;
}
else if (param_2 - 0x2c7 < 0x18b) {
uVar3 = (ulong)(param_2 - 0x2c7);
puVar4 = tab_uni_ksc56011;
}
else if (param_2 - 0x2015 < 0x2fe) {
uVar3 = (ulong)(param_2 - 0x2015);
puVar4 = tab_uni_ksc56012;
}
else if (param_2 - 0x2460 < 0x20e) {
uVar3 = (ulong)(param_2 - 0x2460);
puVar4 = tab_uni_ksc56013;
}
else if (param_2 - 0x3000 < 0x280) {
uVar3 = (ulong)(param_2 - 0x3000);
puVar4 = tab_uni_ksc56014;
}
else if (param_2 - 0x3380 < 0x5e) {
uVar3 = (ulong)(param_2 - 0x3380);
puVar4 = tab_uni_ksc56015;
}
else if (param_2 - 0x4e00 < 0x4680) {
uVar3 = (ulong)(param_2 - 0x4e00);
puVar4 = tab_uni_ksc56016;
}
else if (param_2 - 0x9577 < 0xa26) {
uVar3 = (ulong)(param_2 - 0x9577);
puVar4 = tab_uni_ksc56017;
}
else if (param_2 - 0xac00 < 0x2ba4) {
uVar3 = (ulong)(param_2 - 0xac00);
puVar4 = tab_uni_ksc56018;
}
else if (param_2 - 0xf900 < 0x10c) {
uVar3 = (ulong)(param_2 - 0xf900);
puVar4 = tab_uni_ksc56019;
}
else {
uVar3 = (ulong)(param_2 - 0xff01);
if (0xe5 < param_2 - 0xff01) {
return 0;
}
puVar4 = tab_uni_ksc560110;
}
uVar1 = *(ushort *)(puVar4 + uVar3 * 2);
if (uVar1 == 0) {
uVar2 = 0;
}
else {
uVar2 = 0xffffff9a;
if (param_3 + 1 <= param_4) {
*param_3 = uVar1 << 8 | uVar1 >> 8;
uVar2 = 2;
}
}
return uVar2;
}
*(char *)param_3 = (char)param_2;
uVar2 = 1;
}
return uVar2;
}
| |
30,359 | common_log::add(ggml_log_level, char const*, __va_list_tag*) | monkey531[P]llama/common/log.cpp | void add(enum ggml_log_level level, const char * fmt, va_list args) {
std::lock_guard<std::mutex> lock(mtx);
if (!running) {
// discard messages while the worker thread is paused
return;
}
auto & entry = entries[tail];
{
// cannot use args twice, so make a copy in case we need to expand the buffer
va_list args_copy;
va_copy(args_copy, args);
#if 1
const size_t n = vsnprintf(entry.msg.data(), entry.msg.size(), fmt, args);
if (n >= entry.msg.size()) {
entry.msg.resize(n + 1);
vsnprintf(entry.msg.data(), entry.msg.size(), fmt, args_copy);
}
#else
// hack for bolding arguments
std::stringstream ss;
for (int i = 0; fmt[i] != 0; i++) {
if (fmt[i] == '%') {
ss << LOG_COL_BOLD;
while (fmt[i] != ' ' && fmt[i] != ')' && fmt[i] != ']' && fmt[i] != 0) ss << fmt[i++];
ss << LOG_COL_DEFAULT;
if (fmt[i] == 0) break;
}
ss << fmt[i];
}
const size_t n = vsnprintf(entry.msg.data(), entry.msg.size(), ss.str().c_str(), args);
if (n >= entry.msg.size()) {
entry.msg.resize(n + 1);
vsnprintf(entry.msg.data(), entry.msg.size(), ss.str().c_str(), args_copy);
}
#endif
va_end(args_copy);
}
entry.level = level;
entry.prefix = prefix;
entry.timestamp = 0;
if (timestamps) {
entry.timestamp = t_us() - t_start;
}
entry.is_end = false;
tail = (tail + 1) % entries.size();
if (tail == head) {
// expand the buffer
std::vector<common_log_entry> new_entries(2*entries.size());
size_t new_tail = 0;
do {
new_entries[new_tail] = std::move(entries[head]);
head = (head + 1) % entries.size();
new_tail = (new_tail + 1);
} while (head != tail);
head = 0;
tail = new_tail;
for (size_t i = tail; i < new_entries.size(); i++) {
new_entries[i].msg.resize(256);
}
entries = std::move(new_entries);
}
cv.notify_one();
} | O3 | cpp | common_log::add(ggml_log_level, char const*, __va_list_tag*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, %r15
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
callq 0x19bc0
testl %eax, %eax
jne 0x87a26
cmpb $0x1, 0x6a(%rbx)
jne 0x87a0f
movl %ebp, 0xc(%rsp)
movq 0x78(%rbx), %r13
movq 0x98(%rbx), %rax
leaq (%rax,%rax,2), %rbp
shlq $0x4, %rbp
movq %r13, %r12
addq %rbp, %r12
movq 0x10(%r15), %rax
movq %rax, 0x40(%rsp)
movups (%r15), %xmm0
movaps %xmm0, 0x30(%rsp)
movq 0x10(%r13,%rbp), %rdi
movq 0x18(%r13,%rbp), %rsi
subq %rdi, %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0x19ff8
movslq %eax, %rsi
movq 0x18(%r13,%rbp), %rax
subq 0x10(%r13,%rbp), %rax
cmpq %rsi, %rax
ja 0x8780e
leaq 0x10(,%rbp), %rdi
addq %r13, %rdi
incq %rsi
callq 0x26810
movq 0x10(%r12), %rdi
movq 0x18(%r12), %rsi
subq %rdi, %rsi
leaq 0x30(%rsp), %rcx
movq %r14, %rdx
callq 0x19ff8
movl 0xc(%rsp), %eax
movl %eax, (%r12)
movb 0x68(%rbx), %al
movb %al, 0x4(%r12)
movq $0x0, 0x8(%r12)
cmpb $0x1, 0x69(%rbx)
jne 0x87856
callq 0x19080
movabsq $0x20c49ba5e353f7cf, %rcx # imm = 0x20C49BA5E353F7CF
imulq %rcx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x7, %rdx
addq %rax, %rdx
subq 0x70(%rbx), %rdx
movq %rdx, 0x8(%r12)
movb $0x0, 0x28(%r12)
movq 0x80(%rbx), %rsi
movq 0x98(%rbx), %rax
incq %rax
subq 0x78(%rbx), %rsi
sarq $0x4, %rsi
movabsq $-0x5555555555555555, %r14 # imm = 0xAAAAAAAAAAAAAAAB
imulq %r14, %rsi
xorl %edx, %edx
divq %rsi
movq %rdx, 0x98(%rbx)
cmpq 0x90(%rbx), %rdx
jne 0x87a06
addq %rsi, %rsi
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rdx
movq %rbx, (%rsp)
callq 0x88498
movq 0x78(%rbx), %rcx
movq 0x90(%rbx), %rdx
movl $0x10, %r12d
xorl %ebp, %ebp
xorl %r13d, %r13d
leaq (%rdx,%rdx,2), %rax
shlq $0x4, %rax
movq 0x10(%rsp), %r15
movq %r14, %rbx
leaq (%rcx,%rax), %r14
addq $0x10, %r14
movups -0x10(%r14), %xmm0
movups %xmm0, (%r15,%rbp)
leaq (%r15,%r12), %rdi
movq %r14, %rsi
callq 0x88516
movb 0x18(%r14), %al
movq %rbx, %r14
movq (%rsp), %rbx
movb %al, 0x28(%r15,%rbp)
movq 0x90(%rbx), %rax
incq %rax
movq 0x78(%rbx), %rcx
movq 0x80(%rbx), %rsi
movq %rsi, %rdi
subq %rcx, %rdi
sarq $0x4, %rdi
imulq %r14, %rdi
xorl %edx, %edx
divq %rdi
movq %rdx, 0x90(%rbx)
incq %r13
addq $0x30, %r12
addq $0x30, %rbp
cmpq 0x98(%rbx), %rdx
jne 0x878c8
movq $0x0, 0x90(%rbx)
movq %r13, 0x98(%rbx)
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
movq %rax, %rdx
subq %rdi, %rdx
sarq $0x4, %rdx
imulq %r14, %rdx
cmpq %rdx, %r13
jae 0x879b8
addq %r12, %rdi
movl $0x100, %esi # imm = 0x100
callq 0x26810
incq %r13
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
movq %rax, %rcx
subq %rdi, %rcx
sarq $0x4, %rcx
imulq %r14, %rcx
addq $0x30, %r12
cmpq %rcx, %r13
jb 0x8797c
movq 0x78(%rbx), %rcx
movq 0x80(%rbx), %rsi
movq 0x88(%rbx), %rdx
movq %rdi, 0x78(%rbx)
movq %rax, 0x80(%rbx)
leaq 0x10(%rsp), %r14
movq 0x10(%r14), %rax
movq %rax, 0x88(%rbx)
leaq 0x30(%rsp), %rdi
movq %rcx, (%rdi)
movq %rsi, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%r14)
movq $0x0, 0x10(%r14)
callq 0x87d0e
movq %r14, %rdi
callq 0x87d0e
leaq 0x30(%rbx), %rdi
callq 0x193c0
movq %rbx, %rdi
callq 0x195a0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %edi
callq 0x19500
jmp 0x87a33
movq %rbx, (%rsp)
movq %rax, %r14
jmp 0x87a45
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x87d0e
movq (%rsp), %rdi
callq 0x195a0
movq %r14, %rdi
callq 0x19e10
| _ZN10common_log3addE14ggml_log_levelPKcP13__va_list_tag:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov r15, rcx
mov r14, rdx
mov ebp, esi
mov rbx, rdi
call _pthread_mutex_lock
test eax, eax
jnz loc_87A26
cmp byte ptr [rbx+6Ah], 1
jnz loc_87A0F
mov [rsp+78h+var_6C], ebp
mov r13, [rbx+78h]
mov rax, [rbx+98h]
lea rbp, [rax+rax*2]
shl rbp, 4
mov r12, r13
add r12, rbp
mov rax, [r15+10h]
mov [rsp+78h+var_38], rax
movups xmm0, xmmword ptr [r15]
movaps [rsp+78h+var_48], xmm0
mov rdi, [r13+rbp+10h]
mov rsi, [r13+rbp+18h]
sub rsi, rdi
mov rdx, r14
mov rcx, r15
call vsnprintf
movsxd rsi, eax
mov rax, [r13+rbp+18h]
sub rax, [r13+rbp+10h]
cmp rax, rsi
ja short loc_8780E
lea rdi, ds:10h[rbp]
add rdi, r13
inc rsi
call _ZNSt6vectorIcSaIcEE6resizeEm; std::vector<char>::resize(ulong)
mov rdi, [r12+10h]; this
mov rsi, [r12+18h]
sub rsi, rdi
lea rcx, [rsp+78h+var_48]
mov rdx, r14
call vsnprintf
loc_8780E:
mov eax, [rsp+78h+var_6C]
mov [r12], eax
mov al, [rbx+68h]
mov [r12+4], al
mov qword ptr [r12+8], 0
cmp byte ptr [rbx+69h], 1
jnz short loc_87856
call __ZNSt6chrono3_V212system_clock3nowEv; std::chrono::_V2::system_clock::now(void)
mov rcx, 20C49BA5E353F7CFh
imul rcx
mov rax, rdx
shr rax, 3Fh
sar rdx, 7
add rdx, rax
sub rdx, [rbx+70h]
mov [r12+8], rdx
loc_87856:
mov byte ptr [r12+28h], 0
mov rsi, [rbx+80h]
mov rax, [rbx+98h]
inc rax
sub rsi, [rbx+78h]
sar rsi, 4
mov r14, 0AAAAAAAAAAAAAAABh
imul rsi, r14
xor edx, edx
div rsi
mov [rbx+98h], rdx
cmp rdx, [rbx+90h]
jnz loc_87A06
add rsi, rsi
lea rdi, [rsp+78h+var_68]
lea rdx, [rsp+78h+var_48]
mov [rsp+78h+var_78], rbx
call _ZNSt6vectorI16common_log_entrySaIS0_EEC2EmRKS1_; std::vector<common_log_entry>::vector(ulong,std::allocator<common_log_entry> const&)
mov rcx, [rbx+78h]
mov rdx, [rbx+90h]
mov r12d, 10h
xor ebp, ebp
xor r13d, r13d
loc_878C8:
lea rax, [rdx+rdx*2]
shl rax, 4
mov r15, [rsp+78h+var_68]
mov rbx, r14
lea r14, [rcx+rax]
add r14, 10h
movups xmm0, xmmword ptr [r14-10h]
movups xmmword ptr [r15+rbp], xmm0
lea rdi, [r15+r12]
mov rsi, r14
call _ZNSt6vectorIcSaIcEE14_M_move_assignEOS1_St17integral_constantIbLb1EE; std::vector<char>::_M_move_assign(std::vector<char>&&,std::integral_constant<bool,true>)
mov al, [r14+18h]
mov r14, rbx
mov rbx, [rsp+78h+var_78]
mov [r15+rbp+28h], al
mov rax, [rbx+90h]
inc rax
mov rcx, [rbx+78h]
mov rsi, [rbx+80h]
mov rdi, rsi
sub rdi, rcx
sar rdi, 4
imul rdi, r14
xor edx, edx
div rdi
mov [rbx+90h], rdx
inc r13
add r12, 30h ; '0'
add rbp, 30h ; '0'
cmp rdx, [rbx+98h]
jnz loc_878C8
mov qword ptr [rbx+90h], 0
mov [rbx+98h], r13
mov rdi, [rsp+78h+var_68]
mov rax, [rsp+78h+var_60]
mov rdx, rax
sub rdx, rdi
sar rdx, 4
imul rdx, r14
cmp r13, rdx
jnb short loc_879B8
loc_8797C:
add rdi, r12
mov esi, 100h
call _ZNSt6vectorIcSaIcEE6resizeEm; std::vector<char>::resize(ulong)
inc r13
mov rdi, [rsp+78h+var_68]
mov rax, [rsp+78h+var_60]
mov rcx, rax
sub rcx, rdi
sar rcx, 4
imul rcx, r14
add r12, 30h ; '0'
cmp r13, rcx
jb short loc_8797C
mov rcx, [rbx+78h]
mov rsi, [rbx+80h]
loc_879B8:
mov rdx, [rbx+88h]
mov [rbx+78h], rdi
mov [rbx+80h], rax
lea r14, [rsp+78h+var_68]
mov rax, [r14+10h]
mov [rbx+88h], rax
lea rdi, [rsp+78h+var_48]
mov [rdi], rcx
mov [rdi+8], rsi
mov [rdi+10h], rdx
xorps xmm0, xmm0
movaps xmmword ptr [r14], xmm0
mov qword ptr [r14+10h], 0
call _ZNSt6vectorI16common_log_entrySaIS0_EED2Ev; std::vector<common_log_entry>::~vector()
mov rdi, r14
call _ZNSt6vectorI16common_log_entrySaIS0_EED2Ev; std::vector<common_log_entry>::~vector()
loc_87A06:
lea rdi, [rbx+30h]; this
call __ZNSt18condition_variable10notify_oneEv; std::condition_variable::notify_one(void)
loc_87A0F:
mov rdi, rbx
call _pthread_mutex_unlock
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_87A26:
mov edi, eax; int
call __ZSt20__throw_system_errori; std::__throw_system_error(int)
jmp short loc_87A33
mov [rsp+78h+var_78], rbx
loc_87A33:
mov r14, rax
jmp short loc_87A45
mov r14, rax
lea rdi, [rsp+78h+var_68]
call _ZNSt6vectorI16common_log_entrySaIS0_EED2Ev; std::vector<common_log_entry>::~vector()
loc_87A45:
mov rdi, [rsp+78h+var_78]
call _pthread_mutex_unlock
mov rdi, r14
call __Unwind_Resume
| long long common_log::add(long long a1, int a2, long long a3, __int128 *a4)
{
_QWORD *v6; // rbx
int v7; // eax
long long v8; // r13
long long v9; // rbp
long long v10; // r12
std::chrono::_V2::system_clock *v11; // rdi
unsigned long long v12; // rsi
unsigned long long v13; // r14
unsigned long long v14; // rsi
unsigned long long v15; // rdx
long long v16; // rcx
unsigned long long v17; // rdx
long long v18; // r12
long long v19; // rbp
unsigned long long v20; // r13
long long v21; // r15
unsigned long long v22; // rbx
long long v23; // r14
char v24; // al
long long v25; // rsi
__int128 v26; // kr00_16
long long v27; // rdx
_QWORD *v29; // [rsp+0h] [rbp-78h]
__int128 v31; // [rsp+10h] [rbp-68h] BYREF
long long v32; // [rsp+20h] [rbp-58h]
__int128 v33; // [rsp+30h] [rbp-48h] BYREF
long long v34; // [rsp+40h] [rbp-38h]
v6 = (_QWORD *)a1;
v7 = pthread_mutex_lock();
if ( v7 )
std::__throw_system_error(v7);
if ( *(_BYTE *)(a1 + 106) == 1 )
{
v8 = *(_QWORD *)(a1 + 120);
v9 = 48LL * *(_QWORD *)(a1 + 152);
v10 = v9 + v8;
v34 = *((_QWORD *)a4 + 2);
v33 = *a4;
v11 = *(std::chrono::_V2::system_clock **)(v8 + v9 + 16);
v12 = (int)vsnprintf(v11, *(_QWORD *)(v8 + v9 + 24) - (_QWORD)v11, a3, a4);
if ( *(_QWORD *)(v8 + v9 + 24) - *(_QWORD *)(v8 + v9 + 16) <= v12 )
{
std::vector<char>::resize((_QWORD *)(v8 + v9 + 16), v12 + 1);
v11 = *(std::chrono::_V2::system_clock **)(v10 + 16);
vsnprintf(v11, *(_QWORD *)(v10 + 24) - (_QWORD)v11, a3, &v33);
}
*(_DWORD *)v10 = a2;
*(_BYTE *)(v10 + 4) = *((_BYTE *)v6 + 104);
*(_QWORD *)(v10 + 8) = 0LL;
if ( *((_BYTE *)v6 + 105) == 1 )
*(_QWORD *)(v10 + 8) = std::chrono::_V2::system_clock::now(v11) / 1000LL - v6[14];
*(_BYTE *)(v10 + 40) = 0;
v13 = 0xAAAAAAAAAAAAAAABLL;
v14 = 0xAAAAAAAAAAAAAAABLL * ((long long)(v6[16] - v6[15]) >> 4);
v15 = (v6[19] + 1LL) % v14;
v6[19] = v15;
if ( v15 == v6[18] )
{
v29 = v6;
std::vector<common_log_entry>::vector(&v31, 2 * v14, &v33);
v16 = v6[15];
v17 = v6[18];
v18 = 16LL;
v19 = 0LL;
v20 = 0LL;
do
{
v21 = v31;
v22 = v13;
v23 = v16 + 48 * v17 + 16;
*(_OWORD *)(v31 + v19) = *(_OWORD *)(v16 + 48 * v17);
std::vector<char>::_M_move_assign(v21 + v18, v23);
v24 = *(_BYTE *)(v23 + 24);
v13 = v22;
v6 = v29;
*(_BYTE *)(v21 + v19 + 40) = v24;
v16 = v29[15];
v25 = v29[16];
v17 = (v29[18] + 1LL) % (v13 * ((v25 - v16) >> 4));
v29[18] = v17;
++v20;
v18 += 48LL;
v19 += 48LL;
}
while ( v17 != v29[19] );
v29[18] = 0LL;
v29[19] = v20;
v26 = v31;
if ( v20 < v13 * ((long long)(*((_QWORD *)&v31 + 1) - v31) >> 4) )
{
do
{
std::vector<char>::resize((_QWORD *)(v18 + v26), 0x100uLL);
++v20;
v18 += 48LL;
v26 = v31;
}
while ( v20 < v13 * ((long long)(*((_QWORD *)&v31 + 1) - v31) >> 4) );
v16 = v29[15];
v25 = v29[16];
}
v27 = v29[17];
*(_OWORD *)(v29 + 15) = v26;
v29[17] = v32;
*(_QWORD *)&v33 = v16;
*((_QWORD *)&v33 + 1) = v25;
v34 = v27;
v31 = 0LL;
v32 = 0LL;
std::vector<common_log_entry>::~vector(&v33);
std::vector<common_log_entry>::~vector(&v31);
}
std::condition_variable::notify_one((std::condition_variable *)(v6 + 6));
}
return pthread_mutex_unlock(v6);
}
| add:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV R15,RCX
MOV R14,RDX
MOV EBP,ESI
MOV RBX,RDI
CALL 0x00119bc0
TEST EAX,EAX
JNZ 0x00187a26
CMP byte ptr [RBX + 0x6a],0x1
JNZ 0x00187a0f
MOV dword ptr [RSP + 0xc],EBP
MOV R13,qword ptr [RBX + 0x78]
MOV RAX,qword ptr [RBX + 0x98]
LEA RBP,[RAX + RAX*0x2]
SHL RBP,0x4
MOV R12,R13
ADD R12,RBP
MOV RAX,qword ptr [R15 + 0x10]
MOV qword ptr [RSP + 0x40],RAX
MOVUPS XMM0,xmmword ptr [R15]
MOVAPS xmmword ptr [RSP + 0x30],XMM0
MOV RDI,qword ptr [R13 + RBP*0x1 + 0x10]
MOV RSI,qword ptr [R13 + RBP*0x1 + 0x18]
SUB RSI,RDI
MOV RDX,R14
MOV RCX,R15
CALL 0x00119ff8
MOVSXD RSI,EAX
MOV RAX,qword ptr [R13 + RBP*0x1 + 0x18]
SUB RAX,qword ptr [R13 + RBP*0x1 + 0x10]
CMP RAX,RSI
JA 0x0018780e
LEA RDI,[0x10 + RBP*0x1]
ADD RDI,R13
INC RSI
LAB_001877ef:
CALL 0x00126810
MOV RDI,qword ptr [R12 + 0x10]
MOV RSI,qword ptr [R12 + 0x18]
SUB RSI,RDI
LEA RCX,[RSP + 0x30]
MOV RDX,R14
CALL 0x00119ff8
LAB_0018780e:
MOV EAX,dword ptr [RSP + 0xc]
MOV dword ptr [R12],EAX
MOV AL,byte ptr [RBX + 0x68]
MOV byte ptr [R12 + 0x4],AL
MOV qword ptr [R12 + 0x8],0x0
CMP byte ptr [RBX + 0x69],0x1
JNZ 0x00187856
CALL 0x00119080
MOV RCX,0x20c49ba5e353f7cf
IMUL RCX
MOV RAX,RDX
SHR RAX,0x3f
SAR RDX,0x7
ADD RDX,RAX
SUB RDX,qword ptr [RBX + 0x70]
MOV qword ptr [R12 + 0x8],RDX
LAB_00187856:
MOV byte ptr [R12 + 0x28],0x0
MOV RSI,qword ptr [RBX + 0x80]
MOV RAX,qword ptr [RBX + 0x98]
INC RAX
SUB RSI,qword ptr [RBX + 0x78]
SAR RSI,0x4
MOV R14,-0x5555555555555555
IMUL RSI,R14
XOR EDX,EDX
DIV RSI
MOV qword ptr [RBX + 0x98],RDX
CMP RDX,qword ptr [RBX + 0x90]
JNZ 0x00187a06
ADD RSI,RSI
LAB_0018789f:
LEA RDI,[RSP + 0x10]
LEA RDX,[RSP + 0x30]
MOV qword ptr [RSP],RBX
CALL 0x00188498
MOV RCX,qword ptr [RBX + 0x78]
MOV RDX,qword ptr [RBX + 0x90]
MOV R12D,0x10
XOR EBP,EBP
XOR R13D,R13D
LAB_001878c8:
LEA RAX,[RDX + RDX*0x2]
SHL RAX,0x4
MOV R15,qword ptr [RSP + 0x10]
MOV RBX,R14
LEA R14,[RCX + RAX*0x1]
ADD R14,0x10
MOVUPS XMM0,xmmword ptr [R14 + -0x10]
MOVUPS xmmword ptr [R15 + RBP*0x1],XMM0
LEA RDI,[R15 + R12*0x1]
MOV RSI,R14
CALL 0x00188516
MOV AL,byte ptr [R14 + 0x18]
MOV R14,RBX
MOV RBX,qword ptr [RSP]
MOV byte ptr [R15 + RBP*0x1 + 0x28],AL
MOV RAX,qword ptr [RBX + 0x90]
INC RAX
MOV RCX,qword ptr [RBX + 0x78]
MOV RSI,qword ptr [RBX + 0x80]
MOV RDI,RSI
SUB RDI,RCX
SAR RDI,0x4
IMUL RDI,R14
XOR EDX,EDX
DIV RDI
MOV qword ptr [RBX + 0x90],RDX
INC R13
ADD R12,0x30
ADD RBP,0x30
CMP RDX,qword ptr [RBX + 0x98]
JNZ 0x001878c8
MOV qword ptr [RBX + 0x90],0x0
MOV qword ptr [RBX + 0x98],R13
MOV RDI,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP + 0x18]
MOV RDX,RAX
SUB RDX,RDI
SAR RDX,0x4
IMUL RDX,R14
CMP R13,RDX
JNC 0x001879b8
LAB_0018797c:
ADD RDI,R12
LAB_0018797f:
MOV ESI,0x100
CALL 0x00126810
LAB_00187989:
INC R13
MOV RDI,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,RAX
SUB RCX,RDI
SAR RCX,0x4
IMUL RCX,R14
ADD R12,0x30
CMP R13,RCX
JC 0x0018797c
MOV RCX,qword ptr [RBX + 0x78]
MOV RSI,qword ptr [RBX + 0x80]
LAB_001879b8:
MOV RDX,qword ptr [RBX + 0x88]
MOV qword ptr [RBX + 0x78],RDI
MOV qword ptr [RBX + 0x80],RAX
LEA R14,[RSP + 0x10]
MOV RAX,qword ptr [R14 + 0x10]
MOV qword ptr [RBX + 0x88],RAX
LEA RDI,[RSP + 0x30]
MOV qword ptr [RDI],RCX
MOV qword ptr [RDI + 0x8],RSI
MOV qword ptr [RDI + 0x10],RDX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [R14],XMM0
MOV qword ptr [R14 + 0x10],0x0
CALL 0x00187d0e
MOV RDI,R14
CALL 0x00187d0e
LAB_00187a06:
LEA RDI,[RBX + 0x30]
CALL 0x001193c0
LAB_00187a0f:
MOV RDI,RBX
CALL 0x001195a0
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00187a26:
MOV EDI,EAX
CALL 0x00119500
|
/* common_log::add(ggml_log_level, char const*, __va_list_tag*) */
void __thiscall common_log::add(common_log *this,int4 param_2,char *param_3,long *param_4)
{
int4 *puVar1;
char *__s;
int4 uVar2;
int4 uVar3;
int4 uVar4;
int iVar5;
long lVar6;
ulong uVar7;
long lVar8;
long lVar9;
int4 *puVar10;
long lVar11;
ulong uVar12;
long local_68;
long lStack_60;
int8 local_58;
long local_48;
long lStack_40;
long local_38;
iVar5 = pthread_mutex_lock((pthread_mutex_t *)this);
if (iVar5 == 0) {
if (this[0x6a] == (common_log)0x1) {
lVar6 = *(long *)(this + 0x78);
lVar8 = *(long *)(this + 0x98) * 0x30;
puVar10 = (int4 *)(lVar6 + lVar8);
local_38 = param_4[2];
local_48 = *param_4;
lStack_40 = param_4[1];
__s = *(char **)(lVar6 + 0x10 + lVar8);
iVar5 = vsnprintf(__s,*(long *)(lVar6 + 0x18 + lVar8) - (long)__s,param_3,param_4);
if ((ulong)(*(long *)(lVar6 + 0x18 + lVar8) - *(long *)(lVar6 + 0x10 + lVar8)) <=
(ulong)(long)iVar5) {
/* try { // try from 001877ef to 001877f3 has its CatchHandler @ 00187a2f */
std::vector<char,std::allocator<char>>::resize
((vector<char,std::allocator<char>> *)(lVar8 + 0x10 + lVar6),(long)iVar5 + 1);
vsnprintf(*(char **)(puVar10 + 4),*(long *)(puVar10 + 6) - (long)*(char **)(puVar10 + 4),
param_3,&local_48);
}
*puVar10 = param_2;
*(common_log *)(puVar10 + 1) = this[0x68];
*(int8 *)(puVar10 + 2) = 0;
if (this[0x69] == (common_log)0x1) {
lVar6 = std::chrono::_V2::system_clock::now();
*(long *)(puVar10 + 2) = lVar6 / 1000 - *(long *)(this + 0x70);
}
*(int1 *)(puVar10 + 10) = 0;
lVar6 = *(long *)(this + 0x80) - *(long *)(this + 0x78) >> 4;
uVar7 = (*(long *)(this + 0x98) + 1U) % (ulong)(lVar6 * -0x5555555555555555);
*(ulong *)(this + 0x98) = uVar7;
if (uVar7 == *(ulong *)(this + 0x90)) {
/* try { // try from 0018789f to 001878b1 has its CatchHandler @ 00187a2d */
std::vector<common_log_entry,std::allocator<common_log_entry>>::vector
((ulong)&local_68,(allocator *)(lVar6 * 0x5555555555555556));
lVar6 = *(long *)(this + 0x78);
uVar7 = *(ulong *)(this + 0x90);
lVar11 = 0x10;
lVar8 = 0;
uVar12 = 0;
do {
lVar9 = local_68;
puVar10 = (int4 *)(lVar6 + uVar7 * 0x30);
uVar2 = puVar10[1];
uVar3 = puVar10[2];
uVar4 = puVar10[3];
puVar1 = (int4 *)(local_68 + lVar8);
*puVar1 = *puVar10;
puVar1[1] = uVar2;
puVar1[2] = uVar3;
puVar1[3] = uVar4;
std::vector<char,std::allocator<char>>::_M_move_assign(local_68 + lVar11,puVar10 + 4);
*(int1 *)(lVar9 + 0x28 + lVar8) = *(int1 *)(puVar10 + 10);
lVar6 = *(long *)(this + 0x78);
lVar9 = *(long *)(this + 0x80);
uVar7 = (*(long *)(this + 0x90) + 1U) %
(ulong)((lVar9 - lVar6 >> 4) * -0x5555555555555555);
*(ulong *)(this + 0x90) = uVar7;
uVar12 = uVar12 + 1;
lVar11 = lVar11 + 0x30;
lVar8 = lVar8 + 0x30;
} while (uVar7 != *(ulong *)(this + 0x98));
*(int8 *)(this + 0x90) = 0;
*(ulong *)(this + 0x98) = uVar12;
if (uVar12 < (ulong)((lStack_60 - local_68 >> 4) * -0x5555555555555555)) {
do {
/* try { // try from 0018797f to 00187988 has its CatchHandler @ 00187a38 */
std::vector<char,std::allocator<char>>::resize
((vector<char,std::allocator<char>> *)(local_68 + lVar11),0x100);
uVar12 = uVar12 + 1;
lVar11 = lVar11 + 0x30;
} while (uVar12 < (ulong)((lStack_60 - local_68 >> 4) * -0x5555555555555555));
lVar6 = *(long *)(this + 0x78);
lVar9 = *(long *)(this + 0x80);
}
local_38 = *(long *)(this + 0x88);
*(long *)(this + 0x78) = local_68;
*(long *)(this + 0x80) = lStack_60;
*(int8 *)(this + 0x88) = local_58;
local_68 = 0;
lStack_60 = 0;
local_58 = 0;
local_48 = lVar6;
lStack_40 = lVar9;
std::vector<common_log_entry,std::allocator<common_log_entry>>::~vector
((vector<common_log_entry,std::allocator<common_log_entry>> *)&local_48);
std::vector<common_log_entry,std::allocator<common_log_entry>>::~vector
((vector<common_log_entry,std::allocator<common_log_entry>> *)&local_68);
}
std::condition_variable::notify_one();
}
pthread_mutex_unlock((pthread_mutex_t *)this);
return;
}
/* WARNING: Subroutine does not return */
std::__throw_system_error(iVar5);
}
| |
30,360 | pfs_new_thread_v1 | eloqsql/storage/perfschema/pfs.cc | PSI_thread*
pfs_new_thread_v1(PSI_thread_key key, const void *identity, ulonglong processlist_id)
{
PFS_thread *pfs;
PFS_thread_class *klass= find_thread_class(key);
if (likely(klass != NULL))
{
pfs= create_thread(klass, identity, processlist_id);
if (pfs != NULL)
{
PFS_thread *parent= my_thread_get_THR_PFS();
if (parent != NULL)
pfs->m_parent_thread_internal_id= parent->m_parent_thread_internal_id;
}
}
else
pfs= NULL;
return reinterpret_cast<PSI_thread*> (pfs);
} | O3 | cpp | pfs_new_thread_v1:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
callq 0x30876
testq %rax, %rax
je 0x2876c
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x36b2b
testq %rax, %rax
je 0x2876c
movq %rax, %rbx
movl 0x3aac02(%rip), %edi # 0x3d3354
callq 0x26550
testq %rax, %rax
je 0x2876e
movq 0x858(%rax), %rax
movq %rax, 0x858(%rbx)
jmp 0x2876e
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
| pfs_new_thread_v1:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rdx
mov r14, rsi
call _Z17find_thread_classj; find_thread_class(uint)
test rax, rax
jz short loc_2876C
mov rdi, rax
mov rsi, r14
mov rdx, rbx
call _Z13create_threadP16PFS_thread_classPKvy; create_thread(PFS_thread_class *,void const*,ulong long)
test rax, rax
jz short loc_2876C
mov rbx, rax
mov edi, cs:THR_PFS
call _pthread_getspecific
test rax, rax
jz short loc_2876E
mov rax, [rax+858h]
mov [rbx+858h], rax
jmp short loc_2876E
loc_2876C:
xor ebx, ebx
loc_2876E:
mov rax, rbx
pop rbx
pop r14
pop rbp
retn
| long long pfs_new_thread_v1(unsigned int a1, long long a2, long long a3)
{
long long thread_class; // rax
long long thread; // rax
long long v6; // rbx
long long v7; // rax
thread_class = find_thread_class(a1);
if ( !thread_class )
return 0LL;
thread = create_thread(thread_class, a2, a3);
if ( !thread )
return 0LL;
v6 = thread;
v7 = pthread_getspecific((unsigned int)THR_PFS);
if ( v7 )
*(_QWORD *)(v6 + 2136) = *(_QWORD *)(v7 + 2136);
return v6;
}
| pfs_new_thread_v1:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RDX
MOV R14,RSI
CALL 0x00130876
TEST RAX,RAX
JZ 0x0012876c
MOV RDI,RAX
MOV RSI,R14
MOV RDX,RBX
CALL 0x00136b2b
TEST RAX,RAX
JZ 0x0012876c
MOV RBX,RAX
MOV EDI,dword ptr [0x004d3354]
CALL 0x00126550
TEST RAX,RAX
JZ 0x0012876e
MOV RAX,qword ptr [RAX + 0x858]
MOV qword ptr [RBX + 0x858],RAX
JMP 0x0012876e
LAB_0012876c:
XOR EBX,EBX
LAB_0012876e:
MOV RAX,RBX
POP RBX
POP R14
POP RBP
RET
|
long pfs_new_thread_v1(uint param_1,void *param_2,ulonglong param_3)
{
PFS_thread_class *pPVar1;
long lVar2;
void *pvVar3;
pPVar1 = (PFS_thread_class *)find_thread_class(param_1);
if ((pPVar1 != (PFS_thread_class *)0x0) &&
(lVar2 = create_thread(pPVar1,param_2,param_3), lVar2 != 0)) {
pvVar3 = pthread_getspecific(THR_PFS);
if (pvVar3 == (void *)0x0) {
return lVar2;
}
*(int8 *)(lVar2 + 0x858) = *(int8 *)((long)pvVar3 + 0x858);
return lVar2;
}
return 0;
}
| |
30,361 | my_sync_dir_by_file | eloqsql/mysys/my_sync.c | int my_sync_dir_by_file(const char *file_name __attribute__((unused)),
myf my_flags __attribute__((unused)))
{
#ifdef NEED_EXPLICIT_SYNC_DIR
char dir_name[FN_REFLEN];
size_t dir_name_length;
dirname_part(dir_name, file_name, &dir_name_length);
return my_sync_dir(dir_name, my_flags & ~MY_NOSYMLINKS);
#else
return 0;
#endif
} | O0 | c | my_sync_dir_by_file:
pushq %rbp
movq %rsp, %rbp
subq $0x240, %rsp # imm = 0x240
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x218(%rbp)
movq %rsi, -0x220(%rbp)
movq -0x218(%rbp), %rsi
leaq -0x210(%rbp), %rdi
movq %rdi, -0x238(%rbp)
leaq -0x228(%rbp), %rdx
callq 0xdf050
movq -0x238(%rbp), %rdi
movq -0x220(%rbp), %rax
andl $0xfffffdff, %eax # imm = 0xFFFFFDFF
movl %eax, %esi
callq 0xf5660
movl %eax, -0x22c(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xf5798
movl -0x22c(%rbp), %eax
addq $0x240, %rsp # imm = 0x240
popq %rbp
retq
callq 0x2a270
nopl (%rax)
| my_sync_dir_by_file:
push rbp
mov rbp, rsp
sub rsp, 240h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_218], rdi
mov [rbp+var_220], rsi
mov rsi, [rbp+var_218]
lea rdi, [rbp+var_210]
mov [rbp+var_238], rdi
lea rdx, [rbp+var_228]
call dirname_part
mov rdi, [rbp+var_238]
mov rax, [rbp+var_220]
and eax, 0FFFFFDFFh
mov esi, eax
call my_sync_dir
mov [rbp+var_22C], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_F5798
mov eax, [rbp+var_22C]
add rsp, 240h
pop rbp
retn
loc_F5798:
call ___stack_chk_fail
| long long my_sync_dir_by_file(_BYTE *a1, long long a2)
{
long long v3; // [rsp+18h] [rbp-228h] BYREF
long long v4; // [rsp+20h] [rbp-220h]
_BYTE *v5; // [rsp+28h] [rbp-218h]
_BYTE v6[520]; // [rsp+30h] [rbp-210h] BYREF
unsigned long long v7; // [rsp+238h] [rbp-8h]
v7 = __readfsqword(0x28u);
v5 = a1;
v4 = a2;
dirname_part((long long)v6, a1, &v3);
return (unsigned int)my_sync_dir(v6, (unsigned int)v4 & 0xFFFFFDFF);
}
| my_sync_dir_by_file:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x240
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x218],RDI
MOV qword ptr [RBP + -0x220],RSI
MOV RSI,qword ptr [RBP + -0x218]
LEA RDI,[RBP + -0x210]
MOV qword ptr [RBP + -0x238],RDI
LEA RDX,[RBP + -0x228]
CALL 0x001df050
MOV RDI,qword ptr [RBP + -0x238]
MOV RAX,qword ptr [RBP + -0x220]
AND EAX,0xfffffdff
MOV ESI,EAX
CALL 0x001f5660
MOV dword ptr [RBP + -0x22c],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001f5798
MOV EAX,dword ptr [RBP + -0x22c]
ADD RSP,0x240
POP RBP
RET
LAB_001f5798:
CALL 0x0012a270
|
int4 my_sync_dir_by_file(int8 param_1,int8 param_2)
{
int4 uVar1;
long in_FS_OFFSET;
int1 local_230 [8];
int8 local_228;
int8 local_220;
int1 local_218 [520];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_228 = param_2;
local_220 = param_1;
dirname_part(local_218,param_1,local_230);
uVar1 = my_sync_dir(local_218,(uint)local_228 & 0xfffffdff);
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return uVar1;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
30,362 | my_sync_dir_by_file | eloqsql/mysys/my_sync.c | int my_sync_dir_by_file(const char *file_name __attribute__((unused)),
myf my_flags __attribute__((unused)))
{
#ifdef NEED_EXPLICIT_SYNC_DIR
char dir_name[FN_REFLEN];
size_t dir_name_length;
dirname_part(dir_name, file_name, &dir_name_length);
return my_sync_dir(dir_name, my_flags & ~MY_NOSYMLINKS);
#else
return 0;
#endif
} | O3 | c | my_sync_dir_by_file:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x220, %rsp # imm = 0x220
movq %rsi, %rbx
movq %rdi, %rsi
movq %fs:0x28, %rax
movq %rax, -0x18(%rbp)
leaq -0x220(%rbp), %r14
leaq -0x228(%rbp), %rdx
movq %r14, %rdi
callq 0x94479
andl $0xfffffdff, %ebx # imm = 0xFFFFFDFF
movq %r14, %rdi
movq %rbx, %rsi
callq 0xa1125
movq %fs:0x28, %rcx
cmpq -0x18(%rbp), %rcx
jne 0xa11f6
addq $0x220, %rsp # imm = 0x220
popq %rbx
popq %r14
popq %rbp
retq
callq 0x29270
nop
| my_sync_dir_by_file:
push rbp
mov rbp, rsp
push r14
push rbx
sub rsp, 220h
mov rbx, rsi
mov rsi, rdi
mov rax, fs:28h
mov [rbp+var_18], rax
lea r14, [rbp+var_220]
lea rdx, [rbp+var_228]
mov rdi, r14
call dirname_part
and ebx, 0FFFFFDFFh
mov rdi, r14
mov rsi, rbx
call my_sync_dir
mov rcx, fs:28h
cmp rcx, [rbp+var_18]
jnz short loc_A11F6
add rsp, 220h
pop rbx
pop r14
pop rbp
retn
loc_A11F6:
call ___stack_chk_fail
| long long my_sync_dir_by_file(_BYTE *a1, int a2)
{
long long v3; // [rsp+8h] [rbp-228h] BYREF
_BYTE v4[520]; // [rsp+10h] [rbp-220h] BYREF
unsigned long long v5; // [rsp+218h] [rbp-18h]
v5 = __readfsqword(0x28u);
dirname_part((long long)v4, a1, &v3);
return my_sync_dir(v4, a2 & 0xFFFFFDFF);
}
| my_sync_dir_by_file:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
SUB RSP,0x220
MOV RBX,RSI
MOV RSI,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x18],RAX
LEA R14,[RBP + -0x220]
LEA RDX,[RBP + -0x228]
MOV RDI,R14
CALL 0x00194479
AND EBX,0xfffffdff
MOV RDI,R14
MOV RSI,RBX
CALL 0x001a1125
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x18]
JNZ 0x001a11f6
ADD RSP,0x220
POP RBX
POP R14
POP RBP
RET
LAB_001a11f6:
CALL 0x00129270
|
void my_sync_dir_by_file(int8 param_1,uint param_2)
{
long in_FS_OFFSET;
int1 local_230 [8];
int1 local_228 [520];
long local_20;
local_20 = *(long *)(in_FS_OFFSET + 0x28);
dirname_part(local_228,param_1,local_230);
my_sync_dir(local_228,param_2 & 0xfffffdff);
if (*(long *)(in_FS_OFFSET + 0x28) == local_20) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
30,363 | nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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() const | monkey531[P]llama/common/json.hpp | const string_type& key() const
{
JSON_ASSERT(anchor.m_object != nullptr);
switch (anchor.m_object->type())
{
// use integer array index as key
case value_t::array:
{
if (array_index != array_index_last)
{
int_to_string( array_index_str, array_index );
array_index_last = array_index;
}
return array_index_str;
}
// use key from the object
case value_t::object:
return anchor.key();
// use an empty key for all primitive types
case value_t::null:
case value_t::string:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::binary:
case value_t::discarded:
default:
return empty_str;
}
} | O2 | cpp | nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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() const:
pushq %rbx
movq (%rdi), %rax
testq %rax, %rax
je 0x7fb06
movq %rdi, %rbx
movzbl (%rax), %eax
cmpl $0x1, %eax
je 0x7faf4
cmpl $0x2, %eax
jne 0x7fafd
movq 0x20(%rbx), %rsi
cmpq 0x28(%rbx), %rsi
je 0x7faee
leaq 0x30(%rbx), %rdi
callq 0x7fba7
movq 0x20(%rbx), %rax
movq %rax, 0x28(%rbx)
addq $0x30, %rbx
jmp 0x7fb01
movq %rbx, %rdi
popq %rbx
jmp 0x7fbda
addq $0x50, %rbx
movq %rbx, %rax
popq %rbx
retq
leaq 0x2f3c6(%rip), %rdi # 0xaeed3
leaq 0x2f409(%rip), %rdx # 0xaef1d
leaq 0x3468b(%rip), %rcx # 0xb41a6
movl $0x1491, %esi # imm = 0x1491
xorl %eax, %eax
callq 0x23e90
nop
| _ZNK8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEE3keyEv:
push rbx
mov rax, [rdi]
test rax, rax
jz short loc_7FB06
mov rbx, rdi
movzx eax, byte ptr [rax]
cmp eax, 1
jz short loc_7FAF4
cmp eax, 2
jnz short loc_7FAFD
mov rsi, [rbx+20h]
cmp rsi, [rbx+28h]
jz short loc_7FAEE
lea rdi, [rbx+30h]
call _ZN8nlohmann16json_abi_v3_11_36detail13int_to_stringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEvRT_m; nlohmann::json_abi_v3_11_3::detail::int_to_string<std::string>(std::string &,ulong)
mov rax, [rbx+20h]
mov [rbx+28h], rax
loc_7FAEE:
add rbx, 30h ; '0'
jmp short loc_7FB01
loc_7FAF4:
mov rdi, rbx
pop rbx
jmp _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE3keyEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::key(void)
loc_7FAFD:
add rbx, 50h ; 'P'
loc_7FB01:
mov rax, rbx
pop rbx
retn
loc_7FB06:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aAnchorMObjectN; "anchor.m_object != nullptr"
mov esi, 1491h
xor eax, eax
call _ggml_abort
nop
| long long nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::key(
unsigned __int8 **a1)
{
int v1; // eax
if ( *a1 )
{
v1 = **a1;
if ( v1 == 1 )
{
return nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::key(a1);
}
else
{
if ( v1 != 2 )
return (long long)(a1 + 10);
if ( a1[4] != a1[5] )
{
nlohmann::json_abi_v3_11_3::detail::int_to_string<std::string>(a1 + 6);
a1[5] = a1[4];
}
return (long long)(a1 + 6);
}
}
else
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
5265LL,
"GGML_ASSERT(%s) failed",
"anchor.m_object != nullptr");
return nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::operator++("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp");
}
}
| key:
PUSH RBX
MOV RAX,qword ptr [RDI]
TEST RAX,RAX
JZ 0x0017fb06
MOV RBX,RDI
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x1
JZ 0x0017faf4
CMP EAX,0x2
JNZ 0x0017fafd
MOV RSI,qword ptr [RBX + 0x20]
CMP RSI,qword ptr [RBX + 0x28]
JZ 0x0017faee
LEA RDI,[RBX + 0x30]
CALL 0x0017fba7
MOV RAX,qword ptr [RBX + 0x20]
MOV qword ptr [RBX + 0x28],RAX
LAB_0017faee:
ADD RBX,0x30
JMP 0x0017fb01
LAB_0017faf4:
MOV RDI,RBX
POP RBX
JMP 0x0017fbda
LAB_0017fafd:
ADD RBX,0x50
LAB_0017fb01:
MOV RAX,RBX
POP RBX
RET
LAB_0017fb06:
LEA RDI,[0x1aeed3]
LEA RDX,[0x1aef1d]
LEA RCX,[0x1b41a6]
MOV ESI,0x1491
XOR EAX,EAX
CALL 0x00123e90
|
/* nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, 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() const */
iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
* __thiscall
nlohmann::json_abi_v3_11_3::detail::
iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::key(iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*this)
{
char cVar1;
iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*piVar2;
if (*(char **)this == (char *)0x0) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x1491,
"GGML_ASSERT(%s) failed","anchor.m_object != nullptr");
}
cVar1 = **(char **)this;
if (cVar1 != '\x01') {
if (cVar1 == '\x02') {
if (*(ulong *)(this + 0x20) != *(ulong *)(this + 0x28)) {
int_to_string<std::__cxx11::string>((string *)(this + 0x30),*(ulong *)(this + 0x20));
*(int8 *)(this + 0x28) = *(int8 *)(this + 0x20);
}
piVar2 = this + 0x30;
}
else {
piVar2 = this + 0x50;
}
return piVar2;
}
piVar2 = (iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::key((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)this);
return piVar2;
}
| |
30,364 | my_default_csname | eloqsql/mysys/charset.c | const char* my_default_csname()
{
const char* csname = NULL;
#ifdef _WIN32
char cpbuf[64];
int cp = GetConsoleCP();
if (cp == 0)
cp = GetACP();
snprintf(cpbuf, sizeof(cpbuf), "cp%d", (int)cp);
csname = my_os_charset_to_mysql_charset(cpbuf);
#elif defined(HAVE_SETLOCALE) && defined(HAVE_NL_LANGINFO)
if (setlocale(LC_CTYPE, "") && (csname = nl_langinfo(CODESET)))
csname = my_os_charset_to_mysql_charset(csname);
#endif
return csname ? csname : MYSQL_DEFAULT_CHARSET_NAME;
} | O0 | c | my_default_csname:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq $0x0, -0x8(%rbp)
xorl %edi, %edi
leaq 0x51d75(%rip), %rsi # 0x7effe
callq 0x24260
cmpq $0x0, %rax
je 0x2d2b5
movl $0xe, %edi
callq 0x24290
movq %rax, -0x8(%rbp)
cmpq $0x0, %rax
je 0x2d2b5
movq -0x8(%rbp), %rdi
callq 0x2d2e0
movq %rax, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x2d2c6
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
jmp 0x2d2d3
leaq 0x4e7a6(%rip), %rax # 0x7ba73
movq %rax, -0x10(%rbp)
jmp 0x2d2d3
movq -0x10(%rbp), %rax
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
| my_default_csname:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], 0
xor edi, edi
lea rsi, asc_7EFFA+4; ""
call _setlocale
cmp rax, 0
jz short loc_2D2B5
mov edi, 0Eh
call _nl_langinfo
mov [rbp+var_8], rax
cmp rax, 0
jz short loc_2D2B5
mov rdi, [rbp+var_8]
call my_os_charset_to_mysql_charset
mov [rbp+var_8], rax
loc_2D2B5:
cmp [rbp+var_8], 0
jz short loc_2D2C6
mov rax, [rbp+var_8]
mov [rbp+var_10], rax
jmp short loc_2D2D3
loc_2D2C6:
lea rax, aLatin1; "latin1"
mov [rbp+var_10], rax
jmp short $+2
loc_2D2D3:
mov rax, [rbp+var_10]
add rsp, 10h
pop rbp
retn
| const char *my_default_csname()
{
long long v2; // [rsp+8h] [rbp-8h]
v2 = 0LL;
if ( setlocale(0LL, "") )
{
v2 = nl_langinfo(14LL);
if ( v2 )
v2 = my_os_charset_to_mysql_charset(v2);
}
if ( v2 )
return (const char *)v2;
else
return "latin1";
}
| my_default_csname:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],0x0
XOR EDI,EDI
LEA RSI,[0x17effe]
CALL 0x00124260
CMP RAX,0x0
JZ 0x0012d2b5
MOV EDI,0xe
CALL 0x00124290
MOV qword ptr [RBP + -0x8],RAX
CMP RAX,0x0
JZ 0x0012d2b5
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0012d2e0
MOV qword ptr [RBP + -0x8],RAX
LAB_0012d2b5:
CMP qword ptr [RBP + -0x8],0x0
JZ 0x0012d2c6
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RAX
JMP 0x0012d2d3
LAB_0012d2c6:
LEA RAX,[0x17ba73]
MOV qword ptr [RBP + -0x10],RAX
JMP 0x0012d2d3
LAB_0012d2d3:
MOV RAX,qword ptr [RBP + -0x10]
ADD RSP,0x10
POP RBP
RET
|
char * my_default_csname(void)
{
char *pcVar1;
char *local_18;
char *local_10;
local_10 = (char *)0x0;
pcVar1 = setlocale(0,"");
if (pcVar1 != (char *)0x0) {
local_10 = nl_langinfo(0xe);
if (local_10 != (char *)0x0) {
local_10 = (char *)my_os_charset_to_mysql_charset(local_10);
}
}
if (local_10 == (char *)0x0) {
local_18 = "latin1";
}
else {
local_18 = local_10;
}
return local_18;
}
| |
30,365 | nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<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> const*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 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> const*) | 11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp | static type_error create(int id_, const std::string& what_arg, BasicJsonContext context)
{
const std::string w = concat(exception::name("type_error", id_), exception::diagnostics(context), what_arg);
return {id_, w.c_str()};
} | O1 | cpp | nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<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> const*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 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> const*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0xce89(%rip), %rsi # 0x227b0
leaq 0xce8c(%rip), %rdx # 0x227ba
leaq 0x28(%rsp), %rdi
callq 0x11370
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movl %ebp, %edx
callq 0x11500
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
xorl %eax, %eax
movq %rax, -0x8(%r14)
movb %al, (%r14)
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq %rax, -0x8(%r12)
movb %al, (%r12)
movq 0x8(%r15), %rsi
addq 0x50(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x11e40
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0x112a0
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0x112a0
movq (%r15), %rsi
movq 0x8(%r15), %rdx
leaq 0x8(%rsp), %rdi
callq 0x112a0
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x159d1
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x119b0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x159ec
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x119b0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x15a03
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x119b0
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x119a0
movq 0x174f7(%rip), %rax # 0x2cf10
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x15a37
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x119b0
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x15ac5
movq 0x18(%rsp), %rsi
jmp 0x15abd
movq %rax, %rbx
jmp 0x15aae
movq %rax, %rbx
jmp 0x15ac5
movq %rdx, %rbx
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x15a87
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x119b0
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rdx
leaq 0x88(%rsp), %r12
movq %r14, %rsi
movq %r15, %rcx
movl %ebx, %r8d
movq %r12, %r9
callq 0x12235
movq (%r12), %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x15ac5
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x119b0
movq %rbx, %rdi
callq 0x12010
| _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 98h
mov r15, rdx
mov ebp, esi
mov rbx, rdi
lea r13, [rsp+0C8h+var_90]
mov [r13-10h], r13
lea rsi, aTypeError; "type_error"
lea rdx, aTypeError+0Ah; ""
lea rdi, [rsp+0C8h+var_A0]
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+0C8h+var_80]; int
lea rsi, [rsp+0C8h+var_A0]; int
mov edx, ebp; int
call __ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int)
lea r14, [rsp+0C8h+var_50]
mov [r14-10h], r14
xor eax, eax
mov [r14-8], rax
mov [r14], al
lea r12, [rsp+0C8h+var_B0]
mov [r12-10h], r12
mov [r12-8], rax
mov [r12], al
mov rsi, [r15+8]
add rsi, [rsp+0C8h+var_78]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rsi, qword ptr [rsp+0C8h+var_80]
mov rdx, [rsp+0C8h+var_78]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rsi, [rsp+0C8h+var_60]
mov rdx, [rsp+0C8h+var_58]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rsi, [r15]
mov rdx, [r15+8]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rdi, [rsp+0C8h+var_60]; void *
cmp rdi, r14
jz short loc_159D1
mov rsi, [rsp+0C8h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_159D1:
lea rax, [rsp+0C8h+var_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_159EC
mov rsi, [rsp+0C8h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_159EC:
mov rdi, [rsp+0C8h+var_A0]; void *
cmp rdi, r13
jz short loc_15A03
mov rsi, [rsp+0C8h+var_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_15A03:
mov rdx, [rsp+0C8h+var_C0]; char *
mov rdi, rbx; this
mov esi, ebp; int
call __ZN8nlohmann16json_abi_v3_11_36detail9exceptionC2EiPKc; nlohmann::json_abi_v3_11_3::detail::exception::exception(int,char const*)
mov rax, cs:_ZTVN8nlohmann16json_abi_v3_11_36detail10type_errorE_ptr
add rax, 10h
mov [rbx], rax
mov rdi, [rsp+0C8h+var_C0]; void *
cmp rdi, r12
jz short loc_15A37
mov rsi, [rsp+0C8h+var_B0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_15A37:
mov rax, rbx
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
mov rdi, [rsp+arg_0]
cmp rdi, r12
jz short loc_15AC5
mov rsi, [rsp+arg_10]
jmp short loc_15ABD
mov rbx, rax
jmp short loc_15AAE
mov rbx, rax
jmp short loc_15AC5
mov rbx, rdx
mov r15, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r12
jz short loc_15A87
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_15A87:
lea rdi, [rsp+arg_60]
lea rdx, [rsp+arg_40]
lea r12, [rsp+arg_80]
mov rsi, r14
mov rcx, r15
mov r8d, ebx
mov r9, r12
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK__cold_1
mov rbx, [r12]
loc_15AAE:
mov rdi, [rsp+arg_20]; void *
cmp rdi, r13
jz short loc_15AC5
mov rsi, [rsp+arg_30]
loc_15ABD:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_15AC5:
mov rdi, rbx
call __Unwind_Resume
| nlohmann::json_abi_v3_11_3::detail::exception * ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
nlohmann::json_abi_v3_11_3::detail::exception *this,
int a2,
_QWORD *a3)
{
int v4; // ecx
int v5; // r8d
int v6; // r9d
int v8; // [rsp+0h] [rbp-C8h]
char *v9; // [rsp+8h] [rbp-C0h] BYREF
void *v10; // [rsp+10h] [rbp-B8h]
_QWORD v11[2]; // [rsp+18h] [rbp-B0h] BYREF
void *v12[2]; // [rsp+28h] [rbp-A0h] BYREF
_QWORD v13[2]; // [rsp+38h] [rbp-90h] BYREF
int v14[2]; // [rsp+48h] [rbp-80h] BYREF
long long v15; // [rsp+50h] [rbp-78h]
long long v16; // [rsp+58h] [rbp-70h] BYREF
void *v17; // [rsp+68h] [rbp-60h]
long long v18; // [rsp+70h] [rbp-58h]
_QWORD v19[10]; // [rsp+78h] [rbp-50h] BYREF
v12[0] = v13;
std::string::_M_construct<char const*>(v12, "type_error", "");
nlohmann::json_abi_v3_11_3::detail::exception::name(
(int)v14,
(int)v12,
a2,
v4,
v5,
v6,
v8,
(int)v9,
v10,
v11[0],
v11[1]);
v17 = v19;
v18 = 0LL;
LOBYTE(v19[0]) = 0;
v9 = (char *)v11;
v10 = 0LL;
LOBYTE(v11[0]) = 0;
std::string::reserve(&v9, v15 + a3[1]);
std::string::_M_append(&v9, *(_QWORD *)v14, v15);
std::string::_M_append(&v9, v17, v18);
std::string::_M_append(&v9, *a3, a3[1]);
if ( v17 != v19 )
operator delete(v17, v19[0] + 1LL);
if ( *(long long **)v14 != &v16 )
operator delete(*(void **)v14, v16 + 1);
if ( v12[0] != v13 )
operator delete(v12[0], v13[0] + 1LL);
nlohmann::json_abi_v3_11_3::detail::exception::exception(this, a2, v9);
*(_QWORD *)this = &`vtable for'nlohmann::json_abi_v3_11_3::detail::type_error + 2;
if ( v9 != (char *)v11 )
operator delete(v9, v11[0] + 1LL);
return this;
}
| _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x98
MOV R15,RDX
MOV EBP,ESI
MOV RBX,RDI
LEA R13,[RSP + 0x38]
MOV qword ptr [R13 + -0x10],R13
LAB_00115920:
LEA RSI,[0x1227b0]
LEA RDX,[0x1227ba]
LEA RDI,[RSP + 0x28]
CALL 0x00111370
LAB_00115938:
LEA RDI,[RSP + 0x48]
LEA RSI,[RSP + 0x28]
MOV EDX,EBP
CALL 0x00111500
LEA R14,[RSP + 0x78]
MOV qword ptr [R14 + -0x10],R14
XOR EAX,EAX
MOV qword ptr [R14 + -0x8],RAX
MOV byte ptr [R14],AL
LEA R12,[RSP + 0x18]
MOV qword ptr [R12 + -0x10],R12
MOV qword ptr [R12 + -0x8],RAX
MOV byte ptr [R12],AL
MOV RSI,qword ptr [R15 + 0x8]
ADD RSI,qword ptr [RSP + 0x50]
LAB_00115977:
LEA RDI,[RSP + 0x8]
CALL 0x00111e40
MOV RSI,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x50]
LEA RDI,[RSP + 0x8]
CALL 0x001112a0
MOV RSI,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0x70]
LEA RDI,[RSP + 0x8]
CALL 0x001112a0
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
LEA RDI,[RSP + 0x8]
CALL 0x001112a0
MOV RDI,qword ptr [RSP + 0x68]
CMP RDI,R14
JZ 0x001159d1
MOV RSI,qword ptr [RSP + 0x78]
INC RSI
CALL 0x001119b0
LAB_001159d1:
LEA RAX,[RSP + 0x58]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001159ec
MOV RSI,qword ptr [RSP + 0x58]
INC RSI
CALL 0x001119b0
LAB_001159ec:
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R13
JZ 0x00115a03
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x001119b0
LAB_00115a03:
MOV RDX,qword ptr [RSP + 0x8]
LAB_00115a08:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x001119a0
LAB_00115a12:
MOV RAX,qword ptr [0x0012cf10]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x00115a37
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001119b0
LAB_00115a37:
MOV RAX,RBX
ADD RSP,0x98
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
exception *
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(exception *param_1,int param_2,ulong *param_3)
{
char *local_c0;
int8 local_b8;
char local_b0;
int7 uStack_af;
long *local_a0 [2];
long local_90 [2];
long *local_80 [2];
long local_70 [2];
int1 *local_60;
int8 local_58;
int1 local_50;
int7 uStack_4f;
/* try { // try from 00115920 to 00115937 has its CatchHandler @ 00115a65 */
local_a0[0] = local_90;
std::__cxx11::string::_M_construct<char_const*>(local_a0,"type_error","");
/* try { // try from 00115938 to 00115948 has its CatchHandler @ 00115a60 */
nlohmann::json_abi_v3_11_3::detail::exception::name
((exception *)local_80,(string *)local_a0,param_2);
local_58 = 0;
local_50 = 0;
local_b8 = 0;
local_b0 = '\0';
/* try { // try from 00115977 to 001159b9 has its CatchHandler @ 00115a6a */
local_c0 = &local_b0;
local_60 = &local_50;
std::__cxx11::string::reserve((ulong)&local_c0);
std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_80[0]);
std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_60);
std::__cxx11::string::_M_append((char *)&local_c0,*param_3);
if (local_60 != &local_50) {
operator_delete(local_60,CONCAT71(uStack_4f,local_50) + 1);
}
if (local_80[0] != local_70) {
operator_delete(local_80[0],local_70[0] + 1);
}
if (local_a0[0] != local_90) {
operator_delete(local_a0[0],local_90[0] + 1);
}
/* try { // try from 00115a08 to 00115a11 has its CatchHandler @ 00115a4c */
nlohmann::json_abi_v3_11_3::detail::exception::exception(param_1,param_2,local_c0);
*(int **)param_1 = PTR_vtable_0012cf10 + 0x10;
if (local_c0 != &local_b0) {
operator_delete(local_c0,CONCAT71(uStack_af,local_b0) + 1);
}
return param_1;
}
| |
30,366 | nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<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> const*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 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> const*) | 11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp | static type_error create(int id_, const std::string& what_arg, BasicJsonContext context)
{
const std::string w = concat(exception::name("type_error", id_), exception::diagnostics(context), what_arg);
return {id_, w.c_str()};
} | O2 | cpp | nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<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> const*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 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> const*):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x88, %rsp
movq %rcx, %r15
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x3cb5(%rip), %rsi # 0x2b7a0
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x1dc00
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movl %ebp, %edx
callq 0x1c8d0
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x1d830
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %r14, %rcx
callq 0x1d890
leaq 0x8(%rsp), %rdi
callq 0x1c6f0
leaq 0x48(%rsp), %rdi
callq 0x1c6f0
leaq 0x28(%rsp), %rdi
callq 0x1c6f0
movq 0x68(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1df80
leaq 0x68(%rsp), %rdi
callq 0x1c6f0
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
jmp 0x27ba7
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x1c6f0
jmp 0x27b93
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x1c6f0
jmp 0x27ba2
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x1c6f0
jmp 0x27bb1
movq %rax, %rbx
movq %rbx, %rdi
callq 0x1dcb0
| _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_:
push rbp
push r15
push r14
push rbx
sub rsp, 88h
mov r15, rcx
mov r14, rdx
mov ebp, esi
mov rbx, rdi
lea rsi, aTypeError; "type_error"
lea rdi, [rsp+0A8h+var_80]
lea rdx, [rsp+0A8h+var_A1]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdi, [rsp+0A8h+var_60]
lea rsi, [rsp+0A8h+var_80]
mov edx, ebp
call __ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int)
lea rdi, [rsp+0A8h+var_A0]
mov rsi, r15
call __ZN8nlohmann16json_abi_v3_11_36detail9exception18get_byte_positionsINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEESC_PKT_; nlohmann::json_abi_v3_11_3::detail::exception::get_byte_positions<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>>(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> const*)
lea rdi, [rsp+0A8h+var_40]
lea rsi, [rsp+0A8h+var_60]
lea rdx, [rsp+0A8h+var_A0]
mov rcx, r14
call __ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS8_S8_RKS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>(std::string,std::string,std::string const&)
lea rdi, [rsp+0A8h+var_A0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_60]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdx, [rsp+0A8h+var_40]; char *
mov rdi, rbx; this
mov esi, ebp; int
call __ZN8nlohmann16json_abi_v3_11_36detail10type_errorC2EiPKc; nlohmann::json_abi_v3_11_3::detail::type_error::type_error(int,char const*)
lea rdi, [rsp+0A8h+var_40]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rax, rbx
add rsp, 88h
pop rbx
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rdi, [rsp+arg_60]
jmp short loc_27BA7
mov rbx, rax
lea rdi, [rsp+arg_0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_27B93
mov rbx, rax
loc_27B93:
lea rdi, [rsp+arg_40]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_27BA2
mov rbx, rax
loc_27BA2:
lea rdi, [rsp+arg_20]
loc_27BA7:
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_27BB1
mov rbx, rax
loc_27BB1:
mov rdi, rbx
call __Unwind_Resume
| nlohmann::json_abi_v3_11_3::detail::type_error * ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
nlohmann::json_abi_v3_11_3::detail::type_error *this,
unsigned int a2,
long long a3,
long long a4)
{
char v7; // [rsp+7h] [rbp-A1h] BYREF
_BYTE v8[32]; // [rsp+8h] [rbp-A0h] BYREF
_BYTE v9[32]; // [rsp+28h] [rbp-80h] BYREF
_BYTE v10[32]; // [rsp+48h] [rbp-60h] BYREF
char *v11[8]; // [rsp+68h] [rbp-40h] BYREF
std::string::basic_string<std::allocator<char>>(v9, "type_error", &v7);
nlohmann::json_abi_v3_11_3::detail::exception::name(v10, v9, a2);
nlohmann::json_abi_v3_11_3::detail::exception::get_byte_positions<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>>(
v8,
a4);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>(v11, v10, v8, a3);
std::string::~string(v8);
std::string::~string(v10);
std::string::~string(v9);
nlohmann::json_abi_v3_11_3::detail::type_error::type_error(this, a2, v11[0]);
std::string::~string(v11);
return this;
}
| _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x88
MOV R15,RCX
MOV R14,RDX
MOV EBP,ESI
MOV RBX,RDI
LAB_00127ae4:
LEA RSI,[0x12b7a0]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x7]
CALL 0x0011dc00
LAB_00127afa:
LEA RDI,[RSP + 0x48]
LEA RSI,[RSP + 0x28]
MOV EDX,EBP
CALL 0x0011c8d0
LAB_00127b0b:
LEA RDI,[RSP + 0x8]
MOV RSI,R15
CALL 0x0011d830
LAB_00127b18:
LEA RDI,[RSP + 0x68]
LEA RSI,[RSP + 0x48]
LEA RDX,[RSP + 0x8]
MOV RCX,R14
CALL 0x0011d890
LEA RDI,[RSP + 0x8]
CALL 0x0011c6f0
LEA RDI,[RSP + 0x48]
CALL 0x0011c6f0
LEA RDI,[RSP + 0x28]
CALL 0x0011c6f0
MOV RDX,qword ptr [RSP + 0x68]
LAB_00127b52:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x0011df80
LAB_00127b5c:
LEA RDI,[RSP + 0x68]
CALL 0x0011c6f0
MOV RAX,RBX
ADD RSP,0x88
POP RBX
POP R14
POP R15
POP RBP
RET
|
type_error *
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(type_error *param_1,int param_2,string *param_3)
{
allocator local_a1;
basic_json local_a0 [32];
string local_80 [32];
exception local_60 [32];
char *local_40 [4];
/* try { // try from 00127ae4 to 00127af9 has its CatchHandler @ 00127bae */
std::__cxx11::string::string<std::allocator<char>>(local_80,"type_error",&local_a1);
/* try { // try from 00127afa to 00127b0a has its CatchHandler @ 00127b9f */
nlohmann::json_abi_v3_11_3::detail::exception::name(local_60,local_80,param_2);
/* try { // try from 00127b0b to 00127b17 has its CatchHandler @ 00127b90 */
nlohmann::json_abi_v3_11_3::detail::exception::
get_byte_positions<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>>
(local_a0);
/* try { // try from 00127b18 to 00127b2e has its CatchHandler @ 00127b81 */
nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,std::__cxx11::string,std::__cxx11::string,std::__cxx11::string_const&>
((detail *)local_40,(string *)local_60,(string *)local_a0,param_3);
std::__cxx11::string::~string((string *)local_a0);
std::__cxx11::string::~string((string *)local_60);
std::__cxx11::string::~string(local_80);
/* try { // try from 00127b52 to 00127b5b has its CatchHandler @ 00127b77 */
nlohmann::json_abi_v3_11_3::detail::type_error::type_error(param_1,param_2,local_40[0]);
std::__cxx11::string::~string((string *)local_40);
return param_1;
}
| |
30,367 | nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<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> const*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 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> const*) | 11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp | static type_error create(int id_, const std::string& what_arg, BasicJsonContext context)
{
const std::string w = concat(exception::name("type_error", id_), exception::diagnostics(context), what_arg);
return {id_, w.c_str()};
} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<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> const*, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 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> const*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x413b(%rip), %rsi # 0x217b0
leaq 0x413e(%rip), %rdx # 0x217ba
leaq 0x28(%rsp), %rdi
callq 0x11370
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movl %ebp, %edx
callq 0x114f0
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
xorl %eax, %eax
movq %rax, -0x8(%r14)
movb %al, (%r14)
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq %rax, -0x8(%r12)
movb %al, (%r12)
movq 0x8(%r15), %rsi
addq 0x50(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x11e10
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0x112a0
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0x112a0
movq (%r15), %rsi
movq 0x8(%r15), %rdx
leaq 0x8(%rsp), %rdi
callq 0x112a0
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x1d71f
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x119a0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d73a
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x119a0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x1d751
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x119a0
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x11990
movq 0xe7a9(%rip), %rax # 0x2bf10
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1d785
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x119a0
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1d813
movq 0x18(%rsp), %rsi
jmp 0x1d80b
movq %rax, %rbx
jmp 0x1d7fc
movq %rax, %rbx
jmp 0x1d813
movq %rdx, %rbx
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1d7d5
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x119a0
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rdx
leaq 0x88(%rsp), %r12
movq %r14, %rsi
movq %r15, %rcx
movl %ebx, %r8d
movq %r12, %r9
callq 0x12513
movq (%r12), %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x1d813
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x119a0
movq %rbx, %rdi
callq 0x11fe0
| _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 98h
mov r15, rdx
mov ebp, esi
mov rbx, rdi
lea r13, [rsp+0C8h+var_90]
mov [r13-10h], r13
lea rsi, aTypeError; "type_error"
lea rdx, aTypeError+0Ah; ""
lea rdi, [rsp+0C8h+var_A0]
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+0C8h+var_80]; int
lea rsi, [rsp+0C8h+var_A0]; int
mov edx, ebp; int
call __ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int)
lea r14, [rsp+0C8h+var_50]
mov [r14-10h], r14
xor eax, eax
mov [r14-8], rax
mov [r14], al
lea r12, [rsp+0C8h+var_B0]
mov [r12-10h], r12
mov [r12-8], rax
mov [r12], al
mov rsi, [r15+8]
add rsi, [rsp+0C8h+var_78]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rsi, qword ptr [rsp+0C8h+var_80]
mov rdx, [rsp+0C8h+var_78]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rsi, [rsp+0C8h+var_60]
mov rdx, [rsp+0C8h+var_58]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rsi, [r15]
mov rdx, [r15+8]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rdi, [rsp+0C8h+var_60]; void *
cmp rdi, r14
jz short loc_1D71F
mov rsi, [rsp+0C8h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1D71F:
lea rax, [rsp+0C8h+var_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_1D73A
mov rsi, [rsp+0C8h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1D73A:
mov rdi, [rsp+0C8h+var_A0]; void *
cmp rdi, r13
jz short loc_1D751
mov rsi, [rsp+0C8h+var_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1D751:
mov rdx, [rsp+0C8h+var_C0]; char *
mov rdi, rbx; this
mov esi, ebp; int
call __ZN8nlohmann16json_abi_v3_11_36detail9exceptionC2EiPKc; nlohmann::json_abi_v3_11_3::detail::exception::exception(int,char const*)
mov rax, cs:_ZTVN8nlohmann16json_abi_v3_11_36detail10type_errorE_ptr
add rax, 10h
mov [rbx], rax
mov rdi, [rsp+0C8h+var_C0]; void *
cmp rdi, r12
jz short loc_1D785
mov rsi, [rsp+0C8h+var_B0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1D785:
mov rax, rbx
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
mov rdi, [rsp+arg_0]
cmp rdi, r12
jz short loc_1D813
mov rsi, [rsp+arg_10]
jmp short loc_1D80B
mov rbx, rax
jmp short loc_1D7FC
mov rbx, rax
jmp short loc_1D813
mov rbx, rdx
mov r15, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r12
jz short loc_1D7D5
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1D7D5:
lea rdi, [rsp+arg_60]
lea rdx, [rsp+arg_40]
lea r12, [rsp+arg_80]
mov rsi, r14
mov rcx, r15
mov r8d, ebx
mov r9, r12
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ__cold_1
mov rbx, [r12]
loc_1D7FC:
mov rdi, [rsp+arg_20]; void *
cmp rdi, r13
jz short loc_1D813
mov rsi, [rsp+arg_30]
loc_1D80B:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1D813:
mov rdi, rbx
call __Unwind_Resume
| nlohmann::json_abi_v3_11_3::detail::exception * ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
nlohmann::json_abi_v3_11_3::detail::exception *this,
int a2,
_QWORD *a3)
{
int v4; // ecx
int v5; // r8d
int v6; // r9d
int v8; // [rsp+0h] [rbp-C8h]
char *v9; // [rsp+8h] [rbp-C0h] BYREF
void *v10; // [rsp+10h] [rbp-B8h]
_QWORD v11[2]; // [rsp+18h] [rbp-B0h] BYREF
void *v12[2]; // [rsp+28h] [rbp-A0h] BYREF
_QWORD v13[2]; // [rsp+38h] [rbp-90h] BYREF
int v14[2]; // [rsp+48h] [rbp-80h] BYREF
long long v15; // [rsp+50h] [rbp-78h]
long long v16; // [rsp+58h] [rbp-70h] BYREF
void *v17; // [rsp+68h] [rbp-60h]
long long v18; // [rsp+70h] [rbp-58h]
_QWORD v19[10]; // [rsp+78h] [rbp-50h] BYREF
v12[0] = v13;
std::string::_M_construct<char const*>(v12, "type_error", "");
nlohmann::json_abi_v3_11_3::detail::exception::name(
(int)v14,
(int)v12,
a2,
v4,
v5,
v6,
v8,
(int)v9,
v10,
v11[0],
v11[1]);
v17 = v19;
v18 = 0LL;
LOBYTE(v19[0]) = 0;
v9 = (char *)v11;
v10 = 0LL;
LOBYTE(v11[0]) = 0;
std::string::reserve(&v9, v15 + a3[1]);
std::string::_M_append(&v9, *(_QWORD *)v14, v15);
std::string::_M_append(&v9, v17, v18);
std::string::_M_append(&v9, *a3, a3[1]);
if ( v17 != v19 )
operator delete(v17, v19[0] + 1LL);
if ( *(long long **)v14 != &v16 )
operator delete(*(void **)v14, v16 + 1);
if ( v12[0] != v13 )
operator delete(v12[0], v13[0] + 1LL);
nlohmann::json_abi_v3_11_3::detail::exception::exception(this, a2, v9);
*(_QWORD *)this = &`vtable for'nlohmann::json_abi_v3_11_3::detail::type_error + 2;
if ( v9 != (char *)v11 )
operator delete(v9, v11[0] + 1LL);
return this;
}
| _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x98
MOV R15,RDX
MOV EBP,ESI
MOV RBX,RDI
LEA R13,[RSP + 0x38]
MOV qword ptr [R13 + -0x10],R13
LAB_0011d66e:
LEA RSI,[0x1217b0]
LEA RDX,[0x1217ba]
LEA RDI,[RSP + 0x28]
CALL 0x00111370
LAB_0011d686:
LEA RDI,[RSP + 0x48]
LEA RSI,[RSP + 0x28]
MOV EDX,EBP
CALL 0x001114f0
LEA R14,[RSP + 0x78]
MOV qword ptr [R14 + -0x10],R14
XOR EAX,EAX
MOV qword ptr [R14 + -0x8],RAX
MOV byte ptr [R14],AL
LEA R12,[RSP + 0x18]
MOV qword ptr [R12 + -0x10],R12
MOV qword ptr [R12 + -0x8],RAX
MOV byte ptr [R12],AL
MOV RSI,qword ptr [R15 + 0x8]
ADD RSI,qword ptr [RSP + 0x50]
LAB_0011d6c5:
LEA RDI,[RSP + 0x8]
CALL 0x00111e10
MOV RSI,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x50]
LEA RDI,[RSP + 0x8]
CALL 0x001112a0
MOV RSI,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0x70]
LEA RDI,[RSP + 0x8]
CALL 0x001112a0
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
LEA RDI,[RSP + 0x8]
CALL 0x001112a0
MOV RDI,qword ptr [RSP + 0x68]
CMP RDI,R14
JZ 0x0011d71f
MOV RSI,qword ptr [RSP + 0x78]
INC RSI
CALL 0x001119a0
LAB_0011d71f:
LEA RAX,[RSP + 0x58]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0011d73a
MOV RSI,qword ptr [RSP + 0x58]
INC RSI
CALL 0x001119a0
LAB_0011d73a:
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R13
JZ 0x0011d751
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x001119a0
LAB_0011d751:
MOV RDX,qword ptr [RSP + 0x8]
LAB_0011d756:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x00111990
LAB_0011d760:
MOV RAX,qword ptr [0x0012bf10]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x0011d785
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001119a0
LAB_0011d785:
MOV RAX,RBX
ADD RSP,0x98
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
exception *
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(exception *param_1,int param_2,ulong *param_3)
{
char *local_c0;
int8 local_b8;
char local_b0;
int7 uStack_af;
long *local_a0 [2];
long local_90 [2];
long *local_80 [2];
long local_70 [2];
int1 *local_60;
int8 local_58;
int1 local_50;
int7 uStack_4f;
/* try { // try from 0011d66e to 0011d685 has its CatchHandler @ 0011d7b3 */
local_a0[0] = local_90;
std::__cxx11::string::_M_construct<char_const*>(local_a0,"type_error","");
/* try { // try from 0011d686 to 0011d696 has its CatchHandler @ 0011d7ae */
nlohmann::json_abi_v3_11_3::detail::exception::name
((exception *)local_80,(string *)local_a0,param_2);
local_58 = 0;
local_50 = 0;
local_b8 = 0;
local_b0 = '\0';
/* try { // try from 0011d6c5 to 0011d707 has its CatchHandler @ 0011d7b8 */
local_c0 = &local_b0;
local_60 = &local_50;
std::__cxx11::string::reserve((ulong)&local_c0);
std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_80[0]);
std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_60);
std::__cxx11::string::_M_append((char *)&local_c0,*param_3);
if (local_60 != &local_50) {
operator_delete(local_60,CONCAT71(uStack_4f,local_50) + 1);
}
if (local_80[0] != local_70) {
operator_delete(local_80[0],local_70[0] + 1);
}
if (local_a0[0] != local_90) {
operator_delete(local_a0[0],local_90[0] + 1);
}
/* try { // try from 0011d756 to 0011d75f has its CatchHandler @ 0011d79a */
nlohmann::json_abi_v3_11_3::detail::exception::exception(param_1,param_2,local_c0);
*(int **)param_1 = PTR_vtable_0012bf10 + 0x10;
if (local_c0 != &local_b0) {
operator_delete(local_c0,CONCAT71(uStack_af,local_b0) + 1);
}
return param_1;
}
| |
30,368 | aimrt::protocols::sensor::ImuState::clear_angular_velocity() | aimrt_mujoco_sim/_deps/aimrt-build/src/protocols/pb/sensor/imu.pb.cc | void ImuState::clear_angular_velocity() {
if (GetArenaForAllocation() == nullptr && _impl_.angular_velocity_ != nullptr) {
delete _impl_.angular_velocity_;
}
_impl_.angular_velocity_ = nullptr;
} | O3 | cpp | aimrt::protocols::sensor::ImuState::clear_angular_velocity():
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rcx
movq %rcx, %rax
andq $-0x4, %rax
testb $0x1, %cl
jne 0x72306
testq %rax, %rax
jne 0x722f6
movq 0x50(%rbx), %r14
testq %r14, %r14
je 0x722f6
movq %r14, %rdi
callq 0x75d12
movl $0x30, %esi
movq %r14, %rdi
callq 0x2d2d0
movq $0x0, 0x50(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq (%rax), %rax
jmp 0x722d3
nop
| _ZN5aimrt9protocols6sensor8ImuState22clear_angular_velocityEv:
push r14
push rbx
push rax
mov rbx, rdi
mov rcx, [rdi+8]
mov rax, rcx
and rax, 0FFFFFFFFFFFFFFFCh
test cl, 1
jnz short loc_72306
loc_722D3:
test rax, rax
jnz short loc_722F6
mov r14, [rbx+50h]
test r14, r14
jz short loc_722F6
mov rdi, r14; this
call _ZN5aimrt9protocols8geometry7Vector3D2Ev; aimrt::protocols::geometry::Vector3::~Vector3()
mov esi, 30h ; '0'; unsigned __int64
mov rdi, r14; void *
call __ZdlPvm; operator delete(void *,ulong)
loc_722F6:
mov qword ptr [rbx+50h], 0
add rsp, 8
pop rbx
pop r14
retn
loc_72306:
mov rax, [rax]
jmp short loc_722D3
| void aimrt::protocols::sensor::ImuState::clear_angular_velocity(aimrt::protocols::sensor::ImuState *this)
{
_QWORD *v1; // rax
void *v2; // r14
v1 = (_QWORD *)(*((_QWORD *)this + 1) & 0xFFFFFFFFFFFFFFFCLL);
if ( (*((_QWORD *)this + 1) & 1) != 0 )
v1 = (_QWORD *)*v1;
if ( !v1 )
{
v2 = (void *)*((_QWORD *)this + 10);
if ( v2 )
{
aimrt::protocols::geometry::Vector3::~Vector3(*((aimrt::protocols::geometry::Vector3 **)this + 10));
operator delete(v2, 0x30uLL);
}
}
*((_QWORD *)this + 10) = 0LL;
}
| clear_angular_velocity:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV RCX,qword ptr [RDI + 0x8]
MOV RAX,RCX
AND RAX,-0x4
TEST CL,0x1
JNZ 0x00172306
LAB_001722d3:
TEST RAX,RAX
JNZ 0x001722f6
MOV R14,qword ptr [RBX + 0x50]
TEST R14,R14
JZ 0x001722f6
MOV RDI,R14
CALL 0x00175d12
MOV ESI,0x30
MOV RDI,R14
CALL 0x0012d2d0
LAB_001722f6:
MOV qword ptr [RBX + 0x50],0x0
ADD RSP,0x8
POP RBX
POP R14
RET
LAB_00172306:
MOV RAX,qword ptr [RAX]
JMP 0x001722d3
|
/* aimrt::protocols::sensor::ImuState::clear_angular_velocity() */
void __thiscall aimrt::protocols::sensor::ImuState::clear_angular_velocity(ImuState *this)
{
Vector3 *this_00;
int8 *puVar1;
puVar1 = (int8 *)(*(ulong *)(this + 8) & 0xfffffffffffffffc);
if ((*(ulong *)(this + 8) & 1) != 0) {
puVar1 = (int8 *)*puVar1;
}
if ((puVar1 == (int8 *)0x0) &&
(this_00 = *(Vector3 **)(this + 0x50), this_00 != (Vector3 *)0x0)) {
geometry::Vector3::~Vector3(this_00);
operator_delete(this_00,0x30);
}
*(int8 *)(this + 0x50) = 0;
return;
}
| |
30,369 | testing::UnitTest::GetInstance() | AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest.cc | UnitTest* UnitTest::GetInstance() {
// CodeGear C++Builder insists on a public destructor for the
// default implementation. Use this implementation to keep good OO
// design with private destructor.
#if defined(__BORLANDC__)
static UnitTest* const instance = new UnitTest;
return instance;
#else
static UnitTest instance;
return &instance;
#endif // defined(__BORLANDC__)
} | O0 | cpp | testing::UnitTest::GetInstance():
subq $0x18, %rsp
cmpb $0x0, 0xd398d(%rip) # 0x1d0d48
jne 0xfd402
leaq 0xd3984(%rip), %rdi # 0x1d0d48
callq 0x15e40
cmpl $0x0, %eax
je 0xfd402
leaq 0xd392b(%rip), %rdi # 0x1d0d00
callq 0x11ab20
jmp 0xfd3dc
leaq 0x1d7ed(%rip), %rdi # 0x11abd0
leaq 0xd3916(%rip), %rsi # 0x1d0d00
leaq 0xd3407(%rip), %rdx # 0x1d07f8
callq 0x15670
leaq 0xd394b(%rip), %rdi # 0x1d0d48
callq 0x154d0
leaq 0xd38f7(%rip), %rax # 0x1d0d00
addq $0x18, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x10(%rsp)
movl %eax, 0xc(%rsp)
leaq 0xd3925(%rip), %rdi # 0x1d0d48
callq 0x154c0
movq 0x10(%rsp), %rdi
callq 0x15dd0
nopw %cs:(%rax,%rax)
| _ZN7testing8UnitTest11GetInstanceEv:
sub rsp, 18h
cmp cs:_ZGVZN7testing8UnitTest11GetInstanceEvE8instance, 0; `guard variable for'testing::UnitTest::GetInstance(void)::instance
jnz short loc_FD402
lea rdi, _ZGVZN7testing8UnitTest11GetInstanceEvE8instance; __guard *
call ___cxa_guard_acquire
cmp eax, 0
jz short loc_FD402
lea rdi, _ZZN7testing8UnitTest11GetInstanceEvE8instance; this
call _ZN7testing8UnitTestC2Ev; testing::UnitTest::UnitTest(void)
jmp short $+2
loc_FD3DC:
lea rdi, _ZN7testing8UnitTestD2Ev; lpfunc
lea rsi, _ZZN7testing8UnitTest11GetInstanceEvE8instance; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZN7testing8UnitTest11GetInstanceEvE8instance; __guard *
call ___cxa_guard_release
loc_FD402:
lea rax, _ZZN7testing8UnitTest11GetInstanceEvE8instance; testing::UnitTest::GetInstance(void)::instance
add rsp, 18h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_8], rcx
mov [rsp+arg_4], eax
lea rdi, _ZGVZN7testing8UnitTest11GetInstanceEvE8instance; __guard *
call ___cxa_guard_abort
mov rdi, [rsp+arg_8]
call __Unwind_Resume
| void * testing::UnitTest::GetInstance(testing::UnitTest *this)
{
if ( !(_BYTE)`guard variable for'testing::UnitTest::GetInstance(void)::instance
&& __cxa_guard_acquire(&`guard variable for'testing::UnitTest::GetInstance(void)::instance) )
{
testing::UnitTest::UnitTest((testing::UnitTest *)&testing::UnitTest::GetInstance(void)::instance);
__cxa_atexit(testing::UnitTest::~UnitTest, &testing::UnitTest::GetInstance(void)::instance, &_dso_handle);
__cxa_guard_release(&`guard variable for'testing::UnitTest::GetInstance(void)::instance);
}
return &testing::UnitTest::GetInstance(void)::instance;
}
| GetInstance:
SUB RSP,0x18
CMP byte ptr [0x002d0d48],0x0
JNZ 0x001fd402
LEA RDI,[0x2d0d48]
CALL 0x00115e40
CMP EAX,0x0
JZ 0x001fd402
LAB_001fd3ce:
LEA RDI,[0x2d0d00]
CALL 0x0021ab20
LAB_001fd3da:
JMP 0x001fd3dc
LAB_001fd3dc:
LEA RDI,[0x21abd0]
LEA RSI,[0x2d0d00]
LEA RDX,[0x2d07f8]
CALL 0x00115670
LEA RDI,[0x2d0d48]
CALL 0x001154d0
LAB_001fd402:
LEA RAX,[0x2d0d00]
ADD RSP,0x18
RET
|
/* testing::UnitTest::GetInstance() */
int1 * testing::UnitTest::GetInstance(void)
{
int iVar1;
if (GetInstance()::instance == '\0') {
iVar1 = __cxa_guard_acquire(&GetInstance()::instance);
if (iVar1 != 0) {
/* try { // try from 001fd3ce to 001fd3d9 has its CatchHandler @ 001fd40e */
UnitTest((UnitTest *)GetInstance()::instance);
__cxa_atexit(~UnitTest,GetInstance()::instance,&__dso_handle);
__cxa_guard_release(&GetInstance()::instance);
}
}
return GetInstance()::instance;
}
| |
30,370 | core_tensor_logic_dynamic_graph_unary_op_Test::~core_tensor_logic_dynamic_graph_unary_op_Test() | magnetron/test/unittests/tensor/core_logic.cpp | TEST(core_tensor_logic, dynamic_graph_unary_op) {
context ctx {compute_device::cpu};
tensor a {ctx, dtype::e8m23, 10};
tensor b {a.neg()};
mag_tensor_t* ta {&*a};
ASSERT_EQ(ta->op, MAG_OP_NOP);
ASSERT_EQ(ta->flags, MAG_TFLAG_REQUIRES_GRAD|MAG_TFLAG_OWNER);
for (std::size_t i {}; i < k_max_input_tensors; ++i) {
ASSERT_EQ(ta->op_inputs[i], nullptr);
}
for (std::size_t i {}; i < k_max_op_params; ++i) {
ASSERT_EQ(mag_opp_unpack_type(ta->op_params[i]), MAG_OPP_NONE);
}
ASSERT_EQ(ta->init_op, MAG_IOP_NOP);
for (std::size_t i {}; i < k_max_op_params; ++i) {
ASSERT_EQ(mag_opp_unpack_type(ta->init_op_params[i]), MAG_OPP_NONE);
}
mag_tensor_t* tb {&*b};
ASSERT_EQ(tb->op, MAG_OP_NEG);
ASSERT_EQ(tb->flags, MAG_TFLAG_REQUIRES_GRAD|MAG_TFLAG_OWNER);
ASSERT_EQ(tb->op_inputs[0], ta);
ASSERT_EQ(tb->op_inputs[1], nullptr);
for (std::size_t i {}; i < k_max_op_params; ++i) {
ASSERT_EQ(mag_opp_unpack_type(tb->op_params[i]), MAG_OPP_NONE);
}
ASSERT_EQ(tb->init_op, MAG_IOP_NOP);
for (std::size_t i {}; i < k_max_op_params; ++i) {
ASSERT_EQ(mag_opp_unpack_type(tb->init_op_params[i]), MAG_OPP_NONE);
}
} | O0 | cpp | core_tensor_logic_dynamic_graph_unary_op_Test::~core_tensor_logic_dynamic_graph_unary_op_Test():
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x10(%rbp)
callq 0x825a0
movq -0x10(%rbp), %rdi
movl $0x10, %esi
callq 0x13700
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
| _ZN45core_tensor_logic_dynamic_graph_unary_op_TestD0Ev:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]; this
mov [rbp+var_10], rdi
call _ZN45core_tensor_logic_dynamic_graph_unary_op_TestD2Ev; core_tensor_logic_dynamic_graph_unary_op_Test::~core_tensor_logic_dynamic_graph_unary_op_Test()
mov rdi, [rbp+var_10]; void *
mov esi, 10h; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
add rsp, 10h
pop rbp
retn
| void core_tensor_logic_dynamic_graph_unary_op_Test::~core_tensor_logic_dynamic_graph_unary_op_Test(
core_tensor_logic_dynamic_graph_unary_op_Test *this)
{
core_tensor_logic_dynamic_graph_unary_op_Test::~core_tensor_logic_dynamic_graph_unary_op_Test(this);
operator delete(this, 0x10uLL);
}
| ~core_tensor_logic_dynamic_graph_unary_op_Test:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RDI
CALL 0x001825a0
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,0x10
CALL 0x00113700
ADD RSP,0x10
POP RBP
RET
|
/* core_tensor_logic_dynamic_graph_unary_op_Test::~core_tensor_logic_dynamic_graph_unary_op_Test()
*/
void __thiscall
core_tensor_logic_dynamic_graph_unary_op_Test::~core_tensor_logic_dynamic_graph_unary_op_Test
(core_tensor_logic_dynamic_graph_unary_op_Test *this)
{
~core_tensor_logic_dynamic_graph_unary_op_Test(this);
operator_delete(this,0x10);
return;
}
| |
30,371 | core_tensor_logic_dynamic_graph_unary_op_Test::~core_tensor_logic_dynamic_graph_unary_op_Test() | magnetron/test/unittests/tensor/core_logic.cpp | TEST(core_tensor_logic, dynamic_graph_unary_op) {
context ctx {compute_device::cpu};
tensor a {ctx, dtype::e8m23, 10};
tensor b {a.neg()};
mag_tensor_t* ta {&*a};
ASSERT_EQ(ta->op, MAG_OP_NOP);
ASSERT_EQ(ta->flags, MAG_TFLAG_REQUIRES_GRAD|MAG_TFLAG_OWNER);
for (std::size_t i {}; i < k_max_input_tensors; ++i) {
ASSERT_EQ(ta->op_inputs[i], nullptr);
}
for (std::size_t i {}; i < k_max_op_params; ++i) {
ASSERT_EQ(mag_opp_unpack_type(ta->op_params[i]), MAG_OPP_NONE);
}
ASSERT_EQ(ta->init_op, MAG_IOP_NOP);
for (std::size_t i {}; i < k_max_op_params; ++i) {
ASSERT_EQ(mag_opp_unpack_type(ta->init_op_params[i]), MAG_OPP_NONE);
}
mag_tensor_t* tb {&*b};
ASSERT_EQ(tb->op, MAG_OP_NEG);
ASSERT_EQ(tb->flags, MAG_TFLAG_REQUIRES_GRAD|MAG_TFLAG_OWNER);
ASSERT_EQ(tb->op_inputs[0], ta);
ASSERT_EQ(tb->op_inputs[1], nullptr);
for (std::size_t i {}; i < k_max_op_params; ++i) {
ASSERT_EQ(mag_opp_unpack_type(tb->op_params[i]), MAG_OPP_NONE);
}
ASSERT_EQ(tb->init_op, MAG_IOP_NOP);
for (std::size_t i {}; i < k_max_op_params; ++i) {
ASSERT_EQ(mag_opp_unpack_type(tb->init_op_params[i]), MAG_OPP_NONE);
}
} | O3 | cpp | core_tensor_logic_dynamic_graph_unary_op_Test::~core_tensor_logic_dynamic_graph_unary_op_Test():
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x60c6c
movl $0x10, %esi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x106d0
nop
| _ZN45core_tensor_logic_dynamic_graph_unary_op_TestD0Ev:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
call _ZN7testing4TestD2Ev; testing::Test::~Test()
mov esi, 10h; unsigned __int64
mov rdi, rbx; void *
add rsp, 8
pop rbx
pop rbp
jmp __ZdlPvm; operator delete(void *,ulong)
| void core_tensor_logic_dynamic_graph_unary_op_Test::~core_tensor_logic_dynamic_graph_unary_op_Test(
core_tensor_logic_dynamic_graph_unary_op_Test *this)
{
testing::Test::~Test(this);
operator delete(this, 0x10uLL);
}
| ~core_tensor_logic_dynamic_graph_unary_op_Test:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
CALL 0x00160c6c
MOV ESI,0x10
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x001106d0
|
/* core_tensor_logic_dynamic_graph_unary_op_Test::~core_tensor_logic_dynamic_graph_unary_op_Test()
*/
void __thiscall
core_tensor_logic_dynamic_graph_unary_op_Test::~core_tensor_logic_dynamic_graph_unary_op_Test
(core_tensor_logic_dynamic_graph_unary_op_Test *this)
{
testing::Test::~Test((Test *)this);
operator_delete(this,0x10);
return;
}
| |
30,372 | LefDefParser::defiShield::bumpPaths(int) | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiNet.cpp | void defiShield::bumpPaths(int size) {
int i;
defiPath** newPaths = new defiPath*[size];
for (i = 0; i < numPaths_; i++)
newPaths[i] = paths_[i];
pathsAllocated_ = size;
delete [] paths_;
paths_ = newPaths;
} | O3 | cpp | LefDefParser::defiShield::bumpPaths(int):
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
movl %esi, %eax
shlq $0x3, %rax
testl %esi, %esi
movq $-0x1, %rdi
cmovnsq %rax, %rdi
callq 0x6030
movq %rax, %r14
movslq 0x8(%rbx), %rax
movq 0x10(%rbx), %rdi
testq %rax, %rax
jle 0x209d4
xorl %ecx, %ecx
movq (%rdi,%rcx,8), %rdx
movq %rdx, (%r14,%rcx,8)
incq %rcx
cmpq %rcx, %rax
jne 0x209bf
movl %ebp, 0xc(%rbx)
jmp 0x209dc
movl %ebp, 0xc(%rbx)
testq %rdi, %rdi
je 0x209e1
callq 0x6250
movq %r14, 0x10(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
| _ZN12LefDefParser10defiShield9bumpPathsEi:
push rbp
push r14
push rbx
mov ebp, esi
mov rbx, rdi
mov eax, esi
shl rax, 3
test esi, esi
mov rdi, 0FFFFFFFFFFFFFFFFh
cmovns rdi, rax; unsigned __int64
call __Znam; operator new[](ulong)
mov r14, rax
movsxd rax, dword ptr [rbx+8]
mov rdi, [rbx+10h]; void *
test rax, rax
jle short loc_209D4
xor ecx, ecx
loc_209BF:
mov rdx, [rdi+rcx*8]
mov [r14+rcx*8], rdx
inc rcx
cmp rax, rcx
jnz short loc_209BF
mov [rbx+0Ch], ebp
jmp short loc_209DC
loc_209D4:
mov [rbx+0Ch], ebp
test rdi, rdi
jz short loc_209E1
loc_209DC:
call __ZdaPv; operator delete[](void *)
loc_209E1:
mov [rbx+10h], r14
pop rbx
pop r14
pop rbp
retn
| void LefDefParser::defiShield::bumpPaths(LefDefParser::defiShield *this, int a2)
{
unsigned long long v3; // rdi
long long v4; // r14
long long v5; // rax
_QWORD *v6; // rdi
long long i; // rcx
v3 = -1LL;
if ( a2 >= 0 )
v3 = 8LL * (unsigned int)a2;
v4 = operator new[](v3);
v5 = *((int *)this + 2);
v6 = (_QWORD *)*((_QWORD *)this + 2);
if ( v5 > 0 )
{
for ( i = 0LL; i != v5; ++i )
*(_QWORD *)(v4 + 8 * i) = v6[i];
*((_DWORD *)this + 3) = a2;
goto LABEL_8;
}
*((_DWORD *)this + 3) = a2;
if ( v6 )
LABEL_8:
operator delete[](v6);
*((_QWORD *)this + 2) = v4;
}
| bumpPaths:
PUSH RBP
PUSH R14
PUSH RBX
MOV EBP,ESI
MOV RBX,RDI
MOV EAX,ESI
SHL RAX,0x3
TEST ESI,ESI
MOV RDI,-0x1
CMOVNS RDI,RAX
CALL 0x00106030
MOV R14,RAX
MOVSXD RAX,dword ptr [RBX + 0x8]
MOV RDI,qword ptr [RBX + 0x10]
TEST RAX,RAX
JLE 0x001209d4
XOR ECX,ECX
LAB_001209bf:
MOV RDX,qword ptr [RDI + RCX*0x8]
MOV qword ptr [R14 + RCX*0x8],RDX
INC RCX
CMP RAX,RCX
JNZ 0x001209bf
MOV dword ptr [RBX + 0xc],EBP
JMP 0x001209dc
LAB_001209d4:
MOV dword ptr [RBX + 0xc],EBP
TEST RDI,RDI
JZ 0x001209e1
LAB_001209dc:
CALL 0x00106250
LAB_001209e1:
MOV qword ptr [RBX + 0x10],R14
POP RBX
POP R14
POP RBP
RET
|
/* LefDefParser::defiShield::bumpPaths(int) */
void __thiscall LefDefParser::defiShield::bumpPaths(defiShield *this,int param_1)
{
int iVar1;
void *pvVar2;
void *pvVar3;
long lVar4;
ulong uVar5;
uVar5 = 0xffffffffffffffff;
if (-1 < param_1) {
uVar5 = (ulong)(uint)param_1 << 3;
}
pvVar3 = operator_new__(uVar5);
iVar1 = *(int *)(this + 8);
pvVar2 = *(void **)(this + 0x10);
if ((long)iVar1 < 1) {
*(int *)(this + 0xc) = param_1;
if (pvVar2 == (void *)0x0) goto LAB_001209e1;
}
else {
lVar4 = 0;
do {
*(int8 *)((long)pvVar3 + lVar4 * 8) = *(int8 *)((long)pvVar2 + lVar4 * 8);
lVar4 = lVar4 + 1;
} while (iVar1 != lVar4);
*(int *)(this + 0xc) = param_1;
}
operator_delete__(pvVar2);
LAB_001209e1:
*(void **)(this + 0x10) = pvVar3;
return;
}
| |
30,373 | mysql_stmt_data_seek | eloqsql/libmariadb/libmariadb/mariadb_stmt.c | void STDCALL mysql_stmt_data_seek(MYSQL_STMT *stmt, unsigned long long offset)
{
unsigned long long i= offset;
MYSQL_ROWS *ptr= stmt->result.data;
while(i-- && ptr)
ptr= ptr->next;
stmt->result_cursor= ptr;
stmt->state= MYSQL_STMT_USER_FETCHING;
return;
} | O0 | c | mysql_stmt_data_seek:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq 0x80(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rcx
movq %rcx, %rax
addq $-0x1, %rax
movq %rax, -0x18(%rbp)
xorl %eax, %eax
cmpq $0x0, %rcx
movb %al, -0x21(%rbp)
je 0x43f78
cmpq $0x0, -0x20(%rbp)
setne %al
movb %al, -0x21(%rbp)
movb -0x21(%rbp), %al
testb $0x1, %al
jne 0x43f81
jmp 0x43f8e
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0x43f53
movq -0x20(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0xe0(%rax)
movq -0x8(%rbp), %rax
movl $0x5, 0x50(%rax)
popq %rbp
retq
nopw (%rax,%rax)
| mysql_stmt_data_seek:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_10]
mov [rbp+var_18], rax
mov rax, [rbp+var_8]
mov rax, [rax+80h]
mov [rbp+var_20], rax
loc_43F53:
mov rcx, [rbp+var_18]
mov rax, rcx
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_18], rax
xor eax, eax
cmp rcx, 0
mov [rbp+var_21], al
jz short loc_43F78
cmp [rbp+var_20], 0
setnz al
mov [rbp+var_21], al
loc_43F78:
mov al, [rbp+var_21]
test al, 1
jnz short loc_43F81
jmp short loc_43F8E
loc_43F81:
mov rax, [rbp+var_20]
mov rax, [rax]
mov [rbp+var_20], rax
jmp short loc_43F53
loc_43F8E:
mov rcx, [rbp+var_20]
mov rax, [rbp+var_8]
mov [rax+0E0h], rcx
mov rax, [rbp+var_8]
mov dword ptr [rax+50h], 5
pop rbp
retn
| long long mysql_stmt_data_seek(long long a1, long long a2)
{
long long v2; // rcx
long long result; // rax
bool v4; // [rsp+1h] [rbp-21h]
_QWORD *i; // [rsp+2h] [rbp-20h]
for ( i = *(_QWORD **)(a1 + 128); ; i = (_QWORD *)*i )
{
v2 = a2--;
v4 = 0;
if ( v2 )
v4 = i != 0LL;
if ( !v4 )
break;
}
*(_QWORD *)(a1 + 224) = i;
result = a1;
*(_DWORD *)(a1 + 80) = 5;
return result;
}
| mysql_stmt_data_seek:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x80]
MOV qword ptr [RBP + -0x20],RAX
LAB_00143f53:
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,RCX
ADD RAX,-0x1
MOV qword ptr [RBP + -0x18],RAX
XOR EAX,EAX
CMP RCX,0x0
MOV byte ptr [RBP + -0x21],AL
JZ 0x00143f78
CMP qword ptr [RBP + -0x20],0x0
SETNZ AL
MOV byte ptr [RBP + -0x21],AL
LAB_00143f78:
MOV AL,byte ptr [RBP + -0x21]
TEST AL,0x1
JNZ 0x00143f81
JMP 0x00143f8e
LAB_00143f81:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
JMP 0x00143f53
LAB_00143f8e:
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0xe0],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x50],0x5
POP RBP
RET
|
void mysql_stmt_data_seek(long param_1,long param_2)
{
int8 *local_28;
long local_20;
local_20 = param_2;
for (local_28 = *(int8 **)(param_1 + 0x80); local_20 != 0 && local_28 != (int8 *)0x0;
local_28 = (int8 *)*local_28) {
local_20 = local_20 + -1;
}
*(int8 **)(param_1 + 0xe0) = local_28;
*(int4 *)(param_1 + 0x50) = 5;
return;
}
| |
30,374 | my_casedn_str_mb | eloqsql/strings/ctype-mb.c | size_t my_casedn_str_mb(CHARSET_INFO * cs, char *str)
{
register uint32 l;
register const uchar *map= cs->to_lower;
char *str_orig= str;
while (*str)
{
/* Pointing after the '\0' is safe here. */
if ((l= my_ismbchar(cs, str, str + cs->mbmaxlen)))
str+= l;
else
{
*str= (char) map[(uchar)*str];
str++;
}
}
return (size_t) (str - str_orig);
} | O3 | c | my_casedn_str_mb:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
cmpb $0x0, (%rsi)
movq %rsi, %rax
je 0x3ab48
movq %rdi, %r14
movq 0x48(%rdi), %r12
movq %rbx, %r15
movl 0x9c(%r14), %edx
addq %r15, %rdx
movq 0xb8(%r14), %rax
movq %r14, %rdi
movq %r15, %rsi
callq *0xc0(%rax)
cmpl $0x2, %eax
jge 0x3ab38
movzbl (%r15), %eax
movb (%r12,%rax), %al
movb %al, (%r15)
movl $0x1, %ecx
jmp 0x3ab3a
movl %eax, %ecx
leaq (%r15,%rcx), %rax
cmpb $0x0, (%r15,%rcx)
movq %rax, %r15
jne 0x3ab04
subq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| my_casedn_str_mb:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov rbx, rsi
cmp byte ptr [rsi], 0
mov rax, rsi
jz short loc_3AB48
mov r14, rdi
mov r12, [rdi+48h]
mov r15, rbx
loc_3AB04:
mov edx, [r14+9Ch]
add rdx, r15
mov rax, [r14+0B8h]
mov rdi, r14
mov rsi, r15
call qword ptr [rax+0C0h]
cmp eax, 2
jge short loc_3AB38
movzx eax, byte ptr [r15]
mov al, [r12+rax]
mov [r15], al
mov ecx, 1
jmp short loc_3AB3A
loc_3AB38:
mov ecx, eax
loc_3AB3A:
lea rax, [r15+rcx]
cmp byte ptr [r15+rcx], 0
mov r15, rax
jnz short loc_3AB04
loc_3AB48:
sub rax, rbx
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long my_casedn_str_mb(long long a1, _BYTE *a2)
{
_BYTE *v2; // rax
long long v3; // r12
_BYTE *v4; // r15
int v5; // eax
long long v6; // rcx
bool v7; // zf
v2 = a2;
if ( *a2 )
{
v3 = *(_QWORD *)(a1 + 72);
v4 = a2;
do
{
v5 = (*(long long ( **)(long long, _BYTE *, _BYTE *))(*(_QWORD *)(a1 + 184) + 192LL))(
a1,
v4,
&v4[*(unsigned int *)(a1 + 156)]);
if ( v5 >= 2 )
{
v6 = (unsigned int)v5;
}
else
{
*v4 = *(_BYTE *)(v3 + (unsigned __int8)*v4);
v6 = 1LL;
}
v2 = &v4[v6];
v7 = v4[v6] == 0;
v4 += v6;
}
while ( !v7 );
}
return v2 - a2;
}
| my_casedn_str_mb:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV RBX,RSI
CMP byte ptr [RSI],0x0
MOV RAX,RSI
JZ 0x0013ab48
MOV R14,RDI
MOV R12,qword ptr [RDI + 0x48]
MOV R15,RBX
LAB_0013ab04:
MOV EDX,dword ptr [R14 + 0x9c]
ADD RDX,R15
MOV RAX,qword ptr [R14 + 0xb8]
MOV RDI,R14
MOV RSI,R15
CALL qword ptr [RAX + 0xc0]
CMP EAX,0x2
JGE 0x0013ab38
MOVZX EAX,byte ptr [R15]
MOV AL,byte ptr [R12 + RAX*0x1]
MOV byte ptr [R15],AL
MOV ECX,0x1
JMP 0x0013ab3a
LAB_0013ab38:
MOV ECX,EAX
LAB_0013ab3a:
LEA RAX,[R15 + RCX*0x1]
CMP byte ptr [R15 + RCX*0x1],0x0
MOV R15,RAX
JNZ 0x0013ab04
LAB_0013ab48:
SUB RAX,RBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
long my_casedn_str_mb(long param_1,byte *param_2)
{
byte *pbVar1;
long lVar2;
uint uVar3;
byte *pbVar4;
ulong uVar5;
byte *pbVar6;
pbVar4 = param_2;
if (*param_2 != 0) {
lVar2 = *(long *)(param_1 + 0x48);
pbVar6 = param_2;
do {
uVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))
(param_1,pbVar6,pbVar6 + *(uint *)(param_1 + 0x9c));
if ((int)uVar3 < 2) {
*pbVar6 = *(byte *)(lVar2 + (ulong)*pbVar6);
uVar5 = 1;
}
else {
uVar5 = (ulong)uVar3;
}
pbVar4 = pbVar6 + uVar5;
pbVar1 = pbVar6 + uVar5;
pbVar6 = pbVar4;
} while (*pbVar1 != 0);
}
return (long)pbVar4 - (long)param_2;
}
| |
30,375 | 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>>::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<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>>::decode(unsigned char&, unsigned int&, unsigned char):
pushq %rax
movl %edx, %ecx
leaq 0x52082(%rip), %rax # 0x122fa2
movzbl (%rax,%rcx), %ecx
cmpb $0x0, (%rdi)
je 0xd0f3a
andb $0x3f, %dl
movzbl %dl, %r8d
movl (%rsi), %edx
shll $0x6, %edx
orl %r8d, %edx
jmp 0xd0f49
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 0xd0f6d
movb (%rax,%rcx), %al
movb %al, (%rdi)
popq %rcx
retq
leaq 0x48ac8(%rip), %rdi # 0x119a3c
leaq 0x48afc(%rip), %rdx # 0x119a77
leaq 0x49ea4(%rip), %rcx # 0x11ae26
movl $0x49fb, %esi # imm = 0x49FB
xorl %eax, %eax
callq 0x20e20
movq %rax, %rdi
callq 0x27b48
| _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE6decodeERhRjh:
push rax
mov ecx, edx
lea rax, _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE6decodeERhRjhE5utf8d; 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>>::decode(uchar &,uint &,uchar)::utf8d
movzx ecx, byte ptr [rax+rcx]
cmp byte ptr [rdi], 0
jz short loc_D0F3A
and dl, 3Fh
movzx r8d, dl
mov edx, [rsi]
shl edx, 6
or edx, r8d
jmp short loc_D0F49
loc_D0F3A:
mov r8d, 0FFh
shr r8d, cl
movzx edx, dl
and edx, r8d
loc_D0F49:
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_D0F6D
mov al, [rax+rcx]
mov [rdi], al
pop rcx
retn
loc_D0F6D:
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<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>>::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<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>>::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<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>>::decode(unsigned char &,unsigned int &,unsigned char)::utf8d[v5];
*a1 = result;
return result;
}
| decode:
PUSH RAX
MOV ECX,EDX
LEA RAX,[0x222fa2]
MOVZX ECX,byte ptr [RAX + RCX*0x1]
CMP byte ptr [RDI],0x0
JZ 0x001d0f3a
AND DL,0x3f
MOVZX R8D,DL
MOV EDX,dword ptr [RSI]
SHL EDX,0x6
OR EDX,R8D
JMP 0x001d0f49
LAB_001d0f3a:
MOV R8D,0xff
SHR R8D,CL
MOVZX EDX,DL
AND EDX,R8D
LAB_001d0f49:
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 0x001d0f6d
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RDI],AL
POP RCX
RET
LAB_001d0f6d:
LEA RDI,[0x219a3c]
LEA RDX,[0x219a77]
LEA RCX,[0x21ae26]
MOV ESI,0x49fb
XOR EAX,EAX
CALL 0x00120e20
|
/* nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::decode(unsigned char&, unsigned int&, unsigned char) */
void nlohmann::json_abi_v3_11_3::detail::
serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::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 001d0f6d to 001d0f8d has its CatchHandler @ 001d0f8e */
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",0x49fb,
"GGML_ASSERT(%s) failed","index < utf8d.size()");
}
| |
30,376 | my_thread_global_init | eloqsql/mysys/my_thr_init.c | my_bool my_thread_global_init(void)
{
int pth_ret;
/* Normally this should never be called twice */
DBUG_ASSERT(my_thread_global_init_done == 0);
if (my_thread_global_init_done)
return 0;
my_thread_global_init_done= 1;
/*
THR_KEY_mysys is deleted in my_end() as DBUG libraries are using it even
after my_thread_global_end() is called.
my_thr_key_mysys_exist is used to protect against application like QT
that calls my_thread_global_init() + my_thread_global_end() multiple times
without calling my_init() + my_end().
*/
if (!my_thr_key_mysys_exists &&
(pth_ret= pthread_key_create(&THR_KEY_mysys, NULL)) != 0)
{
fprintf(stderr, "Can't initialize threads: error %d\n", pth_ret);
return 1;
}
my_thr_key_mysys_exists= 1;
/* Mutex used by my_thread_init() and after my_thread_destroy_mutex() */
my_thread_init_internal_mutex();
if (my_thread_init())
return 1;
my_thread_init_common_mutex();
return 0;
} | O0 | c | my_thread_global_init:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
jmp 0x8240a
cmpb $0x0, 0x376a7f(%rip) # 0x3f8e90
je 0x82419
movb $0x0, -0x1(%rbp)
jmp 0x8248c
movb $0x1, 0x376a70(%rip) # 0x3f8e90
leaq 0x3767a5(%rip), %rax # 0x3f8bcc
cmpb $0x0, (%rax)
jne 0x82465
leaq 0x376a61(%rip), %rdi # 0x3f8e94
xorl %eax, %eax
movl %eax, %esi
callq 0x285d0
movl %eax, -0x8(%rbp)
cmpl $0x0, %eax
je 0x82465
movq 0x1b4b8d(%rip), %rax # 0x236fd8
movq (%rax), %rdi
movl -0x8(%rbp), %edx
leaq 0x57b65(%rip), %rsi # 0xd9fbd
movb $0x0, %al
callq 0x284e0
movb $0x1, -0x1(%rbp)
jmp 0x8248c
leaq 0x376760(%rip), %rax # 0x3f8bcc
movb $0x1, (%rax)
callq 0x82300
callq 0x824a0
cmpb $0x0, %al
je 0x82483
movb $0x1, -0x1(%rbp)
jmp 0x8248c
callq 0x82230
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_thread_global_init:
push rbp
mov rbp, rsp
sub rsp, 10h
jmp short $+2
loc_8240A:
cmp cs:my_thread_global_init_done, 0
jz short loc_82419
mov [rbp+var_1], 0
jmp short loc_8248C
loc_82419:
mov cs:my_thread_global_init_done, 1
lea rax, my_thr_key_mysys_exists
cmp byte ptr [rax], 0
jnz short loc_82465
lea rdi, THR_KEY_mysys
xor eax, eax
mov esi, eax
call _pthread_key_create
mov [rbp+var_8], eax
cmp eax, 0
jz short loc_82465
mov rax, cs:stderr_ptr
mov rdi, [rax]
mov edx, [rbp+var_8]
lea rsi, aCanTInitialize; "Can't initialize threads: error %d\n"
mov al, 0
call _fprintf
mov [rbp+var_1], 1
jmp short loc_8248C
loc_82465:
lea rax, my_thr_key_mysys_exists
mov byte ptr [rax], 1
call my_thread_init_internal_mutex
call my_thread_init
cmp al, 0
jz short loc_82483
mov [rbp+var_1], 1
jmp short loc_8248C
loc_82483:
call my_thread_init_common_mutex
mov [rbp+var_1], 0
loc_8248C:
mov al, [rbp+var_1]
add rsp, 10h
pop rbp
retn
| char my_thread_global_init()
{
int v1; // [rsp+8h] [rbp-8h]
if ( my_thread_global_init_done )
return 0;
my_thread_global_init_done = 1;
if ( my_thr_key_mysys_exists || (v1 = pthread_key_create(&THR_KEY_mysys, 0LL)) == 0 )
{
my_thr_key_mysys_exists = 1;
my_thread_init_internal_mutex();
if ( (unsigned __int8)my_thread_init() )
{
return 1;
}
else
{
my_thread_init_common_mutex();
return 0;
}
}
else
{
fprintf(stderr, "Can't initialize threads: error %d\n", v1);
return 1;
}
}
| my_thread_global_init:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
JMP 0x0018240a
LAB_0018240a:
CMP byte ptr [0x004f8e90],0x0
JZ 0x00182419
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0018248c
LAB_00182419:
MOV byte ptr [0x004f8e90],0x1
LEA RAX,[0x4f8bcc]
CMP byte ptr [RAX],0x0
JNZ 0x00182465
LEA RDI,[0x4f8e94]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x001285d0
MOV dword ptr [RBP + -0x8],EAX
CMP EAX,0x0
JZ 0x00182465
MOV RAX,qword ptr [0x00336fd8]
MOV RDI,qword ptr [RAX]
MOV EDX,dword ptr [RBP + -0x8]
LEA RSI,[0x1d9fbd]
MOV AL,0x0
CALL 0x001284e0
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0018248c
LAB_00182465:
LEA RAX,[0x4f8bcc]
MOV byte ptr [RAX],0x1
CALL 0x00182300
CALL 0x001824a0
CMP AL,0x0
JZ 0x00182483
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0018248c
LAB_00182483:
CALL 0x00182230
MOV byte ptr [RBP + -0x1],0x0
LAB_0018248c:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x10
POP RBP
RET
|
int1 my_thread_global_init(void)
{
char cVar1;
uint uVar2;
int1 local_9;
if (my_thread_global_init_done == '\0') {
my_thread_global_init_done = '\x01';
if ((my_thr_key_mysys_exists == '\0') &&
(uVar2 = pthread_key_create(&THR_KEY_mysys,(__destr_function *)0x0), uVar2 != 0)) {
fprintf(*(FILE **)PTR_stderr_00336fd8,"Can\'t initialize threads: error %d\n",(ulong)uVar2);
return 1;
}
my_thr_key_mysys_exists = '\x01';
my_thread_init_internal_mutex();
cVar1 = my_thread_init();
if (cVar1 == '\0') {
my_thread_init_common_mutex();
local_9 = 0;
}
else {
local_9 = 1;
}
}
else {
local_9 = 0;
}
return local_9;
}
| |
30,377 | my_strndup | eloqsql/mysys/my_malloc.c | char *my_strndup(PSI_memory_key key, const char *from, size_t length, myf my_flags)
{
char *ptr;
DBUG_ENTER("my_strndup");
if ((ptr= (char*) my_malloc(key, length+1, my_flags)))
{
memcpy(ptr, from, length);
ptr[length]= 0;
}
DBUG_RETURN(ptr);
} | O3 | c | my_strndup:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
leaq 0x1(%rdx), %rsi
movq %rcx, %rdx
callq 0x28289
movq %rax, %r15
testq %rax, %rax
je 0x285d7
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x24240
movb $0x0, (%r15,%rbx)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
| my_strndup:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rdx
mov r14, rsi
lea rsi, [rdx+1]
mov rdx, rcx
call my_malloc
mov r15, rax
test rax, rax
jz short loc_285D7
mov rdi, r15
mov rsi, r14
mov rdx, rbx
call _memcpy
mov byte ptr [r15+rbx], 0
loc_285D7:
mov rax, r15
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long my_strndup(unsigned int a1, long long a2, long long a3, int a4)
{
long long v5; // rax
long long v6; // r15
v5 = my_malloc(a1, a3 + 1, a4);
v6 = v5;
if ( v5 )
{
memcpy(v5, a2, a3);
*(_BYTE *)(v6 + a3) = 0;
}
return v6;
}
| my_strndup:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV R14,RSI
LEA RSI,[RDX + 0x1]
MOV RDX,RCX
CALL 0x00128289
MOV R15,RAX
TEST RAX,RAX
JZ 0x001285d7
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
CALL 0x00124240
MOV byte ptr [R15 + RBX*0x1],0x0
LAB_001285d7:
MOV RAX,R15
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
void * my_strndup(int8 param_1,void *param_2,size_t param_3,int8 param_4)
{
void *__dest;
__dest = (void *)my_malloc(param_1,param_3 + 1,param_4);
if (__dest != (void *)0x0) {
memcpy(__dest,param_2,param_3);
*(int1 *)((long)__dest + param_3) = 0;
}
return __dest;
}
| |
30,378 | inline_mysql_mutex_init | eloqsql/include/mysql/psi/mysql_thread.h | static inline int inline_mysql_mutex_init(
#ifdef HAVE_PSI_MUTEX_INTERFACE
PSI_mutex_key key,
#endif
mysql_mutex_t *that,
const pthread_mutexattr_t *attr
#ifdef SAFE_MUTEX
, const char *src_name, const char *src_file, uint src_line
#endif
)
{
#ifdef HAVE_PSI_MUTEX_INTERFACE
that->m_psi= PSI_MUTEX_CALL(init_mutex)(key, &that->m_mutex);
#else
that->m_psi= NULL;
#endif
#ifdef COROUTINE_ENABLED
that->l.data= that;
that->l.prev= that->l.next= NULL;
#endif
#ifdef SAFE_MUTEX
return safe_mutex_init(&that->m_mutex, attr, src_name, src_file, src_line);
#else
return pthread_mutex_init(&that->m_mutex, attr);
#endif
} | O0 | c | inline_mysql_mutex_init:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
leaq 0x1b3d4e(%rip), %rax # 0x231de8
movq (%rax), %rax
movq 0x40(%rax), %rax
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
callq *%rax
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x40(%rax)
movq -0x10(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x38(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x30(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x28(%rax)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x363f0
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
| inline_mysql_mutex_init:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+40h]
mov edi, [rbp+var_4]
mov rsi, [rbp+var_10]
call rax
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+40h], rcx
mov rcx, [rbp+var_10]
mov rax, [rbp+var_10]
mov [rax+38h], rcx
mov rax, [rbp+var_10]
mov qword ptr [rax+30h], 0
mov rax, [rbp+var_10]
mov qword ptr [rax+28h], 0
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call _pthread_mutex_init
add rsp, 20h
pop rbp
retn
| long long inline_mysql_mutex_init(unsigned int a1, _QWORD *a2, long long a3)
{
a2[8] = (*((long long ( **)(_QWORD, _QWORD *))PSI_server + 8))(a1, a2);
a2[7] = a2;
a2[6] = 0LL;
a2[5] = 0LL;
return pthread_mutex_init(a2, a3);
}
| inline_mysql_mutex_init:
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
LEA RAX,[0x331de8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x40]
MOV EDI,dword ptr [RBP + -0x4]
MOV RSI,qword ptr [RBP + -0x10]
CALL RAX
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x40],RCX
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x38],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x30],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x28],0x0
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x001363f0
ADD RSP,0x20
POP RBP
RET
|
void inline_mysql_mutex_init
(int4 param_1,pthread_mutex_t *param_2,pthread_mutexattr_t *param_3)
{
int8 uVar1;
uVar1 = (**(code **)(PSI_server + 0x40))(param_1,param_2);
*(int8 *)((long)param_2 + 0x40) = uVar1;
*(pthread_mutex_t **)((long)param_2 + 0x38) = param_2;
*(int8 *)((long)param_2 + 0x30) = 0;
param_2[1].__align = 0;
pthread_mutex_init(param_2,param_3);
return;
}
| |
30,379 | SchemaConverter::_add_primitive(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, BuiltinRule const&) | monkey531[P]llama/common/json-schema-to-grammar.cpp | std::string _add_primitive(const std::string & name, const BuiltinRule & rule) {
auto n = _add_rule(name, rule.content);
for (const auto & dep : rule.deps) {
BuiltinRule dep_rule;
auto it = PRIMITIVE_RULES.find(dep);
if (it == PRIMITIVE_RULES.end()) {
it = STRING_FORMAT_RULES.find(dep);
if (it == STRING_FORMAT_RULES.end()) {
_errors.push_back("Rule " + dep + " not known");
continue;
}
}
if (_rules.find(dep) == _rules.end()) {
_add_primitive(dep, it->second);
}
}
return n;
} | O3 | cpp | SchemaConverter::_add_primitive(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, BuiltinRule const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rcx, %rbx
movq %rdi, 0x8(%rsp)
movq %rsi, 0x10(%rsp)
callq 0xc2fa8
movq 0x20(%rbx), %r15
movq 0x28(%rbx), %r14
cmpq %r14, %r15
je 0xc854e
leaq 0x80(%rsp), %rbx
leaq 0x90(%rsp), %r12
movq 0x10(%rsp), %rax
leaq 0x28(%rax), %rcx
movq %rcx, 0x48(%rsp)
leaq 0x30(%rax), %rcx
movq %rcx, 0x40(%rsp)
addq $0xc8, %rax
movq %rax, 0x38(%rsp)
xorl %r13d, %r13d
movq %rbx, 0x70(%rsp)
movq %r13, 0x78(%rsp)
movb $0x0, 0x80(%rsp)
movq %r13, 0x10(%r12)
xorps %xmm0, %xmm0
movups %xmm0, (%r12)
leaq 0x66f61(%rip), %rdi # 0x12f350
movq %r15, %rsi
callq 0xcdb24
movq %rax, %rbp
testq %rax, %rax
jne 0xc8416
leaq 0x66f82(%rip), %rdi # 0x12f388
movq %r15, %rsi
callq 0xcdb24
movq %rax, %rbp
testq %rax, %rax
je 0xc8470
movq 0x48(%rsp), %rdi
movq %r15, %rsi
callq 0xc3648
cmpq 0x40(%rsp), %rax
jne 0xc851f
addq $0x28, %rbp
leaq 0xa8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq %r15, %rdx
movq %rbp, %rcx
callq 0xc8360
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0xc851f
movq 0xb8(%rsp), %rsi
jmp 0xc8517
leaq 0x50(%rsp), %rbp
movq %rbp, %rdi
leaq 0x2ed18(%rip), %rsi # 0xf7197
movq %r15, %rdx
callq 0x56e61
movq %rbp, %rdi
leaq 0x2ed0c(%rip), %rsi # 0xf719d
callq 0x1c1b0
leaq 0x28(%rsp), %rbp
movq %rbp, 0x18(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xc84be
movq %rdx, 0x18(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x28(%rsp)
jmp 0xc84c5
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x20(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x38(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x5854a
movq 0x18(%rsp), %rdi
cmpq %rbp, %rdi
je 0xc8503
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x1b8e0
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xc851f
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x1b8e0
movq %r12, %rdi
callq 0x23e92
movq 0x70(%rsp), %rdi
cmpq %rbx, %rdi
je 0xc8541
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x1b8e0
addq $0x20, %r15
cmpq %r14, %r15
jne 0xc83c9
movq 0x8(%rsp), %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %rbp, %rdi
je 0xc8584
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x1b8e0
jmp 0xc8584
movq %rax, %rbx
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xc85ab
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x1b8e0
jmp 0xc85ab
jmp 0xc85a8
jmp 0xc85a8
jmp 0xc85a8
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0xc1312
movq 0x8(%rsp), %rcx
movq (%rcx), %rdi
addq $0x10, %rcx
cmpq %rcx, %rdi
je 0xc85d1
movq (%rcx), %rsi
incq %rsi
callq 0x1b8e0
movq %rbx, %rdi
callq 0x1c030
nop
| _ZN15SchemaConverter14_add_primitiveERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK11BuiltinRule:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0C8h
mov rbx, rcx
mov [rsp+0F8h+var_F0], rdi; int
mov [rsp+0F8h+var_E8], rsi; void *
call _ZN15SchemaConverter9_add_ruleERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_; SchemaConverter::_add_rule(std::string const&,std::string const&)
mov r15, [rbx+20h]
mov r14, [rbx+28h]
cmp r15, r14
jz loc_C854E
lea rbx, [rsp+0F8h+var_78]
lea r12, [rsp+0F8h+var_68]
mov rax, [rsp+0F8h+var_E8]
lea rcx, [rax+28h]
mov [rsp+0F8h+var_B0], rcx; void *
lea rcx, [rax+30h]
mov qword ptr [rsp+0F8h+var_B8], rcx; int
add rax, 0C8h
mov [rsp+0F8h+var_C0], rax; int
xor r13d, r13d
loc_C83C9:
mov [rsp+0F8h+var_88], rbx; int
mov [rsp+0F8h+var_80], r13; __int64
mov byte ptr [rsp+0F8h+var_78], 0; int
mov [r12+10h], r13
xorps xmm0, xmm0
movups xmmword ptr [r12], xmm0
lea rdi, _Z15PRIMITIVE_RULESB5cxx11; PRIMITIVE_RULES
mov rsi, r15
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_11BuiltinRuleESaIS9_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb1ELb0ELb1EEEE4findERS7_; std::_Hashtable<std::string,std::pair<std::string const,BuiltinRule>,std::allocator<std::pair<std::string const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::find(std::string const&)
mov rbp, rax
test rax, rax
jnz short loc_C8416
lea rdi, _Z19STRING_FORMAT_RULESB5cxx11; STRING_FORMAT_RULES
mov rsi, r15
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_11BuiltinRuleESaIS9_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb1ELb0ELb1EEEE4findERS7_; std::_Hashtable<std::string,std::pair<std::string const,BuiltinRule>,std::allocator<std::pair<std::string const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::find(std::string const&)
mov rbp, rax
test rax, rax
jz short loc_C8470
loc_C8416:
mov rdi, [rsp+0F8h+var_B0]
mov rsi, r15
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE4findERS7_; std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::find(std::string const&)
cmp rax, qword ptr [rsp+0F8h+var_B8]
jnz loc_C851F
add rbp, 28h ; '('
lea rdi, [rsp+0F8h+var_50]; int
mov rsi, [rsp+0F8h+var_E8]; int
mov rdx, r15; int
mov rcx, rbp; int
call _ZN15SchemaConverter14_add_primitiveERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK11BuiltinRule; SchemaConverter::_add_primitive(std::string const&,BuiltinRule const&)
mov rdi, qword ptr [rsp+0F8h+var_50]
lea rax, [rsp+0F8h+var_40]
cmp rdi, rax
jz loc_C851F
mov rsi, [rsp+0F8h+var_40]
jmp loc_C8517
loc_C8470:
lea rbp, [rsp+0F8h+var_A8]
mov rdi, rbp
lea rsi, aRule; "Rule "
mov rdx, r15
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&)
mov rdi, rbp
lea rsi, aNotKnown; " not known"
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea rbp, [rsp+0F8h+var_D0]
mov [rsp+0F8h+var_E0], rbp
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_C84BE
mov [rsp+0F8h+var_E0], rdx
mov rdx, [rcx]
mov [rsp+0F8h+var_D0], rdx
jmp short loc_C84C5
loc_C84BE:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rbp+0], xmm0
loc_C84C5:
mov rdx, [rax+8]
mov [rsp+0F8h+var_D8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
mov rdi, [rsp+0F8h+var_C0]
lea rsi, [rsp+0F8h+var_E0]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::string>::emplace_back<std::string>(std::string &&)
mov rdi, [rsp+0F8h+var_E0]; void *
cmp rdi, rbp
jz short loc_C8503
mov rsi, [rsp+0F8h+var_D0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C8503:
mov rdi, [rsp+0F8h+var_A8]; void *
lea rax, [rsp+0F8h+var_98]
cmp rdi, rax
jz short loc_C851F
mov rsi, [rsp+0F8h+var_98]
loc_C8517:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C851F:
mov rdi, r12
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, [rsp+0F8h+var_88]; void *
cmp rdi, rbx
jz short loc_C8541
mov rsi, qword ptr [rsp+0F8h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C8541:
add r15, 20h ; ' '
cmp r15, r14
jnz loc_C83C9
loc_C854E:
mov rax, [rsp+0F8h+var_F0]
add rsp, 0C8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
mov rdi, [rsp+arg_10]; void *
cmp rdi, rbp
jz short loc_C8584
mov rsi, [rsp+arg_20]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_C8584
mov rbx, rax
loc_C8584:
mov rdi, [rsp+arg_48]; void *
lea rax, [rsp+arg_58]
cmp rdi, rax
jz short loc_C85AB
mov rsi, [rsp+arg_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_C85AB
jmp short loc_C85A8
jmp short loc_C85A8
jmp short $+2
loc_C85A8:
mov rbx, rax
loc_C85AB:
lea rdi, [rsp+arg_68]; this
call _ZN11BuiltinRuleD2Ev; BuiltinRule::~BuiltinRule()
mov rcx, [rsp+arg_0]
mov rdi, [rcx]; void *
add rcx, 10h
cmp rdi, rcx
jz short loc_C85D1
mov rsi, [rcx]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_C85D1:
mov rdi, rbx
call __Unwind_Resume
| void * SchemaConverter::_add_primitive(long long a1, long long a2, long long *a3, _QWORD *a4)
{
_QWORD *v5; // r15
_QWORD *v6; // r14
long long v7; // rax
int v8; // ebp
long long v9; // rax
long long v10; // rax
int v11; // r8d
int v12; // r9d
void *v13; // rdi
long long v14; // rsi
long long v15; // rax
__int128 *v16; // rcx
long long v18; // [rsp+0h] [rbp-F8h]
void *v19; // [rsp+8h] [rbp-F0h]
void *v20; // [rsp+10h] [rbp-E8h]
void *v21; // [rsp+18h] [rbp-E0h] BYREF
long long v22; // [rsp+20h] [rbp-D8h]
__int128 v23; // [rsp+28h] [rbp-D0h] BYREF
long long v24; // [rsp+38h] [rbp-C0h]
int v25[2]; // [rsp+40h] [rbp-B8h]
void *v26; // [rsp+48h] [rbp-B0h]
void *v27[2]; // [rsp+50h] [rbp-A8h] BYREF
long long v28; // [rsp+60h] [rbp-98h] BYREF
char v29; // [rsp+68h] [rbp-90h]
void *v30; // [rsp+70h] [rbp-88h]
long long v31; // [rsp+78h] [rbp-80h]
int v32[2]; // [rsp+80h] [rbp-78h] BYREF
__int128 v33; // [rsp+90h] [rbp-68h] BYREF
long long v34; // [rsp+A0h] [rbp-58h]
int v35[2]; // [rsp+A8h] [rbp-50h] BYREF
long long v36; // [rsp+B8h] [rbp-40h] BYREF
v19 = (void *)a1;
v20 = (void *)a2;
SchemaConverter::_add_rule(a1, a2, a3, a4);
v5 = (_QWORD *)a4[4];
v6 = (_QWORD *)a4[5];
if ( v5 != v6 )
{
v26 = (void *)(a2 + 40);
*(_QWORD *)v25 = a2 + 48;
v24 = a2 + 200;
do
{
v30 = v32;
v31 = 0LL;
LOBYTE(v32[0]) = 0;
v34 = 0LL;
v33 = 0LL;
v7 = std::_Hashtable<std::string,std::pair<std::string const,BuiltinRule>,std::allocator<std::pair<std::string const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::find(
PRIMITIVE_RULES[abi:cxx11],
v5);
v8 = v7;
if ( v7
|| (v9 = std::_Hashtable<std::string,std::pair<std::string const,BuiltinRule>,std::allocator<std::pair<std::string const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::find(
STRING_FORMAT_RULES[abi:cxx11],
v5),
v8 = v9,
v9) )
{
v10 = std::_Rb_tree<std::string,std::pair<std::string const,std::string>,std::_Select1st<std::pair<std::string const,std::string>>,std::less<std::string>,std::allocator<std::pair<std::string const,std::string>>>::find(
(long long)v26,
(long long)v5);
if ( v10 != *(_QWORD *)v25 )
goto LABEL_16;
SchemaConverter::_add_primitive(
(int)v35,
(int)v20,
(int)v5,
v8 + 40,
v11,
v12,
v18,
(int)v19,
v20,
(int)v21,
v22,
v23,
SDWORD2(v23),
v24,
v25[0],
v26,
(int)v27[0],
(long long)v27[1],
v28,
v29);
v13 = *(void **)v35;
if ( *(long long **)v35 == &v36 )
goto LABEL_16;
v14 = v36;
}
else
{
std::operator+<char>((long long)v27, (long long)"Rule ", v5);
v15 = std::string::append(v27, " not known");
v21 = &v23;
v16 = (__int128 *)(v15 + 16);
if ( *(_QWORD *)v15 == v15 + 16 )
{
v23 = *v16;
}
else
{
v21 = *(void **)v15;
*(_QWORD *)&v23 = *(_QWORD *)v16;
}
v22 = *(_QWORD *)(v15 + 8);
*(_QWORD *)v15 = v16;
*(_QWORD *)(v15 + 8) = 0LL;
*(_BYTE *)(v15 + 16) = 0;
std::vector<std::string>::emplace_back<std::string>(v24, (long long)&v21);
if ( v21 != &v23 )
operator delete(v21, v23 + 1);
v13 = v27[0];
if ( v27[0] == &v28 )
goto LABEL_16;
v14 = v28;
}
operator delete(v13, v14 + 1);
LABEL_16:
std::vector<std::string>::~vector((long long)&v33);
if ( v30 != v32 )
operator delete(v30, *(_QWORD *)v32 + 1LL);
v5 += 4;
}
while ( v5 != v6 );
}
return v19;
}
| _add_primitive:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xc8
MOV RBX,RCX
MOV qword ptr [RSP + 0x8],RDI
MOV qword ptr [RSP + 0x10],RSI
CALL 0x001c2fa8
MOV R15,qword ptr [RBX + 0x20]
MOV R14,qword ptr [RBX + 0x28]
CMP R15,R14
JZ 0x001c854e
LEA RBX,[RSP + 0x80]
LEA R12,[RSP + 0x90]
MOV RAX,qword ptr [RSP + 0x10]
LEA RCX,[RAX + 0x28]
MOV qword ptr [RSP + 0x48],RCX
LEA RCX,[RAX + 0x30]
MOV qword ptr [RSP + 0x40],RCX
ADD RAX,0xc8
MOV qword ptr [RSP + 0x38],RAX
XOR R13D,R13D
LAB_001c83c9:
MOV qword ptr [RSP + 0x70],RBX
MOV qword ptr [RSP + 0x78],R13
MOV byte ptr [RSP + 0x80],0x0
MOV qword ptr [R12 + 0x10],R13
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R12],XMM0
LAB_001c83e8:
LEA RDI,[0x22f350]
MOV RSI,R15
CALL 0x001cdb24
MOV RBP,RAX
TEST RAX,RAX
JNZ 0x001c8416
LAB_001c83ff:
LEA RDI,[0x22f388]
MOV RSI,R15
CALL 0x001cdb24
MOV RBP,RAX
TEST RAX,RAX
JZ 0x001c8470
LAB_001c8416:
MOV RDI,qword ptr [RSP + 0x48]
MOV RSI,R15
CALL 0x001c3648
CMP RAX,qword ptr [RSP + 0x40]
JNZ 0x001c851f
ADD RBP,0x28
LAB_001c8432:
LEA RDI,[RSP + 0xa8]
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,R15
MOV RCX,RBP
CALL 0x001c8360
MOV RDI,qword ptr [RSP + 0xa8]
LEA RAX,[RSP + 0xb8]
CMP RDI,RAX
JZ 0x001c851f
MOV RSI,qword ptr [RSP + 0xb8]
JMP 0x001c8517
LAB_001c8470:
LEA RBP,[RSP + 0x50]
MOV RDI,RBP
LEA RSI,[0x1f7197]
MOV RDX,R15
CALL 0x00156e61
LAB_001c8487:
MOV RDI,RBP
LEA RSI,[0x1f719d]
CALL 0x0011c1b0
LEA RBP,[RSP + 0x28]
MOV qword ptr [RSP + 0x18],RBP
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x001c84be
MOV qword ptr [RSP + 0x18],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x28],RDX
JMP 0x001c84c5
LAB_001c84be:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RBP],XMM0
LAB_001c84c5:
MOV RDX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x20],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
LAB_001c84dd:
MOV RDI,qword ptr [RSP + 0x38]
LEA RSI,[RSP + 0x18]
CALL 0x0015854a
LAB_001c84ec:
MOV RDI,qword ptr [RSP + 0x18]
CMP RDI,RBP
JZ 0x001c8503
MOV RSI,qword ptr [RSP + 0x28]
INC RSI
CALL 0x0011b8e0
LAB_001c8503:
MOV RDI,qword ptr [RSP + 0x50]
LEA RAX,[RSP + 0x60]
CMP RDI,RAX
JZ 0x001c851f
MOV RSI,qword ptr [RSP + 0x60]
LAB_001c8517:
INC RSI
CALL 0x0011b8e0
LAB_001c851f:
MOV RDI,R12
CALL 0x00123e92
MOV RDI,qword ptr [RSP + 0x70]
CMP RDI,RBX
JZ 0x001c8541
MOV RSI,qword ptr [RSP + 0x80]
INC RSI
CALL 0x0011b8e0
LAB_001c8541:
ADD R15,0x20
CMP R15,R14
JNZ 0x001c83c9
LAB_001c854e:
MOV RAX,qword ptr [RSP + 0x8]
ADD RSP,0xc8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* SchemaConverter::_add_primitive(std::__cxx11::string const&, BuiltinRule const&) */
string * SchemaConverter::_add_primitive(string *param_1,BuiltinRule *param_2)
{
string *psVar1;
long lVar2;
BuiltinRule *pBVar3;
long *plVar4;
long in_RCX;
long *plVar5;
string *psVar6;
long *local_e0;
long local_d8;
long local_d0;
long lStack_c8;
BuiltinRule *local_c0;
BuiltinRule *local_b8;
BuiltinRule *local_b0;
long *local_a8 [2];
long local_98 [2];
int1 *local_88;
int8 local_80;
int1 local_78;
int7 uStack_77;
int8 local_68;
int8 uStack_60;
int8 local_58;
long *local_50 [2];
long local_40 [2];
_add_rule(param_1,(string *)param_2);
psVar6 = *(string **)(in_RCX + 0x20);
psVar1 = *(string **)(in_RCX + 0x28);
if (psVar6 != psVar1) {
local_b0 = param_2 + 0x28;
local_b8 = param_2 + 0x30;
local_c0 = param_2 + 200;
do {
local_80 = 0;
local_78 = 0;
local_58 = 0;
local_68 = 0;
uStack_60 = 0;
local_88 = &local_78;
/* try { // try from 001c83e8 to 001c83f6 has its CatchHandler @ 001c85a8 */
lVar2 = std::
_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,BuiltinRule>,std::allocator<std::pair<std::__cxx11::string_const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>
::find((_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,BuiltinRule>,std::allocator<std::pair<std::__cxx11::string_const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>
*)PRIMITIVE_RULES_abi_cxx11_,psVar6);
/* try { // try from 001c83ff to 001c840d has its CatchHandler @ 001c85a4 */
if ((lVar2 == 0) &&
(lVar2 = std::
_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,BuiltinRule>,std::allocator<std::pair<std::__cxx11::string_const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>
::find((_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,BuiltinRule>,std::allocator<std::pair<std::__cxx11::string_const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>
*)STRING_FORMAT_RULES_abi_cxx11_,psVar6), lVar2 == 0)) {
/* try { // try from 001c8470 to 001c8486 has its CatchHandler @ 001c85a2 */
std::operator+((char *)local_a8,(string *)"Rule ");
/* try { // try from 001c8487 to 001c8495 has its CatchHandler @ 001c8581 */
plVar4 = (long *)std::__cxx11::string::append((char *)local_a8);
plVar5 = plVar4 + 2;
if ((long *)*plVar4 == plVar5) {
local_d0 = *plVar5;
lStack_c8 = plVar4[3];
local_e0 = &local_d0;
}
else {
local_d0 = *plVar5;
local_e0 = (long *)*plVar4;
}
local_d8 = plVar4[1];
*plVar4 = (long)plVar5;
plVar4[1] = 0;
*(int1 *)(plVar4 + 2) = 0;
/* try { // try from 001c84dd to 001c84eb has its CatchHandler @ 001c8565 */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::
emplace_back<std::__cxx11::string>
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_c0,
(string *)&local_e0);
if (local_e0 != &local_d0) {
operator_delete(local_e0,local_d0 + 1);
}
lVar2 = local_98[0];
plVar4 = local_a8[0];
if (local_a8[0] != local_98) {
LAB_001c8517:
operator_delete(plVar4,lVar2 + 1);
}
}
else {
/* try { // try from 001c8416 to 001c8422 has its CatchHandler @ 001c85a6 */
pBVar3 = (BuiltinRule *)
std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
::find((_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,std::__cxx11::string>,std::_Select1st<std::pair<std::__cxx11::string_const,std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>>
*)local_b0,psVar6);
/* try { // try from 001c8432 to 001c8449 has its CatchHandler @ 001c85a8 */
if ((pBVar3 == local_b8) &&
(_add_primitive((string *)local_50,param_2), lVar2 = local_40[0], plVar4 = local_50[0],
local_50[0] != local_40)) goto LAB_001c8517;
}
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_68);
if (local_88 != &local_78) {
operator_delete(local_88,CONCAT71(uStack_77,local_78) + 1);
}
psVar6 = psVar6 + 0x20;
} while (psVar6 != psVar1);
}
return param_1;
}
| |
30,380 | js_proxy_mark | bluesky950520[P]quickjs/quickjs.c | static void js_proxy_mark(JSRuntime *rt, JSValue val,
JS_MarkFunc *mark_func)
{
JSProxyData *s = JS_GetOpaque(val, JS_CLASS_PROXY);
if (s) {
JS_MarkValue(rt, s->target, mark_func);
JS_MarkValue(rt, s->handler, mark_func);
}
} | O1 | c | js_proxy_mark:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdi, %r14
movq %rsi, (%rsp)
cmpl $-0x1, %edx
jne 0x5218b
movq (%rsp), %rax
cmpw $0x30, 0x6(%rax)
jne 0x5218b
movq 0x30(%rax), %r15
jmp 0x5218e
xorl %r15d, %r15d
testq %r15, %r15
je 0x521d8
movl $0xfffffffe, %r12d # imm = 0xFFFFFFFE
movsd (%r15), %xmm0
movl 0x8(%r15), %eax
movsd %xmm0, (%rsp)
andl $-0x2, %eax
cmpl %r12d, %eax
jne 0x521b8
movq (%rsp), %rsi
movq %r14, %rdi
callq *%rbx
movsd 0x10(%r15), %xmm0
movl 0x18(%r15), %eax
movsd %xmm0, (%rsp)
andl $-0x2, %eax
cmpl %r12d, %eax
jne 0x521d8
movq (%rsp), %rsi
movq %r14, %rdi
callq *%rbx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
| js_proxy_mark:
push r15
push r14
push r12
push rbx
push rax
mov rbx, rcx
mov r14, rdi
mov [rsp+28h+var_28], rsi
cmp edx, 0FFFFFFFFh
jnz short loc_5218B
mov rax, [rsp+28h+var_28]
cmp word ptr [rax+6], 30h ; '0'
jnz short loc_5218B
mov r15, [rax+30h]
jmp short loc_5218E
loc_5218B:
xor r15d, r15d
loc_5218E:
test r15, r15
jz short loc_521D8
mov r12d, 0FFFFFFFEh
movsd xmm0, qword ptr [r15]
mov eax, [r15+8]
movsd [rsp+28h+var_28], xmm0
and eax, 0FFFFFFFEh
cmp eax, r12d
jnz short loc_521B8
mov rsi, [rsp+28h+var_28]
mov rdi, r14
call rbx
loc_521B8:
movsd xmm0, qword ptr [r15+10h]
mov eax, [r15+18h]
movsd [rsp+28h+var_28], xmm0
and eax, 0FFFFFFFEh
cmp eax, r12d
jnz short loc_521D8
mov rsi, [rsp+28h+var_28]
mov rdi, r14
call rbx
loc_521D8:
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
| long long js_proxy_mark(long long a1, long long a2, int a3, void ( *a4)(long long, _QWORD))
{
long long result; // rax
long long v6; // r15
if ( a3 == -1 && (result = a2, *(_WORD *)(a2 + 6) == 48) )
v6 = *(_QWORD *)(a2 + 48);
else
v6 = 0LL;
if ( v6 )
{
if ( (*(_DWORD *)(v6 + 8) & 0xFFFFFFFE) == 0xFFFFFFFE )
a4(a1, *(_QWORD *)v6);
result = *(_DWORD *)(v6 + 24) & 0xFFFFFFFE;
if ( (_DWORD)result == -2 )
return ((long long ( *)(long long, _QWORD))a4)(a1, *(_QWORD *)(v6 + 16));
}
return result;
}
| js_proxy_mark:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RCX
MOV R14,RDI
MOV qword ptr [RSP],RSI
CMP EDX,-0x1
JNZ 0x0015218b
MOV RAX,qword ptr [RSP]
CMP word ptr [RAX + 0x6],0x30
JNZ 0x0015218b
MOV R15,qword ptr [RAX + 0x30]
JMP 0x0015218e
LAB_0015218b:
XOR R15D,R15D
LAB_0015218e:
TEST R15,R15
JZ 0x001521d8
MOV R12D,0xfffffffe
MOVSD XMM0,qword ptr [R15]
MOV EAX,dword ptr [R15 + 0x8]
MOVSD qword ptr [RSP],XMM0
AND EAX,0xfffffffe
CMP EAX,R12D
JNZ 0x001521b8
MOV RSI,qword ptr [RSP]
MOV RDI,R14
CALL RBX
LAB_001521b8:
MOVSD XMM0,qword ptr [R15 + 0x10]
MOV EAX,dword ptr [R15 + 0x18]
MOVSD qword ptr [RSP],XMM0
AND EAX,0xfffffffe
CMP EAX,R12D
JNZ 0x001521d8
MOV RSI,qword ptr [RSP]
MOV RDI,R14
CALL RBX
LAB_001521d8:
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
void js_proxy_mark(int8 param_1,long param_2,int param_3,code *param_4)
{
int8 *puVar1;
if ((param_3 == -1) && (*(short *)(param_2 + 6) == 0x30)) {
puVar1 = *(int8 **)(param_2 + 0x30);
}
else {
puVar1 = (int8 *)0x0;
}
if (puVar1 != (int8 *)0x0) {
if ((*(uint *)(puVar1 + 1) & 0xfffffffe) == 0xfffffffe) {
(*param_4)(param_1,*puVar1);
}
if ((*(uint *)(puVar1 + 3) & 0xfffffffe) == 0xfffffffe) {
(*param_4)(param_1,puVar1[2]);
}
}
return;
}
| |
30,381 | js_proxy_mark | bluesky950520[P]quickjs/quickjs.c | static void js_proxy_mark(JSRuntime *rt, JSValue val,
JS_MarkFunc *mark_func)
{
JSProxyData *s = JS_GetOpaque(val, JS_CLASS_PROXY);
if (s) {
JS_MarkValue(rt, s->target, mark_func);
JS_MarkValue(rt, s->handler, mark_func);
}
} | O3 | c | js_proxy_mark:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
cmpl $-0x1, %edx
jne 0x5410c
cmpw $0x30, 0x6(%rsi)
jne 0x5410c
movq 0x30(%rsi), %r14
testq %r14, %r14
je 0x5410c
movq %rdi, %rbx
movl $0xfffffffe, %r15d # imm = 0xFFFFFFFE
movl 0x8(%r14), %eax
andl $-0x2, %eax
cmpl %r15d, %eax
jne 0x540ec
movq (%r14), %rsi
movq %rbx, %rdi
movq %rcx, %r12
callq *%rcx
movq %r12, %rcx
movl 0x18(%r14), %eax
andl $-0x2, %eax
cmpl %r15d, %eax
jne 0x5410c
movq 0x10(%r14), %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmpq *%rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
| js_proxy_mark:
push r15
push r14
push r12
push rbx
push rax
cmp edx, 0FFFFFFFFh
jnz short loc_5410C
cmp word ptr [rsi+6], 30h ; '0'
jnz short loc_5410C
mov r14, [rsi+30h]
test r14, r14
jz short loc_5410C
mov rbx, rdi
mov r15d, 0FFFFFFFEh
mov eax, [r14+8]
and eax, 0FFFFFFFEh
cmp eax, r15d
jnz short loc_540EC
mov rsi, [r14]
mov rdi, rbx
mov r12, rcx
call rcx
mov rcx, r12
loc_540EC:
mov eax, [r14+18h]
and eax, 0FFFFFFFEh
cmp eax, r15d
jnz short loc_5410C
mov rsi, [r14+10h]
mov rdi, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
jmp rcx
loc_5410C:
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
| long long js_proxy_mark(long long a1, long long a2, int a3, void ( *a4)(_QWORD, _QWORD))
{
long long v4; // r14
void ( *v5)(_QWORD, _QWORD); // r12
long long result; // rax
if ( a3 == -1 && *(_WORD *)(a2 + 6) == 48 )
{
v4 = *(_QWORD *)(a2 + 48);
if ( v4 )
{
if ( (*(_DWORD *)(v4 + 8) & 0xFFFFFFFE) == 0xFFFFFFFE )
{
v5 = a4;
a4(a1, *(_QWORD *)v4);
a4 = v5;
}
result = *(_DWORD *)(v4 + 24) & 0xFFFFFFFE;
if ( (_DWORD)result == -2 )
return ((long long ( *)(long long, _QWORD))a4)(a1, *(_QWORD *)(v4 + 16));
}
}
return result;
}
| js_proxy_mark:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
CMP EDX,-0x1
JNZ 0x0015410c
CMP word ptr [RSI + 0x6],0x30
JNZ 0x0015410c
MOV R14,qword ptr [RSI + 0x30]
TEST R14,R14
JZ 0x0015410c
MOV RBX,RDI
MOV R15D,0xfffffffe
MOV EAX,dword ptr [R14 + 0x8]
AND EAX,0xfffffffe
CMP EAX,R15D
JNZ 0x001540ec
MOV RSI,qword ptr [R14]
MOV RDI,RBX
MOV R12,RCX
CALL RCX
MOV RCX,R12
LAB_001540ec:
MOV EAX,dword ptr [R14 + 0x18]
AND EAX,0xfffffffe
CMP EAX,R15D
JNZ 0x0015410c
MOV RSI,qword ptr [R14 + 0x10]
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
JMP RCX
LAB_0015410c:
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
void js_proxy_mark(int8 param_1,long param_2,int param_3,code *UNRECOVERED_JUMPTABLE)
{
int8 *puVar1;
int4 extraout_EDX;
int4 uVar2;
if (((param_3 == -1) && (*(short *)(param_2 + 6) == 0x30)) &&
(puVar1 = *(int8 **)(param_2 + 0x30), puVar1 != (int8 *)0x0)) {
uVar2 = 0xffffffff;
if ((*(uint *)(puVar1 + 1) & 0xfffffffe) == 0xfffffffe) {
(*UNRECOVERED_JUMPTABLE)(param_1,*puVar1);
uVar2 = extraout_EDX;
}
if ((*(uint *)(puVar1 + 3) & 0xfffffffe) == 0xfffffffe) {
/* WARNING: Could not recover jumptable at 0x0015410a. Too many branches */
/* WARNING: Treating indirect jump as call */
(*UNRECOVERED_JUMPTABLE)(param_1,puVar1[2],uVar2,UNRECOVERED_JUMPTABLE);
return;
}
}
return;
}
| |
30,382 | ggml_compute_forward_sum_rows | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c | static void ggml_compute_forward_sum_rows(
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_sum_rows_f32(params, dst);
} break;
default:
{
GGML_ABORT("fatal error");
}
}
} | O0 | c | ggml_compute_forward_sum_rows:
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 0x147da
jmp 0x147cb
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x25fb0
jmp 0x147f4
leaq 0x5f381(%rip), %rdi # 0x73b62
movl $0x161c, %esi # imm = 0x161C
leaq 0x5f5d0(%rip), %rdx # 0x73dbd
movb $0x0, %al
callq 0xe270
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| ggml_compute_forward_sum_rows:
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_147DA
jmp short $+2
loc_147CB:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
call ggml_compute_forward_sum_rows_f32
jmp short loc_147F4
loc_147DA:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 161Ch
lea rdx, aFatalError; "fatal error"
mov al, 0
call _ggml_abort
loc_147F4:
add rsp, 20h
pop rbp
retn
| double ggml_compute_forward_sum_rows(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",
5660LL,
"fatal error");
ggml_compute_forward_sum_rows_f32(a1, a2);
return result;
}
| ggml_compute_forward_sum_rows:
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 0x001147da
JMP 0x001147cb
LAB_001147cb:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x00125fb0
JMP 0x001147f4
LAB_001147da:
LEA RDI,[0x173b62]
MOV ESI,0x161c
LEA RDX,[0x173dbd]
MOV AL,0x0
CALL 0x0010e270
LAB_001147f4:
ADD RSP,0x20
POP RBP
RET
|
void ggml_compute_forward_sum_rows(int8 param_1,long param_2)
{
if (**(int **)(param_2 + 0x98) == 0) {
ggml_compute_forward_sum_rows_f32(param_1,param_2);
}
else {
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu.c"
,0x161c,"fatal error");
}
return;
}
| |
30,383 | mysql_stmt_free_result_start_internal | eloqsql/libmariadb/libmariadb/mariadb_async.c | static void
mysql_stmt_free_result_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_stmt_free_result,
(parms->stmt),
parms->stmt->mysql,
my_bool,
r_my_bool)
} | O0 | c | mysql_stmt_free_result_start_internal:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x38(%rax), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x303b0
movb %al, -0x11(%rbp)
movb -0x11(%rbp), %cl
movq -0x20(%rbp), %rax
movb %cl, 0x8(%rax)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| mysql_stmt_free_result_start_internal:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+38h]
mov rax, [rax+480h]
mov rax, [rax+28h]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rdi, [rax]
call mysql_stmt_free_result
mov [rbp+var_11], al
mov cl, [rbp+var_11]
mov rax, [rbp+var_20]
mov [rax+8], cl
mov rax, [rbp+var_20]
mov dword ptr [rax], 0
add rsp, 20h
pop rbp
retn
| long long mysql_stmt_free_result_start_internal(long long *a1)
{
long long result; // rax
long long v2; // [rsp+0h] [rbp-20h]
v2 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*a1 + 56) + 1152LL) + 40LL);
*(_BYTE *)(v2 + 8) = mysql_stmt_free_result(*a1);
result = v2;
*(_DWORD *)v2 = 0;
return result;
}
| mysql_stmt_free_result_start_internal:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x38]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
CALL 0x001303b0
MOV byte ptr [RBP + -0x11],AL
MOV CL,byte ptr [RBP + -0x11]
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x8],CL
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX],0x0
ADD RSP,0x20
POP RBP
RET
|
void mysql_stmt_free_result_start_internal(long *param_1)
{
int4 *puVar1;
int1 uVar2;
puVar1 = *(int4 **)(*(long *)(*(long *)(*param_1 + 0x38) + 0x480) + 0x28);
uVar2 = mysql_stmt_free_result(*param_1);
*(int1 *)(puVar1 + 2) = uVar2;
*puVar1 = 0;
return;
}
| |
30,384 | my_hash_sort_utf8mb4 | eloqsql/strings/ctype-utf8.c | static void
my_hash_sort_utf8mb4(CHARSET_INFO *cs, const uchar *s, size_t slen,
ulong *nr1, ulong *nr2)
{
/*
Remove end space. We do this to be able to compare
'A ' and 'A' as identical
*/
const uchar *e= skip_trailing_space(s, slen);
my_hash_sort_utf8mb4_nopad(cs, s, e - s, nr1, nr2);
} | O3 | c | my_hash_sort_utf8mb4:
pushq %rbp
movq %rsp, %rbp
leaq (%rsi,%rdx), %r10
cmpq $0x15, %rdx
jb 0x8ea97
movq %r10, %r9
andq $-0x4, %r9
cmpq %rsi, %r9
jbe 0x8ea97
leaq 0x3(%rsi), %rdx
andq $-0x4, %rdx
movq %r10, %rax
movb -0x1(%r10), %r11b
cmpq %r9, %r10
jbe 0x8eabc
leaq -0x1(%rax), %r10
cmpb $0x20, %r11b
je 0x8ea7f
jmp 0x8ea9a
movq %r10, %rax
movq %rax, %r9
subq %rsi, %r9
movq %r9, %rdx
cmpq %rsi, %rax
jbe 0x8eab6
cmpb $0x20, -0x1(%rax)
leaq -0x1(%rax), %rax
leaq -0x1(%rdx), %r9
je 0x8eaa0
popq %rbp
jmp 0x8ed40
cmpb $0x20, %r11b
setne %r10b
cmpq %r9, %rdx
setae %r9b
orb %r10b, %r9b
jne 0x8ea9a
movq %rax, %r9
movq %r9, %rax
cmpq %rdx, %r9
jbe 0x8ea9a
leaq -0x4(%rax), %r9
cmpl $0x20202020, -0x4(%rax) # imm = 0x20202020
je 0x8ead3
jmp 0x8ea9a
| my_hash_sort_utf8mb4:
push rbp
mov rbp, rsp
lea r10, [rsi+rdx]
cmp rdx, 15h
jb short loc_8EA97
mov r9, r10
and r9, 0FFFFFFFFFFFFFFFCh
cmp r9, rsi
jbe short loc_8EA97
lea rdx, [rsi+3]
and rdx, 0FFFFFFFFFFFFFFFCh
loc_8EA7F:
mov rax, r10
mov r11b, [r10-1]
cmp r10, r9
jbe short loc_8EABC
lea r10, [rax-1]
cmp r11b, 20h ; ' '
jz short loc_8EA7F
jmp short loc_8EA9A
loc_8EA97:
mov rax, r10
loc_8EA9A:
mov r9, rax
sub r9, rsi
loc_8EAA0:
mov rdx, r9
cmp rax, rsi
jbe short loc_8EAB6
cmp byte ptr [rax-1], 20h ; ' '
lea rax, [rax-1]
lea r9, [rdx-1]
jz short loc_8EAA0
loc_8EAB6:
pop rbp
jmp my_hash_sort_utf8mb4_nopad
loc_8EABC:
cmp r11b, 20h ; ' '
setnz r10b
cmp rdx, r9
setnb r9b
or r9b, r10b
jnz short loc_8EA9A
mov r9, rax
loc_8EAD3:
mov rax, r9
cmp r9, rdx
jbe short loc_8EA9A
lea r9, [rax-4]
cmp dword ptr [rax-4], 20202020h
jz short loc_8EAD3
jmp short loc_8EA9A
| long long my_hash_sort_utf8mb4(long long a1, unsigned long long a2, unsigned long long a3, long long a4, long long a5)
{
unsigned long long v5; // r10
unsigned long long v6; // r9
unsigned long long v7; // rdx
unsigned long long v8; // rax
char v9; // r11
unsigned long long v10; // r9
unsigned long long v11; // rdx
bool v12; // zf
unsigned long long v14; // r9
v5 = a2 + a3;
if ( a3 < 0x15 || (v6 = v5 & 0xFFFFFFFFFFFFFFFCLL, (v5 & 0xFFFFFFFFFFFFFFFCLL) <= a2) )
{
v8 = a2 + a3;
}
else
{
v7 = (a2 + 3) & 0xFFFFFFFFFFFFFFFCLL;
while ( 1 )
{
v8 = v5;
v9 = *(_BYTE *)(v5 - 1);
if ( v5 <= v6 )
break;
--v5;
if ( v9 != 32 )
goto LABEL_8;
}
if ( v9 == 32 && v7 < v6 )
{
v14 = v5;
do
{
v8 = v14;
if ( v14 <= v7 )
break;
v14 -= 4LL;
}
while ( *(_DWORD *)(v8 - 4) == 538976288 );
}
}
LABEL_8:
v10 = v8 - a2;
do
{
v11 = v10;
if ( v8 <= a2 )
break;
v12 = *(_BYTE *)--v8 == 32;
--v10;
}
while ( v12 );
return my_hash_sort_utf8mb4_nopad(a1, a2, v11, a4, a5, v10);
}
| my_hash_sort_utf8mb4:
PUSH RBP
MOV RBP,RSP
LEA R10,[RSI + RDX*0x1]
CMP RDX,0x15
JC 0x0018ea97
MOV R9,R10
AND R9,-0x4
CMP R9,RSI
JBE 0x0018ea97
LEA RDX,[RSI + 0x3]
AND RDX,-0x4
LAB_0018ea7f:
MOV RAX,R10
MOV R11B,byte ptr [R10 + -0x1]
CMP R10,R9
JBE 0x0018eabc
LEA R10,[RAX + -0x1]
CMP R11B,0x20
JZ 0x0018ea7f
JMP 0x0018ea9a
LAB_0018ea97:
MOV RAX,R10
LAB_0018ea9a:
MOV R9,RAX
SUB R9,RSI
LAB_0018eaa0:
MOV RDX,R9
CMP RAX,RSI
JBE 0x0018eab6
CMP byte ptr [RAX + -0x1],0x20
LEA RAX,[RAX + -0x1]
LEA R9,[RDX + -0x1]
JZ 0x0018eaa0
LAB_0018eab6:
POP RBP
JMP 0x0018ed40
LAB_0018eabc:
CMP R11B,0x20
SETNZ R10B
CMP RDX,R9
SETNC R9B
OR R9B,R10B
JNZ 0x0018ea9a
MOV R9,RAX
LAB_0018ead3:
MOV RAX,R9
CMP R9,RDX
JBE 0x0018ea9a
LEA R9,[RAX + -0x4]
CMP dword ptr [RAX + -0x4],0x20202020
JZ 0x0018ead3
JMP 0x0018ea9a
|
void my_hash_sort_utf8mb4(int8 param_1,ulong param_2,ulong param_3)
{
char *pcVar1;
ulong uVar2;
ulong uVar3;
ulong uVar4;
ulong uVar5;
uVar3 = param_2 + param_3;
if ((0x14 < param_3) && (uVar5 = uVar3 & 0xfffffffffffffffc, param_2 < uVar5)) {
uVar4 = param_2 + 3 & 0xfffffffffffffffc;
uVar2 = uVar3;
do {
uVar3 = uVar2;
if (uVar3 <= uVar5) {
uVar2 = uVar3;
if (uVar4 < uVar5 && *(char *)(uVar3 - 1) == ' ') goto LAB_0018ead3;
break;
}
uVar2 = uVar3 - 1;
} while (*(char *)(uVar3 - 1) == ' ');
}
goto LAB_0018eaa0;
while (uVar2 = uVar3 - 4, *(int *)(uVar3 - 4) == 0x20202020) {
LAB_0018ead3:
uVar3 = uVar2;
if (uVar3 <= uVar4) break;
}
LAB_0018eaa0:
do {
if (uVar3 <= param_2) break;
pcVar1 = (char *)(uVar3 - 1);
uVar3 = uVar3 - 1;
} while (*pcVar1 == ' ');
my_hash_sort_utf8mb4_nopad();
return;
}
| |
30,385 | evmone::EOF1Header::get_data(std::basic_string_view<unsigned char, evmc::byte_traits<unsigned char>>) const | corpus-core[P]colibri-stateless/build_O3/_deps/evmone_external-src/lib/evmone/eof.hpp | [[nodiscard]] bytes_view get_data(bytes_view container) const noexcept
{
return container.substr(data_offset);
} | O3 | cpp | evmone::EOF1Header::get_data(std::basic_string_view<unsigned char, evmc::byte_traits<unsigned char>>) const:
pushq %rax
movq %rdx, %r8
movl 0x44(%rdi), %edx
movq %rsi, %rax
subq %rdx, %rax
jb 0x40b43
addq %rdx, %r8
movq %r8, %rdx
popq %rcx
retq
movq %rsi, %rcx
leaq 0x4047e(%rip), %rdi # 0x80fcb
leaq 0x4045d(%rip), %rsi # 0x80fb1
xorl %eax, %eax
callq 0x21330
movq %rax, %rdi
callq 0x2e015
| _ZNK6evmone10EOF1Header8get_dataESt17basic_string_viewIhN4evmc11byte_traitsIhEEE:
push rax
mov r8, rdx
mov edx, [rdi+44h]
mov rax, rsi
sub rax, rdx
jb short loc_40B43
add r8, rdx
mov rdx, r8
pop rcx
retn
loc_40B43:
mov rcx, rsi
lea rdi, aSPosWhichIsZuS; "%s: __pos (which is %zu) > __size (whic"...
lea rsi, aBasicStringVie; "basic_string_view::substr"
xor eax, eax
call __ZSt24__throw_out_of_range_fmtPKcz; std::__throw_out_of_range_fmt(char const*,...)
mov rdi, rax
call __clang_call_terminate
| unsigned long long evmone::EOF1Header::get_data(long long a1, unsigned long long a2)
{
unsigned long long v2; // rdx
unsigned long long result; // rax
v2 = *(unsigned int *)(a1 + 68);
result = a2 - v2;
if ( a2 < v2 )
std::__throw_out_of_range_fmt(
"%s: __pos (which is %zu) > __size (which is %zu)",
"basic_string_view::substr",
v2,
a2);
return result;
}
| get_data:
PUSH RAX
MOV R8,RDX
MOV EDX,dword ptr [RDI + 0x44]
MOV RAX,RSI
SUB RAX,RDX
JC 0x00140b43
ADD R8,RDX
MOV RDX,R8
POP RCX
RET
LAB_00140b43:
MOV RCX,RSI
LEA RDI,[0x180fcb]
LEA RSI,[0x180fb1]
XOR EAX,EAX
CALL 0x00121330
|
/* evmone::EOF1Header::get_data(std::basic_string_view<unsigned char, evmc::byte_traits<unsigned
char> >) const */
int1 [16] evmone::EOF1Header::get_data(long param_1,ulong param_2,long param_3)
{
ulong uVar1;
int1 auVar2 [16];
uVar1 = (ulong)*(uint *)(param_1 + 0x44);
auVar2._0_8_ = param_2 - uVar1;
if (uVar1 <= param_2) {
auVar2._8_8_ = param_3 + uVar1;
return auVar2;
}
/* try { // try from 00140b43 to 00140b5a has its CatchHandler @ 00140b5b */
/* WARNING: Subroutine does not return */
std::__throw_out_of_range_fmt
("%s: __pos (which is %zu) > __size (which is %zu)","basic_string_view::substr",uVar1,
param_2);
}
| |
30,386 | js_init_module_std | bluesky950520[P]quickjs/quickjs-libc.c | JSModuleDef *js_init_module_std(JSContext *ctx, const char *module_name)
{
JSModuleDef *m;
m = JS_NewCModule(ctx, module_name, js_std_init);
if (!m)
return NULL;
JS_AddModuleExportList(ctx, m, js_std_funcs, countof(js_std_funcs));
JS_AddModuleExport(ctx, m, "in");
JS_AddModuleExport(ctx, m, "out");
JS_AddModuleExport(ctx, m, "err");
return m;
} | O0 | c | js_init_module_std:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
leaq 0x91(%rip), %rdx # 0x107f0
callq 0x49520
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0x1077c
movq $0x0, 0x20(%rsp)
jmp 0x107e3
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rsi
leaq 0x11f113(%rip), %rdx # 0x12f8a0
movl $0x16, %ecx
callq 0x4d300
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rsi
leaq 0xfd85c(%rip), %rdx # 0x10e004
callq 0x49780
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rsi
leaq 0xf9a3c(%rip), %rdx # 0x10a1fa
callq 0x49780
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rsi
leaq 0xf9a2d(%rip), %rdx # 0x10a201
callq 0x49780
movq 0x8(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
addq $0x28, %rsp
retq
nopl (%rax)
| js_init_module_std:
sub rsp, 28h
mov [rsp+28h+var_10], rdi
mov [rsp+28h+var_18], rsi
mov rdi, [rsp+28h+var_10]
mov rsi, [rsp+28h+var_18]
lea rdx, js_std_init
call JS_NewCModule
mov [rsp+28h+var_20], rax
cmp [rsp+28h+var_20], 0
jnz short loc_1077C
mov [rsp+28h+var_8], 0
jmp short loc_107E3
loc_1077C:
mov rdi, [rsp+28h+var_10]
mov rsi, [rsp+28h+var_20]
lea rdx, js_std_funcs
mov ecx, 16h
call JS_AddModuleExportList
mov rdi, [rsp+28h+var_10]
mov rsi, [rsp+28h+var_20]
lea rdx, aCircularProtot+16h; "in"
call JS_AddModuleExport
mov rdi, [rsp+28h+var_10]
mov rsi, [rsp+28h+var_20]
lea rdx, aStdout_0+3; "out"
call JS_AddModuleExport
mov rdi, [rsp+28h+var_10]
mov rsi, [rsp+28h+var_20]
lea rdx, aStderr_0+3; "err"
call JS_AddModuleExport
mov rax, [rsp+28h+var_20]
mov [rsp+28h+var_8], rax
loc_107E3:
mov rax, [rsp+28h+var_8]
add rsp, 28h
retn
| long long js_init_module_std(long long a1, long long a2)
{
long long v3; // [rsp+8h] [rbp-20h]
v3 = JS_NewCModule(a1, a2, js_std_init);
if ( !v3 )
return 0LL;
JS_AddModuleExportList(a1, v3, &js_std_funcs, 22LL);
JS_AddModuleExport(a1, v3, "in");
JS_AddModuleExport(a1, v3, "out");
JS_AddModuleExport(a1, v3, "err");
return v3;
}
| js_init_module_std:
SUB RSP,0x28
MOV qword ptr [RSP + 0x18],RDI
MOV qword ptr [RSP + 0x10],RSI
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP + 0x10]
LEA RDX,[0x1107f0]
CALL 0x00149520
MOV qword ptr [RSP + 0x8],RAX
CMP qword ptr [RSP + 0x8],0x0
JNZ 0x0011077c
MOV qword ptr [RSP + 0x20],0x0
JMP 0x001107e3
LAB_0011077c:
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP + 0x8]
LEA RDX,[0x22f8a0]
MOV ECX,0x16
CALL 0x0014d300
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP + 0x8]
LEA RDX,[0x20e004]
CALL 0x00149780
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP + 0x8]
LEA RDX,[0x20a1fa]
CALL 0x00149780
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP + 0x8]
LEA RDX,[0x20a201]
CALL 0x00149780
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x20],RAX
LAB_001107e3:
MOV RAX,qword ptr [RSP + 0x20]
ADD RSP,0x28
RET
|
long js_init_module_std(int8 param_1,int8 param_2)
{
long local_8;
local_8 = JS_NewCModule(param_1,param_2,js_std_init);
if (local_8 == 0) {
local_8 = 0;
}
else {
JS_AddModuleExportList(param_1,local_8,js_std_funcs,0x16);
JS_AddModuleExport(param_1,local_8,"in");
JS_AddModuleExport(param_1,local_8,"out");
JS_AddModuleExport(param_1,local_8,"err");
}
return local_8;
}
| |
30,387 | js_init_module_std | bluesky950520[P]quickjs/quickjs-libc.c | JSModuleDef *js_init_module_std(JSContext *ctx, const char *module_name)
{
JSModuleDef *m;
m = JS_NewCModule(ctx, module_name, js_std_init);
if (!m)
return NULL;
JS_AddModuleExportList(ctx, m, js_std_funcs, countof(js_std_funcs));
JS_AddModuleExport(ctx, m, "in");
JS_AddModuleExport(ctx, m, "out");
JS_AddModuleExport(ctx, m, "err");
return m;
} | O1 | c | js_init_module_std:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x69(%rip), %rdx # 0x14bff
callq 0x30853
testq %rax, %rax
je 0x14bf2
movq %rax, %rbx
leaq 0xb1ba6(%rip), %rdx # 0xc6750
movq %r14, %rdi
movq %rax, %rsi
movl $0x16, %ecx
callq 0x33050
leaq 0x8a3df(%rip), %rdx # 0x9efa0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x30893
leaq 0x8750f(%rip), %rdx # 0x9c0e2
movq %r14, %rdi
movq %rbx, %rsi
callq 0x30893
leaq 0x87504(%rip), %rdx # 0x9c0e9
movq %r14, %rdi
movq %rbx, %rsi
callq 0x30893
jmp 0x14bf4
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| js_init_module_std:
push r14
push rbx
push rax
mov r14, rdi
lea rdx, js_std_init
call JS_NewCModule
test rax, rax
jz short loc_14BF2
mov rbx, rax
lea rdx, js_std_funcs
mov rdi, r14
mov rsi, rax
mov ecx, 16h
call JS_AddModuleExportList
lea rdx, aCircularProtot+16h; "in"
mov rdi, r14
mov rsi, rbx
call JS_AddModuleExport
lea rdx, aStdout_0+3; "out"
mov rdi, r14
mov rsi, rbx
call JS_AddModuleExport
lea rdx, aStderr_0+3; "err"
mov rdi, r14
mov rsi, rbx
call JS_AddModuleExport
jmp short loc_14BF4
loc_14BF2:
xor ebx, ebx
loc_14BF4:
mov rax, rbx
add rsp, 8
pop rbx
pop r14
retn
| long long js_init_module_std(long long a1, long long a2)
{
long long v2; // rax
long long v3; // rbx
v2 = JS_NewCModule(a1, a2, js_std_init);
if ( !v2 )
return 0LL;
v3 = v2;
JS_AddModuleExportList(a1, v2, &js_std_funcs, 22LL);
JS_AddModuleExport(a1, v3, "in");
JS_AddModuleExport(a1, v3, "out");
JS_AddModuleExport(a1, v3, "err");
return v3;
}
| |||
30,388 | ma_zlib_decompress | eloqsql/libmariadb/plugins/compress/c_zlib.c | my_bool ma_zlib_decompress(ma_compress_ctx *ctx, void *dst, size_t *dst_len,
void *source, size_t *source_len)
{
int rc;
if (!ctx)
return 1;
rc= uncompress((Bytef*) dst, (uLongf *)dst_len, (Bytef*) source, (uLongf)*source_len);
if (rc != Z_OK)
return 1;
return 0;
} | O0 | c | ma_zlib_decompress:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x459d9
movb $0x1, -0x1(%rbp)
jmp 0x45a04
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rax
movq (%rax), %rcx
callq 0x13190
movl %eax, -0x34(%rbp)
cmpl $0x0, -0x34(%rbp)
je 0x45a00
movb $0x1, -0x1(%rbp)
jmp 0x45a04
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
| ma_zlib_decompress:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
cmp [rbp+var_10], 0
jnz short loc_459D9
mov [rbp+var_1], 1
jmp short loc_45A04
loc_459D9:
mov rdi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
mov rax, [rbp+var_30]
mov rcx, [rax]
call _uncompress
mov [rbp+var_34], eax
cmp [rbp+var_34], 0
jz short loc_45A00
mov [rbp+var_1], 1
jmp short loc_45A04
loc_45A00:
mov [rbp+var_1], 0
loc_45A04:
mov al, [rbp+var_1]
add rsp, 40h
pop rbp
retn
| bool ma_zlib_decompress(long long a1, long long a2, long long a3, long long a4, _QWORD *a5)
{
return !a1 || (unsigned int)uncompress(a2, a3, a4, *a5) != 0;
}
| ma_zlib_decompress:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
CMP qword ptr [RBP + -0x10],0x0
JNZ 0x001459d9
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00145a04
LAB_001459d9:
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RAX]
CALL 0x00113190
MOV dword ptr [RBP + -0x34],EAX
CMP dword ptr [RBP + -0x34],0x0
JZ 0x00145a00
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00145a04
LAB_00145a00:
MOV byte ptr [RBP + -0x1],0x0
LAB_00145a04:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x40
POP RBP
RET
|
int1
ma_zlib_decompress(long param_1,int8 param_2,int8 param_3,int8 param_4,
int8 *param_5)
{
int iVar1;
int1 local_9;
if (param_1 == 0) {
local_9 = 1;
}
else {
iVar1 = uncompress(param_2,param_3,param_4,*param_5);
if (iVar1 == 0) {
local_9 = 0;
}
else {
local_9 = 1;
}
}
return local_9;
}
| |
30,389 | testing::internal::ShouldShard(char const*, char const*, bool) | AlayaLite/build_O3/_deps/googletest-src/googletest/src/gtest.cc | bool ShouldShard(const char* total_shards_env, const char* shard_index_env,
bool in_subprocess_for_death_test) {
if (in_subprocess_for_death_test) {
return false;
}
const int32_t total_shards = Int32FromEnvOrDie(total_shards_env, -1);
const int32_t shard_index = Int32FromEnvOrDie(shard_index_env, -1);
if (total_shards == -1 && shard_index == -1) {
return false;
} else if (total_shards == -1 && shard_index != -1) {
const Message msg = Message() << "Invalid environment variables: you have "
<< kTestShardIndex << " = " << shard_index
<< ", but have left " << kTestTotalShards
<< " unset.\n";
ColoredPrintf(GTestColor::kRed, "%s", msg.GetString().c_str());
fflush(stdout);
exit(EXIT_FAILURE);
} else if (total_shards != -1 && shard_index == -1) {
const Message msg = Message()
<< "Invalid environment variables: you have "
<< kTestTotalShards << " = " << total_shards
<< ", but have left " << kTestShardIndex << " unset.\n";
ColoredPrintf(GTestColor::kRed, "%s", msg.GetString().c_str());
fflush(stdout);
exit(EXIT_FAILURE);
} else if (shard_index < 0 || shard_index >= total_shards) {
const Message msg =
Message() << "Invalid environment variables: we require 0 <= "
<< kTestShardIndex << " < " << kTestTotalShards
<< ", but you have " << kTestShardIndex << "=" << shard_index
<< ", " << kTestTotalShards << "=" << total_shards << ".\n";
ColoredPrintf(GTestColor::kRed, "%s", msg.GetString().c_str());
fflush(stdout);
exit(EXIT_FAILURE);
}
return total_shards > 1;
} | O3 | cpp | testing::internal::ShouldShard(char const*, char const*, bool):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
testl %edx, %edx
jne 0x63d8a
movq %rsi, %r14
movl $0xffffffff, %esi # imm = 0xFFFFFFFF
callq 0x6419c
movl %eax, %ebx
movq %r14, %rdi
movl $0xffffffff, %esi # imm = 0xFFFFFFFF
callq 0x6419c
movl %eax, %ebp
andl %ebx, %eax
cmpl $-0x1, %eax
je 0x63d8a
cmpl $-0x1, %ebx
setne %al
cmpl $-0x1, %ebp
sete %cl
orb %al, %cl
je 0x63d95
cmpl $-0x1, %ebp
setne %al
cmpl $-0x1, %ebx
sete %cl
orb %al, %cl
je 0x63e97
testl %ebp, %ebp
js 0x63fb7
cmpl %ebx, %ebp
jge 0x63fb7
cmpl $0x2, %ebx
setge %al
jmp 0x63d8c
xorl %eax, %eax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x5e3fe
movq (%rbx), %rdi
addq $0x10, %rdi
leaq 0x23e6c(%rip), %rsi # 0x87c1c
movl $0x28, %edx
callq 0x11b90
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x21346(%rip), %rsi # 0x85110
movl $0x11, %edx
callq 0x11b90
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x23eec(%rip), %rsi # 0x87cd0
movl $0x3, %edx
callq 0x11b90
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
movl %ebp, %esi
callq 0x113b0
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x23e37(%rip), %rsi # 0x87c45
movl $0x10, %edx
callq 0x11b90
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x212c8(%rip), %rsi # 0x850f0
movl $0x12, %edx
callq 0x11b90
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x23e14(%rip), %rsi # 0x87c56
movl $0x8, %edx
callq 0x11b90
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x769e8
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x63e6b
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x5e655
movq 0x8(%rsp), %rdx
leaq 0x23e50(%rip), %rsi # 0x87cd6
movl $0x1, %edi
xorl %eax, %eax
callq 0x63bb9
jmp 0x63f94
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x5e3fe
movq (%r14), %rdi
addq $0x10, %rdi
leaq 0x23d6a(%rip), %rsi # 0x87c1c
movl $0x28, %edx
callq 0x11b90
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x21224(%rip), %rsi # 0x850f0
movl $0x12, %edx
callq 0x11b90
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x23dea(%rip), %rsi # 0x87cd0
movl $0x3, %edx
callq 0x11b90
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
movl %ebx, %esi
callq 0x113b0
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x23d35(%rip), %rsi # 0x87c45
movl $0x10, %edx
callq 0x11b90
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x211e6(%rip), %rsi # 0x85110
movl $0x11, %edx
callq 0x11b90
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x23d12(%rip), %rsi # 0x87c56
movl $0x8, %edx
callq 0x11b90
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x769e8
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x63f6d
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x5e655
movq 0x8(%rsp), %rdx
leaq 0x23d4e(%rip), %rsi # 0x87cd6
movl $0x1, %edi
xorl %eax, %eax
callq 0x63bb9
leaq 0x8(%rsp), %rdi
callq 0x16eca
movq 0x4ffbb(%rip), %rax # 0xb3f60
movq (%rax), %rdi
callq 0x11610
movl $0x1, %edi
callq 0x11770
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x5e3fe
movq (%r14), %rdi
addq $0x10, %rdi
leaq 0x23c8d(%rip), %rsi # 0x87c5f
movl $0x2f, %edx
callq 0x11b90
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x21124(%rip), %rsi # 0x85110
movl $0x11, %edx
callq 0x11b90
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x23c89(%rip), %rsi # 0x87c8f
movl $0x3, %edx
callq 0x11b90
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x210d0(%rip), %rsi # 0x850f0
movl $0x12, %edx
callq 0x11b90
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x23c59(%rip), %rsi # 0x87c93
movl $0xf, %edx
callq 0x11b90
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x210bc(%rip), %rsi # 0x85110
movl $0x11, %edx
callq 0x11b90
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x1bba6(%rip), %rsi # 0x7fc14
movl $0x1, %edx
callq 0x11b90
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
movl %ebp, %esi
callq 0x113b0
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x2495e(%rip), %rsi # 0x889f6
movl $0x2, %edx
callq 0x11b90
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x2103e(%rip), %rsi # 0x850f0
movl $0x12, %edx
callq 0x11b90
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x1bb48(%rip), %rsi # 0x7fc14
movl $0x1, %edx
callq 0x11b90
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
movl %ebx, %esi
callq 0x113b0
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x23377(%rip), %rsi # 0x8746d
movl $0x2, %edx
callq 0x11b90
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x769e8
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x6411f
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x5e655
movq 0x8(%rsp), %rdx
leaq 0x23b9c(%rip), %rsi # 0x87cd6
movl $0x1, %edi
xorl %eax, %eax
callq 0x63bb9
jmp 0x63f94
jmp 0x64151
jmp 0x64173
jmp 0x64151
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x64176
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x11120
jmp 0x64176
jmp 0x64173
movq %rax, %rbx
movq 0x28(%rsp), %rdi
jmp 0x64189
jmp 0x64181
jmp 0x64181
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x64194
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, %rdi
callq 0x11760
| _ZN7testing8internal11ShouldShardEPKcS2_b:
push rbp
push r14
push rbx
sub rsp, 30h
test edx, edx
jnz short loc_63D8A
mov r14, rsi
mov esi, 0FFFFFFFFh; char *
call _ZN7testing8internal17Int32FromEnvOrDieEPKci; testing::internal::Int32FromEnvOrDie(char const*,int)
mov ebx, eax
mov rdi, r14; this
mov esi, 0FFFFFFFFh; char *
call _ZN7testing8internal17Int32FromEnvOrDieEPKci; testing::internal::Int32FromEnvOrDie(char const*,int)
mov ebp, eax
and eax, ebx
cmp eax, 0FFFFFFFFh
jz short loc_63D8A
cmp ebx, 0FFFFFFFFh
setnz al
cmp ebp, 0FFFFFFFFh
setz cl
or cl, al
jz short loc_63D95
cmp ebp, 0FFFFFFFFh
setnz al
cmp ebx, 0FFFFFFFFh
setz cl
or cl, al
jz loc_63E97
test ebp, ebp
js loc_63FB7
cmp ebp, ebx
jge loc_63FB7
cmp ebx, 2
setnl al
jmp short loc_63D8C
loc_63D8A:
xor eax, eax
loc_63D8C:
add rsp, 30h
pop rbx
pop r14
pop rbp
retn
loc_63D95:
lea rbx, [rsp+48h+var_40]
mov rdi, rbx; this
call _ZN7testing7MessageC2Ev; testing::Message::Message(void)
mov rdi, [rbx]
add rdi, 10h
lea rsi, aInvalidEnviron; "Invalid environment variables: you have"...
mov edx, 28h ; '('
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, [rsp+48h+var_40]
add rdi, 10h
lea rsi, _ZN7testingL15kTestShardIndexE; "GTEST_SHARD_INDEX"
mov edx, 11h
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, [rsp+48h+var_40]
add rdi, 10h
lea rsi, aS_1+6; " = "
mov edx, 3
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, [rsp+48h+var_40]
add rdi, 10h
mov esi, ebp
call __ZNSolsEi; std::ostream::operator<<(int)
mov rdi, [rsp+48h+var_40]
add rdi, 10h
lea rsi, aButHaveLeft; ", but have left "
mov edx, 10h
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, [rsp+48h+var_40]
add rdi, 10h
lea rsi, _ZN7testingL16kTestTotalShardsE; "GTEST_TOTAL_SHARDS"
mov edx, 12h
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, [rsp+48h+var_40]
add rdi, 10h
lea rsi, aUnset; " unset.\n"
mov edx, 8
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rdi, [rsp+48h+var_20]; this
lea rsi, [rsp+48h+var_40]; testing::Message *
call _ZN7testing7MessageC2ERKS0_; testing::Message::Message(testing::Message const&)
mov rdi, [rsp+48h+var_40]
test rdi, rdi
jz short loc_63E6B
mov rax, [rdi]
call qword ptr [rax+8]
loc_63E6B:
mov rsi, [rsp+48h+var_20]
lea rdi, [rsp+48h+var_40]
call _ZN7testing8internal20StringStreamToStringEPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE; testing::internal::StringStreamToString(std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>> *)
mov rdx, [rsp+48h+var_40]
lea rsi, aS_0+2; "%s"
mov edi, 1
xor eax, eax
call _ZN7testing8internalL13ColoredPrintfENS0_12_GLOBAL__N_110GTestColorEPKcz; testing::internal::ColoredPrintf(testing::internal::`anonymous namespace'::GTestColor,char const*,...)
jmp loc_63F94
loc_63E97:
lea r14, [rsp+48h+var_40]
mov rdi, r14; this
call _ZN7testing7MessageC2Ev; testing::Message::Message(void)
mov rdi, [r14]
add rdi, 10h
lea rsi, aInvalidEnviron; "Invalid environment variables: you have"...
mov edx, 28h ; '('
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, [rsp+48h+var_40]
add rdi, 10h
lea rsi, _ZN7testingL16kTestTotalShardsE; "GTEST_TOTAL_SHARDS"
mov edx, 12h
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, [rsp+48h+var_40]
add rdi, 10h
lea rsi, aS_1+6; " = "
mov edx, 3
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, [rsp+48h+var_40]
add rdi, 10h
mov esi, ebx
call __ZNSolsEi; std::ostream::operator<<(int)
mov rdi, [rsp+48h+var_40]
add rdi, 10h
lea rsi, aButHaveLeft; ", but have left "
mov edx, 10h
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, [rsp+48h+var_40]
add rdi, 10h
lea rsi, _ZN7testingL15kTestShardIndexE; "GTEST_SHARD_INDEX"
mov edx, 11h
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, [rsp+48h+var_40]
add rdi, 10h
lea rsi, aUnset; " unset.\n"
mov edx, 8
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rdi, [rsp+48h+var_20]; this
lea rsi, [rsp+48h+var_40]; testing::Message *
call _ZN7testing7MessageC2ERKS0_; testing::Message::Message(testing::Message const&)
mov rdi, [rsp+48h+var_40]
test rdi, rdi
jz short loc_63F6D
mov rax, [rdi]
call qword ptr [rax+8]
loc_63F6D:
mov rsi, [rsp+48h+var_20]
lea rdi, [rsp+48h+var_40]
call _ZN7testing8internal20StringStreamToStringEPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE; testing::internal::StringStreamToString(std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>> *)
mov rdx, [rsp+48h+var_40]
lea rsi, aS_0+2; "%s"
mov edi, 1
xor eax, eax
call _ZN7testing8internalL13ColoredPrintfENS0_12_GLOBAL__N_110GTestColorEPKcz; testing::internal::ColoredPrintf(testing::internal::`anonymous namespace'::GTestColor,char const*,...)
loc_63F94:
lea rdi, [rsp+48h+var_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rax, cs:stdout_ptr
mov rdi, [rax]
call _fflush
mov edi, 1
call _exit
loc_63FB7:
lea r14, [rsp+48h+var_40]
mov rdi, r14; this
call _ZN7testing7MessageC2Ev; testing::Message::Message(void)
mov rdi, [r14]
add rdi, 10h
lea rsi, aInvalidEnviron_0; "Invalid environment variables: we requi"...
mov edx, 2Fh ; '/'
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, [rsp+48h+var_40]
add rdi, 10h
lea rsi, _ZN7testingL15kTestShardIndexE; "GTEST_SHARD_INDEX"
mov edx, 11h
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, [rsp+48h+var_40]
add rdi, 10h
lea rsi, asc_87C8F; " < "
mov edx, 3
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, [rsp+48h+var_40]
add rdi, 10h
lea rsi, _ZN7testingL16kTestTotalShardsE; "GTEST_TOTAL_SHARDS"
mov edx, 12h
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, [rsp+48h+var_40]
add rdi, 10h
lea rsi, aButYouHave; ", but you have "
mov edx, 0Fh
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, [rsp+48h+var_40]
add rdi, 10h
lea rsi, _ZN7testingL15kTestShardIndexE; "GTEST_SHARD_INDEX"
mov edx, 11h
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, [rsp+48h+var_40]
add rdi, 10h
lea rsi, asc_7FC13+1; "="
mov edx, 1
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, [rsp+48h+var_40]
add rdi, 10h
mov esi, ebp
call __ZNSolsEi; std::ostream::operator<<(int)
mov rdi, [rsp+48h+var_40]
add rdi, 10h
lea rsi, aMustBeInRange0+15h; ", "
mov edx, 2
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, [rsp+48h+var_40]
add rdi, 10h
lea rsi, _ZN7testingL16kTestTotalShardsE; "GTEST_TOTAL_SHARDS"
mov edx, 12h
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, [rsp+48h+var_40]
add rdi, 10h
lea rsi, asc_7FC13+1; "="
mov edx, 1
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, [rsp+48h+var_40]
add rdi, 10h
mov esi, ebx
call __ZNSolsEi; std::ostream::operator<<(int)
mov rdi, [rsp+48h+var_40]
add rdi, 10h
lea rsi, aNoteRandomizin+32h; ".\n"
mov edx, 2
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rdi, [rsp+48h+var_20]; this
lea rsi, [rsp+48h+var_40]; testing::Message *
call _ZN7testing7MessageC2ERKS0_; testing::Message::Message(testing::Message const&)
mov rdi, [rsp+48h+var_40]
test rdi, rdi
jz short loc_6411F
mov rax, [rdi]
call qword ptr [rax+8]
loc_6411F:
mov rsi, [rsp+48h+var_20]
lea rdi, [rsp+48h+var_40]
call _ZN7testing8internal20StringStreamToStringEPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE; testing::internal::StringStreamToString(std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>> *)
mov rdx, [rsp+48h+var_40]
lea rsi, aS_0+2; "%s"
mov edi, 1
xor eax, eax
call _ZN7testing8internalL13ColoredPrintfENS0_12_GLOBAL__N_110GTestColorEPKcz; testing::internal::ColoredPrintf(testing::internal::`anonymous namespace'::GTestColor,char const*,...)
jmp loc_63F94
jmp short loc_64151
jmp short loc_64173
jmp short $+2
loc_64151:
mov rbx, rax
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_64176
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_64176
jmp short $+2
loc_64173:
mov rbx, rax
loc_64176:
mov rdi, [rsp+arg_20]
jmp short loc_64189
jmp short loc_64181
jmp short $+2
loc_64181:
mov rbx, rax
mov rdi, [rsp+arg_0]
loc_64189:
test rdi, rdi
jz short loc_64194
mov rax, [rdi]
call qword ptr [rax+8]
loc_64194:
mov rdi, rbx
call __Unwind_Resume
| bool testing::internal::ShouldShard(
testing::internal *this,
testing::internal *a2,
const char *a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11)
{
int v11; // ebx
int v12; // edx
int v13; // ebp
long long v15; // rcx
long long v16; // r8
long long v17; // r9
__m128 v18; // xmm4
__m128 v19; // xmm5
char v20; // [rsp+0h] [rbp-48h]
void *v21[4]; // [rsp+8h] [rbp-40h] BYREF
long long v22[4]; // [rsp+28h] [rbp-20h] BYREF
if ( !(_DWORD)a3 )
{
v11 = testing::internal::Int32FromEnvOrDie(this, (const char *)0xFFFFFFFFLL, 0);
v13 = testing::internal::Int32FromEnvOrDie(a2, (const char *)0xFFFFFFFFLL, v12);
if ( (v11 & v13) != 0xFFFFFFFF )
{
if ( v11 != -1 || v13 == -1 )
{
if ( v13 != -1 || v11 == -1 )
{
if ( v13 >= 0 && v13 < v11 )
return v11 >= 2;
testing::Message::Message((testing::Message *)v21);
std::__ostream_insert<char,std::char_traits<char>>(
(char *)v21[0] + 16,
"Invalid environment variables: we require 0 <= ",
47LL);
std::__ostream_insert<char,std::char_traits<char>>((char *)v21[0] + 16, "GTEST_SHARD_INDEX", 17LL);
std::__ostream_insert<char,std::char_traits<char>>((char *)v21[0] + 16, " < ", 3LL);
std::__ostream_insert<char,std::char_traits<char>>((char *)v21[0] + 16, "GTEST_TOTAL_SHARDS", 18LL);
std::__ostream_insert<char,std::char_traits<char>>((char *)v21[0] + 16, ", but you have ", 15LL);
std::__ostream_insert<char,std::char_traits<char>>((char *)v21[0] + 16, "GTEST_SHARD_INDEX", 17LL);
std::__ostream_insert<char,std::char_traits<char>>((char *)v21[0] + 16, "=", 1LL);
std::ostream::operator<<((char *)v21[0] + 16, (unsigned int)v13);
std::__ostream_insert<char,std::char_traits<char>>((char *)v21[0] + 16, ", ", 2LL);
std::__ostream_insert<char,std::char_traits<char>>((char *)v21[0] + 16, "GTEST_TOTAL_SHARDS", 18LL);
std::__ostream_insert<char,std::char_traits<char>>((char *)v21[0] + 16, "=", 1LL);
std::ostream::operator<<((char *)v21[0] + 16, (unsigned int)v11);
std::__ostream_insert<char,std::char_traits<char>>((char *)v21[0] + 16, ".\n", 2LL);
testing::Message::Message((testing::Message *)v22, (const testing::Message *)v21);
if ( v21[0] )
(*(void ( **)(void *))(*(_QWORD *)v21[0] + 8LL))(v21[0]);
}
else
{
testing::Message::Message((testing::Message *)v21);
std::__ostream_insert<char,std::char_traits<char>>(
(char *)v21[0] + 16,
"Invalid environment variables: you have ",
40LL);
std::__ostream_insert<char,std::char_traits<char>>((char *)v21[0] + 16, "GTEST_TOTAL_SHARDS", 18LL);
std::__ostream_insert<char,std::char_traits<char>>((char *)v21[0] + 16, " = ", 3LL);
std::ostream::operator<<((char *)v21[0] + 16, (unsigned int)v11);
std::__ostream_insert<char,std::char_traits<char>>((char *)v21[0] + 16, ", but have left ", 16LL);
std::__ostream_insert<char,std::char_traits<char>>((char *)v21[0] + 16, "GTEST_SHARD_INDEX", 17LL);
std::__ostream_insert<char,std::char_traits<char>>((char *)v21[0] + 16, " unset.\n", 8LL);
testing::Message::Message((testing::Message *)v22, (const testing::Message *)v21);
if ( v21[0] )
(*(void ( **)(void *))(*(_QWORD *)v21[0] + 8LL))(v21[0]);
}
}
else
{
testing::Message::Message((testing::Message *)v21);
std::__ostream_insert<char,std::char_traits<char>>(
(char *)v21[0] + 16,
"Invalid environment variables: you have ",
40LL);
std::__ostream_insert<char,std::char_traits<char>>((char *)v21[0] + 16, "GTEST_SHARD_INDEX", 17LL);
std::__ostream_insert<char,std::char_traits<char>>((char *)v21[0] + 16, " = ", 3LL);
std::ostream::operator<<((char *)v21[0] + 16, (unsigned int)v13);
std::__ostream_insert<char,std::char_traits<char>>((char *)v21[0] + 16, ", but have left ", 16LL);
std::__ostream_insert<char,std::char_traits<char>>((char *)v21[0] + 16, "GTEST_TOTAL_SHARDS", 18LL);
std::__ostream_insert<char,std::char_traits<char>>((char *)v21[0] + 16, " unset.\n", 8LL);
testing::Message::Message((testing::Message *)v22, (const testing::Message *)v21);
if ( v21[0] )
(*(void ( **)(void *))(*(_QWORD *)v21[0] + 8LL))(v21[0]);
}
testing::internal::StringStreamToString((long long)v21, v22[0]);
testing::internal::ColoredPrintf(
1,
(long long)"%s",
(long long)v21[0],
v15,
v16,
v17,
a4,
a5,
a6,
a7,
v18,
v19,
a10,
a11,
v20);
std::string::~string(v21);
fflush(stdout);
exit(1LL);
}
}
return 0;
}
| ShouldShard:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x30
TEST EDX,EDX
JNZ 0x00163d8a
MOV R14,RSI
MOV ESI,0xffffffff
CALL 0x0016419c
MOV EBX,EAX
MOV RDI,R14
MOV ESI,0xffffffff
CALL 0x0016419c
MOV EBP,EAX
AND EAX,EBX
CMP EAX,-0x1
JZ 0x00163d8a
CMP EBX,-0x1
SETNZ AL
CMP EBP,-0x1
SETZ CL
OR CL,AL
JZ 0x00163d95
CMP EBP,-0x1
SETNZ AL
CMP EBX,-0x1
SETZ CL
OR CL,AL
JZ 0x00163e97
TEST EBP,EBP
JS 0x00163fb7
CMP EBP,EBX
JGE 0x00163fb7
CMP EBX,0x2
SETGE AL
JMP 0x00163d8c
LAB_00163d8a:
XOR EAX,EAX
LAB_00163d8c:
ADD RSP,0x30
POP RBX
POP R14
POP RBP
RET
LAB_00163d95:
LEA RBX,[RSP + 0x8]
MOV RDI,RBX
CALL 0x0015e3fe
MOV RDI,qword ptr [RBX]
ADD RDI,0x10
LAB_00163da9:
LEA RSI,[0x187c1c]
MOV EDX,0x28
CALL 0x00111b90
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x10
LEA RSI,[0x185110]
MOV EDX,0x11
CALL 0x00111b90
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x10
LEA RSI,[0x187cd0]
MOV EDX,0x3
CALL 0x00111b90
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x10
MOV ESI,EBP
CALL 0x001113b0
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x10
LEA RSI,[0x187c45]
MOV EDX,0x10
CALL 0x00111b90
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x10
LEA RSI,[0x1850f0]
MOV EDX,0x12
CALL 0x00111b90
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x10
LEA RSI,[0x187c56]
MOV EDX,0x8
CALL 0x00111b90
LEA RDI,[RSP + 0x28]
LEA RSI,[RSP + 0x8]
CALL 0x001769e8
LAB_00163e5b:
MOV RDI,qword ptr [RSP + 0x8]
TEST RDI,RDI
JZ 0x00163e6b
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
LAB_00163e6b:
MOV RSI,qword ptr [RSP + 0x28]
LAB_00163e70:
LEA RDI,[RSP + 0x8]
CALL 0x0015e655
MOV RDX,qword ptr [RSP + 0x8]
LAB_00163e7f:
LEA RSI,[0x187cd6]
MOV EDI,0x1
XOR EAX,EAX
CALL 0x00163bb9
LAB_00163e92:
JMP 0x00163f94
LAB_00163e97:
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x0015e3fe
MOV RDI,qword ptr [R14]
ADD RDI,0x10
LAB_00163eab:
LEA RSI,[0x187c1c]
MOV EDX,0x28
CALL 0x00111b90
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x10
LEA RSI,[0x1850f0]
MOV EDX,0x12
CALL 0x00111b90
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x10
LEA RSI,[0x187cd0]
MOV EDX,0x3
CALL 0x00111b90
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x10
MOV ESI,EBX
CALL 0x001113b0
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x10
LEA RSI,[0x187c45]
MOV EDX,0x10
CALL 0x00111b90
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x10
LEA RSI,[0x185110]
MOV EDX,0x11
CALL 0x00111b90
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x10
LEA RSI,[0x187c56]
MOV EDX,0x8
CALL 0x00111b90
LEA RDI,[RSP + 0x28]
LEA RSI,[RSP + 0x8]
CALL 0x001769e8
LAB_00163f5d:
MOV RDI,qword ptr [RSP + 0x8]
TEST RDI,RDI
JZ 0x00163f6d
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
LAB_00163f6d:
MOV RSI,qword ptr [RSP + 0x28]
LAB_00163f72:
LEA RDI,[RSP + 0x8]
CALL 0x0015e655
MOV RDX,qword ptr [RSP + 0x8]
LAB_00163f81:
LEA RSI,[0x187cd6]
MOV EDI,0x1
XOR EAX,EAX
CALL 0x00163bb9
LAB_00163f94:
LEA RDI,[RSP + 0x8]
CALL 0x00116eca
MOV RAX,qword ptr [0x001b3f60]
MOV RDI,qword ptr [RAX]
CALL 0x00111610
MOV EDI,0x1
CALL 0x00111770
LAB_00163fb7:
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x0015e3fe
MOV RDI,qword ptr [R14]
ADD RDI,0x10
LAB_00163fcb:
LEA RSI,[0x187c5f]
MOV EDX,0x2f
CALL 0x00111b90
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x10
LEA RSI,[0x185110]
MOV EDX,0x11
CALL 0x00111b90
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x10
LEA RSI,[0x187c8f]
MOV EDX,0x3
CALL 0x00111b90
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x10
LEA RSI,[0x1850f0]
MOV EDX,0x12
CALL 0x00111b90
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x10
LEA RSI,[0x187c93]
MOV EDX,0xf
CALL 0x00111b90
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x10
LEA RSI,[0x185110]
MOV EDX,0x11
CALL 0x00111b90
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x10
LEA RSI,[0x17fc14]
MOV EDX,0x1
CALL 0x00111b90
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x10
MOV ESI,EBP
CALL 0x001113b0
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x10
LEA RSI,[0x1889f6]
MOV EDX,0x2
CALL 0x00111b90
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x10
LEA RSI,[0x1850f0]
MOV EDX,0x12
CALL 0x00111b90
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x10
LEA RSI,[0x17fc14]
MOV EDX,0x1
CALL 0x00111b90
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x10
MOV ESI,EBX
CALL 0x001113b0
MOV RDI,qword ptr [RSP + 0x8]
ADD RDI,0x10
LEA RSI,[0x18746d]
MOV EDX,0x2
CALL 0x00111b90
LEA RDI,[RSP + 0x28]
LEA RSI,[RSP + 0x8]
CALL 0x001769e8
LAB_0016410f:
MOV RDI,qword ptr [RSP + 0x8]
TEST RDI,RDI
JZ 0x0016411f
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
LAB_0016411f:
MOV RSI,qword ptr [RSP + 0x28]
LAB_00164124:
LEA RDI,[RSP + 0x8]
CALL 0x0015e655
MOV RDX,qword ptr [RSP + 0x8]
LAB_00164133:
LEA RSI,[0x187cd6]
MOV EDI,0x1
XOR EAX,EAX
CALL 0x00163bb9
LAB_00164146:
JMP 0x00163f94
|
/* testing::internal::ShouldShard(char const*, char const*, bool) */
int4 testing::internal::ShouldShard(char *param_1,char *param_2,bool param_3)
{
uint uVar1;
uint uVar2;
int7 in_register_00000011;
long *local_40 [4];
Message local_20 [8];
if ((int)CONCAT71(in_register_00000011,param_3) == 0) {
uVar1 = Int32FromEnvOrDie(param_1,-1);
uVar2 = Int32FromEnvOrDie(param_2,-1);
if ((uVar2 & uVar1) != 0xffffffff) {
if (uVar2 == 0xffffffff || uVar1 != 0xffffffff) {
if (uVar1 == 0xffffffff || uVar2 != 0xffffffff) {
if ((-1 < (int)uVar2) && ((int)uVar2 < (int)uVar1)) {
return CONCAT31((int3)((uVar2 & uVar1) >> 8),1 < (int)uVar1);
}
Message::Message((Message *)local_40);
/* try { // try from 00163fcb to 0016410e has its CatchHandler @ 00164181 */
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)(local_40[0] + 2),"Invalid environment variables: we require 0 <= ",
0x2f);
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)(local_40[0] + 2),"GTEST_SHARD_INDEX",0x11);
std::__ostream_insert<char,std::char_traits<char>>((ostream *)(local_40[0] + 2)," < ",3);
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)(local_40[0] + 2),"GTEST_TOTAL_SHARDS",0x12);
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)(local_40[0] + 2),", but you have ",0xf);
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)(local_40[0] + 2),"GTEST_SHARD_INDEX",0x11);
std::__ostream_insert<char,std::char_traits<char>>((ostream *)(local_40[0] + 2),"=",1);
std::ostream::operator<<((ostream *)(local_40[0] + 2),uVar2);
std::__ostream_insert<char,std::char_traits<char>>((ostream *)(local_40[0] + 2),", ",2);
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)(local_40[0] + 2),"GTEST_TOTAL_SHARDS",0x12);
std::__ostream_insert<char,std::char_traits<char>>((ostream *)(local_40[0] + 2),"=",1);
std::ostream::operator<<((ostream *)(local_40[0] + 2),uVar1);
std::__ostream_insert<char,std::char_traits<char>>((ostream *)(local_40[0] + 2),".\n",2);
Message::Message(local_20,(Message *)local_40);
if (local_40[0] != (long *)0x0) {
(**(code **)(*local_40[0] + 8))();
}
/* try { // try from 00164124 to 0016412d has its CatchHandler @ 0016414d */
StringStreamToString((stringstream *)local_40);
/* try { // try from 00164133 to 00164145 has its CatchHandler @ 0016414b */
ColoredPrintf(1,&DAT_00187cd6,local_40[0]);
}
else {
Message::Message((Message *)local_40);
/* try { // try from 00163eab to 00163f5c has its CatchHandler @ 0016417d */
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)(local_40[0] + 2),"Invalid environment variables: you have ",0x28);
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)(local_40[0] + 2),"GTEST_TOTAL_SHARDS",0x12);
std::__ostream_insert<char,std::char_traits<char>>((ostream *)(local_40[0] + 2)," = ",3);
std::ostream::operator<<((ostream *)(local_40[0] + 2),uVar1);
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)(local_40[0] + 2),", but have left ",0x10);
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)(local_40[0] + 2),"GTEST_SHARD_INDEX",0x11);
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)(local_40[0] + 2)," unset.\n",8);
Message::Message(local_20,(Message *)local_40);
if (local_40[0] != (long *)0x0) {
(**(code **)(*local_40[0] + 8))();
}
/* try { // try from 00163f72 to 00163f7b has its CatchHandler @ 00164171 */
StringStreamToString((stringstream *)local_40);
/* try { // try from 00163f81 to 00163f93 has its CatchHandler @ 0016414f */
ColoredPrintf(1,&DAT_00187cd6,local_40[0]);
}
}
else {
Message::Message((Message *)local_40);
/* try { // try from 00163da9 to 00163e5a has its CatchHandler @ 0016417f */
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)(local_40[0] + 2),"Invalid environment variables: you have ",0x28);
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)(local_40[0] + 2),"GTEST_SHARD_INDEX",0x11);
std::__ostream_insert<char,std::char_traits<char>>((ostream *)(local_40[0] + 2)," = ",3);
std::ostream::operator<<((ostream *)(local_40[0] + 2),uVar2);
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)(local_40[0] + 2),", but have left ",0x10);
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)(local_40[0] + 2),"GTEST_TOTAL_SHARDS",0x12);
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)(local_40[0] + 2)," unset.\n",8);
Message::Message(local_20,(Message *)local_40);
if (local_40[0] != (long *)0x0) {
(**(code **)(*local_40[0] + 8))();
}
/* try { // try from 00163e70 to 00163e79 has its CatchHandler @ 00164173 */
StringStreamToString((stringstream *)local_40);
/* try { // try from 00163e7f to 00163e91 has its CatchHandler @ 00164151 */
ColoredPrintf(1,&DAT_00187cd6,local_40[0]);
}
std::__cxx11::string::~string((string *)local_40);
fflush(*(FILE **)PTR_stdout_001b3f60);
/* WARNING: Subroutine does not return */
exit(1);
}
}
return 0;
}
| |
30,390 | coro::net::tcp::server::server(coro::net::tcp::server&&) | AlayaLite/build_O3/_deps/libcoro-src/src/net/tcp/server.cpp | server::server(server&& other)
: m_io_scheduler(std::move(other.m_io_scheduler)),
m_options(std::move(other.m_options)),
m_accept_socket(std::move(other.m_accept_socket))
{
} | O3 | cpp | coro::net::tcp::server::server(coro::net::tcp::server&&):
xorl %eax, %eax
movq %rax, 0x8(%rdi)
movups (%rsi), %xmm0
movq %rax, 0x8(%rsi)
movups %xmm0, (%rdi)
movq %rax, (%rsi)
movups 0x10(%rsi), %xmm0
movups 0x1c(%rsi), %xmm1
movups %xmm1, 0x1c(%rdi)
movups %xmm0, 0x10(%rdi)
movl 0x2c(%rsi), %eax
movl $0xffffffff, 0x2c(%rsi) # imm = 0xFFFFFFFF
movl %eax, 0x2c(%rdi)
retq
nop
| _ZN4coro3net3tcp6serverC2EOS2_:
xor eax, eax
mov [rdi+8], rax
movups xmm0, xmmword ptr [rsi]
mov [rsi+8], rax
movups xmmword ptr [rdi], xmm0
mov [rsi], rax
movups xmm0, xmmword ptr [rsi+10h]
movups xmm1, xmmword ptr [rsi+1Ch]
movups xmmword ptr [rdi+1Ch], xmm1
movups xmmword ptr [rdi+10h], xmm0
mov eax, [rsi+2Ch]
mov dword ptr [rsi+2Ch], 0FFFFFFFFh
mov [rdi+2Ch], eax
retn
| long long coro::net::tcp::server::server(long long a1, __int128 *a2)
{
__int128 v2; // xmm0
__int128 v3; // xmm0
long long result; // rax
*(_QWORD *)(a1 + 8) = 0LL;
v2 = *a2;
*((_QWORD *)a2 + 1) = 0LL;
*(_OWORD *)a1 = v2;
*(_QWORD *)a2 = 0LL;
v3 = a2[1];
*(_OWORD *)(a1 + 28) = *(__int128 *)((char *)a2 + 28);
*(_OWORD *)(a1 + 16) = v3;
result = *((unsigned int *)a2 + 11);
*((_DWORD *)a2 + 11) = -1;
*(_DWORD *)(a1 + 44) = result;
return result;
}
| server:
XOR EAX,EAX
MOV qword ptr [RDI + 0x8],RAX
MOVUPS XMM0,xmmword ptr [RSI]
MOV qword ptr [RSI + 0x8],RAX
MOVUPS xmmword ptr [RDI],XMM0
MOV qword ptr [RSI],RAX
MOVUPS XMM0,xmmword ptr [RSI + 0x10]
MOVUPS XMM1,xmmword ptr [RSI + 0x1c]
MOVUPS xmmword ptr [RDI + 0x1c],XMM1
MOVUPS xmmword ptr [RDI + 0x10],XMM0
MOV EAX,dword ptr [RSI + 0x2c]
MOV dword ptr [RSI + 0x2c],0xffffffff
MOV dword ptr [RDI + 0x2c],EAX
RET
|
/* coro::net::tcp::server::server(coro::net::tcp::server&&) */
void __thiscall coro::net::tcp::server::server(server *this,server *param_1)
{
int4 uVar1;
int8 uVar2;
int8 uVar3;
int8 uVar4;
*(int8 *)(this + 8) = 0;
uVar2 = *(int8 *)(param_1 + 8);
*(int8 *)(param_1 + 8) = 0;
*(int8 *)this = *(int8 *)param_1;
*(int8 *)(this + 8) = uVar2;
*(int8 *)param_1 = 0;
uVar2 = *(int8 *)(param_1 + 0x10);
uVar3 = *(int8 *)(param_1 + 0x18);
uVar4 = *(int8 *)(param_1 + 0x24);
*(int8 *)(this + 0x1c) = *(int8 *)(param_1 + 0x1c);
*(int8 *)(this + 0x24) = uVar4;
*(int8 *)(this + 0x10) = uVar2;
*(int8 *)(this + 0x18) = uVar3;
uVar1 = *(int4 *)(param_1 + 0x2c);
*(int4 *)(param_1 + 0x2c) = 0xffffffff;
*(int4 *)(this + 0x2c) = uVar1;
return;
}
| |
30,391 | freeze_size | eloqsql/mysys/array.c | void freeze_size(DYNAMIC_ARRAY *array)
{
uint elements;
/*
Do nothing if we are using a static buffer
*/
if (array->malloc_flags & MY_INIT_BUFFER_USED)
return;
elements= MY_MAX(array->elements, 1);
if (array->buffer && array->max_element > elements)
{
array->buffer=(uchar*) my_realloc(array->m_psi_key, array->buffer,
elements * array->size_of_element,
MYF(MY_WME | array->malloc_flags));
array->max_element= elements;
}
} | O0 | c | freeze_size:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
andq $0x100, %rax # imm = 0x100
cmpq $0x0, %rax
je 0x32872
jmp 0x328f0
movq -0x8(%rbp), %rax
cmpl $0x1, 0x8(%rax)
jbe 0x32888
movq -0x8(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x10(%rbp)
jmp 0x32892
movl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x32892
movl -0x10(%rbp), %eax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, (%rax)
je 0x328f0
movq -0x8(%rbp), %rax
movl 0xc(%rax), %eax
cmpl -0xc(%rbp), %eax
jbe 0x328f0
movq -0x8(%rbp), %rax
movl 0x18(%rax), %edi
movq -0x8(%rbp), %rax
movq (%rax), %rsi
movl -0xc(%rbp), %eax
movq -0x8(%rbp), %rcx
imull 0x14(%rcx), %eax
movl %eax, %eax
movl %eax, %edx
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rcx
orq $0x10, %rcx
callq 0x2e230
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
movl -0xc(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0xc(%rax)
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| freeze_size:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov rax, [rax+20h]
and rax, 100h
cmp rax, 0
jz short loc_32872
jmp short loc_328F0
loc_32872:
mov rax, [rbp+var_8]
cmp dword ptr [rax+8], 1
jbe short loc_32888
mov rax, [rbp+var_8]
mov eax, [rax+8]
mov [rbp+var_10], eax
jmp short loc_32892
loc_32888:
mov eax, 1
mov [rbp+var_10], eax
jmp short $+2
loc_32892:
mov eax, [rbp+var_10]
mov [rbp+var_C], eax
mov rax, [rbp+var_8]
cmp qword ptr [rax], 0
jz short loc_328F0
mov rax, [rbp+var_8]
mov eax, [rax+0Ch]
cmp eax, [rbp+var_C]
jbe short loc_328F0
mov rax, [rbp+var_8]
mov edi, [rax+18h]
mov rax, [rbp+var_8]
mov rsi, [rax]
mov eax, [rbp+var_C]
mov rcx, [rbp+var_8]
imul eax, [rcx+14h]
mov eax, eax
mov edx, eax
mov rax, [rbp+var_8]
mov rcx, [rax+20h]
or rcx, 10h
call my_realloc
mov rcx, rax
mov rax, [rbp+var_8]
mov [rax], rcx
mov ecx, [rbp+var_C]
mov rax, [rbp+var_8]
mov [rax+0Ch], ecx
loc_328F0:
add rsp, 10h
pop rbp
retn
| long long freeze_size(long long a1)
{
long long result; // rax
unsigned int v2; // [rsp+0h] [rbp-10h]
result = *(_QWORD *)(a1 + 32) & 0x100LL;
if ( !result )
{
if ( *(_DWORD *)(a1 + 8) <= 1u )
v2 = 1;
else
v2 = *(_DWORD *)(a1 + 8);
result = a1;
if ( *(_QWORD *)a1 )
{
result = *(unsigned int *)(a1 + 12);
if ( (unsigned int)result > v2 )
{
*(_QWORD *)a1 = my_realloc(
*(_DWORD *)(a1 + 24),
*(_QWORD *)a1,
*(_DWORD *)(a1 + 20) * v2,
*(_BYTE *)(a1 + 32) | 0x10u);
result = a1;
*(_DWORD *)(a1 + 12) = v2;
}
}
}
return result;
}
| freeze_size:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x20]
AND RAX,0x100
CMP RAX,0x0
JZ 0x00132872
JMP 0x001328f0
LAB_00132872:
MOV RAX,qword ptr [RBP + -0x8]
CMP dword ptr [RAX + 0x8],0x1
JBE 0x00132888
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x8]
MOV dword ptr [RBP + -0x10],EAX
JMP 0x00132892
LAB_00132888:
MOV EAX,0x1
MOV dword ptr [RBP + -0x10],EAX
JMP 0x00132892
LAB_00132892:
MOV EAX,dword ptr [RBP + -0x10]
MOV dword ptr [RBP + -0xc],EAX
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX],0x0
JZ 0x001328f0
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0xc]
CMP EAX,dword ptr [RBP + -0xc]
JBE 0x001328f0
MOV RAX,qword ptr [RBP + -0x8]
MOV EDI,dword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RAX]
MOV EAX,dword ptr [RBP + -0xc]
MOV RCX,qword ptr [RBP + -0x8]
IMUL EAX,dword ptr [RCX + 0x14]
MOV EAX,EAX
MOV EDX,EAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x20]
OR RCX,0x10
CALL 0x0012e230
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX],RCX
MOV ECX,dword ptr [RBP + -0xc]
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0xc],ECX
LAB_001328f0:
ADD RSP,0x10
POP RBP
RET
|
void freeze_size(long *param_1)
{
long lVar1;
uint local_18;
if ((param_1[4] & 0x100U) == 0) {
if (*(uint *)(param_1 + 1) < 2) {
local_18 = 1;
}
else {
local_18 = *(uint *)(param_1 + 1);
}
if ((*param_1 != 0) && (local_18 < *(uint *)((long)param_1 + 0xc))) {
lVar1 = my_realloc((int)param_1[3],*param_1,local_18 * *(int *)((long)param_1 + 0x14),
param_1[4] | 0x10);
*param_1 = lVar1;
*(uint *)((long)param_1 + 0xc) = local_18;
}
}
return;
}
| |
30,392 | bf_set_float64 | bluesky950520[P]quickjs/libbf.c | int bf_set_float64(bf_t *a, double d)
{
Float64Union u;
uint64_t m;
int shift, e, sgn;
u.d = d;
sgn = u.u >> 63;
e = (u.u >> 52) & ((1 << 11) - 1);
m = u.u & (((uint64_t)1 << 52) - 1);
if (e == ((1 << 11) - 1)) {
if (m != 0) {
bf_set_nan(a);
} else {
bf_set_inf(a, sgn);
}
} else if (e == 0) {
if (m == 0) {
bf_set_zero(a, sgn);
} else {
/* subnormal number */
m <<= 12;
shift = clz64(m);
m <<= shift;
e = -shift;
goto norm;
}
} else {
m = (m << 11) | ((uint64_t)1 << 63);
norm:
a->expn = e - 1023 + 1;
#if LIMB_BITS == 32
if (bf_resize(a, 2))
goto fail;
a->tab[0] = m;
a->tab[1] = m >> 32;
#else
if (bf_resize(a, 1))
goto fail;
a->tab[0] = m;
#endif
a->sign = sgn;
}
return 0;
fail:
bf_set_nan(a);
return BF_ST_MEM_ERROR;
} | O0 | c | bf_set_float64:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movsd %xmm0, 0x20(%rsp)
movsd 0x20(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
movq 0x18(%rsp), %rax
shrq $0x3f, %rax
movl %eax, 0x4(%rsp)
movq 0x18(%rsp), %rax
shrq $0x34, %rax
andq $0x7ff, %rax # imm = 0x7FF
movl %eax, 0x8(%rsp)
movabsq $0xfffffffffffff, %rax # imm = 0xFFFFFFFFFFFFF
andq 0x18(%rsp), %rax
movq %rax, 0x10(%rsp)
cmpl $0x7ff, 0x8(%rsp) # imm = 0x7FF
jne 0xeb030
cmpq $0x0, 0x10(%rsp)
je 0xeb01d
movq 0x28(%rsp), %rdi
callq 0xe61a0
jmp 0xeb02b
movq 0x28(%rsp), %rdi
movl 0x4(%rsp), %esi
callq 0xe6280
jmp 0xeb0f4
cmpl $0x0, 0x8(%rsp)
jne 0xeb08c
cmpq $0x0, 0x10(%rsp)
jne 0xeb04f
movq 0x28(%rsp), %rdi
movl 0x4(%rsp), %esi
callq 0xe6240
jmp 0xeb08a
movq 0x10(%rsp), %rax
shlq $0xc, %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rdi
callq 0xeb120
movl %eax, 0xc(%rsp)
movl 0xc(%rsp), %ecx
movq 0x10(%rsp), %rax
movl %ecx, %ecx
shlq %cl, %rax
movq %rax, 0x10(%rsp)
xorl %eax, %eax
subl 0xc(%rsp), %eax
movl %eax, 0x8(%rsp)
jmp 0xeb0a7
jmp 0xeb0f2
movq 0x10(%rsp), %rax
shlq $0xb, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
orq %rcx, %rax
movq %rax, 0x10(%rsp)
movl 0x8(%rsp), %eax
subl $0x3ff, %eax # imm = 0x3FF
addl $0x1, %eax
movslq %eax, %rcx
movq 0x28(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x28(%rsp), %rdi
movl $0x1, %esi
callq 0xe5fd0
cmpl $0x0, %eax
je 0xeb0d5
jmp 0xeb0fe
movq 0x10(%rsp), %rcx
movq 0x28(%rsp), %rax
movq 0x20(%rax), %rax
movq %rcx, (%rax)
movl 0x4(%rsp), %ecx
movq 0x28(%rsp), %rax
movl %ecx, 0x8(%rax)
jmp 0xeb0f4
movl $0x0, 0x34(%rsp)
jmp 0xeb110
movq 0x28(%rsp), %rdi
callq 0xe61a0
movl $0x20, 0x34(%rsp)
movl 0x34(%rsp), %eax
addq $0x38, %rsp
retq
nopl (%rax)
| bf_set_float64:
sub rsp, 38h
mov [rsp+38h+var_10], rdi
movsd [rsp+38h+var_18], xmm0
movsd xmm0, [rsp+38h+var_18]
movsd [rsp+38h+var_20], xmm0
mov rax, [rsp+38h+var_20]
shr rax, 3Fh
mov [rsp+38h+var_34], eax
mov rax, [rsp+38h+var_20]
shr rax, 34h
and rax, 7FFh
mov [rsp+38h+var_30], eax
mov rax, 0FFFFFFFFFFFFFh
and rax, [rsp+38h+var_20]
mov [rsp+38h+var_28], rax
cmp [rsp+38h+var_30], 7FFh
jnz short loc_EB030
cmp [rsp+38h+var_28], 0
jz short loc_EB01D
mov rdi, [rsp+38h+var_10]
call bf_set_nan
jmp short loc_EB02B
loc_EB01D:
mov rdi, [rsp+38h+var_10]
mov esi, [rsp+38h+var_34]
call bf_set_inf
loc_EB02B:
jmp loc_EB0F4
loc_EB030:
cmp [rsp+38h+var_30], 0
jnz short loc_EB08C
cmp [rsp+38h+var_28], 0
jnz short loc_EB04F
mov rdi, [rsp+38h+var_10]
mov esi, [rsp+38h+var_34]
call bf_set_zero
jmp short loc_EB08A
loc_EB04F:
mov rax, [rsp+38h+var_28]
shl rax, 0Ch
mov [rsp+38h+var_28], rax
mov rdi, [rsp+38h+var_28]
call clz64_0
mov [rsp+38h+var_2C], eax
mov ecx, [rsp+38h+var_2C]
mov rax, [rsp+38h+var_28]
mov ecx, ecx
shl rax, cl
mov [rsp+38h+var_28], rax
xor eax, eax
sub eax, [rsp+38h+var_2C]
mov [rsp+38h+var_30], eax
jmp short loc_EB0A7
loc_EB08A:
jmp short loc_EB0F2
loc_EB08C:
mov rax, [rsp+38h+var_28]
shl rax, 0Bh
mov rcx, 8000000000000000h
or rax, rcx
mov [rsp+38h+var_28], rax
loc_EB0A7:
mov eax, [rsp+38h+var_30]
sub eax, 3FFh
add eax, 1
movsxd rcx, eax
mov rax, [rsp+38h+var_10]
mov [rax+10h], rcx
mov rdi, [rsp+38h+var_10]
mov esi, 1
call bf_resize
cmp eax, 0
jz short loc_EB0D5
jmp short loc_EB0FE
loc_EB0D5:
mov rcx, [rsp+38h+var_28]
mov rax, [rsp+38h+var_10]
mov rax, [rax+20h]
mov [rax], rcx
mov ecx, [rsp+38h+var_34]
mov rax, [rsp+38h+var_10]
mov [rax+8], ecx
loc_EB0F2:
jmp short $+2
loc_EB0F4:
mov [rsp+38h+var_4], 0
jmp short loc_EB110
loc_EB0FE:
mov rdi, [rsp+38h+var_10]
call bf_set_nan
mov [rsp+38h+var_4], 20h ; ' '
loc_EB110:
mov eax, [rsp+38h+var_4]
add rsp, 38h
retn
| long long bf_set_float64(long long a1, double a2)
{
int v3; // [rsp+4h] [rbp-34h]
int v4; // [rsp+8h] [rbp-30h]
int v5; // [rsp+Ch] [rbp-2Ch]
long long v6; // [rsp+10h] [rbp-28h]
unsigned long long v7; // [rsp+10h] [rbp-28h]
v3 = *(_QWORD *)&a2 >> 63;
v4 = (*(_QWORD *)&a2 >> 52) & 0x7FF;
v6 = *(_QWORD *)&a2 & 0xFFFFFFFFFFFFFLL;
if ( v4 == 2047 )
{
if ( v6 )
bf_set_nan(a1);
else
bf_set_inf(a1, v3);
return 0;
}
if ( ((*(_QWORD *)&a2 >> 52) & 0x7FF) != 0 )
{
v7 = (v6 << 11) | 0x8000000000000000LL;
}
else
{
if ( !v6 )
{
bf_set_zero(a1, v3);
return 0;
}
v5 = clz64_0(*(_QWORD *)&a2 << 12);
v7 = *(_QWORD *)&a2 << 12 << v5;
v4 = -v5;
}
*(_QWORD *)(a1 + 16) = v4 - 1023 + 1;
if ( (unsigned int)bf_resize((_QWORD *)a1, 1LL) )
{
bf_set_nan(a1);
return 32;
}
**(_QWORD **)(a1 + 32) = v7;
*(_DWORD *)(a1 + 8) = v3;
return 0;
}
| bf_set_float64:
SUB RSP,0x38
MOV qword ptr [RSP + 0x28],RDI
MOVSD qword ptr [RSP + 0x20],XMM0
MOVSD XMM0,qword ptr [RSP + 0x20]
MOVSD qword ptr [RSP + 0x18],XMM0
MOV RAX,qword ptr [RSP + 0x18]
SHR RAX,0x3f
MOV dword ptr [RSP + 0x4],EAX
MOV RAX,qword ptr [RSP + 0x18]
SHR RAX,0x34
AND RAX,0x7ff
MOV dword ptr [RSP + 0x8],EAX
MOV RAX,0xfffffffffffff
AND RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x10],RAX
CMP dword ptr [RSP + 0x8],0x7ff
JNZ 0x001eb030
CMP qword ptr [RSP + 0x10],0x0
JZ 0x001eb01d
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x001e61a0
JMP 0x001eb02b
LAB_001eb01d:
MOV RDI,qword ptr [RSP + 0x28]
MOV ESI,dword ptr [RSP + 0x4]
CALL 0x001e6280
LAB_001eb02b:
JMP 0x001eb0f4
LAB_001eb030:
CMP dword ptr [RSP + 0x8],0x0
JNZ 0x001eb08c
CMP qword ptr [RSP + 0x10],0x0
JNZ 0x001eb04f
MOV RDI,qword ptr [RSP + 0x28]
MOV ESI,dword ptr [RSP + 0x4]
CALL 0x001e6240
JMP 0x001eb08a
LAB_001eb04f:
MOV RAX,qword ptr [RSP + 0x10]
SHL RAX,0xc
MOV qword ptr [RSP + 0x10],RAX
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x001eb120
MOV dword ptr [RSP + 0xc],EAX
MOV ECX,dword ptr [RSP + 0xc]
MOV RAX,qword ptr [RSP + 0x10]
MOV ECX,ECX
SHL RAX,CL
MOV qword ptr [RSP + 0x10],RAX
XOR EAX,EAX
SUB EAX,dword ptr [RSP + 0xc]
MOV dword ptr [RSP + 0x8],EAX
JMP 0x001eb0a7
LAB_001eb08a:
JMP 0x001eb0f2
LAB_001eb08c:
MOV RAX,qword ptr [RSP + 0x10]
SHL RAX,0xb
MOV RCX,-0x8000000000000000
OR RAX,RCX
MOV qword ptr [RSP + 0x10],RAX
LAB_001eb0a7:
MOV EAX,dword ptr [RSP + 0x8]
SUB EAX,0x3ff
ADD EAX,0x1
MOVSXD RCX,EAX
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RAX + 0x10],RCX
MOV RDI,qword ptr [RSP + 0x28]
MOV ESI,0x1
CALL 0x001e5fd0
CMP EAX,0x0
JZ 0x001eb0d5
JMP 0x001eb0fe
LAB_001eb0d5:
MOV RCX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RAX + 0x20]
MOV qword ptr [RAX],RCX
MOV ECX,dword ptr [RSP + 0x4]
MOV RAX,qword ptr [RSP + 0x28]
MOV dword ptr [RAX + 0x8],ECX
LAB_001eb0f2:
JMP 0x001eb0f4
LAB_001eb0f4:
MOV dword ptr [RSP + 0x34],0x0
JMP 0x001eb110
LAB_001eb0fe:
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x001e61a0
MOV dword ptr [RSP + 0x34],0x20
LAB_001eb110:
MOV EAX,dword ptr [RSP + 0x34]
ADD RSP,0x38
RET
|
int4 bf_set_float64(ulong param_1,long param_2)
{
uint uVar1;
uint uVar2;
int iVar3;
uint local_30;
ulong local_28;
uVar1 = (uint)(param_1 >> 0x20);
uVar2 = uVar1 >> 0x1f;
local_30 = uVar1 >> 0x14 & 0x7ff;
param_1 = param_1 & 0xfffffffffffff;
if (local_30 == 0x7ff) {
if (param_1 == 0) {
bf_set_inf(param_2,uVar2);
}
else {
bf_set_nan(param_2);
}
}
else {
if (local_30 == 0) {
if (param_1 == 0) {
bf_set_zero(param_2,uVar2);
return 0;
}
iVar3 = clz64(param_1 << 0xc);
local_28 = (param_1 << 0xc) << ((byte)iVar3 & 0x3f);
local_30 = -iVar3;
}
else {
local_28 = param_1 << 0xb | 0x8000000000000000;
}
*(long *)(param_2 + 0x10) = (long)(int)(local_30 - 0x3fe);
iVar3 = bf_resize(param_2,1);
if (iVar3 != 0) {
bf_set_nan(param_2);
return 0x20;
}
**(ulong **)(param_2 + 0x20) = local_28;
*(uint *)(param_2 + 8) = uVar2;
}
return 0;
}
| |
30,393 | JS_PromiseState | bluesky950520[P]quickjs/quickjs.c | JSPromiseStateEnum JS_PromiseState(JSContext *ctx, JSValue promise)
{
JSPromiseData *s = JS_GetOpaque(promise, JS_CLASS_PROMISE);
if (!s)
return -1;
return s->promise_state;
} | O1 | c | JS_PromiseState:
movq %rsi, -0x8(%rsp)
cmpl $-0x1, %edx
jne 0x36252
movq -0x8(%rsp), %rax
cmpw $0x31, 0x6(%rax)
jne 0x36252
movq 0x30(%rax), %rax
jmp 0x36254
xorl %eax, %eax
testq %rax, %rax
je 0x3625c
movl (%rax), %eax
retq
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
retq
| JS_PromiseState:
mov [rsp+var_8], rsi
cmp edx, 0FFFFFFFFh
jnz short loc_36252
mov rax, [rsp+var_8]
cmp word ptr [rax+6], 31h ; '1'
jnz short loc_36252
mov rax, [rax+30h]
jmp short loc_36254
loc_36252:
xor eax, eax
loc_36254:
test rax, rax
jz short loc_3625C
mov eax, [rax]
retn
loc_3625C:
mov eax, 0FFFFFFFFh
retn
| long long JS_PromiseState(long long a1, long long a2, int a3)
{
unsigned int *v3; // rax
if ( a3 == -1 && *(_WORD *)(a2 + 6) == 49 )
v3 = *(unsigned int **)(a2 + 48);
else
v3 = 0LL;
if ( v3 )
return *v3;
else
return 0xFFFFFFFFLL;
}
| JS_PromiseState:
MOV qword ptr [RSP + -0x8],RSI
CMP EDX,-0x1
JNZ 0x00136252
MOV RAX,qword ptr [RSP + -0x8]
CMP word ptr [RAX + 0x6],0x31
JNZ 0x00136252
MOV RAX,qword ptr [RAX + 0x30]
JMP 0x00136254
LAB_00136252:
XOR EAX,EAX
LAB_00136254:
TEST RAX,RAX
JZ 0x0013625c
MOV EAX,dword ptr [RAX]
RET
LAB_0013625c:
MOV EAX,0xffffffff
RET
|
int4 JS_PromiseState(int8 param_1,long param_2,int param_3)
{
int4 *puVar1;
if ((param_3 == -1) && (*(short *)(param_2 + 6) == 0x31)) {
puVar1 = *(int4 **)(param_2 + 0x30);
}
else {
puVar1 = (int4 *)0x0;
}
if (puVar1 != (int4 *)0x0) {
return *puVar1;
}
return 0xffffffff;
}
| |
30,394 | my_rnd_ssl | eloqsql/mysys/my_rnd.c | double my_rnd_ssl(struct my_rnd_struct *rand_st)
{
#if defined(HAVE_OPENSSL)
rc= RAND_bytes((unsigned char *) &res, sizeof (unsigned int));
if (rc)
return (double)res / (double)UINT_MAX;
#endif /* defined(HAVE_OPENSSL) */
return my_rnd(rand_st);
} | O3 | c | my_rnd_ssl:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rax
movq 0x8(%rdi), %rsi
leaq (%rax,%rax,2), %rax
addq %rsi, %rax
movq 0x10(%rdi), %r8
xorl %edx, %edx
divq %r8
movq %rdx, %rcx
leaq (%rsi,%rdx), %rax
addq $0x21, %rax
xorl %edx, %edx
divq %r8
movq %rdx, 0x8(%rdi)
movq %rcx, (%rdi)
movq %rcx, %xmm1
punpckldq 0x2f089(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x2f091(%rip), %xmm1 # 0xe31f0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0 # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
divsd 0x18(%rdi), %xmm0
popq %rbp
retq
nop
| my_rnd_ssl:
push rbp
mov rbp, rsp
mov rax, [rdi]
mov rsi, [rdi+8]
lea rax, [rax+rax*2]
add rax, rsi
mov r8, [rdi+10h]
xor edx, edx
div r8
mov rcx, rdx
lea rax, [rsi+rdx]
add rax, 21h ; '!'
xor edx, edx
div r8
mov [rdi+8], rdx
mov [rdi], rcx
movq xmm1, rcx
punpckldq xmm1, cs:xmmword_E31E0
subpd xmm1, cs:xmmword_E31F0
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
divsd xmm0, qword ptr [rdi+18h]
pop rbp
retn
| double my_rnd_ssl(long long a1)
{
long long v1; // rsi
unsigned long long v2; // r8
unsigned long long v3; // rcx
__m128d v4; // xmm1
v1 = *(_QWORD *)(a1 + 8);
v2 = *(_QWORD *)(a1 + 16);
v3 = (v1 + 3LL * *(_QWORD *)a1) % v2;
*(_QWORD *)(a1 + 8) = (v1 + v3 + 33) % v2;
*(_QWORD *)a1 = v3;
v4 = _mm_sub_pd((__m128d)_mm_unpacklo_epi32((__m128i)v3, (__m128i)xmmword_E31E0), (__m128d)xmmword_E31F0);
return (_mm_unpackhi_pd(v4, v4).m128d_f64[0] + v4.m128d_f64[0]) / *(double *)(a1 + 24);
}
| my_rnd_ssl:
PUSH RBP
MOV RBP,RSP
MOV RAX,qword ptr [RDI]
MOV RSI,qword ptr [RDI + 0x8]
LEA RAX,[RAX + RAX*0x2]
ADD RAX,RSI
MOV R8,qword ptr [RDI + 0x10]
XOR EDX,EDX
DIV R8
MOV RCX,RDX
LEA RAX,[RSI + RDX*0x1]
ADD RAX,0x21
XOR EDX,EDX
DIV R8
MOV qword ptr [RDI + 0x8],RDX
MOV qword ptr [RDI],RCX
MOVQ XMM1,RCX
PUNPCKLDQ XMM1,xmmword ptr [0x001e31e0]
SUBPD XMM1,xmmword ptr [0x001e31f0]
MOVAPD XMM0,XMM1
UNPCKHPD XMM0,XMM1
ADDSD XMM0,XMM1
DIVSD XMM0,qword ptr [RDI + 0x18]
POP RBP
RET
|
ulong my_rnd_ssl(ulong *param_1)
{
ulong uVar1;
ulong uVar2;
ulong uVar3;
uVar1 = param_1[2];
uVar3 = (*param_1 * 3 + param_1[1]) % uVar1;
uVar2 = param_1[1] + uVar3 + 0x21;
param_1[1] = uVar2 % uVar1;
*param_1 = uVar3;
return uVar2 / uVar1;
}
| |
30,395 | common_init()::$_0::__invoke(ggml_log_level, char const*, void*) | monkey531[P]llama/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);
} | O1 | cpp | common_init()::$_0::__invoke(ggml_log_level, char const*, void*):
leaq 0xb7613(%rip), %rax # 0x130428
cmpl $0x0, (%rax)
js 0x78e43
pushq %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %ebp
callq 0xce04b
leaq 0x74d82(%rip), %rdx # 0xedbb0
movq %rax, %rdi
movl %ebp, %esi
movq %rbx, %rcx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0xce0e6
retq
| _ZZ11common_initvEN3$_08__invokeE14ggml_log_levelPKcPv:
lea rax, common_log_verbosity_thold
cmp dword ptr [rax], 0
js short locret_78E43
push rbp
push rbx
push rax
mov rbx, rsi
mov ebp, edi
call _Z15common_log_mainv; common_log_main(void)
lea rdx, aSetCustomJinja_0+0FEh; "%s"
mov rdi, rax
mov esi, ebp
mov rcx, rbx
xor eax, eax
add rsp, 8
pop rbx
pop rbp
jmp _Z14common_log_addP10common_log14ggml_log_levelPKcz; common_log_add(common_log *,ggml_log_level,char const*,...)
locret_78E43:
retn
| void * common_init(void)::$_0::__invoke(int a1, int a2)
{
void *result; // rax
int v3; // eax
int v4; // r8d
int v5; // r9d
result = &common_log_verbosity_thold;
if ( common_log_verbosity_thold >= 0 )
{
v3 = common_log_main();
return (void *)common_log_add(v3, a1, (unsigned int)"%s", a2, v4, v5);
}
return result;
}
| __invoke:
LEA RAX,[0x230428]
CMP dword ptr [RAX],0x0
JS 0x00178e43
PUSH RBP
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV EBP,EDI
CALL 0x001ce04b
LEA RDX,[0x1edbb0]
MOV RDI,RAX
MOV ESI,EBP
MOV RCX,RBX
XOR EAX,EAX
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x001ce0e6
LAB_00178e43:
RET
|
/* __invoke(ggml_log_level, char const*, void*) */
void common_init()::$_0::__invoke(int4 param_1,int8 param_2)
{
int8 uVar1;
if (-1 < common_log_verbosity_thold) {
uVar1 = common_log_main();
common_log_add(uVar1,param_1,"%s",param_2);
return;
}
return;
}
| |
30,396 | common_init()::$_0::__invoke(ggml_log_level, char const*, void*) | monkey531[P]llama/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()::$_0::__invoke(ggml_log_level, char const*, void*):
leaq 0xb5187(%rip), %rax # 0x12d428
cmpl $0x0, (%rax)
js 0x782cf
pushq %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %ebp
callq 0xcc467
leaq 0x728f6(%rip), %rdx # 0xeabb0
movq %rax, %rdi
movl %ebp, %esi
movq %rbx, %rcx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0xcc504
retq
| _ZZ11common_initvEN3$_08__invokeE14ggml_log_levelPKcPv:
lea rax, common_log_verbosity_thold
cmp dword ptr [rax], 0
js short locret_782CF
push rbp
push rbx
push rax
mov rbx, rsi
mov ebp, edi
call _Z15common_log_mainv; common_log_main(void)
lea rdx, aSetCustomJinja_0+0FEh; "%s"
mov rdi, rax
mov esi, ebp
mov rcx, rbx
xor eax, eax
add rsp, 8
pop rbx
pop rbp
jmp _Z14common_log_addP10common_log14ggml_log_levelPKcz; common_log_add(common_log *,ggml_log_level,char const*,...)
locret_782CF:
retn
| void * common_init(void)::$_0::__invoke(int a1, int a2)
{
void *result; // rax
int v3; // eax
int v4; // r8d
int v5; // r9d
result = &common_log_verbosity_thold;
if ( common_log_verbosity_thold >= 0 )
{
v3 = common_log_main();
return (void *)common_log_add(v3, a1, (unsigned int)"%s", a2, v4, v5);
}
return result;
}
| __invoke:
LEA RAX,[0x22d428]
CMP dword ptr [RAX],0x0
JS 0x001782cf
PUSH RBP
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV EBP,EDI
CALL 0x001cc467
LEA RDX,[0x1eabb0]
MOV RDI,RAX
MOV ESI,EBP
MOV RCX,RBX
XOR EAX,EAX
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x001cc504
LAB_001782cf:
RET
|
/* __invoke(ggml_log_level, char const*, void*) */
void common_init()::$_0::__invoke(int4 param_1,int8 param_2)
{
int8 uVar1;
if (-1 < common_log_verbosity_thold) {
uVar1 = common_log_main();
common_log_add(uVar1,param_1,"%s",param_2);
return;
}
return;
}
| |
30,397 | mysql_fetch_row_start_internal | eloqsql/libmariadb/libmariadb/mariadb_async.c | static void
mysql_fetch_row_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_fetch_row,
(parms->result),
parms->result->handle,
MYSQL_ROW,
r_ptr)
} | O3 | c | mysql_fetch_row_start_internal:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq (%rdi), %rdi
movq 0x78(%rdi), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rbx
callq 0x1bfd4
movq %rax, 0x8(%rbx)
movl $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| mysql_fetch_row_start_internal:
push rbp
mov rbp, rsp
push rbx
push rax
mov rdi, [rdi]
mov rax, [rdi+78h]
mov rax, [rax+480h]
mov rbx, [rax+28h]
call mysql_fetch_row
mov [rbx+8], rax
mov dword ptr [rbx], 0
add rsp, 8
pop rbx
pop rbp
retn
| long long mysql_fetch_row_start_internal(long long *a1)
{
long long v1; // rdi
long long v2; // rbx
long long result; // rax
v1 = *a1;
v2 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v1 + 120) + 1152LL) + 40LL);
result = mysql_fetch_row(v1);
*(_QWORD *)(v2 + 8) = result;
*(_DWORD *)v2 = 0;
return result;
}
| mysql_fetch_row_start_internal:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RDI,qword ptr [RDI]
MOV RAX,qword ptr [RDI + 0x78]
MOV RAX,qword ptr [RAX + 0x480]
MOV RBX,qword ptr [RAX + 0x28]
CALL 0x0011bfd4
MOV qword ptr [RBX + 0x8],RAX
MOV dword ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void mysql_fetch_row_start_internal(long *param_1)
{
int4 *puVar1;
int8 uVar2;
puVar1 = *(int4 **)(*(long *)(*(long *)(*param_1 + 0x78) + 0x480) + 0x28);
uVar2 = mysql_fetch_row();
*(int8 *)(puVar1 + 2) = uVar2;
*puVar1 = 0;
return;
}
| |
30,398 | my_numcells_eucjp | eloqsql/strings/ctype-ujis.c | static
size_t my_numcells_eucjp(CHARSET_INFO *cs __attribute__((unused)),
const char *str, const char *str_end)
{
size_t clen;
const uchar *b= (const uchar *) str;
const uchar *e= (const uchar *) str_end;
for (clen= 0; b < e; )
{
if (*b == 0x8E)
{
clen++;
b+= 2;
}
else if (*b == 0x8F)
{
clen+= 2;
b+= 3;
}
else if (*b & 0x80)
{
clen+= 2;
b+= 2;
}
else
{
clen++;
b++;
}
}
return clen;
} | O3 | c | my_numcells_eucjp:
cmpq %rdx, %rsi
jae 0x8e12a
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
movzbl (%rsi), %edi
cmpl $0x8e, %edi
je 0x8e103
cmpl $0x8f, %edi
jne 0x8e10f
movl $0x3, %edi
movl $0x2, %ecx
jmp 0x8e11d
movl $0x2, %edi
movl $0x1, %ecx
jmp 0x8e11d
xorl %ecx, %ecx
testb %dil, %dil
sets %cl
incq %rcx
movq %rcx, %rdi
addq %rcx, %rax
addq %rdi, %rsi
cmpq %rdx, %rsi
jb 0x8e0e4
popq %rbp
retq
xorl %eax, %eax
retq
| my_numcells_eucjp:
cmp rsi, rdx
jnb short loc_8E12A
push rbp
mov rbp, rsp
xor eax, eax
loc_8E0E4:
movzx edi, byte ptr [rsi]
cmp edi, 8Eh
jz short loc_8E103
cmp edi, 8Fh
jnz short loc_8E10F
mov edi, 3
mov ecx, 2
jmp short loc_8E11D
loc_8E103:
mov edi, 2
mov ecx, 1
jmp short loc_8E11D
loc_8E10F:
xor ecx, ecx
test dil, dil
sets cl
inc rcx
mov rdi, rcx
loc_8E11D:
add rax, rcx
add rsi, rdi
cmp rsi, rdx
jb short loc_8E0E4
pop rbp
retn
loc_8E12A:
xor eax, eax
retn
| long long my_numcells_eucjp(long long a1, unsigned __int8 *a2, unsigned long long a3)
{
long long result; // rax
int v4; // edi
long long v5; // rdi
long long v6; // rcx
if ( (unsigned long long)a2 >= a3 )
return 0LL;
result = 0LL;
do
{
v4 = *a2;
if ( v4 == 142 )
{
v5 = 2LL;
v6 = 1LL;
}
else if ( v4 == 143 )
{
v5 = 3LL;
v6 = 2LL;
}
else
{
v6 = ((v4 & 0x80u) != 0) + 1LL;
v5 = v6;
}
result += v6;
a2 += v5;
}
while ( (unsigned long long)a2 < a3 );
return result;
}
| my_numcells_eucjp:
CMP RSI,RDX
JNC 0x0018e12a
PUSH RBP
MOV RBP,RSP
XOR EAX,EAX
LAB_0018e0e4:
MOVZX EDI,byte ptr [RSI]
CMP EDI,0x8e
JZ 0x0018e103
CMP EDI,0x8f
JNZ 0x0018e10f
MOV EDI,0x3
MOV ECX,0x2
JMP 0x0018e11d
LAB_0018e103:
MOV EDI,0x2
MOV ECX,0x1
JMP 0x0018e11d
LAB_0018e10f:
XOR ECX,ECX
TEST DIL,DIL
SETS CL
INC RCX
MOV RDI,RCX
LAB_0018e11d:
ADD RAX,RCX
ADD RSI,RDI
CMP RSI,RDX
JC 0x0018e0e4
POP RBP
RET
LAB_0018e12a:
XOR EAX,EAX
RET
|
long my_numcells_eucjp(int8 param_1,char *param_2,char *param_3)
{
char cVar1;
long lVar2;
long lVar3;
long lVar4;
if (param_2 < param_3) {
lVar2 = 0;
do {
cVar1 = *param_2;
if (cVar1 == -0x72) {
lVar4 = 2;
lVar3 = 1;
}
else if (cVar1 == -0x71) {
lVar3 = 2;
lVar4 = 3;
}
else {
lVar3 = (ulong)(cVar1 < '\0') + 1;
lVar4 = lVar3;
}
lVar2 = lVar2 + lVar3;
param_2 = param_2 + lVar4;
} while (param_2 < param_3);
return lVar2;
}
return 0;
}
| |
30,399 | SET_hello_file | xtate/src/probe-modules/hello-probe.c | static ConfRes SET_hello_file(void *conf, const char *name, const char *value) {
UNUSEDPARM(conf);
UNUSEDPARM(name);
FREE(hello_conf.hello);
FILE *fp = fopen(value, "rb");
if (fp == NULL) {
LOG(LEVEL_ERROR, "failed to open file %s.\n", value);
return Conf_ERR;
}
/**
* We may specify a large size file accidently, so limit the size by a buf.
*/
unsigned char buf[PM_PAYLOAD_SIZE];
size_t bytes_read = fread(buf, 1, PM_PAYLOAD_SIZE, fp);
if (bytes_read == 0) {
LOG(LEVEL_ERROR, "failed to read valid hello in file %s.\n", value);
LOGPERROR(value);
fclose(fp);
return Conf_ERR;
}
fclose(fp);
hello_conf.hello_len = bytes_read;
hello_conf.hello = MALLOC(bytes_read);
memcpy(hello_conf.hello, buf, bytes_read);
return Conf_OK;
} | O3 | c | SET_hello_file:
pushq %r15
pushq %r14
pushq %rbx
subq $0x800, %rsp # imm = 0x800
movq %rdx, %rbx
movq 0x17bfbb(%rip), %rdi # 0x1a3598
testq %rdi, %rdi
je 0x275f2
callq 0x151e0
movq $0x0, 0x17bfa6(%rip) # 0x1a3598
leaq 0x35a0b(%rip), %rsi # 0x5d004
movq %rbx, %rdi
callq 0x15e00
testq %rax, %rax
je 0x27656
movq %rax, %r14
movq %rsp, %rdi
movl $0x1, %esi
movl $0x800, %edx # imm = 0x800
movq %rax, %rcx
callq 0x155b0
testq %rax, %rax
je 0x2766e
movq %rax, %r15
movq %r14, %rdi
callq 0x154c0
movq %r15, 0x17bf6b(%rip) # 0x1a35a0
movq %r15, %rdi
callq 0x50885
movq %rax, 0x17bf54(%rip) # 0x1a3598
movq %rsp, %rsi
movq %rax, %rdi
movq %r15, %rdx
callq 0x150c0
xorl %eax, %eax
jmp 0x276bd
leaq 0x3dca7(%rip), %rsi # 0x65304
movl $0xffffffff, %edi # imm = 0xFFFFFFFF
movq %rbx, %rdx
xorl %eax, %eax
callq 0x536da
jmp 0x276b8
leaq 0x3dca8(%rip), %rsi # 0x6531d
movl $0xffffffff, %edi # imm = 0xFFFFFFFF
movq %rbx, %rdx
xorl %eax, %eax
callq 0x536da
callq 0x15b70
movl (%rax), %edi
callq 0x15810
leaq 0x35970(%rip), %rsi # 0x5d007
leaq 0x3dca7(%rip), %rdx # 0x65345
movl $0xffffffff, %edi # imm = 0xFFFFFFFF
movq %rbx, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x536da
movq %r14, %rdi
callq 0x154c0
movl $0x1, %eax
addq $0x800, %rsp # imm = 0x800
popq %rbx
popq %r14
popq %r15
retq
| SET_hello_file:
push r15
push r14
push rbx
sub rsp, 800h
mov rbx, rdx
mov rdi, cs:hello_conf_0
test rdi, rdi
jz short loc_275F2
call _free
mov cs:hello_conf_0, 0
loc_275F2:
lea rsi, unk_5D004
mov rdi, rbx
call _fopen
test rax, rax
jz short loc_27656
mov r14, rax
mov rdi, rsp
mov esi, 1
mov edx, 800h
mov rcx, rax
call _fread
test rax, rax
jz short loc_2766E
mov r15, rax
mov rdi, r14
call _fclose
mov cs:hello_conf_1, r15
mov rdi, r15
call MALLOC
mov cs:hello_conf_0, rax
mov rsi, rsp
mov rdi, rax
mov rdx, r15
call _memcpy
xor eax, eax
jmp short loc_276BD
loc_27656:
lea rsi, aFailedToOpenFi; "failed to open file %s.\n"
mov edi, 0FFFFFFFFh
mov rdx, rbx
xor eax, eax
call LOG
jmp short loc_276B8
loc_2766E:
lea rsi, aFailedToReadVa; "failed to read valid hello in file %s."...
mov edi, 0FFFFFFFFh
mov rdx, rbx
xor eax, eax
call LOG
call ___errno_location
mov edi, [rax]
call _strerror
lea rsi, aSSS; "(%s) %s: %s\n"
lea rdx, aSetHelloFile; "SET_hello_file"
mov edi, 0FFFFFFFFh
mov rcx, rbx
mov r8, rax
xor eax, eax
call LOG
mov rdi, r14
call _fclose
loc_276B8:
mov eax, 1
loc_276BD:
add rsp, 800h
pop rbx
pop r14
pop r15
retn
| long long SET_hello_file(long long a1, long long a2, long long a3)
{
long long v4; // rax
int v5; // ecx
int v6; // r8d
int v7; // r9d
long long v8; // r14
long long v9; // rax
int v10; // ecx
int v11; // r8d
int v12; // r9d
long long v13; // r15
const char *v15; // rdx
unsigned int *v16; // rax
int v17; // eax
int v18; // r9d
_BYTE v19[2072]; // [rsp+0h] [rbp-818h] BYREF
if ( hello_conf_0 )
{
free(hello_conf_0);
hello_conf_0 = 0LL;
}
v4 = fopen(a3, &unk_5D004);
if ( v4 )
{
v8 = v4;
v9 = fread(v19, 1LL, 2048LL, v4);
if ( v9 )
{
v13 = v9;
fclose(v8);
hello_conf_1 = v13;
hello_conf_0 = MALLOC(v13);
memcpy(hello_conf_0, v19, v13);
return 0LL;
}
LOG(-1, (unsigned int)"failed to read valid hello in file %s.\n", a3, v10, v11, v12);
v16 = (unsigned int *)__errno_location(0xFFFFFFFFLL, "failed to read valid hello in file %s.\n", v15);
v17 = strerror(*v16);
LOG(-1, (unsigned int)"(%s) %s: %s\n", (unsigned int)"SET_hello_file", a3, v17, v18);
fclose(v8);
}
else
{
LOG(-1, (unsigned int)"failed to open file %s.\n", a3, v5, v6, v7);
}
return 1LL;
}
| SET_hello_file:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x800
MOV RBX,RDX
MOV RDI,qword ptr [0x002a3598]
TEST RDI,RDI
JZ 0x001275f2
CALL 0x001151e0
MOV qword ptr [0x002a3598],0x0
LAB_001275f2:
LEA RSI,[0x15d004]
MOV RDI,RBX
CALL 0x00115e00
TEST RAX,RAX
JZ 0x00127656
MOV R14,RAX
MOV RDI,RSP
MOV ESI,0x1
MOV EDX,0x800
MOV RCX,RAX
CALL 0x001155b0
TEST RAX,RAX
JZ 0x0012766e
MOV R15,RAX
MOV RDI,R14
CALL 0x001154c0
MOV qword ptr [0x002a35a0],R15
MOV RDI,R15
CALL 0x00150885
MOV qword ptr [0x002a3598],RAX
MOV RSI,RSP
MOV RDI,RAX
MOV RDX,R15
CALL 0x001150c0
XOR EAX,EAX
JMP 0x001276bd
LAB_00127656:
LEA RSI,[0x165304]
MOV EDI,0xffffffff
MOV RDX,RBX
XOR EAX,EAX
CALL 0x001536da
JMP 0x001276b8
LAB_0012766e:
LEA RSI,[0x16531d]
MOV EDI,0xffffffff
MOV RDX,RBX
XOR EAX,EAX
CALL 0x001536da
CALL 0x00115b70
MOV EDI,dword ptr [RAX]
CALL 0x00115810
LEA RSI,[0x15d007]
LEA RDX,[0x165345]
MOV EDI,0xffffffff
MOV RCX,RBX
MOV R8,RAX
XOR EAX,EAX
CALL 0x001536da
MOV RDI,R14
CALL 0x001154c0
LAB_001276b8:
MOV EAX,0x1
LAB_001276bd:
ADD RSP,0x800
POP RBX
POP R14
POP R15
RET
|
int8 SET_hello_file(int8 param_1,int8 param_2,char *param_3)
{
FILE *__stream;
size_t __n;
int *piVar1;
char *pcVar2;
int1 auStack_818 [2048];
if (hello_conf_0 != (void *)0x0) {
free(hello_conf_0);
hello_conf_0 = (void *)0x0;
}
__stream = fopen(param_3,"rb");
if (__stream == (FILE *)0x0) {
LOG(0xffffffff,"failed to open file %s.\n",param_3);
}
else {
__n = fread(auStack_818,1,0x800,__stream);
if (__n != 0) {
fclose(__stream);
hello_conf_1 = __n;
hello_conf_0 = (void *)MALLOC(__n);
memcpy(hello_conf_0,auStack_818,__n);
return 0;
}
LOG(0xffffffff,"failed to read valid hello in file %s.\n",param_3);
piVar1 = __errno_location();
pcVar2 = strerror(*piVar1);
LOG(0xffffffff,"(%s) %s: %s\n","SET_hello_file",param_3,pcVar2);
fclose(__stream);
}
return 1;
}
|
Subsets and Splits
C++ Functions With Standard Library Dependencies
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++ Standard Library Function Analysis
Filters C++ code examples that use standard library containers and types, providing useful insights into common programming patterns and data structures in the dataset.
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.