	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov6x30_set_control
_ov6x30_set_control:                    ## @ov6x30_set_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_i2c_get_clientdata
	movl	4(%r14), %ecx
	leal	-128(%rcx), %edx
	cmpl	$10, %edx
	ja	LBB0_3
## %bb.1:
	movq	(%rax), %r13
	movl	(%r14), %r15d
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	_REG_SAT@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_3:
	leaq	L_.str(%rip), %rdx
	xorl	%ebx, %ebx
	movl	$2, %edi
	movq	%r12, %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_DDEBUG
	movq	_EPERM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_4:
	xorl	%edx, %edx
	testl	%r15d, %r15d
	setne	%dl
	shll	$6, %edx
	movq	%r12, %rdi
	movl	$18, %esi
	movl	$64, %ecx
	callq	_ov_write_mask
	movl	%eax, %ebx
	movl	%r15d, 16(%r13)
	jmp	LBB0_15
LBB0_5:
	movq	_REG_RED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %r13d
	sarl	$8, %r13d
	movl	$255, %edx
	subl	%r13d, %edx
	movq	%r12, %rdi
	callq	_ov_write
	testl	%eax, %eax
	js	LBB0_14
## %bb.6:
	movq	_REG_BLUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	jmp	LBB0_13
LBB0_7:
	xorl	%edx, %edx
	cmpl	$60, %r15d
	sete	%dl
	shll	$7, %edx
	orl	$40, %edx
	movq	%r12, %rdi
	movl	$43, %esi
	callq	_ov_write
	testl	%eax, %eax
	js	LBB0_14
## %bb.8:
	xorl	%edx, %edx
	cmpl	$60, %r15d
	setne	%dl
	shll	$5, %edx
	orl	$132, %edx
	movq	%r12, %rdi
	movl	$42, %esi
	jmp	LBB0_13
LBB0_9:
	movq	_REG_EXP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	jmp	LBB0_13
LBB0_10:
	movq	_REG_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	sarl	$12, %edx
	movq	%r12, %rdi
	movl	$15, %ecx
	callq	_ov_write_mask
	jmp	LBB0_14
LBB0_11:
	movq	_REG_BRT@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %esi
	movl	%r15d, %edx
	sarl	$8, %edx
	movq	%r12, %rdi
LBB0_13:
	callq	_ov_write
LBB0_14:
	movl	%eax, %ebx
LBB0_15:
	movl	4(%r14), %ecx
	leaq	L_.str.1(%rip), %rdx
	movl	$3, %edi
	movq	%r12, %rsi
	movl	%r15d, %r8d
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_DDEBUG
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	xorl	%edx, %edx
	testl	%r15d, %r15d
	setne	%dl
	shll	$2, %edx
	movq	%r12, %rdi
	movl	$45, %esi
	movl	$4, %ecx
	callq	_ov_write_mask
	movl	%eax, %ebx
	movl	%r15d, (%r13)
	jmp	LBB0_15
LBB0_18:
	xorl	%edx, %edx
	testl	%r15d, %r15d
	setne	%dl
	shll	$5, %edx
	addl	$96, %edx
	movq	%r12, %rdi
	movl	$78, %esi
	movl	$224, %ecx
	callq	_ov_write_mask
	testl	%eax, %eax
	js	LBB0_14
## %bb.19:
	xorl	%edx, %edx
	testl	%r15d, %r15d
	setne	%dl
	shll	$3, %edx
	movq	%r12, %rdi
	movl	$41, %esi
	movl	$8, %ecx
	callq	_ov_write_mask
	testl	%eax, %eax
	js	LBB0_14
## %bb.20:
	xorl	%edx, %edx
	testl	%r15d, %r15d
	setne	%dl
	addl	%edx, %edx
	movq	%r12, %rdi
	movl	$40, %esi
	movl	$2, %ecx
	callq	_ov_write_mask
	movl	%eax, %ebx
	movl	%r15d, 12(%r13)
	jmp	LBB0_15
LBB0_21:
	xorl	%edx, %edx
	testl	%r15d, %r15d
	sete	%dl
	shll	$4, %edx
	movq	%r12, %rdi
	movl	$40, %esi
	movl	$16, %ecx
	callq	_ov_write_mask
	movl	%eax, %ebx
	movl	%r15d, 8(%r13)
	jmp	LBB0_15
LBB0_22:
	xorl	%edx, %edx
	testl	%r15d, %r15d
	setne	%dl
	shll	$4, %edx
	movq	%r12, %rdi
	movl	$45, %esi
	movl	$16, %ecx
	callq	_ov_write_mask
	movl	%eax, %ebx
	movl	%r15d, 4(%r13)
	jmp	LBB0_15
	.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_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_17
	.long	L0_0_set_18
	.long	L0_0_set_21
	.long	L0_0_set_22
	.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_RED,4,2                    ## @REG_RED
	.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	_ov6x30_set_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov6x30_set_control
