	.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
	pushq	%rax
	.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, %r14
	movq	%rsi, %r12
	movq	(%rdi), %rbx
	movl	(%rcx), %r13d
	cmpb	$99, (%rbx)
	jl	LBB0_2
## %bb.1:
	movq	_AV_GET_BUFFER_FLAG_REF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_ff_get_buffer
	testl	%eax, %eax
	jns	LBB0_5
	jmp	LBB0_29
LBB0_2:
	movq	8(%rbx), %rsi
	xorl	%edx, %edx
	callq	_ff_reget_buffer
	testl	%eax, %eax
	js	LBB0_29
## %bb.3:
	movq	8(%rbx), %rsi
	movq	%r12, %rdi
	callq	_av_frame_ref
	testl	%eax, %eax
	js	LBB0_29
LBB0_5:
	shll	$3, %r13d
	movl	4(%r15), %esi
	leaq	-44(%rbp), %rdi
	movl	%r13d, %edx
	callq	_init_get_bits
	cmpq	$0, 24(%rbx)
	je	LBB0_9
## %bb.6:
	cmpb	$105, (%rbx)
	jl	LBB0_8
## %bb.7:
	leaq	-44(%rbp), %rdi
	movl	$32, %esi
	callq	_skip_bits_long
LBB0_8:
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$3, %ecx
	xorl	%r8d, %r8d
	callq	_bink_decode_plane
	testl	%eax, %eax
	js	LBB0_29
LBB0_9:
	movb	(%rbx), %al
	cmpb	$105, %al
	jl	LBB0_11
## %bb.10:
	leaq	-44(%rbp), %rdi
	movl	$32, %esi
	callq	_skip_bits_long
	movb	(%rbx), %al
LBB0_11:
	movl	4(%rbx), %ecx
	leal	1(%rcx), %edx
	movl	%edx, 4(%rbx)
	cmpb	$99, %al
	jl	LBB0_23
## %bb.12:
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_bink_decode_plane
	testl	%eax, %eax
	jns	LBB0_25
	jmp	LBB0_29
LBB0_23:
	xorl	%r8d, %r8d
	testl	%ecx, %ecx
	sete	%r8b
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_binkb_decode_plane
	testl	%eax, %eax
	js	LBB0_29
LBB0_25:
	leaq	-44(%rbp), %rdi
	callq	_get_bits_count
	cmpl	%r13d, %eax
	jge	LBB0_26
## %bb.13:
	cmpl	$1, 16(%rbx)
	movl	$2, %ecx
	sbbl	$0, %ecx
	cmpb	$98, (%rbx)
	jle	LBB0_14
## %bb.15:
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$1, %r8d
	callq	_bink_decode_plane
	testl	%eax, %eax
	jns	LBB0_17
	jmp	LBB0_29
LBB0_14:
	xorl	%r8d, %r8d
	cmpl	$1, 4(%rbx)
	sete	%r8b
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$1, %r9d
	callq	_binkb_decode_plane
	testl	%eax, %eax
	js	LBB0_29
LBB0_17:
	leaq	-44(%rbp), %rdi
	callq	_get_bits_count
	cmpl	%r13d, %eax
	jge	LBB0_26
## %bb.18:
	xorl	%ecx, %ecx
	cmpl	$1, 16(%rbx)
	adcl	$1, %ecx
	cmpb	$98, (%rbx)
	jle	LBB0_19
## %bb.20:
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$1, %r8d
	callq	_bink_decode_plane
	jmp	LBB0_21
LBB0_19:
	xorl	%r8d, %r8d
	cmpl	$1, 4(%rbx)
	sete	%r8b
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$1, %r9d
	callq	_binkb_decode_plane
LBB0_21:
	testl	%eax, %eax
	js	LBB0_29
## %bb.22:
	leaq	-44(%rbp), %rdi
	callq	_get_bits_count
LBB0_26:
	xorl	%eax, %eax
	callq	_emms_c
	cmpb	$99, (%rbx)
	jl	LBB0_28
## %bb.27:
	movq	8(%rbx), %rdi
	callq	_av_frame_unref
	movq	8(%rbx), %rdi
	movq	%r12, %rsi
	callq	_av_frame_ref
	testl	%eax, %eax
	js	LBB0_29
LBB0_28:
	movl	$1, (%r14)
	movl	(%r15), %eax
