	.file	"extr_Command.c_PsHubCreate.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
.LC1:
	.string	"[name]"
.LC2:
	.string	"CMD_HubCreate_PROMPT_NAME"
.LC3:
	.string	"PASSWORD"
	.text
	.p2align 4
	.globl	PsHubCreate
	.type	PsHubCreate, @function
PsHubCreate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	lea	rdi, .LC2[rip]
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 152
	.cfi_def_cfa_offset 208
	mov	rbx, QWORD PTR HUB_TYPE_STANDALONE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 136[rsp], rax
	xor	eax, eax
	lea	rax, .LC1[rip]
	mov	QWORD PTR 48[rsp], rax
	movsx	rax, DWORD PTR CmdPrompt[rip]
	mov	QWORD PTR 56[rsp], rax
	call	_UU@PLT
	lea	rcx, 48[rsp]
	mov	rdx, r14
	mov	rsi, rbp
	mov	QWORD PTR 64[rsp], rax
	mov	rax, QWORD PTR CmdEvalNotEmpty[rip]
	mov	rdi, r13
	mov	r8d, 2
	mov	DWORD PTR 80[rsp], 0
	mov	QWORD PTR 72[rsp], rax
	lea	rax, .LC3[rip]
	mov	QWORD PTR 88[rsp], rax
	movsx	rax, DWORD PTR CmdPromptChoosePassword[rip]
	mov	QWORD PTR 104[rsp], 0
	mov	QWORD PTR 96[rsp], rax
	mov	QWORD PTR 112[rsp], 0
	mov	DWORD PTR 120[rsp], 0
	call	ParseCommandList@PLT
	test	rax, rax
	je	.L12
	mov	r14, rsp
	mov	esi, 40
	mov	rbp, rax
	mov	rdi, r14
	call	Zero@PLT
	mov	edi, DWORD PTR [r12]
	mov	rsi, r14
	call	ScGetServerInfo@PLT
	cmp	rax, QWORD PTR ERR_NO_ERROR[rip]
	je	.L13
.L4:
	mov	esi, 40
	mov	rdi, r14
	lea	r15, .LC0[rip]
	call	Zero@PLT
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	GetParamStr@PLT
	mov	edi, DWORD PTR 32[rsp]
	mov	esi, 4
	mov	rdx, rax
	call	StrCpy@PLT
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	mov	QWORD PTR 24[rsp], rbx
	call	GetParamStr@PLT
	mov	rdi, rax
	call	IsEmptyStr@PLT
	test	eax, eax
	je	.L14
.L6:
	mov	rdi, r15
	call	StrLen@PLT
	mov	edi, DWORD PTR 16[rsp]
	mov	rsi, r15
	mov	edx, eax
	call	Sha0@PLT
	mov	esi, DWORD PTR ADMINISTRATOR_USERNAME[rip]
	mov	edi, DWORD PTR 12[rsp]
	mov	rdx, r15
	call	HashPassword@PLT
	mov	edi, DWORD PTR [r12]
	mov	rsi, r14
	mov	DWORD PTR 8[rsp], 1
	call	ScCreateHub@PLT
	cmp	QWORD PTR ERR_NO_ERROR[rip], rax
	mov	r12, rax
	jne	.L15
	mov	rdi, rbp
	xor	r12d, r12d
	call	FreeParamValueList@PLT
