	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_amf_tag_size                ## -- Begin function ff_amf_tag_size
	.p2align	4, 0x90
_ff_amf_tag_size:                       ## @ff_amf_tag_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	$-1, %r14d
	cmpq	%rsi, %rdi
	jae	LBB0_7
## %bb.1:
	movq	%rdi, %rsi
	subq	%rdi, %rbx
	sarq	$2, %rbx
	leaq	-28(%rbp), %r15
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_bytestream2_init
	movq	%r15, %rdi
	callq	_amf_tag_skip
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	leaq	-28(%rbp), %rdi
	callq	_bytestream2_get_bytes_left
	testq	%rax, %rax
	jle	LBB0_7
## %bb.3:
	leaq	-28(%rbp), %rdi
	callq	_bytestream2_tell
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	leaq	-28(%rbp), %rdi
	callq	_bytestream2_tell
	cltq
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setge	%dil
	jmp	LBB0_6
LBB0_4:
	xorl	%edi, %edi
LBB0_6:
	callq	_av_assert0
	leaq	-28(%rbp), %rdi
	callq	_bytestream2_tell
	movl	%eax, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_amf_tag_size                ; -- Begin function ff_amf_tag_size
	.p2align	2
_ff_amf_tag_size:                       ; @ff_amf_tag_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	x0, x1
	b.hs	LBB0_5
; %bb.1:
	mov	x8, x0
	sub	x9, x1, x0
	asr	x19, x9, #2
	add	x0, sp, #12
	mov	x1, x8
	mov	x2, x19
	bl	_bytestream2_init
	add	x0, sp, #12
	bl	_amf_tag_skip
	tbnz	w0, #31, LBB0_5
; %bb.2:
	add	x0, sp, #12
	bl	_bytestream2_get_bytes_left
	cmp	x0, #1
	b.lt	LBB0_5
; %bb.3:
	add	x0, sp, #12
	bl	_bytestream2_tell
	tbnz	w0, #31, LBB0_7
; %bb.4:
	add	x0, sp, #12
	bl	_bytestream2_tell
	cmp	x19, w0, sxtw
	cset	w0, ge
	b	LBB0_8
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	mov	w0, #0
LBB0_8:
	bl	_av_assert0
	add	x0, sp, #12
	bl	_bytestream2_tell
	b	LBB0_6
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
