	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_change_bss
_ieee80211_change_bss:                  ## @ieee80211_change_bss
	.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, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_IEEE80211_DEV_TO_SUB_IF
	movq	%rax, %r14
	movl	44(%rax), %edi
	callq	_rtnl_dereference
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_ieee80211_get_sdata_band
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	js	LBB0_3
## %bb.4:
	movq	%rcx, (%r14)
	movq	_BSS_CHANGED_ERP_CTS_PROT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	jmp	LBB0_5
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_39
LBB0_3:
	xorl	%esi, %esi
LBB0_5:
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	js	LBB0_7
## %bb.6:
	movq	%rcx, 8(%r14)
	movq	_BSS_CHANGED_ERP_PREAMBLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
LBB0_7:
	cmpl	$0, 16(%r14)
	jne	LBB0_10
## %bb.8:
	movq	_IEEE80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.9:
	movl	$1, 16(%r14)
	movq	_BSS_CHANGED_ERP_SLOT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
LBB0_10:
	movl	16(%rbx), %ecx
	testl	%ecx, %ecx
	js	LBB0_12
## %bb.11:
	movl	%ecx, 16(%r14)
	movq	_BSS_CHANGED_ERP_SLOT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
LBB0_12:
	movq	24(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_25
## %bb.13:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	32(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.15:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rsi
	movl	%eax, %eax
	movq	(%rsi,%rax,8), %r12
	movl	(%r12), %eax
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	jle	LBB0_22
	.p2align	4, 0x90
LBB0_17:
	movl	(%rdx,%r14,4), %ecx
	andl	$127, %ecx
	leal	(%rcx,%rcx,4), %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_21
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rcx
	cmpl	%r13d, (%rcx,%rbx,4)
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	%ebx, %edi
	callq	_BIT
	orl	%eax, %r15d
	movl	(%r12), %eax
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_21:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	32(%rbx), %ecx
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	incq	%r14
	movslq	%ecx, %rdx
	cmpq	%rdx, %r14
	jge	LBB0_23
## %bb.40:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	24(%rbx), %rdx
	testl	%eax, %eax
	jg	LBB0_17
	jmp	LBB0_22
LBB0_23:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_24
LBB0_14:
	xorl	%r15d, %r15d
LBB0_24:
	movl	%r15d, 32(%r14)
	movq	_BSS_CHANGED_BASIC_RATES@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	orl	(%rax), %esi
LBB0_25:
	cmpq	$0, 40(%rbx)
	js	LBB0_29
## %bb.26:
	movq	_IEEE80211_SDATA_DONT_BRIDGE_PACKETS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	je	LBB0_28
## %bb.27:
	orl	%eax, 40(%r14)
	jmp	LBB0_29
LBB0_28:
	notl	%eax
	andl	%eax, 40(%r14)
LBB0_29:
	movq	48(%rbx), %rax
	testq	%rax, %rax
	js	LBB0_31
## %bb.30:
	movq	%rax, 24(%r14)
	movq	_BSS_CHANGED_HT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
LBB0_31:
	movl	56(%rbx), %eax
	testl	%eax, %eax
	js	LBB0_33
## %bb.32:
	movq	_IEEE80211_P2P_OPPPS_CTWINDOW_MASK@GOTPCREL(%rip), %rcx
	movl	20(%r14), %edx
	xorl	%edx, %eax
	andl	(%rcx), %eax
	xorl	%edx, %eax
	movl	%eax, 20(%r14)
	movq	_BSS_CHANGED_P2P_PS@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
LBB0_33:
	cmpq	$0, 64(%rbx)
	jle	LBB0_35
## %bb.34:
	movq	_IEEE80211_P2P_OPPPS_ENABLE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%r14)
LBB0_37:
	movq	_BSS_CHANGED_P2P_PS@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	jmp	LBB0_38
LBB0_35:
	je	LBB0_36
LBB0_38:
	movq	%r14, %rdi
	callq	_ieee80211_bss_info_change_notify
	xorl	%eax, %eax
