	.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	%rdi, %rbx
	movq	_vss_transaction@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	je	LBB0_2
## %bb.1:
	movq	%rbx, 24(%r12)
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	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
	movq	%rbx, %rdi
	callq	_vmbus_recvpacket
	movq	-48(%rbp), %rcx
	testq	%rcx, %rcx
	jle	LBB0_11
## %bb.3:
	movq	(%r15), %r14
	movq	16(%r14), %rax
	movq	_ICMSGTYPE_NEGOTIATE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_5
## %bb.4:
	leaq	16(%r14), %rdi
	movq	_UTIL_FW_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_VSS_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_vmbus_prep_negotiate_resp
	movq	_ICMSGHDRFLAG_TRANSACTION@GOTPCREL(%rip), %rax
	movq	_ICMSGHDRFLAG_RESPONSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 24(%r14)
	movq	(%r15), %rsi
	movq	-48(%rbp), %rdx
	movl	-36(%rbp), %ecx
	movq	_VM_PKT_DATA_INBAND@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	callq	_vmbus_sendpacket
	jmp	LBB0_11
LBB0_5:
	leaq	80(%r14), %rax
	movq	%rcx, 32(%r12)
	movq	%rbx, 24(%r12)
	movl	-36(%rbp), %ecx
	movl	%ecx, 16(%r12)
	movl	$1, (%r12)
	movq	%rax, 8(%r12)
	movl	88(%r14), %ecx
	addl	$-128, %ecx
	cmpl	$3, %ecx
	ja	LBB0_10
## %bb.6:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_7:
	movq	_vss_send_op_work@GOTPCREL(%rip), %rdi
	callq	_schedule_work
	jmp	LBB0_11
LBB0_8:
	movq	_VSS_HBU_NO_AUTO_RECOVERY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%r14)
	jmp	LBB0_10
LBB0_9:
	movl	$0, (%rax)
LBB0_10:
	xorl	%edi, %edi
	callq	_vss_respond_to_host
	jmp	LBB0_11
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_vss_transaction,40,3           ## @vss_transaction
	.comm	_recv_buffer,8,3                ## @recv_buffer
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_ICMSGTYPE_NEGOTIATE,8,3        ## @ICMSGTYPE_NEGOTIATE
	.comm	_UTIL_FW_VERSION,4,2            ## @UTIL_FW_VERSION
	.comm	_VSS_VERSION,4,2                ## @VSS_VERSION
	.comm	_vss_send_op_work,4,2           ## @vss_send_op_work
	.comm	_VSS_HBU_NO_AUTO_RECOVERY,4,2   ## @VSS_HBU_NO_AUTO_RECOVERY
	.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
	mov	x19, x0
Lloh0:
	adrp	x22, _vss_transaction@GOTPAGE
Lloh1:
	ldr	x22, [x22, _vss_transaction@GOTPAGEOFF]
	ldr	w8, [x22]
	cbz	w8, LBB0_3
; %bb.1:
	str	x19, [x22, #24]
LBB0_2:
	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
LBB0_3:
Lloh2:
	adrp	x21, _recv_buffer@GOTPAGE
Lloh3:
	ldr	x21, [x21, _recv_buffer@GOTPAGEOFF]
	ldr	x1, [x21]
Lloh4:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	lsl	w2, w8, #1
	add	x3, sp, #8
	add	x4, sp, #4
	mov	x0, x19
	bl	_vmbus_recvpacket
	ldr	x9, [sp, #8]
	cmp	x9, #1
	b.lt	LBB0_2
; %bb.4:
	ldr	x20, [x21]
	mov	x0, x20
	ldr	x8, [x0, #16]!
Lloh7:
	adrp	x10, _ICMSGTYPE_NEGOTIATE@GOTPAGE
Lloh8:
	ldr	x10, [x10, _ICMSGTYPE_NEGOTIATE@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_6
; %bb.5:
Lloh10:
	adrp	x8, _UTIL_FW_VERSION@GOTPAGE
Lloh11:
	ldr	x8, [x8, _UTIL_FW_VERSION@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x8, _VSS_VERSION@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VSS_VERSION@GOTPAGEOFF]
Lloh15:
	ldr	w4, [x8]
	mov	x1, #0
	mov	x2, x20
	bl	_vmbus_prep_negotiate_resp
Lloh16:
	adrp	x8, _ICMSGHDRFLAG_TRANSACTION@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ICMSGHDRFLAG_TRANSACTION@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _ICMSGHDRFLAG_RESPONSE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ICMSGHDRFLAG_RESPONSE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20, #24]
	ldr	x1, [x21]
	ldr	x2, [sp, #8]
	ldr	w3, [sp, #4]
Lloh22:
	adrp	x8, _VM_PKT_DATA_INBAND@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VM_PKT_DATA_INBAND@GOTPAGEOFF]
Lloh24:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w5, #0
	bl	_vmbus_sendpacket
	b	LBB0_2
LBB0_6:
	add	x8, x20, #80
	stp	x19, x9, [x22, #24]
	ldr	w9, [sp, #4]
	str	w9, [x22, #16]
	mov	w9, #1
	str	w9, [x22]
	str	x8, [x22, #8]
	ldr	w9, [x20, #88]
	sub	w9, w9, #128
	cmp	w9, #3
	b.hi	LBB0_11
; %bb.7:
Lloh25:
	adrp	x10, lJTI0_0@PAGE
Lloh26:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_8
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_8:
Lloh27:
	adrp	x0, _vss_send_op_work@GOTPAGE
Lloh28:
	ldr	x0, [x0, _vss_send_op_work@GOTPAGEOFF]
	bl	_schedule_work
	b	LBB0_2
LBB0_9:
Lloh29:
	adrp	x8, _VSS_HBU_NO_AUTO_RECOVERY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _VSS_HBU_NO_AUTO_RECOVERY@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [x20, #84]
	b	LBB0_11
LBB0_10:
	str	wzr, [x8]
LBB0_11:
	mov	w0, #0
	bl	_vss_respond_to_host
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_9-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
                                        ; -- End function
	.comm	_vss_transaction,40,3           ; @vss_transaction
	.comm	_recv_buffer,8,3                ; @recv_buffer
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_ICMSGTYPE_NEGOTIATE,8,3        ; @ICMSGTYPE_NEGOTIATE
	.comm	_UTIL_FW_VERSION,4,2            ; @UTIL_FW_VERSION
	.comm	_VSS_VERSION,4,2                ; @VSS_VERSION
	.comm	_vss_send_op_work,4,2           ; @vss_send_op_work
	.comm	_VSS_HBU_NO_AUTO_RECOVERY,4,2   ; @VSS_HBU_NO_AUTO_RECOVERY
	.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
