	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_put_vp8_pixels8_msa         ## -- Begin function ff_put_vp8_pixels8_msa
	.p2align	4, 0x90
_ff_put_vp8_pixels8_msa:                ## @ff_put_vp8_pixels8_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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %r13
	testb	$7, %bl
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.4:
	testb	$3, %bl
	jne	LBB0_8
## %bb.5:
	cmpl	$4, %ebx
	jb	LBB0_8
## %bb.6:
	leal	3(%rbx), %r14d
	testl	%ebx, %ebx
	cmovnsl	%ebx, %r14d
	sarl	$2, %r14d
	leal	(,%rcx,4), %eax
	movslq	%eax, %rdx
	leal	(,%r15,4), %eax
	cltq
	shlq	$2, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	shlq	$2, %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ecx, %esi
	callq	_LD_UB4
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, %r15d
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, %ebx
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	%eax, %ecx
	movq	%r13, %r8
	movl	%r15d, %r9d
	callq	_SD4
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	addq	-64(%rbp), %r13                 ## 8-byte Folded Reload
	addq	-72(%rbp), %r12                 ## 8-byte Folded Reload
	decl	%r14d
	jne	LBB0_7
	jmp	LBB0_8
LBB0_1:
	cmpl	$8, %ebx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jb	LBB0_8
## %bb.2:
	sarl	$3, %ebx
	leal	(,%rcx,8), %eax
	movslq	%eax, %rdx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %eax
	cltq
	leaq	(,%rax,8), %rsi
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	shlq	$2, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	shlq	$2, %rdx
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ecx, %esi
	callq	_LD_UB8
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, %r15d
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
	callq	___msa_copy_u_d
	movl	%eax, %r14d
	movl	%r15d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	movq	%r13, %r8
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %r9d
	callq	_SD4
	movq	-112(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%r13), %r8
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movl	-80(%rbp), %esi                 ## 4-byte Reload
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	movl	%r15d, %r9d
	callq	_SD4
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	addq	-104(%rbp), %r13                ## 8-byte Folded Reload
	addq	-120(%rbp), %r12                ## 8-byte Folded Reload
	decl	%ebx
	jne	LBB0_3
LBB0_8:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_put_vp8_pixels8_msa         ; -- Begin function ff_put_vp8_pixels8_msa
	.p2align	2
_ff_put_vp8_pixels8_msa:                ; @ff_put_vp8_pixels8_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x27, x3
	mov	x20, x2
	mov	x28, x1
	mov	x22, x0
	tst	w4, #0x7
	b.eq	LBB0_5
; %bb.1:
	tst	w4, #0x3
	b.ne	LBB0_8
; %bb.2:
	cmp	w4, #4
	b.lo	LBB0_8
; %bb.3:
	add	w8, w4, #3
	cmp	w4, #0
	csel	w8, w8, w4, lt
	asr	w24, w8, #2
	lsl	w8, w27, #2
	lsl	w9, w28, #2
	sbfiz	x25, x9, #2, #32
	sbfiz	x26, x8, #2, #32
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w24, w24, #1
	mov	x0, x20
	mov	x1, x27
	bl	_LD_UB4
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x19, x0
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x21, x0
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x23, x0
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x3, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	x4, x22
	mov	x5, x28
	bl	_SD4
	add	x22, x22, x25
	add	x20, x20, x26
	cbnz	w24, LBB0_4
	b	LBB0_8
LBB0_5:
	cmp	w4, #8
	b.lo	LBB0_8
; %bb.6:
	asr	w23, w4, #3
	lsl	w8, w27, #3
	lsl	w9, w28, #2
	sbfiz	x10, x9, #3, #32
	sbfiz	x9, x9, #2, #32
	stp	x9, x10, [sp, #32]              ; 16-byte Folded Spill
	sbfiz	x8, x8, #2, #32
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	w23, w23, #1
	mov	x0, x20
	mov	x1, x27
	bl	_LD_UB8
	mov	w1, #0
	bl	___msa_copy_u_d
	str	w0, [sp, #60]                   ; 4-byte Folded Spill
	mov	w1, #0
	bl	___msa_copy_u_d
	str	w0, [sp, #56]                   ; 4-byte Folded Spill
	mov	w1, #0
	bl	___msa_copy_u_d
	str	w0, [sp, #52]                   ; 4-byte Folded Spill
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x26, x0
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x24, x27
	mov	x27, x0
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x25, x0
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x19, x0
	mov	w1, #0
	bl	___msa_copy_u_d
	mov	x21, x0
	ldp	w1, w0, [sp, #56]               ; 8-byte Folded Reload
	ldr	w2, [sp, #52]                   ; 4-byte Folded Reload
	mov	x3, x26
	mov	x4, x22
	mov	x5, x28
	bl	_SD4
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x4, x22, x8
	mov	x0, x27
	mov	x27, x24
	mov	x1, x25
	mov	x2, x19
	mov	x3, x21
	mov	x5, x28
	bl	_SD4
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x22, x22, x8
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x20, x20, x8
	cbnz	w23, LBB0_7
LBB0_8:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
