	.file	"extr_sja1000.c_sja1000_set_bittiming.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"setting BTR0=0x%02x BTR1=0x%02x\n"
	.text
	.p2align 4
	.type	sja1000_set_bittiming, @function
sja1000_set_bittiming:
.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
	lea	rsi, .LC0[rip]
	mov	rbx, rax
	mov	eax, DWORD PTR 16[rax]
	mov	r12d, DWORD PTR 24[rbx]
	add	r12d, DWORD PTR 20[rbx]
	lea	r13d, -1[rax]
	mov	eax, DWORD PTR 12[rbx]
	sub	r12d, 1
	and	r12d, 15
	sal	r13d, 6
	lea	edx, -1[rax]
	mov	eax, DWORD PTR 28[rbx]
	movzx	r13d, r13b
	and	edx, 63
	sub	eax, 1
	or	r13d, edx
	mov	edx, DWORD PTR 8[rbx]
	sal	eax, 4
	and	eax, 112
	or	r12d, eax
	mov	eax, r12d
	or	al, -128
	test	DWORD PTR CAN_CTRLMODE_3_SAMPLES[rip], edx
	mov	edx, r13d
	cmovne	r12d, eax
	mov	ecx, r12d
	call	netdev_info@PLT
	mov	edx, r13d
	mov	rdi, rbx
	mov	esi, DWORD PTR SJA1000_BTR0[rip]
	call	[QWORD PTR [rbx]]
	mov	edx, r12d
	mov	rdi, rbx
	mov	esi, DWORD PTR SJA1000_BTR1[rip]
	call	[QWORD PTR [rbx]]
	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	sja1000_set_bittiming, .-sja1000_set_bittiming
	.comm	SJA1000_BTR1,4,4
	.comm	SJA1000_BTR0,4,4
	.comm	CAN_CTRLMODE_3_SAMPLES,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_sja1000.c_sja1000_set_bittiming.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"setting BTR0=0x%02x BTR1=0x%02x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sja1000_set_bittiming, %function
sja1000_set_bittiming:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	bl	netdev_priv
	mov	r4, r0
	ldr	r3, [r0, #20]
	ldr	r5, [r0, #16]
	ldr	r6, [r0, #12]
	add	r5, r5, r3
	ldr	r3, [r0, #24]
	ldr	r1, .L8
	ldr	r2, [r0, #8]
	sub	r3, r3, #1
	ldr	r1, [r1]
	ldr	r0, [r0, #4]
	sub	r6, r6, #1
	sub	r5, r5, #1
	lsl	r3, r3, #4
	and	r3, r3, #112
	lsl	r6, r6, #6
	sub	r2, r2, #1
	and	r5, r5, #15
	tst	r0, r1
	orr	r5, r5, r3
	and	r2, r2, #63
	and	r6, r6, #255
	orrne	r5, r5, #128
	orr	r6, r6, r2
	mov	r3, r5
	mov	r2, r6
	mov	r0, r7
	ldr	r1, .L8+4
	bl	netdev_info
	ldr	r3, .L8+8
	mov	r2, r6
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r3, [r4]
	blx	r3
	ldr	r3, .L8+12
	mov	r2, r5
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r3, [r4]
	blx	r3
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	2
.L8:
	.word	CAN_CTRLMODE_3_SAMPLES
	.word	.LC0
	.word	SJA1000_BTR0
	.word	SJA1000_BTR1
	.size	sja1000_set_bittiming, .-sja1000_set_bittiming
	.comm	SJA1000_BTR1,4,4
	.comm	SJA1000_BTR0,4,4
	.comm	CAN_CTRLMODE_3_SAMPLES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
