	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl2_renderchain_init_texture_reference
_gl2_renderchain_init_texture_reference: ## @gl2_renderchain_init_texture_reference
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, (%rsi)
	je	LBB0_1
## %bb.2:
	popq	%rbp
	retq
LBB0_1:
	movl	%r9d, %r10d
	movl	%r8d, %r11d
	movq	%rdi, %rax
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	movl	(%rax), %r9d
	movl	4(%rax), %r8d
	subq	$8, %rsp
	xorl	%esi, %esi
	movl	%ecx, %edx
	movl	%r9d, %ecx
	xorl	%r9d, %r9d
	pushq	16(%rax)
	pushq	%r11
	pushq	%r10
	callq	_gl2_load_texture_image
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
	.no_dead_strip	_gl2_renderchain_init_texture_reference
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gl2_renderchain_init_texture_reference
_gl2_renderchain_init_texture_reference: ; @gl2_renderchain_init_texture_reference
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	ldr	x8, [x1]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x6, x5
	mov	x7, x4
Lloh0:
	adrp	x8, _GL_TEXTURE_2D@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_TEXTURE_2D@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w4, [x0]
	ldr	x10, [x0, #16]
	str	x10, [sp]
	mov	x0, x8
	mov	w1, #0
	mov	x2, x3
	mov	x3, x9
	mov	w5, #0
	bl	_gl2_load_texture_image
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
	.no_dead_strip	_gl2_renderchain_init_texture_reference
.subsections_via_symbols
