	.file	"extr_golomb.h_get_ur_golomb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_ur_golomb, @function
get_ur_golomb:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, esi
	mov	rsi, rdi
	mov	edi, DWORD PTR re[rip]
	call	OPEN_READER@PLT
	mov	edi, DWORD PTR re[rip]
	mov	rsi, rbp
	call	UPDATE_CACHE@PLT
	mov	edi, DWORD PTR re[rip]
	mov	rsi, rbp
	call	GET_CACHE@PLT
	mov	edi, eax
	mov	r12d, eax
	call	av_log2@PLT
	mov	edx, 31
	sub	edx, r14d
	cmp	edx, eax
	jge	.L2
	mov	ecx, eax
	mov	edx, r12d
	mov	r12d, 30
	mov	rsi, rbp
	sub	ecx, ebx
	sub	r12d, eax
	mov	edi, DWORD PTR re[rip]
	shr	edx, cl
	mov	ecx, ebx
	sal	r12d, cl
	add	r12d, edx
	lea	edx, 32[rbx]
	sub	edx, eax
	call	LAST_SKIP_BITS@PLT
	mov	edi, DWORD PTR re[rip]
	mov	rsi, rbp
	call	CLOSE_READER@PLT
	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
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR re[rip]
	mov	edx, r14d
	mov	rsi, rbp
	call	LAST_SKIP_BITS@PLT
	mov	edi, DWORD PTR re[rip]
	mov	rsi, rbp
	call	UPDATE_CACHE@PLT
	mov	edi, DWORD PTR re[rip]
	mov	edx, r13d
	mov	rsi, rbp
	call	SHOW_UBITS@PLT
	mov	edi, DWORD PTR re[rip]
	mov	edx, r13d
	mov	rsi, rbp
	mov	ebx, eax
	call	LAST_SKIP_BITS@PLT
	mov	edi, DWORD PTR re[rip]
	mov	rsi, rbp
	call	CLOSE_READER@PLT
	lea	eax, -1[rbx+r14]
	pop	rbx
	.cfi_def_cfa_offset 40
	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
	.cfi_endproc
.LFE0:
	.size	get_ur_golomb, .-get_ur_golomb
	.comm	re,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_golomb.h_get_ur_golomb.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_ur_golomb, %function
get_ur_golomb:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	ldr	r6, .L6
	mov	r7, r1
	mov	r1, r0
	ldr	r0, [r6]
	mov	r4, r2
	mov	r9, r3
	bl	OPEN_READER
	mov	r1, r5
	ldr	r0, [r6]
	bl	UPDATE_CACHE
	mov	r1, r5
	ldr	r0, [r6]
	bl	GET_CACHE
	mov	r8, r0
	bl	av_log2
	rsb	r3, r4, #31
	cmp	r3, r0
	bge	.L2
	rsb	r3, r0, #30
	add	r2, r7, #32
	lsl	r3, r3, r7
	sub	r2, r2, r0
	mov	r1, r5
	sub	r4, r0, r7
	ldr	r0, [r6]
	add	r4, r3, r8, lsr r4
	bl	LAST_SKIP_BITS
	mov	r1, r5
	ldr	r0, [r6]
	bl	CLOSE_READER
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r2, r4
	mov	r1, r5
	ldr	r0, [r6]
	bl	LAST_SKIP_BITS
	mov	r1, r5
	ldr	r0, [r6]
	bl	UPDATE_CACHE
	mov	r2, r9
	mov	r1, r5
	ldr	r0, [r6]
	bl	SHOW_UBITS
	mov	r7, r0
	mov	r2, r9
	mov	r1, r5
	ldr	r0, [r6]
	bl	LAST_SKIP_BITS
	sub	r4, r4, #1
	mov	r1, r5
	ldr	r0, [r6]
	bl	CLOSE_READER
	add	r0, r4, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	.align	2
.L6:
	.word	re
	.size	get_ur_golomb, .-get_ur_golomb
	.comm	re,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
