	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl2_init_textures
_gl2_init_textures:                     ## @gl2_init_textures
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	76(%rdi), %r14d
	movl	72(%rdi), %r15d
	movl	68(%rdi), %r12d
	movl	12(%rdi), %edi
	movq	24(%r13), %rsi
	callq	_glGenTextures
	cmpl	$0, 12(%r13)
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	movl	48(%r13), %esi
	movl	44(%r13), %edx
	movl	40(%r13), %ecx
	callq	_gl_bind_texture
	movq	32(%r13), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	movl	%r15d, %r9d
	callq	_gl2_renderchain_init_texture_reference
	incq	%rbx
	movl	12(%r13), %eax
	cmpq	%rax, %rbx
	jb	LBB0_2
LBB0_3:
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r13), %rax
	movq	24(%r13), %rcx
	movl	(%rcx,%rax,4), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_glBindTexture                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
	.comm	_GL_CAPS_ARGB8,4,2              ## @GL_CAPS_ARGB8
	.comm	_GL_RGB,4,2                     ## @GL_RGB
	.comm	_GL_RGBA,4,2                    ## @GL_RGBA
	.comm	_GL_STREAM_DRAW,4,2             ## @GL_STREAM_DRAW
	.comm	_GL_TEXTURE_REFERENCE_BUFFER_SCE,4,2 ## @GL_TEXTURE_REFERENCE_BUFFER_SCE
	.comm	_GL_UNSIGNED_BYTE,4,2           ## @GL_UNSIGNED_BYTE
	.comm	_GL_UNSIGNED_SHORT_5_6_5,4,2    ## @GL_UNSIGNED_SHORT_5_6_5
	.no_dead_strip	_gl2_init_textures
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gl2_init_textures
_gl2_init_textures:                     ; @gl2_init_textures
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldp	w21, w20, [x0, #72]
	ldr	w22, [x0, #68]
	ldr	w0, [x0, #12]
	ldr	x1, [x19, #24]
	bl	_glGenTextures
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	w0, [x8, x23, lsl #2]
	ldp	w2, w1, [x19, #44]
	ldr	w3, [x19, #40]
	bl	_gl_bind_texture
	ldr	x1, [x19, #32]
	mov	x0, x19
	mov	x2, x23
	mov	x3, x20
	mov	x4, x22
	mov	x5, x21
	bl	_gl2_renderchain_init_texture_reference
	add	x23, x23, #1
	ldr	w8, [x19, #12]
	cmp	x23, x8
	b.lo	LBB0_2
LBB0_3:
Lloh0:
	adrp	x8, _GL_TEXTURE_2D@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_TEXTURE_2D@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x9, x8, [x19, #16]
	ldr	w1, [x8, x9, lsl #2]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_glBindTexture
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
	.comm	_GL_CAPS_ARGB8,4,2              ; @GL_CAPS_ARGB8
	.comm	_GL_RGB,4,2                     ; @GL_RGB
	.comm	_GL_RGBA,4,2                    ; @GL_RGBA
	.comm	_GL_STREAM_DRAW,4,2             ; @GL_STREAM_DRAW
	.comm	_GL_TEXTURE_REFERENCE_BUFFER_SCE,4,2 ; @GL_TEXTURE_REFERENCE_BUFFER_SCE
	.comm	_GL_UNSIGNED_BYTE,4,2           ; @GL_UNSIGNED_BYTE
	.comm	_GL_UNSIGNED_SHORT_5_6_5,4,2    ; @GL_UNSIGNED_SHORT_5_6_5
	.no_dead_strip	_gl2_init_textures
.subsections_via_symbols
