	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rocker_probe_port
_rocker_probe_port:                     ## @rocker_probe_port
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	8(%rdi), %r13
	movl	$32, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r12, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r12, 24(%rax)
	movq	%r15, 16(%rax)
	movl	%r14d, (%rax)
	leal	1(%r14), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_rocker_world_check_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	jmp	LBB0_12
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_13
LBB0_4:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_rocker_port_dev_addr_init
	movq	_rocker_port_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r12)
	movq	_rocker_port_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r12)
	leaq	12(%rbx), %rsi
	movq	_rocker_port_poll_tx@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NAPI_POLL_WEIGHT@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movq	%r12, %rdi
	callq	_netif_tx_napi_add
	movq	%rbx, %rsi
	addq	$8, %rsi
	movq	_rocker_port_poll_rx@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %ecx
	movq	%r12, %rdi
	callq	_netif_napi_add
	movq	%rbx, %rdi
	callq	_rocker_carrier_init
	movq	_NETIF_F_NETNS_LOCAL@GOTPCREL(%rip), %rax
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%r12)
	movq	_ROCKER_PORT_MIN_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	_ROCKER_PORT_MAX_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	%rbx, %rdi
	callq	_rocker_world_port_pre_init
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	jmp	LBB0_12
LBB0_6:
	movq	%r12, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	jmp	LBB0_11
LBB0_8:
	movq	(%r15), %rax
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	movq	%rbx, (%rax,%r13,8)
	movq	%rbx, %rdi
	callq	_rocker_world_port_init
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movq	(%r15), %rax
	movq	$0, (%rax,%r13,8)
	movq	%r12, %rdi
	callq	_unregister_netdev
LBB0_11:
	movq	%rbx, %rdi
	callq	_rocker_world_port_post_fini
LBB0_12:
	movq	%r12, %rdi
	callq	_free_netdev
LBB0_13:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%r14d, %r14d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"world init failed\n"

	.comm	_rocker_port_netdev_ops,4,2     ## @rocker_port_netdev_ops
	.comm	_rocker_port_ethtool_ops,4,2    ## @rocker_port_ethtool_ops
	.comm	_rocker_port_poll_tx,4,2        ## @rocker_port_poll_tx
	.comm	_NAPI_POLL_WEIGHT,4,2           ## @NAPI_POLL_WEIGHT
	.comm	_rocker_port_poll_rx,4,2        ## @rocker_port_poll_rx
	.comm	_NETIF_F_NETNS_LOCAL,4,2        ## @NETIF_F_NETNS_LOCAL
	.comm	_NETIF_F_SG,4,2                 ## @NETIF_F_SG
	.comm	_ROCKER_PORT_MIN_MTU,4,2        ## @ROCKER_PORT_MIN_MTU
	.comm	_ROCKER_PORT_MAX_MTU,4,2        ## @ROCKER_PORT_MAX_MTU
L_.str.1:                               ## @.str.1
	.asciz	"port world pre-init failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"register_netdev failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"port world init failed\n"

	.no_dead_strip	_rocker_probe_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rocker_probe_port
_rocker_probe_port:                     ; @rocker_probe_port
	.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	x23, x1
	mov	x21, x0
	ldr	x20, [x0, #8]
	mov	w0, #32
	bl	_alloc_etherdev
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x1, x20
	bl	_SET_NETDEV_DEV
	mov	x0, x19
	bl	_netdev_priv
	mov	x22, x0
	stp	x21, x19, [x0, #16]
	add	w8, w23, #1
	stp	w23, w8, [x0]
	bl	_rocker_world_check_init
	cbz	w0, LBB0_4
; %bb.2:
	mov	x24, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_8
LBB0_4:
	mov	x0, x22
	bl	_rocker_port_dev_addr_init
Lloh5:
	adrp	x8, _rocker_port_netdev_ops@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rocker_port_netdev_ops@GOTPAGEOFF]
Lloh7:
	adrp	x9, _rocker_port_ethtool_ops@GOTPAGE
Lloh8:
	ldr	x9, [x9, _rocker_port_ethtool_ops@GOTPAGEOFF]
	stp	x9, x8, [x19, #16]
	add	x1, x22, #12
Lloh9:
	adrp	x8, _rocker_port_poll_tx@GOTPAGE
Lloh10:
	ldr	x8, [x8, _rocker_port_poll_tx@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x24, _NAPI_POLL_WEIGHT@GOTPAGE
Lloh13:
	ldr	x24, [x24, _NAPI_POLL_WEIGHT@GOTPAGEOFF]
	ldr	w3, [x24]
	mov	x0, x19
	bl	_netif_tx_napi_add
	add	x1, x22, #8
Lloh14:
	adrp	x8, _rocker_port_poll_rx@GOTPAGE
Lloh15:
	ldr	x8, [x8, _rocker_port_poll_rx@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	ldr	w3, [x24]
	mov	x0, x19
	bl	_netif_napi_add
	mov	x0, x22
	bl	_rocker_carrier_init
Lloh17:
	adrp	x8, _NETIF_F_NETNS_LOCAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NETIF_F_NETNS_LOCAL@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
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
Lloh23:
	adrp	x8, _ROCKER_PORT_MIN_MTU@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ROCKER_PORT_MIN_MTU@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _ROCKER_PORT_MAX_MTU@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ROCKER_PORT_MAX_MTU@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #4]
	mov	x0, x22
	bl	_rocker_world_port_pre_init
	cbz	w0, LBB0_9
; %bb.5:
	mov	x24, x0
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x20
	bl	_dev_err
LBB0_7:
	mov	x0, x19
	bl	_free_netdev
LBB0_8:
	mov	x0, x24
	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_9:
	mov	x0, x19
	bl	_register_netdev
	cbz	w0, LBB0_11
; %bb.10:
	mov	x24, x0
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_13
LBB0_11:
	ldr	x8, [x21]
	str	x22, [x8, w23, uxtw #3]
	mov	x0, x22
	bl	_rocker_world_port_init
	mov	x24, x0
	cbz	w0, LBB0_8
; %bb.12:
	mov	w23, w23
Lloh33:
	adrp	x1, l_.str.3@PAGE
Lloh34:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x8, [x21]
	str	xzr, [x8, x23, lsl #3]
	mov	x0, x19
	bl	_unregister_netdev
LBB0_13:
	mov	x0, x22
	bl	_rocker_world_port_post_fini
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"world init failed\n"

	.comm	_rocker_port_netdev_ops,4,2     ; @rocker_port_netdev_ops
	.comm	_rocker_port_ethtool_ops,4,2    ; @rocker_port_ethtool_ops
	.comm	_rocker_port_poll_tx,4,2        ; @rocker_port_poll_tx
	.comm	_NAPI_POLL_WEIGHT,4,2           ; @NAPI_POLL_WEIGHT
	.comm	_rocker_port_poll_rx,4,2        ; @rocker_port_poll_rx
	.comm	_NETIF_F_NETNS_LOCAL,4,2        ; @NETIF_F_NETNS_LOCAL
	.comm	_NETIF_F_SG,4,2                 ; @NETIF_F_SG
	.comm	_ROCKER_PORT_MIN_MTU,4,2        ; @ROCKER_PORT_MIN_MTU
	.comm	_ROCKER_PORT_MAX_MTU,4,2        ; @ROCKER_PORT_MAX_MTU
l_.str.1:                               ; @.str.1
	.asciz	"port world pre-init failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"register_netdev failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"port world init failed\n"

	.no_dead_strip	_rocker_probe_port
.subsections_via_symbols
