	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lsf_restore_from_previous
_lsf_restore_from_previous:             ## @lsf_restore_from_previous
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MA_NP@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	(%rsi,%r14,8), %r10
	movq	_cb_ma_predictor_sum_inv@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edx, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rcx,8), %r11
	movq	_cb_ma_predictor@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %r15
	andq	$-2, %r15
	xorl	%r13d, %r13d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	sarl	$15, %r8d
	imull	(%r11,%r13,4), %r8d
	sarl	$12, %r8d
	movl	%r8d, (%r10,%r13,4)
	incq	%r13
	cmpq	$10, %r13
	je	LBB0_7
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	(%rdi,%r13,4), %r8d
	shll	$15, %r8d
	testq	%r14, %r14
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %r12
	xorl	%eax, %eax
	cmpq	$1, %r14
	je	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12,%rax,8), %rcx
	movq	8(%r12,%rax,8), %rdx
	movl	(%rcx,%r13,4), %ecx
	movq	(%rsi,%rax,8), %r9
	imull	(%r9,%r13,4), %ecx
	movq	8(%rsi,%rax,8), %rbx
	movl	(%rdx,%r13,4), %edx
	imull	(%rbx,%r13,4), %edx
	addl	%ecx, %edx
	subl	%edx, %r8d
	addq	$2, %rax
	cmpq	%rax, %r15
	jne	LBB0_3
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	testb	$1, %r14b
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rsi,%rax,8), %rcx
	movq	(%r12,%rax,8), %rax
	movl	(%rax,%r13,4), %eax
	imull	(%rcx,%r13,4), %eax
	subl	%eax, %r8d
	jmp	LBB0_6
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MA_NP,8,3                      ## @MA_NP
	.comm	_cb_ma_predictor,8,3            ## @cb_ma_predictor
	.comm	_cb_ma_predictor_sum_inv,8,3    ## @cb_ma_predictor_sum_inv
	.no_dead_strip	_lsf_restore_from_previous
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lsf_restore_from_previous
_lsf_restore_from_previous:             ; @lsf_restore_from_previous
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	.cfi_offset w21, -24
	.cfi_offset w22, -32
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x8, #0
Lloh0:
	adrp	x9, _MA_NP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MA_NP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x10, [x1, x9, lsl #3]
Lloh3:
	adrp	x11, _cb_ma_predictor_sum_inv@GOTPAGE
Lloh4:
	ldr	x11, [x11, _cb_ma_predictor_sum_inv@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	ldr	x11, [x11, w2, sxtw #3]
	sxtw	x12, w2
Lloh6:
	adrp	x13, _cb_ma_predictor@GOTPAGE
Lloh7:
	ldr	x13, [x13, _cb_ma_predictor@GOTPAGEOFF]
Lloh8:
	ldr	x13, [x13]
	and	x14, x9, #0xfffffffffffffffe
	add	x15, x1, #8
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	asr	w17, w17, #15
	ldr	w2, [x11, x16]
	mul	w17, w2, w17
	asr	w17, w17, #12
	str	w17, [x10, x16]
	add	x8, x8, #1
	cmp	x8, #10
	b.eq	LBB0_10
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
	ldr	w16, [x0, x8, lsl #2]
	lsl	w17, w16, #15
	lsl	x16, x8, #2
	cbz	x9, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x2, [x13, x12, lsl #3]
	cmp	x9, #1
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x4, #0
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w3, #0
	add	x4, x2, #8
	mov	x5, x14
	mov	x6, x15
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x7, x19, [x6, #-8]
	ldr	w7, [x7, x16]
	ldr	w19, [x19, x16]
	ldp	x20, x21, [x4, #-8]
	ldr	w20, [x20, x16]
	ldr	w21, [x21, x16]
	msub	w17, w20, w7, w17
	msub	w3, w21, w19, w3
	add	x6, x6, #16
	add	x4, x4, #16
	subs	x5, x5, #2
	b.ne	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w17, w3, w17
	mov	x4, x14
	cmp	x9, x14
	b.eq	LBB0_1
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	lsl	x3, x4, #3
	add	x2, x2, x3
	add	x3, x1, x3
	sub	x4, x9, x4
LBB0_9:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x5, [x3], #8
	ldr	w5, [x5, x16]
	ldr	x6, [x2], #8
	ldr	w6, [x6, x16]
	msub	w17, w6, w5, w17
	subs	x4, x4, #1
	b.ne	LBB0_9
	b	LBB0_1
LBB0_10:
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MA_NP,8,3                      ; @MA_NP
	.comm	_cb_ma_predictor,8,3            ; @cb_ma_predictor
	.comm	_cb_ma_predictor_sum_inv,8,3    ; @cb_ma_predictor_sum_inv
	.no_dead_strip	_lsf_restore_from_previous
.subsections_via_symbols
