	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vble_decode_frame
_vble_decode_frame:                     ## @vble_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	%rdi, %rbx
	movq	8(%rdi), %r12
	movq	8(%rcx), %r14
	movl	(%rdi), %r8d
	movl	4(%rdi), %edi
	movq	%rsi, -72(%rbp)
	movl	(%rcx), %eax
	cmpl	$4, %eax
	jl	LBB0_2
## %bb.1:
	movq	%rcx, %r13
	movq	%rsi, %r15
	addl	$-4, %eax
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	7(%rcx), %esi
	testl	%ecx, %ecx
	cmovnsl	%ecx, %esi
	sarl	$3, %esi
	cmpl	%esi, %eax
	jle	LBB0_4
LBB0_2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_3:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ff_thread_get_buffer
	testl	%eax, %eax
	js	LBB0_12
## %bb.5:
	movl	$1, (%r15)
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	%r14, %rdi
	callq	_AV_RL32
	cmpl	$1, %eax
	je	LBB0_7
## %bb.6:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
LBB0_7:
	addq	$16, %r14
	movl	(%r13), %eax
	leal	-32(,%rax,8), %edx
	leaq	-44(%rbp), %rdi
	movq	%r14, %rsi
	callq	_init_get_bits
	movq	%r12, %rdi
	leaq	-44(%rbp), %rsi
	callq	_vble_unpack
	testq	%rax, %rax
	js	LBB0_8
## %bb.9:
	movl	(%rbx), %r9d
	movl	4(%rbx), %eax
	movl	%eax, (%rsp)
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_vble_restore_plane
	movq	(%r12), %rax
	movq	_AV_CODEC_FLAG_GRAY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_11
## %bb.10:
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %edx
	shrl	$31, %edx
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r14d
	shrl	$31, %r14d
	addl	%ecx, %edx
	addl	%eax, %r14d
	sarl	%edx
	movl	%edx, %eax
	sarl	%r14d
	movl	4(%rbx), %r8d
	imull	(%rbx), %r8d
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%r14d, (%rsp)
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %ecx
	movl	%eax, %ebx
	movl	%eax, %r9d
	callq	_vble_restore_plane
	movl	%r14d, %r8d
	imull	%ebx, %r8d
	addl	-48(%rbp), %r8d                 ## 4-byte Folded Reload
	movl	%r14d, (%rsp)
	movq	%r12, %rdi
	movq	%r15, %rsi
	leaq	-44(%rbp), %rdx
	movl	$2, %ecx
	movl	%ebx, %r9d
	callq	_vble_restore_plane
LBB0_11:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	(%r13), %eax
	jmp	LBB0_12
LBB0_8:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid packet size\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported VBLE Version: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid Code\n"

	.comm	_AV_CODEC_FLAG_GRAY,4,2         ## @AV_CODEC_FLAG_GRAY
	.no_dead_strip	_vble_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vble_decode_frame
_vble_decode_frame:                     ; @vble_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x23, x0
	ldr	x22, [x0, #8]
	ldr	x24, [x3, #8]
	ldp	w8, w9, [x0]
	cmp	w8, #0
	cinc	w25, w8, lt
	cmp	w9, #0
	cinc	w26, w9, lt
	str	x1, [sp, #16]
	ldr	w8, [x3]
	subs	w8, w8, #4
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	cmp	w8, w9, asr #3
	b.le	LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
LBB0_3:
	mov	x0, x23
	bl	_av_log
Lloh8:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_4:
	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
	add	sp, sp, #112
	ret
LBB0_5:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	add	x1, sp, #16
	mov	x0, x23
	mov	w2, #0
	bl	_ff_thread_get_buffer
	tbnz	w0, #31, LBB0_4
; %bb.6:
	mov	w8, #1
	str	w8, [x21]
Lloh11:
	adrp	x8, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x21, #4]
	mov	x0, x24
	bl	_AV_RL32
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #1
	b.eq	LBB0_8
; %bb.7:
Lloh14:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	str	x0, [sp]
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_av_log
LBB0_8:
	add	x1, x24, #16
	ldr	w8, [x19]
	lsl	w8, w8, #3
	sub	w2, w8, #32
	add	x0, sp, #28
	bl	_init_get_bits
	add	x1, sp, #28
	mov	x0, x22
	bl	_vble_unpack
	tbnz	x0, #63, LBB0_12
; %bb.9:
	ldp	w5, w6, [x23]
	add	x2, sp, #28
	mov	x0, x22
	mov	x1, x21
	mov	w3, #0
	mov	w4, #0
	bl	_vble_restore_plane
	ldr	x8, [x22]
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _AV_CODEC_FLAG_GRAY@GOTPAGE
Lloh20:
	ldr	x9, [x9, _AV_CODEC_FLAG_GRAY@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.10:
	asr	w24, w25, #1
	asr	w25, w26, #1
	ldp	w8, w9, [x23]
	mul	w23, w9, w8
	add	x2, sp, #28
	mov	x0, x22
	mov	x1, x21
	mov	w3, #1
	mov	x4, x23
	mov	x5, x24
	mov	x6, x25
	bl	_vble_restore_plane
	madd	w4, w25, w24, w23
	add	x2, sp, #28
	mov	x0, x22
	mov	x1, x21
	mov	w3, #2
	mov	x5, x24
	mov	x6, x25
	bl	_vble_restore_plane
LBB0_11:
	mov	w8, #1
	str	w8, [x20]
	ldr	w0, [x19]
	b	LBB0_4
LBB0_12:
Lloh22:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x2, l_.str.2@PAGE
Lloh26:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid packet size\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported VBLE Version: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid Code\n"

	.comm	_AV_CODEC_FLAG_GRAY,4,2         ; @AV_CODEC_FLAG_GRAY
	.no_dead_strip	_vble_decode_frame
.subsections_via_symbols
