	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m101_decode_frame
_m101_decode_frame:                     ## @m101_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %r14d
	movq	8(%rdi), %rax
	movl	32(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_28
## %bb.1:
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movl	$1, (%r15)
	movq	8(%rbx), %rdi
	addq	$80, %rdi
	callq	_AV_RL32
	movl	%eax, %edx
	movq	16(%rbx), %rax
	movq	_AV_PIX_FMT_YUV422P10@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jne	LBB0_2
## %bb.3:
	movl	(%rbx), %eax
	leal	15(%rax), %ecx
	addl	$30, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$4, %eax
	shll	$3, %eax
	leal	(%rax,%rax,4), %r14d
	jmp	LBB0_4
LBB0_2:
	addl	%r14d, %r14d
LBB0_4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %r8d
	cmpl	%r14d, %edx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jl	LBB0_6
## %bb.5:
	movl	24(%rbx), %eax
	movl	%eax, %ecx
	imull	%edx, %ecx
	cmpl	%ecx, %r8d
	jge	LBB0_7
LBB0_6:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%edx, %ecx
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_28
LBB0_7:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	8(%rbx), %rdx
	movl	48(%rdx), %esi
	andl	$3, %esi
	xorl	%ecx, %ecx
	cmpl	$3, %esi
	setne	%cl
	movl	%ecx, 4(%r15)
	je	LBB0_9
## %bb.8:
	movl	48(%rdx), %edx
	andl	$1, %edx
	movl	%edx, 8(%r15)
LBB0_9:
	testl	%eax, %eax
	jle	LBB0_27
## %bb.10:
	xorl	%edi, %edi
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
                                        ##       Child Loop BB0_19 Depth 3
	movl	%edi, %edx
	testl	%ecx, %ecx
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%edi, %ecx
	andl	$1, %ecx
	movl	%edi, %edx
	shrl	%edx
	cmpl	8(%r15), %ecx
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	addl	%ecx, %edx
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	16(%r15), %r9
	movq	24(%r15), %rsi
	movl	(%rsi), %ecx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	imull	%edi, %ecx
	movq	(%r9), %rdi
	movslq	%ecx, %rcx
	leaq	(%rdi,%rcx,4), %rdi
	cmpl	$8, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	imull	-44(%rbp), %edx                 ## 4-byte Folded Reload
	movslq	%edx, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movl	(%rbx), %edx
	addl	%edx, %edx
	callq	_memcpy
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_25
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	movslq	4(%rsi), %rax
	movslq	-72(%rbp), %r8                  ## 4-byte Folded Reload
	imulq	%r8, %rax
	shlq	$2, %rax
	addq	8(%r9), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movslq	8(%rsi), %r11
	imulq	%r8, %r11
	shlq	$2, %r11
	addq	16(%r9), %r11
	imull	-44(%rbp), %edx                 ## 4-byte Folded Reload
	movslq	%edx, %rax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,4), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_18 Depth=2
	incq	%r9
	movl	%r9d, %eax
	shll	$4, %eax
	addq	$16, %rdx
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	addq	$40, %rsi
	cmpl	%ecx, %eax
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	jge	LBB0_25
LBB0_18:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_19 Depth 3
	movl	%edx, %r10d
	leaq	(%rdi,%r10,4), %rax
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	movl	%esi, %edi
	andl	$-8, %edi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	leaq	(%rsi,%rdi,4), %r13
	leal	(,%r9,8), %edi
	leal	(%rdi,%rdi,4), %edi
	leaq	(%rsi,%rdi,4), %r12
	xorl	%r15d, %r15d
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_19 Depth=3
	leaq	(%r10,%r15), %r8
	addq	$32, %rcx
	andl	$3, %r14d
	orl	%edi, %r14d
	movl	%r14d, (%rax,%r15,4)
	movl	4(%r13,%r15,8), %edi
	movl	(%r12,%rcx,4), %ebx
	shrl	$2, %ebx
	andl	$3, %ebx
	leal	(%rbx,%rdi,4), %edi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	andl	$-2, %r8d
	addq	%r8, %r8
	movl	%edi, (%rsi,%r8)
	movl	12(%r13,%r15,8), %edi
	movl	(%r12,%rcx,4), %ecx
	sarl	$6, %ecx
	leal	(%rcx,%rdi,4), %ecx
	movl	%ecx, (%r11,%r8)
LBB0_23:                                ##   in Loop: Header=BB0_19 Depth=3
	incq	%r15
	movl	(%rbx), %ecx
	cmpq	$16, %r15
	je	LBB0_24
LBB0_19:                                ##   Parent Loop BB0_11 Depth=1
                                        ##     Parent Loop BB0_18 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	leal	(%rdx,%r15), %edi
	cmpl	%edi, %ecx
	jle	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=3
	movl	(%r13,%r15,8), %edi
	shll	$2, %edi
	movl	%r15d, %ecx
	shrl	%ecx
	movl	128(%r12,%rcx,4), %r14d
	testb	$1, %r15b
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=3
	shrl	$4, %r14d
	andl	$3, %r14d
	orl	%edi, %r14d
	movl	%r14d, (%rax,%r15,4)
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	incl	%edi
	movl	24(%rbx), %eax
	cmpl	%eax, %edi
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	jge	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	4(%r15), %ecx
	jmp	LBB0_11
