	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_setgroups                  ## -- Begin function sys_setgroups
	.p2align	4, 0x90
_sys_setgroups:                         ## @sys_setgroups
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_MAX_GROUPS@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jge	LBB0_2
## %bb.1:
	movq	__EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_2:
	movl	%edi, %ebx
	movq	_current@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	4(%rax), %eax
	leal	(,%rbx,4), %edx
	movl	%esi, %edi
	movl	%eax, %esi
	callq	_user_read
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	__EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_4:
	movq	(%r14), %rax
	movl	%ebx, (%rax)
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_GROUPS,4,2                 ## @MAX_GROUPS
	.comm	__EINVAL,4,2                    ## @_EINVAL
	.comm	_current,8,3                    ## @current
	.comm	__EFAULT,4,2                    ## @_EFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_setgroups                  ; -- Begin function sys_setgroups
	.p2align	2
_sys_setgroups:                         ; @sys_setgroups
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _MAX_GROUPS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_GROUPS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, __EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, __EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_2:
	mov	x19, x0
Lloh6:
	adrp	x20, _current@GOTPAGE
Lloh7:
	ldr	x20, [x20, _current@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w8, [x8, #4]
	lsl	w2, w0, #2
	mov	x0, x1
	mov	x1, x8
	bl	_user_read
	cbz	x0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, __EFAULT@GOTPAGE
Lloh9:
	ldr	x8, [x8, __EFAULT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
	ldr	x8, [x20]
	str	w19, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_GROUPS,4,2                 ; @MAX_GROUPS
	.comm	__EINVAL,4,2                    ; @_EINVAL
	.comm	_current,8,3                    ; @current
	.comm	__EFAULT,4,2                    ; @_EFAULT
.subsections_via_symbols
