	.file	"extr_elsdec.c_ff_els_decode_bit.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ff_els_decode_bit
	.type	ff_els_decode_bit, @function
ff_els_decode_bit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	cmp	QWORD PTR 24[rdi], 0
	jne	.L1
	mov	r12, QWORD PTR [rsi]
	mov	eax, DWORD PTR ELS_JOTS_PER_BYTE[rip]
	mov	rbp, rsi
	mov	rbx, rdi
	mov	r8, QWORD PTR Ladder[rip]
	mov	rdx, QWORD PTR els_exp_tab[rip]
	mov	rcx, r12
	lea	eax, [rax+rax*2]
	and	r12d, 1
	sal	rcx, 5
	cdqe
	add	rcx, r8
	lea	r13, [rdx+rax*4]
	mov	rax, QWORD PTR [rdi]
	mov	edx, DWORD PTR 12[rbx]
	mov	rsi, QWORD PTR [rcx]
	mov	edi, DWORD PTR 8[rdi]
	add	rsi, rax
	mov	r14d, DWORD PTR 0[r13+rsi*4]
	sub	edi, r14d
	sub	edx, r14d
	mov	DWORD PTR 8[rbx], edi
	mov	DWORD PTR 12[rbx], edx
	test	edx, edx
	jg	.L1
	mov	r9d, DWORD PTR 16[rbx]
	cmp	edi, r9d
	jle	.L4
	add	rax, QWORD PTR 24[rcx]
	mov	QWORD PTR [rbx], rax
	cmp	edi, DWORD PTR 0[r13+rax*4]
	jle	.L5
	lea	rdx, 1[rax]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, rdx
	lea	rdx, 1[rdx]
	cmp	edi, DWORD PTR 0[r13+rax*4]
	jg	.L6
	mov	QWORD PTR [rbx], rax
.L5:
	test	rax, rax
	je	.L17
.L7:
	mov	rax, QWORD PTR 0[rbp]
	mov	r12d, eax
	sal	rax, 5
	mov	rax, QWORD PTR 8[r8+rax]
	and	r12d, 1
	mov	QWORD PTR 0[rbp], rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	sub	r9d, edi
	mov	DWORD PTR 8[rbx], r14d
	mov	DWORD PTR 16[rbx], r9d
	mov	QWORD PTR [rbx], rsi
	test	rsi, rsi
	je	.L18
.L9:
	mov	rdx, QWORD PTR 0[rbp]
	mov	edi, r14d
	mov	r12, rdx
	sal	rdx, 5
	mov	rax, QWORD PTR 16[r8+rdx]
	not	r12
	and	r12d, 1
	mov	QWORD PTR 0[rbp], rax
.L8:
	mov	rax, QWORD PTR [rbx]
	mov	esi, edi
	sub	edi, r9d
	sub	esi, DWORD PTR -4[r13+rax*4]
	call	FFMIN@PLT
	mov	DWORD PTR 12[rbx], eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	rdi, rbx
	call	els_import_byte@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	cmp	QWORD PTR [rbx], 0
	je	.L10
	mov	r8, QWORD PTR Ladder[rip]
	mov	r9d, DWORD PTR 16[rbx]
	sal	r14d, 8
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, rbx
	call	els_import_byte@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	r8, QWORD PTR Ladder[rip]
	mov	edi, DWORD PTR 8[rbx]
	mov	r9d, DWORD PTR 16[rbx]
	jmp	.L7
.L10:
	mov	rdi, rbx
	call	els_import_byte@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR [rbx]
	mov	r8, QWORD PTR Ladder[rip]
	sal	r14d, 16
	mov	r9d, DWORD PTR 16[rbx]
	cmp	r14d, DWORD PTR -4[r13+rax*4]
	jg	.L9
	sub	rax, 1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdx, rax
	sub	rax, 1
	cmp	DWORD PTR 0[r13+rax*4], r14d
	jge	.L11
	mov	QWORD PTR [rbx], rdx
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	ff_els_decode_bit, .-ff_els_decode_bit
	.comm	els_exp_tab,8,8
	.comm	Ladder,8,8
	.comm	ELS_JOTS_PER_BYTE,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_elsdec.c_ff_els_decode_bit.c"
	.text
	.align	2
	.global	ff_els_decode_bit
	.syntax unified
	.arm
	.fpu softvfp
	.type	ff_els_decode_bit, %function
