	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psb_mmu_pt_unmap_unlock
_psb_mmu_pt_unmap_unlock:               ## @psb_mmu_pt_unmap_unlock
	.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
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	movq	24(%rbx), %r15
	callq	_kunmap_atomic
	cmpq	$0, (%rbx)
	je	LBB0_1
## %bb.4:
	movq	8(%r15), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
LBB0_1:
	movl	28(%r15), %edi
	callq	_kmap_atomic
	movq	%rax, %r14
	movl	24(%r15), %ecx
	movq	8(%rbx), %rax
	movl	%ecx, (%r14,%rax,4)
	movq	16(%r15), %rcx
	movq	$0, (%rcx,%rax,8)
	cmpl	$-1, (%r15)
	je	LBB0_3
## %bb.2:
	leaq	(%r14,%rax,4), %rsi
	movq	8(%r15), %rdi
	callq	_psb_mmu_clflush
	movq	8(%r15), %rdi
	addq	$4, %rdi
	movl	$1, %esi
	callq	_atomic_set
LBB0_3:
	movq	%r14, %rdi
	callq	_kunmap_atomic
	movq	8(%r15), %rdi
	callq	_spin_unlock
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_psb_mmu_free_pt                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_psb_mmu_pt_unmap_unlock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psb_mmu_pt_unmap_unlock
_psb_mmu_pt_unmap_unlock:               ; @psb_mmu_pt_unmap_unlock
	.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, x0
	ldp	x0, x21, [x0, #16]
	bl	_kunmap_atomic
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x0, [x21, #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	_spin_unlock
LBB0_2:
	ldr	w0, [x21, #28]
	bl	_kmap_atomic
	mov	x20, x0
	ldr	w8, [x21, #24]
	ldr	x9, [x19, #8]
	add	x1, x0, x9, lsl #2
	str	w8, [x1]
	ldr	x8, [x21, #16]
	str	xzr, [x8, x9, lsl #3]
	ldr	w8, [x21]
	cmn	w8, #1
	b.eq	LBB0_4
; %bb.3:
	ldr	x0, [x21, #8]
	bl	_psb_mmu_clflush
	ldr	x8, [x21, #8]
	add	x0, x8, #4
	mov	w1, #1
	bl	_atomic_set
LBB0_4:
	mov	x0, x20
	bl	_kunmap_atomic
	ldr	x0, [x21, #8]
	bl	_spin_unlock
	mov	x0, x19
	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	_psb_mmu_free_pt
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_psb_mmu_pt_unmap_unlock
.subsections_via_symbols
