	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_update_path                    ## -- Begin function update_path
	.p2align	4, 0x90
_update_path:                           ## @update_path
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_std_prefix@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_strlen
	movl	%eax, %ebx
	movl	(%r15), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_1
LBB0_4:
	movq	%r12, %rdi
	callq	_xstrdup
	jmp	LBB0_10
LBB0_1:
	movslq	%ebx, %rax
	leaq	(%r12,%rax), %r15
	movsbl	(%r12,%rax), %edi
	callq	_IS_DIR_SEPARATOR
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	testq	%r14, %r14
	jne	LBB0_6
	jmp	LBB0_4
LBB0_2:
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	cmpb	$0, (%r15)
	jne	LBB0_4
LBB0_6:
	cmpb	$36, (%r14)
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_concat
	movq	%rax, %rbx
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_concat
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_concat
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_free
LBB0_9:
	movq	%rbx, %rdi
	callq	_translate_name
LBB0_10:
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$46, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_32
## %bb.11:
	movq	%rax, %rbx
	movq	_X_OK@GOTPCREL(%rip), %r12
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r15, %rdi
	movl	$46, %esi
	callq	_strchr
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_32
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
                                        ##       Child Loop BB0_21 Depth 3
                                        ##     Child Loop BB0_27 Depth 2
                                        ##     Child Loop BB0_29 Depth 2
	leaq	1(%rbx), %r15
	cmpb	$46, 1(%rbx)
	jne	LBB0_30
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movsbl	2(%rbx), %edi
	callq	_IS_DIR_SEPARATOR
	testq	%rax, %rax
	je	LBB0_30
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpq	%r14, %rbx
	je	LBB0_30
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movsbl	-1(%rbx), %edi
	callq	_IS_DIR_SEPARATOR
	testq	%rax, %rax
	je	LBB0_30
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movb	$0, (%rbx)
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_access
	testq	%rax, %rax
	je	LBB0_31
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rbx, %r15
LBB0_18:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_21 Depth 3
	decq	%r15
	movq	%r14, %rcx
	cmpq	%r14, %r15
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=2
	movsbl	(%r15), %edi
	callq	_IS_DIR_SEPARATOR
	movq	%r15, %rcx
	testq	%rax, %rax
	jne	LBB0_18
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=2
	incq	%rcx
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_12 Depth=1
                                        ##     Parent Loop BB0_18 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	leaq	-1(%rcx), %r15
	cmpq	%r14, %r15
	je	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=3
	movsbl	-2(%rcx), %edi
	callq	_IS_DIR_SEPARATOR
	movq	%r15, %rcx
	testq	%rax, %rax
	je	LBB0_21
## %bb.23:                              ##   in Loop: Header=BB0_18 Depth=2
	movb	(%r15), %al
	cmpb	$46, %al
	je	LBB0_18
	jmp	LBB0_25
LBB0_24:                                ##   in Loop: Header=BB0_12 Depth=1
	movb	(%r14), %al
	movq	%r14, %r15
	cmpb	$46, %al
	je	LBB0_31
LBB0_25:                                ##   in Loop: Header=BB0_12 Depth=1
	movsbl	%al, %edi
	callq	_IS_DIR_SEPARATOR
	testq	%rax, %rax
	jne	LBB0_31
## %bb.26:                              ##   in Loop: Header=BB0_12 Depth=1
	addq	$2, %rbx
	.p2align	4, 0x90
LBB0_27:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	1(%rbx), %edi
	incq	%rbx
	callq	_IS_DIR_SEPARATOR
	testq	%rax, %rax
	jne	LBB0_27
## %bb.28:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_29:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rbx,%rax), %ecx
	movb	%cl, (%r15,%rax)
	incq	%rax
	testb	%cl, %cl
	jne	LBB0_29
	jmp	LBB0_30
LBB0_31:
	movb	$46, (%rbx)
LBB0_32:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_std_prefix,4,2                 ## @std_prefix
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"@"

	.comm	_X_OK,4,2                       ## @X_OK
	.comm	_ALWAYS_STRIP_DOTDOT,4,2        ## @ALWAYS_STRIP_DOTDOT
	.comm	_DIR_SEPARATOR,1,0              ## @DIR_SEPARATOR
	.comm	_DIR_SEPARATOR_2,1,0            ## @DIR_SEPARATOR_2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_update_path                    ; -- Begin function update_path
	.p2align	2
