	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpsw_ndo_open
_cpsw_ndo_open:                         ## @cpsw_ndo_open
	.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	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	88(%rax), %r12
	movl	24(%r12), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_netif_carrier_off
	movl	84(%r12), %esi
	movq	%r15, %rdi
	callq	_netif_set_real_num_tx_queues
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %ebx
	movl	24(%r12), %edi
	callq	_pm_runtime_put_noidle
	jmp	LBB0_10
LBB0_4:
	movl	80(%r12), %esi
	movq	%r15, %rdi
	callq	_netif_set_real_num_rx_queues
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movl	24(%r14), %edi
	callq	_dev_err
	cmpl	$0, 32(%r12)
	jne	LBB0_9
LBB0_8:
	movl	28(%r12), %edi
	callq	_cpdma_ctlr_stop
	movq	%r12, %rdi
	callq	_cpsw_destroy_xdp_rxqs
LBB0_9:
	movq	_cpsw_slave_stop@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_for_each_slave
	movl	24(%r12), %edi
	callq	_pm_runtime_put_sync
	movq	16(%r14), %rdi
	callq	_netif_carrier_off
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	76(%r12), %ebx
	movl	24(%r14), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_CPSW_MAJOR_VERSION
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_CPSW_MINOR_VERSION
	movl	%eax, %r13d
	movl	%ebx, %edi
	callq	_CPSW_RTL_VERSION
	leaq	L_.str.2(%rip), %rsi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movl	%eax, %r8d
	callq	_dev_info
	cmpl	$0, 32(%r12)
	jne	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_cpsw_init_host_port
LBB0_13:
	movq	_cpsw_slave_open@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r14, %rdx
	callq	_for_each_slave
	cmpl	$0, 68(%r12)
	je	LBB0_15
## %bb.14:
	movl	64(%r12), %esi
	movl	72(%r12), %edi
	movq	_ALE_ALL_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_cpsw_ale_add_vlan
	cmpl	$0, 32(%r12)
	jne	LBB0_24
	jmp	LBB0_16
LBB0_15:
	movq	%r14, %rdi
	callq	_cpsw_add_default_vlan
	cmpl	$0, 32(%r12)
	jne	LBB0_24
LBB0_16:
	movq	56(%r12), %rsi
	addq	$8, %rsi
	xorl	%edi, %edi
	callq	_writel_relaxed
	movq	56(%r12), %rsi
	addq	$4, %rsi
	movl	$7, %edi
	callq	_writel_relaxed
	movq	56(%r12), %rsi
	movl	$7, %edi
	callq	_writel
	leaq	52(%r12), %rdi
	callq	_napi_enable
	leaq	48(%r12), %rdi
	callq	_napi_enable
	cmpl	$0, (%r12)
	je	LBB0_18
## %bb.17:
	movl	$0, (%r12)
	movq	40(%r12), %rax
	movl	4(%rax), %edi
	callq	_enable_irq
LBB0_18:
	cmpl	$0, 4(%r12)
	je	LBB0_20
## %bb.19:
	movl	$0, 4(%r12)
	movq	40(%r12), %rax
	movl	(%rax), %edi
	callq	_enable_irq
LBB0_20:
	movq	%r12, %rdi
	callq	_cpsw_create_xdp_rxqs
	testl	%eax, %eax
	js	LBB0_28
## %bb.21:
	movq	%r14, %rdi
	callq	_cpsw_fill_rx_channels
	testl	%eax, %eax
	js	LBB0_28
