	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_FULLSCREEN@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	callq	_glfwGetPrimaryMonitor
	movq	%rax, %rbx
	leaq	-12(%rbp), %rsi
	movq	%rax, %rdi
	callq	_glfwGetVideoModes
	movslq	-12(%rbp), %rcx
	movl	-8(%rax,%rcx,8), %edi
	movl	-4(%rax,%rcx,8), %esi
	jmp	LBB0_3
LBB0_1:
	movq	_WINDOW_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_WINDOW_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
LBB0_3:
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_glfwCreateWindow
	movq	_g@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINDOW_WIDTH,4,2               ## @WINDOW_WIDTH
	.comm	_WINDOW_HEIGHT,4,2              ## @WINDOW_HEIGHT
	.comm	_FULLSCREEN,8,3                 ## @FULLSCREEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Craft"

	.comm	_g,8,3                          ## @g
.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, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _FULLSCREEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FULLSCREEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_glfwGetPrimaryMonitor
	mov	x19, x0
	add	x1, sp, #12
	bl	_glfwGetVideoModes
	ldrsw	x8, [sp, #12]
	add	x8, x0, x8, lsl #3
	ldp	w0, w1, [x8, #-8]
	b	LBB0_3
LBB0_2:
	mov	x19, #0
Lloh3:
	adrp	x8, _WINDOW_WIDTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WINDOW_WIDTH@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _WINDOW_HEIGHT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WINDOW_HEIGHT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
LBB0_3:
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x19
	mov	x4, #0
	bl	_glfwCreateWindow
Lloh11:
	adrp	x8, _g@GOTPAGE
Lloh12:
	ldr	x8, [x8, _g@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_WINDOW_WIDTH,4,2               ; @WINDOW_WIDTH
	.comm	_WINDOW_HEIGHT,4,2              ; @WINDOW_HEIGHT
	.comm	_FULLSCREEN,8,3                 ; @FULLSCREEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Craft"

	.comm	_g,8,3                          ; @g
.subsections_via_symbols
