	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_intra_pred_angular_upper_32width_msa
_hevc_intra_pred_angular_upper_32width_msa: ## @hevc_intra_pred_angular_upper_32width_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	$568, %rsp                      ## imm = 0x238
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_intra_pred_angle_up@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movslq	%r8d, %rax
	movslq	-72(%rcx,%rax,4), %rsi
	addq	$-4, %rdi
	cmpq	$-2, %rsi
	movq	%rsi, -512(%rbp)                ## 8-byte Spill
	jg	LBB0_1
## %bb.2:
	movq	%rbx, -464(%rbp)                ## 8-byte Spill
	leaq	l___const.hevc_intra_pred_angular_upper_32width_msa.inv_angle(%rip), %rcx
	movl	-72(%rcx,%rax,4), %r14d
	movl	%r14d, %ebx
	imull	%esi, %ebx
	movl	$16, %esi
	callq	_LD_UB2
	movups	124(%r13), %xmm0
	movaps	%xmm0, -528(%rbp)               ## 16-byte Spill
	leaq	-320(%rbp), %r13
	movq	%r13, %rdx
	movl	$16, %ecx
	callq	_ST_UB2
	movq	-512(%rbp), %rsi                ## 8-byte Reload
	movaps	-528(%rbp), %xmm0               ## 16-byte Reload
	movaps	%xmm0, -192(%rbp)
	testb	$1, %sil
	jne	LBB0_4
## %bb.3:
	movq	%rsi, %rax
	cmpl	$-1, %esi
	jne	LBB0_6
	jmp	LBB0_8
LBB0_1:
	movq	%rdi, %r13
	jmp	LBB0_9
LBB0_4:
	leal	128(%rbx), %eax
	sarl	$8, %eax
	cltq
	movl	-4(%r12,%rax,4), %eax
	movl	%eax, -320(%rbp,%rsi,4)
	addl	%r14d, %ebx
	movq	%rsi, %rax
	incq	%rax
	cmpl	$-1, %esi
	je	LBB0_8
LBB0_6:
	subl	$-128, %ebx
	leal	(%r14,%r14), %ecx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edx
	sarl	$8, %edx
	movslq	%edx, %rdx
	movl	-4(%r12,%rdx,4), %edx
	movl	%edx, -320(%rbp,%rax,4)
	leal	(%r14,%rbx), %edx
	sarl	$8, %edx
	movslq	%edx, %rdx
	movl	-4(%r12,%rdx,4), %edx
	movl	%edx, -316(%rbp,%rax,4)
	addq	$2, %rax
	addl	%ecx, %ebx
	testl	%eax, %eax
	jne	LBB0_7
LBB0_8:
	movq	-464(%rbp), %rbx                ## 8-byte Reload
