	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ksBM_prep
_ksBM_prep:                             ## @ksBM_prep
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r13
	leal	256(%r14), %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, %r15
	movslq	%r14d, %rax
	movd	%eax, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, (%r15,%rax,4)
	movdqu	%xmm0, 16(%r15,%rax,4)
	movdqu	%xmm0, 32(%r15,%rax,4)
	movdqu	%xmm0, 48(%r15,%rax,4)
	movdqu	%xmm0, 64(%r15,%rax,4)
	movdqu	%xmm0, 80(%r15,%rax,4)
	movdqu	%xmm0, 96(%r15,%rax,4)
	movdqu	%xmm0, 112(%r15,%rax,4)
	movdqu	%xmm0, 128(%r15,%rax,4)
	movdqu	%xmm0, 144(%r15,%rax,4)
	movdqu	%xmm0, 160(%r15,%rax,4)
	movdqu	%xmm0, 176(%r15,%rax,4)
	movdqu	%xmm0, 192(%r15,%rax,4)
	movdqu	%xmm0, 208(%r15,%rax,4)
	movdqu	%xmm0, 224(%r15,%rax,4)
	movdqu	%xmm0, 240(%r15,%rax,4)
	movdqu	%xmm0, 256(%r15,%rax,4)
	movdqu	%xmm0, 272(%r15,%rax,4)
	movdqu	%xmm0, 288(%r15,%rax,4)
	movdqu	%xmm0, 304(%r15,%rax,4)
	movdqu	%xmm0, 320(%r15,%rax,4)
	movdqu	%xmm0, 336(%r15,%rax,4)
	movdqu	%xmm0, 352(%r15,%rax,4)
	movdqu	%xmm0, 368(%r15,%rax,4)
	movdqu	%xmm0, 384(%r15,%rax,4)
	movdqu	%xmm0, 400(%r15,%rax,4)
	movdqu	%xmm0, 416(%r15,%rax,4)
	movdqu	%xmm0, 432(%r15,%rax,4)
	movdqu	%xmm0, 448(%r15,%rax,4)
	movdqu	%xmm0, 464(%r15,%rax,4)
	movdqu	%xmm0, 480(%r15,%rax,4)
	movdqu	%xmm0, 496(%r15,%rax,4)
	movdqu	%xmm0, 512(%r15,%rax,4)
	movdqu	%xmm0, 528(%r15,%rax,4)
	movdqu	%xmm0, 544(%r15,%rax,4)
	movdqu	%xmm0, 560(%r15,%rax,4)
	movdqu	%xmm0, 576(%r15,%rax,4)
	movdqu	%xmm0, 592(%r15,%rax,4)
	movdqu	%xmm0, 608(%r15,%rax,4)
	movdqu	%xmm0, 624(%r15,%rax,4)
	movdqu	%xmm0, 640(%r15,%rax,4)
	movdqu	%xmm0, 656(%r15,%rax,4)
	movdqu	%xmm0, 672(%r15,%rax,4)
	movdqu	%xmm0, 688(%r15,%rax,4)
	movdqu	%xmm0, 704(%r15,%rax,4)
	movdqu	%xmm0, 720(%r15,%rax,4)
	movdqu	%xmm0, 736(%r15,%rax,4)
	movdqu	%xmm0, 752(%r15,%rax,4)
	movdqu	%xmm0, 768(%r15,%rax,4)
	movdqu	%xmm0, 784(%r15,%rax,4)
	movdqu	%xmm0, 800(%r15,%rax,4)
	movdqu	%xmm0, 816(%r15,%rax,4)
	movdqu	%xmm0, 832(%r15,%rax,4)
	movdqu	%xmm0, 848(%r15,%rax,4)
	movdqu	%xmm0, 864(%r15,%rax,4)
	movdqu	%xmm0, 880(%r15,%rax,4)
	movdqu	%xmm0, 896(%r15,%rax,4)
	movdqu	%xmm0, 912(%r15,%rax,4)
	movdqu	%xmm0, 928(%r15,%rax,4)
	movdqu	%xmm0, 944(%r15,%rax,4)
	movdqu	%xmm0, 960(%r15,%rax,4)
	movdqu	%xmm0, 976(%r15,%rax,4)
	movdqu	%xmm0, 992(%r15,%rax,4)
	movdqu	%xmm0, 1008(%r15,%rax,4)
	leal	-1(%rax), %r12d
	movl	%r12d, %r8d
	cmpl	$1, %eax
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movdqa	%xmm0, -80(%rbp)                ## 16-byte Spill
	jle	LBB0_1
