	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cvtMM16imaK
_cvtMM16imaK:                           ## @cvtMM16imaK
	.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	$56, %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, %r12
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	(%rax), %r13d
	movl	(%rdx), %eax
	leal	(%r13,%r13), %r15d
	cltd
	idivl	%r15d
	movl	%eax, %edi
	movl	(%r8), %eax
	cltd
	idivl	%r13d
	movl	%eax, %esi
	callq	_min
                                        ## kill: def $eax killed $eax def $rax
	imull	%eax, %r15d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%r15d, (%rcx)
	movq	8(%r14), %rcx
	movl	(%rcx), %ecx
	imull	%eax, %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx)
	movq	(%r14), %rdx
	movl	(%rdx), %ecx
	movl	%ecx, -44(%rbp)
	testl	%eax, %eax
	jle	LBB0_9
## %bb.1:
	movq	%r14, %r15
	leal	1(%r13), %ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	leaq	-44(%rbp), %r14
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rax
	movslq	(%rax), %rax
	addq	%rax, %r12
	leal	-1(%rcx), %eax
	cmpl	$1, %ecx
                                        ## kill: def $eax killed $eax def $rax
	jle	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_R16
	movl	%eax, -48(%rbp)
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_W16
	addq	$2, %rbx
	movb	-44(%rbp), %al
	movb	%al, 2(%r12)
	cmpl	$2, %r13d
	jl	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	leaq	4(%r12), %r15
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_R16
	movl	%eax, %edi
	leaq	-44(%rbp), %r12
	movq	%r12, %rsi
	leaq	-48(%rbp), %rdx
	callq	_generate_nibble
	movl	%eax, %r14d
	leaq	2(%rbx), %rdi
	callq	_R16
	movl	%eax, %edi
	movq	%r12, %rsi
	leaq	-48(%rbp), %rdx
	callq	_generate_nibble
	shll	$4, %eax
	orl	%r14d, %eax
	movb	%al, (%r15)
	incq	%r15
	addq	$4, %rbx
	addl	$-2, %r13d
	cmpl	$2, %r13d
	ja	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	-44(%rbp), %r14
	jmp	LBB0_7
LBB0_8:
	movl	-44(%rbp), %ecx
	movq	(%r15), %rdx
LBB0_9:
	movl	%ecx, (%rdx)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cvtMM16imaK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cvtMM16imaK
_cvtMM16imaK:                           ; @cvtMM16imaK
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, x4
	mov	x20, x3
	mov	x24, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w25, [x8]
	ldr	w8, [x2]
	lsl	w26, w25, #1
	sdiv	w0, w8, w26
	ldr	w8, [x4]
	sdiv	w1, w8, w25
	bl	_min
	mul	w8, w0, w26
	str	w8, [x24]
	ldp	x8, x9, [x19]
	ldr	w9, [x9]
	mul	w9, w9, w0
	str	w9, [x23]
	ldr	w9, [x8]
	str	w9, [sp, #12]
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x22, x0
	add	w24, w25, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	ldrsw	x8, [x8]
	add	x20, x20, x8
	subs	w22, w22, #1
	b.le	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x0, x21
	bl	_R16
	mov	x1, x0
	str	w0, [sp, #8]
	mov	x0, x20
	bl	_W16
	ldr	w8, [sp, #12]
	strb	w8, [x20, #2]
	add	x21, x21, #2
	cmp	w25, #2
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x20, #4
	mov	x27, x24
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	bl	_R16
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_generate_nibble
	mov	x23, x0
	add	x0, x21, #2
	bl	_R16
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_generate_nibble
	orr	w8, w23, w0, lsl #4
	strb	w8, [x26], #1
	add	x21, x21, #4
	sub	w27, w27, #2
	cmp	w27, #2
	b.hi	LBB0_5
	b	LBB0_2
LBB0_6:
	ldr	w9, [sp, #12]
	ldr	x8, [x19]
LBB0_7:
	str	w9, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cvtMM16imaK
.subsections_via_symbols
