	.file	"extr_tr_cmds.c_RE_EndFrame.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	RE_EndFrame
	.type	RE_EndFrame, @function
RE_EndFrame:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR tr[rip+4]
	test	eax, eax
	jne	.L21
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	edi, 4
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	xor	esi, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	R_GetCommandBufferReserved@PLT
	test	rax, rax
	je	.L1
	mov	edx, DWORD PTR RC_SWAP_BUFFERS[rip]
	mov	DWORD PTR [rax], edx
	mov	edi, DWORD PTR qtrue[rip]
	call	R_IssueRenderCommands@PLT
	xor	eax, eax
	call	R_InitNextFrame@PLT
	test	rbp, rbp
	je	.L5
	mov	eax, DWORD PTR tr[rip]
	mov	DWORD PTR 0[rbp], eax
.L5:
	mov	DWORD PTR tr[rip], 0
	test	rbx, rbx
	je	.L6
	mov	eax, DWORD PTR backEnd[rip]
	mov	DWORD PTR [rbx], eax
.L6:
	mov	DWORD PTR backEnd[rip], 0
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	RE_EndFrame, .-RE_EndFrame
	.comm	tr,8,8
	.comm	qtrue,4,4
	.comm	backEnd,4,4
	.comm	RC_SWAP_BUFFERS,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_tr_cmds.c_RE_EndFrame.c"
	.text
	.align	2
	.global	RE_EndFrame
	.syntax unified
	.arm
	.fpu softvfp
	.type	RE_EndFrame, %function
RE_EndFrame:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, .L18
	ldr	r3, [r4, #4]
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
	mov	r6, r0
	mov	r5, r1
	mov	r0, #4
	mov	r1, #0
	bl	R_GetCommandBufferReserved
	subs	r3, r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r1, .L18+4
	ldr	r2, .L18+8
	ldr	r1, [r1]
	str	r1, [r3]
	ldr	r0, [r2]
	bl	R_IssueRenderCommands
	bl	R_InitNextFrame
	cmp	r6, #0
	ldrne	r3, [r4]
	strne	r3, [r6]
	mov	r3, #0
	cmp	r5, r3
	str	r3, [r4]
	ldr	r3, .L18+12
	ldrne	r2, [r3]
	strne	r2, [r5]
	mov	r2, #0
	str	r2, [r3]
	pop	{r4, r5, r6, pc}
.L19:
	.align	2
.L18:
	.word	tr
	.word	RC_SWAP_BUFFERS
	.word	qtrue
	.word	backEnd
	.size	RE_EndFrame, .-RE_EndFrame
	.comm	tr,8,4
	.comm	qtrue,4,4
	.comm	backEnd,4,4
	.comm	RC_SWAP_BUFFERS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
