	.file	"extr_sja1105_main.c_sja1105_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"No DTS bindings for SJA1105 driver\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"reset"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"reset-gpios not defined, ignoring\n"
	.section	.rodata.str1.1
.LC3:
	.string	"Could not init SPI\n"
.LC4:
	.string	"Device ID check failed: %d\n"
.LC5:
	.string	"Probed switch chip: %s\n"
	.text
	.p2align 4
	.type	sja1105_probe, @function
sja1105_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, 4[rdi]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR 4[rdi]
	test	eax, eax
	je	.L16
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	rbp, rdi
	mov	esi, 64
	mov	rdi, r13
	call	devm_kzalloc@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L14
	mov	edx, DWORD PTR GPIOD_OUT_HIGH[rip]
	mov	rdi, r13
	lea	rsi, .LC1[rip]
	call	devm_gpiod_get@PLT
	mov	DWORD PTR 56[rbx], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	je	.L5
	lea	rsi, .LC2[rip]
	mov	rdi, r13
	call	dev_dbg@PLT
.L6:
	mov	QWORD PTR 48[rbx], rbp
	mov	rsi, rbx
	mov	rdi, rbp
	call	spi_set_drvdata@PLT
	mov	DWORD PTR 0[rbp], 8
	mov	rdi, rbp
	call	spi_setup@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L17
	mov	rdi, r13
	call	of_device_get_match_data@PLT
	mov	rdi, rbx
	mov	QWORD PTR 40[rbx], rax
	call	sja1105_check_device_id@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L18
	mov	rax, QWORD PTR 40[rbx]
	lea	rsi, .LC5[rip]
	mov	rdi, r13
	mov	edx, DWORD PTR [rax]
	call	dev_info@PLT
	mov	esi, DWORD PTR SJA1105_NUM_PORTS[rip]
	mov	rdi, r13
	call	dsa_switch_alloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L14
	lea	rax, sja1105_switch_ops[rip]
	mov	QWORD PTR 8[rbp], rbx
	lea	rdi, 32[rbx]
	mov	QWORD PTR 16[rbp], rax
	lea	r12, 24[rbx]
	mov	QWORD PTR [rbx], rbp
	call	skb_queue_head_init@PLT
	mov	esi, DWORD PTR sja1105_rxtstamp_work[rip]
	lea	rdi, 28[rbx]
	call	INIT_WORK@PLT
	mov	rdi, r12
	call	spin_lock_init@PLT
	mov	ecx, DWORD PTR SJA1105_NUM_PORTS[rip]
	test	ecx, ecx
	jle	.L10
	sub	ecx, 1
	mov	rax, QWORD PTR 16[rbx]
	mov	rdx, QWORD PTR 0[rbp]
	add	rcx, 1
	sal	rcx, 4
	add	rcx, rax
	.p2align 4,,10
	.p2align 3
.L11:
	mov	QWORD PTR [rdx], rax
	add	rax, 16
	mov	QWORD PTR -8[rax], rdx
	add	rdx, 8
	mov	QWORD PTR -16[rax], r12
	cmp	rax, rcx
	jne	.L11
