	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readtup_datum
_readtup_datum:                         ## @readtup_datum
	.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	%ecx, %ebx
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	addl	$-4, %ebx
	movl	%ebx, -44(%rbp)
	je	LBB0_3
## %bb.1:
	cmpl	$0, 16(%r12)
	je	LBB0_7
## %bb.2:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_readtup_alloc
	movq	%rax, %r13
	movl	(%r12), %edi
	movl	%r14d, %esi
	movq	%rax, %rdx
	movl	%ebx, %ecx
	callq	_LogicalTapeReadExact
	movq	%r13, %rdi
	callq	_PointerGetDatum
	movl	%eax, (%r15)
	movl	$0, 4(%r15)
	movq	%r13, 8(%r15)
	cmpq	$0, 8(%r12)
	jne	LBB0_5
	jmp	LBB0_6
LBB0_3:
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, (%r15)
	jmp	LBB0_4
LBB0_7:
	xorl	%edi, %edi
	cmpl	$4, %ebx
	sete	%dil
	callq	_Assert
	movl	(%r12), %edi
	movl	%r14d, %esi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_LogicalTapeReadExact
	movl	$0, 4(%r15)
LBB0_4:
	movq	$0, 8(%r15)
	cmpq	$0, 8(%r12)
	je	LBB0_6
LBB0_5:
	movl	(%r12), %edi
	leaq	-44(%rbp), %rdx
	movl	%r14d, %esi
	movl	$4, %ecx
	callq	_LogicalTapeReadExact
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_readtup_datum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function readtup_datum
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_readtup_datum:                         ; @readtup_datum
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	subs	w22, w3, #4
	str	w22, [sp, #12]
	b.eq	LBB0_3
; %bb.1:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x0, x20
	mov	x1, x22
	bl	_readtup_alloc
	mov	x23, x0
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	bl	_LogicalTapeReadExact
	mov	x0, x23
	bl	_PointerGetDatum
	stp	w0, wzr, [x21]
	str	x23, [x21, #8]
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_6
	b	LBB0_7
LBB0_3:
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x21]
	b	LBB0_5
LBB0_4:
	cmp	w22, #4
	cset	w0, eq
	bl	_Assert
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	bl	_LogicalTapeReadExact
	str	wzr, [x21, #4]
LBB0_5:
	str	xzr, [x21, #8]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
LBB0_6:
	ldr	w0, [x20]
	add	x2, sp, #12
	mov	x1, x19
	mov	w3, #4
	bl	_LogicalTapeReadExact
LBB0_7:
	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 AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_readtup_datum
.subsections_via_symbols
