	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function balloon_down
_balloon_down:                          ## @balloon_down
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	(%rsi), %r14d
	movl	(%rdi), %r15d
	movl	%r15d, %eax
	testl	%r14d, %r14d
	jle	LBB0_4
## %bb.1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rbx
	movq	_dm_device@GOTPCREL(%rip), %r13
	addq	$8, %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_free_balloon_pages
	movq	%r13, %rdi
	callq	_complete
	addq	$4, %rbx
	decq	%r14
	jne	LBB0_2
## %bb.3:
	movl	(%r12), %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_4:
	subl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_pr_debug
	cmpl	$1, 4(%rbx)
	je	LBB0_6
## %bb.5:
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_DM_UNBALLOON_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_trans_id@GOTPCREL(%rip), %rdi
	callq	_atomic_inc_return
	movl	%eax, -52(%rbp)
	movl	$12, -56(%rbp)
	movq	_dm_device@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	_VM_PKT_DATA_INBAND@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rsi
	movl	$12, %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_vmbus_sendpacket
	movq	_DM_INITIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dm_device,16,3                 ## @dm_device
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Freed %u ballooned pages.\n"

	.comm	_DM_UNBALLOON_RESPONSE,4,2      ## @DM_UNBALLOON_RESPONSE
	.comm	_trans_id,4,2                   ## @trans_id
	.comm	_VM_PKT_DATA_INBAND,4,2         ## @VM_PKT_DATA_INBAND
	.comm	_DM_INITIALIZED,4,2             ## @DM_INITIALIZED
	.no_dead_strip	_balloon_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function balloon_down
_balloon_down:                          ; @balloon_down
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x19, x0
	ldr	w25, [x1]
	ldr	w24, [x0]
Lloh0:
	adrp	x23, _dm_device@GOTPAGE
Lloh1:
	ldr	x23, [x23, _dm_device@GOTPAGEOFF]
	cmp	w25, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	x21, [x20, #8]
	add	x22, x23, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_free_balloon_pages
	mov	x0, x22
	bl	_complete
	add	x21, x21, #4
	subs	x25, x25, #1
	b.ne	LBB0_2
; %bb.3:
	ldr	w8, [x19]
	b	LBB0_5
LBB0_4:
	mov	x8, x24
LBB0_5:
	sub	w1, w24, w8
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.eq	LBB0_7
; %bb.6:
	mov	w20, #12
	mov	x0, sp
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh4:
	adrp	x8, _DM_UNBALLOON_RESPONSE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DM_UNBALLOON_RESPONSE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh7:
	adrp	x0, _trans_id@GOTPAGE
Lloh8:
	ldr	x0, [x0, _trans_id@GOTPAGEOFF]
	bl	_atomic_inc_return
	stp	w20, w0, [sp]
	ldr	x8, [x23]
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _VM_PKT_DATA_INBAND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VM_PKT_DATA_INBAND@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	mov	x1, sp
	mov	w2, #12
	mov	x3, #0
	mov	w5, #0
	bl	_vmbus_sendpacket
Lloh12:
	adrp	x8, _DM_INITIALIZED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DM_INITIALIZED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_dm_device,16,3                 ; @dm_device
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Freed %u ballooned pages.\n"

	.comm	_DM_UNBALLOON_RESPONSE,4,2      ; @DM_UNBALLOON_RESPONSE
	.comm	_trans_id,4,2                   ; @trans_id
	.comm	_VM_PKT_DATA_INBAND,4,2         ; @VM_PKT_DATA_INBAND
	.comm	_DM_INITIALIZED,4,2             ; @DM_INITIALIZED
	.no_dead_strip	_balloon_down
.subsections_via_symbols
