	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_my_exec                   ## -- Begin function find_my_exec
	.p2align	4, 0x90
_find_my_exec:                          ## @find_my_exec
	.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, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_getcwd
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_first_dir_separator
	testq	%rax, %rax
	movq	%r15, %rbx
	je	LBB0_9
## %bb.3:
	movq	%rbx, %rdi
	callq	_is_absolute_path
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_StrNCpy
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_log_error
	jmp	LBB0_23
LBB0_9:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str.2(%rip), %rdi
	callq	_getenv
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_21
## %bb.10:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpb	$0, (%rax)
	je	LBB0_21
## %bb.11:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	_ERRCODE_WRONG_OBJECT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	%rbx, %r12
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%ebx, %edi
	movq	%r12, %rbx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, %esi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_log_error
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=1
	cmpb	$0, (%r15)
	je	LBB0_21
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	incq	%r15
	testq	%r13, %r13
	movq	%r15, %r13
	cmoveq	-56(%rbp), %r13                 ## 8-byte Folded Reload
	movq	%r13, %rdi
	callq	_first_path_var_separator
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r13, %rdi
	callq	_strlen
	movslq	%eax, %r15
	addq	%r13, %r15
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	%r15d, %edi
	subl	%r13d, %edi
	incl	%edi
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_Min
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_StrNCpy
	movq	%r12, %rdi
	callq	_is_absolute_path
	movq	%r14, %rdi
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r12, %rsi
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_join_path_components
	movq	%r14, %rdi
	movq	%r14, %rsi
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%rbx, %rdx
	callq	_join_path_components
	movq	%r14, %rdi
	callq	_canonicalize_path
	movq	%r14, %rdi
	callq	_validate_exec
	cmpl	$-2, %eax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	testl	%eax, %eax
	jne	LBB0_20
	jmp	LBB0_7
LBB0_21:
	movq	_ERRCODE_UNDEFINED_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	%rbx, %r14
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_22
LBB0_5:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_join_path_components
LBB0_6:
	movq	%r14, %rdi
	callq	_canonicalize_path
	movq	%r14, %rdi
	callq	_validate_exec
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	_ERRCODE_WRONG_OBJECT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
LBB0_22:
	callq	__
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_log_error
LBB0_23:
	movl	$-1, %eax
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_26
## %bb.25:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	callq	_resolve_symlinks
	jmp	LBB0_24
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not identify current directory: %m"

	.comm	_ERRCODE_WRONG_OBJECT_TYPE,4,2  ## @ERRCODE_WRONG_OBJECT_TYPE
L_.str.1:                               ## @.str.1
	.asciz	"invalid binary \"%s\""

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

L_.str.3:                               ## @.str.3
	.asciz	"could not read binary \"%s\""

	.comm	_ERRCODE_UNDEFINED_FILE,4,2     ## @ERRCODE_UNDEFINED_FILE
L_.str.4:                               ## @.str.4
	.asciz	"could not find a \"%s\" to execute"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_my_exec                   ; -- Begin function find_my_exec
	.p2align	2
_find_my_exec:                          ; @find_my_exec
	.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
	sub	sp, sp, #16
	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]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x28, _MAXPGPATH@GOTPAGE
Lloh4:
	ldr	x28, [x28, _MAXPGPATH@GOTPAGEOFF]
	ldr	w1, [x28]
	mov	x9, x1
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x1, #15
	and	x12, x9, #0x1fffffff0
	sub	x21, x8, x12
	mov	sp, x21
	mov	x9, x1
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x22, x8, x12
	mov	sp, x22
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_getcwd
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_first_dir_separator
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_is_absolute_path
	cbz	x0, LBB0_18
; %bb.3:
	ldr	w2, [x28]
	mov	x0, x19
	mov	x1, x20
	bl	_StrNCpy
	b	LBB0_19
LBB0_4:
	bl	_errcode_for_file_access
	mov	x19, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x19
	bl	_log_error
	b	LBB0_22
LBB0_5:
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_17
; %bb.6:
	mov	x23, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_17
; %bb.7:
	mov	x24, #0
	mov	x26, #0
Lloh13:
	adrp	x25, l_.str.3@PAGE
Lloh14:
	add	x25, x25, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
Lloh15:
	adrp	x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_errcode
	mov	x27, x0
	mov	x0, x25
	bl	__
	mov	x1, x0
	str	x19, [sp, #-16]!
	mov	x0, x27
	bl	_log_error
	add	sp, sp, #16
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldrb	w8, [x26]
	cbz	w8, LBB0_17
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	cmp	x24, #0
	csinc	x24, x23, x26, eq
	mov	x0, x24
	bl	_first_path_var_separator
	mov	x26, x0
	cbnz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x24
	bl	_strlen
	add	x26, x24, w0, sxtw
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	sub	w8, w26, w24
	add	w0, w8, #1
	ldr	w1, [x28]
	bl	_Min
	mov	x2, x0
	mov	x0, x22
	mov	x1, x24
	bl	_StrNCpy
	mov	x0, x22
	bl	_is_absolute_path
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x19
	mov	x1, x22
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_join_path_components
	mov	x0, x19
	mov	x1, x19
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x2, x20
	bl	_join_path_components
	mov	x0, x19
	bl	_canonicalize_path
	mov	x0, x19
	bl	_validate_exec
	cmn	w0, #2
	b.eq	LBB0_8
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	cbnz	w0, LBB0_9
	b	LBB0_25
LBB0_17:
Lloh18:
	adrp	x8, _ERRCODE_UNDEFINED_FILE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERRCODE_UNDEFINED_FILE@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_errcode
	mov	x19, x0
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	mov	x1, x0
	str	x20, [sp, #-16]!
	mov	x0, x19
	b	LBB0_21
LBB0_18:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_join_path_components
LBB0_19:
	mov	x0, x19
	bl	_canonicalize_path
	mov	x0, x19
	bl	_validate_exec
	cbz	w0, LBB0_25
; %bb.20:
Lloh23:
	adrp	x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_errcode
	mov	x20, x0
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x0
	str	x19, [sp, #-16]!
	mov	x0, x20
LBB0_21:
	bl	_log_error
	add	sp, sp, #16
LBB0_22:
	mov	w0, #-1
LBB0_23:
	ldur	x8, [x29, #-88]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.24:
	sub	sp, x29, #80
	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
LBB0_25:
	mov	x0, x19
	bl	_resolve_symlinks
	b	LBB0_23
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not identify current directory: %m"

	.comm	_ERRCODE_WRONG_OBJECT_TYPE,4,2  ; @ERRCODE_WRONG_OBJECT_TYPE
l_.str.1:                               ; @.str.1
	.asciz	"invalid binary \"%s\""

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

l_.str.3:                               ; @.str.3
	.asciz	"could not read binary \"%s\""

	.comm	_ERRCODE_UNDEFINED_FILE,4,2     ; @ERRCODE_UNDEFINED_FILE
l_.str.4:                               ; @.str.4
	.asciz	"could not find a \"%s\" to execute"

.subsections_via_symbols
