	.file	"extr_kvaser_usb_leaf.c_kvaser_usb_leaf_usbcan_conditionally_rx_error.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Invalid channel number (%d)\n"
	.text
	.p2align 4
	.type	kvaser_usb_leaf_usbcan_conditionally_rx_error, @function
kvaser_usb_leaf_usbcan_conditionally_rx_error:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR [rsi]
	cmp	DWORD PTR [rdi], edx
	jbe	.L20
	mov	rax, QWORD PTR 8[rdi]
	xor	r8d, r8d
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	rcx, QWORD PTR [rax]
	cmp	QWORD PTR 8[rsi], rcx
	je	.L3
	mov	edx, DWORD PTR USBCAN_ERROR_STATE_TX_ERROR[rip]
	or	DWORD PTR 32[rsi], edx
	mov	r8d, 1
.L3:
	mov	edx, DWORD PTR M16C_STATE_BUS_ERROR[rip]
	mov	ecx, DWORD PTR 24[rsi]
	mov	rax, QWORD PTR 8[rax]
	and	ecx, edx
	cmp	QWORD PTR 16[rsi], rax
	je	.L4
	mov	eax, DWORD PTR 32[rsi]
	or	eax, DWORD PTR USBCAN_ERROR_STATE_RX_ERROR[rip]
	mov	DWORD PTR 32[rsi], eax
	test	ecx, ecx
	je	.L6
	test	DWORD PTR 28[rsi], edx
	je	.L7
.L6:
	jmp	kvaser_usb_leaf_rx_error@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	test	ecx, ecx
	jne	.L21
.L9:
	test	r8d, r8d
	jne	.L6
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, QWORD PTR 16[rdi]
	lea	rsi, .LC0[rip]
	jmp	dev_err@PLT
	.p2align 4,,10
	.p2align 3
.L21:
	test	DWORD PTR 28[rsi], edx
	jne	.L9
	mov	eax, DWORD PTR 32[rsi]
.L7:
	or	eax, DWORD PTR USBCAN_ERROR_STATE_BUSERROR[rip]
	mov	DWORD PTR 32[rsi], eax
	jmp	kvaser_usb_leaf_rx_error@PLT
	.cfi_endproc
.LFE0:
	.size	kvaser_usb_leaf_usbcan_conditionally_rx_error, .-kvaser_usb_leaf_usbcan_conditionally_rx_error
	.comm	USBCAN_ERROR_STATE_TX_ERROR,4,4
	.comm	USBCAN_ERROR_STATE_RX_ERROR,4,4
	.comm	USBCAN_ERROR_STATE_BUSERROR,4,4
	.comm	M16C_STATE_BUS_ERROR,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_kvaser_usb_leaf.c_kvaser_usb_leaf_usbcan_conditionally_rx_error.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Invalid channel number (%d)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kvaser_usb_leaf_usbcan_conditionally_rx_error, %function
kvaser_usb_leaf_usbcan_conditionally_rx_error:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	ldr	r2, [r1]
	cmp	r3, r2
	bls	.L22
	ldr	r3, [r0, #4]
	ldr	ip, [r1, #4]
	ldr	r3, [r3, r2, lsl #2]
	str	lr, [sp, #-4]!
	ldr	r2, [r3]
	ldr	r3, [r3, #4]
	cmp	ip, r2
	ldrne	ip, .L24
	ldrne	r2, [r1, #20]
	ldrne	ip, [ip]
	movne	lr, #1
	orrne	r2, r2, ip
	strne	r2, [r1, #20]
	ldr	ip, .L24+4
	ldr	r2, [r1, #8]
	moveq	lr, #0
	ldr	ip, [ip]
	cmp	r2, r3
	ldr	r3, [r1, #12]
	and	r3, r3, ip
	beq	.L4
	ldr	lr, .L24+8
	ldr	r2, [r1, #20]
	ldr	lr, [lr]
	cmp	r3, #0
	orr	r3, r2, lr
	str	r3, [r1, #20]
	beq	.L6
	ldr	r2, [r1, #16]
	tst	ip, r2
	beq	.L7
.L6:
	ldr	lr, [sp], #4
	b	kvaser_usb_leaf_rx_error
.L4:
	cmp	r3, #0
	bne	.L23
.L9:
	cmp	lr, #0
	ldreq	pc, [sp], #4
	b	.L6
.L22:
	ldr	r0, [r0, #8]
	ldr	r1, .L24+12
	b	dev_err
.L23:
	ldr	r3, [r1, #16]
	tst	ip, r3
	bne	.L9
	ldr	r3, [r1, #20]
.L7:
	ldr	r2, .L24+16
	ldr	lr, [sp], #4
	ldr	r2, [r2]
	orr	r3, r2, r3
	str	r3, [r1, #20]
	b	kvaser_usb_leaf_rx_error
.L25:
	.align	2
.L24:
	.word	USBCAN_ERROR_STATE_TX_ERROR
	.word	M16C_STATE_BUS_ERROR
	.word	USBCAN_ERROR_STATE_RX_ERROR
	.word	.LC0
	.word	USBCAN_ERROR_STATE_BUSERROR
	.size	kvaser_usb_leaf_usbcan_conditionally_rx_error, .-kvaser_usb_leaf_usbcan_conditionally_rx_error
	.comm	USBCAN_ERROR_STATE_TX_ERROR,4,4
	.comm	USBCAN_ERROR_STATE_RX_ERROR,4,4
	.comm	USBCAN_ERROR_STATE_BUSERROR,4,4
	.comm	M16C_STATE_BUS_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
