	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RE_EndFrame                    ## -- Begin function RE_EndFrame
	.p2align	4, 0x90
_RE_EndFrame:                           ## @RE_EndFrame
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_tr@GOTPCREL(%rip), %r15
	cmpl	$0, 4(%r15)
	je	LBB0_7
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$4, %edi
	xorl	%esi, %esi
	callq	_R_GetCommandBufferReserved
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	_RC_SWAP_BUFFERS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_R_IssueRenderCommands
	xorl	%eax, %eax
	callq	_R_InitNextFrame
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movl	(%r15), %eax
	movl	%eax, (%rbx)
LBB0_4:
	movl	$0, (%r15)
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movq	_backEnd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_6:
	movq	_backEnd@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tr,8,2                         ## @tr
	.comm	_RC_SWAP_BUFFERS,4,2            ## @RC_SWAP_BUFFERS
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_backEnd,4,2                    ## @backEnd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RE_EndFrame                    ; -- Begin function RE_EndFrame
	.p2align	2
_RE_EndFrame:                           ; @RE_EndFrame
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x21, _tr@GOTPAGE
Lloh1:
	ldr	x21, [x21, _tr@GOTPAGEOFF]
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	w0, #4
	mov	w1, #0
	bl	_R_GetCommandBufferReserved
	cbz	x0, LBB0_7
; %bb.2:
Lloh2:
	adrp	x8, _RC_SWAP_BUFFERS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RC_SWAP_BUFFERS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0]
Lloh5:
	adrp	x8, _qtrue@GOTPAGE
Lloh6:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_R_IssueRenderCommands
	bl	_R_InitNextFrame
	cbz	x20, LBB0_4
; %bb.3:
	ldr	w8, [x21]
	str	w8, [x20]
LBB0_4:
	str	wzr, [x21]
Lloh8:
	adrp	x8, _backEnd@GOTPAGE
Lloh9:
	ldr	x8, [x8, _backEnd@GOTPAGEOFF]
	cbz	x19, LBB0_6
; %bb.5:
	ldr	w9, [x8]
	str	w9, [x19]
LBB0_6:
	str	wzr, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_tr,8,2                         ; @tr
	.comm	_RC_SWAP_BUFFERS,4,2            ; @RC_SWAP_BUFFERS
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_backEnd,4,2                    ; @backEnd
.subsections_via_symbols
