	.file	"extr_dwmac-meson8b.c_meson8b_dwmac_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"missing phy-mode property\n"
.LC1:
	.string	"amlogic,tx-delay-ns"
	.text
	.p2align 4
	.type	meson8b_dwmac_probe, @function
meson8b_dwmac_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r13, 4[rsp]
	mov	rsi, r13
	call	stmmac_get_platform_resources@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L20
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rdi, r14
	mov	rsi, r13
	call	stmmac_probe_config_dt@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L22
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 40
	mov	rdi, r14
	call	devm_kzalloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	mov	rbx, rax
	neg	r12d
	test	rax, rax
	je	.L5
	mov	rdi, r14
	call	of_device_get_match_data@PLT
	mov	QWORD PTR 8[rbx], rax
	test	rax, rax
	je	.L18
	mov	rdi, r14
	mov	esi, 1
	call	devm_platform_ioremap_resource@PLT
	mov	QWORD PTR 32[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L23
	mov	QWORD PTR 24[rbx], r14
	mov	edi, DWORD PTR [r14]
	call	of_get_phy_mode@PLT
	mov	QWORD PTR 16[rbx], rax
	test	eax, eax
	js	.L24
	mov	edi, DWORD PTR [r14]
	mov	rdx, rbx
	lea	rsi, .LC1[rip]
	call	of_property_read_u32@PLT
	test	rax, rax
	je	.L9
	mov	DWORD PTR [rbx], 2
.L9:
	mov	rdi, rbx
	call	meson8b_init_rgmii_tx_clk@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L5
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, rbx
	call	[QWORD PTR [rax]]
	mov	r12d, eax
	test	eax, eax
	jne	.L5
	mov	rdi, rbx
	call	meson8b_init_prg_eth@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L5
	mov	QWORD PTR 0[rbp], rbx
	mov	rdx, r13
	mov	rsi, rbp
	mov	rdi, r14
	call	stmmac_dvr_probe@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rsi, rbp
	mov	rdi, r14
	call	stmmac_remove_config_dt@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	lea	rsi, .LC0[rip]
	mov	rdi, r14
	call	dev_err@PLT
.L18:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, rbp
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, QWORD PTR 32[rbx]
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L5
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	meson8b_dwmac_probe, .-meson8b_dwmac_probe
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_dwmac-meson8b.c_meson8b_dwmac_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"missing phy-mode property\012\000"
	.align	2
.LC1:
	.ascii	"amlogic,tx-delay-ns\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	meson8b_dwmac_probe, %function
meson8b_dwmac_probe:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L26
	sub	sp, sp, #12
	mov	r1, sp
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r5, r0
	bl	stmmac_get_platform_resources
	subs	r4, r0, #0
	beq	.L19
.L1:
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L19:
	mov	r1, sp
	mov	r0, r5
	bl	stmmac_probe_config_dt
	mov	r6, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L21
	ldr	r3, .L26+4
	mov	r1, #20
	mov	r0, r5
	ldr	r2, [r3]
	bl	devm_kzalloc
	subs	r7, r0, #0
	beq	.L22
	mov	r0, r5
	bl	of_device_get_match_data
	cmp	r0, #0
	str	r0, [r7, #4]
	beq	.L23
	mov	r1, #1
	mov	r0, r5
	bl	devm_platform_ioremap_resource
	str	r0, [r7, #16]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L24
	ldr	r0, [r5]
	str	r5, [r7, #12]
	bl	of_get_phy_mode
	cmp	r0, #0
	str	r0, [r7, #8]
	blt	.L25
	mov	r2, r7
	ldr	r1, .L26+8
	ldr	r0, [r5]
	bl	of_property_read_u32
	cmp	r0, #0
	movne	r3, #2
	mov	r0, r7
	strne	r3, [r7]
	bl	meson8b_init_rgmii_tx_clk
	subs	r4, r0, #0
	bne	.L5
	ldr	r3, [r7, #4]
	mov	r0, r7
	ldr	r3, [r3]
	blx	r3
	subs	r4, r0, #0
	bne	.L5
	mov	r0, r7
	bl	meson8b_init_prg_eth
	subs	r4, r0, #0
	bne	.L5
	mov	r2, sp
	mov	r1, r6
	mov	r0, r5
	str	r7, [r6]
	bl	stmmac_dvr_probe
	subs	r4, r0, #0
	beq	.L1
	b	.L5
.L23:
	ldr	r3, .L26+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L5:
	mov	r1, r6
	mov	r0, r5
	bl	stmmac_remove_config_dt
	b	.L1
.L21:
	mov	r0, r6
	bl	PTR_ERR
	mov	r4, r0
	b	.L1
.L22:
	ldr	r3, .L26+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L5
.L24:
	ldr	r0, [r7, #16]
	bl	PTR_ERR
	mov	r4, r0
	b	.L5
.L25:
	mov	r0, r5
	ldr	r1, .L26+20
	bl	dev_err
	ldr	r3, .L26+12
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L5
.L20:
	bl	__stack_chk_fail
.L27:
	.align	2
.L26:
	.word	.LC2
	.word	GFP_KERNEL
	.word	.LC1
	.word	EINVAL
	.word	ENOMEM
	.word	.LC0
	.size	meson8b_dwmac_probe, .-meson8b_dwmac_probe
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
