	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IMG_TAPE_WriteFromMemory       ## -- Begin function IMG_TAPE_WriteFromMemory
	.p2align	4, 0x90
_IMG_TAPE_WriteFromMemory:              ## @IMG_TAPE_WriteFromMemory
	.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, %r14d
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	jne	LBB0_2
## %bb.1:
	movq	$0, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
LBB0_2:
	leal	1(%r15), %r13d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_EnlargeBuffer
	movq	8(%rbx), %rsi
	movl	%r12d, %edi
	movl	%r15d, %edx
	callq	_MEMORY_CopyFromMem
	movq	8(%rbx), %rdi
	movl	%r15d, %esi
	callq	_SIO_ChkSum
	movq	8(%rbx), %rcx
	movslq	%r15d, %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	%r14d, (%rbx)
	movl	%r13d, 4(%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WriteRecord                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,8,3                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IMG_TAPE_WriteFromMemory       ; -- Begin function IMG_TAPE_WriteFromMemory
	.p2align	2
_IMG_TAPE_WriteFromMemory:              ; @IMG_TAPE_WriteFromMemory
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x8, [x0, #16]
	cbnz	x8, LBB0_2
; %bb.1:
	str	xzr, [x20]
	str	xzr, [x20, #32]
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stp	x8, xzr, [x20, #16]
LBB0_2:
	add	w23, w21, #1
	mov	x0, x20
	mov	x1, x23
	bl	_EnlargeBuffer
	ldr	x1, [x20, #8]
	mov	x0, x22
	mov	x2, x21
	bl	_MEMORY_CopyFromMem
	ldr	x0, [x20, #8]
	mov	x1, x21
	bl	_SIO_ChkSum
	ldr	x8, [x20, #8]
	str	w0, [x8, w21, sxtw #2]
	stp	w19, w23, [x20]
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_WriteRecord
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,8,3                       ; @TRUE
.subsections_via_symbols