LBB0_29:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_GET_BUFFER_FLAG_REF,4,2     ## @AV_GET_BUFFER_FLAG_REF
	.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, #80
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	ldr	x22, [x0]
	ldr	w23, [x3]
	ldrsb	w8, [x22]
	cmp	w8, #99
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AV_GET_BUFFER_FLAG_REF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_GET_BUFFER_FLAG_REF@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_ff_get_buffer
	tbz	w0, #31, LBB0_4
	b	LBB0_25
LBB0_2:
	ldr	x1, [x22, #8]
	mov	w2, #0
	bl	_ff_reget_buffer
	tbnz	w0, #31, LBB0_25
; %bb.3:
	ldr	x1, [x22, #8]
	mov	x0, x21
	bl	_av_frame_ref
	tbnz	w0, #31, LBB0_25
LBB0_4:
	lsl	w23, w23, #3
	ldr	w1, [x19, #4]
	add	x0, sp, #12
	mov	x2, x23
	bl	_init_get_bits
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_8
; %bb.5:
	ldrsb	w8, [x22]
	cmp	w8, #105
	b.lt	LBB0_7
; %bb.6:
	add	x0, sp, #12
	mov	w1, #32
	bl	_skip_bits_long
LBB0_7:
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x21
	mov	w3, #3
	mov	w4, #0
	bl	_bink_decode_plane
	tbnz	w0, #31, LBB0_25
LBB0_8:
	ldrsb	w8, [x22]
	cmp	w8, #105
	b.lt	LBB0_10
; %bb.9:
	add	x0, sp, #12
	mov	w1, #32
	bl	_skip_bits_long
	ldrb	w8, [x22]
LBB0_10:
	ldr	w9, [x22, #4]
	add	w10, w9, #1
	str	w10, [x22, #4]
	sxtb	w8, w8
	cmp	w8, #99
	b.lt	LBB0_12
; %bb.11:
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x21
	mov	w3, #0
	mov	w4, #0
	bl	_bink_decode_plane
	tbz	w0, #31, LBB0_13
	b	LBB0_25
LBB0_12:
	cmp	w9, #0
	cset	w4, eq
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x21
	mov	w3, #0
	mov	w5, #0
	bl	_binkb_decode_plane
	tbnz	w0, #31, LBB0_25
LBB0_13:
	add	x0, sp, #12
	bl	_get_bits_count
	cmp	w0, w23
	b.ge	LBB0_22
; %bb.14:
	ldr	w8, [x22, #16]
	cmp	w8, #0
	mov	w8, #1
	cinc	w3, w8, ne
	ldrsb	w8, [x22]
	cmp	w8, #98
	b.le	LBB0_16
; %bb.15:
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x21
	mov	w4, #1
	bl	_bink_decode_plane
	tbz	w0, #31, LBB0_17
	b	LBB0_25
LBB0_16:
	ldr	w8, [x22, #4]
	cmp	w8, #1
	cset	w4, eq
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x21
	mov	w5, #1
	bl	_binkb_decode_plane
	tbnz	w0, #31, LBB0_25
LBB0_17:
	add	x0, sp, #12
	bl	_get_bits_count
	cmp	w0, w23
	b.ge	LBB0_22
; %bb.18:
	ldr	w8, [x22, #16]
	cmp	w8, #0
	mov	w8, #1
	cinc	w3, w8, eq
	ldrsb	w8, [x22]
	cmp	w8, #98
	b.le	LBB0_20
; %bb.19:
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x21
	mov	w4, #1
	bl	_bink_decode_plane
	tbz	w0, #31, LBB0_21
	b	LBB0_25
LBB0_20:
	ldr	w8, [x22, #4]
	cmp	w8, #1
	cset	w4, eq
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x21
	mov	w5, #1
	bl	_binkb_decode_plane
	tbnz	w0, #31, LBB0_25
LBB0_21:
	add	x0, sp, #12
	bl	_get_bits_count
LBB0_22:
	bl	_emms_c
	ldrsb	w8, [x22]
	cmp	w8, #99
	b.lt	LBB0_24
; %bb.23:
	ldr	x0, [x22, #8]
	bl	_av_frame_unref
	ldr	x0, [x22, #8]
	mov	x1, x21
	bl	_av_frame_ref
	tbnz	w0, #31, LBB0_25
LBB0_24:
	mov	w8, #1
	str	w8, [x20]
	ldr	w0, [x19]
LBB0_25:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_GET_BUFFER_FLAG_REF,4,2     ; @AV_GET_BUFFER_FLAG_REF
	.no_dead_strip	_decode_frame
.subsections_via_symbols
