	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LogicalTapeFreeze              ## -- Begin function LogicalTapeFreeze
	.p2align	4, 0x90
_LogicalTapeFreeze:                     ## @LogicalTapeFreeze
	.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, %r12d
	movq	%rdi, %r15
	xorl	%edi, %edi
	testl	%esi, %esi
	js	LBB0_2
## %bb.1:
	cmpl	%r12d, (%r15)
	setg	%dil
LBB0_2:
	callq	_Assert
	movq	8(%r15), %r13
	movslq	%r12d, %rax
	imulq	$88, %rax, %rbx
	leaq	(%rbx,%r13), %r12
	movl	(%r13,%rbx), %edi
	callq	_Assert
	xorl	%edi, %edi
	cmpq	$0, 8(%r13,%rbx)
	sete	%dil
	callq	_Assert
	cmpq	$0, 80(%r13,%rbx)
	je	LBB0_4
## %bb.3:
	movq	24(%r13,%rbx), %rax
	movq	32(%r13,%rbx), %rsi
	movq	16(%r13,%rbx), %rdi
	addq	%rax, %rdi
	subq	%rax, %rsi
	callq	_VALGRIND_MAKE_MEM_DEFINED
	movq	16(%r13,%rbx), %rdi
	movq	24(%r13,%rbx), %rsi
	callq	_TapeBlockSetNBytes
	movq	16(%r13,%rbx), %rdx
	movq	40(%r13,%rbx), %rsi
	movq	%r15, %rdi
	callq	_ltsWriteBlock
	movl	$0, (%r12)
LBB0_4:
	movl	$0, (%r12)
	movl	$1, 48(%r13,%rbx)
	leaq	(%rbx,%r13), %r12
	addq	$16, %r12
	movq	16(%r13,%rbx), %rdx
	testq	%rdx, %rdx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.5:
	movq	32(%r13,%rbx), %rax
	movq	_BLCKSZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.6:
	movq	%rdx, %rdi
	callq	_pfree
LBB0_7:
	movq	_BLCKSZ@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_palloc
	movq	%rax, %rdx
	movq	%rax, (%r12)
	movq	(%r14), %rax
	movq	%rax, 32(%r13,%rbx)
LBB0_8:
	movq	56(%r13,%rbx), %rsi
	movq	%rsi, 40(%r13,%rbx)
	movq	$0, 72(%r13,%rbx)
	movq	$0, 24(%r13,%rbx)
	cmpq	$-1, %rsi
	jne	LBB0_10
## %bb.9:
	movq	$-1, 64(%r13,%rbx)
LBB0_10:
	leaq	(%rbx,%r13), %r14
	addq	$24, %r14
	movq	%r15, %rdi
	callq	_ltsReadBlock
	movq	(%r12), %rdi
	callq	_TapeBlockIsLast
	movq	$-1, %rcx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	(%r12), %rdi
	callq	_TapeBlockGetTrailer
	movq	(%rax), %rcx
LBB0_12:
	movq	%rcx, 64(%r13,%rbx)
	movq	(%r12), %rdi
	callq	_TapeBlockGetNBytes
	movq	%rax, (%r14)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_14
## %bb.13:
	addq	%r13, %rbx
	addq	$56, %rbx
	movl	4(%r15), %edi
	callq	_BufFileExportShared
	movq	(%rbx), %rax
	movq	%rax, (%r14)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLCKSZ,8,3                     ## @BLCKSZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LogicalTapeFreeze              ; -- Begin function LogicalTapeFreeze
	.p2align	2
_LogicalTapeFreeze:                     ; @LogicalTapeFreeze
	.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, x2
	mov	x21, x1
	mov	x20, x0
	tbnz	w1, #31, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, w21
	cset	w0, gt
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_Assert
	ldr	x22, [x20, #8]
	sxtw	x23, w21
	mov	w8, #88
	smaddl	x21, w21, w8, x22
	ldr	w0, [x21]
	bl	_Assert
	ldr	x8, [x21, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x21, #80]
	cbz	x8, LBB0_5
; %bb.4:
	mov	w8, #88
	madd	x24, x23, x8, x22
	ldp	x8, x9, [x24, #16]
	add	x0, x9, x8
	ldr	x8, [x24, #32]
	sub	x1, x8, x9
	bl	_VALGRIND_MAKE_MEM_DEFINED
	ldp	x0, x1, [x24, #16]
	bl	_TapeBlockSetNBytes
	ldr	x1, [x24, #40]
	ldr	x2, [x24, #16]
	mov	x0, x20
	bl	_ltsWriteBlock
	str	wzr, [x21]
LBB0_5:
	str	wzr, [x21]
	mov	w8, #88
	madd	x21, x23, x8, x22
	ldr	x2, [x21, #16]!
	mov	w8, #1
	str	w8, [x21, #32]
Lloh0:
	adrp	x24, _BLCKSZ@GOTPAGE
Lloh1:
	ldr	x24, [x24, _BLCKSZ@GOTPAGEOFF]
	cbz	x2, LBB0_8
; %bb.6:
	mov	w8, #88
	madd	x8, x23, x8, x22
	ldr	x8, [x8, #32]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.7:
	mov	x0, x2
	bl	_pfree
LBB0_8:
	ldr	x0, [x24]
	bl	_palloc
	mov	x2, x0
	str	x0, [x21]
	ldr	x8, [x24]
	mov	w9, #88
	madd	x9, x23, x9, x22
	str	x8, [x9, #32]
LBB0_9:
	mov	w8, #88
	madd	x24, x23, x8, x22
	ldr	x1, [x24, #56]!
	stur	x1, [x24, #-16]
	str	xzr, [x24, #16]
	mov	x25, x24
	str	xzr, [x25, #-32]!
	cmn	x1, #1
	b.ne	LBB0_11
; %bb.10:
	mov	w8, #88
	madd	x8, x23, x8, x22
	mov	x9, #-1
	str	x9, [x8, #64]
LBB0_11:
	mov	x0, x20
	bl	_ltsReadBlock
	ldr	x0, [x21]
	bl	_TapeBlockIsLast
	cbz	x0, LBB0_13
; %bb.12:
	mov	x8, #-1
	b	LBB0_14
LBB0_13:
	ldr	x0, [x21]
	bl	_TapeBlockGetTrailer
	ldr	x8, [x0]
LBB0_14:
	mov	w9, #88
	madd	x9, x23, x9, x22
	str	x8, [x9, #64]
	ldr	x0, [x21]
	bl	_TapeBlockGetNBytes
	str	x0, [x25]
	cbz	x19, LBB0_16
; %bb.15:
	ldr	w0, [x20, #4]
	bl	_BufFileExportShared
	ldr	x8, [x24]
	str	x8, [x19]
LBB0_16:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BLCKSZ,8,3                     ; @BLCKSZ
.subsections_via_symbols
