	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmballoon_change
_vmballoon_change:                      ## @vmballoon_change
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	addq	$20, %rdi
	callq	_atomic64_read
	movq	%rax, %r15
	movl	16(%rbx), %edi
	callq	_READ_ONCE
	cmpq	$0, 8(%rbx)
	je	LBB0_1
LBB0_6:
	xorl	%r14d, %r14d
LBB0_7:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rax, %r14
	cmpq	%r15, %rax
	jge	LBB0_4
## %bb.2:
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movq	%r15, %r12
	subq	%r14, %r12
	movq	_VMW_BALLOON_2M_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_vmballoon_page_in_frames
	cmpq	%rax, %r12
	jl	LBB0_6
LBB0_4:
	subq	%r15, %r14
	jle	LBB0_7
## %bb.5:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%rbx), %edi
	callq	_READ_ONCE
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_time_before
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_VMW_BALLOON_2M_PAGE,4,2        ## @VMW_BALLOON_2M_PAGE
	.comm	_jiffies,4,2                    ## @jiffies
	.no_dead_strip	_vmballoon_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmballoon_change
_vmballoon_change:                      ; @vmballoon_change
	.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
	add	x0, x0, #20
	bl	_atomic64_read
	mov	x20, x0
	ldr	w0, [x19, #16]
	bl	_READ_ONCE
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
LBB0_1:
	mov	x20, #0
LBB0_2:
	mov	x0, x20
	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
LBB0_3:
	mov	x21, x0
	cmp	x0, x20
	ccmp	x0, #0, #4, lt
	b.eq	LBB0_5
; %bb.4:
	sub	x22, x20, x21
Lloh0:
	adrp	x8, _VMW_BALLOON_2M_PAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VMW_BALLOON_2M_PAGE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_vmballoon_page_in_frames
	cmp	x22, x0
	b.lt	LBB0_1
LBB0_5:
	subs	x20, x21, x20
	b.le	LBB0_2
; %bb.6:
Lloh3:
	adrp	x8, _jiffies@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	ldr	w0, [x19]
	bl	_READ_ONCE
	mov	x1, x0
	mov	x0, x21
	bl	_time_before
	cbnz	x0, LBB0_1
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VMW_BALLOON_2M_PAGE,4,2        ; @VMW_BALLOON_2M_PAGE
	.comm	_jiffies,4,2                    ; @jiffies
	.no_dead_strip	_vmballoon_change
.subsections_via_symbols
