	.file	"extr_layer1.c_do_layer1.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Aborting layer I decoding after step one.\n"
	.text
	.p2align 4
	.globl	do_layer1
	.type	do_layer1, @function
do_layer1:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rdi
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	ebx, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR SBLIMIT[rip]
	mov	rcx, rsp
	add	eax, eax
	cdqe
	lea	rax, 15[0+rax*4]
	mov	rsi, rax
	mov	rdx, rax
	and	rsi, -4096
	and	rdx, -16
	sub	rcx, rsi
	mov	rsi, rcx
	cmp	rsp, rsi
	je	.L3
.L32:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rsi
	jne	.L32
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L33
.L4:
	mov	rdx, rax
	mov	rcx, rsp
	and	rax, -4096
	mov	r14, rsp
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L6
.L34:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L34
.L6:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L35
.L7:
	mov	rax, QWORD PTR fraction[rip]
	mov	r15, rsp
	mov	edi, DWORD PTR [rax]
	call	real@PLT
	movsx	rdx, DWORD PTR SBLIMIT[rip]
	mov	esi, DWORD PTR 48[r13]
	mov	DWORD PTR [rax+rdx*4], esi
	mov	eax, DWORD PTR 4[r13]
	mov	rdx, QWORD PTR MPG_MD_JOINT_STEREO[rip]
	mov	DWORD PTR -68[rbp], eax
	mov	eax, 32
	cmp	QWORD PTR 16[r13], rdx
	jne	.L8
	mov	eax, DWORD PTR 24[r13]
	lea	eax, 4[0+rax*4]
.L8:
	mov	DWORD PTR 8[r13], eax
	cmp	ebx, 1
	je	.L9
	mov	eax, DWORD PTR -68[rbp]
	cmp	DWORD PTR SINGLE_MIX[rip], eax
	je	.L9
.L10:
	mov	rdx, r13
	mov	rsi, r15
	mov	rdi, r14
	call	I_step_one@PLT
	test	rax, rax
	jne	.L11
	mov	eax, DWORD PTR SCALE_BLOCK[rip]
	xor	r12d, r12d
	test	eax, eax
	jle	.L1
	movsx	rax, DWORD PTR -68[rbp]
	xor	r12d, r12d
	xor	ebx, ebx
	sal	rax, 2
	mov	QWORD PTR -80[rbp], rax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L36:
	mov	rcx, QWORD PTR -80[rbp]
	mov	rsi, r13
	add	ebx, 1
	mov	edi, DWORD PTR [rax+rcx]
	call	[QWORD PTR 40[r13]]
	add	r12d, eax
	cmp	DWORD PTR SCALE_BLOCK[rip], ebx
	jle	.L1
.L16:
	mov	rdi, QWORD PTR fraction[rip]
	mov	rcx, r13
	mov	rdx, r15
	mov	rsi, r14
	call	I_step_two@PLT
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR SINGLE_STEREO[rip]
	mov	rax, QWORD PTR fraction[rip]
	jne	.L36
	mov	esi, DWORD PTR 4[rax]
	mov	edi, DWORD PTR [rax]
	mov	rdx, r13
	add	ebx, 1
	call	[QWORD PTR 32[r13]]
	add	r12d, eax
	cmp	DWORD PTR SCALE_BLOCK[rip], ebx
	jg	.L16
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L37
	lea	rsp, -40[rbp]
	mov	eax, r12d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L33:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR SINGLE_LEFT[rip]
	mov	DWORD PTR -68[rbp], eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L11:
	xor	r12d, r12d
	cmp	QWORD PTR NOQUIET[rip], 0
	je	.L1
	lea	rdi, .LC0[rip]
	call	error@PLT
	jmp	.L1
