	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function normalize
_normalize:                             ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_full_pathname@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rsi, %r14
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strrchr
	leaq	1(%rax), %rcx
	testq	%rax, %rax
	cmovneq	%rcx, %rbx
	testq	%r14, %r14
	je	LBB0_5
## %bb.2:
	movq	_ar_truncate@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_strlen
	movq	(%r14), %rcx
	movq	(%rcx), %rdi
	cmpq	%rdi, %rax
	jle	LBB0_5
## %bb.4:
	incl	%edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_xmalloc
	movq	%rax, %r15
	movq	(%r14), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_memcpy
	movq	(%r14), %rax
	movq	(%rax), %rax
	movb	$0, (%r15,%rax)
	movq	%r15, %rbx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_full_pathname,8,3              ## @full_pathname
	.comm	_ar_truncate,8,3                ## @ar_truncate
	.no_dead_strip	_normalize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function normalize
_normalize:                             ; @normalize
	.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, x0
Lloh0:
	adrp	x8, _full_pathname@GOTPAGE
Lloh1:
	ldr	x8, [x8, _full_pathname@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
LBB0_1:
	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
LBB0_2:
	mov	x20, x1
	mov	x0, x19
	mov	w1, #47
	bl	_strrchr
	cmp	x0, #0
	csinc	x19, x19, x0, eq
	cbz	x20, LBB0_1
; %bb.3:
Lloh3:
	adrp	x8, _ar_truncate@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ar_truncate@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_1
; %bb.4:
	mov	x0, x19
	bl	_strlen
	ldr	x8, [x20]
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_1
; %bb.5:
	add	w0, w8, #1
	bl	_xmalloc
	mov	x21, x0
	ldr	x8, [x20]
	ldr	w2, [x8]
	mov	x1, x19
	bl	_memcpy
	ldr	x8, [x20]
	ldr	x8, [x8]
	strb	wzr, [x21, x8]
	mov	x19, x21
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_full_pathname,8,3              ; @full_pathname
	.comm	_ar_truncate,8,3                ; @ar_truncate
	.no_dead_strip	_normalize
.subsections_via_symbols
