	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_md_bitmap_resize               ## -- Begin function md_bitmap_resize
	.p2align	4, 0x90
_md_bitmap_resize:                      ## @md_bitmap_resize
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %r12
	testl	%ecx, %ecx
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 72(%r12)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_64
LBB0_3:
	testl	%edx, %edx
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	je	LBB0_4
## %bb.65:
	notl	%edx
	movl	%edx, %edi
	callq	_ffz
	movl	%eax, %r14d
	movq	_BITMAP_BLOCK_SHIFT@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	$1, %r15d
	movl	%r14d, %ecx
	shll	%cl, %r15d
	jmp	LBB0_9
LBB0_4:
	movq	(%r12), %rax
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	jne	LBB0_6
## %bb.5:
	movq	8(%r12), %rdi
	movl	$8, %esi
	callq	_DIV_ROUND_UP
	movq	(%r12), %rcx
	leaq	4(%rax), %rdi
	cmpl	$0, 20(%rcx)
	cmovneq	%rax, %rdi
	movl	$512, %esi                      ## imm = 0x200
	callq	_DIV_ROUND_UP
	movq	%rax, %rbx
	movq	(%r12), %rax
	movq	%rbx, 8(%rax)
LBB0_6:
	movl	16(%r12), %r14d
	shlq	$9, %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %r15d
	movl	%r14d, %ecx
	shll	%cl, %r15d
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	_DIV_ROUND_UP_SECTOR_T
	movq	%rax, %rdi
	movl	$8, %esi
	callq	_DIV_ROUND_UP
	movq	(%r12), %rcx
	leaq	4(%rax), %rdx
	cmpl	$0, 20(%rcx)
	cmovneq	%rax, %rdx
	incl	%r14d
	cmpq	%rbx, %rdx
	jg	LBB0_7
## %bb.8:
	decl	%r14d
LBB0_9:
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	_DIV_ROUND_UP_SECTOR_T
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	-128(%rbp), %rdi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	(%r12), %rdi
	cmpq	$0, 32(%rdi)
	jne	LBB0_11
## %bb.10:
	cmpq	$0, 24(%rdi)
	je	LBB0_16
