	.file	"552950.c"
	.intel_syntax noprefix
	.text
	.type	writechar, @function
writechar:
.LFB6:
	.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	eax, edi
	mov	BYTE PTR -36[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -18[rbp], 32
	lea	rax, -18[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	movzx	eax, BYTE PTR -36[rbp]
	movzx	edx, al
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 3
	add	eax, edx
	shr	ax, 8
	shr	al, 4
	add	eax, 48
	mov	BYTE PTR -17[rbp], al
	lea	rax, -17[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	movzx	edx, BYTE PTR -36[rbp]
	movzx	eax, BYTE PTR -17[rbp]
	movzx	eax, al
	sub	eax, 48
	imul	eax, eax, -100
	add	eax, edx
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	add	eax, 48
	mov	BYTE PTR -16[rbp], al
	lea	rax, -16[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	movzx	ecx, BYTE PTR -36[rbp]
	movzx	edx, cl
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 3
	add	eax, edx
	lea	edx, 0[0+rax*4]
	add	eax, edx
	shr	ax, 8
	mov	edx, eax
	shr	dl, 3
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	lea	eax, 48[rdx]
	mov	BYTE PTR -15[rbp], al
	lea	rax, -15[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	lea	rax, -18[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	mov	WORD PTR -14[rbp], 30812
	mov	BYTE PTR -12[rbp], 0
	lea	rax, -14[rbp]
	mov	edx, 2
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	movzx	eax, BYTE PTR -36[rbp]
	shr	al, 4
	movzx	eax, al
	and	eax, 15
	mov	rdx, rax
	lea	rax, hex.1[rip]
	add	rax, rdx
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	movzx	eax, BYTE PTR -36[rbp]
	and	eax, 15
	mov	rdx, rax
	lea	rax, hex.1[rip]
	add	rax, rdx
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	mov	WORD PTR -11[rbp], 2573
	mov	BYTE PTR -9[rbp], 0
	lea	rax, -11[rbp]
	mov	edx, 2
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L2
	call	__stack_chk_fail@PLT
.L2:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	writechar, .-writechar
	.type	finish, @function
finish:
.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, 16
	mov	QWORD PTR -8[rbp], 0
	jmp	.L4
.L5:
	lea	rdx, msg.0[rip]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	add	QWORD PTR -8[rbp], 1
.L4:
	cmp	QWORD PTR -8[rbp], 37
	jbe	.L5
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	finish, .-finish
	.globl	main
	.type	main, @function
main:
.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, finish[rip]
	call	atexit@PLT
.L9:
	lea	rax, -9[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	movzx	eax, BYTE PTR -9[rbp]
	movzx	eax, al
	mov	edi, eax
	call	writechar
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 120
	jne	.L9
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 16
	.type	hex.1, @object
	.size	hex.1, 17
hex.1:
	.string	"0123456789abcdef"
	.align 32
	.type	msg.0, @object
	.size	msg.0, 38
msg.0:
	.string	"called finish registered with atexit\n"
	.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	"552950.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\\x\000"
	.align	2
.LC1:
	.ascii	"\015\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	writechar, %function
writechar:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	mov	r3, r0
	strb	r3, [fp, #-21]
	ldr	r3, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #32
	strb	r3, [fp, #-20]
	sub	r3, fp, #20
	mov	r2, #1
	mov	r1, r3
	mov	r0, #1
	bl	write
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	ldr	r2, .L3+4
	umull	r1, r3, r2, r3
	lsr	r3, r3, #5
	and	r3, r3, #255
	add	r3, r3, #48
	and	r3, r3, #255
	strb	r3, [fp, #-19]
	sub	r3, fp, #19
	mov	r2, #1
	mov	r1, r3
	mov	r0, #1
	bl	write
	ldrb	r2, [fp, #-21]	@ zero_extendqisi2
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	sub	r3, r3, #48
	mvn	r1, #99
	mul	r3, r1, r3
	add	r3, r2, r3
	ldr	r2, .L3+8
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	and	r3, r3, #255
	add	r3, r3, #48
	and	r3, r3, #255
	strb	r3, [fp, #-18]
	sub	r3, fp, #18
	mov	r2, #1
	mov	r1, r3
	mov	r0, #1
	bl	write
	ldrb	r2, [fp, #-21]	@ zero_extendqisi2
	ldr	r3, .L3+12
	umull	r1, r3, r2, r3
	lsr	r1, r3, #3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	and	r3, r3, #255
	add	r3, r3, #48
	and	r3, r3, #255
	strb	r3, [fp, #-17]
	sub	r3, fp, #17
	mov	r2, #1
	mov	r1, r3
	mov	r0, #1
	bl	write
	sub	r3, fp, #20
	mov	r2, #1
	mov	r1, r3
	mov	r0, #1
	bl	write
	ldr	r2, .L3+16
	sub	r3, fp, #16
	ldr	r2, [r2]
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	sub	r3, fp, #16
	mov	r2, #2
	mov	r1, r3
	mov	r0, #1
	bl	write
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	and	r3, r3, #15
	ldr	r2, .L3+20
	add	r3, r3, r2
	mov	r2, #1
	mov	r1, r3
	mov	r0, #1
	bl	write
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	and	r3, r3, #15
	ldr	r2, .L3+20
	add	r3, r3, r2
	mov	r2, #1
	mov	r1, r3
	mov	r0, #1
	bl	write
	ldr	r2, .L3+24
	sub	r3, fp, #12
	ldr	r2, [r2]
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	sub	r3, fp, #12
	mov	r2, #2
	mov	r1, r3
	mov	r0, #1
	bl	write
	nop
	ldr	r3, .L3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L2
	bl	__stack_chk_fail
.L2:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC2
	.word	1374389535
	.word	1717986919
	.word	-858993459
	.word	.LC0
	.word	hex.5411
	.word	.LC1
	.size	writechar, .-writechar
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	finish, %function
finish:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L6
.L7:
	ldr	r3, [fp, #-8]
	ldr	r2, .L8
	add	r3, r3, r2
	mov	r2, #1
	mov	r1, r3
	mov	r0, #1
	bl	write
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L6:
	ldr	r3, [fp, #-8]
	cmp	r3, #37
	bls	.L7
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	msg.5421
	.size	finish, .-finish
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L16+4
	bl	atexit
.L13:
	sub	r3, fp, #9
	mov	r2, #1
	mov	r1, r3
	mov	r0, #0
	bl	read
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	mov	r0, r3
	bl	writechar
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L13
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC3
	.word	finish
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	hex.5411, %object
	.size	hex.5411, 17
hex.5411:
	.ascii	"0123456789abcdef\000"
	.align	2
	.type	msg.5421, %object
	.size	msg.5421, 38
msg.5421:
	.ascii	"called finish registered with atexit\012\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
