	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lima_device_fini               ## -- Begin function lima_device_fini
	.p2align	4, 0x90
_lima_device_fini:                      ## @lima_device_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, %r14
	callq	_lima_fini_pp_pipe
	movq	%r14, %rdi
	callq	_lima_fini_gp_pipe
	movq	_lima_ip_num@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.1:
	incl	%ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %esi
	movq	%r14, %rdi
	callq	_lima_fini_ip
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_2
LBB0_3:
	movq	8(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.4:
	movl	4(%r14), %ecx
	movl	16(%r14), %edi
	movq	_LIMA_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dma_free_wc
LBB0_5:
	movl	(%r14), %edi
	callq	_lima_vm_put
	movq	%r14, %rdi
	callq	_lima_regulator_fini
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_lima_clk_fini                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_lima_ip_num,4,2                ## @lima_ip_num
	.comm	_LIMA_PAGE_SIZE,4,2             ## @LIMA_PAGE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lima_device_fini               ; -- Begin function lima_device_fini
	.p2align	2
_lima_device_fini:                      ; @lima_device_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
	mov	x19, x0
	bl	_lima_fini_pp_pipe
	mov	x0, x19
	bl	_lima_fini_gp_pipe
Lloh0:
	adrp	x8, _lima_ip_num@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lima_ip_num@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	add	w20, w8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w1, w20, #2
	mov	x0, x19
	bl	_lima_fini_ip
	sub	w20, w20, #1
	cmp	w20, #1
	b.hi	LBB0_2
LBB0_3:
	ldr	x2, [x19, #8]
	cbz	x2, LBB0_5
; %bb.4:
	ldr	w0, [x19, #16]
Lloh3:
	adrp	x8, _LIMA_PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LIMA_PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w3, [x19, #4]
	bl	_dma_free_wc
LBB0_5:
	ldr	w0, [x19]
	bl	_lima_vm_put
	mov	x0, x19
	bl	_lima_regulator_fini
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_lima_clk_fini
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_lima_ip_num,4,2                ; @lima_ip_num
	.comm	_LIMA_PAGE_SIZE,4,2             ; @LIMA_PAGE_SIZE
.subsections_via_symbols
