	.file	"183113.c"
	.intel_syntax noprefix
	.text
	.type	golay, @function
golay:
.LFB0:
	.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 -20[rbp], edi
	and	DWORD PTR -20[rbp], 4095
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -8[rbp], 1
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 1
	test	eax, eax
	je	.L3
	xor	DWORD PTR -20[rbp], 2787
.L3:
	shr	DWORD PTR -20[rbp]
	add	DWORD PTR -8[rbp], 1
.L2:
	cmp	DWORD PTR -8[rbp], 12
	jle	.L4
	mov	eax, DWORD PTR -20[rbp]
	sal	eax, 12
	or	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	golay, .-golay
	.type	parity, @function
parity:
.LFB1:
	.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 -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	BYTE PTR -1[rbp], al
	mov	eax, DWORD PTR -20[rbp]
	shr	eax, 8
	xor	BYTE PTR -1[rbp], al
	mov	eax, DWORD PTR -20[rbp]
	shr	eax, 16
	xor	BYTE PTR -1[rbp], al
	movzx	eax, BYTE PTR -1[rbp]
	shr	al, 4
	xor	BYTE PTR -1[rbp], al
	movzx	eax, BYTE PTR -1[rbp]
	shr	al, 2
	xor	BYTE PTR -1[rbp], al
	movzx	eax, BYTE PTR -1[rbp]
	shr	al
	xor	BYTE PTR -1[rbp], al
	movzx	eax, BYTE PTR -1[rbp]
	and	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	parity, .-parity
	.globl	golay_encode
	.type	golay_encode, @function
golay_encode:
.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, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 16
	or	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	golay
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	parity
	test	eax, eax
	je	.L9
	or	DWORD PTR -4[rbp], 8388608
.L9:
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -4[rbp]
	shr	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -4[rbp]
	shr	eax, 16
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 2
	mov	BYTE PTR [rax], dl
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	golay_encode, .-golay_encode
	.type	syndrome, @function
syndrome:
.LFB3:
	.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 -20[rbp], edi
	and	DWORD PTR -20[rbp], 8388607
	mov	DWORD PTR -4[rbp], 1
	jmp	.L12
.L14:
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 1
	test	eax, eax
	je	.L13
	xor	DWORD PTR -20[rbp], 2787
.L13:
	shr	DWORD PTR -20[rbp]
	add	DWORD PTR -4[rbp], 1
.L12:
	cmp	DWORD PTR -4[rbp], 12
	jle	.L14
	mov	eax, DWORD PTR -20[rbp]
	sal	eax, 12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	syndrome, .-syndrome
	.type	weight, @function
