	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xcan_update_error_state_after_rxtx
_xcan_update_error_state_after_rxtx:    ## @xcan_update_error_state_after_rxtx
	.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
	movq	%rdi, %r12
	callq	_netdev_priv
	movl	(%rax), %ebx
	movq	_CAN_STATE_ERROR_WARNING@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_2
## %bb.1:
	movq	_CAN_STATE_ERROR_PASSIVE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_7
LBB0_2:
	movq	%r12, %rdi
	callq	_xcan_current_error_state
	cmpl	%ebx, %eax
	je	LBB0_7
## %bb.3:
	movl	%eax, %r15d
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	_alloc_can_err_skb
	movq	%rax, %r14
	movq	%rax, %rdx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	-40(%rbp), %rdx
LBB0_5:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_xcan_set_error_state
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	incl	4(%r12)
	movq	-40(%rbp), %rax
	movl	(%rax), %eax
	addl	%eax, (%r12)
	movq	%r14, %rdi
	callq	_netif_rx
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAN_STATE_ERROR_WARNING,4,2    ## @CAN_STATE_ERROR_WARNING
	.comm	_CAN_STATE_ERROR_PASSIVE,4,2    ## @CAN_STATE_ERROR_PASSIVE
	.no_dead_strip	_xcan_update_error_state_after_rxtx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xcan_update_error_state_after_rxtx
_xcan_update_error_state_after_rxtx:    ; @xcan_update_error_state_after_rxtx
	.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	x19, x0
	bl	_netdev_priv
	ldr	w20, [x0]
Lloh0:
	adrp	x8, _CAN_STATE_ERROR_WARNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAN_STATE_ERROR_WARNING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CAN_STATE_ERROR_PASSIVE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CAN_STATE_ERROR_PASSIVE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w20, w8
	ccmp	w20, w9, #4, ne
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_xcan_current_error_state
	cmp	w0, w20
	b.eq	LBB0_4
; %bb.2:
	mov	x21, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_alloc_can_err_skb
	mov	x20, x0
	ldr	x8, [sp, #8]
	cmp	x0, #0
	csel	x2, xzr, x8, eq
	mov	x0, x19
	mov	x1, x21
	bl	_xcan_set_error_state
	cbz	x20, LBB0_4
; %bb.3:
	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, x20
	bl	_netif_rx
LBB0_4:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CAN_STATE_ERROR_WARNING,4,2    ; @CAN_STATE_ERROR_WARNING
	.comm	_CAN_STATE_ERROR_PASSIVE,4,2    ; @CAN_STATE_ERROR_PASSIVE
	.no_dead_strip	_xcan_update_error_state_after_rxtx
.subsections_via_symbols
