	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmballoon_lock_op
_vmballoon_lock_op:                     ## @vmballoon_lock_op
	.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
	movl	%ecx, %ebx
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	addq	$8, %rdi
	callq	_lockdep_assert_held
	movq	_vmw_balloon_batching@GOTPCREL(%rip), %rdi
	callq	_static_branch_likely
	movq	_VMW_BALLOON_INFLATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpl	%ebx, %ecx
	movq	_VMW_BALLOON_CMD_BATCHED_2M_UNLOCK@GOTPCREL(%rip), %rax
	cmoveq	_VMW_BALLOON_CMD_BATCHED_2M_LOCK@GOTPCREL(%rip), %rax
	movq	_VMW_BALLOON_CMD_BATCHED_UNLOCK@GOTPCREL(%rip), %rcx
	cmoveq	_VMW_BALLOON_CMD_BATCHED_LOCK@GOTPCREL(%rip), %rcx
	movq	_VMW_BALLOON_2M_PAGE@GOTPCREL(%rip), %rdx
	cmpl	%r15d, (%rdx)
	cmoveq	%rax, %rcx
	movq	(%rcx), %r15
	movl	4(%r12), %edi
	callq	_virt_to_phys
	movl	%eax, %edi
	callq	_PHYS_PFN
	movq	%rax, %rbx
LBB0_2:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vmballoon_cmd                  ## TAILCALL
LBB0_3:
	cmpl	%ebx, %ecx
	jne	LBB0_4
## %bb.5:
	movq	_VMW_BALLOON_CMD_LOCK@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_VMW_BALLOON_CMD_UNLOCK@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %r15
	movl	(%r12), %edi
	callq	_page_to_pfn
	movq	%rax, %rbx
	xorl	%edi, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.7:
	movq	_VMW_BALLOON_ERROR_PPN_INVALID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vmw_balloon_batching,4,2       ## @vmw_balloon_batching
	.comm	_VMW_BALLOON_INFLATE,4,2        ## @VMW_BALLOON_INFLATE
	.comm	_VMW_BALLOON_2M_PAGE,4,2        ## @VMW_BALLOON_2M_PAGE
	.comm	_VMW_BALLOON_CMD_BATCHED_2M_LOCK,8,3 ## @VMW_BALLOON_CMD_BATCHED_2M_LOCK
	.comm	_VMW_BALLOON_CMD_BATCHED_LOCK,8,3 ## @VMW_BALLOON_CMD_BATCHED_LOCK
	.comm	_VMW_BALLOON_CMD_BATCHED_2M_UNLOCK,8,3 ## @VMW_BALLOON_CMD_BATCHED_2M_UNLOCK
	.comm	_VMW_BALLOON_CMD_BATCHED_UNLOCK,8,3 ## @VMW_BALLOON_CMD_BATCHED_UNLOCK
	.comm	_VMW_BALLOON_CMD_LOCK,8,3       ## @VMW_BALLOON_CMD_LOCK
	.comm	_VMW_BALLOON_CMD_UNLOCK,8,3     ## @VMW_BALLOON_CMD_UNLOCK
	.comm	_VMW_BALLOON_ERROR_PPN_INVALID,8,3 ## @VMW_BALLOON_ERROR_PPN_INVALID
	.no_dead_strip	_vmballoon_lock_op
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmballoon_lock_op
_vmballoon_lock_op:                     ; @vmballoon_lock_op
	.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	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	add	x0, x0, #8
	bl	_lockdep_assert_held
Lloh0:
	adrp	x0, _vmw_balloon_batching@GOTPAGE
Lloh1:
	ldr	x0, [x0, _vmw_balloon_batching@GOTPAGEOFF]
	bl	_static_branch_likely
Lloh2:
	adrp	x8, _VMW_BALLOON_INFLATE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VMW_BALLOON_INFLATE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	x0, LBB0_3
