	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hqa_decode_mb
_hqa_decode_mb:                         ## @hqa_decode_mb
	.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
	movl	%r9d, %r14d
	movl	%r8d, %ebx
	movq	%rcx, %r13
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	%rcx, %rdi
	callq	_get_bits_left
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	8(%r12), %esi
	movq	%r13, %rdi
	movl	$5, %edx
	movl	$1, %ecx
	callq	_get_vlc2
	movl	%eax, %r15d
	movq	(%r12), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	(%r12), %rax
	movq	8(%rax), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	(%r12), %rax
	movq	16(%rax), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	(%r12), %rax
	movq	24(%rax), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	(%r12), %rax
	movq	32(%rax), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	(%r12), %rax
	movq	40(%rax), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	(%r12), %rax
	movq	48(%rax), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	(%r12), %rax
	movq	56(%rax), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	(%r12), %rax
	movq	64(%rax), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	(%r12), %rax
	movq	72(%rax), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	(%r12), %rax
	movq	80(%rax), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	(%r12), %rax
	movq	88(%rax), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	(%r12), %rcx
	movq	(%rcx), %r10
	movl	$-8192, (%r10)                  ## imm = 0xE000
	movq	8(%rcx), %rdx
	movl	$-8192, (%rdx)                  ## imm = 0xE000
	movq	16(%rcx), %rax
	movl	$-8192, (%rax)                  ## imm = 0xE000
	movq	24(%rcx), %rdx
	movl	$-8192, (%rdx)                  ## imm = 0xE000
	movq	32(%rcx), %rdx
	movl	$-8192, (%rdx)                  ## imm = 0xE000
	movq	40(%rcx), %rdx
	movl	$-8192, (%rdx)                  ## imm = 0xE000
	movq	48(%rcx), %rdx
	movl	$-8192, (%rdx)                  ## imm = 0xE000
	movq	56(%rcx), %rdx
	movl	$-8192, (%rdx)                  ## imm = 0xE000
	movq	64(%rcx), %rdx
	movl	$-8192, (%rdx)                  ## imm = 0xE000
	movq	72(%rcx), %rdx
	movl	$-8192, (%rdx)                  ## imm = 0xE000
	movq	80(%rcx), %rdx
	movl	$-8192, (%rdx)                  ## imm = 0xE000
	movq	88(%rcx), %rcx
	movl	$-8192, (%rcx)                  ## imm = 0xE000
	movl	$0, %ebx
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.3:
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	callq	_get_bits1
	movl	%eax, %ebx
	movl	%r15d, %eax
	shll	$4, %eax
	orl	%r15d, %eax
	movl	%eax, %ecx
	orl	$1280, %ecx                     ## imm = 0x500
	testb	$3, %r15b
	cmovel	%eax, %ecx
	movl	%ecx, %r14d
	orl	$2560, %r14d                    ## imm = 0xA00
	testb	$12, %cl
	cmovel	%ecx, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	cmpq	$12, %r15
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	btl	%r15d, %r14d
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r12), %rax
	movq	(%rax,%r15,8), %rdx
	xorl	%r8d, %r8d
	cmpq	$8, %r15
	setae	%r8b
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	$1, %r9d
	callq	_hq_decode_block
	testl	%eax, %eax
	jns	LBB0_6
	jmp	LBB0_9
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_7:
	movq	(%r12), %rcx
	movq	(%rcx), %r10
	movq	16(%rcx), %rax
	movl	-48(%rbp), %r14d                ## 4-byte Reload
LBB0_8:
	movq	%r12, %rdi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	$3, %edx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	pushq	%rax
	pushq	%r10
	callq	_put_blocks
	addq	$16, %rsp
	leal	8(%r15), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	(%r12), %rax
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$3, %edx
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	pushq	24(%rax)
	pushq	8(%rax)
	callq	_put_blocks
	addq	$16, %rsp
	movq	(%r12), %rax
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	pushq	48(%rax)
	pushq	32(%rax)
	callq	_put_blocks
	addq	$16, %rsp
	movq	(%r12), %rax
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	pushq	56(%rax)
	pushq	40(%rax)
	callq	_put_blocks
	addq	$16, %rsp
	sarl	%r15d
	movq	(%r12), %rax
	movups	64(%rax), %xmm0
	subq	$16, %rsp
	movups	%xmm0, (%rsp)
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$2, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	callq	_put_blocks
	addq	$16, %rsp
	movq	(%r12), %rax
	movups	80(%rax), %xmm0
	subq	$16, %rsp
	movups	%xmm0, (%rsp)
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	callq	_put_blocks
	addq	$16, %rsp
	xorl	%eax, %eax
