	.file	"extr_spi.c_SPI_gettype.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	SPI_gettype
	.type	SPI_gettype, @function
SPI_gettype:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	QWORD PTR SPI_result[rip], 0
	cmp	DWORD PTR [rdi], esi
	jl	.L2
	test	esi, esi
	je	.L2
	cmp	DWORD PTR FirstLowInvalidHeapAttributeNumber[rip], esi
	jge	.L2
	test	esi, esi
	jle	.L5
	sub	esi, 1
	call	TupleDescAttr@PLT
	mov	edi, DWORD PTR [rax]
.L6:
	call	ObjectIdGetDatum@PLT
	mov	edi, DWORD PTR TYPEOID[rip]
	mov	esi, eax
	call	SearchSysCache1@PLT
	mov	edi, eax
	mov	ebp, eax
	call	HeapTupleIsValid@PLT
	test	eax, eax
	je	.L10
	mov	edi, ebp
	call	GETSTRUCT@PLT
	mov	edi, DWORD PTR [rax]
	call	NameStr@PLT
	mov	edi, eax
	call	pstrdup@PLT
	mov	edi, ebp
	mov	r12, rax
	call	ReleaseSysCache@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, esi
	call	SystemAttributeDefinition@PLT
	mov	edi, DWORD PTR [rax]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR SPI_ERROR_NOATTRIBUTE[rip]
	xor	r12d, r12d
	mov	QWORD PTR SPI_result[rip], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rax, QWORD PTR SPI_ERROR_TYPUNKNOWN[rip]
	xor	r12d, r12d
	mov	QWORD PTR SPI_result[rip], rax
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	SPI_gettype, .-SPI_gettype
	.comm	TYPEOID,4,4
	.comm	SPI_result,8,8
	.comm	SPI_ERROR_TYPUNKNOWN,8,8
	.comm	SPI_ERROR_NOATTRIBUTE,8,8
	.comm	FirstLowInvalidHeapAttributeNumber,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_spi.c_SPI_gettype.c"
	.text
	.align	2
	.global	SPI_gettype
	.syntax unified
	.arm
	.fpu softvfp
	.type	SPI_gettype, %function
SPI_gettype:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	r3, r1
	ldr	r2, [r0]
	lsr	r3, r3, #5
	cmp	r2, r1
	orrlt	r3, r3, #1
	mov	r2, #0
	push	{r4, r5, r6, lr}
	ldr	r5, .L11
	cmp	r3, r2
	str	r2, [r5]
	bne	.L2
	ldr	r3, .L11+4
	ldr	r3, [r3]
	cmp	r3, r1
	bge	.L2
	cmp	r1, #0
	ble	.L5
	sub	r1, r1, #1
	bl	TupleDescAttr
	ldr	r0, [r0]
.L6:
	ldr	r3, .L11+8
	ldr	r4, [r3]
	bl	ObjectIdGetDatum
	mov	r1, r0
	mov	r0, r4
	bl	SearchSysCache1
	mov	r6, r0
	bl	HeapTupleIsValid
	subs	r4, r0, #0
	beq	.L10
	mov	r0, r6
	bl	GETSTRUCT
	ldr	r0, [r0]
	bl	NameStr
	bl	pstrdup
	mov	r4, r0
	mov	r0, r6
	bl	ReleaseSysCache
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L5:
	mov	r0, r1
	bl	SystemAttributeDefinition
	ldr	r0, [r0]
	b	.L6
.L2:
	mov	r4, #0
	ldr	r3, .L11+12
	mov	r0, r4
	ldr	r3, [r3]
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r3, .L11+16
	mov	r0, r4
	ldr	r3, [r3]
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L12:
	.align	2
.L11:
	.word	SPI_result
	.word	FirstLowInvalidHeapAttributeNumber
	.word	TYPEOID
	.word	SPI_ERROR_NOATTRIBUTE
	.word	SPI_ERROR_TYPUNKNOWN
	.size	SPI_gettype, .-SPI_gettype
	.comm	TYPEOID,4,4
	.comm	SPI_result,4,4
	.comm	SPI_ERROR_TYPUNKNOWN,4,4
	.comm	SPI_ERROR_NOATTRIBUTE,4,4
	.comm	FirstLowInvalidHeapAttributeNumber,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
