	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vfe_isr_reg_update
_vfe_isr_reg_update:                    ## @vfe_isr_reg_update
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_spin_lock_irqsave
	movq	16(%r15), %rax
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	*(%rax)
	movq	8(%r15), %r12
	movl	%ebx, %eax
	leaq	(%rax,%rax,4), %rbx
	cmpq	$0, 32(%r12,%rbx,8)
	je	LBB0_2
## %bb.1:
	leaq	(%r12,%rbx,8), %rax
	addq	$32, %rax
	movq	$0, (%rax)
	leaq	(%r12,%rbx,8), %rdi
	addq	$24, %rdi
	callq	_complete
	jmp	LBB0_13
LBB0_2:
	leaq	(%r12,%rbx,8), %r14
	movl	(%r14), %eax
	movq	_VFE_OUTPUT_STOPPING@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.3:
	movq	16(%r12,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	leaq	(%r12,%rbx,8), %r13
	addq	$16, %r13
	movq	_VB2_BUF_STATE_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vb2_buffer_done
	movq	$0, (%r13)
LBB0_5:
	movq	_VFE_OUTPUT_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_vfe_buf_get_pending
	movq	8(%r12,%rbx,8), %rcx
	movq	%rax, (%rcx)
	movq	%r14, %rdi
	callq	_vfe_buf_get_pending
	movq	8(%r12,%rbx,8), %rcx
	movq	%rax, 8(%rcx)
	movq	8(%r12,%rbx,8), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
LBB0_8:
	movl	$128, (%r14)
LBB0_9:
	cmpq	$0, 8(%rax)
	je	LBB0_11
## %bb.10:
	movl	$129, (%r14)
	movl	$3, %edx
	jmp	LBB0_12
LBB0_6:
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.7:
	leaq	(%r12,%rbx,8), %rdx
	addq	$8, %rdx
	movq	%rcx, (%rax)
	movq	(%rdx), %rax
	movq	$0, 8(%rax)
	movq	(%rdx), %rax
	cmpq	$0, (%rax)
	jne	LBB0_8
	jmp	LBB0_9
LBB0_11:
	movl	(%r14), %eax
	xorl	%ecx, %ecx
	cmpl	$129, %eax
	sete	%cl
	leal	(%rcx,%rcx,2), %ecx
	cmpl	$128, %eax
	movl	$2, %edx
	cmovnel	%ecx, %edx
LBB0_12:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_vfe_output_frame_drop
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_vfe_output_init_addrs
LBB0_13:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VFE_OUTPUT_STOPPING,4,2        ## @VFE_OUTPUT_STOPPING
	.comm	_VB2_BUF_STATE_DONE,4,2         ## @VB2_BUF_STATE_DONE
	.comm	_VFE_OUTPUT_IDLE,4,2            ## @VFE_OUTPUT_IDLE
	.no_dead_strip	_vfe_isr_reg_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vfe_isr_reg_update
_vfe_isr_reg_update:                    ; @vfe_isr_reg_update
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldr	x21, [x19, #8]
	mov	w22, w20
	mov	w8, #40
	umaddl	x20, w20, w8, x21
	mov	x8, x20
	ldr	x9, [x8, #32]!
	cbz	x9, LBB0_2
; %bb.1:
	str	xzr, [x8]
	mov	w8, #40
	madd	x8, x22, x8, x21
	add	x0, x8, #24
	bl	_complete
	b	LBB0_13
LBB0_2:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _VFE_OUTPUT_STOPPING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VFE_OUTPUT_STOPPING@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.3:
	mov	w8, #40
	madd	x23, x22, x8, x21
	ldr	x0, [x23, #16]!
	cbz	x0, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _VB2_BUF_STATE_DONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VB2_BUF_STATE_DONE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_vb2_buffer_done
	str	xzr, [x23]
LBB0_5:
Lloh6:
	adrp	x8, _VFE_OUTPUT_IDLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VFE_OUTPUT_IDLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	x0, x20
	bl	_vfe_buf_get_pending
	mov	w8, #40
	madd	x21, x22, x8, x21
	ldr	x8, [x21, #8]!
	str	x0, [x8]
	mov	x0, x20
	bl	_vfe_buf_get_pending
	ldr	x8, [x21]
	str	x0, [x8, #8]
	ldr	x8, [x21]
	ldr	x9, [x8]
	cbz	x9, LBB0_9
LBB0_6:
	mov	w9, #128
	str	w9, [x20]
LBB0_7:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_11
; %bb.8:
	mov	w8, #129
	str	w8, [x20]
	mov	w2, #3
	b	LBB0_12
LBB0_9:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_7
; %bb.10:
	str	x9, [x8]
	ldr	x8, [x21]
	str	xzr, [x8, #8]
	ldr	x8, [x21]
	ldr	x9, [x8]
	cbnz	x9, LBB0_6
	b	LBB0_7
LBB0_11:
	ldr	w8, [x20]
	mov	w9, #3
	cmp	w8, #129
	csel	w9, w9, wzr, eq
	mov	w10, #2
	cmp	w8, #128
	csel	w2, w10, w9, eq
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	bl	_vfe_output_frame_drop
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_vfe_output_init_addrs
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VFE_OUTPUT_STOPPING,4,2        ; @VFE_OUTPUT_STOPPING
	.comm	_VB2_BUF_STATE_DONE,4,2         ; @VB2_BUF_STATE_DONE
	.comm	_VFE_OUTPUT_IDLE,4,2            ; @VFE_OUTPUT_IDLE
	.no_dead_strip	_vfe_isr_reg_update
.subsections_via_symbols