LBB0_27:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %eax
LBB0_28:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.comm	_AV_PIX_FMT_YUV422P10,8,3       ## @AV_PIX_FMT_YUV422P10
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stride (%d) is invalid for packet sized %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_m101_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m101_decode_frame
_m101_decode_frame:                     ; @m101_decode_frame
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x24, [x3]
	ldr	w26, [x0]
	ldr	x8, [x0, #8]
	ldr	w25, [x8, #32]
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_26
; %bb.1:
Lloh0:
	adrp	x8, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x22, #32]
	mov	w8, #1
	str	w8, [x22]
	ldr	x8, [x19, #8]
	add	x0, x8, #80
	bl	_AV_RL32
	mov	x23, x0
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x9, _AV_PIX_FMT_YUV422P10@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_PIX_FMT_YUV422P10@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x19]
	add	w9, w8, #15
	add	w8, w8, #30
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w8, w8, #4
	add	w8, w8, w8, lsl #2
	lsl	w8, w8, #3
	b	LBB0_4
LBB0_3:
	lsl	w8, w26, #1
LBB0_4:
	ldr	w4, [x20, #8]
	cmp	w23, w8
	b.lt	LBB0_6
; %bb.5:
	ldr	w8, [x19, #24]
	mul	w9, w8, w23
	cmp	w4, w9
	b.ge	LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x23
	bl	_av_log
Lloh11:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	b	LBB0_26
LBB0_7:
	ldr	x10, [x19, #8]
	ldr	w9, [x10, #48]
	and	w9, w9, #0x3
	cmp	w9, #3
	cset	w9, ne
	str	w9, [x22, #4]
	b.eq	LBB0_9
; %bb.8:
	ldr	w10, [x10, #48]
	and	w10, w10, #0x1
	str	w10, [x22, #8]
LBB0_9:
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.10:
	mov	w26, #0
	mov	x13, x26
	cbz	w9, LBB0_12
LBB0_11:
	and	w9, w26, #0x1
	ldr	w10, [x22, #8]
	lsr	w11, w26, #1
	cmp	w8, #0
	cinc	w8, w8, lt
	add	w8, w11, w8, asr #1
	cmp	w9, w10
	csel	w13, w11, w8, ne
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
                                        ;       Child Loop BB0_20 Depth 3
	ldp	x11, x12, [x22, #16]
	ldr	x8, [x11]
	ldr	w9, [x12]
	mul	w9, w9, w26
	add	x0, x8, w9, sxtw #2
	cmp	w25, #8
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mul	w8, w13, w23
	add	x1, x24, w8, sxtw #2
	ldr	w8, [x19]
	lsl	w2, w8, #1
	bl	_memcpy
	b	LBB0_23
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w14, [x19]
	cmp	w14, #1
	b.lt	LBB0_23
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x8, #0
	mov	x9, #0
	mov	x10, #0
	ldp	w15, w12, [x12, #4]
	mul	w15, w15, w26
	ldp	x16, x17, [x11, #8]
	add	x11, x16, w15, sxtw #2
	mul	w12, w12, w26
	add	x12, x17, w12, sxtw #2
	mul	w13, w13, w23
	add	x13, x24, w13, sxtw #2
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=2
	add	x10, x10, #1
	add	x9, x9, #16
	add	x8, x8, #40
	cmp	w14, w10, lsl #4
	b.le	LBB0_23
LBB0_17:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_20 Depth 3
	mov	x15, #0
	and	x16, x9, #0xffffffff
	add	x17, x0, w9, uxtw #2
	ubfx	x1, x8, #3, #29
	add	x1, x13, x1, lsl #5
	add	w2, w10, w10, lsl #2
	lsl	w2, w2, #3
	add	x2, x13, w2, uxtw #2
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=3
	and	w4, w4, #0x3
	orr	w14, w4, w14
	str	w14, [x17, x15, lsl #2]
	add	x14, x16, x15
	ldr	w4, [x1, #4]
	lsl	w4, w4, #2
	lsl	x3, x3, #2
	ldr	w5, [x2, x3]
	bfxil	w4, w5, #2, #2
	ubfx	x14, x14, #1, #31
	lsl	x14, x14, #2
	str	w4, [x11, x14]
	ldr	w4, [x1, #12]
	ldr	w3, [x2, x3]
	asr	w3, w3, #6
	add	w3, w3, w4, lsl #2
	str	w3, [x12, x14]
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=3
	add	x15, x15, #1
	ldr	w14, [x19]
	add	x1, x1, #8
	cmp	x15, #16
	b.eq	LBB0_16
LBB0_20:                                ;   Parent Loop BB0_12 Depth=1
                                        ;     Parent Loop BB0_17 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	w3, w9, w15
	cmp	w14, w3
	b.le	LBB0_16
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=3
	ldr	w14, [x1]
	lsl	w14, w14, #2
	ubfx	x3, x15, #1, #31
	add	w3, w3, #32
	ldr	w4, [x2, w3, uxtw #2]
	tbz	w15, #0, LBB0_18
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=3
	ubfx	w3, w4, #4, #2
	orr	w14, w3, w14
	str	w14, [x17, x15, lsl #2]
	b	LBB0_19
LBB0_23:                                ;   in Loop: Header=BB0_12 Depth=1
	add	w26, w26, #1
	ldr	w8, [x19, #24]
	cmp	w26, w8
	b.ge	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w9, [x22, #4]
	mov	x13, x26
	cbnz	w9, LBB0_11
	b	LBB0_12
LBB0_25:
	mov	w8, #1
	str	w8, [x21]
	ldr	w0, [x20, #8]
LBB0_26:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.comm	_AV_PIX_FMT_YUV422P10,8,3       ; @AV_PIX_FMT_YUV422P10
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stride (%d) is invalid for packet sized %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_m101_decode_frame
.subsections_via_symbols