LBB0_9:
	addq	$24, %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
	.no_dead_strip	_hqa_decode_mb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hqa_decode_mb
_hqa_decode_mb:                         ; @hqa_decode_mb
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x3
	bl	_get_bits_left
	cmp	w0, #0
	b.le	LBB0_6
; %bb.1:
	ldr	w1, [x21, #8]
	mov	x0, x23
	mov	w2, #5
	mov	w3, #1
	bl	_get_vlc2
	mov	x26, x0
	ldr	x8, [x21]
	ldr	x0, [x8]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x21]
	ldr	x0, [x8, #8]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x21]
	ldr	x0, [x8, #16]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x21]
	ldr	x0, [x8, #24]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x21]
	ldr	x0, [x8, #32]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x21]
	ldr	x0, [x8, #40]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x21]
	ldr	x0, [x8, #48]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x21]
	ldr	x0, [x8, #56]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x21]
	ldr	x0, [x8, #64]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x21]
	ldr	x0, [x8, #72]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x21]
	ldr	x0, [x8, #80]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x21]
	ldr	x0, [x8, #88]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x21]
	mov	w9, #-8192
	ldp	x6, x10, [x8]
	str	w9, [x6]
	str	w9, [x10]
	ldp	x7, x10, [x8, #16]
	str	w9, [x7]
	str	w9, [x10]
	ldp	x10, x11, [x8, #32]
	str	w9, [x10]
	str	w9, [x11]
	ldp	x10, x11, [x8, #48]
	str	w9, [x10]
	str	w9, [x11]
	ldp	x10, x11, [x8, #64]
	str	w9, [x10]
	str	w9, [x11]
	ldp	x10, x8, [x8, #80]
	str	w9, [x10]
	str	w9, [x8]
	cbz	w26, LBB0_7
; %bb.2:
	mov	x0, x23
	bl	_get_bits1
	mov	x25, x0
	mov	x27, #0
	orr	w8, w26, w26, lsl #4
	mov	w9, #1280
	orr	w9, w8, w9
	tst	w26, #0x3
	csel	w8, w8, w9, eq
	mov	w9, #2560
	orr	w9, w8, w9
	tst	w8, #0xc
	csel	w26, w8, w9, eq
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #1
	cmp	x27, #12
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w8, w26, w27
	tbz	w8, #0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	ldr	x2, [x8, x27, lsl #3]
	cmp	x27, #7
	cset	w4, hi
	mov	x0, x21
	mov	x1, x23
	mov	x3, x24
	mov	w5, #1
	bl	_hq_decode_block
	tbz	w0, #31, LBB0_3
	b	LBB0_10
LBB0_6:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_7:
	mov	w25, #0
	b	LBB0_9
LBB0_8:
	ldr	x8, [x21]
	ldr	x6, [x8]
	ldr	x7, [x8, #16]
LBB0_9:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #3
	mov	x3, x22
	mov	x4, x19
	mov	x5, x25
	bl	_put_blocks
	add	w23, w22, #8
	ldr	x8, [x21]
	ldr	x6, [x8, #8]
	ldr	x7, [x8, #24]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #3
	mov	x3, x23
	mov	x4, x19
	mov	x5, x25
	bl	_put_blocks
	ldr	x8, [x21]
	ldr	x6, [x8, #32]
	ldr	x7, [x8, #48]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	mov	x3, x22
	mov	x4, x19
	mov	x5, x25
	bl	_put_blocks
	ldr	x8, [x21]
	ldr	x6, [x8, #40]
	ldr	x7, [x8, #56]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	mov	x3, x23
	mov	x4, x19
	mov	x5, x25
	bl	_put_blocks
	asr	w22, w22, #1
	ldr	x8, [x21]
	ldp	x6, x7, [x8, #64]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #2
	mov	x3, x22
	mov	x4, x19
	mov	x5, x25
	bl	_put_blocks
	ldr	x8, [x21]
	ldp	x6, x7, [x8, #80]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1
	mov	x3, x22
	mov	x4, x19
	mov	x5, x25
	bl	_put_blocks
	mov	w0, #0
LBB0_10:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_hqa_decode_mb
.subsections_via_symbols
