	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ifi_canfd_handle_state_change
_ifi_canfd_handle_state_change:         ## @ifi_canfd_handle_state_change
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	leal	-128(%r12), %eax
	cmpl	$3, %eax
	ja	LBB0_6
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	incl	12(%rbx)
	movl	$128, (%rbx)
	jmp	LBB0_6
LBB0_4:
	incl	8(%rbx)
	movl	$129, (%rbx)
	jmp	LBB0_6
LBB0_2:
	incl	12(%rbx)
	movl	$130, (%rbx)
	jmp	LBB0_6
LBB0_5:
	movl	$131, (%rbx)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ifi_canfd_irq_enable
	incl	4(%rbx)
	movq	%r15, %rdi
	callq	_can_bus_off
LBB0_6:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_alloc_can_err_skb
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_20
## %bb.7:
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ifi_canfd_get_berr_counter
	cmpl	$128, %r12d
	je	LBB0_11
## %bb.8:
	cmpl	$129, %r12d
	je	LBB0_15
## %bb.9:
	cmpl	$131, %r12d
	jne	LBB0_10
## %bb.18:
	movq	_CAN_ERR_BUSOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rax
	orl	%ecx, 16(%rax)
	jmp	LBB0_19
LBB0_15:
	movq	_CAN_ERR_CRTL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rax
	orl	%ecx, 16(%rax)
	movq	_CAN_ERR_CRTL_RX_PASSIVE@GOTPCREL(%rip), %rsi
	movq	(%rax), %rcx
	movl	4(%rcx), %edx
	orl	(%rsi), %edx
	movl	%edx, 4(%rcx)
	movl	-40(%rbp), %esi
	cmpl	$128, %esi
	jl	LBB0_17
## %bb.16:
	movq	_CAN_ERR_CRTL_TX_PASSIVE@GOTPCREL(%rip), %rdi
	orl	(%rdi), %edx
	movl	%edx, 4(%rcx)
LBB0_17:
	movl	%esi, 24(%rcx)
	movl	-36(%rbp), %edx
	movl	%edx, 28(%rcx)
	jmp	LBB0_19
LBB0_11:
	movq	_CAN_ERR_CRTL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rax
	orl	%ecx, 16(%rax)
	movl	-40(%rbp), %ecx
	cmpl	-36(%rbp), %ecx
	jle	LBB0_12
## %bb.13:
	movq	_CAN_ERR_CRTL_TX_WARNING@GOTPCREL(%rip), %rdx
	jmp	LBB0_14
LBB0_10:
	movq	-48(%rbp), %rax
	jmp	LBB0_19
LBB0_12:
	movq	_CAN_ERR_CRTL_RX_WARNING@GOTPCREL(%rip), %rdx
LBB0_14:
	movl	(%rdx), %edx
	movq	(%rax), %rsi
	movl	%edx, 4(%rsi)
	movl	%ecx, 24(%rsi)
	movl	-36(%rbp), %ecx
	movl	%ecx, 28(%rsi)
LBB0_19:
	incl	4(%r15)
	movl	8(%rax), %eax
	addl	%eax, (%r15)
	movq	%r14, %rdi
	callq	_netif_receive_skb
	movl	$1, %eax
LBB0_20:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_CAN_ERR_CRTL,4,2               ## @CAN_ERR_CRTL
	.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_RX_PASSIVE,4,2    ## @CAN_ERR_CRTL_RX_PASSIVE
	.comm	_CAN_ERR_CRTL_TX_PASSIVE,4,2    ## @CAN_ERR_CRTL_TX_PASSIVE
	.comm	_CAN_ERR_BUSOFF,4,2             ## @CAN_ERR_BUSOFF
	.no_dead_strip	_ifi_canfd_handle_state_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ifi_canfd_handle_state_change
_ifi_canfd_handle_state_change:         ; @ifi_canfd_handle_state_change
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	sub	w8, w21, #128
	cmp	w8, #3
	b.hi	LBB0_6
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #12]
	mov	w8, #128
	str	w8, [x20]
	b	LBB0_6
LBB0_3:
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	mov	w8, #129
	str	w8, [x20]
	b	LBB0_6
LBB0_4:
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #12]
	mov	w8, #130
	str	w8, [x20]
	b	LBB0_6
