	.file	"extr_testapp.c_test_binary_get_impl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	test_binary_get_impl, @function
test_binary_get_impl:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	mov	edi, 3600
	sub	rsp, 3144
	.cfi_def_cfa_offset 3200
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 3128[rsp], rax
	xor	eax, eax
	call	htonl@PLT
	cmp	DWORD PTR PROTOCOL_BINARY_CMD_GAT[rip], r12d
	mov	rdi, rbx
	mov	DWORD PTR 44[rsp], eax
	je	.L2
	cmp	DWORD PTR PROTOCOL_BINARY_CMD_GATK[rip], r12d
	je	.L2
	call	strlen@PLT
	mov	QWORD PTR [rsp], 0
	mov	QWORD PTR 8[rsp], 0
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	call	strlen@PLT
	lea	rcx, 44[rsp]
	mov	QWORD PTR 8[rsp], 4
	mov	QWORD PTR [rsp], rcx
.L3:
	lea	r14, 48[rsp]
	sub	rsp, 8
	.cfi_def_cfa_offset 3208
	mov	r9, rbx
	mov	edx, r12d
	mov	QWORD PTR 24[rsp], r14
	mov	rdi, r14
	mov	esi, 1024
	xor	ebp, ebp
	push	0
	.cfi_def_cfa_offset 3216
	push	0
	.cfi_def_cfa_offset 3224
	push	rax
	.cfi_def_cfa_offset 3232
	mov	r8, QWORD PTR 40[rsp]
	mov	rcx, QWORD PTR 32[rsp]
	call	ext_command@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 3200
	xor	edx, edx
	mov	rdi, r14
	lea	r13, 1072[rsp]
	mov	rsi, rax
	call	safe_send@PLT
	mov	esi, 1024
	mov	rdi, r13
	call	safe_recv_packet@PLT
	mov	edx, DWORD PTR PROTOCOL_BINARY_RESPONSE_KEY_ENOENT[rip]
	mov	esi, r12d
	mov	rdi, r13
	call	validate_response_header@PLT
	mov	rdi, rbx
	call	strlen@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 3208
	xor	r9d, r9d
	mov	rcx, rbx
	push	0
	.cfi_def_cfa_offset 3216
	mov	edx, DWORD PTR PROTOCOL_BINARY_CMD_ADD[rip]
	mov	r8d, eax
	mov	rdi, r14
	push	0
	.cfi_def_cfa_offset 3224
	mov	esi, 1024
	push	0
	.cfi_def_cfa_offset 3232
	call	storage_command@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 3200
	xor	edx, edx
	mov	rdi, r14
	mov	rsi, rax
	lea	r14, 2096[rsp]
	call	safe_send@PLT
	mov	esi, 1024
	mov	rdi, r13
	call	safe_recv_packet@PLT
	mov	edx, DWORD PTR PROTOCOL_BINARY_RESPONSE_SUCCESS[rip]
	mov	esi, DWORD PTR PROTOCOL_BINARY_CMD_ADD[rip]
	mov	rdi, r13
	call	validate_response_header@PLT
	mov	DWORD PTR 28[rsp], 10
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, rbx
	call	strlen@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 3208
	mov	r9, rbx
	mov	edx, r12d
	push	0
	.cfi_def_cfa_offset 3216
	mov	esi, 1024
	mov	rdi, r14
	push	0
	.cfi_def_cfa_offset 3224
	push	rax
	.cfi_def_cfa_offset 3232
	mov	r8, QWORD PTR 40[rsp]
	mov	rcx, QWORD PTR 32[rsp]
	call	ext_command@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 3200
	mov	rsi, r14
	mov	r15, rax
	mov	rax, QWORD PTR 16[rsp]
	mov	rdx, r15
	lea	rdi, [rax+rbp]
	add	rbp, r15
	call	memcpy@PLT
	sub	DWORD PTR 28[rsp], 1
	jne	.L4
	mov	rdi, QWORD PTR 16[rsp]
	xor	edx, edx
	mov	rsi, rbp
	mov	ebx, 10
	call	safe_send@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, 1024
	mov	rdi, r13
	call	safe_recv_packet@PLT
	mov	edx, DWORD PTR PROTOCOL_BINARY_RESPONSE_SUCCESS[rip]
	mov	esi, r12d
	mov	rdi, r13
	call	validate_response_header@PLT
	sub	ebx, 1
	jne	.L5
	mov	rcx, QWORD PTR 3128[rsp]
	xor	rcx, QWORD PTR fs:40
	mov	eax, DWORD PTR TEST_PASS[rip]
	jne	.L11
	add	rsp, 3144
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_binary_get_impl, .-test_binary_get_impl
	.comm	TEST_PASS,4,4
	.comm	PROTOCOL_BINARY_RESPONSE_SUCCESS,4,4
	.comm	PROTOCOL_BINARY_RESPONSE_KEY_ENOENT,4,4
	.comm	PROTOCOL_BINARY_CMD_GATK,4,4
	.comm	PROTOCOL_BINARY_CMD_GAT,4,4
	.comm	PROTOCOL_BINARY_CMD_ADD,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_testapp.c_test_binary_get_impl.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_binary_get_impl, %function
