	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	24(%rdi), %rax
	movl	(%rax), %edi
	callq	_i_size_read
	movl	%eax, %ebx
	movq	_SECTOR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	movq	_THIN_METADATA_MAX_SECTORS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	cmovgel	%eax, %ebx
	movl	16(%r14), %edi
	callq	_dm_sm_commit
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	%r14, %rdi
	callq	_save_sm_roots
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movl	8(%r14), %edi
	callq	_dm_tm_pre_commit
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_superblock_lock_zero
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	-32(%rbp), %rdi
	callq	_dm_block_data
	movq	%rax, %r15
	movq	$0, 88(%rax)
	movl	80(%rax), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_THIN_SUPERBLOCK_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le64
	movq	%rax, 72(%r15)
	movq	_THIN_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 64(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r15)
	movq	$0, 56(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_copy_sm_roots
	movl	(%r14), %edi
	callq	_cpu_to_le64
	movq	%rax, 32(%r15)
	movl	4(%r14), %edi
	callq	_cpu_to_le64
	movq	%rax, 24(%r15)
	movq	_THIN_METADATA_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r15)
	movq	_SECTOR_TO_BLOCK_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le64
	movq	%rax, 8(%r15)
	movl	12(%r14), %edi
	callq	_cpu_to_le32
	movq	%rax, (%r15)
	movl	8(%r14), %edi
	movq	-32(%rbp), %rsi
	callq	_dm_tm_commit
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SECTOR_SHIFT,4,2               ## @SECTOR_SHIFT
	.comm	_THIN_METADATA_MAX_SECTORS,4,2  ## @THIN_METADATA_MAX_SECTORS
	.comm	_THIN_SUPERBLOCK_MAGIC,4,2      ## @THIN_SUPERBLOCK_MAGIC
	.comm	_THIN_VERSION,4,2               ## @THIN_VERSION
	.comm	_THIN_METADATA_BLOCK_SIZE,4,2   ## @THIN_METADATA_BLOCK_SIZE
	.comm	_SECTOR_TO_BLOCK_SHIFT,4,2      ## @SECTOR_TO_BLOCK_SHIFT
	.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, #64
	.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
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	w0, [x8]
	bl	_i_size_read
Lloh0:
	adrp	x8, _SECTOR_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SECTOR_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	asr	w8, w0, w8
Lloh3:
	adrp	x9, _THIN_METADATA_MAX_SECTORS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _THIN_METADATA_MAX_SECTORS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w21, w8, w9, lt
	ldr	w0, [x19, #16]
	bl	_dm_sm_commit
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_save_sm_roots
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	w0, [x19, #8]
	bl	_dm_tm_pre_commit
	tbnz	w0, #31, LBB0_5
; %bb.3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_superblock_lock_zero
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	x0, [sp, #8]
	bl	_dm_block_data
	mov	x20, x0
	str	xzr, [x0, #88]
	ldr	w0, [x0, #80]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh6:
	adrp	x8, _THIN_SUPERBLOCK_MAGIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _THIN_SUPERBLOCK_MAGIC@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_le64
	str	x0, [x20, #72]
Lloh9:
	adrp	x8, _THIN_VERSION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _THIN_VERSION@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	stp	xzr, x0, [x20, #56]
	stp	xzr, xzr, [x20, #40]
	mov	x0, x19
	mov	x1, x20
	bl	_copy_sm_roots
	ldr	w0, [x19]
	bl	_cpu_to_le64
	str	x0, [x20, #32]
	ldr	w0, [x19, #4]
	bl	_cpu_to_le64
	str	x0, [x20, #24]
Lloh12:
	adrp	x8, _THIN_METADATA_BLOCK_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _THIN_METADATA_BLOCK_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x20, #16]
Lloh15:
	adrp	x8, _SECTOR_TO_BLOCK_SHIFT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SECTOR_TO_BLOCK_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	asr	w0, w21, w8
	bl	_cpu_to_le64
	str	x0, [x20, #8]
	ldr	w0, [x19, #12]
	bl	_cpu_to_le32
	str	x0, [x20]
	ldr	w0, [x19, #8]
	ldr	x1, [sp, #8]
	bl	_dm_tm_commit
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SECTOR_SHIFT,4,2               ; @SECTOR_SHIFT
	.comm	_THIN_METADATA_MAX_SECTORS,4,2  ; @THIN_METADATA_MAX_SECTORS
	.comm	_THIN_SUPERBLOCK_MAGIC,4,2      ; @THIN_SUPERBLOCK_MAGIC
	.comm	_THIN_VERSION,4,2               ; @THIN_VERSION
	.comm	_THIN_METADATA_BLOCK_SIZE,4,2   ; @THIN_METADATA_BLOCK_SIZE
	.comm	_SECTOR_TO_BLOCK_SHIFT,4,2      ; @SECTOR_TO_BLOCK_SHIFT
	.no_dead_strip	___write_initial_superblock
.subsections_via_symbols
