	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function task_overlay_deferred_loading
_task_overlay_deferred_loading:         ## @task_overlay_deferred_loading
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r12
	movq	(%r12), %rax
	cmpq	8(%r12), %rax
	jae	LBB0_1
## %bb.2:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	16(%r12), %esi
	addl	$-128, %esi
	cmpl	$6, %esi
	ja	LBB0_23
## %bb.3:
	movq	32(%r12), %rcx
	imulq	$56, %rax, %rdx
	leaq	(%rcx,%rdx), %r14
	leaq	LJTI0_0(%rip), %rdi
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rdi, %rsi
	jmpq	*%rsi
LBB0_10:
	movl	$130, 16(%r12)
LBB0_11:
	movq	%r14, %rdi
	callq	_task_overlay_image_done
	movl	$132, 16(%r12)
	movq	32(%r12), %rax
	imulq	$56, (%r12), %rcx
	movq	$0, (%rax,%rcx)
	jmp	LBB0_23
LBB0_1:
	movq	_OVERLAY_STATUS_DEFERRED_LOADING_RESOLVE@GOTPCREL(%rip), %rax
LBB0_18:
	movq	(%rax), %rax
	movq	%rax, 24(%r12)
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpq	$0, 8(%rcx,%rdx)
	je	LBB0_23
## %bb.5:
	leaq	(%rcx,%rdx), %rbx
	addq	$8, %rbx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %r8
	cmpq	8(%rbx), %r8
	jae	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	leaq	(,%r8,4), %rsi
	addq	40(%rbx), %rsi
	movq	(%r12), %rcx
	movl	32(%rbx), %r9d
	movl	28(%rbx), %r10d
	movl	24(%rbx), %r11d
	movl	20(%rbx), %eax
	movl	16(%rbx), %r15d
	movq	%r12, %rdi
	movq	%r14, %rdx
                                        ## kill: def $r8d killed $r8d killed $r8
	pushq	%r15
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_task_overlay_load_desc
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%r13
	cmpq	(%rbx), %r13
	jb	LBB0_14
	jmp	LBB0_23
LBB0_6:
	cmpq	$0, 8(%rcx,%rdx)
	je	LBB0_23
## %bb.7:
	leaq	(%rcx,%rdx), %r15
	addq	$8, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %r8
	cmpq	8(%r15), %r8
	jae	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	leaq	(,%r8,4), %rsi
	addq	40(%r15), %rsi
	movq	(%r12), %rcx
	movq	%r12, %rdi
	movq	%r14, %rdx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_task_overlay_load_desc_image
	incq	%rbx
	cmpq	(%r15), %rbx
	jb	LBB0_8
	jmp	LBB0_23
LBB0_20:
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_task_overlay_resolve_iterate
	movq	(%r12), %rax
LBB0_22:
	incq	%rax
	movq	%rax, (%r12)
	movl	$128, 16(%r12)
	jmp	LBB0_23
LBB0_12:
	movq	$0, (%r14)
	movl	$131, 16(%r12)
	jmp	LBB0_23
LBB0_19:
	movq	$0, (%r14)
	movl	$133, 16(%r12)
	jmp	LBB0_23
