	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_config
_sd_config:                             ## @sd_config
	.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, %r14
	movq	%rdi, %r15
	movq	_MR97310A_GAIN_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_vga_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 16(%r15)
	callq	_ARRAY_SIZE
	movl	%eax, 12(%r15)
	movl	$0, (%r15)
	movq	%r15, %rdi
	callq	_zero_the_pointer
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movq	%r15, %rdi
	callq	_stream_start
	testl	%eax, %eax
	js	LBB0_8
## %bb.2:
	movq	%r15, %rdi
	movl	$7, %esi
	movl	$1, %edx
	callq	_cam_get_response16
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:
	movl	(%r14), %eax
	cmpl	$272, %eax                      ## imm = 0x110
	je	LBB0_5
## %bb.4:
	cmpl	$270, %eax                      ## imm = 0x10E
	jne	LBB0_11
LBB0_5:
	movq	_CAM_TYPE_CIF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	shrq	$32, %rax
	decl	%eax
	movl	%eax, 12(%r15)
	movq	(%r15), %rax
	movl	(%rax), %ecx
	cmpl	$2, %ecx
	je	LBB0_14
## %bb.6:
	cmpl	$3, %ecx
	jne	LBB0_16
## %bb.7:
	movl	$1, %edx
	jmp	LBB0_15
LBB0_8:
	movl	%eax, %ebx
	jmp	LBB0_45
LBB0_11:
	movq	_CAM_TYPE_VGA@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movq	$1, 16(%r15)
	movl	$0, (%r15)
	movq	(%r15), %rax
	movl	(%rax), %esi
	leal	-3(%rsi), %ecx
	cmpl	$2, %ecx
	jb	LBB0_19
## %bb.12:
	cmpl	$1, %esi
	jne	LBB0_17
## %bb.13:
	movl	$2, 16(%r15)
	jmp	LBB0_18
LBB0_14:
	xorl	%edx, %edx
LBB0_15:
	movl	%edx, 16(%r15)
	movq	_D_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_28
LBB0_16:
	movl	4(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_45
LBB0_17:
	leaq	L_.str.2(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_err
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_err
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_err
	movq	(%r15), %rax
LBB0_18:
	movl	(%rax), %esi
LBB0_19:
	cmpl	$3, %esi
	jne	LBB0_22
## %bb.20:
	cmpl	$80, 4(%rax)
	jne	LBB0_27
## %bb.21:
	movl	$1, 20(%r15)
	movl	(%rax), %esi
LBB0_22:
	cmpl	$4, %esi
	jne	LBB0_27
## %bb.23:
	movl	$1, (%r15)
	movq	(%r15), %rax
	movl	4(%rax), %esi
	cmpl	$32, %esi
	je	LBB0_27
## %bb.24:
	cmpl	$80, %esi
	jne	LBB0_26
## %bb.25:
	movl	$0, 16(%r15)
	movq	_D_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_PDEBUG
	jmp	LBB0_27
LBB0_26:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_err
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_err
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_err
LBB0_27:
	movq	_D_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r15), %edx
	leaq	L_.str.7(%rip), %rsi
LBB0_28:
	xorl	%eax, %eax
	callq	_PDEBUG
	movq	%r15, %rdi
	callq	_sd_stopN
	movq	_force_sensor_type@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$-1, %eax
	je	LBB0_30
## %bb.29:
	xorl	%edx, %edx
	testl	%eax, %eax
	setne	%dl
	movl	%edx, 16(%r15)
	movq	_D_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_PDEBUG
LBB0_30:
	movq	8(%r15), %rcx
	movq	_CAM_TYPE_CIF@GOTPCREL(%rip), %rdx
	movl	16(%r15), %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_33
## %bb.31:
	testl	%eax, %eax
	je	LBB0_36
## %bb.32:
	movq	_ARGUS_QC_BRIGHTNESS_IDX@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_CONTRAST_IDX@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	btsl	%eax, %edx
	movq	_SAKAR_CS_GAIN_IDX@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %edx
	movq	_MIN_CLOCKDIV_IDX@GOTPCREL(%rip), %rax
	jmp	LBB0_43
LBB0_33:
	cmpl	$2, %eax
	je	LBB0_37
## %bb.34:
	testl	%eax, %eax
	jne	LBB0_38
## %bb.35:
	movq	_NORM_BRIGHTNESS_IDX@GOTPCREL(%rip), %rax
	movb	(%rax), %dl
	movq	_ARGUS_QC_BRIGHTNESS_IDX@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	btsl	%edx, %eax
	movq	_EXPOSURE_IDX@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %eax
	movq	_GAIN_IDX@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %eax
	movq	_CONTRAST_IDX@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %eax
	movq	_SAKAR_CS_GAIN_IDX@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %eax
	movq	_MIN_CLOCKDIV_IDX@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %eax
	movl	%eax, 8(%r15)
	jmp	LBB0_44
LBB0_36:
	movq	_NORM_BRIGHTNESS_IDX@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_ARGUS_QC_BRIGHTNESS_IDX@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	btsl	%eax, %edx
	movq	_CONTRAST_IDX@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	jmp	LBB0_42
LBB0_37:
	movq	_ARGUS_QC_BRIGHTNESS_IDX@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movq	_NORM_BRIGHTNESS_IDX@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %eax
	movq	_GAIN_IDX@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %eax
	movq	_MIN_CLOCKDIV_IDX@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %eax
	movl	%eax, 8(%r15)
	movq	_MR97310A_CS_GAIN_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_44
LBB0_38:
	cmpl	$0, (%r15)
	je	LBB0_40
## %bb.39:
	movq	_NORM_BRIGHTNESS_IDX@GOTPCREL(%rip), %rax
	jmp	LBB0_41
LBB0_40:
	movq	_ARGUS_QC_BRIGHTNESS_IDX@GOTPCREL(%rip), %rax
LBB0_41:
	movb	(%rax), %al
	movq	_CONTRAST_IDX@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	shll	%cl, %edx
LBB0_42:
	btsl	%eax, %edx
	movq	_SAKAR_CS_GAIN_IDX@GOTPCREL(%rip), %rax
LBB0_43:
	movb	(%rax), %al
	btsl	%eax, %edx
	movl	%edx, 8(%r15)
LBB0_44:
	movq	_MR97310A_BRIGHTNESS_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	_MR97310A_EXPOSURE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r15)
	movl	%r12d, 24(%r15)
	movq	_MR97310A_CONTRAST_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	_MR97310A_MIN_CLOCKDIV_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r15)
	xorl	%ebx, %ebx
