	.file	"extr_meshbuilder.c_clean_mesh_builder_data.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	clean_mesh_builder_data, @function
clean_mesh_builder_data:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	add	rdi, 112
	call	IDirect3DRMMeshBuilder3_SetName@PLT
	mov	rdi, QWORD PTR 104[rbx]
	call	heap_free@PLT
	mov	QWORD PTR 104[rbx], 0
	mov	rdi, QWORD PTR 80[rbx]
	mov	QWORD PTR 96[rbx], 0
	mov	QWORD PTR 88[rbx], 0
	call	heap_free@PLT
	mov	QWORD PTR 80[rbx], 0
	mov	rdi, QWORD PTR 56[rbx]
	mov	QWORD PTR 72[rbx], 0
	mov	QWORD PTR 64[rbx], 0
	call	heap_free@PLT
	mov	QWORD PTR 56[rbx], 0
	mov	rdi, QWORD PTR 32[rbx]
	mov	QWORD PTR 48[rbx], 0
	mov	QWORD PTR 40[rbx], 0
	call	heap_free@PLT
	cmp	QWORD PTR [rbx], 0
	mov	r8, QWORD PTR 16[rbx]
	mov	QWORD PTR 32[rbx], 0
	mov	QWORD PTR 24[rbx], 0
	je	.L6
	xor	ebp, ebp
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, QWORD PTR [rax]
	test	rdi, rdi
	jne	.L16
.L4:
	add	rbp, 1
	cmp	QWORD PTR [rbx], rbp
	jbe	.L6
.L5:
	mov	r12, rbp
	sal	r12, 4
	lea	rax, [r8+r12]
	mov	rdi, QWORD PTR 8[rax]
	test	rdi, rdi
	je	.L3
	call	IDirect3DRMMaterial2_Release@PLT
	mov	r8, QWORD PTR 16[rbx]
	lea	rax, [r8+r12]
	mov	rdi, QWORD PTR [rax]
	test	rdi, rdi
	je	.L4
.L16:
	call	IDirect3DRMTexture3_Release@PLT
	add	rbp, 1
	mov	r8, QWORD PTR 16[rbx]
	cmp	QWORD PTR [rbx], rbp
	ja	.L5
.L6:
	mov	QWORD PTR [rbx], 0
	mov	rdi, r8
	call	heap_free@PLT
	mov	QWORD PTR 16[rbx], 0
	mov	rdi, QWORD PTR 8[rbx]
	call	heap_free@PLT
	mov	QWORD PTR 8[rbx], 0
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	clean_mesh_builder_data, .-clean_mesh_builder_data
	.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_meshbuilder.c_clean_mesh_builder_data.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	clean_mesh_builder_data, %function
clean_mesh_builder_data:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, #0
	mov	r5, r0
	mov	r1, r4
	add	r0, r0, #56
	bl	IDirect3DRMMeshBuilder3_SetName
	ldr	r0, [r5, #52]
	bl	heap_free
	ldr	r0, [r5, #40]
	str	r4, [r5, #52]
	str	r4, [r5, #48]
	str	r4, [r5, #44]
	bl	heap_free
	ldr	r0, [r5, #28]
	str	r4, [r5, #40]
	str	r4, [r5, #36]
	str	r4, [r5, #32]
	bl	heap_free
	ldr	r0, [r5, #16]
	str	r4, [r5, #28]
	str	r4, [r5, #24]
	str	r4, [r5, #20]
	bl	heap_free
	ldr	r3, [r5]
	ldr	r2, [r5, #8]
	cmp	r3, r4
	str	r4, [r5, #16]
	str	r4, [r5, #12]
	bne	.L5
	b	.L6
.L3:
	ldr	r0, [r3]
	cmp	r0, #0
	bne	.L16
.L4:
	ldr	r3, [r5]
	cmp	r3, r4
	bls	.L6
.L5:
	add	r3, r2, r4, lsl #3
	ldr	r0, [r3, #4]
	lsl	r6, r4, #3
	cmp	r0, #0
	add	r4, r4, #1
	beq	.L3
	bl	IDirect3DRMMaterial2_Release
	ldr	r2, [r5, #8]
	add	r3, r2, r6
	ldr	r0, [r3]
	cmp	r0, #0
	beq	.L4
.L16:
	bl	IDirect3DRMTexture3_Release
	ldr	r3, [r5]
	ldr	r2, [r5, #8]
	cmp	r3, r4
	bhi	.L5
.L6:
	mov	r4, #0
	mov	r0, r2
	str	r4, [r5]
	bl	heap_free
	ldr	r0, [r5, #4]
	str	r4, [r5, #8]
	bl	heap_free
	str	r4, [r5, #4]
	pop	{r4, r5, r6, pc}
	.size	clean_mesh_builder_data, .-clean_mesh_builder_data
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
