	.file	"extr_con_log.c_CON_LogRead.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	CON_LogRead
	.type	CON_LogRead, @function
CON_LogRead:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	eax, eax
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	CON_LogSize@PLT
	cmp	eax, r12d
	jb	.L7
.L2:
	mov	esi, DWORD PTR readPos[rip]
	mov	eax, DWORD PTR MAX_LOG[rip]
	lea	edx, [rsi+r12]
	cmp	edx, eax
	jbe	.L4
	mov	r13d, esi
	mov	ebp, eax
	sub	r13d, eax
	sub	ebp, esi
	add	r13d, r12d
.L3:
	mov	edx, ebp
	mov	rdi, rbx
	add	rsi, QWORD PTR consoleLog[rip]
	call	Com_Memcpy@PLT
	mov	edi, ebp
	mov	rsi, QWORD PTR consoleLog[rip]
	mov	edx, r13d
	add	rdi, rbx
	call	Com_Memcpy@PLT
	mov	eax, DWORD PTR readPos[rip]
	xor	edx, edx
	add	eax, r12d
	div	DWORD PTR MAX_LOG[rip]
	mov	eax, r12d
	mov	DWORD PTR readPos[rip], edx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	ebp, r12d
	xor	r13d, r13d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	xor	eax, eax
	call	CON_LogSize@PLT
	mov	r12d, eax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	CON_LogRead, .-CON_LogRead
	.comm	readPos,4,4
	.comm	consoleLog,8,8
	.comm	MAX_LOG,4,4
	.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_con_log.c_CON_LogRead.c"
	.text
	.global	__aeabi_uidivmod
	.align	2
	.global	CON_LogRead
	.syntax unified
	.arm
	.fpu softvfp
	.type	CON_LogRead, %function
CON_LogRead:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	mov	r6, r0
	bl	CON_LogSize
	cmp	r0, r4
	bcc	.L7
.L2:
	ldr	r7, .L8
	ldr	r8, .L8+4
	ldr	r3, [r7]
	ldr	r5, [r8]
	add	r2, r3, r4
	cmp	r2, r5
	movls	r5, r4
	movls	r10, #0
	ldr	r9, .L8+8
	subhi	r10, r3, r5
	ldr	r1, [r9]
	subhi	r5, r5, r3
	addhi	r10, r10, r4
	add	r1, r3, r1
	mov	r2, r5
	mov	r0, r6
	bl	Com_Memcpy
	mov	r2, r10
	ldr	r1, [r9]
	add	r0, r6, r5
	bl	Com_Memcpy
	ldr	r0, [r7]
	ldr	r1, [r8]
	add	r0, r4, r0
	bl	__aeabi_uidivmod
	mov	r0, r4
	str	r1, [r7]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	bl	CON_LogSize
	mov	r4, r0
	b	.L2
.L9:
	.align	2
.L8:
	.word	readPos
	.word	MAX_LOG
	.word	consoleLog
	.size	CON_LogRead, .-CON_LogRead
	.comm	readPos,4,4
	.comm	consoleLog,4,4
	.comm	MAX_LOG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
