	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpeg2_dct_unquantize_inter_msa
_mpeg2_dct_unquantize_inter_msa:        ## @mpeg2_dct_unquantize_inter_msa
	.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	%rdx, %rbx
	movq	%rdi, %r12
	movl	%esi, %edi
	callq	___msa_fill_h
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$-1, %r14d
	movb	$1, %al
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_LD_SH4
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_LD_SH4
	xorl	%esi, %esi
	callq	___msa_clti_s_h
	movl	%eax, %r15d
	xorl	%esi, %esi
	callq	___msa_ceqi_h
	movl	%eax, %r13d
	movl	%r15d, %edx
	callq	___msa_bmnz_v
	leal	(%rax,%rax), %edi
	incl	%edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_UNPCK_SH_SW
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_UNPCK_SH_SW
	callq	_UNPCK_SH_SW
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	___msa_pckev_h
	movl	%eax, %esi
	negl	%esi
	movl	%eax, %edi
	movl	%r15d, %edx
	callq	___msa_bmnz_v
	movl	%eax, %edi
	movl	%r13d, %edx
	callq	___msa_bmnz_v
	movq	%rax, %rbx
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_ST_SH
	movl	%ebx, %edi
	movl	%ebx, %esi
	callq	___msa_hadd_s_w
	movl	%eax, %edi
	callq	_HADD_SW_S32
	movq	%rax, %r13
	addl	%r14d, %r13d
	xorl	%esi, %esi
	callq	___msa_clti_s_h
	movl	%eax, %ebx
	xorl	%esi, %esi
	callq	___msa_ceqi_h
	movl	%eax, %r15d
	movl	%ebx, %edx
	callq	___msa_bmnz_v
	leal	(%rax,%rax), %edi
	incl	%edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_UNPCK_SH_SW
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_UNPCK_SH_SW
	callq	_UNPCK_SH_SW
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	___msa_pckev_h
	movl	%eax, %esi
	negl	%esi
	movl	%eax, %edi
	movl	%ebx, %edx
	callq	___msa_bmnz_v
	movl	%eax, %edi
	movl	%r15d, %edx
	callq	___msa_bmnz_v
	movq	%rax, %rbx
	leaq	32(%r12), %rsi
	movl	%ebx, %edi
	callq	_ST_SH
	movl	%ebx, %edi
	movl	%ebx, %esi
	callq	___msa_hadd_s_w
	movl	%eax, %edi
	callq	_HADD_SW_S32
	movq	%rax, %r15
	addl	%r13d, %r15d
	xorl	%esi, %esi
	callq	___msa_clti_s_h
	movl	%eax, %ebx
	xorl	%esi, %esi
	callq	___msa_ceqi_h
	movl	%eax, %r13d
	movl	%ebx, %edx
	callq	___msa_bmnz_v
	leal	(%rax,%rax), %edi
	incl	%edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_UNPCK_SH_SW
	movl	%r14d, %edi
	callq	_UNPCK_SH_SW
	callq	_UNPCK_SH_SW
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	___msa_pckev_h
	movl	%eax, %esi
	negl	%esi
	movl	%eax, %edi
	movl	%ebx, %edx
	callq	___msa_bmnz_v
	movl	%eax, %edi
	movl	%r13d, %edx
	callq	___msa_bmnz_v
	movq	%rax, %rbx
	leaq	64(%r12), %rsi
	movl	%ebx, %edi
	callq	_ST_SH
	movl	%ebx, %edi
	movl	%ebx, %esi
	callq	___msa_hadd_s_w
	movl	%eax, %edi
	callq	_HADD_SW_S32
	movq	%rax, %r13
	addl	%r15d, %r13d
	xorl	%esi, %esi
	callq	___msa_clti_s_h
	movl	%eax, %ebx
	xorl	%esi, %esi
	callq	___msa_ceqi_h
	movl	%eax, %r15d
	movl	%ebx, %edx
	callq	___msa_bmnz_v
	leal	(%rax,%rax), %edi
	incl	%edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_UNPCK_SH_SW
	movl	%r14d, %edi
	callq	_UNPCK_SH_SW
	callq	_UNPCK_SH_SW
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	___msa_pckev_h
	movl	%eax, %esi
	negl	%esi
	movl	%eax, %edi
	movl	%ebx, %edx
	callq	___msa_bmnz_v
	movl	%eax, %edi
	movl	%r15d, %edx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	callq	___msa_bmnz_v
	movq	%rax, %r14
	leaq	96(%r12), %rsi
	movl	%r14d, %edi
	callq	_ST_SH
	subq	$-128, %rbx
	movl	%r14d, %edi
	movl	%r14d, %esi
	callq	___msa_hadd_s_w
	movl	%eax, %edi
	callq	_HADD_SW_S32
	movq	%rax, %r14
	addl	%r13d, %r14d
	subq	$-128, %r12
	testb	$1, -48(%rbp)                   ## 1-byte Folded Reload
	movl	$0, %eax
	jne	LBB0_1
