	.file	"extr_gldraw.c_DrawWinding.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	DrawWinding
	.type	DrawWinding, @function
DrawWinding:
.LFB0:
	.cfi_startproc
	endbr64
	mov	ecx, DWORD PTR drawflag[rip]
	test	ecx, ecx
	jne	.L13
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	edx, edx
	xor	esi, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	xor	edi, edi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	movsd	xmm0, QWORD PTR .LC0[rip]
	call	glColor4f@PLT
	mov	edi, DWORD PTR GL_LINE_LOOP[rip]
	call	glBegin@PLT
	mov	edx, DWORD PTR [rbx]
	test	edx, edx
	jle	.L3
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR [rax+rbp*8]
	add	rbp, 1
	mov	edx, DWORD PTR 8[rax]
	mov	esi, DWORD PTR 4[rax]
	mov	edi, DWORD PTR [rax]
	call	glVertex3f@PLT
	cmp	DWORD PTR [rbx], ebp
	jg	.L4
.L3:
	xor	eax, eax
	call	glEnd@PLT
	xor	edx, edx
	mov	esi, 1
	xor	edi, edi
	movsd	xmm0, QWORD PTR .LC1[rip]
	call	glColor4f@PLT
	mov	edi, DWORD PTR GL_POLYGON[rip]
	call	glBegin@PLT
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jle	.L5
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR [rax+rbp*8]
	add	rbp, 1
	mov	edx, DWORD PTR 8[rax]
	mov	esi, DWORD PTR 4[rax]
	mov	edi, DWORD PTR [rax]
	call	glVertex3f@PLT
	cmp	DWORD PTR [rbx], ebp
	jg	.L6
.L5:
	xor	eax, eax
	call	glEnd@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	glFlush@PLT
	.cfi_endproc
.LFE0:
	.size	DrawWinding, .-DrawWinding
	.comm	drawflag,4,4
	.comm	GL_POLYGON,4,4
	.comm	GL_LINE_LOOP,4,4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1071644672
	.align 8
.LC1:
	.long	858993459
	.long	1070805811
	.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_gldraw.c_DrawWinding.c"
	.text
	.align	2
	.global	DrawWinding
	.syntax unified
	.arm
	.fpu softvfp
	.type	DrawWinding, %function
DrawWinding:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L13
	ldr	r3, [r3]
	cmp	r3, #0
	bxeq	lr
	push	{r4, r5, lr}
	mov	r2, #0
	mov	r4, r0
	mov	r0, #0
	ldr	r1, .L13+4
	sub	sp, sp, #12
	stm	sp, {r0-r1}
	mov	r1, r2
	mov	r0, r2
	bl	glColor4f
	ldr	r3, .L13+8
	ldr	r0, [r3]
	bl	glBegin
	ldr	r3, [r4]
	cmp	r3, #0
	ble	.L3
	mov	r5, #0
.L4:
	ldr	r3, [r4, #4]
	ldr	r3, [r3, r5, lsl #2]
	add	r5, r5, #1
	ldm	r3, {r0, r1, r2}
	bl	glVertex3f
	ldr	r3, [r4]
	cmp	r3, r5
	bgt	.L4
.L3:
	bl	glEnd
	mov	r2, #0
	ldr	r0, .L13+12
	ldr	r1, .L13+16
	stm	sp, {r0-r1}
	mov	r0, r2
	mov	r1, #1
	bl	glColor4f
	ldr	r3, .L13+20
	ldr	r0, [r3]
	bl	glBegin
	ldr	r3, [r4]
	cmp	r3, #0
	ble	.L5
	mov	r5, #0
.L6:
	ldr	r3, [r4, #4]
	ldr	r3, [r3, r5, lsl #2]
	add	r5, r5, #1
	ldm	r3, {r0, r1, r2}
	bl	glVertex3f
	ldr	r3, [r4]
	cmp	r3, r5
	bgt	.L6
.L5:
	bl	glEnd
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, lr}
	b	glFlush
.L14:
	.align	2
.L13:
	.word	drawflag
	.word	1071644672
	.word	GL_LINE_LOOP
	.word	858993459
	.word	1070805811
	.word	GL_POLYGON
	.size	DrawWinding, .-DrawWinding
	.comm	drawflag,4,4
	.comm	GL_POLYGON,4,4
	.comm	GL_LINE_LOOP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