LBB0_11:
	xorl	%ebx, %ebx
	cmpl	$0, 20(%rdi)
	sete	%bl
	callq	_mddev_is_clustered
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	80(%r12), %r13d
LBB0_13:
	leaq	-128(%rbp), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	%r13d, %ecx
	callq	_md_bitmap_storage_alloc
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_16:
	movq	_PAGE_COUNTER_RATIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_DIV_ROUND_UP
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$24, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	%rax, %r13
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	cmpl	$0, -76(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_20
## %bb.19:
	movq	(%r12), %rdi
	movq	(%rdi), %rax
	movl	$1, %esi
	callq	*(%rax)
LBB0_20:
	leaq	56(%r12), %rbx
	movq	72(%r12), %rax
	movq	%rax, -112(%rbp)
	movq	$0, 72(%r12)
	movq	-120(%rbp), %rdi
	testq	%rdi, %rdi
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_23
## %bb.21:
	cmpq	$0, 64(%r12)
	je	LBB0_23
## %bb.22:
	callq	_page_address
	movq	%rbx, %r13
	movl	%eax, %ebx
	movq	64(%r12), %rdi
	callq	_page_address
	movl	%ebx, %edi
	movq	%r13, %rbx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, %esi
	movl	$4, %edx
	callq	_memcpy
LBB0_23:
	movq	%rbx, %rdi
	callq	_md_bitmap_file_unmap
	movq	-112(%rbp), %rax
	movq	%rax, 16(%rbx)
	movups	-128(%rbp), %xmm0
	movq	%rbx, -184(%rbp)                ## 8-byte Spill
	movups	%xmm0, (%rbx)
	movups	8(%r12), %xmm0
	movups	24(%r12), %xmm1
	movups	40(%r12), %xmm2
	movaps	%xmm2, -144(%rbp)
	movaps	%xmm1, -160(%rbp)
	movaps	%xmm0, -176(%rbp)
	movq	%r13, 48(%r12)
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, 24(%r12)
	movq	%r13, 32(%r12)
	movl	%r14d, 16(%r12)
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rsi, 8(%r12)
	movq	_BITMAP_BLOCK_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	addl	%r14d, %ecx
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	leaq	8(%r12), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rcx
	movl	%eax, 16(%rcx)
	movq	-176(%rbp), %rdi
	movb	-168(%rbp), %cl
	shlq	%cl, %rdi
	leaq	40(%r12), %rbx
	movl	%r14d, %ecx
	shlq	%cl, %rsi
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	_min
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	movq	(%r12), %rdi
	callq	_mddev_is_clustered
	testq	%rax, %rax
	je	LBB0_32
## %bb.24:
	testq	%r13, %r13
	je	LBB0_32
## %bb.25:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_md_bitmap_checkpage
	testl	%eax, %eax
	jne	LBB0_27
## %bb.31:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	48(%r12), %rax
	incl	(%rax,%r13)
	incq	%rbx
	addq	$24, %r13
	cmpq	%rbx, -96(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_26
LBB0_32:
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_33
LBB0_34:
	movl	$-1, %eax
	movl	%r14d, %ecx
	shll	%cl, %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	leaq	-176(%rbp), %rbx
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_44:                                ##   in Loop: Header=BB0_35 Depth=1
	addl	-48(%rbp), %r13d
	cmpl	%r14d, %r13d
	jge	LBB0_45
LBB0_35:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_39 Depth 2
	movq	%rbx, %rdi
	movl	%r13d, %esi
	leaq	-48(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_md_bitmap_get_counter
	testq	%rax, %rax
	je	LBB0_44
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=1
	movl	(%rax), %edi
	callq	_NEEDED
	testq	%rax, %rax
	je	LBB0_44
## %bb.37:                              ##   in Loop: Header=BB0_35 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	leaq	-44(%rbp), %rdx
	movl	$1, %ecx
	callq	_md_bitmap_get_counter
	movl	(%rax), %edx
	testl	%edx, %edx
	jne	LBB0_42
## %bb.38:                              ##   in Loop: Header=BB0_35 Depth=1
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %ebx
	addl	%r13d, %ebx
	movq	%r12, %r14
	movl	%r13d, %r12d
	andl	-64(%rbp), %r12d                ## 4-byte Folded Reload
	cmpl	%ebx, %r12d
	jge	LBB0_41
	.p2align	4, 0x90
LBB0_39:                                ##   Parent Loop BB0_35 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_md_bitmap_file_set_bit
	addl	%r15d, %r12d
	cmpl	%ebx, %r12d
	jl	LBB0_39
LBB0_41:                                ##   in Loop: Header=BB0_35 Depth=1
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movl	$2, (%r12)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	$1, %edx
	callq	_md_bitmap_count_page
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_md_bitmap_set_pending
	movq	%r12, %rax
	movl	(%r12), %edx
	movq	%r14, %r12
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	leaq	-176(%rbp), %rbx
LBB0_42:                                ##   in Loop: Header=BB0_35 Depth=1
	movq	_NEEDED_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, (%rax)
	movl	-44(%rbp), %eax
	cmpl	-48(%rbp), %eax
	jge	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_35 Depth=1
	movl	%eax, -48(%rbp)
	jmp	LBB0_44
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	leaq	-128(%rbp), %rdi
	callq	_md_bitmap_file_unmap
	jmp	LBB0_64
LBB0_27:
	testq	%rbx, %rbx
	je	LBB0_30
## %bb.28:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	addq	$8, %r13
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	callq	_kfree
	addq	$24, %r13
	decq	%rbx
	jne	LBB0_29
LBB0_30:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	movq	-136(%rbp), %rax
	movq	%rax, 48(%r12)
	movq	-160(%rbp), %rax
	movq	%rax, 24(%r12)
	movq	%rax, 32(%r12)
	movl	-168(%rbp), %eax
	movl	%eax, 16(%r12)
	movq	-176(%rbp), %rsi
	movq	%rsi, 8(%r12)
	movq	_BITMAP_BLOCK_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movq	(%r12), %rcx
	movl	%edx, 16(%rcx)
	movl	%eax, %ecx
	shlq	%cl, %rsi
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_warn
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	jg	LBB0_34
LBB0_33:
	xorl	%r13d, %r13d
LBB0_45:
	movq	-136(%rbp), %rdi
	cmpq	%rdi, 48(%r12)
	je	LBB0_52
## %bb.46:
	movq	-160(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_51
## %bb.47:
	movl	$16, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_48
	.p2align	4, 0x90
LBB0_50:                                ##   in Loop: Header=BB0_48 Depth=1
	incq	%r14
	movq	-136(%rbp), %rdi
	addq	$24, %rbx
	cmpq	%rax, %r14
	jae	LBB0_51
LBB0_48:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rdi,%rbx)
	jne	LBB0_50
## %bb.49:                              ##   in Loop: Header=BB0_48 Depth=1
	movq	-8(%rdi,%rbx), %rdi
	callq	_kfree
	movq	-160(%rbp), %rax
	jmp	LBB0_50
LBB0_51:
	callq	_kfree
LBB0_52:
	cmpl	$0, -76(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_53
## %bb.63:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_spin_unlock_irq
	xorl	%ebx, %ebx
	jmp	LBB0_64
LBB0_53:
	movslq	%r13d, %rax
	cmpq	%rax, -56(%rbp)                 ## 8-byte Folded Reload
	jbe	LBB0_59
## %bb.54:
	leaq	-44(%rbp), %r14
	movq	_NEEDED_MASK@GOTPCREL(%rip), %r15
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_55
	.p2align	4, 0x90
LBB0_58:                                ##   in Loop: Header=BB0_55 Depth=1
	movslq	-44(%rbp), %rax
	movslq	%r13d, %r13
	addq	%rax, %r13
	cmpq	%r13, -56(%rbp)                 ## 8-byte Folded Reload
	jbe	LBB0_59
LBB0_55:                                ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movq	%r14, %rdx
	movl	$1, %ecx
	callq	_md_bitmap_get_counter
	testq	%rax, %rax
	je	LBB0_58
## %bb.56:                              ##   in Loop: Header=BB0_55 Depth=1
	cmpl	$0, (%rax)
	jne	LBB0_58
## %bb.57:                              ##   in Loop: Header=BB0_55 Depth=1
	movl	(%r15), %ecx
	orl	$2, %ecx
	movl	%ecx, (%rax)
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	$1, %edx
	callq	_md_bitmap_count_page
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_md_bitmap_set_pending
	jmp	LBB0_58
LBB0_59:
	movq	-184(%rbp), %rax                ## 8-byte Reload
	cmpl	$0, (%rax)
	jle	LBB0_62
## %bb.60:
	xorl	%ebx, %ebx
	movq	_BITMAP_PAGE_DIRTY@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_61:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_set_page_attr
	incl	%ebx
	cmpl	56(%r12), %ebx
	jl	LBB0_61
LBB0_62:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_spin_unlock_irq
	movq	%r12, %rdi
	callq	_md_bitmap_unplug
	movq	(%r12), %rdi
	movq	(%rdi), %rax
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	*(%rax)
LBB0_64:
	movl	%ebx, %eax
	addq	$152, %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	"md: cannot resize file-based bitmap\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BITMAP_BLOCK_SHIFT,4,2         ## @BITMAP_BLOCK_SHIFT
	.comm	_PAGE_COUNTER_RATIO,4,2         ## @PAGE_COUNTER_RATIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Could not pre-allocate in-memory bitmap for cluster raid\n"

	.comm	_NEEDED_MASK,4,2                ## @NEEDED_MASK
	.comm	_BITMAP_PAGE_DIRTY,4,2          ## @BITMAP_PAGE_DIRTY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_md_bitmap_resize               ; -- Begin function md_bitmap_resize
	.p2align	2
_md_bitmap_resize:                      ; @md_bitmap_resize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x27, x3
	mov	x22, x1
	mov	x19, x0
	cbnz	w3, LBB0_3
; %bb.1:
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_66
LBB0_3:
	cbz	w2, LBB0_5
; %bb.4:
	mvn	w0, w2
	bl	_ffz
Lloh5:
	adrp	x8, _BITMAP_BLOCK_SHIFT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BITMAP_BLOCK_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	sub	w20, w0, w8
	mov	w8, #1
	lsl	w21, w8, w20
	b	LBB0_10
LBB0_5:
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	cbnz	x0, LBB0_7
; %bb.6:
	ldr	x0, [x19, #8]
	mov	w1, #8
	bl	_DIV_ROUND_UP
	ldr	x8, [x19]
	ldr	w8, [x8, #20]
	add	x9, x0, #4
	cmp	w8, #0
	csel	x0, x9, x0, eq
	mov	w1, #512
	bl	_DIV_ROUND_UP
	ldr	x8, [x19]
	str	x0, [x8, #8]
LBB0_7:
	ldr	w20, [x19, #16]
	lsl	x23, x0, #9
	mov	w24, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w21, w24, w20
	mov	x0, x22
	mov	x1, x21
	bl	_DIV_ROUND_UP_SECTOR_T
	mov	w1, #8
	bl	_DIV_ROUND_UP
	ldr	x8, [x19]
	ldr	w8, [x8, #20]
	add	x9, x0, #4
	cmp	w8, #0
	csel	x8, x9, x0, eq
	add	w20, w20, #1
	cmp	x8, x23
	b.gt	LBB0_8
; %bb.9:
	sub	w20, w20, #1
LBB0_10:
	mov	x0, x22
	mov	x1, x21
	bl	_DIV_ROUND_UP_SECTOR_T
	mov	x25, x0
	add	x0, sp, #104
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	x0, [x19]
	ldr	x8, [x0, #32]
	cbnz	x8, LBB0_12
; %bb.11:
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_17
LBB0_12:
	ldr	w8, [x0, #20]
	cmp	w8, #0
	cset	w22, eq
	bl	_mddev_is_clustered
	cbz	x0, LBB0_14
; %bb.13:
	ldr	w3, [x19, #80]
	b	LBB0_15
LBB0_14:
	mov	w3, #0
LBB0_15:
	add	x0, sp, #104
	mov	x1, x25
	mov	x2, x22
	bl	_md_bitmap_storage_alloc
	cbz	w0, LBB0_17
; %bb.16:
	mov	x22, x0
	b	LBB0_40
LBB0_17:
Lloh8:
	adrp	x8, _PAGE_COUNTER_RATIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PAGE_COUNTER_RATIO@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_DIV_ROUND_UP
	mov	x28, x0
Lloh11:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_kcalloc
	cbz	x0, LBB0_39
; %bb.18:
	mov	x26, x0
	cbnz	w27, LBB0_20
; %bb.19:
	ldr	x0, [x19]
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	w1, #1
	blr	x8
LBB0_20:
	str	w27, [sp, #36]                  ; 4-byte Folded Spill
	add	x22, x19, #56
	ldr	x8, [x19, #72]
	str	x8, [sp, #120]
	str	xzr, [x19, #72]
	ldr	x0, [sp, #112]
	cbz	x0, LBB0_23
; %bb.21:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_23
; %bb.22:
	bl	_page_address
	mov	x23, x0
	ldr	x0, [x19, #64]
	bl	_page_address
	mov	x1, x0
	mov	x0, x23
	mov	w2, #4
	bl	_memcpy
LBB0_23:
	mov	x0, x22
	bl	_md_bitmap_file_unmap
	ldur	q0, [sp, #104]
	str	q0, [x22]
	ldr	x8, [sp, #120]
	str	x22, [sp, #16]                  ; 8-byte Folded Spill
	str	x8, [x22, #16]
	add	x24, x19, #8
	ldur	q2, [x19, #40]
	ldur	q0, [x19, #24]
	ldur	q1, [x19, #8]
	stp	q0, q2, [sp, #64]
	str	q1, [sp, #48]
	add	x22, x19, #40
	str	x26, [x19, #48]
	stp	x28, x28, [x19, #24]
	str	w20, [x19, #16]
	str	x25, [x19, #8]
Lloh14:
	adrp	x23, _BITMAP_BLOCK_SHIFT@GOTPAGE
Lloh15:
	ldr	x23, [x23, _BITMAP_BLOCK_SHIFT@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w8, w8, w20
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	x9, [x19]
	str	w8, [x9, #16]
	ldr	x8, [sp, #48]
	ldr	w9, [sp, #56]
	lsl	x0, x8, x9
	lsl	x1, x25, x20
                                        ; kill: def $w0 killed $w0 killed $x0
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	bl	_min
	mov	x27, x0
	str	x22, [sp, #24]                  ; 8-byte Folded Spill
	mov	x0, x22
	bl	_spin_lock_irq
	ldr	x0, [x19]
	bl	_mddev_is_clustered
	cbz	x0, LBB0_28
; %bb.24:
	cbz	x28, LBB0_28
; %bb.25:
	mov	x25, x23
	mov	x22, #0
	mov	x23, #0
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	mov	x1, x23
	mov	w2, #1
	mov	w3, #1
	bl	_md_bitmap_checkpage
	cbnz	w0, LBB0_41
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	x8, [x19, #48]
	ldr	w9, [x8, x22]
	add	w9, w9, #1
	str	w9, [x8, x22]
	add	x23, x23, #1
	add	x22, x22, #24
	cmp	x28, x23
	b.ne	LBB0_26
LBB0_28:
	cmp	w27, #1
	b.lt	LBB0_45
LBB0_29:
	mov	w26, #0
	mov	w8, #-1
	lsl	w20, w8, w20
Lloh16:
	adrp	x22, _NEEDED_MASK@GOTPAGE
Lloh17:
	ldr	x22, [x22, _NEEDED_MASK@GOTPAGEOFF]
	b	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_31 Depth=1
	ldr	w8, [sp, #44]
	add	w26, w8, w26
	cmp	w26, w27
	b.ge	LBB0_46
LBB0_31:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_35 Depth 2
	add	x0, sp, #48
	add	x2, sp, #44
	mov	x1, x26
	mov	w3, #0
	bl	_md_bitmap_get_counter
	cbz	x0, LBB0_30
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=1
	ldr	w0, [x0]
	bl	_NEEDED
	cbz	x0, LBB0_30
; %bb.33:                               ;   in Loop: Header=BB0_31 Depth=1
	add	x2, sp, #40
	mov	x0, x24
	mov	x1, x26
	mov	w3, #1
	bl	_md_bitmap_get_counter
	mov	x23, x0
	ldr	w8, [x0]
	cbnz	w8, LBB0_37
; %bb.34:                               ;   in Loop: Header=BB0_31 Depth=1
	ldr	w8, [sp, #40]
	and	w28, w26, w20
	add	w25, w8, w26
	cmp	w28, w25
	b.ge	LBB0_36
LBB0_35:                                ;   Parent Loop BB0_31 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x26
	bl	_md_bitmap_file_set_bit
	add	w28, w28, w21
	cmp	w28, w25
	b.lt	LBB0_35
LBB0_36:                                ;   in Loop: Header=BB0_31 Depth=1
	mov	w8, #2
	str	w8, [x23]
	mov	x0, x24
	mov	x1, x26
	mov	w2, #1
	bl	_md_bitmap_count_page
	mov	x0, x24
	mov	x1, x26
	bl	_md_bitmap_set_pending
	ldr	w8, [x23]
LBB0_37:                                ;   in Loop: Header=BB0_31 Depth=1
	ldr	w9, [x22]
	orr	w8, w8, w9
	str	w8, [x23]
	ldp	w8, w9, [sp, #40]
	cmp	w8, w9
	b.ge	LBB0_30
; %bb.38:                               ;   in Loop: Header=BB0_31 Depth=1
	str	w8, [sp, #44]
	b	LBB0_30
LBB0_39:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_40:
	add	x0, sp, #104
	bl	_md_bitmap_file_unmap
	b	LBB0_66
LBB0_41:
	cbz	x23, LBB0_44
; %bb.42:
	add	x22, x26, #8
LBB0_43:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22], #24
	bl	_kfree
	subs	x23, x23, #1
	b.ne	LBB0_43
LBB0_44:
	mov	x0, x26
	bl	_kfree
	ldr	x8, [sp, #88]
	ldr	x9, [sp, #64]
	str	x8, [x19, #48]
	stp	x9, x9, [x19, #24]
	ldr	w8, [sp, #56]
	str	w8, [x19, #16]
	ldr	x9, [sp, #48]
	str	x9, [x19, #8]
	ldr	w10, [x25]
	add	w10, w10, w8
	mov	w11, #1
	lsl	w10, w11, w10
	ldr	x11, [x19]
	str	w10, [x11, #16]
	lsl	x27, x9, x8
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn
	cmp	w27, #1
	b.ge	LBB0_29
LBB0_45:
	mov	w26, #0
LBB0_46:
	ldr	x8, [x19, #48]
	ldr	x0, [sp, #88]
	cmp	x8, x0
	ldr	w22, [sp, #36]                  ; 4-byte Folded Reload
	b.eq	LBB0_53
; %bb.47:
	ldr	x8, [sp, #64]
	cbz	x8, LBB0_52
; %bb.48:
	mov	x20, #0
	mov	x21, #0
	b	LBB0_50
LBB0_49:                                ;   in Loop: Header=BB0_50 Depth=1
	add	x21, x21, #1
	ldr	x0, [sp, #88]
	add	x20, x20, #24
	cmp	x21, x8
	b.hs	LBB0_52
LBB0_50:                                ; =>This Inner Loop Header: Depth=1
	add	x9, x0, x20
	ldr	w10, [x9, #16]
	cbnz	w10, LBB0_49
; %bb.51:                               ;   in Loop: Header=BB0_50 Depth=1
	ldr	x0, [x9, #8]
	bl	_kfree
	ldr	x8, [sp, #64]
	b	LBB0_49
LBB0_52:
	bl	_kfree
LBB0_53:
	cbz	w22, LBB0_55
; %bb.54:
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_spin_unlock_irq
	b	LBB0_65
LBB0_55:
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	cmp	x21, w26, sxtw
	b.ls	LBB0_61
; %bb.56:
Lloh23:
	adrp	x20, _NEEDED_MASK@GOTPAGE
Lloh24:
	ldr	x20, [x20, _NEEDED_MASK@GOTPAGEOFF]
	b	LBB0_58
LBB0_57:                                ;   in Loop: Header=BB0_58 Depth=1
	ldrsw	x8, [sp, #40]
	add	x26, x8, w26, sxtw
	cmp	x21, x26
	b.ls	LBB0_61
LBB0_58:                                ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #40
	mov	x0, x24
	mov	x1, x26
	mov	w3, #1
	bl	_md_bitmap_get_counter
	cbz	x0, LBB0_57
; %bb.59:                               ;   in Loop: Header=BB0_58 Depth=1
	ldr	w8, [x0]
	cbnz	w8, LBB0_57
; %bb.60:                               ;   in Loop: Header=BB0_58 Depth=1
	ldr	w8, [x20]
	orr	w8, w8, #0x2
	str	w8, [x0]
	mov	x0, x24
	mov	x1, x26
	mov	w2, #1
	bl	_md_bitmap_count_page
	mov	x0, x24
	mov	x1, x26
	bl	_md_bitmap_set_pending
	b	LBB0_57
LBB0_61:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_64
; %bb.62:
	mov	w20, #0
Lloh25:
	adrp	x21, _BITMAP_PAGE_DIRTY@GOTPAGE
Lloh26:
	ldr	x21, [x21, _BITMAP_PAGE_DIRTY@GOTPAGEOFF]
LBB0_63:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_set_page_attr
	add	w20, w20, #1
	ldr	w8, [x19, #56]
	cmp	w20, w8
	b.lt	LBB0_63
LBB0_64:
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_md_bitmap_unplug
	ldr	x0, [x19]
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	w1, #0
	blr	x8
LBB0_65:
	mov	w22, #0
LBB0_66:
	mov	x0, x22
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"md: cannot resize file-based bitmap\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BITMAP_BLOCK_SHIFT,4,2         ; @BITMAP_BLOCK_SHIFT
	.comm	_PAGE_COUNTER_RATIO,4,2         ; @PAGE_COUNTER_RATIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Could not pre-allocate in-memory bitmap for cluster raid\n"

	.comm	_NEEDED_MASK,4,2                ; @NEEDED_MASK
	.comm	_BITMAP_PAGE_DIRTY,4,2          ; @BITMAP_PAGE_DIRTY
.subsections_via_symbols
