	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_abs2rel                        ## -- Begin function abs2rel
	.p2align	4, 0x90
_abs2rel:                               ## @abs2rel
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rdi, %r15
	cmpb	$47, (%rdi)
	jne	LBB0_13
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.2:
	cmpb	$47, (%rsi)
	jne	LBB0_15
## %bb.3:
	cmpq	$1, %rbx
	je	LBB0_38
## %bb.4:
	leaq	(%r14,%rbx), %r13
	decq	%r13
	leaq	1(%r15), %rax
	leaq	1(%rsi), %rdi
	movb	$47, %r9b
	movb	$1, %dl
	movq	%r15, %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rbx
	movq	%rax, %r8
	movq	%rdi, %rcx
	leaq	-1(%rax), %r12
	cmpb	$47, %r9b
	cmovneq	%rbx, %r12
	movzbl	(%rax), %ebx
	testb	%bl, %bl
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movzbl	(%rcx), %r9d
	testb	%r9b, %r9b
	setne	%al
	cmpb	%r9b, %bl
	sete	%dl
	andb	%al, %dl
	leaq	1(%r8), %rax
	leaq	1(%rcx), %rdi
	testb	%dl, %dl
	jne	LBB0_5
## %bb.7:
	cmpb	$47, %bl
	jne	LBB0_23
## %bb.8:
	cmpb	$0, (%rax)
	jne	LBB0_21
LBB0_9:
	movb	(%rcx), %r9b
	testb	%r9b, %r9b
	je	LBB0_16
## %bb.10:
	cmpb	$47, %r9b
	jne	LBB0_19
## %bb.11:
	cmpb	$0, 1(%rcx)
	je	LBB0_16
## %bb.12:
	testb	$1, %dl
	jne	LBB0_22
	jmp	LBB0_21
LBB0_13:
	movq	%r15, %rdi
	callq	_strlen
	cltq
	cmpq	%rbx, %rax
	jae	LBB0_38
## %bb.14:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_strcpy
	jmp	LBB0_40
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_39
LBB0_16:
	movb	$46, (%r14)
	cmpb	$47, (%r8)
	je	LBB0_18
## %bb.17:
	cmpb	$47, -1(%r8)
	jne	LBB0_37
LBB0_18:
	leaq	2(%r14), %rax
	movb	$47, 1(%r14)
	cmpq	%r13, %rax
	ja	LBB0_38
	jmp	LBB0_41
LBB0_19:
	testb	$1, %dl
	je	LBB0_21
## %bb.20:
	cmpb	$47, %r9b
	jne	LBB0_23
	jmp	LBB0_22
LBB0_21:
	testb	%r9b, %r9b
	jne	LBB0_23
LBB0_22:
	movq	%r8, %r12
LBB0_23:
	movq	%r12, %rax
	subq	%r15, %rax
	addq	%rsi, %rax
	incq	%rax
	movq	%r14, %rbx
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_26 Depth=1
	testb	%cl, %cl
	je	LBB0_32
LBB0_24:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	%rbx, %rcx
LBB0_25:                                ##   in Loop: Header=BB0_26 Depth=1
	incq	%rax
	movq	%rcx, %rbx
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rax), %ecx
	cmpb	$47, %cl
	jne	LBB0_27
## %bb.29:                              ##   in Loop: Header=BB0_26 Depth=1
	cmpb	$0, (%rax)
	je	LBB0_24
## %bb.30:                              ##   in Loop: Header=BB0_26 Depth=1
	leaq	3(%rbx), %rcx
	cmpq	%r13, %rcx
	ja	LBB0_38
## %bb.31:                              ##   in Loop: Header=BB0_26 Depth=1
	movw	$11822, (%rbx)                  ## imm = 0x2E2E
	movb	$47, 2(%rbx)
	jmp	LBB0_25
LBB0_32:
	cmpq	%r13, %rbx
	ja	LBB0_38
## %bb.33:
	movb	$0, (%rbx)
	cmpb	$0, (%r12)
	je	LBB0_36
## %bb.34:
	incq	%r12
	movq	%r12, %rdi
	callq	_strlen
	cltq
	addq	%rbx, %rax
	cmpq	%r13, %rax
	ja	LBB0_38
## %bb.35:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_strcpy
	jmp	LBB0_40
LBB0_36:
	movb	$0, -1(%rbx)
	jmp	LBB0_40
LBB0_37:
	leaq	1(%r14), %rax
	cmpq	%r13, %rax
	jbe	LBB0_41
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	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_41:
	movb	$0, (%rax)
	jmp	LBB0_40
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_ERANGE,4,2                     ## @ERANGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_abs2rel                        ; -- Begin function abs2rel
	.p2align	2
