	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psb_mmu_flush                  ## -- Begin function psb_mmu_flush
	.p2align	4, 0x90
_psb_mmu_flush:                         ## @psb_mmu_flush
	.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
	movq	%rdi, %r15
	callq	_down_write
	movq	_PSB_CR_BIF_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_PSB_RSGX32
	movl	%eax, %ebx
	leaq	16(%r15), %r14
	movq	%r14, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	movq	__PSB_CB_CTRL_INVALDC@GOTPCREL(%rip), %r13
	movq	%r13, %rax
	cmoveq	__PSB_CB_CTRL_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	%ebx, %edi
	movl	(%r12), %esi
	callq	_PSB_WSGX32
	xorl	%eax, %eax
	callq	_wmb
	movl	(%r13), %edi
	movq	__PSB_CB_CTRL_FLUSH@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	notl	%edi
	andl	%ebx, %edi
	movl	(%r12), %esi
	callq	_PSB_WSGX32
	movl	(%r12), %edi
	callq	_PSB_RSGX32
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movl	$1, %esi
	callq	_atomic_set
LBB0_2:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_up_write                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PSB_CR_BIF_CTRL,4,2            ## @PSB_CR_BIF_CTRL
	.comm	__PSB_CB_CTRL_INVALDC,4,2       ## @_PSB_CB_CTRL_INVALDC
	.comm	__PSB_CB_CTRL_FLUSH,4,2         ## @_PSB_CB_CTRL_FLUSH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psb_mmu_flush                  ; -- Begin function psb_mmu_flush
	.p2align	2
_psb_mmu_flush:                         ; @psb_mmu_flush
	.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	x19, x0
	bl	_down_write
Lloh0:
	adrp	x22, _PSB_CR_BIF_CTRL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PSB_CR_BIF_CTRL@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_PSB_RSGX32
	mov	x20, x0
	add	x21, x19, #16
	mov	x0, x21
	bl	_atomic_read
Lloh2:
	adrp	x23, __PSB_CB_CTRL_FLUSH@GOTPAGE
Lloh3:
	ldr	x23, [x23, __PSB_CB_CTRL_FLUSH@GOTPAGEOFF]
Lloh4:
	adrp	x24, __PSB_CB_CTRL_INVALDC@GOTPAGE
Lloh5:
	ldr	x24, [x24, __PSB_CB_CTRL_INVALDC@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x23, x24, eq
	ldr	w8, [x8]
	orr	w0, w8, w20
	ldr	w1, [x22]
	bl	_PSB_WSGX32
	bl	_wmb
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	bic	w0, w20, w8
	ldr	w1, [x22]
	bl	_PSB_WSGX32
	ldr	w0, [x22]
	bl	_PSB_RSGX32
	mov	x0, x21
	mov	w1, #0
	bl	_atomic_set
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_2
; %bb.1:
	mov	w1, #1
	bl	_atomic_set
LBB0_2:
	mov	x0, x19
	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
	b	_up_write
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PSB_CR_BIF_CTRL,4,2            ; @PSB_CR_BIF_CTRL
	.comm	__PSB_CB_CTRL_INVALDC,4,2       ; @_PSB_CB_CTRL_INVALDC
	.comm	__PSB_CB_CTRL_FLUSH,4,2         ; @_PSB_CB_CTRL_FLUSH
.subsections_via_symbols
