	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VaoCache_CheckAdd              ## -- Begin function VaoCache_CheckAdd
	.p2align	4, 0x90
_VaoCache_CheckAdd:                     ## @VaoCache_CheckAdd
	.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
	shll	$2, %ecx
	shll	$2, %r8d
	movq	_vc@GOTPCREL(%rip), %r10
	movq	32(%r10), %r11
	movq	_vcq@GOTPCREL(%rip), %r9
	movslq	(%r9), %rax
	movslq	%ecx, %r14
	movq	(%r10), %rbx
	addq	%r14, %rbx
	addq	%rax, %rbx
	cmpq	%rbx, (%r11)
	jge	LBB0_2
## %bb.1:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, (%rsi)
	movl	(%rax), %esi
	movl	%esi, (%rdx)
	movl	(%rax), %eax
	movl	%eax, (%rdi)
LBB0_2:
	movslq	4(%r9), %rax
	movslq	%r8d, %rsi
	movq	8(%r10), %rbx
	addq	%rsi, %rbx
	addq	%rax, %rbx
	cmpq	%rbx, 8(%r11)
	jge	LBB0_4
## %bb.3:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, (%rdx)
	movl	(%rax), %eax
	movl	%eax, (%rdi)
LBB0_4:
	movq	8(%r9), %rax
	movq	16(%r10), %rbx
	addq	%rax, %rbx
	movq	_VAOCACHE_MAX_SURFACES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	jl	LBB0_6
## %bb.5:
	movq	_qtrue@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%ebx, (%rdx)
	movl	(%rcx), %ecx
	movl	%ecx, (%rdi)
LBB0_6:
	movq	24(%r10), %rcx
	movq	_VAOCACHE_MAX_BATCHES@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rcx
	jl	LBB0_8
## %bb.7:
	movq	_qtrue@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%ebx, (%rdx)
	movl	(%rcx), %ecx
	movl	%ecx, (%rdi)
LBB0_8:
	movq	_VAOCACHE_QUEUE_MAX_SURFACES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_10
## %bb.9:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
LBB0_10:
	movq	_VAOCACHE_QUEUE_MAX_VERTEXES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shlq	$2, %rax
	movslq	(%r9), %rcx
	addq	%r14, %rcx
	cmpq	%rcx, %rax
	jae	LBB0_12
## %bb.11:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
LBB0_12:
	movq	_VAOCACHE_QUEUE_MAX_INDEXES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shlq	$2, %rax
	movslq	4(%r9), %rcx
	addq	%rsi, %rcx
	cmpq	%rcx, %rax
	jae	LBB0_14
## %bb.13:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vc,40,3                        ## @vc
	.comm	_vcq,16,3                       ## @vcq
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_VAOCACHE_MAX_SURFACES,8,3      ## @VAOCACHE_MAX_SURFACES
	.comm	_VAOCACHE_MAX_BATCHES,8,3       ## @VAOCACHE_MAX_BATCHES
	.comm	_VAOCACHE_QUEUE_MAX_SURFACES,8,3 ## @VAOCACHE_QUEUE_MAX_SURFACES
	.comm	_VAOCACHE_QUEUE_MAX_VERTEXES,4,2 ## @VAOCACHE_QUEUE_MAX_VERTEXES
	.comm	_VAOCACHE_QUEUE_MAX_INDEXES,4,2 ## @VAOCACHE_QUEUE_MAX_INDEXES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VaoCache_CheckAdd              ; -- Begin function VaoCache_CheckAdd
	.p2align	2
_VaoCache_CheckAdd:                     ; @VaoCache_CheckAdd
	.cfi_startproc
; %bb.0:
	lsl	w11, w3, #2
Lloh0:
	adrp	x12, _vc@GOTPAGE
