	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getExtensionMembership         ## -- Begin function getExtensionMembership
	.p2align	4, 0x90
_getExtensionMembership:                ## @getExtensionMembership
	.cfi_startproc
## %bb.0:
	testl	%edx, %edx
	je	LBB0_10
## %bb.1:
	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	%rdi, %r14
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_createPQExpBuffer
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_appendPQExpBufferStr
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %esi
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ExecuteSqlQuery
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PQntuples
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PQfnumber
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PQfnumber
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_PQfnumber
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leal	(,%r14,8), %eax
	leal	(%rax,%rax,2), %edi
	callq	_pg_malloc
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_9
## %bb.2:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_findExtensionByOid
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movslq	%ecx, %rcx
	leaq	(%rcx,%rcx,2), %rax
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, 8(%rdx,%rax,8)
	movq	%r14, 16(%rdx,%rax,8)
	movq	%r13, (%rdx,%rax,8)
	incl	%ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r12d
	cmpl	%r12d, -96(%rbp)                ## 4-byte Folded Reload
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_atooid
	movq	%rax, %r14
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_atooid
	movq	%rax, %r15
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_atooid
	movq	%rax, %rbx
	testq	%r13, %r13
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rbx, (%r13)
	jne	LBB0_5
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	callq	_pg_log_warning
	xorl	%r13d, %r13d
	jmp	LBB0_8
LBB0_9:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_PQclear
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_setExtensionMembership
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_destroyPQExpBuffer             ## TAILCALL
LBB0_10:
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SELECT classid, objid, refobjid FROM pg_depend WHERE refclassid = 'pg_extension'::regclass AND deptype = 'e' ORDER BY 3"

	.comm	_PGRES_TUPLES_OK,4,2            ## @PGRES_TUPLES_OK
L_.str.1:                               ## @.str.1
	.asciz	"classid"

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

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

L_.str.4:                               ## @.str.4
	.asciz	"could not find referenced extension %u"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getExtensionMembership         ; -- Begin function getExtensionMembership
	.p2align	2
_getExtensionMembership:                ; @getExtensionMembership
	.cfi_startproc
; %bb.0:
	cbz	w2, LBB0_9
; %bb.1:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_remember_state
	mov	x19, x0
	bl	_createPQExpBuffer
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_appendPQExpBufferStr
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _PGRES_TUPLES_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PGRES_TUPLES_OK@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ExecuteSqlQuery
	mov	x20, x0
	bl	_PQntuples
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_PQfnumber
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_PQfnumber
	mov	x23, x0
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_PQfnumber
	mov	x25, x0
	add	w8, w21, w21, lsl #1
	lsl	w0, w8, #3
	bl	_pg_malloc
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	cmp	w21, #1
	b.lt	LBB0_10
; %bb.2:
	mov	w26, #0
	mov	w27, #0
	mov	x19, #0
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_findExtensionByOid
	mov	x19, x0
	cbz	x0, LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	mov	w9, #24
	smaddl	x8, w26, w9, x8
	stp	x24, x28, [x8, #8]
	str	x19, [x8]
	add	w26, w26, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w27, w27, #1
	cmp	w21, w27
	b.eq	LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x27
	ldr	w2, [sp, #28]                   ; 4-byte Folded Reload
	bl	_PQgetvalue
	bl	_atooid
	mov	x28, x0
	mov	x0, x20
	mov	x1, x27
	mov	x2, x23
	bl	_PQgetvalue
	bl	_atooid
	mov	x24, x0
	mov	x0, x20
	mov	x1, x27
	mov	x2, x25
	bl	_PQgetvalue
	bl	_atooid
	mov	x22, x0
	cbz	x19, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19]
	cmp	x8, x22
	b.ne	LBB0_3
	b	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x22
	bl	_pg_log_warning
	b	LBB0_5
LBB0_9:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	.cfi_same_value w25
	.cfi_same_value w26
	.cfi_same_value w27
	.cfi_same_value w28
	ret
LBB0_10:
	.cfi_restore_state
	mov	w26, #0
LBB0_11:
	mov	x0, x20
	bl	_PQclear
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x26
	bl	_setExtensionMembership
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_destroyPQExpBuffer
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SELECT classid, objid, refobjid FROM pg_depend WHERE refclassid = 'pg_extension'::regclass AND deptype = 'e' ORDER BY 3"

	.comm	_PGRES_TUPLES_OK,4,2            ; @PGRES_TUPLES_OK
l_.str.1:                               ; @.str.1
	.asciz	"classid"

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

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

l_.str.4:                               ; @.str.4
	.asciz	"could not find referenced extension %u"

.subsections_via_symbols
