	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function md_bitmap_storage_alloc
_md_bitmap_storage_alloc:               ## @md_bitmap_storage_alloc
	.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	%ecx, %r12d
	movl	%edx, %r13d
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movl	$8, %esi
	callq	_DIV_ROUND_UP
	leaq	4(%rax), %rbx
	testl	%r13d, %r13d
	cmoveq	%rax, %rbx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_DIV_ROUND_UP
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_kmalloc_array
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	imull	%r15d, %r12d
	movq	32(%r14), %rax
	testl	%r13d, %r13d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.3:
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movq	___GFP_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_alloc_page
	movq	%rax, 32(%r14)
	testq	%rax, %rax
	je	LBB0_1
LBB0_5:
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movq	24(%r14), %rcx
	movq	%rax, (%rcx)
	movq	32(%r14), %rax
	movl	%r12d, (%rax)
	movl	$1, %eax
	jmp	LBB0_8
LBB0_6:
	xorl	%eax, %eax
LBB0_8:
	movl	%eax, %ebx
	cmpq	%rbx, %r15
	jbe	LBB0_14
## %bb.9:
	movl	%r12d, %r12d
	movq	___GFP_ZERO@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_alloc_page
	movq	24(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	24(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	leal	(%r12,%rbx), %ecx
	movl	%ecx, (%rax)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_10
## %bb.13:
	movl	%r15d, %eax
LBB0_14:
	movl	%eax, (%r14)
	shlq	$2, %r15
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_DIV_ROUND_UP
	movq	%rax, %rdi
	movl	$8, %esi
	callq	_roundup
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kzalloc
	movl	%eax, 16(%r14)
	testl	%eax, %eax
	je	LBB0_1
## %bb.15:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r14)
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_11:
	movl	%ebx, (%r14)
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.no_dead_strip	_md_bitmap_storage_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function md_bitmap_storage_alloc
_md_bitmap_storage_alloc:               ; @md_bitmap_storage_alloc
	.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, x3
	mov	x22, x2
	mov	x19, x0
	mov	x0, x1
	mov	w1, #8
	bl	_DIV_ROUND_UP
	add	x8, x0, #4
	cmp	w22, #0
	csel	x20, x0, x8, eq
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_DIV_ROUND_UP
	mov	x21, x0
Lloh3:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	w1, #8
	bl	_kmalloc_array
	str	x0, [x19, #24]
	cbz	x0, LBB0_15
; %bb.1:
	mul	w23, w21, w23
	ldr	x0, [x19, #32]
	cbz	w22, LBB0_4
; %bb.2:
	cbnz	x0, LBB0_5
; %bb.3:
	ldr	w8, [x24]
Lloh5:
	adrp	x9, ___GFP_ZERO@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___GFP_ZERO@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_alloc_page
	str	x0, [x19, #32]
	cbz	x0, LBB0_15
LBB0_4:
	cbz	x0, LBB0_6
LBB0_5:
	ldr	x8, [x19, #24]
	str	x0, [x8]
	ldr	x8, [x19, #32]
	str	w23, [x8]
	mov	w8, #1
	b	LBB0_7
LBB0_6:
	mov	w8, #0
LBB0_7:
	mov	w22, w8
	cmp	x21, x22
	b.ls	LBB0_12
; %bb.8:
Lloh8:
	adrp	x25, ___GFP_ZERO@GOTPAGE
Lloh9:
	ldr	x25, [x25, ___GFP_ZERO@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w0, w9, w8
	bl	_alloc_page
	ldr	x8, [x19, #24]
	lsl	x9, x22, #3
	str	x0, [x8, x9]
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w9, w23, w22
	str	w9, [x8]
	add	x22, x22, #1
	cmp	x21, x22
	b.ne	LBB0_9
; %bb.11:
	mov	x8, x21
LBB0_12:
	str	w8, [x19]
	lsl	x0, x21, #2
	mov	w1, #8
	bl	_DIV_ROUND_UP
	mov	w1, #8
	bl	_roundup
	ldr	w1, [x24]
	bl	_kzalloc
	str	w0, [x19, #16]
	cbz	w0, LBB0_15
; %bb.13:
	mov	w0, #0
	str	x20, [x19, #8]
	b	LBB0_16
LBB0_14:
	str	w22, [x19]
LBB0_15:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.no_dead_strip	_md_bitmap_storage_alloc
.subsections_via_symbols
