	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_panfrost_mmu_pgtable_free      ## -- Begin function panfrost_mmu_pgtable_free
	.p2align	4, 0x90
_panfrost_mmu_pgtable_free:             ## @panfrost_mmu_pgtable_free
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	cmpq	$0, (%r14)
	js	LBB0_4
## %bb.1:
	movl	12(%rbx), %edi
	callq	_pm_runtime_get_noresume
	movl	12(%rbx), %edi
	callq	_pm_runtime_active
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_panfrost_mmu_disable
LBB0_3:
	movl	12(%rbx), %edi
	callq	_pm_runtime_put_autosuspend
	movq	(%r14), %rdi
	leaq	8(%rbx), %rsi
	callq	_clear_bit
	movq	(%r14), %rdi
	leaq	4(%rbx), %rsi
	callq	_clear_bit
	leaq	12(%r14), %rdi
	callq	_list_del
LBB0_4:
	movq	%rbx, %rdi
	callq	_spin_unlock
	movl	8(%r14), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_free_io_pgtable_ops            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_panfrost_mmu_pgtable_free      ; -- Begin function panfrost_mmu_pgtable_free
	.p2align	2
_panfrost_mmu_pgtable_free:             ; @panfrost_mmu_pgtable_free
	.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
	ldr	x20, [x0, #16]
	mov	x0, x20
	bl	_spin_lock
	ldr	x8, [x19]
	tbnz	x8, #63, LBB0_4
; %bb.1:
	ldr	w0, [x20, #12]
	bl	_pm_runtime_get_noresume
	ldr	w0, [x20, #12]
	bl	_pm_runtime_active
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x1, [x19]
	mov	x0, x20
	bl	_panfrost_mmu_disable
LBB0_3:
	ldr	w0, [x20, #12]
	bl	_pm_runtime_put_autosuspend
	ldr	x0, [x19]
	add	x1, x20, #8
	bl	_clear_bit
	mov	x21, x19
	ldr	x0, [x21], #12
	add	x1, x20, #4
	bl	_clear_bit
	mov	x0, x21
	bl	_list_del
LBB0_4:
	mov	x0, x20
	bl	_spin_unlock
	ldr	w0, [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	_free_io_pgtable_ops
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
