	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mphyp_pte_spillable_ident
_mphyp_pte_spillable_ident:             ## @mphyp_pte_spillable_ident
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_mftb
	movl	%eax, %ebx
	leal	7(%rbx), %eax
	testl	%ebx, %ebx
	cmovnsl	%ebx, %eax
	andl	$-8, %eax
	subl	%eax, %ebx
	movq	$-1, -64(%rbp)                  ## 8-byte Folded Spill
	movq	_LPTE_WIRED@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%r14d
	cmpl	$8, %r14d
	je	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	addl	%r14d, %eax
	leal	7(%rbx,%r14), %ecx
	cmovnsl	%eax, %ecx
	andl	$-8, %ecx
	subl	%ecx, %eax
	movslq	%eax, %r12
	addq	%r15, %r12
	movq	_H_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	leaq	-48(%rbp), %r9
	leaq	-72(%rbp), %rax
	pushq	%rax
	leaq	-44(%rbp), %rax
	pushq	%rax
	callq	_phyp_pft_hcall
	addq	$16, %rsp
	movl	-48(%rbp), %eax
	testl	%eax, (%r13)
	jne	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_LPTE_VALID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_LPTE_REF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
LBB0_6:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	cmpq	$-1, %r12
	je	LBB0_7
## %bb.8:
	movq	_H_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	leaq	4(%r9), %rax
	xorl	%esi, %esi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	leaq	-72(%rbp), %rbx
	pushq	%rbx
	pushq	%rax
	callq	_phyp_pft_hcall
	addq	$16, %rsp
	jmp	LBB0_9
LBB0_10:
	leaq	-48(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$8, %edx
	callq	_memcpy
	jmp	LBB0_9
LBB0_7:
	movq	$-1, %r12
LBB0_9:
	movq	%r12, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H_READ,4,2                     ## @H_READ
	.comm	_LPTE_WIRED,4,2                 ## @LPTE_WIRED
	.comm	_LPTE_VALID,4,2                 ## @LPTE_VALID
	.comm	_LPTE_REF,4,2                   ## @LPTE_REF
	.no_dead_strip	_mphyp_pte_spillable_ident
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mphyp_pte_spillable_ident
_mphyp_pte_spillable_ident:             ; @mphyp_pte_spillable_ident
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	mov	x20, x0
	bl	_mftb
	mov	w24, #0
	negs	w8, w0
	and	w8, w8, #0x7
	and	w9, w0, #0x7
	csneg	w25, w9, w8, mi
	add	x8, sp, #16
	orr	x22, x8, #0x4
	mov	x21, #-1
Lloh0:
	adrp	x26, _H_READ@GOTPAGE
Lloh1:
	ldr	x26, [x26, _H_READ@GOTPAGEOFF]
Lloh2:
	adrp	x27, _LPTE_WIRED@GOTPAGE
Lloh3:
	ldr	x27, [x27, _LPTE_WIRED@GOTPAGEOFF]
Lloh4:
	adrp	x28, _LPTE_VALID@GOTPAGE
Lloh5:
	ldr	x28, [x28, _LPTE_VALID@GOTPAGEOFF]
Lloh6:
	adrp	x19, _LPTE_REF@GOTPAGE
Lloh7:
	ldr	x19, [x19, _LPTE_REF@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w24, w24, #1
	cmp	w24, #8
	b.eq	LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w25, w24
	negs	w9, w8
	and	w8, w8, #0x7
	and	w9, w9, #0x7
	csneg	w8, w8, w9, mi
	add	x23, x20, w8, sxtw
	ldr	w0, [x26]
	add	x5, sp, #16
	add	x7, sp, #24
	mov	w1, #0
	mov	x2, x23
	mov	w3, #0
	mov	w4, #0
	mov	x6, x22
	bl	_phyp_pft_hcall
	ldr	w8, [sp, #16]
	ldr	w9, [x27]
	tst	w9, w8
	b.ne	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #20]
	ldr	w9, [x19]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, x23
	b	LBB0_1
LBB0_6:
	cmn	x21, #1
	b.eq	LBB0_9
; %bb.7:
	ldr	w0, [x26]
	ldr	x5, [sp, #8]                    ; 8-byte Folded Reload
	add	x6, x5, #4
	add	x7, sp, #24
	mov	w1, #0
	mov	x2, x21
	mov	w3, #0
	mov	w4, #0
	bl	_phyp_pft_hcall
	mov	x23, x21
	b	LBB0_10
LBB0_8:
	add	x1, sp, #16
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	w2, #8
	bl	_memcpy
	b	LBB0_10
LBB0_9:
	mov	x23, #-1
LBB0_10:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_H_READ,4,2                     ; @H_READ
	.comm	_LPTE_WIRED,4,2                 ; @LPTE_WIRED
	.comm	_LPTE_VALID,4,2                 ; @LPTE_VALID
	.comm	_LPTE_REF,4,2                   ; @LPTE_REF
	.no_dead_strip	_mphyp_pte_spillable_ident
.subsections_via_symbols
