	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vfe_isr_wm_done
_vfe_isr_wm_done:                       ## @vfe_isr_wm_done
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_ktime_get_ns
	movl	%eax, %ebx
	movq	16(%r15), %rax
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	*(%rax)
	movq	%rax, %r12
	leaq	8(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%r15), %rax
	movq	(%rax,%r13,8), %rax
	movq	_VFE_LINE_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	24(%r15), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movl	%ebx, %ecx
	movq	32(%r15), %rsi
	imulq	$56, %rax, %rbx
	cmpq	%r12, (%rsi,%rbx)
	jne	LBB0_5
## %bb.4:
	movq	24(%r15), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	xorl	%eax, %eax
	callq	_dev_err_ratelimited
LBB0_7:
	movq	%r14, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_5:
	leaq	(%rsi,%rbx), %rdi
	movq	%r12, (%rdi)
	movq	40(%rsi,%rbx), %rax
	xorl	%r13d, %r13d
	testq	%r12, %r12
	sete	%r13b
	movq	(%rax,%r13,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.8:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	leaq	(%rsi,%rbx), %r14
	addq	$40, %r14
	movl	%ecx, (%rdx)
	movslq	48(%rsi,%rbx), %rax
	leal	1(%rax), %ecx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%ecx, 48(%rsi,%rbx)
	movq	%rax, 8(%rdx)
	movq	%rdx, %rbx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_vfe_buf_get_pending
	movq	(%r14), %rcx
	movq	%rax, (%rcx,%r13,8)
	movq	(%r14), %rax
	movq	(%rax,%r13,8), %rax
	testq	%rax, %rax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_9
## %bb.10:
	movq	16(%rax), %rbx
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_vfe_buf_update_wm_on_next
	jmp	LBB0_11
LBB0_6:
	xorl	%edx, %edx
	testq	%r12, %r12
	sete	%dl
	movq	24(%r15), %rax
	movl	(%rax), %edi
	movq	8(%rsi,%rbx), %rcx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err_ratelimited
	jmp	LBB0_7
LBB0_9:
	movq	16(%rbx), %rbx
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_vfe_buf_update_wm_on_last
LBB0_11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %r13
	addq	$16, %r13
	movl	16(%rax,%rcx), %eax
	testq	%r12, %r12
	je	LBB0_15
## %bb.12:
	testl	%eax, %eax
	je	LBB0_18
## %bb.13:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %r12
	addq	$32, %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	(%r12), %rcx
	movl	(%rcx,%r14,4), %esi
	movl	(%rbx,%r14,4), %edx
	movq	%r15, %rdi
	callq	*16(%rax)
	incq	%r14
	movl	(%r13), %eax
	cmpq	%rax, %r14
	jb	LBB0_14
	jmp	LBB0_18
LBB0_15:
	testl	%eax, %eax
	je	LBB0_18
## %bb.16:
	movq	%rbx, %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %r12
	addq	$32, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	(%r12), %rcx
	movl	(%rcx,%rbx,4), %esi
	movl	(%r14,%rbx,4), %edx
	movq	%r15, %rdi
	callq	*8(%rax)
	incq	%rbx
	movl	(%r13), %eax
	cmpq	%rax, %rbx
	jb	LBB0_17
LBB0_18:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	8(%rdx,%rsi), %rax
	movq	_VFE_OUTPUT_STOPPING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.19:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%rdx,%rsi)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_VB2_BUF_STATE_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vb2_buffer_done                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VFE_LINE_NONE,8,3              ## @VFE_LINE_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Received wm done for unmapped index\n"

L_.str.1:                               ## @.str.1
	.asciz	"Active buffer mismatch!\n"

L_.str.2:                               ## @.str.2
	.asciz	"Missing ready buf %d %d!\n"

	.comm	_VFE_OUTPUT_STOPPING,8,3        ## @VFE_OUTPUT_STOPPING
	.comm	_VB2_BUF_STATE_DONE,4,2         ## @VB2_BUF_STATE_DONE
	.no_dead_strip	_vfe_isr_wm_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vfe_isr_wm_done
