	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pblk_line_init_metadata
_pblk_line_init_metadata:               ## @pblk_line_init_metadata
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	24(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rsi), %rax
	movq	(%rax), %r13
	movq	56(%rsi), %r15
	movl	12(%rdi), %ebx
	movl	48(%rsi), %edi
	movl	%ebx, %esi
	callq	_bitmap_weight
	subl	%eax, %ebx
	cmpl	16(%r14), %ebx
	jge	LBB0_2
## %bb.1:
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	leaq	40(%r12), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	_PBLK_LINESTATE_BAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r12)
	movq	%r14, %rdi
	callq	_pblk_disk_name
	movl	8(%r12), %esi
	movl	44(%r12), %edx
	movl	%eax, %edi
	callq	_trace_pblk_line_state
	movq	%rbx, %rdi
	callq	_spin_unlock
	leaq	36(%r12), %rdi
	leaq	8(%r14), %rsi
	callq	_list_add_tail
	movq	%r15, %rdi
	callq	_spin_unlock
	movl	8(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_pblk_debug
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_2:
	leaq	80(%r15), %rdi
	movq	%rdi, 24(%r12)
	movl	20(%r14), %edx
	xorl	%esi, %esi
	callq	_bitmap_set
	movq	_PBLK_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	leaq	8(%r15), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, 48(%r15)
	leaq	40(%r15), %rdi
	movq	%r14, %rsi
	callq	_guid_copy
	movl	8(%r12), %edi
	callq	_cpu_to_le32
	movq	%rax, 32(%r15)
	movl	32(%r12), %edi
	callq	_cpu_to_le16
	movl	%eax, 24(%r15)
	movq	_SMETA_VERSION_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	_SMETA_VERSION_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movl	4(%r12), %edi
	callq	_cpu_to_le64
	movq	%rax, 72(%r15)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 64(%r15)
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_4
## %bb.3:
	movq	24(%r12), %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	24(%rbx), %rsi
	movl	20(%r14), %edx
	callq	_memcpy
	movl	8(%rbx), %edi
	callq	_cpu_to_le32
	movq	%rax, (%r15)
	movl	8(%r12), %edi
	callq	_cpu_to_le32
	movq	16(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 16(%rcx)
	jmp	LBB0_5
LBB0_4:
	movq	_PBLK_LINE_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, (%r15)
LBB0_5:
	movq	%r14, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_pblk_calc_meta_header_crc
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_pblk_calc_smeta_crc
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 56(%r15)
	movq	%rbx, %rsi
	leaq	48(%r13), %rbx
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	_EMETA_VERSION_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%r13)
	movq	_EMETA_VERSION_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r13)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_pblk_calc_meta_header_crc
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 48(%r13)
	movl	4(%r12), %edi
	callq	_cpu_to_le64
	movq	%rax, 40(%r13)
	movl	(%r12), %edi
	callq	_cpu_to_le64
	movq	%rax, 32(%r13)
	xorl	%edi, %edi
	callq	_cpu_to_le64
	movq	%rax, 24(%r13)
	movq	_PBLK_LINE_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r13)
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r13)
	movq	(%r15), %rax
	movq	%rax, (%r13)
	movl	$1, %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PBLK_LINESTATE_BAD,4,2         ## @PBLK_LINESTATE_BAD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"line %d is bad\n"

	.comm	_PBLK_MAGIC,4,2                 ## @PBLK_MAGIC
	.comm	_SMETA_VERSION_MAJOR,4,2        ## @SMETA_VERSION_MAJOR
	.comm	_SMETA_VERSION_MINOR,4,2        ## @SMETA_VERSION_MINOR
	.comm	_PBLK_LINE_EMPTY,4,2            ## @PBLK_LINE_EMPTY
	.comm	_EMETA_VERSION_MAJOR,4,2        ## @EMETA_VERSION_MAJOR
	.comm	_EMETA_VERSION_MINOR,4,2        ## @EMETA_VERSION_MINOR
	.no_dead_strip	_pblk_line_init_metadata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pblk_line_init_metadata
