	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function addelem_gid
_addelem_gid:                           ## @addelem_gid
	.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	%rdi, %r14
	cmpb	$0, (%rsi)
	je	LBB0_15
## %bb.1:
	movq	%rsi, %r13
	movq	%rsi, %rdi
	callq	_strlen
	movq	_MAXLOGNAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_2
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rbx
	movq	$0, (%rbx)
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	movl	$10, %edx
	callq	_strtoul
	leaq	L_.str.2(%rip), %r15
	cmpq	$0, (%rbx)
	je	LBB0_5
LBB0_9:
	movq	%r13, %rdi
	callq	_getgrnam
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_10
LBB0_11:
	movq	(%r14), %rax
	cmpq	8(%r14), %rax
	jl	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_expand_list
	movq	(%r14), %rax
LBB0_13:
	movl	(%r12), %ecx
	movq	16(%r14), %rdx
	leaq	1(%rax), %rsi
	movq	%rsi, (%r14)
	movl	%ecx, (%rdx,%rax,4)
	movl	$1, %ebx
	jmp	LBB0_14
LBB0_15:
	movl	24(%r14), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_xo_warnx
	jmp	LBB0_3
LBB0_2:
	movl	24(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_xo_warnx
LBB0_3:
	movq	_optfatal@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%ebx, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	-48(%rbp), %rcx
	cmpb	$0, (%rcx)
	jne	LBB0_9
## %bb.6:
	movq	_GID_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_9
## %bb.7:
	movl	%eax, %edi
	callq	_getgrgid
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:
	leaq	L_.str.3(%rip), %r15
	jmp	LBB0_9
LBB0_10:
	movl	24(%r14), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r15, %rdx
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_xo_warnx
	movq	_optfatal@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXLOGNAME,8,3                 ## @MAXLOGNAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid (zero-length) %s name"

L_.str.1:                               ## @.str.1
	.asciz	"%s name too long: %s"

	.comm	_optfatal,4,2                   ## @optfatal
L_.str.2:                               ## @.str.2
	.asciz	"named"

	.comm	_errno,8,3                      ## @errno
	.comm	_GID_MAX,8,3                    ## @GID_MAX
L_.str.3:                               ## @.str.3
	.asciz	"name or ID matches"

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

	.no_dead_strip	_addelem_gid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function addelem_gid
_addelem_gid:                           ; @addelem_gid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldrb	w8, [x1]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x20, x1
	mov	x0, x1
	bl	_strlen
Lloh0:
	adrp	x8, _MAXLOGNAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXLOGNAME@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_10
; %bb.2:
Lloh3:
	adrp	x21, _errno@GOTPAGE
Lloh4:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	str	xzr, [x21]
	add	x1, sp, #24
	mov	x0, x20
	mov	w2, #10
	bl	_strtoul
	ldr	x8, [x21]
	cbnz	x8, LBB0_4
; %bb.3:
	ldr	x8, [sp, #24]
	ldrb	w8, [x8]
Lloh5:
	adrp	x9, _GID_MAX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GID_MAX@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	w8, #0
	ccmp	x0, x9, #0, eq
	b.le	LBB0_14
LBB0_4:
Lloh8:
	adrp	x22, l_.str.2@PAGE
Lloh9:
	add	x22, x22, l_.str.2@PAGEOFF
LBB0_5:
	mov	x0, x20
	bl	_getgrnam
	mov	x21, x0
	cbz	x0, LBB0_11
LBB0_6:
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.lt	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_expand_list
	ldr	x8, [x19]
LBB0_8:
	ldr	w9, [x21]
	ldr	x10, [x19, #16]
	add	x11, x8, #1
	str	x11, [x19]
	str	w9, [x10, x8, lsl #2]
	mov	w0, #1
	b	LBB0_13
LBB0_9:
	ldr	w1, [x19, #24]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_12
LBB0_10:
	ldr	w1, [x19, #24]
	str	x20, [sp]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_11:
	ldr	w1, [x19, #24]
	stp	x22, x20, [sp]
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_12:
	bl	_xo_warnx
	mov	w0, #0
Lloh16:
	adrp	x8, _optfatal@GOTPAGE
Lloh17:
	ldr	x8, [x8, _optfatal@GOTPAGEOFF]
	mov	w9, #1
Lloh18:
	str	w9, [x8]
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_14:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_getgrgid
	mov	x21, x0
	cbnz	x0, LBB0_6
; %bb.15:
Lloh19:
	adrp	x22, l_.str.3@PAGE
Lloh20:
	add	x22, x22, l_.str.3@PAGEOFF
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXLOGNAME,8,3                 ; @MAXLOGNAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid (zero-length) %s name"

l_.str.1:                               ; @.str.1
	.asciz	"%s name too long: %s"

	.comm	_optfatal,4,2                   ; @optfatal
l_.str.2:                               ; @.str.2
	.asciz	"named"

	.comm	_errno,8,3                      ; @errno
	.comm	_GID_MAX,8,3                    ; @GID_MAX
l_.str.3:                               ; @.str.3
	.asciz	"name or ID matches"

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

	.no_dead_strip	_addelem_gid
.subsections_via_symbols
