	.file	"982442.c"
	.intel_syntax noprefix
	.text
	.globl	HEXtoRGB
	.type	HEXtoRGB, @function
HEXtoRGB:
.LFB0:
	.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], 57
	jle	.L2
	movsx	eax, BYTE PTR -4[rbp]
	sub	eax, 55
	jmp	.L4
.L2:
	movzx	eax, BYTE PTR -4[rbp]
	xor	eax, 48
	movsx	eax, al
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	HEXtoRGB, .-HEXtoRGB
	.globl	RGBtoHEX
	.type	RGBtoHEX, @function
RGBtoHEX:
.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 -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 9
	jle	.L6
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 55
	jmp	.L8
.L6:
	mov	eax, DWORD PTR -4[rbp]
	xor	eax, 48
.L8:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	RGBtoHEX, .-RGBtoHEX
	.section	.rodata
.LC0:
	.string	"%d "
.LC1:
	.string	"%c%c"
	.text
	.type	solve, @function
solve:
.LFB2:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 32
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	jmp	.L10
.L18:
	lea	rbx, -39[rbp]
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 35
	jne	.L11
	add	rbx, 1
	mov	DWORD PTR -48[rbp], 0
	jmp	.L12
.L13:
	mov	rax, rbx
	lea	rbx, 1[rax]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	HEXtoRGB
	sal	eax, 4
	mov	r12d, eax
	mov	rax, rbx
	lea	rbx, 1[rax]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	HEXtoRGB
	add	eax, r12d
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -48[rbp], 1
.L12:
	cmp	DWORD PTR -48[rbp], 2
	jle	.L13
	jmp	.L14
.L11:
	mov	edi, 35
	call	putchar@PLT
.L17:
	mov	DWORD PTR -44[rbp], 0
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -44[rbp]
	lea	edx, 0[0+rax*8]
	mov	eax, DWORD PTR -44[rbp]
	add	eax, eax
	add	edx, eax
	movzx	eax, BYTE PTR [rbx]
	xor	eax, 48
	movsx	eax, al
	add	eax, edx
	mov	DWORD PTR -44[rbp], eax
	add	rbx, 1
.L15:
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 47
	jg	.L16
	mov	eax, DWORD PTR -44[rbp]
	and	eax, 15
	mov	edi, eax
	call	RGBtoHEX
	movsx	r12d, al
	mov	eax, DWORD PTR -44[rbp]
	sar	eax, 4
	mov	edi, eax
	call	RGBtoHEX
	movsx	eax, al
	mov	edx, r12d
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, rbx
	lea	rbx, 1[rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L17
.L14:
	mov	edi, 10
	call	putchar@PLT
.L10:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -39[rbp]
	mov	esi, 15
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L18
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	add	rsp, 32
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	solve, .-solve
	.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
	mov	eax, 0
	call	solve
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	"982442.c"
	.text
	.align	2
	.global	HEXtoRGB
	.syntax unified
	.arm
	.fpu softvfp
	.type	HEXtoRGB, %function
HEXtoRGB:
	@ 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, #57
	bls	.L2
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	sub	r3, r3, #55
	b	.L4
.L2:
	ldrb	r3, [fp, #-5]
	eor	r3, r3, #48
	and	r3, r3, #255
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	HEXtoRGB, .-HEXtoRGB
	.align	2
	.global	RGBtoHEX
	.syntax unified
	.arm
	.fpu softvfp
	.type	RGBtoHEX, %function
RGBtoHEX:
	@ 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
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	ble	.L6
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	add	r3, r3, #55
	and	r3, r3, #255
	b	.L7
.L6:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #24
	asr	r3, r3, #24
	eor	r3, r3, #48
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #255
.L7:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	RGBtoHEX, .-RGBtoHEX
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d \000"
	.align	2
.LC1:
	.ascii	"%c%c\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	solve, %function
solve:
	@ 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
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	b	.L10
.L18:
	sub	r4, fp, #32
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L11
	add	r4, r4, #1
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L12
.L13:
	mov	r3, r4
	add	r4, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	HEXtoRGB
	mov	r3, r0
	lsl	r5, r3, #4
	mov	r3, r4
	add	r4, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	HEXtoRGB
	mov	r3, r0
	add	r3, r5, r3
	mov	r1, r3
	ldr	r0, .L20+4
	bl	printf
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L12:
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	ble	.L13
	b	.L14
.L11:
	mov	r0, #35
	bl	putchar
.L17:
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L15
.L16:
	ldr	r3, [fp, #-36]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrb	r2, [r4]	@ zero_extendqisi2
	eor	r2, r2, #48
	and	r2, r2, #255
	add	r3, r3, r2
	str	r3, [fp, #-36]
	add	r4, r4, #1
.L15:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #47
	bhi	.L16
	ldr	r3, [fp, #-36]
	asr	r3, r3, #4
	mov	r0, r3
	bl	RGBtoHEX
	mov	r3, r0
	mov	r5, r3
	ldr	r3, [fp, #-36]
	and	r3, r3, #15
	mov	r0, r3
	bl	RGBtoHEX
	mov	r3, r0
	mov	r2, r3
	mov	r1, r5
	ldr	r0, .L20+8
	bl	printf
	mov	r3, r4
	add	r4, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L17
.L14:
	mov	r0, #10
	bl	putchar
.L10:
	ldr	r3, .L20+12
	ldr	r2, [r3]
	sub	r3, fp, #32
	mov	r1, #15
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	nop
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	stdin
	.size	solve, .-solve
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	solve
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
