	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_lcnphy_tempcompensated_txpwrctrl
_wlc_lcnphy_tempcompensated_txpwrctrl:  ## @wlc_lcnphy_tempcompensated_txpwrctrl
	.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, %rbx
	movq	16(%rdi), %r13
	callq	_wlc_lcnphy_tssi_based_pwr_ctrl_enabled
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r13), %eax
	jmp	LBB0_8
LBB0_2:
	movq	_FIXED_TXPWR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$0, 4(%r13)
	je	LBB0_8
## %bb.3:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_wlc_lcnphy_tempsense
	movq	%rax, %rdi
	callq	_LCNPHY_TEMPSENSE
	movl	%eax, %r14d
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	8(%r13), %r15d
	subl	%eax, %r15d
LBB0_5:
	movq	24(%r13), %rdi
	callq	_LCNPHY_TEMPSENSE
	movl	%eax, %r12d
	subl	%r14d, %r12d
	movl	%r12d, %eax
	negl	%eax
	cmovsl	%r12d, %eax
	shll	$6, %eax
	leal	(%rax,%rax,2), %edi
	movl	4(%r13), %eax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %esi
	xorl	%edx, %edx
	callq	_wlc_lcnphy_qdiv_roundup
	movl	%eax, %r14d
	negl	%r14d
	testl	%r12d, %r12d
	cmovnsl	%eax, %r14d
	cmpl	$3, 12(%r13)
	jne	LBB0_7
## %bb.6:
	movl	8(%rbx), %edi
	xorl	%esi, %esi
	callq	_LCNREV_IS
	testq	%rax, %rax
	movl	$0, %eax
	cmovnel	%eax, %r14d
LBB0_7:
	movl	16(%r13), %eax
	leal	-64(%rax), %r12d
	cmpl	$32, %eax
	cmovll	%eax, %r12d
	movl	8(%rbx), %edi
	movl	$1, %esi
	callq	_LCNREV_IS
	testq	%rax, %rax
	movl	$4, %eax
	cmovel	%r12d, %eax
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	addl	%r12d, %r15d
	addl	%r14d, %r15d
	subl	20(%r13), %r15d
	addl	%eax, %r15d
	movl	8(%rbx), %edi
	movl	$1, %esi
	callq	_LCNREV_IS
	testq	%rax, %rax
	movl	$127, %eax
	cmovel	%r12d, %eax
	cmpl	$127, %r15d
	cmovbl	%r15d, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FIXED_TXPWR,4,2                ## @FIXED_TXPWR
	.no_dead_strip	_wlc_lcnphy_tempcompensated_txpwrctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlc_lcnphy_tempcompensated_txpwrctrl
_wlc_lcnphy_tempcompensated_txpwrctrl:  ; @wlc_lcnphy_tempcompensated_txpwrctrl
	.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	x20, x0
	ldr	x22, [x0, #16]
	bl	_wlc_lcnphy_tssi_based_pwr_ctrl_enabled
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w19, [x22]
	b	LBB0_9
LBB0_2:
Lloh0:
	adrp	x8, _FIXED_TXPWR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FIXED_TXPWR@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	ldr	w8, [x22, #4]
	cbz	w8, LBB0_9
; %bb.3:
	mov	x0, x20
	mov	w1, #0
	bl	_wlc_lcnphy_tempsense
	bl	_LCNPHY_TEMPSENSE
	mov	x21, x0
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w9, [x22, #8]
	sub	w23, w9, w8
	b	LBB0_6
LBB0_5:
	mov	w23, #0
LBB0_6:
	ldr	x0, [x22, #24]
	bl	_LCNPHY_TEMPSENSE
	subs	w21, w0, w21
	cneg	w8, w21, mi
	add	w8, w8, w8, lsl #1
	lsl	w0, w8, #6
	ldr	w8, [x22, #4]
	add	w8, w8, w8, lsl #2
	lsl	w1, w8, #1
	mov	w2, #0
	bl	_wlc_lcnphy_qdiv_roundup
	cmp	w21, #0
	cneg	w21, w0, lt
	ldr	w8, [x22, #12]
	cmp	w8, #3
	b.ne	LBB0_8
; %bb.7:
	ldr	w0, [x20, #8]
	mov	w1, #0
	bl	_LCNREV_IS
	cmp	x0, #0
	csel	w21, w21, wzr, eq
LBB0_8:
	ldr	w8, [x22, #16]
	sub	w9, w8, #64
	cmp	w8, #31
	csel	w24, w9, w8, gt
	ldr	w0, [x20, #8]
	mov	w1, #1
	bl	_LCNREV_IS
	cmp	x0, #0
	mov	w8, #4
	csel	w8, w24, w8, eq
	add	w9, w23, w19
	add	w9, w9, w21
	ldr	w10, [x22, #20]
	sub	w9, w9, w10
	add	w21, w9, w8
	ldr	w0, [x20, #8]
	mov	w1, #1
	bl	_LCNREV_IS
	cmp	x0, #0
	mov	w8, #127
	csel	w8, w19, w8, eq
	cmp	w21, #126
	csel	w19, w8, w21, hi
LBB0_9:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FIXED_TXPWR,4,2                ; @FIXED_TXPWR
	.no_dead_strip	_wlc_lcnphy_tempcompensated_txpwrctrl
.subsections_via_symbols
