	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LogThreadWriteStdout
_LogThreadWriteStdout:                  ## @LogThreadWriteStdout
	.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
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_LockQueue
	movl	4(%rbx), %edi
	callq	_GetNext
	movq	%rax, %r14
	movl	4(%rbx), %edi
	callq	_UnlockQueue
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_ClearBuf
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_WriteRecordToBuffer
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movq	%r15, %rdi
	callq	_FileWrite
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_ClearBuf
LBB0_4:
	movq	%r14, %rdi
	callq	_Free
	movl	$1, %eax
	jmp	LBB0_5
LBB0_1:
	movl	(%rbx), %edi
	callq	_Set
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_LogThreadWriteStdout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LogThreadWriteStdout
_LogThreadWriteStdout:                  ; @LogThreadWriteStdout
	.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	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w0, [x0, #4]
	bl	_LockQueue
	ldr	w0, [x22, #4]
	bl	_GetNext
	mov	x20, x0
	ldr	w0, [x22, #4]
	bl	_UnlockQueue
	cbz	x20, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_ClearBuf
	mov	x0, x19
	mov	x1, x20
	bl	_WriteRecordToBuffer
	ldp	w2, w1, [x19]
	mov	x0, x21
	bl	_FileWrite
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_ClearBuf
LBB0_3:
	mov	x0, x20
	bl	_Free
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	ldr	w0, [x22]
	bl	_Set
	mov	w0, #0
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_LogThreadWriteStdout
.subsections_via_symbols
