	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NET_GetLocalAddress            ## -- Begin function NET_GetLocalAddress
	.p2align	4, 0x90
_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$264, %rsp                      ## imm = 0x108
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-304(%rbp), %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_gethostname
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.1:
	leaq	-304(%rbp), %rdi
	callq	_gethostbyname
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	%rax, %r15
	movl	24(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_Com_Printf
	movq	(%r15), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.3:
	movl	$8, %ebx
	leaq	L_.str.1(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_Com_Printf
	movq	(%r15), %rax
	movq	(%rax,%rbx), %rsi
	addq	$8, %rbx
	testq	%rsi, %rsi
	jne	LBB0_4
LBB0_5:
	movq	8(%r15), %rax
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.6:
	movq	16(%r15), %rax
	movq	_numIP@GOTPCREL(%rip), %r12
	movq	$1, (%r12)
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_11
## %bb.7:
	movq	_MAX_IPS@GOTPCREL(%rip), %rax
	cmpq	$2, (%rax)
	jb	LBB0_11
## %bb.8:
	movl	$1, %r13d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %ebx
	movl	%ebx, %edi
	callq	_ntohl
	movq	_localIP@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rcx
	movq	(%rcx,%r13,8), %rcx
	movb	%bl, (%rcx)
	movzbl	1(%r14), %ecx
	movq	(%rdi), %rdx
	movq	(%r12), %rsi
	movq	(%rdx,%rsi,8), %rdx
	movb	%cl, 1(%rdx)
	movzbl	2(%r14), %ecx
	movq	(%rdi), %rdx
	movq	(%r12), %rsi
	movq	(%rdx,%rsi,8), %rdx
	movb	%cl, 2(%rdx)
	movzbl	3(%r14), %ecx
	movq	(%rdi), %rdx
	movq	(%r12), %rsi
	movq	(%rdx,%rsi,8), %rdx
	movb	%cl, 3(%rdx)
	movl	%eax, %edx
	movzbl	%ah, %ecx
	movzbl	%al, %r8d
	shrl	$24, %eax
	shrl	$16, %edx
	movzbl	%dl, %edx
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_Com_Printf
	movq	16(%r15), %rax
	movq	(%r12), %rcx
	leaq	1(%rcx), %r13
	movq	%r13, (%r12)
	movq	(%rax,%rcx,8), %r14
	testq	%r14, %r14
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_MAX_IPS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jb	LBB0_9
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$264, %rsp                      ## imm = 0x108
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Hostname: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"Alias: %s\n"

	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_numIP,8,3                      ## @numIP
	.comm	_MAX_IPS,8,3                    ## @MAX_IPS
	.comm	_localIP,8,3                    ## @localIP
L_.str.2:                               ## @.str.2
	.asciz	"IP: %i.%i.%i.%i\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NET_GetLocalAddress            ; -- Begin function NET_GetLocalAddress
	.p2align	2
_NET_GetLocalAddress:                   ; @NET_GetLocalAddress
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #400
	.cfi_def_cfa_offset 400
	stp	x28, x27, [sp, #304]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #320]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #336]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #352]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #368]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #384]            ; 16-byte Folded Spill
	add	x29, sp, #384
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	add	x0, sp, #40
	mov	w1, #256
	bl	_gethostname
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.1:
	add	x0, sp, #40
	bl	_gethostbyname
	cbz	x0, LBB0_10
; %bb.2:
	mov	x19, x0
	ldr	w8, [x0, #24]
	str	x8, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Com_Printf
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
	mov	w21, #8
Lloh5:
	adrp	x20, l_.str.1@PAGE
Lloh6:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	x8, [sp]
	mov	x0, x20
	bl	_Com_Printf
	ldr	x8, [x19]
	ldr	x8, [x8, x21]
	add	x21, x21, #8
	cbnz	x8, LBB0_4
LBB0_5:
	ldr	x8, [x19, #8]
Lloh7:
	adrp	x9, _AF_INET@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.6:
	ldr	x8, [x19, #16]
Lloh10:
	adrp	x22, _numIP@GOTPAGE
Lloh11:
	ldr	x22, [x22, _numIP@GOTPAGEOFF]
	mov	w9, #1
	str	x9, [x22]
	ldr	x25, [x8]
Lloh12:
	adrp	x23, _MAX_IPS@GOTPAGE
Lloh13:
	ldr	x23, [x23, _MAX_IPS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x25, #0
	ccmp	x8, #2, #0, ne
	b.lo	LBB0_10
; %bb.7:
	mov	w26, #1
Lloh14:
	adrp	x24, _localIP@GOTPAGE
Lloh15:
	ldr	x24, [x24, _localIP@GOTPAGEOFF]
Lloh16:
	adrp	x20, l_.str.2@PAGE
Lloh17:
	add	x20, x20, l_.str.2@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x25]
	mov	x0, x21
	bl	_ntohl
	ldr	x8, [x24]
	ldr	x8, [x8, x26, lsl #3]
	strb	w21, [x8]
	ldr	x8, [x24]
	ldr	x9, [x22]
	ldr	x8, [x8, x9, lsl #3]
	ldrb	w9, [x25, #1]
	strb	w9, [x8, #1]
	ldr	x8, [x24]
	ldr	x9, [x22]
	ldr	x8, [x8, x9, lsl #3]
	ldrb	w9, [x25, #2]
	strb	w9, [x8, #2]
	ldr	x8, [x24]
	ldr	x9, [x22]
	ldr	x8, [x8, x9, lsl #3]
	lsr	w9, w0, #24
	ldrb	w10, [x25, #3]
	strb	w10, [x8, #3]
	ubfx	w8, w0, #16, #8
	ubfx	w10, w0, #8, #8
	and	w11, w0, #0xff
	stp	x10, x11, [sp, #16]
	stp	x9, x8, [sp]
	mov	x0, x20
	bl	_Com_Printf
	ldr	x8, [x19, #16]
	ldr	x9, [x22]
	add	x26, x9, #1
	str	x26, [x22]
	ldr	x25, [x8, x9, lsl #3]
	cbz	x25, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x23]
	cmp	x26, x8
	b.lo	LBB0_8
LBB0_10:
	ldur	x8, [x29, #-88]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #384]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #368]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #352]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #336]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #320]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #304]            ; 16-byte Folded Reload
	add	sp, sp, #400
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Hostname: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"Alias: %s\n"

	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_numIP,8,3                      ; @numIP
	.comm	_MAX_IPS,8,3                    ; @MAX_IPS
	.comm	_localIP,8,3                    ; @localIP
l_.str.2:                               ; @.str.2
	.asciz	"IP: %i.%i.%i.%i\n"

.subsections_via_symbols
