	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_category_friend_list
_set_category_friend_list:              ## @set_category_friend_list
	.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
                                        ## kill: def $esi killed $esi def $rsi
	movl	$-1, %r13d
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	leal	-32(%rsi), %eax
	cmpl	$-31, %eax
	jb	LBB0_9
## %bb.2:
	movl	%ecx, %r12d
	cmpl	$16384, %ecx                    ## imm = 0x4000
	ja	LBB0_9
## %bb.3:
	movq	%rdx, %rbx
	movq	%rdi, %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.5:
	xorl	%edi, %edi
	cmpl	$0, (%rbx)
	setg	%dil
	callq	_assert
	cmpl	$1, %r12d
	je	LBB0_8
## %bb.6:
	movl	%r12d, %r13d
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%rbx,%r14,4), %eax
	xorl	%edi, %edi
	cmpl	(%rbx,%r14,4), %eax
	setl	%dil
	callq	_assert
	incq	%r14
	cmpq	%r14, %r13
	jne	LBB0_7
	jmp	LBB0_8
LBB0_4:
	movl	$1, %edi
	callq	_assert
LBB0_8:
	movq	_LiA@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movslq	%r12d, %rax
	leaq	(%rbx,%rax,4), %rax
	movq	_LiB@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	4(%r15), %edi
	movl	$1, %r13d
	movl	$1, %ebx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %ebx
	movl	%ebx, %esi
	callq	_tree_set_catlist
	orl	%ebx, (%r15)
LBB0_9:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LiA,8,3                        ## @LiA
	.comm	_LiB,8,3                        ## @LiB
	.no_dead_strip	_set_category_friend_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_category_friend_list
_set_category_friend_list:              ; @set_category_friend_list
	.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	w23, #-1
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x1
	sub	w8, w1, #32
	cmn	w8, #31
	b.lo	LBB0_9
; %bb.2:
	mov	x21, x3
	cmp	w3, #4, lsl #12                 ; =16384
	b.hi	LBB0_9
; %bb.3:
	mov	x22, x2
	mov	x19, x0
	cbz	w21, LBB0_7
; %bb.4:
	ldr	w8, [x22]
	cmp	w8, #0
	cset	w0, gt
	bl	_assert
	cmp	w21, #1
	b.eq	LBB0_8
; %bb.5:
	mov	w8, w21
	add	x23, x22, #4
	sub	x24, x8, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w8, w9, [x23, #-4]
	cmp	w8, w9
	cset	w0, lt
	bl	_assert
	add	x23, x23, #4
	subs	x24, x24, #1
	b.ne	LBB0_6
	b	LBB0_8
LBB0_7:
	mov	w0, #1
	bl	_assert
LBB0_8:
Lloh0:
	adrp	x8, _LiA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LiA@GOTPAGEOFF]
Lloh2:
	str	x22, [x8]
	add	x8, x22, w21, sxtw #2
Lloh3:
	adrp	x9, _LiB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LiB@GOTPAGEOFF]
Lloh5:
	str	x8, [x9]
	ldr	w0, [x19, #4]
	mov	w23, #1
	lsl	w20, w23, w20
	mov	x1, x20
	bl	_tree_set_catlist
	ldr	w8, [x19]
	orr	w8, w8, w20
	str	w8, [x19]
LBB0_9:
	mov	x0, x23
	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 AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LiA,8,3                        ; @LiA
	.comm	_LiB,8,3                        ; @LiB
	.no_dead_strip	_set_category_friend_list
.subsections_via_symbols
