	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function task_load_content_callback
_task_load_content_callback:            ## @task_load_content_callback
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_global_get_ptr
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_runloop_get_system_info
	movq	%rax, %r13
	movl	12(%rbx), %eax
	movl	%eax, -56(%rbp)
	movq	_RARCH_CTL_IS_IPS_PREF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_rarch_ctl
	movq	%rax, -64(%rbp)
	movq	_RARCH_CTL_IS_BPS_PREF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_rarch_ctl
	movq	%rax, -72(%rbp)
	movq	_RARCH_CTL_IS_UPS_PREF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_rarch_ctl
	movq	%rax, -80(%rbp)
	movq	_RARCH_CTL_IS_PATCH_BLOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_rarch_ctl
	movq	%rax, -88(%rbp)
	movq	_RARCH_CTL_IS_MISSING_BIOS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_rarch_ctl
	movq	%rax, -96(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -176(%rbp)
	movaps	%xmm0, -160(%rbp)
	movaps	%xmm0, -144(%rbp)
	movups	%xmm0, -132(%rbp)
	movaps	%xmm0, -112(%rbp)
	testq	%r13, %r13
	je	LBB0_8
## %bb.1:
	xorl	%eax, %eax
	callq	_runloop_get_libretro_system_info
	movq	%rax, %r14
	movl	8(%rbx), %eax
	movl	%eax, -120(%rbp)
	movl	(%rbx), %edi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	(%rbx), %edi
	callq	_strdup
	movq	%rax, -176(%rbp)
LBB0_3:
	movl	4(%rbx), %edi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	4(%rbx), %edi
	callq	_strdup
	movq	%rax, -168(%rbp)
LBB0_5:
	movl	8(%r14), %edi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	8(%r14), %edi
	callq	_strdup
	movq	%rax, -136(%rbp)
LBB0_7:
	movl	(%r14), %eax
	movl	%eax, -128(%rbp)
	movl	4(%r14), %eax
	movl	%eax, -124(%rbp)
	movq	8(%r13), %rax
	movq	%rax, -104(%rbp)
	movq	(%r13), %rax
	movq	%rax, -112(%rbp)
LBB0_8:
	testq	%r12, %r12
	je	LBB0_15
## %bb.9:
	movl	8(%r12), %edi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movl	8(%r12), %edi
	callq	_strdup
	movq	%rax, -160(%rbp)
LBB0_11:
	movl	4(%r12), %edi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movl	4(%r12), %edi
	callq	_strdup
	movq	%rax, -152(%rbp)
LBB0_13:
	movl	(%r12), %edi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movl	(%r12), %edi
	callq	_strdup
	movq	%rax, -144(%rbp)
LBB0_15:
	movl	(%rbx), %edi
	callq	_string_is_empty
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	cmpq	$0, (%r15)
	je	LBB0_18
LBB0_19:
	leaq	-176(%rbp), %rdi
	callq	_firmware_update_status
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_22
## %bb.20:
	movq	%r15, %rdi
	callq	_content_load
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	$1, %ebx
	movl	$1, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_task_push_to_history_list
LBB0_22:
	movq	-160(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.23:
	callq	_free
LBB0_24:
	movq	-152(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.25:
	callq	_free
LBB0_26:
	movq	-144(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_28
## %bb.27:
	callq	_free
LBB0_28:
	movq	-176(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_30
## %bb.29:
	callq	_free
LBB0_30:
	movq	-168(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_32
## %bb.31:
	callq	_free
LBB0_32:
	movq	-136(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_34
## %bb.33:
	callq	_free
LBB0_34:
	movl	%ebx, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	(%rbx), %edi
	callq	_strdup
	movq	%rax, -176(%rbp)
	cmpq	$0, (%r15)
	jne	LBB0_19
LBB0_18:
	movq	_menu_content_environment_get@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_RARCH_CTL_IS_IPS_PREF,4,2      ## @RARCH_CTL_IS_IPS_PREF
	.comm	_RARCH_CTL_IS_BPS_PREF,4,2      ## @RARCH_CTL_IS_BPS_PREF
	.comm	_RARCH_CTL_IS_UPS_PREF,4,2      ## @RARCH_CTL_IS_UPS_PREF
	.comm	_RARCH_CTL_IS_PATCH_BLOCKED,4,2 ## @RARCH_CTL_IS_PATCH_BLOCKED
	.comm	_RARCH_CTL_IS_MISSING_BIOS,4,2  ## @RARCH_CTL_IS_MISSING_BIOS
	.comm	_menu_content_environment_get,8,3 ## @menu_content_environment_get
	.comm	_MESSAGE_QUEUE_ICON_DEFAULT,4,2 ## @MESSAGE_QUEUE_ICON_DEFAULT
	.comm	_MESSAGE_QUEUE_CATEGORY_INFO,4,2 ## @MESSAGE_QUEUE_CATEGORY_INFO
	.comm	_CMD_EVENT_DISCORD_UPDATE,4,2   ## @CMD_EVENT_DISCORD_UPDATE
	.comm	_DISCORD_PRESENCE_MENU,4,2      ## @DISCORD_PRESENCE_MENU
	.comm	_DISCORD_PRESENCE_NETPLAY_NETPLAY_STOPPED,4,2 ## @DISCORD_PRESENCE_NETPLAY_NETPLAY_STOPPED
	.comm	_discord_is_inited,8,3          ## @discord_is_inited
	.no_dead_strip	_task_load_content_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function task_load_content_callback
_task_load_content_callback:            ; @task_load_content_callback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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, x0
	bl	_global_get_ptr
	mov	x22, x0
	bl	_config_get_ptr
	mov	x21, x0
	bl	_runloop_get_system_info
	mov	x23, x0
	ldr	w8, [x21, #12]
	str	w8, [sp, #120]
Lloh0:
	adrp	x8, _RARCH_CTL_IS_IPS_PREF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RARCH_CTL_IS_IPS_PREF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_rarch_ctl
	str	x0, [sp, #112]
Lloh3:
	adrp	x8, _RARCH_CTL_IS_BPS_PREF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RARCH_CTL_IS_BPS_PREF@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_rarch_ctl
	str	x0, [sp, #104]
Lloh6:
	adrp	x8, _RARCH_CTL_IS_UPS_PREF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RARCH_CTL_IS_UPS_PREF@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_rarch_ctl
	str	x0, [sp, #96]
Lloh9:
	adrp	x8, _RARCH_CTL_IS_PATCH_BLOCKED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RARCH_CTL_IS_PATCH_BLOCKED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_rarch_ctl
	str	x0, [sp, #88]
Lloh12:
	adrp	x8, _RARCH_CTL_IS_MISSING_BIOS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RARCH_CTL_IS_MISSING_BIOS@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_rarch_ctl
	stp	xzr, x0, [sp, #72]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
	str	q0, [sp, #32]
	stur	q0, [sp, #44]
	str	xzr, [sp, #64]
	cbz	x23, LBB0_8
; %bb.1:
	bl	_runloop_get_libretro_system_info
	mov	x24, x0
	ldr	w8, [x21, #8]
	str	w8, [sp, #56]
	ldr	w0, [x21]
	bl	_string_is_empty
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	w0, [x21]
	bl	_strdup
	str	x0, [sp]
LBB0_3:
	ldr	w0, [x21, #4]
	bl	_string_is_empty
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w0, [x21, #4]
	bl	_strdup
	str	x0, [sp, #8]
LBB0_5:
	ldr	w0, [x24, #8]
	bl	_string_is_empty
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	w0, [x24, #8]
	bl	_strdup
	str	x0, [sp, #40]
LBB0_7:
	ldr	d0, [x24]
	str	d0, [sp, #48]
	ldr	x8, [x23, #8]
	str	x8, [sp, #72]
	ldr	x8, [x23]
	str	x8, [sp, #64]
LBB0_8:
	cbz	x22, LBB0_15
; %bb.9:
	ldr	w0, [x22, #8]
	bl	_string_is_empty
	cbnz	w0, LBB0_11
; %bb.10:
	ldr	w0, [x22, #8]
	bl	_strdup
	str	x0, [sp, #16]
LBB0_11:
	ldr	w0, [x22, #4]
	bl	_string_is_empty
	cbnz	w0, LBB0_13
; %bb.12:
	ldr	w0, [x22, #4]
	bl	_strdup
	str	x0, [sp, #24]
LBB0_13:
	ldr	w0, [x22]
	bl	_string_is_empty
	cbnz	w0, LBB0_15
; %bb.14:
	ldr	w0, [x22]
	bl	_strdup
	str	x0, [sp, #32]
LBB0_15:
	ldr	w0, [x21]
	bl	_string_is_empty
	cbz	w0, LBB0_32
; %bb.16:
	ldr	x8, [x20]
	cbnz	x8, LBB0_18
LBB0_17:
Lloh15:
	adrp	x8, _menu_content_environment_get@GOTPAGE
Lloh16:
	ldr	x8, [x8, _menu_content_environment_get@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_18:
	mov	x0, sp
	bl	_firmware_update_status
	cbz	x0, LBB0_33
LBB0_19:
	mov	w20, #0
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_21
LBB0_20:
	bl	_free
LBB0_21:
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_23
; %bb.22:
	bl	_free
LBB0_23:
	ldr	x0, [sp, #32]
	cbz	x0, LBB0_25
; %bb.24:
	bl	_free
LBB0_25:
	ldr	x0, [sp]
	cbz	x0, LBB0_27
; %bb.26:
	bl	_free
LBB0_27:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_29
; %bb.28:
	bl	_free
LBB0_29:
	ldr	x0, [sp, #40]
	cbz	x0, LBB0_31
; %bb.30:
	bl	_free
LBB0_31:
	mov	x0, x20
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_32:
	ldr	w0, [x21]
	bl	_strdup
	str	x0, [sp]
	ldr	x8, [x20]
	cbnz	x8, LBB0_18
	b	LBB0_17
LBB0_33:
	mov	x0, x20
	bl	_content_load
	cbz	w0, LBB0_19
; %bb.34:
	mov	w20, #1
	mov	w0, #1
	mov	x1, x19
	bl	_task_push_to_history_list
	ldr	x0, [sp, #16]
	cbnz	x0, LBB0_20
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_RARCH_CTL_IS_IPS_PREF,4,2      ; @RARCH_CTL_IS_IPS_PREF
	.comm	_RARCH_CTL_IS_BPS_PREF,4,2      ; @RARCH_CTL_IS_BPS_PREF
	.comm	_RARCH_CTL_IS_UPS_PREF,4,2      ; @RARCH_CTL_IS_UPS_PREF
	.comm	_RARCH_CTL_IS_PATCH_BLOCKED,4,2 ; @RARCH_CTL_IS_PATCH_BLOCKED
	.comm	_RARCH_CTL_IS_MISSING_BIOS,4,2  ; @RARCH_CTL_IS_MISSING_BIOS
	.comm	_menu_content_environment_get,8,3 ; @menu_content_environment_get
	.comm	_MESSAGE_QUEUE_ICON_DEFAULT,4,2 ; @MESSAGE_QUEUE_ICON_DEFAULT
	.comm	_MESSAGE_QUEUE_CATEGORY_INFO,4,2 ; @MESSAGE_QUEUE_CATEGORY_INFO
	.comm	_CMD_EVENT_DISCORD_UPDATE,4,2   ; @CMD_EVENT_DISCORD_UPDATE
	.comm	_DISCORD_PRESENCE_MENU,4,2      ; @DISCORD_PRESENCE_MENU
	.comm	_DISCORD_PRESENCE_NETPLAY_NETPLAY_STOPPED,4,2 ; @DISCORD_PRESENCE_NETPLAY_NETPLAY_STOPPED
	.comm	_discord_is_inited,8,3          ; @discord_is_inited
	.no_dead_strip	_task_load_content_callback
.subsections_via_symbols
