	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shutdown_onchannelcallback
_shutdown_onchannelcallback:            ## @shutdown_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_util_shutdown@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rcx
	leaq	-20(%rbp), %r8
	movq	%rbx, %rsi
	callq	_vmbus_recvpacket
	cmpq	$0, -32(%rbp)
	jle	LBB0_7
## %bb.1:
	movq	16(%rbx), %rax
	movq	_ICMSGTYPE_NEGOTIATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	leaq	16(%rbx), %rdi
	movq	_util_fw_version@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_sd_srv_version@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_vmbus_prep_negotiate_resp
	jmp	LBB0_6
LBB0_3:
	cmpl	$1, 80(%rbx)
	ja	LBB0_5
## %bb.4:
	movq	_HV_S_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	_ICMSGHDRFLAG_TRANSACTION@GOTPCREL(%rip), %rax
	movq	_ICMSGHDRFLAG_RESPONSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 24(%rbx)
	movq	-32(%rbp), %rdx
	movl	-20(%rbp), %ecx
	movq	_VM_PKT_DATA_INBAND@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%r9d, %r9d
	callq	_vmbus_sendpacket
	movq	_shutdown_work@GOTPCREL(%rip), %rdi
	callq	_schedule_work
	jmp	LBB0_7
LBB0_5:
	movq	_HV_E_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_info
LBB0_6:
	movq	_ICMSGHDRFLAG_TRANSACTION@GOTPCREL(%rip), %rax
	movq	_ICMSGHDRFLAG_RESPONSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 24(%rbx)
	movq	-32(%rbp), %rdx
	movl	-20(%rbp), %ecx
	movq	_VM_PKT_DATA_INBAND@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%r9d, %r9d
	callq	_vmbus_sendpacket
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_util_shutdown,8,3              ## @util_shutdown
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_ICMSGTYPE_NEGOTIATE,8,3        ## @ICMSGTYPE_NEGOTIATE
	.comm	_util_fw_version,4,2            ## @util_fw_version
	.comm	_sd_srv_version,4,2             ## @sd_srv_version
	.comm	_HV_S_OK,4,2                    ## @HV_S_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Shutdown request received - graceful shutdown initiated\n"

	.comm	_HV_E_FAIL,4,2                  ## @HV_E_FAIL
L_.str.1:                               ## @.str.1
	.asciz	"Shutdown request received - Invalid request\n"

	.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
	.comm	_shutdown_work,4,2              ## @shutdown_work
	.no_dead_strip	_shutdown_onchannelcallback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shutdown_onchannelcallback
_shutdown_onchannelcallback:            ; @shutdown_onchannelcallback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _util_shutdown@GOTPAGE
Lloh1:
	ldr	x8, [x8, _util_shutdown@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
Lloh3:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #8
	add	x4, sp, #4
	mov	x1, x19
	bl	_vmbus_recvpacket
	ldr	x8, [sp, #8]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x0, x19
	ldr	x8, [x0, #16]!
Lloh6:
	adrp	x9, _ICMSGTYPE_NEGOTIATE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ICMSGTYPE_NEGOTIATE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _util_fw_version@GOTPAGE
Lloh10:
	ldr	x8, [x8, _util_fw_version@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x8, _sd_srv_version@GOTPAGE
Lloh13:
	ldr	x8, [x8, _sd_srv_version@GOTPAGEOFF]
Lloh14:
	ldr	w4, [x8]
	mov	x1, #0
	mov	x2, x19
	bl	_vmbus_prep_negotiate_resp
	b	LBB0_6
LBB0_3:
	ldr	w8, [x19, #80]
	cmp	w8, #1
	b.hi	LBB0_5
; %bb.4:
Lloh15:
	adrp	x8, _HV_S_OK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HV_S_OK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #28]
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh20:
	adrp	x8, _ICMSGHDRFLAG_TRANSACTION@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ICMSGHDRFLAG_TRANSACTION@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _ICMSGHDRFLAG_RESPONSE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ICMSGHDRFLAG_RESPONSE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #24]
	ldr	x2, [sp, #8]
	ldr	w3, [sp, #4]
Lloh26:
	adrp	x8, _VM_PKT_DATA_INBAND@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VM_PKT_DATA_INBAND@GOTPAGEOFF]
Lloh28:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w5, #0
	bl	_vmbus_sendpacket
Lloh29:
	adrp	x0, _shutdown_work@GOTPAGE
Lloh30:
	ldr	x0, [x0, _shutdown_work@GOTPAGEOFF]
	bl	_schedule_work
	b	LBB0_7
LBB0_5:
Lloh31:
	adrp	x8, _HV_E_FAIL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _HV_E_FAIL@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	str	w8, [x19, #28]
Lloh34:
	adrp	x0, l_.str.1@PAGE
Lloh35:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
LBB0_6:
Lloh36:
	adrp	x8, _ICMSGHDRFLAG_TRANSACTION@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ICMSGHDRFLAG_TRANSACTION@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _ICMSGHDRFLAG_RESPONSE@GOTPAGE
Lloh40:
	ldr	x9, [x9, _ICMSGHDRFLAG_RESPONSE@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #24]
	ldr	x2, [sp, #8]
	ldr	w3, [sp, #4]
Lloh42:
	adrp	x8, _VM_PKT_DATA_INBAND@GOTPAGE
Lloh43:
	ldr	x8, [x8, _VM_PKT_DATA_INBAND@GOTPAGEOFF]
Lloh44:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w5, #0
	bl	_vmbus_sendpacket
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_util_shutdown,8,3              ; @util_shutdown
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_ICMSGTYPE_NEGOTIATE,8,3        ; @ICMSGTYPE_NEGOTIATE
	.comm	_util_fw_version,4,2            ; @util_fw_version
	.comm	_sd_srv_version,4,2             ; @sd_srv_version
	.comm	_HV_S_OK,4,2                    ; @HV_S_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Shutdown request received - graceful shutdown initiated\n"

	.comm	_HV_E_FAIL,4,2                  ; @HV_E_FAIL
l_.str.1:                               ; @.str.1
	.asciz	"Shutdown request received - Invalid request\n"

	.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
	.comm	_shutdown_work,4,2              ; @shutdown_work
	.no_dead_strip	_shutdown_onchannelcallback
.subsections_via_symbols
