	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srmmu_pmd_populate
_srmmu_pmd_populate:                    ## @srmmu_pmd_populate
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_page_to_pfn
	movl	%eax, %esi
	movq	_PTRS_PER_PTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SRMMU_REAL_PTRS_PER_PTE@GOTPCREL(%rip), %r8
	cltd
	idivl	(%r8)
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	addb	$-4, %cl
	shll	%cl, %esi
	movslq	%esi, %r13
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	movq	_SRMMU_ET_PTD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	orq	%r13, %rsi
	movq	%r8, %r12
	callq	_srmmu_set_pte
	movq	%r12, %r8
	movq	_PTRS_PER_PTE@GOTPCREL(%rip), %rax
	movslq	(%r12), %rcx
	movl	(%rax), %eax
	cltd
	idivl	%ecx
	shrq	$2, %rcx
	movabsq	$1152921504606846975, %rdx      ## imm = 0xFFFFFFFFFFFFFFF
	andq	%rdx, %rcx
	addq	%rcx, %r13
	incq	%r14
	cltq
	addq	$4, %rbx
	cmpq	%rax, %r14
	jl	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_PTRS_PER_PTE,4,2               ## @PTRS_PER_PTE
	.comm	_SRMMU_REAL_PTRS_PER_PTE,4,2    ## @SRMMU_REAL_PTRS_PER_PTE
	.comm	_SRMMU_ET_PTD,8,3               ## @SRMMU_ET_PTD
	.no_dead_strip	_srmmu_pmd_populate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srmmu_pmd_populate
_srmmu_pmd_populate:                    ; @srmmu_pmd_populate
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	mov	x0, x1
	bl	_page_to_pfn
Lloh0:
	adrp	x20, _PTRS_PER_PTE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PTRS_PER_PTE@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh2:
	adrp	x21, _SRMMU_REAL_PTRS_PER_PTE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SRMMU_REAL_PTRS_PER_PTE@GOTPAGEOFF]
	ldr	w9, [x21]
	sdiv	w8, w8, w9
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
	mov	x23, #0
Lloh4:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	sub	w8, w8, #4
	lsl	w8, w0, w8
	sxtw	x24, w8
Lloh7:
	adrp	x25, _SRMMU_ET_PTD@GOTPAGE
Lloh8:
	ldr	x25, [x25, _SRMMU_ET_PTD@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x0, x8, x22
	ldr	x8, [x25]
	orr	x1, x8, x24
	bl	_srmmu_set_pte
	ldrsw	x8, [x21]
	ubfx	x9, x8, #2, #60
	add	x24, x9, x24
	add	x23, x23, #1
	ldr	w9, [x20]
	sdiv	w8, w9, w8
	add	x22, x22, #4
	cmp	x23, w8, sxtw
	b.lt	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_PTRS_PER_PTE,4,2               ; @PTRS_PER_PTE
	.comm	_SRMMU_REAL_PTRS_PER_PTE,4,2    ; @SRMMU_REAL_PTRS_PER_PTE
	.comm	_SRMMU_ET_PTD,8,3               ; @SRMMU_ET_PTD
	.no_dead_strip	_srmmu_pmd_populate
.subsections_via_symbols
