	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_DeleteTextures               ## -- Begin function R_DeleteTextures
	.p2align	4, 0x90
_R_DeleteTextures:                      ## @R_DeleteTextures
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_tr@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %rsi
	movl	$1, %edi
	callq	_qglDeleteTextures
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	8(%r14), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_Com_Memset
	movl	$0, (%r14)
	movq	_glState@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_Com_Memset
	movq	_qglActiveTextureARB@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movl	$1, %edi
	callq	_GL_SelectTexture
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_qglBindTexture
	xorl	%edi, %edi
	callq	_GL_SelectTexture
LBB0_5:
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_qglBindTexture                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_tr,16,3                        ## @tr
	.comm	_glState,8,3                    ## @glState
	.comm	_qglActiveTextureARB,8,3        ## @qglActiveTextureARB
	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_DeleteTextures               ; -- Begin function R_DeleteTextures
	.p2align	2
_R_DeleteTextures:                      ; @R_DeleteTextures
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _tr@GOTPAGE
Lloh1:
	ldr	x19, [x19, _tr@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x1, [x8, x20, lsl #3]
	mov	w0, #1
	bl	_qglDeleteTextures
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	x0, [x19, #8]
	mov	w1, #0
	mov	w2, #8
	bl	_Com_Memset
	str	wzr, [x19]
Lloh2:
	adrp	x8, _glState@GOTPAGE
Lloh3:
	ldr	x8, [x8, _glState@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
	mov	w1, #0
	mov	w2, #8
	bl	_Com_Memset
Lloh5:
	adrp	x8, _qglActiveTextureARB@GOTPAGE
Lloh6:
	ldr	x8, [x8, _qglActiveTextureARB@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x19, _GL_TEXTURE_2D@GOTPAGE
Lloh9:
	ldr	x19, [x19, _GL_TEXTURE_2D@GOTPAGEOFF]
	cbz	x8, LBB0_5
; %bb.4:
	mov	w0, #1
	bl	_GL_SelectTexture
	ldr	w0, [x19]
	mov	w1, #0
	bl	_qglBindTexture
	mov	w0, #0
	bl	_GL_SelectTexture
LBB0_5:
	ldr	w0, [x19]
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_qglBindTexture
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_tr,16,3                        ; @tr
	.comm	_glState,8,3                    ; @glState
	.comm	_qglActiveTextureARB,8,3        ; @qglActiveTextureARB
	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
.subsections_via_symbols
