	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function md_bitmap_new_disk_sb
_md_bitmap_new_disk_sb:                 ## @md_bitmap_new_disk_sb
	.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, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movq	___GFP_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_alloc_page
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	$0, (%rax)
	movq	%rax, %rdi
	callq	_kmap_atomic
	movq	%rax, %r14
	movq	_BITMAP_MAGIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_cpu_to_le32
	movq	%rax, 64(%r14)
	movq	_BITMAP_MAJOR_HI@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_cpu_to_le32
	movq	%rax, 56(%r14)
	movq	8(%r15), %rax
	movq	(%rax), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_BUG_ON
	movq	%rbx, %rdi
	callq	_is_power_of_2
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	callq	_cpu_to_le32
	movq	%rax, 48(%r14)
	movq	8(%r15), %rax
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.6:
	movq	_MAX_SCHEDULE_TIMEOUT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jbe	LBB0_8
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_debug
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rax,%rax,4), %rbx
LBB0_8:
	movq	%rbx, %rdi
	callq	_cpu_to_le32
	movq	%rax, 40(%r14)
	movq	8(%r15), %rax
	movq	%rbx, 8(%rax)
	movq	16(%rax), %rax
	movq	_COUNTER_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, %rbx
	shrq	%rbx
	cmpq	%rcx, %rax
	cmovbeq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_cpu_to_le32
	movq	%rax, 32(%r14)
	movq	8(%r15), %rax
	movq	%rbx, 16(%rax)
	movl	40(%rax), %edi
	callq	_cpu_to_le64
	movq	%rax, 24(%r14)
	movl	16(%r14), %edi
	movq	8(%r15), %rax
	movl	36(%rax), %esi
	movl	$16, %edx
	callq	_memcpy
	movq	_BITMAP_STALE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_set_bit
	movq	(%r15), %rdi
	callq	_cpu_to_le32
	movq	%rax, 8(%r14)
	movq	8(%r15), %rax
	movl	32(%rax), %edi
	movl	%edi, 16(%r15)
	callq	_cpu_to_le64
	movq	%rax, (%r14)
	movq	8(%r15), %rax
	movq	$0, 24(%rax)
	movq	%r14, %rdi
	callq	_kunmap_atomic
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	%r14, %rdi
	callq	_kunmap_atomic
	leaq	L_.str(%rip), %rdi
	callq	_pr_warn
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BITMAP_MAGIC,8,3               ## @BITMAP_MAGIC
	.comm	_BITMAP_MAJOR_HI,8,3            ## @BITMAP_MAJOR_HI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bitmap chunksize not a power of 2\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAX_SCHEDULE_TIMEOUT,8,3       ## @MAX_SCHEDULE_TIMEOUT
L_.str.1:                               ## @.str.1
	.asciz	"Choosing daemon_sleep default (5 sec)\n"

	.comm	_HZ,4,2                         ## @HZ
	.comm	_COUNTER_MAX,8,3                ## @COUNTER_MAX
	.comm	_BITMAP_STALE,4,2               ## @BITMAP_STALE
	.no_dead_strip	_md_bitmap_new_disk_sb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function md_bitmap_new_disk_sb
_md_bitmap_new_disk_sb:                 ; @md_bitmap_new_disk_sb
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, ___GFP_ZERO@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___GFP_ZERO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_alloc_page
	str	x0, [x19, #24]
	cbz	x0, LBB0_6
; %bb.1:
	str	xzr, [x0]
	bl	_kmap_atomic
	mov	x20, x0
Lloh6:
	adrp	x8, _BITMAP_MAGIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BITMAP_MAGIC@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	bl	_cpu_to_le32
	str	x0, [x20, #64]
Lloh9:
	adrp	x8, _BITMAP_MAJOR_HI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BITMAP_MAJOR_HI@GOTPAGEOFF]
Lloh11:
	ldr	x0, [x8]
	bl	_cpu_to_le32
	str	x0, [x20, #56]
	ldr	x8, [x19, #8]
	ldr	x21, [x8]
	cmp	x21, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x21
	bl	_is_power_of_2
	cbz	w0, LBB0_7
; %bb.2:
	mov	x0, x21
	bl	_cpu_to_le32
	str	x0, [x20, #48]
	ldr	x8, [x19, #8]
	ldr	x21, [x8, #8]
	cbz	x21, LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _MAX_SCHEDULE_TIMEOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAX_SCHEDULE_TIMEOUT@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ls	LBB0_5
LBB0_4:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
Lloh17:
	adrp	x8, _HZ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh19:
	ldrsw	x8, [x8]
	add	x21, x8, x8, lsl #2
LBB0_5:
	mov	x0, x21
	bl	_cpu_to_le32
	str	x0, [x20, #40]
	ldr	x8, [x19, #8]
	str	x21, [x8, #8]
	ldr	x8, [x8, #16]
Lloh20:
	adrp	x9, _COUNTER_MAX@GOTPAGE
Lloh21:
	ldr	x9, [x9, _COUNTER_MAX@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	lsr	x10, x9, #1
	cmp	x8, x9
	csel	x21, x10, x8, hi
	mov	x0, x21
	bl	_cpu_to_le32
	str	x0, [x20, #32]
	ldr	x8, [x19, #8]
	str	x21, [x8, #16]
	ldr	w0, [x8, #40]
	bl	_cpu_to_le64
	str	x0, [x20, #24]
	ldr	w0, [x20, #16]
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #36]
	mov	w2, #16
	bl	_memcpy
Lloh23:
	adrp	x8, _BITMAP_STALE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BITMAP_STALE@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
	ldr	x0, [x19]
	bl	_cpu_to_le32
	str	x0, [x20, #8]
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #32]
	str	w0, [x19, #16]
	bl	_cpu_to_le64
	str	x0, [x20]
	ldr	x8, [x19, #8]
	str	xzr, [x8, #24]
	mov	x0, x20
	bl	_kunmap_atomic
	mov	w0, #0
	b	LBB0_9
LBB0_6:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	mov	x0, x20
	bl	_kunmap_atomic
Lloh28:
	adrp	x0, l_.str@PAGE
Lloh29:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
Lloh30:
	adrp	x8, _EINVAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BITMAP_MAGIC,8,3               ; @BITMAP_MAGIC
	.comm	_BITMAP_MAJOR_HI,8,3            ; @BITMAP_MAJOR_HI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bitmap chunksize not a power of 2\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAX_SCHEDULE_TIMEOUT,8,3       ; @MAX_SCHEDULE_TIMEOUT
l_.str.1:                               ; @.str.1
	.asciz	"Choosing daemon_sleep default (5 sec)\n"

	.comm	_HZ,4,2                         ; @HZ
	.comm	_COUNTER_MAX,8,3                ; @COUNTER_MAX
	.comm	_BITMAP_STALE,4,2               ; @BITMAP_STALE
	.no_dead_strip	_md_bitmap_new_disk_sb
.subsections_via_symbols
