	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function map_phys_page_pack
_map_phys_page_pack:                    ## @map_phys_page_pack
	.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
	cmpq	$0, (%rdx)
	je	LBB0_10
## %bb.1:
	movq	%rdx, %r12
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	24(%rdx), %r14
	xorl	%r15d, %r15d
	movq	%rsi, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%r15,8), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r14, %rcx
	callq	_hl_mmu_map
	testl	%eax, %eax
	jne	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	addq	%r14, %r13
	cmpq	(%r12), %r15
	jb	LBB0_2
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_3:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	16(%r12), %edx
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %r8
	callq	_dev_err
	testq	%r15, %r15
	je	LBB0_8
## %bb.4:
	xorl	%r13d, %r13d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, %r12
	movq	%rax, %r14
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	%r12, %rbx
	incq	%r13
	cmpq	%r13, %r15
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_hl_mmu_unmap
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %edx
	movq	8(%rax), %rax
	movq	(%rax,%r13,8), %r8
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rcx
	movq	%r12, %r9
	callq	_dev_warn_ratelimited
	jmp	LBB0_7
LBB0_8:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_11:
	addq	$40, %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	"map failed for handle %u, npages: %llu, mapped: %llu"

L_.str.1:                               ## @.str.1
	.asciz	"failed to unmap handle %u, va: 0x%llx, pa: 0x%llx, page size: %u\n"

	.no_dead_strip	_map_phys_page_pack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function map_phys_page_pack
_map_phys_page_pack:                    ; @map_phys_page_pack
	.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
	ldr	x8, [x2]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x22, #0
	ldr	x26, [x0]
	ldr	x23, [x2, #24]
	mov	x25, x1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x2, [x8, x22, lsl #3]
	mov	x0, x21
	mov	x1, x25
	mov	x3, x23
	bl	_hl_mmu_map
	cbnz	w0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	add	x25, x25, x23
	ldr	x8, [x19]
	cmp	x22, x8
	b.lo	LBB0_2
LBB0_4:
	mov	w24, #0
LBB0_5:
	mov	x0, x24
	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
LBB0_6:
	mov	x24, x0
	ldr	w0, [x26]
	ldr	w2, [x19, #16]
	ldr	x3, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x4, x22
	bl	_dev_err
	cbz	x22, LBB0_5
; %bb.7:
	mov	x27, #0
Lloh2:
	adrp	x25, l_.str.1@PAGE
Lloh3:
	add	x25, x25, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x20, x20, x23
	add	x27, x27, #1
	cmp	x22, x27
	b.eq	LBB0_5
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	bl	_hl_mmu_unmap
	cbz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x26]
	ldr	w2, [x19, #16]
	ldr	x8, [x19, #8]
	ldr	x4, [x8, x27, lsl #3]
	mov	x1, x25
	mov	x3, x20
	mov	x5, x23
	bl	_dev_warn_ratelimited
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"map failed for handle %u, npages: %llu, mapped: %llu"

l_.str.1:                               ; @.str.1
	.asciz	"failed to unmap handle %u, va: 0x%llx, pa: 0x%llx, page size: %u\n"

	.no_dead_strip	_map_phys_page_pack
.subsections_via_symbols
