	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dirty_map_init
_dirty_map_init:                        ## @dirty_map_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	$0, 8(%rax)
	movl	16(%rdi), %edi
	callq	_bitmap_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_kvzalloc
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	$0, 24(%rcx)
	movl	16(%rbx), %edi
	callq	_bitmap_size
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_kvzalloc
	movq	(%rbx), %rcx
	movq	%rax, 16(%rcx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rcx, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DMERR
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_DMERR
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_kvfree
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate dirty bitmap"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_dirty_map_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dirty_map_init
_dirty_map_init:                        ; @dirty_map_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	str	xzr, [x8, #8]
	ldr	w0, [x0, #16]
	bl	_bitmap_size
Lloh0:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_kvzalloc
	ldr	x8, [x19]
	str	x0, [x8]
	cbz	x0, LBB0_3
; %bb.1:
	str	xzr, [x8, #24]
	ldr	w0, [x19, #16]
	bl	_bitmap_size
	ldr	w1, [x20]
	bl	_kvzalloc
	ldr	x8, [x19]
	str	x0, [x8, #16]
	cbz	x0, LBB0_4
; %bb.2:
	mov	w0, #0
	str	x8, [x19, #8]
	b	LBB0_6
LBB0_3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_kvfree
LBB0_5:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate dirty bitmap"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_dirty_map_init
.subsections_via_symbols
