	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmbus_on_event                 ## -- Begin function vmbus_on_event
	.p2align	4, 0x90
_vmbus_on_event:                        ## @vmbus_on_event
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_smp_processor_id
	movq	_vmbus_proto_version@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_VERSION_WS2008@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_2
## %bb.1:
	movq	_VERSION_WIN7@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_2
## %bb.3:
	movq	_HV_EVENT_FLAGS_DWORD_COUNT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	_hv_context@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%eax, %rdx
	movq	_VMBUS_MESSAGE_SINT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shlq	$3, %rax
	addq	(%rcx,%rdx,8), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_MAX_NUM_CHANNELS_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	$5, %eax
	cltq
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_vmbus_connection@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %r12
	testq	%r12, %r12
	je	LBB0_14
## %bb.5:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_14
## %bb.6:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r15
	addq	$32, %r13
	cmpq	-48(%rbp), %r15                 ## 8-byte Folded Reload
	je	LBB0_14
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	cmpq	$0, (%r12,%r15,8)
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	(%r12,%r15,8), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=2
	incq	%rbx
	cmpq	$32, %rbx
	je	LBB0_13
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_sync_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%r13, %rdi
	addq	%rbx, %rdi
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	callq	_process_chn_event
	jmp	LBB0_12
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vmbus_proto_version,8,3        ## @vmbus_proto_version
	.comm	_VERSION_WS2008,8,3             ## @VERSION_WS2008
	.comm	_VERSION_WIN7,8,3               ## @VERSION_WIN7
	.comm	_MAX_NUM_CHANNELS_SUPPORTED,4,2 ## @MAX_NUM_CHANNELS_SUPPORTED
	.comm	_vmbus_connection,8,3           ## @vmbus_connection
	.comm	_HV_EVENT_FLAGS_DWORD_COUNT,8,3 ## @HV_EVENT_FLAGS_DWORD_COUNT
	.comm	_hv_context,8,3                 ## @hv_context
	.comm	_VMBUS_MESSAGE_SINT,4,2         ## @VMBUS_MESSAGE_SINT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmbus_on_event                 ; -- Begin function vmbus_on_event
	.p2align	2
_vmbus_on_event:                        ; @vmbus_on_event
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	bl	_smp_processor_id
Lloh0:
	adrp	x8, _vmbus_proto_version@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vmbus_proto_version@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _VERSION_WS2008@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VERSION_WS2008@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _VERSION_WIN7@GOTPAGE
Lloh7:
	ldr	x10, [x10, _VERSION_WIN7@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _MAX_NUM_CHANNELS_SUPPORTED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX_NUM_CHANNELS_SUPPORTED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	sbfx	x21, x8, #5, #27
Lloh12:
	adrp	x8, _vmbus_connection@GOTPAGE
Lloh13:
	ldr	x8, [x8, _vmbus_connection@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh14:
	adrp	x8, _HV_EVENT_FLAGS_DWORD_COUNT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HV_EVENT_FLAGS_DWORD_COUNT@GOTPAGEOFF]
Lloh16:
	ldr	x21, [x8]
Lloh17:
	adrp	x8, _hv_context@GOTPAGE
Lloh18:
	ldr	x8, [x8, _hv_context@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	x8, [x8, w0, sxtw #3]
Lloh20:
	adrp	x9, _VMBUS_MESSAGE_SINT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _VMBUS_MESSAGE_SINT@GOTPAGEOFF]
Lloh22:
	ldrsw	x9, [x9]
	add	x8, x8, x9, lsl #3
LBB0_3:
	ldr	x22, [x8]
	cmp	x22, #0
	ccmp	x21, #0, #4, ne
	b.ne	LBB0_5
LBB0_4:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x23, #0
	mov	x24, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #1
	add	x23, x23, #32
	cmp	x24, x21
	b.eq	LBB0_4
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	add	x19, x22, x24, lsl #3
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x20, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x20, x20, #1
	cmp	x20, #32
	b.eq	LBB0_6
LBB0_10:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	x1, x19
	bl	_sync_test_and_clear_bit
	cbz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	adds	x0, x23, x20
	b.eq	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	bl	_process_chn_event
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_vmbus_proto_version,8,3        ; @vmbus_proto_version
	.comm	_VERSION_WS2008,8,3             ; @VERSION_WS2008
	.comm	_VERSION_WIN7,8,3               ; @VERSION_WIN7
	.comm	_MAX_NUM_CHANNELS_SUPPORTED,4,2 ; @MAX_NUM_CHANNELS_SUPPORTED
	.comm	_vmbus_connection,8,3           ; @vmbus_connection
	.comm	_HV_EVENT_FLAGS_DWORD_COUNT,8,3 ; @HV_EVENT_FLAGS_DWORD_COUNT
	.comm	_hv_context,8,3                 ; @hv_context
	.comm	_VMBUS_MESSAGE_SINT,4,2         ; @VMBUS_MESSAGE_SINT
.subsections_via_symbols