Lloh1:
	ldr	x12, [x12, _vc@GOTPAGEOFF]
	lsl	w8, w4, #2
	ldr	x13, [x12, #32]
	ldr	x9, [x13]
	ldr	x14, [x12]
Lloh2:
	adrp	x10, _vcq@GOTPAGE
Lloh3:
	ldr	x10, [x10, _vcq@GOTPAGEOFF]
	ldrsw	x15, [x10]
	add	x14, x14, w11, sxtw
	add	x14, x14, x15
	cmp	x9, x14
Lloh4:
	adrp	x9, _qtrue@GOTPAGE
Lloh5:
	ldr	x9, [x9, _qtrue@GOTPAGEOFF]
	b.ge	LBB0_2
; %bb.1:
	ldr	w14, [x9]
	str	w14, [x1]
	ldr	w14, [x9]
	str	w14, [x2]
	ldr	w14, [x9]
	str	w14, [x0]
LBB0_2:
	ldr	x13, [x13, #8]
	ldr	x14, [x12, #8]
	ldrsw	x15, [x10, #4]
	add	x14, x14, w8, sxtw
	add	x14, x14, x15
	cmp	x13, x14
	b.ge	LBB0_4
; %bb.3:
	ldr	w13, [x9]
	str	w13, [x2]
	ldr	w13, [x9]
	str	w13, [x0]
LBB0_4:
	ldr	x14, [x12, #16]
	ldr	x13, [x10, #8]
Lloh6:
	adrp	x15, _VAOCACHE_MAX_SURFACES@GOTPAGE
Lloh7:
	ldr	x15, [x15, _VAOCACHE_MAX_SURFACES@GOTPAGEOFF]
Lloh8:
	ldr	x15, [x15]
	add	x14, x13, x14
	cmp	x14, x15
	b.lt	LBB0_6
; %bb.5:
	ldr	w14, [x9]
	str	w14, [x2]
	ldr	w14, [x9]
	str	w14, [x0]
LBB0_6:
	ldr	x12, [x12, #24]
Lloh9:
	adrp	x14, _VAOCACHE_MAX_BATCHES@GOTPAGE
Lloh10:
	ldr	x14, [x14, _VAOCACHE_MAX_BATCHES@GOTPAGEOFF]
Lloh11:
	ldr	x14, [x14]
	cmp	x12, x14
	b.lt	LBB0_8
; %bb.7:
	ldr	w12, [x9]
	str	w12, [x2]
	ldr	w12, [x9]
	str	w12, [x0]
LBB0_8:
Lloh12:
	adrp	x12, _VAOCACHE_QUEUE_MAX_SURFACES@GOTPAGE
Lloh13:
	ldr	x12, [x12, _VAOCACHE_QUEUE_MAX_SURFACES@GOTPAGEOFF]
Lloh14:
	ldr	x12, [x12]
	cmp	x13, x12
	b.lt	LBB0_10
; %bb.9:
	ldr	w12, [x9]
	str	w12, [x0]
LBB0_10:
Lloh15:
	adrp	x12, _VAOCACHE_QUEUE_MAX_VERTEXES@GOTPAGE
Lloh16:
	ldr	x12, [x12, _VAOCACHE_QUEUE_MAX_VERTEXES@GOTPAGEOFF]
Lloh17:
	ldrsw	x12, [x12]
	ldrsw	x13, [x10]
	add	x11, x13, w11, sxtw
	cmp	x11, x12, lsl #2
	b.ls	LBB0_12
; %bb.11:
	ldr	w11, [x9]
	str	w11, [x0]
LBB0_12:
Lloh18:
	adrp	x11, _VAOCACHE_QUEUE_MAX_INDEXES@GOTPAGE
Lloh19:
	ldr	x11, [x11, _VAOCACHE_QUEUE_MAX_INDEXES@GOTPAGEOFF]
Lloh20:
	ldrsw	x11, [x11]
	ldrsw	x10, [x10, #4]
	add	x8, x10, w8, sxtw
	cmp	x8, x11, lsl #2
	b.ls	LBB0_14
; %bb.13:
	ldr	w8, [x9]
	str	w8, [x0]
LBB0_14:
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_vc,40,3                        ; @vc
	.comm	_vcq,16,3                       ; @vcq
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_VAOCACHE_MAX_SURFACES,8,3      ; @VAOCACHE_MAX_SURFACES
	.comm	_VAOCACHE_MAX_BATCHES,8,3       ; @VAOCACHE_MAX_BATCHES
	.comm	_VAOCACHE_QUEUE_MAX_SURFACES,8,3 ; @VAOCACHE_QUEUE_MAX_SURFACES
	.comm	_VAOCACHE_QUEUE_MAX_VERTEXES,4,2 ; @VAOCACHE_QUEUE_MAX_VERTEXES
	.comm	_VAOCACHE_QUEUE_MAX_INDEXES,4,2 ; @VAOCACHE_QUEUE_MAX_INDEXES
.subsections_via_symbols
