	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pblk_line_init_bb
_pblk_line_init_bb:                     ## @pblk_line_init_bb
	.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	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	40(%rdi), %r13
	movl	16(%rdi), %eax
	movl	%eax, (%rsi)
	movl	60(%rsi), %edi
	movl	20(%r12), %esi
	xorl	%edx, %edx
	callq	_find_next_bit
	movl	20(%r12), %esi
	cmpl	%esi, %eax
	jge	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edx
	imull	%ebx, %edx
	movl	4(%r12), %edi
	movl	8(%r12), %esi
	movl	16(%r12), %ecx
	callq	_bitmap_shift_left
	movl	56(%r14), %edi
	movl	4(%r12), %edx
	movl	16(%r12), %ecx
	movl	%edi, %esi
	callq	_bitmap_or
	movl	8(%r13), %eax
	subl	%eax, (%r14)
	movl	60(%r14), %edi
	movl	20(%r12), %esi
	incl	%ebx
	movl	%ebx, %edx
	callq	_find_next_bit
	movl	%eax, %ebx
	movl	20(%r12), %esi
	cmpl	%esi, %eax
	jl	LBB0_2
LBB0_3:
	movl	60(%r14), %edi
	callq	_find_first_zero_bit
	movl	%eax, %ebx
	imull	(%r13), %ebx
	movl	56(%r14), %edi
	movl	24(%r12), %edx
	movl	%ebx, %esi
	callq	_bitmap_set
	movl	24(%r12), %eax
	subl	%eax, (%r14)
	addl	%ebx, %eax
	movl	%eax, 4(%r14)
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.4:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_pblk_line_smeta_write
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_pblk_debug
	jmp	LBB0_13
LBB0_6:
	movl	32(%r14), %edi
	movl	56(%r14), %esi
	movl	16(%r12), %edx
	callq	_bitmap_copy
	movq	32(%r12), %rax
	movl	(%rax), %r15d
	movl	16(%r12), %ebx
	testl	%r15d, %r15d
	jne	LBB0_7
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	testl	%r15d, %r15d
	je	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	subl	(%r13), %ebx
	movl	32(%r14), %esi
	movl	%ebx, %edi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	32(%r14), %edi
	movl	(%r13), %edx
	movl	%ebx, %esi
	callq	_bitmap_set
	subl	(%r13), %r15d
	jmp	LBB0_9
LBB0_10:
	movq	32(%r12), %rax
LBB0_11:
	movl	%ebx, 8(%r14)
	movl	(%r14), %edi
	subl	(%rax), %edi
	movl	%edi, (%r14)
	movq	$0, 48(%r14)
	movl	%edi, 12(%r14)
	callq	_cpu_to_le32
	movq	40(%r14), %rcx
	movl	%eax, (%rcx)
	movslq	16(%r12), %rsi
	movslq	(%r14), %rax
	movq	%rsi, %rbx
	subq	%rax, %rbx
	movl	32(%r14), %edi
	callq	_bitmap_weight
	movq	%rax, %rcx
	movl	$1, %eax
	cmpq	%rbx, %rcx
	je	LBB0_14
