	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_b_bw_set                 ## -- Begin function brcms_b_bw_set
	.p2align	4, 0x90
_brcms_b_bw_set:                        ## @brcms_b_bw_set
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	(%rdi), %r12d
	testl	%r12d, %r12d
	jne	LBB0_2
## %bb.1:
	movq	_BCMA_CLKMODE_FAST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_brcms_b_clkctl_clk
LBB0_2:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_wlc_phy_bw_state_set
	movq	%r15, %rdi
	callq	_brcms_b_phy_reset
	movq	8(%r15), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_wlc_phy_chanspec_get
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_wlc_phy_init
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_BCMA_CLKMODE_DYNAMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcms_b_clkctl_clk             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BCMA_CLKMODE_FAST,4,2          ## @BCMA_CLKMODE_FAST
	.comm	_BCMA_CLKMODE_DYNAMIC,4,2       ## @BCMA_CLKMODE_DYNAMIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_b_bw_set                 ; -- Begin function brcms_b_bw_set
	.p2align	2
_brcms_b_bw_set:                        ; @brcms_b_bw_set
	.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, x1
	mov	x19, x0
	ldr	w21, [x0]
	cbnz	w21, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _BCMA_CLKMODE_FAST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BCMA_CLKMODE_FAST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_brcms_b_clkctl_clk
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_wlc_phy_bw_state_set
	mov	x0, x19
	bl	_brcms_b_phy_reset
	ldr	x8, [x19, #8]
	ldr	w20, [x8]
	mov	x0, x20
	bl	_wlc_phy_chanspec_get
	mov	x1, x0
	mov	x0, x20
	bl	_wlc_phy_init
	cbz	w21, LBB0_4
; %bb.3:
	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
LBB0_4:
Lloh3:
	adrp	x8, _BCMA_CLKMODE_DYNAMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BCMA_CLKMODE_DYNAMIC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_brcms_b_clkctl_clk
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BCMA_CLKMODE_FAST,4,2          ; @BCMA_CLKMODE_FAST
	.comm	_BCMA_CLKMODE_DYNAMIC,4,2       ; @BCMA_CLKMODE_DYNAMIC
.subsections_via_symbols
