	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_os_rel2abs_path                ## -- Begin function os_rel2abs_path
	.p2align	4, 0x90
_os_rel2abs_path:                       ## @os_rel2abs_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	%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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	cmpb	$47, (%rdi)
	jne	LBB0_3
## %bb.12:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_os_strdup                      ## TAILCALL
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_11
LBB0_3:
	movl	$128, %ebx
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_ERANGE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_getcwd
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r12, %rdi
	callq	_os_free
	addq	%rbx, %rbx
	cmpq	$2000, %rbx                     ## imm = 0x7D0
	ja	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	(%r14), %r13d
	je	LBB0_4
	jmp	LBB0_11
LBB0_8:
	movq	%rax, %r13
	movb	$0, -1(%rbx,%r12)
	movq	%rax, %rdi
	callq	_os_strlen
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_os_strlen
	movq	%rax, %r14
	leaq	(%rbx,%rax), %rdi
	addq	$2, %rdi
	callq	_os_malloc
	testq	%rax, %rax
	movq	%rax, %rcx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.9:
	leaq	(%rbx,%r14), %rcx
	incq	%rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_os_memcpy
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movb	$47, (%rax,%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx), %rdi
	incq	%rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_os_memcpy
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movb	$0, (%rax,%rcx)
LBB0_10:
	movq	%r12, %rdi
	callq	_os_free
LBB0_11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	_os_rel2abs_path                ; -- Begin function os_rel2abs_path
	.p2align	2
_os_rel2abs_path:                       ; @os_rel2abs_path
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x0, LBB0_22
; %bb.1:
	mov	x19, x0
	ldrb	w8, [x0]
	cmp	w8, #47
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_os_strdup
LBB0_3:
	mov	w0, #128
	bl	_os_malloc
	cbz	x0, LBB0_22
; %bb.4:
	mov	x20, x0
	mov	w1, #128
	bl	_getcwd
	cbz	x0, LBB0_9
; %bb.5:
	mov	x21, x0
	mov	w8, #127
LBB0_6:
	strb	wzr, [x20, x8]
	mov	x0, x21
	bl	_os_strlen
	mov	x24, x0
	mov	x0, x19
	bl	_os_strlen
	mov	x23, x0
	add	x25, x24, x0
	add	x0, x25, #2
	bl	_os_malloc
	mov	x22, x0
	cbz	x0, LBB0_8
; %bb.7:
	add	x25, x25, #1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x24
	bl	_os_memcpy
	add	x0, x22, x24
	mov	w8, #47
	strb	w8, [x0], #1
	mov	x1, x19
	mov	x2, x23
	bl	_os_memcpy
	strb	wzr, [x22, x25]
LBB0_8:
	mov	x0, x20
	bl	_os_free
	b	LBB0_23
LBB0_9:
Lloh0:
	adrp	x22, _errno@GOTPAGE
Lloh1:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	ldr	w21, [x22]
	mov	x0, x20
	bl	_os_free
Lloh2:
	adrp	x23, _ERANGE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ERANGE@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w21, w8
	b.ne	LBB0_22
; %bb.10:
	mov	w0, #256
	bl	_os_malloc
	cbz	x0, LBB0_22
; %bb.11:
	mov	x20, x0
	mov	w1, #256
	bl	_getcwd
	cbz	x0, LBB0_13
; %bb.12:
	mov	x21, x0
	mov	w8, #255
	b	LBB0_6
LBB0_13:
	ldr	w21, [x22]
	mov	x0, x20
	bl	_os_free
	ldr	w8, [x23]
	cmp	w21, w8
	b.ne	LBB0_22
; %bb.14:
	mov	w0, #512
	bl	_os_malloc
	cbz	x0, LBB0_22
; %bb.15:
	mov	x20, x0
	mov	w1, #512
	bl	_getcwd
	cbz	x0, LBB0_17
; %bb.16:
	mov	x21, x0
	mov	w8, #511
	b	LBB0_6
LBB0_17:
	ldr	w21, [x22]
	mov	x0, x20
	bl	_os_free
	ldr	w8, [x23]
	cmp	w21, w8
	b.ne	LBB0_22
; %bb.18:
	mov	w0, #1024
	bl	_os_malloc
	cbz	x0, LBB0_22
; %bb.19:
	mov	x20, x0
	mov	w1, #1024
	bl	_getcwd
	cbz	x0, LBB0_21
; %bb.20:
	mov	x21, x0
	mov	w8, #1023
	b	LBB0_6
LBB0_21:
	mov	x0, x20
	bl	_os_free
LBB0_22:
	mov	x22, #0
LBB0_23:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_ERANGE,4,2                     ; @ERANGE
.subsections_via_symbols
