	.file	"extr_memcached.c_try_read_command_asciiauth.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"CLIENT_ERROR unauthenticated"
.LC1:
	.string	"set"
.LC2:
	.string	"\r\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"CLIENT_ERROR bad command line termination"
	.align 8
.LC4:
	.string	"CLIENT_ERROR bad authentication token format"
	.section	.rodata.str1.1
.LC5:
	.string	"STORED"
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"CLIENT_ERROR authentication failure"
	.text
	.p2align 4
	.type	try_read_command_asciiauth, @function
try_read_command_asciiauth:
.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
	push	r14
	push	r13
	push	r12
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12, rdi
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_TOKENS[rip]
	mov	rcx, rsp
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L26:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L26
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L27
.L4:
	lea	r14, 3[rsp]
	mov	r13d, DWORD PTR [r12]
	mov	edx, DWORD PTR 4[r12]
	mov	rbx, r14
	and	r14, -4
	shr	rbx, 2
	test	r13d, r13d
	je	.L28
	mov	eax, DWORD PTR 16[r12]
.L11:
	xor	r13d, r13d
	cmp	eax, edx
	jg	.L1
	mov	r13, QWORD PTR 8[r12]
	sub	edx, eax
	cdqe
	mov	DWORD PTR [r12], 0
	mov	DWORD PTR 4[r12], edx
	lea	rsi, .LC2[rip]
	lea	rdx, 0[r13+rax]
	lea	rdi, -2[r13+rax]
	mov	QWORD PTR 8[r12], rdx
	mov	edx, 2
	call	strncmp@PLT
	test	rax, rax
	jne	.L29
	movsx	rax, DWORD PTR 16[r12]
	mov	rsi, r14
	mov	rdi, r13
	mov	BYTE PTR -2[r13+rax], 0
	mov	edx, DWORD PTR MAX_TOKENS[rip]
	call	tokenize_command@PLT
	cmp	rax, 2
	jbe	.L30
	mov	esi, DWORD PTR 4[0+rbx*4]
	mov	edi, DWORD PTR 0[0+rbx*4]
	call	authfile_check@PLT
	mov	r13d, eax
	cmp	eax, 1
	je	.L31
	lea	rsi, .LC6[rip]
	mov	rdi, r12
	mov	r13d, 1
	call	out_string@PLT
	mov	rdi, QWORD PTR 24[r12]
	call	pthread_mutex_lock@PLT
	mov	rdi, QWORD PTR 24[r12]
	add	DWORD PTR 8[rdi], 1
	add	DWORD PTR 4[rdi], 1
	call	pthread_mutex_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L32
	lea	rsp, -40[rbp]
	mov	eax, r13d
	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
.L28:
	.cfi_restore_state
	mov	DWORD PTR -60[rbp], 0
	cmp	edx, 1
	jle	.L1
	mov	rdi, QWORD PTR 8[r12]
	mov	esi, 10
	call	memchr@PLT
	mov	r15, rax
	test	rax, rax
	je	.L33
	mov	BYTE PTR [rax], 0
	mov	edx, DWORD PTR MAX_TOKENS[rip]
	mov	rsi, r14
	mov	rdi, QWORD PTR 8[r12]
	call	tokenize_command@PLT
	mov	r8, rax
	mov	rax, QWORD PTR 8[r12]
	sub	r15, rax
	mov	edx, r15d
	lea	rax, 1[rax+r15]
	not	edx
	mov	QWORD PTR 8[r12], rax
	add	DWORD PTR 4[r12], edx
	cmp	r8, 5
	jbe	.L10
	mov	edi, DWORD PTR 0[0+rbx*4]
	lea	rsi, .LC1[rip]
	call	strcmp@PLT
	test	rax, rax
	je	.L34
.L10:
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	mov	r13d, 1
	call	out_string@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L33:
	cmp	DWORD PTR 4[r12], 1024
	jle	.L1
	mov	esi, DWORD PTR conn_closing[rip]
	mov	rdi, r12
	mov	r13d, 1
	call	conn_set_state@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L29:
	lea	rsi, .LC3[rip]
	mov	rdi, r12
	mov	r13d, 1
	call	out_string@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L30:
	lea	rsi, .LC4[rip]
	mov	rdi, r12
	mov	r13d, 1
	call	out_string@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L34:
	mov	edi, DWORD PTR 16[0+rbx*4]
	lea	rsi, -60[rbp]
	call	safe_strtoul@PLT
	test	eax, eax
	je	.L10
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, DWORD PTR 4[r12]
	mov	DWORD PTR [r12], 1
	add	eax, 2
	mov	DWORD PTR 16[r12], eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L31:
	lea	rsi, .LC5[rip]
	mov	rdi, r12
	call	out_string@PLT
	mov	eax, DWORD PTR try_read_command_ascii[rip]
	mov	rdi, QWORD PTR 24[r12]
	mov	DWORD PTR 20[r12], 1
	mov	DWORD PTR 32[r12], eax
	call	pthread_mutex_lock@PLT
	mov	rdi, QWORD PTR 24[r12]
	add	DWORD PTR 8[rdi], 1
	call	pthread_mutex_unlock@PLT
	jmp	.L1
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	try_read_command_asciiauth, .-try_read_command_asciiauth
	.comm	try_read_command_ascii,4,4
	.comm	conn_closing,4,4
	.comm	MAX_TOKENS,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_memcached.c_try_read_command_asciiauth.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CLIENT_ERROR unauthenticated\000"
	.align	2
