	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function md_bitmap_set_memory_bits
_md_bitmap_set_memory_bits:             ## @md_bitmap_set_memory_bits
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_spin_lock_irq
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	$1, %ecx
	callq	_md_bitmap_get_counter
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r12
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.3:
	testl	%r14d, %r14d
	je	LBB0_5
LBB0_4:
	movq	_NEEDED_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
LBB0_5:
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	$2, (%r12)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_md_bitmap_count_page
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_md_bitmap_set_pending
	movq	$0, 8(%rbx)
	testl	%r14d, %r14d
	jne	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_NEEDED_MASK,4,2                ## @NEEDED_MASK
	.no_dead_strip	_md_bitmap_set_memory_bits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function md_bitmap_set_memory_bits
_md_bitmap_set_memory_bits:             ; @md_bitmap_set_memory_bits
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_spin_lock_irq
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x21
	mov	w3, #1
	bl	_md_bitmap_get_counter
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.2:
	cbz	w20, LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _NEEDED_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NEEDED_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
LBB0_4:
	mov	x0, x19
	bl	_spin_unlock_irq
	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
	add	sp, sp, #64
	ret
LBB0_5:
	mov	w8, #2
	str	w8, [x22]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_md_bitmap_count_page
	mov	x0, x19
	mov	x1, x21
	bl	_md_bitmap_set_pending
	str	xzr, [x19, #8]
	cbnz	w20, LBB0_3
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NEEDED_MASK,4,2                ; @NEEDED_MASK
	.no_dead_strip	_md_bitmap_set_memory_bits
.subsections_via_symbols
