	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpsw_probe_dual_emac
_cpsw_probe_dual_emac:                  ## @cpsw_probe_dual_emac
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	32(%rdi), %r15
	movl	(%r15), %edi
	movq	_CPSW_MAX_QUEUES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$40, %esi
	movl	%ecx, %edx
	callq	_devm_alloc_etherdev_mqs
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%r15, 32(%rax)
	movq	%rbx, 24(%rax)
	movq	%rbx, %rax
	addq	$4, %rax
	movq	%rax, 16(%r14)
	movq	_debug_level@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CPSW_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_netif_msg_init
	movl	%eax, 8(%r14)
	movq	16(%r15), %rax
	movl	4(%rax), %edi
	callq	_is_valid_ether_addr
	movl	4(%r14), %edi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	16(%r15), %rax
	movl	4(%rax), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_1:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_4:
	callq	_eth_random_addr
	leaq	L_.str.2(%rip), %rsi
LBB0_5:
	movl	(%r15), %edi
	movl	4(%r14), %edx
	callq	_dev_info
	movl	24(%rbx), %edi
	movl	4(%r14), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	$1, (%r14)
	movq	8(%r15), %rax
	movq	%rbx, 24(%rax)
	movq	_NETIF_F_HW_VLAN_CTAG_FILTER@GOTPCREL(%rip), %rax
	movq	_NETIF_F_HW_VLAN_CTAG_RX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%rbx)
	movq	_cpsw_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	_cpsw_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_SET_NETDEV_DEV
	movq	8(%r15), %rax
	movq	16(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_8
LBB0_6:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPSW_MAX_QUEUES,4,2            ## @CPSW_MAX_QUEUES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cpsw: error allocating net_device\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_debug_level,4,2                ## @debug_level
	.comm	_CPSW_DEBUG,4,2                 ## @CPSW_DEBUG
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
L_.str.1:                               ## @.str.1
	.asciz	"cpsw: Detected MACID = %pM\n"

L_.str.2:                               ## @.str.2
	.asciz	"cpsw: Random MACID = %pM\n"

	.comm	_NETIF_F_HW_VLAN_CTAG_FILTER,4,2 ## @NETIF_F_HW_VLAN_CTAG_FILTER
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ## @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_cpsw_netdev_ops,4,2            ## @cpsw_netdev_ops
	.comm	_cpsw_ethtool_ops,4,2           ## @cpsw_ethtool_ops
L_.str.3:                               ## @.str.3
	.asciz	"cpsw: error registering net device\n"

	.no_dead_strip	_cpsw_probe_dual_emac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpsw_probe_dual_emac
_cpsw_probe_dual_emac:                  ; @cpsw_probe_dual_emac
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x21, [x0, #32]
	ldr	w0, [x21]
Lloh0:
	adrp	x8, _CPSW_MAX_QUEUES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPSW_MAX_QUEUES@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #40
	mov	x3, x2
	bl	_devm_alloc_etherdev_mqs
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	stp	x19, x21, [x0, #24]
	add	x8, x19, #4
	str	x8, [x0, #16]
Lloh3:
	adrp	x8, _debug_level@GOTPAGE
Lloh4:
	ldr	x8, [x8, _debug_level@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _CPSW_DEBUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CPSW_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_netif_msg_init
	str	w0, [x20, #8]
	ldr	x8, [x21, #16]
	ldr	w0, [x8, #4]
	bl	_is_valid_ether_addr
	mov	x8, x0
	ldr	w0, [x20, #4]
Lloh9:
	adrp	x22, _ETH_ALEN@GOTPAGE
Lloh10:
	ldr	x22, [x22, _ETH_ALEN@GOTPAGEOFF]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x21, #16]
	ldr	w1, [x8, #4]
	ldr	w2, [x22]
	bl	_memcpy
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:
	ldr	w0, [x21]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_7
LBB0_4:
	bl	_eth_random_addr
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_5:
	ldr	w0, [x21]
	ldr	w2, [x20, #4]
	bl	_dev_info
	ldr	w0, [x19, #24]
	ldr	w1, [x20, #4]
	ldr	w2, [x22]
	bl	_memcpy
	mov	w8, #1
	str	w8, [x20]
	ldr	x8, [x21, #8]
	str	x19, [x8, #24]
Lloh20:
	adrp	x8, _NETIF_F_HW_VLAN_CTAG_FILTER@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NETIF_F_HW_VLAN_CTAG_FILTER@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGE
Lloh24:
	ldr	x9, [x9, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19]
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _cpsw_netdev_ops@GOTPAGE
Lloh27:
	ldr	x9, [x9, _cpsw_netdev_ops@GOTPAGEOFF]
	str	w8, [x19]
Lloh28:
	adrp	x8, _cpsw_ethtool_ops@GOTPAGE
Lloh29:
	ldr	x8, [x8, _cpsw_ethtool_ops@GOTPAGEOFF]
	stp	x8, x9, [x19, #8]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_SET_NETDEV_DEV
	ldr	x8, [x21, #8]
	ldr	x8, [x8, #16]
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_register_netdev
	mov	x19, x0
	cbz	w0, LBB0_7
; %bb.6:
	ldr	w0, [x21]
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_CPSW_MAX_QUEUES,4,2            ; @CPSW_MAX_QUEUES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cpsw: error allocating net_device\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_debug_level,4,2                ; @debug_level
	.comm	_CPSW_DEBUG,4,2                 ; @CPSW_DEBUG
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
l_.str.1:                               ; @.str.1
	.asciz	"cpsw: Detected MACID = %pM\n"

l_.str.2:                               ; @.str.2
	.asciz	"cpsw: Random MACID = %pM\n"

	.comm	_NETIF_F_HW_VLAN_CTAG_FILTER,4,2 ; @NETIF_F_HW_VLAN_CTAG_FILTER
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ; @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_cpsw_netdev_ops,4,2            ; @cpsw_netdev_ops
	.comm	_cpsw_ethtool_ops,4,2           ; @cpsw_ethtool_ops
l_.str.3:                               ; @.str.3
	.asciz	"cpsw: error registering net device\n"

	.no_dead_strip	_cpsw_probe_dual_emac
.subsections_via_symbols
