	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pw_set_passwd
_pw_set_passwd:                         ## @pw_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	__PASSWORD_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	1(%rbx), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	cmpl	$45, %r13d
	jne	LBB0_4
## %bb.1:
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	cmpb	$42, (%rcx)
	je	LBB0_23
LBB0_3:
	leaq	L_.str(%rip), %rax
	jmp	LBB0_22
LBB0_4:
	movl	%r13d, %edi
	callq	_isatty
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	leaq	-56(%rbp), %rsi
	movl	%r13d, %edi
	callq	_tcgetattr
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.7:
	movq	_ECHO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	-56(%rbp), %eax
	movl	%eax, -64(%rbp)
	movq	_TCSANOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movl	%r13d, %edi
	callq	_tcsetattr
	testl	%r15d, %r15d
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	leaq	L_.str.4(%rip), %rdx
	cmoveq	%rax, %rdx
	movl	8(%r14), %ecx
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_fflush
	movl	%r13d, %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_read
	movl	%eax, %ebx
	movq	_TCSANOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movl	%r13d, %edi
	callq	_tcsetattr
	movl	(%r15), %esi
	movl	$10, %edi
	callq	_fputc
	movl	(%r15), %edi
	callq	_fflush
	testl	%ebx, %ebx
	jns	LBB0_10
	jmp	LBB0_9
LBB0_6:
	movl	%r13d, %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_read
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jns	LBB0_10
LBB0_9:
	movq	_EX_IOERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%edx, %edx
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	sete	%dl
	shll	$5, %edx
	orl	$72, %edx
	leaq	L_.str.5(%rip), %rsi
	callq	_err
LBB0_10:
	movslq	%ebx, %rax
	movb	$0, (%r12,%rax)
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_strpbrk
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movb	$0, (%rax)
LBB0_12:
	cmpb	$0, (%r12)
	je	LBB0_13
## %bb.14:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_18
LBB0_15:
	movq	%r12, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	_EX_DATAERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
LBB0_17:
	movq	%r12, %rdi
	callq	_strdup
	jmp	LBB0_22
LBB0_13:
	movq	_EX_DATAERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_errx
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_15
LBB0_18:
	movq	%r14, %rdi
	callq	_login_getpwclass
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_login_setcryptfmt
	testq	%rax, %rax
	jne	LBB0_21
LBB0_20:
	leaq	L_.str.10(%rip), %rdi
	callq	_warn
LBB0_21:
	movq	%rbx, %rdi
	callq	_login_close
	movq	%r12, %rdi
	callq	_pw_pwcrypt
LBB0_22:
	movq	%rax, (%r14)
	movl	$1, %eax
LBB0_23:
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_25
## %bb.24:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	__PASSWORD_LEN,4,2              ## @_PASSWORD_LEN
	.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	"%s%spassword for user %s:"

L_.str.2:                               ## @.str.2
	.asciz	"new "

L_.str.3:                               ## @.str.3
	.space	1

L_.str.4:                               ## @.str.4
	.asciz	"encrypted "

	.comm	_stdout,4,2                     ## @stdout
	.comm	_EX_IOERR,4,2                   ## @EX_IOERR
L_.str.5:                               ## @.str.5
	.asciz	"-%c file descriptor"

L_.str.6:                               ## @.str.6
	.asciz	"\r\n"

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

L_.str.8:                               ## @.str.8
	.asciz	"bad encrypted password"

L_.str.9:                               ## @.str.9
	.asciz	"sha512"

L_.str.10:                              ## @.str.10
	.asciz	"setting crypt(3) format"

	.no_dead_strip	_pw_set_passwd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pw_set_passwd
_pw_set_passwd:                         ; @pw_set_passwd
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #32
	mov	x24, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	x25, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, __PASSWORD_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, __PASSWORD_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	add	w8, w23, #1
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	cmp	w1, #45
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.2:
	ldrb	w8, [x8]
	cmp	w8, #42
	b.ne	LBB0_7
; %bb.3:
	mov	w0, #0
	b	LBB0_24
LBB0_4:
	mov	x0, x22
	bl	_isatty
	cbz	w0, LBB0_8
