	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1271_bss_info_changed_ap
_wl1271_bss_info_changed_ap:            ## @wl1271_bss_info_changed_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_wl12xx_vif_to_data
	movq	%rax, %r15
	movq	_BSS_CHANGED_BASIC_RATES@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_6
## %bb.1:
	movl	(%r14), %esi
	movl	16(%r15), %edx
	movq	%rbx, %rdi
	callq	_wl1271_tx_enabled_rates_get
	movl	%eax, 12(%r15)
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_wl1271_tx_min_rate_get
	movl	%eax, 8(%r15)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wl1271_init_ap_rates
	testl	%eax, %eax
	js	LBB0_24
## %bb.2:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_wl1271_ap_init_templates
	testl	%eax, %eax
	js	LBB0_23
## %bb.3:
	movq	%r13, %rdi
	callq	_ieee80211_vif_is_mesh
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	8(%r15), %esi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_wl1271_ap_set_probe_resp_tmpl
	testl	%eax, %eax
	js	LBB0_23
LBB0_5:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_wlcore_set_beacon_template
	testl	%eax, %eax
	js	LBB0_23
LBB0_6:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	callq	_wl1271_bss_beacon_info_changed
	testl	%eax, %eax
	js	LBB0_23
## %bb.7:
	movq	_BSS_CHANGED_BEACON_ENABLED@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_19
## %bb.8:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %r14
	movq	_WLVIF_FLAG_AP_STARTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%r14, %r14
	je	LBB0_13
## %bb.9:
	testq	%rax, %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_19
## %bb.10:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wl12xx_cmd_role_start_ap
	testl	%eax, %eax
	js	LBB0_23
## %bb.11:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wl1271_ap_init_hwenc
	testl	%eax, %eax
	js	LBB0_23
## %bb.12:
	movq	_WLVIF_FLAG_AP_STARTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_set_bit
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_18
LBB0_24:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wl1271_error                   ## TAILCALL
LBB0_13:
	testq	%rax, %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_19