## %bb.6:
	leaq	(%r15,%rax,4), %rax
	leaq	-1(%r8), %rcx
	movl	%r8d, %ebx
	andl	$3, %ebx
	cmpq	$3, %rcx
	jae	LBB0_8
## %bb.7:
	xorl	%edx, %edx
	testq	%rbx, %rbx
	jne	LBB0_12
	jmp	LBB0_14
LBB0_1:
	movl	%r14d, %edi
	movl	$4, %esi
	callq	_calloc
	movq	-48(%rbp), %r10                 ## 8-byte Reload
	movq	%rax, %rdi
	movslq	%r12d, %rax
	movl	%r14d, (%rdi,%rax,4)
	testl	%r14d, %r14d
	jg	LBB0_3
	jmp	LBB0_69
LBB0_8:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	leal	-3(%r14), %r9d
	leaq	24(%r13), %rdi
	leal	-2(%r14), %r10d
	leal	-4(%r14), %r11d
	movl	%r8d, %ebx
	andl	$-4, %ebx
	negq	%rbx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r8,%rdx), %esi
	movq	-24(%rdi), %r12
	movl	%esi, (%rax,%r12,4)
	leal	(%r10,%rdx), %esi
	movq	-16(%rdi), %rcx
	movl	%esi, (%rax,%rcx,4)
	leal	(%r9,%rdx), %ecx
	movq	-8(%rdi), %rsi
	movl	%ecx, (%rax,%rsi,4)
	leal	(%r11,%rdx), %ecx
	movq	(%rdi), %rsi
	movl	%ecx, (%rax,%rsi,4)
	addq	$-4, %rdx
	addq	$32, %rdi
	cmpq	%rdx, %rbx
	jne	LBB0_9
## %bb.10:
	negq	%rdx
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_14
LBB0_12:
	leaq	(,%rdx,8), %rcx
	addq	%r13, %rcx
	notl	%edx
	addl	%r14d, %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rdi
	movl	%edx, (%rax,%rdi,4)
	incq	%rsi
	decl	%edx
	cmpq	%rsi, %rbx
	jne	LBB0_13
LBB0_14:
	movl	%r14d, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, %rdi
	movslq	%r12d, %rax
	movl	%r14d, (%rdi,%rax,4)
	leal	-2(%r14), %eax
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movl	%r12d, %edx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%eax, %esi
	subl	%edx, %esi
	movl	%eax, %r8d
LBB0_23:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%esi, (%rdi,%rax,4)
	leaq	-1(%rax), %rsi
	incq	%rcx
	testq	%rax, %rax
	movq	%rsi, %rax
	jle	LBB0_24
LBB0_15:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
	movslq	%edx, %rsi
	cmpq	%rsi, %rax
	jle	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%r8d, %esi
	notl	%esi
	addl	%eax, %esi
	addl	%r14d, %esi
	movslq	%esi, %rsi
	movl	(%rdi,%rsi,4), %esi
	movl	%eax, %ebx
	subl	%edx, %ebx
	cmpl	%ebx, %esi
	jl	LBB0_23
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpl	%edx, %eax
	cmovll	%eax, %edx
	testl	%edx, %edx
	js	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%edx, %edx
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13,%rdx,8), %rsi
	leal	(%rcx,%rdx), %ebx
	movslq	%ebx, %rbx
	cmpq	(%r13,%rbx,8), %rsi
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=2
	leaq	-1(%rdx), %rsi
	testq	%rdx, %rdx
	movq	%rsi, %rdx
	jg	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	$-1, %edx
	jmp	LBB0_22
