	.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
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r13
	leaq	32(%r13), %rbx
	movl	(%rcx), %edx
	movl	4(%rcx), %esi
	movq	%rbx, %rdi
	callq	_bytestream2_init
	movq	%rbx, %rdi
	callq	_bytestream2_peek_le32
	movq	_EMPT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	(%r15), %r13d
	jmp	LBB0_32
LBB0_2:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, (%r13)
	xorl	%r12d, %r12d
                                        ## implicit-def: $r13d
	jmp	LBB0_3
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_bytestream2_skip
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%r13d, %r13d
	js	LBB0_32
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_bytestream2_get_bytes_left
	testl	%eax, %eax
	je	LBB0_20
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_bytestream2_get_bytes_left
	cmpl	$7, %eax
	jbe	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_bytestream2_get_le32
	movl	%eax, %r15d
	movq	_KBND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r15d
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_BNDL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	jne	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r12d, %r12d
	cmpl	%eax, %r15d
	sete	%r12b
	movq	%rbx, %rdi
	callq	_bytestream2_get_le32
	movl	%eax, %r15d
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_bytestream2_get_le32
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_bytestream2_get_bytes_left
	cmpl	%r14d, %eax
	jb	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	addl	$-128, %r15d
	cmpl	$6, %r15d
	ja	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%r15,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_decode_fint
	movl	%eax, %r13d
	jmp	LBB0_19
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_decode_mpos
	movl	%eax, %r13d
	jmp	LBB0_19
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_decode_move
	movl	%eax, %r13d
	jmp	LBB0_19
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_decode_mous
	movl	%eax, %r13d
	jmp	LBB0_19
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_decode_kfrm
	movl	%eax, %r13d
	jmp	LBB0_19
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_decode_dlta
	movl	%eax, %r13d
	jmp	LBB0_19
LBB0_20:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.21:
	movq	24(%rbx), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.22:
	movq	(%rbx), %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_23
## %bb.24:
	movq	(%rbx), %rdx
	movq	16(%rbx), %rsi
	movq	%r14, %rdi
	callq	_copy_plane
	movq	(%r14), %rax
	movq	_AV_PIX_FMT_PAL8@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.25:
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	8(%rax), %rax
	movl	4(%rax), %edi
	movq	(%rcx), %rax
	movl	4(%rax), %esi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_memcpy
LBB0_26:
	cmpl	$0, 8(%rbx)
	jne	LBB0_28
## %bb.27:
	movq	%r14, %rdi
	callq	_draw_cursor
LBB0_28:
	movq	(%rbx), %rax
	movl	%r12d, (%rax)
	testl	%r12d, %r12d
	jne	LBB0_29
## %bb.30:
	movq	_AV_PICTURE_TYPE_P@GOTPCREL(%rip), %rcx
	jmp	LBB0_31
LBB0_5:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_32:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movl	%eax, %r13d
	jmp	LBB0_32
