	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_can_restart                    ## -- Begin function can_restart
	.p2align	4, 0x90
_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -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
	movl	$16, %edi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r15
	movq	%rbx, 8(%rax)
	movq	_ETH_P_CAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, (%r15)
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_skb_put
	movq	%rax, %r12
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_CAN_ERR_FLAG@GOTPCREL(%rip), %rax
	movq	_CAN_ERR_RESTARTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r12)
	movq	_CAN_ERR_DLC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	movq	%r15, %rdi
	callq	_netif_rx
	incl	8(%rbx)
	movl	8(%r12), %eax
	addl	%eax, 4(%rbx)
LBB0_2:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_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_3
## %bb.4:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ETH_P_CAN,4,2                  ## @ETH_P_CAN
	.comm	_CAN_ERR_FLAG,4,2               ## @CAN_ERR_FLAG
	.comm	_CAN_ERR_RESTARTED,4,2          ## @CAN_ERR_RESTARTED
	.comm	_CAN_ERR_DLC,8,3                ## @CAN_ERR_DLC
	.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"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_can_restart                    ; -- Begin function can_restart
	.p2align	2
_can_restart:                           ; @can_restart
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	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
	mov	w0, #16
	bl	_dev_alloc_skb
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	str	x19, [x0, #8]
Lloh0:
	adrp	x8, _ETH_P_CAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_CAN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htons
	str	w0, [x21]
	mov	x0, x21
	mov	w1, #16
	bl	_skb_put
	mov	x22, x0
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh3:
	adrp	x8, _CAN_ERR_FLAG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAN_ERR_FLAG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _CAN_ERR_RESTARTED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CAN_ERR_RESTARTED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x22]
Lloh9:
	adrp	x8, _CAN_ERR_DLC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CAN_ERR_DLC@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	add	x23, x22, #8
	str	x8, [x22, #8]
	mov	x0, x21
	bl	_netif_rx
	ldur	d0, [x19, #4]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x23]
	add.2s	v0, v0, v1
	stur	d0, [x19, #4]
LBB0_2:
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	ldr	x8, [x20]
Lloh14:
	adrp	x9, _CAN_MODE_START@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CAN_MODE_START@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	mov	x0, x19
	bl	_netif_carrier_on
	cbz	w20, LBB0_4
; %bb.3:
	ldr	w0, [x19]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dev_err
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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ETH_P_CAN,4,2                  ; @ETH_P_CAN
	.comm	_CAN_ERR_FLAG,4,2               ; @CAN_ERR_FLAG
	.comm	_CAN_ERR_RESTARTED,4,2          ; @CAN_ERR_RESTARTED
	.comm	_CAN_ERR_DLC,8,3                ; @CAN_ERR_DLC
	.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"

.subsections_via_symbols
