	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_if_nametosdl                   ## -- Begin function if_nametosdl
	.p2align	4, 0x90
_if_nametosdl:                          ## @if_nametosdl
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	movq	%rsp, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CTL_NET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	_AF_ROUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movq	$0, -72(%rbp)
	movq	_NET_RT_IFLIST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	$0, -60(%rbp)
	movq	_RTAX_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_nitems
	xorl	%r13d, %r13d
	leaq	-96(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	testq	%rax, %rax
	js	LBB0_20
## %bb.1:
	movq	-96(%rbp), %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	leaq	-80(%rbp), %r12
	movq	%r12, %rdi
	callq	_nitems
	xorl	%r13d, %r13d
	leaq	-96(%rbp), %rcx
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	testq	%rax, %rax
	js	LBB0_19
## %bb.4:
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movq	-96(%rbp), %rax
	movq	%rbx, %r13
	addq	%rax, %r13
	testq	%rax, %rax
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	jle	LBB0_5
## %bb.6:
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r15
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movslq	12(%r15), %rax
	addq	%rax, %r15
	cmpq	%r13, %r15
	jae	LBB0_14
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	_RTM_IFINFO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	16(%r15), %rsi
	movl	8(%r15), %edi
	movq	%r14, %rdx
	callq	_get_rtaddrs
	movq	_RTAX_IFP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14,%rax,8), %r12
	testq	%r12, %r12
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r12), %rbx
	movq	_AF_LINK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_strlen
	movq	%r12, %rcx
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	cmpq	%rbx, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r12), %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_strncmp
	movq	%r12, %rcx
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_14
LBB0_2:
	xorl	%r13d, %r13d
	jmp	LBB0_20
LBB0_5:
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r15
LBB0_14:
	cmpq	%r13, %r15
	je	LBB0_15
## %bb.16:
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	8(%r12), %r14
	movq	%r14, %rdi
	callq	_malloc
	testq	%rax, %rax
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_17
## %bb.18:
	movq	%rax, %r13
	movl	%r13d, %edi
	movl	%r12d, %esi
	movq	%r14, %rdx
	callq	_memcpy
	jmp	LBB0_19
LBB0_15:
	xorl	%r13d, %r13d
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_19
LBB0_17:
	xorl	%r13d, %r13d
LBB0_19:
	movq	%rbx, %rdi
	callq	_free
LBB0_20:
	movq	%r15, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	movq	%r13, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL_NET,4,2                    ## @CTL_NET
	.comm	_AF_ROUTE,4,2                   ## @AF_ROUTE
	.comm	_NET_RT_IFLIST,4,2              ## @NET_RT_IFLIST
	.comm	_RTAX_MAX,4,2                   ## @RTAX_MAX
	.comm	_RTM_IFINFO,8,3                 ## @RTM_IFINFO
	.comm	_RTAX_IFP,8,3                   ## @RTAX_IFP
	.comm	_AF_LINK,8,3                    ## @AF_LINK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_if_nametosdl                   ; -- Begin function if_nametosdl
	.p2align	2
_if_nametosdl:                          ; @if_nametosdl
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #48
	mov	x19, x0
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _CTL_NET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CTL_NET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _AF_ROUTE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AF_ROUTE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [x29, #-112]
	stur	xzr, [x29, #-104]
Lloh9:
	adrp	x8, _NET_RT_IFLIST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NET_RT_IFLIST@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	stp	w8, wzr, [x29, #-96]
Lloh12:
	adrp	x8, _RTAX_MAX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RTAX_MAX@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh15:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh16:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x21, x9, x8
	mov	sp, x21
	sub	x0, x29, #112
	bl	_nitems
	mov	x1, x0
	sub	x0, x29, #112
	sub	x3, x29, #120
	mov	x2, #0
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	tbnz	x0, #63, LBB0_12
; %bb.1:
	ldur	x0, [x29, #-120]
	bl	_malloc
	cbz	x0, LBB0_12
; %bb.2:
	mov	x20, x0
	sub	x0, x29, #112
	bl	_nitems
	mov	x1, x0
	sub	x0, x29, #112
	sub	x3, x29, #120
	mov	x2, x20
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	tbnz	x0, #63, LBB0_13
; %bb.3:
	stur	x22, [x29, #-128]               ; 8-byte Folded Spill
	ldur	x8, [x29, #-120]
	add	x25, x20, x8
	cmp	x8, #1
	b.lt	LBB0_14
; %bb.4:
	mov	x24, #0
Lloh17:
	adrp	x27, _RTM_IFINFO@GOTPAGE
Lloh18:
	ldr	x27, [x27, _RTM_IFINFO@GOTPAGEOFF]
Lloh19:
	adrp	x28, _RTAX_IFP@GOTPAGE
Lloh20:
	ldr	x28, [x28, _RTAX_IFP@GOTPAGEOFF]
	mov	x26, x20
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x8, [x26, #12]
	add	x26, x26, x8
	cmp	x26, x25
	b.hs	LBB0_15
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, x26, #16
	ldr	w0, [x26, #8]
	mov	x2, x21
	bl	_get_rtaddrs
	ldr	x8, [x28]
	ldr	x22, [x21, x8, lsl #3]
	cbz	x22, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x23, [x22]
Lloh21:
	adrp	x8, _AF_LINK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AF_LINK@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x23, x8
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_strlen
	mov	x24, x22
	cmp	x0, x23
	b.ne	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x22, #16]
	mov	x1, x19
	mov	x2, x23
	bl	_strncmp
	mov	x24, x22
	cbnz	x0, LBB0_5
; %bb.11:
	mov	x24, x22
	b	LBB0_15
LBB0_12:
	mov	x19, #0
	b	LBB0_20
LBB0_13:
	mov	x19, #0
	b	LBB0_19
LBB0_14:
	mov	x24, #0
	mov	x26, x20
LBB0_15:
	cmp	x26, x25
	b.eq	LBB0_18
; %bb.16:
	ldr	x21, [x24, #8]
	mov	x0, x21
	bl	_malloc
	mov	x19, x0
	ldur	x22, [x29, #-128]               ; 8-byte Folded Reload
	cbz	x0, LBB0_19
; %bb.17:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x21
	bl	_memcpy
	b	LBB0_19
LBB0_18:
	mov	x19, #0
	ldur	x22, [x29, #-128]               ; 8-byte Folded Reload
LBB0_19:
	mov	x0, x20
	bl	_free
LBB0_20:
	mov	sp, x22
	ldur	x8, [x29, #-88]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	mov	x0, x19
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_CTL_NET,4,2                    ; @CTL_NET
	.comm	_AF_ROUTE,4,2                   ; @AF_ROUTE
	.comm	_NET_RT_IFLIST,4,2              ; @NET_RT_IFLIST
	.comm	_RTAX_MAX,4,2                   ; @RTAX_MAX
	.comm	_RTM_IFINFO,8,3                 ; @RTM_IFINFO
	.comm	_RTAX_IFP,8,3                   ; @RTAX_IFP
	.comm	_AF_LINK,8,3                    ; @AF_LINK
.subsections_via_symbols
