	.file	"extr_bitwise.c_oggpack_look.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	oggpack_look
	.type	oggpack_look, @function
oggpack_look:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	esi, 32
	ja	.L6
	mov	rax, QWORD PTR mask[rip]
	movsx	rdx, esi
	mov	ecx, DWORD PTR 4[rdi]
	mov	r9, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR 8[rdi]
	mov	edx, DWORD PTR [rdi]
	lea	r8d, -4[rax]
	add	esi, edx
	cmp	ecx, r8d
	jl	.L3
	lea	r8d, 7[rsi]
	sar	r8d, 3
	sub	eax, r8d
	cmp	ecx, eax
	jg	.L6
	xor	eax, eax
	test	esi, esi
	je	.L1
.L3:
	mov	rdi, QWORD PTR 16[rdi]
	mov	ecx, edx
	mov	rax, QWORD PTR [rdi]
	shr	rax, cl
	cmp	esi, 8
	jle	.L4
	mov	r10, QWORD PTR 8[rdi]
	mov	ecx, 8
	sub	ecx, edx
	sal	r10, cl
	or	rax, r10
	cmp	esi, 16
	jle	.L4
	mov	r11, QWORD PTR 16[rdi]
	mov	ecx, 16
	sub	ecx, edx
	sal	r11, cl
	or	rax, r11
	cmp	esi, 24
	jle	.L4
	mov	r11, QWORD PTR 24[rdi]
	mov	ecx, 24
	sub	ecx, edx
	sal	r11, cl
	or	rax, r11
	test	edx, edx
	je	.L4
	cmp	esi, 32
	jg	.L16
.L4:
	and	rax, r9
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, -1
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	mov	ecx, 32
	sub	ecx, edx
	mov	rdx, QWORD PTR 32[rdi]
	sal	rdx, cl
	or	rax, rdx
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	oggpack_look, .-oggpack_look
	.comm	mask,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_bitwise.c_oggpack_look.c"
	.text
	.align	2
	.global	oggpack_look
	.syntax unified
	.arm
	.fpu softvfp
	.type	oggpack_look, %function
oggpack_look:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #32
	bhi	.L5
	mov	r3, r0
	ldr	r2, .L18
	ldr	ip, [r0, #8]
	push	{r4, lr}
	ldr	lr, [r0, #4]
	sub	r4, ip, #4
	ldr	r0, [r2]
	ldr	r2, [r3]
	cmp	lr, r4
	ldr	r4, [r0, r1, lsl #2]
	add	r0, r2, r1
	blt	.L3
	add	r1, r0, #7
	sub	ip, ip, r1, asr #3
	cmp	lr, ip
	bgt	.L6
	cmp	r0, #0
	popeq	{r4, pc}
.L3:
	ldr	r1, [r3, #12]
	cmp	r0, #8
	ldr	r3, [r1]
	lsr	r3, r3, r2
	ble	.L4
	ldr	lr, [r1, #4]
	rsb	ip, r2, #8
	cmp	r0, #16
	orr	r3, r3, lr, lsl ip
	ble	.L4
	ldr	lr, [r1, #8]
	rsb	ip, r2, #16
	cmp	r0, #24
	orr	r3, r3, lr, lsl ip
	ble	.L4
	cmp	r2, #0
	cmpne	r0, #32
	ldr	ip, [r1, #12]
	rsb	r0, r2, #24
	ldrgt	r1, [r1, #16]
	orr	r3, r3, ip, lsl r0
	rsbgt	r2, r2, #32
	orrgt	r3, r3, r1, lsl r2
.L4:
	and	r0, r3, r4
	pop	{r4, pc}
.L5:
	mvn	r0, #0
	bx	lr
.L6:
	mvn	r0, #0
	pop	{r4, pc}
.L19:
	.align	2
.L18:
	.word	mask
	.size	oggpack_look, .-oggpack_look
	.comm	mask,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
