	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hi3110_can_ist
_hi3110_can_ist:                        ## @hi3110_can_ist
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	16(%rsi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	48(%rsi), %r15
	leaq	8(%rsi), %rdi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	_HI3110_STAT_RXFMTY@GOTPCREL(%rip), %r12
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_netif_wake_queue
	movq	%r13, %rbx
LBB0_35:                                ##   in Loop: Header=BB0_1 Depth=1
	testl	%ebx, %ebx
	je	LBB0_36
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	$0, (%r14)
	jne	LBB0_36
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rbx
	movl	(%r12), %r14d
	movq	_HI3110_READ_STATF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_hi3110_read
	movq	%rax, %r13
	testl	%r13d, %r14d
	movq	%rbx, %r14
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_HI3110_READ_STATF@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	callq	_hi3110_hw_rx
	movl	(%r12), %ebx
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_hi3110_read
	movq	%rax, %r13
	testl	%r13d, %ebx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %r14                 ## 8-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_HI3110_READ_INTF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_hi3110_read
	movq	%rax, %rbx
	movq	_HI3110_READ_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_hi3110_read
	movq	%rax, %rdx
	movq	_CAN_STATE_BUS_OFF@GOTPCREL(%rip), %rax
	movq	_HI3110_ERR_BUSOFF@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_CAN_STATE_ERROR_PASSIVE@GOTPCREL(%rip), %rax
	movq	_HI3110_ERR_PASSIVE_MASK@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_CAN_STATE_ERROR_WARNING@GOTPCREL(%rip), %rax
	movq	_HI3110_STAT_ERRW@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_CAN_STATE_ERROR_ACTIVE@GOTPCREL(%rip), %rax
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rax), %r12d
	cmpl	24(%r14), %r12d
	je	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	-56(%rbp), %rsi
	callq	_alloc_can_err_skb
	testq	%rax, %rax
	je	LBB0_36
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r14
	movq	_HI3110_READ_TEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_hi3110_read
	movq	%rax, %rbx
	movq	_HI3110_READ_REC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_hi3110_read
	movq	-56(%rbp), %rsi
	movq	(%rsi), %rcx
	movl	%ebx, 24(%rcx)
	movl	%eax, 28(%rcx)
	cmpl	%eax, %ebx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	$0, %eax
	cmovll	%eax, %edx
	movl	%r12d, %ecx
	cmovgl	%eax, %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_can_change_state
	movq	%r14, %rdi
	movq	%rbx, %r14
	callq	_netif_rx_ni
	movq	_CAN_STATE_BUS_OFF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_can_bus_off
	cmpq	$0, 32(%r14)
	je	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_HI3110_INT_BUSERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	movq	_HI3110_STAT_RXFMTY@GOTPCREL(%rip), %r12
	je	LBB0_30
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_CAN_CTRLMODE_BERR_REPORTING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 40(%r14)
	je	LBB0_30
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_HI3110_ERR_PROTOCOL_MASK@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_30
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	-56(%rbp), %rsi
	callq	_alloc_can_err_skb
	testq	%rax, %rax
	je	LBB0_36
## %bb.20:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rsi
	movq	_CAN_ERR_BUSERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_CAN_ERR_PROT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	-56(%rbp), %rax
	orl	%ecx, 8(%rax)
	incl	44(%r14)
	movq	16(%r14), %rcx
	incl	8(%rcx)
	movl	$2, %ecx
	movq	_HI3110_ERR_BITERR@GOTPCREL(%rip), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	testl	%edi, (%rdx)
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_CAN_ERR_PROT_BIT@GOTPCREL(%rip), %rdx
	jmp	LBB0_28
LBB0_22:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_HI3110_ERR_FRMERR@GOTPCREL(%rip), %rdx
	testl	%edi, (%rdx)
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_CAN_ERR_PROT_FORM@GOTPCREL(%rip), %rdx
	jmp	LBB0_28
