	.file	"extr_fbtest.c_setmode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	setmode
	.type	setmode, @function
setmode:
.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
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	esi, DWORD PTR FBIOGET_VSCREENINFO[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	r13, rsp
	mov	rdx, r13
	call	ioctl@PLT
	test	eax, eax
	js	.L4
	mov	eax, DWORD PTR 4[r12]
	mov	rdx, QWORD PTR [rbx]
	mov	edi, ebp
	mov	esi, DWORD PTR FBIOPUT_VSCREENINFO[rip]
	mov	DWORD PTR 32[rsp], eax
	mov	DWORD PTR 28[rsp], eax
	mov	eax, DWORD PTR [r12]
	mov	QWORD PTR [rsp], rdx
	mov	rdx, QWORD PTR 8[rbx]
	mov	DWORD PTR 24[rsp], eax
	mov	DWORD PTR 20[rsp], eax
	mov	eax, DWORD PTR 16[rbx]
	mov	QWORD PTR 8[rsp], rdx
	mov	rdx, r13
	mov	DWORD PTR 16[rsp], eax
	call	ioctl@PLT
	sar	eax, 31
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L7
	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
.L4:
	.cfi_restore_state
	mov	eax, -2
	jmp	.L1
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	setmode, .-setmode
	.comm	FBIOPUT_VSCREENINFO,4,4
	.comm	FBIOGET_VSCREENINFO,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_fbtest.c_setmode.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	setmode
	.syntax unified
	.arm
	.fpu softvfp
	.type	setmode, %function
setmode:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L8
	sub	sp, sp, #44
	mov	r4, r1
	ldr	r1, [r3]
	ldr	r3, .L8+4
	mov	r5, r2
	mov	r2, sp
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	mov	r6, r0
	bl	ioctl
	cmp	r0, #0
	blt	.L4
	ldm	r5, {r3, ip}
	ldr	r1, .L8+8
	ldr	r7, [r4, #16]
	ldr	r5, [r4, #12]
	ldr	lr, [r4, #8]
	mov	r2, sp
	mov	r0, r6
	ldr	r1, [r1]
	str	ip, [sp, #32]
	str	ip, [sp, #28]
	str	r3, [sp, #24]
	str	r3, [sp, #20]
	str	r7, [sp, #16]
	ldm	r4, {r3, ip}
	str	r5, [sp, #12]
	stm	sp, {r3, ip, lr}
	bl	ioctl
	asr	r0, r0, #31
.L1:
	ldr	r3, .L8+4
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L4:
	mvn	r0, #1
	b	.L1
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	FBIOGET_VSCREENINFO
	.word	.LC0
	.word	FBIOPUT_VSCREENINFO
	.size	setmode, .-setmode
	.comm	FBIOPUT_VSCREENINFO,4,4
	.comm	FBIOGET_VSCREENINFO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
