	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rsi), %eax
	movl	%eax, %ecx
	sarl	$16, %ecx
	movl	%ecx, (%rdi)
	movl	%eax, %ecx
	sarl	$8, %ecx
	movl	%ecx, 4(%rdi)
	movl	%eax, 8(%rdi)
	movq	_SENSOR_ADCM1700@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_1
## %bb.2:
	movq	_cif_mode@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_vga_mode@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rdi
	leaq	16(%rbx), %r14
	movq	%rdi, 16(%rbx)
	callq	_ARRAY_SIZE
	movq	%rax, 8(%rbx)
	movl	$24, (%rbx)
	movl	$-1, 12(%rbx)
	movq	_QUALITY_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_qual_upd@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_INIT_WORK
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SENSOR_ADCM1700,4,2            ## @SENSOR_ADCM1700
	.comm	_cif_mode,8,3                   ## @cif_mode
	.comm	_vga_mode,8,3                   ## @vga_mode
	.comm	_QUALITY_DEF,4,2                ## @QUALITY_DEF
	.comm	_qual_upd,4,2                   ## @qual_upd
	.no_dead_strip	_sd_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sd_config
_sd_config:                             ; @sd_config
	.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, x0
	ldr	w8, [x1]
	asr	w9, w8, #16
	asr	w10, w8, #8
	stp	w9, w10, [x0]
Lloh0:
	adrp	x9, _SENSOR_ADCM1700@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SENSOR_ADCM1700@GOTPAGEOFF]
	str	w8, [x0, #8]
Lloh2:
	ldr	w8, [x9]
Lloh3:
	adrp	x9, _cif_mode@GOTPAGE
Lloh4:
	ldr	x9, [x9, _cif_mode@GOTPAGEOFF]
Lloh5:
	adrp	x11, _vga_mode@GOTPAGE
Lloh6:
	ldr	x11, [x11, _vga_mode@GOTPAGEOFF]
	cmp	w10, w8
	csel	x8, x9, x11, eq
	ldr	x0, [x8]
	mov	x20, x19
	str	x0, [x20, #16]!
	bl	_ARRAY_SIZE
	str	x0, [x19, #8]
	mov	w8, #24
	str	w8, [x19]
	mov	w8, #-1
Lloh7:
	adrp	x9, _QUALITY_DEF@GOTPAGE
Lloh8:
	ldr	x9, [x9, _QUALITY_DEF@GOTPAGEOFF]
	str	w8, [x19, #12]
Lloh9:
	ldr	w8, [x9]
	str	w8, [x19, #20]
Lloh10:
	adrp	x8, _qual_upd@GOTPAGE
Lloh11:
	ldr	x8, [x8, _qual_upd@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_INIT_WORK
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SENSOR_ADCM1700,4,2            ; @SENSOR_ADCM1700
	.comm	_cif_mode,8,3                   ; @cif_mode
	.comm	_vga_mode,8,3                   ; @vga_mode
	.comm	_QUALITY_DEF,4,2                ; @QUALITY_DEF
	.comm	_qual_upd,4,2                   ; @qual_upd
	.no_dead_strip	_sd_config
.subsections_via_symbols
