	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov8856_start_streaming
_ov8856_start_streaming:                ## @ov8856_start_streaming
	.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
	movq	%rdi, %rbx
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movq	8(%rbx), %rax
	movslq	(%rax), %rsi
	movq	_link_freq_configs@GOTPCREL(%rip), %rax
	shlq	$2, %rsi
	addq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_ov8856_write_reg_list
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_7
LBB0_2:
	movq	8(%rbx), %rsi
	addq	$4, %rsi
	movq	%rbx, %rdi
	callq	_ov8856_write_reg_list
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
LBB0_7:
	movq	%r14, %rdi
	callq	_dev_err
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%rbx), %edi
	callq	___v4l2_ctrl_handler_setup
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	_OV8856_REG_MODE_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OV8856_REG_VALUE_08BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_OV8856_MODE_STREAMING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_ov8856_write_reg
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_7
LBB0_9:
	xorl	%r15d, %r15d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_link_freq_configs,8,3          ## @link_freq_configs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to set plls"

L_.str.1:                               ## @.str.1
	.asciz	"failed to set mode"

	.comm	_OV8856_REG_MODE_SELECT,4,2     ## @OV8856_REG_MODE_SELECT
	.comm	_OV8856_REG_VALUE_08BIT,4,2     ## @OV8856_REG_VALUE_08BIT
	.comm	_OV8856_MODE_STREAMING,4,2      ## @OV8856_MODE_STREAMING
L_.str.2:                               ## @.str.2
	.asciz	"failed to set stream"

	.no_dead_strip	_ov8856_start_streaming
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov8856_start_streaming
_ov8856_start_streaming:                ; @ov8856_start_streaming
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	bl	_v4l2_get_subdevdata
	mov	x19, x0
	ldr	x8, [x20, #8]
	ldrsw	x8, [x8]
Lloh0:
	adrp	x9, _link_freq_configs@GOTPAGE
Lloh1:
	ldr	x9, [x9, _link_freq_configs@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8, lsl #2
	mov	x0, x20
	bl	_ov8856_write_reg_list
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	x8, [x20, #8]
	add	x1, x8, #4
	mov	x0, x20
	bl	_ov8856_write_reg_list
	cbz	w0, LBB0_6
; %bb.3:
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_dev_err
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w0, [x20]
	bl	___v4l2_ctrl_handler_setup
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.7:
Lloh7:
	adrp	x8, _OV8856_REG_MODE_SELECT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OV8856_REG_MODE_SELECT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _OV8856_REG_VALUE_08BIT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OV8856_REG_VALUE_08BIT@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x8, _OV8856_MODE_STREAMING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OV8856_MODE_STREAMING@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_ov8856_write_reg
	mov	x21, x0
	cbz	w0, LBB0_5
; %bb.8:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_link_freq_configs,8,3          ; @link_freq_configs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to set plls"

l_.str.1:                               ; @.str.1
	.asciz	"failed to set mode"

	.comm	_OV8856_REG_MODE_SELECT,4,2     ; @OV8856_REG_MODE_SELECT
	.comm	_OV8856_REG_VALUE_08BIT,4,2     ; @OV8856_REG_VALUE_08BIT
	.comm	_OV8856_MODE_STREAMING,4,2      ; @OV8856_MODE_STREAMING
l_.str.2:                               ; @.str.2
	.asciz	"failed to set stream"

	.no_dead_strip	_ov8856_start_streaming
.subsections_via_symbols
