	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rarch_main                     ## -- Begin function rarch_main
	.p2align	4, 0x90
_rarch_main:                            ## @rarch_main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	%edi, %r15d
	movq	_runloop_system@GOTPCREL(%rip), %rdi
	callq	_libretro_free_system_info
	movq	_CMD_EVENT_HISTORY_DEINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_command_event
	xorl	%eax, %eax
	callq	_rarch_favorites_deinit
	movl	$1, %edi
	movl	$4, %esi
	callq	_calloc
	movq	_configuration_settings@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_RARCH_DRIVER_CTL_DEINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_driver_ctl
	movq	_RARCH_CTL_STATE_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_rarch_ctl
	xorl	%eax, %eax
	callq	_global_free
	movq	%r12, %rdi
	callq	_frontend_driver_init_first
	movq	_rarch_is_inited@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_DRIVERS_CMD_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_driver_uninit
LBB0_2:
	movq	_video_driver_active@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_audio_driver_active@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_MAX_USERS@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	movq	_RETRO_DEVICE_JOYPAD@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_input_config_set_device
	incq	%rbx
	cmpq	(%r13), %rbx
	jl	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	callq	_retroarch_msg_queue_init
	xorl	%eax, %eax
	callq	_frontend_driver_is_inited
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movl	%r15d, -80(%rbp)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -72(%rbp)
	movq	%r12, -56(%rbp)
	xorl	%eax, %eax
	callq	_frontend_driver_environment_get_ptr
	movl	%eax, -64(%rbp)
	movq	_CORE_TYPE_PLAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-80(%rbp), %rdx
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_task_push_load_content_from_cli
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	callq	_ui_companion_driver_init_first
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_runloop_iterate
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_task_queue_check
	cmpl	$-1, %ebx
	jne	LBB0_9
## %bb.10:
	movq	%r12, %rdi
	callq	_main_exit
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_7:
	movl	$1, %eax
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_runloop_system,4,2             ## @runloop_system
	.comm	_CMD_EVENT_HISTORY_DEINIT,4,2   ## @CMD_EVENT_HISTORY_DEINIT
	.comm	_configuration_settings,8,3     ## @configuration_settings
	.comm	_RARCH_DRIVER_CTL_DEINIT,4,2    ## @RARCH_DRIVER_CTL_DEINIT
	.comm	_RARCH_CTL_STATE_FREE,4,2       ## @RARCH_CTL_STATE_FREE
	.comm	_rarch_is_inited,8,3            ## @rarch_is_inited
	.comm	_DRIVERS_CMD_ALL,4,2            ## @DRIVERS_CMD_ALL
	.comm	_video_driver_active,4,2        ## @video_driver_active
	.comm	_audio_driver_active,4,2        ## @audio_driver_active
	.comm	_MAX_USERS,8,3                  ## @MAX_USERS
	.comm	_RETRO_DEVICE_JOYPAD,4,2        ## @RETRO_DEVICE_JOYPAD
	.comm	_CORE_TYPE_PLAIN,4,2            ## @CORE_TYPE_PLAIN
	.comm	_MAGIC_POINTER,4,2              ## @MAGIC_POINTER
	.comm	_rarch_tls,4,2                  ## @rarch_tls
	.comm	_ui_companion_qt,8,3            ## @ui_companion_qt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rarch_main                     ; -- Begin function rarch_main
	.p2align	2
_rarch_main:                            ; @rarch_main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x0, _runloop_system@GOTPAGE
Lloh1:
	ldr	x0, [x0, _runloop_system@GOTPAGEOFF]
	bl	_libretro_free_system_info
Lloh2:
	adrp	x8, _CMD_EVENT_HISTORY_DEINIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMD_EVENT_HISTORY_DEINIT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_command_event
	bl	_rarch_favorites_deinit
	mov	w22, #1
	mov	w0, #1
	mov	w1, #4
	bl	_calloc
Lloh5:
	adrp	x8, _configuration_settings@GOTPAGE
Lloh6:
	ldr	x8, [x8, _configuration_settings@GOTPAGEOFF]
Lloh7:
	str	x0, [x8]
