	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vnet_new
_vnet_new:                              ## @vnet_new
	.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	%rsi, %r14
	movq	%rdi, %r12
	movq	_VNET_MAX_TXQS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	movl	$1, %edx
	callq	_alloc_etherdev_mqs
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_VNET_PACKET_SKIP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$8, %rax
	movq	%rax, 56(%rbx)
	movl	$8, (%rbx)
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.4:
	movq	8(%rbx), %rdx
	movl	$40, %ecx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	sarl	%cl, %edi
	movzbl	%dil, %edi
	movl	%edi, (%rdx,%rsi,4)
	incq	%rsi
	movslq	(%rax), %rdi
	addl	$-8, %ecx
	cmpq	%rdi, %rsi
	jl	LBB0_5
LBB0_6:
	movq	%rbx, %rdi
	callq	_netdev_priv
	movq	%rax, %r13
	leaq	32(%rax), %rdi
	callq	_spin_lock_init
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, 24(%r13)
	leaq	16(%r13), %rdi
	callq	_INIT_LIST_HEAD
	movq	_VNET_PORT_HASH_SIZE@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jle	LBB0_9
## %bb.7:
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdi
	addq	%r14, %rdi
	callq	_INIT_HLIST_HEAD
	incq	%r15
	movslq	(%rbx), %rax
	addq	$4, %r14
	cmpq	%rax, %r15
	jl	LBB0_8
