	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_huge_pte_alloc                 ## -- Begin function huge_pte_alloc
	.p2align	4, 0x90
_huge_pte_alloc:                        ## @huge_pte_alloc
	.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	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_pgd_offset
	movq	%r12, %rdi
	movq	%rax, %rsi
	movq	%r15, %rdx
	callq	_pud_alloc
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_PUD_SIZE@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	je	LBB0_7
## %bb.3:
	movq	_PMD_SIZE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%r13, (%rax)
	setne	%dil
	callq	_BUG_ON
	movl	(%rbx), %edi
	callq	_pud_none
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_huge_pmd_share
LBB0_5:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_pmd_alloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movl	(%rbx), %edi
	callq	_pte_none
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	(%rbx), %edi
	callq	_pte_huge
	xorl	%r14d, %r14d
	testl	%eax, %eax
	sete	%r14b
	jmp	LBB0_9
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_6:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
LBB0_9:
	movl	%r14d, %edi
	callq	_BUG_ON
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PUD_SIZE,8,3                   ## @PUD_SIZE
	.comm	_PMD_SIZE,8,3                   ## @PMD_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_huge_pte_alloc                 ; -- Begin function huge_pte_alloc
	.p2align	2
_huge_pte_alloc:                        ; @huge_pte_alloc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
	bl	_pgd_offset
	mov	x1, x0
	mov	x0, x21
	mov	x2, x20
	bl	_pud_alloc
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _PUD_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PUD_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x23
	b.eq	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _PMD_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PMD_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x23
	cset	w0, ne
	bl	_BUG_ON
	ldr	w0, [x19]
	bl	_pud_none
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x22
	bl	_huge_pmd_share
LBB0_4:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_pmd_alloc
	mov	x19, x0
	cbz	x0, LBB0_8
LBB0_5:
	ldr	w0, [x19]
	bl	_pte_none
	cbz	w0, LBB0_7
; %bb.6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	ldr	w0, [x19]
	bl	_pte_huge
	cmp	w0, #0
	cset	w0, eq
LBB0_8:
	bl	_BUG_ON
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PUD_SIZE,8,3                   ; @PUD_SIZE
	.comm	_PMD_SIZE,8,3                   ; @PMD_SIZE
.subsections_via_symbols
