	.file	"extr_mcp251x.c_mcp251x_stop.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mcp251x_stop, @function
mcp251x_stop:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	netdev_priv@PLT
	mov	rdi, rbp
	mov	rbx, rax
	mov	r12, QWORD PTR 24[rax]
	call	close_candev@PLT
	mov	DWORD PTR [rbx], 1
	mov	rsi, rbx
	lea	r13, 4[rbx]
	mov	edi, DWORD PTR [r12]
	call	free_irq@PLT
	mov	rdi, QWORD PTR 16[rbx]
	call	destroy_workqueue@PLT
	mov	QWORD PTR 16[rbx], 0
	mov	rdi, r13
	call	mutex_lock@PLT
	mov	esi, DWORD PTR CANINTE[rip]
	mov	rdi, r12
	xor	edx, edx
	call	mcp251x_write_reg@PLT
	mov	esi, DWORD PTR CANINTF[rip]
	xor	edx, edx
	mov	rdi, r12
	call	mcp251x_write_reg@PLT
	xor	edi, edi
	call	TXBCTRL@PLT
	xor	edx, edx
	mov	rdi, r12
	mov	esi, eax
	call	mcp251x_write_reg@PLT
	mov	rdi, rbp
	call	mcp251x_clean@PLT
	mov	rdi, r12
	call	mcp251x_hw_sleep@PLT
	mov	edi, DWORD PTR 12[rbx]
	xor	esi, esi
	call	mcp251x_power_enable@PLT
	mov	eax, DWORD PTR CAN_STATE_STOPPED[rip]
	mov	rdi, r13
	mov	DWORD PTR 8[rbx], eax
	call	mutex_unlock@PLT
	mov	esi, DWORD PTR CAN_LED_EVENT_STOP[rip]
	mov	rdi, rbp
	call	can_led_event@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
	.cfi_endproc
.LFE0:
	.size	mcp251x_stop, .-mcp251x_stop
	.comm	CAN_STATE_STOPPED,4,4
	.comm	CAN_LED_EVENT_STOP,4,4
	.comm	CANINTF,4,4
	.comm	CANINTE,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_mcp251x.c_mcp251x_stop.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mcp251x_stop, %function
mcp251x_stop:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	bl	netdev_priv
	mov	r4, r0
	mov	r0, r6
	ldr	r7, [r4, #20]
	bl	close_candev
	mov	r3, #1
	mov	r5, #0
	mov	r1, r4
	str	r3, [r4]
	ldr	r0, [r7]
	bl	free_irq
	add	r8, r4, #4
	ldr	r0, [r4, #16]
	bl	destroy_workqueue
	mov	r0, r8
	str	r5, [r4, #16]
	bl	mutex_lock
	ldr	r3, .L4
	mov	r2, r5
	ldr	r1, [r3]
	mov	r0, r7
	bl	mcp251x_write_reg
	ldr	r3, .L4+4
	mov	r2, r5
	ldr	r1, [r3]
	mov	r0, r7
	bl	mcp251x_write_reg
	mov	r0, r5
	bl	TXBCTRL
	mov	r2, r5
	mov	r1, r0
	mov	r0, r7
	bl	mcp251x_write_reg
	mov	r0, r6
	bl	mcp251x_clean
	mov	r0, r7
	bl	mcp251x_hw_sleep
	mov	r1, r5
	ldr	r0, [r4, #12]
	bl	mcp251x_power_enable
	ldr	r3, .L4+8
	mov	r0, r8
	ldr	r3, [r3]
	str	r3, [r4, #8]
	bl	mutex_unlock
	ldr	r3, .L4+12
	mov	r0, r6
	ldr	r1, [r3]
	bl	can_led_event
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	.align	2
.L4:
	.word	CANINTE
	.word	CANINTF
	.word	CAN_STATE_STOPPED
	.word	CAN_LED_EVENT_STOP
	.size	mcp251x_stop, .-mcp251x_stop
	.comm	CAN_STATE_STOPPED,4,4
	.comm	CAN_LED_EVENT_STOP,4,4
	.comm	CANINTF,4,4
	.comm	CANINTE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