LBB0_24:
	movq	-48(%rbp), %r10                 ## 8-byte Reload
	testl	%r14d, %r14d
	jle	LBB0_69
LBB0_3:
	movl	%r14d, %r8d
	cmpl	$8, %r14d
	jae	LBB0_25
## %bb.4:
	movl	%r12d, %r13d
	xorl	%ecx, %ecx
	movdqa	-80(%rbp), %xmm1                ## 16-byte Reload
	jmp	LBB0_5
LBB0_25:
	movl	%r8d, %ecx
	andl	$-8, %ecx
	leaq	-8(%rcx), %rsi
	movq	%rsi, %rdx
	shrq	$3, %rdx
	incq	%rdx
	movl	%edx, %eax
	andl	$7, %eax
	cmpq	$56, %rsi
	movdqa	-80(%rbp), %xmm1                ## 16-byte Reload
	jae	LBB0_27
## %bb.26:
	xorl	%esi, %esi
	jmp	LBB0_29
LBB0_27:
	andq	$-8, %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm1, (%r15,%rsi,4)
	movdqu	%xmm1, 16(%r15,%rsi,4)
	movdqu	%xmm1, 32(%r15,%rsi,4)
	movdqu	%xmm1, 48(%r15,%rsi,4)
	movdqu	%xmm1, 64(%r15,%rsi,4)
	movdqu	%xmm1, 80(%r15,%rsi,4)
	movdqu	%xmm1, 96(%r15,%rsi,4)
	movdqu	%xmm1, 112(%r15,%rsi,4)
	movdqu	%xmm1, 128(%r15,%rsi,4)
	movdqu	%xmm1, 144(%r15,%rsi,4)
	movdqu	%xmm1, 160(%r15,%rsi,4)
	movdqu	%xmm1, 176(%r15,%rsi,4)
	movdqu	%xmm1, 192(%r15,%rsi,4)
	movdqu	%xmm1, 208(%r15,%rsi,4)
	movdqu	%xmm1, 224(%r15,%rsi,4)
	movdqu	%xmm1, 240(%r15,%rsi,4)
	addq	$64, %rsi
	addq	$-8, %rdx
	jne	LBB0_28
LBB0_29:
	testq	%rax, %rax
	je	LBB0_32
## %bb.30:
	leaq	(%r15,%rsi,4), %rdx
	addq	$16, %rdx
	shlq	$5, %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm1, -16(%rdx,%rsi)
	movdqu	%xmm1, (%rdx,%rsi)
	addq	$32, %rsi
	cmpq	%rsi, %rax
	jne	LBB0_31
LBB0_32:
	movl	%r12d, %r13d
	cmpq	%r8, %rcx
	je	LBB0_33
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, (%r15,%rcx,4)
	incq	%rcx
	cmpq	%rcx, %r8
	jne	LBB0_5
LBB0_33:
	xorl	%r12d, %r12d
	movq	%r10, %r11
	xorl	%eax, %eax
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_63:                                ##   in Loop: Header=BB0_34 Depth=1
	movl	%r12d, %eax
LBB0_64:                                ##   in Loop: Header=BB0_34 Depth=1
	decq	%r11
	incq	%r12
	cmpq	%r8, %r12
	je	LBB0_38
LBB0_34:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_42 Depth 2
                                        ##     Child Loop BB0_60 Depth 2
	movl	(%rdi,%r11,4), %edx
	leaq	1(%r11), %rsi
	cmpq	%rdx, %rsi
	jne	LBB0_64
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=1
	movq	%r10, %rsi
	subq	%r11, %rsi
	movslq	%eax, %rdx
	cmpq	%rdx, %rsi
	jle	LBB0_64
