	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpaa2_eth_probe
_dpaa2_eth_probe:                       ## @dpaa2_eth_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_DPAA2_ETH_MAX_NETDEV_QUEUES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_alloc_etherdev_mq
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_dev_set_drvdata
	movq	%r13, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%r13, 32(%rax)
	movq	%r14, %rdi
	callq	_iommu_get_domain_for_dev
	movl	%eax, 28(%r15)
	movq	_FSL_MC_IO_ATOMIC_CONTEXT_PORTAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	4(%r15), %r12
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_fsl_mc_portal_allocate
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	%eax, %ebx
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_5
## %bb.4:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_34
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_35
LBB0_6:
	movq	%r14, %rdi
	callq	_setup_dpni
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_33
## %bb.7:
	movq	%r15, %rdi
	callq	_setup_dpio
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_32
## %bb.8:
	movq	%r15, %rdi
	callq	_setup_fqs
	movq	%r15, %rdi
	callq	_setup_dpbp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
## %bb.9:
	movq	%r15, %rdi
	callq	_bind_dpni
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_30
## %bb.10:
	movq	%r15, %rdi
	callq	_add_ch_napi
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_alloc_percpu
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	16(%r15), %rax
	movl	(%rax), %edi
	callq	_alloc_percpu
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%r13, %rdi
	callq	_netdev_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.15:
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %esi
	andl	(%r13), %eax
	setne	%sil
	movq	%r15, %rdi
	callq	_set_rx_csum
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.16:
	movq	_NETIF_F_IP_CSUM@GOTPCREL(%rip), %rax
	movq	_NETIF_F_IPV6_CSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%esi, %esi
	andl	(%r13), %ecx
	setne	%sil
	movq	%r15, %rdi
	callq	_set_tx_csum
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.17:
	movq	%r15, %rdi
	callq	_alloc_rings
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.18:
	movq	%r14, %rdi
	callq	_setup_irqs
	testl	%eax, %eax
	je	LBB0_22