; %bb.1:
Lloh5:
	adrp	x9, _VMW_BALLOON_2M_PAGE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VMW_BALLOON_2M_PAGE@GOTPAGEOFF]
Lloh7:
	adrp	x10, _VMW_BALLOON_CMD_BATCHED_2M_LOCK@GOTPAGE
Lloh8:
	ldr	x10, [x10, _VMW_BALLOON_CMD_BATCHED_2M_LOCK@GOTPAGEOFF]
Lloh9:
	adrp	x11, _VMW_BALLOON_CMD_BATCHED_2M_UNLOCK@GOTPAGE
Lloh10:
	ldr	x11, [x11, _VMW_BALLOON_CMD_BATCHED_2M_UNLOCK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w22
Lloh12:
	adrp	x8, _VMW_BALLOON_CMD_BATCHED_LOCK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VMW_BALLOON_CMD_BATCHED_LOCK@GOTPAGEOFF]
Lloh14:
	adrp	x12, _VMW_BALLOON_CMD_BATCHED_UNLOCK@GOTPAGE
Lloh15:
	ldr	x12, [x12, _VMW_BALLOON_CMD_BATCHED_UNLOCK@GOTPAGEOFF]
	csel	x10, x10, x11, eq
	csel	x8, x8, x12, eq
	cmp	w9, w21
	csel	x8, x10, x8, eq
	ldr	x21, [x8]
	ldr	w0, [x20, #4]
	bl	_virt_to_phys
	bl	_PHYS_PFN
	mov	x22, x0
LBB0_2:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x19
	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
	b	_vmballoon_cmd
LBB0_3:
Lloh16:
	adrp	x9, _VMW_BALLOON_CMD_LOCK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _VMW_BALLOON_CMD_LOCK@GOTPAGEOFF]
Lloh18:
	adrp	x10, _VMW_BALLOON_CMD_UNLOCK@GOTPAGE
Lloh19:
	ldr	x10, [x10, _VMW_BALLOON_CMD_UNLOCK@GOTPAGEOFF]
	cmp	w8, w22
	csel	x8, x9, x10, eq
	ldr	x21, [x8]
	ldr	w0, [x20]
	bl	_page_to_pfn
	mov	x22, x0
	mov	w0, #0
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.4:
Lloh20:
	adrp	x8, _VMW_BALLOON_ERROR_PPN_INVALID@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VMW_BALLOON_ERROR_PPN_INVALID@GOTPAGEOFF]
Lloh22:
	ldr	x0, [x8]
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_vmw_balloon_batching,4,2       ; @vmw_balloon_batching
	.comm	_VMW_BALLOON_INFLATE,4,2        ; @VMW_BALLOON_INFLATE
	.comm	_VMW_BALLOON_2M_PAGE,4,2        ; @VMW_BALLOON_2M_PAGE
	.comm	_VMW_BALLOON_CMD_BATCHED_2M_LOCK,8,3 ; @VMW_BALLOON_CMD_BATCHED_2M_LOCK
	.comm	_VMW_BALLOON_CMD_BATCHED_LOCK,8,3 ; @VMW_BALLOON_CMD_BATCHED_LOCK
	.comm	_VMW_BALLOON_CMD_BATCHED_2M_UNLOCK,8,3 ; @VMW_BALLOON_CMD_BATCHED_2M_UNLOCK
	.comm	_VMW_BALLOON_CMD_BATCHED_UNLOCK,8,3 ; @VMW_BALLOON_CMD_BATCHED_UNLOCK
	.comm	_VMW_BALLOON_CMD_LOCK,8,3       ; @VMW_BALLOON_CMD_LOCK
	.comm	_VMW_BALLOON_CMD_UNLOCK,8,3     ; @VMW_BALLOON_CMD_UNLOCK
	.comm	_VMW_BALLOON_ERROR_PPN_INVALID,8,3 ; @VMW_BALLOON_ERROR_PPN_INVALID
	.no_dead_strip	_vmballoon_lock_op
.subsections_via_symbols
