	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ingroup
_ingroup:                               ## @ingroup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpq	$0, _ingroup.gptr(%rip)
	je	LBB0_7
LBB0_1:
	movl	_ingroup.ngroups(%rip), %eax
LBB0_2:
	testl	%eax, %eax
	jle	LBB0_15
## %bb.3:
	movq	_ingroup.gptr(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_ingroup.groups(%rip), %rdx
	movl	%eax, %eax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%rdx,%rsi,8), %rcx
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_4
	jmp	LBB0_15
LBB0_7:
	movq	%rdi, %rbx
	callq	_getgrnam
	movq	%rax, _ingroup.gptr(%rip)
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	movq	__SC_NGROUPS_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sysconf
	movq	%rax, _ingroup.ngroups_max(%rip)
	leal	(,%rax,8), %edi
	callq	_malloc
	movq	%rax, _ingroup.groups(%rip)
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
	movq	_ingroup.groups(%rip), %rax
LBB0_10:
	movq	_ingroup.ngroups_max(%rip), %rdi
	movq	%rax, %rsi
	callq	_getgroups
	movl	%eax, _ingroup.ngroups(%rip)
	testl	%eax, %eax
	jns	LBB0_2
## %bb.11:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
	jmp	LBB0_1
LBB0_13:
	movl	$1, %eax
	jmp	LBB0_16
LBB0_14:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_warnx
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_ingroup.gptr,8,3 ## @ingroup.gptr
.zerofill __DATA,__bss,_ingroup.ngroups,4,2 ## @ingroup.ngroups
.zerofill __DATA,__bss,_ingroup.ngroups_max,8,3 ## @ingroup.ngroups_max
.zerofill __DATA,__bss,_ingroup.groups,8,3 ## @ingroup.groups
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"warning: unknown group '%s'"

	.comm	__SC_NGROUPS_MAX,4,2            ## @_SC_NGROUPS_MAX
L_.str.1:                               ## @.str.1
	.asciz	"malloc"

L_.str.2:                               ## @.str.2
	.asciz	"getgroups"

	.no_dead_strip	_ingroup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ingroup
_ingroup:                               ; @ingroup
	.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
	adrp	x20, _ingroup.gptr@PAGE
	ldr	x8, [x20, _ingroup.gptr@PAGEOFF]
	cbz	x8, LBB0_6
LBB0_1:
Lloh0:
	adrp	x8, _ingroup.ngroups@PAGE
Lloh1:
	ldr	w0, [x8, _ingroup.ngroups@PAGEOFF]
LBB0_2:
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.3:
	ldr	x8, [x20, _ingroup.gptr@PAGEOFF]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _ingroup.groups@PAGE
Lloh3:
	ldr	x9, [x9, _ingroup.groups@PAGEOFF]
	mov	w10, w0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	cmp	x8, x11
	b.eq	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #8
	subs	x10, x10, #1
	b.ne	LBB0_4
	b	LBB0_13
LBB0_6:
	mov	x19, x0
	bl	_getgrnam
	str	x0, [x20, _ingroup.gptr@PAGEOFF]
	cbz	x0, LBB0_12
; %bb.7:
Lloh4:
	adrp	x8, __SC_NGROUPS_MAX@GOTPAGE
Lloh5:
	ldr	x8, [x8, __SC_NGROUPS_MAX@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_sysconf
	adrp	x19, _ingroup.ngroups_max@PAGE
	str	x0, [x19, _ingroup.ngroups_max@PAGEOFF]
	lsl	w0, w0, #3
	bl	_malloc
	mov	x1, x0
	adrp	x21, _ingroup.groups@PAGE
	str	x0, [x21, _ingroup.groups@PAGEOFF]
	cbnz	x0, LBB0_9
; %bb.8:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
	ldr	x1, [x21, _ingroup.groups@PAGEOFF]
LBB0_9:
	ldr	x0, [x19, _ingroup.ngroups_max@PAGEOFF]
	bl	_getgroups
	adrp	x8, _ingroup.ngroups@PAGE
	str	w0, [x8, _ingroup.ngroups@PAGEOFF]
	tbz	w0, #31, LBB0_2
; %bb.10:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
	b	LBB0_1
LBB0_11:
	mov	w0, #1
	b	LBB0_14
LBB0_12:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_warnx
LBB0_13:
	mov	w0, #0
LBB0_14:
	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 AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_ingroup.gptr,8,3 ; @ingroup.gptr
.zerofill __DATA,__bss,_ingroup.ngroups,4,2 ; @ingroup.ngroups
.zerofill __DATA,__bss,_ingroup.ngroups_max,8,3 ; @ingroup.ngroups_max
.zerofill __DATA,__bss,_ingroup.groups,8,3 ; @ingroup.groups
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"warning: unknown group '%s'"

	.comm	__SC_NGROUPS_MAX,4,2            ; @_SC_NGROUPS_MAX
l_.str.1:                               ; @.str.1
	.asciz	"malloc"

l_.str.2:                               ; @.str.2
	.asciz	"getgroups"

	.no_dead_strip	_ingroup
.subsections_via_symbols