LBB0_24:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_CAN_ERR_PROT_STUFF@GOTPCREL(%rip), %rdx
	movq	_HI3110_ERR_STUFERR@GOTPCREL(%rip), %rsi
	testl	%edi, (%rsi)
	jne	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	$3, %ecx
	movq	_HI3110_ERR_CRCERR@GOTPCREL(%rip), %rdx
	testl	%edi, (%rdx)
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_CAN_ERR_PROT_LOC_CRC_SEQ@GOTPCREL(%rip), %rdx
	jmp	LBB0_28
LBB0_27:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_CAN_ERR_PROT_LOC_ACK@GOTPCREL(%rip), %rdx
	movq	_HI3110_ERR_ACKERR@GOTPCREL(%rip), %rsi
	testl	%edi, (%rsi)
	je	LBB0_29
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rdx), %edx
	movq	(%rax), %rax
	orl	%edx, (%rax,%rcx,4)
LBB0_29:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_HI3110_READ_TEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_hi3110_read
	movq	-56(%rbp), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 24(%rcx)
	movq	_HI3110_READ_REC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_hi3110_read
	movq	-56(%rbp), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 28(%rcx)
	movq	16(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_dbg
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_rx_ni
LBB0_30:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%r14), %eax
	testl	%eax, %eax
	je	LBB0_35
## %bb.31:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_HI3110_STAT_TXMTY@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	je	LBB0_35
## %bb.32:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %r13
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	incl	4(%rbx)
	movl	(%rbx), %ecx
	addl	%ecx, %eax
	decl	%eax
	movl	%eax, (%rbx)
	movq	_CAN_LED_EVENT_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_can_led_event
	cmpl	$0, 4(%r14)
	je	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_can_get_echo_skb
	movl	$0, 4(%r14)
	jmp	LBB0_34
LBB0_14:
	movl	$1, (%r14)
	movq	%r15, %rdi
	callq	_hi3110_hw_sleep
