	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __load_mappings
___load_mappings:                       ## @__load_mappings
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_hints_array_available
	movl	%eax, %r15d
	movl	12(%rbx), %edi
	callq	_from_cblock
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	36(%rbx), %rdi
	movl	32(%rbx), %esi
	leaq	8(%rbx), %r14
	movq	%r14, %rdx
	callq	_dm_array_cursor_begin
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_31
## %bb.3:
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.4:
	leaq	28(%rbx), %rdi
	movl	24(%rbx), %esi
	leaq	4(%rbx), %rdx
	callq	_dm_array_cursor_begin
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %r13d
	jmp	LBB0_6
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_31
LBB0_7:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_separate_dirty_bits
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	leaq	20(%rbx), %r12
	movl	12(%rbx), %edi
	movl	16(%rbx), %r13d
	callq	_from_cblock
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	movq	%rbx, %rcx
	callq	_dm_bitset_cursor_begin
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r13d
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_dm_array_cursor_end
LBB0_6:
	movq	%r14, %rdi
	callq	_dm_array_cursor_end
	jmp	LBB0_31
LBB0_10:
	leaq	4(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_11 Depth=1
	incl	%r12d
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_separate_dirty_bits
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movq	%r14, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	%rbx, %r9
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	___load_mapping_v2
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movq	%r14, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	___load_mapping_v1
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	addq	$16, %rsp
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_27
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	12(%rbx), %edi
	callq	_from_cblock
	decl	%eax
	cmpl	%eax, %r12d
	jge	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	callq	_dm_array_cursor_next
	testl	%eax, %eax
	jne	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_11 Depth=1
	testl	%r15d, %r15d
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dm_array_cursor_next
	testl	%eax, %eax
	je	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dm_array_cursor_end
LBB0_22:                                ##   in Loop: Header=BB0_11 Depth=1
	xorl	%r15d, %r15d
LBB0_23:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	callq	_separate_dirty_bits
	testq	%rax, %rax
	je	LBB0_32
## %bb.24:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	callq	_dm_bitset_cursor_next
	testl	%eax, %eax
	je	LBB0_32
## %bb.25:
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_26
LBB0_16:
	xorl	%r13d, %r13d
	jmp	LBB0_27
LBB0_18:
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rdi
LBB0_26:
	callq	_DMERR
LBB0_27:
	movq	%r14, %rdi
	callq	_dm_array_cursor_end
	testl	%r15d, %r15d
	je	LBB0_29
## %bb.28:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dm_array_cursor_end
LBB0_29:
	movq	%rbx, %rdi
	callq	_separate_dirty_bits
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:
	movq	%rbx, %rdi
	callq	_dm_bitset_cursor_end
LBB0_31:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dm_array_cursor_next for mapping failed"

L_.str.1:                               ## @.str.1
	.asciz	"dm_bitset_cursor_next for dirty failed"

	.no_dead_strip	___load_mappings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __load_mappings
___load_mappings:                       ; @__load_mappings
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x23, x2
	mov	x19, x0
	bl	_hints_array_available
	mov	x21, x0
	ldr	w0, [x19, #12]
	bl	_from_cblock
	cbz	w0, LBB0_5
; %bb.1:
	add	x0, x19, #36
	ldr	w1, [x19, #32]
	add	x20, x19, #8
	mov	x2, x20
	bl	_dm_array_cursor_begin
	mov	x27, x0
	cbnz	w0, LBB0_30
; %bb.2:
	cbz	w21, LBB0_6
; %bb.3:
	add	x0, x19, #28
	ldr	w1, [x19, #24]
	add	x2, x19, #4
	bl	_dm_array_cursor_begin
	cbz	w0, LBB0_6
; %bb.4:
	mov	x27, x0
	b	LBB0_9
LBB0_5:
	mov	w27, #0
	b	LBB0_30
LBB0_6:
	mov	x0, x19
	bl	_separate_dirty_bits
	cbz	x0, LBB0_10
; %bb.7:
	add	x24, x19, #20
	ldp	w0, w25, [x19, #12]
	bl	_from_cblock
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	mov	x3, x19
	bl	_dm_bitset_cursor_begin
	cbz	w0, LBB0_10
; %bb.8:
	mov	x27, x0
	add	x0, x19, #4
	bl	_dm_array_cursor_end
LBB0_9:
	mov	x0, x20
	bl	_dm_array_cursor_end
	b	LBB0_30
LBB0_10:
	mov	w26, #0
	add	x24, x19, #4
Lloh0:
	adrp	x25, l_.str@PAGE
Lloh1:
	add	x25, x25, l_.str@PAGEOFF
Lloh2:
	adrp	x28, l_.str.1@PAGE
Lloh3:
	add	x28, x28, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	w26, w26, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_separate_dirty_bits
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	mov	x1, x26
	mov	x2, x21
	mov	x3, x20
	mov	x4, x24
	mov	x5, x19
	mov	x6, x23
	mov	x7, x22
	bl	___load_mapping_v2
	mov	x27, x0
	cbz	w0, LBB0_15
	b	LBB0_26
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	mov	x1, x26
	mov	x2, x21
	mov	x3, x20
	mov	x4, x24
	mov	x5, x23
	mov	x6, x22
	bl	___load_mapping_v1
	mov	x27, x0
	cbnz	w0, LBB0_26
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [x19, #12]
	bl	_from_cblock
	sub	w8, w0, #1
	cmp	w26, w8
	b.ge	LBB0_23
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x20
	bl	_dm_array_cursor_next
	cbnz	w0, LBB0_24
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	cbz	w21, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x24
	bl	_dm_array_cursor_next
	cbz	w0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x24
	bl	_dm_array_cursor_end
	mov	w21, #0
LBB0_20:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	bl	_separate_dirty_bits
	cbz	x0, LBB0_11
; %bb.21:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	bl	_dm_bitset_cursor_next
	cbz	w0, LBB0_11
; %bb.22:
	mov	x27, x0
	mov	x25, x28
	b	LBB0_25
LBB0_23:
	mov	w27, #0
	b	LBB0_26
LBB0_24:
	mov	x27, x0
LBB0_25:
	mov	x0, x25
	bl	_DMERR
LBB0_26:
	mov	x0, x20
	bl	_dm_array_cursor_end
	cbz	w21, LBB0_28
; %bb.27:
	mov	x0, x24
	bl	_dm_array_cursor_end
LBB0_28:
	mov	x0, x19
	bl	_separate_dirty_bits
	cbz	x0, LBB0_30
; %bb.29:
	mov	x0, x19
	bl	_dm_bitset_cursor_end
LBB0_30:
	mov	x0, x27
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dm_array_cursor_next for mapping failed"

l_.str.1:                               ; @.str.1
	.asciz	"dm_bitset_cursor_next for dirty failed"

	.no_dead_strip	___load_mappings
.subsections_via_symbols
