	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw_cmd_cmd
_tw_cmd_cmd:                            ## @tw_cmd_cmd
	.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	_STRpath@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_adrof
	movq	%rax, %rbx
	movq	_STRrecognize_only_executables@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_adrof
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.1:
	movq	(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_7
## %bb.2:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.3:
	movq	%rax, %r15
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_TW_FL_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_tw_cmd_got@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r14), %rdi
	addq	$8, %r14
	testq	%rdi, %rdi
	je	LBB0_7
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	cmpb	$47, (%rdi)
	jne	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_short2str
	movl	%eax, %edi
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r12
	movq	_opendir_cleanup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_cleanup_push
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rdi
	movq	_STRslash@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_Strspl
	movq	%rax, %rdi
	movq	_xfree@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_cleanup_push
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	%r12, %rdi
	callq	_readdir
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_17
LBB0_13:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rdi
	callq	_str2short
	cmpq	$0, 8(%rbx)
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	%rax, %r13
	testq	%r15, %r15
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_executable
	testl	%eax, %eax
	je	LBB0_16
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	%r13, %rdi
	callq	_Strlen
	movzbl	(%r13), %ecx
	cmpb	$35, %cl
	je	LBB0_16
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=2
	cmpb	$46, %cl
	je	LBB0_16
## %bb.20:                              ##   in Loop: Header=BB0_13 Depth=2
	movzbl	-1(%rax,%r13), %eax
	cmpb	$37, %al
	je	LBB0_16
## %bb.21:                              ##   in Loop: Header=BB0_13 Depth=2
	cmpb	$126, %al
	je	LBB0_16
## %bb.22:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	%r13, %rdi
	callq	_tw_cmd_add
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_cleanup_until
	jmp	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRpath,4,2                    ## @STRpath
	.comm	_STRrecognize_only_executables,4,2 ## @STRrecognize_only_executables
	.comm	_TW_FL_REL,4,2                  ## @TW_FL_REL
	.comm	_tw_cmd_got,4,2                 ## @tw_cmd_got
	.comm	_opendir_cleanup,4,2            ## @opendir_cleanup
	.comm	_STRslash,4,2                   ## @STRslash
	.comm	_xfree,4,2                      ## @xfree
	.no_dead_strip	_tw_cmd_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw_cmd_cmd
_tw_cmd_cmd:                            ; @tw_cmd_cmd
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _STRpath@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRpath@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_adrof
	mov	x20, x0
Lloh3:
	adrp	x8, _STRrecognize_only_executables@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STRrecognize_only_executables@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_adrof
	cbz	x20, LBB0_22
; %bb.1:
	ldr	x24, [x20]
	cbz	x24, LBB0_22
; %bb.2:
	mov	x19, x0
	ldr	x0, [x24]
	cbz	x0, LBB0_22
; %bb.3:
	mov	x20, #0
Lloh6:
	adrp	x25, _opendir_cleanup@GOTPAGE
Lloh7:
	ldr	x25, [x25, _opendir_cleanup@GOTPAGEOFF]
Lloh8:
	adrp	x27, _xfree@GOTPAGE
Lloh9:
	ldr	x27, [x27, _xfree@GOTPAGEOFF]
Lloh10:
	adrp	x28, _TW_FL_REL@GOTPAGE
Lloh11:
	ldr	x28, [x28, _TW_FL_REL@GOTPAGEOFF]
Lloh12:
	adrp	x26, _tw_cmd_got@GOTPAGE
Lloh13:
	ldr	x26, [x26, _tw_cmd_got@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x28]
	ldr	w9, [x26]
	orr	w8, w9, w8
	str	w8, [x26]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x24, #8]!
	cbz	x0, LBB0_22
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldrb	w8, [x0]
	cmp	w8, #47
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_short2str
	bl	_opendir
	cbz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, x0
	ldr	w1, [x25]
	bl	_cleanup_push
	cbz	x19, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x24]
Lloh14:
	adrp	x8, _STRslash@GOTPAGE
Lloh15:
	ldr	x8, [x8, _STRslash@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_Strspl
	mov	x20, x0
	ldr	w1, [x27]
	bl	_cleanup_push
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_readdir
	cbz	x0, LBB0_21
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x23, x0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x21
	bl	_readdir
	mov	x23, x0
	cbz	x0, LBB0_21
LBB0_13:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x23]
	bl	_str2short
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	mov	x22, x0
	cbz	x19, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	bl	_executable
	cbz	w0, LBB0_12
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x22
	bl	_Strlen
	ldrb	w8, [x22]
	cmp	w8, #35
	b.eq	LBB0_12
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=2
	cmp	w8, #46
	b.eq	LBB0_12
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=2
	add	x8, x0, x22
	ldurb	w8, [x8, #-1]
	cmp	w8, #37
	b.eq	LBB0_12
; %bb.19:                               ;   in Loop: Header=BB0_13 Depth=2
	cmp	w8, #126
	b.eq	LBB0_12
; %bb.20:                               ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x22
	bl	_tw_cmd_add
	b	LBB0_12
LBB0_21:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_cleanup_until
	b	LBB0_5
LBB0_22:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_STRpath,4,2                    ; @STRpath
	.comm	_STRrecognize_only_executables,4,2 ; @STRrecognize_only_executables
	.comm	_TW_FL_REL,4,2                  ; @TW_FL_REL
	.comm	_tw_cmd_got,4,2                 ; @tw_cmd_got
	.comm	_opendir_cleanup,4,2            ; @opendir_cleanup
	.comm	_STRslash,4,2                   ; @STRslash
	.comm	_xfree,4,2                      ; @xfree
	.no_dead_strip	_tw_cmd_cmd
.subsections_via_symbols
