	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_balloon_pages
_alloc_balloon_pages:                   ## @alloc_balloon_pages
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r15d, %r15d
	cmpl	%ecx, %esi
	jl	LBB0_10
## %bb.1:
	testl	%esi, %esi
	jle	LBB0_9
## %bb.2:
	movl	%ecx, %r12d
	movq	%rdx, %rbx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	(%rdx), %rax
	movl	$4, %r13d
	xorl	%r15d, %r15d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	incl	16(%rbx)
	movq	%r14, %rdi
	callq	_page_to_pfn
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx,%r13)
	movl	%r12d, -4(%rcx,%r13)
	movq	(%rbx), %rax
	addq	$4, %rax
	movq	%rax, (%rbx)
	addq	$8, %r13
	addl	%r12d, %r15d
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	cmpl	%esi, %r15d
	jge	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	addq	$4, %rax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	ja	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	___GFP_NORETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_GFP_HIGHUSER@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	___GFP_NOMEMALLOC@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	___GFP_NOWARN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movl	%r12d, %edi
	shll	%cl, %edi
	callq	_get_order
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_alloc_pages
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r14
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addl	%r12d, (%rax)
	cmpl	$1, %r12d
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movl	%r12d, %edi
	shll	%cl, %edi
	callq	_get_order
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_split_page
	jmp	LBB0_8
LBB0_9:
	movl	%esi, %r15d
	jmp	LBB0_10
LBB0_5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
LBB0_10:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_GFP_HIGHUSER,4,2               ## @GFP_HIGHUSER
	.comm	___GFP_NORETRY,4,2              ## @__GFP_NORETRY
	.comm	___GFP_NOMEMALLOC,4,2           ## @__GFP_NOMEMALLOC
	.comm	___GFP_NOWARN,4,2               ## @__GFP_NOWARN
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.no_dead_strip	_alloc_balloon_pages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_balloon_pages
_alloc_balloon_pages:                   ; @alloc_balloon_pages
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cmp	w1, w3
	b.ge	LBB0_2
; %bb.1:
	mov	w19, #0
	b	LBB0_11
LBB0_2:
	mov	x21, x1
	cmp	w1, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x22, x3
	mov	x23, x2
	mov	x24, x0
	str	x4, [sp, #8]                    ; 8-byte Folded Spill
	mov	w19, #0
	mov	x26, #0
	ldr	x8, [x2]
Lloh0:
	adrp	x27, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x20, ___GFP_NOWARN@GOTPAGE
Lloh3:
	ldr	x20, [x20, ___GFP_NOWARN@GOTPAGEOFF]
Lloh4:
	adrp	x28, _PAGE_SHIFT@GOTPAGE
Lloh5:
	ldr	x28, [x28, _PAGE_SHIFT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x23, #16]
	add	w8, w8, #1
	str	w8, [x23, #16]
	mov	x0, x25
	bl	_page_to_pfn
	ldp	x9, x8, [x23]
	add	x8, x8, x26
	stp	w22, w0, [x8]
	add	x8, x9, #4
	str	x8, [x23]
	add	x26, x26, #8
	add	w19, w19, w22
	cmp	w19, w21
	b.ge	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, #4
	ldr	x9, [x27]
	cmp	x8, x9
	b.hi	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh6:
	adrp	x8, _GFP_HIGHUSER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_HIGHUSER@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, ___GFP_NORETRY@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___GFP_NORETRY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, ___GFP_NOMEMALLOC@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___GFP_NOMEMALLOC@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x20]
	orr	w25, w8, w9
	ldr	w8, [x28]
	lsl	w0, w22, w8
	bl	_get_order
	mov	x1, x0
	mov	x0, x25
	bl	_alloc_pages
	cbz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, x0
	ldr	w8, [x24]
	add	w8, w8, w22
	str	w8, [x24]
	cmp	w22, #1
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x28]
	lsl	w0, w22, w8
	bl	_get_order
	mov	x1, x0
	mov	x0, x25
	bl	_split_page
	b	LBB0_4
LBB0_9:
	mov	x19, x21
	b	LBB0_11
LBB0_10:
	mov	w8, #1
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	w8, [x9]
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_GFP_HIGHUSER,4,2               ; @GFP_HIGHUSER
	.comm	___GFP_NORETRY,4,2              ; @__GFP_NORETRY
	.comm	___GFP_NOMEMALLOC,4,2           ; @__GFP_NOMEMALLOC
	.comm	___GFP_NOWARN,4,2               ; @__GFP_NOWARN
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.no_dead_strip	_alloc_balloon_pages
.subsections_via_symbols
