	.file	"extr_hds.c_cleanup_Manifest.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cleanup_Manifest, @function
cleanup_Manifest:
.LFB0:
	.cfi_startproc
	endbr64
	mov	ecx, DWORD PTR MAX_XML_DEPTH[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	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
	test	ecx, ecx
	je	.L2
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 24[rbx]
	mov	edx, ebp
	add	ebp, 1
	mov	edi, DWORD PTR [rax+rdx*4]
	call	free@PLT
	cmp	DWORD PTR MAX_XML_DEPTH[rip], ebp
	ja	.L3
.L2:
	mov	edx, DWORD PTR MAX_MEDIA_ELEMENTS[rip]
	test	edx, edx
	je	.L4
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 16[rbx]
	mov	ebp, r12d
	add	r12d, 1
	sal	rbp, 4
	mov	edi, DWORD PTR 12[rax+rbp]
	call	free@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	edi, DWORD PTR 8[rax+rbp]
	call	free@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	edi, DWORD PTR 4[rax+rbp]
	call	free@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	edi, DWORD PTR [rax+rbp]
	call	free@PLT
	cmp	DWORD PTR MAX_MEDIA_ELEMENTS[rip], r12d
	ja	.L5
.L4:
	mov	eax, DWORD PTR MAX_BOOTSTRAP_INFO[rip]
	test	eax, eax
	je	.L6
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR 8[rbx]
	mov	ebp, r12d
	add	r12d, 1
	sal	rbp, 4
	mov	edi, DWORD PTR 12[rax+rbp]
	call	free@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR 8[rax+rbp]
	call	free@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR 4[rax+rbp]
	call	free@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR [rax+rbp]
	call	free@PLT
	cmp	DWORD PTR MAX_BOOTSTRAP_INFO[rip], r12d
	ja	.L7
.L6:
	mov	rdi, QWORD PTR [rbx]
	test	rdi, rdi
	jne	.L14
	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
.L14:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	xml_ReaderDelete@PLT
	.cfi_endproc
.LFE0:
	.size	cleanup_Manifest, .-cleanup_Manifest
	.comm	MAX_XML_DEPTH,4,4
	.comm	MAX_MEDIA_ELEMENTS,4,4
	.comm	MAX_BOOTSTRAP_INFO,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_hds.c_cleanup_Manifest.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cleanup_Manifest, %function
cleanup_Manifest:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, .L23
	mov	r4, r0
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L2
	mov	r5, #0
.L3:
	ldr	r3, [r4, #12]
	ldr	r0, [r3, r5, lsl #2]
	bl	free
	ldr	r3, [r6]
	add	r5, r5, #1
	cmp	r3, r5
	bhi	.L3
.L2:
	ldr	r7, .L23+4
	ldr	r3, [r7]
	cmp	r3, #0
	beq	.L4
	mov	r5, #0
.L5:
	ldr	r3, [r4, #8]
	lsl	r6, r5, #4
	add	r3, r3, r5, lsl #4
	ldr	r0, [r3, #12]
	bl	free
	ldr	r3, [r4, #8]
	add	r3, r3, r6
	ldr	r0, [r3, #8]
	bl	free
	ldr	r3, [r4, #8]
	add	r3, r3, r6
	ldr	r0, [r3, #4]
	bl	free
	ldr	r3, [r4, #8]
	ldr	r0, [r3, r5, lsl #4]
	bl	free
	ldr	r3, [r7]
	add	r5, r5, #1
	cmp	r3, r5
	bhi	.L5
.L4:
	ldr	r7, .L23+8
	ldr	r3, [r7]
	cmp	r3, #0
	beq	.L6
	mov	r5, #0
.L7:
	ldr	r3, [r4, #4]
	lsl	r6, r5, #4
	add	r3, r3, r5, lsl #4
	ldr	r0, [r3, #12]
	bl	free
	ldr	r3, [r4, #4]
	add	r3, r3, r6
	ldr	r0, [r3, #8]
	bl	free
	ldr	r3, [r4, #4]
	add	r3, r3, r6
	ldr	r0, [r3, #4]
	bl	free
	ldr	r3, [r4, #4]
	ldr	r0, [r3, r5, lsl #4]
	bl	free
	ldr	r3, [r7]
	add	r5, r5, #1
	cmp	r3, r5
	bhi	.L7
.L6:
	ldr	r0, [r4]
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	pop	{r4, r5, r6, r7, r8, lr}
	b	xml_ReaderDelete
.L24:
	.align	2
.L23:
	.word	MAX_XML_DEPTH
	.word	MAX_MEDIA_ELEMENTS
	.word	MAX_BOOTSTRAP_INFO
	.size	cleanup_Manifest, .-cleanup_Manifest
	.comm	MAX_XML_DEPTH,4,4
	.comm	MAX_MEDIA_ELEMENTS,4,4
	.comm	MAX_BOOTSTRAP_INFO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
