// File: /workspace/github_c_makefile_star2_O0/Paxa[P]fast_excel/libxlsxwriter/src/custom.c
// Function: chart_write_custom_property
STATIC void
_chart_write_custom_property(lxw_custom *self,
                             lxw_custom_property *custom_property)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;
    char fmtid[] = "{D5CDD505-2E9C-101B-9397-08002B2CF9AE}";

    self->pid++;

    LXW_INIT_ATTRIBUTES();
    LXW_PUSH_ATTRIBUTES_STR("fmtid", fmtid);
    LXW_PUSH_ATTRIBUTES_INT("pid", self->pid + 1);
    LXW_PUSH_ATTRIBUTES_STR("name", custom_property->name);

    lxw_xml_start_tag(self->file, "property", &attributes);

    if (custom_property->type == LXW_CUSTOM_STRING) {
        /* Write the vt:lpwstr element. */
        _chart_write_vt_lpwstr(self, custom_property->u.string);
    }
    else if (custom_property->type == LXW_CUSTOM_DOUBLE) {
        /* Write the vt:r8 element. */
        _chart_write_vt_r_8(self, custom_property->u.number);
    }
    else if (custom_property->type == LXW_CUSTOM_INTEGER) {
        /* Write the vt:i4 element. */
        _custom_write_vt_i_4(self, custom_property->u.integer);
    }
    else if (custom_property->type == LXW_CUSTOM_BOOLEAN) {
        /* Write the vt:bool element. */
        _custom_write_vt_bool(self, custom_property->u.boolean);
    }
    else if (custom_property->type == LXW_CUSTOM_DATETIME) {
        /* Write the vt:filetime element. */
        _custom_write_vt_filetime(self, &custom_property->u.datetime);
    }

    lxw_xml_end_tag(self->file, "property");

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq -0x50(%rbp), %rdi
leaq 0x40bd5(%rip), %rsi     # 0x684d0
movl $0x27, %edx
callq 0xc980
movq -0x8(%rbp), %rax
movl 0x10(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x10(%rax)
movq $0x0, -0x20(%rbp)
leaq -0x20(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0x27924
leaq -0x50(%rbp), %rsi
leaq 0x40aef(%rip), %rdi     # 0x6841e
callq 0xc030
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq $0x0, 0x1040(%rax)
movq -0x28(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x28(%rbp), %rax
addq $0x1040, %rax           # imm = 0x1040
movq %rax, -0x18(%rbp)
jmp 0x27962
jmp 0x27964
movq -0x8(%rbp), %rax
movl 0x10(%rax), %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %esi
leaq 0x43bc9(%rip), %rdi     # 0x6b542
callq 0xc1b0
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq $0x0, 0x1040(%rax)
movq -0x28(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x28(%rbp), %rax
addq $0x1040, %rax           # imm = 0x1040
movq %rax, -0x18(%rbp)
jmp 0x279ac
jmp 0x279ae
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
leaq 0x3f7f2(%rip), %rdi     # 0x671af
callq 0xc030
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq $0x0, 0x1040(%rax)
movq -0x28(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x28(%rbp), %rax
addq $0x1040, %rax           # imm = 0x1040
movq %rax, -0x18(%rbp)
jmp 0x279f0
movq -0x8(%rbp), %rax
movq (%rax), %rdi
leaq 0x40a26(%rip), %rsi     # 0x68424
leaq -0x20(%rbp), %rdx
callq 0xc390
movq -0x10(%rbp), %rax
cmpl $0x1, (%rax)
jne 0x27a23
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x27b00
jmp 0x27a99
movq -0x10(%rbp), %rax
cmpl $0x2, (%rax)
jne 0x27a40
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movsd 0x10(%rax), %xmm0
callq 0x27b40
jmp 0x27a97
movq -0x10(%rbp), %rax
cmpl $0x3, (%rax)
jne 0x27a5b
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0x10(%rax), %esi
callq 0x27b90
jmp 0x27a95
movq -0x10(%rbp), %rax
cmpl $0x4, (%rax)
jne 0x27a77
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movzbl 0x10(%rax), %esi
callq 0x27be0
jmp 0x27a93
movq -0x10(%rbp), %rax
cmpl $0x5, (%rax)
jne 0x27a91
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x10, %rsi
callq 0x27c40
jmp 0x27a93
jmp 0x27a95
jmp 0x27a97
jmp 0x27a99
movq -0x8(%rbp), %rax
movq (%rax), %rdi
leaq 0x4097d(%rip), %rsi     # 0x68424
callq 0xc060
jmp 0x27aae
cmpq $0x0, -0x20(%rbp)
sete %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x27abe
jmp 0x27af0
movq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
movq 0x1040(%rax), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0x27ae3
leaq -0x20(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0x27ae5
movq -0x28(%rbp), %rdi
callq 0xc0d0
jmp 0x27aae
jmp 0x27af2
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax,%rax)