	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetAttributeByNum              ## -- Begin function GetAttributeByNum
	.p2align	4, 0x90
_GetAttributeByNum:                     ## @GetAttributeByNum
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_AttributeNumberIsValid
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	testq	%r14, %r14
	je	LBB0_3
LBB0_4:
	testq	%rbx, %rbx
	je	LBB0_5
LBB0_6:
	movq	%rbx, %rdi
	callq	_HeapTupleHeaderGetTypeId
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_HeapTupleHeaderGetTypMod
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_lookup_rowtype_tupdesc
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_HeapTupleHeaderGetDatumLength
	movl	%eax, -40(%rbp)
	leaq	-44(%rbp), %rdi
	callq	_ItemPointerSetInvalid
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	%rbx, -56(%rbp)
	leaq	-56(%rbp), %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movq	%r14, %rcx
	callq	_heap_getattr
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_ReleaseTupleDesc
	jmp	LBB0_7
LBB0_1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_elog
	testq	%r14, %r14
	jne	LBB0_4
LBB0_3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
	testq	%rbx, %rbx
	jne	LBB0_6
LBB0_5:
	movl	$1, (%r14)
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid attribute number %d"

L_.str.1:                               ## @.str.1
	.asciz	"a NULL isNull pointer was passed"

	.comm	_InvalidOid,4,2                 ## @InvalidOid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetAttributeByNum              ; -- Begin function GetAttributeByNum
	.p2align	2
_GetAttributeByNum:                     ; @GetAttributeByNum
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_AttributeNumberIsValid
	cbz	w0, LBB0_4
; %bb.1:
	cbz	x19, LBB0_5
LBB0_2:
	cbz	x21, LBB0_6
LBB0_3:
	mov	x0, x21
	bl	_HeapTupleHeaderGetTypeId
	mov	x22, x0
	mov	x0, x21
	bl	_HeapTupleHeaderGetTypMod
	mov	x1, x0
	mov	x0, x22
	bl	_lookup_rowtype_tupdesc
	mov	x22, x0
	mov	x0, x21
	bl	_HeapTupleHeaderGetDatumLength
	str	w0, [sp, #24]
	add	x8, sp, #8
	add	x0, x8, #12
	bl	_ItemPointerSetInvalid
Lloh0:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	str	x21, [sp, #8]
	add	x0, sp, #8
	mov	x1, x20
	mov	x2, x22
	mov	x3, x19
	bl	_heap_getattr
	mov	x20, x0
	mov	x0, x22
	bl	_ReleaseTupleDesc
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	cbnz	x19, LBB0_2
LBB0_5:
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
	cbnz	x21, LBB0_3
LBB0_6:
	mov	w20, #0
	mov	w8, #1
	str	w8, [x19]
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid attribute number %d"

l_.str.1:                               ; @.str.1
	.asciz	"a NULL isNull pointer was passed"

	.comm	_InvalidOid,4,2                 ; @InvalidOid
.subsections_via_symbols
