	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_path_normalize                 ## -- Begin function path_normalize
	.p2align	4, 0x90
_path_normalize:                        ## @path_normalize
	.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
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	_current@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %rdi
	callq	_lock
	cmpb	$47, (%r12)
	jne	LBB0_4
## %bb.3:
	movq	(%r14), %rax
	movq	(%rax), %rdi
	leaq	16(%rdi), %rax
	jmp	LBB0_6
LBB0_1:
	movq	__ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_4:
	movq	_AT_PWD@GOTPCREL(%rip), %rax
	movq	(%r14), %rcx
	movq	(%rcx), %rdi
	cmpq	%rbx, (%rax)
	jne	LBB0_7
## %bb.5:
	leaq	8(%rdi), %rax
LBB0_6:
	movq	(%rax), %rbx
LBB0_7:
	callq	_unlock
	movq	%rsp, %r14
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.9:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_generic_getpath
	testl	%eax, %eax
	js	LBB0_12
## %bb.10:
	movq	%r13, %rdi
	callq	_path_is_normalized
	movl	%eax, %edi
	callq	_assert
	jmp	LBB0_11
LBB0_8:
	xorl	%r13d, %r13d
LBB0_11:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	callq	___path_normalize
LBB0_12:
	movq	%r14, %rsp
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	__ENOENT,4,2                    ## @_ENOENT
	.comm	_current,8,3                    ## @current
	.comm	_AT_PWD,8,3                     ## @AT_PWD
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_path_normalize                 ; -- Begin function path_normalize
	.p2align	2
_path_normalize:                        ; @path_normalize
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x19, x3
	mov	x20, x2
	mov	x21, 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, #-56]
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_3
; %bb.1:
Lloh5:
	adrp	x23, _current@GOTPAGE
Lloh6:
	ldr	x23, [x23, _current@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x0, [x8]
	bl	_lock
	ldrb	w8, [x21]
	cmp	w8, #47
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x23]
	ldr	x0, [x8]
	add	x8, x0, #16
	b	LBB0_6
LBB0_3:
Lloh7:
	adrp	x8, __ENOENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, __ENOENT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_4:
Lloh10:
	adrp	x8, _AT_PWD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AT_PWD@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x9, [x23]
	ldr	x0, [x9]
	cmp	x8, x22
	b.ne	LBB0_7
; %bb.5:
	add	x8, x0, #8
LBB0_6:
	ldr	x22, [x8]
LBB0_7:
	bl	_unlock
	mov	x24, sp
Lloh13:
	adrp	x8, _MAX_PATH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MAX_PATH@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	mov	x9, x8
Lloh16:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh17:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	cbz	x22, LBB0_10
; %bb.8:
	mov	x0, x22
	mov	x1, x23
	bl	_generic_getpath
	tbnz	w0, #31, LBB0_12
; %bb.9:
	mov	x0, x23
	bl	_path_is_normalized
	bl	_assert
	b	LBB0_11
LBB0_10:
	mov	x23, #0
LBB0_11:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	mov	w4, #0
	bl	___path_normalize
LBB0_12:
	mov	sp, x24
LBB0_13:
	ldur	x8, [x29, #-56]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	__ENOENT,4,2                    ; @_ENOENT
	.comm	_current,8,3                    ; @current
	.comm	_AT_PWD,8,3                     ; @AT_PWD
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
.subsections_via_symbols
