	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_set_regex_collation         ## -- Begin function pg_set_regex_collation
	.p2align	4, 0x90
_pg_set_regex_collation:                ## @pg_set_regex_collation
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_lc_ctype_is_c
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_PG_REGEX_LOCALE_C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_pg_regex_strategy@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_pg_regex_locale@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_C_COLLATION_OID@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_18
LBB0_2:
	movq	_DEFAULT_COLLATION_OID@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_pg_regex_locale@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	jmp	LBB0_10
LBB0_4:
	movq	%rbx, %rdi
	callq	_OidIsValid
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_pg_newlocale_from_collation
	movq	_pg_regex_locale@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_8
	jmp	LBB0_10
LBB0_6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_INDETERMINATE_COLLATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	leaq	L_.str.1(%rip), %rdi
	callq	_errhint
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	_pg_regex_locale@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_10
LBB0_8:
	cmpl	$0, 8(%rax)
	jne	LBB0_10
## %bb.9:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_10:
	xorl	%eax, %eax
	callq	_GetDatabaseEncoding
	movq	_PG_UTF8@GOTPCREL(%rip), %rdx
	movq	_pg_regex_locale@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rdx), %rax
	jne	LBB0_14
## %bb.11:
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.12:
	movq	_PG_REGEX_LOCALE_WIDE_L@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_14:
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.15:
	movq	_PG_REGEX_LOCALE_1BYTE_L@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_13:
	movq	_PG_REGEX_LOCALE_WIDE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_16:
	movq	_PG_REGEX_LOCALE_1BYTE@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	movq	_pg_regex_strategy@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_18:
	movq	_pg_regex_collation@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PG_REGEX_LOCALE_C,4,2          ## @PG_REGEX_LOCALE_C
	.comm	_pg_regex_strategy,4,2          ## @pg_regex_strategy
	.comm	_pg_regex_locale,8,3            ## @pg_regex_locale
	.comm	_C_COLLATION_OID,8,3            ## @C_COLLATION_OID
	.comm	_pg_regex_collation,8,3         ## @pg_regex_collation
	.comm	_DEFAULT_COLLATION_OID,8,3      ## @DEFAULT_COLLATION_OID
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INDETERMINATE_COLLATION,4,2 ## @ERRCODE_INDETERMINATE_COLLATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not determine which collation to use for regular expression"

L_.str.1:                               ## @.str.1
	.asciz	"Use the COLLATE clause to set the collation explicitly."

	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ## @ERRCODE_FEATURE_NOT_SUPPORTED
L_.str.2:                               ## @.str.2
	.asciz	"nondeterministic collations are not supported for regular expressions"

	.comm	_PG_UTF8,8,3                    ## @PG_UTF8
	.comm	_PG_REGEX_LOCALE_WIDE_L,4,2     ## @PG_REGEX_LOCALE_WIDE_L
	.comm	_PG_REGEX_LOCALE_WIDE,4,2       ## @PG_REGEX_LOCALE_WIDE
	.comm	_PG_REGEX_LOCALE_1BYTE_L,4,2    ## @PG_REGEX_LOCALE_1BYTE_L
	.comm	_PG_REGEX_LOCALE_1BYTE,4,2      ## @PG_REGEX_LOCALE_1BYTE
	.comm	_COLLPROVIDER_ICU,8,3           ## @COLLPROVIDER_ICU
	.comm	_PG_REGEX_LOCALE_ICU,4,2        ## @PG_REGEX_LOCALE_ICU
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_set_regex_collation         ; -- Begin function pg_set_regex_collation
	.p2align	2
_pg_set_regex_collation:                ; @pg_set_regex_collation
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_lc_ctype_is_c
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PG_REGEX_LOCALE_C@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PG_REGEX_LOCALE_C@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _pg_regex_strategy@GOTPAGE
Lloh4:
	ldr	x9, [x9, _pg_regex_strategy@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
Lloh6:
	adrp	x8, _pg_regex_locale@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pg_regex_locale@GOTPAGEOFF]
Lloh8:
	str	xzr, [x8]
Lloh9:
	adrp	x8, _C_COLLATION_OID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _C_COLLATION_OID@GOTPAGEOFF]
Lloh11:
	ldr	x19, [x8]
	b	LBB0_17
LBB0_2:
Lloh12:
	adrp	x8, _DEFAULT_COLLATION_OID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DEFAULT_COLLATION_OID@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _pg_regex_locale@GOTPAGE
Lloh16:
	ldr	x8, [x8, _pg_regex_locale@GOTPAGEOFF]
Lloh17:
	str	xzr, [x8]
	b	LBB0_9
LBB0_4:
	mov	x0, x19
	bl	_OidIsValid
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_pg_newlocale_from_collation
Lloh18:
	adrp	x8, _pg_regex_locale@GOTPAGE
Lloh19:
	ldr	x8, [x8, _pg_regex_locale@GOTPAGEOFF]
