	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_plat_get_root_dir              ## -- Begin function plat_get_root_dir
	.p2align	4, 0x90
_plat_get_root_dir:                     ## @plat_get_root_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %edx
	movq	%rdi, %rbx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_GetModuleFileName
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jle	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ecx
	cmpb	$92, (%rbx,%rcx)
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	-1(%rax), %ecx
	cmpl	$1, %eax
	movl	%ecx, %eax
	jg	LBB0_1
	jmp	LBB0_5
LBB0_3:
	je	LBB0_5
LBB0_6:
	incl	%eax
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
LBB0_7:
	cltq
	movb	$0, (%rbx,%rax)
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_plat_get_root_dir              ; -- Begin function plat_get_root_dir
	.p2align	2
_plat_get_root_dir:                     ; @plat_get_root_dir
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x2, x1
	mov	x19, x0
	mov	x0, #0
	mov	x1, x19
	bl	_GetModuleFileName
	cmp	w0, #1
	b.lt	LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x19, w0, uxtw]
	cmp	w8, #92
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	subs	w0, w0, #1
	b.gt	LBB0_1
	b	LBB0_5
LBB0_3:
	cbz	w0, LBB0_5
LBB0_4:
	add	w0, w0, #1
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	strb	wzr, [x19, w0, sxtw]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
