	.file	"extr_TraceScreen.c_TraceScreen_updateTrace.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	TraceScreen_updateTrace
	.type	TraceScreen_updateTrace, @function
TraceScreen_updateTrace:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 1064
	.cfi_def_cfa_offset 1120
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 1048[rsp], rax
	xor	eax, eax
	lea	rbp, 12[rsp]
	mov	rdi, rbp
	call	FD_ZERO@PLT
	mov	rdi, QWORD PTR 32[rbx]
	mov	rsi, rbp
	call	FD_SET@PLT
	mov	rax, QWORD PTR 32[rbx]
	xor	ecx, ecx
	xor	edx, edx
	lea	r8, 16[rsp]
	mov	rsi, rbp
	mov	QWORD PTR 24[rsp], 0
	lea	rdi, 1[rax]
	mov	DWORD PTR 16[rsp], 500
	call	select@PLT
	test	eax, eax
	jg	.L22
.L1:
	mov	rax, QWORD PTR 1048[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	add	rsp, 1064
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	rdi, QWORD PTR 32[rbx]
	mov	rsi, rbp
	call	FD_ISSET@PLT
	test	rax, rax
	je	.L1
	lea	r12, 32[rsp]
	mov	ecx, DWORD PTR 24[rbx]
	mov	edx, 1000
	mov	esi, 1
	mov	rdi, r12
	call	fread@PLT
	test	eax, eax
	je	.L1
	cmp	QWORD PTR 16[rbx], 0
	je	.L1
	movsx	r13, eax
	mov	BYTE PTR 32[rsp+r13], 0
	test	eax, eax
	jle	.L12
	sub	eax, 1
	lea	rbp, 33[rsp]
	lea	r15, 4[rbx]
	mov	rsi, r12
	lea	r14, 34[rsp+rax]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	add	rbp, 1
	cmp	rbp, r14
	je	.L5
.L9:
	cmp	BYTE PTR -1[rbp], 10
	jne	.L6
	mov	eax, DWORD PTR [rbx]
	mov	BYTE PTR -1[rbp], 0
	mov	rdi, r15
	test	eax, eax
	je	.L7
	call	InfoScreen_appendLine@PLT
	mov	DWORD PTR [rbx], 0
.L8:
	mov	rsi, rbp
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	call	InfoScreen_addLine@PLT
	jmp	.L8
.L12:
	mov	rsi, r12
	.p2align 4,,10
	.p2align 3
.L5:
	add	r12, r13
	cmp	rsi, r12
	jb	.L24
.L10:
	cmp	QWORD PTR 8[rbx], 0
	je	.L1
	mov	edi, DWORD PTR 4[rbx]
	call	Panel_size@PLT
	mov	edi, DWORD PTR 4[rbx]
	lea	rsi, -1[rax]
	call	Panel_setSelected@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	lea	rdi, 4[rbx]
	call	InfoScreen_addLine@PLT
	mov	BYTE PTR 32[rsp+r13], 0
	mov	DWORD PTR [rbx], 1
	jmp	.L10
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	TraceScreen_updateTrace, .-TraceScreen_updateTrace
	.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_TraceScreen.c_TraceScreen_updateTrace.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	TraceScreen_updateTrace
	.syntax unified
	.arm
	.fpu softvfp
	.type	TraceScreen_updateTrace, %function
TraceScreen_updateTrace:
	@ args = 0, pretend = 0, frame = 1024
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	sub	sp, sp, #1024
	sub	sp, sp, #8
	ldr	r3, .L31
	add	r0, sp, #12
	mov	r5, #0
	ldr	r3, [r3]
	str	r3, [sp, #1028]
	mov	r3,#0
	bl	FD_ZERO
	add	r1, sp, #12
	ldr	r0, [r4, #20]
	bl	FD_SET
	mov	ip, #500
	ldr	r0, [r4, #20]
	add	lr, sp, #16
	mov	r3, r5
	mov	r2, r5
	add	r0, r0, #1
	add	r1, sp, #12
	str	lr, [sp]
	str	r5, [sp, #20]
	str	ip, [sp, #16]
	bl	select
	cmp	r0, r5
	bgt	.L28
.L1:
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [sp, #1028]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L29
	add	sp, sp, #1024
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L28:
	ldr	r0, [r4, #20]
	add	r1, sp, #12
	bl	FD_ISSET
	cmp	r0, r5
	beq	.L1
	mov	r2, #1000
	mov	r1, #1
	ldr	r3, [r4, #16]
	add	r0, sp, #24
	bl	fread
	subs	r7, r0, #0
	beq	.L1
	ldr	r3, [r4, #12]
	cmp	r3, r5
	beq	.L1
	add	r3, sp, #1024
	add	r3, r3, #8
	add	r9, r3, r7
	cmp	r7, r5
	strb	r5, [r9, #-1008]
	ble	.L12
	add	r6, sp, #24
	mov	r1, r6
	add	r8, r6, r7
	add	r10, r4, #4
	b	.L9
.L6:
	cmp	r6, r8
	beq	.L5
.L9:
	ldrb	r3, [r6], #1	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L6
	ldr	r3, [r4]
	mov	r0, r10
	cmp	r3, #0
	strb	r5, [r6, #-1]
	beq	.L7
	bl	InfoScreen_appendLine
	str	r5, [r4]
.L8:
	mov	r1, r6
	b	.L6
.L7:
	bl	InfoScreen_addLine
	b	.L8
.L12:
	add	r1, sp, #24
.L5:
	add	r3, sp, #24
	add	r3, r3, r7
	cmp	r1, r3
	bcc	.L30
.L10:
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L1
	ldr	r4, [r4, #4]
	mov	r0, r4
	bl	Panel_size
	mov	r1, r0
	mov	r0, r4
	sub	r1, r1, #1
	bl	Panel_setSelected
	b	.L1
.L30:
	add	r0, r4, #4
	bl	InfoScreen_addLine
	mov	r2, #0
	mov	r3, #1
	strb	r2, [r9, #-1008]
	str	r3, [r4]
	b	.L10
.L29:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	.LC0
	.size	TraceScreen_updateTrace, .-TraceScreen_updateTrace
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
