	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function levenshtein
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_1:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
LCPI0_2:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
LCPI0_3:
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
LCPI0_4:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_levenshtein
	.p2align	4, 0x90
_levenshtein:                           ## @levenshtein
	.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
	movl	%r9d, %r13d
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, -80(%rbp)                 ## 4-byte Spill
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_strlen
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leal	4(,%rax,4), %ebx
	movl	%ebx, %edi
	callq	_malloc
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	callq	_malloc
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_malloc
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	js	LBB0_12
## %bb.1:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leal	1(%rcx), %eax
	cmpl	$7, %ecx
	jae	LBB0_3
## %bb.2:
	xorl	%ecx, %ecx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_10
LBB0_3:
	movl	%eax, %ecx
	andl	$-8, %ecx
	movd	-44(%rbp), %xmm0                ## 4-byte Folded Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rcx), %rsi
	movq	%rsi, %rdx
	shrq	$3, %rdx
	incq	%rdx
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.5:
	movq	%rdx, %rdi
	andq	$-2, %rdi
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,1,2,3]
	xorl	%esi, %esi
	movdqa	LCPI0_1(%rip), %xmm2            ## xmm2 = [4,4,4,4]
	movdqa	LCPI0_2(%rip), %xmm3            ## xmm3 = [8,8,8,8]
	movdqa	LCPI0_3(%rip), %xmm4            ## xmm4 = [12,12,12,12]
	movdqa	LCPI0_4(%rip), %xmm5            ## xmm5 = [16,16,16,16]
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm1, %xmm6
	paddd	%xmm2, %xmm6
	movdqa	%xmm1, %xmm7
	pmulld	%xmm0, %xmm7
	pmulld	%xmm0, %xmm6
	movdqu	%xmm7, (%r15,%rsi,4)
	movdqu	%xmm6, 16(%r15,%rsi,4)
	movdqa	%xmm1, %xmm6
	paddd	%xmm3, %xmm6
	movdqa	%xmm1, %xmm7
	paddd	%xmm4, %xmm7
	pmulld	%xmm0, %xmm6
	pmulld	%xmm0, %xmm7
	movdqu	%xmm6, 32(%r15,%rsi,4)
	movdqu	%xmm7, 48(%r15,%rsi,4)
	addq	$16, %rsi
	paddd	%xmm5, %xmm1
	addq	$-2, %rdi
	jne	LBB0_6
## %bb.7:
	testb	$1, %dl
	je	LBB0_9
LBB0_8:
	movdqa	LCPI0_1(%rip), %xmm2            ## xmm2 = [4,4,4,4]
	paddd	%xmm1, %xmm2
	pmulld	%xmm0, %xmm1
	pmulld	%xmm0, %xmm2
	movdqu	%xmm1, (%r15,%rsi,4)
	movdqu	%xmm2, 16(%r15,%rsi,4)
LBB0_9:
	cmpq	%rax, %rcx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	je	LBB0_12
LBB0_10:
	movl	%esi, %edx
	imull	%ecx, %edx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%edx, (%r15,%rcx,4)
	incq	%rcx
	addl	%esi, %edx
	cmpq	%rcx, %rax
	jne	LBB0_11
LBB0_12:
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	jle	LBB0_13
## %bb.15:
	movl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	-56(%rbp), %r9d                 ## 4-byte Reload
	xorl	%r10d, %r10d
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%rdi, %rax
	cmpq	-72(%rbp), %r10                 ## 8-byte Folded Reload
	je	LBB0_14
LBB0_17:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
	movq	%r15, %rdi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r10, %rsi
	incq	%r10
	movl	%r10d, %eax
	imull	%r13d, %eax
	movl	%eax, (%r15)
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_16
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
	leal	(%rsi,%rax), %r11d
	xorl	%ecx, %ecx
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_19 Depth=2
	movq	%r8, %rcx
	cmpq	%r8, %r9
	je	LBB0_16
LBB0_19:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r12,%rsi), %eax
	xorl	%ebx, %ebx
	cmpb	(%r14,%rcx), %al
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=2
	movl	-80(%rbp), %ebx                 ## 4-byte Reload
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=2
	addl	(%rdi,%rcx,4), %ebx
	movl	%ebx, 4(%r15,%rcx,4)
	testq	%rsi, %rsi
	je	LBB0_28
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=2
	testq	%rcx, %rcx
	je	LBB0_28
## %bb.23:                              ##   in Loop: Header=BB0_19 Depth=2
	movzbl	(%r12,%r11), %eax
	cmpb	(%r14,%rcx), %al
	jne	LBB0_28
## %bb.24:                              ##   in Loop: Header=BB0_19 Depth=2
	movzbl	(%r12,%rsi), %edx
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
	addl	%ecx, %eax
	cmpb	(%r14,%rax), %dl
	jne	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx,%rax,4), %eax
	addl	-76(%rbp), %eax                 ## 4-byte Folded Reload
	cmpl	%eax, %ebx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jle	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_19 Depth=2
	movl	%eax, 4(%r15,%rcx,4)
	movl	%eax, %ebx
	jmp	LBB0_28
LBB0_25:                                ##   in Loop: Header=BB0_19 Depth=2
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_19 Depth=2
	movl	4(%rdi,%rcx,4), %eax
	addl	%r13d, %eax
	cmpl	%eax, %ebx
	jle	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_19 Depth=2
	movl	%eax, 4(%r15,%rcx,4)
	movl	%eax, %ebx
LBB0_30:                                ##   in Loop: Header=BB0_19 Depth=2
	leaq	1(%rcx), %r8
	movl	(%r15,%rcx,4), %eax
	addl	%edx, %eax
	cmpl	%eax, %ebx
	jle	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_19 Depth=2
	movl	%eax, 4(%r15,%rcx,4)
	jmp	LBB0_32
LBB0_13:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
LBB0_14:
	movslq	-56(%rbp), %rax                 ## 4-byte Folded Reload
	movl	(%r15,%rax,4), %ebx
	callq	_free
	movq	%r15, %rdi
	callq	_free
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,1,2,3]
	xorl	%esi, %esi
	testb	$1, %dl
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function levenshtein
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_levenshtein
	.p2align	2
_levenshtein:                           ; @levenshtein
	.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	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	bl	_strlen
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	mov	x0, x23
	bl	_strlen
	mov	x25, x0
	lsl	w8, w0, #2
	add	w27, w8, #4
	mov	x0, x27
	bl	_malloc
	mov	x28, x0
	mov	x0, x27
	bl	_malloc
	mov	x26, x0
	mov	x0, x27
	bl	_malloc
	mov	x27, x0
	tbnz	w25, #31, LBB0_8
; %bb.1:
	add	w8, w25, #1
	cmp	w25, #15
	b.hs	LBB0_3
; %bb.2:
	mov	x9, #0
	b	LBB0_6
LBB0_3:
	and	x9, x8, #0xfffffff0
	dup.4s	v0, w20
Lloh0:
	adrp	x10, lCPI0_0@PAGE
Lloh1:
	ldr	q1, [x10, lCPI0_0@PAGEOFF]
	add	x10, x26, #32
	movi.4s	v2, #4
	movi.4s	v3, #8
	movi.4s	v4, #12
	movi.4s	v5, #16
	mov	x11, x9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v6, v1, v2
	add.4s	v7, v1, v3
	add.4s	v16, v1, v4
	mul.4s	v17, v1, v0
	mul.4s	v6, v6, v0
	mul.4s	v7, v7, v0
	mul.4s	v16, v16, v0
	stp	q17, q6, [x10, #-32]
	stp	q7, q16, [x10], #64
	add.4s	v1, v1, v5
	subs	x11, x11, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x9, x8
	b.eq	LBB0_8
LBB0_6:
	mul	w10, w20, w9
	add	x11, x26, x9, lsl #2
	sub	x8, x8, x9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	str	w10, [x11], #4
	add	w10, w10, w20
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.9:
	mov	x10, #0
	mov	w8, w8
	mov	w9, w25
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x10, x11
	mov	x28, x0
	cmp	x11, x8
	b.eq	LBB0_25
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	mov	x0, x26
	mov	x26, x27
	mov	x27, x28
	add	x11, x10, #1
	mul	w12, w11, w19
	str	w12, [x26]
	cmp	w25, #1
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x12, #0
	sub	w13, w10, #1
	add	x14, x26, #4
	add	x15, x0, #4
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	add	x12, x12, #1
	add	x14, x14, #4
	add	x15, x15, #4
	cmp	x9, x12
	b.eq	LBB0_10
LBB0_14:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w16, [x15, #-4]
	ldrb	w17, [x24, x10]
	ldrb	w1, [x23, x12]
	cmp	w17, w1
	csel	w17, wzr, w21, eq
	add	w16, w17, w16
	str	w16, [x14]
	cbz	x10, LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	cbz	x12, LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=2
	ldrb	w17, [x24, x13]
	ldrb	w1, [x23, x12]
	cmp	w17, w1
	b.ne	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=2
	ldrb	w1, [x24, x10]
	sub	w17, w12, #1
	ldrb	w2, [x23, x17]
	cmp	w1, w2
	b.ne	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	w17, [x27, x17, lsl #2]
	add	w17, w17, w22
	cmp	w16, w17
	b.le	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=2
	str	w17, [x14]
	mov	x16, x17
LBB0_20:                                ;   in Loop: Header=BB0_14 Depth=2
	ldr	w17, [x15]
	add	w17, w17, w19
	cmp	w16, w17
	b.le	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_14 Depth=2
	str	w17, [x14]
	mov	x16, x17
LBB0_22:                                ;   in Loop: Header=BB0_14 Depth=2
	ldur	w17, [x14, #-4]
	add	w17, w17, w20
	cmp	w16, w17
	b.le	LBB0_13
; %bb.23:                               ;   in Loop: Header=BB0_14 Depth=2
	str	w17, [x14]
	b	LBB0_13
LBB0_24:
	mov	x0, x28
LBB0_25:
	ldr	w19, [x26, w25, sxtw #2]
	bl	_free
	mov	x0, x26
	bl	_free
	mov	x0, x27
	bl	_free
	mov	x0, x19
	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
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
