	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ga_init                        ## -- Begin function ga_init
	.p2align	4, 0x90
_ga_init:                               ## @ga_init
	.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
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_ngroups@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_ga_free
LBB0_2:
	movq	_NGROUPS_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, (%r14)
	movl	$4, %esi
	callq	_xcalloc
	movq	%rax, %r15
	movl	(%r14), %edi
	movl	$4, %esi
	callq	_xcalloc
	movq	_groups_byname@GOTPCREL(%rip), %r13
	movq	%rax, (%r13)
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_getgrouplist
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	cmpl	$0, (%r14)
	jle	LBB0_5
LBB0_6:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rbx,4), %edi
	callq	_getgrgid
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rax), %edi
	callq	_xstrdup
	movq	(%r13), %rcx
	movslq	%r12d, %rdx
	incl	%r12d
	movl	%eax, (%rcx,%rdx,4)
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_logit
	cmpl	$0, (%r14)
	jg	LBB0_6
LBB0_5:
	xorl	%r12d, %r12d
LBB0_10:
	movq	%r15, %rdi
	callq	_free
	movl	%r12d, (%r14)
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ngroups,4,2                    ## @ngroups
	.comm	_NGROUPS_MAX,4,2                ## @NGROUPS_MAX
	.comm	_groups_byname,8,3              ## @groups_byname
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getgrouplist: groups list too small"

	.comm	__SC_NGROUPS_MAX,4,2            ## @_SC_NGROUPS_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ga_init                        ; -- Begin function ga_init
	.p2align	2
_ga_init:                               ; @ga_init
	.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	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x19, _ngroups@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ngroups@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.1:
	bl	_ga_free
LBB0_2:
Lloh2:
	adrp	x8, _NGROUPS_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NGROUPS_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	str	w0, [x19]
	mov	w1, #4
	bl	_xcalloc
	mov	x20, x0
	ldr	w0, [x19]
	mov	w1, #4
	bl	_xcalloc
Lloh5:
	adrp	x23, _groups_byname@GOTPAGE
Lloh6:
	ldr	x23, [x23, _groups_byname@GOTPAGEOFF]
	str	x0, [x23]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_getgrouplist
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_logit
LBB0_4:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.5:
	mov	x22, #0
	mov	w21, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.ge	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, x22, lsl #2]
	bl	_getgrgid
	cbz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x0]
	bl	_xstrdup
	ldr	x8, [x23]
	str	w0, [x8, w21, sxtw #2]
	add	w21, w21, #1
	b	LBB0_6
LBB0_9:
	mov	w21, #0
LBB0_10:
	mov	x0, x20
	bl	_free
	str	w21, [x19]
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ngroups,4,2                    ; @ngroups
	.comm	_NGROUPS_MAX,4,2                ; @NGROUPS_MAX
	.comm	_groups_byname,8,3              ; @groups_byname
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getgrouplist: groups list too small"

	.comm	__SC_NGROUPS_MAX,4,2            ; @_SC_NGROUPS_MAX
.subsections_via_symbols
