	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmd_tail
_cmd_tail:                              ## @cmd_tail
	.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	%rdi, %r14
	movq	%rsi, %rdi
	callq	_strdup
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	$32, %esi
	callq	_strchr
	movl	$5, %r15d
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	incq	%rax
	movq	%rax, %rdi
	callq	_r_str_trim_ro
	movq	%rax, %r13
	movq	%rax, %rdi
	movl	$32, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movb	$0, (%rax)
	incq	%rax
	movq	%rax, %rdi
	callq	_r_str_trim_ro
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_atoi
	movl	%eax, %r15d
	movq	%rbx, %r13
LBB0_4:
	cmpb	$63, (%r12)
	jne	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_eprintf
	jmp	LBB0_10
LBB0_1:
	xorl	%r13d, %r13d
	cmpb	$63, (%r12)
	je	LBB0_5
LBB0_6:
	testq	%r13, %r13
	leaq	L_.str.1(%rip), %rbx
	cmovneq	%r13, %rbx
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_r_fs_check
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_r_core_cmdf
	jmp	LBB0_10
LBB0_8:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_r_syscmd_tail
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_r_cons_print
	movq	%rbx, %rdi
	callq	_free
LBB0_10:
	movq	%r12, %rdi
	callq	_free
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Usage: tail [file] # to list last n lines in file\n"

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

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

	.no_dead_strip	_cmd_tail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmd_tail
_cmd_tail:                              ; @cmd_tail
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	mov	x0, x1
	bl	_strdup
	mov	x19, x0
	mov	w1, #32
	bl	_strchr
	cbz	x0, LBB0_3
; %bb.1:
	add	x0, x0, #1
	bl	_r_str_trim_ro
	mov	x21, x0
	mov	w1, #32
	bl	_strchr
	cbz	x0, LBB0_4
; %bb.2:
	strb	wzr, [x0], #1
	bl	_r_str_trim_ro
	mov	x23, x0
	mov	x0, x21
	bl	_atoi
	mov	x22, x0
	mov	x21, x23
	b	LBB0_5
LBB0_3:
	mov	x21, #0
LBB0_4:
	mov	w22, #5
LBB0_5:
	ldrb	w8, [x19]
	cmp	w8, #63
	b.ne	LBB0_7
; %bb.6:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_eprintf
	b	LBB0_11
LBB0_7:
Lloh2:
	adrp	x8, l_.str.1@PAGE
Lloh3:
	add	x8, x8, l_.str.1@PAGEOFF
	cmp	x21, #0
	csel	x21, x8, x21, eq
	ldr	w0, [x20]
	mov	x1, x21
	bl	_r_fs_check
	cbz	w0, LBB0_9
; %bb.8:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_r_core_cmdf
	b	LBB0_11
LBB0_9:
	mov	x0, x21
	mov	x1, x22
	bl	_r_syscmd_tail
	cbz	x0, LBB0_11
; %bb.10:
	mov	x20, x0
	bl	_r_cons_print
	mov	x0, x20
	bl	_free
LBB0_11:
	mov	x0, x19
	bl	_free
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 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: tail [file] # to list last n lines in file\n"

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

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

	.no_dead_strip	_cmd_tail
.subsections_via_symbols
