	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lookup_collation
_lookup_collation:                      ## @lookup_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	%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	%edx, %ebx
	movl	%esi, %r12d
	movq	_COLLNAMEENCNSP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_Anum_pg_collation_oid@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_PointerGetDatum
	movl	%eax, %r14d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_Int32GetDatum
	movl	%eax, %r15d
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movl	%r12d, %edi
	callq	_ObjectIdGetDatum
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	callq	_GetSysCacheOid3
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_OidIsValid
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movq	_COLLNAMEENCNSP@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_PointerGetDatum
	movl	%eax, %r15d
	movl	$-1, %edi
	callq	_Int32GetDatum
	movl	%eax, %ebx
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_ObjectIdGetDatum
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_SearchSysCache3
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%r15d, %edi
	callq	_GETSTRUCT
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_COLLPROVIDER_ICU@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movl	%r13d, %edi
	callq	_is_encoding_supported_by_icu
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_InvalidOid@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
LBB0_6:
	addq	$8, %rbx
LBB0_7:
	movl	(%rbx), %ebx
	movl	%r15d, %edi
	callq	_ReleaseSysCache
	jmp	LBB0_8
LBB0_2:
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COLLNAMEENCNSP,4,2             ## @COLLNAMEENCNSP
	.comm	_Anum_pg_collation_oid,4,2      ## @Anum_pg_collation_oid
	.comm	_InvalidOid,4,2                 ## @InvalidOid
	.comm	_COLLPROVIDER_ICU,8,3           ## @COLLPROVIDER_ICU
	.no_dead_strip	_lookup_collation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lookup_collation
_lookup_collation:                      ; @lookup_collation
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x26, _COLLNAMEENCNSP@GOTPAGE
Lloh1:
	ldr	x26, [x26, _COLLNAMEENCNSP@GOTPAGEOFF]
	ldr	w22, [x26]
Lloh2:
	adrp	x8, _Anum_pg_collation_oid@GOTPAGE
Lloh3:
	ldr	x8, [x8, _Anum_pg_collation_oid@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x8]
	bl	_PointerGetDatum
	mov	x24, x0
	mov	x0, x19
	bl	_Int32GetDatum
	mov	x25, x0
	mov	x0, x20
	bl	_ObjectIdGetDatum
	mov	x4, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	mov	x3, x25
	bl	_GetSysCacheOid3
	mov	x22, x0
	bl	_OidIsValid
	cbnz	x0, LBB0_7
; %bb.1:
	ldr	w22, [x26]
	mov	x0, x21
	bl	_PointerGetDatum
	mov	x21, x0
	mov	w0, #-1
	bl	_Int32GetDatum
	mov	x23, x0
	mov	x0, x20
	bl	_ObjectIdGetDatum
	mov	x3, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_SearchSysCache3
	mov	x20, x0
	bl	_HeapTupleIsValid
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_GETSTRUCT
	mov	x21, x0
	ldr	x8, [x0]
Lloh5:
	adrp	x9, _COLLPROVIDER_ICU@GOTPAGE
Lloh6:
	ldr	x9, [x9, _COLLPROVIDER_ICU@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_is_encoding_supported_by_icu
	add	x8, x21, #8
Lloh8:
	adrp	x9, _InvalidOid@GOTPAGE
Lloh9:
	ldr	x9, [x9, _InvalidOid@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh11:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
	b	LBB0_7
LBB0_5:
	add	x8, x21, #8
LBB0_6:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_ReleaseSysCache
LBB0_7:
	mov	x0, x22
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_COLLNAMEENCNSP,4,2             ; @COLLNAMEENCNSP
	.comm	_Anum_pg_collation_oid,4,2      ; @Anum_pg_collation_oid
	.comm	_InvalidOid,4,2                 ; @InvalidOid
	.comm	_COLLPROVIDER_ICU,8,3           ; @COLLPROVIDER_ICU
	.no_dead_strip	_lookup_collation
.subsections_via_symbols