LBB0_29:
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rcx
LBB0_31:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movl	$1, (%rsi)
	movl	(%rdx), %r13d
	jmp	LBB0_32
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_13
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_EMPT,8,3                       ## @EMPT
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_KBND,4,2                       ## @KBND
	.comm	_BNDL,4,2                       ## @BNDL
	.comm	_AV_PIX_FMT_PAL8,8,3            ## @AV_PIX_FMT_PAL8
	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_P,4,2          ## @AV_PICTURE_TYPE_P
	.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	x23, x1
	mov	x21, x0
	ldr	x26, [x0, #8]
	add	x22, x26, #32
	ldp	w2, w1, [x3]
	mov	x0, x22
	bl	_bytestream2_init
	mov	x0, x22
	bl	_bytestream2_peek_le32
Lloh0:
	adrp	x8, _EMPT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EMPT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
LBB0_1:
	ldr	w23, [x19]
	b	LBB0_27
LBB0_2:
	str	x20, [sp]                       ; 8-byte Folded Spill
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	str	x23, [x26]
Lloh3:
	adrp	x28, _KBND@GOTPAGE
Lloh4:
	ldr	x28, [x28, _KBND@GOTPAGEOFF]
Lloh5:
	adrp	x20, lJTI0_0@PAGE
Lloh6:
	add	x20, x20, lJTI0_0@PAGEOFF
                                        ; implicit-def: $w23
Lloh7:
	adrp	x27, _BNDL@GOTPAGE
Lloh8:
	ldr	x27, [x27, _BNDL@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x24
	bl	_decode_fint
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, x0
	tbnz	w0, #31, LBB0_27
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_bytestream2_get_bytes_left
	cbz	w0, LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_bytestream2_get_bytes_left
	cmp	w0, #7
	b.ls	LBB0_26
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_bytestream2_get_le32
	mov	x25, x0
	ldr	w8, [x28]
	ldr	w9, [x27]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w25, w8
	cset	w8, eq
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	x0, x22
	bl	_bytestream2_get_le32
	mov	x25, x0
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_bytestream2_get_le32
	mov	x24, x0
	mov	x0, x22
	bl	_bytestream2_get_bytes_left
	cmp	w0, w24
	b.lo	LBB0_26
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	sub	w8, w25, #128
	cmp	w8, #6
	b.hi	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	adr	x9, LBB0_3
	ldrb	w10, [x20, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x24
	bl	_decode_mpos
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	x1, x24
	bl	_bytestream2_skip
	tbz	w23, #31, LBB0_5
	b	LBB0_27
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x24
	bl	_decode_move
	b	LBB0_4
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x24
	bl	_decode_mous
	b	LBB0_4
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x24
	bl	_decode_kfrm
	b	LBB0_4
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x24
	bl	_decode_dlta
	b	LBB0_4
LBB0_18:
	ldr	x8, [x26, #16]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbz	w8, LBB0_26
; %bb.19:
	ldr	x8, [x26, #24]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbz	w8, LBB0_26
; %bb.20:
	ldr	x1, [x26]
	mov	x0, x21
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_28
; %bb.21:
	ldr	x1, [x26, #16]
	ldr	x2, [x26]
	mov	x0, x21
	bl	_copy_plane
	ldr	x8, [x21]
Lloh9:
	adrp	x9, _AV_PIX_FMT_PAL8@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AV_PIX_FMT_PAL8@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.22:
	ldr	x8, [x26]
	ldr	x8, [x8, #8]
	ldr	w0, [x8, #4]
	ldr	x8, [x26, #16]
	ldr	x8, [x8]
	ldr	w1, [x8, #4]
	mov	w2, #1024
	bl	_memcpy
LBB0_23:
	ldr	w8, [x26, #8]
	ldr	x20, [sp]                       ; 8-byte Folded Reload
	cbnz	w8, LBB0_25
; %bb.24:
	mov	x0, x21
	bl	_draw_cursor
LBB0_25:
	ldr	x8, [x26]
	ldr	w11, [sp, #12]                  ; 4-byte Folded Reload
	str	w11, [x8]
Lloh12:
	adrp	x9, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh14:
	adrp	x10, _AV_PICTURE_TYPE_P@GOTPAGE
Lloh15:
	ldr	x10, [x10, _AV_PICTURE_TYPE_P@GOTPAGEOFF]
	cmp	w11, #0
	csel	x9, x10, x9, eq
	ldr	w9, [x9]
	str	w9, [x8, #4]
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_1
LBB0_26:
Lloh16:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh18:
	ldr	w23, [x8]
LBB0_27:
	mov	x0, x23
	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
LBB0_28:
	mov	x23, x0
	b	LBB0_27
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_12-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_17-LBB0_3)>>2
                                        ; -- End function
	.comm	_EMPT,8,3                       ; @EMPT
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_KBND,4,2                       ; @KBND
	.comm	_BNDL,4,2                       ; @BNDL
	.comm	_AV_PIX_FMT_PAL8,8,3            ; @AV_PIX_FMT_PAL8
	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_P,4,2          ; @AV_PICTURE_TYPE_P
	.no_dead_strip	_decode_frame
.subsections_via_symbols