## %bb.2:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mpeg2_dct_unquantize_inter_msa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpeg2_dct_unquantize_inter_msa
_mpeg2_dct_unquantize_inter_msa:        ; @mpeg2_dct_unquantize_inter_msa
	.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	x19, x2
	mov	x20, x0
	mov	x0, x1
	bl	___msa_fill_h
	mov	x21, x0
	mov	w22, #-1
	mov	w8, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x25, x8
	mov	x0, x20
	mov	w1, #8
	bl	_LD_SH4
	mov	x0, x19
	mov	w1, #8
	bl	_LD_SH4
	mov	w1, #0
	bl	___msa_clti_s_h
	mov	x23, x0
	mov	w1, #0
	bl	___msa_ceqi_h
	mov	x24, x0
	mov	x2, x23
	bl	___msa_bmnz_v
	mov	w8, #1
	bfi	w8, w0, #1, #31
	mov	x0, x8
	mov	w1, #0
	mov	w2, #0
	bl	_UNPCK_SH_SW
	mov	x0, x21
	bl	_UNPCK_SH_SW
	bl	_UNPCK_SH_SW
	mov	w0, #0
	mov	w1, #0
	bl	___msa_pckev_h
	neg	w1, w0
	mov	x2, x23
	bl	___msa_bmnz_v
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x2, x24
	bl	___msa_bmnz_v
	mov	x23, x0
	mov	x1, x20
	bl	_ST_SH
	mov	x0, x23
	mov	x1, x23
	bl	___msa_hadd_s_w
	bl	_HADD_SW_S32
	add	w24, w22, w0
	mov	w1, #0
	bl	___msa_clti_s_h
	mov	x22, x0
	mov	w1, #0
	bl	___msa_ceqi_h
	mov	x23, x0
	mov	x2, x22
	bl	___msa_bmnz_v
	mov	w8, #1
	bfi	w8, w0, #1, #31
	mov	x0, x8
	mov	w1, #0
	mov	w2, #0
	bl	_UNPCK_SH_SW
	mov	x0, x21
	bl	_UNPCK_SH_SW
	bl	_UNPCK_SH_SW
	mov	w0, #0
	mov	w1, #0
	bl	___msa_pckev_h
	neg	w1, w0
	mov	x2, x22
	bl	___msa_bmnz_v
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x2, x23
	bl	___msa_bmnz_v
	mov	x22, x0
	add	x1, x20, #32
	bl	_ST_SH
	mov	x0, x22
	mov	x1, x22
	bl	___msa_hadd_s_w
	bl	_HADD_SW_S32
	add	w24, w24, w0
	mov	w1, #0
	bl	___msa_clti_s_h
	mov	x22, x0
	mov	w1, #0
	bl	___msa_ceqi_h
	mov	x23, x0
	mov	x2, x22
	bl	___msa_bmnz_v
	mov	w8, #1
	bfi	w8, w0, #1, #31
	mov	x0, x8
	mov	w1, #0
	mov	w2, #0
	bl	_UNPCK_SH_SW
	mov	x0, x21
	bl	_UNPCK_SH_SW
	bl	_UNPCK_SH_SW
	mov	w0, #0
	mov	w1, #0
	bl	___msa_pckev_h
	neg	w1, w0
	mov	x2, x22
	bl	___msa_bmnz_v
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x2, x23
	bl	___msa_bmnz_v
	mov	x22, x0
	add	x1, x20, #64
	bl	_ST_SH
	mov	x0, x22
	mov	x1, x22
	bl	___msa_hadd_s_w
	bl	_HADD_SW_S32
	add	w24, w24, w0
	mov	w1, #0
	bl	___msa_clti_s_h
	mov	x22, x0
	mov	w1, #0
	bl	___msa_ceqi_h
	mov	x23, x0
	mov	x2, x22
	bl	___msa_bmnz_v
	mov	w8, #1
	bfi	w8, w0, #1, #31
	mov	x0, x8
	mov	w1, #0
	mov	w2, #0
	bl	_UNPCK_SH_SW
	mov	x0, x21
	bl	_UNPCK_SH_SW
	bl	_UNPCK_SH_SW
	mov	w0, #0
	mov	w1, #0
	bl	___msa_pckev_h
	neg	w1, w0
	mov	x2, x22
	bl	___msa_bmnz_v
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x2, x23
	bl	___msa_bmnz_v
	mov	x22, x0
	add	x1, x20, #96
	bl	_ST_SH
	add	x19, x19, #128
	mov	x0, x22
	mov	x1, x22
	bl	___msa_hadd_s_w
	bl	_HADD_SW_S32
	mov	w8, #0
	add	w22, w24, w0
	add	x20, x20, #128
	tbnz	w25, #0, LBB0_1
; %bb.2:
	mov	x0, x22
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mpeg2_dct_unquantize_inter_msa
.subsections_via_symbols
