	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getdatafield
_getdatafield:                          ## @getdatafield
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	leaq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_VARATT_IS_EXTENDED
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_detoast_attr
	movq	%rax, %rbx
	movl	$1, %r12d
	jmp	LBB0_3
LBB0_1:
	xorl	%r12d, %r12d
LBB0_3:
	movq	%rbx, %rdi
	callq	_VARSIZE
	movl	%eax, %r14d
	movq	_VARHDRSZ@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	js	LBB0_5
## %bb.4:
	movq	_LOBLKSIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jle	LBB0_6
LBB0_5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r15d
	movq	_ERRCODE_DATA_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	(%r13), %edx
	movl	4(%r13), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %ecx
	callq	_errmsg
	movl	%r15d, %edi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ereport
LBB0_6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	movl	%r12d, (%r15)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VARHDRSZ,4,2                   ## @VARHDRSZ
	.comm	_LOBLKSIZE,4,2                  ## @LOBLKSIZE
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_DATA_CORRUPTED,4,2     ## @ERRCODE_DATA_CORRUPTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pg_largeobject entry for OID %u, page %d has invalid data field size %d"

	.no_dead_strip	_getdatafield
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getdatafield
_getdatafield:                          ; @getdatafield
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	add	x22, x0, #8
	mov	x0, x22
	bl	_VARATT_IS_EXTENDED
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_detoast_attr
	mov	x22, x0
	mov	w26, #1
	b	LBB0_3
LBB0_2:
	mov	w26, #0
LBB0_3:
	mov	x0, x22
	bl	_VARSIZE
Lloh0:
	adrp	x8, _VARHDRSZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VARHDRSZ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	subs	w24, w0, w8
	b.mi	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _LOBLKSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOBLKSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w24, w8
	b.le	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w25, [x8]
Lloh9:
	adrp	x8, _ERRCODE_DATA_CORRUPTED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERRCODE_DATA_CORRUPTED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_errcode
	ldp	w2, w1, [x23]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x24
	bl	_errmsg
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
LBB0_6:
	str	x22, [x21]
	str	w24, [x20]
	str	w26, [x19]
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VARHDRSZ,4,2                   ; @VARHDRSZ
	.comm	_LOBLKSIZE,4,2                  ; @LOBLKSIZE
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_DATA_CORRUPTED,4,2     ; @ERRCODE_DATA_CORRUPTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pg_largeobject entry for OID %u, page %d has invalid data field size %d"

	.no_dead_strip	_getdatafield
.subsections_via_symbols