weight:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 216737935419048192
	movabs	rdx, 289078108257124865
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	DWORD PTR -40[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	jmp	.L17
.L19:
	mov	eax, DWORD PTR -52[rbp]
	and	eax, 15
	mov	eax, eax
	movzx	eax, BYTE PTR -32[rbp+rax]
	movsx	eax, al
	add	DWORD PTR -40[rbp], eax
	shr	DWORD PTR -52[rbp], 4
	add	DWORD PTR -36[rbp], 1
.L17:
	cmp	DWORD PTR -36[rbp], 5
	jg	.L18
	cmp	DWORD PTR -52[rbp], 0
	jne	.L19
.L18:
	mov	eax, DWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	weight, .-weight
	.type	rotate_left, @function
rotate_left:
.LFB5:
	.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 -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	cmp	DWORD PTR -24[rbp], 0
	je	.L23
	mov	DWORD PTR -4[rbp], 1
	jmp	.L24
.L27:
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 4194304
	test	rax, rax
	je	.L25
	mov	eax, DWORD PTR -20[rbp]
	add	eax, eax
	or	eax, 1
	mov	DWORD PTR -20[rbp], eax
	jmp	.L26
.L25:
	sal	DWORD PTR -20[rbp]
.L26:
	add	DWORD PTR -4[rbp], 1
.L24:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jle	.L27
.L23:
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 8388607
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	rotate_left, .-rotate_left
	.type	rotate_right, @function
rotate_right:
.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 -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	cmp	DWORD PTR -24[rbp], 0
	je	.L30
	mov	DWORD PTR -4[rbp], 1
	jmp	.L31
.L34:
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 1
	test	eax, eax
	je	.L32
	mov	eax, DWORD PTR -20[rbp]
	shr	eax
	or	eax, 4194304
	mov	DWORD PTR -20[rbp], eax
	jmp	.L33
.L32:
	shr	DWORD PTR -20[rbp]
.L33:
	add	DWORD PTR -4[rbp], 1
.L31:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jle	.L34
.L30:
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 8388607
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	rotate_right, .-rotate_right
	.type	correct, @function
correct:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 0
	mov	BYTE PTR -21[rbp], 3
	mov	DWORD PTR -12[rbp], -1
	mov	DWORD PTR -20[rbp], 1
	jmp	.L37
.L45:
	cmp	DWORD PTR -12[rbp], -1
	je	.L38
	cmp	DWORD PTR -12[rbp], 0
	jle	.L39
	mov	eax, DWORD PTR -4[rbp]
	xor	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -36[rbp], eax
	sal	DWORD PTR -20[rbp]
.L39:
	mov	eax, DWORD PTR -4[rbp]
	xor	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -36[rbp], eax
	mov	BYTE PTR -21[rbp], 2
.L38:
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	syndrome
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	je	.L40
	mov	DWORD PTR -16[rbp], 0
	jmp	.L41
.L44:
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	weight
	mov	rdx, QWORD PTR -48[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR [rax]
	movzx	eax, BYTE PTR -21[rbp]
	cmp	edx, eax
	jg	.L42
	mov	eax, DWORD PTR -8[rbp]
	xor	DWORD PTR -36[rbp], eax
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, edx
	mov	edi, eax
	call	rotate_right
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	jmp	.L43
.L42:
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, 1
	mov	edi, eax
	call	rotate_left
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	syndrome
	mov	DWORD PTR -8[rbp], eax
	add	DWORD PTR -16[rbp], 1
.L41:
	cmp	DWORD PTR -16[rbp], 22
	jle	.L44
	add	DWORD PTR -12[rbp], 1
	jmp	.L37
.L40:
	mov	eax, DWORD PTR -36[rbp]
	jmp	.L43
.L37:
	cmp	DWORD PTR -12[rbp], 22
	jle	.L45
	mov	eax, DWORD PTR -4[rbp]
.L43:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	correct, .-correct
	.globl	golay_decode
	.type	golay_decode, @function
golay_decode:
.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
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 16
	or	eax, edx
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	and	eax, 8388608
	mov	DWORD PTR -4[rbp], eax
	and	DWORD PTR -8[rbp], -8388609
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	correct
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	or	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	parity
	test	eax, eax
	je	.L47
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
.L47:
	mov	eax, DWORD PTR -8[rbp]
	and	eax, 4095
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	golay_decode, .-golay_decode
	.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	"183113.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	golay, %function
golay:
	@ 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
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #20
	lsr	r3, r3, #20
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L2
.L4:
	ldr	r3, [fp, #-16]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-16]
	eor	r3, r3, #2784
	eor	r3, r3, #3
	str	r3, [fp, #-16]
.L3:
	ldr	r3, [fp, #-16]
	lsr	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #12
	ble	.L4
	ldr	r3, [fp, #-16]
	lsl	r2, r3, #12
	ldr	r3, [fp, #-8]
	orr	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	golay, .-golay
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parity, %function
parity:
	@ 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
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	strb	r3, [fp, #-5]
	ldr	r3, [fp, #-16]
	lsr	r3, r3, #8
	and	r2, r3, #255
	ldrb	r3, [fp, #-5]
	eor	r3, r3, r2
	strb	r3, [fp, #-5]
	ldr	r3, [fp, #-16]
	lsr	r3, r3, #16
	and	r2, r3, #255
	ldrb	r3, [fp, #-5]
	eor	r3, r3, r2
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r2, r3, #255
	ldrb	r3, [fp, #-5]
	eor	r3, r3, r2
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	lsr	r3, r3, #2
	and	r2, r3, #255
	ldrb	r3, [fp, #-5]
	eor	r3, r3, r2
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	lsr	r3, r3, #1
	and	r2, r3, #255
	ldrb	r3, [fp, #-5]
	eor	r3, r3, r2
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	and	r3, r3, #1
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	parity, .-parity
	.align	2
	.global	golay_encode
	.syntax unified
	.arm
	.fpu softvfp
	.type	golay_encode, %function
golay_encode:
	@ 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]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	orr	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	golay
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	parity
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-8]
	orr	r3, r3, #8388608
	str	r3, [fp, #-8]
.L9:
	ldr	r3, [fp, #-8]
	and	r2, r3, #255
	ldr	r3, [fp, #-16]
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	lsr	r2, r3, #8
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	lsr	r2, r3, #16
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	and	r2, r2, #255
	strb	r2, [r3]
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	golay_encode, .-golay_encode
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	syndrome, %function
syndrome:
	@ 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
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	bic	r3, r3, #-16777216
	bic	r3, r3, #8388608
	str	r3, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L12
.L14:
	ldr	r3, [fp, #-16]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-16]
	eor	r3, r3, #2784
	eor	r3, r3, #3
	str	r3, [fp, #-16]
.L13:
	ldr	r3, [fp, #-16]
	lsr	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L12:
	ldr	r3, [fp, #-8]
	cmp	r3, #12
	ble	.L14
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #12
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	syndrome, .-syndrome
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\000\001\001\002\001\002\002\003\001\002\002\003\002"
	.ascii	"\003\003\004"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	weight, %function
weight:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L22+4
	sub	ip, fp, #24
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L17
.L19:
	ldr	r3, [fp, #-40]
	and	r3, r3, #15
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-20]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	lsr	r3, r3, #4
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L17:
	ldr	r3, [fp, #-28]
	cmp	r3, #5
	bgt	.L18
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L19
.L18:
	ldr	r3, [fp, #-32]
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC1
	.word	.LC0
	.size	weight, .-weight
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rotate_left, %function
rotate_left:
	@ 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
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L25
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L26
.L29:
	ldr	r3, [fp, #-16]
	and	r3, r3, #4194304
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	orr	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L28
.L27:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	str	r3, [fp, #-16]
.L28:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L26:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L29
.L25:
	ldr	r3, [fp, #-16]
	bic	r3, r3, #-16777216
	bic	r3, r3, #8388608
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	rotate_left, .-rotate_left
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rotate_right, %function
rotate_right:
	@ 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
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L32
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L33
.L36:
	ldr	r3, [fp, #-16]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L34
	ldr	r3, [fp, #-16]
	lsr	r3, r3, #1
	orr	r3, r3, #4194304
	str	r3, [fp, #-16]
	b	.L35
.L34:
	ldr	r3, [fp, #-16]
	lsr	r3, r3, #1
	str	r3, [fp, #-16]
.L35:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L33:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L36
.L32:
	ldr	r3, [fp, #-16]
	bic	r3, r3, #-16777216
	bic	r3, r3, #8388608
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	rotate_right, .-rotate_right
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	correct, %function
correct:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-36]
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #3
	strb	r3, [fp, #-25]
	mvn	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L39
.L47:
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	beq	.L40
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L41
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	eor	r3, r3, r2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	str	r3, [fp, #-24]
.L41:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	eor	r3, r3, r2
	str	r3, [fp, #-32]
	mov	r3, #2
	strb	r3, [fp, #-25]
.L40:
	ldr	r0, [fp, #-32]
	bl	syndrome
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L42
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L43
.L46:
	ldr	r0, [fp, #-12]
	bl	weight
	mov	r2, r0
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r2, [r3]
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r2, r3
	bgt	.L44
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-12]
	eor	r3, r3, r2
	str	r3, [fp, #-32]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-32]
	bl	rotate_right
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	b	.L45
.L44:
	mov	r1, #1
	ldr	r0, [fp, #-32]
	bl	rotate_left
	str	r0, [fp, #-32]
	ldr	r0, [fp, #-32]
	bl	syndrome
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L43:
	ldr	r3, [fp, #-20]
	cmp	r3, #22
	ble	.L46
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L39
.L42:
	ldr	r3, [fp, #-32]
	b	.L45
.L39:
	ldr	r3, [fp, #-16]
	cmp	r3, #22
	ble	.L47
	ldr	r3, [fp, #-8]
.L45:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	correct, .-correct
	.align	2
	.global	golay_decode
	.syntax unified
	.arm
	.fpu softvfp
	.type	golay_decode, %function
golay_decode:
	@ 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]
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r2, r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	orr	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	and	r3, r3, #8388608
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	bic	r3, r3, #8388608
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	correct
	str	r0, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	orr	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	parity
	mov	r3, r0
	cmp	r3, #0
	beq	.L49
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3]
.L49:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #20
	lsr	r3, r3, #20
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	golay_decode, .-golay_decode
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
