	.file	"extr_lxfb_core.c_lxfb_init_fbinfo.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Geode LX"
	.text
	.p2align 4
	.type	lxfb_init_fbinfo, @function
lxfb_init_fbinfo:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rsi, rdi
	mov	edi, 68
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	framebuffer_alloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	edi, DWORD PTR 132[rax]
	lea	rsi, .LC0[rip]
	mov	rbx, QWORD PTR 136[rax]
	call	strcpy@PLT
	add	rbx, 4
	xor	edx, edx
	lea	rdi, 56[r12]
	mov	eax, DWORD PTR FB_TYPE_PACKED_PIXELS[rip]
	mov	QWORD PTR 64[r12], rbx
	mov	esi, 256
	mov	QWORD PTR 120[r12], 0
	mov	DWORD PTR 128[r12], eax
	mov	eax, DWORD PTR FB_ACCEL_NONE[rip]
	mov	QWORD PTR 112[r12], 0
	mov	DWORD PTR 88[r12], eax
	mov	eax, DWORD PTR FB_ACTIVATE_NOW[rip]
	mov	QWORD PTR 104[r12], 0
	mov	DWORD PTR 40[r12], eax
	mov	eax, DWORD PTR FB_VMODE_NONINTERLACED[rip]
	mov	QWORD PTR 96[r12], 0
	mov	DWORD PTR 24[r12], eax
	lea	rax, lxfb_ops[rip]
	mov	QWORD PTR 80[r12], rax
	mov	eax, DWORD PTR FBINFO_DEFAULT[rip]
	mov	QWORD PTR 48[r12], 0
	mov	QWORD PTR 8[r12], -1
	mov	QWORD PTR 32[r12], 0
	mov	DWORD PTR 72[r12], eax
	mov	DWORD PTR [r12], -1
	call	fb_alloc_cmap@PLT
	test	rax, rax
	js	.L9
	mov	QWORD PTR 16[r12], 0
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, r12
	xor	r12d, r12d
	call	framebuffer_release@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	lxfb_init_fbinfo, .-lxfb_init_fbinfo
	.comm	lxfb_ops,4,4
	.comm	FB_VMODE_NONINTERLACED,4,4
	.comm	FB_TYPE_PACKED_PIXELS,4,4
	.comm	FB_ACTIVATE_NOW,4,4
	.comm	FB_ACCEL_NONE,4,4
	.comm	FBINFO_DEFAULT,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_lxfb_core.c_lxfb_init_fbinfo.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Geode LX\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lxfb_init_fbinfo, %function
lxfb_init_fbinfo:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r1, r0
	push	{r4, r5, r6, lr}
	mov	r0, #68
	bl	framebuffer_alloc
	subs	r4, r0, #0
	beq	.L1
	ldr	r1, .L10
	ldr	r0, [r4, #72]
	mov	r5, #0
	ldr	r6, [r4, #76]
	bl	strcpy
	mvn	r3, #0
	ldr	r1, .L10+4
	ldr	r2, .L10+8
	ldr	ip, [r1]
	ldr	r0, .L10+12
	ldr	r1, [r2]
	ldr	r2, .L10+16
	ldr	lr, [r0]
	ldr	r0, [r2]
	ldr	r2, .L10+20
	str	r1, [r4, #24]
	ldr	r2, [r2]
	ldr	r1, .L10+24
	add	r6, r6, #4
	str	r0, [r4, #16]
	str	r2, [r4, #40]
	str	r1, [r4, #44]
	mov	r2, r5
	mov	r1, #256
	str	r6, [r4, #36]
	str	lr, [r4, #68]
	str	ip, [r4, #48]
	str	r5, [r4, #64]
	str	r5, [r4, #60]
	str	r5, [r4, #56]
	str	r5, [r4, #52]
	str	r5, [r4, #28]
	str	r5, [r4, #20]
	str	r3, [r4, #4]
	str	r3, [r4, #8]
	str	r3, [r4]
	add	r0, r4, #32
	bl	fb_alloc_cmap
	cmp	r0, r5
	strge	r5, [r4, #12]
	blt	.L9
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L9:
	mov	r0, r4
	bl	framebuffer_release
	mov	r4, r5
	b	.L1
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	FB_ACCEL_NONE
	.word	FB_ACTIVATE_NOW
	.word	FB_TYPE_PACKED_PIXELS
	.word	FB_VMODE_NONINTERLACED
	.word	FBINFO_DEFAULT
	.word	lxfb_ops
	.size	lxfb_init_fbinfo, .-lxfb_init_fbinfo
	.comm	lxfb_ops,4,4
	.comm	FB_VMODE_NONINTERLACED,4,4
	.comm	FB_TYPE_PACKED_PIXELS,4,4
	.comm	FB_ACTIVATE_NOW,4,4
	.comm	FB_ACCEL_NONE,4,4
	.comm	FBINFO_DEFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
