	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_if_indextoname                 ## -- Begin function if_indextoname
	.p2align	4, 0x90
_if_indextoname:                        ## @if_indextoname
	.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	%rsi, %r14
	movl	%edi, %r15d
	leaq	-40(%rbp), %rdi
	callq	_getifaddrs
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	-40(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.3:
	movq	_AF_LINK@GOTPCREL(%rip), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rdi), %rax
	cmpq	(%r12), %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_LLINDEX
	cmpl	%r15d, %eax
	jne	LBB0_7
## %bb.9:
	movl	(%rbx), %esi
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_strncpy
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_8:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r14d, %r14d
LBB0_10:
	movq	-40(%rbp), %rdi
	callq	_freeifaddrs
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	jmp	LBB0_11
LBB0_1:
	xorl	%r14d, %r14d
LBB0_11:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_LINK,8,3                    ## @AF_LINK
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.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_indextoname                 ; -- Begin function if_indextoname
	.p2align	2
_if_indextoname:                        ; @if_indextoname
	.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, x1
	mov	x20, x0
	add	x0, sp, #8
	bl	_getifaddrs
	tbnz	x0, #63, LBB0_10
; %bb.1:
	ldr	x21, [sp, #8]
	cbz	x21, LBB0_8
; %bb.2:
Lloh0:
	adrp	x22, _AF_LINK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AF_LINK@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x21, [x21, #16]
	cbz	x21, LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x0]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_LLINDEX
	cmp	w0, w20
	b.ne	LBB0_3
; %bb.7:
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_strncpy
	mov	w20, #0
	b	LBB0_9
LBB0_8:
	mov	x19, #0
Lloh5:
	adrp	x8, _ENXIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
LBB0_9:
	ldr	x0, [sp, #8]
	bl	_freeifaddrs
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh10:
	str	w20, [x8]
	b	LBB0_11
LBB0_10:
	mov	x19, #0
LBB0_11:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_LINK,8,3                    ; @AF_LINK
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