_pblk_line_init_metadata:               ; @pblk_line_init_metadata
	.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	x23, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x25, [x0, #24]
	ldr	x8, [x1, #16]
	ldr	x24, [x8]
	ldr	x21, [x1, #56]
	ldr	w22, [x0, #12]
	ldr	w0, [x1, #48]
	mov	x1, x22
	bl	_bitmap_weight
	ldr	w8, [x20, #16]
	sub	w9, w22, w0
	cmp	w9, w8
	b.ge	LBB0_2
; %bb.1:
	add	x21, x20, #4
	mov	x0, x21
	bl	_spin_lock
	add	x22, x19, #40
	mov	x0, x22
	bl	_spin_lock
Lloh0:
	adrp	x8, _PBLK_LINESTATE_BAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PBLK_LINESTATE_BAD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #44]
	mov	x0, x20
	bl	_pblk_disk_name
	ldr	w1, [x19, #8]
	ldr	w2, [x19, #44]
	bl	_trace_pblk_line_state
	mov	x0, x22
	bl	_spin_unlock
	add	x0, x19, #36
	add	x1, x20, #8
	bl	_list_add_tail
	mov	x0, x21
	bl	_spin_unlock
	ldr	w2, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_pblk_debug
	mov	w0, #0
	b	LBB0_6
LBB0_2:
	add	x0, x21, #80
	str	x0, [x19, #24]
	ldr	w2, [x20, #20]
	mov	w1, #0
	bl	_bitmap_set
Lloh5:
	adrp	x8, _PBLK_MAGIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PBLK_MAGIC@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	add	x22, x21, #8
	str	x0, [x21, #48]
	add	x0, x21, #40
	mov	x1, x20
	bl	_guid_copy
	ldr	w0, [x19, #8]
	bl	_cpu_to_le32
	str	x0, [x21, #32]
	ldr	w0, [x19, #32]
	bl	_cpu_to_le16
	str	w0, [x21, #24]
Lloh8:
	adrp	x8, _SMETA_VERSION_MAJOR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SMETA_VERSION_MAJOR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _SMETA_VERSION_MINOR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SMETA_VERSION_MINOR@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #16]
	ldr	w0, [x19, #4]
	bl	_cpu_to_le64
	str	x0, [x21, #72]
	ldr	w0, [x25]
	bl	_cpu_to_le32
	str	x0, [x21, #64]
Lloh14:
	adrp	x25, _PBLK_LINE_EMPTY@GOTPAGE
Lloh15:
	ldr	x25, [x25, _PBLK_LINE_EMPTY@GOTPAGEOFF]
	cbz	x23, LBB0_4
; %bb.3:
	ldr	x0, [x19, #24]
	ldr	x1, [x23, #24]
	ldr	w2, [x20, #20]
	bl	_memcpy
	ldr	w0, [x23, #8]
	bl	_cpu_to_le32
	str	x0, [x21]
	ldr	w0, [x19, #8]
	bl	_cpu_to_le32
	ldr	x8, [x23, #16]
	ldr	x8, [x8]
	str	x0, [x8, #16]
	b	LBB0_5
LBB0_4:
	ldr	w0, [x25]
	bl	_cpu_to_le32
	str	x0, [x21]
LBB0_5:
	mov	x0, x20
	mov	x1, x22
	bl	_pblk_calc_meta_header_crc
	bl	_cpu_to_le32
	str	x0, [x21, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_pblk_calc_smeta_crc
	bl	_cpu_to_le32
	str	x0, [x21, #56]
	add	x23, x24, #48
	mov	x0, x23
	mov	x1, x22
	mov	w2, #4
	bl	_memcpy
Lloh16:
	adrp	x8, _EMETA_VERSION_MAJOR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EMETA_VERSION_MAJOR@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _EMETA_VERSION_MINOR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _EMETA_VERSION_MINOR@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x24, #56]
	mov	x0, x20
	mov	x1, x23
	bl	_pblk_calc_meta_header_crc
	bl	_cpu_to_le32
	str	x0, [x24, #48]
	ldr	w0, [x19, #4]
	bl	_cpu_to_le64
	str	x0, [x24, #40]
	ldr	w0, [x19]
	bl	_cpu_to_le64
	str	x0, [x24, #32]
	mov	w0, #0
	bl	_cpu_to_le64
	str	x0, [x24, #24]
	ldr	w0, [x25]
	bl	_cpu_to_le32
	str	x0, [x24, #16]
	mov	w0, #0
	bl	_cpu_to_le32
	ldr	x8, [x21]
	stp	x8, x0, [x24]
	mov	w0, #1
LBB0_6:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PBLK_LINESTATE_BAD,4,2         ; @PBLK_LINESTATE_BAD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"line %d is bad\n"

	.comm	_PBLK_MAGIC,4,2                 ; @PBLK_MAGIC
	.comm	_SMETA_VERSION_MAJOR,4,2        ; @SMETA_VERSION_MAJOR
	.comm	_SMETA_VERSION_MINOR,4,2        ; @SMETA_VERSION_MINOR
	.comm	_PBLK_LINE_EMPTY,4,2            ; @PBLK_LINE_EMPTY
	.comm	_EMETA_VERSION_MAJOR,4,2        ; @EMETA_VERSION_MAJOR
	.comm	_EMETA_VERSION_MINOR,4,2        ; @EMETA_VERSION_MINOR
	.no_dead_strip	_pblk_line_init_metadata
.subsections_via_symbols