LBB0_16:
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_RARCH_ERR
LBB0_17:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	callq	_task_set_cancelled
	movq	_OVERLAY_STATUS_DEFERRED_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_18
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_17
	.long	L0_0_set_11
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_20
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_OVERLAY_STATUS_DEFERRED_LOADING_RESOLVE,8,3 ## @OVERLAY_STATUS_DEFERRED_LOADING_RESOLVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[Overlay]: Failed to load overlay descs for overlay #%u.\n"

	.comm	_OVERLAY_STATUS_DEFERRED_ERROR,8,3 ## @OVERLAY_STATUS_DEFERRED_ERROR
	.no_dead_strip	_task_overlay_deferred_loading
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function task_overlay_deferred_loading
_task_overlay_deferred_loading:         ; @task_overlay_deferred_loading
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x19, [x0]
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.hs	LBB0_5
; %bb.1:
	ldr	w9, [x19, #16]
	sub	w10, w9, #128
	cmp	w10, #6
	b.hi	LBB0_7
; %bb.2:
	mov	x21, x0
	ldr	x9, [x19, #32]
	mov	w11, #56
	madd	x20, x8, x11, x9
Lloh0:
	adrp	x11, lJTI0_0@PAGE
Lloh1:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_3
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_3:
	mov	w8, #130
	str	w8, [x19, #16]
LBB0_4:
	mov	x0, x20
	bl	_task_overlay_image_done
	mov	w8, #132
	str	w8, [x19, #16]
	ldr	x8, [x19, #32]
	ldr	x9, [x19]
	mov	w10, #56
	mul	x9, x9, x10
	str	xzr, [x8, x9]
	b	LBB0_7
LBB0_5:
Lloh2:
	adrp	x8, _OVERLAY_STATUS_DEFERRED_LOADING_RESOLVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OVERLAY_STATUS_DEFERRED_LOADING_RESOLVE@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x8]
	str	x8, [x19, #24]
LBB0_7:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_8:
	mov	w10, #56
	madd	x22, x8, x10, x9
	ldr	x10, [x22, #8]!
	cbz	x10, LBB0_7
; %bb.9:
	mov	x23, #0
	mov	w10, #56
	madd	x8, x8, x10, x9
	add	x10, x8, #16
	add	x9, x8, #48
	stp	x9, x10, [sp, #16]              ; 16-byte Folded Spill
	add	x26, x8, #40
	add	x27, x8, #36
	add	x28, x8, #32
	add	x25, x8, #24
	add	x24, x8, #28
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x4, [x20]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	cmp	x4, x8
	b.hs	LBB0_21
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	add	x1, x8, x4, lsl #2
	ldr	x3, [x19]
	ldr	w5, [x26]
	ldr	w6, [x27]
	ldr	w7, [x28]
	ldr	w8, [x24]
	ldr	w9, [x25]
	stp	w8, w9, [sp]
	mov	x0, x19
	mov	x2, x20
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_task_overlay_load_desc
	cbz	w0, LBB0_23
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x23, x23, #1
	ldr	x8, [x22]
	cmp	x23, x8
	b.lo	LBB0_10
	b	LBB0_7
LBB0_13:
	mov	w10, #56
	madd	x21, x8, x10, x9
	ldr	x10, [x21, #8]!
	cbz	x10, LBB0_7
; %bb.14:
	mov	x22, #0
	mov	w10, #56
	madd	x8, x8, x10, x9
	add	x23, x8, #16
	add	x24, x8, #48
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x4, [x20]
	ldr	x8, [x23]
	cmp	x4, x8
	b.hs	LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x24]
	add	x1, x8, x4, lsl #2
	ldr	x3, [x19]
	mov	x0, x19
	mov	x2, x20
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_task_overlay_load_desc_image
	add	x22, x22, #1
	ldr	x8, [x21]
	cmp	x22, x8
	b.lo	LBB0_15
	b	LBB0_7
LBB0_17:
	cbnz	x8, LBB0_19
; %bb.18:
	mov	x0, x21
	bl	_task_overlay_resolve_iterate
	ldr	x8, [x19]
LBB0_19:
	add	x8, x8, #1
	str	x8, [x19]
	mov	w8, #128
	b	LBB0_22
LBB0_20:
	str	xzr, [x20]
	mov	w8, #131
	b	LBB0_22
LBB0_21:
	str	xzr, [x20]
	mov	w8, #133
LBB0_22:
	str	w8, [x19, #16]
	b	LBB0_7
LBB0_23:
	ldr	w1, [x20]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_ERR
LBB0_24:
	mov	x0, x21
	mov	w1, #1
	bl	_task_set_cancelled
Lloh6:
	adrp	x8, _OVERLAY_STATUS_DEFERRED_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OVERLAY_STATUS_DEFERRED_ERROR@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_24-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_17-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
                                        ; -- End function
	.comm	_OVERLAY_STATUS_DEFERRED_LOADING_RESOLVE,8,3 ; @OVERLAY_STATUS_DEFERRED_LOADING_RESOLVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[Overlay]: Failed to load overlay descs for overlay #%u.\n"

	.comm	_OVERLAY_STATUS_DEFERRED_ERROR,8,3 ; @OVERLAY_STATUS_DEFERRED_ERROR
	.no_dead_strip	_task_overlay_deferred_loading
.subsections_via_symbols
