	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_b_set_chanspec           ## -- Begin function brcms_b_set_chanspec
	.p2align	4, 0x90
_brcms_b_set_chanspec:                  ## @brcms_b_set_chanspec
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	44(%rdi), %edx
	movl	48(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %ecx
	callq	_brcms_dbg_mac80211
	movl	%r14d, 40(%rbx)
	cmpl	$2, (%rbx)
	jl	LBB0_5
## %bb.1:
	movl	%r14d, %edi
	callq	_chspec_bandunit
	movq	%rax, %r13
	movq	8(%rbx), %rax
	cmpq	%r13, (%rax)
	je	LBB0_5
## %bb.2:
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.3:
	movq	32(%rbx), %rax
	movq	(%rax,%r13,8), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_wlc_phy_chanspec_radio_set
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_brcms_b_setband
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_brcms_c_setxband
LBB0_5:
	movq	8(%rbx), %rax
	movl	8(%rax), %edi
	xorl	%esi, %esi
	testl	%r12d, %r12d
	sete	%sil
	callq	_wlc_phy_initcal_enable
	cmpq	$0, 24(%rbx)
	je	LBB0_6
## %bb.9:
	movq	8(%rbx), %rax
	movl	8(%rax), %edi
	movl	%r14d, %esi
	callq	_wlc_phy_chanspec_set
	movq	8(%rbx), %rax
	movl	8(%rax), %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_wlc_phy_txpower_limit_set
	movq	%rbx, %rdi
	movl	%r12d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcms_b_mute                   ## TAILCALL
LBB0_6:
	cmpq	$0, 16(%rbx)
	je	LBB0_8
## %bb.7:
	movq	8(%rbx), %rax
	movl	8(%rax), %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_wlc_phy_txpower_limit_set
LBB0_8:
	movq	8(%rbx), %rax
	movl	8(%rax), %edi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wlc_phy_chanspec_radio_set     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wl%d: 0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_b_set_chanspec           ; -- Begin function brcms_b_set_chanspec
	.p2align	2
_brcms_b_set_chanspec:                  ; @brcms_b_set_chanspec
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #48]
	ldr	w2, [x20, #44]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	bl	_brcms_dbg_mac80211
	str	w19, [x20, #40]
	ldr	w8, [x20]
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_chspec_bandunit
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cmp	x8, x0
	b.eq	LBB0_5
; %bb.2:
	mov	x23, x0
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x20, #32]
	ldr	x8, [x8, x23, lsl #3]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_wlc_phy_chanspec_radio_set
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	bl	_brcms_b_setband
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	mov	x1, x23
	bl	_brcms_c_setxband
LBB0_5:
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #8]
	cmp	w22, #0
	cset	w1, eq
	bl	_wlc_phy_initcal_enable
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #8]
	mov	x1, x19
	bl	_wlc_phy_chanspec_set
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #8]
	mov	x1, x21
	mov	x2, x19
	bl	_wlc_phy_txpower_limit_set
	mov	x0, x20
	mov	x1, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_brcms_b_mute
LBB0_7:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #8]
	mov	x1, x21
	mov	x2, x19
	bl	_wlc_phy_txpower_limit_set
LBB0_9:
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #8]
	mov	x1, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_wlc_phy_chanspec_radio_set
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wl%d: 0x%x\n"

.subsections_via_symbols
