	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_arrays_or_elements
_draw_arrays_or_elements:               ## @draw_arrays_or_elements
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, %r12
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_GLXX_CONFIG_MAX_VERTEX_ATTRIBS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$5, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_vcos_assert
	movq	%rbx, %r8
	cmpq	$0, 24(%rbx)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.1:
	movq	%r15, %rdi
	callq	_IS_OPENGLES_11
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	cmpq	$0, 32(%r8)
	je	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	*24(%rcx)
	movq	-56(%rbp), %r8                  ## 8-byte Reload
LBB0_4:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	testl	%r15d, %r15d
	js	LBB0_5
## %bb.7:
	movq	_GLXX_CONFIG_MAX_VERTEX_ATTRIBS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.9:
	movq	(%r8), %rax
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,4), %rcx
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	addq	$40, %rdx
	cmpq	%rdx, %rcx
	je	LBB0_14
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 32(%rax,%rdx)
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	$0, (%rax,%rdx)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$1, %ebx
	cmpq	$0, 8(%rax,%rdx)
	jne	LBB0_13
	jmp	LBB0_44
LBB0_5:
	movq	_GL_INVALID_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_48
## %bb.6:
	movq	%r8, %rdi
	jmp	LBB0_38
LBB0_8:
	xorl	%ebx, %ebx
LBB0_14:
	movl	%ebx, -136(%rbp)
	testq	%r12, %r12
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	je	LBB0_15
## %bb.16:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	16(%r8), %r14
	movl	%r12d, %edi
	callq	_khrn_get_type_size
	imull	%r15d, %eax
	movl	%eax, %edi
	callq	_align_length
	testq	%r14, %r14
	je	LBB0_17
## %bb.20:
	testl	%ebx, %ebx
	je	LBB0_19
