	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grp_add                        ## -- Begin function grp_add
	.p2align	4, 0x90
_grp_add:                               ## @grp_add
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.1:
	movq	%rdi, %rbx
	movb	(%rdi), %al
	testb	%al, %al
	je	LBB0_22
## %bb.2:
	movq	_grptb@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_3
## %bb.6:
	cmpb	$35, %al
	je	LBB0_12
LBB0_7:
	cmpb	$92, %al
	jne	LBB0_9
## %bb.8:
	leaq	1(%rbx), %rax
	cmpb	$35, 1(%rbx)
	cmoveq	%rax, %rbx
LBB0_9:
	movq	%rbx, %rdi
	callq	_getgrnam
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	(%rax), %rbx
	jmp	LBB0_13
LBB0_3:
	movq	_GRP_TB_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movb	(%rbx), %al
	cmpb	$35, %al
	jne	LBB0_7
LBB0_12:
	incq	%rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtoul
	movq	%rax, %rbx
LBB0_13:
	xorl	%eax, %eax
	callq	_endgrent
	movq	_GRP_TB_SZ@GOTPCREL(%rip), %rcx
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	(%rcx)
	movl	%edx, %r15d
	movq	(%r12), %rax
	movq	(%rax,%r15,8), %rax
	testq	%rax, %rax
	je	LBB0_18
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%rax)
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_15
LBB0_18:
	movl	$16, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	%rbx, (%rax)
	movq	(%r12), %rcx
	movq	(%rcx,%r15,8), %rdx
	movq	%rdx, 8(%rax)
	movq	%rax, (%rcx,%r15,8)
	xorl	%r14d, %r14d
	jmp	LBB0_22
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_paxwarn
	jmp	LBB0_22
LBB0_16:
	xorl	%r14d, %r14d
	jmp	LBB0_22
LBB0_20:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_21
LBB0_4:
	leaq	L_.str(%rip), %rsi
LBB0_21:
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_paxwarn
LBB0_22:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_grptb,8,3                      ## @grptb
	.comm	_GRP_TB_SZ,4,2                  ## @GRP_TB_SZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to allocate memory fo group selection table"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot determine gid for group name: %s"

L_.str.2:                               ## @.str.2
	.asciz	"Group selection table out of memory"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grp_add                        ; -- Begin function grp_add
	.p2align	2
_grp_add:                               ; @grp_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cbz	x0, LBB0_21
; %bb.1:
	mov	x19, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_21
; %bb.2:
Lloh0:
	adrp	x20, _grptb@GOTPAGE
Lloh1:
	ldr	x20, [x20, _grptb@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh2:
	adrp	x21, _GRP_TB_SZ@GOTPAGE
Lloh3:
	ldr	x21, [x21, _GRP_TB_SZ@GOTPAGEOFF]
	cbz	x9, LBB0_8
; %bb.3:
	cmp	w8, #35
	b.eq	LBB0_10
LBB0_4:
	cmp	w8, #92
	b.ne	LBB0_6
; %bb.5:
	mov	x8, x19
	ldrb	w9, [x8, #1]!
	cmp	w9, #35
	csel	x19, x8, x19, eq
LBB0_6:
	mov	x0, x19
	bl	_getgrnam
	cbz	x0, LBB0_16
; %bb.7:
	ldr	x19, [x0]
	b	LBB0_11
LBB0_8:
	ldr	w0, [x21]
	mov	w1, #8
	bl	_calloc
	str	x0, [x20]
	cbz	x0, LBB0_19
; %bb.9:
	ldrb	w8, [x19]
	cmp	w8, #35
	b.ne	LBB0_4
LBB0_10:
	add	x0, x19, #1
	mov	x1, #0
	mov	w2, #10
	bl	_strtoul
	mov	x19, x0
LBB0_11:
	bl	_endgrent
	ldr	w8, [x21]
	udiv	w9, w19, w8
	msub	w21, w9, w8, w19
	ldr	x8, [x20]
	ldr	x8, [x8, w21, uxtw #3]
	cbz	x8, LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8]
	cmp	x9, x19
	b.eq	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_12
LBB0_14:
	mov	w0, #16
	bl	_malloc
	cbz	x0, LBB0_18
; %bb.15:
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x20]
	lsl	x10, x21, #3
	ldr	x11, [x9, x10]
	stp	x19, x11, [x8]
	str	x8, [x9, x10]
	b	LBB0_22
LBB0_16:
	str	x19, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_20
LBB0_17:
	mov	w0, #0
	b	LBB0_22
LBB0_18:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_20
LBB0_19:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
LBB0_20:
	mov	w0, #1
	bl	_paxwarn
LBB0_21:
	mov	w0, #-1
LBB0_22:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_grptb,8,3                      ; @grptb
	.comm	_GRP_TB_SZ,4,2                  ; @GRP_TB_SZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to allocate memory fo group selection table"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot determine gid for group name: %s"

l_.str.2:                               ; @.str.2
	.asciz	"Group selection table out of memory"

.subsections_via_symbols