_abs2rel:                               ; @abs2rel
	.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	x21, x3
	mov	x19, x2
	mov	x20, x0
	ldrb	w8, [x0]
	cmp	w8, #47
	b.ne	LBB0_13
; %bb.1:
	cbz	x21, LBB0_15
; %bb.2:
	ldrb	w8, [x1]
	cmp	w8, #47
	b.ne	LBB0_15
; %bb.3:
	cmp	x21, #1
	b.eq	LBB0_35
; %bb.4:
	add	x8, x19, x21
	sub	x22, x8, #1
	add	x13, x20, #1
	add	x14, x1, #2
	mov	w10, #47
	mov	w11, #1
	mov	x8, x20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x13
	mov	x12, x14
	cmp	w10, #47
	mov	x10, x13
	ldrb	w15, [x10], #-1
	csel	x8, x10, x8, eq
	cbz	w15, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldurb	w10, [x12, #-1]
	cmp	w10, #0
	ccmp	w15, w10, #0, ne
	cset	w11, eq
	add	x13, x9, #1
	add	x14, x12, #1
	b.eq	LBB0_5
; %bb.7:
	cmp	w15, #47
	b.ne	LBB0_25
; %bb.8:
	ldrb	w13, [x13]
	cbnz	w13, LBB0_23
LBB0_9:
	ldurb	w10, [x12, #-1]
	cbz	w10, LBB0_16
; %bb.10:
	cmp	w10, #47
	b.ne	LBB0_21
; %bb.11:
	ldrb	w12, [x12]
	cbz	w12, LBB0_16
; %bb.12:
	tbz	w11, #0, LBB0_23
	b	LBB0_24
LBB0_13:
	mov	x0, x20
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x8, x21
	b.hs	LBB0_35
; %bb.14:
	mov	x0, x19
	mov	x1, x20
	bl	_strcpy
	b	LBB0_37
LBB0_15:
	mov	x19, #0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_36
LBB0_16:
	mov	w10, #46
	mov	x8, x19
	strb	w10, [x8], #1
	ldrb	w10, [x9]
	cmp	w10, #47
	b.eq	LBB0_18
; %bb.17:
	ldurb	w9, [x9, #-1]
	cmp	w9, #47
	b.ne	LBB0_19
LBB0_18:
	add	x8, x19, #2
	mov	w9, #47
	strb	w9, [x19, #1]
LBB0_19:
	cmp	x8, x22
	b.hi	LBB0_35
; %bb.20:
	strb	wzr, [x8]
	b	LBB0_37
LBB0_21:
	tbz	w11, #0, LBB0_23
; %bb.22:
	cmp	w10, #47
	b.eq	LBB0_24
	b	LBB0_25
LBB0_23:
	cbnz	w10, LBB0_25
LBB0_24:
	mov	x8, x9
LBB0_25:
	sub	x9, x8, x20
	add	x9, x9, x1
	add	x9, x9, #1
	mov	w10, #11822
	mov	w11, #47
	mov	x20, x19
	b	LBB0_28
LBB0_26:                                ;   in Loop: Header=BB0_28 Depth=1
	cbz	w12, LBB0_32
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	add	x9, x9, #1
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldurb	w12, [x9, #-1]
	cmp	w12, #47
	b.ne	LBB0_26
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	ldrb	w12, [x9]
	cbz	w12, LBB0_27
; %bb.30:                               ;   in Loop: Header=BB0_28 Depth=1
	add	x12, x20, #3
	cmp	x12, x22
	b.hi	LBB0_35
; %bb.31:                               ;   in Loop: Header=BB0_28 Depth=1
	strh	w10, [x20]
	strb	w11, [x20, #2]
	mov	x20, x12
	b	LBB0_27
LBB0_32:
	cmp	x20, x22
	b.hi	LBB0_35
; %bb.33:
	strb	wzr, [x20]
	ldrb	w9, [x8]
	cbz	w9, LBB0_38
; %bb.34:
	add	x21, x8, #1
	mov	x0, x21
	bl	_strlen
	add	x8, x20, w0, sxtw
	cmp	x8, x22
	b.ls	LBB0_39
LBB0_35:
	mov	x19, #0
Lloh2:
	adrp	x8, _ERANGE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
LBB0_36:
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _errno@GOTPAGE
Lloh5:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh6:
	str	w8, [x9]
LBB0_37:
	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_38:
	sturb	wzr, [x20, #-1]
	b	LBB0_37
LBB0_39:
	mov	x0, x20
	mov	x1, x21
	bl	_strcpy
	b	LBB0_37
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_ERANGE,4,2                     ; @ERANGE
.subsections_via_symbols
