	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvp_get_ip_info
_kvp_get_ip_info:                       ## @kvp_get_ip_info
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, %r14
	movq	%rsi, %r15
	movl	%edi, %r13d
	movl	$0, -80(%rbp)
	movl	$0, -44(%rbp)
	movq	_HV_KVP_OP_ENUMERATE@GOTPCREL(%rip), %rax
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	cmpl	%edx, (%rax)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rbx
	jmp	LBB0_3
LBB0_2:
	movq	%r14, %rax
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %rax
	movl	$0, 8(%r14)
	movl	$8, %ebx
	movq	%rax, %r14
LBB0_3:
	leaq	-96(%rbp), %rdi
	callq	_getifaddrs
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_strlcpy
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_30
LBB0_4:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	-96(%rbp), %r12
	testq	%r12, %r12
	je	LBB0_5
## %bb.7:
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_8
LBB0_5:
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	jmp	LBB0_29
LBB0_23:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	-49(%rbp), %rsi
	callq	_strlcat
LBB0_24:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movl	$8, %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_strlcat
	movq	%rbx, %rdi
	callq	_strlen
	movl	-44(%rbp), %ecx
	addl	%ecx, %eax
	incl	%eax
	movl	%eax, -44(%rbp)
LBB0_25:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_kvp_get_ipconfig_info
LBB0_26:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r12), %rdi
	movl	(%rdi), %esi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	-80(%rbp), %r8
	callq	_kvp_process_ip_address
	testl	%eax, %eax
	jne	LBB0_27
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r12), %r12
	testq	%r12, %r12
	je	LBB0_10
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 8(%r12)
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	testq	%r15, %r15
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	24(%r12), %ebx
	movq	%r15, %rdi
	callq	_strlen
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_9
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r12), %rax
	movl	(%rax), %esi
	testl	%r13d, %r13d
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%r13d, %esi
	movl	%r13d, %esi
	jne	LBB0_9
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %esi
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_AF_INET6@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %esi
	jne	LBB0_9
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	movq	_HV_KVP_OP_GET_IP_INFO@GOTPCREL(%rip), %rdx
	cmpl	%ecx, (%rdx)
	jne	LBB0_26
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%eax, %esi
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_ADDR_FAMILY_IPV4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, 8(%rcx)
	movq	16(%r12), %rdi
	movq	(%rcx), %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	-44(%rbp), %r8
	callq	_kvp_process_ip_address
	testl	%eax, %eax
	jne	LBB0_26
	jmp	LBB0_25
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_ADDR_FAMILY_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, 8(%rcx)
	movq	(%rcx), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_hweight32
	movq	%rax, %r14
	leaq	4(%rbx), %rdi
	callq	_hweight32
	addl	%eax, %r14d
	leaq	8(%rbx), %rdi
	callq	_hweight32
	addl	%eax, %r14d
	addq	$12, %rbx
	movq	%rbx, %rdi
	callq	_hweight32
	addl	%eax, %r14d
	leaq	-49(%rbp), %rdi
	movl	$5, %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%r14d, %ecx
	callq	_snprintf
	movslq	-44(%rbp), %r14
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	subq	%r14, %rbx
	leaq	-49(%rbp), %rdi
	callq	_strlen
	incq	%rax
	cmpq	%rax, %rbx
	jb	LBB0_26
## %bb.21:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$8, %edx
	testl	%r14d, %r14d
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	-49(%rbp), %rsi
	callq	_strlcpy
	jmp	LBB0_24
LBB0_10:
	xorl	%ebx, %ebx
LBB0_28:
	movq	-96(%rbp), %rdi
LBB0_29:
	callq	_freeifaddrs
LBB0_30:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movl	%eax, %ebx
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_HV_KVP_OP_ENUMERATE,4,2        ## @HV_KVP_OP_ENUMERATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getifaddrs failed\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_HV_KVP_OP_GET_IP_INFO,4,2      ## @HV_KVP_OP_GET_IP_INFO
	.comm	_ADDR_FAMILY_IPV4,4,2           ## @ADDR_FAMILY_IPV4
	.comm	_ADDR_FAMILY_IPV6,4,2           ## @ADDR_FAMILY_IPV6
L_.str.1:                               ## @.str.1
	.asciz	"/%d"

L_.str.2:                               ## @.str.2
	.asciz	";"

	.no_dead_strip	_kvp_get_ip_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvp_get_ip_info
