	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CON_LogRead                    ## -- Begin function CON_LogRead
	.p2align	4, 0x90
_CON_LogRead:                           ## @CON_LogRead
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_CON_LogSize
	cmpl	%r15d, %eax
	jae	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_CON_LogSize
	movl	%eax, %r15d
LBB0_2:
	movq	_readPos@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ebx
	subl	%esi, %ebx
	leal	(%rsi,%r15), %ecx
	movl	%r15d, %r12d
	subl	%ebx, %r12d
	cmpl	%eax, %ecx
	cmovbel	%r15d, %ebx
	cmovbel	%r13d, %r12d
	movq	_consoleLog@GOTPCREL(%rip), %r13
	addq	(%r13), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_Com_Memcpy
	addq	%r14, %rbx
	movq	(%r13), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_Com_Memcpy
	movq	_readPos@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	addl	%r15d, %eax
	xorl	%edx, %edx
	movq	_MAX_LOG@GOTPCREL(%rip), %rsi
	divl	(%rsi)
	movl	%edx, (%rcx)
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_readPos,4,2                    ## @readPos
	.comm	_MAX_LOG,4,2                    ## @MAX_LOG
	.comm	_consoleLog,8,3                 ## @consoleLog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CON_LogRead                    ; -- Begin function CON_LogRead
	.p2align	2
_CON_LogRead:                           ; @CON_LogRead
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	bl	_CON_LogSize
	cmp	w0, w19
	b.hs	LBB0_2
; %bb.1:
	bl	_CON_LogSize
	mov	x19, x0
LBB0_2:
Lloh0:
	adrp	x23, _readPos@GOTPAGE
Lloh1:
	ldr	x23, [x23, _readPos@GOTPAGEOFF]
Lloh2:
	adrp	x24, _MAX_LOG@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MAX_LOG@GOTPAGEOFF]
	ldr	w8, [x23]
	ldr	w9, [x24]
	sub	w10, w9, w8
	sub	w11, w19, w10
	add	w12, w8, w19
	cmp	w12, w9
	csel	w21, w10, w19, hi
	csel	w22, w11, wzr, hi
Lloh4:
	adrp	x25, _consoleLog@GOTPAGE
Lloh5:
	ldr	x25, [x25, _consoleLog@GOTPAGEOFF]
	ldr	x9, [x25]
	add	x1, x9, x8
	mov	x0, x20
	mov	x2, x21
	bl	_Com_Memcpy
	add	x0, x20, x21
	ldr	x1, [x25]
	mov	x2, x22
	bl	_Com_Memcpy
	ldr	w8, [x23]
	add	w8, w8, w19
	ldr	w9, [x24]
	udiv	w10, w8, w9
	msub	w8, w10, w9, w8
	str	w8, [x23]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_readPos,4,2                    ; @readPos
	.comm	_MAX_LOG,4,2                    ; @MAX_LOG
	.comm	_consoleLog,8,3                 ; @consoleLog
.subsections_via_symbols
