	.file	"extr_c_can.c_c_can_chip_config.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	c_can_chip_config, @function
c_can_chip_config:
.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, rbp
	mov	rbx, rax
	call	c_can_software_reset@PLT
	test	eax, eax
	jne	.L1
	mov	edx, DWORD PTR CONTROL_ENABLE_AR[rip]
	mov	esi, DWORD PTR C_CAN_CTRL_REG[rip]
	mov	rdi, rbx
	call	[QWORD PTR 24[rbx]]
	mov	eax, DWORD PTR 32[rbx]
	test	DWORD PTR CAN_CTRLMODE_LISTENONLY[rip], eax
	jne	.L9
	test	DWORD PTR CAN_CTRLMODE_LOOPBACK[rip], eax
	je	.L5
	mov	edx, DWORD PTR CONTROL_TEST[rip]
	mov	esi, DWORD PTR C_CAN_CTRL_REG[rip]
	mov	rdi, rbx
	call	[QWORD PTR 24[rbx]]
	mov	edx, DWORD PTR TEST_LBACK[rip]
	mov	esi, DWORD PTR C_CAN_TEST_REG[rip]
	mov	rdi, rbx
	call	[QWORD PTR 24[rbx]]
.L5:
	mov	rdi, rbp
	call	c_can_configure_msg_objects@PLT
	mov	rdi, rbx
	mov	edx, DWORD PTR LEC_UNUSED[rip]
	mov	esi, DWORD PTR C_CAN_STS_REG[rip]
	call	[QWORD PTR 24[rbx]]
	lea	rdi, 16[rbx]
	xor	esi, esi
	call	atomic_set@PLT
	mov	QWORD PTR 8[rbx], 0
	mov	rdi, rbp
	mov	QWORD PTR [rbx], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	c_can_set_bittiming@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rcx, QWORD PTR 24[rbx]
	mov	edx, DWORD PTR CONTROL_TEST[rip]
	mov	rdi, rbx
	mov	esi, DWORD PTR C_CAN_CTRL_REG[rip]
	test	DWORD PTR CAN_CTRLMODE_LOOPBACK[rip], eax
	je	.L4
	call	rcx
	mov	edx, DWORD PTR TEST_LBACK[rip]
	mov	esi, DWORD PTR C_CAN_TEST_REG[rip]
	mov	rdi, rbx
	or	edx, DWORD PTR TEST_SILENT[rip]
	call	[QWORD PTR 24[rbx]]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	call	rcx
	mov	edx, DWORD PTR TEST_SILENT[rip]
	mov	esi, DWORD PTR C_CAN_TEST_REG[rip]
	mov	rdi, rbx
	call	[QWORD PTR 24[rbx]]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	c_can_chip_config, .-c_can_chip_config
	.comm	TEST_SILENT,4,4
	.comm	TEST_LBACK,4,4
	.comm	LEC_UNUSED,4,4
	.comm	C_CAN_TEST_REG,4,4
	.comm	C_CAN_STS_REG,4,4
	.comm	C_CAN_CTRL_REG,4,4
	.comm	CONTROL_TEST,4,4
	.comm	CONTROL_ENABLE_AR,4,4
	.comm	CAN_CTRLMODE_LOOPBACK,4,4
	.comm	CAN_CTRLMODE_LISTENONLY,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_c_can.c_c_can_chip_config.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	c_can_chip_config, %function
c_can_chip_config:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	netdev_priv
	mov	r4, r0
	mov	r0, r5
	bl	c_can_software_reset
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r3, .L11
	ldr	r6, .L11+4
	ldr	r2, [r3]
	mov	r0, r4
	ldr	r3, [r4, #12]
	ldr	r1, [r6]
	blx	r3
	ldr	r2, .L11+8
	ldr	r3, [r4, #16]
	ldr	r2, [r2]
	tst	r3, r2
	ldr	r2, .L11+12
	bne	.L10
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L5
	ldr	r3, .L11+16
	mov	r0, r4
	ldr	r2, [r3]
	ldr	r1, [r6]
	ldr	r3, [r4, #12]
	blx	r3
	ldr	r2, .L11+20
.L8:
	ldr	r3, .L11+24
	mov	r0, r4
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, [r4, #12]
	blx	r3
.L5:
	mov	r0, r5
	bl	c_can_configure_msg_objects
	ldr	r3, .L11+28
	ldr	r2, .L11+32
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r3, [r4, #12]
	ldr	r2, [r2]
	blx	r3
	add	r0, r4, #8
	mov	r1, #0
	bl	atomic_set
	mov	r3, #0
	mov	r0, r5
	str	r3, [r4, #4]
	str	r3, [r4]
	pop	{r4, r5, r6, lr}
	b	c_can_set_bittiming
.L10:
	ldr	r0, [r2]
	ldr	r2, .L11+16
	tst	r3, r0
	ldr	r1, [r6]
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r3, [r4, #12]
	beq	.L4
	blx	r3
	ldr	r2, .L11+20
	ldr	r3, .L11+36
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L11+24
	orr	r2, r1, r2
	mov	r0, r4
	ldr	r1, [r3]
	ldr	r3, [r4, #12]
	blx	r3
	b	.L5
.L4:
	blx	r3
	ldr	r2, .L11+36
	b	.L8
.L12:
	.align	2
.L11:
	.word	CONTROL_ENABLE_AR
	.word	C_CAN_CTRL_REG
	.word	CAN_CTRLMODE_LISTENONLY
	.word	CAN_CTRLMODE_LOOPBACK
	.word	CONTROL_TEST
	.word	TEST_LBACK
	.word	C_CAN_TEST_REG
	.word	C_CAN_STS_REG
	.word	LEC_UNUSED
	.word	TEST_SILENT
	.size	c_can_chip_config, .-c_can_chip_config
	.comm	TEST_SILENT,4,4
	.comm	TEST_LBACK,4,4
	.comm	LEC_UNUSED,4,4
	.comm	C_CAN_TEST_REG,4,4
	.comm	C_CAN_STS_REG,4,4
	.comm	C_CAN_CTRL_REG,4,4
	.comm	CONTROL_TEST,4,4
	.comm	CONTROL_ENABLE_AR,4,4
	.comm	CAN_CTRLMODE_LOOPBACK,4,4
	.comm	CAN_CTRLMODE_LISTENONLY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
