	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Ppmd7_MakeEscFreq              ## -- Begin function Ppmd7_MakeEscFreq
	.p2align	4, 0x90
_Ppmd7_MakeEscFreq:                     ## @Ppmd7_MakeEscFreq
	.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	%rdx, %r14
	movq	%rdi, %r12
	movq	24(%rdi), %rdi
	movl	(%rdi), %ebx
	cmpl	$256, %ebx                      ## imm = 0x100
	jne	LBB0_1
## %bb.2:
	addq	$12, %r12
	movl	$1, %eax
	jmp	LBB0_3
LBB0_1:
	movl	%esi, %r15d
	subl	%esi, %ebx
	movq	(%r12), %rax
	movq	32(%r12), %rcx
	leal	-1(%rbx), %edx
	movq	(%rax,%rdx,8), %rax
	movq	(%rcx,%rax,8), %r13
	callq	_SUFFIX
	movl	(%rax), %eax
	movq	24(%r12), %rcx
	movl	(%rcx), %edx
	subl	%edx, %eax
	xorl	%esi, %esi
	cmpl	%eax, %ebx
	setb	%sil
	leaq	(,%rsi,8), %rax
	addq	%r13, %rax
	leal	(%rdx,%rdx,4), %esi
	leal	(%rdx,%rsi,2), %edx
	xorl	%esi, %esi
	cmpl	%edx, 4(%rcx)
	setb	%sil
	shlq	$4, %rsi
	addq	%rax, %rsi
	xorl	%edx, %edx
	cmpl	%r15d, %ebx
	setb	%dl
	shlq	$5, %rdx
	addq	%rsi, %rdx
	movslq	8(%r12), %rsi
	leaq	(%rdx,%rsi,8), %r12
	movl	(%rdx,%rsi,8), %edi
	movb	4(%rdx,%rsi,8), %cl
	movl	%edi, %eax
	shrl	%cl, %eax
	subl	%eax, %edi
	movl	%edi, (%rdx,%rsi,8)
	cmpl	$1, %eax
	adcl	$0, %eax
LBB0_3:
	movl	%eax, (%r14)
	movq	%r12, %rax
	addq	$8, %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	_Ppmd7_MakeEscFreq              ; -- Begin function Ppmd7_MakeEscFreq
	.p2align	2
_Ppmd7_MakeEscFreq:                     ; @Ppmd7_MakeEscFreq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x0
	ldr	x0, [x0, #24]
	ldr	w8, [x0]
	cmp	w8, #256
	b.ne	LBB0_2
; %bb.1:
	add	x0, x20, #12
	mov	w8, #1
	b	LBB0_3
LBB0_2:
	sub	w21, w8, w1
	cmp	w21, w1
	cset	w22, lo
	ldr	x8, [x20, #32]
	ldr	x9, [x20]
	sub	w10, w21, #1
	ldr	x9, [x9, w10, uxtw #3]
	ldr	x23, [x8, x9, lsl #3]
	bl	_SUFFIX
	ldr	w8, [x0]
	ldr	x9, [x20, #24]
	ldp	w10, w9, [x9]
	sub	w8, w8, w10
	cmp	w21, w8
	cset	w8, lo
	add	x8, x23, w8, uxtw #3
	mov	w11, #11
	mul	w10, w10, w11
	cmp	w9, w10
	cset	w9, lo
	add	x8, x8, w9, uxtw #4
	add	x8, x8, x22, lsl #5
	ldrsw	x9, [x20, #8]
	add	x0, x8, x9, lsl #3
	ldp	w8, w9, [x0]
	lsr	w9, w8, w9
	sub	w8, w8, w9
	str	w8, [x0]
	cmp	w9, #0
	cinc	w8, w9, eq
LBB0_3:
	str	w8, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
