	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov965x_s_ctrl
_ov965x_s_ctrl:                         ## @ov965x_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_sd
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_to_ov965x
	movq	%rax, %r12
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r13), %r9d
	movl	8(%r13), %r8d
	movq	(%r12), %rax
	movq	%rax, (%rsp)
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%rbx, %rdx
	callq	_v4l2_dbg
	leaq	8(%r12), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpq	$0, (%r12)
	je	LBB0_1
## %bb.2:
	movl	(%r13), %eax
	addl	$-128, %eax
	cmpl	$8, %eax
	ja	LBB0_3
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_13:
	movl	4(%r13), %esi
	movq	%r12, %rdi
	callq	_ov965x_set_test_pattern
	jmp	LBB0_14
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_15
LBB0_3:
	negl	%r15d
	jmp	LBB0_15
LBB0_12:
	movl	4(%r13), %esi
	movq	%r12, %rdi
	callq	_ov965x_set_sharpness
	jmp	LBB0_14
LBB0_11:
	movl	4(%r13), %esi
	movq	%r12, %rdi
	callq	_ov965x_set_saturation
	jmp	LBB0_14
LBB0_10:
	movl	4(%r13), %esi
	movq	%r12, %rdi
	callq	_ov965x_set_banding_filter
	jmp	LBB0_14
LBB0_9:
	movq	%r12, %rdi
	callq	_ov965x_set_flip
	jmp	LBB0_14
LBB0_7:
	movl	4(%r13), %esi
	movq	%r12, %rdi
	callq	_ov965x_set_exposure
	jmp	LBB0_14
LBB0_6:
	movl	4(%r13), %esi
	movq	%r12, %rdi
	callq	_ov965x_set_brightness
	jmp	LBB0_14
LBB0_5:
	movl	4(%r13), %esi
	movq	%r12, %rdi
	callq	_ov965x_set_white_balance
	jmp	LBB0_14
LBB0_8:
	movl	4(%r13), %esi
	movq	%r12, %rdi
	callq	_ov965x_set_gain
LBB0_14:
	movl	%eax, %r15d
LBB0_15:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r15d, %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_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_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.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_6
	.long	L0_0_set_5
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"s_ctrl: %s, value: %d. power: %d\n"

	.no_dead_strip	_ov965x_s_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov965x_s_ctrl
_ov965x_s_ctrl:                         ; @ov965x_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_sd
	mov	x19, x0
	bl	_to_ov965x
	mov	x20, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _debug@GOTPAGE
Lloh4:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldp	w5, w4, [x21, #4]
	ldr	x6, [x0]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	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_4
; %bb.1:
	ldr	w8, [x21]
	sub	w8, w8, #128
	cmp	w8, #8
	b.hi	LBB0_5
; %bb.2:
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_ov965x_set_test_pattern
	b	LBB0_14
LBB0_4:
	mov	w20, #0
	b	LBB0_15
LBB0_5:
	neg	w20, w22
	b	LBB0_15
LBB0_6:
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_ov965x_set_sharpness
	b	LBB0_14
LBB0_7:
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_ov965x_set_saturation
	b	LBB0_14
LBB0_8:
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_ov965x_set_banding_filter
	b	LBB0_14
LBB0_9:
	mov	x0, x20
	bl	_ov965x_set_flip
	b	LBB0_14
LBB0_10:
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_ov965x_set_exposure
	b	LBB0_14
LBB0_11:
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_ov965x_set_brightness
	b	LBB0_14
LBB0_12:
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_ov965x_set_white_balance
	b	LBB0_14
LBB0_13:
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_ov965x_set_gain
LBB0_14:
	mov	x20, x0
LBB0_15:
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"s_ctrl: %s, value: %d. power: %d\n"

	.no_dead_strip	_ov965x_s_ctrl
.subsections_via_symbols