LBB0_39:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	movq	_IEEE80211_P2P_OPPPS_ENABLE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 20(%r14)
	jmp	LBB0_37
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_BSS_CHANGED_ERP_CTS_PROT,4,2   ## @BSS_CHANGED_ERP_CTS_PROT
	.comm	_BSS_CHANGED_ERP_PREAMBLE,4,2   ## @BSS_CHANGED_ERP_PREAMBLE
	.comm	_IEEE80211_BAND_5GHZ,4,2        ## @IEEE80211_BAND_5GHZ
	.comm	_BSS_CHANGED_ERP_SLOT,4,2       ## @BSS_CHANGED_ERP_SLOT
	.comm	_BSS_CHANGED_BASIC_RATES,4,2    ## @BSS_CHANGED_BASIC_RATES
	.comm	_IEEE80211_SDATA_DONT_BRIDGE_PACKETS,4,2 ## @IEEE80211_SDATA_DONT_BRIDGE_PACKETS
	.comm	_BSS_CHANGED_HT,4,2             ## @BSS_CHANGED_HT
	.comm	_IEEE80211_P2P_OPPPS_CTWINDOW_MASK,4,2 ## @IEEE80211_P2P_OPPPS_CTWINDOW_MASK
	.comm	_BSS_CHANGED_P2P_PS,4,2         ## @BSS_CHANGED_P2P_PS
	.comm	_IEEE80211_P2P_OPPPS_ENABLE_BIT,4,2 ## @IEEE80211_P2P_OPPPS_ENABLE_BIT
	.no_dead_strip	_ieee80211_change_bss
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_change_bss
_ieee80211_change_bss:                  ; @ieee80211_change_bss
	.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	x21, x2
	mov	x22, x0
	mov	x0, x1
	bl	_IEEE80211_DEV_TO_SUB_IF
	mov	x19, x0
	ldr	w0, [x0, #44]
	bl	_rtnl_dereference
	cbz	w0, LBB0_19
; %bb.1:
	mov	x0, x19
	bl	_ieee80211_get_sdata_band
	ldr	x8, [x21]
	tbnz	x8, #63, LBB0_20
; %bb.2:
	str	x8, [x19]
Lloh0:
	adrp	x8, _BSS_CHANGED_ERP_CTS_PROT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BSS_CHANGED_ERP_CTS_PROT@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	x8, [x21, #8]
	tbnz	x8, #63, LBB0_4
LBB0_3:
	str	x8, [x19, #8]
Lloh3:
	adrp	x8, _BSS_CHANGED_ERP_PREAMBLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BSS_CHANGED_ERP_PREAMBLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_4:
	ldr	w9, [x19, #16]
Lloh6:
	adrp	x8, _BSS_CHANGED_ERP_SLOT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BSS_CHANGED_ERP_SLOT@GOTPAGEOFF]
	cbnz	w9, LBB0_7
; %bb.5:
Lloh8:
	adrp	x9, _IEEE80211_BAND_5GHZ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IEEE80211_BAND_5GHZ@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w0, w9
	b.ne	LBB0_7
; %bb.6:
	mov	w9, #1
	str	w9, [x19, #16]
	ldr	w9, [x8]
	orr	w20, w9, w20
LBB0_7:
	ldr	w9, [x21, #16]
	tbnz	w9, #31, LBB0_9
; %bb.8:
	str	w9, [x19, #16]
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_9:
	ldr	x10, [x21, #24]
	cbz	x10, LBB0_23
; %bb.10:
	ldr	w9, [x21, #32]
	cmp	w9, #1
	b.lt	LBB0_21
; %bb.11:
	mov	x24, #0
	mov	w23, #0
	ldr	x8, [x22]
	ldr	x25, [x8, w0, uxtw #3]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_17
LBB0_12:
	mov	x22, #0
	ldr	w9, [x10, x24, lsl #2]
	and	w9, w9, #0x7f
	add	w26, w9, w9, lsl #2
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_16
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x25, #8]
	ldr	w9, [x9, x22, lsl #2]
	cmp	w9, w26
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x22
	bl	_BIT
	orr	w23, w0, w23
	ldr	w8, [x25]
	b	LBB0_13
LBB0_16:
	ldr	w9, [x21, #32]
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	add	x24, x24, #1
	cmp	x24, w9, sxtw
	b.ge	LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x10, [x21, #24]
	cmp	w8, #1
	b.ge	LBB0_12
	b	LBB0_17
LBB0_19:
Lloh11:
	adrp	x8, _ENOENT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_37
LBB0_20:
	mov	w20, #0
	ldr	x8, [x21, #8]
	tbz	x8, #63, LBB0_3
	b	LBB0_4
LBB0_21:
	mov	w23, #0
LBB0_22:
	str	w23, [x19, #32]
Lloh14:
	adrp	x8, _BSS_CHANGED_BASIC_RATES@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BSS_CHANGED_BASIC_RATES@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_23:
	ldr	x9, [x21, #40]
	tbnz	x9, #63, LBB0_28
; %bb.24:
Lloh17:
	adrp	x8, _IEEE80211_SDATA_DONT_BRIDGE_PACKETS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IEEE80211_SDATA_DONT_BRIDGE_PACKETS@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cbz	x9, LBB0_26
; %bb.25:
	ldr	w9, [x19, #40]
	orr	w8, w9, w8
	b	LBB0_27
LBB0_26:
	ldr	w9, [x19, #40]
	bic	w8, w9, w8
LBB0_27:
	str	w8, [x19, #40]
LBB0_28:
	ldr	x8, [x21, #48]
	tbnz	x8, #63, LBB0_30
; %bb.29:
	str	x8, [x19, #24]
Lloh20:
	adrp	x8, _BSS_CHANGED_HT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BSS_CHANGED_HT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_30:
	ldr	w8, [x21, #56]
	tbnz	w8, #31, LBB0_32
; %bb.31:
Lloh23:
	adrp	x9, _IEEE80211_P2P_OPPPS_CTWINDOW_MASK@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IEEE80211_P2P_OPPPS_CTWINDOW_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	ldr	w10, [x19, #20]
	bic	w10, w10, w9
	and	w8, w9, w8
	orr	w8, w10, w8
	str	w8, [x19, #20]
Lloh26:
	adrp	x8, _BSS_CHANGED_P2P_PS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _BSS_CHANGED_P2P_PS@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_32:
	ldr	x8, [x21, #64]
	cmp	x8, #1
	b.lt	LBB0_35
; %bb.33:
Lloh29:
	adrp	x8, _IEEE80211_P2P_OPPPS_ENABLE_BIT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IEEE80211_P2P_OPPPS_ENABLE_BIT@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [x19, #20]
	orr	w8, w9, w8
LBB0_34:
	str	w8, [x19, #20]
Lloh32:
	adrp	x8, _BSS_CHANGED_P2P_PS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _BSS_CHANGED_P2P_PS@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	orr	w20, w8, w20
	b	LBB0_36
LBB0_35:
	cbz	x8, LBB0_38
LBB0_36:
	mov	x0, x19
	mov	x1, x20
	bl	_ieee80211_bss_info_change_notify
	mov	w0, #0
LBB0_37:
	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_38:
Lloh35:
	adrp	x8, _IEEE80211_P2P_OPPPS_ENABLE_BIT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _IEEE80211_P2P_OPPPS_ENABLE_BIT@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	ldr	w9, [x19, #20]
	bic	w8, w9, w8
	b	LBB0_34
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_BSS_CHANGED_ERP_CTS_PROT,4,2   ; @BSS_CHANGED_ERP_CTS_PROT
	.comm	_BSS_CHANGED_ERP_PREAMBLE,4,2   ; @BSS_CHANGED_ERP_PREAMBLE
	.comm	_IEEE80211_BAND_5GHZ,4,2        ; @IEEE80211_BAND_5GHZ
	.comm	_BSS_CHANGED_ERP_SLOT,4,2       ; @BSS_CHANGED_ERP_SLOT
	.comm	_BSS_CHANGED_BASIC_RATES,4,2    ; @BSS_CHANGED_BASIC_RATES
	.comm	_IEEE80211_SDATA_DONT_BRIDGE_PACKETS,4,2 ; @IEEE80211_SDATA_DONT_BRIDGE_PACKETS
	.comm	_BSS_CHANGED_HT,4,2             ; @BSS_CHANGED_HT
	.comm	_IEEE80211_P2P_OPPPS_CTWINDOW_MASK,4,2 ; @IEEE80211_P2P_OPPPS_CTWINDOW_MASK
	.comm	_BSS_CHANGED_P2P_PS,4,2         ; @BSS_CHANGED_P2P_PS
	.comm	_IEEE80211_P2P_OPPPS_ENABLE_BIT,4,2 ; @IEEE80211_P2P_OPPPS_ENABLE_BIT
	.no_dead_strip	_ieee80211_change_bss
.subsections_via_symbols
