	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sja1000_err
_sja1000_err:                           ## @sja1000_err
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r13d
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movl	8(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$24, %edi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r14, 8(%rax)
	movq	_ETH_P_CAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, (%r12)
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	$24, %esi
	callq	_skb_put
	movq	%rax, %r12
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_CAN_ERR_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	_CAN_ERR_DLC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
	movq	_IRQ_DOI@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_CAN_ERR_CRTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	movq	_CAN_ERR_CRTL_RX_OVERFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r12), %rcx
	movl	%eax, 4(%rcx)
	incl	20(%r14)
	incl	16(%r14)
	movq	_REG_CMR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CMD_CDO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	*32(%r15)
LBB0_4:
	movq	_IRQ_EI@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_11
## %bb.5:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movq	_SR_BS@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_CAN_STATE_BUS_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_CAN_ERR_BUSOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	movq	%r14, %rdi
	callq	_can_bus_off
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_34
LBB0_7:
	movl	%ebx, %ecx
	movq	_SR_ES@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.8:
	movq	_CAN_STATE_ERROR_WARNING@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_CAN_STATE_ERROR_ACTIVE@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_11:
	movq	_IRQ_BEI@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_22
## %bb.12:
	incl	24(%r15)
	incl	16(%r14)
	movq	_REG_ECC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	*(%r15)
	movq	_CAN_ERR_PROT@GOTPCREL(%rip), %rcx
	movq	_CAN_ERR_BUSERROR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	orl	%edx, (%r12)
	movq	_ECC_MASK@GOTPCREL(%rip), %rdx
	movl	%eax, %ecx
	andl	(%rdx), %ecx
	cmpl	$128, %ecx
	je	LBB0_18
## %bb.13:
	cmpl	$129, %ecx
	je	LBB0_17
## %bb.14:
	cmpl	$130, %ecx
	jne	LBB0_19
## %bb.15:
	movq	_CAN_ERR_PROT_BIT@GOTPCREL(%rip), %rsi
	jmp	LBB0_16
LBB0_18:
	movq	_CAN_ERR_PROT_STUFF@GOTPCREL(%rip), %rsi
	jmp	LBB0_16
LBB0_17:
	movq	_CAN_ERR_PROT_FORM@GOTPCREL(%rip), %rsi
LBB0_16:
	movq	8(%r12), %rcx
	movl	8(%rcx), %edx
	orl	(%rsi), %edx
	movl	%edx, 8(%rcx)
	jmp	LBB0_20
LBB0_19:
	movq	_CAN_ERR_PROT_UNSPEC@GOTPCREL(%rip), %rsi
	movq	8(%r12), %rcx
	movl	8(%rcx), %edx
	orl	(%rsi), %edx
	movl	%edx, 8(%rcx)
	movq	_ECC_SEG@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%eax, %esi
	movl	%esi, 12(%rcx)
LBB0_20:
	movq	_ECC_DIR@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	jne	LBB0_22
## %bb.21:
	movq	_CAN_ERR_PROT_TX@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, 8(%rcx)
LBB0_22:
	movq	_IRQ_EPI@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	je	LBB0_27
## %bb.23:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
	movq	_SR_ES@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_25
## %bb.24:
	movq	_CAN_STATE_ERROR_PASSIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_25:
	movq	_CAN_STATE_ERROR_ACTIVE@GOTPCREL(%rip), %rax
LBB0_26:
	movl	(%rax), %ecx
LBB0_27:
	movq	_IRQ_ALI@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_29
## %bb.28:
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%ecx, %r13d
	callq	_dev_dbg
	movq	_REG_ALC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	*(%r15)
	incl	20(%r15)
	incl	12(%r14)
	movq	_CAN_ERR_LOSTARB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%r12)
	andl	$31, %eax
	movq	8(%r12), %rcx
	movl	%eax, (%rcx)
	movl	%r13d, %ecx
LBB0_29:
	cmpl	8(%r15), %ecx
	je	LBB0_33
## %bb.30:
	movq	_CAN_STATE_ERROR_WARNING@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %ecx
	je	LBB0_32
## %bb.31:
	movq	_CAN_STATE_ERROR_PASSIVE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_33
