	.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	$0, 32(%rbx)
	je	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	callq	_releaseMonitor
LBB0_4:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_XDestroyIC
	movq	$0, 16(%rbx)
LBB0_6:
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_8:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.9:
	movl	(%r14), %edi
	movl	4(%r14), %edx
	callq	_XDeleteContext
	movl	(%r14), %edi
	movq	8(%rbx), %rsi
	callq	_XUnmapWindow
	movl	(%r14), %edi
	movq	8(%rbx), %rsi
	callq	_XDestroyWindow
	movq	$0, 8(%rbx)
LBB0_10:
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.11:
	movl	(%r14), %edi
	callq	_XFreeColormap
	movq	$0, (%rbx)
LBB0_12:
	movl	(%r14), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_XFlush                         ## TAILCALL
LBB0_1:
	movq	$0, 8(%r14)
	cmpq	$0, 32(%rbx)
	jne	LBB0_3
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,16,3                     ## @_glfw
.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.eq	LBB0_12
; %bb.1:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_releaseMonitor
LBB0_3:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_XDestroyIC
	str	xzr, [x19, #16]
LBB0_5:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	blr	x8
LBB0_7:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_9
; %bb.8:
	ldp	w0, w2, [x20]
	bl	_XDeleteContext
	ldr	w0, [x20]
	ldr	x1, [x19, #8]
	bl	_XUnmapWindow
	ldr	w0, [x20]
	ldr	x1, [x19, #8]
	bl	_XDestroyWindow
	str	xzr, [x19, #8]
LBB0_9:
	ldr	x1, [x19]
	cbz	x1, LBB0_11
; %bb.10:
	ldr	w0, [x20]
	bl	_XFreeColormap
	str	xzr, [x19]
LBB0_11:
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_XFlush
LBB0_12:
	str	xzr, [x20, #8]
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_2
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,16,3                     ; @_glfw
.subsections_via_symbols
