	.file	"extr_models.c_unload_wavefront.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	unload_wavefront
	.type	unload_wavefront, @function
unload_wavefront:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	jle	.L11
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xor	ebx, ebx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdx, QWORD PTR VBO_TEXTURE[rip]
	lea	rdi, [rax+rdx*8]
	cmp	QWORD PTR [rdi], 0
	jne	.L15
.L4:
	mov	rdx, QWORD PTR VBO_NORMAL[rip]
	lea	rdi, [rax+rdx*8]
	cmp	QWORD PTR [rdi], 0
	jne	.L16
	add	rbx, 1
	cmp	DWORD PTR [r12], ebx
	jle	.L17
.L2:
	mov	rax, QWORD PTR 8[r12]
	mov	rdx, QWORD PTR VBO_VERTEX[rip]
	lea	rbp, [rax+rbx*8]
	mov	rax, QWORD PTR 0[rbp]
	lea	rdi, [rax+rdx*8]
	cmp	QWORD PTR [rdi], 0
	je	.L3
	call	destroy_vbo@PLT
	mov	rax, QWORD PTR 0[rbp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	call	destroy_vbo@PLT
	add	rbx, 1
	cmp	DWORD PTR [r12], ebx
	jg	.L2
.L17:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	call	destroy_vbo@PLT
	mov	rax, QWORD PTR 0[rbp]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	ret
	.cfi_endproc
.LFE0:
	.size	unload_wavefront, .-unload_wavefront
	.comm	VBO_VERTEX,8,8
	.comm	VBO_TEXTURE,8,8
	.comm	VBO_NORMAL,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_models.c_unload_wavefront.c"
	.text
	.align	2
	.global	unload_wavefront
	.syntax unified
	.arm
	.fpu softvfp
	.type	unload_wavefront, %function
unload_wavefront:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	cmp	r3, #0
	bxle	lr
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	mov	r4, #0
	ldr	r9, .L25
	ldr	r8, .L25+4
	ldr	r7, .L25+8
	b	.L2
.L3:
	ldr	r0, [r8]
	add	r4, r4, #1
	ldr	r2, [r3, r0, lsl #2]
	add	r0, r3, r0, lsl #2
	cmp	r2, #0
	bne	.L23
.L4:
	ldr	r0, [r7]
	ldr	r2, [r3, r0, lsl #2]
	add	r0, r3, r0, lsl #2
	cmp	r2, #0
	bne	.L24
.L5:
	ldr	r3, [r6]
	cmp	r3, r4
	pople	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r5, [r6, #4]
	ldr	r0, [r9]
	ldr	r3, [r5, r4, lsl #2]
	lsl	r10, r4, #2
	ldr	r2, [r3, r0, lsl #2]
	add	r0, r3, r0, lsl #2
	cmp	r2, #0
	beq	.L3
	bl	destroy_vbo
	ldr	r3, [r5, r4, lsl #2]
	b	.L3
.L24:
	bl	destroy_vbo
	b	.L5
.L23:
	bl	destroy_vbo
	ldr	r3, [r5, r10]
	b	.L4
.L26:
	.align	2
.L25:
	.word	VBO_VERTEX
	.word	VBO_TEXTURE
	.word	VBO_NORMAL
	.size	unload_wavefront, .-unload_wavefront
	.comm	VBO_VERTEX,4,4
	.comm	VBO_TEXTURE,4,4
	.comm	VBO_NORMAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
