	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carl9170_op_stop
_carl9170_op_stop:                      ## @carl9170_op_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	movq	_CARL9170_STARTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CARL9170_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_carl9170_set_state_when
	movl	8(%rbx), %edi
	callq	_ieee80211_stop_queues
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_IS_ACCEPTING_CMD
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %edi
	xorl	%esi, %esi
	callq	_RCU_INIT_POINTER
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_carl9170_led_set_state
	movq	_AR9170_MAC_REG_DMA_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_carl9170_write_reg
	movq	%rbx, %rdi
	callq	_carl9170_usb_stop
LBB0_2:
	movq	%rbx, %rdi
	callq	_carl9170_zap_queues
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_carl9170_cancel_worker         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CARL9170_STARTED,4,2           ## @CARL9170_STARTED
	.comm	_CARL9170_IDLE,4,2              ## @CARL9170_IDLE
	.comm	_AR9170_MAC_REG_DMA_TRIGGER,4,2 ## @AR9170_MAC_REG_DMA_TRIGGER
	.no_dead_strip	_carl9170_op_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carl9170_op_stop
_carl9170_op_stop:                      ; @carl9170_op_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	x8, _CARL9170_STARTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CARL9170_STARTED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _CARL9170_IDLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CARL9170_IDLE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_carl9170_set_state_when
	ldr	w0, [x19, #8]
	bl	_ieee80211_stop_queues
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	bl	_IS_ACCEPTING_CMD
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
	mov	x1, #0
	bl	_RCU_INIT_POINTER
	mov	x0, x19
	mov	w1, #0
	bl	_carl9170_led_set_state
Lloh6:
	adrp	x8, _AR9170_MAC_REG_DMA_TRIGGER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AR9170_MAC_REG_DMA_TRIGGER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_carl9170_write_reg
	mov	x0, x19
	bl	_carl9170_usb_stop
LBB0_2:
	mov	x0, x19
	bl	_carl9170_zap_queues
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_carl9170_cancel_worker
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CARL9170_STARTED,4,2           ; @CARL9170_STARTED
	.comm	_CARL9170_IDLE,4,2              ; @CARL9170_IDLE
	.comm	_AR9170_MAC_REG_DMA_TRIGGER,4,2 ; @AR9170_MAC_REG_DMA_TRIGGER
	.no_dead_strip	_carl9170_op_stop
.subsections_via_symbols
