	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PsServerPasswordSet            ## -- Begin function PsServerPasswordSet
	.p2align	4, 0x90
_PsServerPasswordSet:                   ## @PsServerPasswordSet
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rax
	movq	%rax, -96(%rbp)
	movq	_CmdPromptChoosePassword@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -88(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movl	$0, -64(%rbp)
	leaq	-96(%rbp), %rcx
	movl	$1, %r8d
	callq	_ParseCommandList
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_GetParamStr
	movq	%rax, %rbx
	leaq	-104(%rbp), %rdi
	movl	$4, %esi
	callq	_Zero
	movl	-104(%rbp), %r14d
	movq	%rbx, %rdi
	callq	_StrLen
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_Sha0
	movl	(%r13), %edi
	leaq	-104(%rbp), %rsi
	callq	_ScSetServerPassword
	movq	%rax, %rbx
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_3
## %bb.4:
	movq	%r12, %rdi
	callq	_FreeParamValueList
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_1:
	movq	_ERR_INVALID_PARAMETER@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_5
LBB0_3:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_CmdPrintError
	movq	%r12, %rdi
	callq	_FreeParamValueList
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[password]"

	.comm	_CmdPromptChoosePassword,4,2    ## @CmdPromptChoosePassword
	.comm	_ERR_INVALID_PARAMETER,8,3      ## @ERR_INVALID_PARAMETER
	.comm	_ERR_NO_ERROR,8,3               ## @ERR_NO_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PsServerPasswordSet            ; -- Begin function PsServerPasswordSet
	.p2align	2
_PsServerPasswordSet:                   ; @PsServerPasswordSet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x3
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
Lloh5:
	adrp	x9, _CmdPromptChoosePassword@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CmdPromptChoosePassword@GOTPAGEOFF]
Lloh7:
	ldrsw	x9, [x9]
	stp	x8, x9, [sp, #16]
	stp	xzr, xzr, [sp, #32]
	str	wzr, [sp, #48]
	add	x3, sp, #16
	mov	w4, #1
	bl	_ParseCommandList
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_GetParamStr
	mov	x22, x0
	add	x0, sp, #8
	mov	w1, #4
	bl	_Zero
	ldr	w23, [sp, #8]
	mov	x0, x22
	bl	_StrLen
	mov	x2, x0
	mov	x0, x23
	mov	x1, x22
	bl	_Sha0
	ldr	w0, [x20]
	add	x1, sp, #8
	bl	_ScSetServerPassword
Lloh10:
	adrp	x8, _ERR_NO_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERR_NO_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_FreeParamValueList
	mov	x20, #0
	b	LBB0_5
LBB0_3:
Lloh13:
	adrp	x8, _ERR_INVALID_PARAMETER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERR_INVALID_PARAMETER@GOTPAGEOFF]
Lloh15:
	ldr	x20, [x8]
	b	LBB0_5
LBB0_4:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_CmdPrintError
	mov	x0, x21
	bl	_FreeParamValueList
LBB0_5:
	ldr	x8, [sp, #56]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[password]"

	.comm	_CmdPromptChoosePassword,4,2    ; @CmdPromptChoosePassword
	.comm	_ERR_INVALID_PARAMETER,8,3      ; @ERR_INVALID_PARAMETER
	.comm	_ERR_NO_ERROR,8,3               ; @ERR_NO_ERROR
.subsections_via_symbols
