	.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
	movq	%rdi, %r14
	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:
	movl	(%r14), %esi
	leaq	L_.str.4(%rip), %rdi
	callq	_pr_debug
	movq	_dm_reg_value@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_kvp_register
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_info
	movl	(%r14), %edx
	leaq	L_.str.3(%rip), %rdi
	movl	$128, %esi
	xorl	%eax, %eax
	callq	_pr_info
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %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"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.4:                               ## @.str.4
	.asciz	"KVP: userspace daemon ver. %d connected\n"

	.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
	mov	x19, x0
	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_5
; %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:
	ldr	w1, [x19]
Lloh6:
	adrp	x0, l_.str.4@PAGE
Lloh7:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_debug
	ldr	w0, [x20]
	bl	_kvp_register
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_info
	ldr	w8, [x19]
	mov	w9, #128
	stp	x9, x8, [sp]
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_info
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.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"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.4:                               ; @.str.4
	.asciz	"KVP: userspace daemon ver. %d connected\n"

	.no_dead_strip	_kvp_handle_handshake
.subsections_via_symbols
