	.file	"292642.c"
	.intel_syntax noprefix
	.text
	.globl	binary_to_num
	.type	binary_to_num, @function
binary_to_num:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 49
	jne	.L3
	mov	eax, 11
	sub	eax, DWORD PTR -12[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	DWORD PTR -8[rbp], eax
.L3:
	add	DWORD PTR -12[rbp], 1
.L2:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L4
	mov	eax, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	binary_to_num, .-binary_to_num
	.globl	get_rating
	.type	get_rating, @function
get_rating:
.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, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	DWORD PTR -92[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -48[rbp]
	mov	edx, 13
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -52[rbp], eax
	mov	DWORD PTR -68[rbp], 0
	jmp	.L7
.L21:
	mov	DWORD PTR -64[rbp], 0
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -56[rbp], 0
	lea	rax, -22[rbp]
	mov	edx, 14
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -35[rbp]
	mov	edx, 13
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	jmp	.L8
.L12:
	mov	BYTE PTR -73[rbp], 0
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	lea	rcx, -48[rbp]
	lea	rax, -22[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L9
	jmp	.L8
.L9:
	lea	rcx, -22[rbp]
	lea	rax, -35[rbp]
	mov	edx, 12
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	add	DWORD PTR -56[rbp], 1
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	movzx	eax, BYTE PTR -22[rbp+rax]
	mov	BYTE PTR -73[rbp], al
	movsx	eax, BYTE PTR -73[rbp]
	cmp	eax, 48
	je	.L10
	cmp	eax, 49
	je	.L11
	jmp	.L8
.L10:
	add	DWORD PTR -64[rbp], 1
	jmp	.L8
.L11:
	add	DWORD PTR -60[rbp], 1
	nop
.L8:
	mov	rdx, QWORD PTR -88[rbp]
	lea	rax, -22[rbp]
	mov	esi, 14
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L12
	cmp	DWORD PTR -92[rbp], 0
	jne	.L13
	mov	eax, DWORD PTR -64[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jle	.L14
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	mov	BYTE PTR -48[rbp+rax], 48
	jmp	.L15
.L14:
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	mov	BYTE PTR -48[rbp+rax], 49
	jmp	.L15
.L13:
	cmp	DWORD PTR -92[rbp], 1
	jne	.L15
	mov	eax, DWORD PTR -64[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jle	.L16
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	mov	BYTE PTR -48[rbp+rax], 49
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	mov	BYTE PTR -48[rbp+rax], 48
.L15:
	cmp	DWORD PTR -56[rbp], 1
	je	.L17
	cmp	DWORD PTR -68[rbp], 11
	jne	.L18
.L17:
	cmp	DWORD PTR -56[rbp], 1
	jne	.L19
	lea	rcx, -35[rbp]
	lea	rax, -48[rbp]
	mov	edx, 12
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
.L19:
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	binary_to_num
	mov	DWORD PTR -72[rbp], eax
	jmp	.L20
.L18:
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	rewind@PLT
	add	DWORD PTR -68[rbp], 1
.L7:
	cmp	DWORD PTR -68[rbp], 11
	jle	.L21
.L20:
	mov	eax, DWORD PTR -52[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	eax, DWORD PTR -72[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_rating, .-get_rating
	.section	.rodata
.LC0:
	.string	"input3.txt"
.LC1:
	.string	"r"
.LC2:
	.string	"File not found."
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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
	lea	rax, .LC0[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L25
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L25:
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	get_rating
	mov	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	get_rating
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	imul	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"292642.c"
	.text
	.align	2
	.global	binary_to_num
	.syntax unified
	.arm
	.fpu softvfp
	.type	binary_to_num, %function
binary_to_num:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L2
.L4:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L3
	ldr	r3, [fp, #-16]
	rsb	r3, r3, #11
	mov	r2, #1
	lsl	r3, r2, r3
	ldr	r2, [fp, #-12]
	orr	r3, r2, r3
	str	r3, [fp, #-12]
.L3:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L4
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	binary_to_num, .-binary_to_num
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_rating
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_rating, %function
get_rating:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #56
	mov	r2, #13
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, [fp, #-88]
	bl	ftell
	str	r0, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L7
.L21:
	mov	r3, #0
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-64]
	sub	r3, fp, #24
	mov	r2, #14
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #40
	mov	r2, #13
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L8
.L12:
	mov	r3, #0
	strb	r3, [fp, #-81]
	ldr	r2, [fp, #-76]
	sub	r1, fp, #56
	sub	r3, fp, #24
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	b	.L8
.L9:
	sub	r1, fp, #24
	sub	r3, fp, #40
	mov	r2, #12
	mov	r0, r3
	bl	strncpy
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
	sub	r2, fp, #24
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-81]
	ldrb	r3, [fp, #-81]	@ zero_extendqisi2
	cmp	r3, #48
	beq	.L10
	cmp	r3, #49
	beq	.L11
	b	.L8
.L10:
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
	b	.L8
.L11:
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
	nop
.L8:
	sub	r3, fp, #24
	ldr	r2, [fp, #-88]
	mov	r1, #14
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bne	.L13
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	ble	.L14
	sub	r2, fp, #56
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	mov	r2, #48
	strb	r2, [r3]
	b	.L15
.L14:
	sub	r2, fp, #56
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	mov	r2, #49
	strb	r2, [r3]
	b	.L15
.L13:
	ldr	r3, [fp, #-92]
	cmp	r3, #1
	bne	.L15
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	ble	.L16
	sub	r2, fp, #56
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	mov	r2, #49
	strb	r2, [r3]
	b	.L15
.L16:
	sub	r2, fp, #56
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	mov	r2, #48
	strb	r2, [r3]
.L15:
	ldr	r3, [fp, #-64]
	cmp	r3, #1
	beq	.L17
	ldr	r3, [fp, #-76]
	cmp	r3, #11
	bne	.L18
.L17:
	ldr	r3, [fp, #-64]
	cmp	r3, #1
	bne	.L19
	sub	r1, fp, #40
	sub	r3, fp, #56
	mov	r2, #12
	mov	r0, r3
	bl	strncpy
.L19:
	sub	r3, fp, #56
	mov	r0, r3
	bl	binary_to_num
	str	r0, [fp, #-80]
	b	.L20
.L18:
	ldr	r0, [fp, #-88]
	bl	rewind
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L7:
	ldr	r3, [fp, #-76]
	cmp	r3, #11
	ble	.L21
.L20:
	mov	r2, #0
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-88]
	bl	fseek
	ldr	r3, [fp, #-80]
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC0
	.size	get_rating, .-get_rating
	.section	.rodata
	.align	2
.LC1:
	.ascii	"input3.txt\000"
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.ascii	"File not found.\000"
	.align	2
.LC4:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L29
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r1, .L29+4
	ldr	r0, [fp, #-20]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L27
	ldr	r0, .L29+8
	bl	puts
	mov	r0, #1
	bl	exit
.L27:
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	get_rating
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	rewind
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	get_rating
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	mul	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L29+12
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
