	.file	"extr_omap_gfx.c_omap_gfx_frame.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"[video_omap]: mode set (resolution changed by core)\n"
	.align 8
.LC1:
	.string	"[video_omap]: mode set failed\n"
	.text
	.p2align 4
	.type	omap_gfx_frame, @function
omap_gfx_frame:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r15, QWORD PTR 64[rsp]
	test	rsi, rsi
	je	.L19
	mov	rbp, rdi
	mov	r13, rsi
	mov	ebx, edx
	mov	r14d, r9d
	cmp	edx, 4
	jbe	.L4
	mov	r12d, ecx
	cmp	ecx, 4
	jbe	.L4
	cmp	DWORD PTR [rdi], edx
	jne	.L5
	cmp	DWORD PTR 4[rdi], ecx
	je	.L4
.L5:
	lea	rdi, .LC0[rip]
	call	RARCH_LOG@PLT
	mov	edi, DWORD PTR 32[rbp]
	mov	edx, r12d
	mov	esi, ebx
	call	omapfb_set_mode@PLT
	test	rax, rax
	jne	.L21
	mov	DWORD PTR 0[rbp], ebx
	mov	DWORD PTR 4[rbp], r12d
.L4:
	mov	edi, DWORD PTR 32[rbp]
	call	omapfb_prepare@PLT
	mov	edx, DWORD PTR 4[rbp]
	mov	edi, DWORD PTR 32[rbp]
	mov	ecx, r14d
	mov	rsi, r13
	call	omapfb_blit_frame@PLT
	cmp	QWORD PTR 24[rbp], 0
	jne	.L22
	test	r15, r15
	je	.L19
.L23:
	mov	rsi, r15
	mov	rdi, rbp
	call	omap_render_msg@PLT
.L19:
	mov	eax, 1
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	ecx, DWORD PTR 20[rbp]
	mov	edx, DWORD PTR 16[rbp]
	mov	rsi, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR 32[rbp]
	call	omapfb_blit_frame@PLT
	test	r15, r15
	jne	.L23
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rdi, .LC1[rip]
	call	RARCH_ERR@PLT
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	omap_gfx_frame, .-omap_gfx_frame
	.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_omap_gfx.c_omap_gfx_frame.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"[video_omap]: mode set (resolution changed by core)"
	.ascii	"\012\000"
	.align	2
.LC1:
	.ascii	"[video_omap]: mode set failed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	omap_gfx_frame, %function
omap_gfx_frame:
	@ args = 16, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r8, r1, #0
	ldr	r7, [sp, #32]
	beq	.L19
	cmp	r2, #4
	cmphi	r3, #4
	mov	r4, r0
	mov	r5, r2
	mov	r6, r3
	bls	.L4
	ldr	r3, [r0]
	cmp	r3, r2
	bne	.L5
	ldr	r3, [r0, #4]
	cmp	r3, r6
	beq	.L4
.L5:
	ldr	r0, .L24
	bl	RARCH_LOG
	mov	r2, r6
	mov	r1, r5
	ldr	r0, [r4, #24]
	bl	omapfb_set_mode
	cmp	r0, #0
	bne	.L21
	stm	r4, {r5, r6}
.L4:
	ldr	r0, [r4, #24]
	bl	omapfb_prepare
	ldr	r3, [sp, #28]
	mov	r1, r8
	ldr	r2, [r4, #4]
	ldr	r0, [r4, #24]
	bl	omapfb_blit_frame
	ldr	r3, [r4, #20]
	cmp	r3, #0
	bne	.L22
	cmp	r7, #0
	beq	.L19
.L23:
	mov	r1, r7
	mov	r0, r4
	bl	omap_render_msg
.L19:
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L22:
	add	r1, r4, #8
	ldr	r0, [r4, #24]
	ldm	r1, {r1, r2, r3}
	bl	omapfb_blit_frame
	cmp	r7, #0
	bne	.L23
	b	.L19
.L21:
	ldr	r0, .L24+4
	bl	RARCH_ERR
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L25:
	.align	2
.L24:
	.word	.LC0
	.word	.LC1
	.size	omap_gfx_frame, .-omap_gfx_frame
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
