	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hv_vss_onchannelcallback       ## -- Begin function hv_vss_onchannelcallback
	.p2align	4, 0x90
_hv_vss_onchannelcallback:              ## @hv_vss_onchannelcallback
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_vss_transaction@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_HVUTIL_READY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_6
## %bb.1:
	movq	%rdi, %r14
	movq	_recv_buffer@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	%edx, %edx
	leaq	-48(%rbp), %rcx
	leaq	-36(%rbp), %r8
	callq	_vmbus_recvpacket
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	jle	LBB0_6
## %bb.2:
	movq	(%r15), %r12
	movq	16(%r12), %rcx
	movq	_ICMSGTYPE_NEGOTIATE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.3:
	leaq	16(%r12), %rdi
	movq	_fw_versions@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_FW_VER_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_vss_versions@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_VSS_VER_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-40(%rbp), %rax
	movq	%r12, %rsi
	pushq	%rax
	pushq	$0
	callq	_vmbus_prep_negotiate_resp
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	-40(%rbp), %esi
	movzwl	%si, %edx
	sarl	$16, %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
LBB0_5:
	movq	_ICMSGHDRFLAG_TRANSACTION@GOTPCREL(%rip), %rax
	movq	_ICMSGHDRFLAG_RESPONSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 24(%r12)
	movq	(%r15), %rsi
	movq	-48(%rbp), %rdx
	movl	-36(%rbp), %ecx
	movq	_VM_PKT_DATA_INBAND@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	xorl	%r9d, %r9d
	callq	_vmbus_sendpacket
	jmp	LBB0_6
LBB0_7:
	addq	$80, %r12
	movq	%rax, 24(%rbx)
	movl	-36(%rbp), %eax
	movl	%eax, 16(%rbx)
	movq	%r12, 8(%rbx)
	movq	_vss_handle_request_work@GOTPCREL(%rip), %rdi
	callq	_schedule_work
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vss_transaction,32,3           ## @vss_transaction
	.comm	_HVUTIL_READY,8,3               ## @HVUTIL_READY
	.comm	_recv_buffer,8,3                ## @recv_buffer
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_ICMSGTYPE_NEGOTIATE,8,3        ## @ICMSGTYPE_NEGOTIATE
	.comm	_fw_versions,4,2                ## @fw_versions
	.comm	_FW_VER_COUNT,4,2               ## @FW_VER_COUNT
	.comm	_vss_versions,4,2               ## @vss_versions
	.comm	_VSS_VER_COUNT,4,2              ## @VSS_VER_COUNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VSS IC version %d.%d\n"

	.comm	_vss_handle_request_work,4,2    ## @vss_handle_request_work
	.comm	_ICMSGHDRFLAG_TRANSACTION,4,2   ## @ICMSGHDRFLAG_TRANSACTION
	.comm	_ICMSGHDRFLAG_RESPONSE,4,2      ## @ICMSGHDRFLAG_RESPONSE
	.comm	_VM_PKT_DATA_INBAND,4,2         ## @VM_PKT_DATA_INBAND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hv_vss_onchannelcallback       ; -- Begin function hv_vss_onchannelcallback
	.p2align	2
_hv_vss_onchannelcallback:              ; @hv_vss_onchannelcallback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x22, _vss_transaction@GOTPAGE
Lloh1:
	ldr	x22, [x22, _vss_transaction@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _HVUTIL_READY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HVUTIL_READY@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_7
; %bb.1:
	mov	x19, x0
Lloh5:
	adrp	x21, _recv_buffer@GOTPAGE
Lloh6:
	ldr	x21, [x21, _recv_buffer@GOTPAGEOFF]
	ldr	x1, [x21]
Lloh7:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	lsl	w2, w8, #1
	add	x3, sp, #8
	add	x4, sp, #4
	bl	_vmbus_recvpacket
	ldr	x8, [sp, #8]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.2:
	ldr	x20, [x21]
	mov	x0, x20
	ldr	x9, [x0, #16]!
Lloh10:
	adrp	x10, _ICMSGTYPE_NEGOTIATE@GOTPAGE
Lloh11:
	ldr	x10, [x10, _ICMSGTYPE_NEGOTIATE@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.3:
Lloh13:
	adrp	x8, _fw_versions@GOTPAGE
Lloh14:
	ldr	x8, [x8, _fw_versions@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x8, _FW_VER_COUNT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FW_VER_COUNT@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
Lloh19:
	adrp	x8, _vss_versions@GOTPAGE
Lloh20:
	ldr	x8, [x8, _vss_versions@GOTPAGEOFF]
Lloh21:
	ldr	w4, [x8]
Lloh22:
	adrp	x8, _VSS_VER_COUNT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VSS_VER_COUNT@GOTPAGEOFF]
Lloh24:
	ldr	w5, [x8]
	mov	x7, sp
	mov	x1, x20
	mov	x6, #0
	bl	_vmbus_prep_negotiate_resp
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w8, [sp]
	asr	w1, w8, #16
	and	w2, w8, #0xffff
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
LBB0_5:
Lloh27:
	adrp	x8, _ICMSGHDRFLAG_TRANSACTION@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ICMSGHDRFLAG_TRANSACTION@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _ICMSGHDRFLAG_RESPONSE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _ICMSGHDRFLAG_RESPONSE@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20, #24]
	ldr	x1, [x21]
	ldr	x2, [sp, #8]
	ldr	w3, [sp, #4]
Lloh33:
	adrp	x8, _VM_PKT_DATA_INBAND@GOTPAGE
Lloh34:
	ldr	x8, [x8, _VM_PKT_DATA_INBAND@GOTPAGEOFF]
Lloh35:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w5, #0
	bl	_vmbus_sendpacket
	b	LBB0_7
LBB0_6:
	add	x9, x20, #80
	str	x8, [x22, #24]
	ldr	w8, [sp, #4]
	str	w8, [x22, #16]
	str	x9, [x22, #8]
Lloh36:
	adrp	x0, _vss_handle_request_work@GOTPAGE
Lloh37:
	ldr	x0, [x0, _vss_handle_request_work@GOTPAGEOFF]
	bl	_schedule_work
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_vss_transaction,32,3           ; @vss_transaction
	.comm	_HVUTIL_READY,8,3               ; @HVUTIL_READY
	.comm	_recv_buffer,8,3                ; @recv_buffer
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_ICMSGTYPE_NEGOTIATE,8,3        ; @ICMSGTYPE_NEGOTIATE
	.comm	_fw_versions,4,2                ; @fw_versions
	.comm	_FW_VER_COUNT,4,2               ; @FW_VER_COUNT
	.comm	_vss_versions,4,2               ; @vss_versions
	.comm	_VSS_VER_COUNT,4,2              ; @VSS_VER_COUNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VSS IC version %d.%d\n"

	.comm	_vss_handle_request_work,4,2    ; @vss_handle_request_work
	.comm	_ICMSGHDRFLAG_TRANSACTION,4,2   ; @ICMSGHDRFLAG_TRANSACTION
	.comm	_ICMSGHDRFLAG_RESPONSE,4,2      ; @ICMSGHDRFLAG_RESPONSE
	.comm	_VM_PKT_DATA_INBAND,4,2         ; @VM_PKT_DATA_INBAND
.subsections_via_symbols