LBB0_45:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MR97310A_GAIN_DEFAULT,4,2      ## @MR97310A_GAIN_DEFAULT
	.comm	_vga_mode,4,2                   ## @vga_mode
	.comm	_CAM_TYPE_CIF,8,3               ## @CAM_TYPE_CIF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown CIF Sensor id : %02x"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_D_PROBE,4,2                    ## @D_PROBE
L_.str.1:                               ## @.str.1
	.asciz	"MR97310A CIF camera detected, sensor: %d"

	.comm	_CAM_TYPE_VGA,8,3               ## @CAM_TYPE_VGA
L_.str.2:                               ## @.str.2
	.asciz	"Unknown VGA Sensor id Byte 0: %02x"

L_.str.3:                               ## @.str.3
	.asciz	"Defaults assumed, may not work"

L_.str.4:                               ## @.str.4
	.asciz	"Please report this"

L_.str.5:                               ## @.str.5
	.asciz	"sensor_type corrected to 0"

L_.str.6:                               ## @.str.6
	.asciz	"Unknown VGA Sensor id Byte 1: %02x"

L_.str.7:                               ## @.str.7
	.asciz	"MR97310A VGA camera detected, sensor: %d"

	.comm	_force_sensor_type,4,2          ## @force_sensor_type
L_.str.8:                               ## @.str.8
	.asciz	"Forcing sensor type to: %d"

	.comm	_NORM_BRIGHTNESS_IDX,4,2        ## @NORM_BRIGHTNESS_IDX
	.comm	_ARGUS_QC_BRIGHTNESS_IDX,4,2    ## @ARGUS_QC_BRIGHTNESS_IDX
	.comm	_CONTRAST_IDX,4,2               ## @CONTRAST_IDX
	.comm	_SAKAR_CS_GAIN_IDX,4,2          ## @SAKAR_CS_GAIN_IDX
	.comm	_MIN_CLOCKDIV_IDX,4,2           ## @MIN_CLOCKDIV_IDX
	.comm	_EXPOSURE_IDX,4,2               ## @EXPOSURE_IDX
	.comm	_GAIN_IDX,4,2                   ## @GAIN_IDX
	.comm	_MR97310A_CS_GAIN_DEFAULT,4,2   ## @MR97310A_CS_GAIN_DEFAULT
	.comm	_MR97310A_BRIGHTNESS_DEFAULT,4,2 ## @MR97310A_BRIGHTNESS_DEFAULT
	.comm	_MR97310A_EXPOSURE_DEFAULT,4,2  ## @MR97310A_EXPOSURE_DEFAULT
	.comm	_MR97310A_CONTRAST_DEFAULT,4,2  ## @MR97310A_CONTRAST_DEFAULT
	.comm	_MR97310A_MIN_CLOCKDIV_DEFAULT,4,2 ## @MR97310A_MIN_CLOCKDIV_DEFAULT
	.no_dead_strip	_sd_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function sd_config
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_sd_config:                             ; @sd_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _MR97310A_GAIN_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MR97310A_GAIN_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _vga_mode@GOTPAGE
Lloh4:
	ldr	x8, [x8, _vga_mode@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	str	w0, [x19, #16]
	bl	_ARRAY_SIZE
	str	w0, [x19, #12]
	str	wzr, [x19]
	mov	x0, x19
	bl	_zero_the_pointer
	tbnz	w0, #31, LBB0_43
; %bb.1:
	mov	x0, x19
	bl	_stream_start
	tbnz	w0, #31, LBB0_43
; %bb.2:
	mov	x0, x19
	mov	w1, #7
	mov	w2, #1
	bl	_cam_get_response16
	tbnz	w0, #31, LBB0_43
; %bb.3:
	ldr	w8, [x20]
Lloh6:
	adrp	x20, _CAM_TYPE_CIF@GOTPAGE
Lloh7:
	ldr	x20, [x20, _CAM_TYPE_CIF@GOTPAGEOFF]
	cmp	w8, #272
	b.eq	LBB0_5
; %bb.4:
	cmp	w8, #270
	b.ne	LBB0_8
LBB0_5:
	ldr	x8, [x20]
	str	x8, [x19, #8]
	lsr	x8, x8, #32
	sub	w8, w8, #1
	str	w8, [x19, #12]
	ldr	x8, [x19]
	ldr	w9, [x8]
	cmp	w9, #2
	b.eq	LBB0_11
; %bb.6:
	cmp	w9, #3
	b.ne	LBB0_13
; %bb.7:
	mov	w8, #1
	b	LBB0_12
LBB0_8:
Lloh8:
	adrp	x8, _CAM_TYPE_VGA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CAM_TYPE_VGA@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	str	wzr, [x19]
Lloh11:
	adrp	x8, lCPI0_0@PAGE
Lloh12:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19, #16]
	ldr	x8, [x19]
	ldr	w9, [x8]
	sub	w10, w9, #3
	cmp	w10, #2
	b.lo	LBB0_16
; %bb.9:
	cmp	w9, #1
	b.ne	LBB0_14
; %bb.10:
	mov	w9, #2
	str	w9, [x19, #16]
	b	LBB0_15
LBB0_11:
	mov	w8, #0
LBB0_12:
	str	w8, [x19, #16]
Lloh13:
	adrp	x9, _D_PROBE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _D_PROBE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_25
LBB0_13:
	ldr	w8, [x8, #4]
	str	x8, [sp]
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err
Lloh20:
	adrp	x8, _ENODEV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_43
LBB0_14:
	str	x9, [sp]
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_err
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_err
Lloh27:
	adrp	x0, l_.str.4@PAGE
Lloh28:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_err
	ldr	x8, [x19]
LBB0_15:
	ldr	w9, [x8]
LBB0_16:
Lloh29:
	adrp	x22, _D_PROBE@GOTPAGE
Lloh30:
	ldr	x22, [x22, _D_PROBE@GOTPAGEOFF]
	cmp	w9, #3
	b.ne	LBB0_19
; %bb.17:
	ldr	w9, [x8, #4]
	cmp	w9, #80
	b.ne	LBB0_24
; %bb.18:
	mov	w9, #1
	str	w9, [x19, #20]
	ldr	w9, [x8]
LBB0_19:
	cmp	w9, #4
	b.ne	LBB0_24
; %bb.20:
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x19]
	ldr	w8, [x8, #4]
	cmp	w8, #32
	b.eq	LBB0_24
; %bb.21:
	cmp	w8, #80
	b.ne	LBB0_23
; %bb.22:
	str	wzr, [x19, #16]
	ldr	w0, [x22]
Lloh31:
	adrp	x1, l_.str.5@PAGE
Lloh32:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_PDEBUG
	b	LBB0_24
LBB0_23:
	str	x8, [sp]
Lloh33:
	adrp	x0, l_.str.6@PAGE
Lloh34:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_err
Lloh35:
	adrp	x0, l_.str.3@PAGE
Lloh36:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_err
Lloh37:
	adrp	x0, l_.str.4@PAGE
Lloh38:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_err
LBB0_24:
	ldr	w0, [x22]
	ldr	w8, [x19, #16]
	str	x8, [sp]
Lloh39:
	adrp	x1, l_.str.7@PAGE
Lloh40:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_25:
	bl	_PDEBUG
	mov	x0, x19
	bl	_sd_stopN
Lloh41:
	adrp	x8, _force_sensor_type@GOTPAGE
Lloh42:
	ldr	x8, [x8, _force_sensor_type@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	cmn	w8, #1
	b.eq	LBB0_27
; %bb.26:
	cmp	w8, #0
	cset	w8, ne
	str	w8, [x19, #16]
Lloh44:
	adrp	x9, _D_PROBE@GOTPAGE
Lloh45:
	ldr	x9, [x9, _D_PROBE@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh47:
	adrp	x1, l_.str.8@PAGE
Lloh48:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_PDEBUG
LBB0_27:
	ldr	x9, [x19, #8]
	ldr	x10, [x20]
	ldr	w8, [x19, #16]
	cmp	x9, x10
	b.ne	LBB0_30
; %bb.28:
	cbz	w8, LBB0_34
; %bb.29:
Lloh49:
	adrp	x8, _ARGUS_QC_BRIGHTNESS_IDX@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ARGUS_QC_BRIGHTNESS_IDX@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
Lloh52:
	adrp	x10, _CONTRAST_IDX@GOTPAGE
Lloh53:
	ldr	x10, [x10, _CONTRAST_IDX@GOTPAGEOFF]
Lloh54:
	ldr	w10, [x10]
	lsl	w10, w9, w10
	orr	w8, w10, w8
	b	LBB0_33
LBB0_30:
	cmp	w8, #2
	b.eq	LBB0_35
; %bb.31:
	cbnz	w8, LBB0_36
; %bb.32:
Lloh55:
	adrp	x8, _NORM_BRIGHTNESS_IDX@GOTPAGE
Lloh56:
	ldr	x8, [x8, _NORM_BRIGHTNESS_IDX@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	mov	w9, #1
Lloh58:
	adrp	x10, _ARGUS_QC_BRIGHTNESS_IDX@GOTPAGE
Lloh59:
	ldr	x10, [x10, _ARGUS_QC_BRIGHTNESS_IDX@GOTPAGEOFF]
	lsl	w8, w9, w8
Lloh60:
	ldr	w10, [x10]
	lsl	w10, w9, w10
	orr	w8, w10, w8
Lloh61:
	adrp	x10, _EXPOSURE_IDX@GOTPAGE
Lloh62:
	ldr	x10, [x10, _EXPOSURE_IDX@GOTPAGEOFF]
Lloh63:
	ldr	w10, [x10]
	lsl	w10, w9, w10
	orr	w8, w8, w10
Lloh64:
	adrp	x10, _GAIN_IDX@GOTPAGE
Lloh65:
	ldr	x10, [x10, _GAIN_IDX@GOTPAGEOFF]
Lloh66:
	ldr	w10, [x10]
	lsl	w10, w9, w10
	orr	w8, w8, w10
Lloh67:
	adrp	x10, _CONTRAST_IDX@GOTPAGE
Lloh68:
	ldr	x10, [x10, _CONTRAST_IDX@GOTPAGEOFF]
Lloh69:
	ldr	w10, [x10]
	lsl	w10, w9, w10
	orr	w8, w8, w10
LBB0_33:
Lloh70:
	adrp	x10, _SAKAR_CS_GAIN_IDX@GOTPAGE
Lloh71:
	ldr	x10, [x10, _SAKAR_CS_GAIN_IDX@GOTPAGEOFF]
Lloh72:
	ldr	w10, [x10]
	lsl	w10, w9, w10
	orr	w8, w8, w10
Lloh73:
	adrp	x10, _MIN_CLOCKDIV_IDX@GOTPAGE
Lloh74:
	ldr	x10, [x10, _MIN_CLOCKDIV_IDX@GOTPAGEOFF]
	b	LBB0_41
LBB0_34:
Lloh75:
	adrp	x8, _NORM_BRIGHTNESS_IDX@GOTPAGE
Lloh76:
	ldr	x8, [x8, _NORM_BRIGHTNESS_IDX@GOTPAGEOFF]
Lloh77:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
Lloh78:
	adrp	x10, _ARGUS_QC_BRIGHTNESS_IDX@GOTPAGE
Lloh79:
	ldr	x10, [x10, _ARGUS_QC_BRIGHTNESS_IDX@GOTPAGEOFF]
Lloh80:
	ldr	w10, [x10]
	lsl	w10, w9, w10
	orr	w8, w10, w8
Lloh81:
	adrp	x10, _CONTRAST_IDX@GOTPAGE
Lloh82:
	ldr	x10, [x10, _CONTRAST_IDX@GOTPAGEOFF]
Lloh83:
	ldr	w10, [x10]
	lsl	w10, w9, w10
	orr	w8, w8, w10
	b	LBB0_40
LBB0_35:
Lloh84:
	adrp	x8, _NORM_BRIGHTNESS_IDX@GOTPAGE
Lloh85:
	ldr	x8, [x8, _NORM_BRIGHTNESS_IDX@GOTPAGEOFF]
Lloh86:
	ldr	w8, [x8]
	mov	w9, #1
Lloh87:
	adrp	x10, _ARGUS_QC_BRIGHTNESS_IDX@GOTPAGE
Lloh88:
	ldr	x10, [x10, _ARGUS_QC_BRIGHTNESS_IDX@GOTPAGEOFF]
	lsl	w8, w9, w8
Lloh89:
	ldr	w10, [x10]
	lsl	w10, w9, w10
	orr	w8, w10, w8
Lloh90:
	adrp	x10, _GAIN_IDX@GOTPAGE
Lloh91:
	ldr	x10, [x10, _GAIN_IDX@GOTPAGEOFF]
Lloh92:
	ldr	w10, [x10]
	lsl	w10, w9, w10
	orr	w8, w8, w10
Lloh93:
	adrp	x10, _MIN_CLOCKDIV_IDX@GOTPAGE
Lloh94:
	ldr	x10, [x10, _MIN_CLOCKDIV_IDX@GOTPAGEOFF]
Lloh95:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w8, w9
	str	w8, [x19, #8]
Lloh96:
	adrp	x8, _MR97310A_CS_GAIN_DEFAULT@GOTPAGE
Lloh97:
	ldr	x8, [x8, _MR97310A_CS_GAIN_DEFAULT@GOTPAGEOFF]
Lloh98:
	ldr	w21, [x8]
	b	LBB0_42
LBB0_36:
	ldr	w8, [x19]
	cbz	w8, LBB0_38
; %bb.37:
Lloh99:
	adrp	x8, _NORM_BRIGHTNESS_IDX@GOTPAGE
Lloh100:
	ldr	x8, [x8, _NORM_BRIGHTNESS_IDX@GOTPAGEOFF]
	b	LBB0_39
LBB0_38:
Lloh101:
	adrp	x8, _ARGUS_QC_BRIGHTNESS_IDX@GOTPAGE
Lloh102:
	ldr	x8, [x8, _ARGUS_QC_BRIGHTNESS_IDX@GOTPAGEOFF]
LBB0_39:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
Lloh103:
	adrp	x10, _CONTRAST_IDX@GOTPAGE
Lloh104:
	ldr	x10, [x10, _CONTRAST_IDX@GOTPAGEOFF]
Lloh105:
	ldr	w10, [x10]
	lsl	w10, w9, w10
	orr	w8, w10, w8
LBB0_40:
Lloh106:
	adrp	x10, _SAKAR_CS_GAIN_IDX@GOTPAGE
Lloh107:
	ldr	x10, [x10, _SAKAR_CS_GAIN_IDX@GOTPAGEOFF]
LBB0_41:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w8, w9
	str	w8, [x19, #8]
LBB0_42:
	mov	w0, #0
Lloh108:
	adrp	x8, _MR97310A_BRIGHTNESS_DEFAULT@GOTPAGE
Lloh109:
	ldr	x8, [x8, _MR97310A_BRIGHTNESS_DEFAULT@GOTPAGEOFF]
Lloh110:
	ldr	w8, [x8]
Lloh111:
	adrp	x9, _MR97310A_EXPOSURE_DEFAULT@GOTPAGE
Lloh112:
	ldr	x9, [x9, _MR97310A_EXPOSURE_DEFAULT@GOTPAGEOFF]
	str	w8, [x19, #40]
Lloh113:
	ldr	w8, [x9]
Lloh114:
	adrp	x9, _MR97310A_CONTRAST_DEFAULT@GOTPAGE
Lloh115:
	ldr	x9, [x9, _MR97310A_CONTRAST_DEFAULT@GOTPAGEOFF]
Lloh116:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
Lloh117:
	adrp	x8, _MR97310A_MIN_CLOCKDIV_DEFAULT@GOTPAGE
Lloh118:
	ldr	x8, [x8, _MR97310A_MIN_CLOCKDIV_DEFAULT@GOTPAGEOFF]
Lloh119:
	ldr	w8, [x8]
	stp	w21, w8, [x19, #24]
LBB0_43:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGot	Lloh99, Lloh100
	.loh AdrpLdrGot	Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGot	Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.cfi_endproc
                                        ; -- End function
	.comm	_MR97310A_GAIN_DEFAULT,4,2      ; @MR97310A_GAIN_DEFAULT
	.comm	_vga_mode,4,2                   ; @vga_mode
	.comm	_CAM_TYPE_CIF,8,3               ; @CAM_TYPE_CIF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown CIF Sensor id : %02x"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_D_PROBE,4,2                    ; @D_PROBE
l_.str.1:                               ; @.str.1
	.asciz	"MR97310A CIF camera detected, sensor: %d"

	.comm	_CAM_TYPE_VGA,8,3               ; @CAM_TYPE_VGA
l_.str.2:                               ; @.str.2
	.asciz	"Unknown VGA Sensor id Byte 0: %02x"

l_.str.3:                               ; @.str.3
	.asciz	"Defaults assumed, may not work"

l_.str.4:                               ; @.str.4
	.asciz	"Please report this"

l_.str.5:                               ; @.str.5
	.asciz	"sensor_type corrected to 0"

l_.str.6:                               ; @.str.6
	.asciz	"Unknown VGA Sensor id Byte 1: %02x"

l_.str.7:                               ; @.str.7
	.asciz	"MR97310A VGA camera detected, sensor: %d"

	.comm	_force_sensor_type,4,2          ; @force_sensor_type
l_.str.8:                               ; @.str.8
	.asciz	"Forcing sensor type to: %d"

	.comm	_NORM_BRIGHTNESS_IDX,4,2        ; @NORM_BRIGHTNESS_IDX
	.comm	_ARGUS_QC_BRIGHTNESS_IDX,4,2    ; @ARGUS_QC_BRIGHTNESS_IDX
	.comm	_CONTRAST_IDX,4,2               ; @CONTRAST_IDX
	.comm	_SAKAR_CS_GAIN_IDX,4,2          ; @SAKAR_CS_GAIN_IDX
	.comm	_MIN_CLOCKDIV_IDX,4,2           ; @MIN_CLOCKDIV_IDX
	.comm	_EXPOSURE_IDX,4,2               ; @EXPOSURE_IDX
	.comm	_GAIN_IDX,4,2                   ; @GAIN_IDX
	.comm	_MR97310A_CS_GAIN_DEFAULT,4,2   ; @MR97310A_CS_GAIN_DEFAULT
	.comm	_MR97310A_BRIGHTNESS_DEFAULT,4,2 ; @MR97310A_BRIGHTNESS_DEFAULT
	.comm	_MR97310A_EXPOSURE_DEFAULT,4,2  ; @MR97310A_EXPOSURE_DEFAULT
	.comm	_MR97310A_CONTRAST_DEFAULT,4,2  ; @MR97310A_CONTRAST_DEFAULT
	.comm	_MR97310A_MIN_CLOCKDIV_DEFAULT,4,2 ; @MR97310A_MIN_CLOCKDIV_DEFAULT
	.no_dead_strip	_sd_config
.subsections_via_symbols