test_binary_get_impl:
	@ args = 0, pretend = 0, frame = 3088
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L13
	sub	sp, sp, #3104
	sub	sp, sp, #12
	mov	r7, r1
	mov	r6, r0
	mov	r0, #3600
	ldr	r3, [r3]
	str	r3, [sp, #3108]
	mov	r3,#0
	bl	htonl
	ldr	r3, .L13+4
	str	r0, [sp, #32]
	ldr	r3, [r3]
	cmp	r3, r7
	beq	.L6
	ldr	r3, .L13+8
	ldr	r3, [r3]
	cmp	r3, r7
	beq	.L6
	mov	r10, #0
	add	r4, sp, #40
	mov	r8, r10
	add	r9, sp, #32
	b	.L2
.L6:
	add	r4, sp, #40
	sub	r9, r4, #8
	mov	r8, r9
	mov	r10, #4
.L2:
	mov	r0, r6
	mov	r5, #0
	bl	strlen
	sub	r3, r4, #4
	str	r3, [sp, #28]
	mov	r2, r7
	mov	r3, r8
	mov	r1, #1024
	str	r0, [sp, #8]
	str	r5, [sp, #16]
	str	r5, [sp, #12]
	ldr	r0, [sp, #28]
	str	r6, [sp, #4]
	str	r10, [sp]
	bl	ext_command
	mov	r2, r5
	mov	r1, r0
	ldr	r0, [sp, #28]
	bl	safe_send
	add	r0, sp, #1056
	mov	r1, #1024
	add	r0, r0, #4
	bl	safe_recv_packet
	ldr	r3, .L13+12
	add	r0, sp, #1056
	ldr	r2, [r3]
	mov	r1, r7
	add	r0, r0, #4
	bl	validate_response_header
	mov	r0, r6
	bl	strlen
	stm	sp, {r0, r5}
	ldr	r8, .L13+16
	str	r5, [sp, #16]
	str	r5, [sp, #12]
	str	r5, [sp, #8]
	mov	r3, r6
	ldr	r2, [r8]
	mov	r1, #1024
	ldr	r0, [sp, #28]
	bl	storage_command
	mov	r2, r5
	mov	r1, r0
	ldr	r0, [sp, #28]
	bl	safe_send
	add	r0, sp, #1056
	mov	r1, #1024
	add	r0, r0, #4
	bl	safe_recv_packet
	ldr	r3, .L13+20
	add	r0, sp, #1056
	ldr	r1, [r8]
	ldr	r2, [r3]
	add	r0, r0, #4
	bl	validate_response_header
	cmp	r10, r5
	mov	r4, r5
	moveq	r9, r5
	mov	r8, r5
	mov	r5, #10
.L3:
	mov	r0, r6
	bl	strlen
	str	r0, [sp, #8]
	add	r0, sp, #2080
	mov	r3, r9
	mov	r2, r7
	mov	r1, #1024
	str	r8, [sp, #16]
	str	r8, [sp, #12]
	str	r6, [sp, #4]
	str	r10, [sp]
	add	r0, r0, #4
	bl	ext_command
	mov	fp, r0
	ldr	r3, [sp, #28]
	add	r1, sp, #2080
	mov	r2, r0
	add	r1, r1, #4
	add	r0, r3, r4
	bl	memcpy
	subs	r5, r5, #1
	add	r4, r4, fp
	bne	.L3
	mov	r1, r4
	mov	r2, r5
	ldr	r0, [sp, #28]
	bl	safe_send
	mov	r4, #10
.L4:
	add	r0, sp, #1056
	mov	r1, #1024
	add	r0, r0, #4
	bl	safe_recv_packet
	ldr	r3, .L13+20
	add	r0, sp, #1056
	mov	r1, r7
	ldr	r2, [r3]
	add	r0, r0, #4
	bl	validate_response_header
	subs	r4, r4, #1
	bne	.L4
	ldr	r3, .L13+24
	ldr	r0, [r3]
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #3108]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #3104
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	PROTOCOL_BINARY_CMD_GAT
	.word	PROTOCOL_BINARY_CMD_GATK
	.word	PROTOCOL_BINARY_RESPONSE_KEY_ENOENT
	.word	PROTOCOL_BINARY_CMD_ADD
	.word	PROTOCOL_BINARY_RESPONSE_SUCCESS
	.word	TEST_PASS
	.size	test_binary_get_impl, .-test_binary_get_impl
	.comm	TEST_PASS,4,4
	.comm	PROTOCOL_BINARY_RESPONSE_SUCCESS,4,4
	.comm	PROTOCOL_BINARY_RESPONSE_KEY_ENOENT,4,4
	.comm	PROTOCOL_BINARY_CMD_GATK,4,4
	.comm	PROTOCOL_BINARY_CMD_GAT,4,4
	.comm	PROTOCOL_BINARY_CMD_ADD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
