	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wil_cfg80211_ap_recovery       ## -- Begin function wil_cfg80211_ap_recovery
	.p2align	4, 0x90
_wil_cfg80211_ap_recovery:              ## @wil_cfg80211_ap_recovery
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_wil_to_wiphy
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_GET_MAX_VIFS
	testl	%eax, %eax
	jle	LBB0_12
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.2(%rip), %rsi
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_wil_err
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	%r15, %rdi
	callq	_GET_MAX_VIFS
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %r12
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movq	$0, -80(%rbp)
	movaps	%xmm0, -64(%rbp)
	testq	%r12, %r12
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%r12)
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_vif_to_ndev
	movq	%rax, %r13
	movl	72(%r12), %eax
	movl	%eax, -76(%rbp)
	movl	68(%r12), %eax
	movl	%eax, -80(%rbp)
	movups	52(%r12), %xmm0
	movaps	%xmm0, -96(%rbp)
	movl	44(%r12), %r8d
	movl	40(%r12), %r9d
	movl	32(%r12), %r10d
	movl	24(%r12), %ecx
	movl	28(%r12), %eax
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	pushq	%rax
	pushq	%r10
	callq	_wil_info
	addq	$16, %rsp
	movq	_DUMP_PREFIX_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	48(%r12), %r8d
	movq	(%r12), %r9
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdi
	movl	$16, %edx
	movl	$1, %ecx
	pushq	$1
	callq	_wil_hex_dump_misc
	addq	$16, %rsp
	movl	48(%r12), %edx
	movq	(%r12), %rcx
	movl	24(%r12), %r8d
	movl	44(%r12), %r9d
	movl	40(%r12), %r10d
	movl	36(%r12), %r11d
	movl	32(%r12), %eax
	movl	28(%r12), %r14d
	subq	$8, %rsp
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	pushq	%r14
	pushq	%rax
	leaq	-96(%rbp), %rax
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	__wil_cfg80211_start_ap
	addq	$48, %rsp
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 24(%r12)
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	20(%r12), %ecx
	movl	%ecx, -52(%rbp)
	movq	%rax, -64(%rbp)
	movq	_IEEE80211_GCMP_PN_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	16(%r12), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	leaq	-64(%rbp), %r9
	callq	_wil_cfg80211_add_key
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_10
LBB0_12:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AP (vif %d) recovery: privacy %d, bi %d, channel %d, hidden %d, pbss %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"SSID "

	.comm	_DUMP_PREFIX_OFFSET,4,2         ## @DUMP_PREFIX_OFFSET
L_.str.2:                               ## @.str.2
	.asciz	"vif %d recovery failed (%d)\n"

	.comm	_IEEE80211_GCMP_PN_LEN,4,2      ## @IEEE80211_GCMP_PN_LEN
L_.str.3:                               ## @.str.3
	.asciz	"vif %d recovery add key failed (%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wil_cfg80211_ap_recovery       ; -- Begin function wil_cfg80211_ap_recovery
	.p2align	2
_wil_cfg80211_ap_recovery:              ; @wil_cfg80211_ap_recovery
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_wil_to_wiphy
	mov	x20, x0
	mov	x0, x19
	bl	_GET_MAX_VIFS
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x21, #0
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
Lloh2:
	adrp	x28, _DUMP_PREFIX_OFFSET@GOTPAGE
Lloh3:
	ldr	x28, [x28, _DUMP_PREFIX_OFFSET@GOTPAGEOFF]
Lloh4:
	adrp	x23, l_.str.1@PAGE
Lloh5:
	add	x23, x23, l_.str.1@PAGEOFF
	add	x24, sp, #32
Lloh6:
	adrp	x25, l_.str.2@PAGE
Lloh7:
	add	x25, x25, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x3, x0
	mov	x0, x19
	mov	x1, x25
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x2, x21
	bl	_wil_err
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	mov	x0, x19
	bl	_GET_MAX_VIFS
	cmp	x21, w0, sxtw
	b.ge	LBB0_12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x26, [x8, x21, lsl #3]
	stp	xzr, xzr, [sp, #32]
	str	xzr, [sp, #48]
	stp	xzr, xzr, [sp, #16]
	cbz	x26, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x26]
	cbz	x8, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x26
	bl	_vif_to_ndev
	mov	x27, x0
	ldur	d0, [x26, #68]
	str	d0, [sp, #48]
	ldur	q0, [x26, #52]
	str	q0, [sp, #32]
	ldp	w5, w4, [x26, #40]
	ldp	w7, w6, [x26, #28]
	ldr	w3, [x26, #24]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_wil_info
	ldr	w1, [x28]
	ldr	w4, [x26, #48]
	ldr	x5, [x26]
	mov	x0, x23
	mov	w2, #16
	mov	w3, #1
	mov	w6, #1
	bl	_wil_hex_dump_misc
	ldp	w5, w2, [x26, #44]
	ldr	x3, [x26]
	ldp	w7, w6, [x26, #36]
	ldp	w9, w8, [x26, #28]
	ldr	w4, [x26, #24]
	stp	w8, w9, [sp, #8]
	str	x24, [sp]
	mov	x0, x20
	mov	x1, x27
	bl	__wil_cfg80211_start_ap
	cbnz	w0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x26, #24]
	cbz	w8, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x26, #8]
	cbz	x8, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	str	x8, [sp, #16]
Lloh8:
	adrp	x8, _IEEE80211_GCMP_PN_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IEEE80211_GCMP_PN_LEN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldp	w2, w9, [x26, #16]
	stp	w8, w9, [sp, #24]
	add	x5, sp, #16
	mov	x0, x20
	mov	x1, x27
	mov	w3, #0
	mov	x4, #0
	bl	_wil_cfg80211_add_key
	cbz	w0, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x3, x0
	mov	x0, x19
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_12:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AP (vif %d) recovery: privacy %d, bi %d, channel %d, hidden %d, pbss %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"SSID "

	.comm	_DUMP_PREFIX_OFFSET,4,2         ; @DUMP_PREFIX_OFFSET
l_.str.2:                               ; @.str.2
	.asciz	"vif %d recovery failed (%d)\n"

	.comm	_IEEE80211_GCMP_PN_LEN,4,2      ; @IEEE80211_GCMP_PN_LEN
l_.str.3:                               ; @.str.3
	.asciz	"vif %d recovery add key failed (%d)\n"

.subsections_via_symbols
