	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lookup_collation_cache
_lookup_collation_cache:                ## @lookup_collation_cache
	.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	%esi, %r14d
	movq	%rdi, %rbx
	movq	%rdi, -56(%rbp)
	callq	_OidIsValid
	movl	%eax, %edi
	callq	_Assert
	movq	_DEFAULT_COLLATION_OID@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%rbx, (%rax)
	setne	%dil
	callq	_Assert
	movq	_collation_cache@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movabsq	$103079215112, %rax             ## imm = 0x1800000008
	movq	%rax, -48(%rbp)
	movq	_HASH_ELEM@GOTPCREL(%rip), %rax
	movq	_HASH_BLOBS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	L_.str(%rip), %rdi
	movl	$100, %esi
	movq	%r15, %rdx
	callq	_hash_create
	movq	%rax, %rdi
	movq	%rax, (%rbx)
LBB0_2:
	movq	_HASH_ENTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rcx
	callq	_hash_search
	movq	%rax, %rbx
	cmpl	$0, -48(%rbp)
	jne	LBB0_4
## %bb.3:
	movl	$0, (%rbx)
	movq	$0, 16(%rbx)
LBB0_4:
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.5:
	cmpl	$0, (%rbx)
	jne	LBB0_13
## %bb.6:
	movq	_COLLOID@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-56(%rbp), %rdi
	callq	_ObjectIdGetDatum
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_SearchSysCache1
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
LBB0_8:
	movl	%r14d, %edi
	callq	_GETSTRUCT
	movq	%rax, %r15
	movl	4(%rax), %edi
	callq	_NameStr
	movq	%rax, %r12
	movl	(%r15), %edi
	callq	_NameStr
	movq	%rax, %r15
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	movl	$1, %r13d
	movl	$1, %ecx
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
LBB0_10:
	movl	%ecx, 4(%rbx)
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	xorl	%r13d, %r13d
	testq	%rax, %rax
	sete	%r13b
LBB0_12:
	movl	%r13d, 8(%rbx)
	movl	$1, (%rbx)
	movl	%r14d, %edi
	callq	_ReleaseSysCache
LBB0_13:
	movq	%rbx, %rax
	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	_collation_cache,8,3            ## @collation_cache
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Collation cache"

	.comm	_HASH_ELEM,4,2                  ## @HASH_ELEM
	.comm	_HASH_BLOBS,4,2                 ## @HASH_BLOBS
	.comm	_HASH_ENTER,4,2                 ## @HASH_ENTER
	.comm	_COLLOID,4,2                    ## @COLLOID
	.comm	_ERROR,4,2                      ## @ERROR
L_.str.1:                               ## @.str.1
	.asciz	"cache lookup failed for collation %u"

L_.str.2:                               ## @.str.2
	.asciz	"C"

L_.str.3:                               ## @.str.3
	.asciz	"POSIX"

	.no_dead_strip	_lookup_collation_cache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function lookup_collation_cache
lCPI0_0:
	.long	8                               ; 0x8
	.long	24                              ; 0x18
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_lookup_collation_cache:                ; @lookup_collation_cache
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	str	x0, [sp, #8]
	bl	_OidIsValid
	bl	_Assert
Lloh0:
	adrp	x8, _DEFAULT_COLLATION_OID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_COLLATION_OID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x19
	cset	w0, ne
	bl	_Assert
Lloh3:
	adrp	x19, _collation_cache@GOTPAGE
Lloh4:
	ldr	x19, [x19, _collation_cache@GOTPAGEOFF]
	ldr	x0, [x19]
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
Lloh7:
	adrp	x8, _HASH_ELEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HASH_ELEM@GOTPAGEOFF]
	str	d0, [sp]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _HASH_BLOBS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HASH_BLOBS@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, sp
	mov	w1, #100
	bl	_hash_create
	str	x0, [x19]
LBB0_2:
Lloh15:
	adrp	x8, _HASH_ENTER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HASH_ENTER@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x3, sp
	bl	_hash_search
	mov	x19, x0
	ldr	w8, [sp]
	cbnz	w8, LBB0_4
; %bb.3:
	str	wzr, [x19]
	str	xzr, [x19, #16]
LBB0_4:
	cbz	w20, LBB0_15
; %bb.5:
	ldr	w8, [x19]
	cbnz	w8, LBB0_15
; %bb.6:
Lloh18:
	adrp	x8, _COLLOID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _COLLOID@GOTPAGEOFF]
Lloh20:
	ldr	w20, [x8]
	ldr	x0, [sp, #8]
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x20
	bl	_SearchSysCache1
	mov	x20, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_8
; %bb.7:
Lloh21:
	adrp	x8, _ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	x2, [sp, #8]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_8:
	mov	x0, x20
	bl	_GETSTRUCT
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_NameStr
	mov	x22, x0
	ldr	w0, [x21]
	bl	_NameStr
	mov	x21, x0
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.9:
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cmp	x0, #0
	cset	w8, eq
	b	LBB0_11
LBB0_10:
	mov	w8, #1
LBB0_11:
	str	w8, [x19, #4]
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	mov	w22, #1
	cbz	x0, LBB0_13
; %bb.12:
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cmp	x0, #0
	cset	w8, eq
	b	LBB0_14
LBB0_13:
	mov	w8, #1
LBB0_14:
	str	w8, [x19, #8]
	str	w22, [x19]
	mov	x0, x20
	bl	_ReleaseSysCache
LBB0_15:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdrp	Lloh5, Lloh7
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_COLLATION_OID,8,3      ; @DEFAULT_COLLATION_OID
	.comm	_collation_cache,8,3            ; @collation_cache
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Collation cache"

	.comm	_HASH_ELEM,4,2                  ; @HASH_ELEM
	.comm	_HASH_BLOBS,4,2                 ; @HASH_BLOBS
	.comm	_HASH_ENTER,4,2                 ; @HASH_ENTER
	.comm	_COLLOID,4,2                    ; @COLLOID
	.comm	_ERROR,4,2                      ; @ERROR
l_.str.1:                               ; @.str.1
	.asciz	"cache lookup failed for collation %u"

l_.str.2:                               ; @.str.2
	.asciz	"C"

l_.str.3:                               ; @.str.3
	.asciz	"POSIX"

	.no_dead_strip	_lookup_collation_cache
.subsections_via_symbols
