	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_rectangle
_draw_rectangle:                        ## @draw_rectangle
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	(%rdi), %rbx
	movl	8(%rbx), %edi
	callq	_xcb_generate_id
	movq	_XCB_GC_FOREGROUND@GOTPCREL(%rip), %rdx
	movq	_XCB_GC_BACKGROUND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_XCB_GC_LINE_WIDTH@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_XCB_GC_LINE_STYLE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_XCB_GC_FILL_STYLE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	24(%rbx), %rdx
	movl	(%rdx), %esi
	movl	%esi, -48(%rbp)
	movl	4(%rdx), %edx
	movl	%edx, -44(%rbp)
	movl	(%rbx), %edx
	movl	%edx, -40(%rbp)
	movq	_XCB_LINE_STYLE_DOUBLE_DASH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -36(%rbp)
	movq	_XCB_FILL_STYLE_SOLID@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -32(%rbp)
	movabsq	$4294967297, %rdx               ## imm = 0x100000001
	movq	%rdx, -64(%rbp)
	movl	(%rbx), %edx
	addl	%edx, %edx
	addl	$-3, %edx
	movl	16(%rbx), %esi
	addl	%edx, %esi
	movl	%esi, -56(%rbp)
	addl	12(%rbx), %edx
	movl	%eax, %r14d
	movl	%edx, -52(%rbp)
	movl	4(%rbx), %edx
	movl	8(%rbx), %edi
	leaq	-48(%rbp), %r8
	movl	%eax, %esi
	callq	_xcb_create_gc
	movl	4(%rbx), %esi
	movl	8(%rbx), %edi
	leaq	-64(%rbp), %r8
	movl	%r14d, %edx
	movl	$1, %ecx
	callq	_xcb_poly_rectangle
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_XCB_GC_FOREGROUND,4,2          ## @XCB_GC_FOREGROUND
	.comm	_XCB_GC_BACKGROUND,4,2          ## @XCB_GC_BACKGROUND
	.comm	_XCB_GC_LINE_WIDTH,4,2          ## @XCB_GC_LINE_WIDTH
	.comm	_XCB_GC_LINE_STYLE,4,2          ## @XCB_GC_LINE_STYLE
	.comm	_XCB_GC_FILL_STYLE,4,2          ## @XCB_GC_FILL_STYLE
	.comm	_XCB_LINE_STYLE_DOUBLE_DASH,4,2 ## @XCB_LINE_STYLE_DOUBLE_DASH
	.comm	_XCB_FILL_STYLE_SOLID,4,2       ## @XCB_FILL_STYLE_SOLID
	.no_dead_strip	_draw_rectangle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_rectangle
_draw_rectangle:                        ; @draw_rectangle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	x20, [x0]
	ldr	w0, [x20, #8]
	bl	_xcb_generate_id
	mov	x19, x0
Lloh3:
	adrp	x8, _XCB_GC_FOREGROUND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XCB_GC_FOREGROUND@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _XCB_GC_BACKGROUND@GOTPAGE
Lloh7:
	ldr	x9, [x9, _XCB_GC_BACKGROUND@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _XCB_GC_LINE_WIDTH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _XCB_GC_LINE_WIDTH@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _XCB_GC_LINE_STYLE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _XCB_GC_LINE_STYLE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _XCB_GC_FILL_STYLE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _XCB_GC_FILL_STYLE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w3, w8, w9
	ldr	x8, [x20, #24]
	ldr	d0, [x8]
	str	d0, [sp, #16]
	ldr	w8, [x20]
Lloh18:
	adrp	x9, _XCB_LINE_STYLE_DOUBLE_DASH@GOTPAGE
Lloh19:
	ldr	x9, [x9, _XCB_LINE_STYLE_DOUBLE_DASH@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #24]
Lloh21:
	adrp	x8, _XCB_FILL_STYLE_SOLID@GOTPAGE
Lloh22:
	ldr	x8, [x8, _XCB_FILL_STYLE_SOLID@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	movi.2s	v0, #1
	str	d0, [sp]
	ldr	w8, [x20]
	lsl	w8, w8, #1
	sub	w8, w8, #3
	dup.2s	v0, w8
	ldur	d1, [x20, #12]
	add.2s	v0, v0, v1
	rev64.2s	v0, v0
	str	d0, [sp, #8]
	ldp	w2, w0, [x20, #4]
	add	x4, sp, #16
	mov	x1, x19
	bl	_xcb_create_gc
	ldp	w1, w0, [x20, #4]
	mov	x4, sp
	mov	x2, x19
	mov	w3, #1
	bl	_xcb_poly_rectangle
	ldur	x8, [x29, #-24]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_XCB_GC_FOREGROUND,4,2          ; @XCB_GC_FOREGROUND
	.comm	_XCB_GC_BACKGROUND,4,2          ; @XCB_GC_BACKGROUND
	.comm	_XCB_GC_LINE_WIDTH,4,2          ; @XCB_GC_LINE_WIDTH
	.comm	_XCB_GC_LINE_STYLE,4,2          ; @XCB_GC_LINE_STYLE
	.comm	_XCB_GC_FILL_STYLE,4,2          ; @XCB_GC_FILL_STYLE
	.comm	_XCB_LINE_STYLE_DOUBLE_DASH,4,2 ; @XCB_LINE_STYLE_DOUBLE_DASH
	.comm	_XCB_FILL_STYLE_SOLID,4,2       ; @XCB_FILL_STYLE_SOLID
	.no_dead_strip	_draw_rectangle
.subsections_via_symbols
