	.file	"202160.c"
	.intel_syntax noprefix
	.text
	.globl	elem
	.bss
	.align 32
	.type	elem, @object
	.size	elem, 1024
elem:
	.zero	1024
	.globl	extra
	.section	.rodata
	.align 16
	.type	extra, @object
	.size	extra, 20
extra:
	.long	17
	.long	31
	.long	73
	.long	47
	.long	23
	.globl	hash
	.bss
	.align 16
	.type	hash, @object
	.size	hash, 16
hash:
	.zero	16
	.text
	.globl	reset_array
	.type	reset_array, @function
reset_array:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, elem[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 255
	jle	.L3
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	reset_array, .-reset_array
	.globl	reverse
	.type	reverse, @function
reverse:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	sub	eax, 1
	cdq
	shr	edx, 24
	add	eax, edx
	movzx	eax, al
	sub	eax, edx
	mov	DWORD PTR -16[rbp], eax
	mov	DWORD PTR -24[rbp], 0
	jmp	.L5
.L7:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	cdq
	shr	edx, 24
	add	eax, edx
	movzx	eax, al
	sub	eax, edx
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jns	.L6
	add	DWORD PTR -20[rbp], 256
.L6:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, elem[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, elem[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, elem[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, elem[rip]
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -24[rbp], 1
.L5:
	mov	eax, DWORD PTR -40[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -24[rbp], eax
	jl	.L7
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	reverse, .-reverse
	.globl	calc_hash
	.type	calc_hash, @function
calc_hash:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	call	reset_array
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	jmp	.L9
.L14:
	mov	DWORD PTR -24[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, edx
	mov	edi, eax
	call	reverse
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -4[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	cdq
	shr	edx, 24
	add	eax, edx
	movzx	eax, al
	sub	eax, edx
	mov	DWORD PTR -36[rbp], eax
	add	DWORD PTR -32[rbp], 1
	add	DWORD PTR -24[rbp], 1
.L10:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	cmp	QWORD PTR -64[rbp], rax
	ja	.L11
	mov	DWORD PTR -20[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, extra[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -8[rbp], eax
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, edx
	mov	edi, eax
	call	reverse
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	cdq
	shr	edx, 24
	add	eax, edx
	movzx	eax, al
	sub	eax, edx
	mov	DWORD PTR -36[rbp], eax
	add	DWORD PTR -32[rbp], 1
	add	DWORD PTR -20[rbp], 1
.L12:
	cmp	DWORD PTR -20[rbp], 4
	jle	.L13
	add	DWORD PTR -28[rbp], 1
.L9:
	cmp	DWORD PTR -28[rbp], 63
	jle	.L14
	mov	DWORD PTR -16[rbp], 0
	jmp	.L15
.L18:
	mov	BYTE PTR -37[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -16[rbp]
	sal	eax, 4
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, elem[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, eax
	movzx	eax, BYTE PTR -37[rbp]
	xor	eax, edx
	mov	BYTE PTR -37[rbp], al
	add	DWORD PTR -12[rbp], 1
.L16:
	cmp	DWORD PTR -12[rbp], 15
	jle	.L17
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rcx, hash[rip]
	movzx	edx, BYTE PTR -37[rbp]
	mov	BYTE PTR [rax+rcx], dl
	add	DWORD PTR -16[rbp], 1
.L15:
	cmp	DWORD PTR -16[rbp], 15
	jle	.L18
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	calc_hash, .-calc_hash
	.section	.rodata
.LC0:
	.string	"%02x"
	.text
	.globl	print_hash
	.type	print_hash, @function
print_hash:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], 0
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, hash[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L20:
	cmp	DWORD PTR -4[rbp], 15
	jle	.L21
	mov	rax, QWORD PTR stdout[rip]
	mov	rsi, rax
	mov	edi, 10
	call	putc@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	print_hash, .-print_hash
	.globl	count_bits
	.type	count_bits, @function
count_bits:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L23
.L27:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L24
.L26:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, hash[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	edx, al
	mov	eax, DWORD PTR -4[rbp]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	and	eax, 1
	test	eax, eax
	je	.L25
	add	DWORD PTR -12[rbp], 1
.L25:
	add	DWORD PTR -4[rbp], 1
.L24:
	cmp	DWORD PTR -4[rbp], 7
	jle	.L26
	add	DWORD PTR -8[rbp], 1
.L23:
	cmp	DWORD PTR -8[rbp], 15
	jle	.L27
	mov	eax, DWORD PTR -12[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	count_bits, .-count_bits
	.globl	disk
	.bss
	.align 32
	.type	disk, @object
	.size	disk, 32768
disk:
	.zero	32768
	.text
	.globl	mark_neighbours
	.type	mark_neighbours, @function
mark_neighbours:
.LFB11:
	.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	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	eax, DWORD PTR -24[rbp]
	sal	eax, 7
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, [rax+rax]
	lea	rax, disk[rip]
	movzx	eax, WORD PTR [rdx+rax]
	cmp	ax, 1
	je	.L30
	mov	eax, 0
	jmp	.L31
.L30:
	mov	eax, DWORD PTR -28[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, [rax+rax]
	lea	rax, disk[rip]
	mov	WORD PTR [rdx+rax], cx
	cmp	DWORD PTR -20[rbp], 0
	jle	.L32
	mov	eax, DWORD PTR -20[rbp]
	lea	ecx, -1[rax]
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	mov	edi, ecx
	call	mark_neighbours
.L32:
	cmp	DWORD PTR -20[rbp], 126
	jg	.L33
	mov	eax, DWORD PTR -20[rbp]
	lea	ecx, 1[rax]
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	mov	edi, ecx
	call	mark_neighbours
.L33:
	cmp	DWORD PTR -24[rbp], 0
	jle	.L34
	mov	eax, DWORD PTR -24[rbp]
	lea	ecx, -1[rax]
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	mark_neighbours
.L34:
	cmp	DWORD PTR -24[rbp], 126
	jg	.L35
	mov	eax, DWORD PTR -24[rbp]
	lea	ecx, 1[rax]
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	mark_neighbours
.L35:
	mov	eax, 1
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	mark_neighbours, .-mark_neighbours
	.globl	calc_regions
	.type	calc_regions, @function
calc_regions:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], 2
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L37
.L40:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L38
.L39:
	mov	edx, DWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	mark_neighbours
	add	DWORD PTR -16[rbp], eax
	add	DWORD PTR -8[rbp], 1
.L38:
	cmp	DWORD PTR -8[rbp], 127
	jle	.L39
	add	DWORD PTR -12[rbp], 1
.L37:
	cmp	DWORD PTR -12[rbp], 127
	jle	.L40
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	calc_regions, .-calc_regions
	.section	.rodata
.LC1:
	.string	"input: \"%s\" (%lu)\n"
.LC2:
	.string	"%s-%d"
.LC3:
	.string	"total bits: %d\n"
.LC4:
	.string	"total regions: %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 320
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -272[rbp]
	mov	esi, 128
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L43
	mov	BYTE PTR -272[rbp], 0
	jmp	.L44
.L43:
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	eax, 1
	mov	DWORD PTR -288[rbp], eax
	mov	eax, DWORD PTR -288[rbp]
	cdqe
	movzx	eax, BYTE PTR -272[rbp+rax]
	cmp	al, 10
	jne	.L44
	mov	eax, DWORD PTR -288[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], 0
.L44:
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -312[rbp], 0
	mov	DWORD PTR -308[rbp], 0
	jmp	.L45
.L50:
	mov	ecx, DWORD PTR -308[rbp]
	lea	rdx, -272[rbp]
	lea	rax, -144[rbp]
	mov	r8d, ecx
	mov	rcx, rdx
	lea	rdx, .LC2[rip]
	mov	esi, 128
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	DWORD PTR -280[rbp], eax
	mov	eax, DWORD PTR -280[rbp]
	movsx	rdx, eax
	lea	rax, -144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	calc_hash
	mov	DWORD PTR -304[rbp], 0
	jmp	.L46
.L49:
	mov	eax, DWORD PTR -304[rbp]
	cdqe
	lea	rdx, hash[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	mov	BYTE PTR -313[rbp], al
	mov	DWORD PTR -300[rbp], 0
	jmp	.L47
.L48:
	mov	eax, DWORD PTR -308[rbp]
	sal	eax, 7
	mov	edx, eax
	mov	eax, DWORD PTR -304[rbp]
	lea	ecx, 0[0+rax*8]
	mov	eax, DWORD PTR -300[rbp]
	add	eax, ecx
	add	eax, edx
	mov	DWORD PTR -276[rbp], eax
	movzx	edx, BYTE PTR -313[rbp]
	mov	eax, 7
	sub	eax, DWORD PTR -300[rbp]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	and	eax, 1
	test	eax, eax
	setne	al
	movzx	eax, al
	mov	edx, DWORD PTR -276[rbp]
	movsx	rdx, edx
	lea	rcx, [rdx+rdx]
	lea	rdx, disk[rip]
	mov	WORD PTR [rcx+rdx], ax
	mov	eax, DWORD PTR -276[rbp]
	cdqe
	lea	rdx, [rax+rax]
	lea	rax, disk[rip]
	movzx	eax, WORD PTR [rdx+rax]
	movzx	eax, ax
	add	DWORD PTR -312[rbp], eax
	add	DWORD PTR -300[rbp], 1
.L47:
	cmp	DWORD PTR -300[rbp], 7
	jle	.L48
	add	DWORD PTR -304[rbp], 1
.L46:
	cmp	DWORD PTR -304[rbp], 15
	jle	.L49
	add	DWORD PTR -308[rbp], 1
.L45:
	cmp	DWORD PTR -308[rbp], 127
	jle	.L50
	mov	DWORD PTR -296[rbp], 0
	jmp	.L51
.L56:
	mov	DWORD PTR -292[rbp], 0
	jmp	.L52
.L55:
	mov	eax, DWORD PTR -296[rbp]
	sal	eax, 7
	mov	edx, eax
	mov	eax, DWORD PTR -292[rbp]
	add	eax, edx
	mov	DWORD PTR -284[rbp], eax
	mov	rax, QWORD PTR stdout[rip]
	mov	edx, DWORD PTR -284[rbp]
	movsx	rdx, edx
	lea	rcx, [rdx+rdx]
	lea	rdx, disk[rip]
	movzx	edx, WORD PTR [rcx+rdx]
	test	dx, dx
	je	.L53
	mov	edx, 35
	jmp	.L54
.L53:
	mov	edx, 46
.L54:
	mov	rsi, rax
	mov	edi, edx
	call	putc@PLT
	add	DWORD PTR -292[rbp], 1
.L52:
	cmp	DWORD PTR -292[rbp], 7
	jle	.L55
	mov	rax, QWORD PTR stdout[rip]
	mov	rsi, rax
	mov	edi, 10
	call	putc@PLT
	add	DWORD PTR -296[rbp], 1
.L51:
	cmp	DWORD PTR -296[rbp], 7
	jle	.L56
	mov	eax, DWORD PTR -312[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	call	calc_regions
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L58
	call	__stack_chk_fail@PLT
.L58:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.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	"202160.c"
	.text
	.comm	elem,1024,4
	.global	extra
	.section	.rodata
	.align	2
	.type	extra, %object
	.size	extra, 20
extra:
	.word	17
	.word	31
	.word	73
	.word	47
	.word	23
	.comm	hash,16,4
	.text
	.align	2
	.global	reset_array
	.syntax unified
	.arm
	.fpu softvfp
	.type	reset_array, %function
reset_array:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r1, .L4
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #255
	ble	.L3
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L5:
	.align	2
.L4:
	.word	elem
	.size	reset_array, .-reset_array
	.align	2
	.global	reverse
	.syntax unified
	.arm
	.fpu softvfp
	.type	reverse, %function
reverse:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	sub	r3, r3, #1
	rsbs	r2, r3, #0
	and	r3, r3, #255
	and	r2, r2, #255
	rsbpl	r3, r2, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L7
.L9:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	rsbs	r2, r3, #0
	and	r3, r3, #255
	and	r2, r2, #255
	rsbpl	r3, r2, #0
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L8
	ldr	r3, [fp, #-24]
	add	r3, r3, #256
	str	r3, [fp, #-24]
.L8:
	ldr	r2, .L10
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-12]
	ldr	r2, .L10
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r1, .L10
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r1, .L10
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L7:
	ldr	r3, [fp, #-36]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-28]
	cmp	r3, r2
	blt	.L9
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L11:
	.align	2
.L10:
	.word	elem
	.size	reverse, .-reverse
	.align	2
	.global	calc_hash
	.syntax unified
	.arm
	.fpu softvfp
	.type	calc_hash, %function
calc_hash:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	bl	reset_array
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L13
.L18:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L14
.L15:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-40]
	bl	reverse
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	rsbs	r2, r3, #0
	and	r3, r3, #255
	and	r2, r2, #255
	rsbpl	r3, r2, #0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L14:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	bhi	.L15
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L16
.L17:
	ldr	r2, .L23
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-40]
	bl	reverse
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-12]
	add	r2, r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	rsbs	r2, r3, #0
	and	r3, r3, #255
	and	r2, r2, #255
	rsbpl	r3, r2, #0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L16:
	ldr	r3, [fp, #-24]
	cmp	r3, #4
	ble	.L17
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L13:
	ldr	r3, [fp, #-32]
	cmp	r3, #63
	ble	.L18
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L19
.L22:
	mov	r3, #0
	strb	r3, [fp, #-41]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L20
.L21:
	ldr	r3, [fp, #-20]
	lsl	r2, r3, #4
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, .L23+4
	ldr	r3, [r2, r3, lsl #2]
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldrsb	r3, [fp, #-41]
	eor	r3, r3, r2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	strb	r3, [fp, #-41]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L20:
	ldr	r3, [fp, #-16]
	cmp	r3, #15
	ble	.L21
	ldr	r2, .L23+8
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r2, [fp, #-41]
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L19:
	ldr	r3, [fp, #-20]
	cmp	r3, #15
	ble	.L22
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	extra
	.word	elem
	.word	hash
	.size	calc_hash, .-calc_hash
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%02x\000"
	.text
	.align	2
	.global	print_hash
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_hash, %function
print_hash:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L26
.L27:
	ldr	r2, .L28
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L28+4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L26:
	ldr	r3, [fp, #-8]
	cmp	r3, #15
	ble	.L27
	ldr	r3, .L28+8
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	putc
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	hash
	.word	.LC0
	.word	stdout
	.size	print_hash, .-print_hash
	.align	2
	.global	count_bits
	.syntax unified
	.arm
	.fpu softvfp
	.type	count_bits, %function
count_bits:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L31
.L35:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L32
.L34:
	ldr	r2, .L37
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	asr	r3, r2, r3
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L33
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L33:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L32:
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	ble	.L34
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L31:
	ldr	r3, [fp, #-12]
	cmp	r3, #15
	ble	.L35
	ldr	r3, [fp, #-16]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L38:
	.align	2
.L37:
	.word	hash
	.size	count_bits, .-count_bits
	.comm	disk,32768,4
	.align	2
	.global	mark_neighbours
	.syntax unified
	.arm
	.fpu softvfp
	.type	mark_neighbours, %function
mark_neighbours:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #7
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r2, .L46
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	cmp	r3, #1
	beq	.L40
	mov	r3, #0
	b	.L41
.L40:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r1, .L46
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	add	r3, r1, r3
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L42
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	mark_neighbours
.L42:
	ldr	r3, [fp, #-16]
	cmp	r3, #126
	bgt	.L43
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	mark_neighbours
.L43:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L44
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	mark_neighbours
.L44:
	ldr	r3, [fp, #-20]
	cmp	r3, #126
	bgt	.L45
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	mark_neighbours
.L45:
	mov	r3, #1
.L41:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	disk
	.size	mark_neighbours, .-mark_neighbours
	.align	2
	.global	calc_regions
	.syntax unified
	.arm
	.fpu softvfp
	.type	calc_regions, %function
calc_regions:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L49
.L52:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L50
.L51:
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	mark_neighbours
	mov	r2, r0
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L50:
	ldr	r3, [fp, #-12]
	cmp	r3, #127
	ble	.L51
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L49:
	ldr	r3, [fp, #-16]
	cmp	r3, #127
	ble	.L52
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	calc_regions, .-calc_regions
	.section	.rodata
	.align	2
.LC1:
	.ascii	"input: \"%s\" (%lu)\012\000"
	.align	2
.LC2:
	.ascii	"%s-%d\000"
	.align	2
.LC3:
	.ascii	"total bits: %d\012\000"
	.align	2
.LC4:
	.ascii	"total regions: %d\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 304
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #312
	ldr	r3, .L71
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L71+4
	ldr	r2, [r3]
	sub	r3, fp, #264
	mov	r1, #128
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L55
	mov	r3, #0
	strb	r3, [fp, #-264]
	b	.L56
.L55:
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	str	r3, [fp, #-280]
	sub	r2, fp, #264
	ldr	r3, [fp, #-280]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L56
	sub	r2, fp, #264
	ldr	r3, [fp, #-280]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L56:
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, .L71+8
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-304]
	mov	r3, #0
	str	r3, [fp, #-300]
	b	.L57
.L62:
	sub	r2, fp, #264
	sub	r0, fp, #136
	ldr	r3, [fp, #-300]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L71+12
	mov	r1, #128
	bl	snprintf
	str	r0, [fp, #-272]
	ldr	r2, [fp, #-272]
	sub	r3, fp, #136
	mov	r1, r2
	mov	r0, r3
	bl	calc_hash
	mov	r3, #0
	str	r3, [fp, #-296]
	b	.L58
.L61:
	ldr	r2, .L71+16
	ldr	r3, [fp, #-296]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-305]
	mov	r3, #0
	str	r3, [fp, #-292]
	b	.L59
.L60:
	ldr	r3, [fp, #-300]
	lsl	r2, r3, #7
	ldr	r3, [fp, #-296]
	lsl	r1, r3, #3
	ldr	r3, [fp, #-292]
	add	r3, r1, r3
	add	r3, r2, r3
	str	r3, [fp, #-268]
	ldrb	r2, [fp, #-305]	@ zero_extendqisi2
	ldr	r3, [fp, #-292]
	rsb	r3, r3, #7
	asr	r3, r2, r3
	and	r3, r3, #1
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r1, .L71+20
	ldr	r3, [fp, #-268]
	lsl	r3, r3, #1
	add	r3, r1, r3
	strh	r2, [r3]	@ movhi
	ldr	r2, .L71+20
	ldr	r3, [fp, #-268]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-304]
	add	r3, r3, r2
	str	r3, [fp, #-304]
	ldr	r3, [fp, #-292]
	add	r3, r3, #1
	str	r3, [fp, #-292]
.L59:
	ldr	r3, [fp, #-292]
	cmp	r3, #7
	ble	.L60
	ldr	r3, [fp, #-296]
	add	r3, r3, #1
	str	r3, [fp, #-296]
.L58:
	ldr	r3, [fp, #-296]
	cmp	r3, #15
	ble	.L61
	ldr	r3, [fp, #-300]
	add	r3, r3, #1
	str	r3, [fp, #-300]
.L57:
	ldr	r3, [fp, #-300]
	cmp	r3, #127
	ble	.L62
	mov	r3, #0
	str	r3, [fp, #-288]
	b	.L63
.L68:
	mov	r3, #0
	str	r3, [fp, #-284]
	b	.L64
.L67:
	ldr	r3, [fp, #-288]
	lsl	r3, r3, #7
	ldr	r2, [fp, #-284]
	add	r3, r2, r3
	str	r3, [fp, #-276]
	ldr	r2, .L71+20
	ldr	r3, [fp, #-276]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	cmp	r3, #0
	beq	.L65
	mov	r3, #35
	b	.L66
.L65:
	mov	r3, #46
.L66:
	ldr	r2, .L71+24
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	putc
	ldr	r3, [fp, #-284]
	add	r3, r3, #1
	str	r3, [fp, #-284]
.L64:
	ldr	r3, [fp, #-284]
	cmp	r3, #7
	ble	.L67
	ldr	r3, .L71+24
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	putc
	ldr	r3, [fp, #-288]
	add	r3, r3, #1
	str	r3, [fp, #-288]
.L63:
	ldr	r3, [fp, #-288]
	cmp	r3, #7
	ble	.L68
	ldr	r1, [fp, #-304]
	ldr	r0, .L71+28
	bl	printf
	bl	calc_regions
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L71+32
	bl	printf
	mov	r3, #0
	ldr	r2, .L71
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L70
	bl	__stack_chk_fail
.L70:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L72:
	.align	2
.L71:
	.word	.LC5
	.word	stdin
	.word	.LC1
	.word	.LC2
	.word	hash
	.word	disk
	.word	stdout
	.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
