	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_root_concat                 ## -- Begin function be_root_concat
	.p2align	4, 0x90
_be_root_concat:                        ## @be_root_concat
	.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	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_strlen
	movq	%rax, %r15
	movq	(%rbx), %rdi
	callq	_strlen
	movq	%rax, %r13
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movq	_BE_ERR_INVALIDNAME@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_3:
	leaq	(%r15,%r13), %rax
	incq	%rax
	movq	_BE_MAXPATHLEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	cmpq	%rsi, %rax
	jae	LBB0_9
## %bb.4:
	movq	(%rbx), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movq	%r12, %r8
	callq	_snprintf
	jmp	LBB0_7
LBB0_5:
	movq	_BE_MAXPATHLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	%rdx, %r15
	jae	LBB0_9
## %bb.6:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_strlcpy
LBB0_7:
	movq	_BE_ERR_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_BE_ERR_PATHLEN@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BE_ERR_INVALIDNAME,4,2         ## @BE_ERR_INVALIDNAME
	.comm	_BE_MAXPATHLEN,8,3              ## @BE_MAXPATHLEN
	.comm	_BE_ERR_PATHLEN,4,2             ## @BE_ERR_PATHLEN
	.comm	_BE_ERR_SUCCESS,4,2             ## @BE_ERR_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_root_concat                 ; -- Begin function be_root_concat
	.p2align	2
_be_root_concat:                        ; @be_root_concat
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	mov	x0, x1
	bl	_strlen
	mov	x21, x0
	ldr	x0, [x22]
	bl	_strlen
	mov	x23, x0
	mov	x0, x19
	mov	w1, #47
	bl	_strrchr
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x22, [x22]
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_strncmp
	cbz	w0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _BE_ERR_INVALIDNAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BE_ERR_INVALIDNAME@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
	add	x8, x21, x23
	add	x8, x8, #1
Lloh2:
	adrp	x9, _BE_MAXPATHLEN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BE_MAXPATHLEN@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x9]
	cmp	x8, x1
	b.hs	LBB0_8
; %bb.4:
	ldr	x3, [x22]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x4, x19
	bl	_snprintf
	b	LBB0_7
LBB0_5:
Lloh7:
	adrp	x8, _BE_MAXPATHLEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BE_MAXPATHLEN@GOTPAGEOFF]
Lloh9:
	ldr	x2, [x8]
	cmp	x21, x2
	b.hs	LBB0_8
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	_strlcpy
LBB0_7:
Lloh10:
	adrp	x8, _BE_ERR_SUCCESS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BE_ERR_SUCCESS@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x8, _BE_ERR_PATHLEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BE_ERR_PATHLEN@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BE_ERR_INVALIDNAME,4,2         ; @BE_ERR_INVALIDNAME
	.comm	_BE_MAXPATHLEN,8,3              ; @BE_MAXPATHLEN
	.comm	_BE_ERR_PATHLEN,4,2             ; @BE_ERR_PATHLEN
	.comm	_BE_ERR_SUCCESS,4,2             ; @BE_ERR_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

.subsections_via_symbols
