	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_add_user_groups             ## -- Begin function do_add_user_groups
	.p2align	4, 0x90
_do_add_user_groups:                    ## @do_add_user_groups
	.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	%edx, %ebx
	movq	%rsi, %r14
	movl	%edi, %r12d
	callq	_get_user
	movq	%rax, %r15
	xorl	%eax, %eax
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.1:
	testq	%r15, %r15
	je	LBB0_7
## %bb.2:
	movq	_MAX_USER_LEV_GROUPS@GOTPCREL(%rip), %rcx
	movl	$-1, %eax
	cmpl	%ebx, (%rcx)
	jae	LBB0_3
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpl	$2, %ebx
	jl	LBB0_9
## %bb.4:
	movl	%ebx, %ecx
	movl	(%r14), %edx
	movl	$1, %esi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, %edi
	movl	(%r14,%rsi,4), %edx
	cmpl	%edi, %edx
	jle	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_6
## %bb.8:
	cmpl	$255, %ebx
	jg	LBB0_10
LBB0_9:
	movq	_LEV_TARG_GROUP_ADD@GOTPCREL(%rip), %rax
	movslq	%ebx, %rdi
	addq	(%rax), %rdi
	leal	(,%rbx,4), %r13d
	leal	8(,%rbx,4), %esi
	movl	%r12d, %edx
	callq	_alloc_log_event
	movl	(%rax), %edi
LBB0_11:
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_add_groups                     ## TAILCALL
LBB0_10:
	movq	_LEV_TARG_GROUP_EXT_ADD@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leal	(,%rbx,4), %r13d
	leal	12(,%rbx,4), %esi
	movl	%r12d, %edx
	callq	_alloc_log_event
	movl	%ebx, (%rax)
	movl	4(%rax), %edi
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_USER_LEV_GROUPS,4,2        ## @MAX_USER_LEV_GROUPS
	.comm	_LEV_TARG_GROUP_ADD,8,3         ## @LEV_TARG_GROUP_ADD
	.comm	_LEV_TARG_GROUP_EXT_ADD,8,3     ## @LEV_TARG_GROUP_EXT_ADD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_add_user_groups             ; -- Begin function do_add_user_groups
	.p2align	2
_do_add_user_groups:                    ; @do_add_user_groups
	.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	x19, x2
	mov	x20, x1
	mov	x22, x0
	bl	_get_user
	mov	x21, x0
	mov	w0, #0
	cbz	w19, LBB0_4
; %bb.1:
	cbz	x21, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _MAX_USER_LEV_GROUPS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_USER_LEV_GROUPS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.hs	LBB0_5
LBB0_3:
	mov	w0, #-1
LBB0_4:
	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_5:
	cmp	w19, #2
	b.lt	LBB0_10
; %bb.6:
	mov	w8, w19
	ldr	w10, [x20]
	lsl	x8, x8, #2
	mov	w9, #4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x20, x9]
	cmp	w11, w10
	b.le	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x9, #4
	mov	x10, x11
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.9:
	cmp	w19, #255
	b.gt	LBB0_12
LBB0_10:
Lloh3:
	adrp	x8, _LEV_TARG_GROUP_ADD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LEV_TARG_GROUP_ADD@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x0, x8, w19, sxtw
	lsl	w23, w19, #2
	add	w1, w23, #8
	mov	x2, x22
	bl	_alloc_log_event
	ldr	w0, [x0]
LBB0_11:
	mov	x1, x20
	mov	x2, x23
	bl	_memcpy
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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	_add_groups
LBB0_12:
Lloh6:
	adrp	x8, _LEV_TARG_GROUP_EXT_ADD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LEV_TARG_GROUP_EXT_ADD@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	lsl	w23, w19, #2
	add	w1, w23, #12
	mov	x2, x22
	bl	_alloc_log_event
	str	w19, [x0]
	ldr	w0, [x0, #4]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_USER_LEV_GROUPS,4,2        ; @MAX_USER_LEV_GROUPS
	.comm	_LEV_TARG_GROUP_ADD,8,3         ; @LEV_TARG_GROUP_ADD
	.comm	_LEV_TARG_GROUP_EXT_ADD,8,3     ; @LEV_TARG_GROUP_EXT_ADD
.subsections_via_symbols