## %bb.36:                              ##   in Loop: Header=BB0_34 Depth=1
	movq	%r12, %r9
	subq	%rdx, %r9
	cmpq	$8, %r9
	jae	LBB0_41
## %bb.37:                              ##   in Loop: Header=BB0_34 Depth=1
	movq	%rdx, %rbx
	jmp	LBB0_60
LBB0_41:                                ##   in Loop: Header=BB0_34 Depth=1
	movq	%r9, %r10
	andq	$-8, %r10
	leaq	(%r10,%rdx), %rbx
	leaq	(%r15,%rdx,4), %rax
	xorl	%edx, %edx
	jmp	LBB0_42
	.p2align	4, 0x90
LBB0_58:                                ##   in Loop: Header=BB0_42 Depth=2
	addq	$8, %rdx
	cmpq	%rdx, %r10
	je	LBB0_59
LBB0_42:                                ##   Parent Loop BB0_34 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	(%rax,%rdx,4), %xmm0
	pcmpeqd	%xmm1, %xmm0
	movd	%xmm0, %ecx
	testb	$1, %cl
	je	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_42 Depth=2
	movl	%esi, (%rax,%rdx,4)
LBB0_44:                                ##   in Loop: Header=BB0_42 Depth=2
	pextrb	$4, %xmm0, %ecx
	testb	$1, %cl
	je	LBB0_46
## %bb.45:                              ##   in Loop: Header=BB0_42 Depth=2
	movl	%esi, 4(%rax,%rdx,4)
LBB0_46:                                ##   in Loop: Header=BB0_42 Depth=2
	pextrb	$8, %xmm0, %ecx
	testb	$1, %cl
	je	LBB0_48
## %bb.47:                              ##   in Loop: Header=BB0_42 Depth=2
	movl	%esi, 8(%rax,%rdx,4)
LBB0_48:                                ##   in Loop: Header=BB0_42 Depth=2
	pextrb	$12, %xmm0, %ecx
	testb	$1, %cl
	je	LBB0_50
## %bb.49:                              ##   in Loop: Header=BB0_42 Depth=2
	movl	%esi, 12(%rax,%rdx,4)
LBB0_50:                                ##   in Loop: Header=BB0_42 Depth=2
	movdqu	16(%rax,%rdx,4), %xmm0
	pcmpeqd	%xmm1, %xmm0
	movd	%xmm0, %ecx
	testb	$1, %cl
	je	LBB0_52
## %bb.51:                              ##   in Loop: Header=BB0_42 Depth=2
	movl	%esi, 16(%rax,%rdx,4)
LBB0_52:                                ##   in Loop: Header=BB0_42 Depth=2
	pextrb	$4, %xmm0, %ecx
	testb	$1, %cl
	je	LBB0_54
## %bb.53:                              ##   in Loop: Header=BB0_42 Depth=2
	movl	%esi, 20(%rax,%rdx,4)
LBB0_54:                                ##   in Loop: Header=BB0_42 Depth=2
	pextrb	$8, %xmm0, %ecx
	testb	$1, %cl
	je	LBB0_56
## %bb.55:                              ##   in Loop: Header=BB0_42 Depth=2
	movl	%esi, 24(%rax,%rdx,4)
LBB0_56:                                ##   in Loop: Header=BB0_42 Depth=2
	pextrb	$12, %xmm0, %ecx
	testb	$1, %cl
	je	LBB0_58
## %bb.57:                              ##   in Loop: Header=BB0_42 Depth=2
	movl	%esi, 28(%rax,%rdx,4)
	jmp	LBB0_58
LBB0_59:                                ##   in Loop: Header=BB0_34 Depth=1
	cmpq	%r10, %r9
	movq	-48(%rbp), %r10                 ## 8-byte Reload
	jne	LBB0_60
	jmp	LBB0_63
	.p2align	4, 0x90
