	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h263_dct_unquantize_msa
_h263_dct_unquantize_msa:               ## @h263_dct_unquantize_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %edi
	callq	___msa_fill_h
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	___msa_fill_h
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	cmpl	$8, %r14d
	jl	LBB0_3
## %bb.1:
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	shrl	$3, %r12d
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_LD_SH
	movl	%eax, %r14d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	___msa_clti_s_h
	movl	%eax, %ebx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	___msa_ceqi_h
	movl	%eax, %r13d
	movl	%r14d, %edi
	imull	-64(%rbp), %edi                 ## 4-byte Folded Reload
	movl	%edi, %esi
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	subl	%eax, %esi
	addl	%eax, %edi
	movl	%ebx, %edx
	callq	___msa_bmnz_v
	movl	%eax, %edi
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	___msa_bmnz_v
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_ST_SH
	addq	$32, %r15
	decl	%r12d
	jne	LBB0_2
LBB0_3:
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %ecx
	andl	$-8, %ecx
	addl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	cmpl	%edx, %ecx
	movl	-56(%rbp), %r11d                ## 4-byte Reload
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jg	LBB0_21
## %bb.4:
	movl	%r11d, %eax
	negl	%eax
	movslq	%ecx, %rsi
	movslq	%edx, %r10
	cmpq	%rsi, %r10
	movq	%rsi, %r8
	cmovgq	%r10, %r8
	subq	%rsi, %r8
	incq	%r8
	cmpq	$4, %r8
	jae	LBB0_6
## %bb.5:
	movq	%rsi, %rdx
	jmp	LBB0_17
LBB0_6:
	movq	%r8, %r9
	andq	$-4, %r9
	leaq	(%r9,%rsi), %rdx
	leaq	(%r15,%rsi,4), %rbx
	xorl	%esi, %esi
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm1, %xmm1
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	$4, %rsi
	cmpq	%rsi, %r9
	je	LBB0_16
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rbx,%rsi,4), %xmm2
	movdqa	%xmm2, %xmm3
	pcmpeqd	%xmm0, %xmm3
	movd	%xmm3, %edi
	notl	%edi
	testb	$1, %dil
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movd	%xmm2, %edi
	testl	%edi, %edi
	movl	%r11d, %ecx
	cmovsl	%eax, %ecx
	imull	%r14d, %edi
	addl	%ecx, %edi
	movl	%edi, (%rbx,%rsi,4)
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	pxor	%xmm1, %xmm3
	pextrb	$4, %xmm3, %ecx
	testb	$1, %cl
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	pextrd	$1, %xmm2, %ecx
	testl	%ecx, %ecx
	movl	%r11d, %edi
	cmovsl	%eax, %edi
	imull	%r14d, %ecx
	addl	%edi, %ecx
	movl	%ecx, 4(%rbx,%rsi,4)
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	pextrb	$8, %xmm3, %ecx
	testb	$1, %cl
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	pextrd	$2, %xmm2, %ecx
	testl	%ecx, %ecx
	movl	%r11d, %edi
	cmovsl	%eax, %edi
	imull	%r14d, %ecx
	addl	%edi, %ecx
	movl	%ecx, 8(%rbx,%rsi,4)
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	pextrb	$12, %xmm3, %ecx
	testb	$1, %cl
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	pextrd	$3, %xmm2, %ecx
	testl	%ecx, %ecx
	movl	%r11d, %edi
	cmovsl	%eax, %edi
	imull	%r14d, %ecx
	addl	%edi, %ecx
	movl	%ecx, 12(%rbx,%rsi,4)
	jmp	LBB0_15
LBB0_16:
	cmpq	%r9, %r8
	jne	LBB0_17
