	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function c_can_handle_state_change
_c_can_handle_state_change:             ## @c_can_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, %ebx
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r12
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_7
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	_CAN_STATE_ERROR_ACTIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	incl	16(%r12)
	movq	_CAN_STATE_ERROR_WARNING@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	incl	12(%r12)
	movq	_CAN_STATE_ERROR_PASSIVE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	jmp	LBB0_7
LBB0_6:
	movq	_CAN_STATE_BUS_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	incl	8(%r12)
LBB0_7:
	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_23
## %bb.8:
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	___c_can_get_berr_counter
	movq	_C_CAN_ERR_CNT_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	*(%r12)
	cmpl	$3, %ebx
	ja	LBB0_22
## %bb.9:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_10:
	movq	_CAN_ERR_CRTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx
	orl	%eax, 16(%rcx)
	movq	_CAN_ERR_CRTL_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rcx), %rcx
	movl	%eax, 4(%rcx)
	movl	-40(%rbp), %eax
	jmp	LBB0_20
LBB0_15:
	movq	_ERR_CNT_RP_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_ERR_CNT_RP_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrl	%cl, %eax
	movq	_CAN_ERR_CRTL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	-48(%rbp), %rcx
	orl	%edx, 16(%rcx)
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movq	_CAN_ERR_CRTL_RX_PASSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rcx), %rdx
	orl	%eax, 4(%rdx)
LBB0_17:
	movl	-40(%rbp), %eax
	cmpl	$127, %eax
	jle	LBB0_18
## %bb.19:
	movq	_CAN_ERR_CRTL_TX_PASSIVE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	(%rcx), %rcx
	orl	%edx, 4(%rcx)
	jmp	LBB0_20
LBB0_21:
	movq	_CAN_ERR_BUSOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx
	orl	%eax, 16(%rcx)
	movq	%r15, %rdi
	callq	_can_bus_off
	jmp	LBB0_22
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_18:
	movq	(%rcx), %rcx
LBB0_20:
	movl	%eax, 24(%rcx)
	movl	-36(%rbp), %eax
	movl	%eax, 28(%rcx)
	jmp	LBB0_22
LBB0_12:
	movq	_CAN_ERR_CRTL_RX_WARNING@GOTPCREL(%rip), %rdx
LBB0_14:
	movl	(%rdx), %edx
	movq	(%rax), %rax
	movl	%edx, 4(%rax)
	movl	%ecx, 24(%rax)
	movl	-36(%rbp), %ecx
	movl	%ecx, 28(%rax)
LBB0_22:
	incl	4(%r15)
	movq	-48(%rbp), %rax
	movl	8(%rax), %eax
	addl	%eax, (%r15)
	movq	%r14, %rdi
	callq	_netif_receive_skb
	movl	$1, %eax
LBB0_23:
	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_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
.set L0_1_set_10, LBB0_10-LJTI0_1
.set L0_1_set_11, LBB0_11-LJTI0_1
.set L0_1_set_15, LBB0_15-LJTI0_1
.set L0_1_set_21, LBB0_21-LJTI0_1
LJTI0_1:
	.long	L0_1_set_10
	.long	L0_1_set_11
	.long	L0_1_set_15
	.long	L0_1_set_21
	.end_data_region
                                        ## -- End function
	.comm	_CAN_STATE_ERROR_ACTIVE,4,2     ## @CAN_STATE_ERROR_ACTIVE
	.comm	_CAN_STATE_ERROR_WARNING,4,2    ## @CAN_STATE_ERROR_WARNING
	.comm	_CAN_STATE_ERROR_PASSIVE,4,2    ## @CAN_STATE_ERROR_PASSIVE
	.comm	_CAN_STATE_BUS_OFF,4,2          ## @CAN_STATE_BUS_OFF
	.comm	_C_CAN_ERR_CNT_REG,4,2          ## @C_CAN_ERR_CNT_REG
	.comm	_ERR_CNT_RP_MASK,4,2            ## @ERR_CNT_RP_MASK
	.comm	_ERR_CNT_RP_SHIFT,4,2           ## @ERR_CNT_RP_SHIFT
	.comm	_CAN_ERR_CRTL,4,2               ## @CAN_ERR_CRTL
	.comm	_CAN_ERR_CRTL_ACTIVE,4,2        ## @CAN_ERR_CRTL_ACTIVE
	.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	_c_can_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 c_can_handle_state_change
