	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netif_select                   ## -- Begin function netif_select
	.p2align	4, 0x90
_netif_select:                          ## @netif_select
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, _netif_select.best_if+8(%rip)
	movq	_netif_drivers@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r12
	xorl	%ebx, %ebx
	testq	%r12, %r12
	je	LBB0_17
## %bb.1:
	movq	%rdi, %r14
	xorl	%edx, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_netif_drivers@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rax,%rdx,8), %r12
	incq	%rdx
	testq	%r12, %r12
	je	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_6 Depth 3
	movq	%r12, -48(%rbp)
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	jle	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %rax
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	(%r12), %ecx
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	incq	%r13
	movslq	%ecx, %rdx
	cmpq	%rdx, %r13
	jge	LBB0_12
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_6 Depth 3
	movl	%r13d, -56(%rbp)
	cmpl	$0, (%rax,%r13,8)
	jle	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=3
	incl	%r15d
	movq	16(%r12), %rax
	cmpl	(%rax,%r13,8), %r15d
	jge	LBB0_10
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%r15d, -52(%rbp)
	movl	4(%rax,%r13,8), %eax
	btl	%r15d, %eax
	jb	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=3
	leaq	-56(%rbp), %rdi
	movq	%r14, %rsi
	callq	_netif_match
	cmpl	%ebx, %eax
	jle	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=3
	movups	-56(%rbp), %xmm0
	movups	%xmm0, _netif_select.best_if(%rip)
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_14:
	movq	_netif_select.best_if+8(%rip), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	leaq	_netif_select.best_if(%rip), %rbx
	movb	_netif_select.best_if+4(%rip), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movq	16(%rax), %rax
	movslq	_netif_select.best_if(%rip), %rcx
	orl	%edx, 4(%rax,%rcx,8)
	jmp	LBB0_17
LBB0_15:
	xorl	%ebx, %ebx
LBB0_17:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_netif_select.best_if,16,3 ## @netif_select.best_if
	.comm	_netif_drivers,8,3              ## @netif_drivers
	.comm	_netif_debug,8,3                ## @netif_debug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netif_select                   ; -- Begin function netif_select
	.p2align	2
_netif_select:                          ; @netif_select
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	adrp	x21, _netif_select.best_if@PAGE+8
	str	xzr, [x21, _netif_select.best_if@PAGEOFF+8]
Lloh0:
	adrp	x22, _netif_drivers@GOTPAGE
Lloh1:
	ldr	x22, [x22, _netif_drivers@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x25, [x8]
	cbz	x25, LBB0_16
; %bb.1:
	mov	x20, x0
	mov	x23, #0
	mov	w24, #0
Lloh2:
	adrp	x19, _netif_select.best_if@PAGE
Lloh3:
	add	x19, x19, _netif_select.best_if@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	ldr	x25, [x8, x23, lsl #3]
	cbz	x25, LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
	str	x25, [sp, #8]
	ldr	w9, [x25]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, #0
	ldr	x8, [x25, #16]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	w9, [x25]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x26, x26, #1
	cmp	x26, w9, sxtw
	b.ge	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
	str	w26, [sp]
	lsl	x27, x26, #3
	ldr	w10, [x8, x27]
	cmp	w10, #1
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	w28, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=3
	add	w28, w28, #1
	ldr	x8, [x25, #16]
	ldr	w9, [x8, x27]
	cmp	w28, w9
	b.ge	LBB0_6
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	str	w28, [sp, #4]
	add	x8, x8, x26, lsl #3
	ldr	w8, [x8, #4]
	lsr	w8, w8, w28
	tbnz	w8, #0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=3
	mov	x0, sp
	mov	x1, x20
	bl	_netif_match
	cmp	w0, w24
	b.le	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=3
	ldr	q0, [sp]
	str	q0, [x19]
	mov	x24, x0
	b	LBB0_10
LBB0_14:
	ldr	x8, [x21, _netif_select.best_if@PAGEOFF+8]
	cbz	x8, LBB0_16
; %bb.15:
	mov	w9, #1
	ldp	w11, w10, [x19]
                                        ; kill: def $w11 killed $w11 def $x11
	sxtw	x11, w11
	lsl	w9, w9, w10
	ldr	x8, [x8, #16]
	add	x8, x8, x11, lsl #3
	ldr	w10, [x8, #4]
	orr	w9, w10, w9
	str	w9, [x8, #4]
	b	LBB0_17
LBB0_16:
	mov	x19, #0
LBB0_17:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_netif_select.best_if,16,3 ; @netif_select.best_if
	.comm	_netif_drivers,8,3              ; @netif_drivers
	.comm	_netif_debug,8,3                ; @netif_debug
.subsections_via_symbols
