	.file	"extr_carminefb.c_carmine_check_var.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	carmine_check_var, @function
carmine_check_var:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	call	carmine_find_mode@PLT
	test	eax, eax
	js	.L1
	cmp	QWORD PTR 104[rbx], 0
	jne	.L3
	cmp	QWORD PTR 96[rbx], 0
	jne	.L3
	cmp	QWORD PTR 88[rbx], 0
	jne	.L3
	mov	eax, DWORD PTR 80[rbx]
	mov	DWORD PTR [rbx], 32
	mov	QWORD PTR 16[rbx], 0
	mov	DWORD PTR 84[rbx], eax
	mov	eax, DWORD PTR 72[rbx]
	mov	QWORD PTR 32[rbx], 0
	mov	DWORD PTR 76[rbx], eax
	movabs	rax, 34359738392
	mov	QWORD PTR 8[rbx], rax
	sub	rax, 24
	mov	QWORD PTR 24[rbx], rax
	add	rax, 8
	mov	QWORD PTR 48[rbx], 0
	mov	QWORD PTR 64[rbx], 0
	mov	QWORD PTR 40[rbx], rax
	add	rax, 8
	mov	QWORD PTR 56[rbx], rax
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	carmine_check_var, .-carmine_check_var
	.comm	EINVAL,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_carminefb.c_carmine_check_var.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	carmine_check_var, %function
carmine_check_var:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	carmine_find_mode
	cmp	r0, #0
	poplt	{r4, pc}
	ldr	r3, [r4, #76]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [r4, #72]
	cmp	r3, #0
	bne	.L3
	ldr	r0, [r4, #68]
	cmp	r0, #0
	bne	.L3
	mov	r1, #32
	mov	r2, #24
	mov	r3, #8
	mov	ip, #16
	str	r1, [r4]
	str	r2, [r4, #4]
	ldr	r1, [r4, #60]
	ldr	r2, [r4, #52]
	str	r0, [r4, #16]
	str	r0, [r4, #48]
	str	r0, [r4, #36]
	str	r0, [r4, #24]
	str	r0, [r4, #12]
	str	ip, [r4, #40]
	str	r3, [r4, #28]
	str	r3, [r4, #44]
	str	r3, [r4, #32]
	str	r3, [r4, #20]
	str	r3, [r4, #8]
	str	r1, [r4, #64]
	str	r2, [r4, #56]
	pop	{r4, pc}
.L3:
	ldr	r3, .L7
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L8:
	.align	2
.L7:
	.word	EINVAL
	.size	carmine_check_var, .-carmine_check_var
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
