	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_deinit_priv_params
_mwifiex_deinit_priv_params:            ## @mwifiex_deinit_priv_params
	.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, %rbx
	movq	32(%rdi), %r14
	leaq	24(%rdi), %r8
	movq	$0, 24(%rdi)
	movq	_HostCmd_CMD_MGMT_FRAME_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HostCmd_ACT_GEN_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_mwifiex_send_cmd
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_mwifiex_dbg
	movl	$-1, %eax
	jmp	LBB0_7
LBB0_2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_mwifiex_deauthenticate
	leaq	24(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	$1, (%r14)
	movq	32(%r14), %r12
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	movl	28(%r14), %edi
	callq	_flush_workqueue
LBB0_4:
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movl	$1, 4(%r14)
	movq	16(%r14), %r12
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	testq	%r12, %r12
	je	LBB0_6
## %bb.5:
	movl	12(%r14), %edi
	callq	_flush_workqueue
LBB0_6:
	movq	%rbx, %rdi
	callq	_mwifiex_free_priv
	movq	_NL80211_IFTYPE_UNSPECIFIED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	%rax, 8(%rbx)
	movq	_NL80211_AUTHTYPE_OPEN_SYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HostCmd_CMD_MGMT_FRAME_REG,4,2 ## @HostCmd_CMD_MGMT_FRAME_REG
	.comm	_HostCmd_ACT_GEN_SET,4,2        ## @HostCmd_ACT_GEN_SET
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not unregister mgmt frame rx\n"

	.comm	_NL80211_IFTYPE_UNSPECIFIED,8,3 ## @NL80211_IFTYPE_UNSPECIFIED
	.comm	_NL80211_AUTHTYPE_OPEN_SYSTEM,4,2 ## @NL80211_AUTHTYPE_OPEN_SYSTEM
	.no_dead_strip	_mwifiex_deinit_priv_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_deinit_priv_params
_mwifiex_deinit_priv_params:            ; @mwifiex_deinit_priv_params
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x20, [x0, #32]
	mov	x4, x0
	str	xzr, [x4, #24]!
Lloh0:
	adrp	x8, _HostCmd_CMD_MGMT_FRAME_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HostCmd_CMD_MGMT_FRAME_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _HostCmd_ACT_GEN_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HostCmd_ACT_GEN_SET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w3, #0
	mov	w5, #0
	bl	_mwifiex_send_cmd
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_mwifiex_dbg
	mov	w0, #-1
	b	LBB0_7
LBB0_2:
	mov	x0, x19
	mov	x1, #0
	bl	_mwifiex_deauthenticate
	add	x21, x20, #24
	mov	x0, x21
	bl	_spin_lock_irqsave
	mov	w22, #1
	str	w22, [x20]
	ldr	x23, [x20, #32]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cbz	x23, LBB0_4
; %bb.3:
	ldr	w0, [x20, #28]
	bl	_flush_workqueue
LBB0_4:
	add	x21, x20, #8
	mov	x0, x21
	bl	_spin_lock_bh
	str	w22, [x20, #4]
	ldr	x22, [x20, #16]
	mov	x0, x21
	bl	_spin_unlock_bh
	cbz	x22, LBB0_6
; %bb.5:
	ldr	w0, [x20, #12]
	bl	_flush_workqueue
LBB0_6:
	mov	x0, x19
	bl	_mwifiex_free_priv
	mov	w0, #0
Lloh11:
	adrp	x8, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	stp	x8, x8, [x19, #8]
Lloh14:
	adrp	x8, _NL80211_AUTHTYPE_OPEN_SYSTEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NL80211_AUTHTYPE_OPEN_SYSTEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HostCmd_CMD_MGMT_FRAME_REG,4,2 ; @HostCmd_CMD_MGMT_FRAME_REG
	.comm	_HostCmd_ACT_GEN_SET,4,2        ; @HostCmd_ACT_GEN_SET
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not unregister mgmt frame rx\n"

	.comm	_NL80211_IFTYPE_UNSPECIFIED,8,3 ; @NL80211_IFTYPE_UNSPECIFIED
	.comm	_NL80211_AUTHTYPE_OPEN_SYSTEM,4,2 ; @NL80211_AUTHTYPE_OPEN_SYSTEM
	.no_dead_strip	_mwifiex_deinit_priv_params
.subsections_via_symbols