## %bb.19:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_netdev_warn
	movq	_poll_link_state@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r13), %ecx
	leaq	L_.str.5(%rip), %rdx
	movq	%r15, %rsi
	callq	_kthread_run
	movl	%eax, 24(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_26
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_34
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_29
LBB0_13:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_28
LBB0_21:
	movl	$1, (%r15)
LBB0_22:
	movq	%r13, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	js	LBB0_23
## %bb.36:
	movl	4(%r13), %edx
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_35
LBB0_23:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	cmpl	$0, (%r15)
	je	LBB0_25
## %bb.24:
	movl	24(%r15), %edi
	callq	_kthread_stop
	jmp	LBB0_26
LBB0_25:
	movq	%r14, %rdi
	callq	_fsl_mc_free_irqs
LBB0_26:
	movq	%r15, %rdi
	callq	_free_rings
LBB0_27:
	movq	16(%r15), %rdi
	callq	_free_percpu
LBB0_28:
	movq	8(%r15), %rdi
	callq	_free_percpu
LBB0_29:
	movq	%r15, %rdi
	callq	_del_ch_napi
LBB0_30:
	movq	%r15, %rdi
	callq	_free_dpbp
LBB0_31:
	movq	%r15, %rdi
	callq	_free_dpio
LBB0_32:
	movq	%r15, %rdi
	callq	_free_dpni
LBB0_33:
	movl	(%r12), %edi
	callq	_fsl_mc_portal_free
LBB0_34:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_dev_set_drvdata
	movq	%r13, %rdi
	callq	_free_netdev
LBB0_35:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPAA2_ETH_MAX_NETDEV_QUEUES,4,2 ## @DPAA2_ETH_MAX_NETDEV_QUEUES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"alloc_etherdev_mq() failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_FSL_MC_IO_ATOMIC_CONTEXT_PORTAL,4,2 ## @FSL_MC_IO_ATOMIC_CONTEXT_PORTAL
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.1:                               ## @.str.1
	.asciz	"MC portal allocation failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"alloc_percpu(percpu_stats) failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"alloc_percpu(percpu_extras) failed\n"

	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_NETIF_F_IP_CSUM,4,2            ## @NETIF_F_IP_CSUM
	.comm	_NETIF_F_IPV6_CSUM,4,2          ## @NETIF_F_IPV6_CSUM
L_.str.4:                               ## @.str.4
	.asciz	"Failed to set link interrupt, fall back to polling\n"

	.comm	_poll_link_state,4,2            ## @poll_link_state
L_.str.5:                               ## @.str.5
	.asciz	"%s_poll_link"

L_.str.6:                               ## @.str.6
	.asciz	"Error starting polling thread\n"

L_.str.7:                               ## @.str.7
	.asciz	"register_netdev() failed\n"

L_.str.8:                               ## @.str.8
	.asciz	"Probed interface %s\n"

	.no_dead_strip	_dpaa2_eth_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpaa2_eth_probe
_dpaa2_eth_probe:                       ; @dpaa2_eth_probe
	.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	x19, x0
Lloh0:
	adrp	x8, _DPAA2_ETH_MAX_NETDEV_QUEUES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPAA2_ETH_MAX_NETDEV_QUEUES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_alloc_etherdev_mq
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x1, x19
	bl	_SET_NETDEV_DEV
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
	mov	x0, x20
	bl	_netdev_priv
	mov	x21, x0
	str	x20, [x0, #32]
	mov	x0, x19
	bl	_iommu_get_domain_for_dev
	str	w0, [x21, #28]
Lloh3:
	adrp	x8, _FSL_MC_IO_ATOMIC_CONTEXT_PORTAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FSL_MC_IO_ATOMIC_CONTEXT_PORTAL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x22, x21, #4
	mov	x0, x19
	mov	x2, x22
	bl	_fsl_mc_portal_allocate
	cbz	w0, LBB0_5
; %bb.2:
	mov	x23, x0
Lloh6:
	adrp	x8, _ENXIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_18
; %bb.3:
Lloh9:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_35
LBB0_4:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_36
LBB0_5:
	mov	x0, x19
	bl	_setup_dpni
	mov	x23, x0
	cbnz	w0, LBB0_34
; %bb.6:
	mov	x0, x21
	bl	_setup_dpio
	mov	x23, x0
	cbnz	w0, LBB0_33
; %bb.7:
	mov	x0, x21
	bl	_setup_fqs
	mov	x0, x21
	bl	_setup_dpbp
	mov	x23, x0
	cbnz	w0, LBB0_32
; %bb.8:
	mov	x0, x21
	bl	_bind_dpni
	mov	x23, x0
	cbnz	w0, LBB0_31
; %bb.9:
	mov	x0, x21
	bl	_add_ch_napi
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	bl	_alloc_percpu
	str	x0, [x21, #8]
	cbz	x0, LBB0_19
; %bb.10:
	ldr	x8, [x21, #16]
	ldr	w0, [x8]
	bl	_alloc_percpu
	str	x0, [x21, #16]
	cbz	x0, LBB0_20
; %bb.11:
	mov	x0, x20
	bl	_netdev_init
	mov	x23, x0
	cbnz	w0, LBB0_28
; %bb.12:
	ldr	w8, [x20]
Lloh17:
	adrp	x9, _NETIF_F_RXCSUM@GOTPAGE
Lloh18:
	ldr	x9, [x9, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w1, ne
	mov	x0, x21
	bl	_set_rx_csum
	mov	x23, x0
	cbnz	w0, LBB0_28
; %bb.13:
	ldr	w8, [x20]
Lloh20:
	adrp	x9, _NETIF_F_IP_CSUM@GOTPAGE
Lloh21:
	ldr	x9, [x9, _NETIF_F_IP_CSUM@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _NETIF_F_IPV6_CSUM@GOTPAGE
Lloh24:
	ldr	x10, [x10, _NETIF_F_IPV6_CSUM@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	cset	w1, ne
	mov	x0, x21
	bl	_set_tx_csum
	mov	x23, x0
	cbnz	w0, LBB0_28
; %bb.14:
	mov	x0, x21
	bl	_alloc_rings
	mov	x23, x0
	cbnz	w0, LBB0_28
; %bb.15:
	mov	x0, x19
	bl	_setup_irqs
	cbz	w0, LBB0_22
; %bb.16:
	mov	x23, x0
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_netdev_warn
Lloh28:
	adrp	x8, _poll_link_state@GOTPAGE
Lloh29:
	ldr	x8, [x8, _poll_link_state@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	ldr	w3, [x20, #4]
Lloh31:
	adrp	x2, l_.str.5@PAGE
Lloh32:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x1, x21
	bl	_kthread_run
	str	w0, [x21, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_21
; %bb.17:
Lloh33:
	adrp	x1, l_.str.6@PAGE
Lloh34:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_27
LBB0_18:
Lloh35:
	adrp	x1, l_.str.1@PAGE
Lloh36:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_35
LBB0_19:
Lloh37:
	adrp	x1, l_.str.2@PAGE
Lloh38:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh39:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_30
LBB0_20:
Lloh42:
	adrp	x1, l_.str.3@PAGE
Lloh43:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh44:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_29
LBB0_21:
	mov	w8, #1
	str	w8, [x21]
LBB0_22:
	mov	x0, x20
	bl	_register_netdev
	tbnz	w0, #31, LBB0_24
; %bb.23:
	ldr	w2, [x20, #4]
Lloh47:
	adrp	x1, l_.str.8@PAGE
Lloh48:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w23, #0
	b	LBB0_36
LBB0_24:
	mov	x23, x0
Lloh49:
	adrp	x1, l_.str.7@PAGE
Lloh50:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w8, [x21]
	cbz	w8, LBB0_26
; %bb.25:
	ldr	w0, [x21, #24]
	bl	_kthread_stop
	b	LBB0_27
LBB0_26:
	mov	x0, x19
	bl	_fsl_mc_free_irqs
LBB0_27:
	mov	x0, x21
	bl	_free_rings
LBB0_28:
	ldr	x0, [x21, #16]
	bl	_free_percpu
LBB0_29:
	ldr	x0, [x21, #8]
	bl	_free_percpu
LBB0_30:
	mov	x0, x21
	bl	_del_ch_napi
LBB0_31:
	mov	x0, x21
	bl	_free_dpbp
LBB0_32:
	mov	x0, x21
	bl	_free_dpio
LBB0_33:
	mov	x0, x21
	bl	_free_dpni
LBB0_34:
	ldr	w0, [x22]
	bl	_fsl_mc_portal_free
LBB0_35:
	mov	x0, x19
	mov	x1, #0
	bl	_dev_set_drvdata
	mov	x0, x20
	bl	_free_netdev
LBB0_36:
	mov	x0, x23
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_DPAA2_ETH_MAX_NETDEV_QUEUES,4,2 ; @DPAA2_ETH_MAX_NETDEV_QUEUES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"alloc_etherdev_mq() failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_FSL_MC_IO_ATOMIC_CONTEXT_PORTAL,4,2 ; @FSL_MC_IO_ATOMIC_CONTEXT_PORTAL
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.1:                               ; @.str.1
	.asciz	"MC portal allocation failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"alloc_percpu(percpu_stats) failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"alloc_percpu(percpu_extras) failed\n"

	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_NETIF_F_IP_CSUM,4,2            ; @NETIF_F_IP_CSUM
	.comm	_NETIF_F_IPV6_CSUM,4,2          ; @NETIF_F_IPV6_CSUM
l_.str.4:                               ; @.str.4
	.asciz	"Failed to set link interrupt, fall back to polling\n"

	.comm	_poll_link_state,4,2            ; @poll_link_state
l_.str.5:                               ; @.str.5
	.asciz	"%s_poll_link"

l_.str.6:                               ; @.str.6
	.asciz	"Error starting polling thread\n"

l_.str.7:                               ; @.str.7
	.asciz	"register_netdev() failed\n"

l_.str.8:                               ; @.str.8
	.asciz	"Probed interface %s\n"

	.no_dead_strip	_dpaa2_eth_probe
.subsections_via_symbols
