	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9v011_s_ctrl
_mt9v011_s_ctrl:                        ## @mt9v011_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_to_mt9v011
	movq	%rax, %r15
	movq	_mt9v011_qctrl@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	(%r12), %r8
	movq	(%rbx), %rcx
	addq	$16, %rcx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	-16(%rcx), %r8
	je	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$24, %rcx
	decq	%rax
	jne	LBB0_2
	jmp	LBB0_9
LBB0_3:
	movq	8(%r12), %r9
	cmpq	-8(%rcx), %r9
	jl	LBB0_5
## %bb.4:
	cmpq	(%rcx), %r9
	jle	LBB0_7
LBB0_5:
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_7:
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_v4l2_dbg
LBB0_9:
	movq	(%r12), %rax
	addq	$-128, %rax
	cmpq	$4, %rax
	ja	LBB0_16
## %bb.10:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_15:
	movq	8(%r12), %rax
	movq	%rax, 32(%r15)
	jmp	LBB0_14
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_20
LBB0_11:
	movq	8(%r12), %rax
	movq	%rax, 8(%r15)
	jmp	LBB0_18
LBB0_13:
	movq	8(%r12), %rax
	movq	%rax, 24(%r15)
LBB0_14:
	movq	%r14, %rdi
	callq	_set_read_mode
	jmp	LBB0_19
LBB0_17:
	movq	8(%r12), %rax
	movq	%rax, (%r15)
	jmp	LBB0_18
LBB0_12:
	movq	8(%r12), %rax
	movq	%rax, 16(%r15)
LBB0_18:
	movq	%r14, %rdi
	callq	_set_balance
LBB0_19:
	xorl	%eax, %eax
LBB0_20:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_11
	.long	L0_0_set_13
	.long	L0_0_set_17
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_mt9v011_qctrl,8,3              ## @mt9v011_qctrl
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"s_ctrl: id=%d, value=%d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mt9v011_s_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9v011_s_ctrl
_mt9v011_s_ctrl:                        ; @mt9v011_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	x20, x1
	mov	x19, x0
	bl	_to_mt9v011
	mov	x21, x0
Lloh0:
	adrp	x22, _mt9v011_qctrl@GOTPAGE
Lloh1:
	ldr	x22, [x22, _mt9v011_qctrl@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cbz	x0, LBB0_8
; %bb.1:
	ldr	x4, [x20]
	ldr	x8, [x22]
	add	x8, x8, #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x9, [x8, #-16]
	cmp	x4, x9
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #24
	subs	x0, x0, #1
	b.ne	LBB0_2
	b	LBB0_8
LBB0_4:
	ldr	x5, [x20, #8]
	ldur	x9, [x8, #-8]
	cmp	x5, x9
	b.lt	LBB0_6
; %bb.5:
	ldr	x8, [x8]
	cmp	x5, x8
	b.le	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _ERANGE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
	b	LBB0_12
LBB0_7:
Lloh4:
	adrp	x8, _debug@GOTPAGE
Lloh5:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x3, l_.str@PAGE
Lloh8:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
LBB0_8:
	ldr	x8, [x20]
	sub	x8, x8, #128
	cmp	x8, #4
	b.hi	LBB0_11
; %bb.9:
Lloh9:
	adrp	x9, lJTI0_0@PAGE
Lloh10:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_10
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_10:
	ldr	x8, [x20, #8]
	str	x8, [x21, #32]
	b	LBB0_15
LBB0_11:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_20
LBB0_13:
	ldr	x8, [x20, #8]
	str	x8, [x21, #8]
	b	LBB0_18
LBB0_14:
	ldr	x8, [x20, #8]
	str	x8, [x21, #24]
LBB0_15:
	mov	x0, x19
	bl	_set_read_mode
	b	LBB0_19
LBB0_16:
	ldr	x8, [x20, #8]
	str	x8, [x21]
	b	LBB0_18
LBB0_17:
	ldr	x8, [x20, #8]
	str	x8, [x21, #16]
LBB0_18:
	mov	x0, x19
	bl	_set_balance
LBB0_19:
	mov	w0, #0
LBB0_20:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_14-LBB0_10)>>2
	.byte	(LBB0_16-LBB0_10)>>2
	.byte	(LBB0_17-LBB0_10)>>2
                                        ; -- End function
	.comm	_mt9v011_qctrl,8,3              ; @mt9v011_qctrl
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"s_ctrl: id=%d, value=%d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mt9v011_s_ctrl
.subsections_via_symbols
