	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_free_texture_object         ## -- Begin function gl_free_texture_object
	.p2align	4, 0x90
_gl_free_texture_object:                ## @gl_free_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_assert
	testq	%r14, %r14
	je	LBB0_7
## %bb.1:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	cmpq	%r15, %rax
	je	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rcx
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r15, %rax
	jne	LBB0_4
	jmp	LBB0_6
LBB0_3:
	xorl	%ecx, %ecx
LBB0_6:
	leaq	8(%r14), %rax
	leaq	16(%rcx), %rdx
	testq	%rcx, %rcx
	movq	16(%r15), %rcx
	cmoveq	%rax, %rdx
	movq	%rcx, (%rdx)
LBB0_7:
	movq	8(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	movl	(%r14), %edi
	callq	_HashRemove
LBB0_9:
	movq	_MAX_TEXTURE_LEVELS@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	cmpq	%rax, %rbx
	jae	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	callq	_gl_free_texture_image
	movq	(%r14), %rax
	jmp	LBB0_13
LBB0_14:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_TEXTURE_LEVELS,8,3         ## @MAX_TEXTURE_LEVELS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_free_texture_object         ; -- Begin function gl_free_texture_object
	.p2align	2
_gl_free_texture_object:                ; @gl_free_texture_object
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_assert
	cbz	x20, LBB0_7
; %bb.1:
	mov	x8, x20
	ldr	x9, [x8, #8]!
	cbz	x9, LBB0_7
; %bb.2:
	cmp	x9, x19
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x10, x9
	ldr	x9, [x9, #16]
	cbz	x9, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x9, x19
	b.ne	LBB0_3
	b	LBB0_6
LBB0_5:
	mov	x10, #0
LBB0_6:
	ldr	x9, [x19, #16]
	add	x11, x10, #16
	cmp	x10, #0
	csel	x8, x8, x11, eq
	str	x9, [x8]
LBB0_7:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_9
; %bb.8:
	ldr	w0, [x20]
	bl	_HashRemove
LBB0_9:
Lloh0:
	adrp	x20, _MAX_TEXTURE_LEVELS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MAX_TEXTURE_LEVELS@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_14
; %bb.10:
	mov	x21, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x21, x21, #1
	cmp	x21, x8
	b.hs	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	ldr	x0, [x9, x21, lsl #3]
	cbz	x0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	bl	_gl_free_texture_image
	ldr	x8, [x20]
	b	LBB0_11
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_free
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_TEXTURE_LEVELS,8,3         ; @MAX_TEXTURE_LEVELS
.subsections_via_symbols