.L10:
	lea	rdi, 8[rbx]
	call	mutex_init@PLT
	mov	rdi, rbp
	call	sja1105_tas_setup@PLT
	mov	rdi, QWORD PTR [rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	dsa_register_switch@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L16:
	.cfi_restore_state
	mov	rdi, r13
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR 56[rbx]
	mov	edx, 1
	mov	esi, 1
	call	sja1105_hw_reset@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, r13
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	dev_err@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L18:
	.cfi_restore_state
	mov	edx, eax
	lea	rsi, .LC4[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	sja1105_probe, .-sja1105_probe
	.comm	sja1105_switch_ops,4,4
	.comm	sja1105_rxtstamp_work,4,4
	.comm	SJA1105_NUM_PORTS,4,4
	.comm	GPIOD_OUT_HIGH,4,4
	.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_sja1105_main.c_sja1105_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"No DTS bindings for SJA1105 driver\012\000"
	.align	2
.LC1:
	.ascii	"reset\000"
	.align	2
.LC2:
	.ascii	"reset-gpios not defined, ignoring\012\000"
	.align	2
.LC3:
	.ascii	"Could not init SPI\012\000"
	.align	2
.LC4:
	.ascii	"Device ID check failed: %d\012\000"
	.align	2
.LC5:
	.ascii	"Probed switch chip: %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sja1105_probe, %function
sja1105_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #4]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #0
	add	r6, r0, #4
	beq	.L16
	ldr	r3, .L19
	mov	r4, r0
	mov	r1, #36
	mov	r0, r6
	ldr	r2, [r3]
	bl	devm_kzalloc
	subs	r5, r0, #0
	beq	.L14
	ldr	r3, .L19+4
	ldr	r1, .L19+8
	ldr	r2, [r3]
	mov	r0, r6
	bl	devm_gpiod_get
	str	r0, [r5, #32]
	bl	IS_ERR
	cmp	r0, #0
	beq	.L5
	mov	r0, r6
	ldr	r1, .L19+12
	bl	dev_dbg
.L6:
	mov	r1, r5
	mov	r0, r4
	str	r4, [r5, #28]
	bl	spi_set_drvdata
	mov	r3, #8
	mov	r0, r4
	str	r3, [r4]
	bl	spi_setup
	subs	r4, r0, #0
	mov	r0, r6
	blt	.L17
	bl	of_device_get_match_data
	mov	r3, r0
	mov	r0, r5
	str	r3, [r5, #24]
	bl	sja1105_check_device_id
	subs	r4, r0, #0
	blt	.L18
	ldr	r3, [r5, #24]
	ldr	r7, .L19+16
	mov	r0, r6
	ldr	r2, [r3]
	ldr	r1, .L19+20
	bl	dev_info
	mov	r0, r6
	ldr	r1, [r7]
	bl	dsa_switch_alloc
	subs	r6, r0, #0
	beq	.L14
	mov	r4, r5
	ldr	r3, .L19+24
	str	r5, [r6, #4]
	str	r3, [r6, #8]
	add	r0, r5, #20
	str	r6, [r4], #12
	bl	skb_queue_head_init
	ldr	r3, .L19+28
	add	r0, r5, #16
	ldr	r1, [r3]
	bl	INIT_WORK
	mov	r0, r4
	bl	spin_lock_init
	ldr	ip, [r7]
	cmp	ip, #0
	ble	.L10
	ldr	r3, [r5, #8]
	ldr	r2, [r6]
	add	ip, r3, ip, lsl #3
.L11:
	mov	r1, r2
	str	r3, [r2], #4
	str	r1, [r3, #4]
	str	r4, [r3], #8
	cmp	r3, ip
	bne	.L11
.L10:
	add	r0, r5, #4
	bl	mutex_init
	mov	r0, r6
	bl	sja1105_tas_setup
	ldr	r0, [r5]
	pop	{r4, r5, r6, r7, r8, lr}
	b	dsa_register_switch
.L14:
	ldr	r3, .L19+32
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	mov	r0, r6
	ldr	r1, .L19+36
	bl	dev_err
	ldr	r3, .L19+40
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r2, #1
	ldr	r0, [r5, #32]
	mov	r1, r2
	bl	sja1105_hw_reset
	b	.L6
.L17:
	ldr	r1, .L19+44
	bl	dev_err
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L19+48
	bl	dev_err
	b	.L1
.L20:
	.align	2
.L19:
	.word	GFP_KERNEL
	.word	GPIOD_OUT_HIGH
	.word	.LC1
	.word	.LC2
	.word	SJA1105_NUM_PORTS
	.word	.LC5
	.word	sja1105_switch_ops
	.word	sja1105_rxtstamp_work
	.word	ENOMEM
	.word	.LC0
	.word	EINVAL
	.word	.LC3
	.word	.LC4
	.size	sja1105_probe, .-sja1105_probe
	.comm	sja1105_switch_ops,4,4
	.comm	sja1105_rxtstamp_work,4,4
	.comm	SJA1105_NUM_PORTS,4,4
	.comm	GPIOD_OUT_HIGH,4,4
	.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
