	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eightsvx_decode_frame
_eightsvx_decode_frame:                 ## @eightsvx_decode_frame
	.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, %r15
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	16(%rdi), %r13
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.1:
	movq	24(%r13), %rax
	cmpq	$0, (%rax)
	jne	LBB0_16
## %bb.2:
	movl	(%r15), %ecx
	movl	(%r14), %esi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, %r12d
	testl	%edx, %edx
	je	LBB0_4
## %bb.3:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movl	(%r14), %esi
	movl	(%r15), %ecx
LBB0_4:
	leal	(%rsi,%rsi,2), %eax
	cmpl	%eax, %ecx
	jge	LBB0_7
## %bb.5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_6
LBB0_7:
	movq	%r12, %rax
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	addl	$-2, %r12d
	movq	8(%r15), %rax
	movq	8(%rax), %rdx
	subq	$-128, %rdx
	movq	16(%r13), %rcx
	movq	%rdx, (%rcx)
	cmpl	$2, %esi
	jne	LBB0_9
## %bb.8:
	movslq	-48(%rbp), %rdx                 ## 4-byte Folded Reload
	movq	8(%rax,%rdx,8), %rax
	subq	$-128, %rax
	movq	%rax, 8(%rcx)
LBB0_9:
	movq	$0, (%r13)
	movl	%r12d, 8(%r13)
	movl	%r12d, %edi
	callq	_av_malloc
	movq	24(%r13), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	cmpl	$2, (%r14)
	jne	LBB0_14
## %bb.11:
	movl	%r12d, %edi
	callq	_av_malloc
	movq	24(%r13), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	je	LBB0_12
LBB0_14:
	movq	24(%r13), %rax
	movq	(%rax), %rdi
	movq	8(%r15), %rsi
	addq	$16, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	cmpl	$2, (%r14)
	jne	LBB0_16
## %bb.15:
	movq	24(%r13), %rax
	movq	8(%rax), %rdi
	movq	8(%r15), %rax
	movslq	-48(%rbp), %rcx                 ## 4-byte Folded Reload
	leaq	(%rax,%rcx,8), %rsi
	addq	$16, %rsi
	movl	%r12d, %edx
	callq	_memcpy
LBB0_16:
	movq	24(%r13), %rax
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.18:
	movq	_MAX_FRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r13), %esi
	subl	(%r13), %esi
	callq	_FFMIN
	testl	%eax, %eax
	jle	LBB0_19
## %bb.20:
	movl	%eax, %ebx
	leal	(%rbx,%rbx), %eax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_25
## %bb.21:
	cmpl	$0, (%r14)
	movq	%r14, %rcx
	movq	%r13, %r12
	movq	%rbx, %r14
	jle	LBB0_24
## %bb.22:
	movq	%r15, %r13
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	24(%r12), %rcx
	movq	(%r12), %rsi
	shlq	$2, %rsi
	addq	(%rcx,%rbx), %rsi
	movl	(%rax,%r15,4), %edi
	movq	16(%r12), %rcx
	addq	%rbx, %rcx
	movl	12(%r12), %r8d
	movl	%r14d, %edx
	callq	_delta_decode
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	incq	%r15
	movslq	(%rcx), %rax
	addq	$8, %rbx
	cmpq	%rax, %r15
	jl	LBB0_23
