	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InsertPageEntry                ## -- Begin function InsertPageEntry
	.p2align	4, 0x90
_InsertPageEntry:                       ## @InsertPageEntry
	.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
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%edi, %r13d
	testl	%ecx, %ecx
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_GetSDR1
	movl	%eax, %ebx
LBB0_2:
	movl	%r13d, %edi
	shrl	$28, %edi
	callq	_GetSR
	movl	%eax, %ecx
	movl	%ebx, %eax
	andl	$-65536, %eax                   ## imm = 0xFFFF0000
	shll	$10, %ebx
	orl	$1023, %ebx                     ## imm = 0x3FF
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	andl	$524287, %ecx                   ## imm = 0x7FFFF
	movl	%r13d, %edx
	shrl	$12, %edx
	movzwl	%dx, %r12d
	xorl	%ecx, %r12d
	andl	%ebx, %r12d
	shll	$6, %r12d
	addl	%eax, %r12d
	movl	%r12d, %edi
	callq	_GetPhys
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.5:
	testl	%eax, %eax
	jns	LBB0_3
## %bb.6:
	movl	%r12d, %r15d
	orl	$8, %r15d
	movl	%r15d, %edi
	callq	_GetPhys
	movl	%r14d, %ecx
	cmpl	$1, %r14d
	je	LBB0_4
## %bb.7:
	testl	%eax, %eax
	jns	LBB0_4
## %bb.8:
	movl	%r12d, %r15d
	orl	$16, %r15d
	movl	%r15d, %edi
	callq	_GetPhys
	movl	%r14d, %ecx
	cmpl	$2, %r14d
	je	LBB0_4
## %bb.9:
	testl	%eax, %eax
	jns	LBB0_4
## %bb.10:
	movl	%r12d, %r15d
	orl	$24, %r15d
	movl	%r15d, %edi
	callq	_GetPhys
	movl	%r14d, %ecx
	cmpl	$3, %r14d
	je	LBB0_4
## %bb.11:
	testl	%eax, %eax
	jns	LBB0_4
## %bb.12:
	movl	%r12d, %r15d
	orl	$32, %r15d
	movl	%r15d, %edi
	callq	_GetPhys
	movl	%r14d, %ecx
	cmpl	$4, %r14d
	je	LBB0_4
## %bb.13:
	testl	%eax, %eax
	jns	LBB0_4
## %bb.14:
	movl	%r12d, %r15d
	orl	$40, %r15d
	movl	%r15d, %edi
	callq	_GetPhys
	movl	%r14d, %ecx
	cmpl	$5, %r14d
	je	LBB0_4
## %bb.15:
	testl	%eax, %eax
	jns	LBB0_4
## %bb.16:
	movl	%r12d, %r15d
	orl	$48, %r15d
	movl	%r15d, %edi
	callq	_GetPhys
	cmpl	$6, %r14d
	je	LBB0_4
## %bb.17:
	testl	%eax, %eax
	jns	LBB0_4
## %bb.18:
	orl	$56, %r12d
	movl	%r12d, %edi
	callq	_GetPhys
	movl	%r12d, %r15d
	cmpl	$7, %r14d
	je	LBB0_4
## %bb.19:
	testl	%eax, %eax
	jns	LBB0_4
## %bb.20:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_3:
	movl	%r12d, %r15d
LBB0_4:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	shll	$7, %eax
	shrl	$22, %r13d
	andl	$63, %r13d
	orl	%eax, %r13d
	orl	$-2147483648, %r13d             ## imm = 0x80000000
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	andl	$-4096, %ebx                    ## imm = 0xF000
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	_SetPhys
	orl	$4, %r15d
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_SetPhys
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InsertPageEntry                ; -- Begin function InsertPageEntry
	.p2align	2
_InsertPageEntry:                       ; @InsertPageEntry
	.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	x23, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	cbnz	w3, LBB0_2
; %bb.1:
	bl	_GetSDR1
	mov	x23, x0
LBB0_2:
	lsr	w0, w20, #28
	bl	_GetSR
	mov	x21, x0
	and	w8, w23, #0xffff0000
	mov	w9, #1023
	bfi	w9, w23, #10, #22
	and	w10, w0, #0x7ffff
	ubfx	w11, w20, #12, #16
	eor	w10, w10, w11
	and	w9, w10, w9
	add	w24, w8, w9, lsl #6
	mov	x0, x24
	bl	_GetPhys
	cbz	w22, LBB0_19
; %bb.3:
	mov	x23, x24
	tbz	w0, #31, LBB0_20
; %bb.4:
	orr	w23, w24, #0x8
	mov	x0, x23
	bl	_GetPhys
	cmp	w22, #1
	b.eq	LBB0_20
; %bb.5:
	tbz	w0, #31, LBB0_20
; %bb.6:
	orr	w23, w24, #0x10
	mov	x0, x23
	bl	_GetPhys
	cmp	w22, #2
	b.eq	LBB0_20
; %bb.7:
	tbz	w0, #31, LBB0_20
; %bb.8:
	orr	w23, w24, #0x18
	mov	x0, x23
	bl	_GetPhys
	cmp	w22, #3
	b.eq	LBB0_20
; %bb.9:
	tbz	w0, #31, LBB0_20
; %bb.10:
	orr	w23, w24, #0x20
	mov	x0, x23
	bl	_GetPhys
	cmp	w22, #4
	b.eq	LBB0_20
; %bb.11:
	tbz	w0, #31, LBB0_20
; %bb.12:
	mov	w8, #40
	orr	w23, w24, w8
	mov	x0, x23
	bl	_GetPhys
	cmp	w22, #5
	b.eq	LBB0_20
; %bb.13:
	tbz	w0, #31, LBB0_20
; %bb.14:
	orr	w23, w24, #0x30
	mov	x0, x23
	bl	_GetPhys
	cmp	w22, #6
	b.eq	LBB0_20
; %bb.15:
	tbz	w0, #31, LBB0_20
; %bb.16:
	orr	w23, w24, #0x38
	mov	x0, x23
	bl	_GetPhys
	cmp	w22, #7
	b.eq	LBB0_20
; %bb.17:
	tbz	w0, #31, LBB0_20
; %bb.18:
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_21
LBB0_19:
	mov	x23, x24
LBB0_20:
	ubfx	w8, w20, #22, #6
	bfi	w8, w21, #7, #25
	orr	w1, w8, #0x80000000
	and	w19, w19, #0xfffff000
	mov	x0, x23
	bl	_SetPhys
	orr	w0, w23, #0x4
	mov	x1, x19
	bl	_SetPhys
Lloh2:
	adrp	x8, _TRUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_21:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
