	.file	"extr_tlclient.c_unpack_packet.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Z_DATA_ERROR"
.LC1:
	.string	"Z_MEM_ERROR"
.LC2:
	.string	"Z_BUF_ERROR"
.LC3:
	.string	"???"
.LC4:
	.string	"ilen: %d, slen: %d\n"
.LC5:
	.string	"tl_fetch_string fail"
.LC6:
	.string	"packet contains extra %d ints"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC7:
	.string	"uncompress (%p, %d, %p, %d) returns %s"
	.align 8
.LC8:
	.string	"destLen(%d) isn't multiple of 4"
	.text
	.p2align 4
	.type	unpack_packet, @function
unpack_packet:
.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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	lea	ebx, 3[rsi]
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	test	esi, esi
	mov	QWORD PTR [rdx], 0
	cmovns	ebx, esi
	mov	DWORD PTR [rcx], 0
	sar	ebx, 2
	lea	r15d, -6[rbx]
	test	r15d, r15d
	jle	.L10
	mov	r13, rdi
	mov	rdi, QWORD PTR P[rip]
	mov	r12, rdx
	mov	rbp, rcx
	mov	rax, QWORD PTR GZIP_PACKED[rip]
	cmp	QWORD PTR 40[rdi], rax
	je	.L3
	add	rdi, 40
	xor	eax, eax
	mov	QWORD PTR [rdx], rdi
	mov	DWORD PTR [rcx], r15d
.L1:
	mov	rsi, QWORD PTR 40[rsp]
	xor	rsi, QWORD PTR fs:40
	jne	.L16
	add	rsp, 56
	.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
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	lea	r9d, -7[rbx]
	xor	r8d, r8d
	add	rdi, 48
	mov	r14d, esi
	lea	rcx, 24[rsp]
	mov	esi, r9d
	lea	rdx, 32[rsp]
	mov	DWORD PTR 12[rsp], r9d
	call	tl_fetch_string@PLT
	mov	ecx, DWORD PTR 24[rsp]
	mov	edx, r15d
	lea	rsi, .LC4[rip]
	mov	edi, 4
	mov	DWORD PTR 8[rsp], eax
	call	vkprintf@PLT
	mov	r8d, DWORD PTR 8[rsp]
	mov	r9d, DWORD PTR 12[rsp]
	test	r8d, r8d
	js	.L17
	cmp	r9d, r8d
	jne	.L18
	mov	rdx, QWORD PTR P[rip]
	movsx	rbx, ebx
	movsx	rax, DWORD PTR 24[rsp]
	xor	edi, edi
	sal	rbx, 3
	add	rax, QWORD PTR 32[rsp]
	add	rdx, rbx
	cmp	rax, rdx
	setbe	dil
	call	assert@PLT
	mov	eax, DWORD PTR PACKET_BUFFER_SIZE[rip]
	mov	ecx, DWORD PTR 24[rsp]
	lea	rsi, 28[rsp]
	mov	rdi, QWORD PTR P[rip]
	mov	rdx, QWORD PTR 32[rsp]
	sub	eax, r14d
	add	rdi, rbx
	mov	DWORD PTR 28[rsp], eax
	mov	r14d, eax
	call	gzdecode@PLT
	cmp	DWORD PTR Z_OK[rip], eax
	je	.L6
	cmp	DWORD PTR Z_MEM_ERROR[rip], eax
	lea	rcx, .LC1[rip]
	je	.L7
	cmp	DWORD PTR Z_BUF_ERROR[rip], eax
	lea	rcx, .LC2[rip]
	je	.L7
	cmp	DWORD PTR Z_DATA_ERROR[rip], eax
	lea	rcx, .LC0[rip]
	lea	rax, .LC3[rip]
	cmovne	rcx, rax
.L7:
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	rdx, QWORD PTR P[rip]
	mov	rdi, r13
	xor	eax, eax
	push	rcx
	.cfi_def_cfa_offset 128
	mov	r9d, DWORD PTR 40[rsp]
	mov	ecx, r14d
	lea	rsi, .LC7[rip]
	mov	r8, QWORD PTR 48[rsp]
	add	rdx, rbx
	call	tl_failf@PLT
	pop	rdx
	.cfi_def_cfa_offset 120
	pop	rcx
	.cfi_def_cfa_offset 112
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edx, r9d
	lea	rsi, .LC6[rip]
	mov	rdi, r13
	xor	eax, eax
	sub	edx, r8d
	call	tl_failf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edx, DWORD PTR 28[rsp]
	test	dl, 3
	jne	.L19
	add	rbx, QWORD PTR P[rip]
	lea	eax, 3[rdx]
	test	edx, edx
	cmovns	eax, edx
	mov	QWORD PTR [r12], rbx
	sar	eax, 2
	mov	DWORD PTR 0[rbp], eax
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	lea	rsi, .LC5[rip]
	mov	rdi, r13
	xor	eax, eax
	call	tl_failf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	lea	rsi, .LC8[rip]
	mov	rdi, r13
	xor	eax, eax
	call	tl_failf@PLT
	jmp	.L1
.L10:
	mov	eax, -1
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	unpack_packet, .-unpack_packet
	.comm	Z_OK,4,4
	.comm	Z_MEM_ERROR,4,4
	.comm	Z_DATA_ERROR,4,4
	.comm	Z_BUF_ERROR,4,4
	.comm	PACKET_BUFFER_SIZE,4,4
	.comm	P,8,8
	.comm	GZIP_PACKED,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_tlclient.c_unpack_packet.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Z_DATA_ERROR\000"
	.align	2
