	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hi3110_stop
_hi3110_stop:                           ## @hi3110_stop
	.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, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	24(%rax), %r15
	movq	%r14, %rdi
	callq	_close_candev
	movl	$1, (%rbx)
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movq	16(%rbx), %rdi
	callq	_destroy_workqueue
	movq	$0, 16(%rbx)
	leaq	4(%rbx), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	_HI3110_WRITE_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_hi3110_write
	movq	_HI3110_WRITE_INTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_hi3110_write
	movq	_HI3110_READ_INTF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_hi3110_read
	movq	%r14, %rdi
	callq	_hi3110_clean
	movq	%r15, %rdi
	callq	_hi3110_hw_sleep
	movl	12(%rbx), %edi
	xorl	%esi, %esi
	callq	_hi3110_power_enable
	movq	_CAN_STATE_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	_CAN_LED_EVENT_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_can_led_event
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HI3110_WRITE_CTRL1,4,2         ## @HI3110_WRITE_CTRL1
	.comm	_HI3110_WRITE_INTE,4,2          ## @HI3110_WRITE_INTE
	.comm	_HI3110_READ_INTF,4,2           ## @HI3110_READ_INTF
	.comm	_CAN_STATE_STOPPED,4,2          ## @CAN_STATE_STOPPED
	.comm	_CAN_LED_EVENT_STOP,4,2         ## @CAN_LED_EVENT_STOP
	.no_dead_strip	_hi3110_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hi3110_stop
_hi3110_stop:                           ; @hi3110_stop
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x21, [x0, #24]
	mov	x0, x19
	bl	_close_candev
	mov	w8, #1
	str	w8, [x20]
	ldr	w0, [x21]
	mov	x1, x20
	bl	_free_irq
	ldr	x0, [x20, #16]
	bl	_destroy_workqueue
	str	xzr, [x20, #16]
	add	x22, x20, #4
	mov	x0, x22
	bl	_mutex_lock
Lloh0:
	adrp	x8, _HI3110_WRITE_CTRL1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HI3110_WRITE_CTRL1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_hi3110_write
Lloh3:
	adrp	x8, _HI3110_WRITE_INTE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HI3110_WRITE_INTE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_hi3110_write
Lloh6:
	adrp	x8, _HI3110_READ_INTF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HI3110_READ_INTF@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_hi3110_read
	mov	x0, x19
	bl	_hi3110_clean
	mov	x0, x21
	bl	_hi3110_hw_sleep
	ldr	w0, [x20, #12]
	mov	w1, #0
	bl	_hi3110_power_enable
Lloh9:
	adrp	x8, _CAN_STATE_STOPPED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CAN_STATE_STOPPED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	mov	x0, x22
	bl	_mutex_unlock
Lloh12:
	adrp	x8, _CAN_LED_EVENT_STOP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CAN_LED_EVENT_STOP@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_can_led_event
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HI3110_WRITE_CTRL1,4,2         ; @HI3110_WRITE_CTRL1
	.comm	_HI3110_WRITE_INTE,4,2          ; @HI3110_WRITE_INTE
	.comm	_HI3110_READ_INTF,4,2           ; @HI3110_READ_INTF
	.comm	_CAN_STATE_STOPPED,4,2          ; @CAN_STATE_STOPPED
	.comm	_CAN_LED_EVENT_STOP,4,2         ; @CAN_LED_EVENT_STOP
	.no_dead_strip	_hi3110_stop
.subsections_via_symbols
