	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9m111_s_ctrl
_mt9m111_s_ctrl:                        ## @mt9m111_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_to_mt9m111
	movq	%rax, %r15
	movl	(%rbx), %esi
	movq	_mt9m111_ops@GOTPCREL(%rip), %rdi
	callq	_soc_camera_find_qctrl
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_9
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movl	4(%rbx), %esi
	movl	%esi, 4(%r15)
	movq	_MT9M111_RMB_MIRROR_ROWS@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	4(%rbx), %esi
	movl	%esi, (%r15)
	movq	_MT9M111_RMB_MIRROR_COLS@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt9m111_set_flip               ## TAILCALL
LBB0_6:
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt9m111_set_global_gain        ## TAILCALL
LBB0_7:
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt9m111_set_autoexposure       ## TAILCALL
LBB0_8:
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt9m111_set_autowhitebalance   ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-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
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_mt9m111_ops,4,2                ## @mt9m111_ops
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MT9M111_RMB_MIRROR_ROWS,4,2    ## @MT9M111_RMB_MIRROR_ROWS
	.comm	_MT9M111_RMB_MIRROR_COLS,4,2    ## @MT9M111_RMB_MIRROR_COLS
	.no_dead_strip	_mt9m111_s_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9m111_s_ctrl
_mt9m111_s_ctrl:                        ; @mt9m111_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
	bl	_v4l2_get_subdevdata
	mov	x19, x0
	bl	_to_mt9m111
	mov	x21, x0
	ldr	w1, [x20]
Lloh0:
	adrp	x0, _mt9m111_ops@GOTPAGE
Lloh1:
	ldr	x0, [x0, _mt9m111_ops@GOTPAGEOFF]
	bl	_soc_camera_find_qctrl
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_4
; %bb.2:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	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, [x20, #4]
	str	w1, [x21, #4]
Lloh4:
	adrp	x8, _MT9M111_RMB_MIRROR_ROWS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MT9M111_RMB_MIRROR_ROWS@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	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
LBB0_5:
	ldr	w1, [x20, #4]
	str	w1, [x21]
Lloh9:
	adrp	x8, _MT9M111_RMB_MIRROR_COLS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MT9M111_RMB_MIRROR_COLS@GOTPAGEOFF]
LBB0_6:
	ldr	w2, [x8]
	mov	x0, x19
	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
	b	_mt9m111_set_flip
LBB0_7:
	ldr	w1, [x20, #4]
	mov	x0, x19
	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
	b	_mt9m111_set_global_gain
LBB0_8:
	ldr	w1, [x20, #4]
	mov	x0, x19
	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
	b	_mt9m111_set_autoexposure
LBB0_9:
	ldr	w1, [x20, #4]
	mov	x0, x19
	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
	b	_mt9m111_set_autowhitebalance
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
                                        ; -- End function
	.comm	_mt9m111_ops,4,2                ; @mt9m111_ops
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MT9M111_RMB_MIRROR_ROWS,4,2    ; @MT9M111_RMB_MIRROR_ROWS
	.comm	_MT9M111_RMB_MIRROR_COLS,4,2    ; @MT9M111_RMB_MIRROR_COLS
	.no_dead_strip	_mt9m111_s_ctrl
.subsections_via_symbols
