	.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, %r13
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rdx), %rax
	movq	_GLFW_NO_API@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_5
## %bb.1:
	movq	8(%r13), %rax
	movq	_GLFW_NATIVE_CONTEXT_API@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.2:
	xorl	%eax, %eax
	callq	__glfwInitGLX
	movq	_GLFW_FALSE@GOTPCREL(%rip), %r14
	testl	%eax, %eax
	je	LBB0_27
## %bb.3:
	leaq	-56(%rbp), %rcx
	leaq	-44(%rbp), %r8
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	__glfwChooseVisualGLX
	jmp	LBB0_4
LBB0_8:
	movq	_GLFW_EGL_CONTEXT_API@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.9:
	xorl	%eax, %eax
	callq	__glfwInitEGL
	movq	_GLFW_FALSE@GOTPCREL(%rip), %r14
	testl	%eax, %eax
	je	LBB0_27
## %bb.10:
	leaq	-56(%rbp), %rcx
	leaq	-44(%rbp), %r8
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	__glfwChooseVisualEGL
LBB0_4:
	testl	%eax, %eax
	movq	_GLFW_NO_API@GOTPCREL(%rip), %rdx
	jne	LBB0_5
	jmp	LBB0_27
LBB0_11:
	movq	_GLFW_OSMESA_CONTEXT_API@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.12:
	xorl	%eax, %eax
	callq	__glfwInitOSMesa
	movq	_GLFW_NO_API@GOTPCREL(%rip), %rdx
	testl	%eax, %eax
	je	LBB0_13
LBB0_5:
	movq	(%r13), %rax
	cmpq	(%rdx), %rax
	je	LBB0_14
## %bb.6:
	movq	8(%r13), %rax
	movq	_GLFW_OSMESA_CONTEXT_API@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_14:
	movq	%rbx, %r14
	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	%r14, %rbx
	callq	_DefaultDepth
	movl	%eax, %ecx
	movl	%eax, -44(%rbp)
	jmp	LBB0_15
LBB0_7:
	movl	-44(%rbp), %ecx
