	.file	"789100.c"
	.intel_syntax noprefix
	.text
	.globl	GetKFromN
	.type	GetKFromN, @function
GetKFromN:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -12[rbp], 0
.L6:
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	add	eax, 1
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	test	rax, rax
	js	.L2
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L3
.L2:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L3:
	mov	rax, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	cvttsd2si	rax, xmm0
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jb	.L4
	mov	eax, DWORD PTR -12[rbp]
	jmp	.L7
.L4:
	add	DWORD PTR -12[rbp], 1
	jmp	.L6
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	GetKFromN, .-GetKFromN
	.globl	GetKFromTotal
	.type	GetKFromTotal, @function
GetKFromTotal:
.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	DWORD PTR -12[rbp], 0
.L13:
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	test	rax, rax
	js	.L9
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L10
.L9:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L10:
	mov	rax, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	cvttsd2si	rax, xmm0
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jb	.L11
	mov	eax, DWORD PTR -12[rbp]
	jmp	.L14
.L11:
	add	DWORD PTR -12[rbp], 1
	jmp	.L13
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	GetKFromTotal, .-GetKFromTotal
	.globl	GenerateHamming
	.type	GenerateHamming, @function
GenerateHamming:
.LFB2:
	.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 -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	DWORD PTR -56[rbp], ecx
	mov	DWORD PTR -60[rbp], r8d
	mov	DWORD PTR -24[rbp], 1
	mov	DWORD PTR -20[rbp], 0
	jmp	.L16
.L24:
	mov	eax, DWORD PTR -20[rbp]
	test	rax, rax
	js	.L17
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L18
.L17:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L18:
	mov	rax, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movq	rdx, xmm0
	mov	eax, DWORD PTR -24[rbp]
	test	rax, rax
	js	.L19
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L20
.L19:
	mov	rcx, rax
	shr	rcx
	and	eax, 1
	or	rcx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rcx
	addsd	xmm0, xmm0
.L20:
	movq	xmm2, rdx
	ucomisd	xmm2, xmm0
	jp	.L21
	movq	xmm3, rdx
	ucomisd	xmm3, xmm0
	jne	.L21
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	add	DWORD PTR -20[rbp], 1
	jmp	.L23
.L21:
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
.L23:
	add	DWORD PTR -24[rbp], 1
.L16:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jbe	.L24
	mov	DWORD PTR -16[rbp], 1
	mov	DWORD PTR -12[rbp], 0
	jmp	.L25
.L31:
	mov	BYTE PTR -25[rbp], 0
	mov	DWORD PTR -8[rbp], 1
	jmp	.L26
.L28:
	mov	eax, DWORD PTR -8[rbp]
	and	eax, DWORD PTR -16[rbp]
	cmp	DWORD PTR -16[rbp], eax
	jne	.L27
	mov	edx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	xor	BYTE PTR -25[rbp], al
.L27:
	add	DWORD PTR -8[rbp], 1
.L26:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jbe	.L28
	mov	eax, DWORD PTR -12[rbp]
	test	rax, rax
	js	.L29
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L30
.L29:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L30:
	mov	rax, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	cvttsd2si	rax, xmm0
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -25[rbp]
	mov	BYTE PTR [rdx], al
	sal	DWORD PTR -16[rbp]
	add	DWORD PTR -12[rbp], 1
.L25:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -56[rbp]
	jb	.L31
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	GenerateHamming, .-GenerateHamming
	.globl	CheckHamming
	.type	CheckHamming, @function
CheckHamming:
.LFB3:
	.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 -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -20[rbp], 1
	mov	eax, DWORD PTR -44[rbp]
	mov	edi, eax
	call	GetKFromTotal
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L34
.L43:
	mov	BYTE PTR -21[rbp], 0
	mov	DWORD PTR -8[rbp], 1
	jmp	.L35
.L37:
	mov	eax, DWORD PTR -8[rbp]
	and	eax, DWORD PTR -20[rbp]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L36
	mov	edx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	xor	BYTE PTR -21[rbp], al
