	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ScanKeywordLookup              ## -- Begin function ScanKeywordLookup
	.p2align	4, 0x90
_ScanKeywordLookup:                     ## @ScanKeywordLookup
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_strlen
	movl	$-1, %r14d
	cmpq	(%r12), %rax
	ja	LBB0_7
## %bb.1:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	*8(%r12)
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movl	%eax, %r15d
	cmpl	16(%r12), %eax
	jge	LBB0_7
## %bb.3:
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_GetScanKeyword
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%rcx), %edx
	testb	%dl, %dl
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	-65(%rdx), %esi
	leal	32(%rdx), %edi
	cmpb	$26, %sil
	movzbl	%dl, %edx
	movzbl	%dil, %esi
	cmovael	%edx, %esi
	leaq	1(%rcx), %rdx
	cmpb	(%rax,%rcx), %sil
	movq	%rdx, %rcx
	je	LBB0_4
	jmp	LBB0_7
LBB0_6:
	xorl	%r14d, %r14d
	cmpb	(%rax,%rcx), %r14b
	sbbl	%r14d, %r14d
	orl	%r15d, %r14d
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ScanKeywordLookup              ; -- Begin function ScanKeywordLookup
	.p2align	2
_ScanKeywordLookup:                     ; @ScanKeywordLookup
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_strlen
	ldr	x8, [x21]
	cmp	x0, x8
	b.hi	LBB0_6
; %bb.1:
	mov	x1, x0
	ldr	x8, [x21, #8]
	mov	x0, x19
	blr	x8
	tbnz	w0, #31, LBB0_6
; %bb.2:
	mov	x20, x0
	ldr	w8, [x21, #16]
	cmp	w0, w8
	b.ge	LBB0_6
; %bb.3:
	mov	x0, x20
	mov	x1, x21
	bl	_GetScanKeyword
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x19]
	cbz	w8, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x19, x19, #1
	sub	w9, w8, #65
	add	w10, w8, #32
	cmp	w9, #26
	csel	w8, w10, w8, lo
	ldrb	w9, [x0], #1
	cmp	w9, w8, uxtb
	b.eq	LBB0_4
LBB0_6:
	mov	w0, #-1
LBB0_7:
	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_8:
	ldrb	w8, [x0]
	cmp	w8, #0
	csinv	w0, w20, wzr, eq
	b	LBB0_7
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
