	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function decode_tag
LCPI0_0:
	.long	0x428c0000                      ## float 70
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_decode_tag:                            ## @decode_tag
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	(%rcx), %r15
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movq	%rcx, %rdi
	xorl	%esi, %esi
	callq	_av_packet_get_side_data
	movq	%rax, %r8
	movl	8(%rbx), %esi
	movq	_NELLY_BLOCK_LEN@GOTPCREL(%rip), %rcx
	movl	%esi, %eax
	cltd
	idivl	(%rcx)
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movl	%edx, %ecx
	movl	%eax, %r12d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rbx
	movq	8(%r13), %r13
	testl	%edx, %edx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.3:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	movq	%r8, %r14
	callq	_av_log
	movq	%r14, %r8
LBB0_4:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	testq	%r8, %r8
	je	LBB0_9
## %bb.5:
	cmpl	$2, %r12d
	jb	LBB0_9
## %bb.6:
	imull	$-742513167, (%rdi), %eax       ## imm = 0xD3BE25F1
	addl	$194783, %eax                   ## imm = 0x2F8DF
	cmpl	$389566, %eax                   ## imm = 0x5F1BE
	ja	LBB0_9
## %bb.7:
	movb	(%r8), %cl
	shrb	$2, %cl
	andb	$3, %cl
	movl	$1, %eax
	shll	%cl, %eax
	cmpl	%r12d, %eax
	jne	LBB0_9
## %bb.8:
	movl	%r12d, %eax
	shrl	%eax
	imull	$11025, %eax, %eax              ## imm = 0x2B11
	movl	%eax, (%rdi)
LBB0_9:
	movq	_NELLY_SAMPLES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%r12d, %eax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, (%rbx)
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_13
## %bb.10:
	movq	8(%rbx), %rax
	movq	(%rax), %rbx
	movq	_NELLY_BLOCK_LEN@GOTPCREL(%rip), %r13
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_nelly_decode_block
	movq	_NELLY_SAMPLES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rbx,%rax,4), %rbx
	movslq	(%r13), %rax
	leaq	(%r15,%rax,4), %r15
	decl	%r12d
	jne	LBB0_11
## %bb.12:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_13
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NELLY_BLOCK_LEN,4,2            ## @NELLY_BLOCK_LEN
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Packet is too small\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Leftover bytes: %d.\n"

	.comm	_NELLY_SAMPLES,4,2              ## @NELLY_SAMPLES
	.no_dead_strip	_decode_tag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_tag
_decode_tag:                            ; @decode_tag
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x19, x2
	mov	x23, x1
	mov	x24, x0
	ldr	x21, [x3]
	mov	w8, #1116471296
	fmov	s0, w8
	mov	x0, x3
	mov	x1, #0
	bl	_av_packet_get_side_data
	ldr	w20, [x20, #8]
Lloh0:
	adrp	x26, _NELLY_BLOCK_LEN@GOTPAGE
Lloh1:
	ldr	x26, [x26, _NELLY_BLOCK_LEN@GOTPAGEOFF]
	ldr	w8, [x26]
	sdiv	w27, w20, w8
	cmp	w27, #0
	b.le	LBB0_12
; %bb.1:
	mov	x25, x0
	ldr	x22, [x24, #8]
	msub	w8, w27, w8, w20
	cbz	w8, LBB0_3
; %bb.2:
Lloh2:
	adrp	x9, _AV_LOG_WARNING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_av_log
LBB0_3:
	cbz	x25, LBB0_8
; %bb.4:
	cmp	w27, #2
	b.lo	LBB0_8
; %bb.5:
	ldr	w8, [x24]
	mov	w9, #9713
	movk	w9, #54206, lsl #16
	mov	w10, #63711
	movk	w10, #2, lsl #16
	madd	w8, w8, w9, w10
	mov	w9, #61886
	movk	w9, #5, lsl #16
	cmp	w8, w9
	b.hi	LBB0_8
; %bb.6:
	ldr	w8, [x25]
	ubfx	w8, w8, #2, #2
	mov	w9, #1
	lsl	w8, w9, w8
	cmp	w8, w27
	b.ne	LBB0_8
; %bb.7:
	lsr	w8, w27, #1
	mov	w9, #11025
	mul	w8, w8, w9
	str	w8, [x24]
LBB0_8:
Lloh7:
	adrp	x25, _NELLY_SAMPLES@GOTPAGE
Lloh8:
	ldr	x25, [x25, _NELLY_SAMPLES@GOTPAGEOFF]
	ldr	w8, [x25]
	mul	w8, w8, w27
	str	w8, [x23]
	mov	x0, x24
	mov	x1, x23
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_13
; %bb.9:
	ldr	x8, [x23, #8]
	ldr	x23, [x8]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_nelly_decode_block
	ldrsw	x8, [x25]
	add	x23, x23, x8, lsl #2
	ldrsw	x8, [x26]
	add	x21, x21, x8, lsl #2
	subs	w27, w27, #1
	b.ne	LBB0_10
; %bb.11:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_14
LBB0_12:
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
	bl	_av_log
Lloh14:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
	b	LBB0_14
LBB0_13:
	mov	x20, x0
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NELLY_BLOCK_LEN,4,2            ; @NELLY_BLOCK_LEN
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Packet is too small\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Leftover bytes: %d.\n"

	.comm	_NELLY_SAMPLES,4,2              ; @NELLY_SAMPLES
	.no_dead_strip	_decode_tag
.subsections_via_symbols