.L36:
	add	DWORD PTR -8[rbp], 1
.L35:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jbe	.L37
	cmp	BYTE PTR -21[rbp], 1
	jne	.L38
	mov	eax, DWORD PTR -16[rbp]
	test	rax, rax
	js	.L39
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, rax
	movsd	QWORD PTR -56[rbp], xmm2
	jmp	.L40
.L39:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
	movsd	QWORD PTR -56[rbp], xmm0
.L40:
	mov	eax, DWORD PTR -12[rbp]
	test	rax, rax
	js	.L41
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L42
.L41:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L42:
	mov	rax, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	addsd	xmm0, QWORD PTR -56[rbp]
	cvttsd2si	rax, xmm0
	mov	DWORD PTR -16[rbp], eax
.L38:
	sal	DWORD PTR -20[rbp]
	add	DWORD PTR -12[rbp], 1
.L34:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jb	.L43
	mov	eax, DWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	CheckHamming, .-CheckHamming
	.section	.rodata
.LC1:
	.string	"%d"
	.text
	.globl	Display
	.type	Display, @function
Display:
.LFB4:
	.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 -28[rbp], esi
	mov	DWORD PTR -4[rbp], 1
	jmp	.L46
.L47:
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L46:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jb	.L47
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	Display, .-Display
	.section	.rodata
.LC2:
	.string	"\n\nWith Error"
.LC3:
	.string	"No Error"
.LC4:
	.string	"Error at %d\n"
.LC5:
	.string	"Corrected"
	.text
	.globl	main
	.type	main, @function
