	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_md_bitmap_create               ## -- Begin function md_bitmap_create
	.p2align	4, 0x90
_md_bitmap_create:                      ## @md_bitmap_create
	.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	%esi, %r15d
	movq	%rdi, %r14
	movl	48(%rdi), %ebx
	movq	24(%rdi), %r12
	movl	$1, %edi
	callq	_BUILD_BUG_ON
	xorl	%edi, %edi
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	cmpq	$0, 16(%r14)
	setne	%dil
LBB0_2:
	callq	_BUG_ON
	movq	_MD_HAS_JOURNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	32(%r14), %r13
	movq	%r13, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_mdname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_notice
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_25
LBB0_5:
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.6:
	movq	%rax, %r15
	leaq	12(%rax), %rdi
	callq	_spin_lock_init
	leaq	60(%r15), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	56(%r15), %rdi
	callq	_init_waitqueue_head
	leaq	52(%r15), %rdi
	callq	_init_waitqueue_head
	leaq	48(%r15), %rdi
	callq	_init_waitqueue_head
	movq	%r14, 40(%r15)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r15)
	movq	40(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	callq	_sysfs_get_dirent
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdi
	callq	_sysfs_get_dirent
	movq	%rax, 32(%r15)
	movq	%rbx, %rdi
	callq	_sysfs_put
	jmp	LBB0_10
LBB0_9:
	movq	$0, 32(%r15)
LBB0_10:
	movq	%r12, 24(%r15)
	testq	%r12, %r12
	je	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	callq	_get_file
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_vfs_fsync
LBB0_12:
	cmpl	$0, 12(%r14)
	je	LBB0_17
## %bb.13:
	movl	8(%r14), %edx
	testl	%edx, %edx
	je	LBB0_15
## %bb.14:
	cmpq	$0, (%r14)
	jne	LBB0_22
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testl	%ebx, %ebx
	jne	LBB0_24
	jmp	LBB0_21
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_17:
	movq	_MD_ARRAY_FIRST_USE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_test_and_clear_bit
	movq	%r15, %rdi
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	callq	_md_bitmap_new_disk_sb
	jmp	LBB0_20
LBB0_19:
	callq	_md_bitmap_read_sb
LBB0_20:
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jne	LBB0_24
LBB0_21:
	movl	8(%r14), %edx
LBB0_22:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	$1, %ecx
	callq	_md_bitmap_resize
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_24
## %bb.23:
	movl	8(%r15), %ebx
	movq	%r15, %rdi
	callq	_bmname
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_pr_debug
	movq	_BITMAP_WRITE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	addq	$4, %rsi
	callq	_test_bit
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	testq	%rax, %rax
	cmovel	%edx, %ebx
	testl	%ebx, %ebx
	je	LBB0_26
LBB0_24:
	movq	%r15, %rdi
	callq	_md_bitmap_free
LBB0_25:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_26:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MD_HAS_JOURNAL,4,2             ## @MD_HAS_JOURNAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"md/raid:%s: array with journal cannot have bitmap\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"bitmap"

L_.str.2:                               ## @.str.2
	.asciz	"can_clear"

	.comm	_MD_ARRAY_FIRST_USE,4,2         ## @MD_ARRAY_FIRST_USE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_jiffies,4,2                    ## @jiffies
L_.str.3:                               ## @.str.3
	.asciz	"created bitmap (%lu pages) for device %s\n"

	.comm	_BITMAP_WRITE_ERROR,4,2         ## @BITMAP_WRITE_ERROR
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_md_bitmap_create               ; -- Begin function md_bitmap_create
	.p2align	2
_md_bitmap_create:                      ; @md_bitmap_create
	.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	x24, x1
	mov	x21, x0
	ldr	w20, [x0, #48]
	ldr	x22, [x0, #24]
	mov	w0, #1
	bl	_BUILD_BUG_ON
	cbz	x22, LBB0_2
; %bb.1:
	ldr	x8, [x21, #16]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_BUG_ON
Lloh0:
	adrp	x8, _MD_HAS_JOURNAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MD_HAS_JOURNAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x23, x21, #32
	mov	x1, x23
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x21
	bl	_mdname
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_notice
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_24
LBB0_6:
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w0, #64
	bl	_kzalloc
	cbz	x0, LBB0_16
; %bb.7:
	mov	x19, x0
	add	x0, x0, #12
	bl	_spin_lock_init
	add	x0, x19, #60
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #56
	bl	_init_waitqueue_head
	add	x0, x19, #52
	bl	_init_waitqueue_head
	add	x0, x19, #48
	bl	_init_waitqueue_head
	str	x21, [x19, #40]
	str	w24, [x19]
	ldr	x0, [x21, #40]
	cbz	x0, LBB0_10
; %bb.8:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_sysfs_get_dirent
	cbz	x0, LBB0_10
; %bb.9:
	mov	x24, x0
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_sysfs_get_dirent
	str	x0, [x19, #32]
	mov	x0, x24
	bl	_sysfs_put
	str	x22, [x19, #24]
	cbnz	x22, LBB0_11
	b	LBB0_12
LBB0_10:
	str	xzr, [x19, #32]
	str	x22, [x19, #24]
	cbz	x22, LBB0_12
LBB0_11:
	mov	x0, x22
	bl	_get_file
	mov	x0, x22
	mov	w1, #1
	bl	_vfs_fsync
LBB0_12:
	ldr	w8, [x21, #12]
	cbz	w8, LBB0_17
; %bb.13:
	ldr	w2, [x21, #8]
	cbz	w2, LBB0_15
; %bb.14:
	ldr	x8, [x21]
	cbnz	x8, LBB0_21
LBB0_15:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
	cbnz	w22, LBB0_23
	b	LBB0_20
LBB0_16:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_17:
Lloh19:
	adrp	x8, _MD_ARRAY_FIRST_USE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MD_ARRAY_FIRST_USE@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_test_and_clear_bit
	cbz	x0, LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_md_bitmap_new_disk_sb
	mov	x22, x0
	cbnz	w22, LBB0_23
	b	LBB0_20
LBB0_19:
	mov	x0, x19
	bl	_md_bitmap_read_sb
	mov	x22, x0
	cbnz	w22, LBB0_23
LBB0_20:
	ldr	w2, [x21, #8]
LBB0_21:
Lloh22:
	adrp	x8, _jiffies@GOTPAGE
Lloh23:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #1
	bl	_md_bitmap_resize
	mov	x22, x0
	cbnz	w0, LBB0_23
; %bb.22:
	ldr	w20, [x19, #8]
	mov	x0, x19
	bl	_bmname
	mov	x2, x0
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_pr_debug
Lloh27:
	adrp	x8, _BITMAP_WRITE_ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BITMAP_WRITE_ERROR@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_test_bit
Lloh30:
	adrp	x8, _EIO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w22, wzr, w8, eq
	cbz	w22, LBB0_25
LBB0_23:
	mov	x0, x19
	bl	_md_bitmap_free
LBB0_24:
	mov	x0, x22
	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
	b	_ERR_PTR
LBB0_25:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MD_HAS_JOURNAL,4,2             ; @MD_HAS_JOURNAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"md/raid:%s: array with journal cannot have bitmap\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"bitmap"

l_.str.2:                               ; @.str.2
	.asciz	"can_clear"

	.comm	_MD_ARRAY_FIRST_USE,4,2         ; @MD_ARRAY_FIRST_USE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_jiffies,4,2                    ; @jiffies
l_.str.3:                               ; @.str.3
	.asciz	"created bitmap (%lu pages) for device %s\n"

	.comm	_BITMAP_WRITE_ERROR,4,2         ; @BITMAP_WRITE_ERROR
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
