	.file	"69789.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"USAGE: %s modifing.jp2 adding.xml\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -13[rbp], 543976824
	mov	BYTE PTR -9[rbp], 0
	cmp	DWORD PTR -52[rbp], 2
	jg	.L2
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L6
.L2:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	open_jp2file
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L4
	mov	eax, -1
	jmp	.L6
.L4:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rdx, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	read_xmlfile
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	test	rax, rax
	jns	.L5
	mov	eax, -1
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	sar	rax, 24
	movzx	eax, al
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	mov	rax, QWORD PTR -24[rbp]
	sar	rax, 16
	movzx	eax, al
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	mov	rax, QWORD PTR -24[rbp]
	sar	rax, 8
	movzx	eax, al
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, al
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -13[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L6:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC1:
	.string	"a+b"
.LC2:
	.string	"Original JP2 %s not found\n"
	.align 8
.LC3:
	.string	"Original JP2 %s broken (fseek error)\n"
	.align 8
.LC4:
	.string	"Original JP2 %s broken (read error)\n"
.LC5:
	.string	"jP  \r\n\207\n"
	.align 8
.LC6:
	.string	"No JPEG 2000 Signature box in target %s\n"
	.text
	.globl	open_jp2file
	.type	open_jp2file, @function
open_jp2file:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L10
.L9:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	cmp	eax, -1
	jne	.L11
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L10
.L11:
	mov	edi, 12
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 12
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 1
	je	.L12
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L10
.L12:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L13
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L13
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L13
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	cmp	al, 12
	jne	.L13
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4
	mov	edx, 8
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L14
.L13:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L10
.L14:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	open_jp2file, .-open_jp2file
	.section	.rodata
.LC7:
	.string	"r"
.LC8:
	.string	"XML file %s not found\n"
	.align 8
.LC9:
	.string	"XML file %s broken (seek error)\n"
.LC10:
	.string	"the_stack_data/69789.c"
.LC11:
	.string	"*fsize >= 0"
	.align 8
.LC12:
	.string	"XML file %s broken (read error)\n"
	.text
	.globl	read_xmlfile
	.type	read_xmlfile, @function
read_xmlfile:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L16
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L17
.L16:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	cmp	eax, -1
	jne	.L18
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	jmp	.L17
.L18:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rax, -1
	jne	.L19
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	jmp	.L17
.L19:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jns	.L20
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 164
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L20:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	cmp	eax, -1
	jne	.L21
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	jmp	.L17
.L21:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 1
	je	.L22
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	jmp	.L17
.L22:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -8[rbp]
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	read_xmlfile, .-read_xmlfile
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 13
__PRETTY_FUNCTION__.0:
	.string	"read_xmlfile"
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"69789.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"USAGE: %s modifing.jp2 adding.xml\012\000"
	.align	2
.LC0:
	.ascii	"xml \000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L8+4
	sub	r3, fp, #16
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strb	r1, [r3]
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	bgt	.L2
	ldr	r3, .L8+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L8+12
	bl	fprintf
	mvn	r3, #0
	b	.L6
.L2:
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	open_jp2file
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L4
	mvn	r3, #0
	b	.L6
.L4:
	ldr	r3, [fp, #-44]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r2, fp, #32
	mov	r1, r2
	mov	r0, r3
	bl	read_xmlfile
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L5
	mvn	r3, #0
	b	.L6
.L5:
	ldr	r3, [fp, #-32]
	add	r3, r3, #8
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	lsr	r3, r3, #24
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	fputc
	ldr	r3, [fp, #-20]
	asr	r3, r3, #16
	and	r3, r3, #255
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	fputc
	ldr	r3, [fp, #-20]
	asr	r3, r3, #8
	and	r3, r3, #255
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	fputc
	ldr	r3, [fp, #-20]
	and	r3, r3, #255
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	fputc
	sub	r0, fp, #16
	ldr	r3, [fp, #-28]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	ldr	r3, [fp, #-32]
	mov	r1, r3
	ldr	r3, [fp, #-28]
	mov	r2, #1
	ldr	r0, [fp, #-24]
	bl	fwrite
	ldr	r0, [fp, #-24]
	bl	free
	ldr	r0, [fp, #-28]
	bl	fclose
	mov	r3, #0
.L6:
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC2
	.word	.LC0
	.word	stderr
	.word	.LC1
	.size	main, .-main
	.section	.rodata
	.align	2
.LC3:
	.ascii	"a+b\000"
	.align	2
.LC4:
	.ascii	"Original JP2 %s not found\012\000"
	.align	2
.LC5:
	.ascii	"Original JP2 %s broken (fseek error)\012\000"
	.align	2
.LC6:
	.ascii	"Original JP2 %s broken (read error)\012\000"
	.align	2
.LC7:
	.ascii	"jP  \015\012\207\012\000"
	.align	2
.LC8:
	.ascii	"No JPEG 2000 Signature box in target %s\012\000"
	.text
	.align	2
	.global	open_jp2file
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_jp2file, %function
open_jp2file:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r1, .L17
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L11
	ldr	r3, .L17+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L17+8
	mov	r0, r3
	bl	fprintf
	mov	r3, #0
	b	.L12
.L11:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	fseek
	mov	r3, r0
	cmn	r3, #1
	bne	.L13
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r3, .L17+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L17+12
	mov	r0, r3
	bl	fprintf
	mov	r3, #0
	b	.L12
.L13:
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	mov	r2, #1
	mov	r1, #12
	ldr	r0, [fp, #-8]
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	beq	.L14
	ldr	r0, [fp, #-8]
	bl	free
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r3, .L17+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L17+16
	mov	r0, r3
	bl	fprintf
	mov	r3, #0
	b	.L12
.L14:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L15
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L15
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L15
	ldr	r3, [fp, #-8]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #12
	bne	.L15
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	mov	r2, #8
	ldr	r1, .L17+20
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
.L15:
	ldr	r0, [fp, #-8]
	bl	free
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r3, .L17+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L17+24
	mov	r0, r3
	bl	fprintf
	mov	r3, #0
	b	.L12
.L16:
	ldr	r0, [fp, #-8]
	bl	free
	ldr	r3, [fp, #-12]
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC3
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	open_jp2file, .-open_jp2file
	.section	.rodata
	.align	2
.LC9:
	.ascii	"r\000"
	.align	2
.LC10:
	.ascii	"XML file %s not found\012\000"
	.align	2
.LC11:
	.ascii	"XML file %s broken (seek error)\012\000"
	.align	2
.LC12:
	.ascii	"the_stack_data/69789.c\000"
	.align	2
.LC13:
	.ascii	"*fsize >= 0\000"
	.align	2
.LC14:
	.ascii	"XML file %s broken (read error)\012\000"
	.text
	.align	2
	.global	read_xmlfile
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_xmlfile, %function
read_xmlfile:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r1, .L27
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L20
	ldr	r3, .L27+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L27+8
	mov	r0, r3
	bl	fprintf
	mov	r3, #0
	b	.L21
.L20:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	fseek
	mov	r3, r0
	cmn	r3, #1
	bne	.L22
	ldr	r3, .L27+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L27+12
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-12]
	bl	fclose
	mov	r3, #0
	b	.L21
.L22:
	ldr	r0, [fp, #-12]
	bl	ftell
	mov	r2, r0
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L23
	ldr	r3, .L27+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L27+12
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-12]
	bl	fclose
	mov	r3, #0
	b	.L21
.L23:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L24
	ldr	r3, .L27+16
	mov	r2, #164
	ldr	r1, .L27+20
	ldr	r0, .L27+24
	bl	__assert_fail
.L24:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	fseek
	mov	r3, r0
	cmn	r3, #1
	bne	.L25
	ldr	r3, .L27+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L27+12
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-12]
	bl	fclose
	mov	r3, #0
	b	.L21
.L25:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r3, [fp, #-12]
	mov	r2, #1
	ldr	r0, [fp, #-8]
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	beq	.L26
	ldr	r3, .L27+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L27+28
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-8]
	bl	free
	ldr	r0, [fp, #-12]
	bl	fclose
	mov	r3, #0
	b	.L21
.L26:
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r3, [fp, #-8]
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC9
	.word	stderr
	.word	.LC10
	.word	.LC11
	.word	__PRETTY_FUNCTION__.5334
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	read_xmlfile, .-read_xmlfile
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5334, %object
	.size	__PRETTY_FUNCTION__.5334, 13
__PRETTY_FUNCTION__.5334:
	.ascii	"read_xmlfile\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
