	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function text_position_setup
_text_position_setup:                   ## @text_position_setup
	.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	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_VARSIZE_ANY_EXHDR
	movl	%eax, %r13d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_VARSIZE_ANY_EXHDR
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_check_collation_set
	movq	%r12, %rdi
	callq	_lc_collate_is_c
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	_DEFAULT_COLLATION_OID@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	je	LBB0_5
## %bb.2:
	movq	%r12, %rdi
	callq	_pg_newlocale_from_collation
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	cmpl	$0, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_5:
	xorl	%edi, %edi
	movl	%r13d, %ebx
	testl	%r13d, %r13d
	setg	%dil
	callq	_Assert
	xorl	%edi, %edi
	testl	%r14d, %r14d
	setg	%dil
	callq	_Assert
	xorl	%eax, %eax
	callq	_pg_database_encoding_max_length
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.6:
	movq	$0, (%r15)
	jmp	LBB0_10
LBB0_7:
	xorl	%eax, %eax
	callq	_GetDatabaseEncoding
	movq	_PG_UTF8@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$1, (%r15)
	jne	LBB0_9
## %bb.8:
	movl	$0, 4(%r15)
	jmp	LBB0_10
LBB0_9:
	movl	$1, 4(%r15)
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_VARDATA_ANY
	movq	%rax, 48(%r15)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_VARDATA_ANY
	movq	%rax, 8(%r15)
	movl	%ebx, 16(%r15)
	movl	%r14d, 20(%r15)
	movq	$0, 64(%r15)
	movq	48(%r15), %rcx
	movq	%rcx, 56(%r15)
	movq	$0, 40(%r15)
	subl	%r14d, %ebx
	jl	LBB0_37
## %bb.11:
	cmpl	$2, %r14d
	jl	LBB0_37
## %bb.12:
	movl	$3, %r13d
	cmpl	$16, %ebx
	jl	LBB0_18
## %bb.13:
	movl	$7, %r13d
	cmpl	$64, %ebx
	jb	LBB0_18
## %bb.14:
	movl	$15, %r13d
	cmpl	$128, %ebx
	jb	LBB0_18
## %bb.15:
	movl	$31, %r13d
	cmpl	$512, %ebx                      ## imm = 0x200
	jb	LBB0_18
## %bb.16:
	movl	$63, %r13d
	cmpl	$2048, %ebx                     ## imm = 0x800
	jb	LBB0_18
## %bb.17:
	xorl	%r13d, %r13d
	cmpl	$4096, %ebx                     ## imm = 0x1000
	setae	%r13b
	shll	$7, %r13d
	orl	$127, %r13d
LBB0_18:
	movl	%r13d, 24(%r15)
	movq	32(%r15), %rdx
	leal	1(%r13), %r9d
	cmpl	$7, %r13d
	jae	LBB0_20
## %bb.19:
	xorl	%edi, %edi
	jmp	LBB0_28
LBB0_20:
	movl	%r9d, %edi
	andl	$-8, %edi
	movd	%r14d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rdi), %rsi
	movq	%rsi, %rbx
	shrq	$3, %rbx
	incq	%rbx
	movl	%ebx, %r8d
	andl	$7, %r8d
	cmpq	$56, %rsi
	jae	LBB0_22
## %bb.21:
	xorl	%esi, %esi
	jmp	LBB0_24
LBB0_22:
	andq	$-8, %rbx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rdx,%rsi,4)
	movdqu	%xmm0, 16(%rdx,%rsi,4)
	movdqu	%xmm0, 32(%rdx,%rsi,4)
	movdqu	%xmm0, 48(%rdx,%rsi,4)
	movdqu	%xmm0, 64(%rdx,%rsi,4)
	movdqu	%xmm0, 80(%rdx,%rsi,4)
	movdqu	%xmm0, 96(%rdx,%rsi,4)
	movdqu	%xmm0, 112(%rdx,%rsi,4)
	movdqu	%xmm0, 128(%rdx,%rsi,4)
	movdqu	%xmm0, 144(%rdx,%rsi,4)
	movdqu	%xmm0, 160(%rdx,%rsi,4)
	movdqu	%xmm0, 176(%rdx,%rsi,4)
	movdqu	%xmm0, 192(%rdx,%rsi,4)
	movdqu	%xmm0, 208(%rdx,%rsi,4)
	movdqu	%xmm0, 224(%rdx,%rsi,4)
	movdqu	%xmm0, 240(%rdx,%rsi,4)
	addq	$64, %rsi
	addq	$-8, %rbx
	jne	LBB0_23
