	.file	"290333.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"the_stack_data/290333.c"
	.align 8
.LC1:
	.string	"argc >= 2 && \"Expecting at least one command-line argument.\""
.LC2:
	.string	"r"
	.align 8
.LC3:
	.string	"inputStream && \"Failed to open input stream.\""
.LC4:
	.string	"0"
.LC5:
	.string	"1"
	.text
	.globl	main
	.type	main, @function
main:
.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, 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
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 12
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L2:
	mov	rax, QWORD PTR stdout[rip]
	mov	ecx, 256
	mov	edx, 0
	lea	rsi, stdoutBuffer.0[rip]
	mov	rdi, rax
	call	setvbuf@PLT
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L3
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 21
	lea	rsi, .LC0[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L3:
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	jmp	.L4
.L14:
	mov	DWORD PTR -76[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -1[rax]
	lea	rax, -48[rbp]
	add	rax, rdx
	mov	QWORD PTR -64[rbp], rax
	jmp	.L5
.L11:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L17
	add	QWORD PTR -72[rbp], 1
	mov	rax, QWORD PTR -72[rbp]
	and	eax, 1
	test	rax, rax
	je	.L8
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	eax, DWORD PTR -76[rbp]
	add	eax, edx
	sub	eax, 48
	mov	DWORD PTR -76[rbp], eax
	jmp	.L7
.L8:
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	eax, eax
	mov	BYTE PTR -77[rbp], al
	cmp	BYTE PTR -77[rbp], 9
	jbe	.L9
	movzx	eax, BYTE PTR -77[rbp]
	sub	eax, 9
	jmp	.L10
.L9:
	movzx	eax, BYTE PTR -77[rbp]
.L10:
	add	DWORD PTR -76[rbp], eax
	jmp	.L7
.L17:
	nop
.L7:
	sub	QWORD PTR -64[rbp], 1
.L5:
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L11
	mov	ecx, DWORD PTR -76[rbp]
	mov	edx, ecx
	mov	eax, 3435973837
	imul	rax, rdx
	shr	rax, 32
	mov	edx, eax
	shr	edx, 3
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	test	edx, edx
	je	.L12
	lea	rax, .LC4[rip]
	jmp	.L13
.L12:
	lea	rax, .LC5[rip]
.L13:
	mov	rdi, rax
	call	puts@PLT
.L4:
	mov	rdx, QWORD PTR -56[rbp]
	lea	rax, -48[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L14
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 5
__PRETTY_FUNCTION__.1:
	.string	"main"
	.local	stdoutBuffer.0
	.comm	stdoutBuffer.0,256,32
	.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	"290333.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/290333.c\000"
	.align	2
.LC1:
	.ascii	"argc >= 2 && \"Expecting at least one command-line "
	.ascii	"argument.\"\000"
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.ascii	"inputStream && \"Failed to open input stream.\"\000"
	.align	2
.LC4:
	.ascii	"0\000"
	.align	2
.LC5:
	.ascii	"1\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-64]
	cmp	r3, #1
	bgt	.L2
	ldr	r3, .L18+4
	mov	r2, #12
	ldr	r1, .L18+8
	ldr	r0, .L18+12
	bl	__assert_fail
.L2:
	ldr	r3, .L18+16
	ldr	r0, [r3]
	mov	r3, #256
	mov	r2, #0
	ldr	r1, .L18+20
	bl	setvbuf
	ldr	r3, [fp, #-68]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L18+24
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L18+4
	mov	r2, #21
	ldr	r1, .L18+8
	ldr	r0, .L18+28
	bl	__assert_fail
.L3:
	mov	r3, #0
	str	r3, [fp, #-40]
	sub	r3, fp, #36
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	str	r2, [r3, #16]
	str	r2, [r3, #20]
	str	r2, [r3, #24]
	b	.L4
.L14:
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-52]
	sub	r3, fp, #40
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #40
	add	r3, r2, r3
	str	r3, [fp, #-48]
	b	.L5
.L11:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	sub	r3, r3, #48
	str	r3, [fp, #-56]
	b	.L7
.L8:
	ldr	r3, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	and	r3, r3, #255
	lsl	r3, r3, #1
	strb	r3, [fp, #-57]
	ldrb	r3, [fp, #-57]	@ zero_extendqisi2
	cmp	r3, #9
	bls	.L9
	ldrb	r3, [fp, #-57]	@ zero_extendqisi2
	sub	r3, r3, #9
	b	.L10
.L9:
	ldrb	r3, [fp, #-57]	@ zero_extendqisi2
.L10:
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	str	r3, [fp, #-56]
	b	.L7
.L17:
	nop
.L7:
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	str	r3, [fp, #-48]
.L5:
	ldr	r3, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L11
	ldr	r1, [fp, #-56]
	ldr	r3, .L18+32
	umull	r2, r3, r1, r3
	lsr	r2, r3, #3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	cmp	r2, #0
	beq	.L12
	ldr	r3, .L18+36
	b	.L13
.L12:
	ldr	r3, .L18+40
.L13:
	mov	r0, r3
	bl	puts
.L4:
	sub	r3, fp, #40
	ldr	r2, [fp, #-44]
	mov	r1, #32
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC6
	.word	__PRETTY_FUNCTION__.4905
	.word	.LC0
	.word	.LC1
	.word	stdout
	.word	stdoutBuffer.4906
	.word	.LC2
	.word	.LC3
	.word	-858993459
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.4905, %object
	.size	__PRETTY_FUNCTION__.4905, 5
__PRETTY_FUNCTION__.4905:
	.ascii	"main\000"
	.local	stdoutBuffer.4906
	.comm	stdoutBuffer.4906,256,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
