	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function gl_alloc_texture_object
LCPI0_0:
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gl_alloc_texture_object
	.p2align	4, 0x90
_gl_alloc_texture_object:               ## @gl_alloc_texture_object
	.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
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r15
	xorl	%edi, %edi
	cmpl	$3, %edx
	setb	%dil
	callq	_assert
	movl	$1, %edi
	movl	$80, %esi
	callq	_calloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	%r14d, (%rbx)
	movl	%r12d, 4(%rbx)
	movq	_GL_REPEAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%rbx)
	movq	%rax, 64(%rbx)
	movq	_GL_NEAREST_MIPMAP_LINEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%rbx)
	movq	_GL_LINEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movl	$0, 8(%rbx)
	movq	16(%rbx), %rax
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [255,255,255,255]
	movups	%xmm0, (%rax)
	movl	$1, 24(%rbx)
	movq	_GL_RGBA@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%rbx)
	movq	%rax, 40(%rbx)
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	movq	8(%r15), %rax
	movq	%rax, 32(%rbx)
	movq	%rbx, 8(%r15)
LBB0_3:
	testl	%r14d, %r14d
	jle	LBB0_5
## %bb.4:
	movl	(%r15), %edi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	callq	_HashInsert
LBB0_5:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_REPEAT,8,3                  ## @GL_REPEAT
	.comm	_GL_NEAREST_MIPMAP_LINEAR,4,2   ## @GL_NEAREST_MIPMAP_LINEAR
	.comm	_GL_LINEAR,4,2                  ## @GL_LINEAR
	.comm	_GL_RGBA,8,3                    ## @GL_RGBA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_alloc_texture_object        ; -- Begin function gl_alloc_texture_object
	.p2align	2
_gl_alloc_texture_object:               ; @gl_alloc_texture_object
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
	cmp	w2, #3
	cset	w0, lo
	bl	_assert
	mov	w23, #1
	mov	w0, #1
	mov	w1, #80
	bl	_calloc
	mov	x21, x0
	cbz	x0, LBB0_5
; %bb.1:
	stp	w19, w22, [x21]
Lloh0:
	adrp	x8, _GL_REPEAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_REPEAT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stp	x8, x8, [x21, #64]
Lloh3:
	adrp	x8, _GL_NEAREST_MIPMAP_LINEAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GL_NEAREST_MIPMAP_LINEAR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _GL_LINEAR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GL_LINEAR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #56]
	str	wzr, [x21, #8]
	ldr	x8, [x21, #16]
	movi.2d	v0, #0x0000ff000000ff
	str	q0, [x8]
	str	w23, [x21, #24]
Lloh9:
	adrp	x8, _GL_RGBA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GL_RGBA@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	stp	x8, x8, [x21, #40]
	cbz	x20, LBB0_3
; %bb.2:
	ldr	x8, [x20, #8]
	str	x8, [x21, #32]
	str	x21, [x20, #8]
LBB0_3:
	cmp	w19, #1
	b.lt	LBB0_5
; %bb.4:
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, x21
	bl	_HashInsert
LBB0_5:
	mov	x0, x21
	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
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_REPEAT,8,3                  ; @GL_REPEAT
	.comm	_GL_NEAREST_MIPMAP_LINEAR,4,2   ; @GL_NEAREST_MIPMAP_LINEAR
	.comm	_GL_LINEAR,4,2                  ; @GL_LINEAR
	.comm	_GL_RGBA,8,3                    ; @GL_RGBA
.subsections_via_symbols
