	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grapheme_get_haystack_offset   ## -- Begin function grapheme_get_haystack_offset
	.p2align	4, 0x90
_grapheme_get_haystack_offset:          ## @grapheme_get_haystack_offset
	.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
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	$-1, %rcx
	js	LBB0_4
## %bb.3:
	movq	_ubrk_next@GOTPCREL(%rip), %r12
	movq	$-1, %r13
	jmp	LBB0_5
LBB0_1:
	xorl	%ecx, %ecx
	jmp	LBB0_12
LBB0_4:
	movq	%r14, %rdi
	callq	_ubrk_last
	movq	$-1, %rcx
	movl	$1, %r13d
	movq	_ubrk_previous@GOTPCREL(%rip), %r12
LBB0_5:
	movq	_UBRK_DONE@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	*%r12
	movq	(%r15), %rcx
	cmpq	%rax, %rcx
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edx, %edx
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	addq	%rdx, %rbx
	cmpq	%rcx, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	testq	%rbx, %rbx
	jne	LBB0_6
LBB0_11:
	xorl	%ecx, %ecx
	negq	%rbx
	sbbq	%rcx, %rcx
	orq	%rax, %rcx
LBB0_12:
	movq	%rcx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UBRK_DONE,8,3                  ## @UBRK_DONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grapheme_get_haystack_offset   ; -- Begin function grapheme_get_haystack_offset
	.p2align	2
_grapheme_get_haystack_offset:          ; @grapheme_get_haystack_offset
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x1, LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	tbnz	x1, #63, LBB0_4
; %bb.2:
	mov	x22, #-1
Lloh0:
	adrp	x21, _ubrk_next@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ubrk_next@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	mov	x0, #0
	b	LBB0_9
LBB0_4:
	mov	x0, x20
	bl	_ubrk_last
Lloh2:
	adrp	x21, _ubrk_previous@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ubrk_previous@GOTPAGEOFF]
	mov	w22, #1
LBB0_5:
Lloh4:
	adrp	x23, _UBRK_DONE@GOTPAGE
Lloh5:
	ldr	x23, [x23, _UBRK_DONE@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	blr	x21
	ldr	x8, [x23]
	cmp	x8, x0
	csel	x9, xzr, x22, eq
	add	x19, x9, x19
	cmp	x0, x8
	ccmp	x19, #0, #4, ne
	b.ne	LBB0_6
; %bb.7:
	cmp	x19, #0
	csinv	x0, x0, xzr, eq
	b	LBB0_9
LBB0_8:
	mov	x0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_UBRK_DONE,8,3                  ; @UBRK_DONE
.subsections_via_symbols
