	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psb_mmu_set_pd_context         ## -- Begin function psb_mmu_set_pd_context
	.p2align	4, 0x90
_psb_mmu_set_pd_context:                ## @psb_mmu_set_pd_context
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	_PSB_CR_BIF_DIR_LIST_BASE1@GOTPCREL(%rip), %rax
	leal	(,%r14,4), %ecx
	movslq	%ecx, %r15
	addq	(%rax), %r15
	jmp	LBB0_3
LBB0_1:
	movq	_PSB_CR_BIF_DIR_LIST_BASE0@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_3:
	movq	8(%rbx), %rdi
	callq	_down_write
	movl	16(%rbx), %edi
	callq	_page_to_pfn
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_PSB_WSGX32
	xorl	%eax, %eax
	callq	_wmb
	movq	8(%rbx), %rdi
	movl	$1, %esi
	callq	_psb_mmu_flush_pd_locked
	movl	%r14d, (%rbx)
	movq	8(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_up_write                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PSB_CR_BIF_DIR_LIST_BASE0,8,3  ## @PSB_CR_BIF_DIR_LIST_BASE0
	.comm	_PSB_CR_BIF_DIR_LIST_BASE1,8,3  ## @PSB_CR_BIF_DIR_LIST_BASE1
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psb_mmu_set_pd_context         ; -- Begin function psb_mmu_set_pd_context
	.p2align	2
_psb_mmu_set_pd_context:                ; @psb_mmu_set_pd_context
	.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	x20, x1
	mov	x19, x0
	cbz	w1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PSB_CR_BIF_DIR_LIST_BASE1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSB_CR_BIF_DIR_LIST_BASE1@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsl	w9, w20, #2
	add	x21, x8, w9, sxtw
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _PSB_CR_BIF_DIR_LIST_BASE0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PSB_CR_BIF_DIR_LIST_BASE0@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
LBB0_3:
	ldr	x0, [x19, #8]
	bl	_down_write
	ldr	w0, [x19, #16]
	bl	_page_to_pfn
Lloh6:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w0, w0, w8
	mov	x1, x21
	bl	_PSB_WSGX32
	bl	_wmb
	ldr	x0, [x19, #8]
	mov	w1, #1
	bl	_psb_mmu_flush_pd_locked
	str	w20, [x19]
	ldr	x0, [x19, #8]
	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
	b	_up_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PSB_CR_BIF_DIR_LIST_BASE0,8,3  ; @PSB_CR_BIF_DIR_LIST_BASE0
	.comm	_PSB_CR_BIF_DIR_LIST_BASE1,8,3  ; @PSB_CR_BIF_DIR_LIST_BASE1
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
.subsections_via_symbols
