	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_update_supported_bands         ## -- Begin function update_supported_bands
	.p2align	4, 0x90
_update_supported_bands:                ## @update_supported_bands
	.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	%rdi, %rbx
	callq	_wil_to_wiphy
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_wil_dbg_misc
	movq	%rbx, %rdi
	callq	_wil_num_supported_channels
	movq	(%r14), %rcx
	movq	_NL80211_BAND_60GHZ@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movl	%eax, 8(%rcx)
	movq	_WMI_FW_CAPABILITY_CHANNEL_BONDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_WIL_EDMG_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movq	(%r15), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movl	%eax, 4(%rcx)
	movq	_WIL_EDMG_BW_CONFIGURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"update supported bands"

	.comm	_NL80211_BAND_60GHZ,8,3         ## @NL80211_BAND_60GHZ
	.comm	_WMI_FW_CAPABILITY_CHANNEL_BONDING,4,2 ## @WMI_FW_CAPABILITY_CHANNEL_BONDING
	.comm	_WIL_EDMG_CHANNELS,4,2          ## @WIL_EDMG_CHANNELS
	.comm	_WIL_EDMG_BW_CONFIGURATION,4,2  ## @WIL_EDMG_BW_CONFIGURATION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_update_supported_bands         ; -- Begin function update_supported_bands
	.p2align	2
_update_supported_bands:                ; @update_supported_bands
	.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	x20, x0
	bl	_wil_to_wiphy
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_wil_dbg_misc
	mov	x0, x20
	bl	_wil_num_supported_channels
	ldr	x8, [x19]
Lloh2:
	adrp	x21, _NL80211_BAND_60GHZ@GOTPAGE
Lloh3:
	ldr	x21, [x21, _NL80211_BAND_60GHZ@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	str	w0, [x8, #8]
Lloh4:
	adrp	x8, _WMI_FW_CAPABILITY_CHANNEL_BONDING@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WMI_FW_CAPABILITY_CHANNEL_BONDING@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _WIL_EDMG_CHANNELS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WIL_EDMG_CHANNELS@GOTPAGEOFF]
	ldr	x9, [x19]
	ldr	x10, [x21]
	ldr	x9, [x9, x10, lsl #3]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x10, _WIL_EDMG_BW_CONFIGURATION@GOTPAGE
Lloh11:
	ldr	x10, [x10, _WIL_EDMG_BW_CONFIGURATION@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	stp	w10, w8, [x9]
LBB0_2:
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"update supported bands"

	.comm	_NL80211_BAND_60GHZ,8,3         ; @NL80211_BAND_60GHZ
	.comm	_WMI_FW_CAPABILITY_CHANNEL_BONDING,4,2 ; @WMI_FW_CAPABILITY_CHANNEL_BONDING
	.comm	_WIL_EDMG_CHANNELS,4,2          ; @WIL_EDMG_CHANNELS
	.comm	_WIL_EDMG_BW_CONFIGURATION,4,2  ; @WIL_EDMG_BW_CONFIGURATION
.subsections_via_symbols
