	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_varstr_cmp                     ## -- Begin function varstr_cmp
	.p2align	4, 0x90
_varstr_cmp:                            ## @varstr_cmp
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%r8, %rdi
	callq	_check_collation_set
	movq	%rbx, %rdi
	callq	_lc_collate_is_c
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	%r12d, %edi
	movl	%r14d, %esi
	callq	_Min
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_memcmp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_24
## %bb.2:
	xorl	%ebx, %ebx
	cmpl	%r14d, %r12d
	je	LBB0_24
## %bb.3:
	setge	%al
	movzbl	%al, %eax
	leal	(%rax,%rax), %ebx
	decl	%ebx
	jmp	LBB0_24
LBB0_4:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rsp, %r13
	movq	_TEXTBUFLEN@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movl	(%r15), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	_DEFAULT_COLLATION_OID@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_6
## %bb.5:
	xorl	%ebx, %ebx
	cmpl	%r14d, %r12d
	je	LBB0_8
	jmp	LBB0_9
LBB0_6:
	movq	%rbx, %rdi
	callq	_pg_newlocale_from_collation
	movq	%rax, %rbx
	cmpl	%r14d, %r12d
	jne	LBB0_9
LBB0_8:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_23
LBB0_9:
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movl	(%r15), %eax
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	cmpl	%r12d, %eax
	jg	LBB0_11
## %bb.10:
	leal	1(%r12), %edi
	callq	_palloc
	movq	%rax, %r13
	movl	(%r15), %eax
LBB0_11:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	cmpl	%r14d, %eax
	jg	LBB0_13
## %bb.12:
	leal	1(%r14), %edi
	callq	_palloc
	movq	%rax, %r15
LBB0_13:
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_memcpy
	movslq	%r12d, %rax
	movb	$0, (%r13,%rax)
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_memcpy
	movslq	%r14d, %rax
	movb	$0, (%r15,%rax)
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.14:
	movq	(%rbx), %rdx
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
	cmpq	$0, 8(%rbx)
	jne	LBB0_17
## %bb.15:
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_16:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_strcoll
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
LBB0_17:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_strcmp
	movl	%eax, %ebx
LBB0_18:
	cmpq	-80(%rbp), %r13                 ## 8-byte Folded Reload
	je	LBB0_20
## %bb.19:
	movq	%r13, %rdi
	callq	_pfree
LBB0_20:
	cmpq	-72(%rbp), %r15                 ## 8-byte Folded Reload
	je	LBB0_22
## %bb.21:
	movq	%r15, %rdi
	callq	_pfree
LBB0_22:
	movq	-88(%rbp), %rsp                 ## 8-byte Reload
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.25:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	%r13, %rsp
	xorl	%ebx, %ebx
	jmp	LBB0_24
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TEXTBUFLEN,4,2                 ## @TEXTBUFLEN
	.comm	_DEFAULT_COLLATION_OID,8,3      ## @DEFAULT_COLLATION_OID
	.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	_COLLPROVIDER_LIBC,8,3          ## @COLLPROVIDER_LIBC
	.comm	_CP_UTF8,4,2                    ## @CP_UTF8
	.comm	_PG_UTF8,8,3                    ## @PG_UTF8
	.comm	_U_ZERO_ERROR,4,2               ## @U_ZERO_ERROR
	.comm	_errno,8,3                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_varstr_cmp                     ; -- Begin function varstr_cmp
	.p2align	2
_varstr_cmp:                            ; @varstr_cmp
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	mov	x23, x4
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	mov	x0, x4
	bl	_check_collation_set
	mov	x0, x23
	bl	_lc_collate_is_c
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_Min
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	bl	_memcmp
	mov	w8, #-1
	cmp	w20, w19
	cneg	w8, w8, ge
	csel	w8, wzr, w8, eq
	cmp	w0, #0
	csel	w19, w0, w8, ne
	b	LBB0_21
LBB0_2:
	mov	x26, sp
Lloh3:
	adrp	x25, _TEXTBUFLEN@GOTPAGE
Lloh4:
	ldr	x25, [x25, _TEXTBUFLEN@GOTPAGEOFF]
	ldr	w8, [x25]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x27, x9, x8
	mov	sp, x27
	ldr	w8, [x25]
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x28, x9, x8
	mov	sp, x28
Lloh9:
	adrp	x8, _DEFAULT_COLLATION_OID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DEFAULT_COLLATION_OID@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, x23
	b.ne	LBB0_4
; %bb.3:
	mov	x23, #0
	cmp	w20, w19
	b.eq	LBB0_5
	b	LBB0_6
LBB0_4:
	mov	x0, x23
	bl	_pg_newlocale_from_collation
	mov	x23, x0
	cmp	w20, w19
	b.ne	LBB0_6
LBB0_5:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_memcmp
	cbz	w0, LBB0_23
LBB0_6:
	ldr	w8, [x25]
	cmp	w8, w20
	b.le	LBB0_8
; %bb.7:
	mov	x24, x27
	b	LBB0_9
LBB0_8:
	add	w0, w20, #1
	bl	_palloc
	mov	x24, x0
	ldr	w8, [x25]
LBB0_9:
	mov	x25, x28
	cmp	w8, w19
	b.gt	LBB0_11
; %bb.10:
	add	w0, w19, #1
	bl	_palloc
	mov	x25, x0
LBB0_11:
	mov	x0, x24
	mov	x1, x22
	mov	x2, x20
	bl	_memcpy
	strb	wzr, [x24, w20, sxtw]
	mov	x0, x25
	mov	x1, x21
	mov	x2, x19
	bl	_memcpy
	strb	wzr, [x25, w19, sxtw]
	cbz	x23, LBB0_14
; %bb.12:
	ldr	x2, [x23]
Lloh12:
	adrp	x8, _ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	ldr	x8, [x23, #8]
	cbnz	x8, LBB0_15
; %bb.13:
	mov	w19, #0
	b	LBB0_16
LBB0_14:
	mov	x0, x24
	mov	x1, x25
	bl	_strcoll
	mov	x19, x0
	cbnz	w0, LBB0_16
LBB0_15:
	mov	x0, x24
	mov	x1, x25
	bl	_strcmp
	mov	x19, x0
LBB0_16:
	cmp	x24, x27
	b.eq	LBB0_18
; %bb.17:
	mov	x0, x24
	bl	_pfree
LBB0_18:
	cmp	x25, x28
	b.eq	LBB0_20
; %bb.19:
	mov	x0, x25
	bl	_pfree
LBB0_20:
	mov	sp, x26
LBB0_21:
	ldur	x8, [x29, #-88]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.22:
	mov	x0, x19
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_23:
	mov	sp, x26
	mov	w19, #0
	b	LBB0_21
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_TEXTBUFLEN,4,2                 ; @TEXTBUFLEN
	.comm	_DEFAULT_COLLATION_OID,8,3      ; @DEFAULT_COLLATION_OID
	.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	_COLLPROVIDER_LIBC,8,3          ; @COLLPROVIDER_LIBC
	.comm	_CP_UTF8,4,2                    ; @CP_UTF8
	.comm	_PG_UTF8,8,3                    ; @PG_UTF8
	.comm	_U_ZERO_ERROR,4,2               ; @U_ZERO_ERROR
	.comm	_errno,8,3                      ; @errno
.subsections_via_symbols
