	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strbuf_add_absolute_path       ## -- Begin function strbuf_add_absolute_path
	.p2align	4, 0x90
_strbuf_add_absolute_path:              ## @strbuf_add_absolute_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	cmpb	$0, (%rsi)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_die
LBB0_2:
	movq	%rbx, %rdi
	callq	_is_absolute_path
	testl	%eax, %eax
	jne	LBB0_16
## %bb.3:
	movq	(%r14), %r13
	xorl	%eax, %eax
	callq	_xgetcwd
	movq	%rax, %r15
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	leaq	-88(%rbp), %rsi
	movq	%r15, %rdi
	callq	_stat
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:
	movq	-88(%rbp), %rdx
	movq	-80(%rbp), %rcx
	movq	%rdx, %rax
	orq	%rcx, %rax
	je	LBB0_11
## %bb.7:
	leaq	-72(%rbp), %rsi
	movq	%r12, %rdi
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	callq	_stat
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	cmpq	%rdx, -72(%rbp)
	jne	LBB0_11
## %bb.9:
	cmpq	%rcx, -64(%rbp)
	jne	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	movq	%r12, %rsi
	jmp	LBB0_12
LBB0_11:
	movq	%r14, %rdi
	movq	%r15, %rsi
LBB0_12:
	callq	_strbuf_addstr
	movq	(%r14), %rax
	cmpq	%r13, %rax
	jbe	LBB0_15
## %bb.13:
	movq	8(%r14), %rcx
	movl	-4(%rcx,%rax,4), %edi
	callq	_is_dir_sep
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	movl	$47, %esi
	callq	_strbuf_addch
LBB0_15:
	movq	%r15, %rdi
	callq	_free
LBB0_16:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strbuf_addstr                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"The empty string is not a valid path"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strbuf_add_absolute_path       ; -- Begin function strbuf_add_absolute_path
	.p2align	2
_strbuf_add_absolute_path:              ; @strbuf_add_absolute_path
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x1
	mov	x20, x0
	ldrb	w8, [x1]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_2:
	mov	x0, x19
	bl	_is_absolute_path
	cbnz	w0, LBB0_16
; %bb.3:
	ldr	x23, [x20]
	bl	_xgetcwd
	mov	x21, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_11
; %bb.4:
	mov	x22, x0
	mov	x1, x21
	bl	_strcmp
	cbz	x0, LBB0_11
; %bb.5:
	add	x1, sp, #16
	mov	x0, x21
	bl	_stat
	cbnz	w0, LBB0_11
; %bb.6:
	ldp	x25, x24, [sp, #16]
	orr	x8, x25, x24
	cbz	x8, LBB0_11
; %bb.7:
	mov	x1, sp
	mov	x0, x22
	bl	_stat
	cbnz	w0, LBB0_11
; %bb.8:
	ldr	x8, [sp]
	cmp	x8, x25
	b.ne	LBB0_11
; %bb.9:
	ldr	x8, [sp, #8]
	cmp	x8, x24
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x20
	mov	x1, x22
	b	LBB0_12
LBB0_11:
	mov	x0, x20
	mov	x1, x21
LBB0_12:
	bl	_strbuf_addstr
	ldr	x8, [x20]
	cmp	x8, x23
	b.ls	LBB0_15
; %bb.13:
	ldr	x9, [x20, #8]
	add	x8, x9, x8, lsl #2
	ldur	w0, [x8, #-4]
	bl	_is_dir_sep
	cbnz	w0, LBB0_15
; %bb.14:
	mov	x0, x20
	mov	w1, #47
	bl	_strbuf_addch
LBB0_15:
	mov	x0, x21
	bl	_free
LBB0_16:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_strbuf_addstr
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The empty string is not a valid path"

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

.subsections_via_symbols
