	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_DrawElements                 ## -- Begin function R_DrawElements
	.p2align	4, 0x90
_R_DrawElements:                        ## @R_DrawElements
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %rcx
	movl	%edi, %esi
	movq	_r_primitives@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_qglLockArraysEXT@GOTPCREL(%rip), %rdx
	cmpq	$1, (%rdx)
	movl	(%rax), %edx
	movl	$2, %eax
	sbbl	$0, %eax
	testl	%edx, %edx
	cmovnel	%edx, %eax
	cmpl	$1, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$3, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$2, %eax
	jne	LBB0_7
## %bb.3:
	movq	_GL_TRIANGLES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GL_INDEX_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	popq	%rbp
	jmp	_qglDrawElements                ## TAILCALL
LBB0_4:
	movq	_qglArrayElement@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movq	_R_ArrayElementDiscrete@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edx
	movl	%esi, %edi
	movq	%rcx, %rsi
	popq	%rbp
	jmp	_R_DrawStripElements            ## TAILCALL
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_r_primitives,8,3               ## @r_primitives
	.comm	_qglLockArraysEXT,8,3           ## @qglLockArraysEXT
	.comm	_GL_TRIANGLES,4,2               ## @GL_TRIANGLES
	.comm	_GL_INDEX_TYPE,4,2              ## @GL_INDEX_TYPE
	.comm	_qglArrayElement,4,2            ## @qglArrayElement
	.comm	_R_ArrayElementDiscrete,4,2     ## @R_ArrayElementDiscrete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_DrawElements                 ; -- Begin function R_DrawElements
	.p2align	2
_R_DrawElements:                        ; @R_DrawElements
	.cfi_startproc
; %bb.0:
	mov	x3, x1
	mov	x1, x0
Lloh0:
	adrp	x8, _r_primitives@GOTPAGE
Lloh1:
	ldr	x8, [x8, _r_primitives@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _qglLockArraysEXT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _qglLockArraysEXT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, #0
	mov	w9, #1
	cinc	w9, w9, ne
	cmp	w8, #0
	csel	w8, w9, w8, eq
	cmp	w8, #1
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #3
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #2
	b.ne	LBB0_7
; %bb.3:
Lloh6:
	adrp	x8, _GL_TRIANGLES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GL_TRIANGLES@GOTPAGEOFF]
Lloh8:
	adrp	x9, _GL_INDEX_TYPE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _GL_INDEX_TYPE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	ldr	w2, [x9]
	b	_qglDrawElements
LBB0_4:
Lloh12:
	adrp	x8, _qglArrayElement@GOTPAGE
Lloh13:
	ldr	x8, [x8, _qglArrayElement@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _R_ArrayElementDiscrete@GOTPAGE
Lloh15:
	ldr	x8, [x8, _R_ArrayElementDiscrete@GOTPAGEOFF]
LBB0_6:
	ldr	w2, [x8]
	mov	x0, x1
	mov	x1, x3
	b	_R_DrawStripElements
LBB0_7:
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_r_primitives,8,3               ; @r_primitives
	.comm	_qglLockArraysEXT,8,3           ; @qglLockArraysEXT
	.comm	_GL_TRIANGLES,4,2               ; @GL_TRIANGLES
	.comm	_GL_INDEX_TYPE,4,2              ; @GL_INDEX_TYPE
	.comm	_qglArrayElement,4,2            ; @qglArrayElement
	.comm	_R_ArrayElementDiscrete,4,2     ; @R_ArrayElementDiscrete
.subsections_via_symbols
