	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformDestroyWindow     ## -- Begin function _glfwPlatformDestroyWindow
	.p2align	4, 0x90
__glfwPlatformDestroyWindow:            ## @_glfwPlatformDestroyWindow
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	__glfw@GOTPCREL(%rip), %r14
	cmpq	%rdi, 8(%r14)
	je	LBB0_1
## %bb.2:
	cmpq	%rbx, (%r14)
	je	LBB0_3
LBB0_4:
	movq	%rbx, %rdi
	callq	__glfwDestroyContext
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_wl_egl_window_destroy
LBB0_6:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_wl_shell_surface_destroy
LBB0_8:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wl_surface_destroy             ## TAILCALL
LBB0_1:
	movq	$0, 8(%r14)
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	__glfwInputCursorEnter
	cmpq	%rbx, (%r14)
	jne	LBB0_4
LBB0_3:
	movq	$0, (%r14)
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	__glfwInputWindowFocus
	jmp	LBB0_4
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,16,3                     ## @_glfw
	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformDestroyWindow     ; -- Begin function _glfwPlatformDestroyWindow
	.p2align	2
__glfwPlatformDestroyWindow:            ; @_glfwPlatformDestroyWindow
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, __glfw@GOTPAGE
Lloh1:
	ldr	x20, [x20, __glfw@GOTPAGEOFF]
	ldr	x8, [x20, #8]
	cmp	x8, x0
	b.ne	LBB0_2
; %bb.1:
	str	xzr, [x20, #8]
Lloh2:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	__glfwInputCursorEnter
LBB0_2:
	ldr	x8, [x20]
	cmp	x8, x19
	b.ne	LBB0_4
; %bb.3:
	str	xzr, [x20]
Lloh5:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	__glfwInputWindowFocus
LBB0_4:
	mov	x0, x19
	bl	__glfwDestroyContext
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_wl_egl_window_destroy
LBB0_6:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_wl_shell_surface_destroy
LBB0_8:
	ldr	x0, [x19]
	cbz	x0, LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wl_surface_destroy
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,16,3                     ; @_glfw
	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
.subsections_via_symbols
