	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	__glfw@GOTPCREL(%rip), %r14
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_UnregisterDeviceNotification
LBB0_2:
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_DestroyWindow
LBB0_4:
	xorl	%eax, %eax
	callq	__glfwUnregisterWindowClassWin32
	movq	_SPI_SETFOREGROUNDLOCKTIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	8(%r14), %edi
	callq	_UIntToPtr
	movq	_SPIF_SENDCHANGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_SystemParametersInfoW
	movl	4(%r14), %edi
	callq	_free
	movl	(%r14), %edi
	callq	_free
	xorl	%eax, %eax
	callq	__glfwTerminateWGL
	xorl	%eax, %eax
	callq	__glfwTerminateEGL
	xorl	%eax, %eax
	callq	__glfwTerminateJoysticksWin32
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_freeLibraries                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,32,3                     ## @_glfw
	.comm	_SPI_SETFOREGROUNDLOCKTIMEOUT,4,2 ## @SPI_SETFOREGROUNDLOCKTIMEOUT
	.comm	_SPIF_SENDCHANGE,4,2            ## @SPIF_SENDCHANGE
.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	x20, __glfw@GOTPAGE
Lloh1:
	ldr	x20, [x20, __glfw@GOTPAGEOFF]
	ldr	x0, [x20, #24]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_UnregisterDeviceNotification
LBB0_2:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_DestroyWindow
LBB0_4:
	bl	__glfwUnregisterWindowClassWin32
Lloh2:
	adrp	x8, _SPI_SETFOREGROUNDLOCKTIMEOUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SPI_SETFOREGROUNDLOCKTIMEOUT@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
	ldr	w0, [x20, #8]
	bl	_UIntToPtr
	mov	x2, x0
Lloh5:
	adrp	x8, _SPIF_SENDCHANGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SPIF_SENDCHANGE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_SystemParametersInfoW
	ldr	w0, [x20, #4]
	bl	_free
	ldr	w0, [x20]
	bl	_free
	bl	__glfwTerminateWGL
	bl	__glfwTerminateEGL
	bl	__glfwTerminateJoysticksWin32
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_freeLibraries
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,32,3                     ; @_glfw
	.comm	_SPI_SETFOREGROUNDLOCKTIMEOUT,4,2 ; @SPI_SETFOREGROUNDLOCKTIMEOUT
	.comm	_SPIF_SENDCHANGE,4,2            ; @SPIF_SENDCHANGE
.subsections_via_symbols
