	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmbus_onoffer
_vmbus_onoffer:                         ## @vmbus_onoffer
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_alloc_channel
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r15
	movl	$1, (%rax)
	leaq	40(%rax), %rdi
	movq	_HV_HYPERCALL_PARAM_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ALIGN
	movq	%rax, 32(%r15)
	movq	$0, 8(%rax)
	movq	_VMBUS_EVENT_CONNECTION_ID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rax)
	movq	_vmbus_proto_version@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_VERSION_WS2008@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_3
## %bb.2:
	xorl	%ecx, %ecx
	cmpq	$0, (%r14)
	setne	%cl
	movl	%ecx, 4(%r15)
	movl	20(%r14), %ecx
	movl	%ecx, (%rax)
LBB0_3:
	leaq	16(%r14), %rdi
	callq	_get_vp_index
	movl	%eax, 28(%r15)
	leaq	24(%r15), %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, 8(%r15)
	andl	$-32, %ecx
	subl	%ecx, %eax
	movl	%eax, 12(%r15)
	movq	%r15, %rbx
	addq	$16, %rbx
	movq	_vmbus_process_offer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_WORK
	movl	20(%r15), %edi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_queue_work                     ## TAILCALL
LBB0_4:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to allocate channel object\n"

	.comm	_HV_HYPERCALL_PARAM_ALIGN,4,2   ## @HV_HYPERCALL_PARAM_ALIGN
	.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
	.comm	_vmbus_process_offer,4,2        ## @vmbus_process_offer
	.no_dead_strip	_vmbus_onoffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmbus_onoffer
_vmbus_onoffer:                         ; @vmbus_onoffer
	.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, x0
	bl	_alloc_channel
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	w8, #1
	str	w8, [x0], #40
Lloh0:
	adrp	x8, _HV_HYPERCALL_PARAM_ALIGN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HV_HYPERCALL_PARAM_ALIGN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ALIGN
	str	x0, [x19, #32]
	stp	xzr, xzr, [x0, #8]
Lloh3:
	adrp	x8, _VMBUS_EVENT_CONNECTION_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VMBUS_EVENT_CONNECTION_ID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0]
Lloh6:
	adrp	x8, _vmbus_proto_version@GOTPAGE
Lloh7:
	ldr	x8, [x8, _vmbus_proto_version@GOTPAGEOFF]
	str	xzr, [x0, #24]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _VERSION_WS2008@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VERSION_WS2008@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w8, ne
	str	w8, [x19, #4]
	ldr	w8, [x20, #20]
	str	w8, [x0]
LBB0_3:
	add	x0, x20, #16
	bl	_get_vp_index
	str	w0, [x19, #28]
	add	x0, x19, #24
	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, #8]
	add	x20, x19, #16
Lloh12:
	adrp	x8, _vmbus_process_offer@GOTPAGE
Lloh13:
	ldr	x8, [x8, _vmbus_process_offer@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_INIT_WORK
	ldr	w0, [x19, #20]
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_queue_work
LBB0_4:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pr_err
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to allocate channel object\n"

	.comm	_HV_HYPERCALL_PARAM_ALIGN,4,2   ; @HV_HYPERCALL_PARAM_ALIGN
	.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
	.comm	_vmbus_process_offer,4,2        ; @vmbus_process_offer
	.no_dead_strip	_vmbus_onoffer
.subsections_via_symbols