LBB0_21:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	decq	%rdx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%rdx
	cmpq	%r10, %rdx
	jge	LBB0_21
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r15,%rdx,4), %esi
	testl	%esi, %esi
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	%esi, %ecx
	imull	%r14d, %ecx
	testl	%esi, %esi
	movl	%r11d, %esi
	cmovsl	%eax, %esi
	addl	%ecx, %esi
	movl	%esi, 4(%r15,%rdx,4)
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_h263_dct_unquantize_msa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h263_dct_unquantize_msa
_h263_dct_unquantize_msa:               ; @h263_dct_unquantize_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	w4, [sp, #4]                    ; 4-byte Folded Spill
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	___msa_fill_h
	mov	x24, x0
	mov	x0, x19
	bl	___msa_fill_h
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	cmp	w22, #8
	b.lt	LBB0_3
; %bb.1:
	mov	x25, x0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	lsr	w22, w8, #3
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	add	x26, x21, w8, sxtw #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x26
	bl	_LD_SH
	mov	x27, x0
	mov	w1, #0
	bl	___msa_clti_s_h
	mov	x28, x0
	mov	x0, x27
	mov	w1, #0
	bl	___msa_ceqi_h
	mov	x23, x0
	mul	w8, w27, w24
	sub	w1, w8, w25
	add	w0, w8, w25
	mov	x2, x28
	bl	___msa_bmnz_v
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x27
	mov	x2, x23
	bl	___msa_bmnz_v
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x26
	bl	_ST_SH
	add	x26, x26, #32
	subs	w22, w22, #1
	b.ne	LBB0_2
LBB0_3:
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	and	w8, w10, #0xfffffff8
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	add	w9, w8, w9
	cmp	w9, w10
	b.gt	LBB0_24
; %bb.4:
	neg	w8, w19
	sxtw	x13, w9
	sxtw	x9, w10
	cmp	x9, x13
	csel	x10, x9, x13, gt
	sub	x10, x10, x13
	add	x11, x10, #1
	mov	x10, x13
	cmp	x11, #8
	b.lo	LBB0_26
; %bb.5:
	and	x12, x11, #0xfffffffffffffff8
	add	x10, x12, x13
	add	x13, x21, x13, lsl #2
	add	x13, x13, #16
	mov	x14, x12
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x13, x13, #32
	subs	x14, x14, #8
	b.eq	LBB0_23
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldur	d0, [x13, #-16]
	cmtst.2s	v1, v0, v0
	fmov	w15, s1
	tbz	w15, #0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	fmov	w15, s0
	cmp	w15, #0
	csel	w16, w8, w19, lt
	madd	w15, w15, w20, w16
	stur	w15, [x13, #-16]
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov.s	w15, v1[1]
	tbz	w15, #0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov.s	w15, v0[1]
	cmp	w15, #0
	csel	w16, w8, w19, lt
	madd	w15, w15, w20, w16
	stur	w15, [x13, #-12]
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldur	d0, [x13, #-8]
	cmtst.2s	v1, v0, v0
	fmov	w15, s1
	tbz	w15, #0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	fmov	w15, s0
	cmp	w15, #0
	csel	w16, w8, w19, lt
	madd	w15, w15, w20, w16
	stur	w15, [x13, #-8]
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	mov.s	w15, v1[1]
	tbz	w15, #0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	mov.s	w15, v0[1]
	cmp	w15, #0
	csel	w16, w8, w19, lt
	madd	w15, w15, w20, w16
	stur	w15, [x13, #-4]
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	d0, [x13]
	cmtst.2s	v1, v0, v0
	fmov	w15, s1
	tbz	w15, #0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	fmov	w15, s0
	cmp	w15, #0
	csel	w16, w8, w19, lt
	madd	w15, w15, w20, w16
	str	w15, [x13]
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	mov.s	w15, v1[1]
	tbz	w15, #0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_7 Depth=1
	mov.s	w15, v0[1]
	cmp	w15, #0
	csel	w16, w8, w19, lt
	madd	w15, w15, w20, w16
	str	w15, [x13, #4]
LBB0_19:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	d0, [x13, #8]
	cmtst.2s	v1, v0, v0
	fmov	w15, s1
	tbz	w15, #0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_7 Depth=1
	fmov	w15, s0
	cmp	w15, #0
	csel	w16, w8, w19, lt
	madd	w15, w15, w20, w16
	str	w15, [x13, #8]
LBB0_21:                                ;   in Loop: Header=BB0_7 Depth=1
	mov.s	w15, v1[1]
	tbz	w15, #0, LBB0_6
; %bb.22:                               ;   in Loop: Header=BB0_7 Depth=1
	mov.s	w15, v0[1]
	cmp	w15, #0
	csel	w16, w8, w19, lt
	madd	w15, w15, w20, w16
	str	w15, [x13, #12]
	b	LBB0_6
LBB0_23:
	cmp	x11, x12
	b.ne	LBB0_26
LBB0_24:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	add	x11, x10, #1
	cmp	x10, x9
	mov	x10, x11
	b.ge	LBB0_24
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x21, x10, lsl #2]
	cbz	w11, LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	cmp	w11, #0
	csel	w12, w8, w19, lt
	madd	w11, w11, w20, w12
	str	w11, [x21, x10, lsl #2]
	b	LBB0_25
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_h263_dct_unquantize_msa
.subsections_via_symbols
