	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LogThreadWriteGeneral
_LogThreadWriteGeneral:                 ## @LogThreadWriteGeneral
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, -104(%rbp)                 ## 8-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	32(%rbx), %rdi
	callq	_LockQueue
	movq	32(%rbx), %rdi
	callq	_GetNext
	movq	%rax, %r13
	movq	32(%rbx), %rdi
	callq	_UnlockQueue
	movq	(%r12), %r14
	xorl	%eax, %eax
	callq	_GetMaxLogSize
	cmpq	%rax, %r14
	jle	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_ClearBuf
LBB0_2:
	movq	(%r12), %r14
	movq	_LOG_ENGINE_BUFFER_CACHE_SIZE_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jl	LBB0_10
## %bb.3:
	cmpq	$0, (%r15)
	je	LBB0_10
## %bb.4:
	addq	(%rbx), %r14
	xorl	%eax, %eax
	callq	_GetMaxLogSize
	cmpq	%rax, %r14
	jle	LBB0_7
## %bb.5:
	cmpl	$0, 8(%rbx)
	jne	LBB0_10
## %bb.6:
	incl	12(%rbx)
	movl	$1, 8(%rbx)
	testq	%r13, %r13
	jne	LBB0_20
	jmp	LBB0_11
LBB0_7:
	movq	(%r15), %rdi
	movl	8(%r12), %esi
	movq	(%r12), %rdx
	callq	_FileWrite
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	(%r12), %rax
	addq	%rax, (%rbx)
	movq	%r12, %rdi
	callq	_ClearBuf
LBB0_10:
	testq	%r13, %r13
	je	LBB0_11
LBB0_20:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_LockLog
	movl	12(%rbx), %r10d
	movl	16(%rbx), %ecx
	movl	24(%rbx), %r8d
	movl	(%r13), %r9d
	movl	20(%rbx), %eax
	subq	$8, %rsp
	movq	%rbx, %rdi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-104(%rbp), %r12                ## 8-byte Reload
	pushq	%r12
	pushq	%r10
	pushq	%rax
	callq	_MakeLogFileName
	addq	$32, %rsp
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_24
## %bb.21:
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movl	$0, 12(%rbx)
	movl	24(%rbx), %r8d
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movl	(%r13), %r9d
	movl	16(%rbx), %ecx
	movl	20(%rbx), %eax
	subq	$8, %rsp
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	pushq	%r12
	pushq	$0
	pushq	%rax
	callq	_MakeLogFileName
	addq	$32, %rsp
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	%rsp, %r15
	movq	_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	24(%rbx), %r8d
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r9d
	movl	16(%rbx), %ecx
	movl	20(%rbx), %eax
	subq	$8, %rsp
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	%r14
	pushq	%rax
	callq	_MakeLogFileName
	addq	$32, %rsp
	movq	%r12, %rdi
	callq	_IsFileExists
	testl	%eax, %eax
	je	LBB0_23
## %bb.44:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r12, %rdx
	callq	_StrCpy
	movl	%r14d, 12(%rbx)
	movq	%r15, %rsp
	incl	%r14d
	jmp	LBB0_22
LBB0_23:
	movq	%r15, %rsp
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_24:
	movq	%rbx, %rdi
	callq	_UnlockLog
	cmpq	$0, (%r15)
	je	LBB0_36
## %bb.25:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_StrCmp
	testq	%rax, %rax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_41
## %bb.26:
	cmpq	$0, (%r15)
	je	LBB0_33
## %bb.27:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_32
## %bb.28:
	movq	(%r12), %r14
	addq	(%rbx), %r14
	xorl	%eax, %eax
	callq	_GetMaxLogSize
	cmpq	%rax, %r14
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jg	LBB0_32
## %bb.29:
	movq	(%r15), %rdi
	movl	8(%r12), %esi
	movq	(%r12), %rdx
	callq	_FileWrite
	testl	%eax, %eax
	je	LBB0_30
## %bb.31:
	movq	(%r12), %rax
	addq	%rax, (%rbx)
	movq	%r12, %rdi
	callq	_ClearBuf
	jmp	LBB0_32