LBB0_36:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HI3110_STAT_RXFMTY,4,2         ## @HI3110_STAT_RXFMTY
	.comm	_HI3110_READ_STATF,4,2          ## @HI3110_READ_STATF
	.comm	_HI3110_READ_INTF,4,2           ## @HI3110_READ_INTF
	.comm	_HI3110_READ_ERR,4,2            ## @HI3110_READ_ERR
	.comm	_HI3110_ERR_BUSOFF,4,2          ## @HI3110_ERR_BUSOFF
	.comm	_CAN_STATE_BUS_OFF,4,2          ## @CAN_STATE_BUS_OFF
	.comm	_HI3110_ERR_PASSIVE_MASK,4,2    ## @HI3110_ERR_PASSIVE_MASK
	.comm	_CAN_STATE_ERROR_PASSIVE,4,2    ## @CAN_STATE_ERROR_PASSIVE
	.comm	_HI3110_STAT_ERRW,4,2           ## @HI3110_STAT_ERRW
	.comm	_CAN_STATE_ERROR_WARNING,4,2    ## @CAN_STATE_ERROR_WARNING
	.comm	_CAN_STATE_ERROR_ACTIVE,4,2     ## @CAN_STATE_ERROR_ACTIVE
	.comm	_HI3110_READ_TEC,4,2            ## @HI3110_READ_TEC
	.comm	_HI3110_READ_REC,4,2            ## @HI3110_READ_REC
	.comm	_HI3110_INT_BUSERR,4,2          ## @HI3110_INT_BUSERR
	.comm	_CAN_CTRLMODE_BERR_REPORTING,4,2 ## @CAN_CTRLMODE_BERR_REPORTING
	.comm	_HI3110_ERR_PROTOCOL_MASK,4,2   ## @HI3110_ERR_PROTOCOL_MASK
	.comm	_CAN_ERR_PROT,4,2               ## @CAN_ERR_PROT
	.comm	_CAN_ERR_BUSERROR,4,2           ## @CAN_ERR_BUSERROR
	.comm	_HI3110_ERR_BITERR,4,2          ## @HI3110_ERR_BITERR
	.comm	_CAN_ERR_PROT_BIT,4,2           ## @CAN_ERR_PROT_BIT
	.comm	_HI3110_ERR_FRMERR,4,2          ## @HI3110_ERR_FRMERR
	.comm	_CAN_ERR_PROT_FORM,4,2          ## @CAN_ERR_PROT_FORM
	.comm	_HI3110_ERR_STUFERR,4,2         ## @HI3110_ERR_STUFERR
	.comm	_CAN_ERR_PROT_STUFF,4,2         ## @CAN_ERR_PROT_STUFF
	.comm	_HI3110_ERR_CRCERR,4,2          ## @HI3110_ERR_CRCERR
	.comm	_CAN_ERR_PROT_LOC_CRC_SEQ,4,2   ## @CAN_ERR_PROT_LOC_CRC_SEQ
	.comm	_HI3110_ERR_ACKERR,4,2          ## @HI3110_ERR_ACKERR
	.comm	_CAN_ERR_PROT_LOC_ACK,4,2       ## @CAN_ERR_PROT_LOC_ACK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bus Error\n"

	.comm	_HI3110_STAT_TXMTY,4,2          ## @HI3110_STAT_TXMTY
	.comm	_CAN_LED_EVENT_TX,4,2           ## @CAN_LED_EVENT_TX
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_hi3110_can_ist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hi3110_can_ist
_hi3110_can_ist:                        ; @hi3110_can_ist
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x23, x1
	ldr	x20, [x1, #48]
	ldr	x28, [x1, #16]
	add	x0, x1, #8
	str	x0, [sp]                        ; 8-byte Folded Spill
	bl	_mutex_lock
Lloh0:
	adrp	x21, _HI3110_STAT_RXFMTY@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HI3110_STAT_RXFMTY@GOTPAGEOFF]
Lloh2:
	adrp	x19, _HI3110_READ_STATF@GOTPAGE
Lloh3:
	ldr	x19, [x19, _HI3110_READ_STATF@GOTPAGEOFF]
Lloh4:
	adrp	x25, _HI3110_READ_ERR@GOTPAGE
Lloh5:
	ldr	x25, [x25, _HI3110_READ_ERR@GOTPAGEOFF]
Lloh6:
	adrp	x27, _CAN_STATE_BUS_OFF@GOTPAGE
Lloh7:
	ldr	x27, [x27, _CAN_STATE_BUS_OFF@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
	bl	_netif_wake_queue
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	w24, LBB0_37
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w8, [x23]
	cbnz	w8, LBB0_37
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w22, [x21]
	ldr	w1, [x19]
	mov	x0, x20
	bl	_hi3110_read
	tst	w22, w0
	b.ne	LBB0_7
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_hi3110_hw_rx
	ldr	w22, [x21]
	ldr	w1, [x19]
	mov	x0, x20
	bl	_hi3110_read
	tst	w22, w0
	b.eq	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
Lloh8:
	adrp	x8, _HI3110_READ_INTF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HI3110_READ_INTF@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_hi3110_read
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	ldr	w1, [x25]
	mov	x0, x20
	bl	_hi3110_read
	mov	x26, x0
Lloh11:
	adrp	x8, _HI3110_ERR_BUSOFF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HI3110_ERR_BUSOFF@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x8]
	mov	x8, x27
	tst	w9, w26
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh14:
	adrp	x8, _HI3110_ERR_PASSIVE_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HI3110_ERR_PASSIVE_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x8]
Lloh17:
	adrp	x8, _CAN_STATE_ERROR_PASSIVE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CAN_STATE_ERROR_PASSIVE@GOTPAGEOFF]
	tst	w9, w26
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh19:
	adrp	x8, _HI3110_STAT_ERRW@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HI3110_STAT_ERRW@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	tst	w8, w9
Lloh22:
	adrp	x8, _CAN_STATE_ERROR_WARNING@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CAN_STATE_ERROR_WARNING@GOTPAGEOFF]