.LC1:
	.ascii	"Z_MEM_ERROR\000"
	.align	2
.LC2:
	.ascii	"Z_BUF_ERROR\000"
	.align	2
.LC3:
	.ascii	"???\000"
	.align	2
.LC4:
	.ascii	"ilen: %d, slen: %d\012\000"
	.align	2
.LC5:
	.ascii	"tl_fetch_string fail\000"
	.align	2
.LC6:
	.ascii	"packet contains extra %d ints\000"
	.align	2
.LC7:
	.ascii	"uncompress (%p, %d, %p, %d) returns %s\000"
	.align	2
.LC8:
	.ascii	"destLen(%d) isn't multiple of 4\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	unpack_packet, %function
unpack_packet:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	r4, r1, #3
	movge	r4, r1
	mov	r6, r3
	mov	r3, #0
	mov	r7, r2
	asr	r4, r4, #2
	ldr	r2, .L20
	sub	r9, r4, #6
	sub	sp, sp, #44
	cmp	r9, r3
	ldr	r2, [r2]
	str	r2, [sp, #36]
	mov	r2,#0
	str	r3, [r7]
	str	r3, [r6]
	ble	.L10
	ldr	r10, .L20+4
	mov	r8, r0
	ldr	r2, .L20+8
	ldr	r0, [r10]
	mov	r5, r1
	ldr	r2, [r2]
	ldr	r1, [r0, #20]
	cmp	r1, r2
	beq	.L3
	add	r0, r0, #20
	str	r0, [r7]
	mov	r0, r3
	str	r9, [r6]
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	sub	fp, r4, #7
	mov	r1, fp
	str	r3, [sp]
	add	r2, sp, #24
	add	r3, sp, #28
	add	r0, r0, #24
	bl	tl_fetch_string
	ldr	r3, [sp, #28]
	str	r0, [sp, #20]
	mov	r2, r9
	mov	r0, #4
	ldr	r1, .L20+12
	bl	vkprintf
	ldr	r3, [sp, #20]
	cmp	r3, #0
	blt	.L17
	ldr	r3, [sp, #20]
	cmp	fp, r3
	bne	.L18
	ldr	r2, [sp, #28]
	ldr	r0, [sp, #24]
	ldr	r3, [r10]
	add	r0, r0, r2
	add	r3, r3, r4, lsl #2
	cmp	r0, r3
	movhi	r0, #0
	movls	r0, #1
	bl	assert
	ldr	r3, .L20+16
	ldr	r0, [r10]
	ldr	r1, [r3]
	lsl	r4, r4, #2
	ldr	r3, [sp, #28]
	sub	r5, r1, r5
	ldr	r2, [sp, #24]
	add	r0, r0, r4
	add	r1, sp, #32
	str	r5, [sp, #32]
	bl	gzdecode
	ldr	r3, .L20+20
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L6
	ldr	r3, .L20+24
	ldr	r2, [r10]
	ldr	r3, [r3]
	ldr	r1, [sp, #24]
	cmp	r3, r0
	ldr	ip, [sp, #28]
	add	r2, r2, r4
	beq	.L11
	ldr	r3, .L20+28
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L12
	ldr	lr, .L20+32
	ldr	r3, .L20+36
	ldr	r4, [lr]
	ldr	lr, .L20+40
	cmp	r4, r0
	moveq	r0, r3
	movne	r0, lr
.L7:
	stm	sp, {r1, ip}
	str	r0, [sp, #8]
	mov	r3, r5
	mov	r0, r8
	ldr	r1, .L20+44
	bl	tl_failf
	b	.L1
.L18:
	mov	r0, r8
	ldr	r1, .L20+48
	sub	r2, fp, r3
	bl	tl_failf
	b	.L1
.L6:
	ldr	r2, [sp, #32]
	tst	r2, #3
	bne	.L19
	add	r3, r2, #3
	cmp	r2, #0
	movlt	r2, r3
	ldr	r3, [r10]
	asr	r2, r2, #2
	add	r4, r3, r4
	str	r4, [r7]
	mov	r0, #1
	str	r2, [r6]
	b	.L1
.L11:
	ldr	r0, .L20+52
	b	.L7
.L17:
	mov	r0, r8
	ldr	r1, .L20+56
	bl	tl_failf
	b	.L1
.L12:
	ldr	r0, .L20+60
	b	.L7
.L19:
	mov	r0, r8
	ldr	r1, .L20+64
	bl	tl_failf
	b	.L1
.L10:
	mvn	r0, #0
	b	.L1
.L16:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC9
	.word	P
	.word	GZIP_PACKED
	.word	.LC4
	.word	PACKET_BUFFER_SIZE
	.word	Z_OK
	.word	Z_MEM_ERROR
	.word	Z_BUF_ERROR
	.word	Z_DATA_ERROR
	.word	.LC0
	.word	.LC3
	.word	.LC7
	.word	.LC6
	.word	.LC1
	.word	.LC5
	.word	.LC2
	.word	.LC8
	.size	unpack_packet, .-unpack_packet
	.comm	Z_OK,4,4
	.comm	Z_MEM_ERROR,4,4
	.comm	Z_DATA_ERROR,4,4
	.comm	Z_BUF_ERROR,4,4
	.comm	PACKET_BUFFER_SIZE,4,4
	.comm	P,4,4
	.comm	GZIP_PACKED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
