	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_frame
_decode_frame:                          ## @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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rdi, %r13
	movq	8(%rdi), %r15
	cmpl	$0, (%r15)
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.1:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	$0, (%r15)
	movq	8(%r12), %rdi
	callq	_AV_RB16
	movl	%eax, %ebx
	addl	$7, %ebx
	sarl	$3, %ebx
	leal	3(%rbx), %ecx
	movl	(%r12), %eax
	cmpl	%eax, %ecx
	jg	LBB0_3
## %bb.2:
	movq	_RALF_MAX_PKT_SIZE@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	jg	LBB0_3
## %bb.5:
	movq	40(%r15), %rdi
	movq	8(%r12), %rsi
	leal	2(%rbx), %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_4
LBB0_8:
	movq	%r12, %rbx
	movl	(%r12), %r12d
	movq	_RALF_MAX_PKT_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_10
## %bb.9:
	movq	40(%r15), %rdi
	movq	8(%rbx), %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movl	$1, (%r15)
	movl	$0, (%r14)
	movl	(%rbx), %eax
	jmp	LBB0_31
LBB0_3:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_4
LBB0_10:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rbx
	jmp	LBB0_11
LBB0_7:
	movq	40(%r15), %r8
	movslq	(%r14), %rax
	movl	(%r12), %edx
	movq	%r12, %rcx
	leal	(%rdx,%rax), %r12d
	leaq	(%r8,%rax,4), %rdi
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rcx), %rax
	movslq	%ebx, %rcx
	leaq	(%rax,%rcx,4), %rsi
	addq	$8, %rsi
	subl	%ebx, %edx
	movq	%r8, %rbx
	addl	$-2, %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
LBB0_11:
	movl	4(%r15), %eax
	movl	%eax, (%rsi)
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_31
## %bb.12:
	cmpl	$4, %r12d
	jg	LBB0_14
## %bb.13:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_4
LBB0_14:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_AV_RB16
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %r14d
	sarl	$3, %r14d
	leal	3(%r14), %ecx
	cmpl	%ecx, %r12d
	jge	LBB0_16
## %bb.15:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_4:
	movq	%r13, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_30:
	movl	(%rax), %eax
LBB0_31:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %rsi
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_init_get_bits
	movq	$0, 8(%r15)
	movq	%rbx, %rdi
	callq	_get_bits_left
	testq	%rax, %rax
	jle	LBB0_22
## %bb.17:
	leaq	-44(%rbp), %rbx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	8(%r15), %rcx
	movq	32(%r15), %rax
	movq	$0, (%rax,%rcx,8)
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%rcx
	movq	%rcx, 8(%r15)
	movq	%rbx, %rdi
	callq	_get_bits_left
	testq	%rax, %rax
	jle	LBB0_22
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	addl	$13, %esi
	movq	%rbx, %rdi
	callq	_get_bits
	movq	8(%r15), %rcx
	movq	16(%r15), %rdx
	movl	%eax, (%rdx,%rcx,4)
	movq	%rbx, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%rbx, %rdi
	movl	$9, %esi
	callq	_get_bits
	movq	8(%r15), %rcx
	movq	32(%r15), %rdx
	movq	%rax, (%rdx,%rcx,8)
	jmp	LBB0_21
LBB0_22:
	movl	$0, 24(%r15)
	cmpq	$0, 8(%r15)
	je	LBB0_29
## %bb.23:
	subl	%r14d, %r12d
	addl	$-2, %r12d
	movslq	%r14d, %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r14
	addq	$8, %r14
	movq	16(%r15), %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rbx,4), %edx
	cmpl	%edx, %r12d
	jl	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	shll	$3, %edx
	leaq	-44(%rbp), %rdi
	movq	%r14, %rsi
	callq	_init_get_bits
	movslq	24(%r15), %rax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rdx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rcx
	movq	%r13, %rdi
	leaq	-44(%rbp), %rsi
	callq	_decode_block
	testq	%rax, %rax
	js	LBB0_27
## %bb.32:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	16(%r15), %rax
	movslq	(%rax,%rbx,4), %rcx
	leaq	(%r14,%rcx,4), %r14
	subl	%ecx, %r12d
	incq	%rbx
	cmpq	%rbx, 8(%r15)
	ja	LBB0_24
	jmp	LBB0_29
LBB0_25:
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_28
LBB0_27:
	leaq	L_.str.5(%rip), %rdx
LBB0_28:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_av_log
LBB0_29:
	movl	24(%r15), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setg	%cl
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_RALF_MAX_PKT_SIZE,4,2          ## @RALF_MAX_PKT_SIZE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wrong packet's breath smells of wrong data!\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Wrong packet tails are wrong!\n"

L_.str.2:                               ## @.str.2
	.asciz	"too short packets are too short!\n"

L_.str.3:                               ## @.str.3
	.asciz	"short packets are short!\n"

L_.str.4:                               ## @.str.4
	.asciz	"I'm pedaling backwards\n"

L_.str.5:                               ## @.str.5
	.asciz	"Sir, I got carsick in your office. Not decoding the rest of packet.\n"

	.no_dead_strip	_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_frame
