	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_if_nametoindex                 ## -- Begin function if_nametoindex
	.p2align	4, 0x90
_if_nametoindex:                        ## @if_nametoindex
	.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, %r14
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movq	_SOCK_CLOEXEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	callq	__socket
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	-44(%rbp), %edi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_SIOCGIFINDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movq	%r12, %rdx
	callq	__ioctl
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	__close
	cmpl	$-1, %r12d
	je	LBB0_3
## %bb.2:
	movl	-48(%rbp), %r15d
	jmp	LBB0_15
LBB0_3:
	leaq	-40(%rbp), %rdi
	callq	_getifaddrs
	testq	%rax, %rax
	js	LBB0_15
## %bb.4:
	movq	-40(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.5:
	movq	_AF_LINK@GOTPCREL(%rip), %r15
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rax), %rax
	cmpq	(%r15), %rax
	jne	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	8(%rbx), %edi
	movq	%r14, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.10:
	movq	(%rbx), %rdi
	callq	_LLINDEX
	movl	%eax, %r15d
	movq	-40(%rbp), %rdi
	callq	_freeifaddrs
	testl	%r15d, %r15d
	jne	LBB0_15
	jmp	LBB0_14
LBB0_11:
	movq	-40(%rbp), %rdi
	jmp	LBB0_13
LBB0_12:
	xorl	%edi, %edi
LBB0_13:
	callq	_freeifaddrs
LBB0_14:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%r15d, %r15d
LBB0_15:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_SOCK_CLOEXEC,4,2               ## @SOCK_CLOEXEC
	.comm	_SIOCGIFINDEX,4,2               ## @SIOCGIFINDEX
	.comm	_AF_LINK,8,3                    ## @AF_LINK
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_if_nametoindex                 ; -- Begin function if_nametoindex
	.p2align	2
_if_nametoindex:                        ; @if_nametoindex
	.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	x19, x0
Lloh0:
	adrp	x8, _AF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SOCK_DGRAM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SOCK_DGRAM@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _SOCK_CLOEXEC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SOCK_CLOEXEC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	w2, #0
	bl	__socket
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w0, [sp, #12]
	mov	x1, x19
	mov	w2, #4
	bl	_strlcpy
Lloh9:
	adrp	x8, _SIOCGIFINDEX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SIOCGIFINDEX@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	bl	__ioctl
	mov	x21, x0
	mov	x0, x20
	bl	__close
	cmn	w21, #1
	b.eq	LBB0_3
; %bb.2:
	ldr	w19, [sp, #8]
	b	LBB0_16
LBB0_3:
	mov	x0, sp
	bl	_getifaddrs
	tbnz	x0, #63, LBB0_11
; %bb.4:
	ldr	x20, [sp]
	cbz	x20, LBB0_13
; %bb.5:
Lloh12:
	adrp	x21, _AF_LINK@GOTPAGE
Lloh13:
	ldr	x21, [x21, _AF_LINK@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x20, [x20, #16]
	cbz	x20, LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x20, #8]
	mov	x1, x19
	bl	_strcmp
	cbnz	x0, LBB0_6
; %bb.10:
	ldr	x0, [x20]
	bl	_LLINDEX
	mov	x19, x0
	ldr	x0, [sp]
	bl	_freeifaddrs
	cbnz	w19, LBB0_16
	b	LBB0_15
LBB0_11:
	mov	w19, #0
	b	LBB0_16
LBB0_12:
	ldr	x0, [sp]
	b	LBB0_14
LBB0_13:
	mov	x0, #0
LBB0_14:
	bl	_freeifaddrs
LBB0_15:
	mov	w19, #0
Lloh14:
	adrp	x8, _ENXIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _errno@GOTPAGE
Lloh18:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh19:
	str	w8, [x9]
LBB0_16:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_SOCK_CLOEXEC,4,2               ; @SOCK_CLOEXEC
	.comm	_SIOCGIFINDEX,4,2               ; @SIOCGIFINDEX
	.comm	_AF_LINK,8,3                    ; @AF_LINK
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
