	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fec_probe
_fec_probe:                             ## @fec_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r14
	leaq	-64(%rbp), %rsi
	leaq	-60(%rbp), %rdx
	callq	_fec_enet_get_queue_num
	movq	_FEC_STATS_SIZE@GOTPCREL(%rip), %rax
	movl	$176, %edi
	addq	(%rax), %rdi
	movl	-64(%rbp), %esi
	movl	-60(%rbp), %edx
	callq	_alloc_etherdev_mqs
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r15, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movq	_fec_dt_ids@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_72
LBB0_3:
	movq	16(%rbx), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	%r15, 168(%r12)
	movl	-60(%rbp), %ecx
	movl	%ecx, 4(%r12)
	movl	-64(%rbp), %ecx
	movl	%ecx, 8(%r12)
	movq	_FEC_QUIRK_HAS_GBIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_FEC_PAUSE_FLAG_AUTONEG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 160(%r12)
LBB0_7:
	movq	%rbx, %rdi
	callq	_pinctrl_pm_select_default_state
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movq	%rax, 152(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	152(%r12), %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
	jmp	LBB0_71
LBB0_9:
	movq	%rbx, 144(%r12)
	movl	_fec_probe.dev_id(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, _fec_probe.dev_id(%rip)
	movl	%eax, 72(%r12)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	leaq	L_.str(%rip), %rdi
	callq	_of_machine_is_compatible
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rdi
	callq	_of_machine_is_compatible
	testq	%rax, %rax
	je	LBB0_13
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_property_read_bool
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	_FEC_QUIRK_ERR006687@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
LBB0_13:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_FEC_WOL_HAS_MAGIC_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%r12)
LBB0_15:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_16
LBB0_21:
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, 136(%r12)
	movq	(%rbx), %rdi
	callq	_of_get_phy_mode
	testl	%eax, %eax
	jns	LBB0_25
## %bb.22:
	movq	%rbx, %rdi
	callq	_dev_get_platdata
	testq	%rax, %rax
	jne	LBB0_24
## %bb.23:
	movq	_PHY_INTERFACE_MODE_MII@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %eax
LBB0_25:
	movl	%eax, 16(%r12)
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_clk_get
	movq	%rax, 40(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movq	40(%r12), %rdi
	jmp	LBB0_28
LBB0_16:
	movq	%r14, %rdi
	callq	_of_phy_is_fixed_link
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	%r14, %rdi
	callq	_of_phy_register_fixed_link
	testl	%eax, %eax
	js	LBB0_19
## %bb.20:
	movq	%r14, %rdi
	callq	_of_node_get
	jmp	LBB0_21
LBB0_27:
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_clk_get
	movq	%rax, 48(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	48(%r12), %rdi
	testq	%rax, %rax
	je	LBB0_29
LBB0_28:
	callq	_PTR_ERR
	movl	%eax, %r13d
LBB0_67:
	movq	%r14, %rdi
	callq	_of_phy_is_fixed_link
	testq	%rax, %rax
	je	LBB0_69
## %bb.68:
	movq	%r14, %rdi
	callq	_of_phy_deregister_fixed_link
LBB0_69:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_of_node_put
LBB0_70:
	decl	_fec_probe.dev_id(%rip)
LBB0_71:
	movq	%r15, %rdi
	callq	_free_netdev
LBB0_72:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_74
## %bb.73:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_29:
	callq	_clk_get_rate
	movl	%eax, 128(%r12)
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_clk_get
	movq	%rax, 120(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:
	movq	$0, 120(%r12)
LBB0_31:
	movl	$0, 20(%r12)
	leaq	112(%r12), %rdi
	callq	_mutex_init
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_clk_get
	movq	%rax, 104(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_33
## %bb.32:
	movq	$0, 104(%r12)
LBB0_33:
	movq	_FEC_QUIRK_HAS_BUFDESC_EX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r12), %eax
	movl	%eax, 24(%r12)
	leaq	L_.str.10(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_clk_get
	movq	%rax, 96(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_35
## %bb.34:
	movq	$0, 96(%r12)
	movl	$0, 24(%r12)
LBB0_35:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_fec_enet_clk_enable
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_67
## %bb.36:
	movq	40(%r12), %rdi
	callq	_clk_prepare_enable
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_66
## %bb.37:
	movq	48(%r12), %rdi
	callq	_clk_prepare_enable
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_65
## %bb.38:
	leaq	L_.str.11(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_regulator_get_optional
	movq	%rax, 56(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	56(%r12), %rdi
	testq	%rax, %rax
	je	LBB0_39
## %bb.41:
	callq	_PTR_ERR
	movl	%eax, %r13d
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%r13d, %ecx
	addl	(%rax), %ecx
	je	LBB0_64
## %bb.42:
	movq	$0, 56(%r12)
	jmp	LBB0_43
LBB0_19:
	movl	%eax, %r13d
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_70
LBB0_39:
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_43
## %bb.40:
	movl	%eax, %r13d
	leaq	L_.str.12(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_64
LBB0_43:
	movq	_FEC_MDIO_PM_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pm_runtime_set_autosuspend_delay
	movq	%rbx, %rdi
	callq	_pm_runtime_use_autosuspend
	movq	%rbx, %rdi
	callq	_pm_runtime_get_noresume
	movq	%rbx, %rdi
	callq	_pm_runtime_set_active
	movq	%rbx, %rdi
	callq	_pm_runtime_enable
	movq	%rbx, %rdi
	callq	_fec_reset_phy
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_63
## %bb.44:
	movq	%rbx, %rdi
	callq	_fec_enet_get_irq_cnt
	movl	%eax, %r13d
	cmpl	$0, 24(%r12)
	je	LBB0_46
## %bb.45:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_fec_ptp_init
LBB0_46:
	movl	%r13d, -72(%rbp)                ## 4-byte Spill
	movq	%r15, %rdi
	callq	_fec_enet_init
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_47
LBB0_61:
	movq	%rbx, %rdi
	callq	_fec_ptp_stop
	movq	56(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_63
## %bb.62:
	callq	_regulator_disable
LBB0_63:
	movq	%rbx, %rdi
	callq	_pm_runtime_put_noidle
	movq	%rbx, %rdi
	callq	_pm_runtime_disable
LBB0_64:
	movq	48(%r12), %rdi
	callq	_clk_disable_unprepare
LBB0_65:
	movq	40(%r12), %rdi
	callq	_clk_disable_unprepare
LBB0_66:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_fec_enet_clk_enable
	jmp	LBB0_67
LBB0_47:
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	jle	LBB0_54
## %bb.48:
	movl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
LBB0_49:                                ## =>This Inner Loop Header: Depth=1
	leaq	-56(%rbp), %r13
	movq	%r13, %rdi
	movl	$8, %esi
	leaq	L_.str.13(%rip), %rdx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_snprintf
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_platform_get_irq_byname_optional
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_51
## %bb.50:                              ##   in Loop: Header=BB0_49 Depth=1
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_platform_get_irq
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_61
LBB0_51:                                ##   in Loop: Header=BB0_49 Depth=1
	movq	_fec_enet_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%rbx), %r8d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	xorl	%ecx, %ecx
	movq	%r15, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	jne	LBB0_52
## %bb.53:                              ##   in Loop: Header=BB0_49 Depth=1
	movq	32(%r12), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%r13d, (%rax,%rcx,4)
	incq	%rcx
	cmpq	%rcx, -80(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_49
LBB0_54:
	leaq	88(%r12), %rdi
	callq	_init_completion
	movq	%rbx, %rdi
	callq	_fec_enet_mii_init
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_61
## %bb.55:
	movq	%r15, %rdi
	callq	_netif_carrier_off
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_fec_enet_clk_enable
	movq	%rbx, %rdi
	callq	_pinctrl_pm_select_sleep_state
	movq	%r15, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_56
## %bb.60:
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_fec_enet_mii_remove
	jmp	LBB0_61
LBB0_52:
	movl	%eax, %r13d
	jmp	LBB0_61
LBB0_56:
	movq	_FEC_WOL_HAS_MAGIC_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	12(%r12), %esi
	movq	%r15, %rdi
	callq	_device_init_wakeup
	cmpl	$0, 24(%r12)
	je	LBB0_59
## %bb.57:
	cmpq	$0, 80(%r12)
	je	LBB0_59
## %bb.58:
	movl	72(%r12), %edx
	leaq	L_.str.14(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_info
LBB0_59:
	movq	_COPYBREAK_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%r12)
	addq	$64, %r12
	movq	_fec_enet_timeout_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_INIT_WORK
	movq	%rbx, %rdi
	callq	_pm_runtime_mark_last_busy
	movq	%rbx, %rdi
	callq	_pm_runtime_put_autosuspend
	xorl	%r13d, %r13d
	jmp	LBB0_72
LBB0_74:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_fec_probe.dev_id,4,2 ## @fec_probe.dev_id
	.comm	_FEC_STATS_SIZE,8,3             ## @FEC_STATS_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_fec_dt_ids,4,2                 ## @fec_dt_ids
	.comm	_FEC_QUIRK_HAS_GBIT,4,2         ## @FEC_QUIRK_HAS_GBIT
	.comm	_FEC_PAUSE_FLAG_AUTONEG,4,2     ## @FEC_PAUSE_FLAG_AUTONEG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fsl,imx6q"

L_.str.1:                               ## @.str.1
	.asciz	"fsl,imx6dl"

L_.str.2:                               ## @.str.2
	.asciz	"fsl,err006687-workaround-present"

	.comm	_FEC_QUIRK_ERR006687,4,2        ## @FEC_QUIRK_ERR006687
L_.str.3:                               ## @.str.3
	.asciz	"fsl,magic-packet"

	.comm	_FEC_WOL_HAS_MAGIC_PACKET,4,2   ## @FEC_WOL_HAS_MAGIC_PACKET
L_.str.4:                               ## @.str.4
	.asciz	"phy-handle"

L_.str.5:                               ## @.str.5
	.asciz	"broken fixed-link specification\n"

	.comm	_PHY_INTERFACE_MODE_MII,4,2     ## @PHY_INTERFACE_MODE_MII
L_.str.6:                               ## @.str.6
	.asciz	"ipg"

L_.str.7:                               ## @.str.7
	.asciz	"ahb"

L_.str.8:                               ## @.str.8
	.asciz	"enet_out"

L_.str.9:                               ## @.str.9
	.asciz	"enet_clk_ref"

	.comm	_FEC_QUIRK_HAS_BUFDESC_EX,4,2   ## @FEC_QUIRK_HAS_BUFDESC_EX
L_.str.10:                              ## @.str.10
	.asciz	"ptp"

L_.str.11:                              ## @.str.11
	.asciz	"phy"

L_.str.12:                              ## @.str.12
	.asciz	"Failed to enable phy regulator: %d\n"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_FEC_MDIO_PM_TIMEOUT,4,2        ## @FEC_MDIO_PM_TIMEOUT
L_.str.13:                              ## @.str.13
	.asciz	"int%d"

	.comm	_fec_enet_interrupt,4,2         ## @fec_enet_interrupt
L_.str.14:                              ## @.str.14
	.asciz	"registered PHC device %d\n"

	.comm	_COPYBREAK_DEFAULT,4,2          ## @COPYBREAK_DEFAULT
	.comm	_fec_enet_timeout_work,4,2      ## @fec_enet_timeout_work
	.no_dead_strip	_fec_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fec_probe
_fec_probe:                             ; @fec_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x20, [x0]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_fec_enet_get_queue_num
Lloh3:
	adrp	x8, _FEC_STATS_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FEC_STATS_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x0, x8, #176
	ldp	w2, w1, [sp, #8]
	bl	_alloc_etherdev_mqs
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x1, x21
	bl	_SET_NETDEV_DEV
	mov	x0, x19
	bl	_netdev_priv
	mov	x22, x0
Lloh6:
	adrp	x8, _fec_dt_ids@GOTPAGE
Lloh7:
	ldr	x8, [x8, _fec_dt_ids@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_of_match_device
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x0]
	str	x8, [x21, #16]
	b	LBB0_5
LBB0_3:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_30
LBB0_4:
	ldr	x8, [x21, #16]
LBB0_5:
	ldr	w8, [x8]
	str	w8, [x22]
	str	x19, [x22, #168]
	ldp	w9, w10, [sp, #8]
	stp	w9, w10, [x22, #4]
Lloh12:
	adrp	x9, _FEC_QUIRK_HAS_GBIT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FEC_QUIRK_HAS_GBIT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh15:
	adrp	x8, _FEC_PAUSE_FLAG_AUTONEG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FEC_PAUSE_FLAG_AUTONEG@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x22, #160]
	orr	w8, w9, w8
	str	w8, [x22, #160]
LBB0_7:
	mov	x0, x21
	bl	_pinctrl_pm_select_default_state
	mov	x0, x21
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	x0, [x22, #152]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x0, [x22, #152]
	bl	_PTR_ERR
	mov	x24, x0
	b	LBB0_29
LBB0_9:
	str	x21, [x22, #144]
	adrp	x27, _fec_probe.dev_id@PAGE
	ldr	w8, [x27, _fec_probe.dev_id@PAGEOFF]
	add	w9, w8, #1
	str	w9, [x27, _fec_probe.dev_id@PAGEOFF]
	str	w8, [x22, #72]
	mov	x0, x21
	mov	x1, x19
	bl	_platform_set_drvdata
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_of_machine_is_compatible
	cbnz	x0, LBB0_11
; %bb.10:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_of_machine_is_compatible
	cbz	x0, LBB0_13
LBB0_11:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_of_property_read_bool
	cbnz	w0, LBB0_13
; %bb.12:
Lloh24:
	adrp	x8, _FEC_QUIRK_ERR006687@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FEC_QUIRK_ERR006687@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
LBB0_13:
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, #0
	bl	_of_get_property
	cbz	x0, LBB0_15
; %bb.14:
Lloh29:
	adrp	x8, _FEC_WOL_HAS_MAGIC_PACKET@GOTPAGE
Lloh30:
	ldr	x8, [x8, _FEC_WOL_HAS_MAGIC_PACKET@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [x22, #12]
	orr	w8, w9, w8
	str	w8, [x22, #12]
LBB0_15:
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	w2, #0
	bl	_of_parse_phandle
	mov	x23, x0
	cbz	x0, LBB0_20
LBB0_16:
	str	x23, [x22, #136]
	ldr	x0, [x21]
	bl	_of_get_phy_mode
	tbz	w0, #31, LBB0_18
; %bb.17:
	mov	x0, x21
	bl	_dev_get_platdata
Lloh34:
	adrp	x8, _PHY_INTERFACE_MODE_MII@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_MII@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x0, eq
	ldr	w0, [x8]
LBB0_18:
	str	w0, [x22, #16]
Lloh36:
	adrp	x1, l_.str.6@PAGE
Lloh37:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_devm_clk_get
	str	x0, [x22, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_23
; %bb.19:
	ldr	x0, [x22, #40]
	b	LBB0_24
LBB0_20:
	mov	x0, x20
	bl	_of_phy_is_fixed_link
	cbz	x0, LBB0_32
; %bb.21:
	mov	x0, x20
	bl	_of_phy_register_fixed_link
	tbnz	w0, #31, LBB0_45
; %bb.22:
	mov	x0, x20
	bl	_of_node_get
	mov	x23, x0
	b	LBB0_16
LBB0_23:
Lloh38:
	adrp	x1, l_.str.7@PAGE
Lloh39:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_devm_clk_get
	str	x0, [x22, #48]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x22, #48]
	cbz	x8, LBB0_33
LBB0_24:
	bl	_PTR_ERR
	mov	x24, x0
LBB0_25:
	mov	x0, x20
	bl	_of_phy_is_fixed_link
	cbz	x0, LBB0_27
; %bb.26:
	mov	x0, x20
	bl	_of_phy_deregister_fixed_link
LBB0_27:
	mov	x0, x23
	bl	_of_node_put
LBB0_28:
	ldr	w8, [x27, _fec_probe.dev_id@PAGEOFF]
	sub	w8, w8, #1
	str	w8, [x27, _fec_probe.dev_id@PAGEOFF]
LBB0_29:
	mov	x0, x19
	bl	_free_netdev
LBB0_30:
	ldr	x8, [sp, #24]
Lloh40:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh41:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_72
; %bb.31:
	mov	x0, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_32:
	mov	x23, #0
	b	LBB0_16
LBB0_33:
	bl	_clk_get_rate
	str	w0, [x22, #128]
Lloh43:
	adrp	x1, l_.str.8@PAGE
Lloh44:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	bl	_devm_clk_get
	str	x0, [x22, #120]
	bl	_IS_ERR
	cbz	x0, LBB0_35
; %bb.34:
	str	xzr, [x22, #120]
LBB0_35:
	str	wzr, [x22, #20]
	add	x0, x22, #112
	bl	_mutex_init
Lloh45:
	adrp	x1, l_.str.9@PAGE
Lloh46:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x21
	bl	_devm_clk_get
	str	x0, [x22, #104]
	bl	_IS_ERR
	cbz	x0, LBB0_37
; %bb.36:
	str	xzr, [x22, #104]
LBB0_37:
	ldr	w8, [x22]
Lloh47:
	adrp	x9, _FEC_QUIRK_HAS_BUFDESC_EX@GOTPAGE
Lloh48:
	ldr	x9, [x9, _FEC_QUIRK_HAS_BUFDESC_EX@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [x22, #24]
Lloh50:
	adrp	x1, l_.str.10@PAGE
Lloh51:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x21
	bl	_devm_clk_get
	str	x0, [x22, #96]
	bl	_IS_ERR
	cbz	x0, LBB0_39
; %bb.38:
	str	xzr, [x22, #96]
	str	wzr, [x22, #24]
LBB0_39:
	mov	x0, x19
	mov	w1, #1
	bl	_fec_enet_clk_enable
	mov	x24, x0
	cbnz	w0, LBB0_25
; %bb.40:
	ldr	x0, [x22, #40]
	bl	_clk_prepare_enable
	mov	x24, x0
	cbnz	w0, LBB0_57
; %bb.41:
	ldr	x0, [x22, #48]
	bl	_clk_prepare_enable
	mov	x24, x0
	cbnz	w0, LBB0_56
; %bb.42:
Lloh52:
	adrp	x1, l_.str.11@PAGE
Lloh53:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x21
	bl	_devm_regulator_get_optional
	str	x0, [x22, #56]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x22, #56]
	cbz	x8, LBB0_46
; %bb.43:
	bl	_PTR_ERR
	mov	x24, x0
Lloh54:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh55:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_55
; %bb.44:
	str	xzr, [x22, #56]
	b	LBB0_48
LBB0_45:
	mov	x24, x0
Lloh57:
	adrp	x1, l_.str.5@PAGE
Lloh58:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_28
LBB0_46:
	bl	_regulator_enable
	cbz	w0, LBB0_48
; %bb.47:
	mov	x24, x0
	str	x24, [sp]
Lloh59:
	adrp	x1, l_.str.12@PAGE
Lloh60:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_55
LBB0_48:
Lloh61:
	adrp	x8, _FEC_MDIO_PM_TIMEOUT@GOTPAGE
Lloh62:
	ldr	x8, [x8, _FEC_MDIO_PM_TIMEOUT@GOTPAGEOFF]
Lloh63:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_pm_runtime_set_autosuspend_delay
	mov	x0, x21
	bl	_pm_runtime_use_autosuspend
	mov	x0, x21
	bl	_pm_runtime_get_noresume
	mov	x0, x21
	bl	_pm_runtime_set_active
	mov	x0, x21
	bl	_pm_runtime_enable
	mov	x0, x21
	bl	_fec_reset_phy
	mov	x24, x0
	cbnz	w0, LBB0_54
; %bb.49:
	mov	x0, x21
	bl	_fec_enet_get_irq_cnt
	mov	x26, x0
	ldr	w8, [x22, #24]
	cbz	w8, LBB0_51
; %bb.50:
	mov	x0, x21
	mov	x1, x26
	bl	_fec_ptp_init
LBB0_51:
	mov	x0, x19
	bl	_fec_enet_init
	mov	x24, x0
	cbz	w0, LBB0_58
LBB0_52:
	mov	x0, x21
	bl	_fec_ptp_stop
	ldr	x0, [x22, #56]
	cbz	x0, LBB0_54
; %bb.53:
	bl	_regulator_disable
LBB0_54:
	mov	x0, x21
	bl	_pm_runtime_put_noidle
	mov	x0, x21
	bl	_pm_runtime_disable
LBB0_55:
	ldr	x0, [x22, #48]
	bl	_clk_disable_unprepare
LBB0_56:
	ldr	x0, [x22, #40]
	bl	_clk_disable_unprepare
LBB0_57:
	mov	x0, x19
	mov	w1, #0
	bl	_fec_enet_clk_enable
	b	LBB0_25
LBB0_58:
	cmp	w26, #1
	b.lt	LBB0_64
; %bb.59:
	mov	x25, #0
	mov	w28, w26
Lloh64:
	adrp	x26, l_.str.13@PAGE
Lloh65:
	add	x26, x26, l_.str.13@PAGEOFF
LBB0_60:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #16
	mov	w1, #8
	mov	x2, x26
	mov	x3, x25
	bl	_snprintf
	add	x1, sp, #16
	mov	x0, x21
	bl	_platform_get_irq_byname_optional
	mov	x24, x0
	tbz	w0, #31, LBB0_62
; %bb.61:                               ;   in Loop: Header=BB0_60 Depth=1
	mov	x0, x21
	mov	x1, x25
	bl	_platform_get_irq
	mov	x24, x0
	tbnz	w0, #31, LBB0_52
LBB0_62:                                ;   in Loop: Header=BB0_60 Depth=1
Lloh66:
	adrp	x8, _fec_enet_interrupt@GOTPAGE
Lloh67:
	ldr	x8, [x8, _fec_enet_interrupt@GOTPAGEOFF]
Lloh68:
	ldr	w2, [x8]
	ldr	w4, [x21, #8]
	mov	x0, x21
	mov	x1, x24
	mov	w3, #0
	mov	x5, x19
	bl	_devm_request_irq
	cbnz	w0, LBB0_67
; %bb.63:                               ;   in Loop: Header=BB0_60 Depth=1
	ldr	x8, [x22, #32]
	str	w24, [x8, x25, lsl #2]
	add	x25, x25, #1
	cmp	x28, x25
	b.ne	LBB0_60
LBB0_64:
	add	x0, x22, #88
	bl	_init_completion
	mov	x0, x21
	bl	_fec_enet_mii_init
	mov	x24, x0
	cbnz	w0, LBB0_52
; %bb.65:
	mov	x0, x19
	bl	_netif_carrier_off
	mov	x0, x19
	mov	w1, #0
	bl	_fec_enet_clk_enable
	mov	x0, x21
	bl	_pinctrl_pm_select_sleep_state
	mov	x0, x19
	bl	_register_netdev
	cbz	w0, LBB0_68
; %bb.66:
	mov	x24, x0
	mov	x0, x22
	bl	_fec_enet_mii_remove
	b	LBB0_52
LBB0_67:
	mov	x24, x0
	b	LBB0_52
LBB0_68:
	ldr	w8, [x22, #12]
Lloh69:
	adrp	x9, _FEC_WOL_HAS_MAGIC_PACKET@GOTPAGE
Lloh70:
	ldr	x9, [x9, _FEC_WOL_HAS_MAGIC_PACKET@GOTPAGEOFF]
Lloh71:
	ldr	w9, [x9]
	and	w1, w9, w8
	mov	x0, x19
	bl	_device_init_wakeup
	ldr	w8, [x22, #24]
	cbz	w8, LBB0_71
; %bb.69:
	ldr	x8, [x22, #80]
	cbz	x8, LBB0_71
; %bb.70:
	ldr	w2, [x22, #72]
Lloh72:
	adrp	x1, l_.str.14@PAGE
Lloh73:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
LBB0_71:
Lloh74:
	adrp	x8, _COPYBREAK_DEFAULT@GOTPAGE
Lloh75:
	ldr	x8, [x8, _COPYBREAK_DEFAULT@GOTPAGEOFF]
Lloh76:
	ldr	w8, [x8]
	str	w8, [x22, #68]
	add	x0, x22, #64
Lloh77:
	adrp	x8, _fec_enet_timeout_work@GOTPAGE
Lloh78:
	ldr	x8, [x8, _fec_enet_timeout_work@GOTPAGEOFF]
Lloh79:
	ldr	w1, [x8]
	bl	_INIT_WORK
	mov	x0, x21
	bl	_pm_runtime_mark_last_busy
	mov	x0, x21
	bl	_pm_runtime_put_autosuspend
	mov	w24, #0
	b	LBB0_30
LBB0_72:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_fec_probe.dev_id,4,2 ; @fec_probe.dev_id
	.comm	_FEC_STATS_SIZE,8,3             ; @FEC_STATS_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_fec_dt_ids,4,2                 ; @fec_dt_ids
	.comm	_FEC_QUIRK_HAS_GBIT,4,2         ; @FEC_QUIRK_HAS_GBIT
	.comm	_FEC_PAUSE_FLAG_AUTONEG,4,2     ; @FEC_PAUSE_FLAG_AUTONEG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fsl,imx6q"

l_.str.1:                               ; @.str.1
	.asciz	"fsl,imx6dl"

l_.str.2:                               ; @.str.2
	.asciz	"fsl,err006687-workaround-present"

	.comm	_FEC_QUIRK_ERR006687,4,2        ; @FEC_QUIRK_ERR006687
l_.str.3:                               ; @.str.3
	.asciz	"fsl,magic-packet"

	.comm	_FEC_WOL_HAS_MAGIC_PACKET,4,2   ; @FEC_WOL_HAS_MAGIC_PACKET
l_.str.4:                               ; @.str.4
	.asciz	"phy-handle"

l_.str.5:                               ; @.str.5
	.asciz	"broken fixed-link specification\n"

	.comm	_PHY_INTERFACE_MODE_MII,4,2     ; @PHY_INTERFACE_MODE_MII
l_.str.6:                               ; @.str.6
	.asciz	"ipg"

l_.str.7:                               ; @.str.7
	.asciz	"ahb"

l_.str.8:                               ; @.str.8
	.asciz	"enet_out"

l_.str.9:                               ; @.str.9
	.asciz	"enet_clk_ref"

	.comm	_FEC_QUIRK_HAS_BUFDESC_EX,4,2   ; @FEC_QUIRK_HAS_BUFDESC_EX
l_.str.10:                              ; @.str.10
	.asciz	"ptp"

l_.str.11:                              ; @.str.11
	.asciz	"phy"

l_.str.12:                              ; @.str.12
	.asciz	"Failed to enable phy regulator: %d\n"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_FEC_MDIO_PM_TIMEOUT,4,2        ; @FEC_MDIO_PM_TIMEOUT
l_.str.13:                              ; @.str.13
	.asciz	"int%d"

	.comm	_fec_enet_interrupt,4,2         ; @fec_enet_interrupt
l_.str.14:                              ; @.str.14
	.asciz	"registered PHC device %d\n"

	.comm	_COPYBREAK_DEFAULT,4,2          ; @COPYBREAK_DEFAULT
	.comm	_fec_enet_timeout_work,4,2      ; @fec_enet_timeout_work
	.no_dead_strip	_fec_probe
.subsections_via_symbols
