	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function global_free
_global_free:                           ## @global_free
	.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	_content_deinit
	xorl	%eax, %eax
	callq	_path_deinit_subsystem
	movq	_CMD_EVENT_RECORD_DEINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_command_event
	movq	_CMD_EVENT_LOG_FILE_DEINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_command_event
	movq	_rarch_block_config_read@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_rarch_is_sram_load_disabled@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_rarch_is_sram_save_disabled@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_rarch_use_sram@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_RARCH_CTL_UNSET_BPS_PREF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_rarch_ctl
	movq	_RARCH_CTL_UNSET_IPS_PREF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_rarch_ctl
	movq	_RARCH_CTL_UNSET_UPS_PREF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_rarch_ctl
	movq	_rarch_patch_blocked@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_runloop_overrides_active@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_runloop_remaps_core_active@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_runloop_remaps_game_active@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_runloop_remaps_content_dir_active@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_current_core@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	xorl	%eax, %eax
	callq	_path_clear_all
	xorl	%eax, %eax
	callq	_dir_clear_all
	movq	_g_extern@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	callq	_free
LBB0_2:
	movq	_g_extern@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_retroarch_override_setting_free_state ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_EVENT_RECORD_DEINIT,4,2    ## @CMD_EVENT_RECORD_DEINIT
	.comm	_CMD_EVENT_LOG_FILE_DEINIT,4,2  ## @CMD_EVENT_LOG_FILE_DEINIT
	.comm	_rarch_block_config_read,4,2    ## @rarch_block_config_read
	.comm	_rarch_is_sram_load_disabled,4,2 ## @rarch_is_sram_load_disabled
	.comm	_rarch_is_sram_save_disabled,4,2 ## @rarch_is_sram_save_disabled
	.comm	_rarch_use_sram,4,2             ## @rarch_use_sram
	.comm	_RARCH_CTL_UNSET_BPS_PREF,4,2   ## @RARCH_CTL_UNSET_BPS_PREF
	.comm	_RARCH_CTL_UNSET_IPS_PREF,4,2   ## @RARCH_CTL_UNSET_IPS_PREF
	.comm	_RARCH_CTL_UNSET_UPS_PREF,4,2   ## @RARCH_CTL_UNSET_UPS_PREF
	.comm	_rarch_patch_blocked,4,2        ## @rarch_patch_blocked
	.comm	_runloop_overrides_active,4,2   ## @runloop_overrides_active
	.comm	_runloop_remaps_core_active,4,2 ## @runloop_remaps_core_active
	.comm	_runloop_remaps_game_active,4,2 ## @runloop_remaps_game_active
	.comm	_runloop_remaps_content_dir_active,4,2 ## @runloop_remaps_content_dir_active
	.comm	_current_core,4,2               ## @current_core
	.comm	_g_extern,4,2                   ## @g_extern
	.no_dead_strip	_global_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function global_free
_global_free:                           ; @global_free
	.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	_content_deinit
	bl	_path_deinit_subsystem
Lloh0:
	adrp	x8, _CMD_EVENT_RECORD_DEINIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_EVENT_RECORD_DEINIT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_command_event
Lloh3:
	adrp	x8, _CMD_EVENT_LOG_FILE_DEINIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_EVENT_LOG_FILE_DEINIT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_command_event
Lloh6:
	adrp	x8, _rarch_block_config_read@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rarch_block_config_read@GOTPAGEOFF]
Lloh8:
	str	wzr, [x8]
Lloh9:
	adrp	x8, _rarch_is_sram_load_disabled@GOTPAGE
Lloh10:
	ldr	x8, [x8, _rarch_is_sram_load_disabled@GOTPAGEOFF]
Lloh11:
	str	wzr, [x8]
Lloh12:
	adrp	x8, _rarch_is_sram_save_disabled@GOTPAGE
Lloh13:
	ldr	x8, [x8, _rarch_is_sram_save_disabled@GOTPAGEOFF]
Lloh14:
	str	wzr, [x8]
Lloh15:
	adrp	x8, _rarch_use_sram@GOTPAGE
Lloh16:
	ldr	x8, [x8, _rarch_use_sram@GOTPAGEOFF]
Lloh17:
	str	wzr, [x8]
