	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_friend_requests        ## -- Begin function prepare_friend_requests
	.p2align	4, 0x90
_prepare_friend_requests:               ## @prepare_friend_requests
	.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	%esi, %r15d
	movl	%edi, %ebx
	callq	_get_user
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rax, %r14
	leal	-10001(%r15), %ecx
	movl	$-1, %eax
	cmpl	$-10003, %ecx                   ## imm = 0xD8ED
	jb	LBB0_12
## %bb.5:
	movq	_R@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_R_end@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	testl	%r15d, %r15d
	js	LBB0_6
## %bb.7:
	je	LBB0_11
## %bb.8:
	movq	_R_cat_mask@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	movq	_R_mode@GOTPCREL(%rip), %rax
	movl	$2, (%rax)
	movq	_R_max@GOTPCREL(%rip), %rax
	movl	%r15d, (%rax)
	movl	4(%r14), %edi
	callq	_tree_fetch_max
	movq	(%r12), %rax
	movq	(%rbx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rax), %edx
	xorl	%esi, %esi
	subl	(%rax), %esi
	movl	%edx, (%rax)
	movl	%esi, 8(%rax)
	addq	$12, %rax
	cmpq	%rcx, %rax
	jne	LBB0_9
	jmp	LBB0_11
LBB0_1:
	movl	%ebx, %edi
	callq	_conv_uid
	movq	%rax, %rcx
	addl	$-10001, %r15d                  ## imm = 0xD8EF
	movl	$-1, %eax
	cmpl	$-10003, %r15d                  ## imm = 0xD8ED
	jb	LBB0_12
## %bb.2:
	testq	%rcx, %rcx
	js	LBB0_12
## %bb.3:
	movq	_R@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_R_end@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_6:
	movq	_R_cat_mask@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	xorl	%eax, %eax
	cmpl	$-1, %r15d
	sete	%al
	addl	%eax, %eax
	movq	_R_mode@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	8(%r14), %edi
	callq	_tree_fetch
LBB0_11:
	movl	(%r14), %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R,8,3                          ## @R
	.comm	_R_end,8,3                      ## @R_end
	.comm	_R_cat_mask,4,2                 ## @R_cat_mask
	.comm	_R_mode,4,2                     ## @R_mode
	.comm	_R_max,4,2                      ## @R_max
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_friend_requests        ; -- Begin function prepare_friend_requests
	.p2align	2
_prepare_friend_requests:               ; @prepare_friend_requests
	.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	x20, x1
	mov	x21, x0
	bl	_get_user
	cbz	x0, LBB0_3
; %bb.1:
	mov	w8, #-10001
	mov	w9, #-10003
	add	w8, w20, w8
	cmp	w8, w9
	b.hs	LBB0_6
; %bb.2:
	mov	w0, #-1
	b	LBB0_16
LBB0_3:
	mov	x0, x21
	bl	_conv_uid
	mov	x8, x0
	mov	w9, #-10001
	mov	w0, #-1
	mov	w10, #-10003
	add	w9, w20, w9
	cmp	w9, w10
	b.lo	LBB0_16
; %bb.4:
	tbnz	x8, #63, LBB0_16
; %bb.5:
	mov	w0, #0
Lloh0:
	adrp	x8, _R@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _R_end@GOTPAGE
Lloh4:
	ldr	x9, [x9, _R_end@GOTPAGEOFF]
Lloh5:
	str	x8, [x9]
	b	LBB0_16
LBB0_6:
	mov	x19, x0
Lloh6:
	adrp	x21, _R@GOTPAGE
Lloh7:
	ldr	x21, [x21, _R@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh8:
	adrp	x22, _R_end@GOTPAGE
Lloh9:
	ldr	x22, [x22, _R_end@GOTPAGEOFF]
	str	x8, [x22]
	tbnz	w20, #31, LBB0_14
; %bb.7:
	cbz	w20, LBB0_15
; %bb.8:
Lloh10:
	adrp	x8, _R_cat_mask@GOTPAGE
Lloh11:
	ldr	x8, [x8, _R_cat_mask@GOTPAGEOFF]
	mov	w9, #-1
Lloh12:
	str	w9, [x8]
Lloh13:
	adrp	x8, _R_mode@GOTPAGE
Lloh14:
	ldr	x8, [x8, _R_mode@GOTPAGEOFF]
	mov	w9, #2
Lloh15:
	str	w9, [x8]
Lloh16:
	adrp	x8, _R_max@GOTPAGE
Lloh17:
	ldr	x8, [x8, _R_max@GOTPAGEOFF]
Lloh18:
	str	w20, [x8]
	ldr	w0, [x19, #4]
	bl	_tree_fetch_max
	ldr	x12, [x21]
	ldr	x8, [x22]
	cmp	x12, x8
	b.eq	LBB0_15
; %bb.9:
	sub	x9, x8, x12
	sub	x10, x9, #12
	mov	x9, x12
	cmp	x10, #12
	b.lo	LBB0_13
; %bb.10:
	mov	x9, #-6148914691236517206
	movk	x9, #43691
	umulh	x9, x10, x9
	lsr	x9, x9, #3
	add	x10, x9, #1
	and	x11, x10, #0x3ffffffffffffffe
	mov	w9, #12
	madd	x9, x11, x9, x12
	add	x12, x12, #12
	mov	x13, x11
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldur	w14, [x12, #-12]
	ldp	w16, w15, [x12, #-4]
	ldr	w17, [x12, #8]
	stur	w16, [x12, #-12]
	neg	w14, w14
	neg	w15, w15
	stp	w14, w17, [x12, #-4]
	str	w15, [x12, #8]
	add	x12, x12, #24
	subs	x13, x13, #2
	b.ne	LBB0_11
; %bb.12:
	cmp	x10, x11
	b.eq	LBB0_15
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9]
	ldr	w11, [x9, #8]
	str	w11, [x9]
	neg	w10, w10
	str	w10, [x9, #8]
	add	x9, x9, #12
	cmp	x9, x8
	b.ne	LBB0_13
	b	LBB0_15
LBB0_14:
Lloh19:
	adrp	x8, _R_cat_mask@GOTPAGE
Lloh20:
	ldr	x8, [x8, _R_cat_mask@GOTPAGEOFF]
	mov	w9, #-1
Lloh21:
	str	w9, [x8]
	cmn	w20, #1
	cset	w8, eq
	lsl	w8, w8, #1
Lloh22:
	adrp	x9, _R_mode@GOTPAGE
Lloh23:
	ldr	x9, [x9, _R_mode@GOTPAGEOFF]
Lloh24:
	str	w8, [x9]
	ldr	w0, [x19, #8]
	bl	_tree_fetch
LBB0_15:
	ldr	w0, [x19]
LBB0_16:
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_R,8,3                          ; @R
	.comm	_R_end,8,3                      ; @R_end
	.comm	_R_cat_mask,4,2                 ; @R_cat_mask
	.comm	_R_mode,4,2                     ; @R_mode
	.comm	_R_max,4,2                      ; @R_max
.subsections_via_symbols