## %bb.22:
	movl	36(%r12), %edi
	callq	_cpts_register
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movl	24(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
LBB0_24:
	movq	%r14, %rdi
	callq	_cpsw_restore
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	%rax, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_cpsw_set_coalesce
LBB0_26:
	movl	28(%r12), %edi
	callq	_cpdma_ctlr_start
	movq	%r12, %rdi
	callq	_cpsw_intr_enable
	incl	32(%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_28:
	movl	%eax, %ebx
	cmpl	$0, 32(%r12)
	jne	LBB0_9
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot set real number of tx queues\n"

L_.str.1:                               ## @.str.1
	.asciz	"cannot set real number of rx queues\n"

L_.str.2:                               ## @.str.2
	.asciz	"initializing cpsw version %d.%d (%d)\n"

	.comm	_cpsw_slave_open,4,2            ## @cpsw_slave_open
	.comm	_ALE_ALL_PORTS,4,2              ## @ALE_ALL_PORTS
L_.str.3:                               ## @.str.3
	.asciz	"error registering cpts device\n"

	.comm	_cpsw_slave_stop,4,2            ## @cpsw_slave_stop
	.no_dead_strip	_cpsw_ndo_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpsw_ndo_open
_cpsw_ndo_open:                         ; @cpsw_ndo_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x19, [x0, #88]
	ldr	w0, [x19, #24]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_netif_carrier_off
	ldr	w1, [x19, #84]
	mov	x0, x21
	bl	_netif_set_real_num_tx_queues
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:
	mov	x22, x0
	ldr	w0, [x19, #24]
	bl	_pm_runtime_put_noidle
	b	LBB0_9
LBB0_4:
	ldr	w1, [x19, #80]
	mov	x0, x21
	bl	_netif_set_real_num_rx_queues
	cbz	w0, LBB0_10
; %bb.5:
	mov	x22, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	ldr	w0, [x20, #24]
	bl	_dev_err
	ldr	w8, [x19, #32]
	cbnz	w8, LBB0_8
LBB0_7:
	ldr	w0, [x19, #28]
	bl	_cpdma_ctlr_stop
	mov	x0, x19
	bl	_cpsw_destroy_xdp_rxqs
LBB0_8:
Lloh4:
	adrp	x8, _cpsw_slave_stop@GOTPAGE
Lloh5:
	ldr	x8, [x8, _cpsw_slave_stop@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_for_each_slave
	ldr	w0, [x19, #24]
	bl	_pm_runtime_put_sync
	ldr	x0, [x20, #16]
	bl	_netif_carrier_off
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
	ldr	w22, [x19, #76]
	ldr	w23, [x20, #24]
	mov	x0, x22
	bl	_CPSW_MAJOR_VERSION
	mov	x24, x0
	mov	x0, x22
	bl	_CPSW_MINOR_VERSION
	mov	x25, x0
	mov	x0, x22
	bl	_CPSW_RTL_VERSION
	mov	x4, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	mov	x2, x24
	mov	x3, x25
	bl	_dev_info
	ldr	w8, [x19, #32]
	cbnz	w8, LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_cpsw_init_host_port
LBB0_12:
Lloh9:
	adrp	x8, _cpsw_slave_open@GOTPAGE
Lloh10:
	ldr	x8, [x8, _cpsw_slave_open@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x20
	bl	_for_each_slave
	ldr	w8, [x19, #68]
	cbz	w8, LBB0_14
; %bb.13:
	ldr	w0, [x19, #72]
	ldr	w1, [x19, #64]
Lloh12:
	adrp	x8, _ALE_ALL_PORTS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ALE_ALL_PORTS@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x3, x2
	mov	w4, #0
	mov	w5, #0
	bl	_cpsw_ale_add_vlan
	ldr	w8, [x19, #32]
	cbnz	w8, LBB0_23
	b	LBB0_15
LBB0_14:
	mov	x0, x20
	bl	_cpsw_add_default_vlan
	ldr	w8, [x19, #32]
	cbnz	w8, LBB0_23
LBB0_15:
	ldr	x8, [x19, #56]
	add	x1, x8, #8
	mov	w0, #0
	bl	_writel_relaxed
	ldr	x8, [x19, #56]
	add	x1, x8, #4
	mov	w0, #7
	bl	_writel_relaxed
	ldr	x1, [x19, #56]
	mov	w0, #7
	bl	_writel
	add	x0, x19, #52
	bl	_napi_enable
	add	x0, x19, #48
	bl	_napi_enable
	ldr	w8, [x19]
	cbz	w8, LBB0_17
; %bb.16:
	str	wzr, [x19]
	ldr	x8, [x19, #40]
	ldr	w0, [x8, #4]
	bl	_enable_irq
LBB0_17:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_19
; %bb.18:
	str	wzr, [x19, #4]
	ldr	x8, [x19, #40]
	ldr	w0, [x8]
	bl	_enable_irq
LBB0_19:
	mov	x0, x19
	bl	_cpsw_create_xdp_rxqs
	tbnz	w0, #31, LBB0_26
; %bb.20:
	mov	x0, x20
	bl	_cpsw_fill_rx_channels
	tbnz	w0, #31, LBB0_26
; %bb.21:
	ldr	w0, [x19, #36]
	bl	_cpts_register
	cbz	x0, LBB0_23
; %bb.22:
	ldr	w0, [x20, #24]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
LBB0_23:
	mov	x0, x20
	bl	_cpsw_restore
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_25
; %bb.24:
	str	x8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x21
	bl	_cpsw_set_coalesce
LBB0_25:
	ldr	w0, [x19, #28]
	bl	_cpdma_ctlr_start
	mov	x0, x19
	bl	_cpsw_intr_enable
	mov	w22, #0
	ldr	w8, [x19, #32]
	add	w8, w8, #1
	str	w8, [x19, #32]
	b	LBB0_9
LBB0_26:
	mov	x22, x0
	ldr	w8, [x19, #32]
	cbnz	w8, LBB0_8
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot set real number of tx queues\n"

l_.str.1:                               ; @.str.1
	.asciz	"cannot set real number of rx queues\n"

l_.str.2:                               ; @.str.2
	.asciz	"initializing cpsw version %d.%d (%d)\n"

	.comm	_cpsw_slave_open,4,2            ; @cpsw_slave_open
	.comm	_ALE_ALL_PORTS,4,2              ; @ALE_ALL_PORTS
l_.str.3:                               ; @.str.3
	.asciz	"error registering cpts device\n"

	.comm	_cpsw_slave_stop,4,2            ; @cpsw_slave_stop
	.no_dead_strip	_cpsw_ndo_open
.subsections_via_symbols
