	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_level4_page
_init_level4_page:                      ## @init_level4_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	%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	%rdx, %rbx
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %rbx
	movq	%rsi, %r14
	movq	_PTRS_PER_PGD@GOTPCREL(%rip), %rax
	movq	_PGDIR_SIZE@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	imulq	(%rax), %rdx
	addq	%rbx, %rdx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, %rbx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	jae	LBB0_6
## %bb.1:
	cmpq	%rdx, %rbx
	jae	LBB0_6
## %bb.2:
	movq	%rdi, %r12
	movl	%r14d, %r13d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_kimage_alloc_control_pages
	testq	%rax, %rax
	je	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rdi
	callq	_page_address
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_init_level3_page
	testl	%eax, %eax
	jne	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	addq	$4, %r14
	movq	%r15, %rdi
	callq	___pa
	movq	__KERNPG_TABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %edi
	callq	___pgd
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_set_pgd
	movq	_PGDIR_SIZE@GOTPCREL(%rip), %r15
	addq	(%r15), %rbx
	cmpq	%r12, %rbx
	jae	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	addl	$4, %r13d
	cmpq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jb	LBB0_3
LBB0_6:
	xorl	%eax, %eax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	cmpq	%r13, %rbx
	jae	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_pgd_clear
	addq	(%r15), %rbx
	addl	$4, %r14d
	cmpq	%r13, %rbx
	jb	LBB0_7
## %bb.8:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_MASK,8,3                  ## @PAGE_MASK
	.comm	_PTRS_PER_PGD,8,3               ## @PTRS_PER_PGD
	.comm	_PGDIR_SIZE,8,3                 ## @PGDIR_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	__KERNPG_TABLE,4,2              ## @_KERNPG_TABLE
	.no_dead_strip	_init_level4_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_level4_page
_init_level4_page:                      ; @init_level4_page
	.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	x19, x1
Lloh0:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	and	x20, x8, x2
Lloh3:
	adrp	x8, _PTRS_PER_PGD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PTRS_PER_PGD@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x25, _PGDIR_SIZE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _PGDIR_SIZE@GOTPAGEOFF]
	ldr	x9, [x25]
	madd	x26, x9, x8, x20
	cmp	x20, x3
	ccmp	x20, x26, #2, lo
	b.hs	LBB0_6
; %bb.1:
	mov	x21, x3
	mov	x22, x0
Lloh8:
	adrp	x27, __KERNPG_TABLE@GOTPAGE
Lloh9:
	ldr	x27, [x27, __KERNPG_TABLE@GOTPAGEOFF]
	mov	x23, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	w1, #0
	bl	_kimage_alloc_control_pages
	cbz	x0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_page_address
	mov	x24, x0
	mov	x0, x22
	mov	x1, x24
	mov	x2, x20
	mov	x3, x21
	bl	_init_level3_page
	cbnz	w0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x19, x19, #4
	mov	x0, x24
	bl	___pa
	ldr	w8, [x27]
	orr	w0, w8, w0
	bl	___pgd
	mov	x1, x0
	mov	x0, x23
	bl	_set_pgd
	ldr	x8, [x25]
	add	w23, w23, #4
	add	x20, x8, x20
	cmp	x20, x21
	ccmp	x20, x26, #2, lo
	b.lo	LBB0_2
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_pgd_clear
	ldr	x8, [x25]
	add	w19, w19, #4
	add	x20, x8, x20
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x20, x26
	b.lo	LBB0_5
; %bb.7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_MASK,8,3                  ; @PAGE_MASK
	.comm	_PTRS_PER_PGD,8,3               ; @PTRS_PER_PGD
	.comm	_PGDIR_SIZE,8,3                 ; @PGDIR_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	__KERNPG_TABLE,4,2              ; @_KERNPG_TABLE
	.no_dead_strip	_init_level4_page
.subsections_via_symbols
