	.file	"extr_scpr3.c_decode_adaptive6.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	decode_adaptive6, @function
decode_adaptive6:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r9d, esi
	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	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	jle	.L2
	mov	rcx, QWORD PTR 8[rdi]
	lea	r14d, -1[rax]
	xor	esi, esi
	xor	r13d, r13d
	xor	edi, edi
	xor	ebx, ebx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rsi, rax
.L6:
	mov	eax, DWORD PTR 4[rcx+rsi*8]
	movsx	r11, esi
	cmp	r9d, eax
	jl	.L3
	mov	r10d, DWORD PTR [rcx+rsi*8]
	lea	r15d, [rax+r10]
	cmp	r15d, r9d
	jg	.L16
	cmp	eax, edi
	jl	.L3
	mov	rdi, QWORD PTR 16[rbp]
	mov	ebx, r10d
	mov	r13d, DWORD PTR [rdi+rsi*4]
	mov	edi, eax
.L3:
	lea	rax, 1[rsi]
	cmp	r14, rsi
	jne	.L11
	mov	ecx, DWORD PTR 24[rbp]
	mov	r14d, 1
	sal	r14d, cl
	test	ebx, ebx
	jle	.L8
	add	edi, ebx
	sub	r9d, edi
	sar	r9d, cl
	lea	r15d, 1[r13+r9]
	sal	r9d, cl
	lea	r13d, [rdi+r9]
.L9:
	mov	DWORD PTR [r12], r14d
	mov	esi, r15d
	mov	ecx, r13d
	mov	rdi, rbp
	mov	DWORD PTR [r8], r13d
	mov	DWORD PTR [rdx], r15d
	mov	edx, r14d
	call	add_dec@PLT
	mov	esi, eax
	test	eax, eax
	jns	.L10
	xor	eax, eax
	cmp	DWORD PTR 28[rbp], 64
	je	.L1
	mov	rdi, rbp
	call	grow_dec@PLT
	mov	esi, r15d
	mov	ecx, r13d
	mov	edx, r14d
	mov	rdi, rbp
	call	add_dec@PLT
	mov	esi, eax
.L10:
	mov	rdi, rbp
	call	incr_cntdec@PLT
	mov	eax, 1
.L1:
	add	rsp, 8
	.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
.L2:
	.cfi_restore_state
	mov	ecx, DWORD PTR 24[rdi]
	mov	r14d, 1
	sal	r14d, cl
	.p2align 4,,10
	.p2align 3
.L8:
	mov	r15d, r9d
	sar	r15d, cl
	mov	r13d, r15d
	sal	r13d, cl
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rcx, QWORD PTR 16[rbp]
	mov	rdi, rbp
	mov	ecx, DWORD PTR [rcx+r11*4]
	mov	DWORD PTR [rdx], ecx
	mov	DWORD PTR [r12], r10d
	mov	DWORD PTR [r8], eax
	call	incr_cntdec@PLT
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	decode_adaptive6, .-decode_adaptive6
	.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_scpr3.c_decode_adaptive6.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	decode_adaptive6, %function
decode_adaptive6:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, [r0]
	mov	r8, r0
	cmp	r5, #0
	mov	lr, r1
	mov	r9, r2
	mov	fp, r3
	ble	.L2
	mov	r1, #0
	mov	r2, r1
	mov	r0, r1
	mov	r10, r1
	ldr	r3, [r8, #4]
	add	r6, r3, #4
.L6:
	ldr	ip, [r6, r1, lsl #3]
	cmp	lr, ip
	blt	.L3
	ldr	r4, [r3, r1, lsl #3]
	add	r7, ip, r4
	cmp	r7, lr
	bgt	.L16
	cmp	r0, ip
	movle	r0, ip
	movle	r10, r4
	ldrle	r2, [r8, #8]
	ldrle	r2, [r2, r1, lsl #2]
.L3:
	add	r1, r1, #1
	cmp	r5, r1
	bne	.L6
	mov	r4, #1
	ldr	r3, [r8, #12]
	cmp	r10, #0
	lsl	r4, r4, r3
	ble	.L8
	add	r0, r10, r0
	sub	r10, lr, r0
	asr	r10, r10, r3
	add	r2, r2, r10
	add	r5, r2, #1
	add	r10, r0, r10, lsl r3
.L9:
	ldr	r2, [sp, #40]
	str	r4, [fp]
	mov	r1, r5
	str	r10, [r2]
	mov	r3, r10
	mov	r2, r4
	mov	r0, r8
	str	r5, [r9]
	bl	add_dec
	subs	r1, r0, #0
	bge	.L10
	ldr	r3, [r8, #16]
	cmp	r3, #64
	beq	.L11
	mov	r0, r8
	bl	grow_dec
	mov	r1, r5
	mov	r3, r10
	mov	r2, r4
	mov	r0, r8
	bl	add_dec
	mov	r1, r0
.L10:
	mov	r0, r8
	bl	incr_cntdec
	mov	r0, #1
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r4, #1
	ldr	r3, [r0, #12]
	lsl	r4, r4, r3
.L8:
	asr	r5, lr, r3
	lsl	r10, r5, r3
	b	.L9
.L16:
	ldr	r3, [r8, #8]
	mov	r0, r8
	ldr	r3, [r3, r1, lsl #2]
	str	r3, [r9]
	ldr	r3, [sp, #40]
	str	r4, [fp]
	str	ip, [r3]
	bl	incr_cntdec
	mov	r0, #1
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	decode_adaptive6, .-decode_adaptive6
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
