	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __inaddr_to_index
___inaddr_to_index:                     ## @__inaddr_to_index
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	-40(%rbp), %rdi
	callq	_getifaddrs
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	-40(%rbp), %rbx
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.4:
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rbx, %rax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	LBB0_18
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rcx, 8(%rdx)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r15, 16(%rdx)
	jne	LBB0_8
## %bb.9:
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_18
## %bb.10:
	movq	_AF_LINK@GOTPCREL(%rip), %r12
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_16
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%r14), %rax
	cmpq	(%r12), %rax
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%rbx), %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	callq	_LLINDEX
	movl	%eax, %r14d
	jmp	LBB0_17
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_19
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_16:
	xorl	%r14d, %r14d
LBB0_17:
	xorl	%edi, %edi
	testl	%r14d, %r14d
	setne	%dil
	callq	_assert
	movq	-40(%rbp), %rbx
LBB0_18:
	movq	%rbx, %rdi
	callq	_freeifaddrs
LBB0_19:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_AF_LINK,8,3                    ## @AF_LINK
	.no_dead_strip	___inaddr_to_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __inaddr_to_index
___inaddr_to_index:                     ; @__inaddr_to_index
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	add	x0, sp, #8
	bl	_getifaddrs
	tbnz	x0, #63, LBB0_16
; %bb.1:
	ldr	x19, [sp, #8]
	cbz	x19, LBB0_14
; %bb.2:
Lloh0:
	adrp	x8, _AF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	mov	x8, x19
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_14
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8, #8]
	cbz	x10, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x11, [x10, #8]
	cmp	x11, x9
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x10, #16]
	cmp	x10, x20
	b.ne	LBB0_3
; %bb.7:
	ldr	x20, [x8]
	cbz	x20, LBB0_15
; %bb.8:
Lloh3:
	adrp	x22, _AF_LINK@GOTPAGE
Lloh4:
	ldr	x22, [x22, _AF_LINK@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x19, [x19, #16]
	cbz	x19, LBB0_18
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x19, #8]
	cbz	x21, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x21, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x19]
	mov	x1, x20
	bl	_strcmp
	cbnz	x0, LBB0_9
; %bb.13:
	mov	x0, x21
	bl	_LLINDEX
	mov	x20, x0
	b	LBB0_19
LBB0_14:
	mov	w20, #0
LBB0_15:
	mov	x0, x19
	bl	_freeifaddrs
	b	LBB0_17
LBB0_16:
	mov	w20, #0
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_18:
	mov	w20, #0
LBB0_19:
	cmp	w20, #0
	cset	w0, ne
	bl	_assert
	ldr	x19, [sp, #8]
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_AF_LINK,8,3                    ; @AF_LINK
	.no_dead_strip	___inaddr_to_index
.subsections_via_symbols
