	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function delete_friend
_delete_friend:                         ## @delete_friend
	.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	$-1, %r15d
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movl	%esi, %r14d
	testl	%esi, %esi
	jle	LBB0_8
## %bb.2:
	movq	%rdi, %rbx
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$4, (%rax)
	jl	LBB0_4
## %bb.3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %ecx
	callq	_fprintf
LBB0_4:
	movl	16(%rbx), %edi
	movl	%r14d, %esi
	callq	_tree_lookup
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	16(%rbx), %edi
	movl	%r14d, %esi
	callq	_tree_delete
	movl	%eax, 16(%rbx)
	movq	8(%rbx), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, 8(%rbx)
	xorl	%edi, %edi
	testq	%rax, %rax
	setg	%dil
	callq	_assert
	movq	_reverse_friends_mode@GOTPCREL(%rip), %rax
	movl	$1, %r15d
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_rev_friends@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	(%rbx), %edx
	movl	%r14d, %esi
	callq	_rev_friends_delete
	movl	%eax, (%r12)
	jmp	LBB0_8
LBB0_5:
	xorl	%r15d, %r15d
LBB0_8:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"delete_friend. user_id = %d, friend_id = %d\n"

	.comm	_reverse_friends_mode,8,3       ## @reverse_friends_mode
	.comm	_rev_friends,4,2                ## @rev_friends
	.no_dead_strip	_delete_friend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function delete_friend
_delete_friend:                         ; @delete_friend
	.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, x0
	mov	w0, #-1
	cbz	x20, LBB0_8
; %bb.1:
	mov	x19, x1
	cmp	w1, #1
	b.lt	LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _verbosity@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #4
	b.lt	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w2, [x20]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	bl	_fprintf
LBB0_4:
	ldr	w0, [x20, #16]
	mov	x1, x19
	bl	_tree_lookup
	cbz	x0, LBB0_8
; %bb.5:
	ldr	w0, [x20, #16]
	mov	x1, x19
	bl	_tree_delete
	str	w0, [x20, #16]
	ldr	x8, [x20, #8]
	sub	x9, x8, #1
	str	x9, [x20, #8]
	cmp	x8, #0
	cset	w0, gt
	bl	_assert
Lloh8:
	adrp	x8, _reverse_friends_mode@GOTPAGE
Lloh9:
	ldr	x8, [x8, _reverse_friends_mode@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
Lloh11:
	adrp	x21, _rev_friends@GOTPAGE
Lloh12:
	ldr	x21, [x21, _rev_friends@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w2, [x20]
	mov	x1, x19
	bl	_rev_friends_delete
	str	w0, [x21]
LBB0_7:
	mov	w0, #1
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"delete_friend. user_id = %d, friend_id = %d\n"

	.comm	_reverse_friends_mode,8,3       ; @reverse_friends_mode
	.comm	_rev_friends,4,2                ; @rev_friends
	.no_dead_strip	_delete_friend
.subsections_via_symbols
