	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_glfwCreateWindow               ## -- Begin function glfwCreateWindow
	.p2align	4, 0x90
_glfwCreateWindow:                      ## @glfwCreateWindow
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movl	%edi, %r12d
	xorl	%edi, %edi
	testq	%rdx, %rdx
	setne	%dil
	callq	_assert
	movl	%r12d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	movl	%r15d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	xorl	%edi, %edi
	callq	__GLFW_REQUIRE_INIT_OR_RETURN
	testl	%r12d, %r12d
	jle	LBB0_9
## %bb.1:
	testl	%r15d, %r15d
	jle	LBB0_9
## %bb.2:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	__glfw@GOTPCREL(%rip), %r14
	movl	96(%r14), %eax
	movl	%eax, -48(%rbp)
	movq	88(%r14), %rax
	movq	%rax, -56(%rbp)
	movq	72(%r14), %rax
	movq	%rax, -72(%rbp)
	movups	8(%r14), %xmm0
	movups	24(%r14), %xmm1
	movups	40(%r14), %xmm2
	movups	56(%r14), %xmm3
	movaps	%xmm0, -144(%rbp)
	movaps	%xmm1, -128(%rbp)
	movaps	%xmm2, -112(%rbp)
	movaps	%xmm3, -96(%rbp)
	movl	%r12d, -144(%rbp)
	movl	%r15d, -140(%rbp)
	movq	%rbx, -136(%rbp)
	movq	%r13, -64(%rbp)
	leaq	-72(%rbp), %rdi
	callq	__glfwIsValidContextConfig
	testl	%eax, %eax
	je	LBB0_12