_update_path:                           ; @update_path
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _std_prefix@GOTPAGE
Lloh1:
	ldr	x22, [x22, _std_prefix@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_strlen
	mov	x20, x0
	ldr	w1, [x22]
	mov	x0, x21
	mov	x2, x20
	bl	_strncmp
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x21
	bl	_xstrdup
	b	LBB0_10
LBB0_2:
	add	x20, x21, w20, sxtw
	ldrsb	w0, [x20]
	bl	_IS_DIR_SEPARATOR
	cbz	x0, LBB0_4
; %bb.3:
	cbnz	x19, LBB0_6
	b	LBB0_1
LBB0_4:
	cbz	x19, LBB0_1
; %bb.5:
	ldrb	w8, [x20]
	cbnz	w8, LBB0_1
LBB0_6:
	ldrb	w8, [x19]
	cmp	w8, #36
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	bl	_concat
	mov	x19, x0
	b	LBB0_9
LBB0_8:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, #0
	bl	_concat
	mov	x21, x0
	mov	x1, x20
	mov	x2, #0
	bl	_concat
	mov	x19, x0
	mov	x0, x21
	bl	_free
LBB0_9:
	mov	x0, x19
	bl	_translate_name
LBB0_10:
	mov	x19, x0
	mov	w1, #46
	bl	_strchr
	cbz	x0, LBB0_31
; %bb.11:
	mov	x20, x0
Lloh4:
	adrp	x22, _X_OK@GOTPAGE
Lloh5:
	ldr	x22, [x22, _X_OK@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x21
	mov	w1, #46
	bl	_strchr
	mov	x20, x0
	cbz	x0, LBB0_31
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
                                        ;       Child Loop BB0_21 Depth 3
                                        ;     Child Loop BB0_27 Depth 2
                                        ;     Child Loop BB0_29 Depth 2
	mov	x21, x20
	ldrb	w8, [x21, #1]!
	cmp	w8, #46
	b.ne	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldrsb	w0, [x20, #2]
	bl	_IS_DIR_SEPARATOR
	cmp	x0, #0
	ccmp	x20, x19, #4, ne
	b.eq	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldursb	w0, [x20, #-1]
	bl	_IS_DIR_SEPARATOR
	cbz	x0, LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	strb	wzr, [x20]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_access
	cbz	x0, LBB0_30
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x21, x20
LBB0_18:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_21 Depth 3
	sub	x21, x21, #1
	mov	x8, x19
	cmp	x21, x19
	b.eq	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	ldrsb	w0, [x21]
	bl	_IS_DIR_SEPARATOR
	mov	x8, x21
	cbnz	x0, LBB0_18
LBB0_20:                                ;   in Loop: Header=BB0_18 Depth=2
	add	x8, x8, #1
LBB0_21:                                ;   Parent Loop BB0_13 Depth=1
                                        ;     Parent Loop BB0_18 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	sub	x21, x8, #1
	cmp	x21, x19
	b.eq	LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=3
	ldursb	w0, [x8, #-2]
	bl	_IS_DIR_SEPARATOR
	mov	x8, x21
	cbz	x0, LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=2
	ldrb	w8, [x21]
	cmp	w8, #46
	b.eq	LBB0_18
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_13 Depth=1
	ldrb	w8, [x19]
	mov	x21, x19
	cmp	w8, #46
	b.eq	LBB0_30
LBB0_25:                                ;   in Loop: Header=BB0_13 Depth=1
	sxtb	w0, w8
	bl	_IS_DIR_SEPARATOR
	cbnz	x0, LBB0_30
; %bb.26:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x20, x20, #2
LBB0_27:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x20, #1]!
	bl	_IS_DIR_SEPARATOR
	cbnz	x0, LBB0_27
; %bb.28:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x8, #0
LBB0_29:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x20, x8]
	strb	w9, [x21, x8]
	add	x8, x8, #1
	cbnz	w9, LBB0_29
	b	LBB0_12
LBB0_30:
	mov	w8, #46
	strb	w8, [x20]
LBB0_31:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_std_prefix,4,2                 ; @std_prefix
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"@"

	.comm	_X_OK,4,2                       ; @X_OK
	.comm	_ALWAYS_STRIP_DOTDOT,4,2        ; @ALWAYS_STRIP_DOTDOT
	.comm	_DIR_SEPARATOR,1,0              ; @DIR_SEPARATOR
	.comm	_DIR_SEPARATOR_2,1,0            ; @DIR_SEPARATOR_2
.subsections_via_symbols
