	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function receiver_append
_receiver_append:                       ## @receiver_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_adhost@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	cmpl	$-1, (%rax)
	je	LBB0_9
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.2:
	movq	%rdi, %r12
	movq	_errno@GOTPCREL(%rip), %r15
	movq	_EINTR@GOTPCREL(%rip), %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_write
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	cmpq	(%r13), %rax
	je	LBB0_3
	jmp	LBB0_8
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	%eax, %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	movl	4(%rax), %r8d
	movl	8(%rax), %ecx
	movl	$3, %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_pjdlog_debug
	subq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	jne	LBB0_3
## %bb.6:
	movq	(%r14), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_7:
	movl	4(%rax), %r8d
	movl	8(%rax), %ecx
	leaq	L_.str.3(%rip), %rsi
	movl	$2, %edi
	movq	%rbx, %rdx
	callq	_pjdlog_debug
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_8:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rax
	movl	4(%rax), %ecx
	movl	8(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_pjdlog_errno
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	setg	%dil
	callq	_PJDLOG_ASSERT
	movq	_ADIST_ERROR_WRITE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	_pjdlog_error
	movq	_ADIST_ERROR_WRONG_ORDER@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_adhost,8,3                     ## @adhost
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sender requested append without first opening file."

	.comm	_ADIST_ERROR_WRONG_ORDER,4,2    ## @ADIST_ERROR_WRONG_ORDER
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.1:                               ## @.str.1
	.asciz	"Write to \"%s/%s\" failed"

	.comm	_ADIST_ERROR_WRITE,4,2          ## @ADIST_ERROR_WRITE
L_.str.2:                               ## @.str.2
	.asciz	"Wrote %zd bytes into \"%s/%s\"."

L_.str.3:                               ## @.str.3
	.asciz	"Appended %zu bytes to file \"%s/%s\"."

	.no_dead_strip	_receiver_append
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function receiver_append
_receiver_append:                       ; @receiver_append
	.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
Lloh0:
	adrp	x25, _adhost@GOTPAGE
Lloh1:
	ldr	x25, [x25, _adhost@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	w9, [x8]
	cmn	w9, #1
	b.eq	LBB0_9
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_7
; %bb.2:
	mov	x20, x0
Lloh2:
	adrp	x24, _errno@GOTPAGE
Lloh3:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
Lloh4:
	adrp	x26, _EINTR@GOTPAGE
Lloh5:
	ldr	x26, [x26, _EINTR@GOTPAGEOFF]
	mov	x21, x19
Lloh6:
	adrp	x22, l_.str.2@PAGE
Lloh7:
	add	x22, x22, l_.str.2@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	w0, [x8]
	mov	x1, x20
	mov	x2, x21
	bl	_write
                                        ; kill: def $w0 killed $w0 def $x0
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_3
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x23, w0
	ldr	x8, [x25]
	ldp	w4, w3, [x8, #4]
	mov	w0, #3
	mov	x1, x22
	mov	x2, x23
	bl	_pjdlog_debug
	subs	x21, x21, x23
	b.ne	LBB0_3
; %bb.6:
	ldr	x8, [x25]
LBB0_7:
	ldp	w4, w3, [x8, #4]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #2
	mov	x2, x19
	bl	_pjdlog_debug
	mov	w0, #0
	b	LBB0_11
LBB0_8:
Lloh10:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	x8, [x25]
	ldp	w3, w2, [x8, #4]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_pjdlog_errno
	ldr	x8, [x24]
	cmp	x8, #0
	cset	w0, gt
	bl	_PJDLOG_ASSERT
Lloh15:
	adrp	x8, _ADIST_ERROR_WRITE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ADIST_ERROR_WRITE@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pjdlog_error
Lloh19:
	adrp	x8, _ADIST_ERROR_WRONG_ORDER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ADIST_ERROR_WRONG_ORDER@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
LBB0_11:
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_adhost,8,3                     ; @adhost
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sender requested append without first opening file."

	.comm	_ADIST_ERROR_WRONG_ORDER,4,2    ; @ADIST_ERROR_WRONG_ORDER
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.1:                               ; @.str.1
	.asciz	"Write to \"%s/%s\" failed"

	.comm	_ADIST_ERROR_WRITE,4,2          ; @ADIST_ERROR_WRITE
l_.str.2:                               ; @.str.2
	.asciz	"Wrote %zd bytes into \"%s/%s\"."

l_.str.3:                               ; @.str.3
	.asciz	"Appended %zu bytes to file \"%s/%s\"."

	.no_dead_strip	_receiver_append
.subsections_via_symbols
