	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rsi), %ebx
	movl	%ebx, %eax
	sarl	$8, %eax
	movl	%eax, (%rdi)
	movl	%ebx, 4(%rdi)
	movq	_AiptekMiniPenCam13@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jne	LBB0_6
## %bb.1:
	movq	%r14, %rdi
	movl	$32, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_reg_r
	movq	(%r14), %rax
	movl	(%rax), %ecx
	cmpl	$1, %ecx
	je	LBB0_5
## %bb.2:
	cmpl	$2, %ecx
	jne	LBB0_4
## %bb.3:
	movq	_BRIDGE_SPCA504B@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	$0, 4(%r14)
	xorl	%ebx, %ebx
LBB0_6:
	cmpl	$128, %eax
	je	LBB0_9
LBB0_7:
	cmpl	$129, %eax
	jne	LBB0_8
## %bb.11:
	movq	_vga_mode2@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_8:
	movq	_vga_mode@GOTPCREL(%rip), %rax
LBB0_12:
	movq	(%rax), %rdi
	movq	%rdi, 16(%r14)
	callq	_ARRAY_SIZE
	jmp	LBB0_13
LBB0_5:
	movq	%rax, %rbx
	shrq	$32, %rbx
	cmpl	$128, %eax
	jne	LBB0_7
LBB0_9:
	movq	_custom_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 16(%r14)
	movq	_MegaImageVI@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	callq	_ARRAY_SIZE
	cmpl	%r15d, %ebx
	jne	LBB0_13
## %bb.10:
	decq	%rax
LBB0_13:
	movq	%rax, 8(%r14)
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
	.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
	.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	ldr	w20, [x1]
	asr	w8, w20, #8
	stp	w8, w20, [x0]
Lloh0:
	adrp	x9, _AiptekMiniPenCam13@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AiptekMiniPenCam13@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w20, w9
	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_12
; %bb.2:
	cmp	w9, #2
	b.ne	LBB0_15
; %bb.3:
	mov	w20, #0
Lloh3:
	adrp	x8, _BRIDGE_SPCA504B@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BRIDGE_SPCA504B@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w8, wzr, [x19]
LBB0_4:
	cmp	w8, #128
	b.eq	LBB0_13
LBB0_5:
	cmp	w8, #129
	b.ne	LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _vga_mode2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _vga_mode2@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _vga_mode@GOTPAGE
Lloh9:
	ldr	x8, [x8, _vga_mode@GOTPAGEOFF]
LBB0_8:
	ldr	x0, [x8]
	str	x0, [x19, #16]
	bl	_ARRAY_SIZE
	mov	x8, x0
LBB0_9:
	mov	w0, #0
LBB0_10:
	str	x8, [x19, #8]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
	lsr	x20, x8, #32
	cmp	w8, #128
	b.ne	LBB0_5
LBB0_13:
Lloh10:
	adrp	x8, _custom_mode@GOTPAGE
Lloh11:
	ldr	x8, [x8, _custom_mode@GOTPAGEOFF]
Lloh12:
	ldr	x0, [x8]
	str	x0, [x19, #16]
Lloh13:
	adrp	x8, _MegaImageVI@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MegaImageVI@GOTPAGEOFF]
Lloh15:
	ldr	w21, [x8]
	bl	_ARRAY_SIZE
	mov	x8, x0
	cmp	w20, w21
	b.ne	LBB0_9
; %bb.14:
	mov	w0, #0
	sub	x8, x8, #1
	b	LBB0_10
LBB0_15:
Lloh16:
	adrp	x8, _ENODEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.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
	.no_dead_strip	_sd_config
.subsections_via_symbols
