	.file	"extr_sunplus.c_sd_config.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sd_config, @function
sd_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	edx, DWORD PTR [rsi]
	mov	rbx, rdi
	mov	eax, edx
	mov	DWORD PTR 4[rdi], edx
	sar	eax, 8
	cmp	edx, DWORD PTR AiptekMiniPenCam13[rip]
	mov	DWORD PTR [rdi], eax
	je	.L14
.L2:
	cmp	eax, 128
	je	.L7
	cmp	eax, 129
	jne	.L15
	mov	rdi, QWORD PTR vga_mode2[rip]
	mov	QWORD PTR 16[rbx], rdi
.L12:
	call	ARRAY_SIZE@PLT
	mov	QWORD PTR 8[rbx], rax
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rdi, QWORD PTR vga_mode[rip]
	mov	QWORD PTR 16[rbx], rdi
	call	ARRAY_SIZE@PLT
	mov	QWORD PTR 8[rbx], rax
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, QWORD PTR custom_mode[rip]
	mov	eax, DWORD PTR MegaImageVI[rip]
	mov	QWORD PTR 16[rbx], rdi
	cmp	DWORD PTR 4[rbx], eax
	jne	.L12
	call	ARRAY_SIZE@PLT
	sub	rax, 1
	mov	QWORD PTR 8[rbx], rax
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	ecx, 1
	xor	edx, edx
	mov	esi, 32
	call	reg_r@PLT
	mov	rax, QWORD PTR [rbx]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	je	.L3
	cmp	eax, 2
	je	.L4
	mov	eax, DWORD PTR ENODEV[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	eax, DWORD PTR BRIDGE_SPCA504B[rip]
	mov	DWORD PTR 4[rbx], 0
	mov	DWORD PTR [rbx], eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR [rbx]
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	sd_config, .-sd_config
	.comm	vga_mode2,8,8
	.comm	vga_mode,8,8
	.comm	custom_mode,8,8
	.comm	MegaImageVI,4,4
	.comm	ENODEV,4,4
	.comm	BRIDGE_SPCA504B,4,4
	.comm	AiptekMiniPenCam13,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sunplus.c_sd_config.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sd_config, %function
sd_config:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L18
	ldr	r3, [r1]
	ldr	r1, [r2]
	asr	r2, r3, #8
	cmp	r3, r1
	push	{r4, lr}
	mov	r4, r0
	stm	r0, {r2, r3}
	beq	.L15
.L2:
	ldr	r3, [r4]
	cmp	r3, #128
	beq	.L5
	cmp	r3, #129
	bne	.L16
	ldr	r3, .L18+4
.L12:
	ldr	r0, [r3]
	str	r0, [r4, #8]
.L13:
	bl	ARRAY_SIZE
	mov	r3, r0
	mov	r0, #0
	str	r3, [r4, #4]
	pop	{r4, pc}
.L16:
	ldr	r3, .L18+8
	b	.L12
.L5:
	ldr	r3, .L18+12
	ldr	r1, .L18+16
	ldr	r3, [r3]
	ldr	r2, [r4, #4]
	ldr	r0, [r1]
	cmp	r2, r3
	str	r0, [r4, #8]
	bne	.L13
	bl	ARRAY_SIZE
	sub	r0, r0, #1
	str	r0, [r4, #4]
	mov	r0, #0
	pop	{r4, pc}
.L15:
	mov	r3, #1
	mov	r2, #0
	mov	r1, #32
	bl	reg_r
	ldr	r3, [r4]
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L2
	cmp	r3, #2
	beq	.L17
	ldr	r3, .L18+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L17:
	mov	r2, #0
	ldr	r3, .L18+24
	str	r2, [r4, #4]
	ldr	r3, [r3]
	str	r3, [r4]
	b	.L2
.L19:
	.align	2
.L18:
	.word	AiptekMiniPenCam13
	.word	vga_mode2
	.word	vga_mode
	.word	MegaImageVI
	.word	custom_mode
	.word	ENODEV
	.word	BRIDGE_SPCA504B
	.size	sd_config, .-sd_config
	.comm	vga_mode2,4,4
	.comm	vga_mode,4,4
	.comm	custom_mode,4,4
	.comm	MegaImageVI,4,4
	.comm	ENODEV,4,4
	.comm	BRIDGE_SPCA504B,4,4
	.comm	AiptekMiniPenCam13,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
