	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getgrouplist                   ## -- Begin function getgrouplist
	.p2align	4, 0x90
_getgrouplist:                          ## @getgrouplist
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_10
## %bb.5:
	movl	(%r12), %eax
	movl	$1, %ecx
	testl	%eax, %eax
	jle	LBB0_8
## %bb.6:
	movq	%r15, (%r14)
	cmpl	$1, %eax
	je	LBB0_8
## %bb.7:
	movq	$0, 8(%r14)
	movl	$2, %ecx
LBB0_8:
	cmpl	%ecx, %eax
	setl	%al
	jmp	LBB0_9
LBB0_1:
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_3
## %bb.2:
	movq	%r15, (%r14)
LBB0_3:
	testl	%eax, %eax
	setle	%al
	movl	$1, %ecx
LBB0_9:
	movzbl	%al, %eax
	negl	%eax
	movl	%ecx, (%r12)
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"root"

L_.str.1:                               ## @.str.1
	.asciz	"test"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getgrouplist                   ; -- Begin function getgrouplist
	.p2align	2
_getgrouplist:                          ; @getgrouplist
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_6
; %bb.2:
	mov	w0, #-1
	b	LBB0_12
LBB0_3:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.4:
	str	x21, [x20]
LBB0_5:
	cmp	w8, #1
	cset	w9, lt
	mov	w8, #1
	b	LBB0_11
LBB0_6:
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.7:
	str	x21, [x20]
	cmp	w9, #1
	b.ne	LBB0_9
LBB0_8:
	mov	w8, #1
	b	LBB0_10
LBB0_9:
	str	xzr, [x20, #8]
	mov	w8, #2
LBB0_10:
	cmp	w9, w8
	cset	w9, lt
LBB0_11:
	sbfx	w0, w9, #0, #1
	str	w8, [x19]
LBB0_12:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"root"

l_.str.1:                               ; @.str.1
	.asciz	"test"

.subsections_via_symbols
