	.file	"81045.c"
	.intel_syntax noprefix
	.text
	.globl	sputsx
	.type	sputsx, @function
sputsx:
.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
	mov	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	cmp	DWORD PTR -24[rbp], 0
	jg	.L2
	mov	rax, QWORD PTR -32[rbp]
	jmp	.L3
.L2:
	lea	rax, -20[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -24[rbp]
	mov	WORD PTR -12[rbp], ax
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	sar	eax
	mov	edx, eax
	mov	eax, 4
	sub	eax, edx
	mov	WORD PTR -14[rbp], ax
	jmp	.L4
.L9:
	movsx	eax, WORD PTR -12[rbp]
	and	eax, 1
	test	eax, eax
	je	.L5
	movsx	rdx, WORD PTR -14[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cbw
	and	eax, 15
	mov	WORD PTR -10[rbp], ax
	movzx	eax, WORD PTR -14[rbp]
	add	eax, 1
	mov	WORD PTR -14[rbp], ax
	jmp	.L6
.L5:
	movsx	rdx, WORD PTR -14[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	sar	al, 4
	cbw
	and	eax, 15
	mov	WORD PTR -10[rbp], ax
.L6:
	cmp	WORD PTR -10[rbp], 9
	jg	.L7
	movzx	eax, WORD PTR -10[rbp]
	add	eax, 48
	mov	ecx, eax
	jmp	.L8
.L7:
	movzx	eax, WORD PTR -10[rbp]
	add	eax, 55
	mov	ecx, eax
.L8:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	mov	BYTE PTR [rax], cl
	movzx	eax, WORD PTR -12[rbp]
	sub	eax, 1
	mov	WORD PTR -12[rbp], ax
.L4:
	cmp	WORD PTR -12[rbp], 0
	jg	.L9
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -32[rbp]
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	sputsx, .-sputsx
	.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	"81045.c"
	.text
	.align	2
	.global	sputsx
	.syntax unified
	.arm
	.fpu softvfp
	.type	sputsx, %function
sputsx:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bgt	.L2
	ldr	r3, [fp, #-32]
	b	.L3
.L2:
	sub	r3, fp, #24
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-28]
	strh	r3, [fp, #-12]	@ movhi
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	asr	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	rsb	r3, r3, #4
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-14]	@ movhi
	b	.L4
.L9:
	ldrh	r3, [fp, #-12]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L5
	ldrsh	r3, [fp, #-14]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	asr	r3, r3, #16
	and	r3, r3, #15
	strh	r3, [fp, #-10]	@ movhi
	ldrsh	r3, [fp, #-14]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-14]	@ movhi
	b	.L6
.L5:
	ldrsh	r3, [fp, #-14]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	lsl	r3, r3, #16
	asr	r3, r3, #16
	and	r3, r3, #15
	strh	r3, [fp, #-10]	@ movhi
.L6:
	ldrsh	r3, [fp, #-10]
	cmp	r3, #9
	bgt	.L7
	ldrh	r3, [fp, #-10]	@ movhi
	and	r3, r3, #255
	add	r3, r3, #48
	and	r2, r3, #255
	b	.L8
.L7:
	ldrh	r3, [fp, #-10]	@ movhi
	and	r3, r3, #255
	add	r3, r3, #55
	and	r2, r3, #255
.L8:
	ldr	r3, [fp, #-32]
	add	r1, r3, #1
	str	r1, [fp, #-32]
	strb	r2, [r3]
	ldrsh	r3, [fp, #-12]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-12]	@ movhi
.L4:
	ldrsh	r3, [fp, #-12]
	cmp	r3, #0
	bgt	.L9
	ldr	r3, [fp, #-32]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	sputsx, .-sputsx
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