LBB0_9:
	movq	%r13, %r15
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_INIT_LIST_HEAD
	movl	(%r12), %eax
	movl	%eax, (%r13)
	movq	_vnet_ops@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 48(%rbx)
	movq	_vnet_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movq	_VNET_TX_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rax
	movq	_NETIF_F_GSO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_NETIF_F_ALL_TSO@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_NETIF_F_HW_CSUM@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 16(%rbx)
	movl	%ecx, 20(%rbx)
	movq	_ETH_MIN_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_VNET_MAX_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_SET_NETDEV_DEV
	movq	%rbx, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	%rbx, %rdi
	callq	_free_netdev
	movl	%r14d, %edi
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_11:
	movq	8(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_info
	movq	_vnet_list@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_list_add
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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
	.comm	_VNET_PORT_HASH_SIZE,4,2        ## @VNET_PORT_HASH_SIZE
	.comm	_vnet_ops,4,2                   ## @vnet_ops
	.comm	_vnet_ethtool_ops,4,2           ## @vnet_ethtool_ops
	.comm	_VNET_TX_TIMEOUT,4,2            ## @VNET_TX_TIMEOUT
	.comm	_NETIF_F_TSO,4,2                ## @NETIF_F_TSO
	.comm	_NETIF_F_GSO,4,2                ## @NETIF_F_GSO
	.comm	_NETIF_F_ALL_TSO,4,2            ## @NETIF_F_ALL_TSO
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot register net device, aborting\n"

L_.str.1:                               ## @.str.1
	.asciz	"Sun LDOM vnet %pM\n"

	.comm	_vnet_list,4,2                  ## @vnet_list
	.no_dead_strip	_vnet_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vnet_new
_vnet_new:                              ; @vnet_new
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _VNET_MAX_TXQS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VNET_MAX_TXQS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	mov	w2, #1
	bl	_alloc_etherdev_mqs
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, 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, #56]
	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
	ldr	x10, [x19, #8]
	mov	w11, #40
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x22]
	asr	w12, w12, w11
	and	w12, w12, #0xff
	str	w12, [x10, x9, lsl #2]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	sub	w11, w11, #8
	cmp	x9, x12
	b.lt	LBB0_3
LBB0_4:
	mov	x0, x19
	bl	_netdev_priv
	mov	x21, x0
	add	x0, x0, #32
	bl	_spin_lock_init
	str	x19, [x21, #24]
	add	x0, x21, #16
	bl	_INIT_LIST_HEAD
Lloh8:
	adrp	x23, _VNET_PORT_HASH_SIZE@GOTPAGE
Lloh9:
	ldr	x23, [x23, _VNET_PORT_HASH_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x24, #0
	mov	x25, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	add	x0, x8, x24
	bl	_INIT_HLIST_HEAD
	add	x25, x25, #1
	ldrsw	x8, [x23]
	add	x24, x24, #4
	cmp	x25, x8
	b.lt	LBB0_6
LBB0_7:
	add	x23, x21, #4
	mov	x0, x23
	bl	_INIT_LIST_HEAD
	ldr	w8, [x22]
Lloh10:
	adrp	x9, _vnet_ops@GOTPAGE
Lloh11:
	ldr	x9, [x9, _vnet_ops@GOTPAGEOFF]
Lloh12:
	adrp	x10, _vnet_ethtool_ops@GOTPAGE
Lloh13:
	ldr	x10, [x10, _vnet_ethtool_ops@GOTPAGEOFF]
	str	w8, [x21]
	stp	x10, x9, [x19, #40]
Lloh14:
	adrp	x8, _VNET_TX_TIMEOUT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VNET_TX_TIMEOUT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #32]
Lloh17:
	adrp	x8, _NETIF_F_TSO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NETIF_F_TSO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _NETIF_F_GSO@GOTPAGE
Lloh21:
	ldr	x9, [x9, _NETIF_F_GSO@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh23:
	adrp	x9, _NETIF_F_ALL_TSO@GOTPAGE
Lloh24:
	ldr	x9, [x9, _NETIF_F_ALL_TSO@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _NETIF_F_HW_CSUM@GOTPAGE
Lloh27:
	ldr	x9, [x9, _NETIF_F_HW_CSUM@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh29:
	adrp	x9, _NETIF_F_SG@GOTPAGE
Lloh30:
	ldr	x9, [x9, _NETIF_F_SG@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w8, w9
	stp	w8, w8, [x19, #16]
Lloh32:
	adrp	x8, _ETH_MIN_MTU@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ETH_MIN_MTU@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _VNET_MAX_MTU@GOTPAGE
Lloh36:
	ldr	x9, [x9, _VNET_MAX_MTU@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
	mov	x0, x19
	mov	x1, x20
	bl	_SET_NETDEV_DEV
	mov	x0, x19
	bl	_register_netdev
	cbz	w0, LBB0_11
; %bb.8:
	mov	x20, x0
Lloh38:
	adrp	x0, l_.str@PAGE
Lloh39:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	mov	x0, x19
	bl	_free_netdev
	mov	x0, x20
	b	LBB0_10
LBB0_9:
Lloh40:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_11:
	ldr	x2, [x19, #8]
Lloh43:
	adrp	x1, l_.str.1@PAGE
Lloh44:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
Lloh45:
	adrp	x1, _vnet_list@GOTPAGE
Lloh46:
	ldr	x1, [x1, _vnet_list@GOTPAGEOFF]
	mov	x0, x23
	bl	_list_add
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.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	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.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
	.comm	_VNET_PORT_HASH_SIZE,4,2        ; @VNET_PORT_HASH_SIZE
	.comm	_vnet_ops,4,2                   ; @vnet_ops
	.comm	_vnet_ethtool_ops,4,2           ; @vnet_ethtool_ops
	.comm	_VNET_TX_TIMEOUT,4,2            ; @VNET_TX_TIMEOUT
	.comm	_NETIF_F_TSO,4,2                ; @NETIF_F_TSO
	.comm	_NETIF_F_GSO,4,2                ; @NETIF_F_GSO
	.comm	_NETIF_F_ALL_TSO,4,2            ; @NETIF_F_ALL_TSO
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot register net device, aborting\n"

l_.str.1:                               ; @.str.1
	.asciz	"Sun LDOM vnet %pM\n"

	.comm	_vnet_list,4,2                  ; @vnet_list
	.no_dead_strip	_vnet_new
.subsections_via_symbols
