	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function writetup_datum
_writetup_datum:                        ## @writetup_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
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdx)
	je	LBB0_2
## %bb.1:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_5
LBB0_2:
	cmpl	$0, 20(%rbx)
	je	LBB0_3
## %bb.4:
	movq	(%r14), %r12
	movq	%r12, %rdi
	callq	_PointerGetDatum
	movl	16(%rbx), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_datumGetSize
	movl	%eax, %r13d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_Assert
	jmp	LBB0_5
LBB0_3:
	leaq	8(%r14), %r12
	movl	$4, %r13d
LBB0_5:
	leal	4(%r13), %eax
	movl	%eax, -44(%rbp)
	movl	4(%rbx), %edi
	leaq	-44(%rbp), %rdx
	movl	%r15d, %esi
	movl	$4, %ecx
	callq	_LogicalTapeWrite
	movl	4(%rbx), %edi
	movl	%r15d, %esi
	movq	%r12, %rdx
	movl	%r13d, %ecx
	callq	_LogicalTapeWrite
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.6:
	movl	4(%rbx), %edi
	leaq	-44(%rbp), %rdx
	movl	%r15d, %esi
	movl	$4, %ecx
	callq	_LogicalTapeWrite
LBB0_7:
	cmpl	$0, (%rbx)
	jne	LBB0_10
## %bb.8:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_GetMemoryChunkSpace
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_FREEMEM
	movq	(%r14), %rdi
	callq	_pfree
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_writetup_datum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function writetup_datum
_writetup_datum:                        ; @writetup_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
	ldr	x8, [x2, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x22, #0
	mov	w23, #0
	b	LBB0_5
LBB0_2:
	ldr	w8, [x20, #20]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	x22, [x19]
	mov	x0, x22
	bl	_PointerGetDatum
	ldr	w2, [x20, #16]
	mov	w1, #0
	bl	_datumGetSize
	mov	x23, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_Assert
	b	LBB0_5
LBB0_4:
	add	x22, x19, #8
	mov	w23, #4
LBB0_5:
	add	w8, w23, #4
	str	w8, [sp, #12]
	ldr	w0, [x20, #4]
	add	x2, sp, #12
	mov	x1, x21
	mov	w3, #4
	bl	_LogicalTapeWrite
	ldr	w0, [x20, #4]
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	bl	_LogicalTapeWrite
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w0, [x20, #4]
	add	x2, sp, #12
	mov	x1, x21
	mov	w3, #4
	bl	_LogicalTapeWrite
LBB0_7:
	ldr	w8, [x20]
	cbnz	w8, LBB0_10
; %bb.8:
	ldr	x0, [x19]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_GetMemoryChunkSpace
	mov	x1, x0
	mov	x0, x20
	bl	_FREEMEM
	ldr	x0, [x19]
	bl	_pfree
LBB0_10:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_writetup_datum
.subsections_via_symbols
