	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PsHubCreate                    ## -- Begin function PsHubCreate
	.p2align	4, 0x90
_PsHubCreate:                           ## @PsHubCreate
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HUB_TYPE_STANDALONE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	leaq	L_.str.1(%rip), %rax
	movq	%rax, -128(%rbp)
	movq	_CmdPrompt@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -120(%rbp)
	leaq	L_.str.2(%rip), %rdi
	callq	__UU
	movq	%rax, -112(%rbp)
	movq	_CmdEvalNotEmpty@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -104(%rbp)
	movl	$0, -96(%rbp)
	leaq	L_.str.3(%rip), %rax
	movq	%rax, -88(%rbp)
	movq	_CmdPromptChoosePassword@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -80(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -72(%rbp)
	movl	$0, -56(%rbp)
	leaq	-128(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movl	$2, %r8d
	callq	_ParseCommandList
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	-168(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$40, %esi
	callq	_Zero
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_ScGetServerInfo
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movq	-168(%rbp), %rax
	movq	_SERVER_TYPE_FARM_CONTROLLER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_HUB_TYPE_FARM_DYNAMIC@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_5:
	leaq	-168(%rbp), %rdi
	callq	_FreeRpcServerInfo
LBB0_6:
	leaq	-168(%rbp), %rdi
	movl	$40, %esi
	callq	_Zero
	movl	-136(%rbp), %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_GetParamStr
	movl	%ebx, %edi
	movl	$4, %esi
	movq	%rax, %rdx
	callq	_StrCpy
	movq	%r13, -144(%rbp)
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_GetParamStr
	movq	%rax, %rdi
	callq	_IsEmptyStr
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rbx
	jmp	LBB0_9
LBB0_1:
	movq	_ERR_INVALID_PARAMETER@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_12
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_GetParamStr
	movq	%rax, %rbx
LBB0_9:
	movl	-152(%rbp), %r13d
	movq	%rbx, %rdi
	callq	_StrLen
	movl	%r13d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_Sha0
	movl	-156(%rbp), %edi
	movq	_ADMINISTRATOR_USERNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_HashPassword
	movl	$1, -160(%rbp)
	movl	(%r15), %edi
	leaq	-168(%rbp), %rsi
	callq	_ScCreateHub
	movq	%rax, %rbx
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_10
## %bb.11:
	movq	%r12, %rdi
	callq	_FreeParamValueList
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_10:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_CmdPrintError
	movq	%r12, %rdi
	callq	_FreeParamValueList
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movq	%rbx, %rax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_HUB_TYPE_STANDALONE,8,3        ## @HUB_TYPE_STANDALONE
L_.str.1:                               ## @.str.1
	.asciz	"[name]"

	.comm	_CmdPrompt,4,2                  ## @CmdPrompt
L_.str.2:                               ## @.str.2
	.asciz	"CMD_HubCreate_PROMPT_NAME"

	.comm	_CmdEvalNotEmpty,8,3            ## @CmdEvalNotEmpty
L_.str.3:                               ## @.str.3
	.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
	.comm	_SERVER_TYPE_FARM_CONTROLLER,8,3 ## @SERVER_TYPE_FARM_CONTROLLER
	.comm	_HUB_TYPE_FARM_DYNAMIC,8,3      ## @HUB_TYPE_FARM_DYNAMIC
	.comm	_ADMINISTRATOR_USERNAME,4,2     ## @ADMINISTRATOR_USERNAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PsHubCreate                    ; -- Begin function PsHubCreate
	.p2align	2
_PsHubCreate:                           ; @PsHubCreate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _HUB_TYPE_STANDALONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HUB_TYPE_STANDALONE@GOTPAGEOFF]
Lloh5:
	adrp	x9, l_.str.1@PAGE
Lloh6:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh7:
	ldr	x23, [x8]
Lloh8:
	adrp	x8, _CmdPrompt@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CmdPrompt@GOTPAGEOFF]
Lloh10:
	ldrsw	x8, [x8]
	stp	x9, x8, [sp, #40]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__UU
Lloh13:
	adrp	x8, _CmdEvalNotEmpty@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CmdEvalNotEmpty@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	stp	x0, x8, [sp, #56]
	str	wzr, [sp, #72]
Lloh16:
	adrp	x8, l_.str.3@PAGE
Lloh17:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh18:
	adrp	x9, _CmdPromptChoosePassword@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CmdPromptChoosePassword@GOTPAGEOFF]
Lloh20:
	ldrsw	x9, [x9]
	stp	x8, x9, [sp, #80]
	stp	xzr, xzr, [sp, #96]
	str	wzr, [sp, #112]
	add	x3, sp, #40
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	w4, #2
	bl	_ParseCommandList
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	mov	x0, sp
	mov	w1, #40
	bl	_Zero
	ldr	w0, [x20]
	mov	x1, sp
	bl	_ScGetServerInfo
Lloh21:
	adrp	x24, _ERR_NO_ERROR@GOTPAGE
Lloh22:
	ldr	x24, [x24, _ERR_NO_ERROR@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [sp]
Lloh23:
	adrp	x9, _SERVER_TYPE_FARM_CONTROLLER@GOTPAGE
Lloh24:
	ldr	x9, [x9, _SERVER_TYPE_FARM_CONTROLLER@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
Lloh26:
	adrp	x10, _HUB_TYPE_FARM_DYNAMIC@GOTPAGE
Lloh27:
	ldr	x10, [x10, _HUB_TYPE_FARM_DYNAMIC@GOTPAGEOFF]
Lloh28:
	ldr	x10, [x10]
	cmp	x8, x9
	csel	x23, x10, x23, eq
	mov	x0, sp
	bl	_FreeRpcServerInfo
LBB0_3:
	mov	x0, sp
	mov	w1, #40
	bl	_Zero
	ldr	w22, [sp, #32]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_GetParamStr
	mov	x2, x0
	mov	x0, x22
	mov	w1, #4
	bl	_StrCpy
	str	x23, [sp, #24]
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_GetParamStr
	bl	_IsEmptyStr
	cbz	w0, LBB0_6
; %bb.4:
Lloh33:
	adrp	x22, l_.str@PAGE
Lloh34:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh35:
	adrp	x8, _ERR_INVALID_PARAMETER@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ERR_INVALID_PARAMETER@GOTPAGEOFF]
Lloh37:
	ldr	x20, [x8]
	b	LBB0_10
LBB0_6:
Lloh38:
	adrp	x1, l_.str.3@PAGE
Lloh39:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_GetParamStr
	mov	x22, x0
LBB0_7:
	ldr	w23, [sp, #16]
	mov	x0, x22
	bl	_StrLen
	mov	x2, x0
	mov	x0, x23
	mov	x1, x22
	bl	_Sha0
	ldr	w0, [sp, #12]
Lloh40:
	adrp	x8, _ADMINISTRATOR_USERNAME@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ADMINISTRATOR_USERNAME@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x2, x22
	bl	_HashPassword
	mov	w8, #1
	str	w8, [sp, #8]
	ldr	w0, [x20]
	mov	x1, sp
	bl	_ScCreateHub
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_FreeParamValueList
	mov	x20, #0
	b	LBB0_10
LBB0_9:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_CmdPrintError
	mov	x0, x21
	bl	_FreeParamValueList
LBB0_10:
	ldur	x8, [x29, #-56]
Lloh43:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh44:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x20
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_HUB_TYPE_STANDALONE,8,3        ; @HUB_TYPE_STANDALONE
l_.str.1:                               ; @.str.1
	.asciz	"[name]"

	.comm	_CmdPrompt,4,2                  ; @CmdPrompt
l_.str.2:                               ; @.str.2
	.asciz	"CMD_HubCreate_PROMPT_NAME"

	.comm	_CmdEvalNotEmpty,8,3            ; @CmdEvalNotEmpty
l_.str.3:                               ; @.str.3
	.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
	.comm	_SERVER_TYPE_FARM_CONTROLLER,8,3 ; @SERVER_TYPE_FARM_CONTROLLER
	.comm	_HUB_TYPE_FARM_DYNAMIC,8,3      ; @HUB_TYPE_FARM_DYNAMIC
	.comm	_ADMINISTRATOR_USERNAME,4,2     ; @ADMINISTRATOR_USERNAME
.subsections_via_symbols
