	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_handle_bss_capability
_ieee80211_handle_bss_capability:       ## @ieee80211_handle_bss_capability
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	_WLAN_ERP_USE_PROTECTION@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	testl	%ecx, (%rax)
	setne	%r14b
	movq	_WLAN_ERP_BARKER_PREAMBLE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	sete	%al
	jmp	LBB0_3
LBB0_2:
	movq	_WLAN_CAPABILITY_SHORT_PREAMBLE@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	setne	%al
	xorl	%r14d, %r14d
LBB0_3:
	movzbl	%al, %r15d
	movq	_WLAN_CAPABILITY_SHORT_SLOT_TIME@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	setne	%r12b
	movq	%rbx, %rdi
	callq	_ieee80211_get_sdata_band
	movq	_IEEE80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	orb	%r12b, %cl
	xorl	%eax, %eax
	cmpl	(%rbx), %r14d
	je	LBB0_5
## %bb.4:
	movl	%r14d, (%rbx)
	movq	_BSS_CHANGED_ERP_CTS_PROT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	movzbl	%cl, %ecx
	cmpl	%r15d, 4(%rbx)
	je	LBB0_7
## %bb.6:
	movl	%r15d, 4(%rbx)
	movq	_BSS_CHANGED_ERP_PREAMBLE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
LBB0_7:
	cmpl	%ecx, 8(%rbx)
	je	LBB0_9
## %bb.8:
	movl	%ecx, 8(%rbx)
	movq	_BSS_CHANGED_ERP_SLOT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_ERP_USE_PROTECTION,4,2    ## @WLAN_ERP_USE_PROTECTION
	.comm	_WLAN_ERP_BARKER_PREAMBLE,4,2   ## @WLAN_ERP_BARKER_PREAMBLE
	.comm	_WLAN_CAPABILITY_SHORT_PREAMBLE,4,2 ## @WLAN_CAPABILITY_SHORT_PREAMBLE
	.comm	_WLAN_CAPABILITY_SHORT_SLOT_TIME,4,2 ## @WLAN_CAPABILITY_SHORT_SLOT_TIME
	.comm	_IEEE80211_BAND_5GHZ,8,3        ## @IEEE80211_BAND_5GHZ
	.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	_BSS_CHANGED_ERP_SLOT,4,2       ## @BSS_CHANGED_ERP_SLOT
	.no_dead_strip	_ieee80211_handle_bss_capability
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_handle_bss_capability
_ieee80211_handle_bss_capability:       ; @ieee80211_handle_bss_capability
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	cbz	w2, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _WLAN_ERP_USE_PROTECTION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_ERP_USE_PROTECTION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w3
	cset	w22, ne
Lloh3:
	adrp	x8, _WLAN_ERP_BARKER_PREAMBLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WLAN_ERP_BARKER_PREAMBLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w3
	cset	w21, eq
	b	LBB0_3
LBB0_2:
	mov	w22, #0
Lloh6:
	adrp	x8, _WLAN_CAPABILITY_SHORT_PREAMBLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WLAN_CAPABILITY_SHORT_PREAMBLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w20
	cset	w21, ne
LBB0_3:
Lloh9:
	adrp	x8, _WLAN_CAPABILITY_SHORT_SLOT_TIME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WLAN_CAPABILITY_SHORT_SLOT_TIME@GOTPAGEOFF]
Lloh11:
	ldr	w23, [x8]
	mov	x0, x19
	bl	_ieee80211_get_sdata_band
Lloh12:
	adrp	x8, _IEEE80211_BAND_5GHZ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IEEE80211_BAND_5GHZ@GOTPAGEOFF]
	tst	w23, w20
Lloh14:
	ldr	x8, [x8]
	ccmp	x0, x8, #4, eq
	cset	w8, eq
	ldr	w9, [x19]
	cmp	w22, w9
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	str	w22, [x19]
Lloh15:
	adrp	x9, _BSS_CHANGED_ERP_CTS_PROT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BSS_CHANGED_ERP_CTS_PROT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x9]
LBB0_6:
	ldr	w9, [x19, #4]
	cmp	w9, w21
	b.eq	LBB0_8
; %bb.7:
	str	w21, [x19, #4]
Lloh18:
	adrp	x9, _BSS_CHANGED_ERP_PREAMBLE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BSS_CHANGED_ERP_PREAMBLE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w0, w9, w0
LBB0_8:
	ldr	w9, [x19, #8]
	cmp	w9, w8
	b.eq	LBB0_10
; %bb.9:
	str	w8, [x19, #8]
Lloh21:
	adrp	x8, _BSS_CHANGED_ERP_SLOT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BSS_CHANGED_ERP_SLOT@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	orr	w0, w8, w0
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_ERP_USE_PROTECTION,4,2    ; @WLAN_ERP_USE_PROTECTION
	.comm	_WLAN_ERP_BARKER_PREAMBLE,4,2   ; @WLAN_ERP_BARKER_PREAMBLE
	.comm	_WLAN_CAPABILITY_SHORT_PREAMBLE,4,2 ; @WLAN_CAPABILITY_SHORT_PREAMBLE
	.comm	_WLAN_CAPABILITY_SHORT_SLOT_TIME,4,2 ; @WLAN_CAPABILITY_SHORT_SLOT_TIME
	.comm	_IEEE80211_BAND_5GHZ,8,3        ; @IEEE80211_BAND_5GHZ
	.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	_BSS_CHANGED_ERP_SLOT,4,2       ; @BSS_CHANGED_ERP_SLOT
	.no_dead_strip	_ieee80211_handle_bss_capability
.subsections_via_symbols
