	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_GetCommandBuffer             ## -- Begin function R_GetCommandBuffer
	.p2align	4, 0x90
_R_GetCommandBuffer:                    ## @R_GetCommandBuffer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %r8d
	movq	_backEndData@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_tr@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rcx
	movslq	(%rcx), %rax
	movslq	%edi, %rsi
	addq	%rsi, %rax
	leal	4(%rax), %edx
	movq	_MAX_RENDER_COMMANDS@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	cmpl	%edi, %edx
	jle	LBB0_3
## %bb.1:
	addl	$-4, %edi
	cmpl	%r8d, %edi
	jge	LBB0_4
## %bb.2:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	_ERR_FATAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r8d, %edx
	callq	*(%rax)
LBB0_4:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_3:
	movl	%eax, (%rcx)
	addq	8(%rcx), %rax
	subq	%rsi, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_backEndData,8,3                ## @backEndData
	.comm	_tr,8,3                         ## @tr
	.comm	_MAX_RENDER_COMMANDS,4,2        ## @MAX_RENDER_COMMANDS
	.comm	_ri,8,3                         ## @ri
	.comm	_ERR_FATAL,4,2                  ## @ERR_FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"R_GetCommandBuffer: bad size %i"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_GetCommandBuffer             ; -- Begin function R_GetCommandBuffer
	.p2align	2
_R_GetCommandBuffer:                    ; @R_GetCommandBuffer
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x2, x0
Lloh0:
	adrp	x8, _backEndData@GOTPAGE
Lloh1:
	ldr	x8, [x8, _backEndData@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _tr@GOTPAGE
Lloh4:
	ldr	x9, [x9, _tr@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	ldrsw	x9, [x8]
	add	x9, x9, w0, sxtw
	add	w11, w9, #4
Lloh6:
	adrp	x10, _MAX_RENDER_COMMANDS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MAX_RENDER_COMMANDS@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w11, w10
	b.le	LBB0_4
; %bb.1:
	sub	w8, w10, #4
	cmp	w8, w2
	b.ge	LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _ri@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _ERR_FATAL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ERR_FATAL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x9]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	blr	x8
LBB0_3:
	mov	x0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	str	w9, [x8]
	ldr	x8, [x8, #8]
	add	x8, x8, x9
	sub	x0, x8, w2, sxtw
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_backEndData,8,3                ; @backEndData
	.comm	_tr,8,3                         ; @tr
	.comm	_MAX_RENDER_COMMANDS,4,2        ; @MAX_RENDER_COMMANDS
	.comm	_ri,8,3                         ; @ri
	.comm	_ERR_FATAL,4,2                  ; @ERR_FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"R_GetCommandBuffer: bad size %i"

.subsections_via_symbols
