	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function list_commands_in_dir
_list_commands_in_dir:                  ## @list_commands_in_dir
	.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	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_opendir
	movq	%rax, %r15
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%r15, %r15
	je	LBB0_8
## %bb.1:
	testq	%rbx, %rbx
	leaq	L_.str(%rip), %r12
	cmovneq	%rbx, %r12
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%r14, %rdx
	callq	_strbuf_addf
	movl	-48(%rbp), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r13
	leaq	-72(%rbp), %rbx
	leaq	-48(%rbp), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_readdir
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_skip_prefix
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_strbuf_setlen
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_strbuf_addstr
	movl	-44(%rbp), %edi
	callq	_is_executable
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %r13
	movq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, -64(%rbp)
	movq	%rbx, %rdi
	movq	%r13, %rbx
	leaq	L_.str.2(%rip), %rsi
	leaq	-64(%rbp), %rdx
	callq	_strip_suffix
	movq	-72(%rbp), %rsi
	movq	-64(%rbp), %rdx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_add_cmdname
	jmp	LBB0_6
LBB0_7:
	movq	%r15, %rdi
	callq	_closedir
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"git-"

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

L_.str.2:                               ## @.str.2
	.asciz	".exe"

	.no_dead_strip	_list_commands_in_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function list_commands_in_dir
_list_commands_in_dir:                  ; @list_commands_in_dir
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, x1
	bl	_opendir
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x21, #0
	csel	x21, x8, x21, eq
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #24
	mov	x2, x22
	bl	_strbuf_addf
	ldr	w22, [sp, #24]
	mov	x0, x20
	bl	_readdir
	cbz	x0, LBB0_7
; %bb.2:
	mov	x24, x0
Lloh7:
	adrp	x23, l_.str.2@PAGE
Lloh8:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_readdir
	mov	x24, x0
	cbz	x0, LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	add	x2, sp, #16
	mov	x1, x21
	bl	_skip_prefix
	cbz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #24
	mov	x1, x22
	bl	_strbuf_setlen
	ldr	w1, [x24]
	add	x0, sp, #24
	bl	_strbuf_addstr
	ldr	w0, [sp, #28]
	bl	_is_executable
	cbz	w0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x24, [sp, #16]
	mov	x0, x24
	bl	_strlen
	str	x0, [sp, #8]
	add	x2, sp, #8
	mov	x0, x24
	mov	x1, x23
	bl	_strip_suffix
	ldp	x2, x1, [sp, #8]
	mov	x0, x19
	bl	_add_cmdname
	b	LBB0_3
LBB0_7:
	mov	x0, x20
	bl	_closedir
	add	x0, sp, #24
	bl	_strbuf_release
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"git-"

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

l_.str.2:                               ; @.str.2
	.asciz	".exe"

	.no_dead_strip	_list_commands_in_dir
.subsections_via_symbols
