	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readtup_heap
_readtup_heap:                          ## @readtup_heap
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r15
	addl	$-4, %r12d
	movq	_MINIMAL_TUPLE_DATA_OFFSET@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	addl	%r12d, %ebx
	movl	%ebx, -44(%rbp)
	movl	%ebx, %edi
	callq	_palloc
	movslq	%eax, %r14
	movl	(%r13), %r13d
	addq	%r14, %r13
	movq	%r14, %rdi
	callq	_GetMemoryChunkSpace
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_USEMEM
	movl	%ebx, (%r14)
	movl	(%r15), %edi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_BufFileRead
	cltq
	cmpq	%r12, %rax
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	cmpq	$0, 8(%r15)
	je	LBB0_5
## %bb.3:
	movl	(%r15), %edi
	leaq	-44(%rbp), %rsi
	movl	$4, %edx
	callq	_BufFileRead
	cmpl	$4, %eax
	je	LBB0_5
## %bb.4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_5:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MINIMAL_TUPLE_DATA_OFFSET,4,2  ## @MINIMAL_TUPLE_DATA_OFFSET
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not read from tuplestore temporary file: %m"

	.no_dead_strip	_readtup_heap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function readtup_heap
_readtup_heap:                          ; @readtup_heap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x0
	sub	w21, w1, #4
Lloh0:
	adrp	x23, _MINIMAL_TUPLE_DATA_OFFSET@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MINIMAL_TUPLE_DATA_OFFSET@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w22, w8, w21
	str	w22, [sp, #12]
	mov	x0, x22
	bl	_palloc
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x19, w0
	ldr	w8, [x23]
	add	x23, x19, x8
	mov	x0, x19
	bl	_GetMemoryChunkSpace
	mov	x1, x0
	mov	x0, x20
	bl	_USEMEM
	str	w22, [x19]
	ldr	w0, [x20]
	mov	x1, x23
	mov	x2, x21
	bl	_BufFileRead
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x8, x21
	b.eq	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	bl	_errcode_for_file_access
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_2:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w0, [x20]
	add	x1, sp, #12
	mov	w2, #4
	bl	_BufFileRead
	cmp	w0, #4
	b.eq	LBB0_5
; %bb.4:
Lloh7:
	adrp	x8, _ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
	bl	_errcode_for_file_access
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_5:
	mov	x0, 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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MINIMAL_TUPLE_DATA_OFFSET,4,2  ; @MINIMAL_TUPLE_DATA_OFFSET
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not read from tuplestore temporary file: %m"

	.no_dead_strip	_readtup_heap
.subsections_via_symbols