LBB0_62:                                ##   in Loop: Header=BB0_60 Depth=2
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_63
LBB0_60:                                ##   Parent Loop BB0_34 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%r14d, (%r15,%rbx,4)
	jne	LBB0_62
## %bb.61:                              ##   in Loop: Header=BB0_60 Depth=2
	movl	%esi, (%r15,%rbx,4)
	jmp	LBB0_62
LBB0_38:
	cmpl	$2, %r14d
	jl	LBB0_69
## %bb.39:
	cmpl	$1, %r13d
	jne	LBB0_65
## %bb.40:
	xorl	%eax, %eax
	jmp	LBB0_67
LBB0_65:
	movl	%r10d, %r8d
	andl	$-2, %r8d
	addl	$-2, %r14d
	xorl	%eax, %eax
	movslq	%r13d, %rcx
	.p2align	4, 0x90
LBB0_66:                                ## =>This Inner Loop Header: Depth=1
	leal	1(%r14), %esi
	movslq	(%rdi,%rax,4), %rbx
	movq	%rcx, %rdx
	subq	%rbx, %rdx
	movl	%esi, (%r15,%rdx,4)
	movslq	4(%rdi,%rax,4), %rdx
	movq	%rcx, %rsi
	subq	%rdx, %rsi
	movl	%r14d, (%r15,%rsi,4)
	addq	$2, %rax
	addl	$-2, %r14d
	cmpq	%rax, %r8
	jne	LBB0_66
LBB0_67:
	testb	$1, %r10b
	je	LBB0_69
## %bb.68:
	movslq	(%rdi,%rax,4), %rcx
	movslq	%r13d, %rdx
	subl	%eax, %r13d
	subq	%rcx, %rdx
	movl	%r13d, (%r15,%rdx,4)
