	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmd_sort
_cmd_sort:                              ## @cmd_sort
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movl	$32, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	incq	%rax
	movq	%rax, %rdi
	callq	_r_str_trim_ro
	cmpb	$63, (%rbx)
	jne	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_eprintf
	jmp	LBB0_9
LBB0_1:
	xorl	%eax, %eax
	cmpb	$63, (%rbx)
	je	LBB0_4
LBB0_5:
	testq	%rax, %rax
	leaq	L_.str.1(%rip), %rbx
	cmovneq	%rax, %rbx
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_r_fs_check
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_r_core_cmdf
	jmp	LBB0_9
LBB0_7:
	movq	%rbx, %rdi
	callq	_r_syscmd_sort
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_r_cons_print
	movq	%rbx, %rdi
	callq	_free
LBB0_9:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Usage: sort # sort the contents of the file\n"

L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"md %s"

	.no_dead_strip	_cmd_sort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmd_sort
_cmd_sort:                              ; @cmd_sort
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	mov	w1, #32
	bl	_strchr
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x0, #1
	bl	_r_str_trim_ro
LBB0_2:
	ldrb	w8, [x20]
	cmp	w8, #63
	b.ne	LBB0_4
; %bb.3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_eprintf
	b	LBB0_8
LBB0_4:
Lloh2:
	adrp	x8, l_.str.1@PAGE
Lloh3:
	add	x8, x8, l_.str.1@PAGEOFF
	cmp	x0, #0
	csel	x20, x8, x0, eq
	ldr	w0, [x19]
	mov	x1, x20
	bl	_r_fs_check
	cbz	w0, LBB0_6
; %bb.5:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_r_core_cmdf
	b	LBB0_8
LBB0_6:
	mov	x0, x20
	bl	_r_syscmd_sort
	cbz	x0, LBB0_8
; %bb.7:
	mov	x19, x0
	bl	_r_cons_print
	mov	x0, x19
	bl	_free
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.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	"Usage: sort # sort the contents of the file\n"

l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"md %s"

	.no_dead_strip	_cmd_sort
.subsections_via_symbols
