	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlcore_set_bssid
_wlcore_set_bssid:                      ## @wlcore_set_bssid
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_DEBUG_MAC80211@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rdx), %edx
	movl	12(%rbx), %ecx
	movl	8(%rbx), %r8d
	movq	(%rbx), %r9
	movq	%r15, (%rsp)
	leaq	L_.str(%rip), %rsi
	callq	_wl1271_debug
	movl	8(%rbx), %eax
	movl	%eax, 28(%r12)
	movq	(%rbx), %rsi
	movl	4(%r12), %edx
	movq	%r14, %rdi
	callq	_wl1271_tx_enabled_rates_get
	movq	%rax, 16(%r12)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_wl1271_tx_min_rate_get
	movl	%eax, 24(%r12)
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movl	4(%r12), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_wl1271_tx_enabled_rates_get
	movq	%rax, 8(%r12)
LBB0_2:
	cmpq	%r12, 8(%r14)
	jne	LBB0_4
## %bb.3:
	movq	(%r14), %rax
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	*(%rax)
LBB0_4:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_wl1271_acx_sta_rate_policies
	testl	%eax, %eax
	js	LBB0_8
## %bb.5:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_wl12xx_cmd_build_null_data
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:
	movq	%r12, %rdi
	callq	_wl12xx_wlvif_to_vif
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_wl1271_build_qos_null_data
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_wlcore_set_ssid
	movq	_WLVIF_FLAG_IN_USE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_set_bit
	xorl	%eax, %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_MAC80211,4,2             ## @DEBUG_MAC80211
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"changed_bssid: %pM, aid: %d, bcn_int: %d, brates: 0x%x sta_rate_set: 0x%x"

	.comm	_WLVIF_FLAG_IN_USE,4,2          ## @WLVIF_FLAG_IN_USE
	.no_dead_strip	_wlcore_set_bssid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlcore_set_bssid
_wlcore_set_bssid:                      ; @wlcore_set_bssid
	.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, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _DEBUG_MAC80211@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG_MAC80211@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w2, [x2, #16]
	ldp	w4, w3, [x22, #8]
	ldr	x5, [x22]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x6, x21
	bl	_wl1271_debug
	ldr	w8, [x22, #8]
	str	w8, [x19, #28]
	ldr	x1, [x22]
	ldr	w2, [x19, #4]
	mov	x0, x20
	bl	_wl1271_tx_enabled_rates_get
	mov	x1, x0
	str	x0, [x19, #16]
	mov	x0, x20
	bl	_wl1271_tx_min_rate_get
	str	w0, [x19, #24]
	cbz	x21, LBB0_2
; %bb.1:
	ldr	w2, [x19, #4]
	mov	x0, x20
	mov	x1, x21
	bl	_wl1271_tx_enabled_rates_get
	str	x0, [x19, #8]
LBB0_2:
	ldr	x8, [x20, #8]
	cmp	x8, x19
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x19
	blr	x8
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_wl1271_acx_sta_rate_policies
	tbnz	w0, #31, LBB0_8
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_wl12xx_cmd_build_null_data
	tbnz	w0, #31, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_wl12xx_wlvif_to_vif
	mov	x1, x0
	mov	x0, x20
	bl	_wl1271_build_qos_null_data
	tbnz	w0, #31, LBB0_8
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	bl	_wlcore_set_ssid
Lloh5:
	adrp	x8, _WLVIF_FLAG_IN_USE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WLVIF_FLAG_IN_USE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
	mov	w0, #0
LBB0_8:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_MAC80211,4,2             ; @DEBUG_MAC80211
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"changed_bssid: %pM, aid: %d, bcn_int: %d, brates: 0x%x sta_rate_set: 0x%x"

	.comm	_WLVIF_FLAG_IN_USE,4,2          ; @WLVIF_FLAG_IN_USE
	.no_dead_strip	_wlcore_set_bssid
.subsections_via_symbols
