	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov5695_s_stream
_ov5695_s_stream:                       ## @ov5695_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_to_ov5695
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	4(%rbx), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	xorl	%r13d, %r13d
	testl	%r14d, %r14d
	setne	%r13b
	xorl	%r15d, %r15d
	cmpl	%r13d, (%rbx)
	je	LBB0_9
## %bb.1:
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.2:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	movq	%rbx, %rdi
	callq	___ov5695_start_stream
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_v4l2_err
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_pm_runtime_put
	jmp	LBB0_8
LBB0_5:
	movq	%rbx, %rdi
	callq	___ov5695_stop_stream
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_pm_runtime_put
LBB0_6:
	movl	%r13d, (%rbx)
	jmp	LBB0_9
LBB0_7:
	movl	%eax, %r14d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_pm_runtime_put_noidle
LBB0_8:
	movl	%r14d, %r15d
LBB0_9:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"start stream failed while write regs\n"

	.no_dead_strip	_ov5695_s_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov5695_s_stream
_ov5695_s_stream:                       ; @ov5695_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	x23, x1
	mov	x22, x0
	bl	_to_ov5695
	mov	x21, x0
	ldr	x20, [x0, #8]
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	cmp	w23, #0
	cset	w24, ne
	ldr	w8, [x21]
	cmp	w8, w24
	b.ne	LBB0_2
; %bb.1:
	mov	w23, #0
	b	LBB0_9
LBB0_2:
	cbz	w23, LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_8
; %bb.4:
	mov	x0, x21
	bl	___ov5695_start_stream
	cbz	w0, LBB0_7
; %bb.5:
	mov	x23, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_v4l2_err
	mov	x0, x20
	bl	_pm_runtime_put
	b	LBB0_9
LBB0_6:
	mov	x0, x21
	bl	___ov5695_stop_stream
	mov	x0, x20
	bl	_pm_runtime_put
LBB0_7:
	mov	w23, #0
	str	w24, [x21]
	b	LBB0_9
LBB0_8:
	mov	x23, x0
	mov	x0, x20
	bl	_pm_runtime_put_noidle
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x23
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"start stream failed while write regs\n"

	.no_dead_strip	_ov5695_s_stream
.subsections_via_symbols
