	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getcmd                         ## -- Begin function getcmd
	.p2align	4, 0x90
_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	%rbx
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movq	_cmdtab@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rsi
	xorl	%r10d, %r10d
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.2:
	movb	(%rdi), %r11b
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	testb	%cl, %cl
	je	LBB0_9
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rax), %rsi
	addq	$8, %rax
	testq	%rsi, %rsi
	je	LBB0_15
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	%rdi, %rdx
	movl	%r11d, %ecx
	cmpb	(%rsi), %r11b
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rsi
	movl	%r11d, %ecx
	movq	%rdi, %rdx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testb	%cl, %cl
	je	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movzbl	1(%rdx), %ecx
	incq	%rdx
	leaq	1(%rsi), %rbx
	cmpb	(%rsi), %cl
	movq	%rbx, %rsi
	je	LBB0_7
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	subq	%rdi, %rdx
	movslq	%r10d, %rcx
	cmpq	%rcx, %rdx
	jle	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %r9d
	movq	%rax, %r8
	movl	%edx, %r10d
	jmp	LBB0_4
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	sete	%cl
	movzbl	%cl, %ecx
	addl	%ecx, %r9d
	jmp	LBB0_4
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	popq	%rbx
	popq	%rbp
	retq
LBB0_15:
	cmpl	$2, %r9d
	movq	$-1, %rax
	cmovgeq	%rax, %r8
	movq	%r8, %rax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_cmdtab,8,3                     ## @cmdtab
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getcmd                         ; -- Begin function getcmd
	.p2align	2
_getcmd:                                ; @getcmd
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_10
; %bb.1:
	mov	x8, x0
Lloh0:
	adrp	x9, _cmdtab@GOTPAGE
Lloh1:
	ldr	x9, [x9, _cmdtab@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x9]
	ldr	x14, [x0]
	cbz	x14, LBB0_8
; %bb.2:
	mov	w11, #0
	mov	w10, #0
	mov	x9, #0
	ldrb	w12, [x8]
	mov	w13, #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x14, w11
	sub	x16, x16, x8
	cmp	x16, x14
	cinc	w14, w10, eq
	csel	x17, x9, x0, le
	csel	w14, w14, w13, le
	csel	w16, w11, w16, le
	cmp	w15, #0
	csel	w10, w10, w14, ne
	csel	x9, x9, x17, ne
	csel	w11, w11, w16, ne
	ldr	x14, [x0, #8]!
	cbz	x14, LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldrb	w17, [x14]
	mov	x16, x8
	mov	x15, x12
	cmp	w12, w17
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x14, x14, #1
	mov	x15, x12
	mov	x16, x8
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	w15, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldrb	w15, [x16, #1]!
	ldrb	w17, [x14], #1
	cmp	w15, w17
	b.eq	LBB0_6
	b	LBB0_3
LBB0_8:
	mov	x0, #0
	ret
LBB0_9:
	cmp	w10, #1
	csinv	x0, x9, xzr, le
LBB0_10:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_cmdtab,8,3                     ; @cmdtab
.subsections_via_symbols
