	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function NET_GetLocalAddress
_NET_GetLocalAddress:                   ## @NET_GetLocalAddress
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_numIP@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	leaq	-24(%rbp), %rdi
	callq	_getifaddrs
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	xorl	%eax, %eax
	callq	_NET_ErrorString
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_Com_Printf
	jmp	LBB0_9
LBB0_1:
	movq	-24(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.4:
	movq	_IFF_UP@GOTPCREL(%rip), %r14
	movq	%rdi, %rbx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rbx), %rbx
	movq	-24(%rbp), %rdi
	testq	%rbx, %rbx
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	testl	%eax, (%rdi)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	12(%rbx), %edi
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	callq	_NET_AddLocalAddress
	jmp	LBB0_7
LBB0_2:
	xorl	%edi, %edi
LBB0_8:
	callq	_freeifaddrs
	xorl	%eax, %eax
	callq	_Sys_ShowIP
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_numIP,8,3                      ## @numIP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NET_GetLocalAddress: Unable to get list of network interfaces: %s\n"

	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.no_dead_strip	_NET_GetLocalAddress
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function NET_GetLocalAddress
_NET_GetLocalAddress:                   ; @NET_GetLocalAddress
	.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
Lloh0:
	adrp	x8, _numIP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _numIP@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
	add	x0, sp, #8
	bl	_getifaddrs
	cbz	x0, LBB0_2
; %bb.1:
	bl	_NET_ErrorString
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Com_Printf
	b	LBB0_8
LBB0_2:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_7
; %bb.3:
Lloh5:
	adrp	x19, _IFF_UP@GOTPAGE
Lloh6:
	ldr	x19, [x19, _IFF_UP@GOTPAGEOFF]
	mov	x20, x0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x20, [x20, #16]
	ldr	x0, [sp, #8]
	cbz	x20, LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x0]
	ldr	w9, [x19]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	w1, w0, [x20, #8]
	ldr	w2, [x20, #4]
	bl	_NET_AddLocalAddress
	b	LBB0_4
LBB0_7:
	bl	_freeifaddrs
	bl	_Sys_ShowIP
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 AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_numIP,8,3                      ; @numIP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NET_GetLocalAddress: Unable to get list of network interfaces: %s\n"

	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.no_dead_strip	_NET_GetLocalAddress
.subsections_via_symbols