LBB0_9:
	movq	%r13, -536(%rbp)                ## 8-byte Spill
	movslq	%r15d, %rcx
	leaq	(,%rcx,8), %rdx
	movq	%rdx, -544(%rbp)                ## 8-byte Spill
	shlq	$2, %rcx
	movq	%rcx, -552(%rbp)                ## 8-byte Spill
	leal	(%rsi,%rsi), %ecx
	movl	$-16, %edx
	movl	%ecx, -468(%rbp)                ## 4-byte Spill
	movl	%esi, %r15d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, -500(%rbp)                ## 4-byte Spill
	movl	%edx, -528(%rbp)                ## 4-byte Spill
	movq	%rbx, -464(%rbp)                ## 8-byte Spill
	movl	%r15d, %eax
	sarl	$5, %eax
	movl	%r15d, %edx
	andl	$31, %edx
	movl	%edx, -452(%rbp)                ## 4-byte Spill
	addl	%esi, %r15d
	movl	%ecx, %ebx
	sarl	$5, %ebx
	andl	$31, %ecx
	movl	%ecx, -484(%rbp)                ## 4-byte Spill
	addl	%esi, %r15d
	movslq	%eax, %r13
	movq	-536(%rbp), %r14                ## 8-byte Reload
	leaq	(%r14,%r13,4), %rdi
	addq	$4, %rdi
	callq	_LD_UB
	movl	%eax, -492(%rbp)                ## 4-byte Spill
	movslq	%ebx, %rbx
	leaq	(%r14,%rbx,4), %rdi
	addq	$4, %rdi
	callq	_LD_UB
	movl	%eax, -488(%rbp)                ## 4-byte Spill
	leaq	(%r14,%r13,4), %rdi
	addq	$68, %rdi
	callq	_LD_UB
	movl	%eax, %r12d
	leaq	(%r14,%rbx,4), %rdi
	addq	$68, %rdi
	callq	_LD_UB
	movl	%eax, -476(%rbp)                ## 4-byte Spill
	leaq	(%r14,%r13,4), %rdi
	addq	$132, %rdi
	callq	_LD_UB
	movl	%eax, %r13d
	leaq	(%r14,%rbx,4), %rdi
	addq	$132, %rdi
	callq	_LD_UB
	movl	%eax, %r14d
	movl	-452(%rbp), %ebx                ## 4-byte Reload
	movl	%ebx, %edi
	callq	___msa_fill_h
	movl	%eax, -496(%rbp)                ## 4-byte Spill
	movl	$32, %edi
	subl	%ebx, %edi
	callq	___msa_fill_h
	movl	-484(%rbp), %ebx                ## 4-byte Reload
	movl	%ebx, %edi
	callq	___msa_fill_h
	movl	%eax, -452(%rbp)                ## 4-byte Spill
	movl	$32, %edi
	subl	%ebx, %edi
	callq	___msa_fill_h
	movl	%r14d, -480(%rbp)               ## 4-byte Spill
	movl	%r14d, 48(%rsp)
	movl	-476(%rbp), %r8d                ## 4-byte Reload
	movl	%r8d, 40(%rsp)
	movl	%r13d, -472(%rbp)               ## 4-byte Spill
	movl	%r13d, 32(%rsp)
	movl	%r12d, 24(%rsp)
	movl	%r8d, 8(%rsp)
	movl	%r14d, (%rsp)
	movl	$1, 16(%rsp)
	movl	%r12d, %edi
	movl	-492(%rbp), %r14d               ## 4-byte Reload
	movl	%r14d, %esi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movl	%r8d, %r13d
	movl	-488(%rbp), %ebx                ## 4-byte Reload
	movl	%ebx, %r9d
	callq	_SLDI_B4_UB
	movl	%r14d, %edi
	callq	_UNPCK_UB_SH
	movl	%r12d, %edi
	callq	_UNPCK_UB_SH
	movl	%r12d, %edi
	callq	_UNPCK_UB_SH
	movl	-472(%rbp), %edi                ## 4-byte Reload
	callq	_UNPCK_UB_SH
	movl	%ebx, %edi
	callq	_UNPCK_UB_SH
	movl	%r13d, %edi
	callq	_UNPCK_UB_SH
	movl	%r13d, %edi
	callq	_UNPCK_UB_SH
	movl	-480(%rbp), %edi                ## 4-byte Reload
	callq	_UNPCK_UB_SH
	movl	-496(%rbp), %ecx                ## 4-byte Reload
	movl	%ecx, 8(%rsp)
	movl	%ecx, %esi
	movl	%ecx, %r9d
	callq	_MUL4
	movl	-452(%rbp), %ecx                ## 4-byte Reload
	movl	%ecx, 8(%rsp)
	movl	%ecx, %esi
	movl	%ecx, %r9d
	movq	-464(%rbp), %rbx                ## 8-byte Reload
	callq	_MUL4
	movl	$5, %r8d
	callq	_SRARI_H4_SH
	movl	$5, %r8d
	callq	_SRARI_H4_SH
	callq	_PCKEV_B4_SB
	movq	%rbx, %rdx
	movl	$16, %ecx
	callq	_ST_SB2
	movq	-552(%rbp), %rax                ## 8-byte Reload
	leaq	(%rbx,%rax), %rdx
	movl	$16, %ecx
	callq	_ST_SB2
	movl	-500(%rbp), %ecx                ## 4-byte Reload
	movl	-528(%rbp), %edx                ## 4-byte Reload
	movq	-512(%rbp), %rsi                ## 8-byte Reload
	addq	-544(%rbp), %rbx                ## 8-byte Folded Reload
	addl	-468(%rbp), %ecx                ## 4-byte Folded Reload
	incl	%edx
	jne	LBB0_10
