	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avio_size                      ## -- Begin function avio_size
	.p2align	4, 0x90
_avio_size:                             ## @avio_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_4
LBB0_9:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_4:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	20(%rbx), %edi
	movq	_AVSEEK_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%esi, %esi
	callq	*%rax
	movq	%rax, %r14
	testq	%rax, %rax
	jns	LBB0_9
## %bb.7:
	movl	20(%rbx), %edi
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$-1, %esi
	callq	*8(%rbx)
	movq	%rax, %r14
	testq	%rax, %rax
	js	LBB0_9
## %bb.8:
	incq	%r14
	movl	16(%rbx), %esi
	movl	20(%rbx), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	*8(%rbx)
	jmp	LBB0_9
LBB0_5:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_AVSEEK_SIZE,4,2                ## @AVSEEK_SIZE
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avio_size                      ; -- Begin function avio_size
	.p2align	2
_avio_size:                             ; @avio_size
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0]
	cbz	x20, LBB0_5
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.6:
	ldr	w0, [x19, #20]
Lloh2:
	adrp	x9, _AVSEEK_SIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AVSEEK_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x9]
	mov	w1, #0
	blr	x8
	mov	x20, x0
	tbz	x0, #63, LBB0_2
; %bb.7:
	ldr	x8, [x19, #8]
	ldr	w0, [x19, #20]
Lloh5:
	adrp	x9, _SEEK_END@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SEEK_END@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x9]
	mov	w1, #-1
	blr	x8
	mov	x20, x0
	tbnz	x0, #63, LBB0_2
; %bb.8:
	add	x20, x20, #1
	ldr	x8, [x19, #8]
	ldp	w1, w0, [x19, #16]
Lloh8:
	adrp	x9, _SEEK_SET@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SEEK_SET@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x9]
	blr	x8
	b	LBB0_2
LBB0_9:
Lloh11:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_AVSEEK_SIZE,4,2                ; @AVSEEK_SIZE
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
.subsections_via_symbols
