	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_drv_stop                   ## -- Begin function iwl_drv_stop
	.p2align	4, 0x90
_iwl_drv_stop:                          ## @iwl_drv_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
	addq	$16, %rdi
	callq	_wait_for_completion
	movq	%rbx, %rdi
	callq	__iwl_op_mode_stop
	movq	%rbx, %rdi
	callq	_iwl_dealloc_ucode
	movq	_iwlwifi_opmode_table_mtx@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_list_del
LBB0_2:
	movq	_iwlwifi_opmode_table_mtx@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	(%rbx), %rdi
	callq	_iwl_dbg_tlv_free
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_iwlwifi_opmode_table_mtx,4,2   ## @iwlwifi_opmode_table_mtx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_drv_stop                   ; -- Begin function iwl_drv_stop
	.p2align	2
_iwl_drv_stop:                          ; @iwl_drv_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
	mov	x19, x0
	add	x0, x0, #16
	bl	_wait_for_completion
	mov	x0, x19
	bl	__iwl_op_mode_stop
	mov	x0, x19
	bl	_iwl_dealloc_ucode
Lloh0:
	adrp	x0, _iwlwifi_opmode_table_mtx@GOTPAGE
Lloh1:
	ldr	x0, [x0, _iwlwifi_opmode_table_mtx@GOTPAGEOFF]
	bl	_mutex_lock
	add	x20, x19, #12
	mov	x0, x20
	bl	_list_empty
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_list_del
LBB0_2:
Lloh2:
	adrp	x0, _iwlwifi_opmode_table_mtx@GOTPAGE
Lloh3:
	ldr	x0, [x0, _iwlwifi_opmode_table_mtx@GOTPAGEOFF]
	bl	_mutex_unlock
	ldr	x0, [x19]
	bl	_iwl_dbg_tlv_free
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_iwlwifi_opmode_table_mtx,4,2   ; @iwlwifi_opmode_table_mtx
.subsections_via_symbols
