	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cvtSS16imaK
_cvtSS16imaK:                           ## @cvtSS16imaK
	.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, %r13
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movl	(%rax), %ecx
	movl	(%rdx), %eax
	leal	(,%rcx,4), %r12d
	cltd
	idivl	%r12d
	movl	%eax, %edi
	movl	(%r8), %eax
	cltd
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	idivl	%ecx
	movl	%eax, %esi
	callq	_min
                                        ## kill: def $eax killed $eax def $rax
	imull	%eax, %r12d
	movl	%r12d, (%r15)
	movq	8(%rbx), %rcx
	movl	(%rcx), %ecx
	imull	%eax, %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx)
	movq	(%rbx), %rsi
	movl	(%rsi), %ecx
	movl	%ecx, -44(%rbp)
	movl	4(%rsi), %edx
	movl	%edx, -52(%rbp)
	testl	%eax, %eax
	jle	LBB0_9
## %bb.1:
	movq	%rbx, %r15
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	addl	$7, %ecx
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %r12
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, %rdx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rax
	movslq	(%rax), %rax
	addq	%rax, %r13
	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	%rdx, %rbx
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_R16
	movl	%eax, -48(%rbp)
	leaq	2(%r14), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_W16
	leaq	2(%r13), %rdi
	movl	-44(%rbp), %esi
	callq	_W16
	leaq	4(%r13), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_R16
	movl	%eax, -80(%rbp)
	addq	$4, %r14
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_W16
	leaq	6(%r13), %rdi
	movl	-52(%rbp), %esi
	callq	_W16
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpl	$2, %eax
	jl	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	addq	$15, %r13
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_R16
	movl	%eax, %edi
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rsi
	leaq	-48(%rbp), %r12
	movq	%r12, %rdx
	callq	_generate_nibble
	movl	%eax, %r15d
	leaq	4(%r14), %rdi
	callq	_R16
	movl	%eax, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_generate_nibble
	shll	$4, %eax
	orl	%r15d, %eax
	movq	%r13, %r15
	movb	%al, -7(%r13)
	leaq	8(%r14), %rdi
	callq	_R16
	movl	%eax, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_generate_nibble
	movl	%eax, %r13d
	leaq	12(%r14), %rdi
	callq	_R16
	movl	%eax, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_generate_nibble
	shll	$4, %eax
	orl	%r13d, %eax
	movb	%al, -6(%r15)
	leaq	16(%r14), %rdi
	callq	_R16
	movl	%eax, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_generate_nibble
	movl	%eax, %r13d
	leaq	20(%r14), %rdi
	callq	_R16
	movl	%eax, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_generate_nibble
	shll	$4, %eax
	orl	%r13d, %eax
	movb	%al, -5(%r15)
	leaq	24(%r14), %rdi
	callq	_R16
	movl	%eax, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_generate_nibble
	movl	%eax, %r13d
	leaq	28(%r14), %rdi
	callq	_R16
	movl	%eax, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_generate_nibble
	shll	$4, %eax
	orl	%r13d, %eax
	movb	%al, -4(%r15)
	leaq	2(%r14), %rdi
	callq	_R16
	movl	%eax, %edi
	leaq	-52(%rbp), %r12
	movq	%r12, %rsi
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdx
	callq	_generate_nibble
	movl	%eax, %r13d
	leaq	6(%r14), %rdi
	callq	_R16
	movl	%eax, %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_generate_nibble
	shll	$4, %eax
	orl	%r13d, %eax
	movb	%al, -3(%r15)
	leaq	10(%r14), %rdi
	callq	_R16
	movl	%eax, %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_generate_nibble
	movl	%eax, %r13d
	leaq	14(%r14), %rdi
	callq	_R16
	movl	%eax, %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_generate_nibble
	shll	$4, %eax
	orl	%r13d, %eax
	movb	%al, -2(%r15)
	leaq	18(%r14), %rdi
	callq	_R16
	movl	%eax, %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_generate_nibble
	movl	%eax, %r13d
	leaq	22(%r14), %rdi
	callq	_R16
	movl	%eax, %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_generate_nibble
	shll	$4, %eax
	orl	%r13d, %eax
	movb	%al, -1(%r15)
	leaq	26(%r14), %rdi
	callq	_R16
	movl	%eax, %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_generate_nibble
	movl	%eax, %r13d
	leaq	30(%r14), %rdi
	callq	_R16
	movl	%eax, %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_generate_nibble
	shll	$4, %eax
	orl	%r13d, %eax
	movb	%al, (%r15)
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	addq	$32, %r14
	addl	$-8, %eax
	addq	$8, %r15
	movq	%r15, %r13
	cmpl	$8, %eax
	ja	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %r12
	jmp	LBB0_7
