	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_setup_wiphybands
_brcmf_setup_wiphybands:                ## @brcmf_setup_wiphybands
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_brcmf_get_ifp
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_cfg_to_wiphy
	movq	%rax, %r15
	movl	$0, -64(%rbp)
	movl	$0, -60(%rbp)
	movq	_WLC_BW_20MHZ_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	%eax, -52(%rbp)
	movl	$0, -76(%rbp)
	movl	$0, -72(%rbp)
	movl	$0, -68(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-60(%rbp), %rdx
	movq	%r14, %rdi
	callq	_brcmf_fil_iovar_int_get
	leaq	L_.str.1(%rip), %rsi
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	callq	_brcmf_fil_iovar_int_get
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_bphy_err
	jmp	LBB0_3
LBB0_2:
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_brcmf_get_bwcap
LBB0_3:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-64(%rbp), %edx
	movl	-60(%rbp), %ecx
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-56(%rbp,%rax,4), %r8d
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-56(%rbp,%rax,4), %r9d
	leaq	L_.str.3(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_brcmf_dbg
	leaq	L_.str.4(%rip), %rsi
	leaq	-80(%rbp), %rdx
	movq	%r14, %rdi
	callq	_brcmf_fil_iovar_int_get
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_bphy_err
	movl	$1, %r12d
	jmp	LBB0_9
LBB0_5:
	movl	-80(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%rax), %ecx
	incl	%r12d
	andl	%eax, %ecx
	movl	%ecx, %eax
	jne	LBB0_7
## %bb.8:
	movl	$0, -80(%rbp)
LBB0_9:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_brcmf_dbg
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_brcmf_construct_chaninfo
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r13d
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_bphy_err
	jmp	LBB0_22
LBB0_11:
	cmpl	$0, -60(%rbp)
	je	LBB0_13
## %bb.12:
	leaq	L_.str.8(%rip), %rsi
	leaq	-76(%rbp), %rdx
	movq	%r14, %rdi
	callq	_brcmf_fil_iovar_int_get
	leaq	L_.str.9(%rip), %rsi
	leaq	-72(%rbp), %rdx
	movq	%r14, %rdi
	callq	_brcmf_fil_iovar_int_get
	leaq	L_.str.10(%rip), %rsi
	leaq	-68(%rbp), %rdx
	movq	%r14, %rdi
	callq	_brcmf_fil_iovar_int_get
LBB0_13:
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testq	%rax, %rax
	je	LBB0_21
## %bb.14:
	xorl	%ebx, %ebx
	leaq	-56(%rbp), %r14
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%rbx
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %rbx
	jae	LBB0_21
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %r13
	testq	%r13, %r13
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$0, -64(%rbp)
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_brcmf_update_ht_cap
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$0, -60(%rbp)
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	-76(%rbp), %ecx
	movl	-72(%rbp), %r8d
	movl	-68(%rbp), %r9d
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_brcmf_update_vht_cap
	jmp	LBB0_20
LBB0_21:
	xorl	%r13d, %r13d
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.23:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_WLC_BW_20MHZ_BIT,4,2           ## @WLC_BW_20MHZ_BIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vhtmode"

L_.str.1:                               ## @.str.1
	.asciz	"nmode"

L_.str.2:                               ## @.str.2
	.asciz	"nmode error (%d)\n"

	.comm	_INFO,4,2                       ## @INFO
L_.str.3:                               ## @.str.3
	.asciz	"nmode=%d, vhtmode=%d, bw_cap=(%d, %d)\n"

	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
L_.str.4:                               ## @.str.4
	.asciz	"rxchain"

L_.str.5:                               ## @.str.5
	.asciz	"rxchain error (%d)\n"

L_.str.6:                               ## @.str.6
	.asciz	"nchain=%d\n"

L_.str.7:                               ## @.str.7
	.asciz	"brcmf_construct_chaninfo failed (%d)\n"

L_.str.8:                               ## @.str.8
	.asciz	"txstreams"

L_.str.9:                               ## @.str.9
	.asciz	"txbf_bfe_cap"

L_.str.10:                              ## @.str.10
	.asciz	"txbf_bfr_cap"

	.no_dead_strip	_brcmf_setup_wiphybands
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_setup_wiphybands
_brcmf_setup_wiphybands:                ; @brcmf_setup_wiphybands
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	x21, [x0]
	mov	x0, x21
	mov	w1, #0
	bl	_brcmf_get_ifp
	mov	x20, x0
	mov	x0, x22
	bl	_cfg_to_wiphy
	mov	x19, x0
	str	xzr, [sp, #40]
Lloh3:
	adrp	x8, _WLC_BW_20MHZ_BIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WLC_BW_20MHZ_BIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w8, w8, [sp, #48]
	str	wzr, [sp, #32]
	str	xzr, [sp, #24]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #40
	mov	x0, x20
	bl	_brcmf_fil_iovar_int_get
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #44
	mov	x0, x20
	bl	_brcmf_fil_iovar_int_get
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_bphy_err
	b	LBB0_3
LBB0_2:
	add	x1, sp, #48
	mov	x0, x20
	bl	_brcmf_get_bwcap
LBB0_3:
Lloh12:
	adrp	x24, _INFO@GOTPAGE
Lloh13:
	ldr	x24, [x24, _INFO@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh14:
	adrp	x8, _NL80211_BAND_2GHZ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _NL80211_BAND_5GHZ@GOTPAGE
Lloh18:
	ldr	x9, [x9, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x10, sp, #48
	ldr	w8, [x10, x8, lsl #2]
	ldr	w9, [x10, x9, lsl #2]
	ldp	w10, w2, [sp, #40]
	stp	x8, x9, [sp, #8]
	str	x10, [sp]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_brcmf_dbg
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #36
	mov	x0, x20
	bl	_brcmf_fil_iovar_int_get
	cbz	w0, LBB0_5
; %bb.4:
	mov	x2, x0
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_bphy_err
	mov	w23, #1
	b	LBB0_10
LBB0_5:
	ldr	w8, [sp, #36]
	cbz	w8, LBB0_9
; %bb.6:
	fmov	d0, x8
	cnt.8b	v0, v0
	uaddlv.8b	h0, v0
	fmov	w23, s0
	mov	x9, x23
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	w10, w8, #1
	and	w8, w10, w8
	subs	w9, w9, #1
	b.ne	LBB0_7
; %bb.8:
	str	w8, [sp, #36]
	b	LBB0_10
LBB0_9:
	mov	w23, #0
LBB0_10:
	ldr	w0, [x24]
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x23
	bl	_brcmf_dbg
	add	x1, sp, #48
	mov	x0, x22
	bl	_brcmf_construct_chaninfo
	cbz	w0, LBB0_12
; %bb.11:
	mov	x22, x0
Lloh28:
	adrp	x1, l_.str.7@PAGE
Lloh29:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_bphy_err
	b	LBB0_23
LBB0_12:
	ldr	w8, [sp, #40]
	cbz	w8, LBB0_14
; %bb.13:
Lloh30:
	adrp	x1, l_.str.8@PAGE
Lloh31:
	add	x1, x1, l_.str.8@PAGEOFF
	add	x2, sp, #32
	mov	x0, x20
	bl	_brcmf_fil_iovar_int_get
Lloh32:
	adrp	x1, l_.str.9@PAGE
Lloh33:
	add	x1, x1, l_.str.9@PAGEOFF
	add	x2, sp, #28
	mov	x0, x20
	bl	_brcmf_fil_iovar_int_get
Lloh34:
	adrp	x1, l_.str.10@PAGE
Lloh35:
	add	x1, x1, l_.str.10@PAGEOFF
	add	x2, sp, #24
	mov	x0, x20
	bl	_brcmf_fil_iovar_int_get
LBB0_14:
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	cbz	x0, LBB0_22
; %bb.15:
	mov	x21, #0
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x21, x21, #1
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	cmp	x21, x0
	b.hs	LBB0_22
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x20, [x8, x21, lsl #3]
	cbz	x20, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w8, [sp, #44]
	cbz	w8, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	add	x1, sp, #48
	mov	x0, x20
	mov	x2, x23
	bl	_brcmf_update_ht_cap
LBB0_20:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	w8, [sp, #40]
	cbz	w8, LBB0_16
; %bb.21:                               ;   in Loop: Header=BB0_17 Depth=1
	ldp	w4, w3, [sp, #28]
	ldr	w5, [sp, #24]
	add	x1, sp, #48
	mov	x0, x20
	mov	x2, x23
	bl	_brcmf_update_vht_cap
	b	LBB0_16
LBB0_22:
	mov	w22, #0
LBB0_23:
	ldr	x8, [sp, #56]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.24:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_WLC_BW_20MHZ_BIT,4,2           ; @WLC_BW_20MHZ_BIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vhtmode"

l_.str.1:                               ; @.str.1
	.asciz	"nmode"

l_.str.2:                               ; @.str.2
	.asciz	"nmode error (%d)\n"

	.comm	_INFO,4,2                       ; @INFO
l_.str.3:                               ; @.str.3
	.asciz	"nmode=%d, vhtmode=%d, bw_cap=(%d, %d)\n"

	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
l_.str.4:                               ; @.str.4
	.asciz	"rxchain"

l_.str.5:                               ; @.str.5
	.asciz	"rxchain error (%d)\n"

l_.str.6:                               ; @.str.6
	.asciz	"nchain=%d\n"

l_.str.7:                               ; @.str.7
	.asciz	"brcmf_construct_chaninfo failed (%d)\n"

l_.str.8:                               ; @.str.8
	.asciz	"txstreams"

l_.str.9:                               ; @.str.9
	.asciz	"txbf_bfe_cap"

l_.str.10:                              ; @.str.10
	.asciz	"txbf_bfr_cap"

	.no_dead_strip	_brcmf_setup_wiphybands
.subsections_via_symbols