_c_can_handle_state_change:             ; @c_can_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	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	sub	w22, w20, #128
	cmp	w22, #3
	b.hi	LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, lJTI0_0@PAGE
Lloh1:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x9, LBB0_2
	ldrb	w10, [x8, x22]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_2:
Lloh2:
	adrp	x8, _CAN_STATE_ERROR_ACTIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CAN_STATE_ERROR_ACTIVE@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	ldr	w8, [x21, #16]
	add	w8, w8, #1
Lloh4:
	adrp	x9, _CAN_STATE_ERROR_WARNING@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CAN_STATE_ERROR_WARNING@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	stp	w8, w9, [x21, #16]
	b	LBB0_7
LBB0_4:
	ldr	w8, [x21, #12]
	add	w8, w8, #1
	str	w8, [x21, #12]
Lloh7:
	adrp	x8, _CAN_STATE_ERROR_PASSIVE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CAN_STATE_ERROR_PASSIVE@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	str	w8, [x21, #20]
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _CAN_STATE_BUS_OFF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CAN_STATE_BUS_OFF@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x21, #20]
	ldr	w8, [x21, #8]
	add	w8, w8, #1
	str	w8, [x21, #8]
LBB0_7:
	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_9
; %bb.8:
	mov	w0, #0
	b	LBB0_21
LBB0_9:
	mov	x1, sp
	mov	x0, x19
	bl	___c_can_get_berr_counter
	ldr	x8, [x21]
Lloh12:
	adrp	x9, _C_CAN_ERR_CNT_REG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _C_CAN_ERR_CNT_REG@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
	mov	x0, x21
	blr	x8
	cmp	w22, #3
	b.hi	LBB0_20
; %bb.10:
Lloh15:
	adrp	x8, lJTI0_1@PAGE
Lloh16:
	add	x8, x8, lJTI0_1@PAGEOFF
	adr	x9, LBB0_11
	ldrb	w10, [x8, x22]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_11:
Lloh17:
	adrp	x8, _CAN_ERR_CRTL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CAN_ERR_CRTL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	ldr	w10, [x9, #16]
	orr	w8, w10, w8
Lloh20:
	adrp	x10, _CAN_ERR_CRTL_ACTIVE@GOTPAGE
Lloh21:
	ldr	x10, [x10, _CAN_ERR_CRTL_ACTIVE@GOTPAGEOFF]
	str	w8, [x9, #16]
Lloh22:
	ldr	w8, [x10]
	ldr	x9, [x9]
	str	w8, [x9, #4]
	ldr	d0, [sp]
	str	d0, [x9, #24]
	b	LBB0_20
LBB0_12:
Lloh23:
	adrp	x8, _ERR_CNT_RP_MASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERR_CNT_RP_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh26:
	adrp	x9, _ERR_CNT_RP_SHIFT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ERR_CNT_RP_SHIFT@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
Lloh29:
	adrp	x10, _CAN_ERR_CRTL@GOTPAGE
Lloh30:
	ldr	x10, [x10, _CAN_ERR_CRTL@GOTPAGEOFF]
	lsr	w9, w8, w9
Lloh31:
	ldr	w10, [x10]
	ldr	x8, [sp, #8]
	ldr	w11, [x8, #16]
	orr	w10, w11, w10
	str	w10, [x8, #16]
	cbz	w9, LBB0_14
; %bb.13:
Lloh32:
	adrp	x9, _CAN_ERR_CRTL_RX_PASSIVE@GOTPAGE
Lloh33:
	ldr	x9, [x9, _CAN_ERR_CRTL_RX_PASSIVE@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	ldr	x10, [x8]
	ldr	w11, [x10, #4]
	orr	w9, w11, w9
	str	w9, [x10, #4]
LBB0_14:
	ldr	w9, [sp]
	cmp	w9, #127
	b.le	LBB0_18
; %bb.15:
Lloh35:
	adrp	x10, _CAN_ERR_CRTL_TX_PASSIVE@GOTPAGE
Lloh36:
	ldr	x10, [x10, _CAN_ERR_CRTL_TX_PASSIVE@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
	ldr	x8, [x8]
	ldr	w11, [x8, #4]
	orr	w10, w11, w10
	str	w10, [x8, #4]
	b	LBB0_19
LBB0_16:
Lloh38:
	adrp	x8, _CAN_ERR_CRTL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _CAN_ERR_CRTL@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	ldr	w10, [x9, #16]
	orr	w8, w10, w8
	str	w8, [x9, #16]
	ldp	w8, w10, [sp]
Lloh41:
	adrp	x11, _CAN_ERR_CRTL_TX_WARNING@GOTPAGE
Lloh42:
	ldr	x11, [x11, _CAN_ERR_CRTL_TX_WARNING@GOTPAGEOFF]
Lloh43:
	adrp	x12, _CAN_ERR_CRTL_RX_WARNING@GOTPAGE
Lloh44:
	ldr	x12, [x12, _CAN_ERR_CRTL_RX_WARNING@GOTPAGEOFF]
	cmp	w8, w10
	csel	x10, x11, x12, gt
	ldr	w10, [x10]
	ldr	x9, [x9]
	str	w10, [x9, #4]
	ldr	w10, [sp, #4]
	stp	w8, w10, [x9, #24]
	b	LBB0_20
LBB0_17:
Lloh45:
	adrp	x8, _CAN_ERR_BUSOFF@GOTPAGE
Lloh46:
	ldr	x8, [x8, _CAN_ERR_BUSOFF@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	ldr	w10, [x9, #16]
	orr	w8, w10, w8
	str	w8, [x9, #16]
	mov	x0, x19
	bl	_can_bus_off
	b	LBB0_20
LBB0_18:
	ldr	x8, [x8]
LBB0_19:
	ldr	w10, [sp, #4]
	stp	w9, w10, [x8, #24]
LBB0_20:
	ldr	x8, [sp, #8]
	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_21:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.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_6-LBB0_2)>>2
lJTI0_1:
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_16-LBB0_11)>>2
	.byte	(LBB0_12-LBB0_11)>>2
	.byte	(LBB0_17-LBB0_11)>>2
                                        ; -- End function
	.comm	_CAN_STATE_ERROR_ACTIVE,4,2     ; @CAN_STATE_ERROR_ACTIVE
	.comm	_CAN_STATE_ERROR_WARNING,4,2    ; @CAN_STATE_ERROR_WARNING
	.comm	_CAN_STATE_ERROR_PASSIVE,4,2    ; @CAN_STATE_ERROR_PASSIVE
	.comm	_CAN_STATE_BUS_OFF,4,2          ; @CAN_STATE_BUS_OFF
	.comm	_C_CAN_ERR_CNT_REG,4,2          ; @C_CAN_ERR_CNT_REG
	.comm	_ERR_CNT_RP_MASK,4,2            ; @ERR_CNT_RP_MASK
	.comm	_ERR_CNT_RP_SHIFT,4,2           ; @ERR_CNT_RP_SHIFT
	.comm	_CAN_ERR_CRTL,4,2               ; @CAN_ERR_CRTL
	.comm	_CAN_ERR_CRTL_ACTIVE,4,2        ; @CAN_ERR_CRTL_ACTIVE
	.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	_c_can_handle_state_change
.subsections_via_symbols