Lloh8:
	adrp	x8, _RARCH_DRIVER_CTL_DEINIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RARCH_DRIVER_CTL_DEINIT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_driver_ctl
Lloh11:
	adrp	x8, _RARCH_CTL_STATE_FREE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RARCH_CTL_STATE_FREE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_rarch_ctl
	bl	_global_free
	mov	x0, x19
	bl	_frontend_driver_init_first
Lloh14:
	adrp	x8, _rarch_is_inited@GOTPAGE
Lloh15:
	ldr	x8, [x8, _rarch_is_inited@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh17:
	adrp	x8, _DRIVERS_CMD_ALL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DRIVERS_CMD_ALL@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_driver_uninit
LBB0_2:
Lloh20:
	adrp	x8, _video_driver_active@GOTPAGE
Lloh21:
	ldr	x8, [x8, _video_driver_active@GOTPAGEOFF]
Lloh22:
	adrp	x9, _audio_driver_active@GOTPAGE
Lloh23:
	ldr	x9, [x9, _audio_driver_active@GOTPAGEOFF]
Lloh24:
	str	w22, [x8]
Lloh25:
	str	w22, [x9]
Lloh26:
	adrp	x23, _MAX_USERS@GOTPAGE
Lloh27:
	ldr	x23, [x23, _MAX_USERS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x22, #0
Lloh28:
	adrp	x24, _RETRO_DEVICE_JOYPAD@GOTPAGE
Lloh29:
	ldr	x24, [x24, _RETRO_DEVICE_JOYPAD@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x22
	bl	_input_config_set_device
	add	x22, x22, #1
	ldr	x8, [x23]
	cmp	x22, x8
	b.lt	LBB0_4
LBB0_5:
	bl	_retroarch_msg_queue_init
	bl	_frontend_driver_is_inited
	cbz	x0, LBB0_7
; %bb.6:
	str	w21, [sp]
	str	x20, [sp, #8]
	str	x19, [sp, #24]
	bl	_frontend_driver_environment_get_ptr
	str	w0, [sp, #16]
Lloh30:
	adrp	x8, _CORE_TYPE_PLAIN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CORE_TYPE_PLAIN@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
	mov	x2, sp
	mov	x0, #0
	mov	x1, #0
	mov	x4, #0
	mov	x5, #0
	bl	_task_push_load_content_from_cli
	cbz	w0, LBB0_10
LBB0_7:
	bl	_ui_companion_driver_init_first
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	bl	_runloop_iterate
	mov	x20, x0
	bl	_task_queue_check
	cmn	w20, #1
	b.ne	LBB0_8
; %bb.9:
	mov	x0, x19
	bl	_main_exit
	mov	w0, #0
	b	LBB0_11
LBB0_10:
	mov	w0, #1
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh25
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_runloop_system,4,2             ; @runloop_system
	.comm	_CMD_EVENT_HISTORY_DEINIT,4,2   ; @CMD_EVENT_HISTORY_DEINIT
	.comm	_configuration_settings,8,3     ; @configuration_settings
	.comm	_RARCH_DRIVER_CTL_DEINIT,4,2    ; @RARCH_DRIVER_CTL_DEINIT
	.comm	_RARCH_CTL_STATE_FREE,4,2       ; @RARCH_CTL_STATE_FREE
	.comm	_rarch_is_inited,8,3            ; @rarch_is_inited
	.comm	_DRIVERS_CMD_ALL,4,2            ; @DRIVERS_CMD_ALL
	.comm	_video_driver_active,4,2        ; @video_driver_active
	.comm	_audio_driver_active,4,2        ; @audio_driver_active
	.comm	_MAX_USERS,8,3                  ; @MAX_USERS
	.comm	_RETRO_DEVICE_JOYPAD,4,2        ; @RETRO_DEVICE_JOYPAD
	.comm	_CORE_TYPE_PLAIN,4,2            ; @CORE_TYPE_PLAIN
	.comm	_MAGIC_POINTER,4,2              ; @MAGIC_POINTER
	.comm	_rarch_tls,4,2                  ; @rarch_tls
	.comm	_ui_companion_qt,8,3            ; @ui_companion_qt
.subsections_via_symbols
