	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_align_superpage           ## -- Begin function pmap_align_superpage
	.p2align	4, 0x90
_pmap_align_superpage:                  ## @pmap_align_superpage
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	_L2_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	cmpl	%ebx, %ecx
	jg	LBB0_7
## %bb.1:
	movq	%rdx, %r14
	movl	%esi, %r15d
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.2:
	movq	_OBJ_COLORED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_4
## %bb.3:
	movl	4(%rdi), %edi
	callq	_ptoa
	addl	%r15d, %eax
	movl	(%r12), %ecx
	movl	%eax, %r15d
LBB0_4:
	movq	_L2_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%eax, %r15d
	movl	%ecx, %edx
	subl	%r15d, %edx
	andl	%eax, %edx
	subl	%edx, %ebx
	cmpl	%ecx, %ebx
	jl	LBB0_7
## %bb.5:
	movl	(%r14), %ecx
	movl	%ecx, %edx
	andl	%eax, %edx
	cmpl	%r15d, %edx
	je	LBB0_7
## %bb.6:
	xorl	%esi, %esi
	cmpl	%r15d, %edx
	cmovgel	%eax, %esi
	addl	%esi, %ecx
	notl	%eax
	andl	%ecx, %eax
	orl	%r15d, %eax
	movl	%eax, (%r14)
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_L2_SIZE,4,2                    ## @L2_SIZE
	.comm	_OBJ_COLORED,4,2                ## @OBJ_COLORED
	.comm	_L2_OFFSET,4,2                  ## @L2_OFFSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_align_superpage           ; -- Begin function pmap_align_superpage
	.p2align	2
_pmap_align_superpage:                  ; @pmap_align_superpage
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x22, _L2_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _L2_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, w3
	b.gt	LBB0_7
; %bb.1:
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w9, [x0]
Lloh2:
	adrp	x10, _OBJ_COLORED@GOTPAGE
Lloh3:
	ldr	x10, [x10, _OBJ_COLORED@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x0, #4]
	bl	_ptoa
	add	w21, w0, w21
	ldr	w8, [x22]
LBB0_4:
Lloh5:
	adrp	x9, _L2_OFFSET@GOTPAGE
Lloh6:
	ldr	x9, [x9, _L2_OFFSET@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w10, w9, w21
	sub	w11, w8, w10
	and	w11, w11, w9
	sub	w11, w20, w11
	cmp	w11, w8
	b.lt	LBB0_7
; %bb.5:
	ldr	w8, [x19]
	and	w11, w8, w9
	cmp	w11, w10
	b.eq	LBB0_7
; %bb.6:
	csel	w11, wzr, w9, lt
	add	w8, w8, w11
	bic	w8, w8, w9
	orr	w8, w8, w10
	str	w8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_L2_SIZE,4,2                    ; @L2_SIZE
	.comm	_OBJ_COLORED,4,2                ; @OBJ_COLORED
	.comm	_L2_OFFSET,4,2                  ; @L2_OFFSET
.subsections_via_symbols