main:
.LFB5:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -37[rbp], 256
	mov	BYTE PTR -33[rbp], 1
	mov	DWORD PTR -56[rbp], 4
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	call	GetKFromN
	mov	DWORD PTR -52[rbp], eax
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -52[rbp]
	add	eax, edx
	add	eax, 1
	mov	DWORD PTR -48[rbp], eax
	mov	edx, DWORD PTR -48[rbp]
	lea	rax, -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	Display
	mov	edi, DWORD PTR -48[rbp]
	mov	ecx, DWORD PTR -52[rbp]
	mov	edx, DWORD PTR -56[rbp]
	lea	rsi, -37[rbp]
	lea	rax, -32[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	GenerateHamming
	mov	edx, DWORD PTR -48[rbp]
	lea	rax, -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	Display
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	BYTE PTR -28[rbp], 0
	mov	edx, DWORD PTR -48[rbp]
	lea	rax, -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	Display
	mov	edx, DWORD PTR -48[rbp]
	lea	rax, -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	CheckHamming
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	jne	.L49
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L50
.L49:
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -44[rbp]
	movzx	eax, BYTE PTR -32[rbp+rax]
	xor	eax, 1
	mov	edx, eax
	mov	eax, DWORD PTR -44[rbp]
	mov	BYTE PTR -32[rbp+rax], dl
	mov	edx, DWORD PTR -48[rbp]
	lea	rax, -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	Display
.L50:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L52
	call	__stack_chk_fail@PLT
.L52:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1073741824
	.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	"789100.c"
	.text
	.global	__aeabi_ui2d
	.global	__aeabi_d2uiz
	.align	2
	.global	GetKFromN
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetKFromN, %function
GetKFromN:
	@ 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, #-16]
.L4:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bcc	.L2
	ldr	r3, [fp, #-16]
	b	.L5
.L2:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L4
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	GetKFromN, .-GetKFromN
	.align	2
	.global	GetKFromTotal
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetKFromTotal, %function
GetKFromTotal:
	@ 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, #-16]
.L9:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bcc	.L7
	ldr	r3, [fp, #-16]
	b	.L10
.L7:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L9
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	GetKFromTotal, .-GetKFromTotal
	.global	__aeabi_dcmpeq
	.align	2
	.global	GenerateHamming
	.syntax unified
	.arm
	.fpu softvfp
	.type	GenerateHamming, %function
GenerateHamming:
	@ args = 4, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	str	r3, [fp, #-60]
	mov	r3, #1
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L12
.L16:
	ldr	r0, [fp, #-32]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-36]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	b	.L15
.L23:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	ldr	r2, [fp, #-52]
	add	r2, r2, r3
	ldr	r1, [fp, #-48]
	ldr	r3, [fp, #-36]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
.L15:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L12:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	bls	.L16
	mov	r3, #1
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L17
.L21:
	mov	r3, #0
	strb	r3, [fp, #-37]
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L18
.L20:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	and	r3, r3, r2
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bne	.L19
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-37]
	eor	r3, r3, r2
	strb	r3, [fp, #-37]
.L19:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L18:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	bls	.L20
	ldr	r0, [fp, #-24]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [fp, #-37]
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L17:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	bcc	.L21
	nop
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	GenerateHamming, .-GenerateHamming
	.global	__aeabi_dadd
	.align	2
	.global	CheckHamming
	.syntax unified
	.arm
	.fpu softvfp
	.type	CheckHamming, %function
CheckHamming:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	mov	r3, #1
	str	r3, [fp, #-32]
	ldr	r0, [fp, #-44]
	bl	GetKFromTotal
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L25
.L30:
	mov	r3, #0
	strb	r3, [fp, #-33]
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L26
.L28:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	and	r3, r3, r2
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bne	.L27
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-33]
	eor	r3, r3, r2
	strb	r3, [fp, #-33]
.L27:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L26:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	bls	.L28
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L29
	ldr	r0, [fp, #-28]
	bl	__aeabi_ui2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-24]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	str	r3, [fp, #-28]
.L29:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L25:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bcc	.L30
	ldr	r3, [fp, #-28]
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	CheckHamming, .-CheckHamming
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.text
	.align	2
	.global	Display
	.syntax unified
	.arm
	.fpu softvfp
	.type	Display, %function
Display:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L33
.L34:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L35
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L33:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bcc	.L34
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC0
	.size	Display, .-Display
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\012\012With Error\000"
	.align	2
.LC3:
	.ascii	"No Error\000"
	.align	2
.LC4:
	.ascii	"Error at %d\012\000"
	.align	2
.LC5:
	.ascii	"Corrected\000"
	.align	2
.LC1:
	.ascii	"\000\001\000\000\001"
	.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 = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L42
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L42+4
	sub	r3, fp, #36
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strb	r1, [r3]
	mov	r3, #4
	str	r3, [fp, #-52]
	ldr	r0, [fp, #-52]
	bl	GetKFromN
	str	r0, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-28]
	sub	r3, fp, #24
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-44]
	sub	r3, fp, #28
	ldr	r1, [fp, #-44]
	mov	r0, r3
	bl	Display
	sub	r1, fp, #36
	sub	r0, fp, #28
	ldr	r3, [fp, #-44]
	str	r3, [sp]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-52]
	bl	GenerateHamming
	sub	r3, fp, #28
	ldr	r1, [fp, #-44]
	mov	r0, r3
	bl	Display
	ldr	r0, .L42+8
	bl	puts
	mov	r3, #0
	strb	r3, [fp, #-24]
	sub	r3, fp, #28
	ldr	r1, [fp, #-44]
	mov	r0, r3
	bl	Display
	sub	r3, fp, #28
	ldr	r1, [fp, #-44]
	mov	r0, r3
	bl	CheckHamming
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L38
	ldr	r0, .L42+12
	bl	printf
	b	.L39
.L38:
	ldr	r1, [fp, #-40]
	ldr	r0, .L42+16
	bl	printf
	ldr	r0, .L42+20
	bl	printf
	sub	r2, fp, #28
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r1, r3, #255
	sub	r2, fp, #28
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	sub	r3, fp, #28
	ldr	r1, [fp, #-44]
	mov	r0, r3
	bl	Display
.L39:
	mov	r3, #0
	ldr	r2, .L42
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L41
	bl	__stack_chk_fail
.L41:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC6
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
