	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_loopback_write_append          ## -- Begin function loopback_write_append
	.p2align	4, 0x90
_loopback_write_append:                 ## @loopback_write_append
	.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	(%rdi), %r12
	cmpl	$0, (%r12)
	je	LBB0_4
## %bb.1:
	movq	%rdi, %r14
	callq	_loopback_format_plain
	leaq	12(%r12), %rbx
	movq	%rbx, %rdi
	callq	_hc_lockfile
	movq	_EOL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_strlen
	movl	%r15d, %edi
	movl	%eax, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_hc_fwrite
	movq	%rbx, %rdi
	callq	_hc_fflush
	movq	%rbx, %rdi
	callq	_hc_unlockfile
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	8(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_event_log_error
LBB0_3:
	movl	$0, 4(%r12)
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOL,4,2                        ## @EOL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Failed to unlock file"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_loopback_write_append          ; -- Begin function loopback_write_append
	.p2align	2
_loopback_write_append:                 ; @loopback_write_append
	.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
	ldr	x22, [x0]
	ldr	w8, [x22]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_loopback_format_plain
	add	x20, x22, #12
	mov	x0, x20
	bl	_hc_lockfile
Lloh0:
	adrp	x8, _EOL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOL@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_strlen
	mov	x1, x0
	mov	x0, x21
	mov	w2, #1
	mov	x3, x20
	bl	_hc_fwrite
	mov	x0, x20
	bl	_hc_fflush
	mov	x0, x20
	bl	_hc_unlockfile
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w2, [x22, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_event_log_error
LBB0_3:
	str	wzr, [x22, #4]
LBB0_4:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EOL,4,2                        ; @EOL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Failed to unlock file"

.subsections_via_symbols
