	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function task_overlay_resolve_iterate
_task_overlay_resolve_iterate:          ## @task_overlay_resolve_iterate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdx
	cmpq	%rdx, %rsi
	jge	LBB0_1
## %bb.3:
	movq	%rdi, %r14
	movq	24(%rbx), %rdi
	callq	_task_overlay_resolve_targets
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	24(%rbx), %rcx
	movq	%rcx, 32(%rbx)
LBB0_7:
	incq	%rax
	movq	%rax, (%rbx)
	jmp	LBB0_8
LBB0_1:
	movq	_OVERLAY_STATUS_DEFERRED_DONE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_RARCH_ERR
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_task_set_cancelled
	movq	_OVERLAY_STATUS_DEFERRED_ERROR@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OVERLAY_STATUS_DEFERRED_DONE,4,2 ## @OVERLAY_STATUS_DEFERRED_DONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[Overlay]: Failed to resolve next targets.\n"

	.comm	_OVERLAY_STATUS_DEFERRED_ERROR,4,2 ## @OVERLAY_STATUS_DEFERRED_ERROR
	.no_dead_strip	_task_overlay_resolve_iterate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function task_overlay_resolve_iterate
_task_overlay_resolve_iterate:          ; @task_overlay_resolve_iterate
	.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
	ldr	x20, [x0]
	ldp	x1, x2, [x20]
	cmp	x1, x2
	b.ge	LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x0, [x20, #24]
	bl	_task_overlay_resolve_targets
	cbz	w0, LBB0_6
; %bb.2:
	ldr	x8, [x20]
	cbnz	x8, LBB0_4
; %bb.3:
	ldr	x9, [x20, #24]
	str	x9, [x20, #32]
LBB0_4:
	add	x8, x8, #1
	str	x8, [x20]
	b	LBB0_8
LBB0_5:
Lloh0:
	adrp	x8, _OVERLAY_STATUS_DEFERRED_DONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OVERLAY_STATUS_DEFERRED_DONE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_ERR
	mov	x0, x19
	mov	w1, #1
	bl	_task_set_cancelled
Lloh4:
	adrp	x8, _OVERLAY_STATUS_DEFERRED_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _OVERLAY_STATUS_DEFERRED_ERROR@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	str	w8, [x20, #40]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_OVERLAY_STATUS_DEFERRED_DONE,4,2 ; @OVERLAY_STATUS_DEFERRED_DONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[Overlay]: Failed to resolve next targets.\n"

	.comm	_OVERLAY_STATUS_DEFERRED_ERROR,4,2 ; @OVERLAY_STATUS_DEFERRED_ERROR
	.no_dead_strip	_task_overlay_resolve_iterate
.subsections_via_symbols
