	.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
	xorl	%eax, %eax
	callq	__glfwTerminateEGL
	movq	__glfw@GOTPCREL(%rip), %rbx
	movq	248(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	__glfw_dlclose
	movq	$0, 248(%rbx)
LBB0_2:
	movq	232(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_xkb_keymap_unref
LBB0_4:
	movq	224(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_xkb_state_unref
LBB0_6:
	movq	216(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_xkb_context_unref
LBB0_8:
	movq	208(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	__glfw_dlclose
	movq	$0, 208(%rbx)
LBB0_10:
	movq	200(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_wl_cursor_theme_destroy
LBB0_12:
	movq	192(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	_wl_cursor_theme_destroy
LBB0_14:
	movq	184(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	__glfw_dlclose
	movq	$0, 184(%rbx)
LBB0_16:
	movq	176(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	callq	_wl_surface_destroy
LBB0_18:
	movq	168(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	callq	_wl_subcompositor_destroy
LBB0_20:
	movq	160(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.21:
	callq	_wl_compositor_destroy
LBB0_22:
	movq	152(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.23:
	callq	_wl_shm_destroy
LBB0_24:
	movq	144(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.25:
	callq	_wp_viewporter_destroy
LBB0_26:
	movq	136(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_28
## %bb.27:
	callq	_zxdg_decoration_manager_v1_destroy
LBB0_28:
	movq	128(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_30
## %bb.29:
	callq	_xdg_wm_base_destroy
LBB0_30:
	movq	120(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_32
## %bb.31:
	callq	_wl_data_source_destroy
LBB0_32:
	movq	112(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_34
## %bb.33:
	callq	_wl_data_device_destroy
LBB0_34:
	movq	104(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_36
## %bb.35:
	callq	_wl_data_offer_destroy
LBB0_36:
	movq	96(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_38
## %bb.37:
	callq	_wl_data_device_manager_destroy
LBB0_38:
	movq	88(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_40
## %bb.39:
	callq	_wl_pointer_destroy
LBB0_40:
	movq	80(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_42
## %bb.41:
	callq	_wl_keyboard_destroy
LBB0_42:
	movq	72(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_44
## %bb.43:
	callq	_wl_seat_destroy
LBB0_44:
	movq	64(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_46
## %bb.45:
	callq	_zwp_relative_pointer_manager_v1_destroy
LBB0_46:
	movq	56(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_48
## %bb.47:
	callq	_zwp_pointer_constraints_v1_destroy
LBB0_48:
	movq	48(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_50
## %bb.49:
	callq	_zwp_idle_inhibit_manager_v1_destroy
LBB0_50:
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_52
## %bb.51:
	callq	_wl_registry_destroy
LBB0_52:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_54
## %bb.53:
	callq	_wl_display_flush
	movq	32(%rbx), %rdi
	callq	_wl_display_disconnect
LBB0_54:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	js	LBB0_56
## %bb.55:
	callq	_close
LBB0_56:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	js	LBB0_58
## %bb.57:
	callq	_close
LBB0_58:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_60
## %bb.59:
	callq	_free
LBB0_60:
	movq	16(%rbx), %rdi
	addq	$8, %rsp
	testq	%rdi, %rdi
	je	LBB0_61
## %bb.62:
	popq	%rbx
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_61:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,256,3                    ## @_glfw
.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
	bl	__glfwTerminateEGL
Lloh0:
	adrp	x19, __glfw@GOTPAGE
Lloh1:
	ldr	x19, [x19, __glfw@GOTPAGEOFF]
	ldr	x0, [x19, #248]
	cbz	x0, LBB0_2
; %bb.1:
	bl	__glfw_dlclose
	str	xzr, [x19, #248]
LBB0_2:
	ldr	x0, [x19, #232]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_xkb_keymap_unref
LBB0_4:
	ldr	x0, [x19, #224]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_xkb_state_unref
LBB0_6:
	ldr	x0, [x19, #216]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_xkb_context_unref
LBB0_8:
	ldr	x0, [x19, #208]
	cbz	x0, LBB0_10
; %bb.9:
	bl	__glfw_dlclose
	str	xzr, [x19, #208]
LBB0_10:
	ldr	x0, [x19, #200]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_wl_cursor_theme_destroy
LBB0_12:
	ldr	x0, [x19, #192]
	cbz	x0, LBB0_14
; %bb.13:
	bl	_wl_cursor_theme_destroy
LBB0_14:
	ldr	x0, [x19, #184]
	cbz	x0, LBB0_16
; %bb.15:
	bl	__glfw_dlclose
	str	xzr, [x19, #184]
LBB0_16:
	ldr	x0, [x19, #176]
	cbz	x0, LBB0_18
; %bb.17:
	bl	_wl_surface_destroy
LBB0_18:
	ldr	x0, [x19, #168]
	cbz	x0, LBB0_20
; %bb.19:
	bl	_wl_subcompositor_destroy
LBB0_20:
	ldr	x0, [x19, #160]
	cbz	x0, LBB0_22
; %bb.21:
	bl	_wl_compositor_destroy
LBB0_22:
	ldr	x0, [x19, #152]
	cbz	x0, LBB0_24
; %bb.23:
	bl	_wl_shm_destroy
LBB0_24:
	ldr	x0, [x19, #144]
	cbz	x0, LBB0_26
; %bb.25:
	bl	_wp_viewporter_destroy
LBB0_26:
	ldr	x0, [x19, #136]
	cbz	x0, LBB0_28
; %bb.27:
	bl	_zxdg_decoration_manager_v1_destroy
LBB0_28:
	ldr	x0, [x19, #128]
	cbz	x0, LBB0_30
; %bb.29:
	bl	_xdg_wm_base_destroy
LBB0_30:
	ldr	x0, [x19, #120]
	cbz	x0, LBB0_32
; %bb.31:
	bl	_wl_data_source_destroy
LBB0_32:
	ldr	x0, [x19, #112]
	cbz	x0, LBB0_34
; %bb.33:
	bl	_wl_data_device_destroy
LBB0_34:
	ldr	x0, [x19, #104]
	cbz	x0, LBB0_36
; %bb.35:
	bl	_wl_data_offer_destroy
LBB0_36:
	ldr	x0, [x19, #96]
	cbz	x0, LBB0_38
; %bb.37:
	bl	_wl_data_device_manager_destroy
LBB0_38:
	ldr	x0, [x19, #88]
	cbz	x0, LBB0_40
; %bb.39:
	bl	_wl_pointer_destroy
LBB0_40:
	ldr	x0, [x19, #80]
	cbz	x0, LBB0_42
; %bb.41:
	bl	_wl_keyboard_destroy
LBB0_42:
	ldr	x0, [x19, #72]
	cbz	x0, LBB0_44
; %bb.43:
	bl	_wl_seat_destroy
LBB0_44:
	ldr	x0, [x19, #64]
	cbz	x0, LBB0_46
; %bb.45:
	bl	_zwp_relative_pointer_manager_v1_destroy
LBB0_46:
	ldr	x0, [x19, #56]
	cbz	x0, LBB0_48
; %bb.47:
	bl	_zwp_pointer_constraints_v1_destroy
LBB0_48:
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_50
; %bb.49:
	bl	_zwp_idle_inhibit_manager_v1_destroy
LBB0_50:
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_52
; %bb.51:
	bl	_wl_registry_destroy
LBB0_52:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_54
; %bb.53:
	bl	_wl_display_flush
	ldr	x0, [x19, #32]
	bl	_wl_display_disconnect
LBB0_54:
	ldr	x0, [x19]
	tbnz	x0, #63, LBB0_56
; %bb.55:
	bl	_close
LBB0_56:
	ldr	x0, [x19, #8]
	tbnz	x0, #63, LBB0_58
; %bb.57:
	bl	_close
LBB0_58:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_60
; %bb.59:
	bl	_free
LBB0_60:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_62
; %bb.61:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free
LBB0_62:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,256,3                    ; @_glfw
.subsections_via_symbols
