	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function delete_friend_request
_delete_friend_request:                 ## @delete_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %eax
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movl	%esi, %r14d
	testl	%esi, %esi
	jle	LBB0_5
## %bb.2:
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	movl	%r14d, %esi
	callq	_tree_lookup
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	16(%rbx), %rdi
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movl	%r14d, %esi
	callq	_tree_delete
	movq	%rax, 16(%rbx)
	movq	8(%rbx), %rdi
	movl	%r15d, %esi
	callq	_tree_delete
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, (%rbx)
	xorl	%edi, %edi
	testq	%rax, %rax
	setg	%dil
	callq	_assert
	movl	$1, %eax
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_delete_friend_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function delete_friend_request
_delete_friend_request:                 ; @delete_friend_request
	.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, x0
	mov	w0, #-1
	cbz	x19, LBB0_4
; %bb.1:
	mov	x20, x1
	cmp	w1, #1
	b.lt	LBB0_4
; %bb.2:
	ldr	x0, [x19, #16]
	mov	x1, x20
	bl	_tree_lookup
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w21, [x0]
	ldr	x0, [x19, #16]
	mov	x1, x20
	bl	_tree_delete
	str	x0, [x19, #16]
	ldr	x0, [x19, #8]
	neg	w1, w21
	bl	_tree_delete
	ldr	x8, [x19]
	sub	x9, x8, #1
	stp	x9, x0, [x19]
	cmp	x8, #0
	cset	w0, gt
	bl	_assert
	mov	w0, #1
LBB0_4:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_delete_friend_request
.subsections_via_symbols
