	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m_can_close
_m_can_close:                           ## @m_can_close
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_netif_stop_queue
	cmpq	$0, 16(%r14)
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	addq	$24, %rdi
	callq	_napi_disable
LBB0_2:
	movq	%rbx, %rdi
	callq	_m_can_stop
	movq	%r14, %rdi
	callq	_m_can_clk_stop
	movl	(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	cmpq	$0, 16(%r14)
	je	LBB0_4
## %bb.3:
	movq	$0, 8(%r14)
	movq	(%r14), %rdi
	callq	_destroy_workqueue
	movq	$0, (%r14)
LBB0_4:
	movq	%rbx, %rdi
	callq	_close_candev
	movq	_CAN_LED_EVENT_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_can_led_event
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAN_LED_EVENT_STOP,4,2         ## @CAN_LED_EVENT_STOP
	.no_dead_strip	_m_can_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m_can_close
_m_can_close:                           ; @m_can_close
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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_stop_queue
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_2
; %bb.1:
	add	x0, x20, #24
	bl	_napi_disable
LBB0_2:
	mov	x0, x19
	bl	_m_can_stop
	mov	x0, x20
	bl	_m_can_clk_stop
	ldr	w0, [x19]
	mov	x1, x19
	bl	_free_irq
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
; %bb.3:
	str	xzr, [x20, #8]
	ldr	x0, [x20]
	bl	_destroy_workqueue
	str	xzr, [x20]
LBB0_4:
	mov	x0, x19
	bl	_close_candev
Lloh0:
	adrp	x8, _CAN_LED_EVENT_STOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAN_LED_EVENT_STOP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_can_led_event
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CAN_LED_EVENT_STOP,4,2         ; @CAN_LED_EVENT_STOP
	.no_dead_strip	_m_can_close
.subsections_via_symbols
