	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_cfg80211_stop_ap
_mwifiex_cfg80211_stop_ap:              ## @mwifiex_cfg80211_stop_ap
	.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	%rsi, %rdi
	callq	_mwifiex_netdev_get_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mwifiex_abort_cac
	movq	%rbx, %rdi
	callq	_mwifiex_del_mgmt_ies
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_mwifiex_dbg
LBB0_2:
	movq	$0, 16(%rbx)
	movq	%rbx, %rdi
	addq	$8, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_HostCmd_CMD_UAP_BSS_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HostCmd_ACT_GEN_SET@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_mwifiex_send_cmd
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	(%rbx), %edi
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_4
LBB0_5:
	movq	_HOST_CMD_APCMD_SYS_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_mwifiex_send_cmd
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%rbx), %edi
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_4:
	callq	_mwifiex_dbg
	movl	$-1, %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movl	4(%rbx), %edi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	4(%rbx), %edi
	callq	_netif_carrier_off
LBB0_9:
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_mwifiex_stop_net_dev_queue
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to delete mgmt IEs!\n"

	.comm	_HostCmd_CMD_UAP_BSS_STOP,4,2   ## @HostCmd_CMD_UAP_BSS_STOP
	.comm	_HostCmd_ACT_GEN_SET,4,2        ## @HostCmd_ACT_GEN_SET
L_.str.1:                               ## @.str.1
	.asciz	"Failed to stop the BSS\n"

	.comm	_HOST_CMD_APCMD_SYS_RESET,4,2   ## @HOST_CMD_APCMD_SYS_RESET
L_.str.2:                               ## @.str.2
	.asciz	"Failed to reset BSS\n"

	.no_dead_strip	_mwifiex_cfg80211_stop_ap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_cfg80211_stop_ap
_mwifiex_cfg80211_stop_ap:              ; @mwifiex_cfg80211_stop_ap
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x0, x1
	bl	_mwifiex_netdev_get_priv
	mov	x19, x0
	bl	_mwifiex_abort_cac
	mov	x0, x19
	bl	_mwifiex_del_mgmt_ies
Lloh0:
	adrp	x20, _ERROR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ERROR@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	ldr	w1, [x20]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_mwifiex_dbg
LBB0_2:
	str	xzr, [x19, #16]
	add	x0, x19, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh4:
	adrp	x8, _HostCmd_CMD_UAP_BSS_STOP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HostCmd_CMD_UAP_BSS_STOP@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x21, _HostCmd_ACT_GEN_SET@GOTPAGE
Lloh8:
	ldr	x21, [x21, _HostCmd_ACT_GEN_SET@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	w3, #0
	mov	x4, #0
	mov	w5, #1
	bl	_mwifiex_send_cmd
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x19]
	ldr	w1, [x20]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x8, _HOST_CMD_APCMD_SYS_RESET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HOST_CMD_APCMD_SYS_RESET@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	mov	w3, #0
	mov	x4, #0
	mov	w5, #1
	bl	_mwifiex_send_cmd
	cbz	x0, LBB0_8
; %bb.5:
	ldr	w0, [x19]
	ldr	w1, [x20]
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_6:
	bl	_mwifiex_dbg
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w0, [x19, #4]
	bl	_netif_carrier_ok
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w0, [x19, #4]
	bl	_netif_carrier_off
LBB0_10:
	ldp	w1, w0, [x19]
	bl	_mwifiex_stop_net_dev_queue
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to delete mgmt IEs!\n"

	.comm	_HostCmd_CMD_UAP_BSS_STOP,4,2   ; @HostCmd_CMD_UAP_BSS_STOP
	.comm	_HostCmd_ACT_GEN_SET,4,2        ; @HostCmd_ACT_GEN_SET
l_.str.1:                               ; @.str.1
	.asciz	"Failed to stop the BSS\n"

	.comm	_HOST_CMD_APCMD_SYS_RESET,4,2   ; @HOST_CMD_APCMD_SYS_RESET
l_.str.2:                               ; @.str.2
	.asciz	"Failed to reset BSS\n"

	.no_dead_strip	_mwifiex_cfg80211_stop_ap
.subsections_via_symbols
