	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_intra_pred_angular_lower_4width_msa
_hevc_intra_pred_angular_lower_4width_msa: ## @hevc_intra_pred_angular_lower_4width_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	$536, %rsp                      ## imm = 0x218
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -512(%rbp)                ## 8-byte Spill
	movq	%rdx, -504(%rbp)                ## 8-byte Spill
	movq	%rsi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_intra_pred_angle_low@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movslq	%r8d, %rax
	movl	-8(%rcx,%rax,4), %r14d
	addq	$-4, %r12
	movl	%r14d, %r15d
	sarl	$3, %r15d
	movslq	%r15d, %r13
	cmpl	$-9, %r14d
	movq	%r13, -472(%rbp)                ## 8-byte Spill
	jg	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	leaq	-432(%rbp), %rdx
	leaq	l___const.hevc_intra_pred_angular_lower_4width_msa.inv_angle(%rip), %rcx
	movl	-44(%rcx,%rax,4), %eax
	movq	%rax, -464(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	movq	%rdx, %r12
	callq	_LD
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_SD
	movq	-464(%rbp), %rdi                ## 8-byte Reload
	movq	%r13, %rax
	testb	$1, %r13b
	je	LBB0_3
## %bb.2:
	movl	%edi, %eax
	imull	%r13d, %eax
	subl	$-128, %eax
	sarl	$8, %eax
	cltq
	movl	-4(%rbx,%rax,4), %eax
	movl	%eax, -432(%rbp,%r13,4)
	leaq	1(%r13), %rax
LBB0_3:
	cmpl	$-1, %r15d
	je	LBB0_6
## %bb.4:
	movl	%edi, %ecx
	imull	%eax, %ecx
	subl	$-128, %ecx
	leal	(%rdi,%rdi), %edx
	leal	1(%rax), %esi
	imull	%edi, %esi
	subl	$-128, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %edi
	sarl	$8, %edi
	movslq	%edi, %rdi
	movl	-4(%rbx,%rdi,4), %edi
	movl	%edi, -432(%rbp,%rax,4)
	movl	%esi, %edi
	sarl	$8, %edi
	movslq	%edi, %rdi
	movl	-4(%rbx,%rdi,4), %edi
	movl	%edi, -428(%rbp,%rax,4)
	addl	%edx, %ecx
	addl	%edx, %esi
	addq	$2, %rax
	jne	LBB0_5
LBB0_6:
	movl	%r14d, %eax
	sarl	$5, %eax
	movl	%r14d, %ecx
	andl	$31, %ecx
	movl	%ecx, -452(%rbp)                ## 4-byte Spill
	leal	(%r14,%r14), %ecx
	movl	%r14d, %ebx
	sarl	$4, %ebx
	andl	$30, %ecx
	movl	%ecx, -456(%rbp)                ## 4-byte Spill
	leal	(%r14,%r14,2), %r13d
	movl	%r13d, %r15d
	sarl	$5, %r15d
	andl	$31, %r13d
	shll	$2, %r14d
	andl	$28, %r14d
	cltq
	leaq	(%r12,%rax,4), %rdi
	addq	$4, %rdi
	callq	_LD_UB
	movl	%eax, -464(%rbp)                ## 4-byte Spill
	movslq	%ebx, %rax
	leaq	(%r12,%rax,4), %rdi
	addq	$4, %rdi
	callq	_LD_UB
	movl	%eax, -492(%rbp)                ## 4-byte Spill
	movslq	%r15d, %rax
	leaq	(%r12,%rax,4), %rdi
	addq	$4, %rdi
	callq	_LD_UB
	movl	%eax, -488(%rbp)                ## 4-byte Spill
	movq	-472(%rbp), %rax                ## 8-byte Reload
	leaq	(%r12,%rax,4), %rdi
	addq	$4, %rdi
	callq	_LD_UB
	movl	%eax, -472(%rbp)                ## 4-byte Spill
	movl	-452(%rbp), %ebx                ## 4-byte Reload
	movl	%ebx, %edi
	callq	___msa_fill_h
	movl	%eax, -484(%rbp)                ## 4-byte Spill
	movl	$32, %r12d
	movl	$32, %edi
	subl	%ebx, %edi
	callq	___msa_fill_h
	movl	%eax, -452(%rbp)                ## 4-byte Spill
	movl	-456(%rbp), %ebx                ## 4-byte Reload
	movl	%ebx, %edi
	callq	___msa_fill_h
	movl	%eax, -480(%rbp)                ## 4-byte Spill
	movl	$32, %edi
	subl	%ebx, %edi
	callq	___msa_fill_h
	movl	%eax, -456(%rbp)                ## 4-byte Spill
	movl	%r13d, %edi
	callq	___msa_fill_h
	movl	%eax, -476(%rbp)                ## 4-byte Spill
	movl	$32, %edi
	subl	%r13d, %edi
	callq	___msa_fill_h
	movl	%eax, %r13d
	movl	%r14d, %edi
	callq	___msa_fill_h
	movl	%eax, %r15d
	subl	%r14d, %r12d
	movl	%r12d, %edi
	callq	___msa_fill_h
	movl	%eax, %ebx
	movl	-480(%rbp), %edi                ## 4-byte Reload
	movl	-484(%rbp), %r14d               ## 4-byte Reload
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	-476(%rbp), %ecx                ## 4-byte Reload
	movl	%r14d, %r8d
	movl	%edi, %r9d
	movl	%edi, %r15d
	callq	_ILVR_D2_SH
	movl	-456(%rbp), %edi                ## 4-byte Reload
	movl	-452(%rbp), %esi                ## 4-byte Reload
	movl	%ebx, %edx
	movl	%r13d, %ecx
	movl	%esi, %r8d
	movl	%edi, %r9d
	callq	_ILVR_D2_SH
	movl	-472(%rbp), %eax                ## 4-byte Reload
	movl	%eax, 8(%rsp)
	movl	$0, (%rsp)
	xorl	%edi, %edi
	movl	-464(%rbp), %esi                ## 4-byte Reload
	xorl	%edx, %edx
	movl	-492(%rbp), %ecx                ## 4-byte Reload
	xorl	%r8d, %r8d
	movl	-488(%rbp), %r9d                ## 4-byte Reload
	callq	_ILVR_B4_SH
	movl	$2, 16(%rsp)
	movl	$0, (%rsp)
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_SLDI_B4_SH
	callq	_ILVR_D2_SH
	callq	_ILVR_D2_SH
	movl	%r14d, %esi
	movl	%r15d, %ecx
	callq	_MUL2
	movl	$5, %edx
	callq	_SRARI_H2_SH
	callq	_PCKEV_B2_SB
	callq	___msa_pckev_b
	movq	%rax, %rbx
	callq	___msa_pckod_b
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	___msa_pckev_w
	movslq	%eax, %rbx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	___msa_pckev_b
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	___msa_pckod_b
	movq	%rax, %r15
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	movq	-504(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rcx
	movq	-512(%rbp), %rbx                ## 8-byte Reload
	movl	%ebx, %r8d
	callq	_ST_W2
	leal	(%rbx,%rbx), %eax
	cltq
	leaq	(%r14,%rax,4), %rcx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	%ebx, %r8d
	callq	_ST_W2
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$536, %rsp                      ## imm = 0x218
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.hevc_intra_pred_angular_lower_4width_msa.inv_angle
l___const.hevc_intra_pred_angular_lower_4width_msa.inv_angle:
	.long	4294963200                      ## 0xfffff000
	.long	4294965658                      ## 0xfffff99a
	.long	4294966386                      ## 0xfffffc72
	.long	4294966666                      ## 0xfffffd8a
	.long	4294966814                      ## 0xfffffe1e
	.long	4294966906                      ## 0xfffffe7a
	.long	4294966981                      ## 0xfffffec5

	.comm	_intra_pred_angle_low,8,3       ## @intra_pred_angle_low
	.no_dead_strip	_hevc_intra_pred_angular_lower_4width_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_lower_4width_msa
_hevc_intra_pred_angular_lower_4width_msa: ; @hevc_intra_pred_angular_lower_4width_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, #464
                                        ; kill: def $w4 killed $w4 def $x4
	str	w3, [sp, #44]                   ; 4-byte Folded Spill
	str	x2, [sp, #32]                   ; 8-byte Folded Spill
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_low@GOTPAGE
Lloh4:
	ldr	x8, [x8, _intra_pred_angle_low@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x8, x8, w4, sxtw #2
	ldur	w25, [x8, #-8]
	sub	x23, x1, #4
	asr	w24, w25, #3
	cmn	w25, #9
	b.gt	LBB0_8
; %bb.1:
	mov	x21, x0
	add	x8, sp, #48
	add	x22, x8, #16
	sxtw	x8, w4
Lloh6:
	adrp	x9, l___const.hevc_intra_pred_angular_lower_4width_msa.inv_angle@PAGE
Lloh7:
	add	x9, x9, l___const.hevc_intra_pred_angular_lower_4width_msa.inv_angle@PAGEOFF
	add	x8, x9, x8, lsl #2
	ldur	w19, [x8, #-44]
	mov	x0, x23
	bl	_LD
	mov	x1, x22
	bl	_SD
	sxtw	x14, w24
	neg	x9, x14
	mov	x8, x14
	cmp	x9, #4
	b.lo	LBB0_5
; %bb.2:
	and	x10, x9, #0xfffffffffffffffc
	add	x8, x10, x14
	mul	w11, w19, w24
	lsl	w12, w19, #2
	add	w13, w19, w11
	add	x15, sp, #48
	add	x14, x15, x14, lsl #2
	add	x14, x14, #28
	add	w15, w24, #3
	mul	w15, w19, w15
	add	w16, w24, #2
	mul	w16, w19, w16
	mov	w17, #128
	mov	x0, x10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w1, w11, w17
	add	w2, w13, w17
	add	w3, w16, w17
	add	w4, w15, w17
	asr	w1, w1, #8
	asr	w2, w2, #8
	asr	w3, w3, #8
	asr	w4, w4, #8
	sub	w1, w1, #1
	sub	w2, w2, #1
	sub	w3, w3, #1
	ldr	w1, [x21, w1, sxtw #2]
	ldr	w2, [x21, w2, sxtw #2]
	sub	w4, w4, #1
	ldr	w3, [x21, w3, sxtw #2]
	ldr	w4, [x21, w4, sxtw #2]
	stp	w1, w2, [x14, #-12]
	stp	w3, w4, [x14, #-4]
	add	w17, w17, w12
	add	x14, x14, #16
	subs	x0, x0, #4
	b.ne	LBB0_3
; %bb.4:
	cmp	x10, x9
	b.eq	LBB0_7
LBB0_5:
	orr	w9, wzr, #0x80
	madd	w9, w19, w8, w9
	add	x10, sp, #48
	add	x10, x10, #16
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	asr	w11, w9, #8
	sub	w11, w11, #1
	ldr	w11, [x21, w11, sxtw #2]
	str	w11, [x10, x8, lsl #2]
	add	w9, w9, w19
	adds	x8, x8, #1
	b.lo	LBB0_6
LBB0_7:
	mov	x23, x22
LBB0_8:
	asr	w8, w25, #5
	and	w28, w25, #0x1f
	lsl	w9, w25, #1
	asr	w21, w25, #4
	and	w20, w9, #0x1e
	add	w9, w9, w25
	asr	w22, w9, #5
	and	w19, w9, #0x1f
	ubfiz	w27, w25, #2, #3
	add	x8, x23, w8, sxtw #2
	add	x0, x8, #4
	bl	_LD_UB
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	add	x8, x23, w21, sxtw #2
	add	x0, x8, #4
	bl	_LD_UB
	str	w0, [sp, #24]                   ; 4-byte Folded Spill
	add	x8, x23, w22, sxtw #2
	add	x0, x8, #4
	bl	_LD_UB
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	add	x8, x23, w24, sxtw #2
	add	x0, x8, #4
	bl	_LD_UB
	mov	x26, x0
	mov	x0, x28
	bl	___msa_fill_h
	mov	x21, x0
	mov	w25, #32
	sub	w0, w25, w28
	bl	___msa_fill_h
	mov	x28, x0
	mov	x0, x20
	bl	___msa_fill_h
	mov	x23, x0
	sub	w0, w25, w20
	bl	___msa_fill_h
	mov	x20, x0
	mov	x0, x19
	bl	___msa_fill_h
	mov	x22, x0
	sub	w0, w25, w19
	bl	___msa_fill_h
	mov	x19, x0
	mov	x0, x27
	bl	___msa_fill_h
	mov	x24, x0
	sub	w0, w25, w27
	bl	___msa_fill_h
	mov	x27, x0
	mov	x0, x23
	mov	x1, x21
	mov	x2, x24
	mov	x3, x22
	mov	x4, x21
	mov	x5, x23
	bl	_ILVR_D2_SH
	mov	x0, x20
	mov	x1, x28
	mov	x2, x27
	mov	x3, x19
	mov	x4, x28
	mov	x5, x20
	bl	_ILVR_D2_SH
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	mov	w1, w8
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	mov	w3, w8
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	mov	w5, w8
	mov	w7, w26
	mov	x0, #0
	mov	x2, #0
	mov	x4, #0
	mov	x6, #0
	bl	_ILVR_B4_SH
	mov	w8, #2
	str	w8, [sp]
	mov	x0, #0
	mov	x2, #0
	mov	x4, #0
	mov	x6, #0
	bl	_SLDI_B4_SH
	bl	_ILVR_D2_SH
	bl	_ILVR_D2_SH
	mov	x1, x21
	mov	x3, x23
	bl	_MUL2
	mov	w2, #5
	bl	_SRARI_H2_SH
	bl	_PCKEV_B2_SB
	bl	___msa_pckev_b
	mov	x19, x0
	bl	___msa_pckod_b
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x19
	bl	___msa_pckev_w
	sxtw	x19, w0
	mov	x0, x19
	mov	x1, x19
	bl	___msa_pckev_b
	mov	x20, x0
	mov	x0, x19
	mov	x1, x19
	bl	___msa_pckod_b
	mov	x19, x0
	mov	x0, x20
	mov	w1, #0
	mov	w2, #1
	ldr	x21, [sp, #32]                  ; 8-byte Folded Reload
	mov	x3, x21
	ldr	w20, [sp, #44]                  ; 4-byte Folded Reload
	mov	x4, x20
	bl	_ST_W2
	lsl	w8, w20, #1
	add	x3, x21, w8, sxtw #2
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	mov	x4, x20
	bl	_ST_W2
	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_10
; %bb.9:
	add	sp, sp, #464
	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_10:
	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_lower_4width_msa.inv_angle
l___const.hevc_intra_pred_angular_lower_4width_msa.inv_angle:
	.long	4294963200                      ; 0xfffff000
	.long	4294965658                      ; 0xfffff99a
	.long	4294966386                      ; 0xfffffc72
	.long	4294966666                      ; 0xfffffd8a
	.long	4294966814                      ; 0xfffffe1e
	.long	4294966906                      ; 0xfffffe7a
	.long	4294966981                      ; 0xfffffec5

	.comm	_intra_pred_angle_low,8,3       ; @intra_pred_angle_low
	.no_dead_strip	_hevc_intra_pred_angular_lower_4width_msa
.subsections_via_symbols
