	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phrase_count_extra_words
_phrase_count_extra_words:              ## @phrase_count_extra_words
	.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
	movq	%rdi, %r12
	movslq	(%rdi), %rbx
	leal	(,%rbx,4), %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_alloca
	movq	%rax, %r14
	leal	(,%rbx,8), %edi
	callq	_alloca
	movq	%rax, %r15
	movl	%ebx, %r13d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%rax), %rdi
	movq	%rdi, (%r15,%rbx,8)
	callq	_assert
	addq	$4, (%r15,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_memset
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rdx
	cmpl	$0, -4(%rdx)
	jle	LBB0_17
## %bb.4:
	xorl	%r11d, %r11d
	movabsq	$4294967296, %r10               ## imm = 0x100000000
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	testb	$1, %al
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r9, %r13
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	jne	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r11
	movslq	-4(%rdx), %rcx
	cmpq	%rcx, %r11
	jge	LBB0_17
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
	movl	(%rdx,%r11,4), %r8d
	cmpl	$2, -56(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movb	$1, %al
	movl	$1, %ecx
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
	movq	%r13, %r9
	movq	(%r15,%rcx,8), %r12
	movl	-4(%r12), %edx
	movslq	(%r14,%rcx,4), %rbx
	cmpl	%edx, %ebx
	jge	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	leaq	(%r12,%rbx,4), %r13
	movq	%rbx, %rsi
	shlq	$32, %rsi
	negl	%edx
	leal	1(%rbx), %r15d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_8 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpl	%r8d, (%r13)
	jg	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=3
	movl	%r15d, (%r14,%rcx,4)
	addq	%r10, %rsi
	addq	$4, %r13
	leal	(%rdx,%r15), %ebx
	incl	%ebx
	movl	%r15d, %edi
	incl	%edi
	movl	%edi, %r15d
	cmpl	$1, %ebx
	jne	LBB0_10
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=2
	sarq	$30, %rsi
	incq	%rcx
	movl	(%r12,%rsi), %r8d
	cmpq	-56(%rbp), %rcx                 ## 8-byte Folded Reload
	setl	%al
	movq	%r9, %r13
	cmpq	%r9, %rcx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_8
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx,%r11,4), %ecx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%r8d, %ecx
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	subl	%ecx, %r8d
	incl	%r8d
	cmpl	%r8d, %eax
	cmovgel	%r8d, %eax
	jmp	LBB0_16
LBB0_17:
	subl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.no_dead_strip	_phrase_count_extra_words
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phrase_count_extra_words
_phrase_count_extra_words:              ; @phrase_count_extra_words
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x0
	ldr	w24, [x0]
	sxtw	x23, w24
	lsl	w21, w24, #2
	mov	x0, x21
	bl	_alloca
	mov	x19, x0
	lsl	w0, w24, #3
	bl	_alloca
	mov	x20, x0
	cmp	w24, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x25, #0
	lsl	x26, x24, #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	x8, [x8, x25]
	ldr	x0, [x8]
	str	x0, [x20, x25]
	bl	_assert
	ldr	x8, [x20, x25]
	add	x8, x8, #4
	str	x8, [x20, x25]
	add	x25, x25, #8
	cmp	x26, x25
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
	bl	_memset
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x20]
	ldur	w10, [x9, #-4]
	cmp	w10, #1
	b.lt	LBB0_17
; %bb.4:
	mov	x10, #0
	mov	x11, #4294967296
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	tbnz	w14, #0, LBB0_17
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x10, x10, #1
	ldursw	x12, [x9, #-4]
	cmp	x10, x12
	b.ge	LBB0_17
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
	ldr	w12, [x9, x10, lsl #2]
	cmp	w23, #2
	b.lt	LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w13, #1
	mov	w14, #1
LBB0_9:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
	ldr	x15, [x20, x13, lsl #3]
	ldur	w16, [x15, #-4]
	ldr	w17, [x19, x13, lsl #2]
	cmp	w17, w16
	b.ge	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	sxtw	x1, w17
	lsl	x0, x1, #32
	add	x1, x15, x1, lsl #2
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ;     Parent Loop BB0_9 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w2, [x1]
	cmp	w2, w12
	b.gt	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=3
	add	w17, w17, #1
	str	w17, [x19, x13, lsl #2]
	add	x0, x0, x11
	add	x1, x1, #4
	cmp	w16, w17
	b.ne	LBB0_11
	b	LBB0_5
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=2
	asr	x12, x0, #30
	add	x13, x13, #1
	ldr	w12, [x15, x12]
	cmp	x13, x23
	cset	w14, lt
	cmp	x13, x24
	b.ne	LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w13, [x9, x10, lsl #2]
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x13, x12
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	w12, w12, w13
	add	w13, w12, #1
	cmp	w8, w13
	csinc	w8, w8, w12, lt
	b	LBB0_6
LBB0_17:
	sub	w0, w8, w23
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.no_dead_strip	_phrase_count_extra_words
.subsections_via_symbols
