	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psb_gtt_mask_pte
_psb_gtt_mask_pte:                      ## @psb_gtt_mask_pte
	.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	%esi, %ebx
	movl	%edi, %r14d
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %r15
	movb	(%r15), %cl
	movl	$-1, %edi
	shrl	%cl, %edi
	movq	_PSB_PTE_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	notl	%edi
	andl	%r14d, %edi
	callq	_BUG_ON
	movq	_PSB_MMU_CACHED_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	je	LBB0_2
## %bb.1:
	movq	_PSB_PTE_CACHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	movq	_PSB_MMU_RO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ebx, %ecx
	je	LBB0_4
## %bb.3:
	movq	_PSB_PTE_RO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_4:
	orl	%r12d, %eax
	movq	_PSB_MMU_WO_MEMORY@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ebx
	je	LBB0_6
## %bb.5:
	movq	_PSB_PTE_WO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
LBB0_6:
	orl	%ebx, %ecx
	orl	%ecx, %eax
	movb	(%r15), %cl
	shll	%cl, %r14d
	orl	%eax, %r14d
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PSB_PTE_VALID,4,2              ## @PSB_PTE_VALID
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_PSB_MMU_CACHED_MEMORY,4,2      ## @PSB_MMU_CACHED_MEMORY
	.comm	_PSB_PTE_CACHED,4,2             ## @PSB_PTE_CACHED
	.comm	_PSB_MMU_RO_MEMORY,4,2          ## @PSB_MMU_RO_MEMORY
	.comm	_PSB_PTE_RO,4,2                 ## @PSB_PTE_RO
	.comm	_PSB_MMU_WO_MEMORY,4,2          ## @PSB_MMU_WO_MEMORY
	.comm	_PSB_PTE_WO,4,2                 ## @PSB_PTE_WO
	.no_dead_strip	_psb_gtt_mask_pte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psb_gtt_mask_pte
_psb_gtt_mask_pte:                      ; @psb_gtt_mask_pte
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _PSB_PTE_VALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSB_PTE_VALID@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x22, _PAGE_SHIFT@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	w8, [x22]
	mov	w9, #-1
	lsr	w8, w9, w8
	bic	w0, w0, w8
	bl	_BUG_ON
Lloh5:
	adrp	x8, _PSB_MMU_CACHED_MEMORY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PSB_MMU_CACHED_MEMORY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _PSB_PTE_CACHED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PSB_PTE_CACHED@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w8, w19
	csel	w8, wzr, w9, eq
	orr	w8, w8, w21
Lloh11:
	adrp	x9, _PSB_MMU_RO_MEMORY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PSB_MMU_RO_MEMORY@GOTPAGEOFF]
Lloh13:
	adrp	x10, _PSB_PTE_RO@GOTPAGE
Lloh14:
	ldr	x10, [x10, _PSB_PTE_RO@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	ldr	w10, [x10]
	tst	w9, w19
	csel	w9, wzr, w10, eq
Lloh17:
	adrp	x10, _PSB_MMU_WO_MEMORY@GOTPAGE
Lloh18:
	ldr	x10, [x10, _PSB_MMU_WO_MEMORY@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh19:
	ldr	w9, [x10]
Lloh20:
	adrp	x10, _PSB_PTE_WO@GOTPAGE
Lloh21:
	ldr	x10, [x10, _PSB_PTE_WO@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	tst	w9, w19
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
	ldr	w9, [x22]
	lsl	w9, w20, w9
	orr	w0, w8, w9
	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 AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PSB_PTE_VALID,4,2              ; @PSB_PTE_VALID
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_PSB_MMU_CACHED_MEMORY,4,2      ; @PSB_MMU_CACHED_MEMORY
	.comm	_PSB_PTE_CACHED,4,2             ; @PSB_PTE_CACHED
	.comm	_PSB_MMU_RO_MEMORY,4,2          ; @PSB_MMU_RO_MEMORY
	.comm	_PSB_PTE_RO,4,2                 ; @PSB_PTE_RO
	.comm	_PSB_MMU_WO_MEMORY,4,2          ; @PSB_MMU_WO_MEMORY
	.comm	_PSB_PTE_WO,4,2                 ; @PSB_PTE_WO
	.no_dead_strip	_psb_gtt_mask_pte
.subsections_via_symbols