_kvp_get_ip_info:                       ; @kvp_get_ip_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	str	xzr, [sp, #32]
Lloh0:
	adrp	x8, _HV_KVP_OP_ENUMERATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HV_KVP_OP_ENUMERATE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_2
; %bb.1:
	mov	x24, #0
	mov	x25, x19
	b	LBB0_3
LBB0_2:
	mov	x24, x20
	str	wzr, [x20, #8]
	ldr	x20, [x20, #16]
	mov	w25, #8
LBB0_3:
	add	x0, sp, #40
	bl	_getifaddrs
	cbz	x0, LBB0_5
; %bb.4:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x25
	bl	_strlcpy
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	w27, [x8]
	b	LBB0_28
LBB0_5:
	ldr	x25, [sp, #40]
	cbz	x25, LBB0_7
; %bb.6:
	str	x24, [sp, #16]                  ; 8-byte Folded Spill
Lloh8:
	adrp	x28, _AF_INET@GOTPAGE
Lloh9:
	ldr	x28, [x28, _AF_INET@GOTPAGEOFF]
Lloh10:
	adrp	x24, _AF_INET6@GOTPAGE
Lloh11:
	ldr	x24, [x24, _AF_INET6@GOTPAGEOFF]
	b	LBB0_13
LBB0_7:
	mov	x0, #0
	mov	w27, #0
	b	LBB0_27
LBB0_8:                                 ;   in Loop: Header=BB0_13 Depth=1
	ldr	x26, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x26
	mov	w2, #8
	bl	_strlcat
LBB0_9:                                 ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x0, [x8]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #8
	bl	_strlcat
	mov	x0, x26
	bl	_strlen
	ldr	w8, [sp, #32]
	add	w8, w0, w8
	add	w8, w8, #1
	str	w8, [sp, #32]
LBB0_10:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x22
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	bl	_kvp_get_ipconfig_info
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x0, [x25, #8]
	ldr	w1, [x0]
	add	x4, sp, #36
	mov	x2, x20
	mov	x3, x19
	bl	_kvp_process_ip_address
	cbnz	w0, LBB0_29
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x25, [x25]
	cbz	x25, LBB0_25
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25, #8]
	cbz	x8, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	cbz	x22, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w27, [x25, #24]
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x27
	mov	x1, x22
	bl	_strncmp
	cbnz	x0, LBB0_12
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x25, #8]
	ldr	w1, [x8]
	cbz	w23, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	w1, w23
	mov	x1, x23
	b.ne	LBB0_12
LBB0_18:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x28]
	ldr	w9, [x24]
	cmp	w1, w8
	ccmp	w1, w9, #4, ne
	b.ne	LBB0_12
; %bb.19:                               ;   in Loop: Header=BB0_13 Depth=1
Lloh14:
	adrp	x9, _HV_KVP_OP_GET_IP_INFO@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HV_KVP_OP_GET_IP_INFO@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w9, w21
	b.ne	LBB0_11
; %bb.20:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	w1, w8
	b.ne	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_13 Depth=1
Lloh17:
	adrp	x8, _ADDR_FAMILY_IPV4@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ADDR_FAMILY_IPV4@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	ldr	w9, [x10, #8]
	orr	w8, w9, w8
	str	w8, [x10, #8]
	ldr	x0, [x25, #16]
	ldr	x2, [x10]
	add	x4, sp, #32
	mov	x3, x19
	bl	_kvp_process_ip_address
	cbnz	w0, LBB0_11
	b	LBB0_10
LBB0_22:                                ;   in Loop: Header=BB0_13 Depth=1
Lloh20:
	adrp	x8, _ADDR_FAMILY_IPV6@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ADDR_FAMILY_IPV6@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	ldr	w9, [x10, #8]
	orr	w8, w9, w8
	str	w8, [x10, #8]
	ldr	x8, [x10]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x8, [x25, #16]
	mov	x27, x28
	ldr	x28, [x8]
	mov	x0, x28
	bl	_hweight32
	mov	x26, x0
	add	x0, x28, #4
	bl	_hweight32
	add	w26, w26, w0
	add	x0, x28, #8
	bl	_hweight32
	add	w26, w26, w0
	add	x0, x28, #12
	bl	_hweight32
	add	w3, w26, w0
	add	x0, sp, #27
	mov	w1, #5
Lloh23:
	adrp	x2, l_.str.1@PAGE
Lloh24:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_snprintf
	ldrsw	x26, [sp, #32]
	sub	x28, x19, x26
	add	x0, sp, #27
	bl	_strlen
	add	x8, x0, #1
	cmp	x28, x8
	mov	x28, x27
	b.lo	LBB0_11
; %bb.23:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x1, sp, #27
	cbnz	w26, LBB0_8
; %bb.24:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x26, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x26
	mov	w2, #8
	bl	_strlcpy
	b	LBB0_9
LBB0_25:
	mov	w27, #0
LBB0_26:
	ldr	x0, [sp, #40]
LBB0_27:
	bl	_freeifaddrs
LBB0_28:
	mov	x0, x27
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_29:
	mov	x27, x0
	b	LBB0_26
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_HV_KVP_OP_ENUMERATE,4,2        ; @HV_KVP_OP_ENUMERATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getifaddrs failed\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_HV_KVP_OP_GET_IP_INFO,4,2      ; @HV_KVP_OP_GET_IP_INFO
	.comm	_ADDR_FAMILY_IPV4,4,2           ; @ADDR_FAMILY_IPV4
	.comm	_ADDR_FAMILY_IPV6,4,2           ; @ADDR_FAMILY_IPV6
l_.str.1:                               ; @.str.1
	.asciz	"/%d"

l_.str.2:                               ; @.str.2
	.asciz	";"

	.no_dead_strip	_kvp_get_ip_info
.subsections_via_symbols
