	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__book_maptype1_quantvals       ## -- Begin function _book_maptype1_quantvals
	.p2align	4, 0x90
__book_maptype1_quantvals:              ## @_book_maptype1_quantvals
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	__ilog
	movslq	(%rbx), %r14
	decl	%eax
	movl	4(%rbx), %r10d
	leal	-1(%r10), %r9d
	imull	%r9d, %eax
	cltd
	idivl	%r10d
	movl	%r14d, %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%r10d, %r11d
	andl	$7, %r11d
	movl	%r10d, %r8d
	andl	$-8, %r8d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	cmpq	%r14, %rbx
	setle	%al
	leal	(%rdx,%rax,2), %edx
	decl	%edx
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_8 Depth 2
	testl	%r10d, %r10d
	jle	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%rdx), %eax
	movslq	%edx, %rdi
	cltq
	movl	$1, %ecx
	movl	$1, %ebx
	cmpl	$7, %r9d
	jb	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %ecx
	movl	%r8d, %esi
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	imulq	%rdi, %rbx
	imulq	%rax, %rcx
	imulq	%rdi, %rbx
	imulq	%rax, %rcx
	imulq	%rdi, %rbx
	imulq	%rax, %rcx
	imulq	%rdi, %rbx
	imulq	%rax, %rcx
	imulq	%rdi, %rbx
	imulq	%rax, %rcx
	imulq	%rdi, %rbx
	imulq	%rax, %rcx
	imulq	%rdi, %rbx
	imulq	%rax, %rcx
	imulq	%rdi, %rbx
	imulq	%rax, %rcx
	addl	$-8, %esi
	jne	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%r11d, %r11d
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r11d, %esi
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	imulq	%rdi, %rbx
	imulq	%rax, %rcx
	decl	%esi
	jne	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r14, %rbx
	jle	LBB0_10
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %ebx
	movl	$1, %ecx
	cmpq	%r14, %rbx
	jg	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r14, %rcx
	jle	LBB0_11
## %bb.12:
	movslq	%edx, %rax
	popq	%rbx
	popq	%r14
	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	__book_maptype1_quantvals       ; -- Begin function _book_maptype1_quantvals
	.p2align	2
__book_maptype1_quantvals:              ; @_book_maptype1_quantvals
	.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
	ldr	w0, [x0]
	bl	__ilog
	sub	w10, w0, #1
	ldp	w8, w9, [x19]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	sub	w11, w9, #1
	mul	w10, w11, w10
	sdiv	w10, w10, w9
	asr	w10, w8, w10
	and	w11, w9, #0xfffffffe
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	sub	w12, w10, #1
	cmp	x14, x8
	csinc	w10, w12, w10, gt
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sxtw	x12, w10
	add	w13, w10, #1
	sxtw	x13, w13
	cmp	w9, #1
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w17, #0
	mov	w15, #1
	mov	w14, #1
	b	LBB0_9
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w14, #1
	mov	w15, #1
	b	LBB0_11
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x14, x11
	mov	w15, #1
	mov	w16, #1
	mov	w17, #1
	mov	w0, #1
LBB0_7:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mul	x17, x17, x12
	mul	x0, x0, x12
	mul	x15, x15, x13
	mul	x16, x16, x13
	subs	w14, w14, #2
	b.ne	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mul	x14, x0, x17
	mov	x17, x11
	mul	x15, x16, x15
	cmp	w9, w11
	b.eq	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	sub	w16, w9, w17
LBB0_10:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mul	x14, x14, x12
	mul	x15, x15, x13
	subs	w16, w16, #1
	b.ne	LBB0_10
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x14, x8
	b.gt	LBB0_1
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	x15, x8
	b.le	LBB0_1
; %bb.13:
                                        ; kill: def $w10 killed $w10 killed $x10 def $x10
	sxtw	x0, w10
	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
