	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getcmd
_getcmd:                                ## @getcmd
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r13d, %r13d
	leaq	L_.str(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rdi, %r15
	callq	_strlen
	movq	%r14, %rdi
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	%eax, %ebx
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.5:
	movl	$1, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_6
LBB0_4:
	movslq	%ebx, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%rax), %rdi
	decq	%rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcasecmp
	testl	%eax, %eax
	sete	%al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_6:
	movq	_cmd_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_nitems
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	decq	%rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%rbx,%r12), %rsi
	movq	%r15, %rdi
	callq	_strcasecmp
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	(%rbx,%r12), %rcx
	testl	%eax, %eax
	cmoveq	%rcx, %r13
	incq	%r14
	movq	%rbx, %rdi
	callq	_nitems
	addq	$16, %r12
	cmpq	%rax, %r14
	jae	LBB0_17
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	_cmd_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	(%rbx,%r12), %eax
	testq	%r13, %r13
	je	LBB0_10
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_PS_CMP_PLURAL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	setne	%al
	andb	-44(%rbp), %al                  ## 1-byte Folded Reload
	cmpb	$1, %al
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%rbx,%r12), %rdi
	callq	_strlen
	incl	%eax
	movq	_cmd_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	cmpl	%eax, -60(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%rbx,%r12), %rsi
	movq	%r15, %rdi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_strncasecmp
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_PS_CMP_SUBSTR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%rbx,%r12), %rsi
	movq	_PS_CMP_PLURAL@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	setne	%al
	andb	-44(%rbp), %al                  ## 1-byte Folded Reload
	movzbl	%al, %eax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	subq	%rax, %rdx
	movq	%r15, %rdi
	callq	_strncasecmp
	jmp	LBB0_16
LBB0_7:
	xorl	%r13d, %r13d
LBB0_17:
	movq	%r13, %rax
	addq	$40, %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	"basic"

L_.str.1:                               ## @.str.1
	.asciz	"s"

	.comm	_cmd_table,8,3                  ## @cmd_table
	.comm	_PS_CMP_SUBSTR,4,2              ## @PS_CMP_SUBSTR
	.comm	_PS_CMP_PLURAL,4,2              ## @PS_CMP_PLURAL
	.no_dead_strip	_getcmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getcmd
_getcmd:                                ; @getcmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x0, LBB0_16
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x19, x0
	bl	_strlen
	mov	x20, x0
	mov	x0, x21
	cbz	w20, LBB0_1
; %bb.3:
	cmp	w20, #1
	b.ne	LBB0_5
; %bb.4:
	mov	w25, #0
	mov	w24, #1
	b	LBB0_6
LBB0_5:
	sxtw	x24, w20
	add	x8, x19, x24
	sub	x0, x8, #1
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcasecmp
	cmp	w0, #0
	cset	w25, eq
LBB0_6:
Lloh4:
	adrp	x26, _cmd_table@GOTPAGE
Lloh5:
	ldr	x26, [x26, _cmd_table@GOTPAGEOFF]
	ldr	x0, [x26]
	bl	_nitems
	cbz	x0, LBB0_16
; %bb.7:
	mov	x27, #0
	mov	x21, #0
	mov	x28, #0
	sub	x8, x24, #1
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
Lloh6:
	adrp	x22, _PS_CMP_PLURAL@GOTPAGE
Lloh7:
	ldr	x22, [x22, _PS_CMP_PLURAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x23, x27
	ldr	x1, [x8, #8]
	mov	x0, x19
	bl	_strcasecmp
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x23, x27
	cmp	w0, #0
	csel	x21, x8, x21, eq
	add	x28, x28, #1
	mov	x0, x23
	bl	_nitems
	add	x27, x27, #16
	cmp	x28, x0
	b.hs	LBB0_17
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x26]
	ldr	w8, [x23, x27]
	cbz	x21, LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w9, [x22]
	tst	w9, w8
	cset	w8, ne
	and	w8, w8, w25
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x23, x27
	ldr	x0, [x8, #8]
	bl	_strlen
	add	w8, w0, #1
	ldr	x23, [x26]
	cmp	w20, w8
	b.ne	LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x23, x27
	ldr	x1, [x8, #8]
	mov	x0, x19
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	bl	_strncasecmp
	b	LBB0_9
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
Lloh8:
	adrp	x9, _PS_CMP_SUBSTR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PS_CMP_SUBSTR@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x9, x23, x27
	ldr	x1, [x9, #8]
	ldr	w9, [x22]
	tst	w9, w8
	cset	w8, ne
	and	w8, w8, w25
	sub	x2, x24, x8
	mov	x0, x19
	bl	_strncasecmp
	b	LBB0_9
LBB0_16:
	mov	x21, #0
LBB0_17:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"basic"

l_.str.1:                               ; @.str.1
	.asciz	"s"

	.comm	_cmd_table,8,3                  ; @cmd_table
	.comm	_PS_CMP_SUBSTR,4,2              ; @PS_CMP_SUBSTR
	.comm	_PS_CMP_PLURAL,4,2              ; @PS_CMP_PLURAL
	.no_dead_strip	_getcmd
.subsections_via_symbols
