	.file	"288104.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"i: %d\n"
.LC1:
	.string	"open"
.LC2:
	.string	"pass"
	.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	edi, 4
	call	sysconf@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	call	abort@PLT
.L2:
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR [rax], 47
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	DWORD PTR -16[rbp], 0
	jmp	.L3
.L8:
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	test	eax, eax
	jns	.L4
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 4
	cmp	DWORD PTR -16[rbp], eax
	jge	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -16[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	abort@PLT
.L5:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 24
	je	.L9
	lea	rdi, .LC1[rip]
	call	perror@PLT
	call	abort@PLT
.L4:
	add	DWORD PTR -16[rbp], 1
.L3:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jge	.L8
	call	abort@PLT
.L9:
	nop
.L7:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
	.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	"288104.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/\000"
	.align	2
.LC1:
	.ascii	"i: %d\012\000"
	.align	2
.LC2:
	.ascii	"open\000"
	.align	2
.LC3:
	.ascii	"pass\000"
	.text
	.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]
	mov	r0, #4
	bl	sysconf
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	bl	abort
.L2:
	ldr	r3, [fp, #-8]
	ldr	r2, .L10
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	strcat
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L3
.L8:
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	open
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	ldr	r3, [fp, #-12]
	sub	r3, r3, #4
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bge	.L5
	ldr	r3, .L10+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L10+8
	mov	r0, r3
	bl	fprintf
	bl	abort
.L5:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #24
	beq	.L9
	ldr	r0, .L10+12
	bl	perror
	bl	abort
.L4:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L3:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bge	.L8
	bl	abort
.L9:
	nop
.L7:
	ldr	r0, .L10+16
	bl	puts
	mov	r0, #0
	bl	exit
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
