	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov2685_s_stream
_ov2685_s_stream:                       ## @ov2685_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
	callq	_to_ov2685
	movq	%rax, %r13
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	4(%r13), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	xorl	%r12d, %r12d
	testl	%ebx, %ebx
	setne	%r12b
	xorl	%r14d, %r14d
	cmpl	%r12d, (%r13)
	je	LBB0_10
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.2:
	movq	8(%r13), %rdi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:
	movq	%r13, %rdi
	addq	$16, %rdi
	callq	___v4l2_ctrl_handler_setup
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_REG_SC_CTRL_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OV2685_REG_VALUE_08BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SC_CTRL_MODE_STREAMING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ov2685_write_reg
	testl	%eax, %eax
	je	LBB0_7
LBB0_5:
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_pm_runtime_put
	jmp	LBB0_9
LBB0_6:
	movq	_REG_SC_CTRL_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OV2685_REG_VALUE_08BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SC_CTRL_MODE_STANDBY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ov2685_write_reg
	movq	8(%r13), %rdi
	callq	_pm_runtime_put
LBB0_7:
	movl	%r12d, (%r13)
	jmp	LBB0_10
LBB0_8:
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_pm_runtime_put_noidle
LBB0_9:
	movl	%ebx, %r14d
LBB0_10:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_SC_CTRL_MODE,4,2           ## @REG_SC_CTRL_MODE
	.comm	_OV2685_REG_VALUE_08BIT,4,2     ## @OV2685_REG_VALUE_08BIT
	.comm	_SC_CTRL_MODE_STREAMING,4,2     ## @SC_CTRL_MODE_STREAMING
	.comm	_SC_CTRL_MODE_STANDBY,4,2       ## @SC_CTRL_MODE_STANDBY
	.no_dead_strip	_ov2685_s_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov2685_s_stream
_ov2685_s_stream:                       ; @ov2685_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	x22, x1
	bl	_to_ov2685
	mov	x20, x0
	ldr	x21, [x0, #8]
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	cmp	w22, #0
	cset	w23, ne
	ldr	w8, [x20]
	cmp	w8, w23
	b.ne	LBB0_2
; %bb.1:
	mov	w22, #0
	b	LBB0_10
LBB0_2:
	cbz	w22, LBB0_7
; %bb.3:
	ldr	x0, [x20, #8]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_9
; %bb.4:
	add	x0, x20, #16
	bl	___v4l2_ctrl_handler_setup
	cbnz	w0, LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _REG_SC_CTRL_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_SC_CTRL_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _OV2685_REG_VALUE_08BIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OV2685_REG_VALUE_08BIT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _SC_CTRL_MODE_STREAMING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SC_CTRL_MODE_STREAMING@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_ov2685_write_reg
	cbz	w0, LBB0_8
LBB0_6:
	mov	x22, x0
	mov	x0, x21
	bl	_pm_runtime_put
	b	LBB0_10
LBB0_7:
Lloh9:
	adrp	x8, _REG_SC_CTRL_MODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_SC_CTRL_MODE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _OV2685_REG_VALUE_08BIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OV2685_REG_VALUE_08BIT@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _SC_CTRL_MODE_STANDBY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SC_CTRL_MODE_STANDBY@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_ov2685_write_reg
	ldr	x0, [x20, #8]
	bl	_pm_runtime_put
LBB0_8:
	mov	w22, #0
	str	w23, [x20]
	b	LBB0_10
LBB0_9:
	mov	x22, x0
	mov	x0, x21
	bl	_pm_runtime_put_noidle
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_SC_CTRL_MODE,4,2           ; @REG_SC_CTRL_MODE
	.comm	_OV2685_REG_VALUE_08BIT,4,2     ; @OV2685_REG_VALUE_08BIT
	.comm	_SC_CTRL_MODE_STREAMING,4,2     ; @SC_CTRL_MODE_STREAMING
	.comm	_SC_CTRL_MODE_STANDBY,4,2       ; @SC_CTRL_MODE_STANDBY
	.no_dead_strip	_ov2685_s_stream
.subsections_via_symbols