LBB0_24:
	movslq	%r14d, %rax
	addq	%rax, (%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	xorl	%eax, %eax
	cmpq	$0, 8(%rcx)
	sete	%al
	leal	(%r14,%rax,2), %eax
	imull	(%rcx), %eax
	jmp	LBB0_25
LBB0_17:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_6:
	movq	%r14, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_25
LBB0_19:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movl	(%r15), %eax
LBB0_25:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	24(%r13), %rdi
	callq	_av_freep
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Packet with odd size, ignoring last byte\n"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"packet size is too small\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"unexpected empty packet\n"

	.comm	_MAX_FRAME_SIZE,4,2             ## @MAX_FRAME_SIZE
	.no_dead_strip	_eightsvx_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eightsvx_decode_frame
_eightsvx_decode_frame:                 ; @eightsvx_decode_frame
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x24, [x0, #16]
	cbz	x3, LBB0_13
; %bb.1:
	ldr	x8, [x24, #24]
	ldr	x8, [x8]
	cbnz	x8, LBB0_13
; %bb.2:
	ldr	w9, [x22]
	ldr	w8, [x19]
	sdiv	w25, w9, w8
	msub	w10, w25, w8, w9
	cbz	w10, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	w8, [x19]
	ldr	w9, [x22]
LBB0_4:
	add	w10, w8, w8, lsl #1
	cmp	w9, w10
	b.ge	LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_21
LBB0_6:
	sub	w23, w25, #2
	ldr	x10, [x22, #8]
	ldr	x9, [x10, #8]
	add	x11, x9, #128
	ldr	x9, [x24, #16]
	str	x11, [x9]
	cmp	w8, #2
	b.ne	LBB0_8
; %bb.7:
	add	x8, x10, w25, sxtw #3
	ldr	x8, [x8, #8]
	add	x8, x8, #128
	str	x8, [x9, #8]
LBB0_8:
	str	xzr, [x24]
	str	w23, [x24, #8]
	mov	x0, x23
	bl	_av_malloc
	ldr	x8, [x24, #24]
	str	x0, [x8]
	cbz	x0, LBB0_25
; %bb.9:
	ldr	w8, [x19]
	cmp	w8, #2
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x23
	bl	_av_malloc
	ldr	x8, [x24, #24]
	str	x0, [x8, #8]
	cbz	x0, LBB0_24
LBB0_11:
	ldr	x8, [x24, #24]
	ldr	x0, [x8]
	ldr	x8, [x22, #8]
	add	x1, x8, #16
	mov	x2, x23
	bl	_memcpy
	ldr	w8, [x19]
	cmp	w8, #2
	b.ne	LBB0_13
; %bb.12:
	ldr	x8, [x24, #24]
	ldr	x0, [x8, #8]
	ldr	x8, [x22, #8]
	add	x8, x8, w25, sxtw #3
	add	x1, x8, #16
	mov	x2, x23
	bl	_memcpy
LBB0_13:
	ldr	x8, [x24, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_20
; %bb.14:
Lloh10:
	adrp	x8, _MAX_FRAME_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX_FRAME_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	w8, [x24, #8]
	ldr	w9, [x24]
	sub	w1, w8, w9
	bl	_FFMIN
	cmp	w0, #0
	b.le	LBB0_22
; %bb.15:
	mov	x23, x0
	lsl	w8, w0, #1
	str	w8, [x21]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_23
; %bb.16:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.17:
	mov	x22, #0
	mov	x25, #0
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w0, [x8, x25, lsl #2]
	ldp	x9, x8, [x24, #16]
	ldr	x8, [x8, x22]
	ldr	x10, [x24]
	add	x1, x8, x10, lsl #2
	add	x3, x9, x22
	ldr	w4, [x24, #12]
	mov	x2, x23
	bl	_delta_decode
	add	x25, x25, #1
	ldrsw	x8, [x19]
	add	x22, x22, #8
	cmp	x25, x8
	b.lt	LBB0_18
LBB0_19:
	ldr	x8, [x24]
	add	x8, x8, w23, sxtw
	str	x8, [x24]
	mov	w8, #1
	str	w8, [x20]
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w8, eq
	add	w8, w23, w8, lsl #1
	ldr	w9, [x19]
	mul	w0, w8, w9
	b	LBB0_23
LBB0_20:
Lloh13:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_21:
	mov	x0, x19
	bl	_av_log
Lloh18:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	b	LBB0_23
LBB0_22:
	str	wzr, [x20]
	ldr	w0, [x22]
LBB0_23:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_24:
	ldr	x0, [x24, #24]
	bl	_av_freep
LBB0_25:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Packet with odd size, ignoring last byte\n"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"packet size is too small\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"unexpected empty packet\n"

	.comm	_MAX_FRAME_SIZE,4,2             ; @MAX_FRAME_SIZE
	.no_dead_strip	_eightsvx_decode_frame
.subsections_via_symbols
