	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov7630_get_ctrl
_ov7630_get_ctrl:                       ## @ov7630_get_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_sn9c102_get_bridge
	movl	(%r14), %ecx
	addl	$-128, %ecx
	cmpl	$10, %ecx
	ja	LBB0_3
## %bb.1:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	%rbx, %rdi
	movl	$13, %esi
	jmp	LBB0_12
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_4:
	movq	%rbx, %rdi
	movl	$117, %esi
	callq	_sn9c102_i2c_read
	movl	%eax, 4(%r14)
	testl	%eax, %eax
	js	LBB0_24
## %bb.5:
	shrl	$7, %eax
	andl	$1, %eax
	jmp	LBB0_28
LBB0_6:
	movq	_BRIDGE_SN9C105@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_19
## %bb.7:
	movq	_BRIDGE_SN9C120@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_26
	jmp	LBB0_19
LBB0_8:
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sn9c102_i2c_read
	movl	%eax, 4(%r14)
	testl	%eax, %eax
	js	LBB0_24
## %bb.9:
	andl	$63, %eax
	movl	%eax, 4(%r14)
	jmp	LBB0_29
LBB0_10:
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_sn9c102_i2c_read
	movl	%eax, 4(%r14)
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jns	LBB0_29
	jmp	LBB0_24
LBB0_11:
	movq	%rbx, %rdi
	movl	$12, %esi
LBB0_12:
	callq	_sn9c102_i2c_read
	movl	%eax, 4(%r14)
	testl	%eax, %eax
	js	LBB0_24
## %bb.13:
	andl	$63, %eax
	jmp	LBB0_28
LBB0_14:
	movq	%rbx, %rdi
	movl	$6, %esi
	jmp	LBB0_27
LBB0_15:
	movq	%rbx, %rdi
	movl	$19, %esi
	callq	_sn9c102_i2c_read
	movl	%eax, 4(%r14)
	testl	%eax, %eax
	js	LBB0_24
## %bb.16:
	andl	$1, %eax
	jmp	LBB0_28
LBB0_17:
	movq	_BRIDGE_SN9C105@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_26
## %bb.18:
	movq	_BRIDGE_SN9C120@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_26
LBB0_19:
	movq	%rbx, %rdi
	movl	$5, %esi
	jmp	LBB0_27
LBB0_20:
	movq	%rbx, %rdi
	movl	$20, %esi
	jmp	LBB0_22
LBB0_21:
	movq	%rbx, %rdi
	movl	$45, %esi
LBB0_22:
	callq	_sn9c102_i2c_read
	movl	%eax, 4(%r14)
	testl	%eax, %eax
	js	LBB0_24
## %bb.23:
	shrl	%eax
	andl	$1, %eax
	jmp	LBB0_28
LBB0_24:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_25:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_29
LBB0_26:
	movq	%rbx, %rdi
	movl	$7, %esi
LBB0_27:
	callq	_sn9c102_pread_reg
LBB0_28:
	movl	%eax, 4(%r14)
	xorl	%r15d, %r15d
LBB0_29:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_17
	.long	L0_0_set_20
	.long	L0_0_set_21
	.end_data_region
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_BRIDGE_SN9C105,4,2             ## @BRIDGE_SN9C105
	.comm	_BRIDGE_SN9C120,4,2             ## @BRIDGE_SN9C120
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ov7630_get_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov7630_get_ctrl
_ov7630_get_ctrl:                       ; @ov7630_get_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	x19, x1
	mov	x20, x0
	bl	_sn9c102_get_bridge
	ldr	w8, [x19]
	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:
	mov	x0, x20
	mov	w1, #13
	b	LBB0_12
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_25
LBB0_4:
	mov	x0, x20
	mov	w1, #117
	bl	_sn9c102_i2c_read
	mov	x8, x0
	str	w8, [x19, #4]
	tbnz	w8, #31, LBB0_24
; %bb.5:
	mov	w0, #0
	ubfx	w8, w8, #7, #1
	str	w8, [x19, #4]
	b	LBB0_26
LBB0_6:
Lloh4:
	adrp	x8, _BRIDGE_SN9C105@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BRIDGE_SN9C105@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _BRIDGE_SN9C120@GOTPAGE
Lloh8:
	ldr	x9, [x9, _BRIDGE_SN9C120@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_18
LBB0_7:
	mov	x0, x20
	mov	w1, #5
	b	LBB0_19
LBB0_8:
	mov	x0, x20
	mov	w1, #0
	b	LBB0_12
LBB0_9:
	mov	x0, x20
	mov	w1, #16
	bl	_sn9c102_i2c_read
	str	w0, [x19, #4]
	tbnz	w0, #31, LBB0_24
; %bb.10:
	mov	w0, #0
	b	LBB0_26
LBB0_11:
	mov	x0, x20
	mov	w1, #12
LBB0_12:
	bl	_sn9c102_i2c_read
	mov	x8, x0
	str	w8, [x19, #4]
	tbnz	w8, #31, LBB0_24
; %bb.13:
	mov	w0, #0
	and	w8, w8, #0x3f
	str	w8, [x19, #4]
	b	LBB0_26
LBB0_14:
	mov	x0, x20
	mov	w1, #6
	b	LBB0_19
LBB0_15:
	mov	x0, x20
	mov	w1, #19
	bl	_sn9c102_i2c_read
	mov	x8, x0
	str	w8, [x19, #4]
	tbnz	w8, #31, LBB0_24
; %bb.16:
	mov	w0, #0
	and	w8, w8, #0x1
	str	w8, [x19, #4]
	b	LBB0_26
LBB0_17:
Lloh10:
	adrp	x8, _BRIDGE_SN9C105@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BRIDGE_SN9C105@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _BRIDGE_SN9C120@GOTPAGE
Lloh14:
	ldr	x9, [x9, _BRIDGE_SN9C120@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_7
LBB0_18:
	mov	x0, x20
	mov	w1, #7
LBB0_19:
	bl	_sn9c102_pread_reg
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #4]
	b	LBB0_26
LBB0_20:
	mov	x0, x20
	mov	w1, #20
	b	LBB0_22
LBB0_21:
	mov	x0, x20
	mov	w1, #45
LBB0_22:
	bl	_sn9c102_i2c_read
	mov	x8, x0
	str	w8, [x19, #4]
	tbnz	w8, #31, LBB0_24
; %bb.23:
	mov	w0, #0
	ubfx	w8, w8, #1, #1
	str	w8, [x19, #4]
	b	LBB0_26
LBB0_24:
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_26:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_20-LBB0_2)>>2
	.byte	(LBB0_21-LBB0_2)>>2
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_BRIDGE_SN9C105,4,2             ; @BRIDGE_SN9C105
	.comm	_BRIDGE_SN9C120,4,2             ; @BRIDGE_SN9C120
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ov7630_get_ctrl
.subsections_via_symbols
