	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SearchForExecutableSingle      ## -- Begin function SearchForExecutableSingle
	.p2align	4, 0x90
_SearchForExecutableSingle:             ## @SearchForExecutableSingle
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CMDLINE_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	xorl	%edi, %edi
	callq	__T
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, (%rbx)
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_debugstr_aw
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_debugstr_aw
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_TRACE
	movq	%r14, %r15
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	__tcscpy
	movq	%r14, %rdi
	callq	__tcslen
	movslq	%eax, %rbx
	movl	$92, %edi
	callq	__T
	leaq	(%r14,%rbx,8), %r15
	addq	$8, %r15
	movq	%rax, (%r14,%rbx,8)
LBB0_2:
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	__tcscpy
	movq	%r15, %rdi
	callq	__tcslen
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_IsExistingFile
	testq	%rax, %rax
	je	LBB0_6
LBB0_3:
	movq	%r14, %rdi
	callq	_debugstr_aw
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	__tcscpy
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movslq	%ebx, %rax
	leaq	(%r15,%rax,8), %r12
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	__tcscpy
	xorl	%r13d, %r13d
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	callq	_IsExistingFile
	testq	%rax, %rax
	jne	LBB0_3
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r13, %r13
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	$0, (%r13)
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$59, %edi
	callq	__T
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	__tcschr
	testq	%rax, %rax
	je	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, %rbx
	movq	%rax, %r15
	subq	%r13, %r15
	movq	%r15, %rdx
	sarq	$3, %rdx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	__tcsncpy
	xorl	%edi, %edi
	callq	__T
	movq	%rax, (%r12,%r15)
	addq	$8, %rbx
	movq	%rbx, %r13
	jmp	LBB0_8
LBB0_14:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.5:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CMDLINE_LENGTH,4,2             ## @CMDLINE_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SearchForExecutableSingle: '%s' in dir: '%s'\n"

L_.str.1:                               ## @.str.1
	.asciz	"Found: '%s'\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SearchForExecutableSingle      ; -- Begin function SearchForExecutableSingle
	.p2align	2
_SearchForExecutableSingle:             ; @SearchForExecutableSingle
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x23, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _CMDLINE_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMDLINE_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x20, x9, x8
	mov	sp, x20
	mov	w0, #0
	bl	__T
	str	x0, [x19]
	mov	x0, x22
	bl	_debugstr_aw
	mov	x24, x0
	mov	x0, x23
	bl	_debugstr_aw
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x24
	bl	_TRACE
	add	sp, sp, #16
	mov	x24, x20
	cbz	x23, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x23
	bl	__tcscpy
	mov	x0, x20
	bl	__tcslen
	add	x24, x20, w0, sxtw #3
	mov	w0, #92
	bl	__T
	str	x0, [x24], #8
LBB0_2:
	mov	x0, x24
	mov	x1, x22
	bl	__tcscpy
	mov	x0, x24
	bl	__tcslen
	mov	x22, x0
	mov	x0, x20
	bl	_IsExistingFile
	cbz	x0, LBB0_6
LBB0_3:
	mov	x0, x20
	bl	_debugstr_aw
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	mov	x0, x19
	mov	x1, x20
	bl	__tcscpy
Lloh12:
	adrp	x24, _TRUE@GOTPAGE
Lloh13:
	ldr	x24, [x24, _TRUE@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x24]
	ldur	x8, [x29, #-72]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.5:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
	add	x22, x24, w22, sxtw #3
Lloh17:
	adrp	x24, _FALSE@GOTPAGE
Lloh18:
	ldr	x24, [x24, _FALSE@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	__tcscpy
	mov	x21, #0
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	bl	_IsExistingFile
	cbnz	x0, LBB0_3
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x21, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #59
	bl	__T
	mov	x1, x0
	mov	x0, x21
	bl	__tcschr
	cbz	x0, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x23, x0
	sub	x25, x0, x21
	asr	x2, x25, #3
	mov	x0, x22
	mov	x1, x21
	bl	__tcsncpy
	mov	w0, #0
	bl	__T
	str	x0, [x22, x25]
	add	x21, x23, #8
	b	LBB0_8
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_CMDLINE_LENGTH,4,2             ; @CMDLINE_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SearchForExecutableSingle: '%s' in dir: '%s'\n"

l_.str.1:                               ; @.str.1
	.asciz	"Found: '%s'\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