LBB0_69:
	callq	_free
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ksBM_prep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ksBM_prep
_ksBM_prep:                             ; @ksBM_prep
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x21, x0
	add	w0, w1, #256
	mov	w1, #4
	bl	_calloc
	mov	x19, x0
	dup.4s	v0, w20
	add	x8, x0, w20, sxtw #2
	stp	q0, q0, [x8]
	stp	q0, q0, [x8, #32]
	stp	q0, q0, [x8, #64]
	stp	q0, q0, [x8, #96]
	stp	q0, q0, [x8, #128]
	stp	q0, q0, [x8, #160]
	stp	q0, q0, [x8, #192]
	stp	q0, q0, [x8, #224]
	stp	q0, q0, [x8, #256]
	stp	q0, q0, [x8, #288]
	stp	q0, q0, [x8, #320]
	stp	q0, q0, [x8, #352]
	stp	q0, q0, [x8, #384]
	stp	q0, q0, [x8, #416]
	stp	q0, q0, [x8, #448]
	stp	q0, q0, [x8, #480]
	stp	q0, q0, [x8, #512]
	stp	q0, q0, [x8, #544]
	stp	q0, q0, [x8, #576]
	stp	q0, q0, [x8, #608]
	stp	q0, q0, [x8, #640]
	stp	q0, q0, [x8, #672]
	stp	q0, q0, [x8, #704]
	stp	q0, q0, [x8, #736]
	stp	q0, q0, [x8, #768]
	stp	q0, q0, [x8, #800]
	stp	q0, q0, [x8, #832]
	stp	q0, q0, [x8, #864]
	stp	q0, q0, [x8, #896]
	stp	q0, q0, [x8, #928]
	stp	q0, q0, [x8, #960]
	stp	q0, q0, [x8, #992]
	subs	w22, w20, #1
	mov	x23, x22
	str	q0, [sp]                        ; 16-byte Folded Spill
	b.le	LBB0_3
; %bb.1:
	cmp	w22, #4
	b.hs	LBB0_60
; %bb.2:
	mov	x9, #0
	b	LBB0_63
LBB0_3:
	mov	x0, x20
	mov	w1, #4
	bl	_calloc
	str	w20, [x0, w23, sxtw #2]
LBB0_4:
	cmp	w20, #1
	b.lt	LBB0_59
; %bb.5:
	mov	w8, w20
	cmp	w20, #16
	b.hs	LBB0_7
; %bb.6:
	mov	x9, #0
	ldr	q2, [sp]                        ; 16-byte Folded Reload
	b	LBB0_10
LBB0_7:
	and	x9, x8, #0xfffffff0
	add	x10, x19, #32
	mov	x11, x9
	ldr	q2, [sp]                        ; 16-byte Folded Reload
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	stp	q2, q2, [x10, #-32]
	stp	q2, q2, [x10], #64
	subs	x11, x11, #16
	b.ne	LBB0_8
; %bb.9:
	cmp	x9, x8
	b.eq	LBB0_12
LBB0_10:
	add	x10, x19, x9, lsl #2
	sub	x9, x8, x9
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	str	w20, [x10], #4
	subs	x9, x9, #1
	b.ne	LBB0_11
LBB0_12:
	mov	x9, #0
	mov	w13, #0
	add	x10, x19, #32
	mov	x11, x22
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x13, x9
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	sub	x11, x11, #1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_56
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_20 Depth 2
                                        ;     Child Loop BB0_54 Depth 2
	ldr	w12, [x0, x11, lsl #2]
	add	x14, x11, #1
	cmp	x14, x12
	b.ne	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	sxtw	x16, w13
	sub	x12, x22, x11
	cmp	x12, x16
	b.le	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	sub	x14, x9, x16
	mov	x13, x16
	cmp	x14, #16
	b.lo	LBB0_54
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	and	x15, x14, #0xfffffffffffffff0
	add	x13, x15, x16
	add	x16, x10, x16, lsl #2
	mov	x17, x15
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=2
	add	x16, x16, #64
	subs	x17, x17, #16
	b.eq	LBB0_52
LBB0_20:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	q0, [x16, #-32]
	cmeq.4s	v0, v0, v2
	xtn.4h	v0, v0
	umov.h	w1, v0[0]
	tbnz	w1, #0, LBB0_42
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=2
	umov.h	w1, v0[1]
	tbnz	w1, #0, LBB0_43
LBB0_22:                                ;   in Loop: Header=BB0_20 Depth=2
	umov.h	w1, v0[2]
	tbnz	w1, #0, LBB0_44
LBB0_23:                                ;   in Loop: Header=BB0_20 Depth=2
	umov.h	w1, v0[3]
	tbz	w1, #0, LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_20 Depth=2
	stur	w12, [x16, #-20]
LBB0_25:                                ;   in Loop: Header=BB0_20 Depth=2
	ldur	q0, [x16, #-16]
	cmeq.4s	v0, v0, v2
	xtn.4h	v0, v0
	umov.h	w1, v0[0]
	tbnz	w1, #0, LBB0_45
; %bb.26:                               ;   in Loop: Header=BB0_20 Depth=2
	umov.h	w1, v0[1]
	tbnz	w1, #0, LBB0_46
LBB0_27:                                ;   in Loop: Header=BB0_20 Depth=2
	umov.h	w1, v0[2]
	tbnz	w1, #0, LBB0_47
LBB0_28:                                ;   in Loop: Header=BB0_20 Depth=2
	umov.h	w1, v0[3]
	tbz	w1, #0, LBB0_30
LBB0_29:                                ;   in Loop: Header=BB0_20 Depth=2
	stur	w12, [x16, #-4]
LBB0_30:                                ;   in Loop: Header=BB0_20 Depth=2
	ldr	q0, [x16]
	cmeq.4s	v0, v0, v2
	xtn.4h	v0, v0
	umov.h	w1, v0[0]
	tbz	w1, #0, LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_20 Depth=2
	str	w12, [x16]
LBB0_32:                                ;   in Loop: Header=BB0_20 Depth=2
	umov.h	w1, v0[1]
	tbz	w1, #0, LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_20 Depth=2
	str	w12, [x16, #4]
LBB0_34:                                ;   in Loop: Header=BB0_20 Depth=2
	ldr	q1, [x16, #16]
	umov.h	w1, v0[2]
	tbz	w1, #0, LBB0_36
; %bb.35:                               ;   in Loop: Header=BB0_20 Depth=2
	str	w12, [x16, #8]
LBB0_36:                                ;   in Loop: Header=BB0_20 Depth=2
	umov.h	w1, v0[3]
	tbz	w1, #0, LBB0_38
; %bb.37:                               ;   in Loop: Header=BB0_20 Depth=2
	str	w12, [x16, #12]
LBB0_38:                                ;   in Loop: Header=BB0_20 Depth=2
	cmeq.4s	v0, v1, v2
	xtn.4h	v0, v0
	umov.h	w1, v0[0]
	tbnz	w1, #0, LBB0_48
; %bb.39:                               ;   in Loop: Header=BB0_20 Depth=2
	umov.h	w1, v0[1]
	tbnz	w1, #0, LBB0_49
LBB0_40:                                ;   in Loop: Header=BB0_20 Depth=2
	umov.h	w1, v0[2]
	tbnz	w1, #0, LBB0_50
LBB0_41:                                ;   in Loop: Header=BB0_20 Depth=2
	umov.h	w1, v0[3]
	tbz	w1, #0, LBB0_19
	b	LBB0_51
LBB0_42:                                ;   in Loop: Header=BB0_20 Depth=2
	stur	w12, [x16, #-32]
	umov.h	w1, v0[1]
	tbz	w1, #0, LBB0_22
LBB0_43:                                ;   in Loop: Header=BB0_20 Depth=2
	stur	w12, [x16, #-28]
	umov.h	w1, v0[2]
	tbz	w1, #0, LBB0_23
LBB0_44:                                ;   in Loop: Header=BB0_20 Depth=2
	stur	w12, [x16, #-24]
	umov.h	w1, v0[3]
	tbnz	w1, #0, LBB0_24
	b	LBB0_25
LBB0_45:                                ;   in Loop: Header=BB0_20 Depth=2
	stur	w12, [x16, #-16]
	umov.h	w1, v0[1]
	tbz	w1, #0, LBB0_27
LBB0_46:                                ;   in Loop: Header=BB0_20 Depth=2
	stur	w12, [x16, #-12]
	umov.h	w1, v0[2]
	tbz	w1, #0, LBB0_28
LBB0_47:                                ;   in Loop: Header=BB0_20 Depth=2
	stur	w12, [x16, #-8]
	umov.h	w1, v0[3]
	tbnz	w1, #0, LBB0_29
	b	LBB0_30
LBB0_48:                                ;   in Loop: Header=BB0_20 Depth=2
	str	w12, [x16, #16]
	umov.h	w1, v0[1]
	tbz	w1, #0, LBB0_40
LBB0_49:                                ;   in Loop: Header=BB0_20 Depth=2
	str	w12, [x16, #20]
	umov.h	w1, v0[2]
	tbz	w1, #0, LBB0_41
LBB0_50:                                ;   in Loop: Header=BB0_20 Depth=2
	str	w12, [x16, #24]
	umov.h	w1, v0[3]
	tbz	w1, #0, LBB0_19
LBB0_51:                                ;   in Loop: Header=BB0_20 Depth=2
	str	w12, [x16, #28]
	b	LBB0_19
LBB0_52:                                ;   in Loop: Header=BB0_15 Depth=1
	cmp	x14, x15
	b.ne	LBB0_54
	b	LBB0_13
LBB0_53:                                ;   in Loop: Header=BB0_54 Depth=2
	add	x13, x13, #1
	cmp	x9, x13
	b.eq	LBB0_13
LBB0_54:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w14, [x19, x13, lsl #2]
	cmp	w14, w20
	b.ne	LBB0_53
; %bb.55:                               ;   in Loop: Header=BB0_54 Depth=2
	str	w12, [x19, x13, lsl #2]
	b	LBB0_53
LBB0_56:
	cmp	w20, #2
	b.lt	LBB0_59
; %bb.57:
	mov	x8, x0
	mov	x9, x22
LBB0_58:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8], #4
	sub	w10, w22, w10
	str	w9, [x19, w10, sxtw #2]
	subs	x9, x9, #1
	b.ne	LBB0_58
LBB0_59:
	bl	_free
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_60:
	mov	x10, #0
	and	x9, x22, #0xfffffffc
	add	x11, x21, #16
	mov	x12, x23
LBB0_61:                                ; =>This Inner Loop Header: Depth=1
	eor	w13, w10, #0xfffffffe
	eor	w14, w10, #0xfffffffd
	eor	w15, w10, #0xfffffffc
	add	w13, w13, w20
	add	w14, w14, w20
	add	w15, w15, w20
	ldp	x16, x17, [x11, #-16]
	ldp	x0, x1, [x11], #32
	str	w12, [x8, x16, lsl #2]
	str	w13, [x8, x17, lsl #2]
	str	w14, [x8, x0, lsl #2]
	str	w15, [x8, x1, lsl #2]
	add	x10, x10, #4
	sub	w12, w12, #4
	cmp	x9, x10
	b.ne	LBB0_61
; %bb.62:
	cmp	x9, x22
	b.eq	LBB0_65
LBB0_63:
	add	x10, x21, x9, lsl #3
	sub	x9, x22, x9
LBB0_64:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10], #8
	str	w9, [x8, x11, lsl #2]
	subs	x9, x9, #1
	b.ne	LBB0_64
LBB0_65:
	mov	x0, x20
	mov	w1, #4
	bl	_calloc
	mov	w10, #0
	str	w20, [x0, w23, sxtw #2]
	sub	w8, w20, #2
	mov	w9, #1
	b	LBB0_68
LBB0_66:                                ;   in Loop: Header=BB0_68 Depth=1
	sub	w11, w8, w23
	mov	x10, x8
LBB0_67:                                ;   in Loop: Header=BB0_68 Depth=1
	str	w11, [x0, x8, lsl #2]
	sub	x11, x8, #1
	add	x9, x9, #1
	cmp	x8, #0
	mov	x8, x11
	b.le	LBB0_4
LBB0_68:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_71 Depth 2
	cmp	x8, w23, sxtw
	b.le	LBB0_70
; %bb.69:                               ;   in Loop: Header=BB0_68 Depth=1
	mvn	w11, w10
	add	w12, w8, w20
	add	w11, w12, w11
	ldr	w11, [x0, w11, sxtw #2]
	sub	w12, w8, w23
	cmp	w11, w12
	b.lt	LBB0_67
LBB0_70:                                ;   in Loop: Header=BB0_68 Depth=1
	cmp	w8, w23
	csel	w23, w8, w23, lt
	tbnz	w23, #31, LBB0_66
LBB0_71:                                ;   Parent Loop BB0_68 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x21, x23, lsl #3]
	add	w11, w9, w23
	ldr	x11, [x21, w11, sxtw #3]
	cmp	x10, x11
	b.ne	LBB0_66
; %bb.72:                               ;   in Loop: Header=BB0_71 Depth=2
	sub	x10, x23, #1
	cmp	x23, #0
	mov	x23, x10
	b.gt	LBB0_71
; %bb.73:                               ;   in Loop: Header=BB0_68 Depth=1
	mov	w23, #-1
	b	LBB0_66
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ksBM_prep
.subsections_via_symbols