.L1:
	mov	rax, QWORD PTR 136[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 152
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rdi, r13
	mov	rsi, rax
	call	CmdPrintError@PLT
	mov	rdi, rbp
	call	FreeParamValueList@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, QWORD PTR SERVER_TYPE_FARM_CONTROLLER[rip]
	cmp	QWORD PTR [rsp], rax
	je	.L17
.L5:
	mov	rdi, r14
	call	FreeRpcServerInfo@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	GetParamStr@PLT
	mov	r15, rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r12, QWORD PTR ERR_INVALID_PARAMETER[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rbx, QWORD PTR HUB_TYPE_FARM_DYNAMIC[rip]
	jmp	.L5
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	PsHubCreate, .-PsHubCreate
	.comm	SERVER_TYPE_FARM_CONTROLLER,8,8
	.comm	HUB_TYPE_STANDALONE,8,8
	.comm	HUB_TYPE_FARM_DYNAMIC,8,8
	.comm	ERR_NO_ERROR,8,8
	.comm	ERR_INVALID_PARAMETER,8,8
	.comm	CmdPromptChoosePassword,4,4
	.comm	CmdPrompt,4,4
	.comm	CmdEvalNotEmpty,8,8
	.comm	ADMINISTRATOR_USERNAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_Command.c_PsHubCreate.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"[name]\000"
	.align	2
.LC2:
	.ascii	"CMD_HubCreate_PROMPT_NAME\000"
	.align	2
.LC3:
	.ascii	"PASSWORD\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	PsHubCreate
	.syntax unified
	.arm
	.fpu softvfp
	.type	PsHubCreate, %function
PsHubCreate:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r6, r0
	ldr	r0, .L17
	ldr	lr, .L17+4
	ldr	r8, [r0]
	ldr	ip, .L17+8
	mov	r5, r3
	ldr	r3, .L17+12
	sub	sp, sp, #84
	ldr	r0, .L17+16
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #76]
	mov	r3,#0
	mov	r7, r2
	ldr	r9, [lr]
	str	ip, [sp, #36]
	str	r8, [sp, #40]
	bl	_UU
	mov	r3, #2
	mov	ip, #0
	ldr	r1, .L17+20
	str	r0, [sp, #44]
	ldr	lr, [r1]
	str	r3, [sp]
	ldr	r3, .L17+24
	str	lr, [sp, #48]
	ldr	r3, [r3]
	ldr	lr, .L17+28
	mov	r1, r4
	str	r3, [sp, #60]
	mov	r2, r7
	mov	r0, r6
	add	r3, sp, #36
	str	ip, [sp, #52]
	str	ip, [sp, #64]
	str	ip, [sp, #68]
	str	ip, [sp, #72]
	str	lr, [sp, #56]
	bl	ParseCommandList
	subs	r4, r0, #0
	beq	.L12
	mov	r1, #24
	add	r0, sp, #12
	bl	Zero
	ldr	r0, [r5]
	add	r1, sp, #12
	bl	ScGetServerInfo
	ldr	r8, .L17+32
	ldr	r3, [r8]
	cmp	r0, r3
	beq	.L13
.L4:
	mov	r1, #24
	add	r0, sp, #12
	bl	Zero
	ldr	r1, .L17+8
	mov	r0, r4
	ldr	r7, [sp, #32]
	bl	GetParamStr
	mov	r1, #4
	mov	r2, r0
	mov	r0, r7
	bl	StrCpy
	ldr	r1, .L17+28
	mov	r0, r4
	str	r9, [sp, #28]
	bl	GetParamStr
	bl	IsEmptyStr
	cmp	r0, #0
	ldrne	r7, .L17+36
	beq	.L14
.L6:
	mov	r0, r7
	ldr	r9, [sp, #24]
	bl	StrLen
	mov	r1, r7
	mov	r2, r0
	mov	r0, r9
	bl	Sha0
	ldr	r3, .L17+40
	mov	r2, r7
	ldr	r1, [r3]
	ldr	r0, [sp, #20]
	bl	HashPassword
	mov	r3, #1
	ldr	r0, [r5]
	add	r1, sp, #12
	str	r3, [sp, #16]
	bl	ScCreateHub
	ldr	r3, [r8]
	mov	r5, r0
	cmp	r3, r0
	bne	.L15
	mov	r0, r4
	bl	FreeParamValueList
	mov	r5, #0
.L1:
	ldr	r3, .L17+12
	ldr	r2, [r3]
	ldr	r3, [sp, #76]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r5
	add	sp, sp, #84
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L15:
	mov	r0, r6
	mov	r1, r5
	bl	CmdPrintError
	mov	r0, r4
	bl	FreeParamValueList
	b	.L1
.L13:
	ldr	r3, .L17+44
	ldr	r2, [sp, #12]
	ldr	r3, [r3]
	add	r0, sp, #12
	cmp	r2, r3
	ldreq	r3, .L17+48
	ldreq	r9, [r3]
	bl	FreeRpcServerInfo
	b	.L4
.L14:
	mov	r0, r4
	ldr	r1, .L17+28
	bl	GetParamStr
	mov	r7, r0
	b	.L6
.L12:
	ldr	r3, .L17+52
	ldr	r5, [r3]
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	CmdPrompt
	.word	HUB_TYPE_STANDALONE
	.word	.LC1
	.word	.LC4
	.word	.LC2
	.word	CmdEvalNotEmpty
	.word	CmdPromptChoosePassword
	.word	.LC3
	.word	ERR_NO_ERROR
	.word	.LC0
	.word	ADMINISTRATOR_USERNAME
	.word	SERVER_TYPE_FARM_CONTROLLER
	.word	HUB_TYPE_FARM_DYNAMIC
	.word	ERR_INVALID_PARAMETER
	.size	PsHubCreate, .-PsHubCreate
	.comm	SERVER_TYPE_FARM_CONTROLLER,4,4
	.comm	HUB_TYPE_STANDALONE,4,4
	.comm	HUB_TYPE_FARM_DYNAMIC,4,4
	.comm	ERR_NO_ERROR,4,4
	.comm	ERR_INVALID_PARAMETER,4,4
	.comm	CmdPromptChoosePassword,4,4
	.comm	CmdPrompt,4,4
	.comm	CmdEvalNotEmpty,4,4
	.comm	ADMINISTRATOR_USERNAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
