	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_etnaviv_iommu_global_fini      ## -- Begin function etnaviv_iommu_global_fini
	.p2align	4, 0x90
_etnaviv_iommu_global_fini:             ## @etnaviv_iommu_global_fini
	.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), %rax
	movq	(%rax), %r14
	movq	(%r14), %rbx
	movq	(%rbx), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, (%rbx)
	cmpq	$1, %rax
	jg	LBB0_6
## %bb.1:
	movq	40(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:
	movq	_ETNAVIV_PTA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%rbx), %edi
	movl	32(%rbx), %ecx
	callq	_dma_free_wc
LBB0_3:
	movq	16(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.4:
	movl	12(%rbx), %ecx
	movl	24(%rbx), %edi
	movq	_SZ_4K@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dma_free_wc
LBB0_5:
	leaq	8(%rbx), %rdi
	callq	_mutex_destroy
	movq	%rbx, %rdi
	callq	_kfree
	movq	$0, (%r14)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETNAVIV_PTA_SIZE,4,2           ## @ETNAVIV_PTA_SIZE
	.comm	_SZ_4K,4,2                      ## @SZ_4K
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_etnaviv_iommu_global_fini      ; -- Begin function etnaviv_iommu_global_fini
	.p2align	2
_etnaviv_iommu_global_fini:             ; @etnaviv_iommu_global_fini
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	ldr	x20, [x8]
	ldr	x19, [x20]
	ldr	x8, [x19]
	subs	x8, x8, #1
	str	x8, [x19]
	b.gt	LBB0_6
; %bb.1:
	ldr	x2, [x19, #40]
	cbz	x2, LBB0_3
; %bb.2:
	ldr	w0, [x19, #24]
Lloh0:
	adrp	x8, _ETNAVIV_PTA_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETNAVIV_PTA_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w3, [x19, #32]
	bl	_dma_free_wc
LBB0_3:
	ldr	x2, [x19, #16]
	cbz	x2, LBB0_5
; %bb.4:
	ldr	w0, [x19, #24]
Lloh3:
	adrp	x8, _SZ_4K@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SZ_4K@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w3, [x19, #12]
	bl	_dma_free_wc
LBB0_5:
	add	x0, x19, #8
	bl	_mutex_destroy
	mov	x0, x19
	bl	_kfree
	str	xzr, [x20]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ETNAVIV_PTA_SIZE,4,2           ; @ETNAVIV_PTA_SIZE
	.comm	_SZ_4K,4,2                      ; @SZ_4K
.subsections_via_symbols
