	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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, %r14
	movl	%edi, %ebx
	movq	_LC_CTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_setlocale
	leaq	L_.str.1(%rip), %r15
	movq	_grouplist@GOTPCREL(%rip), %r13
	movq	_optarg@GOTPCREL(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_geteuid
	testl	%eax, %eax
	je	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_getopt
	cmpl	$103, %eax
	je	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$110, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$24, %edi
	callq	_malloc
	movq	(%r13), %rcx
	movq	%rcx, 16(%rax)
	movq	(%r12), %rcx
	movq	%rcx, (%rax)
	movl	$-1, 8(%rax)
	movq	%rax, (%r13)
	jmp	LBB0_1
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_nobanner@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_1
LBB0_8:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	subl	%r15d, %ebx
	cmpl	$2, %ebx
	jl	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_usage
LBB0_10:
	movq	(%r13), %rbx
	testq	%rbx, %rbx
	jne	LBB0_11
LBB0_16:
	movq	(%r14,%r15,8), %rdi
	callq	_makemsg
	movq	_mbuf@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_mbufsize@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	xorl	%eax, %eax
	callq	_getutxent
	testq	%rax, %rax
	jne	LBB0_17
LBB0_38:
	xorl	%edi, %edi
	callq	_exit
LBB0_11:
	leaq	L_.str.2(%rip), %r12
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	(%rbx), %rsi
	movq	%r12, %rdi
	callq	_warnx
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_16
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	callq	_getgrnam
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	jmp	LBB0_15
LBB0_17:
	movq	%rax, %rbx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_18 Depth=1
	xorl	%eax, %eax
	callq	_getutxent
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_38
LBB0_18:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_24 Depth 2
                                        ##       Child Loop BB0_30 Depth 3
	movq	(%rbx), %rax
	movq	_USER_PROCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_37
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	8(%rbx), %edi
	callq	_ttystat
	testq	%rax, %rax
	jne	LBB0_37
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpq	$0, (%r13)
	je	LBB0_35
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	12(%rbx), %edi
	callq	_getpwnam
	testq	%rax, %rax
	je	LBB0_37
## %bb.22:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	(%r13), %r15
	testq	%r15, %r15
	je	LBB0_37
## %bb.23:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%rax, %r12
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_18 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_30 Depth 3
	movslq	8(%r15), %rdi
	movb	$1, %r14b
	cmpq	$-1, %rdi
	je	LBB0_32
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=2
	cmpq	%rdi, (%r12)
	je	LBB0_35
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=2
	callq	_getgrgid
	testq	%rax, %rax
	je	LBB0_32
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	8(%rax), %r13
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_32
## %bb.28:                              ##   in Loop: Header=BB0_24 Depth=2
	addq	$8, %r13
	.p2align	4, 0x90
LBB0_30:                                ##   Parent Loop BB0_18 Depth=1
                                        ##     Parent Loop BB0_24 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	12(%rbx), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_30 Depth=3
	movq	(%r13), %rdi
	addq	$8, %r13
	testq	%rdi, %rdi
	jne	LBB0_30
LBB0_31:                                ##   in Loop: Header=BB0_24 Depth=2
	testq	%rax, %rax
	setne	%r14b
LBB0_32:                                ##   in Loop: Header=BB0_24 Depth=2
	testb	%r14b, %r14b
	movq	_grouplist@GOTPCREL(%rip), %r13
	je	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	16(%r15), %r15
	testq	%r15, %r15
	jne	LBB0_24
LBB0_34:                                ##   in Loop: Header=BB0_18 Depth=1
	testb	%r14b, %r14b
	jne	LBB0_37
LBB0_35:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	8(%rbx), %edx
	leaq	-48(%rbp), %rdi
	movl	$1, %esi
	movl	$300, %ecx                      ## imm = 0x12C
	callq	_ttymsg
	testq	%rax, %rax
	je	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_18 Depth=1
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	callq	_warnx
	jmp	LBB0_37
	.cfi_endproc
                                        ## -- End function
	.comm	_LC_CTYPE,4,2                   ## @LC_CTYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

L_.str.1:                               ## @.str.1
	.asciz	"g:n"

	.comm	_nobanner,4,2                   ## @nobanner
	.comm	_grouplist,8,3                  ## @grouplist
	.comm	_optarg,8,3                     ## @optarg
	.comm	_optind,8,3                     ## @optind
L_.str.2:                               ## @.str.2
	.asciz	"%s: no such group"

	.comm	_mbuf,4,2                       ## @mbuf
	.comm	_mbufsize,4,2                   ## @mbufsize
	.comm	_USER_PROCESS,8,3               ## @USER_PROCESS
L_.str.3:                               ## @.str.3
	.asciz	"%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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	x20, x0
Lloh0:
	adrp	x8, _LC_CTYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LC_CTYPE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_setlocale
Lloh5:
	adrp	x22, _grouplist@GOTPAGE
Lloh6:
	ldr	x22, [x22, _grouplist@GOTPAGEOFF]
Lloh7:
	adrp	x23, _optarg@GOTPAGE
Lloh8:
	ldr	x23, [x23, _optarg@GOTPAGEOFF]
	mov	w24, #-1
	mov	w25, #1
Lloh9:
	adrp	x26, _nobanner@GOTPAGE
Lloh10:
	ldr	x26, [x26, _nobanner@GOTPAGEOFF]
Lloh11:
	adrp	x21, l_.str.1@PAGE
Lloh12:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #24
	bl	_malloc
	ldr	x8, [x22]
	str	x8, [x0, #16]
	ldr	x8, [x23]
	str	x8, [x0]
	str	w24, [x0, #8]
	str	x0, [x22]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_getopt
	cmp	w0, #103
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #110
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_geteuid
	cbnz	w0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w25, [x26]
	b	LBB0_2
LBB0_8:
Lloh13:
	adrp	x8, _optind@GOTPAGE
Lloh14:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh15:
	ldr	x21, [x8]
	sub	w8, w20, w21
	cmp	w8, #2
	b.lt	LBB0_10
; %bb.9:
	bl	_usage
LBB0_10:
	ldr	x23, [x22]
	cbz	x23, LBB0_15
; %bb.11:
Lloh16:
	adrp	x20, l_.str.2@PAGE
Lloh17:
	add	x20, x20, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x1, [x23]
	mov	x0, x20
	bl	_warnx
	ldr	x23, [x23, #16]
	cbz	x23, LBB0_15
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	bl	_getgrnam
	cbz	x0, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x0]
	str	w8, [x23, #8]
	ldr	x23, [x23, #16]
	cbnz	x23, LBB0_13
LBB0_15:
	ldr	x0, [x19, x21, lsl #3]
	bl	_makemsg
Lloh18:
	adrp	x8, _mbuf@GOTPAGE
Lloh19:
	ldr	x8, [x8, _mbuf@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _mbufsize@GOTPAGE
Lloh22:
	ldr	x9, [x9, _mbufsize@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #8]
	bl	_getutxent
	cbnz	x0, LBB0_17
LBB0_16:
	mov	w0, #0
	bl	_exit
LBB0_17:
	mov	x20, x0
Lloh24:
	adrp	x23, _USER_PROCESS@GOTPAGE
Lloh25:
	ldr	x23, [x23, _USER_PROCESS@GOTPAGEOFF]
Lloh26:
	adrp	x19, l_.str.3@PAGE
Lloh27:
	add	x19, x19, l_.str.3@PAGEOFF
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	bl	_getutxent
	mov	x20, x0
	cbz	x0, LBB0_16
LBB0_19:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_27 Depth 2
                                        ;       Child Loop BB0_32 Depth 3
	ldr	x8, [x20]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w0, [x20, #8]
	bl	_ttystat
	cbnz	x0, LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x22]
	cbz	x8, LBB0_36
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w0, [x20, #12]
	bl	_getpwnam
	cbz	x0, LBB0_18
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x24, [x22]
	cbz	x24, LBB0_18
; %bb.24:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x21, x0
	b	LBB0_27
LBB0_25:                                ;   in Loop: Header=BB0_27 Depth=2
	mov	w8, #1
	cbz	w8, LBB0_35
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=2
	ldr	x24, [x24, #16]
	cbz	x24, LBB0_35
LBB0_27:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_32 Depth 3
	ldrsw	x0, [x24, #8]
	cmn	w0, #1
	b.eq	LBB0_25
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=2
	ldr	x8, [x21]
	cmp	x8, x0
	b.eq	LBB0_36
; %bb.29:                               ;   in Loop: Header=BB0_27 Depth=2
	bl	_getgrgid
	cbz	x0, LBB0_25
; %bb.30:                               ;   in Loop: Header=BB0_27 Depth=2
	ldr	x8, [x0, #8]
	ldr	x0, [x8]
	cbz	x0, LBB0_25
; %bb.31:                               ;   in Loop: Header=BB0_27 Depth=2
	add	x25, x8, #8
LBB0_32:                                ;   Parent Loop BB0_19 Depth=1
                                        ;     Parent Loop BB0_27 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w1, [x20, #12]
	bl	_strcmp
	mov	x8, x0
	cbz	x0, LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=3
	ldr	x0, [x25], #8
	cbnz	x0, LBB0_32
LBB0_34:                                ;   in Loop: Header=BB0_27 Depth=2
	cmp	x8, #0
	cset	w8, ne
	cbnz	w8, LBB0_26
LBB0_35:                                ;   in Loop: Header=BB0_19 Depth=1
	tbnz	w8, #0, LBB0_18
LBB0_36:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	w2, [x20, #8]
	add	x0, sp, #8
	mov	w1, #1
	mov	w3, #300
	bl	_ttymsg
	cbz	x0, LBB0_18
; %bb.37:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x1, x0
	mov	x0, x19
	bl	_warnx
	b	LBB0_18
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_LC_CTYPE,4,2                   ; @LC_CTYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	"g:n"

	.comm	_nobanner,4,2                   ; @nobanner
	.comm	_grouplist,8,3                  ; @grouplist
	.comm	_optarg,8,3                     ; @optarg
	.comm	_optind,8,3                     ; @optind
l_.str.2:                               ; @.str.2
	.asciz	"%s: no such group"

	.comm	_mbuf,4,2                       ; @mbuf
	.comm	_mbufsize,4,2                   ; @mbufsize
	.comm	_USER_PROCESS,8,3               ; @USER_PROCESS
l_.str.3:                               ; @.str.3
	.asciz	"%s"

.subsections_via_symbols
