	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function delete_user_by_idx
_delete_user_by_idx:                    ## @delete_user_by_idx
	.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
	testl	%edi, %edi
	js	LBB0_1
## %bb.2:
	movq	_User@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edi, %ecx
	movq	(%rax,%rcx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.4:
	movq	$0, (%rax,%rcx,8)
	movl	$-1, (%rbx)
	movq	_UG_MODE@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_NOTIFY_MODE@GOTPCREL(%rip), %r14
	orq	(%r14), %rax
	setne	%al
	movq	_RECOMMEND_MODE@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	setne	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	cmpq	$0, (%r12)
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_free_item_list
	jmp	LBB0_9
LBB0_1:
	movl	$-1, %eax
	jmp	LBB0_10
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_6:
	cmpq	$0, (%r14)
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_free_notify_user_list
	jmp	LBB0_9
LBB0_8:
	movl	(%r15), %edi
	callq	_assert
	movq	%rbx, %rdi
	callq	_free_recommend_user_list
LBB0_9:
	movq	%rbx, %rdi
	callq	_free_user_struct
	movq	_tot_users@GOTPCREL(%rip), %rax
	decl	(%rax)
	movl	$1, %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_User,8,3                       ## @User
	.comm	_UG_MODE,8,3                    ## @UG_MODE
	.comm	_NOTIFY_MODE,8,3                ## @NOTIFY_MODE
	.comm	_RECOMMEND_MODE,4,2             ## @RECOMMEND_MODE
	.comm	_tot_users,4,2                  ## @tot_users
	.no_dead_strip	_delete_user_by_idx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function delete_user_by_idx
_delete_user_by_idx:                    ; @delete_user_by_idx
	.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
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _User@GOTPAGE
Lloh1:
	ldr	x8, [x8, _User@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x19, [x8, w0, uxtw #3]
	cbz	x19, LBB0_5
; %bb.2:
	mov	w9, w0
	str	xzr, [x8, x9, lsl #3]
	mov	w8, #-1
Lloh3:
	adrp	x22, _UG_MODE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _UG_MODE@GOTPAGEOFF]
	str	w8, [x19]
	ldr	x8, [x22]
Lloh5:
	adrp	x20, _NOTIFY_MODE@GOTPAGE
Lloh6:
	ldr	x20, [x20, _NOTIFY_MODE@GOTPAGEOFF]
	ldr	x9, [x20]
	orr	x8, x8, x9
	cmp	x8, #0
Lloh7:
	adrp	x21, _RECOMMEND_MODE@GOTPAGE
Lloh8:
	ldr	x21, [x21, _RECOMMEND_MODE@GOTPAGEOFF]
	ldr	w8, [x21]
	ccmp	w8, #0, #0, eq
	cset	w0, ne
	bl	_assert
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_free_item_list
	b	LBB0_9
LBB0_4:
	mov	w0, #-1
	b	LBB0_10
LBB0_5:
	mov	w0, #0
	b	LBB0_10
LBB0_6:
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_free_notify_user_list
	b	LBB0_9
LBB0_8:
	ldr	w0, [x21]
	bl	_assert
	mov	x0, x19
	bl	_free_recommend_user_list
LBB0_9:
	mov	x0, x19
	bl	_free_user_struct
Lloh9:
	adrp	x8, _tot_users@GOTPAGE
Lloh10:
	ldr	x8, [x8, _tot_users@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	mov	w0, #1
LBB0_10:
	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 AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_User,8,3                       ; @User
	.comm	_UG_MODE,8,3                    ; @UG_MODE
	.comm	_NOTIFY_MODE,8,3                ; @NOTIFY_MODE
	.comm	_RECOMMEND_MODE,4,2             ; @RECOMMEND_MODE
	.comm	_tot_users,4,2                  ; @tot_users
	.no_dead_strip	_delete_user_by_idx
.subsections_via_symbols