.L35:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L7
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	do_layer1, .-do_layer1
	.comm	fraction,8,8
	.comm	SINGLE_STEREO,4,4
	.comm	SINGLE_MIX,4,4
	.comm	SINGLE_LEFT,4,4
	.comm	SCALE_BLOCK,4,4
	.comm	SBLIMIT,4,4
	.comm	NOQUIET,8,8
	.comm	MPG_MD_JOINT_STEREO,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_layer1.c_do_layer1.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Aborting layer I decoding after step one.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	do_layer1
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_layer1, %function
do_layer1:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	mov	r1, sp
	ldr	r5, .L24
	mov	r4, r0
	ldr	r3, [r5]
	ldr	r7, .L24+4
	sub	r1, r1, r3, lsl #3
	mov	sp, r1
	mov	r8, sp
	ldr	r2, [r7]
	sub	r3, r8, r3, lsl #3
	mov	sp, r3
	ldr	r3, .L24+8
	ldr	r0, [r2]
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	ldr	r6, [r4]
	bl	real
	ldr	r3, .L24+12
	ldr	r1, [r5]
	ldr	ip, [r4, #28]
	ldr	r3, [r3]
	ldr	r2, [r4, #12]
	str	ip, [r0, r1, lsl #2]
	cmp	r2, r3
	ldr	r3, [r4, #4]
	mov	r9, sp
	str	r3, [fp, #-48]
	movne	r3, #32
	ldreq	r3, [r4, #16]
	lsleq	r3, r3, #2
	addeq	r3, r3, #4
	cmp	r6, #1
	str	r3, [r4, #8]
	beq	.L3
	ldr	r3, .L24+16
	ldr	r2, [fp, #-48]
	ldr	r3, [r3]
	cmp	r3, r2
	beq	.L3
.L4:
	mov	r2, r4
	mov	r1, r9
	mov	r0, r8
	bl	I_step_one
	subs	r5, r0, #0
	bne	.L5
	ldr	r10, .L24+20
	ldr	r3, [r10]
	cmp	r3, #0
	ble	.L1
	ldr	r3, [fp, #-48]
	mov	r6, r5
	lsl	r3, r3, #2
	str	r3, [fp, #-52]
	b	.L10
.L22:
	ldr	r1, [fp, #-52]
	ldr	r3, [r4, #24]
	ldr	r0, [r2, r1]
	mov	r1, r4
	blx	r3
	ldr	r3, [r10]
	add	r6, r6, #1
	cmp	r3, r6
	add	r5, r5, r0
	ble	.L1
.L10:
	mov	r3, r4
	mov	r2, r9
	mov	r1, r8
	ldr	r0, [r7]
	bl	I_step_two
	ldr	r3, .L24+24
	ldr	r2, [fp, #-48]
	ldr	r3, [r3]
	cmp	r2, r3
	ldr	r2, [r7]
	bne	.L22
	ldm	r2, {r0, r1}
	ldr	r3, [r4, #20]
	mov	r2, r4
	blx	r3
	ldr	r3, [r10]
	add	r6, r6, #1
	cmp	r3, r6
	add	r5, r5, r0
	bgt	.L10
.L1:
	ldr	r3, .L24+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	mov	r0, r5
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	ldr	r3, .L24+28
	ldr	r3, [r3]
	str	r3, [fp, #-48]
	b	.L4
.L5:
	ldr	r3, .L24+32
	ldr	r5, [r3]
	cmp	r5, #0
	beq	.L1
	ldr	r0, .L24+36
	bl	error
	mov	r5, #0
	b	.L1
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	SBLIMIT
	.word	fraction
	.word	.LC1
	.word	MPG_MD_JOINT_STEREO
	.word	SINGLE_MIX
	.word	SCALE_BLOCK
	.word	SINGLE_STEREO
	.word	SINGLE_LEFT
	.word	NOQUIET
	.word	.LC0
	.size	do_layer1, .-do_layer1
	.comm	fraction,4,4
	.comm	SINGLE_STEREO,4,4
	.comm	SINGLE_MIX,4,4
	.comm	SINGLE_LEFT,4,4
	.comm	SCALE_BLOCK,4,4
	.comm	SBLIMIT,4,4
	.comm	NOQUIET,4,4
	.comm	MPG_MD_JOINT_STEREO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
