	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5c73m3_s_ctrl
_s5c73m3_s_ctrl:                        ## @s5c73m3_s_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	%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	%rdi, %r13
	callq	_ctrl_to_sensor_sd
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_sensor_sd_to_s5c73m3
	movq	%rax, %r15
	movq	_s5c73m3_dbg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %r9d
	movl	12(%r13), %r8d
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%rbx, %rdx
	callq	_v4l2_dbg
	leaq	8(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	xorl	%r12d, %r12d
	cmpq	$0, (%r15)
	je	LBB0_22
## %bb.1:
	movq	_V4L2_CTRL_FLAG_INACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r13)
	je	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_22
LBB0_3:
	movl	8(%r13), %eax
	addl	$-128, %eax
	cmpl	$14, %eax
	ja	LBB0_22
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_19:
	movq	_COMM_ZOOM_STEP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	jmp	LBB0_20
LBB0_18:
	movq	_COMM_WDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpl	$0, (%r13)
	setne	%dl
LBB0_20:
	movq	%r15, %rdi
	callq	_s5c73m3_isp_command
	jmp	LBB0_21
LBB0_17:
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_s5c73m3_set_sharpness
	jmp	LBB0_21
LBB0_16:
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_s5c73m3_set_scene_program
	jmp	LBB0_21
LBB0_15:
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_s5c73m3_set_saturation
	jmp	LBB0_21
LBB0_14:
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_s5c73m3_set_power_line_freq
	jmp	LBB0_21
LBB0_13:
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_s5c73m3_set_jpeg_quality
	jmp	LBB0_21
LBB0_12:
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_s5c73m3_set_iso
	jmp	LBB0_21
LBB0_11:
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_s5c73m3_set_stabilization
	jmp	LBB0_21
LBB0_10:
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_s5c73m3_set_auto_focus
	jmp	LBB0_21
LBB0_9:
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_s5c73m3_set_exposure
	jmp	LBB0_21
LBB0_7:
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_s5c73m3_set_contrast
	jmp	LBB0_21
LBB0_8:
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_s5c73m3_set_colorfx
	jmp	LBB0_21
LBB0_6:
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_s5c73m3_set_white_balance
	jmp	LBB0_21
LBB0_5:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_s5c73m3_3a_lock
LBB0_21:
	movl	%eax, %r12d
LBB0_22:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_19
	.long	L0_0_set_18
	.long	L0_0_set_17
	.long	L0_0_set_16
	.long	L0_0_set_15
	.long	L0_0_set_14
	.long	L0_0_set_13
	.long	L0_0_set_12
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_s5c73m3_dbg,4,2                ## @s5c73m3_dbg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set_ctrl: %s, value: %d\n"

	.comm	_V4L2_CTRL_FLAG_INACTIVE,4,2    ## @V4L2_CTRL_FLAG_INACTIVE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_COMM_WDR,4,2                   ## @COMM_WDR
	.comm	_COMM_ZOOM_STEP,4,2             ## @COMM_ZOOM_STEP
	.no_dead_strip	_s5c73m3_s_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5c73m3_s_ctrl
_s5c73m3_s_ctrl:                        ; @s5c73m3_s_ctrl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x0
	bl	_ctrl_to_sensor_sd
	mov	x19, x0
	bl	_sensor_sd_to_s5c73m3
	mov	x20, x0
Lloh0:
	adrp	x8, _s5c73m3_dbg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _s5c73m3_dbg@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w4, [x21, #12]
	ldr	w5, [x21]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
	add	x19, x20, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	w8, [x21, #4]
Lloh5:
	adrp	x9, _V4L2_CTRL_FLAG_INACTIVE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _V4L2_CTRL_FLAG_INACTIVE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_23
LBB0_3:
	ldr	w8, [x21, #8]
	sub	w8, w8, #128
	cmp	w8, #14
	b.hi	LBB0_6
; %bb.4:
Lloh11:
	adrp	x9, lJTI0_0@PAGE
Lloh12:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
Lloh13:
	adrp	x8, _COMM_ZOOM_STEP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _COMM_ZOOM_STEP@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w2, [x21]
	b	LBB0_8
LBB0_6:
	mov	w20, #0
	b	LBB0_23
LBB0_7:
Lloh16:
	adrp	x8, _COMM_WDR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _COMM_WDR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w8, [x21]
	cmp	w8, #0
	cset	w2, ne
LBB0_8:
	mov	x0, x20
	bl	_s5c73m3_isp_command
	b	LBB0_22
LBB0_9:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_s5c73m3_set_sharpness
	b	LBB0_22
LBB0_10:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_s5c73m3_set_scene_program
	b	LBB0_22
LBB0_11:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_s5c73m3_set_saturation
	b	LBB0_22
LBB0_12:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_s5c73m3_set_power_line_freq
	b	LBB0_22
LBB0_13:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_s5c73m3_set_jpeg_quality
	b	LBB0_22
LBB0_14:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_s5c73m3_set_iso
	b	LBB0_22
LBB0_15:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_s5c73m3_set_stabilization
	b	LBB0_22
LBB0_16:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_s5c73m3_set_auto_focus
	b	LBB0_22
LBB0_17:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_s5c73m3_set_exposure
	b	LBB0_22
LBB0_18:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_s5c73m3_set_contrast
	b	LBB0_22
LBB0_19:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_s5c73m3_set_colorfx
	b	LBB0_22
LBB0_20:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_s5c73m3_set_white_balance
	b	LBB0_22
LBB0_21:
	mov	x0, x20
	mov	x1, x21
	bl	_s5c73m3_3a_lock
LBB0_22:
	mov	x20, x0
LBB0_23:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
	.byte	(LBB0_13-LBB0_5)>>2
	.byte	(LBB0_14-LBB0_5)>>2
	.byte	(LBB0_15-LBB0_5)>>2
	.byte	(LBB0_16-LBB0_5)>>2
	.byte	(LBB0_17-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_19-LBB0_5)>>2
	.byte	(LBB0_20-LBB0_5)>>2
	.byte	(LBB0_21-LBB0_5)>>2
                                        ; -- End function
	.comm	_s5c73m3_dbg,4,2                ; @s5c73m3_dbg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set_ctrl: %s, value: %d\n"

	.comm	_V4L2_CTRL_FLAG_INACTIVE,4,2    ; @V4L2_CTRL_FLAG_INACTIVE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_COMM_WDR,4,2                   ; @COMM_WDR
	.comm	_COMM_ZOOM_STEP,4,2             ; @COMM_ZOOM_STEP
	.no_dead_strip	_s5c73m3_s_ctrl
.subsections_via_symbols
