	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_friend_request
_add_friend_request:                    ## @add_friend_request
	.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
	movl	$-1, %ebx
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movl	%esi, %r15d
	testl	%esi, %esi
	jle	LBB0_10
## %bb.2:
	movl	%ecx, %r13d
	movl	%edx, %r14d
	movq	%rdi, %r12
	movq	16(%rdi), %rdi
	movl	%r15d, %esi
	callq	_tree_lookup
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	cmpl	$2, %r13d
	je	LBB0_10
## %bb.4:
	movl	%r14d, (%rax)
	movq	8(%r12), %rdi
	xorl	%esi, %esi
	subl	4(%rax), %esi
	callq	_tree_lookup
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_assert
	movl	%r14d, (%rbx)
	jmp	LBB0_9
LBB0_5:
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.7:
	movq	24(%r12), %rdi
	movl	%r15d, %esi
	callq	_tree_lookup
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movq	_now@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%r12), %ecx
	leal	1(%rcx), %edx
	cmpl	%ecx, %eax
	cmovgl	%eax, %edx
	movl	%edx, (%r12)
	movq	16(%r12), %rbx
	xorl	%eax, %eax
	callq	_lrand48
	movl	(%r12), %r8d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	%r14d, %ecx
	callq	_tree_insert
	movq	%rax, 16(%r12)
	movq	8(%r12), %r13
	xorl	%ebx, %ebx
	subl	(%r12), %ebx
	xorl	%eax, %eax
	callq	_lrand48
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	callq	_tree_insert
	movq	%rax, 8(%r12)
	incl	4(%r12)
LBB0_9:
	movl	%r14d, %ebx
	jmp	LBB0_10
LBB0_6:
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_now,4,2                        ## @now
	.no_dead_strip	_add_friend_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_friend_request
_add_friend_request:                    ; @add_friend_request
	.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, x0
	mov	w0, #-1
	cbz	x20, LBB0_11
; %bb.1:
	mov	x21, x1
	cmp	w1, #1
	b.lt	LBB0_11
; %bb.2:
	mov	x22, x3
	mov	x19, x2
	ldr	x0, [x20, #16]
	mov	x1, x21
	bl	_tree_lookup
	cbz	x0, LBB0_5
; %bb.3:
	cmp	w22, #2
	b.eq	LBB0_8
; %bb.4:
	str	w19, [x0]
	ldr	x8, [x20, #8]
	ldr	w9, [x0, #4]
	neg	w1, w9
	mov	x0, x8
	bl	_tree_lookup
	mov	x20, x0
	bl	_assert
	str	w19, [x20]
	b	LBB0_10
LBB0_5:
	cbz	w22, LBB0_8
; %bb.6:
	ldr	x0, [x20, #24]
	mov	x1, x21
	bl	_tree_lookup
	cbz	x0, LBB0_9
; %bb.7:
	mov	w0, #-1
	b	LBB0_11
LBB0_8:
	mov	w0, #0
	b	LBB0_11
LBB0_9:
Lloh0:
	adrp	x8, _now@GOTPAGE
Lloh1:
	ldr	x8, [x8, _now@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20]
	cmp	w8, w9
	csinc	w8, w8, w9, gt
	str	w8, [x20]
	ldr	x22, [x20, #16]
	bl	_lrand48
	mov	x2, x0
	ldr	w4, [x20]
	mov	x0, x22
	mov	x1, x21
	mov	x3, x19
	bl	_tree_insert
	str	x0, [x20, #16]
	ldr	x22, [x20, #8]
	ldr	w8, [x20]
	neg	w23, w8
	bl	_lrand48
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	mov	x3, x19
	mov	x4, x21
	bl	_tree_insert
	str	x0, [x20, #8]
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
LBB0_10:
	mov	x0, x19
LBB0_11:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_now,4,2                        ; @now
	.no_dead_strip	_add_friend_request
.subsections_via_symbols
