	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_lcnphy_clear_tx_power_offsets
_wlc_lcnphy_clear_tx_power_offsets:     ## @wlc_lcnphy_clear_tx_power_offsets
	.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
	subq	$304, %rsp                      ## imm = 0x130
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	leaq	-288(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	movq	_LCNPHY_TBL_ID_TXPWRCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -296(%rbp)
	movl	$32, -320(%rbp)
	movq	%r14, -304(%rbp)
	movq	%rbx, %rdi
	callq	_wlc_lcnphy_tempsense_based_pwr_ctrl_enabled
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	$30, -316(%rbp)
	movq	_LCNPHY_TX_PWR_CTRL_RATE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -312(%rbp)
	leaq	-320(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_wlc_lcnphy_write_table
LBB0_2:
	movl	$64, -316(%rbp)
	movq	_LCNPHY_TX_PWR_CTRL_MAC_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -312(%rbp)
	leaq	-320(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_wlc_lcnphy_write_table
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$304, %rsp                      ## imm = 0x130
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LCNPHY_TBL_ID_TXPWRCTL,4,2     ## @LCNPHY_TBL_ID_TXPWRCTL
	.comm	_LCNPHY_TX_PWR_CTRL_RATE_OFFSET,4,2 ## @LCNPHY_TX_PWR_CTRL_RATE_OFFSET
	.comm	_LCNPHY_TX_PWR_CTRL_MAC_OFFSET,4,2 ## @LCNPHY_TX_PWR_CTRL_MAC_OFFSET
	.no_dead_strip	_wlc_lcnphy_clear_tx_power_offsets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlc_lcnphy_clear_tx_power_offsets
_wlc_lcnphy_clear_tx_power_offsets:     ; @wlc_lcnphy_clear_tx_power_offsets
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #352
	.cfi_def_cfa_offset 352
	stp	x28, x27, [sp, #304]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #320]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #336]            ; 16-byte Folded Spill
	add	x29, sp, #336
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w27, -40
	.cfi_offset w28, -48
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	add	x20, sp, #40
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #256
	bl	_memset
Lloh3:
	adrp	x8, _LCNPHY_TBL_ID_TXPWRCTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LCNPHY_TBL_ID_TXPWRCTL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	mov	w8, #32
	str	w8, [sp, #8]
	str	x20, [sp, #24]
	mov	x0, x19
	bl	_wlc_lcnphy_tempsense_based_pwr_ctrl_enabled
	cbnz	w0, LBB0_2
; %bb.1:
	mov	w8, #30
Lloh6:
	adrp	x9, _LCNPHY_TX_PWR_CTRL_RATE_OFFSET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LCNPHY_TX_PWR_CTRL_RATE_OFFSET@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #12]
	add	x1, sp, #8
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
LBB0_2:
	mov	w8, #64
Lloh9:
	adrp	x9, _LCNPHY_TX_PWR_CTRL_MAC_OFFSET@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LCNPHY_TX_PWR_CTRL_MAC_OFFSET@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #12]
	add	x1, sp, #8
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	ldur	x8, [x29, #-40]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #336]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #320]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #304]            ; 16-byte Folded Reload
	add	sp, sp, #352
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_LCNPHY_TBL_ID_TXPWRCTL,4,2     ; @LCNPHY_TBL_ID_TXPWRCTL
	.comm	_LCNPHY_TX_PWR_CTRL_RATE_OFFSET,4,2 ; @LCNPHY_TX_PWR_CTRL_RATE_OFFSET
	.comm	_LCNPHY_TX_PWR_CTRL_MAC_OFFSET,4,2 ; @LCNPHY_TX_PWR_CTRL_MAC_OFFSET
	.no_dead_strip	_wlc_lcnphy_clear_tx_power_offsets
.subsections_via_symbols
