	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yop_decode_frame
_yop_decode_frame:                      ## @yop_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	movl	(%rbx), %eax
	leal	(%rax,%rax,2), %eax
	addl	$4, %eax
	cmpl	%eax, (%rcx)
	jge	LBB0_3
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_2
LBB0_3:
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	40(%rbx), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_ff_reget_buffer
	testl	%eax, %eax
	js	LBB0_26
## %bb.4:
	cmpl	$0, 8(%r14)
	jne	LBB0_6
## %bb.5:
	movq	(%r15), %rax
	movl	4(%rax), %edi
	movq	_AVPALETTE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
LBB0_6:
	movq	(%r15), %rdx
	movl	(%rdx), %eax
	movl	%eax, 4(%rbx)
	movl	(%rdx), %eax
	movl	%eax, 8(%rbx)
	movq	8(%r13), %rcx
	leaq	16(%rcx), %rax
	movq	%rax, 16(%rbx)
	movslq	(%r13), %rsi
	leaq	(%rcx,%rsi,4), %rsi
	movq	%rsi, 24(%rbx)
	movq	$0, 48(%rbx)
	movslq	(%rcx), %rcx
	cmpq	$2, %rcx
	jl	LBB0_8
## %bb.7:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_av_log
LBB0_2:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_26:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	cmpl	$0, (%rbx)
	jle	LBB0_12
## %bb.9:
	movslq	4(%rdx), %rdx
	movq	32(%rbx), %rsi
	movslq	(%rsi,%rcx,4), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %esi
	movl	4(%rax), %edi
	shll	$18, %esi
	shll	$10, %edi
	orl	%esi, %edi
	movl	8(%rax), %esi
	shll	$2, %esi
	orl	%edi, %esi
	movl	%esi, %edi
	shrl	$6, %edi
	andl	$197379, %edi                   ## imm = 0x30303
	orl	%esi, %edi
	orl	$-16777216, %edi                ## imm = 0xFF000000
	movl	%edi, (%rcx,%rdx,4)
	incq	%rdx
	addq	$12, %rax
	movslq	(%rbx), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_10
## %bb.11:
	movq	%rax, 16(%rbx)
LBB0_12:
	movl	$1, 8(%r15)
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	jle	LBB0_24
## %bb.13:
	movl	4(%r14), %eax
	xorl	%edx, %edx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_27
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%rbx), %rax
	subq	8(%r13), %rax
	sarq	$2, %rax
	movslq	(%r13), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_1
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	%rbx, %rdi
	callq	_yop_get_next_nibble
	cmpl	$15, %eax
	jne	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	%rbx, %rdi
	callq	_yop_get_next_nibble
	movq	16(%r15), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_yop_copy_previous_block
	testl	%eax, %eax
	jns	LBB0_21
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=2
	movq	16(%r15), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_yop_paint_block
	testl	%eax, %eax
	js	LBB0_26
LBB0_21:                                ##   in Loop: Header=BB0_16 Depth=2
	movl	8(%rbx), %edx
	addl	$2, %edx
	movl	%edx, 8(%rbx)
	addl	$2, %r12d
	movl	4(%r14), %eax
	cmpl	%eax, %r12d
	jl	LBB0_16
## %bb.22:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r14), %ecx
	jmp	LBB0_23
LBB0_27:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	8(%rbx), %edx
	xorl	%r12d, %r12d
LBB0_23:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	16(%r15), %rsi
	movl	(%rsi), %esi
	addl	%esi, %esi
	subl	%r12d, %esi
	addl	%edx, %esi
	movl	%esi, 8(%rbx)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addl	$2, %edx
	cmpl	%ecx, %edx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jl	LBB0_14
LBB0_24:
	movq	40(%rbx), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_frame_ref
	testl	%eax, %eax
	js	LBB0_26
## %bb.25:
	movl	$1, (%r12)
	movl	(%r13), %eax
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Packet too small.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AVPALETTE_SIZE,4,2             ## @AVPALETTE_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"frame is too odd %d\n"

	.no_dead_strip	_yop_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yop_decode_frame
