	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_phy_txpwr_srom_read_nphy
_wlc_phy_txpwr_srom_read_nphy:          ## @wlc_phy_txpwr_srom_read_nphy
	.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
	movq	%rdi, %rbx
	movq	96(%rdi), %rax
	movq	(%rax), %r14
	movl	80(%r14), %eax
	movl	%eax, 88(%rdi)
	movl	76(%r14), %eax
	movl	%eax, 84(%rdi)
	movl	72(%r14), %eax
	movl	%eax, 80(%rdi)
	movups	32(%r14), %xmm0
	movups	%xmm0, 64(%rdi)
	movq	24(%r14), %rax
	movq	%rax, 56(%rdi)
	movups	56(%r14), %xmm0
	movups	%xmm0, 40(%rdi)
	movq	48(%r14), %rcx
	testq	%rcx, %rcx
	cmoveq	%rax, %rcx
	movq	%rcx, 32(%rdi)
	callq	_wlc_phy_txpower_ipa_upd
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_PHY_CHAIN_TX_DISABLE_TEMP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_2:
	movq	8(%r14), %rcx
	movq	%rcx, 8(%rbx)
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.3:
	movq	_NPHY_SROM_TEMPSHIFT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	_NPHY_SROM_MAXTEMPOFFSET@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	leaq	(%rdx,%rsi), %rdi
	cmpq	%rdi, %rcx
	jg	LBB0_5
## %bb.4:
	movq	_NPHY_SROM_MINTEMPOFFSET@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	leaq	(%rdi,%rsi), %r8
	movq	%rcx, %rdx
	subq	%rsi, %rdx
	cmpq	%r8, %rcx
	cmovlq	%rdi, %rdx
LBB0_5:
	movq	%rdx, 8(%rbx)
LBB0_6:
	movq	_PHY_HYSTERESIS_DELTATEMP@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	%rax, 16(%rbx)
	movq	16(%r14), %rax
	movq	_NPHY_CAL_MAXTEMPDELTA@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	cmovleq	%rax, %rdx
	movq	%rdx, 24(%rbx)
	movq	%rbx, %rdi
	callq	_wlc_phy_txpwr_srom_read_ppr_nphy
	movl	$1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_CHAIN_TX_DISABLE_TEMP,8,3  ## @PHY_CHAIN_TX_DISABLE_TEMP
	.comm	_NPHY_SROM_TEMPSHIFT,8,3        ## @NPHY_SROM_TEMPSHIFT
	.comm	_NPHY_SROM_MAXTEMPOFFSET,8,3    ## @NPHY_SROM_MAXTEMPOFFSET
	.comm	_NPHY_SROM_MINTEMPOFFSET,8,3    ## @NPHY_SROM_MINTEMPOFFSET
	.comm	_PHY_HYSTERESIS_DELTATEMP,8,3   ## @PHY_HYSTERESIS_DELTATEMP
	.comm	_NPHY_CAL_MAXTEMPDELTA,8,3      ## @NPHY_CAL_MAXTEMPDELTA
	.no_dead_strip	_wlc_phy_txpwr_srom_read_nphy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlc_phy_txpwr_srom_read_nphy
_wlc_phy_txpwr_srom_read_nphy:          ; @wlc_phy_txpwr_srom_read_nphy
	.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	x19, x0
	ldr	x8, [x0, #96]
	ldr	x20, [x8]
	ldr	w8, [x20, #80]
	str	w8, [x0, #88]
	ldr	d0, [x20, #72]
	str	d0, [x0, #80]
	ldr	q0, [x20, #32]
	str	q0, [x0, #64]
	ldr	x8, [x20, #24]
	str	x8, [x0, #56]
	ldur	q0, [x20, #56]
	stur	q0, [x0, #40]
	ldr	x9, [x20, #48]
	cmp	x9, #0
	csel	x8, x8, x9, eq
	str	x8, [x0, #32]
	bl	_wlc_phy_txpower_ipa_upd
	ldr	x8, [x20]
	str	x8, [x19]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PHY_CHAIN_TX_DISABLE_TEMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_CHAIN_TX_DISABLE_TEMP@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_2:
	ldr	x9, [x20, #8]
	str	x9, [x19, #8]
	cbz	x9, LBB0_6
; %bb.3:
Lloh3:
	adrp	x10, _NPHY_SROM_TEMPSHIFT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NPHY_SROM_TEMPSHIFT@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _NPHY_SROM_MAXTEMPOFFSET@GOTPAGE
Lloh7:
	ldr	x11, [x11, _NPHY_SROM_MAXTEMPOFFSET@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	add	x12, x11, x10
	cmp	x9, x12
	b.gt	LBB0_5
; %bb.4:
Lloh9:
	adrp	x11, _NPHY_SROM_MINTEMPOFFSET@GOTPAGE
Lloh10:
	ldr	x11, [x11, _NPHY_SROM_MINTEMPOFFSET@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	sub	x12, x9, x10
	add	x10, x11, x10
	cmp	x9, x10
	csel	x11, x11, x12, lt
LBB0_5:
	str	x11, [x19, #8]
LBB0_6:
Lloh12:
	adrp	x9, _PHY_HYSTERESIS_DELTATEMP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PHY_HYSTERESIS_DELTATEMP@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	sub	x8, x8, x9
Lloh15:
	adrp	x9, _NPHY_CAL_MAXTEMPDELTA@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NPHY_CAL_MAXTEMPDELTA@GOTPAGEOFF]
	ldr	x10, [x20, #16]
Lloh17:
	ldr	x9, [x9]
	cmp	x10, x9
	csel	x9, xzr, x10, gt
	stp	x8, x9, [x19, #16]
	mov	x0, x19
	bl	_wlc_phy_txpwr_srom_read_ppr_nphy
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_CHAIN_TX_DISABLE_TEMP,8,3  ; @PHY_CHAIN_TX_DISABLE_TEMP
	.comm	_NPHY_SROM_TEMPSHIFT,8,3        ; @NPHY_SROM_TEMPSHIFT
	.comm	_NPHY_SROM_MAXTEMPOFFSET,8,3    ; @NPHY_SROM_MAXTEMPOFFSET
	.comm	_NPHY_SROM_MINTEMPOFFSET,8,3    ; @NPHY_SROM_MINTEMPOFFSET
	.comm	_PHY_HYSTERESIS_DELTATEMP,8,3   ; @PHY_HYSTERESIS_DELTATEMP
	.comm	_NPHY_CAL_MAXTEMPDELTA,8,3      ; @NPHY_CAL_MAXTEMPDELTA
	.no_dead_strip	_wlc_phy_txpwr_srom_read_nphy
.subsections_via_symbols
