	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_set_category_friend_list    ## -- Begin function do_set_category_friend_list
	.p2align	4, 0x90
_do_set_category_friend_list:           ## @do_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
	movl	%ecx, %r14d
	movq	%rdx, %rbx
	movl	%esi, %r12d
	movl	%edi, %r15d
	callq	_get_user
	movq	%rax, %r13
	leal	-31(%r12), %eax
	cmpl	$-30, %eax
	jb	LBB0_23
## %bb.1:
	testq	%r13, %r13
	je	LBB0_23
## %bb.2:
	leal	-1(%r14), %esi
	movq	%rbx, %rdi
	callq	_il_sort
	testl	%r14d, %r14d
	jle	LBB0_3
## %bb.4:
	movl	%r14d, %ecx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rbx,%rax,4)
	jg	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_5
## %bb.7:
	movl	%ecx, %eax
	jmp	LBB0_8
LBB0_23:
	movl	$-1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%eax, %eax
LBB0_8:
	movl	%eax, %ecx
	leaq	(%rbx,%rcx,4), %rbx
	subl	%eax, %r14d
	testl	%r14d, %r14d
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_9
## %bb.10:
	movl	$1, %r13d
	cmpl	$1, %r14d
	je	LBB0_22
## %bb.11:
	movl	%r14d, %eax
	decq	%rax
	cmpl	$2, %r14d
	jne	LBB0_13
## %bb.12:
	movl	$1, %r13d
	movl	$1, %ecx
LBB0_19:
	testb	$1, %al
	je	LBB0_22
## %bb.20:
	movl	(%rbx,%rcx,4), %eax
	cmpl	-4(%rbx,%rcx,4), %eax
	jle	LBB0_22
## %bb.21:
	movslq	%r13d, %rcx
	incl	%r13d
	movl	%eax, (%rbx,%rcx,4)
	jmp	LBB0_22
LBB0_9:
	movl	%r14d, %r13d
LBB0_22:
	movq	_LEV_FR_CAT_SETLIST@GOTPCREL(%rip), %rax
	movslq	%r12d, %rdi
	addq	(%rax), %rdi
	leal	(,%r13,4), %r14d
	leal	12(,%r13,4), %esi
	movl	%r15d, %edx
	callq	_alloc_log_event
	movq	%rax, %r15
	movl	%r13d, (%rax)
	movl	4(%rax), %edi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movl	4(%r15), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%r13d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_category_friend_list       ## TAILCALL
LBB0_13:
	movq	%rax, %rdx
	andq	$-2, %rdx
	negq	%rdx
	movl	$1, %r13d
	movl	$1, %ecx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	leaq	(%rdx,%rcx), %rsi
	addq	$2, %rsi
	addq	$2, %rcx
	cmpq	$1, %rsi
	je	LBB0_19
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rcx,4), %esi
	cmpl	-4(%rbx,%rcx,4), %esi
	jle	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movslq	%r13d, %rdi
	incl	%r13d
	movl	%esi, (%rbx,%rdi,4)
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	4(%rbx,%rcx,4), %esi
	cmpl	(%rbx,%rcx,4), %esi
	jle	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movslq	%r13d, %rdi
	incl	%r13d
	movl	%esi, (%rbx,%rdi,4)
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_LEV_FR_CAT_SETLIST,8,3         ## @LEV_FR_CAT_SETLIST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_set_category_friend_list    ; -- Begin function do_set_category_friend_list
	.p2align	2
_do_set_category_friend_list:           ; @do_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	x22, x3
	mov	x24, x2
	mov	x19, x1
	mov	x21, x0
	bl	_get_user
	sub	w8, w19, #31
	cmn	w8, #30
	b.lo	LBB0_7
; %bb.1:
	mov	x20, x0
	cbz	x0, LBB0_7
; %bb.2:
	subs	w1, w22, #1
	mov	x0, x24
	bl	_il_sort
	cmp	w22, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x8, #0
	mov	w9, w22
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x24, x8, lsl #2]
	cmp	w10, #0
	b.gt	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.6:
	mov	x8, x9
	b	LBB0_9
LBB0_7:
	mov	w0, #-1
	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
LBB0_8:
	mov	w8, #0
LBB0_9:
	add	x23, x24, w8, uxtw #2
	sub	w22, w22, w8
	cmp	w22, #1
	b.lt	LBB0_12
; %bb.10:
	b.ne	LBB0_13
; %bb.11:
	mov	w22, #1
LBB0_12:
Lloh0:
	adrp	x8, _LEV_FR_CAT_SETLIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LEV_FR_CAT_SETLIST@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x0, x8, w19, sxtw
	lsl	w24, w22, #2
	add	w1, w24, #12
	mov	x2, x21
	bl	_alloc_log_event
	mov	x21, x0
	str	w22, [x0]
	ldr	w0, [x0, #4]
	mov	x1, x23
	mov	x2, x24
	bl	_memcpy
	ldr	w2, [x21, #4]
	mov	x0, x20
	mov	x1, x19
	mov	x3, x22
	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
	b	_set_category_friend_list
LBB0_13:
	mov	w8, w8
	add	x8, x24, x8, lsl #2
	add	x8, x8, #4
	sub	x9, x22, #1
	mov	w22, #1
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x8, x8, #4
	subs	x9, x9, #1
	b.eq	LBB0_12
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldp	w11, w10, [x8, #-4]
	cmp	w10, w11
	b.le	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	str	w10, [x23, w22, sxtw #2]
	add	w10, w22, #1
	mov	x22, x10
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LEV_FR_CAT_SETLIST,8,3         ; @LEV_FR_CAT_SETLIST
.subsections_via_symbols
