	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsw_alloc_netdev
_vsw_alloc_netdev:                      ## @vsw_alloc_netdev
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_VNET_MAX_TXQS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	movl	$1, %edx
	callq	_alloc_etherdev_mqs
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r13
	movq	_VNET_PACKET_SKIP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$8, %rax
	movq	%rax, 64(%r13)
	movl	$8, (%r13)
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_4
## %bb.2:
	movq	48(%r13), %rcx
	movq	56(%r13), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rsi,4), %edi
	movl	%edi, (%rcx,%rsi,4)
	movl	%edi, (%rdx,%rsi,4)
	incq	%rsi
	movslq	(%rax), %rdi
	cmpq	%rdi, %rsi
	jl	LBB0_3
LBB0_4:
	movl	40(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_sprintf
	movq	_vsw_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r13)
	movq	_vsw_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r13)
	movq	_VSW_TX_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r13)
	movq	_NETIF_F_HW_CSUM@GOTPCREL(%rip), %rax
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 4(%r13)
	movl	%ecx, 8(%r13)
	movq	_ETH_MIN_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movq	_VNET_MAX_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VNET_MAX_TXQS,4,2              ## @VNET_MAX_TXQS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_VNET_PACKET_SKIP,8,3           ## @VNET_PACKET_SKIP
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vif%d.%d"

	.comm	_vsw_ops,4,2                    ## @vsw_ops
	.comm	_vsw_ethtool_ops,4,2            ## @vsw_ethtool_ops
	.comm	_VSW_TX_TIMEOUT,4,2             ## @VSW_TX_TIMEOUT
	.comm	_NETIF_F_HW_CSUM,4,2            ## @NETIF_F_HW_CSUM
	.comm	_NETIF_F_SG,4,2                 ## @NETIF_F_SG
	.comm	_ETH_MIN_MTU,4,2                ## @ETH_MIN_MTU
	.comm	_VNET_MAX_MTU,4,2               ## @VNET_MAX_MTU
	.no_dead_strip	_vsw_alloc_netdev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vsw_alloc_netdev
_vsw_alloc_netdev:                      ; @vsw_alloc_netdev
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _VNET_MAX_TXQS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VNET_MAX_TXQS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	mov	w2, #1
	bl	_alloc_etherdev_mqs
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _VNET_PACKET_SKIP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VNET_PACKET_SKIP@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x8, x8, #8
	str	x8, [x0, #64]
	mov	w8, #8
	str	w8, [x0]
Lloh6:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x9, #0
	ldp	x10, x11, [x20, #48]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x12, x9, #2
	ldr	w13, [x23, x12]
	str	w13, [x10, x12]
	str	w13, [x11, x12]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	cmp	x9, x12
	b.lt	LBB0_3
LBB0_4:
	ldr	w0, [x20, #40]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x21
	bl	_sprintf
Lloh10:
	adrp	x8, _vsw_ops@GOTPAGE
Lloh11:
	ldr	x8, [x8, _vsw_ops@GOTPAGEOFF]
Lloh12:
	adrp	x9, _vsw_ethtool_ops@GOTPAGE
Lloh13:
	ldr	x9, [x9, _vsw_ethtool_ops@GOTPAGEOFF]
	stp	x9, x8, [x20, #24]
Lloh14:
	adrp	x8, _VSW_TX_TIMEOUT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VSW_TX_TIMEOUT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x20, #20]
Lloh17:
	adrp	x8, _NETIF_F_HW_CSUM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NETIF_F_HW_CSUM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _NETIF_F_SG@GOTPAGE
Lloh21:
	ldr	x9, [x9, _NETIF_F_SG@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
	stp	w8, w8, [x20, #4]
Lloh23:
	adrp	x8, _ETH_MIN_MTU@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ETH_MIN_MTU@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _VNET_MAX_MTU@GOTPAGE
Lloh27:
	ldr	x9, [x9, _VNET_MAX_MTU@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #12]
	mov	x0, x20
	mov	x1, x19
	bl	_SET_NETDEV_DEV
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_VNET_MAX_TXQS,4,2              ; @VNET_MAX_TXQS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_VNET_PACKET_SKIP,8,3           ; @VNET_PACKET_SKIP
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vif%d.%d"

	.comm	_vsw_ops,4,2                    ; @vsw_ops
	.comm	_vsw_ethtool_ops,4,2            ; @vsw_ethtool_ops
	.comm	_VSW_TX_TIMEOUT,4,2             ; @VSW_TX_TIMEOUT
	.comm	_NETIF_F_HW_CSUM,4,2            ; @NETIF_F_HW_CSUM
	.comm	_NETIF_F_SG,4,2                 ; @NETIF_F_SG
	.comm	_ETH_MIN_MTU,4,2                ; @ETH_MIN_MTU
	.comm	_VNET_MAX_MTU,4,2               ; @VNET_MAX_MTU
	.no_dead_strip	_vsw_alloc_netdev
.subsections_via_symbols
