	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _getgroups
__getgroups:                            ## @_getgroups
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_setgrent
	xorl	%eax, %eax
	callq	_getgrent
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r12
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_getgrent
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_13
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
	movq	8(%r12), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=2
	movslq	%r14d, %rcx
	incl	%r14d
	movl	%eax, (%rbx,%rcx,4)
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	8(%r12), %rax
	movq	8(%rax,%r13,8), %rdi
	incq	%r13
	testq	%rdi, %rdi
	je	LBB0_2
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
	movq	%r15, %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	_NGRPS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	(%r12), %eax
	testl	%r14d, %r14d
	jle	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	%r14d, %ecx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpl	%eax, (%rbx,%rdx,4)
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=3
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_10
	jmp	LBB0_11
LBB0_13:
	xorl	%eax, %eax
	callq	_endgrent
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NGRPS,4,2                      ## @NGRPS
	.comm	_stderr,4,2                     ## @stderr
	.no_dead_strip	__getgroups
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _getgroups
__getgroups:                            ; @_getgroups
	.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, x1
	mov	x21, x0
	bl	_setgrent
	bl	_getgrent
	cbz	x0, LBB0_13
; %bb.1:
	mov	x22, x0
	mov	w20, #0
Lloh0:
	adrp	x23, _NGRPS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NGRPS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_getgrent
	mov	x22, x0
	cbz	x0, LBB0_14
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
	ldr	x8, [x22, #8]
	ldr	x0, [x8]
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, #0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	str	w8, [x19, w20, sxtw #2]
	add	w20, w20, #1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x24, x24, #1
	ldr	x8, [x22, #8]
	ldr	x0, [x8, x24, lsl #3]
	cbz	x0, LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
	mov	x1, x21
	bl	_strcmp
	cbnz	w0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x23]
	cmp	w20, w8
	b.eq	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x22]
	cmp	w20, #1
	b.lt	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	mov	w9, w20
	mov	x10, x19
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w11, [x10]
	cmp	w11, w8
	b.eq	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=3
	add	x10, x10, #4
	subs	x9, x9, #1
	b.ne	LBB0_11
	b	LBB0_5
LBB0_13:
	mov	w20, #0
LBB0_14:
	bl	_endgrent
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NGRPS,4,2                      ; @NGRPS
	.comm	_stderr,4,2                     ; @stderr
	.no_dead_strip	__getgroups
.subsections_via_symbols
