	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmd_join
_cmd_join:                              ## @cmd_join
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_strdup
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	$32, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rdi
	callq	_r_str_trim_ro
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	$32, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movb	$0, (%rax)
	incq	%rax
	movq	%rax, %rdi
	callq	_r_str_trim_ro
	cmpb	$63, (%rbx)
	jne	LBB0_3
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	callq	_eprintf
LBB0_8:
	movq	%r15, %rdi
	callq	_free
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rax, %r13
	testq	%r12, %r12
	leaq	L_.str(%rip), %rax
	cmoveq	%rax, %r12
	testq	%r13, %r13
	cmoveq	%rax, %r13
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_r_fs_check
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movl	(%r14), %edi
	movq	%r13, %rsi
	callq	_r_fs_check
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_r_syscmd_join
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_r_cons_print
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

L_.str.1:                               ## @.str.1
	.asciz	"Usage: join [file1] [file2] # join the contents of the two files\n"

	.no_dead_strip	_cmd_join
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmd_join
_cmd_join:                              ; @cmd_join
	.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, x1
	mov	x20, x0
	mov	x0, x1
	bl	_strdup
	mov	x19, x0
	mov	w1, #32
	bl	_strchr
	cbz	x0, LBB0_3
; %bb.1:
	bl	_r_str_trim_ro
	mov	x22, x0
	mov	w1, #32
	bl	_strchr
	cbz	x0, LBB0_3
; %bb.2:
	strb	wzr, [x0], #1
	bl	_r_str_trim_ro
	ldrb	w8, [x21]
	cmp	w8, #63
	b.ne	LBB0_5
LBB0_3:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_eprintf
LBB0_4:
	mov	x0, x19
	bl	_free
	mov	w0, #0
	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
LBB0_5:
Lloh2:
	adrp	x8, l_.str@PAGE
Lloh3:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x22, #0
	csel	x21, x8, x22, eq
	cmp	x0, #0
	csel	x22, x8, x0, eq
	ldr	w0, [x20]
	mov	x1, x21
	bl	_r_fs_check
	cbnz	w0, LBB0_4
; %bb.6:
	ldr	w0, [x20]
	mov	x1, x22
	bl	_r_fs_check
	cbnz	w0, LBB0_4
; %bb.7:
	mov	x0, x21
	mov	x1, x22
	bl	_r_syscmd_join
	cbz	x0, LBB0_4
; %bb.8:
	mov	x20, x0
	bl	_r_cons_print
	mov	x0, x20
	bl	_free
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	"Usage: join [file1] [file2] # join the contents of the two files\n"

	.no_dead_strip	_cmd_join
.subsections_via_symbols
