	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_map_page                       ## -- Begin function map_page
	.p2align	4, 0x90
_map_page:                              ## @map_page
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_get_free_page
	movq	%rax, (%rbx)
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rdx
	leaq	1(%rdx), %rsi
	movq	%rsi, 16(%rbx)
	movq	%rax, 8(%rcx,%rdx,8)
	movq	(%rbx), %rdi
LBB0_2:
	movq	_VA_START@GOTPCREL(%rip), %r12
	addq	(%r12), %rdi
	movq	_PGD_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rcx
	movq	%r15, %rdx
	callq	_map_table
	cmpl	$0, -36(%rbp)
	je	LBB0_4
## %bb.3:
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rdx
	leaq	1(%rdx), %rsi
	movq	%rsi, 16(%rbx)
	movq	%rax, 8(%rcx,%rdx,8)
LBB0_4:
	addq	(%r12), %rax
	movq	_PUD_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-36(%rbp), %rcx
	movq	%rax, %rdi
	movq	%r15, %rdx
	callq	_map_table
	cmpl	$0, -36(%rbp)
	je	LBB0_6
## %bb.5:
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rdx
	leaq	1(%rdx), %rsi
	movq	%rsi, 16(%rbx)
	movq	%rax, 8(%rcx,%rdx,8)
LBB0_6:
	addq	(%r12), %rax
	movq	_PMD_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-36(%rbp), %rcx
	movq	%rax, %rdi
	movq	%r15, %rdx
	callq	_map_table
	cmpl	$0, -36(%rbp)
	je	LBB0_8
## %bb.7:
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rdx
	leaq	1(%rdx), %rsi
	movq	%rsi, 16(%rbx)
	movq	%rax, 8(%rcx,%rdx,8)
LBB0_8:
	addq	(%r12), %rax
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_map_table_entry
	movq	32(%rbx), %rax
	movslq	24(%rbx), %rcx
	leal	1(%rcx), %edx
	movl	%edx, 24(%rbx)
	shlq	$4, %rcx
	movq	%r14, (%rax,%rcx)
	movq	%r15, 8(%rax,%rcx)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VA_START,8,3                   ## @VA_START
	.comm	_PGD_SHIFT,4,2                  ## @PGD_SHIFT
	.comm	_PUD_SHIFT,4,2                  ## @PUD_SHIFT
	.comm	_PMD_SHIFT,4,2                  ## @PMD_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_map_page                       ; -- Begin function map_page
	.p2align	2
_map_page:                              ; @map_page
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x0]
	cbnz	x8, LBB0_2
; %bb.1:
	bl	_get_free_page
	str	x0, [x21]
	ldp	x8, x9, [x21, #8]
	add	x9, x9, #1
	str	x9, [x21, #16]
	str	x0, [x8, x9, lsl #3]
	ldr	x8, [x21]
LBB0_2:
Lloh0:
	adrp	x22, _VA_START@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VA_START@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
Lloh2:
	adrp	x8, _PGD_SHIFT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PGD_SHIFT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x2, x19
	bl	_map_table
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_4
; %bb.3:
	ldp	x8, x9, [x21, #8]
	add	x9, x9, #1
	str	x9, [x21, #16]
	str	x0, [x8, x9, lsl #3]
LBB0_4:
	ldr	x8, [x22]
	add	x0, x8, x0
Lloh5:
	adrp	x8, _PUD_SHIFT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PUD_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x2, x19
	bl	_map_table
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_6
; %bb.5:
	ldp	x8, x9, [x21, #8]
	add	x9, x9, #1
	str	x9, [x21, #16]
	str	x0, [x8, x9, lsl #3]
LBB0_6:
	ldr	x8, [x22]
	add	x0, x8, x0
Lloh8:
	adrp	x8, _PMD_SHIFT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PMD_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x2, x19
	bl	_map_table
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_8
; %bb.7:
	ldp	x8, x9, [x21, #8]
	add	x9, x9, #1
	str	x9, [x21, #16]
	str	x0, [x8, x9, lsl #3]
LBB0_8:
	ldr	x8, [x22]
	add	x0, x8, x0
	mov	x1, x19
	mov	x2, x20
	bl	_map_table_entry
	ldr	x8, [x21, #32]
	ldrsw	x9, [x21, #24]
	add	w10, w9, #1
	str	w10, [x21, #24]
	add	x8, x8, x9, lsl #4
	stp	x20, x19, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_VA_START,8,3                   ; @VA_START
	.comm	_PGD_SHIFT,4,2                  ; @PGD_SHIFT
	.comm	_PUD_SHIFT,4,2                  ; @PUD_SHIFT
	.comm	_PMD_SHIFT,4,2                  ; @PMD_SHIFT
.subsections_via_symbols
