	.file	"extr_nc_redis.c_redis_fragment_argx.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"*%d\r\n$4\r\nmget\r\n"
.LC1:
	.string	"*%d\r\n$3\r\ndel\r\n"
.LC2:
	.string	"*%d\r\n$4\r\nmset\r\n"
	.text
	.p2align 4
	.type	redis_fragment_argx, @function
redis_fragment_argx:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, ecx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	edi, DWORD PTR 60[rdi]
	mov	DWORD PTR 28[rsp], esi
	mov	QWORD PTR 16[rsp], rdx
	call	array_n@PLT
	xor	edi, edi
	mov	r9d, eax
	mov	eax, DWORD PTR 0[r13]
	sub	eax, 1
	cdq
	idiv	ebx
	cmp	eax, r9d
	sete	dil
	call	ASSERT@PLT
	lea	edi, 0[0+r15*8]
	call	nc_zalloc@PLT
	test	rax, rax
	je	.L37
	xor	edi, edi
	cmp	QWORD PTR 40[r13], 0
	mov	rbp, rax
	sete	dil
	call	ASSERT@PLT
	mov	edi, DWORD PTR 60[r13]
	call	array_n@PLT
	lea	edi, 0[0+rax*8]
	call	nc_alloc@PLT
	mov	QWORD PTR 40[r13], rax
	test	rax, rax
	je	.L38
	lea	rdi, 64[r13]
	call	STAILQ_FIRST@PLT
	mov	esi, 3
	mov	rcx, QWORD PTR 8[rax]
	mov	QWORD PTR [rax], rcx
.L5:
	cmp	BYTE PTR [rcx], 10
	lea	rdx, 1[rcx]
	je	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	mov	QWORD PTR [rax], rdx
	mov	rcx, rdx
	add	rdx, 1
	cmp	BYTE PTR -1[rdx], 10
	jne	.L6
.L9:
	add	rcx, 1
	mov	QWORD PTR [rax], rcx
	sub	esi, 1
	jne	.L5
	xor	eax, eax
	xor	r15d, r15d
	call	msg_gen_frag_id@PLT
	mov	QWORD PTR 16[r13], 0
	mov	DWORD PTR 32[r13], eax
	mov	QWORD PTR 24[r13], r13
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR 40[r13]
	mov	rsi, QWORD PTR [r12]
	mov	rdi, r14
	mov	rdx, QWORD PTR 8[r12]
	mov	QWORD PTR [rax+r15*8], r14
	add	DWORD PTR [r14], 1
	sub	rdx, rsi
	call	redis_append_key@PLT
	cmp	DWORD PTR NC_OK[rip], eax
	mov	r12d, eax
	jne	.L36
	cmp	ebx, 1
	je	.L13
	xor	edi, edi
	mov	rsi, r13
	call	redis_copy_bulk@PLT
	cmp	DWORD PTR NC_OK[rip], eax
	mov	r12d, eax
	jne	.L36
	mov	rsi, r13
	mov	rdi, r14
	call	redis_copy_bulk@PLT
	cmp	DWORD PTR NC_OK[rip], eax
	mov	r12d, eax
	jne	.L36
	add	DWORD PTR [r14], 1
.L13:
	add	r15, 1