Lloh18:
	adrp	x8, _RARCH_CTL_UNSET_BPS_PREF@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RARCH_CTL_UNSET_BPS_PREF@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_rarch_ctl
Lloh21:
	adrp	x8, _RARCH_CTL_UNSET_IPS_PREF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RARCH_CTL_UNSET_IPS_PREF@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_rarch_ctl
Lloh24:
	adrp	x8, _RARCH_CTL_UNSET_UPS_PREF@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RARCH_CTL_UNSET_UPS_PREF@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_rarch_ctl
Lloh27:
	adrp	x8, _rarch_patch_blocked@GOTPAGE
Lloh28:
	ldr	x8, [x8, _rarch_patch_blocked@GOTPAGEOFF]
Lloh29:
	str	wzr, [x8]
Lloh30:
	adrp	x8, _runloop_overrides_active@GOTPAGE
Lloh31:
	ldr	x8, [x8, _runloop_overrides_active@GOTPAGEOFF]
Lloh32:
	str	wzr, [x8]
Lloh33:
	adrp	x8, _runloop_remaps_core_active@GOTPAGE
Lloh34:
	ldr	x8, [x8, _runloop_remaps_core_active@GOTPAGEOFF]
Lloh35:
	str	wzr, [x8]
Lloh36:
	adrp	x8, _runloop_remaps_game_active@GOTPAGE
Lloh37:
	ldr	x8, [x8, _runloop_remaps_game_active@GOTPAGEOFF]
Lloh38:
	str	wzr, [x8]
Lloh39:
	adrp	x8, _runloop_remaps_content_dir_active@GOTPAGE
Lloh40:
	ldr	x8, [x8, _runloop_remaps_content_dir_active@GOTPAGEOFF]
Lloh41:
	str	wzr, [x8]
Lloh42:
	adrp	x8, _current_core@GOTPAGE
Lloh43:
	ldr	x8, [x8, _current_core@GOTPAGEOFF]
Lloh44:
	str	wzr, [x8]
	bl	_path_clear_all
	bl	_dir_clear_all
Lloh45:
	adrp	x19, _g_extern@GOTPAGE
Lloh46:
	ldr	x19, [x19, _g_extern@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_string_is_empty
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	bl	_free
LBB0_2:
Lloh47:
	adrp	x0, _g_extern@GOTPAGE
Lloh48:
	ldr	x0, [x0, _g_extern@GOTPAGEOFF]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_retroarch_override_setting_free_state
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotStr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotStr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotStr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotStr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotStr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_EVENT_RECORD_DEINIT,4,2    ; @CMD_EVENT_RECORD_DEINIT
	.comm	_CMD_EVENT_LOG_FILE_DEINIT,4,2  ; @CMD_EVENT_LOG_FILE_DEINIT
	.comm	_rarch_block_config_read,4,2    ; @rarch_block_config_read
	.comm	_rarch_is_sram_load_disabled,4,2 ; @rarch_is_sram_load_disabled
	.comm	_rarch_is_sram_save_disabled,4,2 ; @rarch_is_sram_save_disabled
	.comm	_rarch_use_sram,4,2             ; @rarch_use_sram
	.comm	_RARCH_CTL_UNSET_BPS_PREF,4,2   ; @RARCH_CTL_UNSET_BPS_PREF
	.comm	_RARCH_CTL_UNSET_IPS_PREF,4,2   ; @RARCH_CTL_UNSET_IPS_PREF
	.comm	_RARCH_CTL_UNSET_UPS_PREF,4,2   ; @RARCH_CTL_UNSET_UPS_PREF
	.comm	_rarch_patch_blocked,4,2        ; @rarch_patch_blocked
	.comm	_runloop_overrides_active,4,2   ; @runloop_overrides_active
	.comm	_runloop_remaps_core_active,4,2 ; @runloop_remaps_core_active
	.comm	_runloop_remaps_game_active,4,2 ; @runloop_remaps_game_active
	.comm	_runloop_remaps_content_dir_active,4,2 ; @runloop_remaps_content_dir_active
	.comm	_current_core,4,2               ; @current_core
	.comm	_g_extern,4,2                   ; @g_extern
	.no_dead_strip	_global_free
.subsections_via_symbols
