	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function varstrfastcmp_locale
_varstrfastcmp_locale:                  ## @varstrfastcmp_locale
	.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
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	8(%r8), %r12
	cmpl	%ecx, %esi
	jne	LBB0_3
## %bb.1:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	(%r12), %rax
	movq	_BPCHAROID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_bpchartruelen
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_bpchartruelen
	movl	%eax, %r15d
LBB0_5:
	cmpl	8(%r12), %ebx
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	jge	LBB0_6
## %bb.7:
	cmpl	24(%r12), %r15d
	jge	LBB0_8
LBB0_9:
	cmpl	40(%r12), %ebx
	je	LBB0_10
	jmp	LBB0_12
LBB0_6:
	movq	16(%r12), %rdi
	callq	_pfree
	movq	%r14, %r13
	leal	1(%rbx), %r14d
	movl	8(%r12), %edi
	addl	%edi, %edi
	movq	_MaxAllocSize@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_Min
	movl	%r14d, %edi
	movq	%r13, %r14
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_Max
	movl	%eax, 8(%r12)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_MemoryContextAlloc
	movq	%rax, 16(%r12)
	cmpl	24(%r12), %r15d
	jl	LBB0_9
LBB0_8:
	movq	32(%r12), %rdi
	callq	_pfree
	movq	%r14, %r13
	leal	1(%r15), %r14d
	movl	24(%r12), %edi
	addl	%edi, %edi
	movq	_MaxAllocSize@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_Min
	movl	%r14d, %edi
	movq	%r13, %r14
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_Max
	movl	%eax, 24(%r12)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_MemoryContextAlloc
	movq	%rax, 32(%r12)
	cmpl	40(%r12), %ebx
	jne	LBB0_12
LBB0_10:
	movq	16(%r12), %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_11
LBB0_12:
	movq	16(%r12), %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	16(%r12), %rax
	movslq	%ebx, %rcx
	movb	$0, (%rax,%rcx)
	movl	%ebx, 40(%r12)
	movb	$1, %bl
	cmpl	44(%r12), %r15d
	jne	LBB0_15
LBB0_14:
	movq	32(%r12), %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_15
## %bb.18:
	testb	%bl, %bl
	jne	LBB0_16
## %bb.19:
	cmpl	$0, 48(%r12)
	jne	LBB0_16
## %bb.20:
	movl	52(%r12), %eax
	jmp	LBB0_27
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_27
LBB0_11:
	xorl	%ebx, %ebx
	cmpl	44(%r12), %r15d
	je	LBB0_14
LBB0_15:
	movq	32(%r12), %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movq	32(%r12), %rax
	movslq	%r15d, %rcx
	movb	$0, (%rax,%rcx)
	movl	%r15d, 44(%r12)
LBB0_16:
	movq	56(%r12), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.17:
	movq	(%rax), %rdx
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_22:
	movq	56(%r12), %rax
	testq	%rax, %rax
	je	LBB0_25
## %bb.23:
	cmpq	$0, 8(%rax)
	je	LBB0_24
LBB0_25:
	movq	16(%r12), %rdi
	movq	32(%r12), %rsi
	callq	_strcmp
	jmp	LBB0_26
LBB0_21:
	movq	16(%r12), %rdi
	movq	32(%r12), %rsi
	callq	_strcoll
	testl	%eax, %eax
	jne	LBB0_26
	jmp	LBB0_22
LBB0_24:
	xorl	%eax, %eax
LBB0_26:
	movl	$0, 48(%r12)
	movl	%eax, 52(%r12)
LBB0_27:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BPCHAROID,8,3                  ## @BPCHAROID
	.comm	_MaxAllocSize,4,2               ## @MaxAllocSize
	.comm	_COLLPROVIDER_ICU,8,3           ## @COLLPROVIDER_ICU
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported collprovider: %c"

	.comm	_PG_UTF8,8,3                    ## @PG_UTF8
	.comm	_U_ZERO_ERROR,4,2               ## @U_ZERO_ERROR
	.no_dead_strip	_varstrfastcmp_locale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function varstrfastcmp_locale
