	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_preprocess_aux_userlist        ## -- Begin function preprocess_aux_userlist
	.p2align	4, 0x90
_preprocess_aux_userlist:               ## @preprocess_aux_userlist
	.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
	movq	_aux_userlist_size@GOTPCREL(%rip), %r14
	movslq	(%r14), %rdx
	movq	_aux_userlist_tag@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	_aux_userlist@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	(%rax), %r8d
	movl	4(%rax), %r9d
	movl	8(%rax), %eax
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_vkprintf
	movl	(%r14), %eax
	xorl	%r13d, %r13d
	testl	%eax, %eax
	je	LBB0_23
## %bb.1:
	cmpl	$0, (%r15)
	je	LBB0_23
## %bb.2:
	movq	_MAX_AUX_USERS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setbe	%dil
	callq	_assert
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	jle	LBB0_23
## %bb.3:
	movq	(%r12), %rsi
	movq	_User@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	xorl	%edi, %edi
	movq	_log_split_mod@GOTPCREL(%rip), %r9
	movq	_log_split_min@GOTPCREL(%rip), %r10
	movq	_max_uid@GOTPCREL(%rip), %r11
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdi
	movslq	%ecx, %rax
	cmpq	%rax, %rdi
	jge	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rdi,4), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cltd
	idivl	(%r9)
	cmpl	(%r10), %edx
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	(%r11), %eax
	jg	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	%eax, %rdx
	cmpl	$0, (%r8,%rdx,4)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, (%rsi,%rbx,4)
	incq	%rbx
	movl	(%r14), %ecx
	jmp	LBB0_9
LBB0_10:
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.12:
	cmpq	$2, %rbx
	jl	LBB0_17
## %bb.13:
	movq	(%r12), %rax
	movl	(%rax), %ecx
	movl	$1, %edx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %esi
	movl	(%rax,%rdx,4), %ecx
	cmpl	%esi, %ecx
	jg	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_15 Depth=1
	incq	%rdx
	cmpq	%rdx, %rbx
	jne	LBB0_15
	jmp	LBB0_17
LBB0_11:
	xorl	%r13d, %r13d
	jmp	LBB0_23
LBB0_16:
	leaq	-1(%rbx), %rsi
	xorl	%edi, %edi
	callq	_aux_sort
LBB0_17:
	movl	%ebx, (%r14)
	movq	(%r12), %rax
	movl	$1, %r13d
	cmpl	$2, %ebx
	jl	LBB0_22
## %bb.18:
	movl	$1, %ecx
	movl	$1, %r13d
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	incq	%rcx
	movslq	%ebx, %rdx
	cmpq	%rdx, %rcx
	jge	LBB0_22
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rcx,4), %edx
	cmpl	-4(%rax,%rcx,4), %edx
	jle	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	%edx, (%rax,%r13,4)
	incq	%r13
	movl	(%r14), %ebx
	jmp	LBB0_21
LBB0_22:
	movl	(%r15), %ecx
	movl	(%rax), %r8d
	movl	4(%rax), %r9d
	movl	8(%rax), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	movq	%r13, %rdx
	callq	_vkprintf
LBB0_23:
	movl	%r13d, (%r14)
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"preprocess_aux_userlist: size=%d tag=%d A=%d %d %d...\n"

	.comm	_aux_userlist_size,4,2          ## @aux_userlist_size
	.comm	_aux_userlist_tag,4,2           ## @aux_userlist_tag
	.comm	_aux_userlist,8,3               ## @aux_userlist
	.comm	_MAX_AUX_USERS,4,2              ## @MAX_AUX_USERS
	.comm	_log_split_mod,4,2              ## @log_split_mod
	.comm	_log_split_min,4,2              ## @log_split_min
	.comm	_max_uid,4,2                    ## @max_uid
	.comm	_User,8,3                       ## @User
L_.str.1:                               ## @.str.1
	.asciz	"AFTER preprocess_aux_userlist: size=%ld tag=%d A=%d %d %d...\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_preprocess_aux_userlist        ; -- Begin function preprocess_aux_userlist
	.p2align	2
_preprocess_aux_userlist:               ; @preprocess_aux_userlist
	.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
Lloh0:
	adrp	x20, _aux_userlist_size@GOTPAGE
Lloh1:
	ldr	x20, [x20, _aux_userlist_size@GOTPAGEOFF]
	ldrsw	x2, [x20]
