	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$769, (%rcx)                    ## imm = 0x301
	jg	LBB0_2
## %bb.1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_2:
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movq	(%r14), %rsi
	xorl	%edx, %edx
	callq	_ff_reget_buffer
	testl	%eax, %eax
	js	LBB0_14
## %bb.3:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	movq	16(%rax), %rax
	movq	8(%rax), %r15
	movq	8(%r13), %rsi
	movl	(%r13), %edx
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_bytestream2_init
	movq	%rbx, %rdi
	callq	_bytestream2_get_byteu
	movl	%eax, %edx
	andl	$1, %edx
	movq	(%r14), %rcx
	movl	%edx, (%rcx)
	shrl	%eax
	andl	$1, %eax
	movl	%eax, 4(%rcx)
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_4
## %bb.5:
	movq	_AV_PICTURE_TYPE_P@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, 24(%rcx)
	xorl	%r12d, %r12d
	leaq	-48(%rbp), %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_bytestream2_get_be24u
	orl	$-16777216, %eax                ## imm = 0xFF000000
	movl	%eax, (%r15,%r12,4)
	incq	%r12
	cmpl	$256, %r12d                     ## imm = 0x100
	jne	LBB0_7
## %bb.8:
	movl	16(%r14), %esi
	movl	20(%r14), %edi
	callq	_last_reset
	movl	24(%r14), %esi
	movl	28(%r14), %edi
	callq	_last_reset
	movl	8(%r14), %esi
	movl	12(%r14), %edi
	callq	_last_reset
	movl	32(%r14), %esi
	movl	36(%r14), %edi
	callq	_last_reset
	movl	$769, %esi                      ## imm = 0x301
	addq	8(%r13), %rsi
	movl	$-769, %edx                     ## imm = 0xFCFF
	addl	(%r13), %edx
	leaq	-44(%rbp), %rdi
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_14
## %bb.9:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %eax
	movl	4(%rcx), %ecx
	sarl	$2, %eax
	sarl	$2, %ecx
	imull	%eax, %ecx
	testl	%ecx, %ecx
	jle	LBB0_12
## %bb.10:
	leaq	-44(%rbp), %rbx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	32(%r14), %edx
	movl	36(%r14), %esi
	movq	%rbx, %rdi
	callq	_smk_get_code
	jmp	LBB0_11
LBB0_12:
	movq	(%r14), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_frame_ref
	testl	%eax, %eax
	js	LBB0_14
## %bb.13:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	(%r13), %eax
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_P,4,2          ## @AV_PICTURE_TYPE_P
	.comm	_block_runs,8,3                 ## @block_runs
	.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, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	w8, [x3]
	cmp	w8, #769
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_2:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x23, [x0, #16]
	ldr	x1, [x23]
	mov	w2, #0
	bl	_ff_reget_buffer
	tbnz	w0, #31, LBB0_10
; %bb.3:
	ldr	x8, [x23]
	ldr	x8, [x8, #16]
	ldr	x24, [x8, #8]
	ldr	x1, [x19, #8]
	ldr	w2, [x19]
	add	x0, sp, #12
	bl	_bytestream2_init
	add	x0, sp, #12
	bl	_bytestream2_get_byteu
	mov	x25, #0
	and	w8, w0, #0x1
	ldr	x9, [x23]
	mov	w10, #1
	ands	w10, w10, w0, lsr #1
Lloh3:
	adrp	x11, _AV_PICTURE_TYPE_P@GOTPAGE
Lloh4:
	ldr	x11, [x11, _AV_PICTURE_TYPE_P@GOTPAGEOFF]
	stp	w8, w10, [x9]
Lloh5:
	adrp	x8, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
	csel	x8, x11, x8, eq
	ldr	w8, [x8]
	str	w8, [x9, #24]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	bl	_bytestream2_get_be24u
	orr	w8, w0, #0xff000000
	str	w8, [x24, x25]
	add	x25, x25, #4
	cmp	w25, #1024
	b.ne	LBB0_4
; %bb.5:
	ldp	w1, w0, [x23, #16]
	bl	_last_reset
	ldp	w1, w0, [x23, #24]
	bl	_last_reset
	ldp	w1, w0, [x23, #8]
	bl	_last_reset
	ldp	w1, w0, [x23, #32]
	bl	_last_reset
	ldr	x8, [x19, #8]
	add	x1, x8, #769
	ldr	w8, [x19]
	sub	w2, w8, #769
	add	x0, sp, #8
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_10
; %bb.6:
	ldp	w8, w9, [x22]
	asr	w8, w8, #2
	asr	w9, w9, #2
	mul	w8, w9, w8
	cmp	w8, #1
	b.lt	LBB0_8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w2, w1, [x23, #32]
	add	x0, sp, #8
	bl	_smk_get_code
	b	LBB0_7
LBB0_8:
	ldr	x1, [x23]
	mov	x0, x21
	bl	_av_frame_ref
	tbnz	w0, #31, LBB0_10
; %bb.9:
	mov	w8, #1
	str	w8, [x20]
	ldr	w0, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_P,4,2          ; @AV_PICTURE_TYPE_P
	.comm	_block_runs,8,3                 ; @block_runs
	.no_dead_strip	_decode_frame
.subsections_via_symbols
