	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_set_user_groups             ## -- Begin function do_set_user_groups
	.p2align	4, 0x90
_do_set_user_groups:                    ## @do_set_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movl	%edi, %r15d
	callq	_get_user
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_MAX_USER_LEV_GROUPS@GOTPCREL(%rip), %rcx
	movl	$-1, %eax
	cmpl	%r14d, (%rcx)
	jb	LBB0_8
## %bb.3:
	cmpl	$2, %r14d
	jl	LBB0_7
## %bb.4:
	movl	%r14d, %ecx
	movl	(%rbx), %edx
	movl	$1, %esi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, %edi
	movl	(%rbx,%rsi,4), %edx
	cmpl	%edi, %edx
	jle	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_6
LBB0_7:
	movl	%r15d, %edi
	callq	_do_delete_groups
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.9:
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_do_add_user_groups             ## TAILCALL
LBB0_1:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_USER_LEV_GROUPS,4,2        ## @MAX_USER_LEV_GROUPS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_set_user_groups             ; -- Begin function do_set_user_groups
	.p2align	2
_do_set_user_groups:                    ; @do_set_user_groups
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_get_user
	cbz	x0, LBB0_3
; %bb.1:
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_4
LBB0_2:
	mov	w0, #-1
LBB0_3:
	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_4:
	cmp	w19, #2
	b.lt	LBB0_8
; %bb.5:
	mov	w9, w19
	mov	x8, x20
	ldr	w10, [x8], #4
	sub	x9, x9, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8]
	cmp	w11, w10
	b.le	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, #4
	mov	x10, x11
	subs	x9, x9, #1
	b.ne	LBB0_6
LBB0_8:
	mov	x0, x21
	bl	_do_delete_groups
	cbz	w19, LBB0_3
; %bb.9:
	mov	x0, x21
	mov	x1, x20
	mov	x2, 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
	b	_do_add_user_groups
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_USER_LEV_GROUPS,4,2        ; @MAX_USER_LEV_GROUPS
.subsections_via_symbols
