	.file	"extr_stmmac_main.c_stmmac_mac_device_setup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	stmmac_mac_device_setup, @function
stmmac_mac_device_setup:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	netdev_priv@PLT
	mov	rdi, QWORD PTR 0[rbp]
	cmp	QWORD PTR 24[rax], 0
	mov	rbx, rax
	je	.L2
	call	gmac_setup@PLT
.L3:
	mov	r8d, DWORD PTR ENOMEM[rip]
	neg	r8d
	test	rax, rax
	je	.L1
	mov	QWORD PTR 16[rbx], rax
	mov	rax, QWORD PTR [rax]
	xor	r8d, r8d
	cmp	rax, QWORD PTR PMT_SUPPORTED[rip]
	mov	QWORD PTR [rbx], rax
	jne	.L1
	mov	eax, DWORD PTR WAKE_MAGIC[rip]
	mov	DWORD PTR 8[rbx], eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r8d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	call	mac100_setup@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	stmmac_mac_device_setup, .-stmmac_mac_device_setup
	.comm	WAKE_MAGIC,4,4
	.comm	PMT_SUPPORTED,8,8
	.comm	ENOMEM,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_stmmac_main.c_stmmac_mac_device_setup.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stmmac_mac_device_setup, %function
stmmac_mac_device_setup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	netdev_priv
	ldr	r3, [r0, #12]
	mov	r4, r0
	cmp	r3, #0
	ldr	r0, [r5]
	beq	.L2
	bl	gmac_setup
	cmp	r0, #0
	beq	.L9
.L4:
	ldr	r2, .L10
	ldr	r3, [r0]
	ldr	r2, [r2]
	str	r3, [r4]
	cmp	r3, r2
	ldreq	r3, .L10+4
	str	r0, [r4, #8]
	ldreq	r3, [r3]
	moveq	r0, #0
	streq	r3, [r4, #4]
	movne	r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	bl	mac100_setup
	cmp	r0, #0
	bne	.L4
.L9:
	ldr	r3, .L10+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L11:
	.align	2
.L10:
	.word	PMT_SUPPORTED
	.word	WAKE_MAGIC
	.word	ENOMEM
	.size	stmmac_mac_device_setup, .-stmmac_mac_device_setup
	.comm	WAKE_MAGIC,4,4
	.comm	PMT_SUPPORTED,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
