	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vfe_enable_output
_vfe_enable_output:                     ## @vfe_enable_output
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_to_vfe
	movq	%rax, %r14
	movq	24(%rax), %r15
	movl	$0, -44(%rbp)
	movl	16(%rax), %edi
	callq	*(%r15)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r13d
	leaq	8(%rbx), %rdi
	callq	_camss_find_sensor
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_media_entity_to_v4l2_subdev
	movq	_g_skip_frames@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-44(%rbp), %rcx
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_v4l2_subdev_call
	movq	_VFE_FRAME_DROP_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	cmpl	%eax, -44(%rbp)
	jbe	LBB0_5
## %bb.4:
	movl	%eax, -44(%rbp)
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	*176(%r15)
	movl	16(%rbx), %edx
	movq	_VFE_OUTPUT_RESERVED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_6
## %bb.7:
	leaq	16(%rbx), %r12
	movq	_VFE_OUTPUT_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	%r12, %rdi
	callq	_vfe_buf_get_pending
	movq	72(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	%r12, %rdi
	callq	_vfe_buf_get_pending
	movq	72(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	72(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
LBB0_10:
	movl	$128, (%r12)
LBB0_11:
	cmpq	$0, 8(%rax)
	je	LBB0_14
## %bb.12:
	movl	$129, (%r12)
LBB0_13:
	movb	-44(%rbp), %cl
	movl	$3, %edx
LBB0_17:
	shll	%cl, %edx
LBB0_18:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_vfe_output_frame_drop
	leaq	40(%rbx), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rbx)
	movq	$0, 64(%rbx)
	callq	_reinit_completion
	leaq	36(%rbx), %rdi
	callq	_reinit_completion
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_vfe_output_init_addrs
	movl	(%rbx), %ecx
	movq	_VFE_LINE_PIX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_19
## %bb.20:
	movl	32(%rbx), %esi
	movl	%r13d, %eax
	cltd
	idivl	%esi
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%esi, %esi
	je	LBB0_24
## %bb.21:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	incl	%r13d
	leaq	4(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %rax
	movl	(%rax,%r12,4), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	*136(%r15)
	movq	24(%rbx), %rax
	movl	(%rax,%r12,4), %esi
	movq	%r14, %rdi
	callq	*128(%r15)
	movq	24(%rbx), %rax
	movl	(%rax,%r12,4), %esi
	movl	%esi, %edx
	imull	%r13d, %edx
	movq	%r14, %rdi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	*120(%r15)
	movq	24(%rbx), %rax
	movl	(%rax,%r12,4), %esi
	movq	%r14, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%r12d, %ecx
	movl	$1, %r8d
	callq	*112(%r15)
	movq	24(%rbx), %rax
	movl	(%rax,%r12,4), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	*104(%r15)
	movq	24(%rbx), %rax
	movl	(%rax,%r12,4), %esi
	movq	%r14, %rdi
	callq	*96(%r15)
	incq	%r12
	movl	32(%rbx), %eax
	cmpq	%rax, %r12
	jb	LBB0_22
## %bb.23:
	movl	(%rbx), %ecx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_24:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ecx, %edx
	movl	$1, %ecx
	callq	*88(%r15)
	movq	%r14, %rdi
	movl	$1, %esi
	callq	*80(%r15)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*72(%r15)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	*64(%r15)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	*56(%r15)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*48(%r15)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*40(%r15)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*32(%r15)
	movq	%r14, %rdi
	callq	*24(%r15)
	movq	%r14, %rdi
	movl	$1, %esi
	callq	*16(%r15)
	jmp	LBB0_25
LBB0_6:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_26
LBB0_19:
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	*136(%r15)
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	*168(%r15)
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	*160(%r15)
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	*128(%r15)
	movl	(%rbx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	*152(%r15)
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	movl	%r13d, %edx
	incl	%edx
	imull	%esi, %edx
	movq	%r14, %rdi
	movl	%r13d, %ecx
	callq	*120(%r15)
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	*144(%r15)
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	*104(%r15)
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	*96(%r15)
LBB0_25:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	*8(%r15)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
LBB0_26:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.9:
	movq	%rcx, (%rax)
	movq	72(%rbx), %rax
	movq	$0, 8(%rax)
	movq	72(%rbx), %rax
	cmpq	$0, (%rax)
	jne	LBB0_10
	jmp	LBB0_11
LBB0_14:
	movl	(%r12), %eax
	cmpl	$129, %eax
	je	LBB0_13
## %bb.15:
	xorl	%edx, %edx
	cmpl	$128, %eax
	jne	LBB0_18
## %bb.16:
	movb	-44(%rbp), %cl
	movl	$1, %edx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_g_skip_frames,4,2              ## @g_skip_frames
	.comm	_VFE_FRAME_DROP_VAL,4,2         ## @VFE_FRAME_DROP_VAL
	.comm	_VFE_OUTPUT_RESERVED,4,2        ## @VFE_OUTPUT_RESERVED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Output is not in reserved state %d\n"

	.comm	_VFE_OUTPUT_IDLE,4,2            ## @VFE_OUTPUT_IDLE
	.comm	_VFE_LINE_PIX,4,2               ## @VFE_LINE_PIX
	.no_dead_strip	_vfe_enable_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vfe_enable_output
_vfe_enable_output:                     ; @vfe_enable_output
	.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	x20, x0
	bl	_to_vfe
	mov	x19, x0
	ldr	x25, [x0, #24]
	str	wzr, [sp, #12]
	ldr	x8, [x25]
	ldr	w0, [x0, #16]
	blr	x8
	cbz	w0, LBB0_18
; %bb.1:
	mov	x22, x0
	add	x0, x20, #8
	bl	_camss_find_sensor
	cbz	x0, LBB0_4
; %bb.2:
	mov	x21, x0
	bl	_media_entity_to_v4l2_subdev
Lloh0:
	adrp	x8, _g_skip_frames@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_skip_frames@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x1, x21
	bl	_v4l2_subdev_call
	ldr	w9, [sp, #12]
Lloh3:
	adrp	x8, _VFE_FRAME_DROP_VAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VFE_FRAME_DROP_VAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sub	w8, w8, #1
	cmp	w9, w8
	b.ls	LBB0_4
; %bb.3:
	str	w8, [sp, #12]
LBB0_4:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x25, #176]
	ldr	w1, [x20]
	mov	x0, x19
	blr	x8
	ldr	w2, [x20, #16]
Lloh6:
	adrp	x8, _VFE_OUTPUT_RESERVED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VFE_OUTPUT_RESERVED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w2, w8
	b.ne	LBB0_17
; %bb.5:
	add	x21, x20, #16
Lloh9:
	adrp	x8, _VFE_OUTPUT_IDLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VFE_OUTPUT_IDLE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	mov	x0, x21
	bl	_vfe_buf_get_pending
	ldr	x8, [x20, #72]
	str	x0, [x8]
	mov	x0, x21
	bl	_vfe_buf_get_pending
	ldr	x8, [x20, #72]
	str	x0, [x8, #8]
	ldr	x8, [x20, #72]
	ldr	x9, [x8]
	cbz	x9, LBB0_22
LBB0_6:
	mov	w9, #128
	str	w9, [x21]
LBB0_7:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_24
; %bb.8:
	mov	w8, #129
	str	w8, [x21]
LBB0_9:
	ldr	w8, [sp, #12]
	mov	w9, #3
LBB0_10:
	lsl	w2, w9, w8
LBB0_11:
	mov	x0, x19
	mov	x1, x21
	bl	_vfe_output_frame_drop
	add	x0, x20, #40
	stp	xzr, xzr, [x20, #56]
	str	xzr, [x20, #48]
	bl	_reinit_completion
	add	x0, x20, #36
	bl	_reinit_completion
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_vfe_output_init_addrs
	ldr	w2, [x20]
Lloh12:
	adrp	x8, _VFE_LINE_PIX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VFE_LINE_PIX@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w2, w8
	b.ne	LBB0_19
; %bb.12:
	ldr	w8, [x20, #32]
	cbz	w8, LBB0_16
; %bb.13:
	mov	x23, #0
	sdiv	w22, w22, w8
	add	w26, w22, #1
	add	x24, x20, #4
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25, #136]
	ldr	x9, [x20, #24]
	lsl	x27, x23, #2
	ldr	w1, [x9, x27]
	mov	x0, x19
	mov	w2, #1
	blr	x8
	ldr	x8, [x25, #128]
	ldr	x9, [x20, #24]
	ldr	w1, [x9, x27]
	mov	x0, x19
	blr	x8
	ldr	x8, [x25, #120]
	ldr	x9, [x20, #24]
	ldr	w1, [x9, x27]
	mul	w2, w1, w26
	mov	x0, x19
	mov	x3, x22
	blr	x8
	ldr	x8, [x25, #112]
	ldr	x9, [x20, #24]
	ldr	w1, [x9, x27]
	mov	x0, x19
	mov	x2, x24
	mov	x3, x23
	mov	w4, #1
	blr	x8
	ldr	x8, [x25, #104]
	ldr	x9, [x20, #24]
	ldr	w1, [x9, x27]
	mov	x0, x19
	mov	w2, #1
	blr	x8
	ldr	x8, [x25, #96]
	ldr	x9, [x20, #24]
	ldr	w1, [x9, x27]
	mov	x0, x19
	blr	x8
	add	x23, x23, #1
	ldr	w8, [x20, #32]
	cmp	x23, x8
	b.lo	LBB0_14
; %bb.15:
	ldr	w2, [x20]
LBB0_16:
	ldr	x8, [x25, #88]
	mov	x0, x19
	mov	w1, #0
	mov	w3, #1
	blr	x8
	ldr	x8, [x25, #80]
	mov	x0, x19
	mov	w1, #1
	blr	x8
	ldr	x8, [x25, #72]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldr	x8, [x25, #64]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	blr	x8
	ldr	x8, [x25, #56]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	blr	x8
	ldr	x8, [x25, #48]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldr	x8, [x25, #40]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldr	x8, [x25, #32]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldr	x8, [x25, #24]
	mov	x0, x19
	blr	x8
	ldr	x8, [x25, #16]
	mov	x0, x19
	mov	w1, #1
	b	LBB0_20
LBB0_17:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_18:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_21
LBB0_19:
	ldr	x8, [x25, #136]
	ldr	x9, [x20, #24]
	ldr	w1, [x9]
	mov	x0, x19
	mov	w2, #1
	blr	x8
	ldr	x8, [x25, #168]
	ldr	x9, [x20, #24]
	ldr	w1, [x9]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w3, #1
	blr	x8
	ldr	x8, [x25, #160]
	ldr	x9, [x20, #24]
	ldr	w1, [x9]
	ldr	w2, [x20]
	mov	x0, x19
	blr	x8
	ldr	x8, [x25, #128]
	ldr	x9, [x20, #24]
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	ldr	x8, [x25, #152]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	blr	x8
	ldr	x8, [x25, #120]
	ldr	x9, [x20, #24]
	ldr	w1, [x9]
	madd	w2, w1, w22, w1
	mov	x0, x19
	mov	x3, x22
	blr	x8
	ldr	x8, [x25, #144]
	ldr	x9, [x20, #24]
	ldr	w1, [x9]
	mov	x0, x19
	mov	w2, #1
	blr	x8
	ldr	x8, [x25, #104]
	ldr	x9, [x20, #24]
	ldr	w1, [x9]
	mov	x0, x19
	mov	w2, #1
	blr	x8
	ldr	x8, [x25, #96]
	ldr	x9, [x20, #24]
	ldr	w1, [x9]
	mov	x0, x19
LBB0_20:
	blr	x8
	ldr	x8, [x25, #8]
	ldr	w1, [x20]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
LBB0_21:
	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_22:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_7
; %bb.23:
	str	x9, [x8]
	ldr	x8, [x20, #72]
	str	xzr, [x8, #8]
	ldr	x8, [x20, #72]
	ldr	x9, [x8]
	cbnz	x9, LBB0_6
	b	LBB0_7
LBB0_24:
	ldr	w8, [x21]
	cmp	w8, #129
	b.eq	LBB0_9
; %bb.25:
	cmp	w8, #128
	b.ne	LBB0_27
; %bb.26:
	ldr	w8, [sp, #12]
	mov	w9, #1
	b	LBB0_10
LBB0_27:
	mov	w2, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_g_skip_frames,4,2              ; @g_skip_frames
	.comm	_VFE_FRAME_DROP_VAL,4,2         ; @VFE_FRAME_DROP_VAL
	.comm	_VFE_OUTPUT_RESERVED,4,2        ; @VFE_OUTPUT_RESERVED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Output is not in reserved state %d\n"

	.comm	_VFE_OUTPUT_IDLE,4,2            ; @VFE_OUTPUT_IDLE
	.comm	_VFE_LINE_PIX,4,2               ; @VFE_LINE_PIX
	.no_dead_strip	_vfe_enable_output
.subsections_via_symbols
