	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmbus_setup_channel_state
_vmbus_setup_channel_state:             ## @vmbus_setup_channel_state
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	_VMBUS_EVENT_CONNECTION_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rdi)
	movq	_vmbus_proto_version@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_VERSION_WS2008@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	cmpq	$0, (%r14)
	setne	%al
	movl	%eax, (%rbx)
	movl	16(%r14), %eax
	movl	%eax, 16(%rbx)
LBB0_2:
	leaq	12(%rbx), %rdi
	movq	%r14, %rsi
	movl	$24, %edx
	callq	_memcpy
	movl	8(%r14), %eax
	leal	31(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	movl	%ecx, %edx
	sarl	$5, %edx
	movl	%edx, 4(%rbx)
	andl	$-32, %ecx
	subl	%ecx, %eax
	movl	%eax, 8(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VMBUS_EVENT_CONNECTION_ID,4,2  ## @VMBUS_EVENT_CONNECTION_ID
	.comm	_vmbus_proto_version,8,3        ## @vmbus_proto_version
	.comm	_VERSION_WS2008,8,3             ## @VERSION_WS2008
	.no_dead_strip	_vmbus_setup_channel_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmbus_setup_channel_state
_vmbus_setup_channel_state:             ; @vmbus_setup_channel_state
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _VMBUS_EVENT_CONNECTION_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VMBUS_EVENT_CONNECTION_ID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _vmbus_proto_version@GOTPAGE
Lloh4:
	ldr	x9, [x9, _vmbus_proto_version@GOTPAGEOFF]
	str	w8, [x0, #16]
Lloh5:
	ldr	x8, [x9]
Lloh6:
	adrp	x9, _VERSION_WS2008@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VERSION_WS2008@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w8, ne
	str	w8, [x19]
	ldr	w8, [x20, #16]
	str	w8, [x19, #16]
LBB0_2:
	add	x0, x19, #12
	mov	x1, x20
	mov	w2, #24
	bl	_memcpy
	ldr	w8, [x20, #8]
	add	w9, w8, #31
	cmp	w8, #0
	csel	w9, w9, w8, lt
	asr	w10, w9, #5
	and	w9, w9, #0xffffffe0
	sub	w8, w8, w9
	stp	w10, w8, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VMBUS_EVENT_CONNECTION_ID,4,2  ; @VMBUS_EVENT_CONNECTION_ID
	.comm	_vmbus_proto_version,8,3        ; @vmbus_proto_version
	.comm	_VERSION_WS2008,8,3             ; @VERSION_WS2008
	.no_dead_strip	_vmbus_setup_channel_state
.subsections_via_symbols
