	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_core_bind_scratch_vbo       ## -- Begin function gl_core_bind_scratch_vbo
	.p2align	4, 0x90
_gl_core_bind_scratch_vbo:              ## @gl_core_bind_scratch_vbo
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movl	(%rcx,%rax,4), %esi
	testl	%esi, %esi
	jne	LBB0_2
## %bb.1:
	leaq	(%rcx,%rax,4), %rsi
	movl	$1, %edi
	callq	_glGenBuffers
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	(%rcx,%rax,4), %esi
LBB0_2:
	movq	_GL_ARRAY_BUFFER@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_glBindBuffer
	movl	(%r12), %edi
	movq	_GL_STREAM_DRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_glBufferData
	movq	(%rbx), %rax
	incq	%rax
	movq	%rax, (%rbx)
	movq	_GL_CORE_NUM_VBOS@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	cmovbq	%rax, %rdx
	movq	%rdx, (%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_ARRAY_BUFFER,4,2            ## @GL_ARRAY_BUFFER
	.comm	_GL_STREAM_DRAW,4,2             ## @GL_STREAM_DRAW
	.comm	_GL_CORE_NUM_VBOS,8,3           ## @GL_CORE_NUM_VBOS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_core_bind_scratch_vbo       ; -- Begin function gl_core_bind_scratch_vbo
	.p2align	2
_gl_core_bind_scratch_vbo:              ; @gl_core_bind_scratch_vbo
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldp	x9, x8, [x0]
	add	x8, x8, x9, lsl #2
	ldr	w1, [x8]
	cbnz	w1, LBB0_2
; %bb.1:
	mov	w0, #1
	mov	x1, x8
	bl	_glGenBuffers
	ldp	x9, x8, [x19]
	ldr	w1, [x8, x9, lsl #2]
LBB0_2:
Lloh0:
	adrp	x22, _GL_ARRAY_BUFFER@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GL_ARRAY_BUFFER@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_glBindBuffer
	ldr	w0, [x22]
Lloh2:
	adrp	x8, _GL_STREAM_DRAW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GL_STREAM_DRAW@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x1, x21
	mov	x2, x20
	bl	_glBufferData
	ldr	x8, [x19]
	add	x9, x8, #1
	str	x9, [x19]
Lloh5:
	adrp	x10, _GL_CORE_NUM_VBOS@GOTPAGE
Lloh6:
	ldr	x10, [x10, _GL_CORE_NUM_VBOS@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x9, x10
	csinc	x8, xzr, x8, hs
	str	x8, [x19]
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_ARRAY_BUFFER,4,2            ; @GL_ARRAY_BUFFER
	.comm	_GL_STREAM_DRAW,4,2             ; @GL_STREAM_DRAW
	.comm	_GL_CORE_NUM_VBOS,8,3           ; @GL_CORE_NUM_VBOS
.subsections_via_symbols
