	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl18xx_ap_get_mimo_wide_rate_mask
_wl18xx_ap_get_mimo_wide_rate_mask:     ## @wl18xx_ap_get_mimo_wide_rate_mask
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	(%rsi), %rax
	movq	_NL80211_CHAN_HT40MINUS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_NL80211_CHAN_HT40PLUS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.4:
	callq	_wl18xx_is_mimo_supported
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.5:
	movq	8(%rbx), %rcx
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.6:
	movq	_DEBUG_ACX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wl1271_debug
	movq	_CONF_TX_MIMO_RATES@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	_DEBUG_ACX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wl1271_debug
	movq	8(%rbx), %rax
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_WARN_ON
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.3:
	movq	_CONF_TX_RATE_USE_WIDE_CHAN@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_CHAN_HT40MINUS,8,3     ## @NL80211_CHAN_HT40MINUS
	.comm	_NL80211_CHAN_HT40PLUS,8,3      ## @NL80211_CHAN_HT40PLUS
	.comm	_DEBUG_ACX,4,2                  ## @DEBUG_ACX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"using wide channel rate mask"

	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_CONF_TX_RATE_USE_WIDE_CHAN,4,2 ## @CONF_TX_RATE_USE_WIDE_CHAN
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
L_.str.1:                               ## @.str.1
	.asciz	"using MIMO rate mask"

	.comm	_CONF_TX_MIMO_RATES,4,2         ## @CONF_TX_MIMO_RATES
	.no_dead_strip	_wl18xx_ap_get_mimo_wide_rate_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl18xx_ap_get_mimo_wide_rate_mask
_wl18xx_ap_get_mimo_wide_rate_mask:     ; @wl18xx_ap_get_mimo_wide_rate_mask
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _NL80211_CHAN_HT40MINUS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_CHAN_HT40MINUS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _NL80211_CHAN_HT40PLUS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NL80211_CHAN_HT40PLUS@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _DEBUG_ACX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DEBUG_ACX@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1271_debug
	ldr	x8, [x19, #8]
Lloh11:
	adrp	x9, _NL80211_BAND_5GHZ@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON
Lloh14:
	adrp	x8, _CONF_TX_RATE_USE_WIDE_CHAN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CONF_TX_RATE_USE_WIDE_CHAN@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, w8, wzr, eq
	b	LBB0_6
LBB0_2:
	bl	_wl18xx_is_mimo_supported
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x19, #8]
Lloh17:
	adrp	x9, _NL80211_BAND_2GHZ@GOTPAGE
Lloh18:
	ldr	x9, [x9, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh20:
	adrp	x8, _DEBUG_ACX@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DEBUG_ACX@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wl1271_debug
Lloh25:
	adrp	x8, _CONF_TX_MIMO_RATES@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CONF_TX_MIMO_RATES@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_CHAN_HT40MINUS,8,3     ; @NL80211_CHAN_HT40MINUS
	.comm	_NL80211_CHAN_HT40PLUS,8,3      ; @NL80211_CHAN_HT40PLUS
	.comm	_DEBUG_ACX,4,2                  ; @DEBUG_ACX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"using wide channel rate mask"

	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_CONF_TX_RATE_USE_WIDE_CHAN,4,2 ; @CONF_TX_RATE_USE_WIDE_CHAN
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
l_.str.1:                               ; @.str.1
	.asciz	"using MIMO rate mask"

	.comm	_CONF_TX_MIMO_RATES,4,2         ; @CONF_TX_MIMO_RATES
	.no_dead_strip	_wl18xx_ap_get_mimo_wide_rate_mask
.subsections_via_symbols
