// File: /workspace/github_c_makefile_star2_O0/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_write_hyperlink_external
STATIC void
_worksheet_write_hyperlink_external(lxw_worksheet *self, lxw_row_t row_num,
                                    lxw_col_t col_num, const char *location,
                                    const char *tooltip, uint16_t id)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;
    char ref[LXW_MAX_CELL_NAME_LENGTH];
    char r_id[LXW_MAX_ATTRIBUTE_LENGTH];

    lxw_rowcol_to_cell(ref, row_num, col_num);

    lxw_snprintf(r_id, LXW_ATTR_32, "rId%d", id);

    LXW_INIT_ATTRIBUTES();
    LXW_PUSH_ATTRIBUTES_STR("ref", ref);
    LXW_PUSH_ATTRIBUTES_STR("r:id", r_id);

    if (location)
        LXW_PUSH_ATTRIBUTES_STR("location", location);

    if (tooltip)
        LXW_PUSH_ATTRIBUTES_STR("tooltip", tooltip);

    lxw_xml_empty_tag(self->file, "hyperlink", &attributes);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x870, %rsp            # imm = 0x870
movw %r9w, %ax
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movw %dx, -0xe(%rbp)
movq %rcx, -0x18(%rbp)
movq %r8, -0x20(%rbp)
movw %ax, -0x22(%rbp)
leaq -0x4e(%rbp), %rdi
movl -0xc(%rbp), %esi
movzwl -0xe(%rbp), %edx
callq 0xca90
leaq -0x870(%rbp), %rdi
movzwl -0x22(%rbp), %ecx
movl $0x20, %esi
leaq 0x5fec(%rip), %rdx      # 0x685b9
movb $0x0, %al
callq 0xc5d0
movq $0x0, -0x38(%rbp)
leaq -0x38(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x625e6
leaq -0x4e(%rbp), %rsi
leaq 0xca37(%rip), %rdi      # 0x6f028
callq 0xc030
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq $0x0, 0x1040(%rax)
movq -0x40(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x40(%rbp), %rax
addq $0x1040, %rax           # imm = 0x1040
movq %rax, -0x30(%rbp)
jmp 0x62624
jmp 0x62626
leaq -0x870(%rbp), %rsi
leaq 0x5f8b(%rip), %rdi      # 0x685bf
callq 0xc030
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq $0x0, 0x1040(%rax)
movq -0x40(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x40(%rbp), %rax
addq $0x1040, %rax           # imm = 0x1040
movq %rax, -0x30(%rbp)
jmp 0x62667
cmpq $0x0, -0x18(%rbp)
je 0x626b0
jmp 0x62670
movq -0x18(%rbp), %rsi
leaq 0xc6b3(%rip), %rdi      # 0x6ed2e
callq 0xc030
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq $0x0, 0x1040(%rax)
movq -0x40(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x40(%rbp), %rax
addq $0x1040, %rax           # imm = 0x1040
movq %rax, -0x30(%rbp)
jmp 0x626ae
jmp 0x626b0
cmpq $0x0, -0x20(%rbp)
je 0x626f9
jmp 0x626b9
movq -0x20(%rbp), %rsi
leaq 0x5f00(%rip), %rdi      # 0x685c4
callq 0xc030
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq $0x0, 0x1040(%rax)
movq -0x40(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x40(%rbp), %rax
addq $0x1040, %rax           # imm = 0x1040
movq %rax, -0x30(%rbp)
jmp 0x626f7
jmp 0x626f9
movq -0x8(%rbp), %rax
movq (%rax), %rdi
leaq 0xa1e1(%rip), %rsi      # 0x6c8e8
leaq -0x38(%rbp), %rdx
callq 0xcca0
jmp 0x62712
cmpq $0x0, -0x38(%rbp)
sete %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x62722
jmp 0x62754
movq -0x38(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rax
movq 0x1040(%rax), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
jne 0x62747
leaq -0x38(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x62749
movq -0x40(%rbp), %rdi
callq 0xc0d0
jmp 0x62712
jmp 0x62756
addq $0x870, %rsp            # imm = 0x870
popq %rbp
retq
nop