	.file	"extr_w5100-spi.c_w5100_spi_probe.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	w5100_spi_probe, @function
w5100_spi_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdi, QWORD PTR 8[rdi]
	call	of_get_mac_address@PLT
	cmp	QWORD PTR 8[rbx], 0
	mov	r12, rax
	je	.L2
	mov	edi, DWORD PTR w5100_of_match[rip]
	lea	rsi, 8[rbx]
	call	of_match_device@PLT
	mov	r9d, DWORD PTR ENODEV[rip]
	neg	r9d
	test	rax, rax
	je	.L1
.L10:
	mov	r9d, DWORD PTR EINVAL[rip]
	mov	eax, DWORD PTR [rax]
	neg	r9d
	cmp	eax, 129
	je	.L7
	cmp	eax, 130
	je	.L8
	mov	edx, 4
	lea	rsi, w5500_ops[rip]
	cmp	eax, 128
	je	.L6
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r9d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	xor	edx, edx
	lea	rsi, w5100_spi_ops[rip]
.L6:
	mov	r8d, DWORD PTR [rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	rdi, 8[rbx]
	mov	rcx, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	w5100_probe@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbx
	call	spi_get_device_id@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edx, 4
	lea	rsi, w5200_ops[rip]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	w5100_spi_probe, .-w5100_spi_probe
	.comm	w5500_ops,4,4
	.comm	w5200_ops,4,4
	.comm	w5100_spi_ops,4,4
	.comm	w5100_of_match,4,4
	.comm	ENODEV,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_w5100-spi.c_w5100_spi_probe.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	w5100_spi_probe, %function
w5100_spi_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r0
	sub	sp, sp, #12
	ldr	r0, [r0, #4]
	bl	of_get_mac_address
	ldr	r3, [r4, #4]
	mov	r5, r0
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L11
	add	r1, r4, #4
	ldr	r0, [r3]
	bl	of_match_device
	cmp	r0, #0
	beq	.L9
.L7:
	ldr	r2, [r0]
	ldr	r3, .L11+4
	sub	r2, r2, #128
	ldr	r3, [r3]
	cmp	r2, #2
	rsb	r0, r3, #0
	bls	.L10
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L2:
	mov	r0, r4
	bl	spi_get_device_id
	b	.L7
.L10:
	ldr	ip, .L11+8
	ldr	lr, [r4], #4
	add	r1, ip, r2, lsl #2
	str	r0, [sp, #4]
	mov	r3, r5
	mov	r0, r4
	ldr	r1, [r1, #12]
	ldr	r2, [ip, r2, lsl #2]
	str	lr, [sp]
	bl	w5100_probe
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L9:
	ldr	r3, .L11+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L12:
	.align	2
.L11:
	.word	w5100_of_match
	.word	EINVAL
	.word	.LANCHOR0
	.word	ENODEV
	.size	w5100_spi_probe, .-w5100_spi_probe
	.comm	w5500_ops,4,4
	.comm	w5200_ops,4,4
	.comm	w5100_spi_ops,4,4
	.comm	w5100_of_match,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	CSWTCH.6, %object
	.size	CSWTCH.6, 12
CSWTCH.6:
	.word	4
	.word	4
	.word	0
	.type	CSWTCH.5, %object
	.size	CSWTCH.5, 12
CSWTCH.5:
	.word	w5500_ops
	.word	w5200_ops
	.word	w5100_spi_ops
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
