	.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
	movl	(%rsi), %ecx
	movl	%ecx, %eax
	sarl	$8, %eax
	movl	%eax, (%rdi)
	movl	%ecx, 4(%rdi)
	movq	_AiptekMiniPenCam13@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	movl	$32, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_reg_r
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	cmpl	$1, %ecx
	je	LBB0_4
## %bb.2:
	cmpl	$2, %ecx
	jne	LBB0_6
## %bb.3:
	movq	_BRIDGE_SPCA504B@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	$0, 4(%rbx)
LBB0_4:
	cmpl	$129, %eax
	jne	LBB0_5
## %bb.7:
	movq	_vga_mode2@GOTPCREL(%rip), %rcx
	cmpl	$128, %eax
	je	LBB0_9
	jmp	LBB0_10
LBB0_5:
	movq	_vga_mode@GOTPCREL(%rip), %rcx
	cmpl	$128, %eax
	jne	LBB0_10
LBB0_9:
	movq	_custom_mode@GOTPCREL(%rip), %rcx
LBB0_10:
	movq	(%rcx), %rdi
	movq	%rdi, 16(%rbx)
	callq	_ARRAY_SIZE
	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)
	movq	_QUALITY_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_AiptekMiniPenCam13,4,2         ## @AiptekMiniPenCam13
	.comm	_BRIDGE_SPCA504B,4,2            ## @BRIDGE_SPCA504B
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_vga_mode,8,3                   ## @vga_mode
	.comm	_custom_mode,8,3                ## @custom_mode
	.comm	_MegaImageVI,4,2                ## @MegaImageVI
	.comm	_vga_mode2,8,3                  ## @vga_mode2
	.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
	.comm	_QUALITY_DEF,4,2                ## @QUALITY_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	w9, [x1]
	asr	w8, w9, #8
	stp	w8, w9, [x0]
Lloh0:
	adrp	x10, _AiptekMiniPenCam13@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AiptekMiniPenCam13@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x19
	mov	w1, #32
	mov	w2, #0
	mov	w3, #1
	bl	_reg_r
	ldr	x8, [x19]
	ldr	w9, [x8]
	cmp	w9, #1
	b.eq	LBB0_4
; %bb.2:
	cmp	w9, #2
	b.ne	LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _BRIDGE_SPCA504B@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BRIDGE_SPCA504B@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w8, wzr, [x19]
LBB0_4:
Lloh6:
	adrp	x9, _custom_mode@GOTPAGE
Lloh7:
	ldr	x9, [x9, _custom_mode@GOTPAGEOFF]
Lloh8:
	adrp	x10, _vga_mode2@GOTPAGE
Lloh9:
	ldr	x10, [x10, _vga_mode2@GOTPAGEOFF]
Lloh10:
	adrp	x11, _vga_mode@GOTPAGE
Lloh11:
	ldr	x11, [x11, _vga_mode@GOTPAGEOFF]
	cmp	w8, #129
	csel	x10, x10, x11, eq
	cmp	w8, #128
	csel	x8, x9, x10, eq
	ldr	x0, [x8]
	str	x0, [x19, #16]
	bl	_ARRAY_SIZE
	mov	w0, #0
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:
	adrp	x9, _COLOR_DEF@GOTPAGE
Lloh18:
	ldr	x9, [x9, _COLOR_DEF@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
Lloh21:
	adrp	x8, _AUTOGAIN_DEF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AUTOGAIN_DEF@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _QUALITY_DEF@GOTPAGE
Lloh25:
	ldr	x9, [x9, _QUALITY_DEF@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh27:
	adrp	x8, _ENODEV@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_AiptekMiniPenCam13,4,2         ; @AiptekMiniPenCam13
	.comm	_BRIDGE_SPCA504B,4,2            ; @BRIDGE_SPCA504B
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_vga_mode,8,3                   ; @vga_mode
	.comm	_custom_mode,8,3                ; @custom_mode
	.comm	_MegaImageVI,4,2                ; @MegaImageVI
	.comm	_vga_mode2,8,3                  ; @vga_mode2
	.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
	.comm	_QUALITY_DEF,4,2                ; @QUALITY_DEF
	.no_dead_strip	_sd_config
.subsections_via_symbols