## %bb.21:
	movq	_glintFindMax_impl@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_GLINTFINDMAX_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_RPC_SIZEI
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_RPC_ENUM
	movl	%eax, %r14d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_RPC_UINT
	movl	%r15d, %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	-88(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movl	%r14d, %r8d
	movl	%eax, %r9d
	callq	_RPC_CALL3_RES
	movl	%eax, %edi
	callq	_RPC_INT_RES
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_22
LBB0_15:
	movslq	%r14d, %r14
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	leal	(%r15,%r14), %eax
	decl	%eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	je	LBB0_19
LBB0_22:
	movq	_GLXX_CONFIG_MAX_VERTEX_ATTRIBS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_46
## %bb.23:
	xorl	%r14d, %r14d
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_41:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	%r14, %rax
	shlq	$5, %rax
	movl	$0, (%r13,%rax)
LBB0_42:                                ##   in Loop: Header=BB0_24 Depth=1
	incq	%r14
	movq	_GLXX_CONFIG_MAX_VERTEX_ATTRIBS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r14
	jge	LBB0_35
LBB0_24:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_28 Depth 2
                                        ##       Child Loop BB0_33 Depth 3
	movq	(%r8), %rax
	leaq	(%r14,%r14,4), %rdx
	cmpq	$0, 32(%rax,%rdx,8)
	je	LBB0_41
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	cmpq	$0, (%rax,%rdx,8)
	jne	LBB0_41
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	%r14, %r15
	shlq	$5, %r15
	movl	$1, (%r13,%r15)
	movq	8(%rax,%rdx,8), %rbx
	movq	%rbx, 8(%r13,%r15)
	movl	24(%rax,%rdx,8), %esi
	movl	16(%rax,%rdx,8), %ecx
	movl	20(%rax,%rdx,8), %edx
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_calc_length
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	cltq
	addq	%rbx, %rax
	movq	%rax, 16(%r13,%r15)
	movl	$-1, 24(%r13,%r15)
	testq	%r14, %r14
	je	LBB0_42
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	%rbx, %r9
	leaq	(%r15,%r13), %r10
	addq	$16, %r10
	xorl	%r15d, %r15d
	movq	%r10, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_28
LBB0_39:                                ##   in Loop: Header=BB0_28 Depth=2
	addq	%r13, %rax
	addq	$16, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
	movq	%r9, %rbx
	callq	_vcos_assert
	movq	-120(%rbp), %r10                ## 8-byte Reload
	movq	%rbx, %r9
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	movl	%r15d, 8(%r10)
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_28 Depth=2
	incq	%r15
	cmpq	%r14, %r15
	je	LBB0_42
LBB0_28:                                ##   Parent Loop BB0_24 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_33 Depth 3
	movq	%r15, %rax
	shlq	$5, %rax
	cmpl	$0, (%r13,%rax)
	je	LBB0_40
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=2
	cmpl	$-1, 24(%r13,%rax)
	jne	LBB0_40
## %bb.30:                              ##   in Loop: Header=BB0_28 Depth=2
	movq	8(%r13,%rax), %rcx
	movq	16(%r13,%rax), %rdx
	cmpq	%rcx, %r9
	movq	%rcx, %rsi
	cmovbq	%r9, %rsi
	movq	(%r10), %rdi
	cmpq	%rdx, %rdi
	movq	%rdx, %r12
	cmovaq	%rdi, %r12
	movq	%r12, %rbx
	subq	%rsi, %rbx
	subq	%rcx, %rdi
	subq	%r9, %rdi
	addq	%rdx, %rdi
	cmpq	%rdi, %rbx
	jge	LBB0_40
## %bb.31:                              ##   in Loop: Header=BB0_28 Depth=2
	cmpq	%rcx, %r9
	jae	LBB0_39
## %bb.32:                              ##   in Loop: Header=BB0_28 Depth=2
	addq	%r13, %rax
	addq	$24, %rax
	movl	%r14d, %edx
	.p2align	4, 0x90
LBB0_33:                                ##   Parent Loop BB0_24 Depth=1
                                        ##     Parent Loop BB0_28 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movslq	%edx, %rcx
	shlq	$5, %rcx
	movl	24(%r13,%rcx), %edx
	cmpl	$-1, %edx
	jne	LBB0_33
## %bb.34:                              ##   in Loop: Header=BB0_28 Depth=2
	movq	%r12, 16(%r13,%rcx)
	movl	%r14d, (%rax)
	jmp	LBB0_40
LBB0_35:
	testl	%eax, %eax
	jle	LBB0_46
## %bb.36:
	leaq	8(%r8), %rsi
	movq	8(%r13), %rdx
	movl	16(%r13), %ecx
	subl	%edx, %ecx
	movq	_CACHE_SIG_ATTRIB_0@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_khrn_cache_lookup
	cmpl	$-1, %eax
	jne	LBB0_43
## %bb.37:
	movq	_GL_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_48
LBB0_38:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_glxx_set_error                 ## TAILCALL
LBB0_46:
	movq	_glintDrawElements_impl@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_GLINTDRAWELEMENTS_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_RPC_ENUM
	movl	%eax, %r12d
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_RPC_SIZEI
	movl	%eax, %r13d
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_RPC_ENUM
	movl	%eax, %ebx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_RPC_UINT
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	leaq	-136(%rbp), %r10
	movl	%r15d, %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	%r12d, %ecx
	movl	%r13d, %r8d
	movl	%ebx, %r9d
	pushq	$16
	jmp	LBB0_47
LBB0_17:
	movl	%r12d, %edi
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	callq	_khrn_get_type_size
	movl	%r15d, %edi
	movl	%eax, %esi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_find_max
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rdx
	movl	-88(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	callq	_khrn_cache_lookup
	movl	%eax, %r14d
	movq	_CACHE_ENTRY_T@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_data@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_offsetof
	addl	%r14d, %eax
	cltq
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	testl	%ebx, %ebx
	jne	LBB0_22
LBB0_19:
	movq	_glintDrawElements_impl@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_GLINTDRAWELEMENTS_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_RPC_ENUM
	movl	%eax, %r12d
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_RPC_SIZEI
	movl	%eax, %r13d
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_RPC_ENUM
	movl	%eax, %ebx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_RPC_UINT
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	leaq	-136(%rbp), %r10
	movl	%r15d, %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	%r12d, %ecx
	movl	%r13d, %r8d
	movl	%ebx, %r9d
	pushq	$4
LBB0_47:
	pushq	%r10
	pushq	%rax
	callq	_RPC_CALL5_IN_CTRL
	addq	$32, %rsp
LBB0_44:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_48
## %bb.45:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_43:
	callq	_draw_arrays_or_elements.cold.1
	jmp	LBB0_44
LBB0_48:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function draw_arrays_or_elements.cold.1
_draw_arrays_or_elements.cold.1:        ## @draw_arrays_or_elements.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_CACHE_ENTRY_T@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_data@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_offsetof
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_GLXX_CONFIG_MAX_VERTEX_ATTRIBS,4,2 ## @GLXX_CONFIG_MAX_VERTEX_ATTRIBS
	.comm	_GL_INVALID_VALUE,4,2           ## @GL_INVALID_VALUE
	.comm	_CACHE_ENTRY_T,4,2              ## @CACHE_ENTRY_T
	.comm	_data,4,2                       ## @data
	.comm	_glintFindMax_impl,4,2          ## @glintFindMax_impl
	.comm	_GLINTFINDMAX_ID,4,2            ## @GLINTFINDMAX_ID
	.comm	_CACHE_SIG_ATTRIB_0,8,3         ## @CACHE_SIG_ATTRIB_0
	.comm	_GL_OUT_OF_MEMORY,4,2           ## @GL_OUT_OF_MEMORY
	.comm	_glintDrawElements_impl,4,2     ## @glintDrawElements_impl
	.comm	_GLINTDRAWELEMENTS_ID,4,2       ## @GLINTDRAWELEMENTS_ID
	.no_dead_strip	_draw_arrays_or_elements
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_arrays_or_elements
_draw_arrays_or_elements:               ; @draw_arrays_or_elements
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #80
	mov	x26, x5
	mov	x20, x4
	mov	x22, x3
	mov	x25, x2
	mov	x21, x1
	mov	x28, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _GLXX_CONFIG_MAX_VERTEX_ATTRIBS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GLXX_CONFIG_MAX_VERTEX_ATTRIBS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #5
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x23, x9, x8
	mov	sp, x23
	cmp	x1, #0
	cset	w0, ne
	bl	_vcos_assert
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x0, x28
	bl	_IS_OPENGLES_11
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_4
LBB0_3:
	ldr	x8, [x21, #24]
	blr	x8
LBB0_4:
	tbnz	w22, #31, LBB0_12
; %bb.5:
Lloh8:
	adrp	x8, _GLXX_CONFIG_MAX_VERTEX_ATTRIBS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GLXX_CONFIG_MAX_VERTEX_ATTRIBS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.6:
	mov	w27, #0
	ldr	x9, [x21]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x9, x9, #40
	subs	x8, x8, #1
	b.eq	LBB0_14
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, #32]
	cbz	x10, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x10, [x9]
	cbnz	x10, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x10, [x9, #8]
	cbz	x10, LBB0_46
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w27, #1
	b	LBB0_7
LBB0_12:
Lloh11:
	adrp	x8, _GL_INVALID_VALUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GL_INVALID_VALUE@GOTPAGEOFF]
	b	LBB0_40
LBB0_13:
	mov	w27, #0
LBB0_14:
	stur	w27, [x29, #-104]
	stur	x25, [x29, #-120]               ; 8-byte Folded Spill
	cbz	x20, LBB0_18
; %bb.15:
	ldr	x19, [x21, #16]
	mov	x0, x20
	bl	_khrn_get_type_size
	mul	w0, w0, w22
	bl	_align_length
	cbz	x19, LBB0_19
; %bb.16:
	cbz	w27, LBB0_43
; %bb.17:
Lloh13:
	adrp	x8, _glintFindMax_impl@GOTPAGE
Lloh14:
	ldr	x8, [x8, _glintFindMax_impl@GOTPAGEOFF]
Lloh15:
	ldr	w24, [x8]
Lloh16:
	adrp	x8, _GLINTFINDMAX_ID@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GLINTFINDMAX_ID@GOTPAGEOFF]
Lloh18:
	ldr	w25, [x8]
	mov	x0, x22
	bl	_RPC_SIZEI
	mov	x27, x0
	mov	x0, x20
	bl	_RPC_ENUM
	mov	x19, x28
	mov	x28, x0
	mov	x0, x26
	bl	_RPC_UINT
	mov	x5, x0
	mov	x0, x24
	mov	x1, x19
	mov	x2, x25
	mov	x3, x27
	mov	x4, x28
	mov	x28, x19
	bl	_RPC_CALL3_RES
	bl	_RPC_INT_RES
	stur	w0, [x29, #-108]                ; 4-byte Folded Spill
	mov	x19, x26
	b	LBB0_20
LBB0_18:
	sxtw	x19, w26
	add	w8, w22, w26
	sub	w8, w8, #1
	stur	w8, [x29, #-108]                ; 4-byte Folded Spill
	cbnz	w27, LBB0_20
	b	LBB0_44
LBB0_19:
	mov	x24, x0
	mov	x0, x20
	bl	_khrn_get_type_size
	mov	x1, x0
	mov	x0, x22
	mov	x2, x26
	bl	_find_max
	stur	w0, [x29, #-108]                ; 4-byte Folded Spill
	add	x1, x21, #8
	mov	x0, x28
	mov	x2, x26
	mov	x3, x24
	mov	x4, #0
	bl	_khrn_cache_lookup
	mov	x24, x0
Lloh19:
	adrp	x8, _CACHE_ENTRY_T@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CACHE_ENTRY_T@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x8, _data@GOTPAGE
Lloh23:
	ldr	x8, [x8, _data@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_offsetof
	add	w8, w0, w24
	sxtw	x19, w8
	cbz	w27, LBB0_44
LBB0_20:
Lloh25:
	adrp	x8, _GLXX_CONFIG_MAX_VERTEX_ATTRIBS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GLXX_CONFIG_MAX_VERTEX_ATTRIBS@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_42
; %bb.21:
	stur	x19, [x29, #-152]               ; 8-byte Folded Spill
	stur	w22, [x29, #-140]               ; 4-byte Folded Spill
	stp	x20, x28, [x29, #-136]          ; 16-byte Folded Spill
	mov	x26, #0
	mov	w27, #40
	b	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_24 Depth=1
	lsl	x8, x26, #5
	str	wzr, [x23, x8]
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	add	x26, x26, #1
Lloh28:
	adrp	x8, _GLXX_CONFIG_MAX_VERTEX_ATTRIBS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _GLXX_CONFIG_MAX_VERTEX_ATTRIBS@GOTPAGEOFF]
Lloh30:
	ldrsw	x8, [x8]
	cmp	x26, x8
	b.ge	LBB0_37
LBB0_24:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_30 Depth 2
                                        ;       Child Loop BB0_35 Depth 3
	ldr	x8, [x21]
	madd	x9, x26, x27, x8
	ldr	x9, [x9, #32]
	cbz	x9, LBB0_22
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	mul	x9, x26, x27
	ldr	x9, [x8, x9]
	cbnz	x9, LBB0_22
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=1
	add	x28, x23, x26, lsl #5
	mov	w9, #1
	str	w9, [x28]
	madd	x8, x26, x27, x8
	ldr	x24, [x8, #8]
	str	x24, [x28, #8]
	ldp	w2, w1, [x8, #20]
	ldr	w3, [x8, #16]
	ldur	w0, [x29, #-108]                ; 4-byte Folded Reload
	bl	_calc_length
	add	x8, x24, w0, sxtw
	str	x8, [x28, #16]!
	mov	x20, x28
	mov	w8, #-1
	str	w8, [x20, #8]!
	cbz	x26, LBB0_23
; %bb.27:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	x22, #0
	b	LBB0_30
LBB0_28:                                ;   in Loop: Header=BB0_30 Depth=2
	mov	w0, #1
	bl	_vcos_assert
	str	x25, [x19]
	str	w22, [x20]
LBB0_29:                                ;   in Loop: Header=BB0_30 Depth=2
	add	x22, x22, #1
	cmp	x22, x26
	b.eq	LBB0_23
LBB0_30:                                ;   Parent Loop BB0_24 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_35 Depth 3
	lsl	x8, x22, #5
	ldr	w8, [x23, x8]
	cbz	w8, LBB0_29
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=2
	add	x19, x23, x22, lsl #5
	mov	x8, x19
	ldr	w9, [x8, #24]!
	cmn	w9, #1
	b.ne	LBB0_29
; %bb.32:                               ;   in Loop: Header=BB0_30 Depth=2
	ldr	x10, [x19, #16]!
	ldur	x9, [x19, #-8]
	cmp	x24, x9
	csel	x11, x24, x9, lo
	ldr	x12, [x28]
	cmp	x12, x10
	csel	x25, x12, x10, hi
	sub	x11, x25, x11
	add	x13, x9, x24
	sub	x12, x12, x13
	add	x10, x12, x10
	cmp	x11, x10
	b.ge	LBB0_29
; %bb.33:                               ;   in Loop: Header=BB0_30 Depth=2
	cmp	x24, x9
	b.hs	LBB0_28
; %bb.34:                               ;   in Loop: Header=BB0_30 Depth=2
	mov	x9, x26
LBB0_35:                                ;   Parent Loop BB0_24 Depth=1
                                        ;     Parent Loop BB0_30 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	sxtw	x9, w9
	add	x10, x23, x9, lsl #5
	ldr	w9, [x10, #24]
	cmn	w9, #1
	b.ne	LBB0_35
; %bb.36:                               ;   in Loop: Header=BB0_30 Depth=2
	str	x25, [x10, #16]
	str	w26, [x8]
	b	LBB0_29
LBB0_37:
	cmp	w8, #1
	ldp	x20, x28, [x29, #-136]          ; 16-byte Folded Reload
	ldur	w22, [x29, #-140]               ; 4-byte Folded Reload
	ldur	x19, [x29, #-152]               ; 8-byte Folded Reload
	b.lt	LBB0_42
; %bb.38:
	add	x1, x21, #8
	ldr	x2, [x23, #8]
	ldr	w8, [x23, #16]
	sub	w3, w8, w2
Lloh31:
	adrp	x8, _CACHE_SIG_ATTRIB_0@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CACHE_SIG_ATTRIB_0@GOTPAGEOFF]
Lloh33:
	ldr	x4, [x8]
	mov	x0, x28
	bl	_khrn_cache_lookup
	cmn	w0, #1
	b.ne	LBB0_49
; %bb.39:
Lloh34:
	adrp	x8, _GL_OUT_OF_MEMORY@GOTPAGE
Lloh35:
	ldr	x8, [x8, _GL_OUT_OF_MEMORY@GOTPAGEOFF]
LBB0_40:
	ldr	w1, [x8]
	ldur	x8, [x29, #-88]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_48
; %bb.41:
	mov	x0, x21
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_glxx_set_error
LBB0_42:
Lloh39:
	adrp	x8, _glintDrawElements_impl@GOTPAGE
Lloh40:
	ldr	x8, [x8, _glintDrawElements_impl@GOTPAGEOFF]
Lloh41:
	ldr	w21, [x8]
Lloh42:
	adrp	x8, _GLINTDRAWELEMENTS_ID@GOTPAGE
Lloh43:
	ldr	x8, [x8, _GLINTDRAWELEMENTS_ID@GOTPAGEOFF]
Lloh44:
	ldr	w25, [x8]
	ldur	x0, [x29, #-120]                ; 8-byte Folded Reload
	bl	_RPC_ENUM
	mov	x23, x0
	mov	x0, x22
	bl	_RPC_SIZEI
	mov	x22, x0
	mov	x0, x20
	bl	_RPC_ENUM
	mov	x20, x0
	mov	x0, x19
	bl	_RPC_UINT
	mov	x6, x0
	sub	sp, sp, #16
	mov	w8, #16
	b	LBB0_45
LBB0_43:
	mov	x19, x26
LBB0_44:
Lloh45:
	adrp	x8, _glintDrawElements_impl@GOTPAGE
Lloh46:
	ldr	x8, [x8, _glintDrawElements_impl@GOTPAGEOFF]
Lloh47:
	ldr	w21, [x8]
Lloh48:
	adrp	x8, _GLINTDRAWELEMENTS_ID@GOTPAGE
Lloh49:
	ldr	x8, [x8, _GLINTDRAWELEMENTS_ID@GOTPAGEOFF]
Lloh50:
	ldr	w25, [x8]
	ldur	x0, [x29, #-120]                ; 8-byte Folded Reload
	bl	_RPC_ENUM
	mov	x23, x0
	mov	x0, x22
	bl	_RPC_SIZEI
	mov	x22, x0
	mov	x0, x20
	bl	_RPC_ENUM
	mov	x20, x0
	mov	x0, x19
	bl	_RPC_UINT
	mov	x6, x0
	sub	sp, sp, #16
	mov	w8, #4
LBB0_45:
	str	w8, [sp]
	sub	x7, x29, #104
	mov	x0, x21
	mov	x1, x28
	mov	x2, x25
	mov	x3, x23
	mov	x4, x22
	mov	x5, x20
	bl	_RPC_CALL5_IN_CTRL
	add	sp, sp, #16
LBB0_46:
	ldur	x8, [x29, #-88]
Lloh51:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh52:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_48
; %bb.47:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_48:
	bl	___stack_chk_fail
LBB0_49:
	bl	_draw_arrays_or_elements.cold.1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function draw_arrays_or_elements.cold.1
_draw_arrays_or_elements.cold.1:        ; @draw_arrays_or_elements.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh54:
	adrp	x8, _CACHE_ENTRY_T@GOTPAGE
Lloh55:
	ldr	x8, [x8, _CACHE_ENTRY_T@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
Lloh57:
	adrp	x8, _data@GOTPAGE
Lloh58:
	ldr	x8, [x8, _data@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	bl	_offsetof
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_GLXX_CONFIG_MAX_VERTEX_ATTRIBS,4,2 ; @GLXX_CONFIG_MAX_VERTEX_ATTRIBS
	.comm	_GL_INVALID_VALUE,4,2           ; @GL_INVALID_VALUE
	.comm	_CACHE_ENTRY_T,4,2              ; @CACHE_ENTRY_T
	.comm	_data,4,2                       ; @data
	.comm	_glintFindMax_impl,4,2          ; @glintFindMax_impl
	.comm	_GLINTFINDMAX_ID,4,2            ; @GLINTFINDMAX_ID
	.comm	_CACHE_SIG_ATTRIB_0,8,3         ; @CACHE_SIG_ATTRIB_0
	.comm	_GL_OUT_OF_MEMORY,4,2           ; @GL_OUT_OF_MEMORY
	.comm	_glintDrawElements_impl,4,2     ; @glintDrawElements_impl
	.comm	_GLINTDRAWELEMENTS_ID,4,2       ; @GLINTDRAWELEMENTS_ID
	.no_dead_strip	_draw_arrays_or_elements
.subsections_via_symbols