## %bb.11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$568, %rsp                      ## imm = 0x238
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.hevc_intra_pred_angular_upper_32width_msa.inv_angle
l___const.hevc_intra_pred_angular_upper_32width_msa.inv_angle:
	.long	4294967040                      ## 0xffffff00
	.long	4294966981                      ## 0xfffffec5
	.long	4294966906                      ## 0xfffffe7a
	.long	4294966814                      ## 0xfffffe1e
	.long	4294966666                      ## 0xfffffd8a
	.long	4294966386                      ## 0xfffffc72
	.long	4294965658                      ## 0xfffff99a
	.long	4294963200                      ## 0xfffff000

	.comm	_intra_pred_angle_up,8,3        ## @intra_pred_angle_up
	.no_dead_strip	_hevc_intra_pred_angular_upper_32width_msa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hevc_intra_pred_angular_upper_32width_msa
_hevc_intra_pred_angular_upper_32width_msa: ; @hevc_intra_pred_angular_upper_32width_msa
	.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
	sub	sp, sp, #496
                                        ; kill: def $w4 killed $w4 def $x4
	mov	x21, x3
	mov	x25, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _intra_pred_angle_up@GOTPAGE
Lloh4:
	ldr	x8, [x8, _intra_pred_angle_up@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x8]
	sbfiz	x8, x4, #2, #32
	sub	x8, x8, #72
	ldrsw	x26, [x9, x8]
	sub	x27, x0, #4
	cmn	w26, #2
	b.gt	LBB0_8
; %bb.1:
	mov	x23, x0
	sub	x19, x1, #4
	add	x9, sp, #80
	add	x22, x9, #128
Lloh6:
	adrp	x9, l___const.hevc_intra_pred_angular_upper_32width_msa.inv_angle@PAGE
