	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov7x10_get_control
_ov7x10_get_control:                    ## @ov7x10_get_control
	.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, %r15
	movq	%rdi, %r14
	callq	_i2c_get_clientdata
	movq	(%rax), %rax
	movb	$0, -25(%rbp)
	movl	(%r15), %ecx
	leal	-128(%rcx), %edx
	cmpl	$8, %edx
	ja	LBB0_3
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rdx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_2:
	movq	_REG_SAT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str(%rip), %rdx
	xorl	%ebx, %ebx
	movl	$2, %edi
	movq	%r14, %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_DDEBUG
	movq	_EPERM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_4:
	movb	3(%rax), %al
	jmp	LBB0_13
LBB0_5:
	movq	_REG_BLUE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_REG_EXP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-25(%rbp), %rdx
	movq	%r14, %rdi
	callq	_ov_read
	movl	%eax, %ebx
	movb	-25(%rbp), %al
	jmp	LBB0_14
LBB0_7:
	movq	_REG_CNT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_REG_BRT@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %esi
	leaq	-25(%rbp), %rdx
	movq	%r14, %rdi
	callq	_ov_read
	movl	%eax, %ebx
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_10:
	movb	(%rax), %al
	jmp	LBB0_13
LBB0_11:
	movb	2(%rax), %al
	jmp	LBB0_13
LBB0_12:
	movb	1(%rax), %al
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movb	%al, 4(%r15)
	movl	(%r15), %ecx
	movzbl	%al, %r8d
	leaq	L_.str.1(%rip), %rdx
	movl	$3, %edi
	movq	%r14, %rsi
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_DDEBUG
LBB0_15:
	movl	%ebx, %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_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-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_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_REG_CNT,4,2                    ## @REG_CNT
	.comm	_REG_BRT,4,2                    ## @REG_BRT
	.comm	_REG_SAT,4,2                    ## @REG_SAT
	.comm	_REG_BLUE,4,2                   ## @REG_BLUE
	.comm	_REG_EXP,4,2                    ## @REG_EXP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"control not supported: %d"

	.comm	_EPERM,4,2                      ## @EPERM
L_.str.1:                               ## @.str.1
	.asciz	"id=%d, arg=%d, rc=%d"

	.no_dead_strip	_ov7x10_get_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov7x10_get_control
_ov7x10_get_control:                    ; @ov7x10_get_control
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x19, x0
	bl	_i2c_get_clientdata
	ldr	x8, [x0]
	strb	wzr, [sp, #31]
	ldr	w3, [x20]
	sub	w9, w3, #128
	cmp	w9, #8
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh2:
	adrp	x8, _REG_SAT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REG_SAT@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
Lloh4:
	adrp	x2, l_.str@PAGE
Lloh5:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #2
	mov	x1, x19
	bl	_DDEBUG
Lloh6:
	adrp	x8, _EPERM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_4:
	mov	w21, #0
	ldrb	w8, [x8, #3]
	b	LBB0_13
LBB0_5:
Lloh9:
	adrp	x8, _REG_BLUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_BLUE@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh11:
	adrp	x8, _REG_EXP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_EXP@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, sp, #31
	mov	x0, x19
	bl	_ov_read
	mov	x21, x0
	ldrb	w8, [sp, #31]
	b	LBB0_13
LBB0_7:
Lloh14:
	adrp	x8, _REG_CNT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REG_CNT@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh16:
	adrp	x8, _REG_BRT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _REG_BRT@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x8]
	add	x2, sp, #31
	mov	x0, x19
	bl	_ov_read
	mov	x21, x0
	mov	w8, #0
	b	LBB0_13
LBB0_10:
	mov	w21, #0
	ldrb	w8, [x8]
	b	LBB0_13
LBB0_11:
	mov	w21, #0
	ldrb	w8, [x8, #2]
	b	LBB0_13
LBB0_12:
	mov	w21, #0
	ldrb	w8, [x8, #1]
LBB0_13:
	strb	w8, [x20, #4]
	ldr	w3, [x20]
	mov	w8, w8
	stp	x8, x21, [sp]
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #3
	mov	x1, x19
	bl	_DDEBUG
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	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_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
                                        ; -- End function
	.comm	_REG_CNT,4,2                    ; @REG_CNT
	.comm	_REG_BRT,4,2                    ; @REG_BRT
	.comm	_REG_SAT,4,2                    ; @REG_SAT
	.comm	_REG_BLUE,4,2                   ; @REG_BLUE
	.comm	_REG_EXP,4,2                    ; @REG_EXP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"control not supported: %d"

	.comm	_EPERM,4,2                      ; @EPERM
l_.str.1:                               ; @.str.1
	.asciz	"id=%d, arg=%d, rc=%d"

	.no_dead_strip	_ov7x10_get_control
.subsections_via_symbols
