	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function group
_group:                                 ## @group
	.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, %r14d
	movq	%rdi, %r12
	movq	__SC_NGROUPS_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sysconf
	movl	%eax, %ebx
	leal	4(,%rbx,4), %edi
	callq	_malloc
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	incl	%ebx
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	movl	%ebx, -44(%rbp)
	movl	(%r12), %esi
	movl	4(%r12), %edi
	leaq	-44(%rbp), %rcx
	movq	%r15, %rdx
	callq	_getgrouplist
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jg	LBB0_6
	jmp	LBB0_16
LBB0_4:
	movslq	%ebx, %rdi
	movq	%r15, %rsi
	callq	_getgroups
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	jle	LBB0_16
LBB0_6:
	testl	%r14d, %r14d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r12
	cmoveq	%rax, %r12
	movl	$-1, %eax
	xorl	%r13d, %r13d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %ebx
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r13
	movslq	-44(%rbp), %rcx
	movl	%ebx, %eax
	cmpq	%rcx, %r13
	jge	LBB0_16
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%r13,4), %ebx
	cmpl	%ebx, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %edi
	callq	_getgrgid
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rax), %esi
	movq	%r12, %rdi
	jmp	LBB0_12
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.3(%rip), %r12
	jmp	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpb	$32, (%r12)
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rax
	cmoveq	%rax, %rdi
	movl	%ebx, %esi
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.4(%rip), %r12
	jmp	LBB0_15
LBB0_16:
	movl	$10, %edi
	callq	_putchar
	movq	%r15, %rdi
	callq	_free
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__SC_NGROUPS_MAX,4,2            ## @_SC_NGROUPS_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc"

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

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

L_.str.3:                               ## @.str.3
	.asciz	" %u"

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

	.no_dead_strip	_group
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function group
_group:                                 ; @group
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, __SC_NGROUPS_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, __SC_NGROUPS_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_sysconf
	add	w22, w0, #1
	lsl	w0, w22, #2
	bl	_malloc
	mov	x20, x0
	cbz	x0, LBB0_3
; %bb.1:
	cbz	x21, LBB0_4
LBB0_2:
	str	w22, [sp, #12]
	ldp	w1, w0, [x21]
	add	x3, sp, #12
	mov	x2, x20
	bl	_getgrouplist
	ldr	w0, [sp, #12]
	cmp	w0, #1
	b.ge	LBB0_5
	b	LBB0_15
LBB0_3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
	cbnz	x21, LBB0_2
LBB0_4:
	sxtw	x0, w22
	mov	x1, x20
	bl	_getgroups
	str	w0, [sp, #12]
	cmp	w0, #1
	b.lt	LBB0_15
LBB0_5:
	mov	x23, #0
Lloh5:
	adrp	x8, l_.str.1@PAGE
Lloh6:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh7:
	adrp	x24, l_.str.2@PAGE
Lloh8:
	add	x24, x24, l_.str.2@PAGEOFF
	cmp	w19, #0
	csel	x22, x24, x8, eq
	mov	w8, #-1
Lloh9:
	adrp	x25, l_.str.3@PAGE
Lloh10:
	add	x25, x25, l_.str.3@PAGEOFF
Lloh11:
	adrp	x26, l_.str.4@PAGE
Lloh12:
	add	x26, x26, l_.str.4@PAGEOFF
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x21, x8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	ldrsw	x9, [sp, #12]
	mov	x8, x21
	cmp	x23, x9
	b.ge	LBB0_15
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x20, x23, lsl #2]
	cmp	w8, w21
	b.eq	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	w19, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_getgrgid
	cbz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x0]
	str	x8, [sp]
	mov	x0, x22
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x8, x21
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	mov	x22, x25
	b	LBB0_7
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	ldrb	w8, [x22]
	cmp	w8, #32
	csel	x0, x25, x24, eq
	str	x21, [sp]
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_printf
	mov	x22, x26
	b	LBB0_7
LBB0_15:
	mov	w0, #10
	bl	_putchar
	mov	x0, x20
	bl	_free
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	__SC_NGROUPS_MAX,4,2            ; @_SC_NGROUPS_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc"

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

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

l_.str.3:                               ; @.str.3
	.asciz	" %u"

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

	.no_dead_strip	_group
.subsections_via_symbols
