	.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, %r12
	movq	%rsi, %r14
	movq	%rdi, -72(%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	%r12, %r12
	leaq	L_.str(%rip), %r13
	cmovneq	%r12, %r13
	movq	%r13, %rdi
	callq	_strlen
	movl	%eax, %ebx
	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, %r14
	movslq	%ebx, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_readdir
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movq	%r13, %rsi
	callq	_prefixcmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_strbuf_setlen
	movq	(%r14), %rsi
	movq	%rbx, %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	(%r14), %rdi
	callq	_strlen
	movl	%eax, %r12d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	subl	%ebx, %r12d
	movq	(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_has_extension
	leal	-4(%r12), %edx
	testq	%rax, %rax
	cmovel	%r12d, %edx
	movq	(%r14), %rsi
	addq	%rbx, %rsi
	movq	-72(%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	"perf-"

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, #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
	mov	x21, x2
	mov	x23, 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, #8]
	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
	mov	x0, x21
	bl	_strlen
	mov	x22, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	x2, x23
	bl	_strbuf_addf
	ldr	w23, [sp, #8]
	mov	x0, x20
	bl	_readdir
	cbz	x0, LBB0_7
; %bb.2:
	mov	x25, x0
	sxtw	x26, w22
Lloh7:
	adrp	x24, l_.str.2@PAGE
Lloh8:
	add	x24, x24, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_readdir
	mov	x25, x0
	cbz	x0, LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x25]
	mov	x1, x21
	bl	_prefixcmp
	cbnz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #8
	mov	x1, x23
	bl	_strbuf_setlen
	ldr	x1, [x25]
	add	x0, sp, #8
	bl	_strbuf_addstr
	ldr	w0, [sp, #12]
	bl	_is_executable
	cbz	w0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x25]
	bl	_strlen
	sub	w27, w0, w22
	ldr	x0, [x25]
	mov	x1, x24
	bl	_has_extension
	sub	w8, w27, #4
	cmp	x0, #0
	csel	w2, w27, w8, eq
	ldr	x8, [x25]
	add	x1, x8, x26
	mov	x0, x19
	bl	_add_cmdname
	b	LBB0_3
LBB0_7:
	mov	x0, x20
	bl	_closedir
	add	x0, sp, #8
	bl	_strbuf_release
LBB0_8:
	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 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	"perf-"

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

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

	.no_dead_strip	_list_commands_in_dir
.subsections_via_symbols
