	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CON_LogWrite                   ## -- Begin function CON_LogWrite
	.p2align	4, 0x90
_CON_LogWrite:                          ## @CON_LogWrite
	.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
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_strlen
	movl	%eax, %r12d
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_CON_LogFree
	cmpl	%r12d, %eax
	jae	LBB0_14
## %bb.1:
	movq	_consoleLog@GOTPCREL(%rip), %r13
	movq	_readPos@GOTPCREL(%rip), %rbx
	movq	_MAX_LOG@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	movq	(%r14), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	divq	%rcx
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, (%rbx)
	xorl	%eax, %eax
	callq	_CON_LogFree
	cmpl	%r12d, %eax
	jae	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	xorl	%eax, %eax
	callq	_CON_LogSize
	testl	%eax, %eax
	jle	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rcx
	movq	(%rbx), %rax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %eax
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%rax, (%rbx)
	movq	(%r13), %rcx
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$10, (%rcx,%rax)
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	xorl	%eax, %eax
	callq	_CON_LogSize
	movl	%eax, %ecx
	movq	(%rbx), %rax
	cmpl	$2, %ecx
	jl	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	incq	%rax
	movq	(%r14), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rax
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	jmp	LBB0_13
LBB0_14:
	xorl	%eax, %eax
	callq	_CON_LogFree
	cmpl	%r12d, %eax
	jb	LBB0_18
## %bb.15:
	movq	_writePos@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leal	(%rdi,%r12), %eax
	movq	_MAX_LOG@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%ecx, %ebx
	subl	%edi, %ebx
	movl	%r12d, %edx
	subl	%ebx, %edx
	xorl	%r15d, %r15d
	cmpq	%rax, %rcx
	cmovael	%r12d, %ebx
	cmovbl	%edx, %r15d
	movq	_consoleLog@GOTPCREL(%rip), %r14
	addq	(%r14), %rdi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_Com_Memcpy
	movq	(%r14), %rdi
	addq	%r13, %rbx
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_Com_Memcpy
	movq	_writePos@GOTPCREL(%rip), %rsi
	movl	(%rsi), %eax
	addl	%r12d, %eax
	movq	_MAX_LOG@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jb	LBB0_17
## %bb.16:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %eax
LBB0_17:
	movl	%eax, (%rsi)
	movl	%r12d, %r15d
LBB0_18:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_consoleLog,8,3                 ## @consoleLog
	.comm	_readPos,8,3                    ## @readPos
	.comm	_MAX_LOG,8,3                    ## @MAX_LOG
	.comm	_writePos,4,2                   ## @writePos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CON_LogWrite                   ; -- Begin function CON_LogWrite
	.p2align	2
_CON_LogWrite:                          ; @CON_LogWrite
	.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	x20, x0
	bl	_strlen
	mov	x19, x0
	bl	_CON_LogFree
Lloh0:
	adrp	x24, _consoleLog@GOTPAGE
Lloh1:
	ldr	x24, [x24, _consoleLog@GOTPAGEOFF]
Lloh2:
	adrp	x23, _MAX_LOG@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MAX_LOG@GOTPAGEOFF]
	cmp	w0, w19
	b.hs	LBB0_8
; %bb.1:
Lloh4:
	adrp	x21, _readPos@GOTPAGE
Lloh5:
	ldr	x21, [x21, _readPos@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	ldr	x9, [x23]
	udiv	x10, x8, x9
	msub	x8, x10, x9, x8
	str	x8, [x21]
	bl	_CON_LogFree
	cmp	w0, w19
	b.hs	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	bl	_CON_LogSize
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x24]
	ldr	x8, [x21]
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x9, x8]
	cmp	w9, #10
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	bl	_CON_LogSize
	ldr	x8, [x21]
	cmp	w0, #2
	b.lt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x8, x8, #1
	ldr	x9, [x23]
	udiv	x10, x8, x9
	msub	x8, x10, x9, x8
	str	x8, [x21]
	ldr	x9, [x24]
	b	LBB0_5
LBB0_8:
	bl	_CON_LogFree
	cmp	w0, w19
	b.hs	LBB0_10
; %bb.9:
	mov	w19, #0
	b	LBB0_11
LBB0_10:
Lloh6:
	adrp	x25, _writePos@GOTPAGE
Lloh7:
	ldr	x25, [x25, _writePos@GOTPAGEOFF]
	ldr	w8, [x25]
	ldr	x9, [x23]
	sub	w10, w9, w8
	sub	w11, w19, w10
	add	w12, w8, w19
	cmp	x9, x12
	csel	w21, w10, w19, lo
	csel	w22, w11, wzr, lo
	ldr	x9, [x24]
	add	x0, x9, x8
	mov	x1, x20
	mov	x2, x21
	bl	_Com_Memcpy
	ldr	x0, [x24]
	add	x1, x20, x21
	mov	x2, x22
	bl	_Com_Memcpy
	ldr	w8, [x25]
	add	w8, w8, w19
	ldr	x9, [x23]
	udiv	x10, x8, x9
	msub	w8, w10, w9, w8
	str	w8, [x25]
LBB0_11:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_consoleLog,8,3                 ; @consoleLog
	.comm	_readPos,8,3                    ; @readPos
	.comm	_MAX_LOG,8,3                    ; @MAX_LOG
	.comm	_writePos,4,2                   ; @writePos
.subsections_via_symbols
