	.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
	callq	_trace_vmbus_onoffer
	movq	%r14, %rdi
	callq	_find_primary_channel_by_offer
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	_vmbus_connection@GOTPCREL(%rip), %rdi
	callq	_atomic_dec
	movq	(%rbx), %rax
	movq	_INVALID_RELID@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_WARN_ON
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	movl	$8, %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%r14), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	_DUMP_PREFIX_OFFSET@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$0, (%rsp)
	leaq	L_.str.1(%rip), %rdi
	movl	$8, %r9d
	movl	$16, %edx
	movl	$4, %ecx
	movq	%rbx, %r8
	callq	_print_hex_dump_debug
	movl	(%r15), %esi
	movl	$0, (%rsp)
	leaq	L_.str.2(%rip), %rdi
	movl	$8, %r9d
	movl	$16, %edx
	movl	$4, %ecx
	movq	%r14, %r8
	callq	_print_hex_dump_debug
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_vmbus_setup_channel_state
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_check_ready_for_resume_event   ## TAILCALL
LBB0_4:
	xorl	%eax, %eax
	callq	_alloc_channel
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_vmbus_setup_channel_state
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vmbus_process_offer            ## TAILCALL
LBB0_6:
	movq	(%r14), %rdi
	callq	_vmbus_release_relid
	movq	_vmbus_connection@GOTPCREL(%rip), %rdi
	callq	_atomic_dec
	leaq	L_.str.3(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_vmbus_connection,4,2           ## @vmbus_connection
	.comm	_INVALID_RELID,8,3              ## @INVALID_RELID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vmbus offer changed: relid=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Old vmbus offer: "

	.comm	_DUMP_PREFIX_OFFSET,4,2         ## @DUMP_PREFIX_OFFSET
L_.str.2:                               ## @.str.2
	.asciz	"New vmbus offer: "

L_.str.3:                               ## @.str.3
	.asciz	"Unable to allocate channel object\n"

	.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_trace_vmbus_onoffer
	mov	x0, x19
	bl	_find_primary_channel_by_offer
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x0, _vmbus_connection@GOTPAGE
Lloh1:
	ldr	x0, [x0, _vmbus_connection@GOTPAGEOFF]
	bl	_atomic_dec
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _INVALID_RELID@GOTPAGE
Lloh3:
	ldr	x9, [x9, _INVALID_RELID@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON
	ldr	x8, [x19]
	str	x8, [x20]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #8
	bl	_memcmp
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x1, [x19]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
Lloh7:
	adrp	x21, _DUMP_PREFIX_OFFSET@GOTPAGE
Lloh8:
	ldr	x21, [x21, _DUMP_PREFIX_OFFSET@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w2, #16
	mov	w3, #4
	mov	x4, x20
	mov	w5, #8
	mov	w6, #0
	bl	_print_hex_dump_debug
	ldr	w1, [x21]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w2, #16
	mov	w3, #4
	mov	x4, x19
	mov	w5, #8
	mov	w6, #0
	bl	_print_hex_dump_debug
	mov	x0, x20
	mov	x1, x19
	bl	_vmbus_setup_channel_state
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_check_ready_for_resume_event
LBB0_4:
	bl	_alloc_channel
	cbz	x0, LBB0_6
; %bb.5:
	mov	x20, x0
	mov	x1, x19
	bl	_vmbus_setup_channel_state
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_vmbus_process_offer
LBB0_6:
	ldr	x0, [x19]
	bl	_vmbus_release_relid
Lloh13:
	adrp	x0, _vmbus_connection@GOTPAGE
Lloh14:
	ldr	x0, [x0, _vmbus_connection@GOTPAGEOFF]
	bl	_atomic_dec
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pr_err
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_vmbus_connection,4,2           ; @vmbus_connection
	.comm	_INVALID_RELID,8,3              ; @INVALID_RELID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vmbus offer changed: relid=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Old vmbus offer: "

	.comm	_DUMP_PREFIX_OFFSET,4,2         ; @DUMP_PREFIX_OFFSET
l_.str.2:                               ; @.str.2
	.asciz	"New vmbus offer: "

l_.str.3:                               ; @.str.3
	.asciz	"Unable to allocate channel object\n"

	.no_dead_strip	_vmbus_onoffer
.subsections_via_symbols
