	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_for_append
_test_for_append:                       ## @test_for_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 8(%rbx)
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_lafe_errc
LBB0_3:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %edi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_lafe_errc
	movq	(%rbx), %rdi
LBB0_5:
	leaq	-16(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:
	movl	-16(%rbp), %edi
	callq	_S_ISREG
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movl	-16(%rbp), %edi
	callq	_S_ISBLK
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	(%rbx), %rcx
	leaq	L_.str.2(%rip), %rdx
	movl	$1, %edi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_lafe_errc
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no files or directories specified"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot append to stdout."

L_.str.2:                               ## @.str.2
	.asciz	"Cannot append to %s: not a regular file."

	.no_dead_strip	_test_for_append
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_for_append
_test_for_append:                       ; @test_for_append
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
LBB0_2:
	ldr	x0, [x19]
	cbnz	x0, LBB0_4
LBB0_3:
Lloh0:
	adrp	x2, l_.str.1@PAGE
Lloh1:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	w1, #0
	bl	_lafe_errc
	ldr	x0, [x19]
LBB0_4:
	add	x1, sp, #8
	bl	_stat
	cbnz	x0, LBB0_8
; %bb.5:
	ldr	w0, [sp, #8]
	bl	_S_ISREG
	cbnz	w0, LBB0_8
; %bb.6:
	ldr	w0, [sp, #8]
	bl	_S_ISBLK
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	x8, [x19]
	str	x8, [sp]
Lloh2:
	adrp	x2, l_.str.2@PAGE
Lloh3:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	w1, #0
	bl	_lafe_errc
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_9:
Lloh4:
	adrp	x2, l_.str@PAGE
Lloh5:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	mov	w1, #0
	bl	_lafe_errc
	ldr	x0, [x19]
	cbnz	x0, LBB0_4
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no files or directories specified"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot append to stdout."

l_.str.2:                               ; @.str.2
	.asciz	"Cannot append to %s: not a regular file."

	.no_dead_strip	_test_for_append
.subsections_via_symbols
