	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function isp_stat_bufs_free
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_isp_stat_bufs_free:                    ## @isp_stat_bufs_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	%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, %r12
	callq	_ISP_STAT_USES_DMAENGINE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%r14d, %r14d
	jmp	LBB0_3
LBB0_2:
	movq	16(%r12), %rax
	movq	(%rax), %r14
LBB0_3:
	movq	_STAT_MAX_BUFS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movl	$24, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	movl	%eax, %ecx
	addq	$32, %rbx
	cmpq	%rcx, %r13
	jae	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %r15
	cmpq	$0, -16(%r15,%rbx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%r15,%rbx), %rdi
	callq	_sg_free_table
	movl	8(%r12), %esi
	movq	-16(%r15,%rbx), %rdx
	movq	-8(%r15,%rbx), %rcx
	movq	%r14, %rdi
	callq	_dma_free_coherent
	xorps	%xmm0, %xmm0
	movups	%xmm0, -16(%r15,%rbx)
	movl	$1, -24(%r15,%rbx)
	movq	_STAT_MAX_BUFS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_8:
	movq	16(%r12), %rax
	movq	(%rax), %rdi
	movl	12(%r12), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movl	$0, 8(%r12)
	movq	$0, (%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STAT_MAX_BUFS,4,2              ## @STAT_MAX_BUFS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: all buffers were freed.\n"

	.no_dead_strip	_isp_stat_bufs_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isp_stat_bufs_free
_isp_stat_bufs_free:                    ; @isp_stat_bufs_free
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_ISP_STAT_USES_DMAENGINE
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, #0
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19, #16]
	ldr	x20, [x8]
LBB0_3:
Lloh0:
	adrp	x21, _STAT_MAX_BUFS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _STAT_MAX_BUFS@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_8
; %bb.4:
	mov	x22, #0
	mov	x23, #0
	mov	w24, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	add	x22, x22, #32
	cmp	x23, w8, uxtw
	b.hs	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #24]
	add	x25, x9, x22
	ldr	x9, [x25, #8]
	cbz	x9, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, x25, #24
	bl	_sg_free_table
	ldr	w1, [x19, #8]
	ldp	x2, x3, [x25, #8]
	mov	x0, x20
	bl	_dma_free_coherent
	stp	xzr, xzr, [x25, #8]
	str	w24, [x25]
	ldr	w8, [x21]
	b	LBB0_5
LBB0_8:
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	ldr	w2, [x19, #12]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	str	wzr, [x19, #8]
	str	xzr, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_STAT_MAX_BUFS,4,2              ; @STAT_MAX_BUFS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: all buffers were freed.\n"

	.no_dead_strip	_isp_stat_bufs_free
.subsections_via_symbols
