	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil_cfg80211_change_beacon
_wil_cfg80211_change_beacon:            ## @wil_cfg80211_change_beacon
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_wiphy_to_wil
	movq	%rax, %r14
	movq	(%rbx), %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ndev_to_vif
	movq	%rax, %rbx
	movl	28(%rax), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_wil_dbg_misc
	movq	%r12, %rdi
	callq	_wil_print_bcon_data
	movq	8(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	_WLAN_EID_RSN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %edx
	callq	_cfg80211_find_ie
	xorl	%r15d, %r15d
	testq	%rax, %rax
	setne	%r15b
LBB0_2:
	movl	24(%rbx), %edi
	movl	4(%r13), %edx
	movl	8(%r13), %esi
	callq	_memcpy
	movl	4(%r13), %eax
	movl	%eax, 20(%rbx)
	movl	(%rbx), %edx
	cmpl	%r15d, %edx
	jne	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__wil_cfg80211_set_ies          ## TAILCALL
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_wil_dbg_misc
	movl	24(%rbx), %edx
	movl	20(%rbx), %ecx
	movl	(%r13), %r9d
	movl	16(%rbx), %r10d
	movl	12(%rbx), %r11d
	movl	4(%rbx), %eax
	movl	8(%rbx), %ebx
	subq	$8, %rsp
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %r8d
	pushq	%rax
	pushq	%rbx
	pushq	%r12
	pushq	%r11
	pushq	%r10
	callq	__wil_cfg80211_start_ap
	addq	$72, %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	"change_beacon, mid=%d\n"

	.comm	_WLAN_EID_RSN,4,2               ## @WLAN_EID_RSN
L_.str.1:                               ## @.str.1
	.asciz	"privacy changed %d=>%d. Restarting AP\n"

	.no_dead_strip	_wil_cfg80211_change_beacon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wil_cfg80211_change_beacon
_wil_cfg80211_change_beacon:            ; @wil_cfg80211_change_beacon
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_wiphy_to_wil
	mov	x23, x0
	ldr	x25, [x20]
	mov	x0, x20
	bl	_ndev_to_vif
	mov	x22, x0
	ldr	w2, [x0, #28]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_wil_dbg_misc
	mov	x0, x19
	bl	_wil_print_bcon_data
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _WLAN_EID_RSN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WLAN_EID_RSN@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w2, [x19]
	bl	_cfg80211_find_ie
	cmp	x0, #0
	cset	w24, ne
	b	LBB0_3
LBB0_2:
	mov	w24, #0
LBB0_3:
	ldr	w0, [x22, #24]
	ldp	w2, w1, [x25, #4]
	bl	_memcpy
	ldr	w8, [x25, #4]
	str	w8, [x22, #20]
	ldr	w2, [x22]
	cmp	w2, w24
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x22
	mov	x1, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	__wil_cfg80211_set_ies
LBB0_5:
	str	x24, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_wil_dbg_misc
	ldp	w3, w2, [x22, #20]
	ldr	w5, [x25]
	ldp	w7, w6, [x22, #12]
	ldp	w9, w8, [x22, #4]
	stp	w8, w9, [sp, #8]
	str	x19, [sp]
	mov	x0, x21
	mov	x1, x20
	mov	x4, x24
	bl	__wil_cfg80211_start_ap
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"change_beacon, mid=%d\n"

	.comm	_WLAN_EID_RSN,4,2               ; @WLAN_EID_RSN
l_.str.1:                               ; @.str.1
	.asciz	"privacy changed %d=>%d. Restarting AP\n"

	.no_dead_strip	_wil_cfg80211_change_beacon
.subsections_via_symbols
