	.file	"992350.c"
	.intel_syntax noprefix
	.text
	.data
	.align 32
	.type	sccsid, @object
	.size	sccsid, 37
sccsid:
	.string	"@(#)tscroll.c\t8.4 (Berkeley) 7/27/94"
	.section	.rodata
.LC0:
	.string	"curses: __tscroll failed"
	.text
	.globl	__tscroll
	.type	__tscroll, @function
__tscroll:
.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 -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	cmp	QWORD PTR -24[rbp], 0
	je	.L26
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -16[rbp], eax
	lea	rax, result.0[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L4
.L24:
	cmp	DWORD PTR -12[rbp], 37
	je	.L5
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	mov	edx, DWORD PTR -12[rbp]
	mov	BYTE PTR [rax], dl
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 37
	cmp	eax, 75
	ja	.L27
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L8[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L8[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L8:
	.long	.L19-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L18-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L17-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L16-.L8
	.long	.L15-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L14-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L13-.L8
	.long	.L27-.L8
	.long	.L12-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L11-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L10-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L27-.L8
	.long	.L9-.L8
	.long	.L27-.L8
	.long	.L7-.L8
	.text
.L9:
	xor	DWORD PTR -16[rbp], 96
	jmp	.L4
.L11:
	cmp	DWORD PTR -16[rbp], 9
	jle	.L28
	cmp	DWORD PTR -16[rbp], 99
	jle	.L29
.L15:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	ecx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	or	ecx, 48
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	edx, edx, 100
	sub	eax, edx
	mov	DWORD PTR -16[rbp], eax
	jmp	.L16
.L29:
	nop
.L16:
	mov	eax, DWORD PTR -16[rbp]
	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
	mov	ecx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	or	ecx, 48
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	jmp	.L21
.L28:
	nop
.L21:
	mov	edx, DWORD PTR -16[rbp]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, edx
	sar	esi, 31
	sub	eax, esi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	mov	ecx, edx
	sub	ecx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	or	ecx, 48
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -16[rbp], eax
	jmp	.L4
.L14:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	DWORD PTR -16[rbp], eax
	jle	.L22
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	add	DWORD PTR -16[rbp], eax
	jmp	.L4
.L22:
	add	QWORD PTR -24[rbp], 1
	jmp	.L4
.L18:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	add	DWORD PTR -16[rbp], eax
.L17:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	mov	edx, DWORD PTR -16[rbp]
	mov	BYTE PTR [rax], dl
	jmp	.L4
.L10:
	add	DWORD PTR -16[rbp], 1
	jmp	.L4
.L19:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	mov	edx, DWORD PTR -12[rbp]
	mov	BYTE PTR [rax], dl
	jmp	.L4
.L13:
	mov	eax, DWORD PTR -16[rbp]
	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
	sal	eax, 4
	mov	esi, eax
	mov	edx, DWORD PTR -16[rbp]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	edi, edx
	sar	edi, 31
	sub	eax, edi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	mov	ecx, edx
	sub	ecx, eax
	lea	eax, [rsi+rcx]
	mov	DWORD PTR -16[rbp], eax
	jmp	.L4
.L12:
	mov	eax, DWORD PTR -16[rbp]
	cdq
	shr	edx, 28
	add	eax, edx
	and	eax, 15
	sub	eax, edx
	add	eax, eax
	sub	DWORD PTR -16[rbp], eax
	jmp	.L4
.L7:
	add	QWORD PTR -24[rbp], 1
	nop
.L4:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jne	.L24
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
	lea	rax, result.0[rip]
	jmp	.L25
.L26:
	nop
	jmp	.L3
.L27:
	nop
.L3:
	lea	rax, .LC0[rip]
.L25:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	__tscroll, .-__tscroll
	.local	result.0
	.comm	result.0,64,32
	.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	"992350.c"
	.text
	.data
	.align	2
	.type	sccsid, %object
	.size	sccsid, 37
sccsid:
	.ascii	"@(#)tscroll.c\0118.4 (Berkeley) 7/27/94\000"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"curses: __tscroll failed\000"
	.text
	.align	2
	.global	__tscroll
	.syntax unified
	.arm
	.fpu softvfp
	.type	__tscroll, %function
__tscroll:
	@ 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, #-24]
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-16]
	ldr	r3, .L30
	str	r3, [fp, #-12]
	b	.L4
.L24:
	ldr	r3, [fp, #-8]
	cmp	r3, #37
	beq	.L5
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L4
.L5:
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #37
	cmp	r3, #75
	ldrls	pc, [pc, r3, asl #2]
	b	.L27
.L8:
	.word	.L19
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L18
	.word	.L27
	.word	.L27
	.word	.L17
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L16
	.word	.L15
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L14
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L13
	.word	.L27
	.word	.L12
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L11
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L10
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L9
	.word	.L27
	.word	.L7
.L9:
	ldr	r3, [fp, #-16]
	eor	r3, r3, #96
	str	r3, [fp, #-16]
	b	.L4
.L11:
	ldr	r3, [fp, #-16]
	cmp	r3, #9
	ble	.L28
	ldr	r3, [fp, #-16]
	cmp	r3, #99
	ble	.L29
.L15:
	ldr	r3, [fp, #-16]
	ldr	r2, .L30+4
	smull	r1, r2, r3, r2
	asr	r2, r2, #5
	asr	r3, r3, #31
	sub	r3, r2, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r3, #48
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	str	r1, [fp, #-12]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r2, [fp, #-16]
	ldr	r3, .L30+4
	smull	r1, r3, r2, r3
	asr	r1, r3, #5
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	b	.L16
.L29:
	nop
.L16:
	ldr	r3, [fp, #-16]
	ldr	r2, .L30+8
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r3, #48
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	str	r1, [fp, #-12]
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L21
.L28:
	nop
.L21:
	ldr	r1, [fp, #-16]
	ldr	r3, .L30+8
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	lsl	r3, r2, #24
	asr	r3, r3, #24
	orr	r3, r3, #48
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	str	r1, [fp, #-12]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	b	.L4
.L14:
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	ble	.L22
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	str	r3, [fp, #-16]
	b	.L4
.L22:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L4
.L18:
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	str	r3, [fp, #-16]
.L17:
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	ldr	r2, [fp, #-16]
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L4
.L10:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L4
.L19:
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L4
.L13:
	ldr	r3, [fp, #-16]
	ldr	r2, .L30+8
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	lsl	r0, r3, #4
	ldr	r1, [fp, #-16]
	ldr	r3, .L30+8
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	add	r3, r0, r2
	str	r3, [fp, #-16]
	b	.L4
.L12:
	ldr	r3, [fp, #-16]
	rsbs	r2, r3, #0
	and	r3, r3, #15
	and	r2, r2, #15
	rsbpl	r3, r2, #0
	lsl	r3, r3, #1
	ldr	r2, [fp, #-16]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	b	.L4
.L7:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	nop
.L4:
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L24
	ldr	r3, [fp, #-12]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L30
	b	.L25
.L26:
	nop
	b	.L3
.L27:
	nop
.L3:
	ldr	r3, .L30+12
.L25:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L31:
	.align	2
.L30:
	.word	result.6061
	.word	1374389535
	.word	1717986919
	.word	.LC0
	.size	__tscroll, .-__tscroll
	.local	result.6061
	.comm	result.6061,64,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
