	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_b_bsinit
_brcms_b_bsinit:                        ## @brcms_b_bsinit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	(%rdi), %rbx
	movl	20(%rbx), %edi
	movl	16(%rbx), %edx
	movq	8(%rbx), %rax
	movl	36(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_brcms_dbg_mac80211
	movq	%rbx, %rdi
	callq	_brcms_c_ucode_bsinit
	movq	8(%rbx), %rax
	movl	32(%rax), %edi
	movl	%r14d, %esi
	callq	_wlc_phy_init
	movq	%rbx, %rdi
	callq	_brcms_c_ucode_txant_set
	movq	8(%rbx), %rax
	movl	28(%rax), %esi
	movq	%rbx, %rdi
	callq	_brcms_b_set_cwmin
	movq	8(%rbx), %rax
	movl	24(%rax), %esi
	movq	%rbx, %rdi
	callq	_brcms_b_set_cwmax
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_BRCM_BAND_5G@GOTPCREL(%rip), %rcx
	movl	$1, %esi
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %esi
LBB0_2:
	movq	%rbx, %rdi
	callq	_brcms_b_update_slot_timing
	movq	_M_PHYTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rax
	movl	16(%rax), %edx
	movq	%rbx, %rdi
	callq	_brcms_b_write_shm
	movq	_M_PHYVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rax
	movl	8(%rax), %edx
	movq	%rbx, %rdi
	callq	_brcms_b_write_shm
	movq	%rbx, %rdi
	callq	_brcms_upd_ofdm_pctl1_table
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_brcms_b_upd_synthpu            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wl%d: bandunit %d\n"

	.comm	_BRCM_BAND_5G,8,3               ## @BRCM_BAND_5G
	.comm	_M_PHYTYPE,4,2                  ## @M_PHYTYPE
	.comm	_M_PHYVER,4,2                   ## @M_PHYVER
	.no_dead_strip	_brcms_b_bsinit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_b_bsinit
_brcms_b_bsinit:                        ; @brcms_b_bsinit
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	ldr	x19, [x0]
	ldp	w2, w0, [x19, #16]
	ldr	x8, [x19, #8]
	ldr	w3, [x8, #36]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcms_dbg_mac80211
	mov	x0, x19
	bl	_brcms_c_ucode_bsinit
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #32]
	mov	x1, x20
	bl	_wlc_phy_init
	mov	x0, x19
	bl	_brcms_c_ucode_txant_set
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #28]
	mov	x0, x19
	bl	_brcms_b_set_cwmin
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #24]
	mov	x0, x19
	bl	_brcms_b_set_cwmax
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _BRCM_BAND_5G@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BRCM_BAND_5G@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w1, #1
	b	LBB0_3
LBB0_2:
	ldr	w1, [x19]
LBB0_3:
	mov	x0, x19
	bl	_brcms_b_update_slot_timing
Lloh5:
	adrp	x8, _M_PHYTYPE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _M_PHYTYPE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	ldr	w2, [x8, #16]
	mov	x0, x19
	bl	_brcms_b_write_shm
Lloh8:
	adrp	x8, _M_PHYVER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _M_PHYVER@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	ldr	w2, [x8, #8]
	mov	x0, x19
	bl	_brcms_b_write_shm
	mov	x0, x19
	bl	_brcms_upd_ofdm_pctl1_table
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_brcms_b_upd_synthpu
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wl%d: bandunit %d\n"

	.comm	_BRCM_BAND_5G,8,3               ; @BRCM_BAND_5G
	.comm	_M_PHYTYPE,4,2                  ; @M_PHYTYPE
	.comm	_M_PHYVER,4,2                   ; @M_PHYVER
	.no_dead_strip	_brcms_b_bsinit
.subsections_via_symbols
