	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9m001_g_ctrl
_mt9m001_g_ctrl:                        ## @mt9m001_g_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, %r15
	callq	_v4l2_get_subdevdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_to_mt9m001
	movl	(%r15), %ecx
	xorl	%r14d, %r14d
	addl	$-128, %ecx
	cmpl	$3, %ecx
	ja	LBB0_9
## %bb.1:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	_MT9M001_READ_OPTIONS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_reg_read
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	shrl	$15, %eax
	andl	$1, %eax
	jmp	LBB0_8
LBB0_6:
	movl	4(%rax), %eax
	jmp	LBB0_8
LBB0_5:
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_7:
	movl	8(%rax), %eax
LBB0_8:
	movl	%eax, 4(%r15)
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_9
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_MT9M001_READ_OPTIONS2,4,2      ## @MT9M001_READ_OPTIONS2
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_mt9m001_g_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9m001_g_ctrl
_mt9m001_g_ctrl:                        ; @mt9m001_g_ctrl
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_v4l2_get_subdevdata
	mov	x20, x0
	bl	_to_mt9m001
	ldr	w9, [x19]
	sub	w9, w9, #128
	cmp	w9, #3
	b.hi	LBB0_4
; %bb.1:
	mov	x8, x0
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh2:
	adrp	x8, _MT9M001_READ_OPTIONS2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MT9M001_READ_OPTIONS2@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_reg_read
	tbnz	w0, #31, LBB0_10
; %bb.3:
	mov	x8, x0
	mov	w0, #0
	ubfx	w8, w8, #15, #1
	b	LBB0_8
LBB0_4:
	mov	w0, #0
	b	LBB0_9
LBB0_5:
	mov	w0, #0
	ldr	w8, [x8, #4]
	b	LBB0_8
LBB0_6:
	mov	w0, #0
	ldr	w8, [x8]
	b	LBB0_8
LBB0_7:
	mov	w0, #0
	ldr	w8, [x8, #8]
LBB0_8:
	str	w8, [x19, #4]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_MT9M001_READ_OPTIONS2,4,2      ; @MT9M001_READ_OPTIONS2
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_mt9m001_g_ctrl
.subsections_via_symbols
