	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_txpower_update_shm     ## -- Begin function wlc_phy_txpower_update_shm
	.p2align	4, 0x90
_wlc_phy_txpower_update_shm:            ## @wlc_phy_txpower_update_shm
	.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	%rdi, %r14
	callq	_ISNPHY
	testq	%rax, %rax
	je	LBB0_1
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	16(%r14), %rax
	cmpl	$0, 4(%rax)
	je	LBB0_14
## %bb.2:
	cmpq	$0, 24(%r14)
	je	LBB0_8
## %bb.3:
	movl	(%rax), %edi
	movq	_M_TXPWR_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$63, %edx
	callq	_wlapi_bmac_write_shm
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movq	_M_TXPWR_N@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NUM_TSSI_FRAMES@GOTPCREL(%rip), %rbx
	movb	(%rbx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	callq	_wlapi_bmac_write_shm
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movq	_M_TXPWR_TARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movb	(%rbx), %cl
	shll	%cl, %edx
	callq	_wlapi_bmac_write_shm
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movq	_M_TXPWR_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	callq	_wlapi_bmac_write_shm
	movq	_TXP_FIRST_OFDM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_TXP_LAST_OFDM@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jle	LBB0_4
LBB0_7:
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movq	_MHF2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MHF2_HWPWRCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_BRCM_BAND_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%ecx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wlapi_bmac_mhf                 ## TAILCALL
LBB0_8:
	movq	_TXP_FIRST_OFDM@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_TXP_LAST_OFDM@GOTPCREL(%rip), %r12
	cmpl	(%r12), %edx
	jle	LBB0_10
## %bb.9:
	movq	8(%r14), %rcx
	jmp	LBB0_13
LBB0_4:
	movslq	%eax, %r13
	leaq	_wlc_phy_txpower_update_shm.ucode_ofdm_rates(%rip), %rcx
	leaq	(%rcx,%r13,4), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rcx
	movl	(%rcx), %edi
	cltq
	shlq	$2, %rax
	movq	%r15, %rcx
	subq	%rax, %rcx
	movl	(%rcx), %esi
	callq	_wlapi_bmac_rate_shm_offset
	movl	%eax, %ebx
	movq	8(%r14), %rax
	movq	16(%r14), %rcx
	movl	(%rcx), %edi
	leal	6(%rbx), %esi
	movl	(%rax,%r13,4), %edx
	callq	_wlapi_bmac_write_shm
	movq	8(%r14), %rax
	movq	16(%r14), %rcx
	movl	(%rcx), %edi
	addl	$14, %ebx
	movl	(%rax,%r13,4), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	negl	%edx
	movl	%ebx, %esi
	callq	_wlapi_bmac_write_shm
	movslq	(%r12), %rax
	cmpq	%rax, %r13
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	movq	_TXP_FIRST_OFDM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$4, %r15
	jmp	LBB0_5
LBB0_10:
	movslq	%edx, %rbx
	movq	8(%r14), %rcx
	decq	%rbx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%rcx,%rbx,4), %edi
	movl	$8, %esi
	callq	_roundup
	movq	8(%r14), %rcx
	movl	%eax, 4(%rcx,%rbx,4)
	movslq	(%r12), %rax
	incq	%rbx
	cmpq	%rax, %rbx
	jl	LBB0_11
## %bb.12:
	movq	16(%r14), %rax
	movl	(%r15), %edx
LBB0_13:
	movl	(%rax), %edi
	movq	_M_OFDM_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movslq	%edx, %rax
	movl	(%rcx,%rax,4), %edx
	addl	$7, %edx
	sarl	$3, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wlapi_bmac_write_shm           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_M_TXPWR_MAX,4,2                ## @M_TXPWR_MAX
	.comm	_M_TXPWR_N,4,2                  ## @M_TXPWR_N
	.comm	_NUM_TSSI_FRAMES,4,2            ## @NUM_TSSI_FRAMES
	.comm	_M_TXPWR_TARGET,4,2             ## @M_TXPWR_TARGET
	.comm	_M_TXPWR_CUR,4,2                ## @M_TXPWR_CUR
	.comm	_TXP_FIRST_OFDM,4,2             ## @TXP_FIRST_OFDM
	.comm	_TXP_LAST_OFDM,4,2              ## @TXP_LAST_OFDM
	.section	__TEXT,__const
	.p2align	4                               ## @wlc_phy_txpower_update_shm.ucode_ofdm_rates
_wlc_phy_txpower_update_shm.ucode_ofdm_rates:
	.long	12                              ## 0xc
	.long	18                              ## 0x12
	.long	24                              ## 0x18
	.long	36                              ## 0x24
	.long	48                              ## 0x30
	.long	72                              ## 0x48
	.long	96                              ## 0x60
	.long	108                             ## 0x6c

	.comm	_MHF2,4,2                       ## @MHF2
	.comm	_MHF2_HWPWRCTL,4,2              ## @MHF2_HWPWRCTL
	.comm	_BRCM_BAND_ALL,4,2              ## @BRCM_BAND_ALL
	.comm	_M_OFDM_OFFSET,4,2              ## @M_OFDM_OFFSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_txpower_update_shm     ; -- Begin function wlc_phy_txpower_update_shm
	.p2align	2