LBB0_8:
	movl	-44(%rbp), %ecx
	movq	(%r15), %rsi
LBB0_9:
	movl	%ecx, (%rsi)
	movl	-52(%rbp), %ecx
	movl	%ecx, 4(%rsi)
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cvtSS16imaK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cvtSS16imaK
_cvtSS16imaK:                           ; @cvtSS16imaK
	.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, #2
	sdiv	w0, w8, w26
	ldr	w8, [x4]
	sdiv	w1, w8, w25
	bl	_min
	mul	w8, w0, w26
	str	w8, [x24]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	mul	w8, w8, w0
	str	w8, [x23]
	ldr	x8, [x19]
	ldp	w9, w10, [x8]
	stp	w10, w9, [sp, #8]
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x22, x0
	add	w26, w25, #7
	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, #4]
	add	x23, x21, #2
	mov	x0, x20
	bl	_W16
	add	x0, x20, #2
	ldr	w1, [sp, #12]
	bl	_W16
	add	x24, x20, #4
	mov	x0, x23
	bl	_R16
	mov	x1, x0
	str	w0, [sp]
	add	x21, x21, #4
	mov	x0, x24
	bl	_W16
	add	x0, x20, #6
	ldr	w1, [sp, #8]
	bl	_W16
	cmp	w25, #2
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x20, #15
	mov	x27, x26
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, #4
	bl	_generate_nibble
	mov	x23, x0
	add	x0, x21, #4
	bl	_R16
	add	x1, sp, #12
	add	x2, sp, #4
	bl	_generate_nibble
	orr	w8, w23, w0, lsl #4
	sturb	w8, [x24, #-7]
	add	x0, x21, #8
	bl	_R16
	add	x1, sp, #12
	add	x2, sp, #4
	bl	_generate_nibble
	mov	x23, x0
	add	x0, x21, #12
	bl	_R16
	add	x1, sp, #12
	add	x2, sp, #4
	bl	_generate_nibble
	orr	w8, w23, w0, lsl #4
	sturb	w8, [x24, #-6]
	add	x0, x21, #16
	bl	_R16
	add	x1, sp, #12
	add	x2, sp, #4
	bl	_generate_nibble
	mov	x23, x0
	add	x0, x21, #20
	bl	_R16
	add	x1, sp, #12
	add	x2, sp, #4
	bl	_generate_nibble
	orr	w8, w23, w0, lsl #4
	sturb	w8, [x24, #-5]
	add	x0, x21, #24
	bl	_R16
	add	x1, sp, #12
	add	x2, sp, #4
	bl	_generate_nibble
	mov	x23, x0
	add	x0, x21, #28
	bl	_R16
	add	x1, sp, #12
	add	x2, sp, #4
	bl	_generate_nibble
	orr	w8, w23, w0, lsl #4
	sturb	w8, [x24, #-4]
	add	x0, x21, #2
	bl	_R16
	add	x1, sp, #8
	mov	x2, sp
	bl	_generate_nibble
	mov	x23, x0
	add	x0, x21, #6
	bl	_R16
	add	x1, sp, #8
	mov	x2, sp
	bl	_generate_nibble
	orr	w8, w23, w0, lsl #4
	sturb	w8, [x24, #-3]
	add	x0, x21, #10
	bl	_R16
	add	x1, sp, #8
	mov	x2, sp
	bl	_generate_nibble
	mov	x23, x0
	add	x0, x21, #14
	bl	_R16
	add	x1, sp, #8
	mov	x2, sp
	bl	_generate_nibble
	orr	w8, w23, w0, lsl #4
	sturb	w8, [x24, #-2]
	add	x0, x21, #18
	bl	_R16
	add	x1, sp, #8
	mov	x2, sp
	bl	_generate_nibble
	mov	x23, x0
	add	x0, x21, #22
	bl	_R16
	add	x1, sp, #8
	mov	x2, sp
	bl	_generate_nibble
	orr	w8, w23, w0, lsl #4
	sturb	w8, [x24, #-1]
	add	x0, x21, #26
	bl	_R16
	add	x1, sp, #8
	mov	x2, sp
	bl	_generate_nibble
	mov	x23, x0
	add	x0, x21, #30
	bl	_R16
	add	x1, sp, #8
	mov	x2, sp
	bl	_generate_nibble
	orr	w8, w23, w0, lsl #4
	strb	w8, [x24], #8
	add	x21, x21, #32
	sub	w27, w27, #8
	cmp	w27, #8
	b.hi	LBB0_5
	b	LBB0_2
LBB0_6:
	ldr	w9, [sp, #12]
	ldr	x8, [x19]
LBB0_7:
	str	w9, [x8]
	ldr	w9, [sp, #8]
	str	w9, [x8, #4]
	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	_cvtSS16imaK
.subsections_via_symbols
