// File: /workspace/github_c_makefile_star2_O2/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 0x10(%r9), %r10d
leal (%r10,%rcx), %r11d
movq %rsp, %rax
movw %r11w, (%rax)
andw $0x0, 0x2(%rax)
movw %dx, 0x4(%rax)
movzwl 0x12(%r9), %r14d
movl %edx, %ebx
addl %ecx, %ebx
movl %ebx, %r9d
addl %r14d, %r9d
movw %r9w, 0x6(%rax)
andw $0x0, 0x8(%rax)
leal (%r14,%rcx), %ebp
movw %bp, 0xa(%rax)
movw %r11w, 0xc(%rax)
movw %dx, 0xe(%rax)
addl %ecx, %r8d
addl %r8d, %r10d
movw %r10w, 0x10(%rax)
andw $0x0, 0x12(%rax)
movw %dx, 0x14(%rax)
movw %bp, 0x16(%rax)
andw $0x0, 0x18(%rax)
movl %esi, %r9d
movl %edi, %esi
addl %r14d, %r8d
movw %r8w, 0x1a(%rax)
movw %r11w, 0x1c(%rax)
movw %dx, 0x1e(%rax)
movw %r10w, 0x20(%rax)
movw %r8w, 0x22(%rax)
movw %dx, 0x24(%rax)
movw %bx, 0x26(%rax)
movw %r10w, 0x28(%rax)
movw %r8w, 0x2a(%rax)
movw %bx, 0x2c(%rax)
movw %dx, 0x2e(%rax)
movw %r11w, 0x30(%rax)
movw %r8w, 0x32(%rax)
movw %dx, 0x34(%rax)
movw %bx, 0x36(%rax)
movw %r10w, 0x38(%rax)
movw %bp, 0x3a(%rax)
movw %bx, 0x3c(%rax)
movw %dx, 0x3e(%rax)
leaq 0x6ccf(%rip), %rcx      # 0xc8e8
movq (%rcx), %rdi
pushq $0x8
popq %rcx
movl %r9d, %edx
movq %rax, %r8
callq 0x32a0
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop