	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spell_check                    ## -- Begin function spell_check
	.p2align	4, 0x90
_spell_check:                           ## @spell_check
	.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	%edx, %r14d
	movq	%rdi, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	jne	LBB0_2
## %bb.1:
	callq	_dyn_mark
	movq	%rbx, %rdi
	callq	_strlen
	leaq	1(%rax), %rdi
	callq	_zmalloc
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_strcpy
	movq	%r14, %rbx
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_vkprintf
	movq	_re_email@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_filter_re
	movq	_re_url@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_filter_re
	leaq	L_.str.1(%rip), %rsi
	movl	$3, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_vkprintf
	cmpb	$0, (%rbx)
	je	LBB0_13
## %bb.3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	addq	$4, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	_spell_check.buff(%rip), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	incl	(%rax)
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movslq	%r13d, %rax
	addq	%rax, %rbx
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$0, (%rbx)
	je	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_get_notword
	testl	%eax, %eax
	js	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %eax
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_get_word
	testl	%eax, %eax
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r13d
	leal	-1(%r13), %eax
	xorl	%edi, %edi
	cmpl	$16382, %eax                    ## imm = 0x3FFE
	setb	%dil
	callq	_assert
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_my_lc_str
	cmpl	$3, %r13d
	jl	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_my_lc_str
	movl	%eax, %r15d
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_check_word
	movl	%eax, %r14d
	movl	$3, %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	movl	%r15d, %ecx
	movq	%r12, %r8
	xorl	%eax, %eax
	callq	_vkprintf
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	testl	%r14d, %r14d
	js	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_check_word_stat@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	incl	4(%rcx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
	movq	%rcx, %rax
	jmp	LBB0_10
LBB0_13:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_15
## %bb.14:
	callq	_dyn_release
LBB0_15:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_spell_check.buff,16384,4 ## @spell_check.buff
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Before filter: %s\n"

	.comm	_re_email,4,2                   ## @re_email
	.comm	_re_url,4,2                     ## @re_url
L_.str.1:                               ## @.str.1
	.asciz	"After filter: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"[%d] check_word: %.*s\n"

	.comm	_check_word_stat,8,3            ## @check_word_stat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spell_check                    ; -- Begin function spell_check
	.p2align	2
_spell_check:                           ; @spell_check
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	w19, [sp, #28]                  ; 4-byte Folded Spill
	cbnz	w19, LBB0_2
; %bb.1:
	bl	_dyn_mark
	mov	x0, x21
	bl	_strlen
	add	x0, x0, #1
	bl	_zmalloc
	mov	x22, x0
	mov	x1, x21
	bl	_strcpy
	mov	x21, x22
LBB0_2:
	str	x21, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_vkprintf
Lloh2:
	adrp	x1, _re_email@GOTPAGE
Lloh3:
	ldr	x1, [x1, _re_email@GOTPAGEOFF]
	mov	x0, x21
	bl	_filter_re
Lloh4:
	adrp	x1, _re_url@GOTPAGE
Lloh5:
	ldr	x1, [x1, _re_url@GOTPAGEOFF]
	mov	x0, x21
	bl	_filter_re
	str	x21, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #3
	bl	_vkprintf
	ldrb	w8, [x21]
	cbz	w8, LBB0_13
; %bb.3:
	add	x27, x20, #8
	add	x28, x20, #4
	mov	w19, #16382
Lloh8:
	adrp	x22, _spell_check.buff@PAGE
Lloh9:
	add	x22, x22, _spell_check.buff@PAGEOFF
Lloh10:
	adrp	x23, l_.str.2@PAGE
Lloh11:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x9]
	add	w8, w8, #1
	str	w8, [x9]
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, w24, sxtw
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [x21]
	cbz	w8, LBB0_13
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_get_notword
	tbnz	w0, #31, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, w0, uxtw
	mov	x0, x21
	bl	_get_word
	cbz	w0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x24, x0
	sub	w8, w0, #1
	cmp	w8, w19
	cset	w0, lo
	bl	_assert
	mov	x0, x22
	mov	x1, x21
	mov	x2, x24
	bl	_my_lc_str
	cmp	w24, #3
	b.lt	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x24
	bl	_my_lc_str
	mov	x26, x0
	mov	x0, x22
	mov	x1, x26
	bl	_check_word
	mov	x25, x0
	stp	x26, x22, [sp, #8]
	str	x25, [sp]
	mov	w0, #3
	mov	x1, x23
	bl	_vkprintf
	mov	x9, x27
	tbnz	w25, #31, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh12:
	adrp	x8, _check_word_stat@GOTPAGE
Lloh13:
	ldr	x8, [x8, _check_word_stat@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
	mov	x9, x28
	cbz	w25, LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x20]
	add	w9, w9, #1
	str	w9, [x20]
	mov	x9, x8
	b	LBB0_4
LBB0_13:
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cbnz	w8, LBB0_15
; %bb.14:
	bl	_dyn_release
LBB0_15:
	mov	w0, #0
	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
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_spell_check.buff,16384,0 ; @spell_check.buff
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Before filter: %s\n"

	.comm	_re_email,4,2                   ; @re_email
	.comm	_re_url,4,2                     ; @re_url
l_.str.1:                               ; @.str.1
	.asciz	"After filter: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"[%d] check_word: %.*s\n"

	.comm	_check_word_stat,8,3            ; @check_word_stat
.subsections_via_symbols
