	.file	"970804.c"
	.intel_syntax noprefix
	.text
	.globl	bgbrng_mulM107
	.type	bgbrng_mulM107, @function
bgbrng_mulM107:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, rdi
	mov	rcx, rsi
	mov	rdx, rcx
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	eax, DWORD PTR -48[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR m0.1[rip]
	imul	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	shr	rax, 32
	mov	rcx, rax
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -48[rbp]
	mov	eax, eax
	add	rdx, rax
	mov	rax, QWORD PTR m0.1[rip]
	imul	rax, rdx
	add	rax, rcx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	shr	rax, 32
	mov	rcx, rax
	mov	eax, DWORD PTR -40[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	mov	eax, DWORD PTR -48[rbp]
	mov	eax, eax
	add	rax, rsi
	add	rdx, rax
	mov	rax, QWORD PTR m0.1[rip]
	imul	rax, rdx
	add	rax, rcx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	shr	rax, 32
	mov	rcx, rax
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR m0.1[rip]
	imul	rdx, rax
	mov	eax, DWORD PTR -48[rbp]
	mov	esi, eax
	mov	rax, QWORD PTR m1.0[rip]
	imul	rax, rsi
	add	rax, rdx
	add	rcx, rax
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	mov	eax, eax
	add	rdx, rax
	mov	rax, QWORD PTR m0.1[rip]
	imul	rax, rdx
	add	rax, rcx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	bgbrng_mulM107, .-bgbrng_mulM107
	.globl	bgbrng_ciph0_swap
	.type	bgbrng_ciph0_swap, @function
bgbrng_ciph0_swap:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -28[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -4[rbp]
	mov	BYTE PTR [rax], dl
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	bgbrng_ciph0_swap, .-bgbrng_ciph0_swap
	.globl	bgbrng_ciph0_swap2
	.type	bgbrng_ciph0_swap2, @function
bgbrng_ciph0_swap2:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -40[rbp], ecx
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -36[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -4[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -36[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -40[rbp]
	mov	BYTE PTR [rax], dl
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	bgbrng_ciph0_swap2, .-bgbrng_ciph0_swap2
	.globl	bgbrng_ciph0_kindex
	.type	bgbrng_ciph0_kindex, @function
bgbrng_ciph0_kindex:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rdx
	mov	rsi, rax
	call	bgbrng_mulM107
	mov	rcx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 12[rax]
	shr	eax, 16
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 12[rax]
	shr	eax, 24
	xor	eax, edx
	and	eax, 255
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	bgbrng_ciph0_kindex, .-bgbrng_ciph0_kindex
	.globl	bgbrng_ciph0_enc
	.type	bgbrng_ciph0_enc, @function
bgbrng_ciph0_enc:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 576
	mov	QWORD PTR -552[rbp], rdi
	mov	QWORD PTR -560[rbp], rsi
	mov	DWORD PTR -564[rbp], edx
	mov	QWORD PTR -576[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -540[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -540[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -540[rbp]
	cdqe
	mov	BYTE PTR -528[rbp+rax], dl
	add	DWORD PTR -540[rbp], 1
.L8:
	cmp	DWORD PTR -540[rbp], 255
	jle	.L9
	mov	DWORD PTR -540[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -540[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -540[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], dl
	add	DWORD PTR -540[rbp], 1
.L10:
	cmp	DWORD PTR -540[rbp], 255
	jle	.L11
	mov	DWORD PTR -540[rbp], 0
	jmp	.L12
.L13:
	mov	rax, QWORD PTR -576[rbp]
	mov	rdi, rax
	call	bgbrng_ciph0_kindex
	mov	DWORD PTR -536[rbp], eax
	mov	ecx, DWORD PTR -536[rbp]
	mov	edx, DWORD PTR -540[rbp]
	lea	rsi, -528[rbp]
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	bgbrng_ciph0_swap2
	add	DWORD PTR -540[rbp], 1
.L12:
	cmp	DWORD PTR -540[rbp], 255
	jle	.L13
	mov	DWORD PTR -540[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -540[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -552[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	DWORD PTR -536[rbp], eax
	mov	eax, DWORD PTR -540[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -560[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -536[rbp]
	cdqe
	movzx	eax, BYTE PTR -528[rbp+rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -576[rbp]
	mov	rdi, rax
	call	bgbrng_ciph0_kindex
	mov	DWORD PTR -532[rbp], eax
	mov	ecx, DWORD PTR -532[rbp]
	mov	edx, DWORD PTR -536[rbp]
	lea	rsi, -528[rbp]
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	bgbrng_ciph0_swap2
	add	DWORD PTR -540[rbp], 1
.L14:
	mov	eax, DWORD PTR -540[rbp]
	cmp	eax, DWORD PTR -564[rbp]
	jl	.L15
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	bgbrng_ciph0_enc, .-bgbrng_ciph0_enc
	.globl	bgbrng_ciph0_dec
	.type	bgbrng_ciph0_dec, @function
bgbrng_ciph0_dec:
.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, 320
	mov	QWORD PTR -296[rbp], rdi
	mov	QWORD PTR -304[rbp], rsi
	mov	DWORD PTR -308[rbp], edx
	mov	QWORD PTR -320[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -284[rbp], 0
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -284[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -284[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], dl
	add	DWORD PTR -284[rbp], 1
.L18:
	cmp	DWORD PTR -284[rbp], 255
	jle	.L19
	mov	DWORD PTR -284[rbp], 0
	jmp	.L20
.L21:
	mov	rax, QWORD PTR -320[rbp]
	mov	rdi, rax
	call	bgbrng_ciph0_kindex
	mov	DWORD PTR -280[rbp], eax
	mov	edx, DWORD PTR -280[rbp]
	mov	ecx, DWORD PTR -284[rbp]
	lea	rax, -272[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	bgbrng_ciph0_swap
	add	DWORD PTR -284[rbp], 1
.L20:
	cmp	DWORD PTR -284[rbp], 255
	jle	.L21
	mov	DWORD PTR -284[rbp], 0
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -284[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -296[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cdqe
	movzx	eax, BYTE PTR -272[rbp+rax]
	movzx	eax, al
	mov	DWORD PTR -280[rbp], eax
	mov	eax, DWORD PTR -284[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -304[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -280[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -320[rbp]
	mov	rdi, rax
	call	bgbrng_ciph0_kindex
	mov	DWORD PTR -276[rbp], eax
	mov	edx, DWORD PTR -276[rbp]
	mov	ecx, DWORD PTR -280[rbp]
	lea	rax, -272[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	bgbrng_ciph0_swap
	add	DWORD PTR -284[rbp], 1
.L22:
	mov	eax, DWORD PTR -284[rbp]
	cmp	eax, DWORD PTR -308[rbp]
	jl	.L23
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	bgbrng_ciph0_dec, .-bgbrng_ciph0_dec
	.globl	bgbrng_ciph0_genkey
	.type	bgbrng_ciph0_genkey, @function
bgbrng_ciph0_genkey:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L26
.L27:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	mov	edx, DWORD PTR -16[rbp]
	movsx	eax, al
	add	eax, edx
	mov	DWORD PTR -16[rbp], eax
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rdx
	mov	rsi, rax
	call	bgbrng_mulM107
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], rdx
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	mov	DWORD PTR -16[rbp], eax
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	add	eax, edx
	mov	DWORD PTR -12[rbp], eax
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	mov	DWORD PTR -8[rbp], eax
.L26:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L27
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	bgbrng_ciph0_genkey, .-bgbrng_ciph0_genkey
	.globl	bgbrng_ciph0_dummy
	.type	bgbrng_ciph0_dummy, @function
bgbrng_ciph0_dummy:
.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	QWORD PTR -296[rbp], rdi
	mov	QWORD PTR -304[rbp], rsi
	mov	DWORD PTR -308[rbp], edx
	mov	QWORD PTR -320[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -284[rbp], 0
	jmp	.L30
.L31:
	mov	eax, DWORD PTR -284[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -284[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], dl
	add	DWORD PTR -284[rbp], 1
.L30:
	cmp	DWORD PTR -284[rbp], 255
	jle	.L31
	mov	DWORD PTR -284[rbp], 0
	jmp	.L32
.L33:
	mov	rax, QWORD PTR -320[rbp]
	mov	rdi, rax
	call	bgbrng_ciph0_kindex
	mov	DWORD PTR -280[rbp], eax
	mov	edx, DWORD PTR -280[rbp]
	mov	ecx, DWORD PTR -284[rbp]
	lea	rax, -272[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	bgbrng_ciph0_swap
	add	DWORD PTR -284[rbp], 1
.L32:
	cmp	DWORD PTR -284[rbp], 255
	jle	.L33
	mov	DWORD PTR -284[rbp], 0
	jmp	.L34
.L35:
	mov	eax, DWORD PTR -284[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -296[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cdqe
	movzx	eax, BYTE PTR -272[rbp+rax]
	movzx	eax, al
	mov	DWORD PTR -280[rbp], eax
	mov	rax, QWORD PTR -320[rbp]
	mov	rdi, rax
	call	bgbrng_ciph0_kindex
	mov	DWORD PTR -276[rbp], eax
	mov	eax, DWORD PTR -284[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -304[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -276[rbp]
	mov	BYTE PTR [rax], dl
	mov	edx, DWORD PTR -276[rbp]
	mov	ecx, DWORD PTR -280[rbp]
	lea	rax, -272[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	bgbrng_ciph0_swap
	add	DWORD PTR -284[rbp], 1
.L34:
	mov	eax, DWORD PTR -284[rbp]
	cmp	eax, DWORD PTR -308[rbp]
	jl	.L35
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	bgbrng_ciph0_dummy, .-bgbrng_ciph0_dummy
	.section	.rodata
.LC0:
	.string	"Atestkey"
.LC1:
	.string	"%08X %08X %08X %08X\n"
.LC2:
	.string	"Btestkey"
.LC3:
	.string	"Ctestkey"
.LC4:
	.string	"Dtestkey"
.LC5:
	.string	"testkey"
.LC6:
	.string	"v: "
.LC7:
	.string	"%02X"
.LC8:
	.string	"I: "
.LC9:
	.string	"C: "
.LC10:
	.string	"O: "
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 832
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -820[rbp], 0
	jmp	.L38
.L39:
	call	rand@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -820[rbp]
	cdqe
	mov	BYTE PTR -784[rbp+rax], dl
	add	DWORD PTR -820[rbp], 1
.L38:
	cmp	DWORD PTR -820[rbp], 255
	jle	.L39
	lea	rax, -784[rbp]
	movabs	rdx, 2338328219631577204
	movabs	rcx, 2942788739276897
	mov	QWORD PTR [rax], rdx
	mov	QWORD PTR 8[rax], rcx
	lea	rdi, .LC0[rip]
	call	bgbrng_ciph0_genkey
	mov	QWORD PTR -816[rbp], rax
	mov	QWORD PTR -808[rbp], rdx
	mov	esi, DWORD PTR -816[rbp]
	mov	ecx, DWORD PTR -812[rbp]
	mov	edx, DWORD PTR -808[rbp]
	mov	eax, DWORD PTR -804[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	call	bgbrng_ciph0_genkey
	mov	QWORD PTR -816[rbp], rax
	mov	QWORD PTR -808[rbp], rdx
	mov	esi, DWORD PTR -816[rbp]
	mov	ecx, DWORD PTR -812[rbp]
	mov	edx, DWORD PTR -808[rbp]
	mov	eax, DWORD PTR -804[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	call	bgbrng_ciph0_genkey
	mov	QWORD PTR -816[rbp], rax
	mov	QWORD PTR -808[rbp], rdx
	mov	esi, DWORD PTR -816[rbp]
	mov	ecx, DWORD PTR -812[rbp]
	mov	edx, DWORD PTR -808[rbp]
	mov	eax, DWORD PTR -804[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	call	bgbrng_ciph0_genkey
	mov	QWORD PTR -816[rbp], rax
	mov	QWORD PTR -808[rbp], rdx
	mov	esi, DWORD PTR -816[rbp]
	mov	ecx, DWORD PTR -812[rbp]
	mov	edx, DWORD PTR -808[rbp]
	mov	eax, DWORD PTR -804[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC5[rip]
	call	bgbrng_ciph0_genkey
	mov	QWORD PTR -816[rbp], rax
	mov	QWORD PTR -808[rbp], rdx
	mov	esi, DWORD PTR -816[rbp]
	mov	ecx, DWORD PTR -812[rbp]
	mov	edx, DWORD PTR -808[rbp]
	mov	eax, DWORD PTR -804[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -816[rbp]
	mov	rdx, QWORD PTR -808[rbp]
	mov	QWORD PTR -800[rbp], rax
	mov	QWORD PTR -792[rbp], rdx
	lea	rdx, -800[rbp]
	lea	rsi, -528[rbp]
	lea	rax, -784[rbp]
	mov	rcx, rdx
	mov	edx, 256
	mov	rdi, rax
	call	bgbrng_ciph0_dummy
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -820[rbp], 0
	jmp	.L40
.L41:
	mov	eax, DWORD PTR -820[rbp]
	cdqe
	movzx	eax, BYTE PTR -528[rbp+rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -820[rbp], 1
.L40:
	cmp	DWORD PTR -820[rbp], 37
	jle	.L41
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -816[rbp]
	mov	rdx, QWORD PTR -808[rbp]
	mov	QWORD PTR -800[rbp], rax
	mov	QWORD PTR -792[rbp], rdx
	lea	rdx, -800[rbp]
	lea	rsi, -528[rbp]
	lea	rax, -784[rbp]
	mov	rcx, rdx
	mov	edx, 256
	mov	rdi, rax
	call	bgbrng_ciph0_enc
	mov	rax, QWORD PTR -816[rbp]
	mov	rdx, QWORD PTR -808[rbp]
	mov	QWORD PTR -800[rbp], rax
	mov	QWORD PTR -792[rbp], rdx
	lea	rdx, -800[rbp]
	lea	rsi, -272[rbp]
	lea	rax, -528[rbp]
	mov	rcx, rdx
	mov	edx, 256
	mov	rdi, rax
	call	bgbrng_ciph0_dec
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -820[rbp], 0
	jmp	.L42
.L43:
	mov	eax, DWORD PTR -820[rbp]
	cdqe
	movzx	eax, BYTE PTR -784[rbp+rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -820[rbp], 1
.L42:
	cmp	DWORD PTR -820[rbp], 37
	jle	.L43
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -820[rbp], 0
	jmp	.L44
.L45:
	mov	eax, DWORD PTR -820[rbp]
	cdqe
	movzx	eax, BYTE PTR -528[rbp+rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -820[rbp], 1
.L44:
	cmp	DWORD PTR -820[rbp], 37
	jle	.L45
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -820[rbp], 0
	jmp	.L46
.L47:
	mov	eax, DWORD PTR -820[rbp]
	cdqe
	movzx	eax, BYTE PTR -272[rbp+rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -820[rbp], 1
.L46:
	cmp	DWORD PTR -820[rbp], 37
	jle	.L47
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	main, .-main
	.data
	.align 8
	.type	m0.1, @object
	.size	m0.1, 8
m0.1:
	.quad	4294967295
	.align 8
	.type	m1.0, @object
	.size	m1.0, 8
m1.0:
	.quad	2047
	.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	"970804.c"
	.text
	.align	2
	.global	bgbrng_mulM107
	.syntax unified
	.arm
	.fpu softvfp
	.type	bgbrng_mulM107, %function
bgbrng_mulM107:
	@ args = 20, pretend = 16, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #96
	str	r0, [fp, #-56]
	add	r0, fp, #8
	stm	r0, {r1, r2, r3}
	ldr	r3, [fp, #8]
	mov	r4, r3
	mov	r5, #0
	ldr	r3, .L3
	ldmia	r3, {r0-r1}
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	r3, r2, r3
	umull	r6, r7, r4, r0
	add	r3, r3, r7
	mov	r7, r3
	str	r6, [fp, #-52]
	str	r7, [fp, #-48]
	str	r6, [fp, #-52]
	str	r7, [fp, #-48]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-44]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	mov	r6, #0
	mov	r7, #0
	mov	r6, r3
	mov	r7, #0
	ldr	r3, [fp, #12]
	mov	r0, r3
	mov	r1, #0
	ldr	r3, [fp, #8]
	mov	r2, r3
	mov	r3, #0
	adds	r8, r0, r2
	adc	r9, r1, r3
	ldr	r3, .L3
	ldmia	r3, {r0-r1}
	mul	r2, r0, r9
	mul	r3, r8, r1
	add	r3, r2, r3
	umull	r4, r5, r8, r0
	add	r3, r3, r5
	mov	r5, r3
	adds	r3, r6, r4
	str	r3, [fp, #-108]
	adc	r3, r7, r5
	str	r3, [fp, #-104]
	sub	r4, fp, #108
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-52]
	str	r4, [fp, #-48]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-40]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	mov	r6, #0
	mov	r7, #0
	mov	r6, r3
	mov	r7, #0
	ldr	r3, [fp, #16]
	mov	r4, r3
	mov	r5, #0
	ldr	r3, [fp, #12]
	mov	r0, r3
	mov	r1, #0
	ldr	r3, [fp, #8]
	mov	r2, r3
	mov	r3, #0
	adds	ip, r0, r2
	str	ip, [fp, #-68]
	adc	r3, r1, r3
	str	r3, [fp, #-64]
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	mov	r1, r2
	adds	r1, r4, r1
	str	r1, [fp, #-76]
	adc	r3, r5, r3
	str	r3, [fp, #-72]
	ldr	r3, .L3
	ldmia	r3, {r0-r1}
	sub	r5, fp, #76
	ldmia	r5, {r4-r5}
	mov	r2, r5
	mul	r2, r0, r2
	mov	r3, r4
	mul	r3, r1, r3
	add	ip, r2, r3
	mov	lr, r4
	umull	r2, r3, lr, r0
	add	r1, ip, r3
	mov	r3, r1
	adds	r1, r6, r2
	str	r1, [fp, #-116]
	adc	r3, r7, r3
	str	r3, [fp, #-112]
	sub	r4, fp, #116
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-52]
	str	r4, [fp, #-48]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-36]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	mov	r8, #0
	mov	r9, #0
	mov	r8, r3
	mov	r9, #0
	ldr	r3, [fp, #12]
	mov	r2, r3
	mov	r3, #0
	ldr	r1, .L3
	ldmia	r1, {r0-r1}
	mul	lr, r0, r3
	mul	ip, r2, r1
	add	ip, lr, ip
	umull	r6, r7, r2, r0
	add	r3, ip, r7
	mov	r7, r3
	ldr	r3, [fp, #8]
	mov	r4, r3
	mov	r5, #0
	ldr	r3, .L3+4
	ldmia	r3, {r0-r1}
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	ip, r2, r3
	umull	r2, r3, r4, r0
	add	r1, ip, r3
	mov	r3, r1
	adds	r1, r6, r2
	str	r1, [fp, #-84]
	adc	r3, r7, r3
	str	r3, [fp, #-80]
	sub	r4, fp, #84
	ldmia	r4, {r3-r4}
	mov	r2, r3
	adds	r2, r8, r2
	str	r2, [fp, #-92]
	mov	r3, r4
	adc	r3, r9, r3
	str	r3, [fp, #-88]
	ldr	r3, [fp, #20]
	mov	r0, r3
	mov	r1, #0
	ldr	r3, [fp, #16]
	mov	r2, r3
	mov	r3, #0
	adds	ip, r0, r2
	str	ip, [fp, #-100]
	adc	r3, r1, r3
	str	r3, [fp, #-96]
	ldr	r3, .L3
	ldmia	r3, {r0-r1}
	sub	r5, fp, #100
	ldmia	r5, {r4-r5}
	mov	r2, r5
	mul	r2, r0, r2
	mov	r3, r4
	mul	r3, r1, r3
	add	ip, r2, r3
	mov	lr, r4
	umull	r2, r3, lr, r0
	add	r1, ip, r3
	mov	r3, r1
	sub	r1, fp, #92
	ldmia	r1, {r0-r1}
	mov	ip, r0
	adds	ip, ip, r2
	str	ip, [fp, #-124]
	adc	r3, r1, r3
	str	r3, [fp, #-120]
	sub	r4, fp, #124
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-52]
	str	r4, [fp, #-48]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-56]
	mov	ip, r3
	sub	r3, fp, #44
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r0, [fp, #-56]
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	sp, sp, #16
	bx	lr
.L4:
	.align	2
.L3:
	.word	m0.5307
	.word	m1.5308
	.size	bgbrng_mulM107, .-bgbrng_mulM107
	.align	2
	.global	bgbrng_ciph0_swap
	.syntax unified
	.arm
	.fpu softvfp
	.type	bgbrng_ciph0_swap, %function
bgbrng_ciph0_swap:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	bgbrng_ciph0_swap, .-bgbrng_ciph0_swap
	.align	2
	.global	bgbrng_ciph0_swap2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bgbrng_ciph0_swap2, %function
bgbrng_ciph0_swap2:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldr	r2, [fp, #-24]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldr	r2, [fp, #-28]
	and	r2, r2, #255
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	bgbrng_ciph0_swap2, .-bgbrng_ciph0_swap2
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bgbrng_ciph0_kindex
	.syntax unified
	.arm
	.fpu softvfp
	.type	bgbrng_ciph0_kindex, %function
bgbrng_ciph0_kindex:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-24]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r4, [fp, #-24]
	sub	r0, fp, #44
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #12]
	str	r2, [sp]
	ldm	r3, {r1, r2, r3}
	bl	bgbrng_mulM107
	mov	ip, r4
	sub	r3, fp, #44
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	lsr	r2, r3, #16
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	lsr	r3, r3, #24
	eor	r3, r3, r2
	and	r3, r3, #255
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC0
	.size	bgbrng_ciph0_kindex, .-bgbrng_ciph0_kindex
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bgbrng_ciph0_enc
	.syntax unified
	.arm
	.fpu softvfp
	.type	bgbrng_ciph0_enc, %function
bgbrng_ciph0_enc:
	@ args = 0, pretend = 0, frame = 544
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #544
	str	r0, [fp, #-536]
	str	r1, [fp, #-540]
	str	r2, [fp, #-544]
	str	r3, [fp, #-548]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-532]
	b	.L13
.L14:
	ldr	r3, [fp, #-532]
	and	r1, r3, #255
	sub	r2, fp, #520
	ldr	r3, [fp, #-532]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-532]
	add	r3, r3, #1
	str	r3, [fp, #-532]
.L13:
	ldr	r3, [fp, #-532]
	cmp	r3, #255
	ble	.L14
	mov	r3, #0
	str	r3, [fp, #-532]
	b	.L15
.L16:
	ldr	r3, [fp, #-532]
	and	r1, r3, #255
	sub	r2, fp, #264
	ldr	r3, [fp, #-532]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-532]
	add	r3, r3, #1
	str	r3, [fp, #-532]
.L15:
	ldr	r3, [fp, #-532]
	cmp	r3, #255
	ble	.L16
	mov	r3, #0
	str	r3, [fp, #-532]
	b	.L17
.L18:
	ldr	r0, [fp, #-548]
	bl	bgbrng_ciph0_kindex
	str	r0, [fp, #-528]
	sub	r1, fp, #520
	sub	r0, fp, #264
	ldr	r3, [fp, #-528]
	ldr	r2, [fp, #-532]
	bl	bgbrng_ciph0_swap2
	ldr	r3, [fp, #-532]
	add	r3, r3, #1
	str	r3, [fp, #-532]
.L17:
	ldr	r3, [fp, #-532]
	cmp	r3, #255
	ble	.L18
	mov	r3, #0
	str	r3, [fp, #-532]
	b	.L19
.L20:
	ldr	r3, [fp, #-532]
	ldr	r2, [fp, #-536]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-528]
	ldr	r3, [fp, #-532]
	ldr	r2, [fp, #-540]
	add	r3, r2, r3
	sub	r1, fp, #520
	ldr	r2, [fp, #-528]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r0, [fp, #-548]
	bl	bgbrng_ciph0_kindex
	str	r0, [fp, #-524]
	sub	r1, fp, #520
	sub	r0, fp, #264
	ldr	r3, [fp, #-524]
	ldr	r2, [fp, #-528]
	bl	bgbrng_ciph0_swap2
	ldr	r3, [fp, #-532]
	add	r3, r3, #1
	str	r3, [fp, #-532]
.L19:
	ldr	r2, [fp, #-532]
	ldr	r3, [fp, #-544]
	cmp	r2, r3
	blt	.L20
	nop
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC1
	.size	bgbrng_ciph0_enc, .-bgbrng_ciph0_enc
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bgbrng_ciph0_dec
	.syntax unified
	.arm
	.fpu softvfp
	.type	bgbrng_ciph0_dec, %function
bgbrng_ciph0_dec:
	@ args = 0, pretend = 0, frame = 288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #288
	str	r0, [fp, #-280]
	str	r1, [fp, #-284]
	str	r2, [fp, #-288]
	str	r3, [fp, #-292]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-276]
	b	.L25
.L26:
	ldr	r3, [fp, #-276]
	and	r1, r3, #255
	sub	r2, fp, #264
	ldr	r3, [fp, #-276]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-276]
	add	r3, r3, #1
	str	r3, [fp, #-276]
.L25:
	ldr	r3, [fp, #-276]
	cmp	r3, #255
	ble	.L26
	mov	r3, #0
	str	r3, [fp, #-276]
	b	.L27
.L28:
	ldr	r0, [fp, #-292]
	bl	bgbrng_ciph0_kindex
	str	r0, [fp, #-272]
	sub	r3, fp, #264
	ldr	r2, [fp, #-272]
	ldr	r1, [fp, #-276]
	mov	r0, r3
	bl	bgbrng_ciph0_swap
	ldr	r3, [fp, #-276]
	add	r3, r3, #1
	str	r3, [fp, #-276]
.L27:
	ldr	r3, [fp, #-276]
	cmp	r3, #255
	ble	.L28
	mov	r3, #0
	str	r3, [fp, #-276]
	b	.L29
.L30:
	ldr	r3, [fp, #-276]
	ldr	r2, [fp, #-280]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-260]	@ zero_extendqisi2
	str	r3, [fp, #-272]
	ldr	r3, [fp, #-276]
	ldr	r2, [fp, #-284]
	add	r3, r2, r3
	ldr	r2, [fp, #-272]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r0, [fp, #-292]
	bl	bgbrng_ciph0_kindex
	str	r0, [fp, #-268]
	sub	r3, fp, #264
	ldr	r2, [fp, #-268]
	ldr	r1, [fp, #-272]
	mov	r0, r3
	bl	bgbrng_ciph0_swap
	ldr	r3, [fp, #-276]
	add	r3, r3, #1
	str	r3, [fp, #-276]
.L29:
	ldr	r2, [fp, #-276]
	ldr	r3, [fp, #-288]
	cmp	r2, r3
	blt	.L30
	nop
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC2
	.size	bgbrng_ciph0_dec, .-bgbrng_ciph0_dec
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bgbrng_ciph0_genkey
	.syntax unified
	.arm
	.fpu softvfp
	.type	bgbrng_ciph0_genkey, %function
bgbrng_ciph0_genkey:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-28]
	b	.L35
.L36:
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	str	r2, [fp, #-28]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	str	r3, [fp, #-24]
	sub	r0, fp, #24
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	sub	r3, fp, #24
	ldm	r3, {r1, r2, r3}
	bl	bgbrng_mulM107
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-16]
.L35:
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L36
	ldr	r3, [fp, #-32]
	mov	ip, r3
	sub	r3, fp, #24
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L39
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L38
	bl	__stack_chk_fail
.L38:
	ldr	r0, [fp, #-32]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC3
	.size	bgbrng_ciph0_genkey, .-bgbrng_ciph0_genkey
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bgbrng_ciph0_dummy
	.syntax unified
	.arm
	.fpu softvfp
	.type	bgbrng_ciph0_dummy, %function
bgbrng_ciph0_dummy:
	@ args = 0, pretend = 0, frame = 288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #288
	str	r0, [fp, #-280]
	str	r1, [fp, #-284]
	str	r2, [fp, #-288]
	str	r3, [fp, #-292]
	ldr	r3, .L49
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-276]
	b	.L42
.L43:
	ldr	r3, [fp, #-276]
	and	r1, r3, #255
	sub	r2, fp, #264
	ldr	r3, [fp, #-276]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-276]
	add	r3, r3, #1
	str	r3, [fp, #-276]
.L42:
	ldr	r3, [fp, #-276]
	cmp	r3, #255
	ble	.L43
	mov	r3, #0
	str	r3, [fp, #-276]
	b	.L44
.L45:
	ldr	r0, [fp, #-292]
	bl	bgbrng_ciph0_kindex
	str	r0, [fp, #-272]
	sub	r3, fp, #264
	ldr	r2, [fp, #-272]
	ldr	r1, [fp, #-276]
	mov	r0, r3
	bl	bgbrng_ciph0_swap
	ldr	r3, [fp, #-276]
	add	r3, r3, #1
	str	r3, [fp, #-276]
.L44:
	ldr	r3, [fp, #-276]
	cmp	r3, #255
	ble	.L45
	mov	r3, #0
	str	r3, [fp, #-276]
	b	.L46
.L47:
	ldr	r3, [fp, #-276]
	ldr	r2, [fp, #-280]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-260]	@ zero_extendqisi2
	str	r3, [fp, #-272]
	ldr	r0, [fp, #-292]
	bl	bgbrng_ciph0_kindex
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-276]
	ldr	r2, [fp, #-284]
	add	r3, r2, r3
	ldr	r2, [fp, #-268]
	and	r2, r2, #255
	strb	r2, [r3]
	sub	r3, fp, #264
	ldr	r2, [fp, #-268]
	ldr	r1, [fp, #-272]
	mov	r0, r3
	bl	bgbrng_ciph0_swap
	ldr	r3, [fp, #-276]
	add	r3, r3, #1
	str	r3, [fp, #-276]
.L46:
	ldr	r2, [fp, #-276]
	ldr	r3, [fp, #-288]
	cmp	r2, r3
	blt	.L47
	nop
	ldr	r3, .L49
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L48
	bl	__stack_chk_fail
.L48:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC4
	.size	bgbrng_ciph0_dummy, .-bgbrng_ciph0_dummy
	.section	.rodata
	.align	2
.LC5:
	.ascii	"this is a test\012\000"
	.align	2
.LC6:
	.ascii	"Atestkey\000"
	.align	2
.LC7:
	.ascii	"%08X %08X %08X %08X\012\000"
	.align	2
.LC8:
	.ascii	"Btestkey\000"
	.align	2
.LC9:
	.ascii	"Ctestkey\000"
	.align	2
.LC10:
	.ascii	"Dtestkey\000"
	.align	2
.LC11:
	.ascii	"testkey\000"
	.align	2
.LC12:
	.ascii	"v: \000"
	.align	2
.LC13:
	.ascii	"%02X\000"
	.align	2
.LC14:
	.ascii	"I: \000"
	.align	2
.LC15:
	.ascii	"C: \000"
	.align	2
.LC16:
	.ascii	"O: \000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 824
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #832
	ldr	r3, .L64
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-812]
	b	.L52
.L53:
	bl	rand
	mov	r3, r0
	and	r1, r3, #255
	sub	r2, fp, #776
	ldr	r3, [fp, #-812]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-812]
	add	r3, r3, #1
	str	r3, [fp, #-812]
.L52:
	ldr	r3, [fp, #-812]
	cmp	r3, #255
	ble	.L53
	sub	r3, fp, #776
	ldr	r2, .L64+4
	mov	ip, r3
	mov	r3, r2
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #808
	ldr	r1, .L64+8
	mov	r0, r3
	bl	bgbrng_ciph0_genkey
	ldr	r1, [fp, #-796]
	ldr	r2, [fp, #-800]
	ldr	r0, [fp, #-804]
	ldr	r3, [fp, #-808]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L64+12
	bl	printf
	sub	r3, fp, #828
	ldr	r1, .L64+16
	mov	r0, r3
	bl	bgbrng_ciph0_genkey
	sub	ip, fp, #808
	sub	r3, fp, #828
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r1, [fp, #-796]
	ldr	r2, [fp, #-800]
	ldr	r0, [fp, #-804]
	ldr	r3, [fp, #-808]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L64+12
	bl	printf
	sub	r3, fp, #828
	ldr	r1, .L64+20
	mov	r0, r3
	bl	bgbrng_ciph0_genkey
	sub	ip, fp, #808
	sub	r3, fp, #828
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r1, [fp, #-796]
	ldr	r2, [fp, #-800]
	ldr	r0, [fp, #-804]
	ldr	r3, [fp, #-808]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L64+12
	bl	printf
	sub	r3, fp, #828
	ldr	r1, .L64+24
	mov	r0, r3
	bl	bgbrng_ciph0_genkey
	sub	ip, fp, #808
	sub	r3, fp, #828
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r1, [fp, #-796]
	ldr	r2, [fp, #-800]
	ldr	r0, [fp, #-804]
	ldr	r3, [fp, #-808]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L64+12
	bl	printf
	sub	r3, fp, #828
	ldr	r1, .L64+28
	mov	r0, r3
	bl	bgbrng_ciph0_genkey
	sub	ip, fp, #808
	sub	r3, fp, #828
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r1, [fp, #-796]
	ldr	r2, [fp, #-800]
	ldr	r0, [fp, #-804]
	ldr	r3, [fp, #-808]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L64+12
	bl	printf
	sub	ip, fp, #792
	sub	r3, fp, #808
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #792
	sub	r1, fp, #520
	sub	r0, fp, #776
	mov	r2, #256
	bl	bgbrng_ciph0_dummy
	ldr	r0, .L64+32
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-812]
	b	.L54
.L55:
	sub	r2, fp, #520
	ldr	r3, [fp, #-812]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L64+36
	bl	printf
	ldr	r3, [fp, #-812]
	add	r3, r3, #1
	str	r3, [fp, #-812]
.L54:
	ldr	r3, [fp, #-812]
	cmp	r3, #37
	ble	.L55
	mov	r0, #10
	bl	putchar
	sub	ip, fp, #792
	sub	r3, fp, #808
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #792
	sub	r1, fp, #520
	sub	r0, fp, #776
	mov	r2, #256
	bl	bgbrng_ciph0_enc
	sub	ip, fp, #792
	sub	r3, fp, #808
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #792
	sub	r1, fp, #264
	sub	r0, fp, #520
	mov	r2, #256
	bl	bgbrng_ciph0_dec
	ldr	r0, .L64+40
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-812]
	b	.L56
.L57:
	sub	r2, fp, #776
	ldr	r3, [fp, #-812]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L64+36
	bl	printf
	ldr	r3, [fp, #-812]
	add	r3, r3, #1
	str	r3, [fp, #-812]
.L56:
	ldr	r3, [fp, #-812]
	cmp	r3, #37
	ble	.L57
	mov	r0, #10
	bl	putchar
	ldr	r0, .L64+44
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-812]
	b	.L58
.L59:
	sub	r2, fp, #520
	ldr	r3, [fp, #-812]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L64+36
	bl	printf
	ldr	r3, [fp, #-812]
	add	r3, r3, #1
	str	r3, [fp, #-812]
.L58:
	ldr	r3, [fp, #-812]
	cmp	r3, #37
	ble	.L59
	mov	r0, #10
	bl	putchar
	ldr	r0, .L64+48
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-812]
	b	.L60
.L61:
	sub	r2, fp, #264
	ldr	r3, [fp, #-812]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L64+36
	bl	printf
	ldr	r3, [fp, #-812]
	add	r3, r3, #1
	str	r3, [fp, #-812]
.L60:
	ldr	r3, [fp, #-812]
	cmp	r3, #37
	ble	.L61
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	ldr	r2, .L64
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L63
	bl	__stack_chk_fail
.L63:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L65:
	.align	2
.L64:
	.word	.LC17
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.data
	.align	3
	.type	m0.5307, %object
	.size	m0.5307, 8
m0.5307:
	.word	-1
	.word	0
	.align	3
	.type	m1.5308, %object
	.size	m1.5308, 8
m1.5308:
	.word	2047
	.word	0
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
