	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov5645_s_stream
_ov5645_s_stream:                       ## @ov5645_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	callq	_to_ov5645
	movq	%rax, %r14
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.1:
	movq	8(%r14), %rax
	movl	8(%rax), %edx
	movl	12(%rax), %esi
	movq	%r14, %rdi
	callq	_ov5645_set_register_array
	testl	%eax, %eax
	js	LBB0_10
## %bb.2:
	movq	%r14, %rdi
	addq	$4, %rdi
	callq	_v4l2_ctrl_handler_setup
	testl	%eax, %eax
	js	LBB0_11
## %bb.3:
	movq	_OV5645_IO_MIPI_CTRL00@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$69, %edx
	callq	_ov5645_write_reg
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:
	movq	_OV5645_SYSTEM_CTRL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OV5645_SYSTEM_CTRL0_START@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	movq	_OV5645_IO_MIPI_CTRL00@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$64, %edx
	callq	_ov5645_write_reg
	testl	%eax, %eax
	js	LBB0_6
## %bb.8:
	movq	_OV5645_SYSTEM_CTRL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OV5645_SYSTEM_CTRL0_STOP@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ov5645_write_reg
	testl	%eax, %eax
	js	LBB0_6
## %bb.9:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_6:
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_10:
	movl	%eax, %ebx
	movl	(%r14), %edi
	movq	8(%r14), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_12
LBB0_11:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	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	_OV5645_IO_MIPI_CTRL00,4,2      ## @OV5645_IO_MIPI_CTRL00
	.comm	_OV5645_SYSTEM_CTRL0,4,2        ## @OV5645_SYSTEM_CTRL0
	.comm	_OV5645_SYSTEM_CTRL0_START,4,2  ## @OV5645_SYSTEM_CTRL0_START
	.comm	_OV5645_SYSTEM_CTRL0_STOP,4,2   ## @OV5645_SYSTEM_CTRL0_STOP
	.no_dead_strip	_ov5645_s_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov5645_s_stream
_ov5645_s_stream:                       ; @ov5645_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_ov5645
	mov	x19, x0
	cbz	w20, LBB0_5
; %bb.1:
	ldr	x8, [x19, #8]
	ldp	w2, w1, [x8, #8]
	mov	x0, x19
	bl	_ov5645_set_register_array
	tbnz	w0, #31, LBB0_10
; %bb.2:
	add	x0, x19, #4
	bl	_v4l2_ctrl_handler_setup
	tbnz	w0, #31, LBB0_11
; %bb.3:
Lloh0:
	adrp	x8, _OV5645_IO_MIPI_CTRL00@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OV5645_IO_MIPI_CTRL00@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #69
	bl	_ov5645_write_reg
	tbnz	w0, #31, LBB0_9
; %bb.4:
Lloh3:
	adrp	x8, _OV5645_SYSTEM_CTRL0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OV5645_SYSTEM_CTRL0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _OV5645_SYSTEM_CTRL0_START@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OV5645_SYSTEM_CTRL0_START@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x8, _OV5645_IO_MIPI_CTRL00@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OV5645_IO_MIPI_CTRL00@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #64
	bl	_ov5645_write_reg
	tbnz	w0, #31, LBB0_9
; %bb.6:
Lloh11:
	adrp	x8, _OV5645_SYSTEM_CTRL0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OV5645_SYSTEM_CTRL0@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _OV5645_SYSTEM_CTRL0_STOP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OV5645_SYSTEM_CTRL0_STOP@GOTPAGEOFF]
LBB0_7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ov5645_write_reg
	tbnz	w0, #31, LBB0_9
; %bb.8:
	mov	w20, #0
	b	LBB0_13
LBB0_9:
	mov	x20, x0
	b	LBB0_13
LBB0_10:
	mov	x20, x0
	ldr	w0, [x19]
	ldr	x8, [x19, #8]
	ldp	w8, w9, [x8]
	stp	x9, x8, [sp]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_11:
	mov	x20, x0
	ldr	w0, [x19]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_12:
	bl	_dev_err
LBB0_13:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.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	_OV5645_IO_MIPI_CTRL00,4,2      ; @OV5645_IO_MIPI_CTRL00
	.comm	_OV5645_SYSTEM_CTRL0,4,2        ; @OV5645_SYSTEM_CTRL0
	.comm	_OV5645_SYSTEM_CTRL0_START,4,2  ; @OV5645_SYSTEM_CTRL0_START
	.comm	_OV5645_SYSTEM_CTRL0_STOP,4,2   ; @OV5645_SYSTEM_CTRL0_STOP
	.no_dead_strip	_ov5645_s_stream
.subsections_via_symbols
