	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tr_find_character
_tr_find_character:                     ## @tr_find_character
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	%edx, %r13d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movslq	%edx, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	$-1, %rbx
	xorl	%r12d, %r12d
	movq	_TR_IN_ORDER@GOTPCREL(%rip), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edi, %edi
	movq	_TR_UNINITIALIZED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_mrb_assert
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	16(%r15), %rax
	addq	%rax, %r12
	movq	24(%r15), %r15
	testq	%r15, %r15
	je	LBB0_19
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
	movq	8(%r15), %rax
	cmpq	(%r14), %rax
	jne	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%r15), %r10d
	testl	%r10d, %r10d
	jle	LBB0_18
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	32(%r15), %r8
	leaq	-1(%r10), %rax
	movl	%r10d, %r9d
	andl	$3, %r9d
	cmpq	$3, %rax
	jae	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%esi, %esi
	testq	%r9, %r9
	jne	LBB0_11
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_TR_RANGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	40(%r15), %rcx
	movslq	(%rcx), %rax
	cmpl	%r13d, %eax
	jg	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r13d, 4(%rcx)
	jl	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%r12,%rcx), %rbx
	subq	%rax, %rbx
	jmp	LBB0_18
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r8), %r11
	andl	$-4, %r10d
	negq	%r10
	movl	$1, %esi
	movq	%r12, %rax
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	-1(%r11,%rsi), %ecx
	cmpl	%r13d, %ecx
	cmoveq	%rax, %rbx
	movsbl	(%r11,%rsi), %ecx
	leaq	1(%rax), %rdx
	cmpl	%r13d, %ecx
	cmovneq	%rbx, %rdx
	movsbl	1(%r11,%rsi), %ecx
	leaq	2(%rax), %rdi
	cmpl	%r13d, %ecx
	cmovneq	%rdx, %rdi
	movsbl	2(%r11,%rsi), %ecx
	leaq	3(%rax), %rbx
	cmpl	%r13d, %ecx
	cmovneq	%rdi, %rbx
	addq	$4, %rax
	leaq	(%r10,%rsi), %rcx
	addq	$4, %rcx
	addq	$4, %rsi
	cmpq	$1, %rcx
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	decq	%rsi
	testq	%r9, %r9
	je	LBB0_18
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rsi,%r12), %rax
	addq	%rsi, %r8
	addq	-48(%rbp), %r8                  ## 8-byte Folded Reload
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%r8,%rdx), %ecx
	leaq	(%rax,%rdx), %rsi
	cmpl	%r13d, %ecx
	cmoveq	%rsi, %rbx
	incq	%rdx
	cmpq	%rdx, %r9
	jne	LBB0_12
	jmp	LBB0_18
LBB0_19:
	movq	$-1, %rax
	testq	%rbx, %rbx
	jns	LBB0_21
## %bb.20:
	movq	_MRB_INT_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_21:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_23
	jmp	LBB0_22
LBB0_1:
	movq	$-1, %rbx
LBB0_22:
	movq	%rbx, %rax
LBB0_23:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TR_IN_ORDER,8,3                ## @TR_IN_ORDER
	.comm	_TR_RANGE,8,3                   ## @TR_RANGE
	.comm	_TR_UNINITIALIZED,8,3           ## @TR_UNINITIALIZED
	.comm	_MRB_INT_MAX,8,3                ## @MRB_INT_MAX
	.no_dead_strip	_tr_find_character
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tr_find_character
_tr_find_character:                     ; @tr_find_character
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cbz	x0, LBB0_13
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x24, #0
	ldr	x23, [x0]
	sxtw	x25, w20
	mov	x19, #-1
Lloh0:
	adrp	x26, _TR_IN_ORDER@GOTPAGE
Lloh1:
	ldr	x26, [x26, _TR_IN_ORDER@GOTPAGEOFF]
Lloh2:
	adrp	x27, _TR_RANGE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _TR_RANGE@GOTPAGEOFF]
Lloh4:
	adrp	x28, _TR_UNINITIALIZED@GOTPAGE
Lloh5:
	ldr	x28, [x28, _TR_UNINITIALIZED@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x28]
	cmp	x8, x9
	cset	w0, eq
	bl	_mrb_assert
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x8, [x22, #16]
	add	x24, x24, x8
	ldr	x22, [x22, #24]
	cbz	x22, LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x8, [x22, #8]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22, #16]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x9, [x22, #32]
	add	x9, x21, x9
	mov	x10, x24
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w11, [x9], #1
	cmp	w11, w20
	csel	x19, x10, x19, eq
	add	x10, x10, #1
	subs	x8, x8, #1
	b.ne	LBB0_7
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x22, #40]
	ldrsw	x8, [x9]
	cmp	w8, w20
	b.gt	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x9, #4]
	add	x10, x24, x25
	sub	x8, x10, x8
	cmp	w9, w20
	csel	x19, x19, x8, lt
	b	LBB0_3
LBB0_11:
Lloh6:
	adrp	x8, _MRB_INT_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MRB_INT_MAX@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x19, #0
	csinv	x8, x8, xzr, lt
	cbz	x23, LBB0_14
; %bb.12:
	mov	x19, x8
	b	LBB0_14
LBB0_13:
	mov	x19, #-1
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TR_IN_ORDER,8,3                ; @TR_IN_ORDER
	.comm	_TR_RANGE,8,3                   ; @TR_RANGE
	.comm	_TR_UNINITIALIZED,8,3           ; @TR_UNINITIALIZED
	.comm	_MRB_INT_MAX,8,3                ; @MRB_INT_MAX
	.no_dead_strip	_tr_find_character
.subsections_via_symbols
