	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function text_position_next_internal
_text_position_next_internal:           ## @text_position_next_internal
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movslq	(%rsi), %r15
	movslq	4(%rsi), %r12
	movl	8(%rsi), %r13d
	movq	16(%rsi), %rax
	movq	24(%rsi), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	addq	%rax, %r15
	cmpq	%rdi, %rax
	setbe	%al
	cmpq	%rdi, %r15
	setae	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_Assert
	cmpq	$1, %r12
	jne	LBB0_6
## %bb.1:
	cmpq	%rbx, %r15
	jbe	LBB0_13
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movb	(%rax), %al
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	%al, (%rbx)
	je	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%r15, %rbx
	jb	LBB0_3
	jmp	LBB0_13
LBB0_6:
	leaq	(%rbx,%r12), %rax
	decq	%rax
	cmpq	%r15, %rax
	jae	LBB0_13
## %bb.7:
	decq	%r12
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movb	(%rcx,%r12), %r8b
	leaq	(%rcx,%r12), %rdx
	decq	%rdx
	negq	%r12
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	32(%r14), %rcx
	andl	%r13d, %r9d
	movslq	(%rcx,%r9,4), %rcx
	addq	%rcx, %rax
	cmpq	%r15, %rax
	jae	LBB0_16
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movzbl	(%rax), %r9d
	cmpb	%r9b, %r8b
	jne	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rdi, %r12
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movzbl	(%rdx,%rdi), %ecx
	leaq	-1(%rdi), %rsi
	cmpb	-1(%rax,%rdi), %cl
	movq	%rsi, %rdi
	je	LBB0_11
	jmp	LBB0_8
LBB0_13:
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_15:
	addq	%r12, %rax
	movq	%rax, %rbx
LBB0_16:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_text_position_next_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function text_position_next_internal
_text_position_next_internal:           ; @text_position_next_internal
	.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	x19, x1
	mov	x20, x0
	ldpsw	x25, x24, [x1]
	ldr	w21, [x1, #8]
	ldp	x26, x23, [x1, #16]
	add	x22, x26, x25
	cmp	x26, x0
	ccmp	x22, x0, #0, ls
	cset	w0, hs
	bl	_Assert
	cmp	w24, #1
	b.ne	LBB0_5
; %bb.1:
	cmp	x22, x20
	b.ls	LBB0_12
; %bb.2:
	ldrb	w8, [x23]
	add	x9, x26, x25
	sub	x9, x9, x20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x20]
	cmp	w10, w8
	b.eq	LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	subs	x9, x9, #1
	b.ne	LBB0_3
	b	LBB0_12
LBB0_5:
	add	x8, x20, x24
	sub	x8, x8, #1
	cmp	x8, x22
	b.hs	LBB0_12
; %bb.6:
	sub	x9, x24, #1
	ldrb	w10, [x23, x9]
	neg	x11, x9
	sub	x12, x23, #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x20, #0
	ldr	x14, [x19, #32]
	and	x13, x21, x13
	ldrsw	x13, [x14, x13, lsl #2]
	add	x8, x8, x13
	cmp	x8, x22
	b.hs	LBB0_14
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldrb	w13, [x8]
	cmp	w10, w13
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	sub	x14, x8, #1
	mov	x15, x9
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	x15, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldrb	w16, [x12, x15]
	ldrb	w17, [x14], #-1
	sub	x15, x15, #1
	cmp	w16, w17
	b.eq	LBB0_10
	b	LBB0_7
LBB0_12:
	mov	x20, #0
	b	LBB0_14
LBB0_13:
	add	x20, x8, x11
LBB0_14:
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_text_position_next_internal
.subsections_via_symbols