Lloh2:
	adrp	x21, _aux_userlist_tag@GOTPAGE
Lloh3:
	ldr	x21, [x21, _aux_userlist_tag@GOTPAGEOFF]
	ldr	w3, [x21]
Lloh4:
	adrp	x19, _aux_userlist@GOTPAGE
Lloh5:
	ldr	x19, [x19, _aux_userlist@GOTPAGEOFF]
	ldr	x8, [x19]
	ldp	w4, w5, [x8]
	ldr	w6, [x8, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_vkprintf
	ldr	w8, [x20]
	ldr	w9, [x21]
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	b.eq	LBB0_13
; %bb.1:
Lloh8:
	adrp	x9, _MAX_AUX_USERS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MAX_AUX_USERS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, ls
	bl	_assert
	ldr	w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_13
; %bb.2:
	mov	x8, #0
	mov	x22, #0
	ldr	x10, [x19]
Lloh11:
	adrp	x11, _User@GOTPAGE
Lloh12:
	ldr	x11, [x11, _User@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
Lloh14:
	adrp	x12, _log_split_mod@GOTPAGE
Lloh15:
	ldr	x12, [x12, _log_split_mod@GOTPAGEOFF]
Lloh16:
	adrp	x13, _log_split_min@GOTPAGE
Lloh17:
	ldr	x13, [x13, _log_split_min@GOTPAGEOFF]
Lloh18:
	adrp	x14, _max_uid@GOTPAGE
Lloh19:
	ldr	x14, [x14, _max_uid@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #1
	cmp	x8, w9, sxtw
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w16, [x10, x8, lsl #2]
	cmp	w16, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w17, [x12]
	sdiv	w15, w16, w17
	msub	w16, w15, w17, w16
	ldr	w17, [x13]
	ldr	w0, [x14]
	cmp	w16, w17
	ccmp	w15, w0, #0, eq
	b.gt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w16, [x11, w15, sxtw #2]
	cbz	w16, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w15, [x10, x22, lsl #2]
	add	x22, x22, #1
	ldr	w9, [x20]
	b	LBB0_3
LBB0_8:
	cbz	x22, LBB0_13
; %bb.9:
	cmp	x22, #2
	b.lt	LBB0_16
; %bb.10:
	ldr	x8, [x19]
	ldr	w10, [x8], #4
	sub	x1, x22, #1
	mov	x9, x1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8]
	cmp	w11, w10
	b.gt	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x8, x8, #4
	mov	x10, x11
	subs	x9, x9, #1
	b.ne	LBB0_11
	b	LBB0_16
LBB0_13:
	mov	w19, #0
LBB0_14:
	str	w19, [x20]
	mov	x0, x19
	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
LBB0_15:
	mov	w0, #0
	bl	_aux_sort
LBB0_16:
	str	w22, [x20]
	ldr	x8, [x19]
	cmp	w22, #2
	b.lt	LBB0_21
; %bb.17:
	mov	x9, #0
	mov	w19, #1
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x10, x9, #2
	add	x9, x9, #1
	cmp	x10, w22, sxtw
	b.ge	LBB0_22
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	add	x11, x8, x9, lsl #2
	ldp	w11, w10, [x11]
	cmp	w10, w11
	b.le	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	str	w10, [x8, x19, lsl #2]
	add	x19, x19, #1
	ldr	w22, [x20]
	b	LBB0_18
LBB0_21:
	mov	w19, #1
LBB0_22:
	ldr	w3, [x21]
	ldp	w4, w5, [x8]
	ldr	w6, [x8, #8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	mov	x2, x19
	bl	_vkprintf
	b	LBB0_14
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"preprocess_aux_userlist: size=%d tag=%d A=%d %d %d...\n"

	.comm	_aux_userlist_size,4,2          ; @aux_userlist_size
	.comm	_aux_userlist_tag,4,2           ; @aux_userlist_tag
	.comm	_aux_userlist,8,3               ; @aux_userlist
	.comm	_MAX_AUX_USERS,4,2              ; @MAX_AUX_USERS
	.comm	_log_split_mod,4,2              ; @log_split_mod
	.comm	_log_split_min,4,2              ; @log_split_min
	.comm	_max_uid,4,2                    ; @max_uid
	.comm	_User,8,3                       ; @User
l_.str.1:                               ; @.str.1
	.asciz	"AFTER preprocess_aux_userlist: size=%ld tag=%d A=%d %d %d...\n"

.subsections_via_symbols
