	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_b_init
_brcms_b_init:                          ## @brcms_b_init
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	movl	(%rdi), %r13d
	testl	%r13d, %r13d
	jne	LBB0_2
## %bb.1:
	movq	_BCMA_CLKMODE_FAST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_brcms_b_clkctl_clk
LBB0_2:
	movl	(%r14), %edi
	callq	_brcms_intrsoff
	movl	%eax, %r12d
	movl	%r15d, %edi
	callq	_chspec_bandunit
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_brcms_c_setxband
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_wlc_phy_chanspec_radio_set
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_wlc_phy_cal_init
	movq	%r14, %rdi
	callq	_brcms_b_coreinit
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_brcms_b_bsinit
	movl	(%r14), %edi
	movl	%r12d, %esi
	callq	_brcms_intrsrestore
	movl	8(%rbx), %edi
	movq	_BRCMS_WAKE_OVERRIDE_MACSUSPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mboolset
	movl	$1, 4(%rbx)
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_BCMA_CLKMODE_DYNAMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	_BRCMS_WAKE_OVERRIDE_MACSUSPEND,4,2 ## @BRCMS_WAKE_OVERRIDE_MACSUSPEND
	.comm	_BCMA_CLKMODE_DYNAMIC,4,2       ## @BCMA_CLKMODE_DYNAMIC
	.no_dead_strip	_brcms_b_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_b_init
_brcms_b_init:                          ; @brcms_b_init
	.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, x1
	mov	x19, x0
	ldr	x20, [x0, #24]
	ldr	w23, [x0]
	cbnz	w23, 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	w0, [x20]
	bl	_brcms_intrsoff
	mov	x22, x0
	mov	x0, x21
	bl	_chspec_bandunit
	mov	x1, x0
	mov	x0, x19
	bl	_brcms_c_setxband
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	mov	x1, x21
	bl	_wlc_phy_chanspec_radio_set
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_wlc_phy_cal_init
	mov	x0, x20
	bl	_brcms_b_coreinit
	mov	x0, x20
	mov	x1, x21
	bl	_brcms_b_bsinit
	ldr	w0, [x20]
	mov	x1, x22
	bl	_brcms_intrsrestore
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x8, _BRCMS_WAKE_OVERRIDE_MACSUSPEND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BRCMS_WAKE_OVERRIDE_MACSUSPEND@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_mboolset
	mov	w8, #1
	str	w8, [x19, #4]
	cbz	w23, LBB0_4
; %bb.3:
	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
	ret
LBB0_4:
Lloh6:
	adrp	x8, _BCMA_CLKMODE_DYNAMIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BCMA_CLKMODE_DYNAMIC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, 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	_brcms_b_clkctl_clk
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BCMA_CLKMODE_FAST,4,2          ; @BCMA_CLKMODE_FAST
	.comm	_BRCMS_WAKE_OVERRIDE_MACSUSPEND,4,2 ; @BRCMS_WAKE_OVERRIDE_MACSUSPEND
	.comm	_BCMA_CLKMODE_DYNAMIC,4,2       ; @BCMA_CLKMODE_DYNAMIC
	.no_dead_strip	_brcms_b_init
.subsections_via_symbols