_wlc_phy_txpower_update_shm:            ; @wlc_phy_txpower_update_shm
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_ISNPHY
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x9, [x19, #16]
	ldr	w8, [x9, #4]
	cbz	w8, LBB0_1
; %bb.3:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	w0, [x9]
Lloh0:
	adrp	x8, _M_TXPWR_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_TXPWR_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #63
	bl	_wlapi_bmac_write_shm
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _M_TXPWR_N@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M_TXPWR_N@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x20, _NUM_TSSI_FRAMES@GOTPAGE
Lloh7:
	ldr	x20, [x20, _NUM_TSSI_FRAMES@GOTPAGEOFF]
	ldr	w8, [x20]
	mov	w9, #1
	lsl	w2, w9, w8
	bl	_wlapi_bmac_write_shm
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _M_TXPWR_TARGET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _M_TXPWR_TARGET@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w8, [x19]
	ldr	w9, [x20]
	lsl	w2, w8, w9
	bl	_wlapi_bmac_write_shm
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _M_TXPWR_CUR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _M_TXPWR_CUR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	bl	_wlapi_bmac_write_shm
Lloh14:
	adrp	x21, _TXP_FIRST_OFDM@GOTPAGE
Lloh15:
	ldr	x21, [x21, _TXP_FIRST_OFDM@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh16:
	adrp	x22, _TXP_LAST_OFDM@GOTPAGE
Lloh17:
	ldr	x22, [x22, _TXP_LAST_OFDM@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w8, w9
	b.le	LBB0_8
LBB0_5:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _MHF2@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MHF2@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _MHF2_HWPWRCTL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MHF2_HWPWRCTL@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x8, _BRCM_BAND_ALL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BRCM_BAND_ALL@GOTPAGEOFF]
Lloh26:
	ldr	w4, [x8]
	mov	x3, x2
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_wlapi_bmac_mhf
LBB0_6:
Lloh27:
	adrp	x20, _TXP_FIRST_OFDM@GOTPAGE
Lloh28:
	ldr	x20, [x20, _TXP_FIRST_OFDM@GOTPAGEOFF]
	ldr	w10, [x20]
Lloh29:
	adrp	x21, _TXP_LAST_OFDM@GOTPAGE
Lloh30:
	ldr	x21, [x21, _TXP_LAST_OFDM@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w10, w8
	b.le	LBB0_11
; %bb.7:
	ldr	x8, [x19, #8]
	b	LBB0_14
LBB0_8:
	sxtw	x23, w8
Lloh31:
	adrp	x24, _wlc_phy_txpower_update_shm.ucode_ofdm_rates@PAGE
Lloh32:
	add	x24, x24, _wlc_phy_txpower_update_shm.ucode_ofdm_rates@PAGEOFF
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	ldr	w0, [x9]
	sub	x8, x24, w8, sxtw #2
	lsl	x25, x23, #2
	ldr	w1, [x8, x25]
	bl	_wlapi_bmac_rate_shm_offset
	mov	x20, x0
	ldp	x9, x8, [x19, #8]
	ldr	w0, [x8]
	add	w1, w20, #6
	ldr	w2, [x9, x25]
	bl	_wlapi_bmac_write_shm
	ldp	x9, x8, [x19, #8]
	ldr	w0, [x8]
	add	w1, w20, #14
	ldr	w8, [x9, x25]
	cmp	w8, #0
	cinc	w8, w8, lt
	neg	w2, w8, asr #1
	bl	_wlapi_bmac_write_shm
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.ge	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x23, x23, #1
	ldr	w8, [x21]
	b	LBB0_9
LBB0_11:
	sxtw	x22, w10
	ldr	x8, [x19, #8]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	lsl	x23, x22, #2
	ldr	w0, [x8, x23]
	mov	w1, #8
	bl	_roundup
	ldr	x8, [x19, #8]
	str	w0, [x8, x23]
	add	x9, x22, #1
	ldrsw	x10, [x21]
	cmp	x22, x10
	mov	x22, x9
	b.lt	LBB0_12
; %bb.13:
	ldr	x9, [x19, #16]
	ldr	w10, [x20]
LBB0_14:
	ldr	w0, [x9]
Lloh33:
	adrp	x9, _M_OFDM_OFFSET@GOTPAGE
Lloh34:
	ldr	x9, [x9, _M_OFDM_OFFSET@GOTPAGEOFF]
	ldr	w8, [x8, w10, sxtw #2]
Lloh35:
	ldr	w1, [x9]
	add	w8, w8, #7
	asr	w2, w8, #3
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_wlapi_bmac_write_shm
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_M_TXPWR_MAX,4,2                ; @M_TXPWR_MAX
	.comm	_M_TXPWR_N,4,2                  ; @M_TXPWR_N
	.comm	_NUM_TSSI_FRAMES,4,2            ; @NUM_TSSI_FRAMES
	.comm	_M_TXPWR_TARGET,4,2             ; @M_TXPWR_TARGET
	.comm	_M_TXPWR_CUR,4,2                ; @M_TXPWR_CUR
	.comm	_TXP_FIRST_OFDM,4,2             ; @TXP_FIRST_OFDM
	.comm	_TXP_LAST_OFDM,4,2              ; @TXP_LAST_OFDM
	.section	__TEXT,__const
	.p2align	2                               ; @wlc_phy_txpower_update_shm.ucode_ofdm_rates
_wlc_phy_txpower_update_shm.ucode_ofdm_rates:
	.long	12                              ; 0xc
	.long	18                              ; 0x12
	.long	24                              ; 0x18
	.long	36                              ; 0x24
	.long	48                              ; 0x30
	.long	72                              ; 0x48
	.long	96                              ; 0x60
	.long	108                             ; 0x6c

	.comm	_MHF2,4,2                       ; @MHF2
	.comm	_MHF2_HWPWRCTL,4,2              ; @MHF2_HWPWRCTL
	.comm	_BRCM_BAND_ALL,4,2              ; @BRCM_BAND_ALL
	.comm	_M_OFDM_OFFSET,4,2              ; @M_OFDM_OFFSET
.subsections_via_symbols
