	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rel2abs                        ## -- Begin function rel2abs
	.p2align	4, 0x90
_rel2abs:                               ## @rel2abs
	.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
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rdi, %r15
	cmpb	$47, (%rdi)
	jne	LBB0_4
## %bb.1:
	movq	%r15, %rdi
	callq	_strlen
	cltq
	cmpq	%r12, %rax
	jae	LBB0_38
## %bb.2:
	movq	%r14, %rdi
LBB0_3:
	movq	%r15, %rsi
	callq	_strcpy
	jmp	LBB0_40
LBB0_4:
	testq	%r12, %r12
	je	LBB0_6
## %bb.5:
	movq	%rsi, %rbx
	cmpb	$47, (%rsi)
	jne	LBB0_6
## %bb.7:
	cmpq	$1, %r12
	je	LBB0_38
## %bb.8:
	leaq	(%r14,%r12), %rax
	decq	%rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movslq	%eax, %r13
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_10
## %bb.18:
	movq	%r13, %rcx
	leaq	(%rbx,%r13), %rax
	addq	%rbx, %r13
	decq	%r13
	cmpb	$47, -1(%rbx,%rcx)
	cmovneq	%rax, %r13
	jmp	LBB0_19
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_39
LBB0_25:                                ##   in Loop: Header=BB0_19 Depth=1
	addq	$2, %r15
LBB0_19:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_28 Depth 2
                                        ##     Child Loop BB0_22 Depth 2
	cmpb	$46, (%r15)
	jne	LBB0_31
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$3, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_21
## %bb.24:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	$3, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_31
## %bb.27:                              ##   in Loop: Header=BB0_19 Depth=1
	addq	$2, %r15
	.p2align	4, 0x90
LBB0_28:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rbx, %r13
	jbe	LBB0_19
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=2
	leaq	-1(%r13), %rax
	cmpb	$47, -1(%r13)
	movq	%rax, %r13
	jne	LBB0_28
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	addq	$3, %r15
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rbx, %r13
	jbe	LBB0_19
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=2
	leaq	-1(%r13), %rax
	cmpb	$47, -1(%r13)
	movq	%rax, %r13
	jne	LBB0_22
LBB0_30:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	%rax, %r13
	jmp	LBB0_19
LBB0_10:
	cmpq	%r12, %r13
	jae	LBB0_38
## %bb.11:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_strcpy
	leaq	(%r14,%r13), %rax
	decq	%rax
	cmpb	$47, -1(%r14,%r13)
	jne	LBB0_14
## %bb.12:
	cmpl	$2, -44(%rbp)                   ## 4-byte Folded Reload
	jb	LBB0_15
## %bb.13:
	movb	$0, (%rax)
	jmp	LBB0_15
LBB0_31:
	movq	%r13, %rax
	subq	%rbx, %rax
	cmpq	%r12, %rax
	jae	LBB0_38
## %bb.32:
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_strncpy
	addq	%r14, %r12
	cmpb	$0, (%r15)
	je	LBB0_33
LBB0_35:
	movb	$47, (%r12)
	incq	%r12
LBB0_36:
	movq	%r15, %rdi
	callq	_strlen
	cltq
	addq	%r12, %rax
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	ja	LBB0_38
## %bb.37:
	movq	%r12, %rdi
	jmp	LBB0_3
LBB0_14:
	incq	%rax
LBB0_15:
	cmpb	$47, 1(%r15)
	jne	LBB0_40
## %bb.16:
	movb	$47, (%rax)
	incq	%rax
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	jbe	LBB0_17
LBB0_38:
	movq	_ERANGE@GOTPCREL(%rip), %rax
LBB0_39:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%r14d, %r14d
LBB0_40:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movb	$0, (%rax)
	jmp	LBB0_40
LBB0_33:
	cmpb	$47, -1(%r15)
	je	LBB0_35
## %bb.34:
	cmpq	%rbx, %r13
	jne	LBB0_36
	jmp	LBB0_35
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

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

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

	.section	__TEXT,__literal4,4byte_literals
L_.str.3:                               ## @.str.3
	.asciz	"..\000"

	.comm	_ERANGE,4,2                     ## @ERANGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rel2abs                        ; -- Begin function rel2abs
	.p2align	2
_rel2abs:                               ; @rel2abs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x19, x2
	mov	x20, x0
	ldrb	w8, [x0]
	cmp	w8, #47
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x8, x22
	b.hs	LBB0_35
