	.file	"extr_Command.c_PcAccountHttpHeaderAdd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"[name]"
.LC1:
	.string	"CMD_AccountCreate_Prompt_Name"
.LC2:
	.string	"NAME"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"CMD_AccountHttpHeader_Prompt_Name"
	.section	.rodata.str1.1
.LC4:
	.string	"DATA"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"CMD_AccountHttpHeader_Prompt_Data"
	.section	.rodata.str1.1
.LC6:
	.string	""
.LC7:
	.string	"\r\n"
.LC8:
	.string	"%s: %s\r\n"
	.text
	.p2align 4
	.globl	PcAccountHttpHeaderAdd
	.type	PcAccountHttpHeaderAdd, @function
PcAccountHttpHeaderAdd:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	.cfi_offset 15, -24
	lea	r15, .LC0[rip]
	push	r14
	.cfi_offset 14, -32
	mov	r14, rdx
	push	r13
	.cfi_offset 13, -40
	mov	r13, rdi
	lea	rdi, .LC1[rip]
	push	r12
	.cfi_offset 12, -48
	mov	r12, rsi
	push	rbx
	.cfi_offset 3, -56
	lea	rbx, .LC2[rip]
	sub	rsp, 216
	mov	QWORD PTR -240[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR CmdPrompt[rip]
	mov	QWORD PTR -160[rbp], r15
	mov	QWORD PTR -152[rbp], rax
	call	_UU@PLT
	lea	rdi, .LC3[rip]
	mov	QWORD PTR -128[rbp], rbx
	mov	DWORD PTR -132[rbp], 0
	cdqe
	mov	QWORD PTR -144[rbp], rax
	mov	rax, QWORD PTR CmdEvalNotEmpty[rip]
	mov	DWORD PTR -136[rbp], eax
	movsx	rax, DWORD PTR CmdPrompt[rip]
	mov	QWORD PTR -120[rbp], rax
	call	_UU@PLT
	lea	rdi, .LC5[rip]
	mov	DWORD PTR -100[rbp], 0
	cdqe
	mov	QWORD PTR -112[rbp], rax
	mov	rax, QWORD PTR CmdEvalNotEmpty[rip]
	mov	DWORD PTR -104[rbp], eax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -96[rbp], rax
	movsx	rax, DWORD PTR CmdPrompt[rip]
	mov	QWORD PTR -88[rbp], rax
	call	_UU@PLT
	mov	rdx, r14
	mov	rsi, r12
	mov	rdi, r13
	cdqe
	lea	rcx, -160[rbp]
	mov	r8d, 3
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -80[rbp], rax
	call	ParseCommandList@PLT
	test	rax, rax
	je	.L22
	lea	r14, -224[rbp]
	mov	r12, rax
	mov	esi, 32
	mov	rdi, r14
	call	Zero@PLT
	mov	rsi, r15
	mov	rdi, r12
	call	GetParamUniStr@PLT
	mov	edi, DWORD PTR -196[rbp]
	mov	esi, 4
	mov	edx, eax
	call	UniStrCpy@PLT
	mov	rax, QWORD PTR -240[rbp]
	mov	rsi, r14
	mov	edi, DWORD PTR [rax]
	call	CcGetAccount@PLT
	cmp	QWORD PTR ERR_NO_ERROR[rip], rax
	mov	r15, rax
	je	.L23
.L4:
	mov	rsi, r15
	mov	rdi, r13
	call	CmdPrintError@PLT
.L14:
	mov	rdi, r14
	call	CiFreeClientGetAccount@PLT
	mov	rdi, r12
	call	FreeParamValueList@PLT
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	lea	rsp, -40[rbp]
	mov	rax, r15
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	r15, QWORD PTR ERR_INVALID_PARAMETER[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rsi, rbx
	mov	rdi, r12
	call	GetParamStr@PLT
	mov	rdi, rax
	mov	QWORD PTR -248[rbp], rax
	call	Trim@PLT
	lea	rdx, .LC6[rip]
	mov	rsi, rdx
	mov	rdi, rdx
	call	NewHttpHeader@PLT
	lea	rsi, .LC7[rip]
	mov	r15, rax
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, QWORD PTR [rax]
	call	ParseToken@PLT
	cmp	QWORD PTR [rax], 0
	mov	r8, rax
	jle	.L5
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 8[r8]
	mov	rdi, r15
	mov	QWORD PTR -232[rbp], r8
	mov	esi, DWORD PTR [rax+rbx*4]
	add	rbx, 1
	call	AddHttpValueStr@PLT
	mov	r8, QWORD PTR -232[rbp]
	cmp	QWORD PTR [r8], rbx
	jg	.L6
.L5:
	mov	rdi, r8
	call	FreeToken@PLT
	mov	rsi, QWORD PTR -248[rbp]
	mov	rdi, r15
	call	GetHttpValue@PLT
	mov	rbx, QWORD PTR ERR_OBJECT_EXISTS[rip]
	test	rax, rax
	je	.L25
.L13:
	mov	rdi, r15
	call	FreeHttpHeader@PLT
	mov	r15, QWORD PTR ERR_NO_ERROR[rip]
	cmp	rbx, r15
	je	.L14
	mov	r15, rbx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L25:
	movsx	rax, DWORD PTR HTTP_CUSTOM_HEADER_MAX_SIZE[rip]
	mov	rcx, rsp
	mov	r11, rsp
	mov	r10, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L9
.L26:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L26
.L9:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	je	.L10
	or	QWORD PTR -8[rsp+rdx], 0
.L10:
	lea	rsi, .LC4[rip]
	mov	rdi, r12
	mov	QWORD PTR -256[rbp], r11
	mov	DWORD PTR -232[rbp], r10d
	call	GetParamStr@PLT
	mov	r10d, DWORD PTR -232[rbp]
	mov	rcx, QWORD PTR -248[rbp]
	mov	rdi, rsp
	mov	r8, rax
	lea	rdx, .LC8[rip]
	mov	esi, r10d
	call	Format@PLT
	mov	esi, 32
	mov	rdi, rsp
	call	EnSafeHttpHeaderValueStr@PLT
	mov	rdi, rsp
	call	StrLen@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, QWORD PTR [rax]
	call	StrLen@PLT
	mov	r10d, DWORD PTR -232[rbp]
	mov	r11, QWORD PTR -256[rbp]
	add	eax, ebx
	mov	rbx, QWORD PTR ERR_TOO_MANT_ITEMS[rip]
	cmp	eax, 7
	ja	.L12
	mov	rax, QWORD PTR -216[rbp]
	mov	esi, r10d
	mov	rdx, rsp
	lea	rbx, -192[rbp]
	mov	QWORD PTR -232[rbp], r11
	mov	rdi, QWORD PTR [rax]
	call	StrCat@PLT
	mov	rdi, rbx
	mov	esi, 32
	call	Zero@PLT
	mov	rax, QWORD PTR -224[rbp]
	mov	rsi, rbx
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR -216[rbp]
	mov	QWORD PTR -184[rbp], rax
	mov	rax, QWORD PTR -208[rbp]
	mov	QWORD PTR -176[rbp], rax
	mov	eax, DWORD PTR -200[rbp]
	mov	DWORD PTR -168[rbp], eax
	mov	rax, QWORD PTR -240[rbp]
	mov	edi, DWORD PTR [rax]
	call	CcSetAccount@PLT
	mov	r11, QWORD PTR -232[rbp]
	mov	rbx, rax
.L12:
	mov	rsp, r11
	jmp	.L13
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	PcAccountHttpHeaderAdd, .-PcAccountHttpHeaderAdd
	.comm	HTTP_CUSTOM_HEADER_MAX_SIZE,4,4
	.comm	ERR_TOO_MANT_ITEMS,8,8
	.comm	ERR_OBJECT_EXISTS,8,8
	.comm	ERR_NO_ERROR,8,8
	.comm	ERR_INVALID_PARAMETER,8,8
	.comm	CmdPrompt,4,4
	.comm	CmdEvalNotEmpty,8,8
	.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_PcAccountHttpHeaderAdd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"[name]\000"
	.align	2
.LC1:
	.ascii	"CMD_AccountCreate_Prompt_Name\000"
	.align	2
.LC2:
	.ascii	"NAME\000"
	.align	2
.LC3:
	.ascii	"CMD_AccountHttpHeader_Prompt_Name\000"
	.align	2
.LC4:
	.ascii	"DATA\000"
	.align	2
.LC5:
	.ascii	"CMD_AccountHttpHeader_Prompt_Data\000"
	.align	2
.LC6:
	.ascii	"\000"
	.align	2
.LC7:
	.ascii	"\015\012\000"
	.align	2
.LC8:
	.ascii	"%s: %s\015\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	PcAccountHttpHeaderAdd
	.syntax unified
	.arm
	.fpu softvfp
	.type	PcAccountHttpHeaderAdd, %function
PcAccountHttpHeaderAdd:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #148
	ldr	r9, .L21
	str	r3, [fp, #-160]
	ldr	ip, [r9]
	ldr	r3, .L21+4
	ldr	r7, .L21+8
	mov	r5, r0
	ldr	r0, .L21+12
	mov	r4, r1
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	str	ip, [fp, #-96]
	str	r7, [fp, #-100]
	bl	_UU
	mov	r10, #0
	ldr	r6, .L21+16
	ldr	ip, [r9]
	ldr	r1, [r6]
	ldr	r3, .L21+20
	str	r0, [fp, #-92]
	ldr	r0, .L21+24
	str	ip, [fp, #-76]
	str	r1, [fp, #-88]
	str	r3, [fp, #-80]
	str	r10, [fp, #-84]
	bl	_UU
	mov	r1, r0
	ldr	r0, [r6]
	ldr	r2, [r9]
	ldr	r3, .L21+28
	str	r0, [fp, #-68]
	ldr	r0, .L21+32
	str	r2, [fp, #-56]
	str	r1, [fp, #-72]
	str	r3, [fp, #-60]
	str	r10, [fp, #-64]
	bl	_UU
	mov	r3, #3
	str	r0, [fp, #-52]
	mov	r1, r4
	str	r10, [fp, #-48]
	str	r10, [fp, #-44]
	mov	r2, r8
	str	r3, [sp]
	mov	r0, r5
	sub	r3, fp, #100
	bl	ParseCommandList
	subs	r4, r0, #0
	beq	.L16
	mov	r1, #28
	sub	r0, fp, #156
	bl	Zero
	mov	r1, r7
	mov	r0, r4
	ldr	r8, [fp, #-132]
	bl	GetParamUniStr
	mov	r1, #4
	mov	r2, r0
	mov	r0, r8
	bl	UniStrCpy
	ldr	r3, [fp, #-160]
	sub	r1, fp, #156
	ldr	r0, [r3]
	bl	CcGetAccount
	ldr	r8, .L21+36
	mov	r7, r0
	ldr	r3, [r8]
	cmp	r3, r0
	beq	.L17
.L4:
	mov	r0, r5
	mov	r1, r7
	bl	CmdPrintError
.L11:
	sub	r0, fp, #156
	bl	CiFreeClientGetAccount
	mov	r0, r4
	bl	FreeParamValueList
.L1:
	ldr	r3, .L21+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	mov	r0, r7
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	ldr	r3, .L21+40
	ldr	r7, [r3]
	b	.L1
.L17:
	ldr	r1, .L21+20
	mov	r0, r4
	bl	GetParamStr
	mov	r6, r0
	bl	Trim
	ldr	r2, .L21+44
	mov	r1, r2
	mov	r0, r2
	bl	NewHttpHeader
	ldr	r3, [fp, #-148]
	mov	r7, r0
	ldr	r1, .L21+48
	ldr	r0, [r3]
	bl	ParseToken
	ldr	r2, [r0]
	mov	r9, r0
	cmp	r2, #0
	ble	.L5
.L6:
	ldr	r2, [r9, #4]
	mov	r0, r7
	ldr	r1, [r2, r10, lsl #2]
	bl	AddHttpValueStr
	ldr	r2, [r9]
	add	r10, r10, #1
	cmp	r2, r10
	bgt	.L6
.L5:
	mov	r0, r9
	bl	FreeToken
	mov	r1, r6
	mov	r0, r7
	bl	GetHttpValue
	cmp	r0, #0
	beq	.L19
	ldr	r3, .L21+52
	ldr	r6, [r3]
.L10:
	mov	r0, r7
	bl	FreeHttpHeader
	ldr	r7, [r8]
	cmp	r6, r7
	beq	.L11
	mov	r7, r6
	b	.L4
.L19:
	ldr	r3, .L21+56
	ldr	r1, .L21+28
	ldr	r9, [r3]
	str	sp, [fp, #-164]
	add	r3, r9, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r0, r4
	str	r9, [fp, #-168]
	bl	GetParamStr
	add	r10, sp, #8
	mov	r3, r6
	ldr	r2, .L21+60
	mov	r1, r9
	str	r0, [sp]
	mov	r0, r10
	bl	Format
	mov	r1, #32
	mov	r0, r10
	bl	EnSafeHttpHeaderValueStr
	mov	r0, r10
	bl	StrLen
	ldr	r3, [fp, #-148]
	mov	r9, r0
	ldr	r0, [r3]
	bl	StrLen
	add	r9, r9, r0
	cmp	r9, #3
	bls	.L20
	ldr	r3, .L21+64
	ldr	r6, [r3]
.L9:
	ldr	sp, [fp, #-164]
	b	.L10
.L20:
	ldr	r3, [fp, #-148]
	mov	r2, r10
	ldr	r0, [r3]
	ldr	r1, [fp, #-168]
	bl	StrCat
	mov	r1, #28
	sub	r0, fp, #128
	bl	Zero
	ldr	ip, [fp, #-136]
	ldr	r2, [fp, #-140]
	ldr	r3, [fp, #-144]
	ldr	r0, [fp, #-160]
	str	ip, [fp, #-108]
	str	r2, [fp, #-112]
	ldr	ip, [fp, #-148]
	ldr	r2, [fp, #-152]
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-156]
	ldr	r0, [r0]
	sub	r1, fp, #128
	str	ip, [fp, #-120]
	str	r2, [fp, #-124]
	str	r3, [fp, #-128]
	bl	CcSetAccount
	mov	r6, r0
	b	.L9
.L18:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	CmdPrompt
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	CmdEvalNotEmpty
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	ERR_NO_ERROR
	.word	ERR_INVALID_PARAMETER
	.word	.LC6
	.word	.LC7
	.word	ERR_OBJECT_EXISTS
	.word	HTTP_CUSTOM_HEADER_MAX_SIZE
	.word	.LC8
	.word	ERR_TOO_MANT_ITEMS
	.size	PcAccountHttpHeaderAdd, .-PcAccountHttpHeaderAdd
	.comm	HTTP_CUSTOM_HEADER_MAX_SIZE,4,4
	.comm	ERR_TOO_MANT_ITEMS,4,4
	.comm	ERR_OBJECT_EXISTS,4,4
	.comm	ERR_NO_ERROR,4,4
	.comm	ERR_INVALID_PARAMETER,4,4
	.comm	CmdPrompt,4,4
	.comm	CmdEvalNotEmpty,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
