// File: /workspace/github_c_makefile_star2_O0/Paxa[P]fast_excel/libxlsxwriter/src/relationships.c
// Function: write_relationship
STATIC void
_write_relationship(lxw_relationships *self, const char *type,
                    const char *target, const char *target_mode)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;
    char r_id[LXW_MAX_ATTRIBUTE_LENGTH] = { 0 };

    self->rel_id++;
    lxw_snprintf(r_id, LXW_ATTR_32, "rId%d", self->rel_id);

    LXW_INIT_ATTRIBUTES();
    LXW_PUSH_ATTRIBUTES_STR("Id", r_id);
    LXW_PUSH_ATTRIBUTES_STR("Type", type);
    LXW_PUSH_ATTRIBUTES_STR("Target", target);

    if (target_mode)
        LXW_PUSH_ATTRIBUTES_STR("TargetMode", target_mode);

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

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x860, %rsp            # imm = 0x860
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
leaq -0x860(%rbp), %rdi
xorl %esi, %esi
movl $0x820, %edx            # imm = 0x820
callq 0xc6a0
movq -0x8(%rbp), %rax
movl 0x8(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x8(%rax)
leaq -0x860(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x8(%rax), %ecx
movl $0x20, %esi
leaq 0x379c4(%rip), %rdx     # 0x685b9
movb $0x0, %al
callq 0xc5d0
movq $0x0, -0x30(%rbp)
leaq -0x30(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x30c0e
leaq -0x860(%rbp), %rsi
leaq 0x3b590(%rip), %rdi     # 0x6c1ac
callq 0xc030
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq $0x0, 0x1040(%rax)
movq -0x38(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rax
addq $0x1040, %rax           # imm = 0x1040
movq %rax, -0x28(%rbp)
jmp 0x30c4f
jmp 0x30c51
movq -0x10(%rbp), %rsi
leaq 0x37d59(%rip), %rdi     # 0x689b5
callq 0xc030
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq $0x0, 0x1040(%rax)
movq -0x38(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rax
addq $0x1040, %rax           # imm = 0x1040
movq %rax, -0x28(%rbp)
jmp 0x30c8f
jmp 0x30c91
movq -0x18(%rbp), %rsi
leaq 0x38467(%rip), %rdi     # 0x69103
callq 0xc030
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq $0x0, 0x1040(%rax)
movq -0x38(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rax
addq $0x1040, %rax           # imm = 0x1040
movq %rax, -0x28(%rbp)
jmp 0x30ccf
cmpq $0x0, -0x20(%rbp)
je 0x30d18
jmp 0x30cd8
movq -0x20(%rbp), %rsi
leaq 0x38427(%rip), %rdi     # 0x6910a
callq 0xc030
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq $0x0, 0x1040(%rax)
movq -0x38(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rax
addq $0x1040, %rax           # imm = 0x1040
movq %rax, -0x28(%rbp)
jmp 0x30d16
jmp 0x30d18
movq -0x8(%rbp), %rax
movq (%rax), %rdi
leaq 0x383ef(%rip), %rsi     # 0x69115
leaq -0x30(%rbp), %rdx
callq 0xcca0
jmp 0x30d31
cmpq $0x0, -0x30(%rbp)
sete %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x30d41
jmp 0x30d73
movq -0x30(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movq 0x1040(%rax), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
jne 0x30d66
leaq -0x30(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x30d68
movq -0x38(%rbp), %rdi
callq 0xc0d0
jmp 0x30d31
jmp 0x30d75
addq $0x860, %rsp            # imm = 0x860
popq %rbp
retq
nop