	.file	"603097.c"
	.intel_syntax noprefix
	.text
	.globl	spaces
	.section	.rodata
	.align 8
	.type	spaces, @object
	.size	spaces, 9
spaces:
	.string	"        "
	.text
	.globl	unexpandfile
	.type	unexpandfile, @function
unexpandfile:
.LFB0:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	WORD PTR -18[rbp], 9
	mov	BYTE PTR -41[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	jmp	.L2
.L9:
	cmp	QWORD PTR -40[rbp], -1
	jne	.L3
	mov	eax, 1
	jmp	.L10
.L3:
	movzx	eax, BYTE PTR -41[rbp]
	cmp	al, 32
	jne	.L5
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, 1
	mov	rsi, -1
	mov	edi, eax
	call	lseek@PLT
	cmp	rax, -1
	jne	.L6
	mov	eax, 2
	jmp	.L10
.L6:
	lea	rcx, -16[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], -1
	jne	.L7
	mov	eax, 3
	jmp	.L10
.L7:
	lea	rax, -16[rbp]
	mov	edx, 8
	mov	rsi, rax
	lea	rdi, spaces[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L8
	lea	rax, -18[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	jmp	.L2
.L8:
	mov	rdx, QWORD PTR -32[rbp]
	lea	rax, -16[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	jmp	.L2
.L5:
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -41[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
.L2:
	lea	rcx, -41[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L9
	mov	eax, 0
.L10:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	unexpandfile, .-unexpandfile
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 1
	jne	.L13
	mov	edi, 0
	call	unexpandfile
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L14
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	perror@PLT
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L15
.L13:
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	mov	DWORD PTR -12[rbp], eax
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	jmp	.L16
.L19:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	jne	.L17
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	perror@PLT
	jmp	.L18
.L17:
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	unexpandfile
	test	rax, rax
	je	.L18
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	perror@PLT
.L18:
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	close@PLT
	add	DWORD PTR -16[rbp], 1
.L16:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jl	.L19
.L14:
	mov	eax, 0
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"603097.c"
	.text
	.global	spaces
	.section	.rodata
	.align	2
	.type	spaces, %object
	.size	spaces, 9
spaces:
	.ascii	"        \000"
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	unexpandfile
	.syntax unified
	.arm
	.fpu softvfp
	.type	unexpandfile, %function
unexpandfile:
	@ 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]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #9
	strh	r3, [fp, #-20]	@ movhi
	mov	r3, #0
	strb	r3, [fp, #-29]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L2
.L9:
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L3
	mov	r3, #1
	b	.L10
.L3:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L5
	mov	r2, #1
	mvn	r1, #0
	ldr	r0, [fp, #-40]
	bl	lseek
	mov	r3, r0
	cmn	r3, #1
	bne	.L6
	mov	r3, #2
	b	.L10
.L6:
	sub	r3, fp, #16
	mov	r2, #8
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	read
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L7
	mov	r3, #3
	b	.L10
.L7:
	sub	r3, fp, #16
	mov	r2, #8
	mov	r1, r3
	ldr	r0, .L12+4
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	sub	r3, fp, #20
	mov	r2, #1
	mov	r1, r3
	mov	r0, #1
	bl	write
	b	.L2
.L8:
	ldr	r2, [fp, #-24]
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #1
	bl	write
	b	.L2
.L5:
	ldr	r2, [fp, #-28]
	sub	r3, fp, #29
	mov	r1, r3
	mov	r0, #1
	bl	write
.L2:
	sub	r3, fp, #29
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	read
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L9
	mov	r3, #0
.L10:
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	spaces
	.size	unexpandfile, .-unexpandfile
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bne	.L15
	mov	r0, #0
	bl	unexpandfile
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	ldr	r3, [fp, #-8]
	b	.L17
.L15:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L18
.L21:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L19
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	b	.L20
.L19:
	ldr	r0, [fp, #-12]
	bl	unexpandfile
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
.L20:
	ldr	r0, [fp, #-12]
	bl	close
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L18:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L21
.L16:
	mov	r3, #0
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