_varstrfastcmp_locale:                  ; @varstrfastcmp_locale
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x25, [x4, #8]
	cmp	w1, w3
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_memcmp
	cbz	x0, LBB0_26
LBB0_2:
	ldr	x8, [x25]
Lloh0:
	adrp	x9, _BPCHAROID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BPCHAROID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x22
	mov	x1, x21
	bl	_bpchartruelen
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_bpchartruelen
	mov	x19, x0
LBB0_4:
	ldr	w8, [x25, #8]
	cmp	w21, w8
	b.lt	LBB0_6
; %bb.5:
	ldr	x0, [x25, #16]
	bl	_pfree
	add	w24, w21, #1
	ldr	w8, [x25, #8]
	lsl	w0, w8, #1
Lloh3:
	adrp	x8, _MaxAllocSize@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MaxAllocSize@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_Min
	mov	x1, x0
	mov	x0, x24
	bl	_Max
	mov	x1, x0
	str	w1, [x25, #8]
	ldr	w0, [x23]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_MemoryContextAlloc
	str	x0, [x25, #16]
LBB0_6:
	ldr	w8, [x25, #24]
	cmp	w19, w8
	b.lt	LBB0_8
; %bb.7:
	ldr	x0, [x25, #32]
	bl	_pfree
	add	w24, w19, #1
	ldr	w8, [x25, #24]
	lsl	w0, w8, #1
Lloh6:
	adrp	x8, _MaxAllocSize@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MaxAllocSize@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_Min
	mov	x1, x0
	mov	x0, x24
	bl	_Max
	mov	x1, x0
	str	w1, [x25, #24]
	ldr	w0, [x23]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_MemoryContextAlloc
	str	x0, [x25, #32]
LBB0_8:
	ldr	w8, [x25, #40]
	cmp	w21, w8
	b.ne	LBB0_10
; %bb.9:
	ldr	x0, [x25, #16]
	mov	x1, x22
	mov	x2, x21
	bl	_memcmp
	cbz	x0, LBB0_20
LBB0_10:
	ldr	x0, [x25, #16]
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x25, #16]
	strb	wzr, [x8, w21, sxtw]
	str	w21, [x25, #40]
	mov	w21, #1
LBB0_11:
	ldr	w8, [x25, #44]
	cmp	w19, w8
	b.ne	LBB0_13
; %bb.12:
	ldr	x0, [x25, #32]
	mov	x1, x20
	mov	x2, x19
	bl	_memcmp
	cbz	x0, LBB0_21
LBB0_13:
	ldr	x0, [x25, #32]
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	ldr	x8, [x25, #32]
	strb	wzr, [x8, w19, sxtw]
	str	w19, [x25, #44]
LBB0_14:
	ldr	x8, [x25, #56]
	cbz	x8, LBB0_19
; %bb.15:
	ldr	x2, [x8]
Lloh9:
	adrp	x8, _ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_16:
	ldr	x8, [x25, #56]
	cbz	x8, LBB0_18
; %bb.17:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_24
LBB0_18:
	ldr	x0, [x25, #16]
	ldr	x1, [x25, #32]
	bl	_strcmp
	b	LBB0_25
LBB0_19:
	ldr	x0, [x25, #16]
	ldr	x1, [x25, #32]
	bl	_strcoll
	cbnz	w0, LBB0_25
	b	LBB0_16
LBB0_20:
	mov	w21, #0
	b	LBB0_11
LBB0_21:
	tbnz	w21, #0, LBB0_14
; %bb.22:
	ldr	w8, [x25, #48]
	cbnz	w8, LBB0_14
; %bb.23:
	ldr	w0, [x25, #52]
	b	LBB0_26
LBB0_24:
	mov	w0, #0
LBB0_25:
	stp	wzr, w0, [x25, #48]
LBB0_26:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BPCHAROID,8,3                  ; @BPCHAROID
	.comm	_MaxAllocSize,4,2               ; @MaxAllocSize
	.comm	_COLLPROVIDER_ICU,8,3           ; @COLLPROVIDER_ICU
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported collprovider: %c"

	.comm	_PG_UTF8,8,3                    ; @PG_UTF8
	.comm	_U_ZERO_ERROR,4,2               ; @U_ZERO_ERROR
	.no_dead_strip	_varstrfastcmp_locale
.subsections_via_symbols
