	.file	"extr_gl-subsystem.c_attach_rendertarget.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"glFramebufferTexture2D"
	.text
	.p2align 4
	.type	attach_rendertarget, @function
attach_rendertarget:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR [rdi], rsi
	je	.L5
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	rax, QWORD PTR [rsi]
	cmp	rax, QWORD PTR GS_TEXTURE_2D[rip]
	mov	QWORD PTR [rdi], rsi
	je	.L12
	xor	r8d, r8d
	cmp	rax, QWORD PTR GS_TEXTURE_CUBE[rip]
	je	.L13
	mov	eax, r8d
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	ecx, DWORD PTR 8[rsi]
	mov	edi, DWORD PTR GL_DRAW_FRAMEBUFFER[rip]
	movsx	rdx, edx
	mov	esi, DWORD PTR GL_COLOR_ATTACHMENT0[rip]
	add	rdx, QWORD PTR GL_TEXTURE_CUBE_MAP_POSITIVE_X[rip]
	call	glFramebufferTexture2D@PLT
	lea	rdi, .LC0[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 8
	jmp	gl_success@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r8d, 1
	mov	eax, r8d
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_def_cfa_offset 16
	mov	ecx, DWORD PTR 8[rsi]
	mov	edi, DWORD PTR GL_DRAW_FRAMEBUFFER[rip]
	xor	r8d, r8d
	mov	rdx, QWORD PTR GL_TEXTURE_2D[rip]
	mov	esi, DWORD PTR GL_COLOR_ATTACHMENT0[rip]
	call	glFramebufferTexture2D@PLT
	lea	rdi, .LC0[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 8
	jmp	gl_success@PLT
	.cfi_endproc
.LFE0:
	.size	attach_rendertarget, .-attach_rendertarget
	.comm	GS_TEXTURE_CUBE,8,8
	.comm	GS_TEXTURE_2D,8,8
	.comm	GL_TEXTURE_CUBE_MAP_POSITIVE_X,8,8
	.comm	GL_TEXTURE_2D,8,8
	.comm	GL_DRAW_FRAMEBUFFER,4,4
	.comm	GL_COLOR_ATTACHMENT0,4,4
	.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_attach_rendertarget.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"glFramebufferTexture2D\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	attach_rendertarget, %function
attach_rendertarget:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	cmp	r3, r1
	beq	.L5
	push	{r4, lr}
	ldr	ip, .L14
	ldr	r3, [r1]
	ldr	ip, [ip]
	sub	sp, sp, #8
	cmp	r3, ip
	str	r1, [r0]
	beq	.L12
	ldr	r0, .L14+4
	ldr	r0, [r0]
	cmp	r3, r0
	beq	.L13
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L13:
	mov	lr, #0
	ldr	r3, .L14+8
	ldr	ip, .L14+12
	ldr	r4, [r3]
	ldr	r0, .L14+16
	ldr	r3, [r1, #4]
	str	lr, [sp]
	ldr	r1, [ip]
	add	r2, r2, r4
	ldr	r0, [r0]
	bl	glFramebufferTexture2D
	ldr	r0, .L14+20
	add	sp, sp, #8
	@ sp needed
	pop	{r4, lr}
	b	gl_success
.L5:
	mov	r0, #1
	bx	lr
.L12:
	mov	lr, #0
	ldr	ip, .L14+12
	ldr	r2, .L14+24
	ldr	r0, .L14+16
	ldr	r3, [r1, #4]
	str	lr, [sp]
	ldr	r2, [r2]
	ldr	r1, [ip]
	ldr	r0, [r0]
	bl	glFramebufferTexture2D
	ldr	r0, .L14+20
	add	sp, sp, #8
	@ sp needed
	pop	{r4, lr}
	b	gl_success
.L15:
	.align	2
.L14:
	.word	GS_TEXTURE_2D
	.word	GS_TEXTURE_CUBE
	.word	GL_TEXTURE_CUBE_MAP_POSITIVE_X
	.word	GL_COLOR_ATTACHMENT0
	.word	GL_DRAW_FRAMEBUFFER
	.word	.LC0
	.word	GL_TEXTURE_2D
	.size	attach_rendertarget, .-attach_rendertarget
	.comm	GS_TEXTURE_CUBE,4,4
	.comm	GS_TEXTURE_2D,4,4
	.comm	GL_TEXTURE_CUBE_MAP_POSITIVE_X,4,4
	.comm	GL_TEXTURE_2D,4,4
	.comm	GL_DRAW_FRAMEBUFFER,4,4
	.comm	GL_COLOR_ATTACHMENT0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
