	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ican3_handle_cevtind
_ican3_handle_cevtind:                  ## @ican3_handle_cevtind
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rdi), %r12
	movq	(%rsi), %rax
	movq	8(%rax), %rax
	movq	_CEVTIND_CHIP_SJA1000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	(%rdi), %r13d
	movl	8(%rsi), %edi
	callq	_le16_to_cpu
	cmpl	$5, %eax
	jg	LBB0_4
## %bb.3:
	movq	24(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_netdev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_13:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_48:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%rbx), %rax
	movq	(%rax), %r14
	movq	16(%rax), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	24(%rax), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	32(%rax), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	40(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_CEVTIND_BEI@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_11
## %bb.5:
	movq	24(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_netdev_dbg
	movq	_ECC_DIR@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, (%rax)
	je	LBB0_6
## %bb.7:
	movq	%r12, %rax
	jmp	LBB0_8
LBB0_6:
	leaq	32(%r15), %rdi
	callq	_skb_dequeue
	movl	%eax, %edi
	callq	_kfree_skb
	leaq	8(%r12), %rax
LBB0_8:
	incl	(%rax)
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_ican3_set_buserror
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	movq	24(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_netdev_err
	jmp	LBB0_48
LBB0_10:
	movq	_CAN_CTRLMODE_BERR_REPORTING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r15)
	je	LBB0_47
LBB0_11:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_alloc_can_err_skb
	testq	%rax, %rax
	je	LBB0_12
## %bb.14:
	movq	%rax, %rbx
	movq	_CEVTIND_DOI@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_16
## %bb.15:
	movq	_CEVTIND_LOST@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_17
LBB0_16:
	movq	24(%r15), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_netdev_dbg
	movq	_CAN_ERR_CRTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx
	orl	%eax, (%rcx)
	movq	_CAN_ERR_CRTL_RX_OVERFLOW@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rcx), %rcx
	movq	%rax, 8(%rcx)
	incl	4(%r12)
	incl	(%r12)
LBB0_17:
	movq	_CEVTIND_EI@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_27
## %bb.18:
	movq	24(%r15), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_netdev_dbg
	movq	_SR_BS@GOTPCREL(%rip), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, (%rax)
	je	LBB0_20
## %bb.19:
	movq	_CAN_STATE_BUS_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_CAN_ERR_BUSOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx
	orl	%eax, (%rcx)
	incl	20(%r15)
	movq	%r12, %rdi
	callq	_can_bus_off
	jmp	LBB0_27
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_20:
	movq	_SR_ES@GOTPCREL(%rip), %rax
	testq	%rcx, (%rax)
	je	LBB0_25
## %bb.21:
	cmpq	$127, -72(%rbp)                 ## 8-byte Folded Reload
	jg	LBB0_23
## %bb.22:
	cmpq	$128, -64(%rbp)                 ## 8-byte Folded Reload
	jge	LBB0_23
## %bb.24:
	movq	_CAN_STATE_ERROR_WARNING@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_25:
	movq	_CAN_STATE_ERROR_ACTIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_23:
	movq	_CAN_STATE_ERROR_PASSIVE@GOTPCREL(%rip), %rax
LBB0_26:
	movl	(%rax), %r13d
LBB0_27:
	movq	_CEVTIND_BEI@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_39
## %bb.28:
	incl	16(%r15)
	movq	_CAN_ERR_PROT@GOTPCREL(%rip), %rax
	movq	_CAN_ERR_BUSERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	-56(%rbp), %rax
	orl	%ecx, (%rax)
	movq	_ECC_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	andq	-48(%rbp), %rcx                 ## 8-byte Folded Reload
	cmpq	$128, %rcx
	je	LBB0_34
## %bb.29:
	cmpq	$129, %rcx
	je	LBB0_33
## %bb.30:
	cmpq	$130, %rcx
	jne	LBB0_35
## %bb.31:
	movq	_CAN_ERR_PROT_BIT@GOTPCREL(%rip), %rcx
	jmp	LBB0_32
LBB0_34:
	movq	_CAN_ERR_PROT_STUFF@GOTPCREL(%rip), %rcx
	jmp	LBB0_32
LBB0_33:
	movq	_CAN_ERR_PROT_FORM@GOTPCREL(%rip), %rcx
LBB0_32:
	movq	(%rcx), %rcx
	movq	8(%rax), %rax
	orq	%rcx, 16(%rax)
	jmp	LBB0_36
LBB0_35:
	movq	_ECC_SEG@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	andq	-48(%rbp), %rcx                 ## 8-byte Folded Reload
	movq	8(%rax), %rax
	movq	%rcx, 24(%rax)
LBB0_36:
	movq	_ECC_DIR@GOTPCREL(%rip), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, (%rcx)
	jne	LBB0_38
## %bb.37:
	movq	_CAN_ERR_PROT_TX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	%rcx, 16(%rax)
LBB0_38:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 48(%rax)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 56(%rax)
LBB0_39:
	cmpl	(%r15), %r13d
	je	LBB0_46
## %bb.40:
	movq	_CAN_STATE_ERROR_WARNING@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r13d
	je	LBB0_42
## %bb.41:
	movq	_CAN_STATE_ERROR_PASSIVE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_46
LBB0_42:
	movq	_CAN_ERR_CRTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rax
	orl	%edx, (%rax)
	cmpl	(%rcx), %r13d
	jne	LBB0_44
## %bb.43:
	incl	12(%r15)
	movq	_CAN_ERR_CRTL_RX_WARNING@GOTPCREL(%rip), %rcx
	movq	_CAN_ERR_CRTL_TX_WARNING@GOTPCREL(%rip), %rdx
	jmp	LBB0_45
LBB0_44:
	incl	8(%r15)
	movq	_CAN_ERR_CRTL_RX_PASSIVE@GOTPCREL(%rip), %rcx
	movq	_CAN_ERR_CRTL_TX_PASSIVE@GOTPCREL(%rip), %rdx
LBB0_45:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	cmpq	%rsi, %rdi
	cmovleq	%rcx, %rdx
	movq	(%rdx), %rcx
	movq	8(%rax), %rax
	movq	%rcx, 8(%rax)
	movq	%rdi, 48(%rax)
	movq	%rsi, 56(%rax)
LBB0_46:
	movl	%r13d, (%r15)
	movq	%rbx, %rdi
	callq	_netif_rx
LBB0_47:
	xorl	%ebx, %ebx
	jmp	LBB0_48
	.cfi_endproc
                                        ## -- End function
	.comm	_CEVTIND_CHIP_SJA1000,8,3       ## @CEVTIND_CHIP_SJA1000
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to handle errors on non-SJA1000\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"error message too short\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CEVTIND_BEI,8,3                ## @CEVTIND_BEI
L_.str.2:                               ## @.str.2
	.asciz	"bus error interrupt\n"

	.comm	_ECC_DIR,8,3                    ## @ECC_DIR
L_.str.3:                               ## @.str.3
	.asciz	"unable to re-enable bus-error\n"

	.comm	_CAN_CTRLMODE_BERR_REPORTING,4,2 ## @CAN_CTRLMODE_BERR_REPORTING
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CEVTIND_DOI,8,3                ## @CEVTIND_DOI
	.comm	_CEVTIND_LOST,8,3               ## @CEVTIND_LOST
L_.str.4:                               ## @.str.4
	.asciz	"data overrun interrupt\n"

	.comm	_CAN_ERR_CRTL,4,2               ## @CAN_ERR_CRTL
	.comm	_CAN_ERR_CRTL_RX_OVERFLOW,8,3   ## @CAN_ERR_CRTL_RX_OVERFLOW
	.comm	_CEVTIND_EI,8,3                 ## @CEVTIND_EI
L_.str.5:                               ## @.str.5
	.asciz	"error warning + passive interrupt\n"

	.comm	_SR_BS,8,3                      ## @SR_BS
	.comm	_CAN_STATE_BUS_OFF,4,2          ## @CAN_STATE_BUS_OFF
	.comm	_CAN_ERR_BUSOFF,4,2             ## @CAN_ERR_BUSOFF
	.comm	_SR_ES,8,3                      ## @SR_ES
	.comm	_CAN_STATE_ERROR_PASSIVE,4,2    ## @CAN_STATE_ERROR_PASSIVE
	.comm	_CAN_STATE_ERROR_WARNING,4,2    ## @CAN_STATE_ERROR_WARNING
	.comm	_CAN_STATE_ERROR_ACTIVE,4,2     ## @CAN_STATE_ERROR_ACTIVE
	.comm	_CAN_ERR_PROT,4,2               ## @CAN_ERR_PROT
	.comm	_CAN_ERR_BUSERROR,4,2           ## @CAN_ERR_BUSERROR
	.comm	_ECC_MASK,8,3                   ## @ECC_MASK
	.comm	_CAN_ERR_PROT_BIT,8,3           ## @CAN_ERR_PROT_BIT
	.comm	_CAN_ERR_PROT_FORM,8,3          ## @CAN_ERR_PROT_FORM
	.comm	_CAN_ERR_PROT_STUFF,8,3         ## @CAN_ERR_PROT_STUFF
	.comm	_ECC_SEG,8,3                    ## @ECC_SEG
	.comm	_CAN_ERR_PROT_TX,8,3            ## @CAN_ERR_PROT_TX
	.comm	_CAN_ERR_CRTL_TX_WARNING,8,3    ## @CAN_ERR_CRTL_TX_WARNING
	.comm	_CAN_ERR_CRTL_RX_WARNING,8,3    ## @CAN_ERR_CRTL_RX_WARNING
	.comm	_CAN_ERR_CRTL_TX_PASSIVE,8,3    ## @CAN_ERR_CRTL_TX_PASSIVE
	.comm	_CAN_ERR_CRTL_RX_PASSIVE,8,3    ## @CAN_ERR_CRTL_RX_PASSIVE
	.no_dead_strip	_ican3_handle_cevtind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ican3_handle_cevtind
_ican3_handle_cevtind:                  ; @ican3_handle_cevtind
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x21, [x0, #24]
	ldr	x8, [x1]
	ldr	x8, [x8, #8]
Lloh0:
	adrp	x9, _CEVTIND_CHIP_SJA1000@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CEVTIND_CHIP_SJA1000@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w24, [x0]
	ldr	w0, [x1, #8]
	bl	_le16_to_cpu
	cmp	w0, #5
	b.gt	LBB0_6
; %bb.2:
	ldr	x0, [x19, #24]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_netdev_err
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	ldr	x8, [x20]
	ldr	x26, [x8]
	ldp	x25, x28, [x8, #16]
	ldp	x22, x23, [x8, #32]
Lloh11:
	adrp	x27, _CEVTIND_BEI@GOTPAGE
Lloh12:
	ldr	x27, [x27, _CEVTIND_BEI@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x26, x8
	b.ne	LBB0_13
; %bb.7:
	ldr	x0, [x19, #24]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_netdev_dbg
Lloh15:
	adrp	x8, _ECC_DIR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ECC_DIR@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	tst	x8, x25
	b.eq	LBB0_9
; %bb.8:
	mov	x8, x21
	b	LBB0_10
LBB0_9:
	add	x0, x19, #32
	bl	_skb_dequeue
	bl	_kfree_skb
	add	x8, x21, #8
LBB0_10:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_ican3_set_buserror
	cbz	w0, LBB0_12
; %bb.11:
	mov	x20, x0
	ldr	x0, [x19, #24]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_netdev_err
	b	LBB0_5
LBB0_12:
	ldr	w8, [x19, #4]
Lloh20:
	adrp	x9, _CAN_CTRLMODE_BERR_REPORTING@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CAN_CTRLMODE_BERR_REPORTING@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_47
LBB0_13:
	add	x1, sp, #8
	mov	x0, x21
	bl	_alloc_can_err_skb
	cbz	x0, LBB0_19
; %bb.14:
	mov	x20, x0
Lloh23:
	adrp	x8, _CEVTIND_DOI@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CEVTIND_DOI@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
Lloh26:
	adrp	x9, _CEVTIND_LOST@GOTPAGE
Lloh27:
	ldr	x9, [x9, _CEVTIND_LOST@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x26, x8
	ccmp	x26, x9, #4, ne
	b.ne	LBB0_16
; %bb.15:
	ldr	x0, [x19, #24]
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_netdev_dbg
Lloh31:
	adrp	x8, _CAN_ERR_CRTL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CAN_ERR_CRTL@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
Lloh34:
	adrp	x8, _CAN_ERR_CRTL_RX_OVERFLOW@GOTPAGE
Lloh35:
	ldr	x8, [x8, _CAN_ERR_CRTL_RX_OVERFLOW@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	ldr	x9, [x9, #8]
	str	x8, [x9, #8]
	ldr	d0, [x21]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	str	d0, [x21]
LBB0_16:
Lloh37:
	adrp	x8, _CEVTIND_EI@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CEVTIND_EI@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	cmp	x26, x8
	b.ne	LBB0_27
; %bb.17:
	ldr	x0, [x19, #24]
Lloh40:
	adrp	x1, l_.str.5@PAGE
Lloh41:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_netdev_dbg
Lloh42:
	adrp	x8, _SR_BS@GOTPAGE
Lloh43:
	ldr	x8, [x8, _SR_BS@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
	tst	x8, x28
	b.eq	LBB0_20
; %bb.18:
Lloh45:
	adrp	x8, _CAN_STATE_BUS_OFF@GOTPAGE
Lloh46:
	ldr	x8, [x8, _CAN_STATE_BUS_OFF@GOTPAGEOFF]
Lloh47:
	ldr	w24, [x8]
Lloh48:
	adrp	x8, _CAN_ERR_BUSOFF@GOTPAGE
Lloh49:
	ldr	x8, [x8, _CAN_ERR_BUSOFF@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
	mov	x0, x21
	bl	_can_bus_off
	b	LBB0_27
LBB0_19:
Lloh51:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh52:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
LBB0_20:
Lloh53:
	adrp	x8, _SR_ES@GOTPAGE
Lloh54:
	ldr	x8, [x8, _SR_ES@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
	tst	x8, x28
	b.eq	LBB0_24
; %bb.21:
	cmp	x22, #127
	b.gt	LBB0_25
; %bb.22:
	cmp	x23, #128
	b.ge	LBB0_25
; %bb.23:
Lloh56:
	adrp	x8, _CAN_STATE_ERROR_WARNING@GOTPAGE
Lloh57:
	ldr	x8, [x8, _CAN_STATE_ERROR_WARNING@GOTPAGEOFF]
	b	LBB0_26
LBB0_24:
Lloh58:
	adrp	x8, _CAN_STATE_ERROR_ACTIVE@GOTPAGE
Lloh59:
	ldr	x8, [x8, _CAN_STATE_ERROR_ACTIVE@GOTPAGEOFF]
	b	LBB0_26
LBB0_25:
Lloh60:
	adrp	x8, _CAN_STATE_ERROR_PASSIVE@GOTPAGE
Lloh61:
	ldr	x8, [x8, _CAN_STATE_ERROR_PASSIVE@GOTPAGEOFF]
LBB0_26:
	ldr	w24, [x8]
LBB0_27:
	ldr	x8, [x27]
	cmp	x26, x8
	b.ne	LBB0_39
; %bb.28:
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
Lloh62:
	adrp	x8, _CAN_ERR_PROT@GOTPAGE
Lloh63:
	ldr	x8, [x8, _CAN_ERR_PROT@GOTPAGEOFF]
Lloh64:
	adrp	x9, _CAN_ERR_BUSERROR@GOTPAGE
Lloh65:
	ldr	x9, [x9, _CAN_ERR_BUSERROR@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
Lloh67:
	ldr	w9, [x9]
	orr	w9, w9, w8
	ldr	x8, [sp, #8]
	ldr	w10, [x8]
	orr	w9, w9, w10
	str	w9, [x8]
Lloh68:
	adrp	x9, _ECC_MASK@GOTPAGE
Lloh69:
	ldr	x9, [x9, _ECC_MASK@GOTPAGEOFF]
Lloh70:
	ldr	x9, [x9]
	and	x9, x9, x25
	cmp	x9, #128
	b.eq	LBB0_32
; %bb.29:
	cmp	x9, #129
	b.eq	LBB0_33
; %bb.30:
	cmp	x9, #130
	b.ne	LBB0_35
; %bb.31:
Lloh71:
	adrp	x9, _CAN_ERR_PROT_BIT@GOTPAGE
Lloh72:
	ldr	x9, [x9, _CAN_ERR_PROT_BIT@GOTPAGEOFF]
	b	LBB0_34
LBB0_32:
Lloh73:
	adrp	x9, _CAN_ERR_PROT_STUFF@GOTPAGE
Lloh74:
	ldr	x9, [x9, _CAN_ERR_PROT_STUFF@GOTPAGEOFF]
	b	LBB0_34
LBB0_33:
Lloh75:
	adrp	x9, _CAN_ERR_PROT_FORM@GOTPAGE
Lloh76:
	ldr	x9, [x9, _CAN_ERR_PROT_FORM@GOTPAGEOFF]
LBB0_34:
	ldr	x9, [x9]
	ldr	x8, [x8, #8]
	ldr	x10, [x8, #16]
	orr	x9, x10, x9
	str	x9, [x8, #16]
	b	LBB0_36
LBB0_35:
Lloh77:
	adrp	x9, _ECC_SEG@GOTPAGE
Lloh78:
	ldr	x9, [x9, _ECC_SEG@GOTPAGEOFF]
Lloh79:
	ldr	x9, [x9]
	and	x9, x9, x25
	ldr	x8, [x8, #8]
	str	x9, [x8, #24]
LBB0_36:
Lloh80:
	adrp	x9, _ECC_DIR@GOTPAGE
Lloh81:
	ldr	x9, [x9, _ECC_DIR@GOTPAGEOFF]
Lloh82:
	ldr	x9, [x9]
	tst	x9, x25
	b.ne	LBB0_38
; %bb.37:
Lloh83:
	adrp	x9, _CAN_ERR_PROT_TX@GOTPAGE
Lloh84:
	ldr	x9, [x9, _CAN_ERR_PROT_TX@GOTPAGEOFF]
Lloh85:
	ldr	x9, [x9]
	ldr	x10, [x8, #16]
	orr	x9, x10, x9
	str	x9, [x8, #16]
LBB0_38:
	stp	x23, x22, [x8, #48]
LBB0_39:
	ldr	w8, [x19]
	cmp	w24, w8
	b.eq	LBB0_46
; %bb.40:
Lloh86:
	adrp	x9, _CAN_STATE_ERROR_WARNING@GOTPAGE
Lloh87:
	ldr	x9, [x9, _CAN_STATE_ERROR_WARNING@GOTPAGEOFF]
	ldr	w8, [x9]
	cmp	w24, w8
	b.eq	LBB0_42
; %bb.41:
Lloh88:
	adrp	x8, _CAN_STATE_ERROR_PASSIVE@GOTPAGE
Lloh89:
	ldr	x8, [x8, _CAN_STATE_ERROR_PASSIVE@GOTPAGEOFF]
Lloh90:
	ldr	w8, [x8]
	cmp	w24, w8
	b.ne	LBB0_46
LBB0_42:
Lloh91:
	adrp	x8, _CAN_ERR_CRTL@GOTPAGE
Lloh92:
	ldr	x8, [x8, _CAN_ERR_CRTL@GOTPAGEOFF]
Lloh93:
	ldr	w10, [x8]
	ldr	x8, [sp, #8]
	ldr	w11, [x8]
	orr	w10, w11, w10
	str	w10, [x8]
	ldr	w9, [x9]
	cmp	w24, w9
	b.ne	LBB0_44
; %bb.43:
	ldr	w9, [x19, #12]
	add	w9, w9, #1
	str	w9, [x19, #12]
Lloh94:
	adrp	x9, _CAN_ERR_CRTL_RX_WARNING@GOTPAGE
Lloh95:
	ldr	x9, [x9, _CAN_ERR_CRTL_RX_WARNING@GOTPAGEOFF]
Lloh96:
	adrp	x10, _CAN_ERR_CRTL_TX_WARNING@GOTPAGE
Lloh97:
	ldr	x10, [x10, _CAN_ERR_CRTL_TX_WARNING@GOTPAGEOFF]
	b	LBB0_45
LBB0_44:
	ldr	w9, [x19, #8]
	add	w9, w9, #1
	str	w9, [x19, #8]
Lloh98:
	adrp	x9, _CAN_ERR_CRTL_RX_PASSIVE@GOTPAGE
Lloh99:
	ldr	x9, [x9, _CAN_ERR_CRTL_RX_PASSIVE@GOTPAGEOFF]
Lloh100:
	adrp	x10, _CAN_ERR_CRTL_TX_PASSIVE@GOTPAGE
Lloh101:
	ldr	x10, [x10, _CAN_ERR_CRTL_TX_PASSIVE@GOTPAGEOFF]
LBB0_45:
	cmp	x23, x22
	csel	x9, x10, x9, gt
	ldr	x9, [x9]
	ldr	x8, [x8, #8]
	str	x9, [x8, #8]
	stp	x23, x22, [x8, #48]
LBB0_46:
	str	w24, [x19]
	mov	x0, x20
	bl	_netif_rx
LBB0_47:
	mov	w20, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh66
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGot	Lloh96, Lloh97
	.loh AdrpLdrGot	Lloh94, Lloh95
	.loh AdrpLdrGot	Lloh100, Lloh101
	.loh AdrpLdrGot	Lloh98, Lloh99
	.cfi_endproc
                                        ; -- End function
	.comm	_CEVTIND_CHIP_SJA1000,8,3       ; @CEVTIND_CHIP_SJA1000
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to handle errors on non-SJA1000\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"error message too short\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CEVTIND_BEI,8,3                ; @CEVTIND_BEI
l_.str.2:                               ; @.str.2
	.asciz	"bus error interrupt\n"

	.comm	_ECC_DIR,8,3                    ; @ECC_DIR
l_.str.3:                               ; @.str.3
	.asciz	"unable to re-enable bus-error\n"

	.comm	_CAN_CTRLMODE_BERR_REPORTING,4,2 ; @CAN_CTRLMODE_BERR_REPORTING
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CEVTIND_DOI,8,3                ; @CEVTIND_DOI
	.comm	_CEVTIND_LOST,8,3               ; @CEVTIND_LOST
l_.str.4:                               ; @.str.4
	.asciz	"data overrun interrupt\n"

	.comm	_CAN_ERR_CRTL,4,2               ; @CAN_ERR_CRTL
	.comm	_CAN_ERR_CRTL_RX_OVERFLOW,8,3   ; @CAN_ERR_CRTL_RX_OVERFLOW
	.comm	_CEVTIND_EI,8,3                 ; @CEVTIND_EI
l_.str.5:                               ; @.str.5
	.asciz	"error warning + passive interrupt\n"

	.comm	_SR_BS,8,3                      ; @SR_BS
	.comm	_CAN_STATE_BUS_OFF,4,2          ; @CAN_STATE_BUS_OFF
	.comm	_CAN_ERR_BUSOFF,4,2             ; @CAN_ERR_BUSOFF
	.comm	_SR_ES,8,3                      ; @SR_ES
	.comm	_CAN_STATE_ERROR_PASSIVE,4,2    ; @CAN_STATE_ERROR_PASSIVE
	.comm	_CAN_STATE_ERROR_WARNING,4,2    ; @CAN_STATE_ERROR_WARNING
	.comm	_CAN_STATE_ERROR_ACTIVE,4,2     ; @CAN_STATE_ERROR_ACTIVE
	.comm	_CAN_ERR_PROT,4,2               ; @CAN_ERR_PROT
	.comm	_CAN_ERR_BUSERROR,4,2           ; @CAN_ERR_BUSERROR
	.comm	_ECC_MASK,8,3                   ; @ECC_MASK
	.comm	_CAN_ERR_PROT_BIT,8,3           ; @CAN_ERR_PROT_BIT
	.comm	_CAN_ERR_PROT_FORM,8,3          ; @CAN_ERR_PROT_FORM
	.comm	_CAN_ERR_PROT_STUFF,8,3         ; @CAN_ERR_PROT_STUFF
	.comm	_ECC_SEG,8,3                    ; @ECC_SEG
	.comm	_CAN_ERR_PROT_TX,8,3            ; @CAN_ERR_PROT_TX
	.comm	_CAN_ERR_CRTL_TX_WARNING,8,3    ; @CAN_ERR_CRTL_TX_WARNING
	.comm	_CAN_ERR_CRTL_RX_WARNING,8,3    ; @CAN_ERR_CRTL_RX_WARNING
	.comm	_CAN_ERR_CRTL_TX_PASSIVE,8,3    ; @CAN_ERR_CRTL_TX_PASSIVE
	.comm	_CAN_ERR_CRTL_RX_PASSIVE,8,3    ; @CAN_ERR_CRTL_RX_PASSIVE
	.no_dead_strip	_ican3_handle_cevtind
.subsections_via_symbols
