	.file	"1004023.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Need a .rsc name dummy\n"
.LC1:
	.string	"rb"
.LC2:
	.string	"Couldn`t open file %s\n"
.LC3:
	.string	"Magic         % 10ld   0x%lx\n"
	.align 8
.LC4:
	.string	"num resources % 8ld     0x%lx\n"
	.align 8
.LC5:
	.string	"Version       % 8ld     0x%lx\n"
	.align 8
.LC6:
	.string	"ID            % 8ld     0x%lx\n"
	.align 8
.LC7:
	.string	"t1            % 8ld     0x%lx\n"
.LC8:
	.string	"ID            % 8ld     - "
.LC9:
	.string	"%s file ptr @ %ld\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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -84[rbp], 1
	jg	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L3
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -64[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -48[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -56[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -40[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -32[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -68[rbp], 0
	jmp	.L4
.L7:
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -24[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -69[rbp], al
	cmp	BYTE PTR -69[rbp], 0
	je	.L5
	movsx	eax, BYTE PTR -69[rbp]
	mov	edi, eax
	call	putchar@PLT
.L5:
	cmp	BYTE PTR -69[rbp], 0
	jne	.L6
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -68[rbp], 1
.L4:
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	cmp	rdx, rax
	jb	.L7
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	QWORD PTR -16[rbp], 0
	je	.L10
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L10:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.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	"1004023.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Need a .rsc name dummy\012\000"
	.align	2
.LC1:
	.ascii	"rb\000"
	.align	2
.LC2:
	.ascii	"Couldn`t open file %s\012\000"
	.align	2
.LC3:
	.ascii	"Magic         % 10ld   0x%lx\012\000"
	.align	2
.LC4:
	.ascii	"num resources % 8ld     0x%lx\012\000"
	.align	2
.LC5:
	.ascii	"Version       % 8ld     0x%lx\012\000"
	.align	2
.LC6:
	.ascii	"ID            % 8ld     0x%lx\012\000"
	.align	2
.LC7:
	.ascii	"t1            % 8ld     0x%lx\012\000"
	.align	2
.LC8:
	.ascii	"ID            % 8ld     - \000"
	.align	2
.LC9:
	.ascii	"%s file ptr @ %ld\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-56]
	cmp	r3, #1
	bgt	.L2
	ldr	r3, .L11+4
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L11+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L11+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L11+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L11+16
	bl	fprintf
	mov	r0, #1
	bl	exit
.L3:
	sub	r0, fp, #48
	ldr	r3, [fp, #-20]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	sub	r0, fp, #40
	ldr	r3, [fp, #-20]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	sub	r0, fp, #44
	ldr	r3, [fp, #-20]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-48]
	mov	r1, r3
	ldr	r0, .L11+20
	bl	printf
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-44]
	mov	r1, r3
	ldr	r0, .L11+24
	bl	printf
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-40]
	mov	r1, r3
	ldr	r0, .L11+28
	bl	printf
	sub	r0, fp, #36
	ldr	r3, [fp, #-20]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-36]
	mov	r1, r3
	ldr	r0, .L11+32
	bl	printf
	sub	r0, fp, #32
	ldr	r3, [fp, #-20]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-32]
	mov	r1, r3
	ldr	r0, .L11+36
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L4
.L7:
	sub	r0, fp, #28
	ldr	r3, [fp, #-20]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-28]
	mov	r1, r3
	ldr	r0, .L11+40
	bl	printf
.L6:
	ldr	r0, [fp, #-20]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-49]
	ldrb	r3, [fp, #-49]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L5
	ldrb	r3, [fp, #-49]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
.L5:
	ldrb	r3, [fp, #-49]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L6
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L4:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	bcc	.L7
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r4, [r3]
	ldr	r0, [fp, #-20]
	bl	ftell
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L11+44
	bl	printf
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L10
	ldr	r0, [fp, #-20]
	bl	fclose
.L10:
	nop
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC10
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