LBB0_24:
	testq	%r8, %r8
	je	LBB0_27
## %bb.25:
	leaq	(%rdx,%rsi,4), %rsi
	addq	$16, %rsi
	shlq	$5, %r8
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -16(%rsi,%rbx)
	movdqu	%xmm0, (%rsi,%rbx)
	addq	$32, %rbx
	cmpq	%rbx, %r8
	jne	LBB0_26
LBB0_27:
	cmpq	%r9, %rdi
	je	LBB0_29
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, (%rdx,%rdi,4)
	incq	%rdi
	cmpq	%rdi, %r9
	jne	LBB0_28
LBB0_29:
	leal	-1(%r14), %r11d
	leaq	-1(%r11), %rsi
	movl	%r11d, %r8d
	andl	$3, %r8d
	cmpq	$3, %rsi
	jae	LBB0_31
## %bb.30:
	xorl	%edi, %edi
	testq	%r8, %r8
	jne	LBB0_35
	jmp	LBB0_37
LBB0_31:
	leal	-3(%r14), %r9d
	leaq	3(%rax), %rbx
	leal	-2(%r14), %r10d
	leal	-4(%r14), %r15d
	movl	%r11d, %r12d
	andl	$-4, %r12d
	negq	%r12
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	leal	(%r11,%rdi), %esi
	movzbl	-3(%rbx), %ecx
	andl	%r13d, %ecx
	movl	%esi, (%rdx,%rcx,4)
	leal	(%r10,%rdi), %ecx
	movzbl	-2(%rbx), %esi
	andl	%r13d, %esi
	movl	%ecx, (%rdx,%rsi,4)
	leal	(%r9,%rdi), %ecx
	movzbl	-1(%rbx), %esi
	andl	%r13d, %esi
	movl	%ecx, (%rdx,%rsi,4)
	leal	(%r15,%rdi), %ecx
	movzbl	(%rbx), %esi
	andl	%r13d, %esi
	movl	%ecx, (%rdx,%rsi,4)
	addq	$-4, %rdi
	addq	$4, %rbx
	cmpq	%rdi, %r12
	jne	LBB0_32
## %bb.33:
	negq	%rdi
	testq	%r8, %r8
	je	LBB0_37
LBB0_35:
	addq	%rdi, %rax
	notl	%edi
	addl	%r14d, %edi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_36:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax,%rsi), %ecx
	andl	%r13d, %ecx
	movl	%edi, (%rdx,%rcx,4)
	incq	%rsi
	decl	%edi
	cmpq	%rsi, %r8
	jne	LBB0_36
LBB0_37:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_COLLATION_OID,8,3      ## @DEFAULT_COLLATION_OID
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ## @ERRCODE_FEATURE_NOT_SUPPORTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nondeterministic collations are not supported for substring searches"

	.comm	_PG_UTF8,8,3                    ## @PG_UTF8
	.no_dead_strip	_text_position_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function text_position_setup
_text_position_setup:                   ; @text_position_setup
	.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
	mov	x20, x3
	mov	x24, x2
	mov	x22, x1
	mov	x23, x0
	bl	_VARSIZE_ANY_EXHDR
	mov	x21, x0
	mov	x0, x22
	bl	_VARSIZE_ANY_EXHDR
	mov	x19, x0
	mov	x0, x24
	bl	_check_collation_set
	mov	x0, x24
	bl	_lc_collate_is_c
	cbnz	w0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _DEFAULT_COLLATION_OID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_COLLATION_OID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x24
	b.eq	LBB0_5
