	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ifa_load                       ## -- Begin function ifa_load
	.p2align	4, 0x90
_ifa_load:                              ## @ifa_load
	.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
	leaq	-48(%rbp), %rdi
	callq	_getifaddrs
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	movq	-48(%rbp), %r15
	testq	%r15, %r15
	je	LBB0_3
## %bb.4:
	xorl	%ecx, %ecx
	jmp	LBB0_5
LBB0_26:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rcx
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	48(%r15), %r15
	testq	%r15, %r15
	je	LBB0_29
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %r14
	movq	(%r14), %rbx
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	cmpq	%r13, %rbx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_AF_LINK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_28
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
	movl	$64, %esi
	callq	_calloc
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_err
	movq	8(%r15), %r14
	movq	(%r14), %rbx
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, (%r12)
	movl	40(%r15), %eax
	movl	%eax, 56(%r12)
	movl	$0, 8(%r12)
	cmpq	%r13, %rbx
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	48(%r12), %r13
	leaq	52(%r12), %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	32(%r15), %rsi
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	24(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	44(%r12), %rdi
	movl	$4, %edx
	callq	_memcpy
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_23
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	addq	$40, %rdi
	movl	$4, %edx
	callq	_memcpy
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	48(%r12), %r13
	leaq	52(%r12), %rdi
	addq	$8, %r14
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	32(%r15), %rsi
	addq	$8, %rsi
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	24(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	44(%r12), %rdi
	addq	$8, %rsi
	movl	$4, %edx
	callq	_memcpy
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	addq	$40, %rdi
	addq	$8, %rsi
	movl	$4, %edx
	callq	_memcpy
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	jmp	LBB0_23
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_AF_LINK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r15), %edi
	callq	_ifa_add_groups_to_map
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r15), %edi
	callq	_strdup
	movq	%rax, 32(%r12)
	testq	%rax, %rax
	jne	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_err
LBB0_25:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	$0, 24(%r12)
	movq	%r12, 16(%r12)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rcx), %rax
	movq	%r12, 24(%rax)
	movq	%r12, 16(%rcx)
	jmp	LBB0_28
LBB0_29:
	movq	-48(%rbp), %rdi
	jmp	LBB0_30
LBB0_3:
	xorl	%edi, %edi
	xorl	%ecx, %ecx
LBB0_30:
	movq	_iftab@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
	callq	_freeifaddrs
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getifaddrs"

	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_AF_LINK,8,3                    ## @AF_LINK
L_.str.1:                               ## @.str.1
	.asciz	"address: calloc"

L_.str.2:                               ## @.str.2
	.asciz	"ifa_load: strdup"

	.comm	_iftab,8,3                      ## @iftab
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ifa_load                       ; -- Begin function ifa_load
	.p2align	2
_ifa_load:                              ; @ifa_load
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	add	x0, sp, #8
	bl	_getifaddrs
	tbnz	x0, #63, LBB0_26
; %bb.1:
	ldr	x25, [sp, #8]
	cbz	x25, LBB0_27
LBB0_2:
	mov	x24, #0
Lloh0:
	adrp	x26, _AF_INET@GOTPAGE
Lloh1:
	ldr	x26, [x26, _AF_INET@GOTPAGEOFF]
Lloh2:
	adrp	x27, _AF_INET6@GOTPAGE
Lloh3:
	ldr	x27, [x27, _AF_INET6@GOTPAGEOFF]
Lloh4:
	adrp	x28, _AF_LINK@GOTPAGE
Lloh5:
	ldr	x28, [x28, _AF_LINK@GOTPAGEOFF]
Lloh6:
	adrp	x20, l_.str.2@PAGE
Lloh7:
	add	x20, x20, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x24, #16]
	str	x21, [x8, #24]
	str	x21, [x24, #16]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x25, [x25, #48]
	cbz	x25, LBB0_25
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x25, #8]
	ldr	x23, [x22]
	ldr	x19, [x26]
	ldr	x8, [x27]
	ldr	x9, [x28]
	cmp	x23, x19
	ccmp	x23, x8, #4, ne
	ccmp	x23, x9, #4, ne
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #1
	mov	w1, #64
	bl	_calloc
	mov	x21, x0
	cbnz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #1
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_err
	ldr	x22, [x25, #8]
	ldr	x23, [x22]
	ldr	x19, [x26]
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	x23, [x21]
	ldr	w8, [x25, #40]
	str	w8, [x21, #56]
	str	wzr, [x21, #8]
	cmp	x23, x19
	b.ne	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x21, #48
	add	x0, x21, #52
	mov	x1, x22
	mov	w2, #4
	bl	_memcpy
	ldr	x1, [x25, #32]
	mov	x0, x23
	mov	w2, #4
	bl	_memcpy
	ldr	x1, [x25, #24]
	cbz	x1, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x21, #44
	mov	w2, #4
	bl	_memcpy
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x25, #16]
	cbz	x1, LBB0_21
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x21, #40
	mov	w2, #4
	bl	_memcpy
	b	LBB0_21
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x27]
	cmp	x23, x8
	b.ne	LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x21, #48
	add	x0, x21, #52
	add	x1, x22, #8
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x25, #32]
	add	x1, x8, #8
	mov	x0, x23
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x25, #24]
	cbz	x8, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x21, #44
	add	x1, x8, #8
	mov	w2, #4
	bl	_memcpy
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25, #16]
	cbz	x8, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x21, #40
	add	x1, x8, #8
	mov	w2, #4
	bl	_memcpy
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25, #8]
	ldr	x8, [x8]
	str	w8, [x21, #8]
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x28]
	cmp	x23, x8
	b.ne	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x25]
	bl	_ifa_add_groups_to_map
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x25]
	bl	_strdup
	str	x0, [x21, #32]
	cbz	x0, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_5 Depth=1
	stp	x21, xzr, [x21, #16]
	cbnz	x24, LBB0_3
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #1
	mov	x1, x20
	bl	_err
	stp	x21, xzr, [x21, #16]
	cbnz	x24, LBB0_3
LBB0_24:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x21
	b	LBB0_4
LBB0_25:
	ldr	x0, [sp, #8]
	b	LBB0_28
LBB0_26:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
	ldr	x25, [sp, #8]
	cbnz	x25, LBB0_2
LBB0_27:
	mov	x0, #0
	mov	x24, #0
LBB0_28:
Lloh12:
	adrp	x8, _iftab@GOTPAGE
Lloh13:
	ldr	x8, [x8, _iftab@GOTPAGEOFF]
Lloh14:
	str	x24, [x8]
	bl	_freeifaddrs
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getifaddrs"

	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_AF_LINK,8,3                    ; @AF_LINK
l_.str.1:                               ; @.str.1
	.asciz	"address: calloc"

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

	.comm	_iftab,8,3                      ; @iftab
.subsections_via_symbols
