	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformCreateWindow      ## -- Begin function _glfwPlatformCreateWindow
	.p2align	4, 0x90
__glfwPlatformCreateWindow:             ## @_glfwPlatformCreateWindow
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rdx), %rax
	movq	_GLFW_NO_API@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %r13
	movq	__glfw@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	4(%rbx), %esi
	callq	_DefaultVisual
	movq	%rax, -56(%rbp)
	movl	(%rbx), %edi
	movl	4(%rbx), %esi
	movq	%r13, %rbx
	callq	_DefaultDepth
	movl	%eax, -44(%rbp)
	jmp	LBB0_8
LBB0_2:
	movq	8(%r14), %rax
	movq	_GLFW_NATIVE_CONTEXT_API@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	xorl	%eax, %eax
	callq	__glfwInitGLX
	movq	_GLFW_FALSE@GOTPCREL(%rip), %r13
	testl	%eax, %eax
	je	LBB0_18
## %bb.4:
	leaq	-56(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	__glfwChooseVisualGLX
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_18
LBB0_5:
	xorl	%eax, %eax
	callq	__glfwInitEGL
	movq	_GLFW_FALSE@GOTPCREL(%rip), %r13
	testl	%eax, %eax
	je	LBB0_18
## %bb.6:
	leaq	-56(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	__glfwChooseVisualEGL
	testl	%eax, %eax
	je	LBB0_18
LBB0_8:
	movq	-56(%rbp), %rdx
	movl	-44(%rbp), %ecx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_createNativeWindow
	movq	_GLFW_FALSE@GOTPCREL(%rip), %r13
	testl	%eax, %eax
	je	LBB0_18
## %bb.9:
	movq	(%r14), %rax
	movq	_GLFW_NO_API@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.10:
	movq	8(%r14), %rax
	movq	_GLFW_NATIVE_CONTEXT_API@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	__glfwCreateContextGLX
	testl	%eax, %eax
	jne	LBB0_14
	jmp	LBB0_18
LBB0_12:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	__glfwCreateContextEGL
	testl	%eax, %eax
	je	LBB0_18
LBB0_14:
	cmpq	$0, (%r15)
	je	LBB0_17
## %bb.15:
	movq	%r15, %rdi
	callq	__glfwPlatformShowWindow
	movq	%r15, %rdi
	callq	_updateWindowMode
	movq	%r15, %rdi
	callq	_acquireMonitor
	testl	%eax, %eax
	je	LBB0_18
## %bb.16:
	movq	%r15, %rdi
	callq	_centerCursor
LBB0_17:
	movq	__glfw@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_XFlush
	movq	_GLFW_TRUE@GOTPCREL(%rip), %r13
LBB0_18:
	movl	(%r13), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GLFW_NO_API,8,3                ## @GLFW_NO_API
	.comm	__glfw,8,2                      ## @_glfw
	.comm	_GLFW_NATIVE_CONTEXT_API,8,3    ## @GLFW_NATIVE_CONTEXT_API
	.comm	_GLFW_FALSE,4,2                 ## @GLFW_FALSE
	.comm	_GLFW_TRUE,4,2                  ## @GLFW_TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformCreateWindow      ; -- Begin function _glfwPlatformCreateWindow
	.p2align	2
__glfwPlatformCreateWindow:             ; @_glfwPlatformCreateWindow
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x2]
Lloh0:
	adrp	x23, _GLFW_NO_API@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GLFW_NO_API@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
Lloh2:
	adrp	x24, __glfw@GOTPAGE
Lloh3:
	ldr	x24, [x24, __glfw@GOTPAGEOFF]
	ldp	w0, w1, [x24]
	bl	_DefaultVisual
	str	x0, [sp, #8]
	ldp	w0, w1, [x24]
	bl	_DefaultDepth
	str	w0, [sp, #4]
LBB0_2:
	ldr	x2, [sp, #8]
	ldr	w3, [sp, #4]
	mov	x0, x19
	mov	x1, x22
	bl	_createNativeWindow
	cbz	w0, LBB0_16
; %bb.3:
	ldr	x8, [x21]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.4:
	ldr	x8, [x21, #8]
Lloh4:
	adrp	x9, _GLFW_NATIVE_CONTEXT_API@GOTPAGE
Lloh5:
	ldr	x9, [x9, _GLFW_NATIVE_CONTEXT_API@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.5:
	bl	__glfwCreateContextGLX
	cbnz	w0, LBB0_12
	b	LBB0_16
LBB0_6:
	ldr	x8, [x21, #8]
Lloh7:
	adrp	x9, _GLFW_NATIVE_CONTEXT_API@GOTPAGE
Lloh8:
	ldr	x9, [x9, _GLFW_NATIVE_CONTEXT_API@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:
	bl	__glfwInitGLX
	cbz	w0, LBB0_16
; %bb.8:
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x21
	mov	x1, x20
	bl	__glfwChooseVisualGLX
	cbnz	w0, LBB0_2
	b	LBB0_16
LBB0_9:
	bl	__glfwInitEGL
	cbz	w0, LBB0_16
; %bb.10:
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x21
	mov	x1, x20
	bl	__glfwChooseVisualEGL
	cbnz	w0, LBB0_2
	b	LBB0_16
LBB0_11:
	bl	__glfwCreateContextEGL
	cbz	w0, LBB0_16
LBB0_12:
	ldr	x8, [x19]
	cbz	x8, LBB0_15
; %bb.13:
	mov	x0, x19
	bl	__glfwPlatformShowWindow
	mov	x0, x19
	bl	_updateWindowMode
	mov	x0, x19
	bl	_acquireMonitor
	cbz	w0, LBB0_16
; %bb.14:
	mov	x0, x19
	bl	_centerCursor
LBB0_15:
Lloh10:
	adrp	x8, __glfw@GOTPAGE
Lloh11:
	ldr	x8, [x8, __glfw@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_XFlush
Lloh13:
	adrp	x8, _GLFW_TRUE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GLFW_TRUE@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh15:
	adrp	x8, _GLFW_FALSE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GLFW_FALSE@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GLFW_NO_API,8,3                ; @GLFW_NO_API
	.comm	__glfw,8,2                      ; @_glfw
	.comm	_GLFW_NATIVE_CONTEXT_API,8,3    ; @GLFW_NATIVE_CONTEXT_API
	.comm	_GLFW_FALSE,4,2                 ; @GLFW_FALSE
	.comm	_GLFW_TRUE,4,2                  ; @GLFW_TRUE
.subsections_via_symbols