LBB0_32:
	movq	_REG_RXERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ecx, %r13d
	callq	*(%r15)
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_REG_TXERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	*(%r15)
	movq	_CAN_ERR_CRTL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%r12)
	xorl	%ecx, %ecx
	cmpl	(%rbx), %r13d
	movq	_CAN_ERR_CRTL_TX_PASSIVE@GOTPCREL(%rip), %rdx
	cmoveq	_CAN_ERR_CRTL_TX_WARNING@GOTPCREL(%rip), %rdx
	movq	_CAN_ERR_CRTL_RX_PASSIVE@GOTPCREL(%rip), %rsi
	cmoveq	_CAN_ERR_CRTL_RX_WARNING@GOTPCREL(%rip), %rsi
	sete	%cl
	incl	12(%r15,%rcx,4)
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	cmovgq	%rdx, %rsi
	movl	(%rsi), %eax
	movq	8(%r12), %rcx
	movl	%eax, 4(%rcx)
	movl	%r13d, %ecx
LBB0_33:
	movl	%ecx, 8(%r15)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_rx
	incl	8(%r14)
	movl	16(%r12), %eax
	addl	%eax, 4(%r14)
	xorl	%eax, %eax
LBB0_34:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ETH_P_CAN,4,2                  ## @ETH_P_CAN
	.comm	_CAN_ERR_FLAG,4,2               ## @CAN_ERR_FLAG
	.comm	_CAN_ERR_DLC,8,3                ## @CAN_ERR_DLC
	.comm	_IRQ_DOI,4,2                    ## @IRQ_DOI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"data overrun interrupt\n"

	.comm	_CAN_ERR_CRTL,4,2               ## @CAN_ERR_CRTL
	.comm	_CAN_ERR_CRTL_RX_OVERFLOW,4,2   ## @CAN_ERR_CRTL_RX_OVERFLOW
	.comm	_REG_CMR,4,2                    ## @REG_CMR
	.comm	_CMD_CDO,4,2                    ## @CMD_CDO
	.comm	_IRQ_EI,4,2                     ## @IRQ_EI
L_.str.1:                               ## @.str.1
	.asciz	"error warning interrupt\n"

	.comm	_SR_BS,4,2                      ## @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,4,2                      ## @SR_ES
	.comm	_CAN_STATE_ERROR_WARNING,4,2    ## @CAN_STATE_ERROR_WARNING
	.comm	_CAN_STATE_ERROR_ACTIVE,4,2     ## @CAN_STATE_ERROR_ACTIVE
	.comm	_IRQ_BEI,4,2                    ## @IRQ_BEI
	.comm	_REG_ECC,4,2                    ## @REG_ECC
	.comm	_CAN_ERR_PROT,4,2               ## @CAN_ERR_PROT
	.comm	_CAN_ERR_BUSERROR,4,2           ## @CAN_ERR_BUSERROR
	.comm	_ECC_MASK,4,2                   ## @ECC_MASK
	.comm	_CAN_ERR_PROT_BIT,4,2           ## @CAN_ERR_PROT_BIT
	.comm	_CAN_ERR_PROT_FORM,4,2          ## @CAN_ERR_PROT_FORM
	.comm	_CAN_ERR_PROT_STUFF,4,2         ## @CAN_ERR_PROT_STUFF
	.comm	_CAN_ERR_PROT_UNSPEC,4,2        ## @CAN_ERR_PROT_UNSPEC
	.comm	_ECC_SEG,4,2                    ## @ECC_SEG
	.comm	_ECC_DIR,4,2                    ## @ECC_DIR
	.comm	_CAN_ERR_PROT_TX,4,2            ## @CAN_ERR_PROT_TX
	.comm	_IRQ_EPI,4,2                    ## @IRQ_EPI
L_.str.2:                               ## @.str.2
	.asciz	"error passive interrupt\n"

	.comm	_CAN_STATE_ERROR_PASSIVE,4,2    ## @CAN_STATE_ERROR_PASSIVE
	.comm	_IRQ_ALI,4,2                    ## @IRQ_ALI
