	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function NOTEPAD_FindTextAt
_NOTEPAD_FindTextAt:                    ## @NOTEPAD_FindTextAt
	.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	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	%rsi, %r12
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.2:
	movq	%rcx, %r14
	movl	%edx, %r15d
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	__tcslen
	movq	%rax, %rdx
	movq	_FR_MATCHCASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	(%r12,%r14,4), %rdi
	movl	4(%rbx), %esi
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.3:
	callq	__tcsncmp
	jmp	LBB0_5
LBB0_4:
	callq	__tcsnicmp
LBB0_5:
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.6:
	movq	_FR_WHOLEWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_7
## %bb.8:
	testq	%r14, %r14
	je	LBB0_9
## %bb.10:
	movl	-4(%r12,%r14,4), %edi
	callq	__istspace
	movl	$1, %r13d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_12
LBB0_7:
	movl	$1, %r13d
	jmp	LBB0_15
LBB0_9:
	movl	$1, %r13d
LBB0_12:
	movslq	%r15d, %rax
	decq	%rax
	cmpq	%r14, %rax
	jbe	LBB0_15
## %bb.13:
	movl	4(%r12,%r14,4), %edi
	callq	__istspace
	testl	%eax, %eax
	jne	LBB0_15
LBB0_14:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_15:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_FR_MATCHCASE,4,2               ## @FR_MATCHCASE
	.comm	_FR_WHOLEWORD,4,2               ## @FR_WHOLEWORD
	.no_dead_strip	_NOTEPAD_FindTextAt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function NOTEPAD_FindTextAt
_NOTEPAD_FindTextAt:                    ; @NOTEPAD_FindTextAt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_5
; %bb.2:
	mov	x19, x3
	mov	x21, x2
	mov	x22, x0
	ldr	w0, [x0, #4]
	bl	__tcslen
	mov	x2, x0
Lloh0:
	adrp	x8, _FR_MATCHCASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FR_MATCHCASE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	x0, x20, x19, lsl #2
	ldp	w9, w1, [x22]
	tst	w8, w9
	b.eq	LBB0_7
; %bb.3:
	bl	__tcsncmp
	cbz	w0, LBB0_8
LBB0_4:
	mov	w22, #0
	b	LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	__tcsnicmp
	cbnz	w0, LBB0_4
LBB0_8:
	ldr	w8, [x22]
Lloh6:
	adrp	x9, _FR_WHOLEWORD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FR_WHOLEWORD@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.9:
	cbz	x19, LBB0_12
; %bb.10:
	add	x8, x20, x19, lsl #2
	ldur	w0, [x8, #-4]
	bl	__istspace
Lloh9:
	adrp	x8, _FALSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, #0
	csinc	w22, w8, wzr, eq
	b	LBB0_13
LBB0_11:
	mov	w22, #1
	b	LBB0_6
LBB0_12:
	mov	w22, #1
LBB0_13:
	sxtw	x8, w21
	sub	x8, x8, #1
	cmp	x8, x19
	b.ls	LBB0_6
; %bb.14:
	add	x8, x20, x19, lsl #2
	ldr	w0, [x8, #4]
	bl	__istspace
Lloh12:
	adrp	x8, _FALSE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w22, w8, w22, eq
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_FR_MATCHCASE,4,2               ; @FR_MATCHCASE
	.comm	_FR_WHOLEWORD,4,2               ; @FR_WHOLEWORD
	.no_dead_strip	_NOTEPAD_FindTextAt
.subsections_via_symbols
