	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rsi), %rax
	movq	%rax, (%rdi)
	movq	_SENSOR_PAS106@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_sif_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 16(%rbx)
	callq	_ARRAY_SIZE
	jmp	LBB0_3
LBB0_2:
	movq	_vga_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 16(%rbx)
	callq	_ARRAY_SIZE
	movq	_COLOR_IDX@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movl	%eax, (%rbx)
LBB0_3:
	movq	_BRIGHTNESS_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_CONTRAST_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_COLOR_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_AUTOGAIN_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	$-1, 8(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SENSOR_PAS106,8,3              ## @SENSOR_PAS106
	.comm	_sif_mode,8,3                   ## @sif_mode
	.comm	_vga_mode,8,3                   ## @vga_mode
	.comm	_COLOR_IDX,4,2                  ## @COLOR_IDX
	.comm	_BRIGHTNESS_DEF,4,2             ## @BRIGHTNESS_DEF
	.comm	_CONTRAST_DEF,4,2               ## @CONTRAST_DEF
	.comm	_COLOR_DEF,4,2                  ## @COLOR_DEF
	.comm	_AUTOGAIN_DEF,4,2               ## @AUTOGAIN_DEF
	.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	x8, [x1]
	str	x8, [x0]
Lloh0:
	adrp	x9, _SENSOR_PAS106@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SENSOR_PAS106@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _sif_mode@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sif_mode@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	str	x0, [x19, #16]
	bl	_ARRAY_SIZE
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _vga_mode@GOTPAGE
Lloh7:
	ldr	x8, [x8, _vga_mode@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	str	x0, [x19, #16]
	bl	_ARRAY_SIZE
Lloh9:
	adrp	x8, _COLOR_IDX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _COLOR_IDX@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	str	w8, [x19]
LBB0_3:
Lloh12:
	adrp	x8, _BRIGHTNESS_DEF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BRIGHTNESS_DEF@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh15:
	adrp	x8, _CONTRAST_DEF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CONTRAST_DEF@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _COLOR_DEF@GOTPAGE
Lloh19:
	ldr	x9, [x9, _COLOR_DEF@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _AUTOGAIN_DEF@GOTPAGE
Lloh22:
	ldr	x10, [x10, _AUTOGAIN_DEF@GOTPAGEOFF]
	stp	w9, w8, [x19, #16]
Lloh23:
	ldr	w8, [x10]
	mov	w9, #-1
	stp	w9, w8, [x19, #8]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SENSOR_PAS106,8,3              ; @SENSOR_PAS106
	.comm	_sif_mode,8,3                   ; @sif_mode
	.comm	_vga_mode,8,3                   ; @vga_mode
	.comm	_COLOR_IDX,4,2                  ; @COLOR_IDX
	.comm	_BRIGHTNESS_DEF,4,2             ; @BRIGHTNESS_DEF
	.comm	_CONTRAST_DEF,4,2               ; @CONTRAST_DEF
	.comm	_COLOR_DEF,4,2                  ; @COLOR_DEF
	.comm	_AUTOGAIN_DEF,4,2               ; @AUTOGAIN_DEF
	.no_dead_strip	_sd_config
.subsections_via_symbols
