	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function bitpacked_decode_yuv422p10
LCPI0_0:
	.quad	4                               ## 0x4
	.quad	4                               ## 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_bitpacked_decode_yuv422p10:            ## @bitpacked_decode_yuv422p10
	.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	%rdx, %r14
	movq	%rdi, %r15
	movl	(%rdi), %ebx
	movl	4(%rdi), %r13d
	movq	8(%rdx), %r12
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_14
## %bb.1:
	shll	$3, %r12d
	imull	%r13d, %ebx
	shll	$2, %ebx
	leal	(%rbx,%rbx,4), %eax
	cmpl	%r12d, %eax
	jle	LBB0_3
## %bb.2:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_3:
	movl	(%r15), %eax
	testb	$1, %al
	jne	LBB0_4
## %bb.5:
	movl	(%r14), %esi
	imull	4(%r15), %eax
	shll	$2, %eax
	leal	(%rax,%rax,4), %edx
	leaq	-44(%rbp), %rdi
	callq	_init_get_bits
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:
	movl	4(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_13
## %bb.7:
	movl	(%r15), %eax
	xorl	%r12d, %r12d
	leaq	-44(%rbp), %r13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	incl	%r12d
	cmpl	%ecx, %r12d
	jge	LBB0_13
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	testl	%eax, %eax
	jle	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	movdqu	8(%rcx), %xmm0
	movq	4(%rax), %xmm1                  ## xmm1 = mem[0],zero
	movd	%r12d, %xmm2
	pshufd	$80, %xmm2, %xmm2               ## xmm2 = xmm2[0,0,1,1]
	pmulld	%xmm1, %xmm2
	pmovsxdq	%xmm2, %xmm1
	paddq	%xmm0, %xmm1
	movdqa	%xmm1, -64(%rbp)                ## 16-byte Spill
	movslq	(%rax), %rax
	movslq	%r12d, %rbx
	imulq	%rax, %rbx
	addq	(%rcx), %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_get_bits
	movdqa	-64(%rbp), %xmm0                ## 16-byte Reload
	movq	%xmm0, %rcx
	movl	%eax, (%rcx)
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_get_bits
	movl	%eax, (%rbx,%r14,4)
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_get_bits
	movdqa	-64(%rbp), %xmm0                ## 16-byte Reload
	pextrq	$1, %xmm0, %rcx
	paddq	LCPI0_0(%rip), %xmm0
	movdqa	%xmm0, -64(%rbp)                ## 16-byte Spill
	movl	%eax, (%rcx)
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_get_bits
	movl	%eax, 4(%rbx,%r14,4)
	movl	(%r15), %eax
	addq	$2, %r14
	cmpl	%eax, %r14d
	jl	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	4(%r15), %ecx
	jmp	LBB0_12
LBB0_4:
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_13:
	xorl	%eax, %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	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.no_dead_strip	_bitpacked_decode_yuv422p10
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bitpacked_decode_yuv422p10
_bitpacked_decode_yuv422p10:            ; @bitpacked_decode_yuv422p10
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldp	w23, w24, [x0]
	ldr	x22, [x2, #8]
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_14
; %bb.1:
	mul	w8, w23, w24
	add	w8, w8, w8, lsl #2
	lsl	w8, w8, #2
	cmp	w8, w22, lsl #3
	b.le	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_3:
	ldr	w8, [x20]
	tbnz	w8, #0, LBB0_12
; %bb.4:
	ldr	w1, [x21]
	ldr	w9, [x20, #4]
	mul	w8, w8, w9
	add	w8, w8, w8, lsl #2
	lsl	w2, w8, #2
	sub	x0, x29, #52
	bl	_init_get_bits
	cbnz	w0, LBB0_14
; %bb.5:
	ldr	w9, [x20, #4]
	cmp	w9, #1
	b.lt	LBB0_13
; %bb.6:
	mov	w21, #0
	ldr	w8, [x20]
	mov	w10, #4
	dup.2d	v0, x10
	str	q0, [sp]                        ; 16-byte Folded Spill
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w21, w21, #1
	cmp	w21, w9
	b.ge	LBB0_13
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x22, #0
	ldp	x9, x8, [x19]
	ldur	q0, [x8, #8]
	ldur	d1, [x9, #4]
	dup.2s	v2, w21
	mul.2s	v1, v1, v2
	saddw.2d	v0, v0, v1
	ldr	x8, [x8]
	ldrsw	x9, [x9]
	sxtw	x10, w21
	madd	x23, x9, x10, x8
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	q0, [sp, #32]                   ; 16-byte Folded Spill
	add	x24, x23, x22, lsl #2
	sub	x0, x29, #52
	mov	w1, #10
	bl	_get_bits
	ldr	q0, [sp, #32]                   ; 16-byte Folded Reload
	fmov	x8, d0
	str	w0, [x8]
	sub	x0, x29, #52
	mov	w1, #10
	bl	_get_bits
	str	w0, [x24]
	sub	x0, x29, #52
	mov	w1, #10
	bl	_get_bits
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	ldr	q1, [sp, #32]                   ; 16-byte Folded Reload
	add.2d	v0, v1, v0
	str	q0, [sp, #16]                   ; 16-byte Folded Spill
	mov.d	x8, v1[1]
	str	w0, [x8]
	sub	x0, x29, #52
	mov	w1, #10
	bl	_get_bits
	str	w0, [x24, #4]
	ldr	w8, [x20]
	add	x22, x22, #2
	ldr	q0, [sp, #16]                   ; 16-byte Folded Reload
	cmp	w22, w8
	b.lt	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x20, #4]
	b	LBB0_7
LBB0_12:
Lloh3:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.no_dead_strip	_bitpacked_decode_yuv422p10
.subsections_via_symbols
