	.file	"extr_sn9c20x.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	DWORD PTR 12[rdi], 128
	mov	eax, edx
	mov	DWORD PTR 4[rdi], edx
	sar	edx, 16
	sar	eax, 8
	mov	DWORD PTR 8[rdi], edx
	mov	DWORD PTR [rdi], eax
	cmp	eax, 132
	je	.L2
	jg	.L3
	add	eax, -128
	cmp	eax, 3
	ja	.L4
	mov	rdi, QWORD PTR sxga_mode[rip]
	mov	QWORD PTR 16[rbx], rdi
	call	ARRAY_SIZE@PLT
	mov	QWORD PTR 8[rbx], rax
.L7:
	mov	QWORD PTR 32[rbx], 0
	mov	esi, DWORD PTR qual_upd[rip]
	lea	rdi, 20[rbx]
	mov	QWORD PTR 24[rbx], 0
	mov	DWORD PTR 16[rbx], 16
	call	INIT_WORK@PLT
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	eax, 133
	jne	.L4
	mov	DWORD PTR 12[rdi], 129
.L4:
	mov	rdi, QWORD PTR vga_mode[rip]
	mov	QWORD PTR 16[rbx], rdi
	call	ARRAY_SIZE@PLT
	mov	QWORD PTR 8[rbx], rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, QWORD PTR mono_mode[rip]
	mov	QWORD PTR 16[rbx], rdi
	call	ARRAY_SIZE@PLT
	mov	QWORD PTR 8[rbx], rax
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	sd_config, .-sd_config
	.comm	vga_mode,8,8
	.comm	sxga_mode,8,8
	.comm	qual_upd,4,4
	.comm	mono_mode,8,8
	.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_sn9c20x.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
	mov	r3, #128
	ldr	r2, [r1]
	push	{r4, r5, r6, lr}
	str	r3, [r0, #12]
	asr	r3, r2, #8
	cmp	r3, #132
	mov	r4, r0
	str	r2, [r0, #4]
	str	r3, [r0]
	beq	.L2
	bgt	.L3
	sub	r3, r3, #128
	cmp	r3, #3
	bhi	.L4
	ldr	r3, .L11
	ldr	r0, [r3]
	str	r0, [r4, #8]
	bl	ARRAY_SIZE
	str	r0, [r4, #4]
.L7:
	mov	r5, #0
	mov	r2, #16
	ldr	r3, .L11+4
	str	r5, [r4, #28]
	ldr	r1, [r3]
	str	r5, [r4, #24]
	str	r2, [r4, #16]
	add	r0, r4, #20
	bl	INIT_WORK
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L3:
	cmp	r3, #133
	moveq	r3, #129
	streq	r3, [r0, #12]
.L4:
	ldr	r3, .L11+8
	ldr	r0, [r3]
	str	r0, [r4, #8]
	bl	ARRAY_SIZE
	str	r0, [r4, #4]
	b	.L7
.L2:
	ldr	r3, .L11+12
	ldr	r0, [r3]
	str	r0, [r4, #8]
	bl	ARRAY_SIZE
	str	r0, [r4, #4]
	b	.L7
.L12:
	.align	2
.L11:
	.word	sxga_mode
	.word	qual_upd
	.word	vga_mode
	.word	mono_mode
	.size	sd_config, .-sd_config
	.comm	vga_mode,4,4
	.comm	sxga_mode,4,4
	.comm	qual_upd,4,4
	.comm	mono_mode,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
