	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_groups
_get_groups:                            ## @get_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	%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
	xorl	%eax, %eax
	callq	_setgrent
	movq	_ngrps@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movq	_grps@GOTPCREL(%rip), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ebx, %ebx
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rax
	shlq	$5, %rcx
	movq	(%rax,%rcx), %rax
	movb	$0, (%rax,%rbx)
	movl	(%r14), %eax
	incl	%eax
	movl	%eax, (%r14)
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	movq	_grpsz@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, %eax
	movl	%eax, %esi
	movl	$128, %ecx
	cmovel	%ecx, %esi
	addl	%eax, %esi
	movq	_grpsz@GOTPCREL(%rip), %rax
	movl	%esi, (%rax)
	movq	(%r15), %rdi
	shll	$5, %esi
	callq	_xrealloc
	movq	%rax, (%r15)
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_getgrent
	testq	%rax, %rax
	je	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r13
	movq	(%rax), %rdi
	callq	_xstrdup
	movq	(%r15), %rcx
	movslq	(%r14), %rdx
	shlq	$5, %rdx
	movq	%rax, 24(%rcx,%rdx)
	movq	8(%r13), %rdi
	callq	_xstrdup
	movq	(%r15), %rcx
	movslq	(%r14), %rdx
	shlq	$5, %rdx
	movq	%rax, 16(%rcx,%rdx)
	movl	24(%r13), %eax
	movq	(%r15), %rcx
	movl	%eax, 8(%rcx,%rdx)
	leaq	L_.str(%rip), %rdi
	callq	_xstrdup
	movq	(%r15), %rcx
	movslq	(%r14), %rdx
	shlq	$5, %rdx
	movq	%rax, (%rcx,%rdx)
	movq	16(%r13), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	$8, %rbx
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	callq	_strlen
	addq	%rax, %r12
	incq	%r12
	movq	(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jne	LBB0_7
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %r12d
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_xmalloc
	movq	(%r15), %rdx
	movslq	(%r14), %rcx
	movq	%rcx, %rsi
	shlq	$5, %rsi
	movq	%rax, (%rdx,%rsi)
	movq	16(%r13), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rsi), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_sprintf
	movq	%rax, %rbx
	movq	16(%r13), %rax
	movq	8(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	$16, %r12d
	movq	_ngrps@GOTPCREL(%rip), %r14
	movq	_grps@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	(%r14), %rax
	movq	(%r15), %rcx
	shlq	$5, %rax
	movq	(%rcx,%rax), %rdi
	addq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_sprintf
	addq	%rax, %rbx
	movq	16(%r13), %rax
	movq	(%rax,%r12), %rdx
	addq	$8, %r12
	testq	%rdx, %rdx
	jne	LBB0_13
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_ngrps@GOTPCREL(%rip), %r14
	movq	_grps@GOTPCREL(%rip), %r15
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%r14), %rcx
	jmp	LBB0_15
LBB0_16:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_endgrent                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ngrps,4,2                      ## @ngrps
	.comm	_grpsz,4,2                      ## @grpsz
	.comm	_grps,8,3                       ## @grps
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

L_.str.1:                               ## @.str.1
	.asciz	",%s"

L_.str.2:                               ## @.str.2
	.asciz	"%s"

	.no_dead_strip	_get_groups
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_groups
_get_groups:                            ; @get_groups
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	bl	_setgrent
Lloh0:
	adrp	x24, _ngrps@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ngrps@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh2:
	adrp	x25, _grpsz@GOTPAGE
Lloh3:
	ldr	x25, [x25, _grpsz@GOTPAGEOFF]
	mov	w26, #128
Lloh4:
	adrp	x27, _grps@GOTPAGE
Lloh5:
	ldr	x27, [x27, _grps@GOTPAGEOFF]
Lloh6:
	adrp	x19, l_.str@PAGE
Lloh7:
	add	x19, x19, l_.str@PAGEOFF
Lloh8:
	adrp	x20, l_.str.2@PAGE
Lloh9:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh10:
	adrp	x21, l_.str.1@PAGE
Lloh11:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, #0
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x27]
	lsl	x8, x8, #5
	ldr	x8, [x9, x8]
	strb	wzr, [x8, x23]
	ldr	w8, [x24]
	add	w8, w8, #1
	str	w8, [x24]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	ldr	w9, [x25]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #0
	csel	w9, w26, w8, eq
	add	w8, w9, w8
	str	w8, [x25]
	ldr	x0, [x27]
	lsl	w1, w8, #5
	bl	_xrealloc
	str	x0, [x27]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_getgrent
	cbz	x0, LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	ldr	x0, [x0]
	bl	_xstrdup
	ldr	x8, [x27]
	ldrsw	x9, [x24]
	add	x8, x8, x9, lsl #5
	str	x0, [x8, #24]
	ldr	x0, [x22, #8]
	bl	_xstrdup
	ldr	x8, [x27]
	ldrsw	x9, [x24]
	lsl	x9, x9, #5
	add	x8, x8, x9
	str	x0, [x8, #16]
	ldr	w8, [x22, #24]
	ldr	x10, [x27]
	add	x9, x10, x9
	str	w8, [x9, #8]
	mov	x0, x19
	bl	_xstrdup
	ldr	x8, [x27]
	ldrsw	x9, [x24]
	lsl	x9, x9, #5
	str	x0, [x8, x9]
	ldr	x8, [x22, #16]
	ldr	x0, [x8]
	cbz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x28, x8, #8
	mov	w23, #1
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_strlen
	add	x8, x23, x0
	add	x23, x8, #1
	ldr	x0, [x28], #8
	cbnz	x0, LBB0_8
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w23, #1
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_xmalloc
	ldr	x10, [x27]
	ldrsw	x8, [x24]
	lsl	x9, x8, #5
	str	x0, [x10, x9]
	ldr	x10, [x22, #16]
	ldr	x2, [x10]
	cbz	x2, LBB0_1
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x27]
	ldr	x0, [x8, x9]
	mov	x1, x20
	bl	_sprintf
	mov	x23, x0
	ldr	x8, [x22, #16]
	ldr	x2, [x8, #8]
	cbz	x2, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w28, #16
LBB0_13:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsw	x8, [x24]
	ldr	x9, [x27]
	lsl	x8, x8, #5
	ldr	x8, [x9, x8]
	add	x0, x8, x23
	mov	x1, x21
	bl	_sprintf
	add	x23, x0, x23
	ldr	x8, [x22, #16]
	ldr	x2, [x8, x28]
	add	x28, x28, #8
	cbnz	x2, LBB0_13
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x8, [x24]
	b	LBB0_2
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_endgrent
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ngrps,4,2                      ; @ngrps
	.comm	_grpsz,4,2                      ; @grpsz
	.comm	_grps,8,3                       ; @grps
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	",%s"

l_.str.2:                               ; @.str.2
	.asciz	"%s"

	.no_dead_strip	_get_groups
.subsections_via_symbols