_decode_frame:                          ; @decode_frame
	.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	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x25, [x0, #8]
	ldr	w8, [x25]
	cbz	w8, LBB0_3
; %bb.1:
	str	wzr, [x25]
	ldr	x0, [x19, #8]
	bl	_AV_RB16
	add	w8, w0, #7
	asr	w26, w8, #3
	add	w8, w26, #3
	ldr	w9, [x19]
Lloh0:
	adrp	x23, _RALF_MAX_PKT_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RALF_MAX_PKT_SIZE@GOTPAGEOFF]
	ldr	w10, [x23]
	cmp	w8, w9
	ccmp	w9, w10, #0, le
	b.le	LBB0_5
; %bb.2:
Lloh2:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_14
LBB0_3:
	ldr	w23, [x19]
Lloh7:
	adrp	x8, _RALF_MAX_PKT_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RALF_MAX_PKT_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_7
; %bb.4:
	ldr	x0, [x25, #40]
	ldr	x1, [x19, #8]
	mov	x2, x23
	bl	_memcpy
	mov	w8, #1
	str	w8, [x25]
	str	wzr, [x20]
	b	LBB0_29
LBB0_5:
	ldr	x0, [x25, #40]
	ldr	x1, [x19, #8]
	add	w2, w26, #2
	bl	_memcmp
	cbz	x0, LBB0_8
; %bb.6:
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_7:
	ldr	x24, [x19, #8]
	b	LBB0_9
LBB0_8:
	ldr	x24, [x25, #40]
	ldrsw	x8, [x23]
	ldr	w9, [x19]
	add	w23, w9, w8
	add	x0, x24, x8, lsl #2
	ldr	x8, [x19, #8]
	add	x8, x8, w26, sxtw #2
	add	x1, x8, #8
	sub	w8, w9, w26
	sub	w2, w8, #2
	bl	_memcpy
LBB0_9:
	ldr	w8, [x25, #4]
	str	w8, [x22]
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_30
; %bb.10:
	cmp	w23, #4
	b.gt	LBB0_12
; %bb.11:
Lloh15:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str.2@PAGE
Lloh19:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_12:
	ldr	x8, [x22, #8]
	ldp	x26, x27, [x8]
	mov	x0, x24
	bl	_AV_RB16
	add	w8, w0, #7
	asr	w28, w8, #3
	add	w8, w28, #3
	cmp	w23, w8
	b.ge	LBB0_15
; %bb.13:
Lloh20:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str.3@PAGE
Lloh24:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_14:
	mov	x0, x21
	bl	_av_log
Lloh25:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	b	LBB0_30
LBB0_15:
	mov	x2, x0
	add	x1, x24, #8
	add	x0, sp, #12
	bl	_init_get_bits
	str	xzr, [x25, #8]
	add	x0, sp, #12
	bl	_get_bits_left
	cmp	x0, #1
	b.ge	LBB0_23
LBB0_16:
	str	wzr, [x25, #24]
	ldr	x8, [x25, #8]
	cbz	x8, LBB0_28
; %bb.17:
	mov	x9, x28
	mov	x28, #0
	sub	w8, w23, w9
	sub	w23, w8, #2
	add	x8, x24, w9, sxtw #2
	add	x24, x8, #8
	ldr	x8, [x25, #16]
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x8, x28, lsl #2]
	cmp	w23, w8
	b.lt	LBB0_25
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	lsl	w2, w8, #3
	add	x0, sp, #12
	mov	x1, x24
	bl	_init_get_bits
	ldrsw	x8, [x25, #24]
	lsl	x8, x8, #2
	add	x2, x26, x8
	add	x3, x27, x8
	add	x1, sp, #12
	mov	x0, x21
	bl	_decode_block
	tbnz	x0, #63, LBB0_26
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	ldp	x9, x8, [x25, #8]
	ldrsw	x10, [x8, x28, lsl #2]
	add	x24, x24, x10, lsl #2
	sub	w23, w23, w10
	add	x28, x28, #1
	cmp	x9, x28
	b.hi	LBB0_18
	b	LBB0_28
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	x9, [x25, #32]
	ldr	x8, [x25, #8]
	str	xzr, [x9, x8, lsl #3]
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x8, x8, #1
	str	x8, [x25, #8]
	add	x0, sp, #12
	bl	_get_bits_left
	cmp	x0, #0
	b.le	LBB0_16
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	add	w1, w8, #13
	add	x0, sp, #12
	bl	_get_bits
	ldp	x9, x8, [x25, #8]
	str	w0, [x8, x9, lsl #2]
	add	x0, sp, #12
	bl	_get_bits1
	cbz	x0, LBB0_21
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	add	x0, sp, #12
	mov	w1, #9
	bl	_get_bits
	ldr	x9, [x25, #32]
	ldr	x8, [x25, #8]
	str	x0, [x9, x8, lsl #3]
	b	LBB0_22
LBB0_25:
Lloh28:
	adrp	x2, l_.str.4@PAGE
Lloh29:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_27
LBB0_26:
Lloh30:
	adrp	x2, l_.str.5@PAGE
Lloh31:
	add	x2, x2, l_.str.5@PAGEOFF
LBB0_27:
Lloh32:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_av_log
LBB0_28:
	ldr	w8, [x25, #24]
	str	w8, [x22]
	cmp	w8, #0
	cset	w8, gt
	str	w8, [x20]
LBB0_29:
	ldr	w0, [x19]
LBB0_30:
	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 AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_RALF_MAX_PKT_SIZE,4,2          ; @RALF_MAX_PKT_SIZE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wrong packet's breath smells of wrong data!\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Wrong packet tails are wrong!\n"

l_.str.2:                               ; @.str.2
	.asciz	"too short packets are too short!\n"

l_.str.3:                               ; @.str.3
	.asciz	"short packets are short!\n"

l_.str.4:                               ; @.str.4
	.asciz	"I'm pedaling backwards\n"

l_.str.5:                               ; @.str.5
	.asciz	"Sir, I got carsick in your office. Not decoding the rest of packet.\n"

	.no_dead_strip	_decode_frame
.subsections_via_symbols
