// File: /workspace/github_c_makefile_star2_O1/comfies[P]custard/src/wm/decorations.c
// Function: triple_border_transient
void triple_border_transient(xcb_pixmap_t pixmap,
    xcb_gcontext_t graphics_context, unsigned int inner_size,
    unsigned int outer_size, unsigned int border_size,
    xcb_get_geometry_reply_t *geometry) {

    xcb_rectangle_t inner_border[8] = {
        {
            (short)(geometry->width + outer_size), 0,
            (unsigned short)inner_size,
            (unsigned short)(geometry->height + outer_size + inner_size)
        },
        {
            0, (short)(geometry->height + outer_size),
            (unsigned short)(geometry->width + outer_size),
            (unsigned short)inner_size
        },
        {
            (short)(geometry->width + border_size + outer_size), 0,
            (unsigned short)inner_size,
            (unsigned short)(geometry->height + outer_size)
        },
        {
            0, (short)(geometry->height + border_size + outer_size),
            (unsigned short)(geometry->width + outer_size),
            (unsigned short)inner_size
        },
        {
            (short)(geometry->width + border_size + outer_size),
            (short)(geometry->height + border_size + outer_size),
            (unsigned short)inner_size,
            (unsigned short)(outer_size + inner_size)
        },
        {
            (short)(geometry->width + border_size + outer_size),
            (short)(geometry->height + border_size + outer_size),
            (unsigned short)(outer_size + inner_size),
            (unsigned short)inner_size
        },
        {
            (short)(geometry->width + outer_size),
            (short)(geometry->height + border_size + outer_size),
            (unsigned short)inner_size,
            (unsigned short)(outer_size + inner_size)
        },
        {
            (short)(geometry->width + border_size + outer_size),
            (short)(geometry->height + outer_size),
            (unsigned short)(outer_size + inner_size),
            (unsigned short)inner_size
        }
    };

    xcb_poly_fill_rectangle(xcb_connection, pixmap, graphics_context,
        8, inner_border);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movl %r8d, %r10d
movl %edx, %eax
movl %esi, %edx
movl %edi, %esi
movl 0x10(%r9), %edi
leal (%rdi,%rcx), %r11d
movq %rsp, %r8
movw %r11w, (%r8)
xorl %ebp, %ebp
movw %bp, 0x2(%r8)
movw %ax, 0x4(%r8)
movzwl 0x12(%r9), %r14d
movl %eax, %r9d
addl %ecx, %r9d
movl %r9d, %ebx
addl %r14d, %ebx
movw %bx, 0x6(%r8)
movw %bp, 0x8(%r8)
leal (%r14,%rcx), %ebx
movw %bx, 0xa(%r8)
movw %r11w, 0xc(%r8)
movw %ax, 0xe(%r8)
addl %ecx, %r10d
addl %r10d, %edi
movw %di, 0x10(%r8)
movw %bp, 0x12(%r8)
movw %ax, 0x14(%r8)
movw %bx, 0x16(%r8)
movw %bp, 0x18(%r8)
addl %r14d, %r10d
movw %r10w, 0x1a(%r8)
movw %r11w, 0x1c(%r8)
movw %ax, 0x1e(%r8)
movw %di, 0x20(%r8)
movw %r10w, 0x22(%r8)
movw %ax, 0x24(%r8)
movw %r9w, 0x26(%r8)
movw %di, 0x28(%r8)
movw %r10w, 0x2a(%r8)
movw %r9w, 0x2c(%r8)
movw %ax, 0x2e(%r8)
movw %r11w, 0x30(%r8)
movw %r10w, 0x32(%r8)
movw %ax, 0x34(%r8)
movw %r9w, 0x36(%r8)
movw %di, 0x38(%r8)
movw %bx, 0x3a(%r8)
movw %r9w, 0x3c(%r8)
movw %ax, 0x3e(%r8)
leaq 0x6a0f(%rip), %rax      # 0xc8f8
movq (%rax), %rdi
movl $0x8, %ecx
callq 0x32a0
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop