	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_shutdown_drv           ## -- Begin function mwifiex_shutdown_drv
	.p2align	4, 0x90
_mwifiex_shutdown_drv:                  ## @mwifiex_shutdown_drv
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_MWIFIEX_HW_STATUS_NOT_READY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.1:
	movq	%rdi, %r13
	cmpq	$0, 48(%rdi)
	je	LBB0_3
## %bb.2:
	movq	_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	callq	_mwifiex_dbg
	leaq	56(%r13), %rdi
	callq	_del_timer_sync
	movq	48(%r13), %rsi
	movq	%r13, %rdi
	callq	_mwifiex_recycle_cmd_node
	movq	$0, 48(%r13)
LBB0_3:
	movq	_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	callq	_mwifiex_dbg
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpq	%rax, %rbx
	jae	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rcx
	movq	(%rcx,%rbx,8), %r14
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_mwifiex_clean_auto_tdls
	movq	%r14, %rdi
	callq	_mwifiex_abort_cac
	movq	%r14, %rdi
	callq	_mwifiex_free_priv
	movq	8(%r13), %rax
	jmp	LBB0_7
LBB0_8:
	leaq	44(%r13), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	40(%r13), %rbx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_skb_dequeue
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_mwifiex_write_data_complete
	jmp	LBB0_10
LBB0_11:
	leaq	16(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_bh
	leaq	36(%r13), %r15
	movq	%r15, %rdi
	callq	_skb_dequeue
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	movq	%rax, %rbx
	leaq	32(%r13), %r12
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	callq	_dev_kfree_skb_any
	movq	%r15, %rdi
	callq	_skb_dequeue
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_16
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_MWIFIEX_SKB_RXCB
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_atomic_dec
	movq	24(%r13), %rax
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	incl	(%rax)
	jmp	LBB0_15
LBB0_16:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_bh
	movq	%r13, %rdi
	callq	_mwifiex_adapter_cleanup
	movq	_MWIFIEX_HW_STATUS_NOT_READY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MWIFIEX_HW_STATUS_NOT_READY,8,3 ## @MWIFIEX_HW_STATUS_NOT_READY
	.comm	_WARN,4,2                       ## @WARN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"curr_cmd is still in processing\n"

	.comm	_MSG,4,2                        ## @MSG
L_.str.1:                               ## @.str.1
	.asciz	"info: shutdown mwifiex...\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_shutdown_drv           ; -- Begin function mwifiex_shutdown_drv
	.p2align	2
_mwifiex_shutdown_drv:                  ; @mwifiex_shutdown_drv
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x8, [x0]
Lloh0:
	adrp	x25, _MWIFIEX_HW_STATUS_NOT_READY@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MWIFIEX_HW_STATUS_NOT_READY@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_17
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #48]
	cbz	x8, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _WARN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WARN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	add	x0, x19, #56
	bl	_del_timer_sync
	ldr	x1, [x19, #48]
	mov	x0, x19
	bl	_mwifiex_recycle_cmd_node
	str	xzr, [x19, #48]
LBB0_3:
Lloh7:
	adrp	x8, _MSG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSG@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.4:
	mov	x21, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	cmp	x21, x8
	b.hs	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #24]
	ldr	x20, [x9, x21, lsl #3]
	cbz	x20, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_mwifiex_clean_auto_tdls
	mov	x0, x20
	bl	_mwifiex_abort_cac
	mov	x0, x20
	bl	_mwifiex_free_priv
	ldr	x8, [x19, #8]
	b	LBB0_5
LBB0_8:
	add	x0, x19, #44
	mov	w1, #0
	bl	_atomic_set
	add	x20, x19, #40
	mov	x0, x20
	bl	_skb_dequeue
	cbz	x0, LBB0_11
; %bb.9:
	mov	x1, x0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_mwifiex_write_data_complete
	mov	x0, x20
	bl	_skb_dequeue
	mov	x1, x0
	cbnz	x0, LBB0_10
LBB0_11:
	add	x20, x19, #16
	mov	x0, x20
	bl	_spin_lock_bh
	add	x21, x19, #36
	mov	x0, x21
	bl	_skb_dequeue
	cbz	x0, LBB0_16
; %bb.12:
	mov	x23, x0
	add	x22, x19, #32
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x23
	bl	_dev_kfree_skb_any
	mov	x0, x21
	bl	_skb_dequeue
	mov	x23, x0
	cbz	x0, LBB0_16
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_MWIFIEX_SKB_RXCB
	mov	x24, x0
	mov	x0, x22
	bl	_atomic_dec
	ldr	x8, [x19, #24]
	ldr	x9, [x24]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_13
LBB0_16:
	mov	x0, x20
	bl	_spin_unlock_bh
	mov	x0, x19
	bl	_mwifiex_adapter_cleanup
	ldr	x8, [x25]
	str	x8, [x19]
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MWIFIEX_HW_STATUS_NOT_READY,8,3 ; @MWIFIEX_HW_STATUS_NOT_READY
	.comm	_WARN,4,2                       ; @WARN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"curr_cmd is still in processing\n"

	.comm	_MSG,4,2                        ; @MSG
l_.str.1:                               ; @.str.1
	.asciz	"info: shutdown mwifiex...\n"

.subsections_via_symbols