; %bb.5:
	sub	x1, x29, #80
	mov	x0, x22
	bl	_tcgetattr
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.6:
	ldur	w8, [x29, #-80]
Lloh8:
	adrp	x9, _ECHO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ECHO@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	bic	w8, w8, w9
	stur	w8, [x29, #-88]
Lloh11:
	adrp	x26, _TCSANOW@GOTPAGE
Lloh12:
	ldr	x26, [x26, _TCSANOW@GOTPAGEOFF]
	ldr	w1, [x26]
	sub	x2, x29, #88
	mov	x0, x22
	bl	_tcsetattr
Lloh13:
	adrp	x8, l_.str.2@PAGE
Lloh14:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh15:
	adrp	x9, l_.str.3@PAGE
Lloh16:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w24, #0
	csel	x1, x9, x8, eq
Lloh17:
	adrp	x8, l_.str.4@PAGE
Lloh18:
	add	x8, x8, l_.str.4@PAGEOFF
	cmp	w21, #0
	csel	x2, x9, x8, eq
	ldr	w3, [x19, #8]
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
Lloh21:
	adrp	x24, _stdout@GOTPAGE
Lloh22:
	ldr	x24, [x24, _stdout@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_fflush
	mov	x0, x22
	mov	x1, x20
	mov	x2, x23
	bl	_read
	mov	x23, x0
	ldr	w1, [x26]
	sub	x2, x29, #80
	mov	x0, x22
	bl	_tcsetattr
	ldr	w1, [x24]
	mov	w0, #10
	bl	_fputc
	ldr	w0, [x24]
	bl	_fflush
	tbz	w23, #31, LBB0_10
	b	LBB0_9
LBB0_7:
Lloh23:
	adrp	x8, l_.str@PAGE
Lloh24:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x19]
	b	LBB0_23
LBB0_8:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x23
	bl	_read
	mov	x23, x0
	tbz	w23, #31, LBB0_10
LBB0_9:
Lloh25:
	adrp	x8, _EX_IOERR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EX_IOERR@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	mov	w8, #72
	mov	w9, #104
	cmp	w21, #0
	csel	w2, w9, w8, eq
Lloh28:
	adrp	x1, l_.str.5@PAGE
Lloh29:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_err
LBB0_10:
	strb	wzr, [x20, w23, sxtw]
Lloh30:
	adrp	x1, l_.str.6@PAGE
Lloh31:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_strpbrk
	cbz	x0, LBB0_12
; %bb.11:
	strb	wzr, [x0]
LBB0_12:
	ldrb	w8, [x20]
	cbz	w8, LBB0_17
; %bb.13:
	cbz	w21, LBB0_18
LBB0_14:
	mov	x0, x20
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_16
; %bb.15:
Lloh32:
	adrp	x8, _EX_DATAERR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EX_DATAERR@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x1, l_.str.8@PAGE
Lloh36:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_errx
LBB0_16:
	mov	x0, x20
	bl	_strdup
	b	LBB0_22
LBB0_17:
Lloh37:
	adrp	x8, _EX_DATAERR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EX_DATAERR@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	str	x22, [sp, #-16]!
Lloh40:
	adrp	x1, l_.str.7@PAGE
Lloh41:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_errx
	add	sp, sp, #16
	cbnz	w21, LBB0_14
LBB0_18:
	mov	x0, x19
	bl	_login_getpwclass
	mov	x21, x0
	cbz	x0, LBB0_20
; %bb.19:
Lloh42:
	adrp	x1, l_.str.9@PAGE
Lloh43:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x21
	mov	x2, #0
	bl	_login_setcryptfmt
	cbnz	x0, LBB0_21
LBB0_20:
Lloh44:
	adrp	x0, l_.str.10@PAGE
Lloh45:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_warn
LBB0_21:
	mov	x0, x21
	bl	_login_close
	mov	x0, x20
	bl	_pw_pwcrypt
LBB0_22:
	str	x0, [x19]
LBB0_23:
	mov	w0, #1
LBB0_24:
	mov	sp, x25
	ldur	x8, [x29, #-72]
Lloh46:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh47:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.25:
	sub	sp, x29, #64
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	__PASSWORD_LEN,4,2              ; @_PASSWORD_LEN
	.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	"%s%spassword for user %s:"

l_.str.2:                               ; @.str.2
	.asciz	"new "

l_.str.3:                               ; @.str.3
	.space	1

l_.str.4:                               ; @.str.4
	.asciz	"encrypted "

	.comm	_stdout,4,2                     ; @stdout
	.comm	_EX_IOERR,4,2                   ; @EX_IOERR
l_.str.5:                               ; @.str.5
	.asciz	"-%c file descriptor"

l_.str.6:                               ; @.str.6
	.asciz	"\r\n"

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

l_.str.8:                               ; @.str.8
	.asciz	"bad encrypted password"

l_.str.9:                               ; @.str.9
	.asciz	"sha512"

l_.str.10:                              ; @.str.10
	.asciz	"setting crypt(3) format"

	.no_dead_strip	_pw_set_passwd
.subsections_via_symbols
