	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl2_update_tex_filter_frame
_gl2_update_tex_filter_frame:           ## @gl2_update_tex_filter_frame
	.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	%rdi, %r15
	movl	$0, -28(%rbp)
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	%rax, %r14
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_gl2_context_bind_hw_render
	movq	56(%r15), %rax
	movl	52(%r15), %edi
	leaq	-28(%rbp), %rdx
	movl	$1, %esi
	callq	*16(%rax)
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %eax
	movl	%eax, -28(%rbp)
LBB0_2:
	movq	56(%r15), %rax
	movl	52(%r15), %edi
	movl	$1, %esi
	callq	*(%rax)
	movl	%eax, %edi
	callq	_gl2_wrap_type_to_enum
	movq	%rax, %r14
	movq	56(%r15), %rax
	movl	52(%r15), %edi
	movl	$1, %esi
	callq	*8(%rax)
	movl	%eax, 44(%r15)
	testl	%eax, %eax
	movq	_GL_LINEAR_MIPMAP_LINEAR@GOTPCREL(%rip), %rax
	cmoveq	_GL_LINEAR@GOTPCREL(%rip), %rax
	movq	_GL_NEAREST_MIPMAP_NEAREST@GOTPCREL(%rip), %rcx
	cmoveq	_GL_NEAREST@GOTPCREL(%rip), %rcx
	movl	-28(%rbp), %edx
	testl	%edx, %edx
	cmovneq	%rax, %rcx
	movl	%edx, 48(%r15)
	movq	(%rcx), %rdi
	cmpq	(%r15), %rdi
	jne	LBB0_4
## %bb.3:
	cmpq	8(%r15), %r14
	je	LBB0_10
LBB0_4:
	movq	%rdi, (%r15)
	callq	_gl2_min_filter_to_mag
	movl	%eax, 40(%r15)
	movq	%r14, 8(%r15)
	movl	16(%r15), %eax
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movl	%eax, %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rcx
	movl	(%rcx,%rbx,4), %edi
	testl	%edi, %edi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r15), %rcx
	movq	8(%r15), %rsi
	movl	40(%r15), %edx
	callq	_gl_bind_texture
	movl	16(%r15), %eax
	jmp	LBB0_8
LBB0_9:
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%r15), %rax
	movq	32(%r15), %rcx
	movl	(%rcx,%rax,4), %esi
	callq	_glBindTexture
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_gl2_context_bind_hw_render
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_LINEAR_MIPMAP_LINEAR,8,3    ## @GL_LINEAR_MIPMAP_LINEAR
	.comm	_GL_NEAREST_MIPMAP_NEAREST,8,3  ## @GL_NEAREST_MIPMAP_NEAREST
	.comm	_GL_LINEAR,8,3                  ## @GL_LINEAR
	.comm	_GL_NEAREST,8,3                 ## @GL_NEAREST
	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
	.no_dead_strip	_gl2_update_tex_filter_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gl2_update_tex_filter_frame
_gl2_update_tex_filter_frame:           ; @gl2_update_tex_filter_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	str	wzr, [sp, #12]
	bl	_config_get_ptr
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_gl2_context_bind_hw_render
	ldr	x8, [x19, #56]
	ldr	x8, [x8, #16]
	ldr	w0, [x19, #52]
	add	x2, sp, #12
	mov	w1, #1
	blr	x8
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	str	w8, [sp, #12]
LBB0_2:
	ldr	x8, [x19, #56]
	ldr	x8, [x8]
	ldr	w0, [x19, #52]
	mov	w1, #1
	blr	x8
	bl	_gl2_wrap_type_to_enum
	mov	x20, x0
	ldr	x8, [x19, #56]
	ldr	x8, [x8, #8]
	ldr	w0, [x19, #52]
	mov	w1, #1
	blr	x8
	ldr	w8, [sp, #12]
	stp	w0, w8, [x19, #44]
Lloh0:
	adrp	x9, _GL_LINEAR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GL_LINEAR@GOTPAGEOFF]
Lloh2:
	adrp	x10, _GL_LINEAR_MIPMAP_LINEAR@GOTPAGE
Lloh3:
	ldr	x10, [x10, _GL_LINEAR_MIPMAP_LINEAR@GOTPAGEOFF]
	cmp	w0, #0
	csel	x9, x9, x10, eq
Lloh4:
	adrp	x10, _GL_NEAREST@GOTPAGE
Lloh5:
	ldr	x10, [x10, _GL_NEAREST@GOTPAGEOFF]
Lloh6:
	adrp	x11, _GL_NEAREST_MIPMAP_NEAREST@GOTPAGE
Lloh7:
	ldr	x11, [x11, _GL_NEAREST_MIPMAP_NEAREST@GOTPAGEOFF]
	csel	x10, x10, x11, eq
	cmp	w8, #0
	csel	x8, x10, x9, eq
	ldr	x0, [x8]
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	cmp	x20, x8
	b.eq	LBB0_10
LBB0_4:
	str	x0, [x19]
	bl	_gl2_min_filter_to_mag
	str	w0, [x19, #40]
	str	x20, [x19, #8]
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_9
; %bb.5:
	mov	x20, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, uxtw
	b.hs	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #32]
	ldr	w0, [x9, x20, lsl #2]
	cbz	w0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [x19, #40]
	ldp	x3, x1, [x19]
	bl	_gl_bind_texture
	ldr	w8, [x19, #16]
	b	LBB0_6
LBB0_9:
Lloh8:
	adrp	x8, _GL_TEXTURE_2D@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GL_TEXTURE_2D@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x9, x8, [x19, #24]
	ldr	w1, [x8, x9, lsl #2]
	bl	_glBindTexture
	mov	x0, x19
	mov	w1, #1
	bl	_gl2_context_bind_hw_render
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_LINEAR_MIPMAP_LINEAR,8,3    ; @GL_LINEAR_MIPMAP_LINEAR
	.comm	_GL_NEAREST_MIPMAP_NEAREST,8,3  ; @GL_NEAREST_MIPMAP_NEAREST
	.comm	_GL_LINEAR,8,3                  ; @GL_LINEAR
	.comm	_GL_NEAREST,8,3                 ; @GL_NEAREST
	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
	.no_dead_strip	_gl2_update_tex_filter_frame
.subsections_via_symbols
