	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SPI_getvalue                   ## -- Begin function SPI_getvalue
	.p2align	4, 0x90
_SPI_getvalue:                          ## @SPI_getvalue
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_SPI_result@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	testl	%edx, %edx
	je	LBB0_3
## %bb.1:
	movl	%edx, %ebx
	movq	%rsi, %r15
	cmpl	%edx, (%rsi)
	jl	LBB0_3
## %bb.2:
	movq	_FirstLowInvalidHeapAttributeNumber@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jge	LBB0_3
## %bb.4:
	leaq	-32(%rbp), %rcx
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_heap_getattr
	cmpl	$0, -32(%rbp)
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_3:
	movq	_SPI_ERROR_NOATTRIBUTE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_6:
	movl	%eax, %r14d
	testl	%ebx, %ebx
	jle	LBB0_8
## %bb.7:
	decl	%ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_TupleDescAttr
	jmp	LBB0_9
LBB0_8:
	movl	%ebx, %edi
	callq	_SystemAttributeDefinition
LBB0_9:
	movl	(%rax), %edi
	leaq	-28(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	callq	_getTypeOutputInfo
	movl	-28(%rbp), %edi
	movl	%r14d, %esi
	callq	_OidOutputFunctionCall
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SPI_getvalue                   ; -- Begin function SPI_getvalue
	.p2align	2
_SPI_getvalue:                          ; @SPI_getvalue
	.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
Lloh0:
	adrp	x8, _SPI_result@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPI_result@GOTPAGEOFF]
	str	xzr, [x8]
	cbz	w2, LBB0_4
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	ldr	w9, [x1]
Lloh2:
	adrp	x10, _FirstLowInvalidHeapAttributeNumber@GOTPAGE
Lloh3:
	ldr	x10, [x10, _FirstLowInvalidHeapAttributeNumber@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	cmp	w9, w2
	ccmp	w10, w2, #0, ge
	b.ge	LBB0_4
; %bb.2:
	add	x3, sp, #12
	mov	x1, x20
	mov	x2, x21
	bl	_heap_getattr
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_5
; %bb.3:
	mov	x0, #0
	b	LBB0_9
LBB0_4:
	mov	x0, #0
Lloh5:
	adrp	x9, _SPI_ERROR_NOATTRIBUTE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SPI_ERROR_NOATTRIBUTE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	str	x9, [x8]
	b	LBB0_9
LBB0_5:
	mov	x19, x0
	subs	w1, w20, #1
	b.lt	LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_TupleDescAttr
	b	LBB0_8
LBB0_7:
	mov	x0, x20
	bl	_SystemAttributeDefinition
LBB0_8:
	ldr	w0, [x0]
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_getTypeOutputInfo
	ldr	w0, [sp, #8]
	mov	x1, x19
	bl	_OidOutputFunctionCall
LBB0_9:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.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
.subsections_via_symbols
