	.file	"extr_schistory.c_history_to_screen.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	history_to_screen, @function
history_to_screen:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, 12[rdi]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, 1
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR 4[rdi]
	mov	r12d, DWORD PTR [rdi]
	test	eax, eax
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, DWORD PTR 8[rbp]
	mov	edi, DWORD PTR 16[rbp]
	mov	esi, r12d
	neg	edx
	call	sc_vtb_pos@PLT
	mov	ecx, DWORD PTR 4[rbp]
	mov	r8d, DWORD PTR 8[rbp]
	mov	rdx, r13
	mov	edi, DWORD PTR 16[rbp]
	mov	esi, eax
	mov	r12d, eax
	sub	ecx, ebx
	add	ebx, 1
	imul	ecx, r8d
	call	sc_vtb_copy@PLT
	cmp	DWORD PTR 4[rbp], ebx
	jge	.L3
.L4:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	mark_all@PLT
	.cfi_endproc
.LFE0:
	.size	history_to_screen, .-history_to_screen
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_schistory.c_history_to_screen.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	history_to_screen, %function
history_to_screen:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, [r0, #4]
	mov	r4, r0
	cmp	r3, #0
	movgt	r6, #1
	ldr	r5, [r0]
	sub	sp, sp, #12
	addgt	r7, r0, #12
	ble	.L4
.L3:
	ldr	r2, [r4, #8]
	mov	r1, r5
	rsb	r2, r2, #0
	ldr	r0, [r4, #16]
	bl	sc_vtb_pos
	ldr	r2, [r4, #8]
	ldr	r3, [r4, #4]
	str	r2, [sp]
	sub	r3, r3, r6
	mul	r3, r2, r3
	mov	r1, r0
	mov	r5, r0
	mov	r2, r7
	ldr	r0, [r4, #16]
	bl	sc_vtb_copy
	ldr	r3, [r4, #4]
	add	r6, r6, #1
	cmp	r3, r6
	bge	.L3
.L4:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	mark_all
	.size	history_to_screen, .-history_to_screen
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
