	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_main                       ## -- Begin function cmd_main
	.p2align	4, 0x90
_cmd_main:                              ## @cmd_main
	.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
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -64(%rbp)
	leaq	L_.str(%rip), %rcx
	leaq	L_.str.1(%rip), %r8
	leaq	-64(%rbp), %rdx
	movl	$67, %edi
	xorl	%esi, %esi
	callq	_OPT_STRING
	movl	%eax, -56(%rbp)
	xorl	%eax, %eax
	callq	_OPT_END
	movl	%eax, -52(%rbp)
	movq	_BUG_exit_code@GOTPCREL(%rip), %rax
	movl	$99, (%rax)
	movq	_test_tool_usage@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_PARSE_OPT_STOP_AT_NON_OPTION@GOTPCREL(%rip), %rax
	movq	_PARSE_OPT_KEEP_ARGV0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	orl	(%rax), %r9d
	leaq	-56(%rbp), %rcx
	movl	%r14d, %edi
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_parse_options
	movl	%eax, %r15d
	cmpl	$1, %eax
	jg	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_die_usage
LBB0_2:
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:
	callq	_chdir
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:
	movq	-64(%rbp), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_die
LBB0_5:
	movq	_cmds@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %r13
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	8(%rax,%rbx), %edi
	movq	(%r13), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r14
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %rbx
	cmpq	%rax, %r14
	jl	LBB0_7
LBB0_10:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_error
	xorl	%eax, %eax
	callq	_die_usage
                                        ## implicit-def: $eax
	jmp	LBB0_11
LBB0_8:
	decl	%r15d
	movq	(%r12), %rax
	movl	8(%rax,%rbx), %edi
	callq	_trace2_cmd_name
	xorl	%eax, %eax
	callq	_trace2_cmd_list_config
	movq	(%r12), %rax
	movl	%r15d, %edi
	movq	%r13, %rsi
	callq	*(%rax,%rbx)
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"directory"

L_.str.1:                               ## @.str.1
	.asciz	"change the working directory"

	.comm	_BUG_exit_code,4,2              ## @BUG_exit_code
	.comm	_test_tool_usage,4,2            ## @test_tool_usage
	.comm	_PARSE_OPT_STOP_AT_NON_OPTION,4,2 ## @PARSE_OPT_STOP_AT_NON_OPTION
	.comm	_PARSE_OPT_KEEP_ARGV0,4,2       ## @PARSE_OPT_KEEP_ARGV0
L_.str.2:                               ## @.str.2
	.asciz	"Could not cd to '%s'"

	.comm	_cmds,8,3                       ## @cmds
L_.str.3:                               ## @.str.3
	.asciz	"there is no tool named '%s'"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_main                       ; -- Begin function cmd_main
	.p2align	2
_cmd_main:                              ; @cmd_main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	str	xzr, [sp, #8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
Lloh5:
	adrp	x4, l_.str.1@PAGE
Lloh6:
	add	x4, x4, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	w0, #67
	mov	x1, #0
	bl	_OPT_STRING
	str	w0, [sp, #16]
	bl	_OPT_END
	str	w0, [sp, #20]
Lloh7:
	adrp	x8, _BUG_exit_code@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BUG_exit_code@GOTPAGEOFF]
	mov	w9, #99
Lloh9:
	str	w9, [x8]
Lloh10:
	adrp	x8, _test_tool_usage@GOTPAGE
Lloh11:
	ldr	x8, [x8, _test_tool_usage@GOTPAGEOFF]
Lloh12:
	adrp	x9, _PARSE_OPT_STOP_AT_NON_OPTION@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PARSE_OPT_STOP_AT_NON_OPTION@GOTPAGEOFF]
Lloh14:
	ldr	w4, [x8]
Lloh15:
	ldr	w8, [x9]
Lloh16:
	adrp	x9, _PARSE_OPT_KEEP_ARGV0@GOTPAGE
Lloh17:
	ldr	x9, [x9, _PARSE_OPT_KEEP_ARGV0@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w5, w9, w8
	add	x3, sp, #16
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	bl	_parse_options
	subs	w20, w0, #1
	b.gt	LBB0_2
; %bb.1:
	bl	_die_usage
LBB0_2:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_5
; %bb.3:
	bl	_chdir
	tbz	x0, #63, LBB0_5
; %bb.4:
	ldr	x1, [sp, #8]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_die
LBB0_5:
Lloh21:
	adrp	x22, _cmds@GOTPAGE
Lloh22:
	ldr	x22, [x22, _cmds@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x23, #0
	mov	x24, #0
	add	x21, x19, #8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x8, x8, x23
	ldr	w0, [x8, #8]
	ldr	x1, [x21]
	bl	_strcmp
	cbz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	add	x23, x23, #16
	cmp	x24, w0, sxtw
	b.lt	LBB0_7
LBB0_9:
	ldr	x1, [x19, #8]
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_error
	bl	_die_usage
                                        ; implicit-def: $w0
	b	LBB0_11
LBB0_10:
	ldr	x8, [x22]
	add	x8, x8, x23
	ldr	w0, [x8, #8]
	bl	_trace2_cmd_name
	bl	_trace2_cmd_list_config
	ldr	x8, [x22]
	ldr	x8, [x8, x23]
	mov	x0, x20
	mov	x1, x21
	blr	x8
LBB0_11:
	ldr	x8, [sp, #24]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"directory"

l_.str.1:                               ; @.str.1
	.asciz	"change the working directory"

	.comm	_BUG_exit_code,4,2              ; @BUG_exit_code
	.comm	_test_tool_usage,4,2            ; @test_tool_usage
	.comm	_PARSE_OPT_STOP_AT_NON_OPTION,4,2 ; @PARSE_OPT_STOP_AT_NON_OPTION
	.comm	_PARSE_OPT_KEEP_ARGV0,4,2       ; @PARSE_OPT_KEEP_ARGV0
l_.str.2:                               ; @.str.2
	.asciz	"Could not cd to '%s'"

	.comm	_cmds,8,3                       ; @cmds
l_.str.3:                               ; @.str.3
	.asciz	"there is no tool named '%s'"

.subsections_via_symbols