Lloh20:
	str	x0, [x8]
	cbnz	x0, LBB0_7
	b	LBB0_9
LBB0_6:
Lloh21:
	adrp	x8, _ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w20, [x8]
Lloh24:
	adrp	x8, _ERRCODE_INDETERMINATE_COLLATION@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ERRCODE_INDETERMINATE_COLLATION@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_errcode
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
Lloh31:
	adrp	x8, _pg_regex_locale@GOTPAGE
Lloh32:
	ldr	x8, [x8, _pg_regex_locale@GOTPAGEOFF]
Lloh33:
	ldr	x0, [x8]
	cbz	x0, LBB0_9
LBB0_7:
	ldr	w8, [x0, #8]
	cbnz	w8, LBB0_9
; %bb.8:
Lloh34:
	adrp	x8, _ERROR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh36:
	ldr	w20, [x8]
Lloh37:
	adrp	x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	bl	_errcode
Lloh40:
	adrp	x0, l_.str.2@PAGE
Lloh41:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_9:
	bl	_GetDatabaseEncoding
Lloh42:
	adrp	x8, _PG_UTF8@GOTPAGE
Lloh43:
	ldr	x8, [x8, _PG_UTF8@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x8]
Lloh45:
	adrp	x8, _pg_regex_locale@GOTPAGE
Lloh46:
	ldr	x8, [x8, _pg_regex_locale@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	cmp	x0, x9
	b.ne	LBB0_12
; %bb.10:
	cbz	x8, LBB0_14
; %bb.11:
Lloh48:
	adrp	x8, _PG_REGEX_LOCALE_WIDE_L@GOTPAGE
Lloh49:
	ldr	x8, [x8, _PG_REGEX_LOCALE_WIDE_L@GOTPAGEOFF]
	b	LBB0_16
LBB0_12:
	cbz	x8, LBB0_15
; %bb.13:
Lloh50:
	adrp	x8, _PG_REGEX_LOCALE_1BYTE_L@GOTPAGE
Lloh51:
	ldr	x8, [x8, _PG_REGEX_LOCALE_1BYTE_L@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
Lloh52:
	adrp	x8, _PG_REGEX_LOCALE_WIDE@GOTPAGE
Lloh53:
	ldr	x8, [x8, _PG_REGEX_LOCALE_WIDE@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh54:
	adrp	x8, _PG_REGEX_LOCALE_1BYTE@GOTPAGE
Lloh55:
	ldr	x8, [x8, _PG_REGEX_LOCALE_1BYTE@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
Lloh56:
	adrp	x9, _pg_regex_strategy@GOTPAGE
Lloh57:
	ldr	x9, [x9, _pg_regex_strategy@GOTPAGEOFF]
Lloh58:
	str	w8, [x9]
LBB0_17:
Lloh59:
	adrp	x8, _pg_regex_collation@GOTPAGE
Lloh60:
	ldr	x8, [x8, _pg_regex_collation@GOTPAGEOFF]
Lloh61:
	str	x19, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotStr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotStr	Lloh59, Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_PG_REGEX_LOCALE_C,4,2          ; @PG_REGEX_LOCALE_C
	.comm	_pg_regex_strategy,4,2          ; @pg_regex_strategy
	.comm	_pg_regex_locale,8,3            ; @pg_regex_locale
	.comm	_C_COLLATION_OID,8,3            ; @C_COLLATION_OID
	.comm	_pg_regex_collation,8,3         ; @pg_regex_collation
	.comm	_DEFAULT_COLLATION_OID,8,3      ; @DEFAULT_COLLATION_OID
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INDETERMINATE_COLLATION,4,2 ; @ERRCODE_INDETERMINATE_COLLATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not determine which collation to use for regular expression"

l_.str.1:                               ; @.str.1
	.asciz	"Use the COLLATE clause to set the collation explicitly."

	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ; @ERRCODE_FEATURE_NOT_SUPPORTED
l_.str.2:                               ; @.str.2
	.asciz	"nondeterministic collations are not supported for regular expressions"

	.comm	_PG_UTF8,8,3                    ; @PG_UTF8
	.comm	_PG_REGEX_LOCALE_WIDE_L,4,2     ; @PG_REGEX_LOCALE_WIDE_L
	.comm	_PG_REGEX_LOCALE_WIDE,4,2       ; @PG_REGEX_LOCALE_WIDE
	.comm	_PG_REGEX_LOCALE_1BYTE_L,4,2    ; @PG_REGEX_LOCALE_1BYTE_L
	.comm	_PG_REGEX_LOCALE_1BYTE,4,2      ; @PG_REGEX_LOCALE_1BYTE
	.comm	_COLLPROVIDER_ICU,8,3           ; @COLLPROVIDER_ICU
	.comm	_PG_REGEX_LOCALE_ICU,4,2        ; @PG_REGEX_LOCALE_ICU
.subsections_via_symbols
