	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function text_position_get_match_pos
_text_position_get_match_pos:           ## @text_position_get_match_pos
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpl	$0, 20(%rdi)
	je	LBB0_6
## %bb.1:
	movq	8(%rbx), %rax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rbx), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rdi
	callq	_pg_mblen
	addq	8(%rbx), %rax
	movq	%rax, 8(%rbx)
	incl	16(%rbx)
	jmp	LBB0_3
LBB0_4:
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	sete	%dil
	callq	_Assert
	movl	16(%rbx), %eax
	jmp	LBB0_5
LBB0_6:
	movl	(%rbx), %eax
	subl	4(%rbx), %eax
LBB0_5:
	incl	%eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_text_position_get_match_pos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function text_position_get_match_pos
_text_position_get_match_pos:           ; @text_position_get_match_pos
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0, #20]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	x0, [x19, #8]
	ldrsw	x8, [x19]
	cmp	x0, x8
	b.ge	LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_pg_mblen
	ldr	x9, [x19, #8]
	ldrsw	x8, [x19]
	add	x0, x9, x0
	cmp	x0, x8
	str	x0, [x19, #8]
	ldr	w9, [x19, #16]
	add	w9, w9, #1
	str	w9, [x19, #16]
	b.lt	LBB0_2
LBB0_3:
	cmp	x0, x8
	cset	w0, eq
	bl	_Assert
	ldr	w8, [x19, #16]
	b	LBB0_5
LBB0_4:
	ldp	w8, w9, [x19]
	sub	w8, w8, w9
LBB0_5:
	add	w0, w8, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_text_position_get_match_pos
.subsections_via_symbols
