	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvp_handle_handshake
_kvp_handle_handshake:                  ## @kvp_handle_handshake
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_3
## %bb.2:
	movq	_dm_reg_value@GOTPCREL(%rip), %rax
	movl	$129, (%rax)
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	jmp	LBB0_5
LBB0_4:
	movq	_dm_reg_value@GOTPCREL(%rip), %rax
	movl	$128, (%rax)
LBB0_5:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movq	_dm_reg_value@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_kvp_register
	movq	_kvp_transaction@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	8(%rax), %rdi
	movl	$1, %r14d
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_hv_kvp_onchannelcallback
	jmp	LBB0_7
LBB0_3:
	movq	%rdi, %rbx
	leaq	L_.str.2(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_pr_info
	movl	(%rbx), %edx
	leaq	L_.str.3(%rip), %rdi
	movl	$128, %esi
	xorl	%eax, %eax
	callq	_pr_info
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dm_reg_value,4,2               ## @dm_reg_value
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"KVP: IP injection functionality not available\n"

L_.str.1:                               ## @.str.1
	.asciz	"KVP: Upgrade the KVP daemon\n"

L_.str.2:                               ## @.str.2
	.asciz	"KVP: incompatible daemon\n"

L_.str.3:                               ## @.str.3
	.asciz	"KVP: KVP version: %d, Daemon version: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"KVP: user-mode registering done.\n"

	.comm	_kvp_transaction,16,3           ## @kvp_transaction
	.no_dead_strip	_kvp_handle_handshake
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvp_handle_handshake
_kvp_handle_handshake:                  ; @kvp_handle_handshake
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x20, _dm_reg_value@GOTPAGE
Lloh1:
	ldr	x20, [x20, _dm_reg_value@GOTPAGEOFF]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_7
; %bb.2:
	str	w8, [x20]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	b	LBB0_4
LBB0_3:
	str	w8, [x20]
LBB0_4:
Lloh6:
	adrp	x0, l_.str.4@PAGE
Lloh7:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_info
	ldr	w0, [x20]
	bl	_kvp_register
Lloh8:
	adrp	x8, _kvp_transaction@GOTPAGE
Lloh9:
	ldr	x8, [x8, _kvp_transaction@GOTPAGEOFF]
	str	wzr, [x8]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_hv_kvp_onchannelcallback
LBB0_6:
	mov	w0, #1
	b	LBB0_8
LBB0_7:
	mov	x19, x0
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_info
	ldr	w8, [x19]
	mov	w9, #128
	stp	x9, x8, [sp]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_info
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_dm_reg_value,4,2               ; @dm_reg_value
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"KVP: IP injection functionality not available\n"

l_.str.1:                               ; @.str.1
	.asciz	"KVP: Upgrade the KVP daemon\n"

l_.str.2:                               ; @.str.2
	.asciz	"KVP: incompatible daemon\n"

l_.str.3:                               ; @.str.3
	.asciz	"KVP: KVP version: %d, Daemon version: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"KVP: user-mode registering done.\n"

	.comm	_kvp_transaction,16,3           ; @kvp_transaction
	.no_dead_strip	_kvp_handle_handshake
.subsections_via_symbols
