	.file	"extr_aviobuf.c_avio_size.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	avio_size
	.type	avio_size, @function
avio_size:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L8
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	r12, QWORD PTR [rdi]
	test	r12, r12
	jne	.L1
	mov	rax, QWORD PTR 8[rdi]
	test	rax, rax
	je	.L9
	mov	edi, DWORD PTR 20[rdi]
	mov	edx, DWORD PTR AVSEEK_SIZE[rip]
	xor	esi, esi
	call	rax
	mov	r12, rax
	test	rax, rax
	js	.L10
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR 20[rbx]
	mov	edx, DWORD PTR SEEK_END[rip]
	mov	esi, -1
	call	[QWORD PTR 8[rbx]]
	mov	r12, rax
	test	rax, rax
	js	.L1
	mov	esi, DWORD PTR 16[rbx]
	mov	edi, DWORD PTR 20[rbx]
	add	r12, 1
	mov	edx, DWORD PTR SEEK_SET[rip]
	call	[QWORD PTR 8[rbx]]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore 3
	.cfi_restore 12
	mov	edi, DWORD PTR EINVAL[rip]
	jmp	AVERROR@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -24
	.cfi_offset 12, -16
	mov	edi, DWORD PTR ENOSYS[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	AVERROR@PLT
	.cfi_endproc
.LFE0:
	.size	avio_size, .-avio_size
	.comm	SEEK_SET,4,4
	.comm	SEEK_END,4,4
	.comm	ENOSYS,4,4
	.comm	EINVAL,4,4
	.comm	AVSEEK_SIZE,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_aviobuf.c_avio_size.c"
	.text
	.align	2
	.global	avio_size
	.syntax unified
	.arm
	.fpu softvfp
	.type	avio_size, %function
avio_size:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r4, r0, #0
	beq	.L7
	ldr	r5, [r4]
	cmp	r5, #0
	bne	.L1
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L8
	ldr	r2, .L10
	mov	r1, r5
	ldr	r2, [r2]
	ldr	r0, [r4, #12]
	blx	r3
	subs	r5, r0, #0
	blt	.L9
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r2, .L10+4
	mvn	r1, #0
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	ldr	r0, [r4, #12]
	blx	r3
	subs	r5, r0, #0
	blt	.L1
	ldr	r2, .L10+8
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	ldr	r1, [r4, #8]
	ldr	r0, [r4, #12]
	add	r5, r5, #1
	blx	r3
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r3, .L10+12
	pop	{r4, r5, r6, lr}
	ldr	r0, [r3]
	b	AVERROR
.L8:
	ldr	r3, .L10+16
	pop	{r4, r5, r6, lr}
	ldr	r0, [r3]
	b	AVERROR
.L11:
	.align	2
.L10:
	.word	AVSEEK_SIZE
	.word	SEEK_END
	.word	SEEK_SET
	.word	EINVAL
	.word	ENOSYS
	.size	avio_size, .-avio_size
	.comm	SEEK_SET,4,4
	.comm	SEEK_END,4,4
	.comm	ENOSYS,4,4
	.comm	EINVAL,4,4
	.comm	AVSEEK_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
