	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function hmm_post_decode
LCPI0_0:
	.quad	0xbff0000000000000              ## double -1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_hmm_post_decode
	.p2align	4, 0x90
_hmm_post_decode:                       ## @hmm_post_decode
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	cmpl	$0, 40(%rsi)
	setne	%al
	movq	_HMM_BACKWARD@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	movq	%rdi, %r14
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_free
LBB0_2:
	movl	8(%r15), %edi
	incl	%edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, (%r15)
	cmpl	$0, 8(%r15)
	jle	LBB0_13
## %bb.3:
	movl	$1, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$-1, %r13d
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r13d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	movq	(%r15), %rax
	movl	%r13d, (%rax,%r12,4)
	leaq	1(%r12), %rax
	movslq	8(%r15), %rcx
	cmpq	%rcx, %r12
	movq	%rax, %r12
	jge	LBB0_13
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movl	(%r14), %eax
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r15), %rcx
	movq	24(%r15), %rsi
	movq	(%rcx,%r12,8), %rdx
	movq	(%rsi,%r12,8), %rcx
	movq	32(%r15), %rsi
	movsd	(%rsi,%r12,8), %xmm0            ## xmm0 = mem[0],zero
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$-1, %r13d
	xorl	%esi, %esi
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %edi
	andl	$-2, %edi
	movl	$-1, %r13d
	xorl	%esi, %esi
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsd	(%rdx,%rsi,8), %xmm2            ## xmm2 = mem[0],zero
	mulsd	(%rcx,%rsi,8), %xmm2
	mulsd	%xmm0, %xmm2
	ucomisd	%xmm1, %xmm2
	movl	%r13d, %ebx
	cmoval	%esi, %ebx
	movsd	8(%rdx,%rsi,8), %xmm3           ## xmm3 = mem[0],zero
	mulsd	8(%rcx,%rsi,8), %xmm3
	maxsd	%xmm1, %xmm2
	mulsd	%xmm0, %xmm3
	ucomisd	%xmm2, %xmm3
	leal	1(%rsi), %r13d
	cmovbel	%ebx, %r13d
	movapd	%xmm3, %xmm1
	maxsd	%xmm2, %xmm1
	addq	$2, %rsi
	cmpq	%rdi, %rsi
	jne	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	testb	$1, %al
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movsd	(%rdx,%rsi,8), %xmm2            ## xmm2 = mem[0],zero
	mulsd	(%rcx,%rsi,8), %xmm2
	mulsd	%xmm2, %xmm0
	ucomisd	%xmm1, %xmm0
	cmoval	%esi, %r13d
	jmp	LBB0_12
LBB0_13:
	movq	_HMM_POSTDEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 40(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HMM_BACKWARD,8,3               ## @HMM_BACKWARD
	.comm	_HMM_POSTDEC,4,2                ## @HMM_POSTDEC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hmm_post_decode                ; -- Begin function hmm_post_decode
	.p2align	2
_hmm_post_decode:                       ; @hmm_post_decode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1, #40]
	cmp	w8, #0
Lloh0:
	adrp	x8, _HMM_BACKWARD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HMM_BACKWARD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ccmp	x8, #0, #4, ne
	cset	w0, ne
	bl	_assert
	ldr	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_free
LBB0_2:
	ldr	w8, [x19, #8]
	add	w0, w8, #1
	mov	w1, #4
	bl	_calloc
	str	x0, [x19]
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.3:
	mov	w21, #1
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w22, #-1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mvn	w8, w22
	lsr	w0, w8, #31
	bl	_assert
	ldr	x8, [x19]
	str	w22, [x8, x21, lsl #2]
	add	x8, x21, #1
	ldrsw	x9, [x19, #8]
	cmp	x21, x9
	mov	x21, x8
	b.ge	LBB0_9
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x9, #0
	lsl	x12, x21, #3
	ldp	x10, x11, [x19, #16]
	ldr	x10, [x10, x12]
	ldr	x11, [x11, x12]
	ldr	x13, [x19, #32]
	ldr	d0, [x13, x12]
	fmov	d1, #-1.00000000
	mov	w22, #-1
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x12, x9, #3
	ldr	d2, [x10, x12]
	ldr	d3, [x11, x12]
	fmul	d2, d2, d3
	fmul	d2, d0, d2
	fcmp	d1, d2
	fcsel	d1, d2, d1, mi
	csel	w22, w9, w22, mi
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_8
	b	LBB0_5
LBB0_9:
Lloh3:
	adrp	x8, _HMM_POSTDEC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HMM_POSTDEC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #40]
	orr	w8, w9, w8
	str	w8, [x19, #40]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HMM_BACKWARD,8,3               ; @HMM_BACKWARD
	.comm	_HMM_POSTDEC,4,2                ; @HMM_POSTDEC
.subsections_via_symbols
