	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	24(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	leaq	-48(%rbp), %rsi
	callq	__glfwPlatformGetVideoMode
	movl	16(%r12), %edi
	movq	_mir_surface_state_fullscreen@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mir_surface_set_state
	movq	(%rbx), %rdx
	movq	8(%rbx), %rcx
	cmpq	-48(%rbp), %rdx
	jg	LBB0_9
## %bb.2:
	cmpq	-40(%rbp), %rcx
	jg	LBB0_9
LBB0_3:
	movups	(%rbx), %xmm0
	movups	%xmm0, (%r12)
	movq	%r12, %rdi
	callq	_createSurface
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	movl	16(%r12), %edi
	callq	_mir_surface_get_buffer_stream
	movl	%eax, %edi
	callq	_mir_buffer_stream_get_egl_native_window
	movl	%eax, 20(%r12)
	movq	(%r15), %rax
	movq	_GLFW_NO_API@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.5:
	xorl	%eax, %eax
	callq	__glfwInitEGL
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	__glfwCreateContextEGL
	testl	%eax, %eax
	je	LBB0_10
LBB0_7:
	movq	_GLFW_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	__glfwInputError
LBB0_10:
	movq	_GLFW_FALSE@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mir_surface_state_fullscreen,4,2 ## @mir_surface_state_fullscreen
	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Mir: Requested surface size too large: %ix%i"

	.comm	_GLFW_FALSE,4,2                 ## @GLFW_FALSE
	.comm	_GLFW_NO_API,8,3                ## @GLFW_NO_API
	.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, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x0, [x0, #24]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x1, sp
	bl	__glfwPlatformGetVideoMode
	ldr	w0, [x21, #16]
Lloh0:
	adrp	x8, _mir_surface_state_fullscreen@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mir_surface_state_fullscreen@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mir_surface_set_state
	ldp	x2, x3, [x22]
	ldp	x8, x9, [sp]
	cmp	x2, x8
	ccmp	x3, x9, #0, le
	b.le	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	__glfwInputError
	b	LBB0_9
LBB0_3:
	ldp	x2, x3, [x22]
LBB0_4:
	stp	x2, x3, [x21]
	mov	x0, x21
	bl	_createSurface
	cbz	w0, LBB0_9
; %bb.5:
	ldr	w0, [x21, #16]
	bl	_mir_surface_get_buffer_stream
	bl	_mir_buffer_stream_get_egl_native_window
	str	w0, [x21, #20]
	ldr	x8, [x20]
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_8
; %bb.6:
	bl	__glfwInitEGL
	cbz	w0, LBB0_9
; %bb.7:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	__glfwCreateContextEGL
	cbz	w0, LBB0_9
LBB0_8:
Lloh11:
	adrp	x8, _GLFW_TRUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GLFW_TRUE@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh13:
	adrp	x8, _GLFW_FALSE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GLFW_FALSE@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_mir_surface_state_fullscreen,4,2 ; @mir_surface_state_fullscreen
	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Mir: Requested surface size too large: %ix%i"

	.comm	_GLFW_FALSE,4,2                 ; @GLFW_FALSE
	.comm	_GLFW_NO_API,8,3                ; @GLFW_NO_API
	.comm	_GLFW_TRUE,4,2                  ; @GLFW_TRUE
.subsections_via_symbols
