	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cfg80211_get_bss_channel
_cfg80211_get_bss_channel:              ## @cfg80211_get_bss_channel
	.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	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_WLAN_EID_DS_PARAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cfg80211_find_ie
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpl	$1, 4(%rax)
	je	LBB0_4
LBB0_2:
	movq	_WLAN_EID_HT_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_cfg80211_find_ie
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	cmpl	$4, 4(%rax)
	jb	LBB0_8
LBB0_4:
	movl	8(%rax), %edi
	testl	%edi, %edi
	js	LBB0_8
## %bb.5:
	movl	4(%r15), %esi
	callq	_ieee80211_channel_to_frequency
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ieee80211_get_channel
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	_IEEE80211_CHAN_DISABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r15d, %r15d
	testl	%ecx, (%rax)
	cmoveq	%rax, %r15
	jmp	LBB0_8
LBB0_6:
	xorl	%r15d, %r15d
LBB0_8:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_EID_DS_PARAMS,4,2         ## @WLAN_EID_DS_PARAMS
	.comm	_WLAN_EID_HT_OPERATION,4,2      ## @WLAN_EID_HT_OPERATION
	.comm	_IEEE80211_CHAN_DISABLED,4,2    ## @IEEE80211_CHAN_DISABLED
	.no_dead_strip	_cfg80211_get_bss_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cfg80211_get_bss_channel
_cfg80211_get_bss_channel:              ; @cfg80211_get_bss_channel
	.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	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _WLAN_EID_DS_PARAMS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_EID_DS_PARAMS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cfg80211_find_ie
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x0, #4]
	cmp	w8, #1
	b.eq	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _WLAN_EID_HT_OPERATION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WLAN_EID_HT_OPERATION@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x22
	mov	x2, x21
	bl	_cfg80211_find_ie
	cbz	x0, LBB0_8
; %bb.3:
	ldr	w8, [x0, #4]
	cmp	w8, #4
	b.lo	LBB0_8
LBB0_4:
	ldr	w0, [x0, #8]
	tbnz	w0, #31, LBB0_8
; %bb.5:
	ldr	w1, [x19, #4]
	bl	_ieee80211_channel_to_frequency
	mov	x1, x0
	mov	x0, x20
	bl	_ieee80211_get_channel
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w8, [x0]
Lloh6:
	adrp	x9, _IEEE80211_CHAN_DISABLED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_CHAN_DISABLED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	csel	x19, x0, xzr, eq
	b	LBB0_8
LBB0_7:
	mov	x19, #0
LBB0_8:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_EID_DS_PARAMS,4,2         ; @WLAN_EID_DS_PARAMS
	.comm	_WLAN_EID_HT_OPERATION,4,2      ; @WLAN_EID_HT_OPERATION
	.comm	_IEEE80211_CHAN_DISABLED,4,2    ; @IEEE80211_CHAN_DISABLED
	.no_dead_strip	_cfg80211_get_bss_channel
.subsections_via_symbols
