	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov7251_s_stream
_ov7251_s_stream:                       ## @ov7251_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	callq	_to_ov7251
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_mutex_lock
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.1:
	movq	16(%r15), %rax
	movl	8(%rax), %edx
	movl	12(%rax), %esi
	movq	%r15, %rdi
	callq	_ov7251_set_register_array
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	%r15, %rdi
	addq	$8, %rdi
	callq	___v4l2_ctrl_handler_setup
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	_OV7251_SC_MODE_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OV7251_SC_MODE_SELECT_STREAMING@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_OV7251_SC_MODE_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OV7251_SC_MODE_SELECT_SW_STANDBY@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ov7251_write_reg
	movl	%eax, %r14d
	jmp	LBB0_8
LBB0_2:
	movl	%eax, %r14d
	movl	4(%r15), %edi
	movq	16(%r15), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_8
LBB0_4:
	movl	%eax, %r14d
	movl	4(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_8:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not set mode %dx%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"could not sync v4l2 controls\n"

	.comm	_OV7251_SC_MODE_SELECT,4,2      ## @OV7251_SC_MODE_SELECT
	.comm	_OV7251_SC_MODE_SELECT_STREAMING,4,2 ## @OV7251_SC_MODE_SELECT_STREAMING
	.comm	_OV7251_SC_MODE_SELECT_SW_STANDBY,4,2 ## @OV7251_SC_MODE_SELECT_SW_STANDBY
	.no_dead_strip	_ov7251_s_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov7251_s_stream
_ov7251_s_stream:                       ; @ov7251_s_stream
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_to_ov7251
	mov	x19, x0
	bl	_mutex_lock
	cbz	w20, LBB0_4
; %bb.1:
	ldr	x8, [x19, #16]
	ldp	w2, w1, [x8, #8]
	mov	x0, x19
	bl	_ov7251_set_register_array
	tbnz	w0, #31, LBB0_6
; %bb.2:
	add	x0, x19, #8
	bl	___v4l2_ctrl_handler_setup
	tbnz	w0, #31, LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _OV7251_SC_MODE_SELECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OV7251_SC_MODE_SELECT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _OV7251_SC_MODE_SELECT_STREAMING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OV7251_SC_MODE_SELECT_STREAMING@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _OV7251_SC_MODE_SELECT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OV7251_SC_MODE_SELECT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _OV7251_SC_MODE_SELECT_SW_STANDBY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OV7251_SC_MODE_SELECT_SW_STANDBY@GOTPAGEOFF]
LBB0_5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ov7251_write_reg
	mov	x20, x0
	b	LBB0_9
LBB0_6:
	mov	x20, x0
	ldr	w0, [x19, #4]
	ldr	x8, [x19, #16]
	ldp	w8, w9, [x8]
	stp	x9, x8, [sp]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
	mov	x20, x0
	ldr	w0, [x19, #4]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	bl	_dev_err
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not set mode %dx%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"could not sync v4l2 controls\n"

	.comm	_OV7251_SC_MODE_SELECT,4,2      ; @OV7251_SC_MODE_SELECT
	.comm	_OV7251_SC_MODE_SELECT_STREAMING,4,2 ; @OV7251_SC_MODE_SELECT_STREAMING
	.comm	_OV7251_SC_MODE_SELECT_SW_STANDBY,4,2 ; @OV7251_SC_MODE_SELECT_SW_STANDBY
	.no_dead_strip	_ov7251_s_stream
.subsections_via_symbols
