	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __write_initial_superblock
___write_initial_superblock:            ## @__write_initial_superblock
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	40(%rdi), %rax
	movl	(%rax), %edi
	callq	_i_size_read
	movl	(%rbx), %edi
	callq	_dm_tm_pre_commit
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	callq	___save_sm_root
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_superblock_lock_zero
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	-24(%rbp), %rdi
	callq	_dm_block_data
	movq	%rax, %r14
	movq	$0, 144(%rax)
	movl	136(%rax), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_CACHE_SUPERBLOCK_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le64
	movq	%rax, 128(%r14)
	movl	32(%rbx), %edi
	callq	_cpu_to_le32
	movq	%rax, 120(%r14)
	movl	116(%r14), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	112(%r14), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movq	%rax, 104(%r14)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	___copy_sm_root
	movl	28(%rbx), %edi
	callq	_cpu_to_le64
	movq	%rax, 96(%r14)
	movl	24(%rbx), %edi
	callq	_cpu_to_le64
	movq	%rax, 88(%r14)
	movl	20(%rbx), %edi
	callq	_cpu_to_le64
	movq	%rax, 80(%r14)
	movl	16(%rbx), %edi
	callq	_cpu_to_le64
	movq	%rax, 72(%r14)
	movl	12(%rbx), %edi
	callq	_from_dblock
	movl	%eax, %edi
	callq	_cpu_to_le64
	movq	%rax, 64(%r14)
	movq	_DM_CACHE_METADATA_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 56(%r14)
	movl	8(%rbx), %edi
	callq	_cpu_to_le32
	movq	%rax, 48(%r14)
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movq	%rax, 40(%r14)
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movq	%rax, 32(%r14)
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movq	%rax, 24(%r14)
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r14)
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r14)
	movq	%rbx, %rdi
	callq	_separate_dirty_bits
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	4(%rbx), %edi
	callq	_cpu_to_le64
	movq	%rax, (%r14)
LBB0_5:
	movl	(%rbx), %edi
	movq	-24(%rbp), %rsi
	callq	_dm_tm_commit
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SECTOR_SHIFT,8,3               ## @SECTOR_SHIFT
	.comm	_DM_CACHE_METADATA_MAX_SECTORS,8,3 ## @DM_CACHE_METADATA_MAX_SECTORS
	.comm	_CACHE_SUPERBLOCK_MAGIC,4,2     ## @CACHE_SUPERBLOCK_MAGIC
	.comm	_DM_CACHE_METADATA_BLOCK_SIZE,4,2 ## @DM_CACHE_METADATA_BLOCK_SIZE
	.no_dead_strip	___write_initial_superblock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __write_initial_superblock
___write_initial_superblock:            ; @__write_initial_superblock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #40]
	ldr	w0, [x8]
	bl	_i_size_read
	ldr	w0, [x19]
	bl	_dm_tm_pre_commit
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	___save_sm_root
	cbnz	w0, LBB0_6
; %bb.2:
	add	x1, sp, #8
	mov	x0, x19
	bl	_superblock_lock_zero
	cbnz	w0, LBB0_6
; %bb.3:
	ldr	x0, [sp, #8]
	bl	_dm_block_data
	mov	x20, x0
	str	xzr, [x0, #144]
	ldr	w0, [x0, #136]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x8, _CACHE_SUPERBLOCK_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CACHE_SUPERBLOCK_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le64
	str	x0, [x20, #128]
	ldr	w0, [x19, #32]
	bl	_cpu_to_le32
	str	x0, [x20, #120]
	ldr	w0, [x20, #116]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w0, [x20, #112]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w0, #0
	bl	_cpu_to_le32
	str	x0, [x20, #104]
	mov	x0, x19
	mov	x1, x20
	bl	___copy_sm_root
	ldr	w0, [x19, #28]
	bl	_cpu_to_le64
	str	x0, [x20, #96]
	ldr	w0, [x19, #24]
	bl	_cpu_to_le64
	str	x0, [x20, #88]
	ldr	w0, [x19, #20]
	bl	_cpu_to_le64
	str	x0, [x20, #80]
	ldr	w0, [x19, #16]
	bl	_cpu_to_le64
	str	x0, [x20, #72]
	ldr	w0, [x19, #12]
	bl	_from_dblock
	bl	_cpu_to_le64
	str	x0, [x20, #64]
Lloh3:
	adrp	x8, _DM_CACHE_METADATA_BLOCK_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DM_CACHE_METADATA_BLOCK_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x20, #56]
	ldr	w0, [x19, #8]
	bl	_cpu_to_le32
	str	x0, [x20, #48]
	mov	w0, #0
	bl	_cpu_to_le32
	str	x0, [x20, #40]
	mov	w0, #0
	bl	_cpu_to_le32
	str	x0, [x20, #32]
	mov	w0, #0
	bl	_cpu_to_le32
	str	x0, [x20, #24]
	mov	w0, #0
	bl	_cpu_to_le32
	str	x0, [x20, #16]
	mov	w0, #0
	bl	_cpu_to_le32
	str	x0, [x20, #8]
	mov	x0, x19
	bl	_separate_dirty_bits
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x19, #4]
	bl	_cpu_to_le64
	str	x0, [x20]
LBB0_5:
	ldr	w0, [x19]
	ldr	x1, [sp, #8]
	bl	_dm_tm_commit
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SECTOR_SHIFT,8,3               ; @SECTOR_SHIFT
	.comm	_DM_CACHE_METADATA_MAX_SECTORS,8,3 ; @DM_CACHE_METADATA_MAX_SECTORS
	.comm	_CACHE_SUPERBLOCK_MAGIC,4,2     ; @CACHE_SUPERBLOCK_MAGIC
	.comm	_DM_CACHE_METADATA_BLOCK_SIZE,4,2 ; @DM_CACHE_METADATA_BLOCK_SIZE
	.no_dead_strip	___write_initial_superblock
.subsections_via_symbols
