	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RB_CheckVao                    ## -- Begin function RB_CheckVao
	.p2align	4, 0x90
_RB_CheckVao:                           ## @RB_CheckVao
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_glState@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_RB_EndSurface
	movq	_tess@GOTPCREL(%rip), %rax
	movl	24(%rax), %edi
	movl	16(%rax), %edx
	movl	20(%rax), %esi
	callq	_RB_BeginSurface
	movq	%rbx, %rdi
	callq	_R_BindVao
LBB0_2:
	movq	_tess@GOTPCREL(%rip), %rax
	cmpq	%rbx, 8(%rax)
	je	LBB0_4
## %bb.3:
	movq	_qfalse@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_glState,8,3                    ## @glState
	.comm	_tess,32,3                      ## @tess
	.comm	_qfalse,4,2                     ## @qfalse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RB_CheckVao                    ; -- Begin function RB_CheckVao
	.p2align	2
_RB_CheckVao:                           ; @RB_CheckVao
	.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, x0
Lloh0:
	adrp	x8, _glState@GOTPAGE
Lloh1:
	ldr	x8, [x8, _glState@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x20, _tess@GOTPAGE
Lloh4:
	ldr	x20, [x20, _tess@GOTPAGEOFF]
	cmp	x8, x0
	b.eq	LBB0_2
; %bb.1:
	bl	_RB_EndSurface
	ldp	w1, w0, [x20, #20]
	ldr	w2, [x20, #16]
	bl	_RB_BeginSurface
	mov	x0, x19
	bl	_R_BindVao
LBB0_2:
	ldr	x8, [x20, #8]
	cmp	x8, x19
	b.eq	LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _qfalse@GOTPAGE
Lloh6:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_glState,8,3                    ; @glState
	.comm	_tess,32,3                      ; @tess
	.comm	_qfalse,4,2                     ; @qfalse
.subsections_via_symbols
