	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function can_restart
_can_restart:                           ## @can_restart
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_netif_carrier_ok
	movl	%eax, %edi
	callq	_BUG_ON
	movq	%rbx, %rdi
	callq	_can_flush_echo_skb
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_alloc_can_err_skb
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_CAN_ERR_RESTARTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-24(%rbp), %rdx
	orl	%ecx, 8(%rdx)
	movq	%rax, %rdi
	callq	_netif_rx
	incl	4(%rbx)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	addl	%eax, (%rbx)
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_dbg
	incl	8(%r14)
	movq	_CAN_MODE_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	*(%r14)
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_netif_carrier_on
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_netdev_err
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CAN_ERR_RESTARTED,4,2          ## @CAN_ERR_RESTARTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"restarted\n"

	.comm	_CAN_MODE_START,4,2             ## @CAN_MODE_START
L_.str.1:                               ## @.str.1
	.asciz	"Error %d during restart"

	.no_dead_strip	_can_restart
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function can_restart
_can_restart:                           ; @can_restart
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x19
	bl	_netif_carrier_ok
	bl	_BUG_ON
	mov	x0, x19
	bl	_can_flush_echo_skb
	add	x1, sp, #8
	mov	x0, x19
	bl	_alloc_can_err_skb
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _CAN_ERR_RESTARTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAN_ERR_RESTARTED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	ldr	w10, [x9, #8]
	orr	w8, w10, w8
	str	w8, [x9, #8]
	bl	_netif_rx
	ldr	x8, [sp, #8]
	ldr	d0, [x19]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x8]
	add.2s	v0, v0, v1
	str	d0, [x19]
LBB0_2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _CAN_MODE_START@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CAN_MODE_START@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	mov	x0, x19
	bl	_netif_carrier_on
	cbz	w20, LBB0_4
; %bb.3:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_netdev_err
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CAN_ERR_RESTARTED,4,2          ; @CAN_ERR_RESTARTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"restarted\n"

	.comm	_CAN_MODE_START,4,2             ; @CAN_MODE_START
l_.str.1:                               ; @.str.1
	.asciz	"Error %d during restart"

	.no_dead_strip	_can_restart
.subsections_via_symbols
