	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function res_phys_pud_init
_res_phys_pud_init:                     ## @res_phys_pud_init
	.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	%rsi, %r12
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_pud_index
	movq	%rax, %rcx
	movq	_PTRS_PER_PUD@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jge	LBB0_11
## %bb.1:
	leaq	(%r14,%rcx,4), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_PTRS_PER_PMD@GOTPCREL(%rip), %r15
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, -48(%rbp)                   ## 8-byte Folded Spill
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	_PTRS_PER_PUD@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jge	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	_PUD_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	imulq	%rcx, %r13
	addq	%r12, %r13
	cmpq	%rbx, %r13
	jae	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_safe_page
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	___pa
	movq	__KERNPG_TABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %edi
	callq	___pud
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_set_pud
	cmpq	$0, (%r15)
	jle	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	___PAGE_KERNEL_LARGE_EXEC@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	orq	%r13, %rdi
	movq	___supported_pte_mask@GOTPCREL(%rip), %rax
	andq	(%rax), %rdi
	callq	___pmd
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_set_pmd
	cmpq	(%r15), %r12
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	addq	$4, %r14
	movq	_PMD_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %r13
	incq	%r12
	cmpq	%rbx, %r13
	jb	LBB0_7
	jmp	LBB0_9
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTRS_PER_PUD,8,3               ## @PTRS_PER_PUD
	.comm	_PUD_SIZE,8,3                   ## @PUD_SIZE
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	__KERNPG_TABLE,4,2              ## @_KERNPG_TABLE
	.comm	_PTRS_PER_PMD,8,3               ## @PTRS_PER_PMD
	.comm	___PAGE_KERNEL_LARGE_EXEC,8,3   ## @__PAGE_KERNEL_LARGE_EXEC
	.comm	___supported_pte_mask,8,3       ## @__supported_pte_mask
	.comm	_PMD_SIZE,8,3                   ## @PMD_SIZE
	.no_dead_strip	_res_phys_pud_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function res_phys_pud_init
_res_phys_pud_init:                     ; @res_phys_pud_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x2
	mov	x20, x1
	mov	x22, x0
	mov	x0, x1
	bl	_pud_index
Lloh0:
	adrp	x8, _PTRS_PER_PUD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PTRS_PER_PUD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_8
; %bb.1:
	mov	x21, x0
	add	x22, x22, x0, lsl #2
Lloh3:
	adrp	x28, _PTRS_PER_PMD@GOTPAGE
Lloh4:
	ldr	x28, [x28, _PTRS_PER_PMD@GOTPAGEOFF]
Lloh5:
	adrp	x27, ___PAGE_KERNEL_LARGE_EXEC@GOTPAGE
Lloh6:
	ldr	x27, [x27, ___PAGE_KERNEL_LARGE_EXEC@GOTPAGEOFF]
Lloh7:
	adrp	x26, ___supported_pte_mask@GOTPAGE
Lloh8:
	ldr	x26, [x26, ___supported_pte_mask@GOTPAGEOFF]
Lloh9:
	adrp	x25, _PMD_SIZE@GOTPAGE
Lloh10:
	ldr	x25, [x25, _PMD_SIZE@GOTPAGEOFF]
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #4
	add	x21, x21, #1
Lloh11:
	adrp	x8, _PTRS_PER_PUD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PTRS_PER_PUD@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x21, x8
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
Lloh14:
	adrp	x8, _PUD_SIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PUD_SIZE@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	madd	x24, x8, x21, x20
	cmp	x24, x19
	b.hs	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh17:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_get_safe_page
	cbz	x0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
	bl	___pa
Lloh20:
	adrp	x8, __KERNPG_TABLE@GOTPAGE
Lloh21:
	ldr	x8, [x8, __KERNPG_TABLE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	orr	w0, w8, w0
	bl	___pud
	mov	x1, x0
	mov	x0, x22
	bl	_set_pud
	ldr	x8, [x28]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w20, #1
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x27]
	orr	x8, x8, x24
	ldr	x9, [x26]
	and	x0, x8, x9
	bl	___pmd
	mov	x1, x0
	mov	x0, x23
	bl	_set_pmd
	add	x23, x23, #4
	ldr	x8, [x25]
	add	x24, x8, x24
	ldr	x8, [x28]
	cmp	x20, x8
	add	x20, x20, #1
	ccmp	x24, x19, #2, lt
	b.lo	LBB0_7
	b	LBB0_2
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_PTRS_PER_PUD,8,3               ; @PTRS_PER_PUD
	.comm	_PUD_SIZE,8,3                   ; @PUD_SIZE
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	__KERNPG_TABLE,4,2              ; @_KERNPG_TABLE
	.comm	_PTRS_PER_PMD,8,3               ; @PTRS_PER_PMD
	.comm	___PAGE_KERNEL_LARGE_EXEC,8,3   ; @__PAGE_KERNEL_LARGE_EXEC
	.comm	___supported_pte_mask,8,3       ; @__supported_pte_mask
	.comm	_PMD_SIZE,8,3                   ; @PMD_SIZE
	.no_dead_strip	_res_phys_pud_init
.subsections_via_symbols