## %bb.14:
	movl	4(%r15), %edi
	movq	(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	4(%r15), %esi
	movq	%rbx, %rdi
	callq	_wl12xx_croc
LBB0_16:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wl12xx_cmd_role_stop_ap
	testl	%eax, %eax
	js	LBB0_23
## %bb.17:
	movq	_WLVIF_FLAG_AP_STARTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	movq	_WLVIF_FLAG_AP_PROBE_RESP_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	leaq	L_.str.2(%rip), %rsi
LBB0_18:
	movq	_DEBUG_AP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_wl1271_debug
LBB0_19:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	callq	_wl1271_bss_erp_info_changed
	testl	%eax, %eax
	js	LBB0_23
## %bb.20:
	movq	_BSS_CHANGED_HT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_23
## %bb.21:
	movq	8(%r14), %rax
	movq	_NL80211_CHAN_WIDTH_20_NOHT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_23
## %bb.22:
	movl	4(%r14), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wl1271_acx_set_ht_information
	testl	%eax, %eax
	js	LBB0_25
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wl1271_warning                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BSS_CHANGED_BASIC_RATES,4,2    ## @BSS_CHANGED_BASIC_RATES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AP rate policy change failed %d"

	.comm	_BSS_CHANGED_BEACON_ENABLED,4,2 ## @BSS_CHANGED_BEACON_ENABLED
	.comm	_WLVIF_FLAG_AP_STARTED,4,2      ## @WLVIF_FLAG_AP_STARTED
	.comm	_DEBUG_AP,4,2                   ## @DEBUG_AP
L_.str.1:                               ## @.str.1
	.asciz	"started AP"

	.comm	_WLVIF_FLAG_AP_PROBE_RESP_SET,4,2 ## @WLVIF_FLAG_AP_PROBE_RESP_SET
L_.str.2:                               ## @.str.2
	.asciz	"stopped AP"

	.comm	_BSS_CHANGED_HT,4,2             ## @BSS_CHANGED_HT
	.comm	_NL80211_CHAN_WIDTH_20_NOHT,8,3 ## @NL80211_CHAN_WIDTH_20_NOHT
L_.str.3:                               ## @.str.3
	.asciz	"Set ht information failed %d"

	.no_dead_strip	_wl1271_bss_info_changed_ap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1271_bss_info_changed_ap
_wl1271_bss_info_changed_ap:            ; @wl1271_bss_info_changed_ap
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x3
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
	mov	x0, x1
	bl	_wl12xx_vif_to_data
	mov	x21, x0
Lloh0:
	adrp	x8, _BSS_CHANGED_BASIC_RATES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BSS_CHANGED_BASIC_RATES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_6
; %bb.1:
	ldr	w1, [x20]
	ldr	w2, [x21, #16]
	mov	x0, x19
	bl	_wl1271_tx_enabled_rates_get
	mov	x1, x0
	str	w0, [x21, #12]
	mov	x0, x19
	bl	_wl1271_tx_min_rate_get
	str	w0, [x21, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_wl1271_init_ap_rates
	tbnz	w0, #31, LBB0_13
; %bb.2:
	mov	x0, x19
	mov	x1, x23
	bl	_wl1271_ap_init_templates
	tbnz	w0, #31, LBB0_24
; %bb.3:
	mov	x0, x23
	bl	_ieee80211_vif_is_mesh
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w1, [x21, #8]
	mov	x0, x19
	mov	x2, x23
	bl	_wl1271_ap_set_probe_resp_tmpl
	tbnz	w0, #31, LBB0_24
LBB0_5:
	mov	x0, x19
	mov	x1, x23
	mov	w2, #1
	bl	_wlcore_set_beacon_template
	tbnz	w0, #31, LBB0_24
LBB0_6:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x20
	mov	x3, x22
	bl	_wl1271_bss_beacon_info_changed
	tbnz	w0, #31, LBB0_24
; %bb.7:
Lloh3:
	adrp	x8, _BSS_CHANGED_BEACON_ENABLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BSS_CHANGED_BEACON_ENABLED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_20
; %bb.8:
	ldr	x25, [x20, #16]
Lloh6:
	adrp	x24, _WLVIF_FLAG_AP_STARTED@GOTPAGE
Lloh7:
	ldr	x24, [x24, _WLVIF_FLAG_AP_STARTED@GOTPAGEOFF]
	ldr	w0, [x24]
	mov	x1, x21
	bl	_test_bit
	cbz	x25, LBB0_14
; %bb.9:
	cbnz	x0, LBB0_20
; %bb.10:
	mov	x0, x19
	mov	x1, x21
	bl	_wl12xx_cmd_role_start_ap
	tbnz	w0, #31, LBB0_24
; %bb.11:
	mov	x0, x19
	mov	x1, x21
	bl	_wl1271_ap_init_hwenc
	tbnz	w0, #31, LBB0_24
; %bb.12:
	ldr	w0, [x24]
	mov	x1, x21
	bl	_set_bit
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_19
LBB0_13:
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_wl1271_error
LBB0_14:
	cbz	x0, LBB0_20
; %bb.15:
	ldr	w0, [x21, #4]
	ldr	x1, [x19]
	bl	_test_bit
	cbz	x0, LBB0_17
; %bb.16:
	ldr	w1, [x21, #4]
	mov	x0, x19
	bl	_wl12xx_croc
LBB0_17:
	mov	x0, x19
	mov	x1, x21
	bl	_wl12xx_cmd_role_stop_ap
	tbnz	w0, #31, LBB0_24
; %bb.18:
	ldr	w0, [x24]
	mov	x1, x21
	bl	_clear_bit
Lloh12:
	adrp	x8, _WLVIF_FLAG_AP_PROBE_RESP_SET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WLVIF_FLAG_AP_PROBE_RESP_SET@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_19:
Lloh17:
	adrp	x8, _DEBUG_AP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DEBUG_AP@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_wl1271_debug
LBB0_20:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x20
	mov	x3, x22
	bl	_wl1271_bss_erp_info_changed
	tbnz	w0, #31, LBB0_24
; %bb.21:
Lloh20:
	adrp	x8, _BSS_CHANGED_HT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BSS_CHANGED_HT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_24
; %bb.22:
	ldr	x8, [x20, #8]
Lloh23:
	adrp	x9, _NL80211_CHAN_WIDTH_20_NOHT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _NL80211_CHAN_WIDTH_20_NOHT@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_24
; %bb.23:
	ldr	w2, [x20, #4]
	mov	x0, x19
	mov	x1, x21
	bl	_wl1271_acx_set_ht_information
	tbnz	w0, #31, LBB0_25
LBB0_24:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_25:
	mov	x1, x0
Lloh26:
	adrp	x0, l_.str.3@PAGE
Lloh27:
	add	x0, x0, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_wl1271_warning
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_BSS_CHANGED_BASIC_RATES,4,2    ; @BSS_CHANGED_BASIC_RATES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AP rate policy change failed %d"

	.comm	_BSS_CHANGED_BEACON_ENABLED,4,2 ; @BSS_CHANGED_BEACON_ENABLED
	.comm	_WLVIF_FLAG_AP_STARTED,4,2      ; @WLVIF_FLAG_AP_STARTED
	.comm	_DEBUG_AP,4,2                   ; @DEBUG_AP
l_.str.1:                               ; @.str.1
	.asciz	"started AP"

	.comm	_WLVIF_FLAG_AP_PROBE_RESP_SET,4,2 ; @WLVIF_FLAG_AP_PROBE_RESP_SET
l_.str.2:                               ; @.str.2
	.asciz	"stopped AP"

	.comm	_BSS_CHANGED_HT,4,2             ; @BSS_CHANGED_HT
	.comm	_NL80211_CHAN_WIDTH_20_NOHT,8,3 ; @NL80211_CHAN_WIDTH_20_NOHT
l_.str.3:                               ; @.str.3
	.asciz	"Set ht information failed %d"

	.no_dead_strip	_wl1271_bss_info_changed_ap
.subsections_via_symbols
