	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function seq_search
_seq_search:                            ## @seq_search
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
	movl	%edx, %ebx
	movl	$0, (%r8)
	movb	(%rdi), %al
	movl	$-1, %edx
	testb	%al, %al
	je	LBB0_31
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_ONE_UPPER@GOTPCREL(%rip), %rdx
	movq	_ALL_UPPER@GOTPCREL(%rip), %rsi
	cmpl	%ebx, (%rdx)
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	je	LBB0_5
## %bb.2:
	cmpl	%ebx, (%rsi)
	je	LBB0_5
## %bb.3:
	movq	_ALL_LOWER@GOTPCREL(%rip), %rdx
	cmpl	%ebx, (%rdx)
	jne	LBB0_7
## %bb.4:
	movzbl	%al, %edi
	callq	_pg_tolower
	jmp	LBB0_6
LBB0_5:
	movzbl	%al, %edi
	callq	_pg_toupper
LBB0_6:
	movb	%al, (%r14)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
LBB0_7:
	movq	(%r15), %r12
	testq	%r12, %r12
	je	LBB0_27
## %bb.8:
	leal	-2(%rcx), %edx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	movq	%r15, %rsi
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	cmpb	(%r12), %al
	jne	LBB0_25
LBB0_9:
	cmpl	$1, %ecx
	je	LBB0_33
## %bb.10:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %r13
	cmpb	$0, 1(%r12,%r15)
	je	LBB0_28
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movzbl	1(%r14,%r13), %eax
	testb	%al, %al
	je	LBB0_24
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	1(%r13), %r15
	cmpl	%edx, %r15d
	jle	LBB0_21
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_ONE_UPPER@GOTPCREL(%rip), %rdx
	cmpl	%ebx, (%rdx)
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_ALL_LOWER@GOTPCREL(%rip), %rdx
	cmpl	%ebx, (%rdx)
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_ALL_UPPER@GOTPCREL(%rip), %rdx
	cmpl	%ebx, (%rdx)
	jne	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	movzbl	%al, %edi
	callq	_pg_toupper
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	movzbl	%al, %edi
	callq	_pg_tolower
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movb	%al, 1(%r14,%r13)
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%r15d, %edx
LBB0_21:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpb	1(%r12,%r13), %al
	jne	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_11 Depth=1
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.23:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	%r13d, -80(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_11
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_24:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rsi), %r12
	testq	%r12, %r12
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	addq	$8, %rsi
	movzbl	(%r14), %eax
	cmpb	(%r12), %al
	je	LBB0_9
	jmp	LBB0_25
LBB0_27:
	movl	$-1, %edx
	jmp	LBB0_31
LBB0_28:
	incl	%r13d
	movl	%r13d, %ecx
LBB0_29:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_30:
	movl	%ecx, (%rax)
	subq	%r15, %rsi
	shrq	$3, %rsi
	movl	%esi, %edx
LBB0_31:
	movl	%edx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_33:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_ONE_UPPER,4,2                  ## @ONE_UPPER
	.comm	_ALL_UPPER,4,2                  ## @ALL_UPPER
	.comm	_ALL_LOWER,4,2                  ## @ALL_LOWER
	.comm	_DEBUG_elog_output,4,2          ## @DEBUG_elog_output
	.no_dead_strip	_seq_search
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function seq_search
_seq_search:                            ; @seq_search
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x23, x0
	str	wzr, [x4]
	ldrb	w0, [x0]
	cbz	w0, LBB0_27
; %bb.1:
	mov	x19, x4
	mov	x24, x3
	mov	x22, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _ONE_UPPER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ONE_UPPER@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ALL_UPPER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ALL_UPPER@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w2
	ccmp	w9, w2, #4, ne
Lloh6:
	adrp	x11, _ALL_LOWER@GOTPAGE
Lloh7:
	ldr	x11, [x11, _ALL_LOWER@GOTPAGEOFF]
	b.ne	LBB0_3
; %bb.2:
	bl	_pg_toupper
	b	LBB0_5
LBB0_3:
	ldr	w8, [x11]
	cmp	w8, w22
	b.ne	LBB0_6
; %bb.4:
	bl	_pg_tolower
LBB0_5:
	strb	w0, [x23]
Lloh8:
	adrp	x11, _ALL_LOWER@GOTPAGE
Lloh9:
	ldr	x11, [x11, _ALL_LOWER@GOTPAGEOFF]
LBB0_6:
	ldr	x9, [x20]
	cbz	x9, LBB0_27
; %bb.7:
	mov	w8, #0
	add	x28, x23, #1
	mov	x27, x20
	str	x28, [sp, #8]                   ; 8-byte Folded Spill
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldrb	w10, [x9]
	cmp	w10, w0, uxtb
	b.ne	LBB0_25
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w24, #1
	b.eq	LBB0_29
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x25, x9, #1
	mov	w9, #2
LBB0_11:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x26, x9
	sub	w21, w9, #1
	ldrb	w9, [x25]
	cbz	w9, LBB0_28
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldrb	w0, [x28]
	cbz	w0, LBB0_24
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	cmp	w21, w8
	b.le	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=2
Lloh10:
	adrp	x8, _ONE_UPPER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ONE_UPPER@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x11]
	cmp	w8, w22
	ccmp	w9, w22, #4, ne
	b.ne	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=2
	bl	_pg_tolower
	b	LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=2
	mov	x21, x8
	b	LBB0_20
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=2
Lloh13:
	adrp	x8, _ALL_UPPER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ALL_UPPER@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=2
	bl	_pg_toupper
LBB0_19:                                ;   in Loop: Header=BB0_11 Depth=2
Lloh16:
	adrp	x11, _ALL_LOWER@GOTPAGE
Lloh17:
	ldr	x11, [x11, _ALL_LOWER@GOTPAGEOFF]
	strb	w0, [x28]
LBB0_20:                                ;   in Loop: Header=BB0_11 Depth=2
	ldrb	w8, [x25]
	cmp	w8, w0, uxtb
	b.ne	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_11 Depth=2
	add	x28, x28, #1
	add	x25, x25, #1
	add	w9, w26, #1
	mov	x8, x21
	cbz	w24, LBB0_11
; %bb.22:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x8, x21
	cmp	w24, w26
	b.ne	LBB0_11
	b	LBB0_29
LBB0_23:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x8, x21
LBB0_24:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x28, [sp, #8]                   ; 8-byte Folded Reload
LBB0_25:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x27, #8]!
	cbz	x9, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_8 Depth=1
	ldrb	w0, [x23]
	b	LBB0_8
LBB0_27:
	mov	w0, #-1
	b	LBB0_30
LBB0_28:
	mov	x24, x21
LBB0_29:
	str	w24, [x19]
	sub	x8, x27, x20
	lsr	x0, x8, #3
LBB0_30:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ONE_UPPER,4,2                  ; @ONE_UPPER
	.comm	_ALL_UPPER,4,2                  ; @ALL_UPPER
	.comm	_ALL_LOWER,4,2                  ; @ALL_LOWER
	.comm	_DEBUG_elog_output,4,2          ; @DEBUG_elog_output
	.no_dead_strip	_seq_search
.subsections_via_symbols
