	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_canfd_state_change
_rcar_canfd_state_change:               ## @rcar_canfd_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_netdev_priv
	movl	(%rax), %ecx
	cmpl	$95, %r15d
	jg	LBB0_3
## %bb.1:
	cmpl	$95, %r14d
	jg	LBB0_3
## %bb.2:
	movq	_CAN_STATE_ERROR_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmpl	%ecx, %ebx
	jne	LBB0_7
	jmp	LBB0_10
LBB0_3:
	movl	%ecx, %ebx
	cmpl	$128, %r14d
	jge	LBB0_5
## %bb.4:
	movq	_CAN_STATE_ERROR_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_5:
	cmpl	$128, %r15d
	cmovgel	%ecx, %ebx
	cmpl	%ecx, %ebx
	je	LBB0_10
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	movl	%r15d, %r8d
	movl	%r14d, %r9d
	callq	_netdev_dbg
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_alloc_can_err_skb
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r13
	xorl	%eax, %eax
	cmpl	%r14d, %r15d
	movl	%ebx, %edx
	cmovll	%eax, %edx
	cmovgl	%eax, %ebx
	movq	-48(%rbp), %rsi
	movq	%r12, %rdi
	movl	%ebx, %ecx
	callq	_can_change_state
	incl	4(%r12)
	movq	-48(%rbp), %rax
	movl	(%rax), %eax
	addl	%eax, (%r12)
	movq	%r13, %rdi
	callq	_netif_rx
	jmp	LBB0_10
LBB0_8:
	incl	8(%r12)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAN_STATE_ERROR_ACTIVE,4,2     ## @CAN_STATE_ERROR_ACTIVE
	.comm	_CAN_STATE_ERROR_WARNING,4,2    ## @CAN_STATE_ERROR_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"state: new %d, old %d: txerr %u, rxerr %u\n"

	.no_dead_strip	_rcar_canfd_state_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_canfd_state_change
_rcar_canfd_state_change:               ; @rcar_canfd_state_change
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	ldr	w3, [x0]
	cmp	w21, #95
	b.gt	LBB0_3
; %bb.1:
	cmp	w20, #95
	b.gt	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _CAN_STATE_ERROR_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAN_STATE_ERROR_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	cmp	w22, w3
	b.ne	LBB0_4
	b	LBB0_7
LBB0_3:
	cmp	w20, #128
	mov	w8, #128
	ccmp	w21, w8, #0, lt
Lloh3:
	adrp	x8, _CAN_STATE_ERROR_WARNING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAN_STATE_ERROR_WARNING@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	csel	w22, w8, w3, lt
	cmp	w22, w3
	b.eq	LBB0_7
LBB0_4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	mov	x4, x21
	mov	x5, x20
	bl	_netdev_dbg
	add	x1, sp, #8
	mov	x0, x19
	bl	_alloc_can_err_skb
	cbz	x0, LBB0_6
; %bb.5:
	mov	x23, x0
	cmp	w21, w20
	csel	w2, wzr, w22, lt
	csel	w3, wzr, w22, gt
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_can_change_state
	ldr	x8, [sp, #8]
	ldr	d0, [x19]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x8]
	add.2s	v0, v0, v1
	str	d0, [x19]
	mov	x0, x23
	bl	_netif_rx
	b	LBB0_7
LBB0_6:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_7:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CAN_STATE_ERROR_ACTIVE,4,2     ; @CAN_STATE_ERROR_ACTIVE
	.comm	_CAN_STATE_ERROR_WARNING,4,2    ; @CAN_STATE_ERROR_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"state: new %d, old %d: txerr %u, rxerr %u\n"

	.no_dead_strip	_rcar_canfd_state_change
.subsections_via_symbols