; %bb.2:
	mov	x0, x19
LBB0_3:
	mov	x1, x20
	bl	_strcpy
	b	LBB0_37
LBB0_4:
	cbz	x22, LBB0_11
; %bb.5:
	mov	x21, x1
	ldrb	w8, [x1]
	cmp	w8, #47
	b.ne	LBB0_11
; %bb.6:
	cmp	x22, #1
	b.eq	LBB0_35
; %bb.7:
	add	x8, x19, x22
	sub	x26, x8, #1
	mov	x0, x21
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x23, w0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_23
; %bb.8:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_23
; %bb.9:
	add	x8, x21, x23
	mov	x9, x8
	ldrb	w10, [x9, #-1]!
	cmp	w10, #47
	csel	x27, x9, x8, eq
	ldrb	w8, [x20]
	cmp	w8, #46
	b.ne	LBB0_27
; %bb.10:
Lloh4:
	adrp	x23, l_.str.2@PAGE
Lloh5:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh6:
	adrp	x24, l_.str.1@PAGE
Lloh7:
	add	x24, x24, l_.str.1@PAGEOFF
Lloh8:
	adrp	x25, l_.str.3@PAGE
Lloh9:
	add	x25, x25, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_11:
	mov	x19, #0
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_36
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x20, x20, #2
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldrb	w8, [x20]
	cmp	w8, #46
	b.ne	LBB0_27
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
                                        ;     Child Loop BB0_21 Depth 2
	mov	x0, x20
	mov	x1, x23
	mov	w2, #3
	bl	_strncmp
	cbz	w0, LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x20
	mov	x1, x24
	mov	w2, #2
	bl	_strncmp
	cbz	w0, LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x20
	mov	x1, x25
	mov	w2, #3
	bl	_strncmp
	cbnz	w0, LBB0_27
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x20, x20, #2
LBB0_18:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x27, x21
	b.ls	LBB0_13
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	ldrb	w8, [x27, #-1]!
	cmp	w8, #47
	b.ne	LBB0_18
	b	LBB0_13
LBB0_20:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x20, x20, #3
LBB0_21:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x27, x21
	b.ls	LBB0_13
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=2
	ldrb	w8, [x27, #-1]!
	cmp	w8, #47
	b.ne	LBB0_21
	b	LBB0_13
LBB0_23:
	cmp	x23, x22
	b.hs	LBB0_35
; %bb.24:
	mov	x0, x19
	mov	x1, x21
	bl	_strcpy
	add	x8, x19, x23
	ldrb	w9, [x8, #-1]!
	cmp	w9, #47
	b.ne	LBB0_32
; %bb.25:
	cmp	w23, #2
	b.lo	LBB0_33
; %bb.26:
	strb	wzr, [x8]
	b	LBB0_33
LBB0_27:
	sub	x23, x27, x21
	cmp	x23, x22
	b.hs	LBB0_35
; %bb.28:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	_strncpy
	add	x22, x19, x23
	ldrb	w8, [x20]
	cbz	w8, LBB0_39
LBB0_29:
	mov	w8, #47
	strb	w8, [x22], #1
LBB0_30:
	mov	x0, x20
	bl	_strlen
	add	x8, x22, w0, sxtw
	cmp	x8, x26
	b.hi	LBB0_35
; %bb.31:
	mov	x0, x22
	b	LBB0_3
LBB0_32:
	add	x8, x8, #1
LBB0_33:
	ldrb	w9, [x20, #1]
	cmp	w9, #47
	b.ne	LBB0_37
; %bb.34:
	strb	w9, [x8], #1
	cmp	x8, x26
	b.ls	LBB0_38
LBB0_35:
	mov	x19, #0
Lloh12:
	adrp	x8, _ERANGE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
LBB0_36:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _errno@GOTPAGE
Lloh15:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh16:
	str	w8, [x9]
LBB0_37:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_38:
	strb	wzr, [x8]
	b	LBB0_37
LBB0_39:
	ldurb	w8, [x20, #-1]
	cmp	w8, #47
	b.eq	LBB0_29
; %bb.40:
	cmp	x27, x21
	b.ne	LBB0_30
	b	LBB0_29
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

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

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

	.section	__TEXT,__literal4,4byte_literals
l_.str.3:                               ; @.str.3
	.asciz	"..\000"

	.comm	_ERANGE,4,2                     ; @ERANGE
.subsections_via_symbols