LBB0_5:
	mov	w8, #131
	str	w8, [x20]
	mov	x0, x19
	mov	w1, #0
	bl	_ifi_canfd_irq_enable
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
	mov	x0, x19
	bl	_can_bus_off
LBB0_6:
	add	x1, sp, #8
	mov	x0, x19
	bl	_alloc_can_err_skb
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.7:
	mov	w0, #0
	b	LBB0_18
LBB0_8:
	mov	x1, sp
	mov	x0, x19
	bl	_ifi_canfd_get_berr_counter
	cmp	w21, #128
	b.eq	LBB0_12
; %bb.9:
	cmp	w21, #129
	b.eq	LBB0_13
; %bb.10:
	cmp	w21, #131
	b.ne	LBB0_16
; %bb.11:
Lloh2:
	adrp	x8, _CAN_ERR_BUSOFF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CAN_ERR_BUSOFF@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x8]
	ldr	x8, [sp, #8]
	ldr	w10, [x8, #16]
	orr	w9, w10, w9
	str	w9, [x8, #16]
	b	LBB0_17
LBB0_12:
Lloh5:
	adrp	x8, _CAN_ERR_CRTL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CAN_ERR_CRTL@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x8]
	ldr	x8, [sp, #8]
	ldr	w10, [x8, #16]
	orr	w9, w10, w9
	str	w9, [x8, #16]
	ldp	w9, w10, [sp]
Lloh8:
	adrp	x11, _CAN_ERR_CRTL_TX_WARNING@GOTPAGE
Lloh9:
	ldr	x11, [x11, _CAN_ERR_CRTL_TX_WARNING@GOTPAGEOFF]
Lloh10:
	adrp	x12, _CAN_ERR_CRTL_RX_WARNING@GOTPAGE
Lloh11:
	ldr	x12, [x12, _CAN_ERR_CRTL_RX_WARNING@GOTPAGEOFF]
	cmp	w9, w10
	csel	x10, x11, x12, gt
	ldr	w10, [x10]
	ldr	x11, [x8]
	str	w10, [x11, #4]
	ldr	w10, [sp, #4]
	stp	w9, w10, [x11, #24]
	b	LBB0_17
LBB0_13:
Lloh12:
	adrp	x8, _CAN_ERR_CRTL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CAN_ERR_CRTL@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x8]
	ldr	x8, [sp, #8]
	ldr	w10, [x8, #16]
	orr	w9, w10, w9
	str	w9, [x8, #16]
Lloh15:
	adrp	x9, _CAN_ERR_CRTL_RX_PASSIVE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CAN_ERR_CRTL_RX_PASSIVE@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x9]
	ldr	x9, [x8]
	ldr	w11, [x9, #4]
	orr	w11, w11, w10
	str	w11, [x9, #4]
	ldr	w10, [sp]
	cmp	w10, #128
	b.lt	LBB0_15
; %bb.14:
Lloh18:
	adrp	x12, _CAN_ERR_CRTL_TX_PASSIVE@GOTPAGE
Lloh19:
	ldr	x12, [x12, _CAN_ERR_CRTL_TX_PASSIVE@GOTPAGEOFF]
Lloh20:
	ldr	w12, [x12]
	orr	w11, w12, w11
	str	w11, [x9, #4]
LBB0_15:
	ldr	w11, [sp, #4]
	stp	w10, w11, [x9, #24]
	b	LBB0_17
LBB0_16:
	ldr	x8, [sp, #8]
LBB0_17:
	add	x8, x8, #8
	ldr	d0, [x19]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x8]
	add.2s	v0, v0, v1
	str	d0, [x19]
	mov	x0, x20
	bl	_netif_receive_skb
	mov	w0, #1
LBB0_18:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.comm	_CAN_ERR_CRTL,4,2               ; @CAN_ERR_CRTL
	.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_RX_PASSIVE,4,2    ; @CAN_ERR_CRTL_RX_PASSIVE
	.comm	_CAN_ERR_CRTL_TX_PASSIVE,4,2    ; @CAN_ERR_CRTL_TX_PASSIVE
	.comm	_CAN_ERR_BUSOFF,4,2             ; @CAN_ERR_BUSOFF
	.no_dead_strip	_ifi_canfd_handle_state_change
.subsections_via_symbols
