	.file	"646540.c"
	.intel_syntax noprefix
	.text
	.data
	.align 32
	.type	sccsid, @object
	.size	sccsid, 34
sccsid:
	.string	"@(#)tputs.c\t8.1 (Berkeley) 6/4/93"
	.align 16
	.type	tmspc10, @object
	.size	tmspc10, 30
tmspc10:
	.value	0
	.value	2000
	.value	1333
	.value	909
	.value	743
	.value	666
	.value	500
	.value	333
	.value	166
	.value	83
	.value	55
	.value	41
	.value	20
	.value	10
	.value	5
	.globl	ospeed
	.bss
	.align 2
	.type	ospeed, @object
	.size	ospeed, 2
ospeed:
	.zero	2
	.globl	PC
	.type	PC, @object
	.size	PC, 1
PC:
	.zero	1
	.text
	.globl	tputs
	.type	tputs, @function
tputs:
.LFB0:
	.cfi_startproc
	endbr64
	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, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	DWORD PTR -20[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	mov	r12d, 0
	test	rbx, rbx
	je	.L18
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rbx]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L4
.L5:
	mov	eax, r12d
	sal	eax, 2
	add	eax, r12d
	add	eax, eax
	mov	edx, eax
	mov	rax, rbx
	lea	rbx, 1[rax]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	add	eax, edx
	lea	r12d, -48[rax]
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rbx]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L5
.L4:
	mov	eax, r12d
	sal	eax, 2
	add	eax, r12d
	add	eax, eax
	mov	r12d, eax
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 46
	jne	.L6
	add	rbx, 1
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rbx]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L8
	movzx	eax, BYTE PTR [rbx]
	movsx	eax, al
	sub	eax, 48
	add	r12d, eax
	jmp	.L8
.L9:
	add	rbx, 1
.L8:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rbx]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L9
.L6:
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 42
	jne	.L11
	add	rbx, 1
	imul	r12d, DWORD PTR -20[rbp]
	jmp	.L11
.L12:
	mov	rax, rbx
	lea	rbx, 1[rax]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	rdx, QWORD PTR -32[rbp]
	mov	edi, eax
	mov	eax, 0
	call	rdx
.L11:
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	jne	.L12
	test	r12d, r12d
	je	.L19
	movzx	eax, WORD PTR ospeed[rip]
	test	ax, ax
	jle	.L20
	movzx	eax, WORD PTR ospeed[rip]
	cmp	ax, 14
	ja	.L20
	movzx	eax, WORD PTR ospeed[rip]
	cwde
	cdqe
	lea	rdx, [rax+rax]
	lea	rax, tmspc10[rip]
	movzx	eax, WORD PTR [rdx+rax]
	movsx	ebx, ax
	mov	eax, ebx
	shr	eax, 31
	add	eax, ebx
	sar	eax
	add	r12d, eax
	mov	eax, r12d
	cdq
	idiv	ebx
	mov	r12d, eax
	jmp	.L16
.L17:
	movzx	eax, BYTE PTR PC[rip]
	movsx	eax, al
	mov	rdx, QWORD PTR -32[rbp]
	mov	edi, eax
	mov	eax, 0
	call	rdx
	sub	r12d, 1
.L16:
	test	r12d, r12d
	jg	.L17
	jmp	.L3
.L18:
	nop
	jmp	.L3
.L19:
	nop
	jmp	.L3
.L20:
	nop
.L3:
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	tputs, .-tputs
	.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	"646540.c"
	.text
	.data
	.align	2
	.type	sccsid, %object
	.size	sccsid, 34
sccsid:
	.ascii	"@(#)tputs.c\0118.1 (Berkeley) 6/4/93\000"
	.align	2
	.type	tmspc10, %object
	.size	tmspc10, 30
tmspc10:
	.short	0
	.short	2000
	.short	1333
	.short	909
	.short	743
	.short	666
	.short	500
	.short	333
	.short	166
	.short	83
	.short	55
	.short	41
	.short	20
	.short	10
	.short	5
	.comm	ospeed,2,2
	.comm	PC,1,1
	.global	__aeabi_idiv
	.text
	.align	2
	.global	tputs
	.syntax unified
	.arm
	.fpu softvfp
	.type	tputs, %function
tputs:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	mov	r4, r0
	str	r1, [fp, #-16]
	str	r2, [fp, #-20]
	mov	r5, #0
	cmp	r4, #0
	beq	.L18
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [r4]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L4
.L5:
	mov	r3, r5
	lsl	r3, r3, #2
	add	r3, r3, r5
	lsl	r3, r3, #1
	mov	r2, r3
	mov	r3, r4
	add	r4, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r2, r3
	sub	r5, r3, #48
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [r4]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L5
.L4:
	mov	r3, r5
	lsl	r3, r3, #2
	add	r3, r3, r5
	lsl	r3, r3, #1
	mov	r5, r3
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L6
	add	r4, r4, #1
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [r4]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L8
	ldrb	r3, [r4]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r5, r5, r3
	b	.L8
.L9:
	add	r4, r4, #1
.L8:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [r4]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L9
.L6:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L11
	add	r4, r4, #1
	ldr	r3, [fp, #-16]
	mul	r5, r3, r5
	b	.L11
.L12:
	mov	r3, r4
	add	r4, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	mov	r0, r2
	blx	r3
.L11:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L12
	cmp	r5, #0
	beq	.L19
	ldr	r3, .L21
	ldrsh	r3, [r3]
	cmp	r3, #0
	ble	.L20
	ldr	r3, .L21
	ldrsh	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #14
	bhi	.L20
	ldr	r3, .L21
	ldrsh	r3, [r3]
	ldr	r2, .L21+4
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrsh	r3, [r3]
	mov	r4, r3
	lsr	r3, r4, #31
	add	r3, r3, r4
	asr	r3, r3, #1
	add	r5, r5, r3
	mov	r1, r4
	mov	r0, r5
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r5, r3
	b	.L16
.L17:
	ldr	r3, .L21+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	mov	r0, r2
	blx	r3
	sub	r5, r5, #1
.L16:
	cmp	r5, #0
	bgt	.L17
	b	.L3
.L18:
	nop
	b	.L3
.L19:
	nop
	b	.L3
.L20:
	nop
.L3:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L22:
	.align	2
.L21:
	.word	ospeed
	.word	tmspc10
	.word	PC
	.size	tputs, .-tputs
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