## %bb.12:
	leaq	24(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	_PBLK_LINESTATE_BAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	movq	%r12, %rdi
	callq	_pblk_disk_name
	movl	16(%r14), %esi
	movl	28(%r14), %edx
	movl	%eax, %edi
	callq	_trace_pblk_line_state
	movq	%rbx, %rdi
	callq	_spin_unlock
	leaq	20(%r14), %rdi
	movq	%r12, %rsi
	callq	_list_add_tail
	movl	16(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_pblk_err
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"line smeta I/O failed. Retry\n"

	.comm	_PBLK_LINESTATE_BAD,4,2         ## @PBLK_LINESTATE_BAD
L_.str.1:                               ## @.str.1
	.asciz	"unexpected line %d is bad\n"

	.no_dead_strip	_pblk_line_init_bb
.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_bb
_pblk_line_init_bb:                     ; @pblk_line_init_bb
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x23, [x0, #40]
	ldp	w8, w1, [x0, #16]
	str	w8, [x20]
	ldr	w0, [x20, #60]
	mov	w2, #0
	bl	_find_next_bit
	ldr	w1, [x19, #20]
	cmp	w0, w1
	b.ge	LBB0_3
; %bb.1:
	mov	x22, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	mul	w2, w8, w22
	ldp	w0, w1, [x19, #4]
	ldr	w3, [x19, #16]
	bl	_bitmap_shift_left
	ldr	w0, [x20, #56]
	ldr	w2, [x19, #4]
	ldr	w3, [x19, #16]
	mov	x1, x0
	bl	_bitmap_or
	ldr	w8, [x23, #8]
	ldr	w9, [x20]
	sub	w8, w9, w8
	str	w8, [x20]
	ldr	w0, [x20, #60]
	ldr	w1, [x19, #20]
	add	w2, w22, #1
	bl	_find_next_bit
	mov	x22, x0
	ldr	w1, [x19, #20]
	cmp	w0, w1
	b.lt	LBB0_2
LBB0_3:
	ldr	w0, [x20, #60]
	bl	_find_first_zero_bit
	ldr	w8, [x23]
	mul	w22, w8, w0
	ldr	w0, [x20, #56]
	ldr	w2, [x19, #24]
	mov	x1, x22
	bl	_bitmap_set
	ldr	w8, [x19, #24]
	ldr	w9, [x20]
	sub	w9, w9, w8
	add	w8, w8, w22
	stp	w9, w8, [x20]
	cbz	w21, LBB0_6
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_pblk_line_smeta_write
	cbz	x0, LBB0_6
; %bb.5:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_pblk_debug
	b	LBB0_14
LBB0_6:
	ldr	w0, [x20, #32]
	ldr	w1, [x20, #56]
	ldr	w2, [x19, #16]
	bl	_bitmap_copy
	ldr	x8, [x19, #32]
	ldr	w22, [x8]
	ldr	w21, [x19, #16]
	cbnz	w22, LBB0_8
	b	LBB0_11
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	cbz	w22, LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	sub	w21, w21, w8
	ldr	w1, [x20, #32]
	mov	x0, x21
	bl	_test_bit
	cbnz	w0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x20, #32]
	ldr	w2, [x23]
	mov	x1, x21
	bl	_bitmap_set
	ldr	w8, [x23]
	sub	w22, w22, w8
	b	LBB0_7
LBB0_10:
	ldr	x8, [x19, #32]
LBB0_11:
	str	w21, [x20, #8]
	ldr	w8, [x8]
	ldr	w9, [x20]
	sub	w0, w9, w8
	str	w0, [x20]
	str	xzr, [x20, #48]
	str	w0, [x20, #12]
	bl	_cpu_to_le32
	ldr	x8, [x20, #40]
	str	w0, [x8]
	ldrsw	x1, [x19, #16]
	ldrsw	x8, [x20]
	sub	x21, x1, x8
	ldr	w0, [x20, #32]
	bl	_bitmap_weight
	cmp	x0, x21
	b.ne	LBB0_13
; %bb.12:
	mov	w0, #1
	b	LBB0_15
LBB0_13:
	add	x21, x20, #24
	mov	x0, x21
	bl	_spin_lock
Lloh2:
	adrp	x8, _PBLK_LINESTATE_BAD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PBLK_LINESTATE_BAD@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20, #28]
	mov	x0, x19
	bl	_pblk_disk_name
	ldr	w1, [x20, #16]
	ldr	w2, [x20, #28]
	bl	_trace_pblk_line_state
	mov	x0, x21
	bl	_spin_unlock
	add	x0, x20, #20
	mov	x1, x19
	bl	_list_add_tail
	ldr	w2, [x20, #16]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_pblk_err
LBB0_14:
	mov	w0, #0
LBB0_15:
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"line smeta I/O failed. Retry\n"

	.comm	_PBLK_LINESTATE_BAD,4,2         ; @PBLK_LINESTATE_BAD
l_.str.1:                               ; @.str.1
	.asciz	"unexpected line %d is bad\n"

	.no_dead_strip	_pblk_line_init_bb
.subsections_via_symbols
