	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_friends                ## -- Begin function prepare_friends
	.p2align	4, 0x90
_prepare_friends:                       ## @prepare_friends
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movl	%edi, %ebx
	callq	_get_user
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rax, %rcx
	movl	$-1, %eax
	cmpl	$2, %r15d
	ja	LBB0_6
## %bb.5:
	movq	_R@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movq	_R_end@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	movq	_R_cat_mask@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	movq	_R_mode@GOTPCREL(%rip), %rax
	movl	%r15d, (%rax)
	movl	(%rcx), %edi
	callq	_tree_fetch
	movl	(%rbx), %eax
	subl	(%r12), %eax
	incl	%r15d
	cltd
	idivl	%r15d
	jmp	LBB0_6
LBB0_1:
	movl	%ebx, %edi
	callq	_conv_uid
	movq	%rax, %rcx
	movl	$-1, %eax
	cmpl	$2, %r15d
	ja	LBB0_6
## %bb.2:
	testq	%rcx, %rcx
	js	LBB0_6
## %bb.3:
	movq	_R@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_R_end@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R,4,2                          ## @R
	.comm	_R_end,4,2                      ## @R_end
	.comm	_R_cat_mask,4,2                 ## @R_cat_mask
	.comm	_R_mode,4,2                     ## @R_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_friends                ; -- Begin function prepare_friends
	.p2align	2
_prepare_friends:                       ; @prepare_friends
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_get_user
	cbz	x0, LBB0_3
; %bb.1:
	cmp	w19, #2
	b.ls	LBB0_6
; %bb.2:
	mov	w0, #-1
	b	LBB0_7
LBB0_3:
	mov	x0, x21
	bl	_conv_uid
	mov	x8, x0
	mov	w0, #-1
	cmp	w19, #2
	b.hi	LBB0_7
; %bb.4:
	tbnz	x8, #63, LBB0_7
; %bb.5:
	mov	w0, #0
Lloh0:
	adrp	x8, _R@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _R_end@GOTPAGE
Lloh4:
	ldr	x9, [x9, _R_end@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x21, _R@GOTPAGE
Lloh7:
	ldr	x21, [x21, _R@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh8:
	adrp	x22, _R_end@GOTPAGE
Lloh9:
	ldr	x22, [x22, _R_end@GOTPAGEOFF]
Lloh10:
	adrp	x9, _R_cat_mask@GOTPAGE
Lloh11:
	ldr	x9, [x9, _R_cat_mask@GOTPAGEOFF]
	str	w8, [x22]
Lloh12:
	str	w20, [x9]
Lloh13:
	adrp	x8, _R_mode@GOTPAGE
Lloh14:
	ldr	x8, [x8, _R_mode@GOTPAGEOFF]
Lloh15:
	str	w19, [x8]
	ldr	w0, [x0]
	bl	_tree_fetch
	ldr	w8, [x22]
	ldr	w9, [x21]
	sub	w8, w8, w9
	add	w9, w19, #1
	sdiv	w0, w8, w9
LBB0_7:
	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
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_R,4,2                          ; @R
	.comm	_R_end,4,2                      ; @R_end
	.comm	_R_cat_mask,4,2                 ; @R_cat_mask
	.comm	_R_mode,4,2                     ; @R_mode
.subsections_via_symbols
