	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vss_on_msg
_vss_on_msg:                            ## @vss_on_msg
	.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
	cmpl	$16, %esi
	jne	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	_VSS_OP_REGISTER@GOTPCREL(%rip), %rdx
	movq	_vss_transaction@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	cmpq	(%rdx), %rax
	je	LBB0_4
## %bb.3:
	movq	_VSS_OP_REGISTER1@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_4
## %bb.7:
	movq	_HVUTIL_USERSPACE_REQ@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_12
## %bb.8:
	movq	_HVUTIL_USERSPACE_RECV@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%r15)
	movq	_VSS_OP_HOT_BACKUP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	_VSS_HBU_NO_AUTO_RECOVERY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%r15), %rcx
	movl	%eax, (%rcx)
LBB0_10:
	movq	_vss_timeout_work@GOTPCREL(%rip), %rdi
	callq	_cancel_delayed_work_sync
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	movl	(%r14), %edi
	callq	_vss_respond_to_host
	movl	8(%r15), %edi
	movq	_vss_poll_wrapper@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hv_poll_channel
	jmp	LBB0_14
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_13
LBB0_4:
	movq	_HVUTIL_READY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jle	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_13
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vss_handle_handshake           ## TAILCALL
LBB0_12:
	leaq	L_.str.2(%rip), %rdi
LBB0_13:
	callq	_pr_debug
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VSS: Message size does not match length\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VSS_OP_REGISTER,8,3            ## @VSS_OP_REGISTER
	.comm	_VSS_OP_REGISTER1,8,3           ## @VSS_OP_REGISTER1
	.comm	_vss_transaction,24,3           ## @vss_transaction
	.comm	_HVUTIL_READY,8,3               ## @HVUTIL_READY
L_.str.1:                               ## @.str.1
	.asciz	"VSS: Got unexpected registration request\n"

	.comm	_HVUTIL_USERSPACE_REQ,8,3       ## @HVUTIL_USERSPACE_REQ
	.comm	_HVUTIL_USERSPACE_RECV,8,3      ## @HVUTIL_USERSPACE_RECV
	.comm	_VSS_OP_HOT_BACKUP,8,3          ## @VSS_OP_HOT_BACKUP
	.comm	_VSS_HBU_NO_AUTO_RECOVERY,4,2   ## @VSS_HBU_NO_AUTO_RECOVERY
	.comm	_vss_timeout_work,4,2           ## @vss_timeout_work
	.comm	_vss_poll_wrapper,4,2           ## @vss_poll_wrapper
L_.str.2:                               ## @.str.2
	.asciz	"VSS: Transaction not active\n"

	.no_dead_strip	_vss_on_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vss_on_msg
_vss_on_msg:                            ; @vss_on_msg
	.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
	cmp	w1, #16
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _VSS_OP_REGISTER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VSS_OP_REGISTER@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x9]
Lloh3:
	adrp	x9, _VSS_OP_REGISTER1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VSS_OP_REGISTER1@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x9]
Lloh6:
	adrp	x20, _vss_transaction@GOTPAGE
Lloh7:
	ldr	x20, [x20, _vss_transaction@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x10
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_7
; %bb.2:
Lloh8:
	adrp	x8, _HVUTIL_READY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HVUTIL_READY@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x9, x8
	b.le	LBB0_12
; %bb.3:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
LBB0_5:
	bl	_pr_debug
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh18:
	adrp	x10, _HVUTIL_USERSPACE_REQ@GOTPAGE
Lloh19:
	ldr	x10, [x10, _HVUTIL_USERSPACE_REQ@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_13
; %bb.8:
Lloh21:
	adrp	x9, _HVUTIL_USERSPACE_RECV@GOTPAGE
Lloh22:
	ldr	x9, [x9, _HVUTIL_USERSPACE_RECV@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	str	x9, [x20]
Lloh24:
	adrp	x9, _VSS_OP_HOT_BACKUP@GOTPAGE
Lloh25:
	ldr	x9, [x9, _VSS_OP_HOT_BACKUP@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
Lloh27:
	adrp	x8, _VSS_HBU_NO_AUTO_RECOVERY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VSS_HBU_NO_AUTO_RECOVERY@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	x9, [x20, #16]
	str	w8, [x9]
LBB0_10:
Lloh30:
	adrp	x0, _vss_timeout_work@GOTPAGE
Lloh31:
	ldr	x0, [x0, _vss_timeout_work@GOTPAGEOFF]
	bl	_cancel_delayed_work_sync
	cbz	x0, LBB0_6
; %bb.11:
	ldr	w0, [x19]
	bl	_vss_respond_to_host
	ldr	w0, [x20, #8]
Lloh32:
	adrp	x8, _vss_poll_wrapper@GOTPAGE
Lloh33:
	ldr	x8, [x8, _vss_poll_wrapper@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	bl	_hv_poll_channel
	mov	w0, #0
	b	LBB0_6
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vss_handle_handshake
LBB0_13:
Lloh35:
	adrp	x0, l_.str.2@PAGE
Lloh36:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VSS: Message size does not match length\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VSS_OP_REGISTER,8,3            ; @VSS_OP_REGISTER
	.comm	_VSS_OP_REGISTER1,8,3           ; @VSS_OP_REGISTER1
	.comm	_vss_transaction,24,3           ; @vss_transaction
	.comm	_HVUTIL_READY,8,3               ; @HVUTIL_READY
l_.str.1:                               ; @.str.1
	.asciz	"VSS: Got unexpected registration request\n"

	.comm	_HVUTIL_USERSPACE_REQ,8,3       ; @HVUTIL_USERSPACE_REQ
	.comm	_HVUTIL_USERSPACE_RECV,8,3      ; @HVUTIL_USERSPACE_RECV
	.comm	_VSS_OP_HOT_BACKUP,8,3          ; @VSS_OP_HOT_BACKUP
	.comm	_VSS_HBU_NO_AUTO_RECOVERY,4,2   ; @VSS_HBU_NO_AUTO_RECOVERY
	.comm	_vss_timeout_work,4,2           ; @vss_timeout_work
	.comm	_vss_poll_wrapper,4,2           ; @vss_poll_wrapper
l_.str.2:                               ; @.str.2
	.asciz	"VSS: Transaction not active\n"

	.no_dead_strip	_vss_on_msg
.subsections_via_symbols
