	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil_cfg80211_stop_ap
_wil_cfg80211_stop_ap:                  ## @wil_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_wiphy_to_wil
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_ndev_to_vif
	movq	%rax, %rbx
	movl	52(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_wil_dbg_misc
	movq	%r15, %rdi
	callq	_netif_carrier_off
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_wil_has_other_active_ifaces
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_WIL_DEFAULT_BUS_REQUEST_KBPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wil6210_bus_request
	movq	_fw_recovery_idle@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wil_set_recovery_state
	movq	_wil_status_resetting@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %esi
	callq	_set_bit
LBB0_2:
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_wmi_pcp_stop
	movq	_wil_vif_ft_roam@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	48(%rbx), %esi
	callq	_clear_bit
	movq	$0, 40(%rbx)
	leaq	32(%rbx), %rdi
	leaq	28(%rbx), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_wil_memdup_ie
	leaq	24(%rbx), %rdi
	leaq	20(%rbx), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_wil_memdup_ie
	leaq	16(%rbx), %rdi
	movq	%rbx, %rsi
	addq	$12, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_wil_memdup_ie
	movl	8(%rbx), %edi
	movq	_WMI_MAX_KEY_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	$0, (%rbx)
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_wil_bcast_fini
	jmp	LBB0_5
LBB0_3:
	movq	%r14, %rdi
	callq	___wil_down
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stop_ap, mid=%d\n"

	.comm	_WIL_DEFAULT_BUS_REQUEST_KBPS,4,2 ## @WIL_DEFAULT_BUS_REQUEST_KBPS
	.comm	_fw_recovery_idle,4,2           ## @fw_recovery_idle
	.comm	_wil_status_resetting,4,2       ## @wil_status_resetting
	.comm	_wil_vif_ft_roam,4,2            ## @wil_vif_ft_roam
	.comm	_WMI_MAX_KEY_LEN,4,2            ## @WMI_MAX_KEY_LEN
	.no_dead_strip	_wil_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 wil_cfg80211_stop_ap
_wil_cfg80211_stop_ap:                  ; @wil_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	x21, x1
	bl	_wiphy_to_wil
	mov	x19, x0
	mov	x0, x21
	bl	_ndev_to_vif
	mov	x20, x0
	ldr	w2, [x0, #52]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wil_dbg_misc
	mov	x0, x21
	bl	_netif_carrier_off
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	mov	w3, #1
	bl	_wil_has_other_active_ifaces
	mov	x21, x0
	cbnz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _WIL_DEFAULT_BUS_REQUEST_KBPS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WIL_DEFAULT_BUS_REQUEST_KBPS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wil6210_bus_request
Lloh5:
	adrp	x8, _fw_recovery_idle@GOTPAGE
Lloh6:
	ldr	x8, [x8, _fw_recovery_idle@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wil_set_recovery_state
Lloh8:
	adrp	x8, _wil_status_resetting@GOTPAGE
Lloh9:
	ldr	x8, [x8, _wil_status_resetting@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
	bl	_set_bit
LBB0_2:
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x20
	bl	_wmi_pcp_stop
Lloh11:
	adrp	x8, _wil_vif_ft_roam@GOTPAGE
Lloh12:
	ldr	x8, [x8, _wil_vif_ft_roam@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w1, [x20, #48]
	bl	_clear_bit
	str	xzr, [x20, #40]
	add	x0, x20, #32
	add	x1, x20, #28
	mov	x2, #0
	mov	w3, #0
	bl	_wil_memdup_ie
	add	x0, x20, #24
	add	x1, x20, #20
	mov	x2, #0
	mov	w3, #0
	bl	_wil_memdup_ie
	add	x0, x20, #16
	add	x1, x20, #12
	mov	x2, #0
	mov	w3, #0
	bl	_wil_memdup_ie
	ldr	w0, [x20, #8]
Lloh14:
	adrp	x8, _WMI_MAX_KEY_LEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WMI_MAX_KEY_LEN@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
	str	xzr, [x20]
	cbz	w21, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_wil_bcast_fini
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	___wil_down
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stop_ap, mid=%d\n"

	.comm	_WIL_DEFAULT_BUS_REQUEST_KBPS,4,2 ; @WIL_DEFAULT_BUS_REQUEST_KBPS
	.comm	_fw_recovery_idle,4,2           ; @fw_recovery_idle
	.comm	_wil_status_resetting,4,2       ; @wil_status_resetting
	.comm	_wil_vif_ft_roam,4,2            ; @wil_vif_ft_roam
	.comm	_WMI_MAX_KEY_LEN,4,2            ; @WMI_MAX_KEY_LEN
	.no_dead_strip	_wil_cfg80211_stop_ap
.subsections_via_symbols