LBB0_15:
	movq	-56(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_createNativeWindow
	movq	_GLFW_FALSE@GOTPCREL(%rip), %r14
	testl	%eax, %eax
	je	LBB0_27
## %bb.16:
	movq	(%r13), %rax
	movq	_GLFW_NO_API@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_24
## %bb.17:
	movq	8(%r13), %rax
	movq	_GLFW_NATIVE_CONTEXT_API@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.18:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	__glfwCreateContextGLX
	testl	%eax, %eax
	jne	LBB0_24
	jmp	LBB0_27
LBB0_19:
	movq	_GLFW_EGL_CONTEXT_API@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.20:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	__glfwCreateContextEGL
	testl	%eax, %eax
	jne	LBB0_24
	jmp	LBB0_27
LBB0_21:
	movq	_GLFW_OSMESA_CONTEXT_API@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_24
## %bb.22:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	__glfwCreateContextOSMesa
	testl	%eax, %eax
	je	LBB0_27
LBB0_24:
	cmpq	$0, (%r15)
	je	LBB0_26
## %bb.25:
	movq	%r15, %rdi
	callq	__glfwPlatformShowWindow
	movq	%r15, %rdi
	callq	_updateWindowMode
	movq	%r15, %rdi
	callq	_acquireMonitor
LBB0_26:
	movq	__glfw@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_XFlush
	movq	_GLFW_TRUE@GOTPCREL(%rip), %r14
LBB0_27:
	movl	(%r14), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_GLFW_FALSE@GOTPCREL(%rip), %r14
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_GLFW_NO_API,8,3                ## @GLFW_NO_API
	.comm	_GLFW_NATIVE_CONTEXT_API,8,3    ## @GLFW_NATIVE_CONTEXT_API
	.comm	_GLFW_FALSE,4,2                 ## @GLFW_FALSE
	.comm	_GLFW_EGL_CONTEXT_API,8,3       ## @GLFW_EGL_CONTEXT_API
	.comm	_GLFW_OSMESA_CONTEXT_API,8,3    ## @GLFW_OSMESA_CONTEXT_API
	.comm	__glfw,8,2                      ## @_glfw
	.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_4
LBB0_1:
	ldr	x8, [x21]
	ldr	x9, [x23]
Lloh2:
	adrp	x24, __glfw@GOTPAGE
Lloh3:
	ldr	x24, [x24, __glfw@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x21, #8]
Lloh4:
	adrp	x9, _GLFW_OSMESA_CONTEXT_API@GOTPAGE
Lloh5:
	ldr	x9, [x9, _GLFW_OSMESA_CONTEXT_API@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
LBB0_3:
	ldp	w0, w1, [x24]
	bl	_DefaultVisual
	str	x0, [sp, #8]
	ldp	w0, w1, [x24]
	bl	_DefaultDepth
	mov	x3, x0
	str	w0, [sp, #4]
	b	LBB0_11
LBB0_4:
	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_7
; %bb.5:
	bl	__glfwInitGLX
	cbz	w0, LBB0_24
; %bb.6:
	add	x3, sp, #8
	add	x4, sp, #4
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	__glfwChooseVisualGLX
	cbnz	w0, LBB0_1
	b	LBB0_24
LBB0_7:
Lloh10:
	adrp	x9, _GLFW_EGL_CONTEXT_API@GOTPAGE
Lloh11:
	ldr	x9, [x9, _GLFW_EGL_CONTEXT_API@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.8:
	bl	__glfwInitEGL
	cbz	w0, LBB0_24
; %bb.9:
	add	x3, sp, #8
	add	x4, sp, #4
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	__glfwChooseVisualEGL
	cbnz	w0, LBB0_1
	b	LBB0_24
LBB0_10:
	ldr	w3, [sp, #4]
LBB0_11:
	ldr	x2, [sp, #8]
	mov	x0, x19
	mov	x1, x22
	bl	_createNativeWindow
	cbz	w0, LBB0_24
; %bb.12:
	ldr	x8, [x21]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_21
; %bb.13:
	ldr	x8, [x21, #8]
Lloh13:
	adrp	x9, _GLFW_NATIVE_CONTEXT_API@GOTPAGE
Lloh14:
	ldr	x9, [x9, _GLFW_NATIVE_CONTEXT_API@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.14:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	__glfwCreateContextGLX
	cbnz	w0, LBB0_21
	b	LBB0_24
LBB0_15:
Lloh16:
	adrp	x9, _GLFW_OSMESA_CONTEXT_API@GOTPAGE
Lloh17:
	ldr	x9, [x9, _GLFW_OSMESA_CONTEXT_API@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_1
; %bb.16:
	bl	__glfwInitOSMesa
	cbnz	w0, LBB0_1
	b	LBB0_24
LBB0_17:
Lloh19:
	adrp	x9, _GLFW_EGL_CONTEXT_API@GOTPAGE
Lloh20:
	ldr	x9, [x9, _GLFW_EGL_CONTEXT_API@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	__glfwCreateContextEGL
	cbnz	w0, LBB0_21
	b	LBB0_24
LBB0_19:
Lloh22:
	adrp	x9, _GLFW_OSMESA_CONTEXT_API@GOTPAGE
Lloh23:
	ldr	x9, [x9, _GLFW_OSMESA_CONTEXT_API@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.20:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	__glfwCreateContextOSMesa
	cbz	w0, LBB0_24
LBB0_21:
	ldr	x8, [x19]
	cbz	x8, LBB0_23
; %bb.22:
	mov	x0, x19
	bl	__glfwPlatformShowWindow
	mov	x0, x19
	bl	_updateWindowMode
	mov	x0, x19
	bl	_acquireMonitor
LBB0_23:
	ldr	w0, [x24]
	bl	_XFlush
Lloh25:
	adrp	x8, _GLFW_TRUE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GLFW_TRUE@GOTPAGEOFF]
	b	LBB0_25
LBB0_24:
Lloh27:
	adrp	x8, _GLFW_FALSE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _GLFW_FALSE@GOTPAGEOFF]
LBB0_25:
	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 AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_GLFW_NO_API,8,3                ; @GLFW_NO_API
	.comm	_GLFW_NATIVE_CONTEXT_API,8,3    ; @GLFW_NATIVE_CONTEXT_API
	.comm	_GLFW_FALSE,4,2                 ; @GLFW_FALSE
	.comm	_GLFW_EGL_CONTEXT_API,8,3       ; @GLFW_EGL_CONTEXT_API
	.comm	_GLFW_OSMESA_CONTEXT_API,8,3    ; @GLFW_OSMESA_CONTEXT_API
	.comm	__glfw,8,2                      ; @_glfw
	.comm	_GLFW_TRUE,4,2                  ; @GLFW_TRUE
.subsections_via_symbols
