	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_memory
_init_memory:                           ## @init_memory
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	16(%rdi), %esi
	movl	20(%rdi), %edi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_calculate_memory_size
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	%r15, %rdi
	callq	_writecache_alloc_entries
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:
	movq	%r15, %rdi
	callq	_sb
	movq	24(%rax), %rdi
	callq	_ARRAY_SIZE
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_sb
	movq	24(%rax), %rax
	movl	(%rax,%rbx,4), %r14d
	xorl	%edi, %edi
	callq	_cpu_to_le64
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_pmem_assign
	incq	%rbx
	movq	%r15, %rdi
	callq	_sb
	movq	24(%rax), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %rbx
	jb	LBB0_4
LBB0_5:
	movq	%r15, %rdi
	callq	_sb
	movl	16(%rax), %ebx
	movq	_MEMORY_SUPERBLOCK_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pmem_assign
	movq	%r15, %rdi
	callq	_sb
	movl	12(%rax), %ebx
	movl	16(%r15), %edi
	callq	_cpu_to_le32
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pmem_assign
	movq	%r15, %rdi
	callq	_sb
	movl	8(%rax), %ebx
	movq	(%r15), %rdi
	callq	_cpu_to_le64
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pmem_assign
	movq	%r15, %rdi
	callq	_sb
	movl	4(%rax), %ebx
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_cpu_to_le64
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pmem_assign
	cmpq	$0, (%r15)
	je	LBB0_8
## %bb.6:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rsi
	addq	%r12, %rsi
	movq	%r15, %rdi
	movl	$-1, %edx
	movl	$-1, %ecx
	callq	_write_original_sector_seq_count
	incq	%rbx
	addq	$4, %r12
	cmpq	(%r15), %rbx
	jb	LBB0_7
LBB0_8:
	movq	%r15, %rdi
	callq	_writecache_flush_all_metadata
	movq	%r15, %rdi
	callq	_writecache_commit_flushed
	movq	%r15, %rdi
	callq	_sb
	movl	(%rax), %ebx
	movq	_MEMORY_SUPERBLOCK_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pmem_assign
	movq	%r15, %rdi
	callq	_sb
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	$4, %edx
	callq	_writecache_flush_region
	movq	%r15, %rdi
	callq	_writecache_commit_flushed
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEMORY_SUPERBLOCK_VERSION,4,2  ## @MEMORY_SUPERBLOCK_VERSION
	.comm	_MEMORY_SUPERBLOCK_MAGIC,4,2    ## @MEMORY_SUPERBLOCK_MAGIC
	.no_dead_strip	_init_memory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_memory
_init_memory:                           ; @init_memory
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w0, [x0, #20]
	ldr	w1, [x19, #16]
	mov	x2, x19
	mov	x3, #0
	bl	_calculate_memory_size
	cbnz	w0, LBB0_9
; %bb.1:
	mov	x0, x19
	bl	_writecache_alloc_entries
	cbnz	w0, LBB0_9
; %bb.2:
	mov	x0, x19
	bl	_sb
	ldr	x0, [x0, #24]
	bl	_ARRAY_SIZE
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_sb
	ldr	x8, [x0, #24]
	ldr	w20, [x8, x21, lsl #2]
	mov	x0, #0
	bl	_cpu_to_le64
	mov	x1, x0
	mov	x0, x20
	bl	_pmem_assign
	add	x21, x21, #1
	mov	x0, x19
	bl	_sb
	ldr	x0, [x0, #24]
	bl	_ARRAY_SIZE
	cmp	x21, x0
	b.lo	LBB0_4
LBB0_5:
	mov	x0, x19
	bl	_sb
	ldr	w20, [x0, #16]
Lloh0:
	adrp	x8, _MEMORY_SUPERBLOCK_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEMORY_SUPERBLOCK_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	mov	x1, x0
	mov	x0, x20
	bl	_pmem_assign
	mov	x0, x19
	bl	_sb
	ldr	w20, [x0, #12]
	ldr	w0, [x19, #16]
	bl	_cpu_to_le32
	mov	x1, x0
	mov	x0, x20
	bl	_pmem_assign
	mov	x0, x19
	bl	_sb
	ldr	w20, [x0, #8]
	ldr	x0, [x19]
	bl	_cpu_to_le64
	mov	x1, x0
	mov	x0, x20
	bl	_pmem_assign
	mov	x0, x19
	bl	_sb
	ldr	w20, [x0, #4]
	mov	x0, #0
	bl	_cpu_to_le64
	mov	x1, x0
	mov	x0, x20
	bl	_pmem_assign
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.6:
	mov	x20, #0
	mov	x21, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x1, x8, x20
	mov	x0, x19
	mov	w2, #-1
	mov	w3, #-1
	bl	_write_original_sector_seq_count
	add	x21, x21, #1
	ldr	x8, [x19]
	add	x20, x20, #4
	cmp	x21, x8
	b.lo	LBB0_7
LBB0_8:
	mov	x0, x19
	bl	_writecache_flush_all_metadata
	mov	x0, x19
	bl	_writecache_commit_flushed
	mov	x0, x19
	bl	_sb
	ldr	w20, [x0]
Lloh3:
	adrp	x8, _MEMORY_SUPERBLOCK_MAGIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MEMORY_SUPERBLOCK_MAGIC@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	mov	x1, x0
	mov	x0, x20
	bl	_pmem_assign
	mov	x0, x19
	bl	_sb
	mov	x1, x0
	mov	x0, x19
	mov	w2, #4
	bl	_writecache_flush_region
	mov	x0, x19
	bl	_writecache_commit_flushed
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MEMORY_SUPERBLOCK_VERSION,4,2  ; @MEMORY_SUPERBLOCK_VERSION
	.comm	_MEMORY_SUPERBLOCK_MAGIC,4,2    ; @MEMORY_SUPERBLOCK_MAGIC
	.no_dead_strip	_init_memory
.subsections_via_symbols
