	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SPI_gettype                    ## -- Begin function SPI_gettype
	.p2align	4, 0x90
_SPI_gettype:                           ## @SPI_gettype
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_SPI_result@GOTPCREL(%rip), %r14
	movq	$0, (%r14)
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	cmpl	%esi, (%rdi)
	jl	LBB0_3
## %bb.2:
	movq	_FirstLowInvalidHeapAttributeNumber@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jge	LBB0_3
## %bb.5:
	testl	%esi, %esi
	jle	LBB0_7
## %bb.6:
	decl	%esi
	callq	_TupleDescAttr
	jmp	LBB0_8
LBB0_3:
	movq	_SPI_ERROR_NOATTRIBUTE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_7:
	movl	%esi, %edi
	callq	_SystemAttributeDefinition
LBB0_8:
	movl	(%rax), %edi
	movq	_TYPEOID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_ObjectIdGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCache1
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%ebx, %edi
	callq	_GETSTRUCT
	movl	(%rax), %edi
	callq	_NameStr
	movl	%eax, %edi
	callq	_pstrdup
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_ReleaseSysCache
	movq	%r14, %rax
	jmp	LBB0_11
LBB0_9:
	movq	_SPI_ERROR_TYPUNKNOWN@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %rax
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPI_result,8,3                 ## @SPI_result
	.comm	_FirstLowInvalidHeapAttributeNumber,4,2 ## @FirstLowInvalidHeapAttributeNumber
	.comm	_SPI_ERROR_NOATTRIBUTE,8,3      ## @SPI_ERROR_NOATTRIBUTE
	.comm	_TYPEOID,4,2                    ## @TYPEOID
	.comm	_SPI_ERROR_TYPUNKNOWN,8,3       ## @SPI_ERROR_TYPUNKNOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SPI_gettype                    ; -- Begin function SPI_gettype
	.p2align	2
_SPI_gettype:                           ; @SPI_gettype
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _SPI_result@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SPI_result@GOTPAGEOFF]
	str	xzr, [x20]
	cbz	w1, LBB0_4
; %bb.1:
	ldr	w8, [x0]
Lloh2:
	adrp	x9, _FirstLowInvalidHeapAttributeNumber@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FirstLowInvalidHeapAttributeNumber@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w1
	ccmp	w9, w1, #0, ge
	b.ge	LBB0_4
; %bb.2:
	subs	w8, w1, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x1, x8
	bl	_TupleDescAttr
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _SPI_ERROR_NOATTRIBUTE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SPI_ERROR_NOATTRIBUTE@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
	mov	x0, x1
	bl	_SystemAttributeDefinition
LBB0_6:
	ldr	w0, [x0]
Lloh7:
	adrp	x8, _TYPEOID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TYPEOID@GOTPAGEOFF]
Lloh9:
	ldr	w19, [x8]
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x19
	bl	_SearchSysCache1
	mov	x19, x0
	bl	_HeapTupleIsValid
	cbz	w0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_GETSTRUCT
	ldr	w0, [x0]
	bl	_NameStr
	bl	_pstrdup
	mov	x20, x0
	mov	x0, x19
	bl	_ReleaseSysCache
	mov	x0, x20
	b	LBB0_10
LBB0_8:
Lloh10:
	adrp	x8, _SPI_ERROR_TYPUNKNOWN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SPI_ERROR_TYPUNKNOWN@GOTPAGEOFF]
LBB0_9:
	ldr	x8, [x8]
	str	x8, [x20]
	mov	x0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SPI_result,8,3                 ; @SPI_result
	.comm	_FirstLowInvalidHeapAttributeNumber,4,2 ; @FirstLowInvalidHeapAttributeNumber
	.comm	_SPI_ERROR_NOATTRIBUTE,8,3      ; @SPI_ERROR_NOATTRIBUTE
	.comm	_TYPEOID,4,2                    ; @TYPEOID
	.comm	_SPI_ERROR_TYPUNKNOWN,8,3       ; @SPI_ERROR_TYPUNKNOWN
.subsections_via_symbols
