	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getifaddrs                     ## -- Begin function getifaddrs
	.p2align	4, 0x90
_getifaddrs:                            ## @getifaddrs
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	movq	$0, (%rdi)
	xorl	%eax, %eax
	callq	_netlink_socket
	testl	%eax, %eax
	js	LBB0_10
## %bb.2:
	movl	%eax, %r15d
	movq	_RTM_GETLINK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_getResultList
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r12
	movq	_RTM_GETADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_getResultList
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r13
	movl	%r15d, %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_interpretLinks
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.6:
	movl	%r15d, %edi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_interpretAddrs
	xorl	%r14d, %r14d
	cmpl	$-1, %eax
	jne	LBB0_8
LBB0_7:
	movl	$-1, %r14d
LBB0_8:
	movq	%r12, %rdi
	callq	_freeResultList
	movq	%r13, %rdi
	callq	_freeResultList
LBB0_9:
	movl	%r15d, %edi
	callq	_close
	jmp	LBB0_10
LBB0_4:
	movl	%r15d, %edi
	callq	_close
	movq	%r12, %rdi
	callq	_freeResultList
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTM_GETLINK,4,2                ## @RTM_GETLINK
	.comm	_RTM_GETADDR,4,2                ## @RTM_GETADDR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getifaddrs                     ; -- Begin function getifaddrs
	.p2align	2
_getifaddrs:                            ; @getifaddrs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	str	xzr, [x0]
	bl	_netlink_socket
	tbnz	w0, #31, LBB0_7
; %bb.2:
	mov	x19, x0
Lloh0:
	adrp	x8, _RTM_GETLINK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTM_GETLINK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_getResultList
	cbz	x0, LBB0_9
; %bb.3:
	mov	x20, x0
Lloh3:
	adrp	x8, _RTM_GETADDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTM_GETADDR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_getResultList
	cbz	x0, LBB0_10
; %bb.4:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_interpretLinks
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.5:
	mov	x3, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_interpretAddrs
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.6:
	mov	w21, #0
	b	LBB0_12
LBB0_7:
	mov	w21, #-1
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x19
	bl	_close
	mov	w21, #-1
	b	LBB0_8
LBB0_10:
	mov	x0, x19
	bl	_close
	mov	x0, x20
	bl	_freeResultList
	mov	w21, #-1
	b	LBB0_8
LBB0_11:
	mov	w21, #-1
LBB0_12:
	mov	x0, x20
	bl	_freeResultList
	mov	x0, x22
	bl	_freeResultList
	mov	x0, x19
	bl	_close
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RTM_GETLINK,4,2                ; @RTM_GETLINK
	.comm	_RTM_GETADDR,4,2                ; @RTM_GETADDR
.subsections_via_symbols
