	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_lite_subdev_s_stream
_fimc_lite_subdev_s_stream:             ## @fimc_lite_subdev_s_stream
	.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, %r14
	callq	_v4l2_get_subdevdata
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_fimc_find_remote_sensor
	movl	%eax, 20(%r12)
	leaq	16(%r12), %rdi
	callq	_atomic_read
	movq	_FIMC_IO_ISP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_mutex_lock
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.3:
	movq	%r12, %rdi
	callq	_flite_hw_reset
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_fimc_lite_hw_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movq	%r12, %rbx
	addq	$12, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%r12, %rdi
	callq	_flite_hw_capture_start
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_1:
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_5:
	movq	_ST_FLITE_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r12), %r15
	movq	%r15, %rsi
	callq	_set_bit
	movq	%r12, %rbx
	addq	$12, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%r12, %rdi
	callq	_flite_hw_capture_stop
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movl	8(%r12), %r13d
	movq	_ST_FLITE_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
	movl	$200, %edi
	callq	_msecs_to_jiffies
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_wait_event_timeout
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_v4l2_err
LBB0_7:
	movq	_ST_FLITE_RUN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_clear_bit
LBB0_8:
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FIMC_IO_ISP,8,3                ## @FIMC_IO_ISP
	.comm	_ENOIOCTLCMD,4,2                ## @ENOIOCTLCMD
	.comm	_ST_FLITE_OFF,4,2               ## @ST_FLITE_OFF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"s_stream(0) timeout\n"

	.comm	_ST_FLITE_RUN,4,2               ## @ST_FLITE_RUN
	.no_dead_strip	_fimc_lite_subdev_s_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimc_lite_subdev_s_stream
_fimc_lite_subdev_s_stream:             ; @fimc_lite_subdev_s_stream
	.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	x21, x1
	mov	x20, x0
	bl	_v4l2_get_subdevdata
	mov	x19, x0
	mov	x0, x20
	bl	_fimc_find_remote_sensor
	str	w0, [x19, #20]
	add	x0, x19, #16
	bl	_atomic_read
Lloh0:
	adrp	x8, _FIMC_IO_ISP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FIMC_IO_ISP@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_mutex_lock
	cbz	w21, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_flite_hw_reset
	mov	x0, x19
	mov	w1, #1
	bl	_fimc_lite_hw_init
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.3:
	add	x20, x19, #12
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_flite_hw_capture_start
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	b	LBB0_8
LBB0_4:
Lloh3:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_9
LBB0_5:
Lloh6:
	adrp	x23, _ST_FLITE_OFF@GOTPAGE
Lloh7:
	ldr	x23, [x23, _ST_FLITE_OFF@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x21, x19, #4
	mov	x1, x21
	bl	_set_bit
	add	x22, x19, #12
	mov	x0, x22
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_flite_hw_capture_stop
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	w22, [x19, #8]
	ldr	w0, [x23]
	mov	x1, x21
	bl	_test_bit
	cmp	w0, #0
	cset	w23, eq
	mov	w0, #200
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_wait_event_timeout
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.6:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_v4l2_err
LBB0_7:
Lloh10:
	adrp	x8, _ST_FLITE_RUN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ST_FLITE_RUN@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
LBB0_8:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_9:
	mov	x0, x22
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_FIMC_IO_ISP,8,3                ; @FIMC_IO_ISP
	.comm	_ENOIOCTLCMD,4,2                ; @ENOIOCTLCMD
	.comm	_ST_FLITE_OFF,4,2               ; @ST_FLITE_OFF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"s_stream(0) timeout\n"

	.comm	_ST_FLITE_RUN,4,2               ; @ST_FLITE_RUN
	.no_dead_strip	_fimc_lite_subdev_s_stream
.subsections_via_symbols