_ov6x30_set_control:                    ; @ov6x30_set_control
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	bl	_i2c_get_clientdata
	ldr	w3, [x20, #4]
	sub	w8, w3, #128
	cmp	w8, #10
	b.hi	LBB0_3
; %bb.1:
	ldr	x23, [x0]
	ldr	w21, [x20]
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:
Lloh2:
	adrp	x8, _REG_SAT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REG_SAT@GOTPAGEOFF]
	b	LBB0_12
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	w22, w8
	b	LBB0_16
LBB0_4:
	cmp	w21, #0
	cset	w8, ne
	lsl	w2, w8, #6
	mov	x0, x19
	mov	w1, #18
	mov	w3, #64
	bl	_ov_write_mask
	mov	x22, x0
	str	w21, [x23, #16]
	b	LBB0_15
LBB0_5:
Lloh9:
	adrp	x8, _REG_RED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_RED@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	asr	w23, w21, #8
	mov	w8, #255
	sub	w2, w8, w23
	mov	x0, x19
	bl	_ov_write
	tbnz	w0, #31, LBB0_14
; %bb.6:
Lloh12:
	adrp	x8, _REG_BLUE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REG_BLUE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	b	LBB0_13
LBB0_7:
	mov	w8, #40
	mov	w9, #168
	cmp	w21, #60
	csel	w2, w9, w8, eq
	mov	x0, x19
	mov	w1, #43
	bl	_ov_write
	tbnz	w0, #31, LBB0_14
; %bb.8:
	mov	w8, #164
	mov	w9, #132
	cmp	w21, #60
	csel	w2, w9, w8, eq
	mov	x0, x19
	mov	w1, #42
	b	LBB0_13
LBB0_9:
Lloh15:
	adrp	x8, _REG_EXP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REG_EXP@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	b	LBB0_13
LBB0_10:
Lloh18:
	adrp	x8, _REG_CNT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REG_CNT@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	asr	w2, w21, #12
	mov	x0, x19
	mov	w3, #15
	bl	_ov_write_mask
	b	LBB0_14
LBB0_11:
Lloh21:
	adrp	x8, _REG_BRT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _REG_BRT@GOTPAGEOFF]
LBB0_12:
	ldr	w1, [x8]
	asr	w2, w21, #8
	mov	x0, x19
LBB0_13:
	bl	_ov_write
LBB0_14:
	mov	x22, x0
LBB0_15:
	ldr	w3, [x20, #4]
	stp	x21, x22, [sp]
Lloh23:
	adrp	x2, l_.str.1@PAGE
Lloh24:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #3
	mov	x1, x19
	bl	_DDEBUG
LBB0_16:
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_17:
	cmp	w21, #0
	cset	w8, ne
	lsl	w2, w8, #2
	mov	x0, x19
	mov	w1, #45
	mov	w3, #4
	bl	_ov_write_mask
	mov	x22, x0
	str	w21, [x23]
	b	LBB0_15
LBB0_18:
	mov	w8, #128
	mov	w9, #96
	cmp	w21, #0
	csel	w2, w9, w8, eq
	mov	x0, x19
	mov	w1, #78
	mov	w3, #224
	bl	_ov_write_mask
	tbnz	w0, #31, LBB0_14
; %bb.19:
	cmp	w21, #0
	cset	w8, ne
	lsl	w2, w8, #3
	mov	x0, x19
	mov	w1, #41
	mov	w3, #8
	bl	_ov_write_mask
	tbnz	w0, #31, LBB0_14
; %bb.20:
	cmp	w21, #0
	cset	w8, ne
	lsl	w2, w8, #1
	mov	x0, x19
	mov	w1, #40
	mov	w3, #2
	bl	_ov_write_mask
	mov	x22, x0
	str	w21, [x23, #12]
	b	LBB0_15
LBB0_21:
	cmp	w21, #0
	cset	w8, eq
	lsl	w2, w8, #4
	mov	x0, x19
	mov	w1, #40
	mov	w3, #16
	bl	_ov_write_mask
	mov	x22, x0
	str	w21, [x23, #8]
	b	LBB0_15
LBB0_22:
	cmp	w21, #0
	cset	w8, ne
	lsl	w2, w8, #4
	mov	x0, x19
	mov	w1, #45
	mov	w3, #16
	bl	_ov_write_mask
	mov	x22, x0
	str	w21, [x23, #4]
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.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_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_21-LBB0_2)>>2
	.byte	(LBB0_22-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_RED,4,2                    ; @REG_RED
	.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	_ov6x30_set_control
.subsections_via_symbols