## %bb.3:
	movl	$1, %edi
	movl	$112, %esi
	callq	_calloc
	movq	%rax, %rbx
	movq	104(%r14), %rax
	movq	%rax, 104(%rbx)
	movq	%rbx, 104(%r14)
	movl	%r12d, 80(%rbx)
	movl	%r15d, 84(%rbx)
	movl	-48(%rbp), %eax
	movl	%eax, 100(%rbx)
	movl	-52(%rbp), %eax
	movl	%eax, 96(%rbx)
	movl	-56(%rbp), %eax
	movl	%eax, 92(%rbx)
	movl	(%r14), %eax
	movl	%eax, 88(%rbx)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rbx)
	movl	-88(%rbp), %eax
	movl	%eax, 76(%rbx)
	movups	-104(%rbp), %xmm0
	movups	%xmm0, 60(%rbx)
	movq	_GLFW_CURSOR_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	_GLFW_DONT_CARE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%rbx)
	movq	%rax, 40(%rbx)
	movq	%rax, 32(%rbx)
	movq	%rax, 24(%rbx)
	movq	%rax, 16(%rbx)
	movq	%rax, 8(%rbx)
	leaq	-144(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	callq	__glfwPlatformCreateWindow
	testl	%eax, %eax
	je	LBB0_11
## %bb.4:
	movq	-72(%rbp), %rax
	movq	_GLFW_NO_API@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	callq	__glfwRefreshContextAttribs
	testl	%eax, %eax
	je	LBB0_11
LBB0_6:
	cmpq	$0, (%rbx)
	je	LBB0_14
## %bb.7:
	cmpq	$0, -112(%rbp)
	je	LBB0_13
## %bb.8:
	movq	%rbx, %rdi
	callq	__glfwCenterCursorInContentArea
	jmp	LBB0_13
LBB0_9:
	movq	_GLFW_INVALID_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	__glfwInputError
	jmp	LBB0_12
LBB0_11:
	movq	%rbx, %rdi
	callq	_glfwDestroyWindow
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movq	%rbx, %rax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	cmpq	$0, -120(%rbp)
	je	LBB0_13
## %bb.15:
	movq	%rbx, %rdi
	callq	__glfwPlatformShowWindow
	cmpq	$0, -128(%rbp)
	je	LBB0_13
## %bb.16:
	movq	%rbx, %rdi
	callq	__glfwPlatformFocusWindow
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_GLFW_INVALID_VALUE,4,2         ## @GLFW_INVALID_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid window size %ix%i"

	.comm	__glfw,112,3                    ## @_glfw
	.comm	_GLFW_CURSOR_NORMAL,4,2         ## @GLFW_CURSOR_NORMAL
	.comm	_GLFW_DONT_CARE,8,3             ## @GLFW_DONT_CARE
	.comm	_GLFW_NO_API,8,3                ## @GLFW_NO_API
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_glfwCreateWindow               ; -- Begin function glfwCreateWindow
	.p2align	2
_glfwCreateWindow:                      ; @glfwCreateWindow
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	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
	mov	x19, x4
	mov	x20, x3
	mov	x23, x2
	mov	x22, x1
	mov	x21, x0
	cmp	x2, #0
	cset	w0, ne
	bl	_assert
	mvn	w8, w21
	lsr	w0, w8, #31
	bl	_assert
	mvn	w8, w22
	lsr	w0, w8, #31
	bl	_assert
	mov	x0, #0
	bl	__GLFW_REQUIRE_INIT_OR_RETURN
	cmp	w21, #1
	b.lt	LBB0_9
; %bb.1:
	cmp	w22, #0
	b.le	LBB0_9
; %bb.2:
Lloh0:
	adrp	x24, __glfw@GOTPAGE
Lloh1:
	ldr	x24, [x24, __glfw@GOTPAGEOFF]
	ldr	x8, [x24, #88]
	stur	x8, [x29, #-64]
	ldr	w8, [x24, #96]
	stur	w8, [x29, #-56]
	ldr	x8, [x24, #72]
	ldur	q0, [x24, #8]
	ldur	q1, [x24, #24]
	stp	q0, q1, [sp]
	ldur	q0, [x24, #40]
	ldur	q1, [x24, #56]
	stp	q0, q1, [sp, #32]
	stp	w21, w22, [sp]
	str	x23, [sp, #8]
	stp	x8, x19, [sp, #64]
	add	x0, sp, #64
	bl	__glfwIsValidContextConfig
	cbz	w0, LBB0_11
; %bb.3:
	mov	w0, #1
	mov	w1, #112
	bl	_calloc
	mov	x19, x0
	ldr	x8, [x24, #104]
	str	x8, [x0, #104]
	str	x0, [x24, #104]
	ldur	w8, [x29, #-56]
	str	w8, [x0, #100]
	ldur	d0, [x29, #-64]
	stur	d0, [x0, #92]
	ldr	w8, [x24]
	stp	w22, w8, [x0, #84]
	ldr	w8, [sp, #56]
	stp	w8, w21, [x0, #76]
	ldur	q0, [sp, #40]
	stur	q0, [x0, #60]
Lloh2:
	adrp	x8, _GLFW_CURSOR_NORMAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GLFW_CURSOR_NORMAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0, #56]
Lloh5:
	adrp	x8, _GLFW_DONT_CARE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GLFW_DONT_CARE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	stp	x8, x8, [x0, #40]
	stp	x8, x8, [x0, #24]
	stp	x8, x8, [x0, #8]
	str	x20, [x0]
	mov	x1, sp
	add	x2, sp, #64
	sub	x3, x29, #64
	bl	__glfwPlatformCreateWindow
	cbz	w0, LBB0_10
; %bb.4:
	ldr	x8, [sp, #64]
Lloh8:
	adrp	x9, _GLFW_NO_API@GOTPAGE
Lloh9:
	ldr	x9, [x9, _GLFW_NO_API@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
	add	x1, sp, #64
	mov	x0, x19
	bl	__glfwRefreshContextAttribs
	cbz	w0, LBB0_10
LBB0_6:
	ldr	x8, [x19]
	cbz	x8, LBB0_13
; %bb.7:
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_12
; %bb.8:
	mov	x0, x19
	bl	__glfwCenterCursorInContentArea
	b	LBB0_12
LBB0_9:
Lloh11:
	adrp	x8, _GLFW_INVALID_VALUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GLFW_INVALID_VALUE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x22
	bl	__glfwInputError
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_glfwDestroyWindow
LBB0_11:
	mov	x19, #0
LBB0_12:
	mov	x0, x19
	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
	add	sp, sp, #160
	ret
LBB0_13:
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_12
; %bb.14:
	mov	x0, x19
	bl	__glfwPlatformShowWindow
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_12
; %bb.15:
	mov	x0, x19
	bl	__glfwPlatformFocusWindow
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GLFW_INVALID_VALUE,4,2         ; @GLFW_INVALID_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid window size %ix%i"

	.comm	__glfw,112,3                    ; @_glfw
	.comm	_GLFW_CURSOR_NORMAL,4,2         ; @GLFW_CURSOR_NORMAL
	.comm	_GLFW_DONT_CARE,8,3             ; @GLFW_DONT_CARE
	.comm	_GLFW_NO_API,8,3                ; @GLFW_NO_API
.subsections_via_symbols
