	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_get_bwcap
_brcmf_get_bwcap:                       ## @brcmf_get_bwcap
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	_WLC_BAND_2G@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-28(%rbp), %rdx
	callq	_brcmf_fil_iovar_int_get
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_brcmf_dbg
	movl	$0, -32(%rbp)
	leaq	L_.str.2(%rip), %rsi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_brcmf_fil_iovar_int_get
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	$130, -32(%rbp)
	jmp	LBB0_11
LBB0_1:
	movl	-28(%rbp), %eax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r15,%rcx,4)
	movq	_WLC_BAND_5G@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_brcmf_fil_iovar_int_get
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	$1, %edi
	callq	_WARN_ON
	jmp	LBB0_13
LBB0_6:
	movl	-32(%rbp), %eax
	cmpl	$130, %eax
	je	LBB0_11
## %bb.7:
	cmpl	$129, %eax
	je	LBB0_10
## %bb.8:
	cmpl	$128, %eax
	jne	LBB0_12
## %bb.9:
	movq	_WLC_BW_40MHZ_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orl	%eax, (%r15,%rcx,4)
LBB0_10:
	movq	_WLC_BW_40MHZ_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orl	%eax, (%r15,%rcx,4)
LBB0_11:
	movq	_WLC_BW_20MHZ_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	orl	%ecx, (%r15,%rdx,4)
	movl	(%rax), %eax
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orl	%eax, (%r15,%rcx,4)
	jmp	LBB0_13
LBB0_2:
	movl	-28(%rbp), %eax
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r15,%rcx,4)
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_bphy_err
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLC_BAND_2G,4,2                ## @WLC_BAND_2G
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bw_cap"

	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_WLC_BAND_5G,4,2                ## @WLC_BAND_5G
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_INFO,4,2                       ## @INFO
L_.str.1:                               ## @.str.1
	.asciz	"fallback to mimo_bw_cap info\n"

L_.str.2:                               ## @.str.2
	.asciz	"mimo_bw_cap"

	.comm	_WLC_BW_40MHZ_BIT,4,2           ## @WLC_BW_40MHZ_BIT
	.comm	_WLC_BW_20MHZ_BIT,4,2           ## @WLC_BW_20MHZ_BIT
L_.str.3:                               ## @.str.3
	.asciz	"invalid mimo_bw_cap value\n"

	.no_dead_strip	_brcmf_get_bwcap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_get_bwcap
_brcmf_get_bwcap:                       ; @brcmf_get_bwcap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _WLC_BAND_2G@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLC_BAND_2G@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_brcmf_fil_iovar_int_get
	cbz	w0, LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_brcmf_dbg
	str	wzr, [sp, #8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #8
	mov	x0, x21
	bl	_brcmf_fil_iovar_int_get
Lloh12:
	adrp	x8, _NL80211_BAND_5GHZ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NL80211_BAND_5GHZ@GOTPAGEOFF]
	cbz	w0, LBB0_5
; %bb.2:
	mov	w9, #130
	str	w9, [sp, #8]
	b	LBB0_10
LBB0_3:
	ldr	w8, [sp, #12]
Lloh14:
	adrp	x9, _NL80211_BAND_2GHZ@GOTPAGE
Lloh15:
	ldr	x9, [x9, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	str	w8, [x19, x9, lsl #2]
Lloh17:
	adrp	x8, _WLC_BAND_5G@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WLC_BAND_5G@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [sp, #12]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x21
	bl	_brcmf_fil_iovar_int_get
	cbz	w0, LBB0_11
; %bb.4:
	mov	w0, #1
	bl	_WARN_ON
	b	LBB0_13
LBB0_5:
	ldr	w9, [sp, #8]
	cmp	w9, #130
	b.eq	LBB0_10
; %bb.6:
	cmp	w9, #129
	b.eq	LBB0_9
; %bb.7:
	cmp	w9, #128
	b.ne	LBB0_12
; %bb.8:
Lloh22:
	adrp	x9, _WLC_BW_40MHZ_BIT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _WLC_BW_40MHZ_BIT@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
Lloh25:
	adrp	x10, _NL80211_BAND_2GHZ@GOTPAGE
Lloh26:
	ldr	x10, [x10, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh27:
	ldr	x10, [x10]
	lsl	x10, x10, #2
	ldr	w11, [x19, x10]
	orr	w9, w11, w9
	str	w9, [x19, x10]
LBB0_9:
Lloh28:
	adrp	x9, _WLC_BW_40MHZ_BIT@GOTPAGE
Lloh29:
	ldr	x9, [x9, _WLC_BW_40MHZ_BIT@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	ldr	x10, [x8]
	lsl	x10, x10, #2
	ldr	w11, [x19, x10]
	orr	w9, w11, w9
	str	w9, [x19, x10]
LBB0_10:
Lloh31:
	adrp	x9, _WLC_BW_20MHZ_BIT@GOTPAGE
Lloh32:
	ldr	x9, [x9, _WLC_BW_20MHZ_BIT@GOTPAGEOFF]
Lloh33:
	adrp	x10, _NL80211_BAND_2GHZ@GOTPAGE
Lloh34:
	ldr	x10, [x10, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh35:
	ldr	x10, [x10]
	lsl	x10, x10, #2
	ldr	w11, [x19, x10]
	ldr	w12, [x9]
	orr	w11, w11, w12
	str	w11, [x19, x10]
	ldr	w9, [x9]
	ldr	x8, [x8]
	lsl	x8, x8, #2
	ldr	w10, [x19, x8]
	orr	w9, w10, w9
	str	w9, [x19, x8]
	b	LBB0_13
LBB0_11:
	ldr	w8, [sp, #12]
Lloh36:
	adrp	x9, _NL80211_BAND_5GHZ@GOTPAGE
Lloh37:
	ldr	x9, [x9, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	str	w8, [x19, x9, lsl #2]
	b	LBB0_13
LBB0_12:
Lloh39:
	adrp	x1, l_.str.3@PAGE
Lloh40:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_bphy_err
LBB0_13:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_WLC_BAND_2G,4,2                ; @WLC_BAND_2G
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bw_cap"

	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_WLC_BAND_5G,4,2                ; @WLC_BAND_5G
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_INFO,4,2                       ; @INFO
l_.str.1:                               ; @.str.1
	.asciz	"fallback to mimo_bw_cap info\n"

l_.str.2:                               ; @.str.2
	.asciz	"mimo_bw_cap"

	.comm	_WLC_BW_40MHZ_BIT,4,2           ; @WLC_BW_40MHZ_BIT
	.comm	_WLC_BW_20MHZ_BIT,4,2           ; @WLC_BW_20MHZ_BIT
l_.str.3:                               ; @.str.3
	.asciz	"invalid mimo_bw_cap value\n"

	.no_dead_strip	_brcmf_get_bwcap
.subsections_via_symbols
