	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %r14d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	addl	$-4, %r13d
	movq	_MINIMAL_TUPLE_DATA_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	%r13d, %ebx
	movl	%ebx, -44(%rbp)
	movl	%ebx, %esi
	callq	_readtup_alloc
	movslq	%eax, %r15
	movq	_MINIMAL_TUPLE_DATA_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addq	%r15, %rdx
	movl	%ebx, (%r15)
	movl	16(%r12), %edi
	movl	%r14d, %esi
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_LogicalTapeReadExact
	cmpq	$0, 24(%r12)
	je	LBB0_2
## %bb.1:
	movl	16(%r12), %edi
	leaq	-44(%rbp), %rdx
	movl	$4, %ecx
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_LogicalTapeReadExact
LBB0_2:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%r15, 8(%rbx)
	movl	(%r15), %eax
	movq	_MINIMAL_TUPLE_OFFSET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rcx, %rax
	movq	%rax, -72(%rbp)
	subq	%rcx, %r15
	movq	%r15, -64(%rbp)
	movq	8(%r12), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	leaq	-72(%rbp), %rdi
	movq	%rbx, %rcx
	callq	_heap_getattr
	movl	%eax, 4(%rbx)
	addq	$40, %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	_MINIMAL_TUPLE_OFFSET,8,3       ## @MINIMAL_TUPLE_OFFSET
	.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, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	sub	w24, w3, #4
Lloh0:
	adrp	x25, _MINIMAL_TUPLE_DATA_OFFSET@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MINIMAL_TUPLE_DATA_OFFSET@GOTPAGEOFF]
	ldr	w8, [x25]
	add	w22, w8, w24
	str	w22, [sp, #44]
	mov	x1, x22
	bl	_readtup_alloc
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x23, w0
	ldr	w8, [x25]
	add	x8, x23, x8
	str	w22, [x23]
	ldr	w0, [x20, #16]
	stp	x8, x24, [sp]
	mov	x1, x21
	bl	_LogicalTapeReadExact
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x20, #16]
	mov	w8, #4
	add	x9, sp, #44
	stp	x9, x8, [sp]
	mov	x1, x21
	bl	_LogicalTapeReadExact
LBB0_2:
	str	x23, [x19, #8]
	ldr	w8, [x23]
Lloh2:
	adrp	x9, _MINIMAL_TUPLE_OFFSET@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MINIMAL_TUPLE_OFFSET@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x8, x9, x8
	sub	x9, x23, x9
	stp	x8, x9, [sp, #24]
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	ldr	w2, [x20]
	add	x0, sp, #24
	mov	x3, x19
	bl	_heap_getattr
	str	w0, [x19, #4]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MINIMAL_TUPLE_DATA_OFFSET,4,2  ; @MINIMAL_TUPLE_DATA_OFFSET
	.comm	_MINIMAL_TUPLE_OFFSET,8,3       ; @MINIMAL_TUPLE_OFFSET
	.no_dead_strip	_readtup_heap
.subsections_via_symbols
