	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vnet_port_probe
_vnet_port_probe:                       ## @vnet_port_probe
	.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, %r13
	xorl	%eax, %eax
	callq	_mdesc_grab
	movq	%rax, %r14
	movl	4(%r13), %esi
	movq	%rax, %rdi
	movq	%r13, %rdx
	callq	_vnet_find_parent
	movq	%rax, %r15
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
LBB0_16:
	movq	%r14, %rdi
	callq	_mdesc_release
	movl	%r12d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	4(%r13), %esi
	movq	_remote_macaddr_prop@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	-108(%rbp), %rcx
	movq	%r14, %rdi
	callq	_mdesc_get_property
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	_ETH_ALEN@GOTPCREL(%rip), %r8
	cmpl	$0, (%r8)
	jle	LBB0_9
## %bb.7:
	movq	(%rax), %rdx
	movl	$40, %ecx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	sarl	%cl, %edi
	movzbl	%dil, %edi
	movl	%edi, (%rdx,%rsi,4)
	incq	%rsi
	movslq	(%r8), %rdi
	addl	$-8, %ecx
	cmpq	%rdi, %rsi
	jl	LBB0_8
LBB0_9:
	movq	%r12, 48(%rax)
	leaq	16(%rax), %r14
	movq	_VDEV_NETWORK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movq	_vnet_versions@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%ebx, %edi
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	callq	_ARRAY_SIZE
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rsp)
	movq	_vnet_vio_ops@GOTPCREL(%rip), %r9
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %r8d
	callq	_vio_driver_init
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.10:
	movq	_vnet_ldc_cfg@GOTPCREL(%rip), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_vio_ldc_alloc
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_11
LBB0_15:
	movq	%rbx, %rdi
	callq	_kfree
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movq	_remote_macaddr_prop@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_16
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_16
LBB0_11:
	movq	48(%rbx), %rax
	movq	(%rax), %rdi
	leaq	20(%rbx), %rsi
	movq	_sunvnet_poll_common@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NAPI_POLL_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	_netif_napi_add
	leaq	28(%rbx), %rdi
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	callq	_INIT_HLIST_NODE
	leaq	32(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_INIT_LIST_HEAD
	movl	4(%r13), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_mdesc_get_property
	movq	%rax, %r12
	xorl	%eax, %eax
	testq	%r12, %r12
	setne	%al
	movl	%eax, 8(%rbx)
	movl	$1, 12(%rbx)
	movq	$0, 40(%rbx)
	leaq	8(%r15), %rdi
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	addq	$24, %r15
	testq	%r12, %r12
	je	LBB0_13
## %bb.12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_list_add_rcu
	leaq	L_.str.4(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_list_add_tail_rcu
	leaq	L_.str.5(%rip), %rax
LBB0_14:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	16(%r12), %rbx
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rdi
	callq	_vnet_hashfn
	leaq	(%rbx,%rax,4), %rsi
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_hlist_add_head_rcu
	movq	%r15, %rdi
	callq	_sunvnet_port_add_txq_common
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_dev_set_drvdata
	movq	(%r12), %rax
	movl	(%rax), %esi
	movq	(%r15), %rdx
	leaq	L_.str.3(%rip), %rdi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_pr_info
	addq	$24, %r15
	movq	_sunvnet_clean_timer_expire_common@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_timer_setup
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_napi_enable
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_vio_port_up
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot find port parent vnet\n"

	.comm	_remote_macaddr_prop,8,3        ## @remote_macaddr_prop
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"Port lacks %s property\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_VDEV_NETWORK,4,2               ## @VDEV_NETWORK
	.comm	_vnet_versions,4,2              ## @vnet_versions
	.comm	_vnet_vio_ops,4,2               ## @vnet_vio_ops
	.comm	_vnet_ldc_cfg,4,2               ## @vnet_ldc_cfg
	.comm	_sunvnet_poll_common,4,2        ## @sunvnet_poll_common
	.comm	_NAPI_POLL_WEIGHT,4,2           ## @NAPI_POLL_WEIGHT
L_.str.2:                               ## @.str.2
	.asciz	"switch-port"

L_.str.3:                               ## @.str.3
	.asciz	"%s: PORT ( remote-mac %pM%s )\n"

L_.str.4:                               ## @.str.4
	.asciz	" switch-port"

L_.str.5:                               ## @.str.5
	.space	1

	.comm	_sunvnet_clean_timer_expire_common,4,2 ## @sunvnet_clean_timer_expire_common
	.no_dead_strip	_vnet_port_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vnet_port_probe
_vnet_port_probe:                       ; @vnet_port_probe
	.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
	mov	x20, x0
	bl	_mdesc_grab
	mov	x19, x0
	ldr	w1, [x20, #4]
	mov	x2, x20
	bl	_vnet_find_parent
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	mov	x0, x21
	bl	_PTR_ERR
	mov	x24, x0
LBB0_2:
	mov	x0, x19
	bl	_mdesc_release
	mov	x0, x24
	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
LBB0_3:
	ldr	w1, [x20, #4]
Lloh2:
	adrp	x22, _remote_macaddr_prop@GOTPAGE
Lloh3:
	ldr	x22, [x22, _remote_macaddr_prop@GOTPAGEOFF]
	ldr	x2, [x22]
	add	x3, sp, #12
	mov	x0, x19
	bl	_mdesc_get_property
	cbz	x0, LBB0_11
; %bb.4:
	mov	x23, x0
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.5:
	mov	x22, x0
Lloh7:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x9, #0
	ldr	x10, [x22]
	mov	w11, #40
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x23]
	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_7
LBB0_8:
	str	x21, [x22, #48]
	add	x23, x22, #16
Lloh9:
	adrp	x8, _VDEV_NETWORK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VDEV_NETWORK@GOTPAGEOFF]
Lloh11:
	ldr	w24, [x8]
Lloh12:
	adrp	x8, _vnet_versions@GOTPAGE
Lloh13:
	ldr	x8, [x8, _vnet_versions@GOTPAGEOFF]
Lloh14:
	ldr	w25, [x8]
	mov	x0, x25
	bl	_ARRAY_SIZE
	mov	x4, x0
	ldr	x8, [x21]
	ldr	w6, [x8]
Lloh15:
	adrp	x5, _vnet_vio_ops@GOTPAGE
Lloh16:
	ldr	x5, [x5, _vnet_vio_ops@GOTPAGEOFF]
	mov	x0, x23
	mov	x1, x20
	mov	x2, x24
	mov	x3, x25
	bl	_vio_driver_init
	mov	x24, x0
	cbnz	w0, LBB0_10
; %bb.9:
Lloh17:
	adrp	x1, _vnet_ldc_cfg@GOTPAGE
Lloh18:
	ldr	x1, [x1, _vnet_ldc_cfg@GOTPAGEOFF]
	mov	x0, x23
	mov	x2, x22
	bl	_vio_ldc_alloc
	mov	x24, x0
	cbz	w0, LBB0_13
LBB0_10:
	mov	x0, x22
	bl	_kfree
	b	LBB0_2
LBB0_11:
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w24, w8
	ldr	x8, [x22]
	str	x8, [sp]
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	b	LBB0_2
LBB0_12:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_2
LBB0_13:
	ldr	x8, [x22, #48]
	ldr	x0, [x8]
	add	x24, x22, #20
Lloh27:
	adrp	x8, _sunvnet_poll_common@GOTPAGE
Lloh28:
	ldr	x8, [x8, _sunvnet_poll_common@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
Lloh30:
	adrp	x8, _NAPI_POLL_WEIGHT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _NAPI_POLL_WEIGHT@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
	mov	x1, x24
	bl	_netif_napi_add
	add	x25, x22, #28
	mov	x0, x25
	bl	_INIT_HLIST_NODE
	add	x27, x22, #32
	mov	x0, x27
	bl	_INIT_LIST_HEAD
	ldr	w1, [x20, #4]
Lloh33:
	adrp	x2, l_.str.2@PAGE
Lloh34:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x3, #0
	bl	_mdesc_get_property
	mov	x28, x0
	cmp	x0, #0
	cset	w8, ne
	mov	w9, #1
	stp	w8, w9, [x22, #8]
	str	xzr, [x22, #40]
	add	x26, x21, #8
	mov	x0, x26
	bl	_spin_lock_irqsave
	add	x1, x21, #24
	mov	x0, x27
	cbz	x28, LBB0_15
; %bb.14:
	bl	_list_add_rcu
Lloh35:
	adrp	x27, l_.str.4@PAGE
Lloh36:
	add	x27, x27, l_.str.4@PAGEOFF
	b	LBB0_16
LBB0_15:
	bl	_list_add_tail_rcu
Lloh37:
	adrp	x27, l_.str.5@PAGE
Lloh38:
	add	x27, x27, l_.str.5@PAGEOFF
LBB0_16:
	ldr	x28, [x21, #16]
	ldr	x0, [x22]
	bl	_vnet_hashfn
	add	x1, x28, x0, lsl #2
	mov	x0, x25
	bl	_hlist_add_head_rcu
	mov	x0, x22
	bl	_sunvnet_port_add_txq_common
	mov	x0, x26
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	mov	x1, x22
	bl	_dev_set_drvdata
	ldr	x8, [x21]
	ldr	w1, [x8]
	ldr	x2, [x22], #24
Lloh39:
	adrp	x0, l_.str.3@PAGE
Lloh40:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x3, x27
	bl	_pr_info
Lloh41:
	adrp	x8, _sunvnet_clean_timer_expire_common@GOTPAGE
Lloh42:
	ldr	x8, [x8, _sunvnet_clean_timer_expire_common@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #0
	bl	_timer_setup
	mov	x0, x24
	bl	_napi_enable
	mov	x0, x23
	bl	_vio_port_up
	mov	w24, #0
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot find port parent vnet\n"

	.comm	_remote_macaddr_prop,8,3        ; @remote_macaddr_prop
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"Port lacks %s property\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_VDEV_NETWORK,4,2               ; @VDEV_NETWORK
	.comm	_vnet_versions,4,2              ; @vnet_versions
	.comm	_vnet_vio_ops,4,2               ; @vnet_vio_ops
	.comm	_vnet_ldc_cfg,4,2               ; @vnet_ldc_cfg
	.comm	_sunvnet_poll_common,4,2        ; @sunvnet_poll_common
	.comm	_NAPI_POLL_WEIGHT,4,2           ; @NAPI_POLL_WEIGHT
l_.str.2:                               ; @.str.2
	.asciz	"switch-port"

l_.str.3:                               ; @.str.3
	.asciz	"%s: PORT ( remote-mac %pM%s )\n"

l_.str.4:                               ; @.str.4
	.asciz	" switch-port"

l_.str.5:                               ; @.str.5
	.space	1

	.comm	_sunvnet_clean_timer_expire_common,4,2 ; @sunvnet_clean_timer_expire_common
	.no_dead_strip	_vnet_port_probe
.subsections_via_symbols
