	.file	"extr_pg_constraint.c_get_primary_key_attnos.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"null conkey for constraint %u"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"conkey is not a 1-D smallint array"
	.text
	.p2align 4
	.globl	get_primary_key_attnos
	.type	get_primary_key_attnos, @function
get_primary_key_attnos:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 8[rsp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR InvalidOid[rip]
	mov	DWORD PTR [rdx], eax
	mov	esi, DWORD PTR AccessShareLock[rip]
	mov	edi, DWORD PTR ConstraintRelationId[rip]
	call	table_open@PLT
	mov	edi, ebp
	lea	rbp, 20[rsp]
	mov	r13d, eax
	call	ObjectIdGetDatum@PLT
	mov	ecx, DWORD PTR F_OIDEQ[rip]
	mov	edx, DWORD PTR BTEqualStrategyNumber[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR Anum_pg_constraint_conrelid[rip]
	mov	r8d, eax
	call	ScanKeyInit@PLT
	mov	esi, DWORD PTR ConstraintRelidTypidNameIndexId[rip]
	mov	r9, rbp
	xor	ecx, ecx
	mov	r8d, 1
	mov	edx, 1
	mov	edi, r13d
	call	systable_beginscan@PLT
	mov	r12d, eax
.L2:
	mov	edi, r12d
	call	systable_getnext@PLT
	mov	edi, eax
	mov	ebp, eax
	call	HeapTupleIsValid@PLT
	test	rax, rax
	je	.L25
	mov	edi, ebp
	call	GETSTRUCT@PLT
	mov	rcx, QWORD PTR CONSTRAINT_PRIMARY[rip]
	cmp	QWORD PTR [rax], rcx
	jne	.L2
	cmp	QWORD PTR 16[rax], 0
	je	.L18
	xor	r14d, r14d
	test	ebx, ebx
	jne	.L18
.L13:
	mov	edi, r12d
	call	systable_endscan@PLT
	mov	esi, DWORD PTR AccessShareLock[rip]
	mov	edi, r13d
	call	table_close@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L26
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r14
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	edi, r13d
	call	RelationGetDescr@PLT
	mov	esi, DWORD PTR Anum_pg_constraint_conkey[rip]
	lea	rcx, 16[rsp]
	mov	edi, ebp
	mov	edx, eax
	call	heap_getattr@PLT
	mov	r15d, eax
	mov	eax, DWORD PTR 16[rsp]
	test	eax, eax
	jne	.L27
.L6:
	mov	edi, r15d
	call	DatumGetArrayTypeP@PLT
	mov	rdi, rax
	mov	r14, rax
	call	ARR_DIMS@PLT
	mov	rdi, r14
	mov	r15d, DWORD PTR [rax]
	call	ARR_NDIM@PLT
	test	r15d, r15d
	js	.L10
	cmp	eax, 1
	je	.L7
.L10:
	mov	edi, DWORD PTR ERROR[rip]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	elog@PLT
.L9:
	mov	rdi, r14
	call	ARR_DATA_PTR@PLT
	test	r15d, r15d
	jle	.L17
	mov	rbx, rax
	lea	eax, -1[r15]
	xor	r14d, r14d
	lea	r15, 8[rbx+rax*8]
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, r14
	sub	rsi, QWORD PTR FirstLowInvalidHeapAttributeNumber[rip]
	add	rbx, 8
	call	bms_add_member@PLT
	mov	r14, rax
	cmp	rbx, r15
	jne	.L12
.L11:
	mov	edi, ebp
	call	GETSTRUCT@PLT
	mov	rcx, QWORD PTR 8[rsp]
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR [rcx], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edi, ebp
	call	GETSTRUCT@PLT
	mov	edi, DWORD PTR ERROR[rip]
	lea	rsi, .LC0[rip]
	mov	edx, DWORD PTR 8[rax]
	xor	eax, eax
	call	elog@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, r14
	call	ARR_HASNULL@PLT
	test	rax, rax
	jne	.L10
	mov	rdi, r14
	call	ARR_ELEMTYPE@PLT
	cmp	rax, QWORD PTR INT2OID[rip]
	jne	.L10
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L25:
	xor	r14d, r14d
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L17:
	xor	r14d, r14d
	jmp	.L11
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_primary_key_attnos, .-get_primary_key_attnos
	.comm	InvalidOid,4,4
	.comm	INT2OID,8,8
	.comm	FirstLowInvalidHeapAttributeNumber,8,8
	.comm	F_OIDEQ,4,4
	.comm	ERROR,4,4
	.comm	ConstraintRelidTypidNameIndexId,4,4
	.comm	ConstraintRelationId,4,4
	.comm	CONSTRAINT_PRIMARY,8,8
	.comm	BTEqualStrategyNumber,4,4
	.comm	Anum_pg_constraint_conrelid,4,4
	.comm	Anum_pg_constraint_conkey,4,4
	.comm	AccessShareLock,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_pg_constraint.c_get_primary_key_attnos.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"null conkey for constraint %u\000"
	.align	2
.LC1:
	.ascii	"conkey is not a 1-D smallint array\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_primary_key_attnos
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_primary_key_attnos, %function
get_primary_key_attnos:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, r2
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L25
	sub	sp, sp, #36
	str	r2, [sp, #12]
	mov	r5, r1
	ldr	r2, [r3]
	ldr	r1, .L25+4
	ldr	r3, .L25+8
	ldr	fp, .L25+12
	ldr	r1, [r1]
	str	r1, [sp, #28]
	mov	r1,#0
	str	r2, [ip]
	mov	r4, r0
	ldr	r1, [fp]
	ldr	r0, [r3]
	bl	table_open
	ldr	r1, .L25+16
	ldr	r2, .L25+20
	ldr	r3, .L25+24
	mov	r9, r0
	mov	r0, r4
	ldr	r7, [r2]
	ldr	r8, [r3]
	ldr	r6, [r1]
	bl	ObjectIdGetDatum
	add	r4, sp, #24
	mov	r3, r8
	mov	r2, r7
	mov	r1, r6
	str	r0, [sp]
	mov	r0, r4
	bl	ScanKeyInit
	mov	r2, #1
	ldr	r3, .L25+28
	str	r4, [sp, #4]
	str	r2, [sp]
	ldr	r1, [r3]
	mov	r0, r9
	mov	r3, #0
	bl	systable_beginscan
	mov	r8, r0
	ldr	r7, .L25+32
.L2:
	mov	r0, r8
	bl	systable_getnext
	mov	r6, r0
	bl	HeapTupleIsValid
	cmp	r0, #0
	beq	.L22
	mov	r0, r6
	bl	GETSTRUCT
	ldr	r3, [r7]
	ldr	r2, [r0]
	cmp	r2, r3
	bne	.L2
	clz	r5, r5
	ldr	r3, [r0, #8]
	lsr	r5, r5, #5
	cmp	r3, #0
	moveq	r5, #0
	cmp	r5, #0
	movne	r4, #0
	bne	.L11
	ldr	r3, .L25+36
	mov	r0, r9
	ldr	r4, [r3]
	bl	RelationGetDescr
	mov	r1, r4
	mov	r2, r0
	add	r3, sp, #20
	mov	r0, r6
	bl	heap_getattr
	ldr	r3, [sp, #20]
	mov	r4, r0
	cmp	r3, #0
	bne	.L23
.L5:
	mov	r0, r4
	bl	DatumGetArrayTypeP
	mov	r4, r0
	bl	ARR_DIMS
	mov	r3, r0
	mov	r0, r4
	ldr	r7, [r3]
	bl	ARR_NDIM
	subs	r0, r0, #1
	movne	r0, #1
	orrs	r3, r0, r7, lsr #31
	beq	.L6
.L8:
	ldr	r3, .L25+40
	ldr	r1, .L25+44
	ldr	r0, [r3]
	bl	elog
.L7:
	mov	r0, r4
	bl	ARR_DATA_PTR
	cmp	r7, #0
	ble	.L15
	mov	r5, r0
	mov	r4, #0
	ldr	r10, .L25+48
	add	r7, r0, r7, lsl #2
.L10:
	ldr	r1, [r5], #4
	ldr	r2, [r10]
	mov	r0, r4
	sub	r1, r1, r2
	bl	bms_add_member
	cmp	r5, r7
	mov	r4, r0
	bne	.L10
.L9:
	mov	r0, r6
	bl	GETSTRUCT
	ldr	r2, [sp, #12]
	ldr	r3, [r0, #4]
	str	r3, [r2]
.L11:
	mov	r0, r8
	bl	systable_endscan
	mov	r0, r9
	ldr	r1, [fp]
	bl	table_close
	ldr	r3, .L25+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	ldr	r3, .L25+40
	mov	r0, r6
	ldr	r5, [r3]
	bl	GETSTRUCT
	mov	r3, r0
	ldr	r1, .L25+52
	mov	r0, r5
	ldr	r2, [r3, #4]
	bl	elog
	b	.L5
.L6:
	mov	r0, r4
	bl	ARR_HASNULL
	cmp	r0, #0
	bne	.L8
	mov	r0, r4
	bl	ARR_ELEMTYPE
	ldr	r3, .L25+56
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L8
	b	.L7
.L22:
	mov	r4, r0
	b	.L11
.L15:
	mov	r4, #0
	b	.L9
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	InvalidOid
	.word	.LC2
	.word	ConstraintRelationId
	.word	AccessShareLock
	.word	Anum_pg_constraint_conrelid
	.word	BTEqualStrategyNumber
	.word	F_OIDEQ
	.word	ConstraintRelidTypidNameIndexId
	.word	CONSTRAINT_PRIMARY
	.word	Anum_pg_constraint_conkey
	.word	ERROR
	.word	.LC1
	.word	FirstLowInvalidHeapAttributeNumber
	.word	.LC0
	.word	INT2OID
	.size	get_primary_key_attnos, .-get_primary_key_attnos
	.comm	InvalidOid,4,4
	.comm	INT2OID,4,4
	.comm	FirstLowInvalidHeapAttributeNumber,4,4
	.comm	F_OIDEQ,4,4
	.comm	ERROR,4,4
	.comm	ConstraintRelidTypidNameIndexId,4,4
	.comm	ConstraintRelationId,4,4
	.comm	CONSTRAINT_PRIMARY,4,4
	.comm	BTEqualStrategyNumber,4,4
	.comm	Anum_pg_constraint_conrelid,4,4
	.comm	Anum_pg_constraint_conkey,4,4
	.comm	AccessShareLock,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