_yop_decode_frame:                      ; @yop_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
	mov	x19, x0
	ldr	x23, [x0, #16]
	ldr	w8, [x3]
	ldr	w9, [x23]
	add	w9, w9, w9, lsl #1
	add	w9, w9, #4
	cmp	w8, w9
	b.ge	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_7
LBB0_2:
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	ldr	x24, [x23, #40]
	mov	x0, x19
	mov	x1, x24
	mov	w2, #0
	bl	_ff_reget_buffer
	tbnz	w0, #31, LBB0_8
; %bb.3:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_5
; %bb.4:
	ldr	x8, [x24]
	ldr	w0, [x8, #4]
Lloh5:
	adrp	x8, _AVPALETTE_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVPALETTE_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
LBB0_5:
	ldr	x10, [x24]
	ldr	w8, [x10]
	str	w8, [x23, #4]
	ldr	w8, [x10]
	str	w8, [x23, #8]
	ldr	x8, [x20, #8]
	ldrsw	x9, [x20]
	add	x9, x8, x9, lsl #2
	ldrsw	x11, [x8], #16
	stp	x8, x9, [x23, #16]
	str	xzr, [x23, #48]
	cmp	w11, #1
	b.le	LBB0_9
; %bb.6:
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	str	x11, [sp]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_av_log
Lloh13:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
LBB0_8:
	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
LBB0_9:
	ldr	w9, [x23]
	cmp	w9, #1
	b.lt	LBB0_13
; %bb.10:
	mov	x9, #0
	ldrsw	x10, [x10, #4]
	ldr	x12, [x23, #32]
	ldrsw	x11, [x12, x11, lsl #2]
	add	x10, x10, x11, lsl #2
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldp	w11, w12, [x8]
	lsl	w12, w12, #10
	orr	w11, w12, w11, lsl #18
	ldr	w12, [x8, #8]
	orr	w11, w11, w12, lsl #2
	lsr	w12, w11, #6
	and	w12, w12, #0x3030303
	orr	w11, w11, w12
	orr	w11, w11, #0xff000000
	str	w11, [x10, x9, lsl #2]
	add	x9, x9, #1
	add	x8, x8, #12
	ldrsw	x11, [x23]
	cmp	x9, x11
	b.lt	LBB0_11
; %bb.12:
	str	x8, [x23, #16]
LBB0_13:
	mov	w8, #1
	str	w8, [x24, #8]
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_25
; %bb.14:
	mov	w25, #0
	ldr	w8, [x19, #4]
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	w26, #0
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=2
	mov	x0, x23
	bl	_yop_get_next_nibble
	mov	x2, x0
	ldr	x8, [x24, #16]
	ldr	w1, [x8]
	mov	x0, x23
	bl	_yop_copy_previous_block
	tbnz	w0, #31, LBB0_8
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=2
	ldr	w8, [x23, #8]
	add	w10, w8, #2
	str	w10, [x23, #8]
	add	w26, w26, #2
	ldr	w8, [x19, #4]
	cmp	w26, w8
	b.ge	LBB0_23
LBB0_19:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x23, #16]
	ldr	x9, [x20, #8]
	sub	x8, x8, x9
	ldrsw	x9, [x20]
	cmp	x9, x8, asr #2
	b.le	LBB0_1
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	mov	x0, x23
	bl	_yop_get_next_nibble
	cmp	w0, #15
	b.eq	LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=2
	mov	x2, x0
	ldr	x8, [x24, #16]
	ldr	w1, [x8]
	mov	x0, x23
	bl	_yop_paint_block
	tbz	w0, #31, LBB0_18
	b	LBB0_8
LBB0_22:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	w26, #0
	ldr	w10, [x23, #8]
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	w9, [x19]
LBB0_24:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x11, [x24, #16]
	ldr	w11, [x11]
	lsl	w11, w11, #1
	sub	w11, w11, w26
	add	w10, w11, w10
	str	w10, [x23, #8]
	add	w25, w25, #2
	cmp	w25, w9
	b.lt	LBB0_15
LBB0_25:
	ldr	x1, [x23, #40]
	mov	x0, x22
	bl	_av_frame_ref
	tbnz	w0, #31, LBB0_8
; %bb.26:
	mov	w8, #1
	str	w8, [x21]
	ldr	w0, [x20]
	b	LBB0_8
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Packet too small.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AVPALETTE_SIZE,4,2             ; @AVPALETTE_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"frame is too odd %d\n"

	.no_dead_strip	_yop_decode_frame
.subsections_via_symbols
