	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_window                  ## -- Begin function create_window
	.p2align	4, 0x90
_create_window:                         ## @create_window
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, %rbx
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	shrq	$32, %r15
	shrq	$32, %r14
	callq	_xcb_generate_id
	movq	%rax, %rdx
	movq	_XCB_WINDOW_CLASS_INPUT_ONLY@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	cmpq	%r10, (%rax)
	movq	_XCB_COPY_FROM_PARENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmoveq	%rax, %rbx
	cmoveq	%rax, %r12
	movq	_root@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	subq	$8, %rsp
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rdx, %r12
	movl	%r14d, %r8d
	movq	-64(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	40(%rbp)
	pushq	32(%rbp)
	pushq	%rbx
	pushq	%r10
	pushq	$0
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	%r15
	callq	_xcb_create_window
	addq	$64, %rsp
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_xcb_request_check
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_ELOG
LBB0_2:
	movl	16(%rbp), %r14d
	movq	_xcursor_supported@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_XCB_CW_CURSOR@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	%r14d, %edi
	callq	_xcursor_get_cursor
	movq	40(%rbp), %rcx
	movq	%rax, (%rcx)
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_xcb_change_window_attributes
	cmpl	$0, 24(%rbp)
	je	LBB0_7
LBB0_6:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_xcb_map_window
LBB0_7:
	movq	%r12, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r13, %rdi
	callq	_xcb_generate_id
	movq	%rax, %r15
	movq	%rax, -48(%rbp)
	leaq	L_.str.1(%rip), %rdi
	xorl	%esi, %esi
	callq	_load_font
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_xcursor_get_xcb_cursor
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %r9d
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	pushq	$65535                          ## imm = 0xFFFF
	pushq	$65535                          ## imm = 0xFFFF
	pushq	$65535                          ## imm = 0xFFFF
	pushq	$0
	pushq	$0
	pushq	$0
	callq	_xcb_create_glyph_cursor
	addq	$48, %rsp
	movq	_XCB_CW_CURSOR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_xcb_change_window_attributes
	movq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_xcb_free_cursor
	cmpl	$0, 24(%rbp)
	jne	LBB0_6
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_XCB_WINDOW_CLASS_INPUT_ONLY,8,3 ## @XCB_WINDOW_CLASS_INPUT_ONLY
	.comm	_XCB_COPY_FROM_PARENT,8,3       ## @XCB_COPY_FROM_PARENT
	.comm	_root,4,2                       ## @root
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not create window. Error code: %d.\n"

	.comm	_xcursor_supported,8,3          ## @xcursor_supported
	.comm	_XCB_CW_CURSOR,8,3              ## @XCB_CW_CURSOR
L_.str.1:                               ## @.str.1
	.asciz	"cursor"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_window                  ; -- Begin function create_window
	.p2align	2
_create_window:                         ; @create_window
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	stp	w6, w7, [sp, #48]               ; 8-byte Folded Spill
	mov	x24, x5
	mov	x25, x4
	mov	x26, x3
	mov	x27, x2
	mov	x28, x1
	mov	x20, x0
	ldp	x21, x23, [x29, #16]
	lsr	x19, x1, #32
	lsr	x22, x2, #32
	bl	_xcb_generate_id
Lloh0:
	adrp	x8, _XCB_WINDOW_CLASS_INPUT_ONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XCB_WINDOW_CLASS_INPUT_ONLY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _XCB_COPY_FROM_PARENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _XCB_COPY_FROM_PARENT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x24
	csel	x8, x9, x25, eq
	csel	x1, x9, x26, eq
Lloh6:
	adrp	x9, _root@GOTPAGE
Lloh7:
	ldr	x9, [x9, _root@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x9]
	stp	x21, x23, [sp, #24]
	mov	x21, x0
	stp	x24, x8, [sp, #8]
	str	wzr, [sp]
	mov	x0, x20
	mov	x2, x21
	mov	x4, x22
	mov	x5, x27
	mov	x6, x19
	mov	x7, x28
	bl	_xcb_create_window
	mov	x1, x0
	mov	x0, x20
	bl	_xcb_request_check
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x0]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ELOG
LBB0_2:
Lloh11:
	adrp	x8, _xcursor_supported@GOTPAGE
Lloh12:
	ldr	x8, [x8, _xcursor_supported@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.3:
Lloh14:
	adrp	x8, _XCB_CW_CURSOR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _XCB_CW_CURSOR@GOTPAGEOFF]
Lloh16:
	ldr	x19, [x8]
	ldr	w0, [sp, #48]                   ; 4-byte Folded Reload
	bl	_xcursor_get_cursor
	str	x0, [x23]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, x23
	bl	_xcb_change_window_attributes
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_5
LBB0_4:
	mov	x0, x20
	mov	x1, x21
	bl	_xcb_map_window
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_6:
	mov	x0, x20
	bl	_xcb_generate_id
	mov	x19, x0
	str	x0, [sp, #56]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #0
	bl	_load_font
	mov	x22, x0
	ldr	w0, [sp, #48]                   ; 4-byte Folded Reload
	bl	_xcursor_get_xcb_cursor
	mov	x4, x0
	add	w5, w0, #1
	mov	x8, #281470681808895
	mov	x9, #281470681743360
	stp	x9, x8, [sp]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x22
	mov	w6, #0
	mov	w7, #0
	bl	_xcb_create_glyph_cursor
Lloh19:
	adrp	x8, _XCB_CW_CURSOR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _XCB_CW_CURSOR@GOTPAGEOFF]
Lloh21:
	ldr	x2, [x8]
	add	x3, sp, #56
	mov	x0, x20
	mov	x1, x21
	bl	_xcb_change_window_attributes
	ldr	x1, [sp, #56]
	mov	x0, x20
	bl	_xcb_free_cursor
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	cbnz	w8, LBB0_4
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_XCB_WINDOW_CLASS_INPUT_ONLY,8,3 ; @XCB_WINDOW_CLASS_INPUT_ONLY
	.comm	_XCB_COPY_FROM_PARENT,8,3       ; @XCB_COPY_FROM_PARENT
	.comm	_root,4,2                       ; @root
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not create window. Error code: %d.\n"

	.comm	_xcursor_supported,8,3          ; @xcursor_supported
	.comm	_XCB_CW_CURSOR,8,3              ; @XCB_CW_CURSOR
l_.str.1:                               ; @.str.1
	.asciz	"cursor"

.subsections_via_symbols
