	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_GetCommandBufferReserved     ## -- Begin function R_GetCommandBufferReserved
	.p2align	4, 0x90
_R_GetCommandBufferReserved:            ## @R_GetCommandBufferReserved
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	_backEndData@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$8, %esi
	callq	_PAD
	movl	%eax, %edx
	movslq	(%rbx), %rax
	movslq	%edx, %rcx
	addq	%rcx, %rax
	movslq	%r14d, %rsi
	leaq	(%rsi,%rax), %rdi
	addq	$4, %rdi
	movq	_MAX_RENDER_COMMANDS@GOTPCREL(%rip), %rsi
	movslq	(%rsi), %rsi
	cmpq	%rsi, %rdi
	jbe	LBB0_3
## %bb.1:
	addq	$-4, %rsi
	cmpq	%rcx, %rsi
	jae	LBB0_4
## %bb.2:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	_ERR_FATAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	callq	*(%rax)
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	movl	%eax, (%rbx)
	addq	8(%rbx), %rax
	subq	%rcx, %rax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_backEndData,8,3                ## @backEndData
	.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_GetCommandBufferReserved     ; -- Begin function R_GetCommandBufferReserved
	.p2align	2
_R_GetCommandBufferReserved:            ; @R_GetCommandBufferReserved
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, _backEndData@GOTPAGE
Lloh1:
	ldr	x8, [x8, _backEndData@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	mov	w1, #8
	bl	_PAD
	mov	x2, x0
	ldrsw	x8, [x20]
	add	x8, x8, w0, sxtw
	add	x9, x8, w19, sxtw
	add	x10, x9, #4
Lloh3:
	adrp	x9, _MAX_RENDER_COMMANDS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_RENDER_COMMANDS@GOTPAGEOFF]
Lloh5:
	ldrsw	x9, [x9]
	cmp	x10, x9
	b.ls	LBB0_4
; %bb.1:
	sub	x8, x9, #4
	cmp	x8, w2, sxtw
	b.hs	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _ri@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _ERR_FATAL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ERR_FATAL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x9]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	blr	x8
LBB0_3:
	mov	x0, #0
	b	LBB0_5
LBB0_4:
	str	w8, [x20]
	ldr	x9, [x20, #8]
	add	x8, x9, x8
	sub	x0, x8, w2, sxtw
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_backEndData,8,3                ; @backEndData
	.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