Lloh7:
	add	x9, x9, l___const.hevc_intra_pred_angular_upper_32width_msa.inv_angle@PAGEOFF
	ldr	w20, [x9, x8]
	mul	w24, w20, w26
	mov	x0, x27
	mov	w1, #16
	bl	_LD_UB2
	ldur	q0, [x23, #124]
	str	q0, [sp, #64]                   ; 16-byte Folded Spill
	mov	x2, x22
	mov	w3, #16
	bl	_ST_UB2
	ldr	q0, [sp, #64]                   ; 16-byte Folded Reload
	str	q0, [sp, #336]
	mov	x8, x26
	mov	x9, x24
	cmn	w26, #4
	b.hi	LBB0_5
; %bb.2:
	mvn	w8, w26
	add	x10, x8, #1
	and	x11, x10, #0x1fffffffc
	add	x8, x11, x26
	madd	w9, w20, w11, w24
	madd	w12, w20, w26, w20
	lsl	w13, w20, #2
	add	x14, sp, #80
	add	x14, x14, x26, lsl #2
	add	x14, x14, #140
	add	w15, w26, #2
	mul	w15, w20, w15
	add	w16, w26, #3
	mul	w16, w20, w16
	mov	w17, #128
	mov	x0, x11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w1, w24, w17
	add	w2, w12, w17
	add	w3, w15, w17
	add	w4, w16, w17
	asr	w1, w1, #8
	asr	w2, w2, #8
	asr	w3, w3, #8
	ldr	w1, [x19, w1, sxtw #2]
	ldr	w2, [x19, w2, sxtw #2]
	asr	w4, w4, #8
	ldr	w3, [x19, w3, sxtw #2]
	ldr	w4, [x19, w4, sxtw #2]
	stp	w1, w2, [x14, #-12]
	stp	w3, w4, [x14, #-4]
	add	w17, w17, w13
	add	x14, x14, #16
	subs	x0, x0, #4
	b.ne	LBB0_3
; %bb.4:
	cmp	x10, x11
	b.eq	LBB0_7
LBB0_5:
	add	x10, sp, #80
	add	x10, x10, x8, lsl #2
	add	x10, x10, #128
	add	w9, w9, #128
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	asr	w11, w9, #8
	ldr	w11, [x19, w11, sxtw #2]
	str	w11, [x10], #4
	add	w9, w9, w20
	adds	w8, w8, #1
	b.lo	LBB0_6
LBB0_7:
	mov	x27, x22
LBB0_8:
	mov	w19, #0
	sbfiz	x9, x21, #3, #32
	sbfiz	x8, x21, #2, #32
	stp	x8, x9, [sp, #24]               ; 16-byte Folded Spill
	mov	w9, #-16
	lsl	w8, w26, #1
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	stp	x27, x26, [sp, #40]             ; 16-byte Folded Spill
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	str	w9, [sp, #60]                   ; 4-byte Folded Spill
	str	x25, [sp, #64]                  ; 8-byte Folded Spill
	add	w8, w26, w19
	asr	w9, w8, #5
	and	w26, w8, #0x1f
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	add	w19, w8, w19
	asr	w20, w19, #5
	and	w28, w19, #0x1f
	add	x24, x27, w9, sxtw #2
	add	x0, x24, #4
	bl	_LD_UB
	mov	x23, x0
	add	x25, x27, w20, sxtw #2
	add	x0, x25, #4
	bl	_LD_UB
	str	w0, [sp, #56]                   ; 4-byte Folded Spill
	add	x0, x24, #68
	bl	_LD_UB
	mov	x27, x0
	add	x0, x25, #68
	bl	_LD_UB
	mov	x22, x0
	add	x0, x24, #132
	bl	_LD_UB
	mov	x20, x0
	add	x0, x25, #132
	bl	_LD_UB
	mov	x25, x0
	mov	x0, x26
	bl	___msa_fill_h
	mov	x24, x0
	mov	w21, #32
	sub	w0, w21, w26
	bl	___msa_fill_h
	mov	x0, x28
	bl	___msa_fill_h
	mov	x26, x0
	sub	w0, w21, w28
	bl	___msa_fill_h
	stp	w22, w25, [sp, #12]
	stp	w27, w20, [sp, #4]
	mov	w8, #1
	str	w8, [sp]
	mov	x0, x27
	mov	x1, x23
	mov	x2, x20
	mov	x3, x27
	mov	x4, x22
	ldr	w21, [sp, #56]                  ; 4-byte Folded Reload
	mov	x5, x21
	mov	x6, x25
	mov	x7, x22
	bl	_SLDI_B4_UB
	mov	x0, x23
	bl	_UNPCK_UB_SH
	mov	x0, x27
	bl	_UNPCK_UB_SH
	mov	x0, x27
	ldr	x27, [sp, #40]                  ; 8-byte Folded Reload
	bl	_UNPCK_UB_SH
	mov	x0, x20
	bl	_UNPCK_UB_SH
	mov	x0, x21
	bl	_UNPCK_UB_SH
	mov	x0, x22
	bl	_UNPCK_UB_SH
	mov	x0, x22
	bl	_UNPCK_UB_SH
	mov	x0, x25
	ldr	x25, [sp, #64]                  ; 8-byte Folded Reload
	bl	_UNPCK_UB_SH
	mov	x1, x24
	mov	x3, x24
	mov	x5, x24
	mov	x7, x24
	bl	_MUL4
	mov	x1, x26
	mov	x3, x26
	mov	x5, x26
	mov	x7, x26
	ldr	x26, [sp, #48]                  ; 8-byte Folded Reload
	bl	_MUL4
	mov	w4, #5
	bl	_SRARI_H4_SH
	mov	w4, #5
	bl	_SRARI_H4_SH
	bl	_PCKEV_B4_SB
	mov	x2, x25
	mov	w3, #16
	bl	_ST_SB2
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x2, x25, x8
	mov	w3, #16
	bl	_ST_SB2
	ldr	w9, [sp, #60]                   ; 4-byte Folded Reload
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x25, x25, x8
	adds	w9, w9, #1
	b.lo	LBB0_9
; %bb.10:
	ldur	x8, [x29, #-96]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	add	sp, sp, #496
	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
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.hevc_intra_pred_angular_upper_32width_msa.inv_angle
l___const.hevc_intra_pred_angular_upper_32width_msa.inv_angle:
	.long	4294967040                      ; 0xffffff00
	.long	4294966981                      ; 0xfffffec5
	.long	4294966906                      ; 0xfffffe7a
	.long	4294966814                      ; 0xfffffe1e
	.long	4294966666                      ; 0xfffffd8a
	.long	4294966386                      ; 0xfffffc72
	.long	4294965658                      ; 0xfffff99a
	.long	4294963200                      ; 0xfffff000

	.comm	_intra_pred_angle_up,8,3        ; @intra_pred_angle_up
	.no_dead_strip	_hevc_intra_pred_angular_upper_32width_msa
.subsections_via_symbols
