	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_common_dir_noenv           ## -- Begin function get_common_dir_noenv
	.p2align	4, 0x90
_get_common_dir_noenv:                  ## @get_common_dir_noenv
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%r15, %rdx
	callq	_strbuf_addf
	movq	-48(%rbp), %rdi
	callq	_file_exists
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	-48(%rbp), %rsi
	leaq	-64(%rbp), %rdi
	xorl	%edx, %edx
	callq	_strbuf_read_file
	testq	%rax, %rax
	jg	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	-48(%rbp), %rsi
	movl	%eax, %edi
	callq	_die_errno
LBB0_3:
	movslq	-56(%rbp), %rcx
	movq	-64(%rbp), %rax
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.4:
	leal	-1(%rcx), %edx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, -56(%rbp)
	decq	%rcx
	addl	$-1, %edx
	jae	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rax,%rcx), %ebx
	cmpb	$13, %bl
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$10, %bl
	je	LBB0_7
	jmp	LBB0_9
LBB0_8:
	xorl	%ecx, %ecx
LBB0_9:
	movslq	%ecx, %rcx
	movb	$0, (%rax,%rcx)
	leaq	-48(%rbp), %rdi
	callq	_strbuf_reset
	movq	-64(%rbp), %rdi
	callq	_is_absolute_path
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%r15, %rdx
	callq	_strbuf_addf
LBB0_11:
	leaq	-48(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	callq	_strbuf_addbuf
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_strbuf_add_real_path
	movl	$1, %ebx
	jmp	LBB0_13
LBB0_12:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_strbuf_addstr
	xorl	%ebx, %ebx
LBB0_13:
	leaq	-64(%rbp), %rdi
	callq	_strbuf_release
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/commondir"

L_.str.1:                               ## @.str.1
	.asciz	"failed to read %s"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_common_dir_noenv           ; -- Begin function get_common_dir_noenv
	.p2align	2
_get_common_dir_noenv:                  ; @get_common_dir_noenv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	stp	q0, q0, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, sp
	mov	x2, x20
	bl	_strbuf_addf
	ldr	x0, [sp]
	bl	_file_exists
	cbz	x0, LBB0_11
; %bb.1:
	ldr	x1, [sp]
	add	x0, sp, #16
	mov	w2, #0
	bl	_strbuf_read_file
	cmp	x0, #0
	b.gt	LBB0_3
; %bb.2:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	ldr	x1, [sp]
	bl	_die_errno
LBB0_3:
	ldrsw	x9, [sp, #24]
	ldr	x8, [sp, #16]
	cbz	w9, LBB0_7
; %bb.4:
	sub	w10, w9, #1
	sub	x11, x8, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w12, [x11, x9]
	cmp	w12, #13
	ccmp	w12, #10, #4, ne
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w10, [sp, #24]
	sub	w10, w10, #1
	sub	x9, x9, #1
	cmn	w10, #1
	b.ne	LBB0_5
LBB0_7:
	mov	x9, #0
LBB0_8:
	strb	wzr, [x8, w9, sxtw]
	mov	x0, sp
	bl	_strbuf_reset
	ldr	x0, [sp, #16]
	bl	_is_absolute_path
	cbnz	w0, LBB0_10
; %bb.9:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, sp
	mov	x2, x20
	bl	_strbuf_addf
LBB0_10:
	mov	x0, sp
	add	x1, sp, #16
	bl	_strbuf_addbuf
	ldr	x1, [sp]
	mov	x0, x19
	bl	_strbuf_add_real_path
	mov	w19, #1
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	bl	_strbuf_addstr
	mov	w19, #0
LBB0_12:
	add	x0, sp, #16
	bl	_strbuf_release
	mov	x0, sp
	bl	_strbuf_release
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/commondir"

l_.str.1:                               ; @.str.1
	.asciz	"failed to read %s"

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

.subsections_via_symbols
