	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cvtMMimaK
_cvtMMimaK:                             ## @cvtMMimaK
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movl	(%rax), %esi
	movl	(%rcx), %eax
	leal	7(%rax), %r12d
	testl	%eax, %eax
	cmovnsl	%eax, %r12d
	sarl	$3, %r12d
	movl	(%rdx), %eax
	cltd
	idivl	%esi
	movl	%eax, %edi
	movl	(%r8), %eax
	movl	%r12d, %ebx
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	imull	%esi, %ebx
	cltd
	idivl	%ebx
	movl	%eax, %esi
	callq	_min
	movl	%eax, %ecx
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	(%r14), %rax
	movl	(%rax), %eax
	imull	%ecx, %eax
	movl	%eax, (%r13)
	imull	%ecx, %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.1:
	movslq	%r12d, %r12
	leaq	(%r12,%r12), %rsi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	leaq	-48(%rbp), %rbx
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movslq	(%rax), %rax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	addq	%rax, %r13
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	leal	-1(%rcx), %eax
	movq	%r14, %r15
	cmpl	$1, %ecx
	movl	%eax, %ecx
	leaq	-48(%rbp), %rbx
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	callq	_R16
	movl	%eax, -44(%rbp)
	movzbl	2(%r13), %eax
	movl	%eax, -48(%rbp)
	movq	%rbx, %rdi
	callq	_clamp_step_index
	movl	-44(%rbp), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_W8_16
	leaq	(%r15,%r12), %r14
	cmpl	$2, -80(%rbp)                   ## 4-byte Folded Reload
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jl	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rbx
	leaq	4(%r13), %r12
	addq	-88(%rbp), %rbx                 ## 8-byte Folded Reload
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	leaq	-44(%rbp), %rdx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movzbl	(%r12), %edi
	leaq	-48(%rbp), %r13
	movq	%r13, %rsi
	callq	_process_nibble
	movl	-44(%rbp), %esi
	movq	%r14, %rdi
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_W8_16
	addq	%r15, %r14
	movzbl	(%r12), %eax
	incq	%r12
	shrb	$4, %al
	movzbl	%al, %edi
	movq	%r13, %rsi
	leaq	-44(%rbp), %rdx
	callq	_process_nibble
	movl	-44(%rbp), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_W8_16
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	leaq	-44(%rbp), %rdx
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	addq	%r15, %r14
	addq	%rsi, %rbx
	addl	$-2, %eax
	cmpl	$2, %eax
	ja	LBB0_4
	jmp	LBB0_5
LBB0_6:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cvtMMimaK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cvtMMimaK
_cvtMMimaK:                             ; @cvtMMimaK
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x4
	mov	x19, x3
	mov	x25, x2
	mov	x20, x1
	mov	x21, x0
	ldp	x8, x9, [x0]
	ldr	w28, [x8]
	ldr	w8, [x9]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w22, w8, #3
	ldr	w8, [x2]
	sdiv	w0, w8, w28
	ldr	w8, [x4]
	mul	w26, w22, w28
	sdiv	w1, w8, w26
	bl	_min
	ldr	x8, [x21]
	ldr	w8, [x8]
	mul	w8, w8, w0
	str	w8, [x25]
	mul	w8, w26, w0
	str	w8, [x24]
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x23, x0
	sxtw	x25, w22
	sbfiz	x27, x22, #1, #32
	add	w8, w28, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	str	x21, [sp, #16]                  ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x19, x19, x25
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	ldrsw	x8, [x8]
	add	x20, x20, x8
	subs	w23, w23, #1
	b.le	LBB0_8
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x0, x20
	bl	_R16
	ldrb	w8, [x20, #2]
	stp	w8, w0, [sp, #24]
	add	x0, sp, #24
	bl	_clamp_step_index
	ldr	w1, [sp, #28]
	mov	x0, x19
	mov	x2, x22
	bl	_W8_16
	cmp	w28, #2
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x28
	add	x28, x20, #4
	ldr	w26, [sp, #12]                  ; 4-byte Folded Reload
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x24, x19, x25
	ldrb	w0, [x28]
	add	x1, sp, #24
	add	x2, sp, #28
	bl	_process_nibble
	ldr	w1, [sp, #28]
	mov	x0, x24
	mov	x2, x22
	bl	_W8_16
	add	x19, x19, x27
	ldrb	w8, [x28], #1
	lsr	w0, w8, #4
	add	x1, sp, #24
	add	x2, sp, #28
	bl	_process_nibble
	ldr	w1, [sp, #28]
	mov	x0, x19
	mov	x2, x22
	bl	_W8_16
	sub	w26, w26, #2
	cmp	w26, #2
	b.hi	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x19, x19, x25
	mov	x28, x21
	ldr	x21, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_3
LBB0_8:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cvtMMimaK
.subsections_via_symbols