LBB0_36:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	$8, %esi
	movq	%r14, %rdx
	callq	_StrCpy
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_FileOpen
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_37
## %bb.39:
	movq	%rax, %rdi
	callq	_FileSize64
	movq	%rax, (%rbx)
	movq	(%r15), %rdi
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_FileSeek
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_40
LBB0_37:
	movq	%rbx, %rdi
	callq	_LockLog
	movl	16(%rbx), %edi
	callq	_MakeDir
	movq	%rbx, %rdi
	callq	_UnlockLog
	movq	%r14, %rdi
	callq	_FileCreate
	movq	%rax, (%r15)
	movq	$0, (%rbx)
	testq	%rax, %rax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_40
## %bb.38:
	movl	$30, %edi
	callq	_SleepThread
LBB0_40:
	movl	$0, 8(%rbx)
	jmp	LBB0_41
LBB0_8:
	movq	(%r15), %rdi
	movl	$1, %esi
	callq	_FileCloseEx
	movq	%r12, %rdi
	callq	_ClearBuf
	movq	$0, (%r15)
	testq	%r13, %r13
	jne	LBB0_20
LBB0_11:
	movq	(%r12), %r14
	testq	%r14, %r14
	je	LBB0_19
## %bb.12:
	cmpq	$0, (%r15)
	je	LBB0_19
## %bb.13:
	addq	(%rbx), %r14
	xorl	%eax, %eax
	callq	_GetMaxLogSize
	cmpq	%rax, %r14
	jle	LBB0_16
## %bb.14:
	cmpl	$0, 8(%rbx)
	jne	LBB0_19
## %bb.15:
	incl	12(%rbx)
	movl	$1, 8(%rbx)
	jmp	LBB0_19
LBB0_16:
	movq	(%r15), %rdi
	movl	8(%r12), %esi
	movq	(%r12), %rdx
	callq	_FileWrite
	testl	%eax, %eax
	je	LBB0_17
## %bb.18:
	movq	(%r12), %rax
	addq	%rax, (%rbx)
	movq	%r12, %rdi
	callq	_ClearBuf
	jmp	LBB0_19
LBB0_17:
	movq	(%r15), %rdi
	movl	$1, %esi
	callq	_FileCloseEx
	movq	%r12, %rdi
	callq	_ClearBuf
	movq	$0, (%r15)
LBB0_19:
	movl	28(%rbx), %edi
	callq	_Set
	xorl	%eax, %eax
	jmp	LBB0_42
LBB0_30:
	movq	(%r15), %rdi
	movl	$1, %esi
	callq	_FileCloseEx
	movq	%r12, %rdi
	callq	_ClearBuf
	movq	$0, (%r15)
LBB0_32:
	movq	(%r15), %rdi
	movl	$1, %esi
	callq	_FileCloseEx
LBB0_33:
	movl	$0, 8(%rbx)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	$8, %esi
	movq	%r14, %rdx
	callq	_StrCpy
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_FileOpen
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_34
## %bb.35:
	movq	%rax, %rdi
	callq	_FileSize64
	movq	%rax, (%rbx)
	movq	(%r15), %rdi
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_FileSeek
	jmp	LBB0_41
LBB0_34:
	movq	%rbx, %rdi
	callq	_LockLog
	movl	16(%rbx), %edi
	callq	_MakeDir
	movq	%rbx, %rdi
	callq	_UnlockLog
	movq	%r14, %rdi
	callq	_FileCreate
	movq	%rax, (%r15)
	movq	$0, (%rbx)
LBB0_41:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_WriteRecordToBuffer
	movq	%r13, %rdi
	callq	_Free
	xorl	%eax, %eax
	cmpq	$0, (%r15)
	setne	%al
