// File: /workspace/github_c_makefile_star2_O1/adsr[P]phpspy/addr_objdump.c
// Function: get_symbol_addr
int get_symbol_addr(addr_memo_t *memo, pid_t pid, const char *symbol, uint64_t *raddr) {
    char *php_bin_path, *php_bin_path_root;
    uint64_t *php_base_addr;
    uint64_t addr_offset;
    php_bin_path = memo->php_bin_path;
    php_bin_path_root = memo->php_bin_path_root;
    php_base_addr = &memo->php_base_addr;
    if (*php_bin_path == '\0' && get_php_bin_path(pid, php_bin_path_root, php_bin_path) != 0) {
        return 1;
    } else if (*php_base_addr == 0 && get_php_base_addr(pid, php_bin_path_root, php_bin_path, php_base_addr) != 0) {
        return 1;
    } else if (get_symbol_offset(php_bin_path_root, symbol, &addr_offset) != 0) {
        return 1;
    }
    *raddr = *php_base_addr + addr_offset;
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rcx, %rbx
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %r14
leaq 0x100(%rdi), %r12
cmpb $0x0, (%rdi)
je 0x19673
cmpq $0x0, 0x200(%r14)
je 0x196d1
leaq 0x5c1b(%rip), %rcx      # 0x1f26a
leaq 0x100(%rsp), %rsi
movl $0x100, %edx            # imm = 0x100
movq %r12, %rdi
callq 0x19570
testl %eax, %eax
je 0x19725
xorl %ebp, %ebp
jmp 0x19755
leaq 0xbcfe(%rip), %rax      # 0x25378
movq (%rax), %rdi
leaq 0x5538(%rip), %rcx      # 0x1ebbc
leaq 0x100(%rsp), %rsi
movl $0x100, %edx            # imm = 0x100
callq 0x19570
testl %eax, %eax
jne 0x19810
leaq 0x5a5a(%rip), %rdx      # 0x1f0ff
movq %rsp, %rdi
leaq 0x100(%rsp), %rcx
movl %ebp, %r8d
movl %ebp, %r9d
xorl %eax, %eax
callq 0x1987d
testl %eax, %eax
je 0x19788
leaq 0x5a94(%rip), %rdi      # 0x1f160
jmp 0x19809
leaq 0x5b60(%rip), %rcx      # 0x1f238
leaq 0x100(%rsp), %rsi
movl $0x100, %edx            # imm = 0x100
movq %r14, %rdi
callq 0x19570
testl %eax, %eax
jne 0x19810
leaq 0x5b1d(%rip), %rdx      # 0x1f219
movq %rsp, %rdi
leaq 0x100(%rsp), %rcx
movl %ebp, %r8d
xorl %eax, %eax
callq 0x1987d
testl %eax, %eax
je 0x197b3
leaq 0x5b1d(%rip), %rdi      # 0x1f23d
jmp 0x19809
leaq 0x5ba1(%rip), %rdx      # 0x1f2cd
movq %rsp, %rdi
leaq 0x100(%rsp), %rcx
movq %r15, %r8
xorl %eax, %eax
callq 0x1987d
testl %eax, %eax
je 0x19774
leaq 0x5baf(%rip), %rdi      # 0x1f2fb
xorl %ebp, %ebp
xorl %eax, %eax
callq 0xadcf
movl $0x1, %ecx
testb %bpl, %bpl
je 0x19815
addq 0x200(%r14), %rax
movq %rax, (%rbx)
xorl %ecx, %ecx
jmp 0x19815
movq %rsp, %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x62e0
movb $0x1, %bpl
jmp 0x19755
leaq 0x59eb(%rip), %rdx      # 0x1f17a
movq %rsp, %r8
movl $0x100, %esi            # imm = 0x100
movq %r12, %rdi
movl %ebp, %ecx
xorl %eax, %eax
callq 0x61d0
cmpl $0xff, %eax
jle 0x19829
leaq 0x59da(%rip), %rdi      # 0x1f18b
jmp 0x19809
movq %rsp, %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x62e0
movq %rax, %r13
leaq 0x5a9e(%rip), %rcx      # 0x1f26a
leaq 0x100(%rsp), %rsi
movl $0x100, %edx            # imm = 0x100
movq %r12, %rdi
callq 0x19570
testl %eax, %eax
jne 0x19810
leaq 0x5a88(%rip), %rdx      # 0x1f274
movq %rsp, %rdi
leaq 0x100(%rsp), %rcx
xorl %eax, %eax
callq 0x1987d
testl %eax, %eax
je 0x1985f
leaq 0x5a98(%rip), %rdi      # 0x1f2a1
xorl %eax, %eax
callq 0xadcf
movl $0x1, %ecx
movl %ecx, %eax
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, %rdi
xorl %esi, %esi
callq 0x6500
testl %eax, %eax
je 0x1984f
leaq 0x5915(%rip), %rdx      # 0x1f153
movl $0x100, %esi            # imm = 0x100
movq %r12, %rdi
movl %ebp, %ecx
xorl %eax, %eax
callq 0x61d0
movq %rsp, %rsi
movq %r14, %rdi
callq 0x6090
jmp 0x1963a
movq %rsp, %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x62e0
subq %rax, %r13
movq %r13, 0x200(%r14)
jmp 0x19648