L_.str.3:                               ## @.str.3
	.asciz	"arbitration lost interrupt\n"

	.comm	_REG_ALC,4,2                    ## @REG_ALC
	.comm	_CAN_ERR_LOSTARB,4,2            ## @CAN_ERR_LOSTARB
	.comm	_REG_RXERR,4,2                  ## @REG_RXERR
	.comm	_REG_TXERR,4,2                  ## @REG_TXERR
	.comm	_CAN_ERR_CRTL_TX_WARNING,4,2    ## @CAN_ERR_CRTL_TX_WARNING
	.comm	_CAN_ERR_CRTL_RX_WARNING,4,2    ## @CAN_ERR_CRTL_RX_WARNING
	.comm	_CAN_ERR_CRTL_TX_PASSIVE,4,2    ## @CAN_ERR_CRTL_TX_PASSIVE
	.comm	_CAN_ERR_CRTL_RX_PASSIVE,4,2    ## @CAN_ERR_CRTL_RX_PASSIVE
	.no_dead_strip	_sja1000_err
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sja1000_err
_sja1000_err:                           ; @sja1000_err
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x24, x2
	mov	x23, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	w25, [x0, #8]
	mov	w0, #24
	bl	_dev_alloc_skb
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	str	x19, [x0, #8]
Lloh0:
	adrp	x8, _ETH_P_CAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_CAN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htons
	str	w0, [x21]
	mov	x0, x21
	mov	w1, #24
	bl	_skb_put
	mov	x22, x0
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh3:
	adrp	x8, _CAN_ERR_FLAG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAN_ERR_FLAG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x22]
Lloh6:
	adrp	x8, _CAN_ERR_DLC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CAN_ERR_DLC@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x22, #16]
Lloh9:
	adrp	x8, _IRQ_DOI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQ_DOI@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh14:
	adrp	x8, _CAN_ERR_CRTL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CAN_ERR_CRTL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
Lloh17:
	adrp	x8, _CAN_ERR_CRTL_RX_OVERFLOW@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CAN_ERR_CRTL_RX_OVERFLOW@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	x9, [x22, #8]
	str	w8, [x9, #4]
	ldr	d0, [x19, #16]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	str	d0, [x19, #16]
	ldr	x8, [x20, #32]
Lloh20:
	adrp	x9, _REG_CMR@GOTPAGE
Lloh21:
	ldr	x9, [x9, _REG_CMR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x9]
Lloh23:
	adrp	x9, _CMD_CDO@GOTPAGE
Lloh24:
	ldr	x9, [x9, _CMD_CDO@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x9]
	mov	x0, x20
	blr	x8
LBB0_3:
Lloh26:
	adrp	x8, _IRQ_EI@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IRQ_EI@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_11
; %bb.4:
	ldr	w0, [x19]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
Lloh31:
	adrp	x8, _SR_BS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SR_BS@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_7
; %bb.5:
Lloh34:
	adrp	x8, _CAN_STATE_BUS_OFF@GOTPAGE
Lloh35:
	ldr	x8, [x8, _CAN_STATE_BUS_OFF@GOTPAGEOFF]
Lloh36:
	ldr	w25, [x8]
Lloh37:
	adrp	x8, _CAN_ERR_BUSOFF@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CAN_ERR_BUSOFF@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
	mov	x0, x19
	bl	_can_bus_off
	b	LBB0_11
LBB0_6:
Lloh40:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_34
LBB0_7:
Lloh43:
	adrp	x8, _SR_ES@GOTPAGE
Lloh44:
	ldr	x8, [x8, _SR_ES@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_9
; %bb.8:
Lloh46:
	adrp	x8, _CAN_STATE_ERROR_WARNING@GOTPAGE
Lloh47:
	ldr	x8, [x8, _CAN_STATE_ERROR_WARNING@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh48:
	adrp	x8, _CAN_STATE_ERROR_ACTIVE@GOTPAGE
Lloh49:
	ldr	x8, [x8, _CAN_STATE_ERROR_ACTIVE@GOTPAGEOFF]
LBB0_10:
	ldr	w25, [x8]
LBB0_11:
Lloh50:
	adrp	x8, _IRQ_BEI@GOTPAGE
Lloh51:
	ldr	x8, [x8, _IRQ_BEI@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_22
; %bb.12:
	ldr	w8, [x20, #24]
	add	w8, w8, #1
	str	w8, [x20, #24]
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	ldr	x8, [x20]
Lloh53:
	adrp	x9, _REG_ECC@GOTPAGE
Lloh54:
	ldr	x9, [x9, _REG_ECC@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x9]
	mov	x0, x20
	blr	x8
Lloh56:
	adrp	x8, _CAN_ERR_PROT@GOTPAGE
Lloh57:
	ldr	x8, [x8, _CAN_ERR_PROT@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
Lloh59:
	adrp	x9, _CAN_ERR_BUSERROR@GOTPAGE
Lloh60:
	ldr	x9, [x9, _CAN_ERR_BUSERROR@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x22]
	orr	w8, w8, w9
	str	w8, [x22]
Lloh62:
	adrp	x8, _ECC_MASK@GOTPAGE
Lloh63:
	ldr	x8, [x8, _ECC_MASK@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
	and	w8, w8, w0
	cmp	w8, #128
	b.eq	LBB0_16
; %bb.13:
	cmp	w8, #129
	b.eq	LBB0_17
; %bb.14:
	cmp	w8, #130
	b.ne	LBB0_19
; %bb.15:
Lloh65:
	adrp	x8, _CAN_ERR_PROT_BIT@GOTPAGE
Lloh66:
	ldr	x8, [x8, _CAN_ERR_PROT_BIT@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:
Lloh67:
	adrp	x8, _CAN_ERR_PROT_STUFF@GOTPAGE
Lloh68:
	ldr	x8, [x8, _CAN_ERR_PROT_STUFF@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh69:
	adrp	x8, _CAN_ERR_PROT_FORM@GOTPAGE
Lloh70:
	ldr	x8, [x8, _CAN_ERR_PROT_FORM@GOTPAGEOFF]
LBB0_18:
	ldr	w9, [x8]
	ldr	x8, [x22, #8]
	ldr	w10, [x8, #8]
	orr	w9, w10, w9
	str	w9, [x8, #8]
	b	LBB0_20
LBB0_19:
Lloh71:
	adrp	x8, _CAN_ERR_PROT_UNSPEC@GOTPAGE
Lloh72:
	ldr	x8, [x8, _CAN_ERR_PROT_UNSPEC@GOTPAGEOFF]
Lloh73:
	ldr	w9, [x8]
	ldr	x8, [x22, #8]
	ldr	w10, [x8, #8]
	orr	w9, w10, w9
Lloh74:
	adrp	x10, _ECC_SEG@GOTPAGE
Lloh75:
	ldr	x10, [x10, _ECC_SEG@GOTPAGEOFF]
Lloh76:
	ldr	w10, [x10]
	and	w10, w10, w0
	stp	w9, w10, [x8, #8]
LBB0_20:
Lloh77:
	adrp	x10, _ECC_DIR@GOTPAGE
Lloh78:
	ldr	x10, [x10, _ECC_DIR@GOTPAGEOFF]
Lloh79:
	ldr	w10, [x10]
	tst	w10, w0
	b.ne	LBB0_22
; %bb.21:
Lloh80:
	adrp	x10, _CAN_ERR_PROT_TX@GOTPAGE
Lloh81:
	ldr	x10, [x10, _CAN_ERR_PROT_TX@GOTPAGEOFF]
Lloh82:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x8, #8]
LBB0_22:
Lloh83:
	adrp	x8, _IRQ_EPI@GOTPAGE
Lloh84:
	ldr	x8, [x8, _IRQ_EPI@GOTPAGEOFF]
Lloh85:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_27
; %bb.23:
	ldr	w0, [x19]
Lloh86:
	adrp	x1, l_.str.2@PAGE
Lloh87:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
Lloh88:
	adrp	x8, _SR_ES@GOTPAGE
Lloh89:
	ldr	x8, [x8, _SR_ES@GOTPAGEOFF]
Lloh90:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_25
; %bb.24:
Lloh91:
	adrp	x8, _CAN_STATE_ERROR_PASSIVE@GOTPAGE
Lloh92:
	ldr	x8, [x8, _CAN_STATE_ERROR_PASSIVE@GOTPAGEOFF]
	b	LBB0_26
LBB0_25:
Lloh93:
	adrp	x8, _CAN_STATE_ERROR_ACTIVE@GOTPAGE
Lloh94:
	ldr	x8, [x8, _CAN_STATE_ERROR_ACTIVE@GOTPAGEOFF]
LBB0_26:
	ldr	w25, [x8]
LBB0_27:
Lloh95:
	adrp	x8, _IRQ_ALI@GOTPAGE
Lloh96:
	ldr	x8, [x8, _IRQ_ALI@GOTPAGEOFF]
Lloh97:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_29
; %bb.28:
	ldr	w0, [x19]
Lloh98:
	adrp	x1, l_.str.3@PAGE
Lloh99:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [x20]
Lloh100:
	adrp	x9, _REG_ALC@GOTPAGE
Lloh101:
	ldr	x9, [x9, _REG_ALC@GOTPAGEOFF]
Lloh102:
	ldr	w1, [x9]
	mov	x0, x20
	blr	x8
	ldr	w8, [x20, #20]
	add	w8, w8, #1
	str	w8, [x20, #20]
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
Lloh103:
	adrp	x8, _CAN_ERR_LOSTARB@GOTPAGE
Lloh104:
	ldr	x8, [x8, _CAN_ERR_LOSTARB@GOTPAGEOFF]
Lloh105:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
	and	w8, w0, #0x1f
	ldr	x9, [x22, #8]
	str	w8, [x9]
LBB0_29:
	ldr	w8, [x20, #8]
	cmp	w25, w8
	b.eq	LBB0_33
; %bb.30:
Lloh106:
	adrp	x24, _CAN_STATE_ERROR_WARNING@GOTPAGE
Lloh107:
	ldr	x24, [x24, _CAN_STATE_ERROR_WARNING@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w25, w8
	b.eq	LBB0_32
; %bb.31:
Lloh108:
	adrp	x8, _CAN_STATE_ERROR_PASSIVE@GOTPAGE
Lloh109:
	ldr	x8, [x8, _CAN_STATE_ERROR_PASSIVE@GOTPAGEOFF]
Lloh110:
	ldr	w8, [x8]
	cmp	w25, w8
	b.ne	LBB0_33
LBB0_32:
	ldr	x8, [x20]
Lloh111:
	adrp	x9, _REG_RXERR@GOTPAGE
Lloh112:
	ldr	x9, [x9, _REG_RXERR@GOTPAGEOFF]
Lloh113:
	ldr	w1, [x9]
	mov	x0, x20
	blr	x8
	mov	x23, x0
	ldr	x8, [x20]
Lloh114:
	adrp	x9, _REG_TXERR@GOTPAGE
Lloh115:
	ldr	x9, [x9, _REG_TXERR@GOTPAGEOFF]
Lloh116:
	ldr	w1, [x9]
	mov	x0, x20
	blr	x8
Lloh117:
	adrp	x8, _CAN_ERR_CRTL@GOTPAGE
Lloh118:
	ldr	x8, [x8, _CAN_ERR_CRTL@GOTPAGEOFF]
Lloh119:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
	ldr	w8, [x24]
	cmp	w25, w8
	mov	w8, #12
	mov	w9, #16
	csel	x8, x9, x8, eq
	ldr	w9, [x20, x8]
	add	w9, w9, #1
	str	w9, [x20, x8]
Lloh120:
	adrp	x8, _CAN_ERR_CRTL_TX_WARNING@GOTPAGE
Lloh121:
	ldr	x8, [x8, _CAN_ERR_CRTL_TX_WARNING@GOTPAGEOFF]
Lloh122:
	adrp	x9, _CAN_ERR_CRTL_TX_PASSIVE@GOTPAGE
Lloh123:
	ldr	x9, [x9, _CAN_ERR_CRTL_TX_PASSIVE@GOTPAGEOFF]
	csel	x8, x8, x9, eq
Lloh124:
	adrp	x9, _CAN_ERR_CRTL_RX_WARNING@GOTPAGE
Lloh125:
	ldr	x9, [x9, _CAN_ERR_CRTL_RX_WARNING@GOTPAGEOFF]
Lloh126:
	adrp	x10, _CAN_ERR_CRTL_RX_PASSIVE@GOTPAGE
Lloh127:
	ldr	x10, [x10, _CAN_ERR_CRTL_RX_PASSIVE@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	cmp	w0, w23
	csel	x8, x8, x9, gt
	ldr	w8, [x8]
	ldr	x9, [x22, #8]
	str	w8, [x9, #4]
LBB0_33:
	str	w25, [x20, #8]
	mov	x0, x21
	bl	_netif_rx
	mov	w0, #0
	add	x8, x22, #16
	ldur	d0, [x19, #4]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x8]
	add.2s	v0, v0, v1
	stur	d0, [x19, #4]
LBB0_34:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpLdrGot	Lloh91, Lloh92
	.loh AdrpLdrGot	Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpAdd	Lloh98, Lloh99
	.loh AdrpLdrGot	Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGot	Lloh126, Lloh127
	.loh AdrpLdrGot	Lloh124, Lloh125
	.loh AdrpLdrGot	Lloh122, Lloh123
	.loh AdrpLdrGot	Lloh120, Lloh121
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ETH_P_CAN,4,2                  ; @ETH_P_CAN
	.comm	_CAN_ERR_FLAG,4,2               ; @CAN_ERR_FLAG
	.comm	_CAN_ERR_DLC,8,3                ; @CAN_ERR_DLC
	.comm	_IRQ_DOI,4,2                    ; @IRQ_DOI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"data overrun interrupt\n"

	.comm	_CAN_ERR_CRTL,4,2               ; @CAN_ERR_CRTL
	.comm	_CAN_ERR_CRTL_RX_OVERFLOW,4,2   ; @CAN_ERR_CRTL_RX_OVERFLOW
	.comm	_REG_CMR,4,2                    ; @REG_CMR
	.comm	_CMD_CDO,4,2                    ; @CMD_CDO
	.comm	_IRQ_EI,4,2                     ; @IRQ_EI
l_.str.1:                               ; @.str.1
	.asciz	"error warning interrupt\n"

	.comm	_SR_BS,4,2                      ; @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,4,2                      ; @SR_ES
	.comm	_CAN_STATE_ERROR_WARNING,4,2    ; @CAN_STATE_ERROR_WARNING
	.comm	_CAN_STATE_ERROR_ACTIVE,4,2     ; @CAN_STATE_ERROR_ACTIVE
	.comm	_IRQ_BEI,4,2                    ; @IRQ_BEI
	.comm	_REG_ECC,4,2                    ; @REG_ECC
	.comm	_CAN_ERR_PROT,4,2               ; @CAN_ERR_PROT
	.comm	_CAN_ERR_BUSERROR,4,2           ; @CAN_ERR_BUSERROR
	.comm	_ECC_MASK,4,2                   ; @ECC_MASK
	.comm	_CAN_ERR_PROT_BIT,4,2           ; @CAN_ERR_PROT_BIT
	.comm	_CAN_ERR_PROT_FORM,4,2          ; @CAN_ERR_PROT_FORM
	.comm	_CAN_ERR_PROT_STUFF,4,2         ; @CAN_ERR_PROT_STUFF
	.comm	_CAN_ERR_PROT_UNSPEC,4,2        ; @CAN_ERR_PROT_UNSPEC
	.comm	_ECC_SEG,4,2                    ; @ECC_SEG
	.comm	_ECC_DIR,4,2                    ; @ECC_DIR
	.comm	_CAN_ERR_PROT_TX,4,2            ; @CAN_ERR_PROT_TX
	.comm	_IRQ_EPI,4,2                    ; @IRQ_EPI
l_.str.2:                               ; @.str.2
	.asciz	"error passive interrupt\n"

	.comm	_CAN_STATE_ERROR_PASSIVE,4,2    ; @CAN_STATE_ERROR_PASSIVE
	.comm	_IRQ_ALI,4,2                    ; @IRQ_ALI
l_.str.3:                               ; @.str.3
	.asciz	"arbitration lost interrupt\n"

	.comm	_REG_ALC,4,2                    ; @REG_ALC
	.comm	_CAN_ERR_LOSTARB,4,2            ; @CAN_ERR_LOSTARB
	.comm	_REG_RXERR,4,2                  ; @REG_RXERR
	.comm	_REG_TXERR,4,2                  ; @REG_TXERR
	.comm	_CAN_ERR_CRTL_TX_WARNING,4,2    ; @CAN_ERR_CRTL_TX_WARNING
	.comm	_CAN_ERR_CRTL_RX_WARNING,4,2    ; @CAN_ERR_CRTL_RX_WARNING
	.comm	_CAN_ERR_CRTL_TX_PASSIVE,4,2    ; @CAN_ERR_CRTL_TX_PASSIVE
	.comm	_CAN_ERR_CRTL_RX_PASSIVE,4,2    ; @CAN_ERR_CRTL_RX_PASSIVE
	.no_dead_strip	_sja1000_err
.subsections_via_symbols
