	.file	"extr_ar9003_eeprom.c_ar9300_uncompress_block.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Restore at %d: spot=%d offset=%d length=%d\n"
	.align 8
.LC1:
	.string	"Bad restore at %d: spot=%d offset=%d length=%d\n"
	.text
	.p2align 4
	.type	ar9300_uncompress_block, @function
ar9300_uncompress_block:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edx
	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, r8d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 24[rsp], rsi
	call	ath9k_hw_common@PLT
	test	r12d, r12d
	jle	.L7
	mov	r10, rax
	xor	r8d, r8d
	lea	r11, .LC0[rip]
	xor	ecx, ecx
	.p2align 4,,10
	.p2align 3
.L2:
	movsx	rax, ecx
	movzx	r9d, BYTE PTR 0[rbp+rax*4]
	movzx	ebx, BYTE PTR 4[rbp+rax*4]
	lea	r13, 0[0+rax*4]
	add	r8d, r9d
	test	ebx, ebx
	je	.L6
	test	r8d, r8d
	js	.L4
	lea	r14d, [r8+rbx]
	mov	esi, DWORD PTR EEPROM[rip]
	cmp	r14d, r15d
	jle	.L22
.L5:
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	lea	rdx, .LC1[rip]
	mov	rdi, r10
	push	rbx
	.cfi_def_cfa_offset 112
	call	ath_dbg@PLT
	pop	rax
	.cfi_def_cfa_offset 104
	pop	rdx
	.cfi_def_cfa_offset 96
	xor	eax, eax
	add	rsp, 40
	.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
.L4:
	.cfi_restore_state
	test	ebx, ebx
	jne	.L23
.L6:
	lea	ecx, 2[rcx+rbx]
	cmp	r12d, ecx
	jg	.L2
.L7:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, 1
	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
.L22:
	.cfi_restore_state
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	rdx, r11
	mov	rdi, r10
	push	rbx
	.cfi_def_cfa_offset 112
	mov	QWORD PTR 24[rsp], r10
	mov	DWORD PTR 36[rsp], r8d
	mov	DWORD PTR 32[rsp], ecx
	call	ath_dbg@PLT
	movsx	r8, DWORD PTR 36[rsp]
	mov	rax, QWORD PTR 40[rsp]
	mov	edx, ebx
	lea	rsi, 8[rbp+r13]
	lea	rdi, [rax+r8*4]
	call	memcpy@PLT
	pop	rcx
	.cfi_def_cfa_offset 104
	pop	rsi
	.cfi_def_cfa_offset 96
	mov	r8d, r14d
	mov	ecx, DWORD PTR 16[rsp]
	mov	r10, QWORD PTR 8[rsp]
	lea	r11, .LC0[rip]
	lea	ecx, 2[rcx+rbx]
	cmp	r12d, ecx
	jg	.L2
	jmp	.L7
.L23:
	mov	esi, DWORD PTR EEPROM[rip]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	ar9300_uncompress_block, .-ar9300_uncompress_block
	.comm	EEPROM,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_ar9003_eeprom.c_ar9300_uncompress_block.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Restore at %d: spot=%d offset=%d length=%d\012\000"
	.align	2
.LC1:
	.ascii	"Bad restore at %d: spot=%d offset=%d length=%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ar9300_uncompress_block, %function
ar9300_uncompress_block:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #36
	ldr	r9, [sp, #72]
	mov	r10, r2
	mov	r6, r3
	str	r1, [sp, #28]
	bl	ath9k_hw_common
	cmp	r9, #0
	str	r0, [sp, #24]
	ble	.L7
	mov	r5, #0
	mov	r3, r5
	ldr	fp, .L18
.L2:
	ldrb	r0, [r6, r3, lsl #2]	@ zero_extendqisi2
	add	r1, r6, r3, lsl #2
	add	r5, r5, r0
	mvn	r2, r5
	ldrb	r4, [r1, #4]	@ zero_extendqisi2
	lsr	r2, r2, #31
	cmp	r4, #0
	moveq	r2, #0
	cmp	r2, #0
	lsl	r8, r3, #2
	add	r7, r5, r4
	beq	.L4
	cmp	r7, r10
	ldr	r1, [fp]
	ble	.L16
.L5:
	stmib	sp, {r0, r4}
	ldr	r2, .L18+4
	ldr	r0, [sp, #24]
	str	r5, [sp]
	bl	ath_dbg
	mov	r0, #0
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	cmp	r4, #0
	bne	.L17
.L6:
	add	r4, r4, #2
	add	r3, r3, r4
	cmp	r9, r3
	bgt	.L2
.L7:
	mov	r0, #1
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	stmib	sp, {r0, r4}
	ldr	r2, .L18+8
	str	r5, [sp]
	ldr	r0, [sp, #24]
	str	r3, [sp, #20]
	bl	ath_dbg
	ldr	r3, [sp, #28]
	add	r1, r8, #8
	add	r0, r3, r5, lsl #2
	mov	r2, r4
	add	r1, r6, r1
	bl	memcpy
	mov	r5, r7
	ldr	r3, [sp, #20]
	b	.L6
.L17:
	ldr	r2, .L18
	ldr	r1, [r2]
	b	.L5
.L19:
	.align	2
.L18:
	.word	EEPROM
	.word	.LC1
	.word	.LC0
	.size	ar9300_uncompress_block, .-ar9300_uncompress_block
	.comm	EEPROM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