.LC1:
	.ascii	"set\000"
	.align	2
.LC2:
	.ascii	"CLIENT_ERROR bad command line termination\000"
	.align	2
.LC3:
	.ascii	"CLIENT_ERROR bad authentication token format\000"
	.align	2
.LC4:
	.ascii	"STORED\000"
	.align	2
.LC5:
	.ascii	"CLIENT_ERROR authentication failure\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	try_read_command_asciiauth, %function
try_read_command_asciiauth:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #12
	ldr	r6, .L27
	ldr	r5, [r0]
	ldr	r3, [r6]
	cmp	r5, #0
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L27+4
	mov	r4, r0
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r7, sp
	ldr	r2, [r0, #4]
	bne	.L2
	cmp	r2, #1
	str	r5, [fp, #-36]
	ble	.L1
	mov	r1, #10
	ldr	r0, [r0, #8]
	bl	memchr
	subs	r8, r0, #0
	beq	.L22
	strb	r5, [r8]
	ldr	r2, [r6]
	mov	r1, r7
	ldr	r0, [r4, #8]
	bl	tokenize_command
	ldmib	r4, {r2, r3}
	sub	r8, r8, r3
	add	r8, r8, #1
	add	r3, r3, r8
	cmp	r0, #5
	sub	r8, r2, r8
	str	r3, [r4, #8]
	str	r8, [r4, #4]
	bls	.L7
	ldr	r1, .L27+8
	ldr	r0, [r7]
	bl	strcmp
	cmp	r0, #0
	beq	.L23
.L7:
	mov	r0, r4
	ldr	r1, .L27+12
	bl	out_string
	mov	r5, #1
.L1:
	ldr	r3, .L27+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r5
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L2:
	ldr	r3, [r0, #12]
.L8:
	cmp	r3, r2
	movgt	r5, #0
	bgt	.L1
	mov	r1, #0
	ldr	r0, [r4, #8]
	sub	r2, r2, r3
	str	r2, [r4, #4]
	add	r2, r0, r3
	str	r1, [r4]
	sub	r3, r3, #2
	str	r2, [r4, #8]
	ldrb	r2, [r0, r3]	@ zero_extendqisi2
	add	r1, r0, r3
	cmp	r2, #13
	bne	.L16
	ldrb	r2, [r1, #1]	@ zero_extendqisi2
	subs	r2, r2, #10
	bne	.L16
	strb	r2, [r0, r3]
	mov	r1, r7
	ldr	r2, [r6]
	bl	tokenize_command
	cmp	r0, #2
	bls	.L25
	ldm	r7, {r0, r1}
	bl	authfile_check
	cmp	r0, #1
	mov	r5, r0
	beq	.L26
	mov	r5, #1
	ldr	r1, .L27+16
	mov	r0, r4
	bl	out_string
	ldr	r0, [r4, #20]
	bl	pthread_mutex_lock
	ldr	r0, [r4, #20]
	ldr	r2, [r0, #8]
	ldr	r3, [r0, #4]
	add	r2, r2, r5
	add	r3, r3, r5
	str	r2, [r0, #8]
	str	r3, [r0, #4]
	bl	pthread_mutex_unlock
	b	.L1
.L16:
	mov	r0, r4
	ldr	r1, .L27+20
	bl	out_string
	mov	r5, #1
	b	.L1
.L22:
	ldr	r3, [r4, #4]
	cmp	r3, #1024
	ble	.L1
	ldr	r3, .L27+24
	mov	r0, r4
	ldr	r1, [r3]
	bl	conn_set_state
	mov	r5, #1
	b	.L1
.L25:
	mov	r0, r4
	ldr	r1, .L27+28
	bl	out_string
	mov	r5, #1
	b	.L1
.L26:
	ldr	r1, .L27+32
	mov	r0, r4
	bl	out_string
	ldr	r3, .L27+36
	ldr	r0, [r4, #20]
	ldr	r3, [r3]
	str	r5, [r4, #16]
	str	r3, [r4, #24]
	bl	pthread_mutex_lock
	ldr	r0, [r4, #20]
	ldr	r3, [r0, #8]
	add	r3, r3, #1
	str	r3, [r0, #8]
	bl	pthread_mutex_unlock
	b	.L1
.L23:
	ldr	r0, [r7, #16]
	sub	r1, fp, #36
	bl	safe_strtoul
	cmp	r0, #0
	beq	.L7
	mov	r2, #1
	ldr	r3, [fp, #-36]
	str	r2, [r4]
	add	r3, r3, #2
	ldr	r2, [r4, #4]
	str	r3, [r4, #12]
	b	.L8
.L24:
	bl	__stack_chk_fail
.L28:
	.align	2
.L27:
	.word	MAX_TOKENS
	.word	.LC6
	.word	.LC1
	.word	.LC0
	.word	.LC5
	.word	.LC2
	.word	conn_closing
	.word	.LC3
	.word	.LC4
	.word	try_read_command_ascii
	.size	try_read_command_asciiauth, .-try_read_command_asciiauth
	.comm	try_read_command_ascii,4,4
	.comm	conn_closing,4,4
	.comm	MAX_TOKENS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
