	.file	"666735.c"
	.intel_syntax noprefix
	.text
	.globl	XorShiftStar64
	.type	XorShiftStar64, @function
XorShiftStar64:
.LFB0:
	.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 -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR k.0[rip], rax
.L2:
	mov	rax, QWORD PTR k.0[rip]
	shr	rax, 12
	mov	rdx, rax
	mov	rax, QWORD PTR k.0[rip]
	xor	rax, rdx
	mov	QWORD PTR k.0[rip], rax
	mov	rax, QWORD PTR k.0[rip]
	sal	rax, 25
	mov	rdx, rax
	mov	rax, QWORD PTR k.0[rip]
	xor	rax, rdx
	mov	QWORD PTR k.0[rip], rax
	mov	rax, QWORD PTR k.0[rip]
	shr	rax, 27
	mov	rdx, rax
	mov	rax, QWORD PTR k.0[rip]
	xor	rax, rdx
	mov	QWORD PTR k.0[rip], rax
	mov	rax, QWORD PTR k.0[rip]
	movabs	rdx, 2685821657736338717
	imul	rax, rdx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	XorShiftStar64, .-XorShiftStar64
	.globl	hex2dec
	.type	hex2dec, @function
hex2dec:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	cmp	BYTE PTR -4[rbp], 96
	jbe	.L5
	cmp	BYTE PTR -4[rbp], 122
	ja	.L5
	movzx	eax, BYTE PTR -4[rbp]
	sub	eax, 87
	jmp	.L6
.L5:
	cmp	BYTE PTR -4[rbp], 64
	jbe	.L7
	cmp	BYTE PTR -4[rbp], 90
	ja	.L7
	movzx	eax, BYTE PTR -4[rbp]
	sub	eax, 55
	jmp	.L6
.L7:
	cmp	BYTE PTR -4[rbp], 47
	jbe	.L8
	cmp	BYTE PTR -4[rbp], 57
	ja	.L8
	movzx	eax, BYTE PTR -4[rbp]
	sub	eax, 48
	jmp	.L6
.L8:
	movzx	eax, BYTE PTR -4[rbp]
.L6:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	hex2dec, .-hex2dec
	.globl	morfi
	.type	morfi, @function
morfi:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	edi, 0
	call	XorShiftStar64
	mov	rdx, QWORD PTR -24[rbp]
	xor	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	jmp	.L10
.L11:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edi, eax
	call	putchar@PLT
.L10:
	sub	QWORD PTR -8[rbp], 1
	lea	rax, -24[rbp]
	cmp	QWORD PTR -8[rbp], rax
	jnb	.L11
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	morfi, .-morfi
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -40[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L16
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], 0
	jmp	.L14
.L15:
	mov	rax, QWORD PTR -24[rbp]
	sal	rax, 4
	mov	rbx, rax
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edi, eax
	call	hex2dec
	movzx	eax, al
	or	rax, rbx
	mov	QWORD PTR -24[rbp], rax
.L14:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L15
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	XorShiftStar64
	jmp	.L16
.L17:
	mov	rax, QWORD PTR -40[rbp]
	sal	rax, 8
	mov	rdx, rax
	mov	eax, DWORD PTR -44[rbp]
	movzx	eax, al
	or	rax, rdx
	mov	QWORD PTR -40[rbp], rax
	add	DWORD PTR -48[rbp], 1
	mov	eax, DWORD PTR -48[rbp]
	cdq
	shr	edx, 29
	add	eax, edx
	and	eax, 7
	sub	eax, edx
	mov	DWORD PTR -48[rbp], eax
	cmp	DWORD PTR -48[rbp], 0
	jne	.L16
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 8
	mov	rdi, rax
	call	morfi
	mov	QWORD PTR -40[rbp], 0
.L16:
	call	getchar@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], -1
	jne	.L17
	cmp	DWORD PTR -48[rbp], 0
	je	.L18
	mov	edx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	morfi
.L18:
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	main, .-main
	.data
	.align 8
	.type	k.0, @object
	.size	k.0, 8
k.0:
	.quad	-4982089500409860083
	.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	"666735.c"
	.text
	.align	2
	.global	XorShiftStar64
	.syntax unified
	.arm
	.fpu softvfp
	.type	XorShiftStar64, %function