_vfe_isr_wm_done:                       ; @vfe_isr_wm_done
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x20, x0
	bl	_ktime_get_ns
	mov	x24, x0
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	mov	x22, x0
	add	x19, x20, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
	ldr	x25, [x8, x21, lsl #3]
Lloh0:
	adrp	x8, _VFE_LINE_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VFE_LINE_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x25, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x20, #24]
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_2:
	ldr	x26, [x20, #32]
	mov	w8, #56
	madd	x23, x25, x8, x26
	ldr	x8, [x23]
	cmp	x8, x22
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x20, #24]
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_4:
	str	x22, [x23]
	mov	w8, #56
	madd	x27, x25, x8, x26
	ldr	x8, [x27, #40]!
	cmp	x22, #0
	cset	w28, eq
	ldr	x21, [x8, w28, uxtw #3]
	cbz	x21, LBB0_7
; %bb.5:
	str	w24, [x21]
	mov	w8, #56
	madd	x8, x25, x8, x26
	ldrsw	x9, [x8, #48]
	add	w10, w9, #1
	str	w10, [x8, #48]
	str	x9, [x21, #8]
	mov	x0, x23
	bl	_vfe_buf_get_pending
	ldr	x8, [x27]
	lsl	x9, x28, #3
	str	x0, [x8, x9]
	ldr	x8, [x27]
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_9
; %bb.6:
	ldr	x24, [x8, #16]
	mov	x0, x20
	mov	x1, x23
	bl	_vfe_buf_update_wm_on_next
	b	LBB0_10
LBB0_7:
	cmp	x22, #0
	cset	w8, eq
	ldr	x9, [x20, #24]
	ldr	w0, [x9]
	mov	w9, #56
	madd	x9, x25, x9, x26
	ldr	x9, [x9, #8]
	stp	x8, x9, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	bl	_dev_err_ratelimited
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_spin_unlock_irqrestore
LBB0_9:
	ldr	x24, [x21, #16]
	mov	x0, x20
	mov	x1, x23
	bl	_vfe_buf_update_wm_on_last
LBB0_10:
	mov	w8, #56
	madd	x23, x25, x8, x26
	ldr	w8, [x23, #16]!
	cbz	x22, LBB0_14
; %bb.11:
	cbz	w8, LBB0_17
; %bb.12:
	mov	x22, #0
	mov	w8, #56
	madd	x8, x25, x8, x26
	add	x27, x8, #32
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #16]
	ldr	x9, [x27]
	lsl	x10, x22, #2
	ldr	w1, [x9, x10]
	ldr	w2, [x24, x10]
	mov	x0, x20
	blr	x8
	add	x22, x22, #1
	ldr	w8, [x23]
	cmp	x22, x8
	b.lo	LBB0_13
	b	LBB0_17
LBB0_14:
	cbz	w8, LBB0_17
; %bb.15:
	mov	x22, #0
	mov	w8, #56
	madd	x8, x25, x8, x26
	add	x27, x8, #32
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #8]
	ldr	x9, [x27]
	lsl	x10, x22, #2
	ldr	w1, [x9, x10]
	ldr	w2, [x24, x10]
	mov	x0, x20
	blr	x8
	add	x22, x22, #1
	ldr	w8, [x23]
	cmp	x22, x8
	b.lo	LBB0_16
LBB0_17:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w8, #56
	mul	x8, x25, x8
	add	x8, x26, x8
	ldr	x8, [x8, #8]
Lloh9:
	adrp	x9, _VFE_OUTPUT_STOPPING@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VFE_OUTPUT_STOPPING@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.18:
	mov	w8, #56
	mul	x8, x25, x8
	add	x8, x26, x8
	str	x21, [x8, #24]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_19:
Lloh12:
	adrp	x8, _VB2_BUF_STATE_DONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VB2_BUF_STATE_DONE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_vb2_buffer_done
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_VFE_LINE_NONE,8,3              ; @VFE_LINE_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Received wm done for unmapped index\n"

l_.str.1:                               ; @.str.1
	.asciz	"Active buffer mismatch!\n"

l_.str.2:                               ; @.str.2
	.asciz	"Missing ready buf %d %d!\n"

	.comm	_VFE_OUTPUT_STOPPING,8,3        ; @VFE_OUTPUT_STOPPING
	.comm	_VB2_BUF_STATE_DONE,4,2         ; @VB2_BUF_STATE_DONE
	.no_dead_strip	_vfe_isr_wm_done
.subsections_via_symbols
