	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mc_unify_path
_mc_unify_path:                         ## @mc_unify_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	leaq	L_.str(%rip), %rbx
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rdi, %r14
	cmpb	$0, (%rdi)
	je	LBB0_7
## %bb.2:
	movq	%r14, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	2(%rax), %edi
	callq	_xmalloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_strcpy
	movq	%rbx, %rdi
	callq	_strlen
	movb	-1(%rbx), %cl
	cmpb	$47, %cl
	je	LBB0_6
## %bb.3:
	cmpb	$92, %cl
	je	LBB0_6
## %bb.4:
	cltq
	movq	%rbx, %rdi
	addq	%rax, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcpy
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movb	$47, (%rax)
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$92, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_5
LBB0_7:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"./"

L_.str.1:                               ## @.str.1
	.asciz	"/"

	.no_dead_strip	_mc_unify_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mc_unify_path
_mc_unify_path:                         ; @mc_unify_path
	.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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_8
; %bb.2:
	mov	x0, x20
	bl	_strlen
	add	w0, w0, #2
	bl	_xmalloc
	mov	x19, x0
	mov	x1, x20
	bl	_strcpy
	mov	x0, x19
	bl	_strlen
	ldurb	w8, [x19, #-1]
	cmp	w8, #47
	b.eq	LBB0_5
; %bb.3:
	cmp	w8, #92
	b.eq	LBB0_5
; %bb.4:
	add	x0, x19, w0, sxtw
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcpy
LBB0_5:
	mov	x0, x19
	mov	w1, #92
	bl	_strchr
	cbz	x0, LBB0_9
; %bb.6:
	mov	w20, #47
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	strb	w20, [x0]
	mov	x0, x19
	mov	w1, #92
	bl	_strchr
	cbnz	x0, LBB0_7
	b	LBB0_9
LBB0_8:
Lloh2:
	adrp	x19, l_.str@PAGE
Lloh3:
	add	x19, x19, l_.str@PAGEOFF
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"./"

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

	.no_dead_strip	_mc_unify_path
.subsections_via_symbols