Lloh24:
	adrp	x9, _CAN_STATE_ERROR_ACTIVE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CAN_STATE_ERROR_ACTIVE@GOTPAGEOFF]
	csel	x8, x9, x8, eq
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w22, [x8]
	ldr	w8, [x23, #24]
	cmp	w22, w8
	b.eq	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #24
	mov	x0, x28
	bl	_alloc_can_err_skb
	cbz	x0, LBB0_37
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, x0
Lloh26:
	adrp	x8, _HI3110_READ_TEC@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HI3110_READ_TEC@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_hi3110_read
	mov	x24, x28
	mov	x28, x0
Lloh29:
	adrp	x8, _HI3110_READ_REC@GOTPAGE
Lloh30:
	ldr	x8, [x8, _HI3110_READ_REC@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_hi3110_read
	ldr	x1, [sp, #24]
	ldr	x8, [x1]
	stp	w28, w0, [x8, #24]
	cmp	w28, w0
	mov	x28, x24
	csel	w2, wzr, w22, lt
	csel	w3, wzr, w22, gt
	mov	x0, x24
	bl	_can_change_state
	mov	x0, x27
	bl	_netif_rx_ni
Lloh32:
	adrp	x27, _CAN_STATE_BUS_OFF@GOTPAGE
Lloh33:
	ldr	x27, [x27, _CAN_STATE_BUS_OFF@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w22, w8
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
	bl	_can_bus_off
	ldr	x8, [x23, #32]
	cbz	x8, LBB0_36
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh34:
	adrp	x25, _HI3110_READ_ERR@GOTPAGE
Lloh35:
	ldr	x25, [x25, _HI3110_READ_ERR@GOTPAGEOFF]
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh36:
	adrp	x8, _HI3110_INT_BUSERR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _HI3110_INT_BUSERR@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	ldr	x24, [sp, #16]                  ; 8-byte Folded Reload
	tst	w8, w24
	b.eq	LBB0_32
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23, #40]
Lloh39:
	adrp	x9, _CAN_CTRLMODE_BERR_REPORTING@GOTPAGE
Lloh40:
	ldr	x9, [x9, _CAN_CTRLMODE_BERR_REPORTING@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_32
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh42:
	adrp	x8, _HI3110_ERR_PROTOCOL_MASK@GOTPAGE
Lloh43:
	ldr	x8, [x8, _HI3110_ERR_PROTOCOL_MASK@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	tst	w8, w26
	b.eq	LBB0_32
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #24
	mov	x0, x28
	bl	_alloc_can_err_skb
	cbz	x0, LBB0_37
; %bb.19:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, x0
Lloh45:
	adrp	x8, _CAN_ERR_PROT@GOTPAGE
Lloh46:
	ldr	x8, [x8, _CAN_ERR_PROT@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
Lloh48:
	adrp	x9, _CAN_ERR_BUSERROR@GOTPAGE
Lloh49:
	ldr	x9, [x9, _CAN_ERR_BUSERROR@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	orr	w9, w9, w8
	ldr	x8, [sp, #24]
	ldr	w10, [x8, #8]
	orr	w9, w9, w10
	str	w9, [x8, #8]
	ldr	w9, [x23, #44]
	add	w9, w9, #1
	str	w9, [x23, #44]
	ldr	x9, [x23, #16]
	ldr	w10, [x9, #8]
	add	w10, w10, #1
	str	w10, [x9, #8]
Lloh51:
	adrp	x9, _HI3110_ERR_BITERR@GOTPAGE
Lloh52:
	ldr	x9, [x9, _HI3110_ERR_BITERR@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	tst	w9, w26
	b.eq	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh54:
	adrp	x9, _CAN_ERR_PROT_BIT@GOTPAGE
Lloh55:
	ldr	x9, [x9, _CAN_ERR_PROT_BIT@GOTPAGEOFF]
	mov	w10, #2
	b	LBB0_30
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh56:
	adrp	x9, _HI3110_ERR_FRMERR@GOTPAGE
Lloh57:
	ldr	x9, [x9, _HI3110_ERR_FRMERR@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	tst	w9, w26
	b.eq	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh59:
	adrp	x9, _CAN_ERR_PROT_FORM@GOTPAGE
Lloh60:
	ldr	x9, [x9, _CAN_ERR_PROT_FORM@GOTPAGEOFF]
	mov	w10, #2
	b	LBB0_30
LBB0_23:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh61:
	adrp	x9, _HI3110_ERR_STUFERR@GOTPAGE
Lloh62:
	ldr	x9, [x9, _HI3110_ERR_STUFERR@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
	tst	w9, w26
	b.eq	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh64:
	adrp	x9, _CAN_ERR_PROT_STUFF@GOTPAGE
Lloh65:
	ldr	x9, [x9, _CAN_ERR_PROT_STUFF@GOTPAGEOFF]
	mov	w10, #2
	b	LBB0_30
LBB0_25:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh66:
	adrp	x9, _HI3110_ERR_CRCERR@GOTPAGE
Lloh67:
	ldr	x9, [x9, _HI3110_ERR_CRCERR@GOTPAGEOFF]
Lloh68:
	ldr	w9, [x9]
	tst	w9, w26
	b.eq	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh69:
	adrp	x9, _CAN_ERR_PROT_LOC_CRC_SEQ@GOTPAGE
Lloh70:
	ldr	x9, [x9, _CAN_ERR_PROT_LOC_CRC_SEQ@GOTPAGEOFF]
	b	LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh71:
	adrp	x9, _HI3110_ERR_ACKERR@GOTPAGE
Lloh72:
	ldr	x9, [x9, _HI3110_ERR_ACKERR@GOTPAGEOFF]
Lloh73:
	ldr	w9, [x9]
	tst	w9, w26
	b.eq	LBB0_31
; %bb.28:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh74:
	adrp	x9, _CAN_ERR_PROT_LOC_ACK@GOTPAGE
Lloh75:
	ldr	x9, [x9, _CAN_ERR_PROT_LOC_ACK@GOTPAGEOFF]
LBB0_29:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w10, #3
LBB0_30:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x9]
	ldr	x8, [x8]
	lsl	x10, x10, #2
	ldr	w11, [x8, x10]
	orr	w9, w11, w9
	str	w9, [x8, x10]
LBB0_31:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh76:
	adrp	x8, _HI3110_READ_TEC@GOTPAGE
Lloh77:
	ldr	x8, [x8, _HI3110_READ_TEC@GOTPAGEOFF]
Lloh78:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_hi3110_read
	ldr	x8, [sp, #24]
	ldr	x8, [x8]
	str	w0, [x8, #24]
Lloh79:
	adrp	x8, _HI3110_READ_REC@GOTPAGE
Lloh80:
	ldr	x8, [x8, _HI3110_READ_REC@GOTPAGEOFF]
Lloh81:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_hi3110_read
	ldr	x8, [sp, #24]
	ldr	x8, [x8]
	str	w0, [x8, #28]
	ldr	x0, [x23, #16]
Lloh82:
	adrp	x1, l_.str@PAGE
Lloh83:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_dbg
	mov	x0, x27
	bl	_netif_rx_ni
Lloh84:
	adrp	x27, _CAN_STATE_BUS_OFF@GOTPAGE
Lloh85:
	ldr	x27, [x27, _CAN_STATE_BUS_OFF@GOTPAGEOFF]
LBB0_32:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23, #4]
	cbz	w8, LBB0_2
; %bb.33:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh86:
	adrp	x9, _HI3110_STAT_TXMTY@GOTPAGE
Lloh87:
	ldr	x9, [x9, _HI3110_STAT_TXMTY@GOTPAGEOFF]
Lloh88:
	ldr	w9, [x9]
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	tst	w9, w10
	b.eq	LBB0_2
; %bb.34:                               ;   in Loop: Header=BB0_3 Depth=1
	sub	w8, w8, #1
	ldr	d0, [x28]
	movi.2s	v1, #1
	mov.s	v1[0], w8
	add.2s	v0, v1, v0
	str	d0, [x28]
Lloh89:
	adrp	x8, _CAN_LED_EVENT_TX@GOTPAGE
Lloh90:
	ldr	x8, [x8, _CAN_LED_EVENT_TX@GOTPAGEOFF]
Lloh91:
	ldr	w1, [x8]
	mov	x0, x28
	bl	_can_led_event
	ldr	w8, [x23, #4]
	cbz	w8, LBB0_1
; %bb.35:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
	mov	w1, #0
	bl	_can_get_echo_skb
	str	wzr, [x23, #4]
	b	LBB0_1
LBB0_36:
	mov	w8, #1
	str	w8, [x23]
	mov	x0, x20
	bl	_hi3110_hw_sleep
LBB0_37:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_mutex_unlock
Lloh92:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh93:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh94:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh84, Lloh85
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.cfi_endproc
                                        ; -- End function
	.comm	_HI3110_STAT_RXFMTY,4,2         ; @HI3110_STAT_RXFMTY
	.comm	_HI3110_READ_STATF,4,2          ; @HI3110_READ_STATF
	.comm	_HI3110_READ_INTF,4,2           ; @HI3110_READ_INTF
	.comm	_HI3110_READ_ERR,4,2            ; @HI3110_READ_ERR
	.comm	_HI3110_ERR_BUSOFF,4,2          ; @HI3110_ERR_BUSOFF
	.comm	_CAN_STATE_BUS_OFF,4,2          ; @CAN_STATE_BUS_OFF
	.comm	_HI3110_ERR_PASSIVE_MASK,4,2    ; @HI3110_ERR_PASSIVE_MASK
	.comm	_CAN_STATE_ERROR_PASSIVE,4,2    ; @CAN_STATE_ERROR_PASSIVE
	.comm	_HI3110_STAT_ERRW,4,2           ; @HI3110_STAT_ERRW
	.comm	_CAN_STATE_ERROR_WARNING,4,2    ; @CAN_STATE_ERROR_WARNING
	.comm	_CAN_STATE_ERROR_ACTIVE,4,2     ; @CAN_STATE_ERROR_ACTIVE
	.comm	_HI3110_READ_TEC,4,2            ; @HI3110_READ_TEC
	.comm	_HI3110_READ_REC,4,2            ; @HI3110_READ_REC
	.comm	_HI3110_INT_BUSERR,4,2          ; @HI3110_INT_BUSERR
	.comm	_CAN_CTRLMODE_BERR_REPORTING,4,2 ; @CAN_CTRLMODE_BERR_REPORTING
	.comm	_HI3110_ERR_PROTOCOL_MASK,4,2   ; @HI3110_ERR_PROTOCOL_MASK
	.comm	_CAN_ERR_PROT,4,2               ; @CAN_ERR_PROT
	.comm	_CAN_ERR_BUSERROR,4,2           ; @CAN_ERR_BUSERROR
	.comm	_HI3110_ERR_BITERR,4,2          ; @HI3110_ERR_BITERR
	.comm	_CAN_ERR_PROT_BIT,4,2           ; @CAN_ERR_PROT_BIT
	.comm	_HI3110_ERR_FRMERR,4,2          ; @HI3110_ERR_FRMERR
	.comm	_CAN_ERR_PROT_FORM,4,2          ; @CAN_ERR_PROT_FORM
	.comm	_HI3110_ERR_STUFERR,4,2         ; @HI3110_ERR_STUFERR
	.comm	_CAN_ERR_PROT_STUFF,4,2         ; @CAN_ERR_PROT_STUFF
	.comm	_HI3110_ERR_CRCERR,4,2          ; @HI3110_ERR_CRCERR
	.comm	_CAN_ERR_PROT_LOC_CRC_SEQ,4,2   ; @CAN_ERR_PROT_LOC_CRC_SEQ
	.comm	_HI3110_ERR_ACKERR,4,2          ; @HI3110_ERR_ACKERR
	.comm	_CAN_ERR_PROT_LOC_ACK,4,2       ; @CAN_ERR_PROT_LOC_ACK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bus Error\n"

	.comm	_HI3110_STAT_TXMTY,4,2          ; @HI3110_STAT_TXMTY
	.comm	_CAN_LED_EVENT_TX,4,2           ; @CAN_LED_EVENT_TX
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_hi3110_can_ist
.subsections_via_symbols
