	.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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	callq	__glfwCreateContext
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.2:
	leaq	-32(%rbp), %rsi
	callq	__glfwPlatformGetVideoMode
	movl	16(%r14), %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	-32(%rbp), %rdx
	jg	LBB0_7
## %bb.3:
	cmpq	-24(%rbp), %rcx
	jg	LBB0_7
LBB0_4:
	movups	(%rbx), %xmm0
	movups	%xmm0, (%r14)
	movq	%r14, %rdi
	callq	_createSurface
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	16(%r14), %edi
	callq	_mir_surface_get_buffer_stream
	movl	%eax, %edi
	callq	_mir_buffer_stream_get_egl_native_window
	movl	%eax, 20(%r14)
	movq	_GL_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	__glfwInputError
LBB0_8:
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
	.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	_GL_TRUE,4,2                    ## @GL_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, #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
	mov	x20, x1
	mov	x19, x0
	mov	x1, x2
	mov	x2, x3
	bl	__glfwCreateContext
	cbz	w0, LBB0_8
; %bb.1:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_5
; %bb.2:
	mov	x1, sp
	bl	__glfwPlatformGetVideoMode
	ldr	w0, [x19, #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
	ldr	x8, [sp]
	ldp	x2, x3, [x20]
	cmp	x2, x8
	b.gt	LBB0_4
; %bb.3:
	ldr	x8, [sp, #8]
	cmp	x3, x8
	b.le	LBB0_6
LBB0_4:
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_8
LBB0_5:
	ldp	x2, x3, [x20]
LBB0_6:
	stp	x2, x3, [x19]
	mov	x0, x19
	bl	_createSurface
	cbz	w0, LBB0_8
; %bb.7:
	ldr	w0, [x19, #16]
	bl	_mir_surface_get_buffer_stream
	bl	_mir_buffer_stream_get_egl_native_window
	str	w0, [x19, #20]
Lloh8:
	adrp	x8, _GL_TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GL_TRUE@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh10:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
LBB0_9:
	ldr	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
	.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	_GL_TRUE,4,2                    ; @GL_TRUE
.subsections_via_symbols
