	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvp_on_msg
_kvp_on_msg:                            ## @kvp_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$15, %esi
	ja	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rdi, %r14
	movq	_kvp_transaction@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_HVUTIL_READY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_3
## %bb.12:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kvp_handle_handshake           ## TAILCALL
LBB0_3:
	movq	_HVUTIL_USERSPACE_REQ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_1
## %bb.4:
	movq	_HVUTIL_USERSPACE_RECV@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	_dm_reg_value@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_8
## %bb.5:
	xorl	%r15d, %r15d
	cmpl	$129, %eax
	jne	LBB0_9
## %bb.6:
	movq	8(%r14), %rax
	xorl	%r15d, %r15d
	cmpl	$0, (%rax)
	jne	LBB0_9
## %bb.7:
	movq	_HV_S_CONT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_9
LBB0_8:
	movl	(%r14), %r15d
LBB0_9:
	movq	_kvp_timeout_work@GOTPCREL(%rip), %rdi
	callq	_cancel_delayed_work_sync
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_kvp_respond_to_host
	movl	8(%r12), %edi
	movq	_kvp_poll_wrapper@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hv_poll_channel
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_kvp_transaction,16,3           ## @kvp_transaction
	.comm	_HVUTIL_READY,8,3               ## @HVUTIL_READY
	.comm	_HVUTIL_USERSPACE_REQ,8,3       ## @HVUTIL_USERSPACE_REQ
	.comm	_HVUTIL_USERSPACE_RECV,8,3      ## @HVUTIL_USERSPACE_RECV
	.comm	_dm_reg_value,4,2               ## @dm_reg_value
	.comm	_HV_S_CONT,4,2                  ## @HV_S_CONT
	.comm	_kvp_timeout_work,4,2           ## @kvp_timeout_work
	.comm	_kvp_poll_wrapper,4,2           ## @kvp_poll_wrapper
	.no_dead_strip	_kvp_on_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvp_on_msg
_kvp_on_msg:                            ; @kvp_on_msg
	.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
	cmp	w1, #15
	b.ls	LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x21, _kvp_transaction@GOTPAGE
Lloh1:
	ldr	x21, [x21, _kvp_transaction@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _HVUTIL_READY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HVUTIL_READY@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.2:
	mov	x0, x19
	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	_kvp_handle_handshake
LBB0_3:
Lloh5:
	adrp	x9, _HVUTIL_USERSPACE_REQ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HVUTIL_USERSPACE_REQ@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	ret
LBB0_6:
Lloh11:
	adrp	x8, _HVUTIL_USERSPACE_RECV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HVUTIL_USERSPACE_RECV@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x21]
Lloh14:
	adrp	x8, _dm_reg_value@GOTPAGE
Lloh15:
	ldr	x8, [x8, _dm_reg_value@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_9
; %bb.7:
	cmp	w8, #129
	b.ne	LBB0_10
; %bb.8:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _HV_S_CONT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HV_S_CONT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w20, w9, wzr, eq
	b	LBB0_11
LBB0_9:
	ldr	w20, [x19]
	b	LBB0_11
LBB0_10:
	mov	w20, #0
LBB0_11:
Lloh20:
	adrp	x0, _kvp_timeout_work@GOTPAGE
Lloh21:
	ldr	x0, [x0, _kvp_timeout_work@GOTPAGEOFF]
	bl	_cancel_delayed_work_sync
	cbz	x0, LBB0_5
; %bb.12:
	mov	x0, x19
	mov	x1, x20
	bl	_kvp_respond_to_host
	ldr	w0, [x21, #8]
Lloh22:
	adrp	x8, _kvp_poll_wrapper@GOTPAGE
Lloh23:
	ldr	x8, [x8, _kvp_poll_wrapper@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_hv_poll_channel
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_kvp_transaction,16,3           ; @kvp_transaction
	.comm	_HVUTIL_READY,8,3               ; @HVUTIL_READY
	.comm	_HVUTIL_USERSPACE_REQ,8,3       ; @HVUTIL_USERSPACE_REQ
	.comm	_HVUTIL_USERSPACE_RECV,8,3      ; @HVUTIL_USERSPACE_RECV
	.comm	_dm_reg_value,4,2               ; @dm_reg_value
	.comm	_HV_S_CONT,4,2                  ; @HV_S_CONT
	.comm	_kvp_timeout_work,4,2           ; @kvp_timeout_work
	.comm	_kvp_poll_wrapper,4,2           ; @kvp_poll_wrapper
	.no_dead_strip	_kvp_on_msg
.subsections_via_symbols
