	.file	"extr_gl-subsystem.c_convert_sampler_info.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"glGetIntegerv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT)"
	.align 8
.LC1:
	.string	"convert_sampler_info: 1 <= max_anisotropy <= %d violated, selected: %d, set: %d"
	.text
	.p2align 4
	.globl	convert_sampler_info
	.type	convert_sampler_info, @function
convert_sampler_info:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	lea	rdx, 32[rdi]
	lea	rsi, 36[rdi]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 16[rbp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	convert_filter@PLT
	mov	edi, DWORD PTR 12[rbp]
	call	convert_address_mode@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	QWORD PTR 24[rbx], rax
	call	convert_address_mode@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	QWORD PTR 16[rbx], rax
	call	convert_address_mode@PLT
	cmp	QWORD PTR GLAD_GL_EXT_texture_filter_anisotropic[rip], 0
	mov	edx, 1
	mov	DWORD PTR 4[rsp], 1
	mov	QWORD PTR 8[rbx], rax
	mov	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR [rbx], eax
	jne	.L12
	test	eax, eax
	jle	.L3
.L14:
	cmp	edx, eax
	jge	.L1
	mov	DWORD PTR [rbx], edx
	mov	r8d, edx
.L6:
	mov	ecx, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR LOG_DEBUG[rip]
	lea	rsi, .LC1[rip]
	call	blog@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT[rip]
	lea	rsi, 4[rsp]
	call	glGetIntegerv@PLT
	lea	rdi, .LC0[rip]
	call	gl_success@PLT
	mov	eax, DWORD PTR [rbx]
	mov	edx, DWORD PTR 4[rsp]
	test	eax, eax
	jg	.L14
.L3:
	mov	DWORD PTR [rbx], 1
	mov	r8d, 1
	jmp	.L6
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	convert_sampler_info, .-convert_sampler_info
	.comm	LOG_DEBUG,4,4
	.comm	GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT,4,4
	.comm	GLAD_GL_EXT_texture_filter_anisotropic,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_gl-subsystem.c_convert_sampler_info.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"glGetIntegerv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT)\000"
	.align	2
.LC1:
	.ascii	"convert_sampler_info: 1 <= max_anisotropy <= %d vio"
	.ascii	"lated, selected: %d, set: %d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	convert_sampler_info
	.syntax unified
	.arm
	.fpu softvfp
	.type	convert_sampler_info, %function
convert_sampler_info:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r5, r1
	ldr	r3, .L14
	sub	sp, sp, #20
	add	r2, r0, #16
	add	r1, r0, #20
	mov	r4, r0
	ldr	r0, [r5, #16]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	convert_filter
	ldr	r0, [r5, #12]
	bl	convert_address_mode
	mov	r3, r0
	ldr	r0, [r5, #8]
	str	r3, [r4, #12]
	bl	convert_address_mode
	mov	r3, r0
	ldr	r0, [r5, #4]
	str	r3, [r4, #8]
	bl	convert_address_mode
	mov	r2, #1
	ldr	r3, .L14+4
	str	r0, [r4, #4]
	ldr	r1, [r3]
	ldr	r3, [r5]
	cmp	r1, #0
	str	r3, [r4]
	str	r2, [sp, #8]
	bne	.L11
	cmp	r3, #0
	ble	.L3
.L13:
	cmp	r2, r3
	movlt	r3, r2
	strlt	r2, [r4]
	bge	.L1
.L6:
	ldr	r1, .L14+8
	str	r3, [sp]
	ldr	r0, [r1]
	ldr	r3, [r5]
	ldr	r1, .L14+12
	bl	blog
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L11:
	ldr	r3, .L14+16
	add	r1, sp, #8
	ldr	r0, [r3]
	bl	glGetIntegerv
	ldr	r0, .L14+20
	bl	gl_success
	ldr	r3, [r4]
	ldr	r2, [sp, #8]
	cmp	r3, #0
	bgt	.L13
.L3:
	mov	r3, #1
	str	r3, [r4]
	b	.L6
.L12:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC2
	.word	GLAD_GL_EXT_texture_filter_anisotropic
	.word	LOG_DEBUG
	.word	.LC1
	.word	GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT
	.word	.LC0
	.size	convert_sampler_info, .-convert_sampler_info
	.comm	LOG_DEBUG,4,4
	.comm	GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT,4,4
	.comm	GLAD_GL_EXT_texture_filter_anisotropic,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
