	.file	"extr_atafb.c_check_default_par.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"default%d"
.LC1:
	.string	"can't set default video mode"
	.text
	.p2align 4
	.type	check_default_par, @function
check_default_par:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edi
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	rcx, QWORD PTR atafb_predefined[rip]
	mov	rdx, QWORD PTR FB_ACTIVATE_TEST[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR default_par[rip]
	mov	r12, rsp
	test	eax, eax
	jne	.L23
.L12:
	movsx	rax, ebx
	mov	esi, 1
	mov	rdi, r12
	lea	rax, [rax+rax*2]
	movdqu	xmm2, XMMWORD PTR -24[rcx+rax*8]
	mov	QWORD PTR 16[rsp], rdx
	movaps	XMMWORD PTR [rsp], xmm2
	call	do_fb_set_var@PLT
	test	rax, rax
	jne	.L24
	mov	DWORD PTR default_par[rip], ebx
.L8:
	test	ebx, ebx
	jne	.L9
	mov	ebx, 1
	lea	rbp, 30[rsp]
	lea	r13, .LC0[rip]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdx, QWORD PTR atafb_predefined[rip]
	cdqe
	mov	esi, 1
	mov	rdi, r12
	lea	rax, [rax+rax*2]
	lea	rax, [rdx+rax*8]
	movdqu	xmm0, XMMWORD PTR -24[rax]
	mov	rax, QWORD PTR FB_ACTIVATE_TEST[rip]
	movaps	XMMWORD PTR [rsp], xmm0
	mov	QWORD PTR 16[rsp], rax
	call	do_fb_set_var@PLT
	test	rax, rax
	je	.L9
	add	ebx, 1
	cmp	ebx, 10
	je	.L9
.L11:
	mov	edx, ebx
	mov	rsi, r13
	mov	rdi, rbp
	call	sprintf@PLT
	mov	rdi, rbp
	call	get_video_mode@PLT
	mov	DWORD PTR default_par[rip], eax
	test	eax, eax
	jne	.L10
	lea	rdi, .LC1[rip]
	call	panic@PLT
	mov	eax, DWORD PTR default_par[rip]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L23:
	lea	rax, [rax+rax*2]
	mov	esi, 1
	mov	rdi, r12
	movdqu	xmm1, XMMWORD PTR -24[rcx+rax*8]
	mov	QWORD PTR 16[rsp], rdx
	movaps	XMMWORD PTR [rsp], xmm1
	call	do_fb_set_var@PLT
	test	rax, rax
	jne	.L25
	mov	ecx, DWORD PTR default_par[rip]
	test	ecx, ecx
	je	.L4
.L9:
	mov	eax, DWORD PTR [rsp]
	imul	eax, DWORD PTR 4[rsp]
	imul	eax, DWORD PTR 8[rsp]
	mov	edx, eax
	lea	eax, 7[rax]
	test	edx, edx
	cmovns	eax, edx
	sar	eax, 3
	cdqe
	cmp	QWORD PTR default_mem_req[rip], rax
	jnb	.L1
	mov	QWORD PTR default_mem_req[rip], rax
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L26
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	mov	rcx, QWORD PTR atafb_predefined[rip]
	mov	rdx, QWORD PTR FB_ACTIVATE_TEST[rip]
	mov	DWORD PTR default_par[rip], 0
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L24:
	mov	ebx, DWORD PTR default_par[rip]
	jmp	.L8
.L26:
	call	__stack_chk_fail@PLT
.L4:
	mov	rcx, QWORD PTR atafb_predefined[rip]
	mov	rdx, QWORD PTR FB_ACTIVATE_TEST[rip]
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	check_default_par, .-check_default_par
	.comm	default_par,4,4
	.comm	default_mem_req,8,8
	.comm	atafb_predefined,8,8
	.comm	FB_ACTIVATE_TEST,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_atafb.c_check_default_par.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"default%d\000"
	.align	2
.LC1:
	.ascii	"can't set default video mode\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_default_par, %function
check_default_par:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r6, .L26
	ldr	r3, .L26+4
	ldr	r2, [r6]
	ldr	r7, .L26+8
	ldr	r8, .L26+12
	sub	sp, sp, #32
	cmp	r2, #0
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r5, r0
	moveq	r4, sp
	ldr	r3, [r7]
	ldr	ip, [r8]
	bne	.L23
.L12:
	sub	r2, r5, #-268435455
	add	r3, r3, r2, lsl #4
	ldm	r3, {r0, r1, r2, r3}
	stm	r4, {r0, r1, r2, r3}
	mov	r1, #1
	mov	r0, r4
	str	ip, [sp, #12]
	bl	do_fb_set_var
	cmp	r0, #0
	ldrne	r5, [r6]
	streq	r5, [r6]
	cmp	r5, #0
	bne	.L9
	mov	r5, #1
	ldr	r9, .L26+16
	ldr	r10, .L26+20
	b	.L11
.L10:
	ldr	r3, [r7]
	sub	r0, r0, #-268435455
	ldr	ip, [r8]
	add	r0, r3, r0, lsl #4
	ldm	r0, {r0, r1, r2, r3}
	stm	r4, {r0, r1, r2, r3}
	mov	r1, #1
	mov	r0, r4
	str	ip, [sp, #12]
	bl	do_fb_set_var
	cmp	r0, #0
	beq	.L9
	add	r5, r5, #1
	cmp	r5, #10
	beq	.L9
.L11:
	mov	r2, r5
	mov	r1, r9
	add	r0, sp, #16
	bl	sprintf
	add	r0, sp, #16
	bl	get_video_mode
	cmp	r0, #0
	str	r0, [r6]
	bne	.L10
	mov	r0, r10
	bl	panic
	ldr	r0, [r6]
	b	.L10
.L23:
	mov	r4, sp
	sub	r2, r2, #-268435455
	add	r3, r3, r2, lsl #4
	ldm	r3, {r0, r1, r2, r3}
	stm	r4, {r0, r1, r2, r3}
	mov	r0, r4
	mov	r1, #1
	str	ip, [sp, #12]
	bl	do_fb_set_var
	cmp	r0, #0
	bne	.L24
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L4
.L9:
	ldmib	sp, {r1, r2}
	ldr	r3, [sp]
	mul	r3, r1, r3
	mul	r3, r2, r3
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	ldr	r2, .L26+24
	asr	r0, r3, #3
	ldr	r1, [r2]
	cmp	r1, r3, asr #3
	ldr	r3, .L26+4
	strcc	r0, [r2]
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L25
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L24:
	mov	r2, #0
	ldr	r3, [r7]
	ldr	ip, [r8]
	str	r2, [r6]
	b	.L12
.L25:
	bl	__stack_chk_fail
.L4:
	ldr	r3, [r7]
	ldr	ip, [r8]
	b	.L12
.L27:
	.align	2
.L26:
	.word	default_par
	.word	.LC2
	.word	atafb_predefined
	.word	FB_ACTIVATE_TEST
	.word	.LC0
	.word	.LC1
	.word	default_mem_req
	.size	check_default_par, .-check_default_par
	.comm	default_par,4,4
	.comm	default_mem_req,4,4
	.comm	atafb_predefined,4,4
	.comm	FB_ACTIVATE_TEST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
