	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	leaq	L_.str(%rip), %r15
	movq	_is_debugging@GOTPCREL(%rip), %r13
	movq	_is_daemon@GOTPCREL(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$0, (%r12)
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_getopt
	cmpl	$100, %eax
	je	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$110, %eax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	jne	LBB0_1
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, (%r13)
	jmp	LBB0_1
LBB0_4:
	movq	_LOG_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%esi, %esi
	callq	_openlog
	cmpl	$1, (%r12)
	jne	LBB0_8
## %bb.5:
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_daemon
	jmp	LBB0_9
LBB0_8:
	movq	_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_KVP_LOG
LBB0_9:
	movq	_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_getpid
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_KVP_LOG
	movl	$16, %edi
	callq	_malloc
	movq	%rax, %r12
	movl	$16, %edi
	callq	_malloc
	testq	%r12, %r12
	je	LBB0_11
## %bb.10:
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_11
## %bb.14:
	xorl	%eax, %eax
	callq	_kvp_ops_init
	testq	%rax, %rax
	jne	LBB0_15
## %bb.16:
	xorl	%eax, %eax
	callq	_kvp_file_init
	testq	%rax, %rax
	jne	LBB0_17
## %bb.18:
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdi
	callq	_open
	testl	%eax, %eax
	jns	LBB0_20
## %bb.19:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_strerror
	leaq	L_.str.8(%rip), %rsi
	movl	%r14d, %edi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_KVP_LOG
	jmp	LBB0_13
LBB0_11:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_12
LBB0_15:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_12
LBB0_17:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
LBB0_12:
	xorl	%eax, %eax
	callq	_KVP_LOG
LBB0_13:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
LBB0_20:
	movl	%eax, %r13d
	movl	%eax, -56(%rbp)
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movq	_POLLRDNORM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -52(%rbp)
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_HV_KVP_OP_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movl	%r13d, %edi
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_write
	leaq	L_.str.17(%rip), %rbx
	jmp	LBB0_21
LBB0_30:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	_LOG_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.14(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_KVP_LOG
	.p2align	4, 0x90
LBB0_21:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_39 Depth 2
	movq	_INFTIM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rdi
	movl	$1, %esi
	callq	_poll
	movq	%rbx, %r14
	movl	%eax, %ebx
	movq	_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-48(%rbp), %ecx
	leaq	L_.str.9(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_KVP_LOG
	testl	%ebx, %ebx
	movq	%r14, %rbx
	je	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	js	LBB0_23
## %bb.27:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	%r13d, %edi
	movq	%r12, %rsi
	movl	$16, %edx
	xorl	%ecx, %ecx
	callq	_pread
	testl	%eax, %eax
	js	LBB0_28
## %bb.29:                              ##   in Loop: Header=BB0_21 Depth=1
	cmpl	$16, %eax
	jne	LBB0_30
## %bb.31:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rbx
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_memcpy
	movl	8(%r15), %r12d
	testl	%r12d, %r12d
	js	LBB0_34
## %bb.32:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	_HV_KVP_OP_COUNT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jge	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	_kvp_op_hdlrs@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%rcx,%r12,8), %rax
	testq	%rax, %rax
	je	LBB0_34
## %bb.35:                              ##   in Loop: Header=BB0_21 Depth=1
	leaq	(%rcx,%r12,8), %rsi
	movq	%r15, %rdi
	callq	*%rax
	testl	%eax, %eax
	je	LBB0_38
## %bb.36:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	(%r15), %rdx
	xorl	%edi, %edi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_HV_S_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	setne	%dil
	callq	_assert
	movq	(%r15), %rax
	movq	_HV_S_CONT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	je	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.16(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_KVP_LOG
	jmp	LBB0_38
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_21
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_21
	jmp	LBB0_25
LBB0_34:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.15(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_KVP_LOG
	movq	_HV_ERROR_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_38:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	%r13d, %edi
	movq	%r15, %rsi
	movl	$16, %edx
	xorl	%ecx, %ecx
	callq	_pwrite
	cmpl	$16, %eax
	movq	%rbx, %r12
	movq	%r14, %rbx
	je	LBB0_21
	.p2align	4, 0x90
LBB0_39:                                ##   Parent Loop BB0_21 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_LOG_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_KVP_LOG
	movl	%r13d, %edi
	movq	%r15, %rsi
	movl	$16, %edx
	xorl	%ecx, %ecx
	callq	_pwrite
	cmpl	$16, %eax
	jne	LBB0_39
	jmp	LBB0_21
LBB0_28:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.12(%rip), %rsi
	xorl	%eax, %eax
	callq	_KVP_LOG
	leaq	L_.str.13(%rip), %rdi
	jmp	LBB0_26
LBB0_25:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	xorl	%eax, %eax
	callq	_KVP_LOG
	leaq	L_.str.11(%rip), %rdi
LBB0_26:
	callq	_perror
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dn"

	.comm	_is_daemon,4,2                  ## @is_daemon
	.comm	_is_debugging,4,2               ## @is_debugging
L_.str.1:                               ## @.str.1
	.asciz	"HV_KVP"

	.comm	_LOG_USER,4,2                   ## @LOG_USER
	.comm	_LOG_DEBUG,4,2                  ## @LOG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"Run as regular process.\n"

	.comm	_LOG_INFO,4,2                   ## @LOG_INFO
L_.str.3:                               ## @.str.3
	.asciz	"HV_KVP starting; pid is: %d\n"

	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.4:                               ## @.str.4
	.asciz	"Failed to allocate memory for hv buffer\n"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
L_.str.5:                               ## @.str.5
	.asciz	"Failed to initizlize operation handlers\n"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to initialize the pools\n"

L_.str.7:                               ## @.str.7
	.asciz	"/dev/hv_kvp_dev"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
L_.str.8:                               ## @.str.8
	.asciz	"open /dev/hv_kvp_dev failed; error: %d %s\n"

	.comm	_errno,8,3                      ## @errno
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLRDNORM,4,2                 ## @POLLRDNORM
	.comm	_HV_KVP_OP_REGISTER,4,2         ## @HV_KVP_OP_REGISTER
	.comm	_INFTIM,4,2                     ## @INFTIM
L_.str.9:                               ## @.str.9
	.asciz	"poll returned r = %d, revent = 0x%x\n"

	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_EINTR,8,3                      ## @EINTR
L_.str.10:                              ## @.str.10
	.asciz	"Poll failed.\n"

L_.str.11:                              ## @.str.11
	.asciz	"poll"

	.comm	_EIO,4,2                        ## @EIO
L_.str.12:                              ## @.str.12
	.asciz	"Read failed.\n"

L_.str.13:                              ## @.str.13
	.asciz	"pread"

L_.str.14:                              ## @.str.14
	.asciz	"read len is: %d\n"

	.comm	_HV_KVP_OP_COUNT,4,2            ## @HV_KVP_OP_COUNT
	.comm	_kvp_op_hdlrs,8,3               ## @kvp_op_hdlrs
	.comm	_LOG_WARNING,4,2                ## @LOG_WARNING
L_.str.15:                              ## @.str.15
	.asciz	"Unsupported operation OP = %d\n"

	.comm	_HV_ERROR_NOT_SUPPORTED,8,3     ## @HV_ERROR_NOT_SUPPORTED
	.comm	_HV_S_OK,8,3                    ## @HV_S_OK
	.comm	_HV_S_CONT,8,3                  ## @HV_S_CONT
L_.str.16:                              ## @.str.16
	.asciz	"Operation failed OP = %d, error = 0x%x\n"

L_.str.17:                              ## @.str.17
	.asciz	"write len is: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _is_debugging@GOTPAGE
Lloh1:
	ldr	x23, [x23, _is_debugging@GOTPAGEOFF]
	mov	w24, #1
Lloh2:
	adrp	x22, _is_daemon@GOTPAGE
Lloh3:
	ldr	x22, [x22, _is_daemon@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	wzr, [x22]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_getopt
	cmp	w0, #100
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #110
	b.eq	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.ne	LBB0_2
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	w24, [x23]
	b	LBB0_2
LBB0_6:
Lloh6:
	adrp	x8, _LOG_USER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LOG_USER@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #0
	bl	_openlog
	ldr	w8, [x22]
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #1
	mov	w1, #0
	bl	_daemon
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x8, _LOG_DEBUG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LOG_DEBUG@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_KVP_LOG
LBB0_9:
Lloh16:
	adrp	x8, _LOG_INFO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LOG_INFO@GOTPAGEOFF]
Lloh18:
	ldr	w19, [x8]
	bl	_getpid
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_KVP_LOG
	mov	w0, #16
	bl	_malloc
	mov	x19, x0
	mov	w0, #16
	bl	_malloc
	cbz	x19, LBB0_15
; %bb.10:
	mov	x20, x0
	cbz	x0, LBB0_15
; %bb.11:
	bl	_kvp_ops_init
	cbnz	x0, LBB0_16
; %bb.12:
	bl	_kvp_file_init
	cbnz	x0, LBB0_17
; %bb.13:
Lloh21:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x0, l_.str.7@PAGE
Lloh25:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_open
	tbz	w0, #31, LBB0_19
; %bb.14:
Lloh26:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh28:
	ldr	w19, [x8]
Lloh29:
	adrp	x8, _errno@GOTPAGE
Lloh30:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh31:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp]
Lloh32:
	adrp	x1, l_.str.8@PAGE
Lloh33:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	b	LBB0_18
LBB0_15:
Lloh34:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_18
LBB0_16:
Lloh39:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
Lloh42:
	adrp	x1, l_.str.5@PAGE
Lloh43:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_18
LBB0_17:
Lloh44:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh45:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
Lloh47:
	adrp	x1, l_.str.6@PAGE
Lloh48:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_18:
	bl	_KVP_LOG
Lloh49:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
	bl	_exit
LBB0_19:
	mov	x21, x0
Lloh52:
	adrp	x8, _POLLIN@GOTPAGE
Lloh53:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
Lloh55:
	adrp	x9, _POLLRDNORM@GOTPAGE
Lloh56:
	ldr	x9, [x9, _POLLRDNORM@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
	orr	w8, w9, w8
	stp	w0, w8, [sp, #16]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh58:
	adrp	x8, _HV_KVP_OP_REGISTER@GOTPAGE
Lloh59:
	ldr	x8, [x8, _HV_KVP_OP_REGISTER@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x21
	mov	x1, x19
	mov	w2, #16
	bl	_write
Lloh61:
	adrp	x28, _INFTIM@GOTPAGE
Lloh62:
	ldr	x28, [x28, _INFTIM@GOTPAGEOFF]
Lloh63:
	adrp	x23, _LOG_DEBUG@GOTPAGE
Lloh64:
	ldr	x23, [x23, _LOG_DEBUG@GOTPAGEOFF]
Lloh65:
	adrp	x22, l_.str.9@PAGE
Lloh66:
	add	x22, x22, l_.str.9@PAGEOFF
Lloh67:
	adrp	x25, l_.str.17@PAGE
Lloh68:
	add	x25, x25, l_.str.17@PAGEOFF
Lloh69:
	adrp	x26, _LOG_ERR@GOTPAGE
Lloh70:
	ldr	x26, [x26, _LOG_ERR@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
Lloh71:
	adrp	x8, _errno@GOTPAGE
Lloh72:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh73:
	ldr	x8, [x8]
Lloh74:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh75:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh76:
	ldr	x9, [x9]
Lloh77:
	adrp	x10, _EINTR@GOTPAGE
Lloh78:
	ldr	x10, [x10, _EINTR@GOTPAGEOFF]
Lloh79:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_37
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x28]
	add	x0, sp, #16
	mov	w1, #1
	bl	_poll
	mov	x27, x0
	ldr	w0, [x23]
	ldr	w8, [sp, #24]
	stp	x27, x8, [sp]
	mov	x1, x22
	bl	_KVP_LOG
	cbz	w27, LBB0_21
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	tbnz	w27, #31, LBB0_20
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	w2, #16
	mov	w3, #0
	bl	_pread
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_36
; %bb.24:                               ;   in Loop: Header=BB0_21 Depth=1
	cmp	w0, #16
	b.ne	LBB0_31
; %bb.25:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	w2, #16
	bl	_memcpy
	ldr	w24, [x20, #8]
	tbnz	w24, #31, LBB0_32
; %bb.26:                               ;   in Loop: Header=BB0_21 Depth=1
Lloh80:
	adrp	x8, _HV_KVP_OP_COUNT@GOTPAGE
Lloh81:
	ldr	x8, [x8, _HV_KVP_OP_COUNT@GOTPAGEOFF]
Lloh82:
	ldr	w8, [x8]
	cmp	w24, w8
	b.ge	LBB0_32
; %bb.27:                               ;   in Loop: Header=BB0_21 Depth=1
Lloh83:
	adrp	x8, _kvp_op_hdlrs@GOTPAGE
Lloh84:
	ldr	x8, [x8, _kvp_op_hdlrs@GOTPAGEOFF]
Lloh85:
	ldr	x8, [x8]
	add	x1, x8, x24, lsl #3
	ldr	x8, [x1]
	cbz	x8, LBB0_32
; %bb.28:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x0, x20
	blr	x8
	cbz	w0, LBB0_34
; %bb.29:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x27, x0
	ldr	x8, [x20]
Lloh86:
	adrp	x9, _HV_S_OK@GOTPAGE
Lloh87:
	ldr	x9, [x9, _HV_S_OK@GOTPAGEOFF]
Lloh88:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_assert
	ldr	x8, [x20]
Lloh89:
	adrp	x9, _HV_S_CONT@GOTPAGE
Lloh90:
	ldr	x9, [x9, _HV_S_CONT@GOTPAGEOFF]
Lloh91:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_34
; %bb.30:                               ;   in Loop: Header=BB0_21 Depth=1
Lloh92:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh93:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh94:
	ldr	w0, [x8]
	stp	x24, x27, [sp]
Lloh95:
	adrp	x1, l_.str.16@PAGE
Lloh96:
	add	x1, x1, l_.str.16@PAGEOFF
	b	LBB0_33
LBB0_31:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	w8, [x26]
	str	x0, [sp]
	mov	x0, x8
Lloh97:
	adrp	x1, l_.str.14@PAGE
Lloh98:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	_KVP_LOG
	b	LBB0_21
LBB0_32:                                ;   in Loop: Header=BB0_21 Depth=1
Lloh99:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh100:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh101:
	ldr	w0, [x8]
	str	x24, [sp]
Lloh102:
	adrp	x1, l_.str.15@PAGE
Lloh103:
	add	x1, x1, l_.str.15@PAGEOFF
	bl	_KVP_LOG
Lloh104:
	adrp	x8, _HV_ERROR_NOT_SUPPORTED@GOTPAGE
Lloh105:
	ldr	x8, [x8, _HV_ERROR_NOT_SUPPORTED@GOTPAGEOFF]
Lloh106:
	ldr	x8, [x8]
	str	x8, [x20]
	b	LBB0_34
LBB0_33:                                ;   in Loop: Header=BB0_21 Depth=1
	bl	_KVP_LOG
LBB0_34:                                ;   in Loop: Header=BB0_21 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	w2, #16
	mov	w3, #0
	bl	_pwrite
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #16
	b.eq	LBB0_21
; %bb.35:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	w8, [x26]
	str	x0, [sp]
	mov	x0, x8
	mov	x1, x25
	b	LBB0_33
LBB0_36:
	ldr	w0, [x26]
Lloh107:
	adrp	x1, l_.str.12@PAGE
Lloh108:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_KVP_LOG
Lloh109:
	adrp	x0, l_.str.13@PAGE
Lloh110:
	add	x0, x0, l_.str.13@PAGEOFF
	b	LBB0_38
LBB0_37:
	ldr	w0, [x26]
Lloh111:
	adrp	x1, l_.str.10@PAGE
Lloh112:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_KVP_LOG
Lloh113:
	adrp	x0, l_.str.11@PAGE
Lloh114:
	add	x0, x0, l_.str.11@PAGEOFF
LBB0_38:
	bl	_perror
Lloh115:
	adrp	x8, _EIO@GOTPAGE
Lloh116:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh117:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpAdd	Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpAdd	Lloh109, Lloh110
	.loh AdrpAdd	Lloh107, Lloh108
	.loh AdrpAdd	Lloh113, Lloh114
	.loh AdrpAdd	Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dn"

	.comm	_is_daemon,4,2                  ; @is_daemon
	.comm	_is_debugging,4,2               ; @is_debugging
l_.str.1:                               ; @.str.1
	.asciz	"HV_KVP"

	.comm	_LOG_USER,4,2                   ; @LOG_USER
	.comm	_LOG_DEBUG,4,2                  ; @LOG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"Run as regular process.\n"

	.comm	_LOG_INFO,4,2                   ; @LOG_INFO
l_.str.3:                               ; @.str.3
	.asciz	"HV_KVP starting; pid is: %d\n"

	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.4:                               ; @.str.4
	.asciz	"Failed to allocate memory for hv buffer\n"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
l_.str.5:                               ; @.str.5
	.asciz	"Failed to initizlize operation handlers\n"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to initialize the pools\n"

l_.str.7:                               ; @.str.7
	.asciz	"/dev/hv_kvp_dev"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
l_.str.8:                               ; @.str.8
	.asciz	"open /dev/hv_kvp_dev failed; error: %d %s\n"

	.comm	_errno,8,3                      ; @errno
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLRDNORM,4,2                 ; @POLLRDNORM
	.comm	_HV_KVP_OP_REGISTER,4,2         ; @HV_KVP_OP_REGISTER
	.comm	_INFTIM,4,2                     ; @INFTIM
l_.str.9:                               ; @.str.9
	.asciz	"poll returned r = %d, revent = 0x%x\n"

	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_EINTR,8,3                      ; @EINTR
l_.str.10:                              ; @.str.10
	.asciz	"Poll failed.\n"

l_.str.11:                              ; @.str.11
	.asciz	"poll"

	.comm	_EIO,4,2                        ; @EIO
l_.str.12:                              ; @.str.12
	.asciz	"Read failed.\n"

l_.str.13:                              ; @.str.13
	.asciz	"pread"

l_.str.14:                              ; @.str.14
	.asciz	"read len is: %d\n"

	.comm	_HV_KVP_OP_COUNT,4,2            ; @HV_KVP_OP_COUNT
	.comm	_kvp_op_hdlrs,8,3               ; @kvp_op_hdlrs
	.comm	_LOG_WARNING,4,2                ; @LOG_WARNING
l_.str.15:                              ; @.str.15
	.asciz	"Unsupported operation OP = %d\n"

	.comm	_HV_ERROR_NOT_SUPPORTED,8,3     ; @HV_ERROR_NOT_SUPPORTED
	.comm	_HV_S_OK,8,3                    ; @HV_S_OK
	.comm	_HV_S_CONT,8,3                  ; @HV_S_CONT
l_.str.16:                              ; @.str.16
	.asciz	"Operation failed OP = %d, error = 0x%x\n"

l_.str.17:                              ; @.str.17
	.asciz	"write len is: %d\n"

.subsections_via_symbols
