	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NewLog                         ## -- Begin function NewLog
	.p2align	4, 0x90
_NewLog:                                ## @NewLog
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	$56, %edi
	callq	_ZeroMalloc
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_NewLock
	movl	%eax, 48(%rbx)
	testq	%r12, %r12
	leaq	L_.str(%rip), %rdi
	cmovneq	%r12, %rdi
	callq	_CopyStr
	movq	%rax, 40(%rbx)
	testq	%r15, %r15
	leaq	L_.str.1(%rip), %rdi
	cmovneq	%r15, %rdi
	callq	_CopyStr
	movq	%rax, 32(%rbx)
	movl	%r14d, 28(%rbx)
	xorl	%eax, %eax
	callq	_NewQueue
	movl	%eax, 24(%rbx)
	xorl	%eax, %eax
	callq	_NewEvent
	movq	%rax, 16(%rbx)
	xorl	%eax, %eax
	callq	_NewEvent
	movq	%rax, 8(%rbx)
	movq	_LogThread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_NewThread
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_WaitThreadInit
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

L_.str.1:                               ## @.str.1
	.asciz	"log"

	.comm	_LogThread,4,2                  ## @LogThread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NewLog                         ; -- Begin function NewLog
	.p2align	2
_NewLog:                                ; @NewLog
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w0, #56
	bl	_ZeroMalloc
	mov	x22, x0
	bl	_NewLock
	str	w0, [x22, #48]
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x21, #0
	csel	x0, x8, x21, eq
	bl	_CopyStr
	str	x0, [x22, #40]
Lloh2:
	adrp	x8, l_.str.1@PAGE
Lloh3:
	add	x8, x8, l_.str.1@PAGEOFF
	cmp	x20, #0
	csel	x0, x8, x20, eq
	bl	_CopyStr
	str	x0, [x22, #32]
	str	w19, [x22, #28]
	bl	_NewQueue
	str	w0, [x22, #24]
	bl	_NewEvent
	str	x0, [x22, #16]
	bl	_NewEvent
	str	x0, [x22, #8]
Lloh4:
	adrp	x8, _LogThread@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LogThread@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_NewThread
	str	w0, [x22]
	bl	_WaitThreadInit
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	"log"

	.comm	_LogThread,4,2                  ; @LogThread
.subsections_via_symbols
