	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov7630_set_ctrl
_ov7630_set_ctrl:                       ## @ov7630_set_ctrl
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_sn9c102_get_bridge
	movl	(%rbx), %ecx
	addl	$-128, %ecx
	cmpl	$10, %ecx
	ja	LBB0_16
## %bb.1:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_11:
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	movl	$13, %esi
	jmp	LBB0_18
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	jmp	LBB0_20
LBB0_13:
	movl	4(%rbx), %edx
	shll	$7, %edx
	orl	$14, %edx
	movq	%r14, %rdi
	movl	$117, %esi
	jmp	LBB0_18
LBB0_2:
	movq	_BRIDGE_SN9C105@GOTPCREL(%rip), %rcx
	movl	4(%rbx), %esi
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.3:
	movq	_BRIDGE_SN9C120@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
	jmp	LBB0_4
LBB0_9:
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	jmp	LBB0_18
LBB0_17:
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	movl	$16, %esi
	jmp	LBB0_18
LBB0_10:
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	movl	$12, %esi
	jmp	LBB0_18
LBB0_5:
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	movl	$6, %edx
	callq	_sn9c102_write_reg
	jmp	LBB0_19
LBB0_12:
	movl	4(%rbx), %eax
	leal	(%rax,%rax), %edx
	orl	%eax, %edx
	movq	%r14, %rdi
	movl	$19, %esi
	jmp	LBB0_18
LBB0_6:
	movq	_BRIDGE_SN9C105@GOTPCREL(%rip), %rcx
	movl	4(%rbx), %esi
	cmpl	(%rcx), %eax
	je	LBB0_8
## %bb.7:
	movq	_BRIDGE_SN9C120@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_8
LBB0_4:
	movq	%r14, %rdi
	movl	$5, %edx
	callq	_sn9c102_write_reg
	jmp	LBB0_19
LBB0_14:
	movl	4(%rbx), %edx
	shll	$2, %edx
	movq	%r14, %rdi
	movl	$20, %esi
	jmp	LBB0_18
LBB0_15:
	movl	4(%rbx), %edx
	shll	$2, %edx
	movq	%r14, %rdi
	movl	$45, %esi
LBB0_18:
	callq	_sn9c102_i2c_write
LBB0_19:
	movq	_EIO@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	testl	%eax, %eax
	cmovel	%eax, %ecx
LBB0_20:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	movl	$7, %edx
	callq	_sn9c102_write_reg
	jmp	LBB0_19
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_13
	.long	L0_0_set_2
	.long	L0_0_set_9
	.long	L0_0_set_17
	.long	L0_0_set_10
	.long	L0_0_set_5
	.long	L0_0_set_12
	.long	L0_0_set_6
	.long	L0_0_set_14
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_BRIDGE_SN9C105,4,2             ## @BRIDGE_SN9C105
	.comm	_BRIDGE_SN9C120,4,2             ## @BRIDGE_SN9C120
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ov7630_set_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov7630_set_ctrl
_ov7630_set_ctrl:                       ; @ov7630_set_ctrl
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_sn9c102_get_bridge
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #10
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w2, [x20, #4]
	mov	x0, x19
	mov	w1, #13
	b	LBB0_16
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_4:
	ldr	w8, [x20, #4]
	mov	w2, #14
	bfi	w2, w8, #7, #25
	mov	x0, x19
	mov	w1, #117
	b	LBB0_16
LBB0_5:
Lloh5:
	adrp	x8, _BRIDGE_SN9C105@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BRIDGE_SN9C105@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _BRIDGE_SN9C120@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BRIDGE_SN9C120@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	ldr	w1, [x20, #4]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_13
LBB0_6:
	mov	x0, x19
	mov	w2, #5
	bl	_sn9c102_write_reg
	b	LBB0_17
LBB0_7:
	ldr	w2, [x20, #4]
	mov	x0, x19
	mov	w1, #0
	b	LBB0_16
LBB0_8:
	ldr	w2, [x20, #4]
	mov	x0, x19
	mov	w1, #16
	b	LBB0_16
LBB0_9:
	ldr	w2, [x20, #4]
	mov	x0, x19
	mov	w1, #12
	b	LBB0_16
LBB0_10:
	ldr	w1, [x20, #4]
	mov	x0, x19
	mov	w2, #6
	bl	_sn9c102_write_reg
	b	LBB0_17
LBB0_11:
	ldr	w8, [x20, #4]
	orr	w2, w8, w8, lsl #1
	mov	x0, x19
	mov	w1, #19
	b	LBB0_16
LBB0_12:
Lloh11:
	adrp	x8, _BRIDGE_SN9C105@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BRIDGE_SN9C105@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _BRIDGE_SN9C120@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BRIDGE_SN9C120@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	ldr	w1, [x20, #4]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_6
LBB0_13:
	mov	x0, x19
	mov	w2, #7
	bl	_sn9c102_write_reg
	b	LBB0_17
LBB0_14:
	ldr	w8, [x20, #4]
	lsl	w2, w8, #2
	mov	x0, x19
	mov	w1, #20
	b	LBB0_16
LBB0_15:
	ldr	w8, [x20, #4]
	lsl	w2, w8, #2
	mov	x0, x19
	mov	w1, #45
LBB0_16:
	bl	_sn9c102_i2c_write
LBB0_17:
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w0, wzr, w8, eq
LBB0_18:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
                                        ; -- End function
	.comm	_BRIDGE_SN9C105,4,2             ; @BRIDGE_SN9C105
	.comm	_BRIDGE_SN9C120,4,2             ; @BRIDGE_SN9C120
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ov7630_set_ctrl
.subsections_via_symbols