LBB0_42:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_45
## %bb.43:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_45:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SIZE,4,2                   ## @MAX_SIZE
	.comm	_LOG_ENGINE_BUFFER_CACHE_SIZE_MAX,8,3 ## @LOG_ENGINE_BUFFER_CACHE_SIZE_MAX
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_LOG_ENGINE_SAVE_START_CACHE_COUNT,4,2 ## @LOG_ENGINE_SAVE_START_CACHE_COUNT
	.no_dead_strip	_LogThreadWriteGeneral
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LogThreadWriteGeneral
_LogThreadWriteGeneral:                 ; @LogThreadWriteGeneral
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x28, x5
	mov	x26, x4
	stur	x3, [x29, #-96]                 ; 8-byte Folded Spill
	mov	x24, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x25, _MAX_SIZE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _MAX_SIZE@GOTPAGEOFF]
	ldr	w27, [x25]
	mov	x9, x27
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x27, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
	ldr	x0, [x0, #32]
	bl	_LockQueue
	ldr	x0, [x20, #32]
	bl	_GetNext
	mov	x22, x0
	ldr	x0, [x20, #32]
	bl	_UnlockQueue
	ldr	x19, [x21]
	bl	_GetMaxLogSize
	cmp	x19, x0
	b.le	LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_ClearBuf
LBB0_2:
	ldr	x8, [x21]
Lloh7:
	adrp	x9, _LOG_ENGINE_BUFFER_CACHE_SIZE_MAX@GOTPAGE
Lloh8:
	ldr	x9, [x9, _LOG_ENGINE_BUFFER_CACHE_SIZE_MAX@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_9
; %bb.3:
	ldr	x9, [x24]
	cbz	x9, LBB0_9
; %bb.4:
	ldr	x9, [x20]
	add	x19, x9, x8
	bl	_GetMaxLogSize
	cmp	x19, x0
	b.le	LBB0_7
; %bb.5:
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_9
; %bb.6:
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	mov	w9, #1
	stp	w9, w8, [x20, #8]
	cbnz	x22, LBB0_10
	b	LBB0_28
LBB0_7:
	ldr	x0, [x24]
	ldr	w1, [x21, #8]
	ldr	x2, [x21]
	bl	_FileWrite
	cbz	w0, LBB0_27
; %bb.8:
	ldr	x8, [x21]
	ldr	x9, [x20]
	add	x8, x9, x8
	str	x8, [x20]
	mov	x0, x21
	bl	_ClearBuf
LBB0_9:
	cbz	x22, LBB0_28
LBB0_10:
	mov	x0, x20
	bl	_LockLog
	ldr	w5, [x22]
	ldp	w6, w4, [x20, #20]
	ldp	w7, w3, [x20, #12]
	str	x26, [sp, #-16]!
	mov	x0, x20
	mov	x1, x23
	mov	x2, x27
	bl	_MakeLogFileName
	add	sp, sp, #16
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	str	w0, [x8]
	cbz	w0, LBB0_15
; %bb.11:
	stp	x28, x24, [x29, #-112]          ; 16-byte Folded Spill
	str	wzr, [x20, #12]
	ldp	w6, w4, [x20, #20]
	ldr	w5, [x22]
	ldr	w3, [x20, #16]
	str	x26, [sp, #-16]!
	mov	x0, x20
	mov	x1, x23
	mov	x2, x27
	mov	w7, #0
	bl	_MakeLogFileName
	add	sp, sp, #16
	mov	w28, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x19, sp
	ldr	w2, [x25]
	mov	x9, x2
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x24, x8, x9
	mov	sp, x24
	ldp	w6, w4, [x20, #20]
	ldr	w5, [x22]
	ldr	w3, [x20, #16]
	str	x26, [sp, #-16]!
	mov	x0, x20
	mov	x1, x24
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x7, x28
	bl	_MakeLogFileName
	add	sp, sp, #16
	mov	x0, x24
	bl	_IsFileExists
	cbz	w0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	mov	x1, x27
	mov	x2, x24
	bl	_StrCpy
	str	w28, [x20, #12]
	mov	sp, x19
	add	w28, w28, #1
	b	LBB0_12
LBB0_14:
	mov	sp, x19
	ldp	x28, x24, [x29, #-112]          ; 16-byte Folded Reload
LBB0_15:
	mov	x0, x20
	bl	_UnlockLog
	ldr	x8, [x24]
	cbz	x8, LBB0_22
; %bb.16:
	mov	x0, x28
	mov	x1, x23
	bl	_StrCmp
	cbz	x0, LBB0_42
; %bb.17:
	ldr	x8, [x24]
	cbz	x8, LBB0_39
; %bb.18:
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	ldr	w8, [x8]
	cbz	w8, LBB0_38
; %bb.19:
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x19, x9, x8
	bl	_GetMaxLogSize
	cmp	x19, x0
	b.gt	LBB0_38
; %bb.20:
	ldr	x0, [x24]
	ldr	w1, [x21, #8]
	ldr	x2, [x21]
	bl	_FileWrite
	cbz	w0, LBB0_37
; %bb.21:
	ldr	x8, [x21]
	ldr	x9, [x20]
	add	x8, x9, x8
	str	x8, [x20]
	mov	x0, x21
	bl	_ClearBuf
	b	LBB0_38
LBB0_22:
	mov	x0, x28
	mov	w1, #8
	mov	x2, x23
	bl	_StrCpy
	mov	x0, x23
	mov	w1, #1
	bl	_FileOpen
	str	x0, [x24]
	cbz	x0, LBB0_24
; %bb.23:
	bl	_FileSize64
	str	x0, [x20]
	ldr	x0, [x24]
Lloh12:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_FileSeek
	b	LBB0_26
LBB0_24:
	mov	x0, x20
	bl	_LockLog
	ldr	w0, [x20, #16]
	bl	_MakeDir
	mov	x0, x20
	bl	_UnlockLog
	mov	x0, x23
	bl	_FileCreate
	str	x0, [x24]
	str	xzr, [x20]
	cbnz	x0, LBB0_26
; %bb.25:
	mov	w0, #30
	bl	_SleepThread
LBB0_26:
	str	wzr, [x20, #8]
	b	LBB0_42
LBB0_27:
	ldr	x0, [x24]
	mov	w1, #1
	bl	_FileCloseEx
	mov	x0, x21
	bl	_ClearBuf
	str	xzr, [x24]
	cbnz	x22, LBB0_10
LBB0_28:
	ldr	x8, [x21]
	cbz	x8, LBB0_36
; %bb.29:
	ldr	x9, [x24]
	cbz	x9, LBB0_36
; %bb.30:
	ldr	x9, [x20]
	add	x19, x9, x8
	bl	_GetMaxLogSize
	cmp	x19, x0
	b.le	LBB0_33
; %bb.31:
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_36
; %bb.32:
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	mov	w9, #1
	stp	w9, w8, [x20, #8]
	b	LBB0_36
LBB0_33:
	ldr	x0, [x24]
	ldr	w1, [x21, #8]
	ldr	x2, [x21]
	bl	_FileWrite
	cbz	w0, LBB0_35
; %bb.34:
	ldr	x8, [x21]
	ldr	x9, [x20]
	add	x8, x9, x8
	str	x8, [x20]
	mov	x0, x21
	bl	_ClearBuf
	b	LBB0_36
LBB0_35:
	ldr	x0, [x24]
	mov	w1, #1
	bl	_FileCloseEx
	mov	x0, x21
	bl	_ClearBuf
	str	xzr, [x24]
LBB0_36:
	ldr	w0, [x20, #28]
	bl	_Set
	mov	w0, #0
	b	LBB0_43
LBB0_37:
	ldr	x0, [x24]
	mov	w1, #1
	bl	_FileCloseEx
	mov	x0, x21
	bl	_ClearBuf
	str	xzr, [x24]
LBB0_38:
	ldr	x0, [x24]
	mov	w1, #1
	bl	_FileCloseEx
LBB0_39:
	str	wzr, [x20, #8]
	mov	x0, x28
	mov	w1, #8
	mov	x2, x23
	bl	_StrCpy
	mov	x0, x23
	mov	w1, #1
	bl	_FileOpen
	str	x0, [x24]
	cbz	x0, LBB0_41
; %bb.40:
	bl	_FileSize64
	str	x0, [x20]
	ldr	x0, [x24]
Lloh15:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_FileSeek
	b	LBB0_42
LBB0_41:
	mov	x0, x20
	bl	_LockLog
	ldr	w0, [x20, #16]
	bl	_MakeDir
	mov	x0, x20
	bl	_UnlockLog
	mov	x0, x23
	bl	_FileCreate
	str	x0, [x24]
	str	xzr, [x20]
LBB0_42:
	mov	x0, x21
	mov	x1, x22
	bl	_WriteRecordToBuffer
	mov	x0, x22
	bl	_Free
	ldr	x8, [x24]
	cmp	x8, #0
	cset	w0, ne
LBB0_43:
	ldur	x8, [x29, #-88]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_45
; %bb.44:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_45:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SIZE,4,2                   ; @MAX_SIZE
	.comm	_LOG_ENGINE_BUFFER_CACHE_SIZE_MAX,8,3 ; @LOG_ENGINE_BUFFER_CACHE_SIZE_MAX
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_LOG_ENGINE_SAVE_START_CACHE_COUNT,4,2 ; @LOG_ENGINE_SAVE_START_CACHE_COUNT
	.no_dead_strip	_LogThreadWriteGeneral
.subsections_via_symbols
