	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar5523_stop
_ar5523_stop:                           ## @ar5523_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ar5523_dbg
	leaq	20(%rbx), %rdi
	callq	_cancel_delayed_work_sync
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_AR5523_HW_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %rsi
	callq	_clear_bit
	movq	_UATH_LED_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_UATH_LED_OFF@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_ar5523_set_ledsteady
	movq	_UATH_LED_ACTIVITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_ar5523_set_ledsteady
	movq	_WDCMSG_TARGET_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ar5523_cmd_write
	leaq	12(%rbx), %rdi
	callq	_del_timer_sync
	leaq	8(%rbx), %rdi
	callq	_cancel_work_sync
	leaq	4(%rbx), %rdi
	callq	_cancel_work_sync
	movq	%rbx, %rdi
	callq	_ar5523_cancel_rx_bufs
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stop called\n"

	.comm	_AR5523_HW_UP,4,2               ## @AR5523_HW_UP
	.comm	_UATH_LED_LINK,4,2              ## @UATH_LED_LINK
	.comm	_UATH_LED_OFF,4,2               ## @UATH_LED_OFF
	.comm	_UATH_LED_ACTIVITY,4,2          ## @UATH_LED_ACTIVITY
	.comm	_WDCMSG_TARGET_STOP,4,2         ## @WDCMSG_TARGET_STOP
	.no_dead_strip	_ar5523_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar5523_stop
_ar5523_stop:                           ; @ar5523_stop
	.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
	ldr	x19, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ar5523_dbg
	add	x0, x19, #20
	bl	_cancel_delayed_work_sync
	mov	x0, x19
	bl	_mutex_lock
Lloh2:
	adrp	x8, _AR5523_HW_UP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AR5523_HW_UP@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_clear_bit
Lloh5:
	adrp	x8, _UATH_LED_LINK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UATH_LED_LINK@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x20, _UATH_LED_OFF@GOTPAGE
Lloh9:
	ldr	x20, [x20, _UATH_LED_OFF@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_ar5523_set_ledsteady
Lloh10:
	adrp	x8, _UATH_LED_ACTIVITY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _UATH_LED_ACTIVITY@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_ar5523_set_ledsteady
Lloh13:
	adrp	x8, _WDCMSG_TARGET_STOP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WDCMSG_TARGET_STOP@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_ar5523_cmd_write
	add	x0, x19, #12
	bl	_del_timer_sync
	add	x0, x19, #8
	bl	_cancel_work_sync
	add	x0, x19, #4
	bl	_cancel_work_sync
	mov	x0, x19
	bl	_ar5523_cancel_rx_bufs
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stop called\n"

	.comm	_AR5523_HW_UP,4,2               ; @AR5523_HW_UP
	.comm	_UATH_LED_LINK,4,2              ; @UATH_LED_LINK
	.comm	_UATH_LED_OFF,4,2               ; @UATH_LED_OFF
	.comm	_UATH_LED_ACTIVITY,4,2          ; @UATH_LED_ACTIVITY
	.comm	_WDCMSG_TARGET_STOP,4,2         ; @WDCMSG_TARGET_STOP
	.no_dead_strip	_ar5523_stop
.subsections_via_symbols