XorShiftStar64:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #8
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	beq	.L2
	ldr	r1, .L4
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
.L2:
	ldr	r3, .L4
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsr	r2, r0, #12
	orr	r2, r2, r1, lsl #20
	lsr	r3, r1, #12
	ldr	r1, .L4
	ldmia	r1, {r0-r1}
	eor	r8, r2, r0
	eor	r9, r3, r1
	ldr	r3, .L4
	stm	r3, {r8-r9}
	ldr	r3, .L4
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #25
	orr	r3, r3, r0, lsr #7
	lsl	r2, r0, #25
	ldr	r1, .L4
	ldmia	r1, {r0-r1}
	eor	r6, r2, r0
	eor	r7, r3, r1
	ldr	r3, .L4
	stm	r3, {r6-r7}
	ldr	r3, .L4
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsr	r2, r0, #27
	orr	r2, r2, r1, lsl #5
	lsr	r3, r1, #27
	ldr	r1, .L4
	ldmia	r1, {r0-r1}
	eor	r4, r2, r0
	eor	r5, r3, r1
	ldr	r3, .L4
	stm	r3, {r4-r5}
	ldr	r3, .L4
	ldmia	r3, {r2-r3}
	ldr	r1, .L4+4
	mul	r0, r1, r3
	ldr	r1, .L4+8
	mul	r1, r2, r1
	add	ip, r0, r1
	ldr	lr, .L4+4
	umull	r0, r1, r2, lr
	add	r3, ip, r1
	mov	r1, r3
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L5:
	.align	2
.L4:
	.word	k.4629
	.word	1332534557
	.word	625341585
	.size	XorShiftStar64, .-XorShiftStar64
	.align	2
	.global	hex2dec
	.syntax unified
	.arm
	.fpu softvfp
	.type	hex2dec, %function
hex2dec:
	@ 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, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L7
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #122
	bhi	.L7
	ldrb	r3, [fp, #-5]
	sub	r3, r3, #87
	and	r3, r3, #255
	b	.L8
.L7:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L9
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L9
	ldrb	r3, [fp, #-5]
	sub	r3, r3, #55
	and	r3, r3, #255
	b	.L8
.L9:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L10
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L10
	ldrb	r3, [fp, #-5]
	sub	r3, r3, #48
	and	r3, r3, #255
	b	.L8
.L10:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
.L8:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	hex2dec, .-hex2dec
	.align	2
	.global	morfi
	.syntax unified
	.arm
	.fpu softvfp
	.type	morfi, %function
morfi:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-32]
	sub	r2, fp, #28
	add	r3, r2, r3
	str	r3, [fp, #-16]
	mov	r0, #0
	mov	r1, #0
	bl	XorShiftStar64
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	eor	r4, r0, r2
	eor	r5, r1, r3
	str	r4, [fp, #-28]
	str	r5, [fp, #-24]
	b	.L12
.L13:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
.L12:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	sub	r3, fp, #28
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bcs	.L13
	nop
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	morfi, .-morfi
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #40
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-68]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-52]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	b	.L16
.L17:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	mov	r4, #0
	mov	r5, #0
	lsl	r5, r3, #4
	orr	r5, r5, r2, lsr #28
	lsl	r4, r2, #4
	ldr	r3, [fp, #-52]
	add	r2, r3, #1
	str	r2, [fp, #-52]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	hex2dec
	mov	r3, r0
	and	r2, r3, #255
	mov	r3, #0
	orr	r8, r4, r2
	orr	r9, r5, r3
	str	r8, [fp, #-36]
	str	r9, [fp, #-32]
.L16:
	ldr	r3, [fp, #-52]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L17
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	XorShiftStar64
	b	.L18
.L19:
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #8
	orr	r3, r3, r0, lsr #24
	lsl	r2, r0, #8
	ldr	r1, [fp, #-48]
	and	r1, r1, #255
	and	r0, r1, #255
	mov	r1, #0
	orr	r6, r2, r0
	orr	r7, r3, r1
	str	r6, [fp, #-44]
	str	r7, [fp, #-40]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	rsbs	r2, r3, #0
	and	r3, r3, #7
	and	r2, r2, #7
	rsbpl	r3, r2, #0
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L18
	mov	r2, #8
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	morfi
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
.L18:
	bl	getchar
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L19
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L20
	ldr	r2, [fp, #-56]
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	morfi
.L20:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
	.size	main, .-main
	.data
	.align	3
	.type	k.4629, %object
	.size	k.4629, 8
k.4629:
	.word	-522326003
	.word	-1159983106
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
