	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hmm_pre_backward               ## -- Begin function hmm_pre_backward
	.p2align	4, 0x90
_hmm_pre_backward:                      ## @hmm_pre_backward
	.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
	movq	%rdi, %r15
	callq	_assert
	movl	(%r15), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	js	LBB0_23
## %bb.1:
	movl	4(%r15), %ecx
	incq	-48(%rbp)                       ## 8-byte Folded Spill
	movl	%ecx, %eax
	andl	$-8, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	addq	$-8, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdx
	shrq	$3, %rdx
	incq	%rdx
	movq	%rdx, %rax
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	andq	$-2, %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r11d
	andl	$3, %r11d
	xorl	%r10d, %r10d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r10
	cmpq	-48(%rbp), %r10                 ## 8-byte Folded Reload
	je	LBB0_23
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_12 Depth 3
                                        ##       Child Loop BB0_19 Depth 3
                                        ##       Child Loop BB0_21 Depth 3
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %r12
	movq	16(%r15), %rax
	movq	(%rax,%r10,8), %rdx
	movq	24(%r15), %r13
	xorl	%edi, %edi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=2
	incq	%rdi
	cmpq	%rcx, %rdi
	je	LBB0_2
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_12 Depth 3
                                        ##       Child Loop BB0_19 Depth 3
                                        ##       Child Loop BB0_21 Depth 3
	movl	4(%r15), %eax
	imull	%r10d, %eax
	addl	%edi, %eax
	cltq
	movq	(%r12,%rax,8), %rbx
	movq	(%r13,%rdi,8), %r8
	cmpl	$8, %ecx
	jb	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	%rbx, %rax
	subq	%rdx, %rax
	cmpq	$32, %rax
	jb	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	%rbx, %rax
	subq	%r8, %rax
	movl	$0, %r14d
	cmpq	$32, %rax
	jb	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=2
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_22
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movdqu	(%rdx,%rsi,4), %xmm0
	movdqu	16(%rdx,%rsi,4), %xmm1
	movdqu	(%r8,%rsi,4), %xmm2
	pmulld	%xmm0, %xmm2
	movdqu	16(%r8,%rsi,4), %xmm0
	pmulld	%xmm1, %xmm0
	movdqu	%xmm2, (%rbx,%rsi,4)
	movdqu	%xmm0, 16(%rbx,%rsi,4)
	movdqu	32(%rdx,%rsi,4), %xmm0
	movdqu	48(%rdx,%rsi,4), %xmm1
	movdqu	32(%r8,%rsi,4), %xmm2
	pmulld	%xmm0, %xmm2
	movdqu	48(%r8,%rsi,4), %xmm0
	pmulld	%xmm1, %xmm0
	movdqu	%xmm2, 32(%rbx,%rsi,4)
	movdqu	%xmm0, 48(%rbx,%rsi,4)
	addq	$16, %rsi
	addq	$-2, %rax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=2
	testb	$1, -64(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=2
	movdqu	(%rdx,%rsi,4), %xmm0
	movdqu	16(%rdx,%rsi,4), %xmm1
	movdqu	(%r8,%rsi,4), %xmm2
	pmulld	%xmm0, %xmm2
	movdqu	16(%r8,%rsi,4), %xmm0
	pmulld	%xmm1, %xmm0
	movdqu	%xmm2, (%rbx,%rsi,4)
	movdqu	%xmm0, 16(%rbx,%rsi,4)
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %r14
	cmpq	%rcx, %rax
	je	LBB0_5
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=2
	xorl	%r14d, %r14d
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	%r14, %rax
	notq	%rax
	addq	%rcx, %rax
	testq	%r11, %r11
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	%r11, %rsi
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r8,%r14,4), %r9d
	imull	(%rdx,%r14,4), %r9d
	movl	%r9d, (%rbx,%r14,4)
	incq	%r14
	decq	%rsi
	jne	LBB0_19
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=2
	cmpq	$3, %rax
	jb	LBB0_5
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r8,%r14,4), %eax
	imull	(%rdx,%r14,4), %eax
	movl	%eax, (%rbx,%r14,4)
	movl	4(%r8,%r14,4), %eax
	imull	4(%rdx,%r14,4), %eax
	movl	%eax, 4(%rbx,%r14,4)
	movl	8(%r8,%r14,4), %eax
	imull	8(%rdx,%r14,4), %eax
	movl	%eax, 8(%rbx,%r14,4)
	movl	12(%r8,%r14,4), %eax
	imull	12(%rdx,%r14,4), %eax
	movl	%eax, 12(%rbx,%r14,4)
	addq	$4, %r14
	cmpq	%r14, %rcx
	jne	LBB0_21
	jmp	LBB0_5
LBB0_22:                                ##   in Loop: Header=BB0_6 Depth=2
	xorl	%esi, %esi
	testb	$1, -64(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_14
	jmp	LBB0_15
LBB0_23:
	addq	$40, %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	_hmm_pre_backward               ; -- Begin function hmm_pre_backward
	.p2align	2
_hmm_pre_backward:                      ; @hmm_pre_backward
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_assert
	ldr	w10, [x19]
	tbnz	w10, #31, LBB0_15
; %bb.1:
	mov	x8, #0
	ldr	w9, [x19, #4]
	add	x10, x10, #1
	and	x11, x9, #0xfffffff0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	cmp	x8, x10
	b.eq	LBB0_15
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
                                        ;       Child Loop BB0_14 Depth 3
	cbz	w9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x12, #0
	ldp	x13, x14, [x19, #8]
	ldr	x14, [x14, x8, lsl #3]
	ldr	x15, [x19, #24]
	add	x16, x14, #32
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x12, x12, #1
	cmp	x12, x9
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
                                        ;       Child Loop BB0_14 Depth 3
	ldr	w17, [x19, #4]
	madd	w17, w17, w8, w12
	ldr	x0, [x13, w17, sxtw #3]
	ldr	x17, [x15, x12, lsl #3]
	cmp	w9, #16
	b.hs	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x2, #0
	b	LBB0_13
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=2
	mov	x2, #0
	sub	x1, x0, x14
	cmp	x1, #64
	b.lo	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	sub	x1, x0, x17
	cmp	x1, #64
	b.lo	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=2
	add	x1, x0, #32
	add	x2, x17, #32
	mov	x3, x16
	mov	x4, x11
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldp	q0, q1, [x3, #-32]
	ldp	q2, q3, [x3], #64
	ldp	q4, q5, [x2, #-32]
	ldp	q6, q7, [x2], #64
	mul.4s	v0, v4, v0
	mul.4s	v1, v5, v1
	mul.4s	v2, v6, v2
	mul.4s	v3, v7, v3
	stp	q0, q1, [x1, #-32]
	stp	q2, q3, [x1], #64
	subs	x4, x4, #16
	b.ne	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=2
	mov	x2, x11
	cmp	x11, x9
	b.eq	LBB0_5
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=2
	lsl	x1, x2, #2
	add	x0, x0, x1
	add	x17, x17, x1
	add	x1, x14, x1
	sub	x2, x9, x2
LBB0_14:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w3, [x1], #4
	ldr	w4, [x17], #4
	mul	w3, w4, w3
	str	w3, [x0], #4
	subs	x2, x2, #1
	b.ne	LBB0_14
	b	LBB0_5
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