.L10:
	mov	edi, DWORD PTR 60[r13]
	call	array_n@PLT
	cmp	eax, r15d
	jle	.L40
	mov	edi, DWORD PTR 60[r13]
	mov	esi, r15d
	call	array_get@PLT
	mov	rdi, r13
	mov	rsi, QWORD PTR [rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	r12, rax
	sub	rdx, rsi
	call	msg_backend_idx@PLT
	cdqe
	lea	r9, 0[rbp+rax*8]
	mov	r14, QWORD PTR [r9]
	test	r14, r14
	jne	.L11
	mov	edx, DWORD PTR 48[r13]
	mov	esi, DWORD PTR 52[r13]
	mov	QWORD PTR 8[rsp], r9
	mov	edi, DWORD PTR 56[r13]
	call	msg_get@PLT
	mov	r9, QWORD PTR 8[rsp]
	mov	r14, rax
	mov	QWORD PTR [r9], rax
	test	rax, rax
	jne	.L11
.L38:
	mov	rdi, rbp
	call	nc_free@PLT
.L37:
	mov	r12d, DWORD PTR NC_ENOMEM[rip]
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L36:
	.cfi_restore_state
	mov	rdi, rbp
	call	nc_free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L40:
	mov	eax, DWORD PTR 28[rsp]
	test	eax, eax
	jle	.L25
	mov	eax, DWORD PTR 28[rsp]
	mov	rbx, rbp
	lea	r14, .LC2[rip]
	sub	eax, 1
	lea	rax, 8[rbp+rax*8]
	mov	QWORD PTR 8[rsp], rax
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L22:
	xor	eax, eax
	call	NOT_REACHED@PLT
.L20:
	cmp	DWORD PTR NC_OK[rip], r12d
	jne	.L36
	mov	rax, QWORD PTR 8[r13]
	mov	edx, DWORD PTR m_tqe[rip]
	mov	rsi, r15
	mov	rdi, QWORD PTR 16[rsp]
	mov	QWORD PTR 8[r15], rax
	mov	eax, DWORD PTR 32[r13]
	mov	DWORD PTR 32[r15], eax
	mov	rax, QWORD PTR 24[r13]
	mov	QWORD PTR 24[r15], rax
	call	TAILQ_INSERT_TAIL@PLT
	add	QWORD PTR 16[r13], 1
.L18:
	add	rbx, 8
	cmp	QWORD PTR 8[rsp], rbx
	je	.L25
.L24:
	mov	r15, QWORD PTR [rbx]
	test	r15, r15
	je	.L18
	mov	rax, QWORD PTR 8[r13]
	cmp	rax, QWORD PTR MSG_REQ_REDIS_MGET[rip]
	je	.L41
	cmp	rax, QWORD PTR MSG_REQ_REDIS_DEL[rip]
	je	.L42
	cmp	rax, QWORD PTR MSG_REQ_REDIS_MSET[rip]
	jne	.L22
	mov	eax, DWORD PTR [r15]
	mov	rsi, r14
	mov	rdi, r15
	lea	edx, 1[rax]
	call	msg_prepend_format@PLT
	mov	r12d, eax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L41:
	mov	eax, DWORD PTR [r15]
	lea	rsi, .LC0[rip]
	mov	rdi, r15
	lea	edx, 1[rax]
	call	msg_prepend_format@PLT
	mov	r12d, eax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L42:
	mov	eax, DWORD PTR [r15]
	lea	rsi, .LC1[rip]
	mov	rdi, r15
	lea	edx, 1[rax]
	call	msg_prepend_format@PLT
	mov	r12d, eax
	jmp	.L20
.L25:
	mov	rdi, rbp
	call	nc_free@PLT
	mov	r12d, DWORD PTR NC_OK[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	redis_fragment_argx, .-redis_fragment_argx
	.comm	m_tqe,4,4
	.comm	NC_OK,4,4
	.comm	NC_ENOMEM,4,4
	.comm	MSG_REQ_REDIS_MSET,8,8
	.comm	MSG_REQ_REDIS_MGET,8,8
	.comm	MSG_REQ_REDIS_DEL,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_nc_redis.c_redis_fragment_argx.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"*%d\015\012$4\015\012mget\015\012\000"
	.align	2
.LC1:
	.ascii	"*%d\015\012$3\015\012del\015\012\000"
	.align	2
.LC2:
	.ascii	"*%d\015\012$4\015\012mset\015\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	redis_fragment_argx, %function
redis_fragment_argx:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	sub	sp, sp, #20
	ldr	r0, [r0, #36]
	mov	r10, r3
	stmib	sp, {r1, r2}
	mov	r7, r1
	bl	array_n
	mov	r5, r0
	ldr	r0, [r6]
	mov	r1, r10
	sub	r0, r0, #1
	bl	__aeabi_idiv
	sub	r0, r0, r5
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ASSERT
	lsl	r0, r7, #2
	bl	nc_zalloc
	subs	r9, r0, #0
	beq	.L38
	ldr	r0, [r6, #20]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ASSERT
	ldr	r0, [r6, #36]
	bl	array_n
	lsl	r0, r0, #2
	bl	nc_alloc
	cmp	r0, #0
	str	r0, [r6, #20]
	beq	.L39
	add	r0, r6, #40
	bl	STAILQ_FIRST
	mov	r7, #3
	ldr	r3, [r0, #4]
	str	r3, [r0]
.L36:
	ldrb	r2, [r3]	@ zero_extendqisi2
	add	r3, r3, #1
	cmp	r2, #10
	strne	r3, [r0]
	bne	.L36
	subs	r7, r7, #1
	str	r3, [r0]
	bne	.L36
	bl	msg_gen_frag_id
	ldr	r8, .L48
	str	r7, [r6, #8]
	str	r0, [r6, #16]
	str	r6, [r6, #12]
.L9:
	ldr	r0, [r6, #36]
	bl	array_n
	cmp	r0, r7
	ble	.L41
.L15:
	mov	r1, r7
	ldr	r0, [r6, #36]
	bl	array_get
	ldm	r0, {r1, r2}
	mov	r4, r0
	sub	r2, r2, r1
	mov	r0, r6
	bl	msg_backend_idx
	ldr	r5, [r9, r0, lsl #2]
	mov	fp, r0
	cmp	r5, #0
	beq	.L42
.L10:
	ldm	r4, {r1, r2}
	ldr	r3, [r5]
	ldr	r0, [r6, #20]
	add	r3, r3, #1
	str	r5, [r0, r7, lsl #2]
	sub	r2, r2, r1
	str	r3, [r5]
	mov	r0, r5
	bl	redis_append_key
	ldr	r3, [r8]
	mov	r4, r0
	cmp	r3, r0
	add	r7, r7, #1
	bne	.L37
	cmp	r10, #1
	beq	.L9
	mov	r1, r6
	mov	r0, #0
	bl	redis_copy_bulk
	ldr	r3, [r8]
	mov	r4, r0
	cmp	r3, r0
	bne	.L37
	mov	r1, r6
	mov	r0, r5
	bl	redis_copy_bulk
	ldr	r3, [r8]
	mov	r4, r0
	cmp	r3, r0
	bne	.L37
	ldr	r3, [r5]
	ldr	r0, [r6, #36]
	add	r3, r3, #1
	str	r3, [r5]
	bl	array_n
	cmp	r0, r7
	bgt	.L15
.L41:
	ldr	r3, [sp, #4]
	cmp	r3, #0
	ble	.L43
	mov	fp, r6
	mov	r5, #0
	ldr	r8, .L48
	ldr	r10, .L48+4
	ldr	r6, [sp, #8]
	sub	r7, r9, #4
	str	r9, [sp, #12]
	b	.L23
.L21:
	bl	NOT_REACHED
.L19:
	ldr	r2, [r8]
	cmp	r2, r4
	bne	.L44
	ldr	r0, [fp, #4]
	ldr	r1, [fp, #16]
	ldr	r2, [fp, #12]
	ldr	r3, .L48+8
	str	r0, [r9, #4]
	str	r1, [r9, #16]
	str	r2, [r9, #12]
	mov	r1, r9
	ldr	r2, [r3]
	mov	r0, r6
	bl	TAILQ_INSERT_TAIL
	ldr	r2, [fp, #8]
	add	r2, r2, #1
	str	r2, [fp, #8]
.L17:
	ldr	r3, [sp, #4]
	add	r5, r5, #1
	cmp	r3, r5
	beq	.L45
.L23:
	ldr	r9, [r7, #4]!
	cmp	r9, #0
	beq	.L17
	ldr	r2, [fp, #4]
	ldr	r1, [r10]
	cmp	r2, r1
	beq	.L46
	ldr	r3, .L48+12
	ldr	r1, [r3]
	cmp	r2, r1
	beq	.L47
	ldr	r3, .L48+16
	ldr	r1, [r3]
	cmp	r2, r1
	bne	.L21
	ldr	r2, [r9]
	mov	r0, r9
	ldr	r1, .L48+20
	add	r2, r2, #1
	bl	msg_prepend_format
	mov	r4, r0
	b	.L19
.L42:
	ldr	r2, [r6, #24]
	ldr	r1, [r6, #28]
	ldr	r0, [r6, #32]
	bl	msg_get
	cmp	r0, #0
	mov	r5, r0
	str	r0, [r9, fp, lsl #2]
	bne	.L10
.L39:
	mov	r0, r9
	bl	nc_free
.L38:
	ldr	r3, .L48+24
	ldr	r4, [r3]
.L1:
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L44:
	ldr	r9, [sp, #12]
.L37:
	mov	r0, r9
	bl	nc_free
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L46:
	ldr	r2, [r9]
	mov	r0, r9
	ldr	r1, .L48+28
	add	r2, r2, #1
	bl	msg_prepend_format
	mov	r4, r0
	b	.L19
.L47:
	ldr	r2, [r9]
	mov	r0, r9
	ldr	r1, .L48+32
	add	r2, r2, #1
	bl	msg_prepend_format
	mov	r4, r0
	b	.L19
.L45:
	ldr	r9, [sp, #12]
.L24:
	mov	r0, r9
	bl	nc_free
	ldr	r4, [r8]
	b	.L1
.L43:
	ldr	r8, .L48
	b	.L24
.L49:
	.align	2
.L48:
	.word	NC_OK
	.word	MSG_REQ_REDIS_MGET
	.word	m_tqe
	.word	MSG_REQ_REDIS_DEL
	.word	MSG_REQ_REDIS_MSET
	.word	.LC2
	.word	NC_ENOMEM
	.word	.LC0
	.word	.LC1
	.size	redis_fragment_argx, .-redis_fragment_argx
	.comm	m_tqe,4,4
	.comm	NC_OK,4,4
	.comm	NC_ENOMEM,4,4
	.comm	MSG_REQ_REDIS_MSET,4,4
	.comm	MSG_REQ_REDIS_MGET,4,4
	.comm	MSG_REQ_REDIS_DEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
