	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmballoon_vmci_init
_vmballoon_vmci_init:                   ## @vmballoon_vmci_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_VMW_BALLOON_SIGNALLED_WAKEUP_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	addq	$4, %rdi
	movq	_VMCI_FLAG_DELAYED_CB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VMCI_PRIVILEGE_FLAG_RESTRICTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_vmballoon_doorbell@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %r8
	callq	_vmci_doorbell_create
	movq	_VMCI_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_VMW_BALLOON_CMD_VMCI_DOORBELL_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %ecx
	movl	8(%r14), %edx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%r8d, %r8d
	callq	___vmballoon_cmd
	movq	_VMW_BALLOON_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
LBB0_4:
	movq	%r14, %rdi
	callq	_vmballoon_vmci_cleanup
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VMW_BALLOON_SIGNALLED_WAKEUP_CMD,4,2 ## @VMW_BALLOON_SIGNALLED_WAKEUP_CMD
	.comm	_VMCI_FLAG_DELAYED_CB,4,2       ## @VMCI_FLAG_DELAYED_CB
	.comm	_VMCI_PRIVILEGE_FLAG_RESTRICTED,4,2 ## @VMCI_PRIVILEGE_FLAG_RESTRICTED
	.comm	_vmballoon_doorbell,4,2         ## @vmballoon_doorbell
	.comm	_VMCI_SUCCESS,8,3               ## @VMCI_SUCCESS
	.comm	_VMW_BALLOON_CMD_VMCI_DOORBELL_SET,4,2 ## @VMW_BALLOON_CMD_VMCI_DOORBELL_SET
	.comm	_VMW_BALLOON_SUCCESS,8,3        ## @VMW_BALLOON_SUCCESS
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_vmballoon_vmci_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmballoon_vmci_init
_vmballoon_vmci_init:                   ; @vmballoon_vmci_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _VMW_BALLOON_SIGNALLED_WAKEUP_CMD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VMW_BALLOON_SIGNALLED_WAKEUP_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
	add	x0, x0, #4
Lloh3:
	adrp	x8, _VMCI_FLAG_DELAYED_CB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VMCI_FLAG_DELAYED_CB@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _VMCI_PRIVILEGE_FLAG_RESTRICTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VMCI_PRIVILEGE_FLAG_RESTRICTED@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _vmballoon_doorbell@GOTPAGE
Lloh10:
	ldr	x8, [x8, _vmballoon_doorbell@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x4, x19
	bl	_vmci_doorbell_create
Lloh12:
	adrp	x8, _VMCI_SUCCESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VMCI_SUCCESS@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
Lloh15:
	adrp	x8, _VMW_BALLOON_CMD_VMCI_DOORBELL_SET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VMW_BALLOON_CMD_VMCI_DOORBELL_SET@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldp	w3, w2, [x19, #4]
	mov	x0, x19
	mov	x4, #0
	bl	___vmballoon_cmd
Lloh18:
	adrp	x8, _VMW_BALLOON_SUCCESS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VMW_BALLOON_SUCCESS@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_vmballoon_vmci_cleanup
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_VMW_BALLOON_SIGNALLED_WAKEUP_CMD,4,2 ; @VMW_BALLOON_SIGNALLED_WAKEUP_CMD
	.comm	_VMCI_FLAG_DELAYED_CB,4,2       ; @VMCI_FLAG_DELAYED_CB
	.comm	_VMCI_PRIVILEGE_FLAG_RESTRICTED,4,2 ; @VMCI_PRIVILEGE_FLAG_RESTRICTED
	.comm	_vmballoon_doorbell,4,2         ; @vmballoon_doorbell
	.comm	_VMCI_SUCCESS,8,3               ; @VMCI_SUCCESS
	.comm	_VMW_BALLOON_CMD_VMCI_DOORBELL_SET,4,2 ; @VMW_BALLOON_CMD_VMCI_DOORBELL_SET
	.comm	_VMW_BALLOON_SUCCESS,8,3        ; @VMW_BALLOON_SUCCESS
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_vmballoon_vmci_init
.subsections_via_symbols