; %bb.2:
	mov	x0, x24
	bl	_pg_newlocale_from_collation
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w8, [x0]
	cbnz	w8, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
Lloh6:
	adrp	x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_errcode
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_5:
	cmp	w21, #0
	cset	w0, gt
	bl	_Assert
	cmp	w19, #0
	cset	w0, gt
	bl	_Assert
	bl	_pg_database_encoding_max_length
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.6:
	str	xzr, [x20]
	b	LBB0_10
LBB0_7:
	bl	_GetDatabaseEncoding
Lloh11:
	adrp	x8, _PG_UTF8@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PG_UTF8@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x8]
	mov	w8, #1
	str	w8, [x20]
	cmp	x0, x9
	b.ne	LBB0_9
; %bb.8:
	str	wzr, [x20, #4]
	b	LBB0_10
LBB0_9:
	str	w8, [x20, #4]
LBB0_10:
	mov	x0, x23
	bl	_VARDATA_ANY
	str	x0, [x20, #48]
	mov	x0, x22
	bl	_VARDATA_ANY
	str	x0, [x20, #8]
	stp	w21, w19, [x20, #16]
	ldr	x8, [x20, #48]
	stp	x8, xzr, [x20, #56]
	str	xzr, [x20, #40]
	subs	w8, w21, w19
	b.lt	LBB0_32
; %bb.11:
	cmp	w19, #2
	b.lt	LBB0_32
; %bb.12:
	cmp	w8, #16
	b.ge	LBB0_14
; %bb.13:
	mov	w8, #3
	b	LBB0_23
LBB0_14:
	cmp	w8, #64
	b.hs	LBB0_16
; %bb.15:
	mov	w8, #7
	b	LBB0_23
LBB0_16:
	cmp	w8, #128
	b.hs	LBB0_18
; %bb.17:
	mov	w8, #15
	b	LBB0_23
LBB0_18:
	cmp	w8, #512
	b.hs	LBB0_20
; %bb.19:
	mov	w8, #31
	b	LBB0_23
LBB0_20:
	cmp	w8, #2048
	b.hs	LBB0_22
; %bb.21:
	mov	w8, #63
	b	LBB0_23
LBB0_22:
	mov	w9, #255
	mov	w10, #127
	cmp	w8, #1, lsl #12                 ; =4096
	csel	w8, w10, w9, lo
LBB0_23:
	str	w8, [x20, #24]
	ldr	x9, [x20, #32]
	cmp	w8, #15
	b.hs	LBB0_25
; %bb.24:
	mov	x10, #0
	b	LBB0_28
LBB0_25:
	add	w11, w8, #1
	and	x10, x11, #0x1f0
	dup.4s	v0, w19
	add	x12, x9, #32
	mov	x13, x10
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x12, #-32]
	stp	q0, q0, [x12], #64
	subs	x13, x13, #16
	b.ne	LBB0_26
; %bb.27:
	cmp	x10, x11
	b.eq	LBB0_30
LBB0_28:
	add	x11, x9, x10, lsl #2
	mov	w12, w8
	sub	x10, x12, x10
	add	x10, x10, #1
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	str	w19, [x11], #4
	subs	x10, x10, #1
	b.ne	LBB0_29
LBB0_30:
	sub	w10, w19, #1
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x0], #1
	and	x11, x8, x11
	str	w10, [x9, x11, lsl #2]
	subs	x10, x10, #1
	b.ne	LBB0_31
LBB0_32:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_COLLATION_OID,8,3      ; @DEFAULT_COLLATION_OID
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ; @ERRCODE_FEATURE_NOT_SUPPORTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nondeterministic collations are not supported for substring searches"

	.comm	_PG_UTF8,8,3                    ; @PG_UTF8
	.no_dead_strip	_text_position_setup
.subsections_via_symbols