ff_els_decode_bit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #16]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	cmp	r3, #0
	movne	r5, #0
	bne	.L1
	ldr	r8, .L19
	ldr	r3, .L19+4
	ldr	ip, [r1]
	ldr	r10, [r8]
	mov	r6, r1
	ldr	r1, .L19+8
	ldr	r2, [r3]
	ldr	r5, [r10, ip, lsl #4]
	ldr	r7, [r1]
	ldr	r3, [r0]
	add	r2, r2, r2, lsl #1
	add	r5, r3, r5
	add	r7, r7, r2, lsl #2
	ldr	r9, [r7, r5, lsl #2]
	ldmib	r0, {r2, lr}
	sub	lr, lr, r9
	cmp	lr, #0
	sub	r2, r2, r9
	mov	r4, r0
	stmib	r0, {r2, lr}
	add	r1, r10, ip, lsl #4
	andgt	r5, ip, #1
	bgt	.L1
	ldr	lr, [r0, #12]
	cmp	r2, lr
	ble	.L4
	ldr	r1, [r1, #12]
	add	r3, r3, r1
	ldr	r1, [r7, r3, lsl #2]
	str	r3, [r0]
	cmp	r2, r1
	ble	.L5
	add	r0, r3, #1
	add	r1, r7, r3, lsl #2
.L6:
	ldr	ip, [r1, #4]!
	mov	r3, r0
	cmp	r2, ip
	add	r0, r0, #1
	bgt	.L6
	str	r3, [r4]
.L5:
	cmp	r3, #0
	beq	.L17
.L7:
	ldr	ip, [r6]
	add	r10, r10, ip, lsl #4
	ldr	r3, [r10, #4]
	and	r5, ip, #1
	str	r3, [r6]
	b	.L8
.L4:
	sub	lr, lr, r2
	cmp	r5, #0
	stm	r0, {r5, r9}
	str	lr, [r0, #12]
	beq	.L18
.L9:
	ldr	r3, [r6]
	mov	r2, r9
	mvn	ip, r3
	add	r10, r10, r3, lsl #4
	ldr	r3, [r10, #8]
	and	r5, ip, #1
	str	r3, [r6]
.L8:
	ldr	r3, [r4]
	sub	r0, r2, lr
	sub	r3, r3, #-1073741823
	ldr	r1, [r7, r3, lsl #2]
	sub	r1, r2, r1
	bl	FFMIN
	str	r0, [r4, #8]
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	bl	els_import_byte
	subs	r5, r0, #0
	blt	.L1
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L10
	ldr	r10, [r8]
	ldr	lr, [r4, #12]
	lsl	r9, r9, #8
	b	.L9
.L17:
	mov	r0, r4
	bl	els_import_byte
	subs	r5, r0, #0
	blt	.L1
	ldr	r10, [r8]
	ldr	r2, [r4, #4]
	ldr	lr, [r4, #12]
	b	.L7
.L10:
	mov	r0, r4
	bl	els_import_byte
	subs	r5, r0, #0
	blt	.L1
	ldr	r3, [r4]
	lsl	r9, r9, #16
	sub	r2, r3, #-1073741823
	ldr	r1, [r7, r2, lsl #2]
	ldr	r10, [r8]
	cmp	r9, r1
	ldr	lr, [r4, #12]
	add	r2, r7, r2, lsl #2
	bgt	.L9
	sub	r3, r3, #1
.L11:
	ldr	r1, [r2, #-4]!
	mov	r0, r3
	cmp	r1, r9
	sub	r3, r3, #1
	bge	.L11
	str	r0, [r4]
	b	.L9
.L20:
	.align	2
.L19:
	.word	Ladder
	.word	ELS_JOTS_PER_BYTE
	.word	els_exp_tab
	.size	ff_els_decode_bit, .-ff_els_decode_bit
	.comm	els_exp_tab,4,4
	.comm	Ladder,4,4
	.comm	ELS_JOTS_PER_BYTE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
