	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_getgroups                  ## -- Begin function sys_getgroups
	.p2align	4, 0x90
_sys_getgroups:                         ## @sys_getgroups
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	(%rcx), %eax
	testl	%edi, %edi
	je	LBB0_6
## %bb.1:
	movl	%edi, %edx
	cmpl	%edi, %eax
	jle	LBB0_3
## %bb.2:
	movq	__EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movl	4(%rcx), %eax
	shll	$2, %edx
	movl	%esi, %edi
	movl	%eax, %esi
	callq	_user_write
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.4:
	movq	__EFAULT@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	__EINVAL,4,2                    ## @_EINVAL
	.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_getgroups                  ; -- Begin function sys_getgroups
	.p2align	2
_sys_getgroups:                         ; @sys_getgroups
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x0
Lloh0:
	adrp	x9, _current@GOTPAGE
Lloh1:
	ldr	x9, [x9, _current@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w0, [x9]
	cbz	w8, LBB0_4
; %bb.1:
	cmp	w0, w8
	b.le	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, __EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, __EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w9, [x9, #4]
	lsl	w2, w8, #2
	mov	x0, x1
	mov	x1, x9
	bl	_user_write
Lloh6:
	adrp	x8, __EFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, __EFAULT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, wzr, w8, eq
LBB0_4:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	__EINVAL,4,2                    ; @_EINVAL
	.comm	__EFAULT,4,2                    ; @_EFAULT
.subsections_via_symbols
