	.file	"extr_rtl8367b.c_rtl8367b_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"cpu_port"
	.text
	.p2align 4
	.type	rtl8367b_probe, @function
rtl8367b_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	rtl8366_smi_probe@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L12
	movabs	rax, 794568951260
	mov	DWORD PTR 8[rbp], 184
	lea	rdx, 24[rbp]
	lea	rsi, .LC0[rip]
	mov	QWORD PTR 0[rbp], rax
	lea	rax, rtl8367b_smi_ops[rip]
	mov	edi, DWORD PTR [r12]
	mov	QWORD PTR 48[rbp], rax
	mov	rax, QWORD PTR RTL8367B_NUM_PORTS[rip]
	mov	QWORD PTR 16[rbp], rax
	call	of_property_read_u32@PLT
	test	rax, rax
	je	.L13
.L3:
	mov	rax, QWORD PTR RTL8367B_CPU_PORT_NUM[rip]
	mov	QWORD PTR 24[rbp], rax
.L4:
	mov	edi, DWORD PTR rtl8367b_mib_counters[rip]
	mov	eax, DWORD PTR RTL8367B_NUM_VLANS[rip]
	mov	DWORD PTR 36[rbp], edi
	mov	DWORD PTR 40[rbp], eax
	call	ARRAY_SIZE@PLT
	mov	rdi, rbp
	mov	DWORD PTR 32[rbp], eax
	call	rtl8366_smi_init@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L5
	mov	rsi, rbp
	mov	rdi, r12
	call	platform_set_drvdata@PLT
	mov	rdi, rbp
	call	rtl8367b_switch_init@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L14
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rbp]
	cmp	QWORD PTR 24[rbp], rax
	jl	.L4
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, r12
	xor	esi, esi
	call	platform_set_drvdata@PLT
	mov	rdi, rbp
	call	rtl8366_smi_cleanup@PLT
.L5:
	mov	rdi, rbp
	call	kfree@PLT
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.cfi_endproc
.LFE0:
	.size	rtl8367b_probe, .-rtl8367b_probe
	.comm	rtl8367b_smi_ops,4,4
	.comm	rtl8367b_mib_counters,4,4
	.comm	RTL8367B_NUM_VLANS,4,4
	.comm	RTL8367B_NUM_PORTS,8,8
	.comm	RTL8367B_CPU_PORT_NUM,8,8
	.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_rtl8367b.c_rtl8367b_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cpu_port\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl8367b_probe, %function
rtl8367b_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	bl	rtl8366_smi_probe
	mov	r4, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L12
	mov	r3, #185
	mov	r1, #184
	ldr	r0, .L15
	ldr	r2, .L15+4
	ldr	r0, [r0]
	str	r3, [r4, #4]
	ldr	r3, .L15+8
	str	r0, [r4, #12]
	str	r1, [r4, #8]
	str	r2, [r4]
	ldr	r1, .L15+12
	ldr	r0, [r6]
	str	r3, [r4, #32]
	add	r2, r4, #16
	bl	of_property_read_u32
	cmp	r0, #0
	beq	.L13
.L3:
	ldr	r3, .L15+16
	ldr	r3, [r3]
	str	r3, [r4, #16]
.L4:
	ldr	r2, .L15+20
	ldr	r3, .L15+24
	ldr	r0, [r2]
	ldr	r3, [r3]
	str	r0, [r4, #24]
	str	r3, [r4, #28]
	bl	ARRAY_SIZE
	mov	r3, r0
	mov	r0, r4
	str	r3, [r4, #20]
	bl	rtl8366_smi_init
	subs	r5, r0, #0
	bne	.L5
	mov	r1, r4
	mov	r0, r6
	bl	platform_set_drvdata
	mov	r0, r4
	bl	rtl8367b_switch_init
	subs	r5, r0, #0
	bne	.L14
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r2, [r4, #16]
	ldr	r3, [r4, #12]
	cmp	r2, r3
	blt	.L4
	b	.L3
.L14:
	mov	r0, r6
	mov	r1, #0
	bl	platform_set_drvdata
	mov	r0, r4
	bl	rtl8366_smi_cleanup
.L5:
	mov	r0, r4
	bl	kfree
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L12:
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	PTR_ERR
.L16:
	.align	2
.L15:
	.word	RTL8367B_NUM_PORTS
	.word	1500
	.word	rtl8367b_smi_ops
	.word	.LC0
	.word	RTL8367B_CPU_PORT_NUM
	.word	rtl8367b_mib_counters
	.word	RTL8367B_NUM_VLANS
	.size	rtl8367b_probe, .-rtl8367b_probe
	.comm	rtl8367b_smi_ops,4,4
	.comm	rtl8367b_mib_counters,4,4
	.comm	RTL8367B_NUM_VLANS,4,4
	.comm	RTL8367B_NUM_PORTS,4,4
	.comm	RTL8367B_CPU_PORT_NUM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
