	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grp_set_passwd
_grp_set_passwd:                        ## @grp_set_passwd
	.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
	subq	$280, %rsp                      ## imm = 0x118
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$-1, %edx
	je	LBB0_17
## %bb.1:
	movl	%edx, %ebx
	movq	%rdi, %r15
	cmpl	$45, %edx
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rbx
	jmp	LBB0_16
LBB0_3:
	movl	%ecx, %r14d
	movl	%esi, %r12d
	movl	%ebx, %edi
	callq	_isatty
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	$0, -312(%rbp)
	movq	_TCSANOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-312(%rbp), %rdx
	movl	%ebx, %edi
	callq	_tcsetattr
	testl	%r12d, %r12d
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	8(%r15), %rdx
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_fflush
	leaq	-304(%rbp), %rsi
	movl	%ebx, %edi
	movl	$255, %edx
	callq	_read
	movl	%eax, %r12d
	movq	_TCSANOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-320(%rbp), %rdx
	movl	%ebx, %edi
	callq	_tcsetattr
	movl	(%r13), %esi
	movl	$10, %edi
	callq	_fputc
	movl	(%r13), %edi
	callq	_fflush
	testl	%r12d, %r12d
	jns	LBB0_8
LBB0_7:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_err
LBB0_8:
	movslq	%r12d, %rax
	movb	$0, -304(%rbp,%rax)
	leaq	L_.str.5(%rip), %rsi
	leaq	-304(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strpbrk
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movb	$0, (%rax)
LBB0_10:
	cmpb	$0, -304(%rbp)
	je	LBB0_11
## %bb.12:
	testl	%r14d, %r14d
	je	LBB0_15
LBB0_13:
	movq	%rbx, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	_EX_DATAERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
	jmp	LBB0_16
LBB0_4:
	leaq	-304(%rbp), %rsi
	movl	%ebx, %edi
	movl	$255, %edx
	callq	_read
	movl	%eax, %r12d
	testl	%r12d, %r12d
	jns	LBB0_8
	jmp	LBB0_7
LBB0_11:
	movq	_EX_DATAERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_conf@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
	testl	%r14d, %r14d
	jne	LBB0_13
LBB0_15:
	leaq	-304(%rbp), %rdi
	callq	_pw_pwcrypt
	movq	%rax, %rbx
LBB0_16:
	movq	%rbx, (%r15)
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	addq	$280, %rsp                      ## imm = 0x118
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"*"

	.comm	_ECHO,4,2                       ## @ECHO
	.comm	_TCSANOW,4,2                    ## @TCSANOW
L_.str.1:                               ## @.str.1
	.asciz	"%sassword for group %s:"

L_.str.2:                               ## @.str.2
	.asciz	"New p"

L_.str.3:                               ## @.str.3
	.asciz	"P"

	.comm	_stdout,4,2                     ## @stdout
	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
L_.str.4:                               ## @.str.4
	.asciz	"-h file descriptor"

L_.str.5:                               ## @.str.5
	.asciz	" \t\r\n"

	.comm	_EX_DATAERR,4,2                 ## @EX_DATAERR
L_.str.6:                               ## @.str.6
	.asciz	"empty password read on file descriptor %d"

	.comm	_conf,4,2                       ## @conf
L_.str.7:                               ## @.str.7
	.asciz	"wrong encrypted passwrd"

	.no_dead_strip	_grp_set_passwd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grp_set_passwd
_grp_set_passwd:                        ; @grp_set_passwd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #368
	.cfi_def_cfa_offset 368
	stp	x28, x27, [sp, #288]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #304]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #320]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #336]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #352]            ; 16-byte Folded Spill
	add	x29, sp, #352
	.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 w27, -72
	.cfi_offset w28, -80
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	cmn	w2, #1
	b.eq	LBB0_16
; %bb.1:
	mov	x21, x2
	mov	x19, x0
	cmp	w2, #45
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x20, l_.str@PAGE
Lloh4:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_15
LBB0_3:
	mov	x20, x3
	mov	x22, x1
	mov	x0, x21
	bl	_isatty
	cbz	w0, LBB0_12
; %bb.4:
	str	wzr, [sp, #8]
Lloh5:
	adrp	x23, _TCSANOW@GOTPAGE
Lloh6:
	ldr	x23, [x23, _TCSANOW@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #8
	mov	x0, x21
	bl	_tcsetattr
Lloh7:
	adrp	x8, l_.str.2@PAGE
Lloh8:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh9:
	adrp	x9, l_.str.3@PAGE
Lloh10:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w22, #0
	csel	x1, x9, x8, eq
	ldr	x2, [x19, #8]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
Lloh13:
	adrp	x24, _stdout@GOTPAGE
Lloh14:
	ldr	x24, [x24, _stdout@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_fflush
	add	x1, sp, #24
	mov	x0, x21
	mov	w2, #255
	bl	_read
	mov	x22, x0
	ldr	w1, [x23]
	add	x2, sp, #16
	mov	x0, x21
	bl	_tcsetattr
	ldr	w1, [x24]
	mov	w0, #10
	bl	_fputc
	ldr	w0, [x24]
	bl	_fflush
	tbz	w22, #31, LBB0_6
LBB0_5:
Lloh15:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_err
LBB0_6:
	add	x8, sp, #24
	strb	wzr, [x8, w22, sxtw]
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x0, sp, #24
	bl	_strpbrk
	cbz	x0, LBB0_8
; %bb.7:
	strb	wzr, [x0]
LBB0_8:
	ldrb	w8, [sp, #24]
	cbz	w8, LBB0_13
; %bb.9:
	cbz	w20, LBB0_14
LBB0_10:
	add	x20, sp, #24
	add	x0, sp, #24
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_15
; %bb.11:
	add	x20, sp, #24
Lloh22:
	adrp	x8, _EX_DATAERR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EX_DATAERR@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.7@PAGE
Lloh26:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_errx
	b	LBB0_15
LBB0_12:
	add	x1, sp, #24
	mov	x0, x21
	mov	w2, #255
	bl	_read
	mov	x22, x0
	tbz	w22, #31, LBB0_6
	b	LBB0_5
LBB0_13:
Lloh27:
	adrp	x8, _EX_DATAERR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EX_DATAERR@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x8, _conf@GOTPAGE
Lloh31:
	ldr	x8, [x8, _conf@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh33:
	adrp	x1, l_.str.6@PAGE
Lloh34:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_errx
	cbnz	w20, LBB0_10
LBB0_14:
	add	x0, sp, #24
	bl	_pw_pwcrypt
	mov	x20, x0
LBB0_15:
	str	x20, [x19]
LBB0_16:
	ldur	x8, [x29, #-72]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	ldp	x29, x30, [sp, #352]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #336]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #320]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #304]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #368
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"*"

	.comm	_ECHO,4,2                       ; @ECHO
	.comm	_TCSANOW,4,2                    ; @TCSANOW
l_.str.1:                               ; @.str.1
	.asciz	"%sassword for group %s:"

l_.str.2:                               ; @.str.2
	.asciz	"New p"

l_.str.3:                               ; @.str.3
	.asciz	"P"

	.comm	_stdout,4,2                     ; @stdout
	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
l_.str.4:                               ; @.str.4
	.asciz	"-h file descriptor"

l_.str.5:                               ; @.str.5
	.asciz	" \t\r\n"

	.comm	_EX_DATAERR,4,2                 ; @EX_DATAERR
l_.str.6:                               ; @.str.6
	.asciz	"empty password read on file descriptor %d"

	.comm	_conf,4,2                       ; @conf
l_.str.7:                               ; @.str.7
	.asciz	"wrong encrypted passwrd"

	.no_dead_strip	_grp_set_passwd
.subsections_via_symbols
