	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformTerminate         ## -- Begin function _glfwPlatformTerminate
	.p2align	4, 0x90
__glfwPlatformTerminate:                ## @_glfwPlatformTerminate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	__glfw@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.1:
	movq	64(%rbx), %rdi
	movl	96(%rbx), %esi
	callq	_XGetSelectionOwner
	movq	(%rbx), %rsi
	cmpq	%rsi, %rax
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	__glfwPushSelectionToManagerX11
	movq	(%rbx), %rsi
LBB0_3:
	movq	64(%rbx), %rdi
	callq	_XDestroyWindow
	movq	_None@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_4:
	movq	88(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:
	movq	64(%rbx), %rdi
	callq	_XFreeCursor
	movq	$0, 88(%rbx)
LBB0_6:
	movl	84(%rbx), %edi
	callq	_free
	movl	80(%rbx), %edi
	callq	_free
	movq	72(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_XCloseIM
	movq	$0, 72(%rbx)
LBB0_8:
	movq	64(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_XCloseDisplay
	movq	$0, 64(%rbx)
LBB0_10:
	movq	56(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	__glfw_dlclose
	movq	$0, 56(%rbx)
LBB0_12:
	movq	48(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	__glfw_dlclose
	movq	$0, 48(%rbx)
LBB0_14:
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	__glfw_dlclose
	movq	$0, 40(%rbx)
LBB0_16:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	callq	__glfw_dlclose
	movq	$0, 32(%rbx)
LBB0_18:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	callq	__glfw_dlclose
	movq	$0, 24(%rbx)
LBB0_20:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.21:
	callq	__glfw_dlclose
	movq	$0, 16(%rbx)
LBB0_22:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.23:
	callq	__glfw_dlclose
	movq	$0, 8(%rbx)
LBB0_24:
	xorl	%eax, %eax
	callq	__glfwTerminateEGL
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	__glfwTerminateGLX              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,104,3                    ## @_glfw
	.comm	_None,8,3                       ## @None
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformTerminate         ; -- Begin function _glfwPlatformTerminate
	.p2align	2
__glfwPlatformTerminate:                ; @_glfwPlatformTerminate
	.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
Lloh0:
	adrp	x19, __glfw@GOTPAGE
Lloh1:
	ldr	x19, [x19, __glfw@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x0, [x19, #64]
	ldr	w1, [x19, #96]
	bl	_XGetSelectionOwner
	ldr	x1, [x19]
	cmp	x0, x1
	b.ne	LBB0_3
; %bb.2:
	bl	__glfwPushSelectionToManagerX11
	ldr	x1, [x19]
LBB0_3:
	ldr	x0, [x19, #64]
	bl	_XDestroyWindow
Lloh2:
	adrp	x8, _None@GOTPAGE
Lloh3:
	ldr	x8, [x8, _None@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_4:
	ldr	x1, [x19, #88]
	cbz	x1, LBB0_6
; %bb.5:
	ldr	x0, [x19, #64]
	bl	_XFreeCursor
	str	xzr, [x19, #88]
LBB0_6:
	ldr	w0, [x19, #84]
	bl	_free
	ldr	w0, [x19, #80]
	bl	_free
	ldr	x0, [x19, #72]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_XCloseIM
	str	xzr, [x19, #72]
LBB0_8:
	ldr	x0, [x19, #64]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_XCloseDisplay
	str	xzr, [x19, #64]
LBB0_10:
	ldr	x0, [x19, #56]
	cbz	x0, LBB0_12
; %bb.11:
	bl	__glfw_dlclose
	str	xzr, [x19, #56]
LBB0_12:
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_14
; %bb.13:
	bl	__glfw_dlclose
	str	xzr, [x19, #48]
LBB0_14:
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_16
; %bb.15:
	bl	__glfw_dlclose
	str	xzr, [x19, #40]
LBB0_16:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_18
; %bb.17:
	bl	__glfw_dlclose
	str	xzr, [x19, #32]
LBB0_18:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_20
; %bb.19:
	bl	__glfw_dlclose
	str	xzr, [x19, #24]
LBB0_20:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_22
; %bb.21:
	bl	__glfw_dlclose
	str	xzr, [x19, #16]
LBB0_22:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_24
; %bb.23:
	bl	__glfw_dlclose
	str	xzr, [x19, #8]
LBB0_24:
	bl	__glfwTerminateEGL
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	__glfwTerminateGLX
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,104,3                    ; @_glfw
	.comm	_None,8,3                       ; @None
.subsections_via_symbols
