	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_lpae_restrict_pgsizes
_arm_lpae_restrict_pgsizes:             ## @arm_lpae_restrict_pgsizes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %ecx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	testl	%ecx, %edx
	je	LBB0_1
## %bb.7:
	cmpq	$128, %rdx
	je	LBB0_12
LBB0_8:
	movl	$48, %r14d
	cmpq	$130, %rdx
	je	LBB0_11
## %bb.9:
	xorl	%eax, %eax
	cmpq	$129, %rdx
	jne	LBB0_13
## %bb.10:
	movq	_SZ_2M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SZ_1G@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	$129, %eax
	jmp	LBB0_13
LBB0_1:
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %eax
	notl	%eax
	andl	%ecx, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %edi
	callq	___fls
	jmp	LBB0_6
LBB0_11:
	movq	_SZ_32M@GOTPCREL(%rip), %rcx
	movl	$130, %eax
	orl	(%rcx), %eax
	jmp	LBB0_13
LBB0_3:
	andl	%ecx, %edi
	je	LBB0_4
## %bb.5:
	callq	___ffs
LBB0_6:
	movl	$1, %edx
	movl	%eax, %ecx
	shlq	%cl, %rdx
	cmpq	$128, %rdx
	jne	LBB0_8
LBB0_12:
	movq	_SZ_512M@GOTPCREL(%rip), %rcx
	movl	$128, %eax
	orl	(%rcx), %eax
	movl	$52, %r14d
LBB0_13:
	andl	%eax, (%rbx)
	movl	8(%rbx), %edi
	movl	%r14d, %esi
	callq	_min
	movl	%eax, 8(%rbx)
	movl	4(%rbx), %edi
	movl	%r14d, %esi
	callq	_min
	movl	%eax, 4(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	movl	$48, %r14d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.comm	_SZ_2M,4,2                      ## @SZ_2M
	.comm	_SZ_1G,4,2                      ## @SZ_1G
	.comm	_SZ_32M,4,2                     ## @SZ_32M
	.comm	_SZ_512M,4,2                    ## @SZ_512M
	.no_dead_strip	_arm_lpae_restrict_pgsizes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_lpae_restrict_pgsizes
_arm_lpae_restrict_pgsizes:             ; @arm_lpae_restrict_pgsizes
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w9, [x0]
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	tst	w8, w9
	b.eq	LBB0_5
; %bb.1:
	cmp	x8, #128
	b.eq	LBB0_12
LBB0_2:
	cmp	x8, #130
	b.eq	LBB0_7
; %bb.3:
	cmp	x8, #129
	b.ne	LBB0_13
; %bb.4:
Lloh3:
	adrp	x8, _SZ_2M@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SZ_2M@GOTPAGEOFF]
Lloh5:
	adrp	x9, _SZ_1G@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SZ_1G@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	mov	w9, #129
	b	LBB0_8
LBB0_5:
Lloh9:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	bics	w0, w9, w8
	b.eq	LBB0_9
; %bb.6:
	bl	___fls
	b	LBB0_11
LBB0_7:
Lloh12:
	adrp	x8, _SZ_32M@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SZ_32M@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	w9, #130
LBB0_8:
	orr	w8, w8, w9
	b	LBB0_14
LBB0_9:
	ands	w0, w8, w9
	b.eq	LBB0_13
; %bb.10:
	bl	___ffs
LBB0_11:
	mov	w8, #1
	lsl	x8, x8, x0
	cmp	x8, #128
	b.ne	LBB0_2
LBB0_12:
Lloh15:
	adrp	x8, _SZ_512M@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SZ_512M@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	orr	w8, w8, #0x80
	mov	w20, #52
	b	LBB0_15
LBB0_13:
	mov	w8, #0
LBB0_14:
	mov	w20, #48
LBB0_15:
	ldr	w9, [x19]
	and	w8, w9, w8
	str	w8, [x19]
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_min
	str	w0, [x19, #8]
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_min
	str	w0, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.comm	_SZ_2M,4,2                      ; @SZ_2M
	.comm	_SZ_1G,4,2                      ; @SZ_1G
	.comm	_SZ_32M,4,2                     ; @SZ_32M
	.comm	_SZ_512M,4,2                    ; @SZ_512M
	.no_dead_strip	_arm_lpae_restrict_pgsizes
.subsections_via_symbols
