	.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_lcnphy
_wlc_phy_txpwr_srom_read_lcnphy:        ## @wlc_phy_txpwr_srom_read_lcnphy
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	56(%rdi), %r14
	movq	48(%rdi), %rax
	movq	(%rax), %r15
	movl	40(%rdi), %edi
	callq	_CHSPEC_IS2G
	testq	%rax, %rax
	je	LBB0_41
## %bb.1:
	movl	92(%r15), %eax
	movl	%eax, 80(%r14)
	movl	88(%r15), %eax
	movl	%eax, 76(%r14)
	movl	84(%r15), %eax
	movq	8(%r12), %rcx
	movl	%eax, (%rcx)
	movl	80(%r15), %eax
	movl	%eax, 4(%rcx)
	movl	76(%r15), %eax
	movl	%eax, 8(%rcx)
	movl	72(%r15), %eax
	movl	%eax, 56(%r14)
	movl	%eax, 72(%r14)
	movl	%eax, 60(%r14)
	movq	64(%r15), %rax
	movq	%rax, %xmm0
	pshufd	$80, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,1]
	movq	%rax, %rdx
	shrq	$32, %rdx
	movl	%edx, 68(%r14)
	movl	%eax, 64(%r14)
	movdqu	%xmm0, 40(%r14)
	movq	56(%r15), %rax
	movq	(%rax), %r10
	movq	%r10, 32(%r12)
	movq	_PWRTBL_NUM_COEFF@GOTPCREL(%rip), %rdx
	cmpl	$0, (%rdx)
	jle	LBB0_4
## %bb.2:
	movq	16(%r12), %rsi
	movq	24(%r12), %rdi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rax,4), %ebx
	movl	%ebx, (%rdi,%rax,4)
	movl	(%rcx,%rax,4), %ebx
	movl	%ebx, (%rsi,%rax,4)
	incq	%rax
	movslq	(%rdx), %rbx
	cmpq	%rbx, %rax
	jl	LBB0_3
LBB0_4:
	movl	(%r15), %esi
	movl	4(%r15), %ecx
	movq	_TXP_FIRST_CCK@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	movq	_TXP_LAST_CCK@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.5:
	cmpl	%edi, %r8d
	jl	LBB0_12
## %bb.6:
	leal	1(%r8), %r9d
	movl	%r9d, %eax
	subl	%edi, %eax
	testb	$1, %al
	jne	LBB0_8
## %bb.7:
	movq	%rdi, %rdx
	cmpl	%edi, %r8d
	jne	LBB0_10
	jmp	LBB0_12
LBB0_19:
	cmpl	%edi, %r8d
	jl	LBB0_25
## %bb.20:
	leal	1(%r8), %edx
	movl	%edx, %esi
	subl	%edi, %esi
	subl	%edi, %r8d
	andl	$3, %esi
	je	LBB0_22
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	%r10, (%rax,%rdi,8)
	incq	%rdi
	decl	%esi
	jne	LBB0_21
LBB0_22:
	cmpl	$3, %r8d
	jb	LBB0_25
## %bb.23:
	movl	%edx, %edx
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	%r10, (%rax,%rdi,8)
	movq	(%r12), %rax
	movq	%r10, 8(%rax,%rdi,8)
	movq	(%r12), %rax
	movq	%r10, 16(%rax,%rdi,8)
	movq	(%r12), %rax
	movq	%r10, 24(%rax,%rdi,8)
	addq	$4, %rdi
	cmpl	%edi, %edx
	jne	LBB0_24
LBB0_25:
	movq	_TXP_FIRST_OFDM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	movq	_TXP_LAST_OFDM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	%esi, %edi
	jl	LBB0_32
## %bb.26:
	leal	1(%rdi), %r8d
	movl	%r8d, %eax
	subl	%esi, %eax
	testb	$1, %al
	jne	LBB0_28
## %bb.27:
	movq	%rsi, %rdx
	cmpl	%esi, %edi
	jne	LBB0_30
	jmp	LBB0_32
LBB0_8:
	movl	%esi, %eax
	addl	%eax, %eax
	andl	$30, %eax
	movq	%r10, %rdx
	subq	%rax, %rdx
	movq	(%r12), %rax
	movq	%rdx, (%rax,%rdi,8)
	sarl	$4, %esi
	leaq	1(%rdi), %rdx
	cmpl	%edi, %r8d
	je	LBB0_12
LBB0_10:
	movl	%r9d, %edi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	leal	(%rsi,%rsi), %eax
	andl	$30, %eax
	movq	%r10, %rbx
	subq	%rax, %rbx
	movq	(%r12), %rax
	movq	%rbx, (%rax,%rdx,8)
	movl	%esi, %eax
	shrl	$3, %eax
	andl	$30, %eax
	movq	%r10, %rbx
	subq	%rax, %rbx
	movq	(%r12), %rax
	movq	%rbx, 8(%rax,%rdx,8)
	sarl	$8, %esi
	addq	$2, %rdx
	cmpl	%edx, %edi
	jne	LBB0_11
LBB0_12:
	movq	_TXP_FIRST_OFDM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	movq	_TXP_LAST_OFDM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	%esi, %edi
	jl	LBB0_39
## %bb.13:
	leal	1(%rdi), %r8d
	movl	%r8d, %eax
	subl	%esi, %eax
	testb	$1, %al
	jne	LBB0_15
## %bb.14:
	movq	%rsi, %rdx
	cmpl	%esi, %edi
	jne	LBB0_17
	jmp	LBB0_39
LBB0_15:
	leal	(%rcx,%rcx), %eax
	andl	$30, %eax
	movq	%r10, %rdx
	subq	%rax, %rdx
	movq	(%r12), %rax
	movq	%rdx, (%rax,%rsi,8)
	sarl	$4, %ecx
	leaq	1(%rsi), %rdx
	cmpl	%esi, %edi
	je	LBB0_39
LBB0_17:
	movl	%r8d, %esi
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	leal	(%rcx,%rcx), %eax
	andl	$30, %eax
	movq	%r10, %rdi
	subq	%rax, %rdi
	movq	(%r12), %rax
	movq	%rdi, (%rax,%rdx,8)
	movl	%ecx, %eax
	shrl	$3, %eax
	andl	$30, %eax
	movq	%r10, %rdi
	subq	%rax, %rdi
	movq	(%r12), %rax
	movq	%rdi, 8(%rax,%rdx,8)
	sarl	$8, %ecx
	addq	$2, %rdx
	cmpl	%edx, %esi
	jne	LBB0_18
	jmp	LBB0_39
LBB0_28:
	leal	(%rcx,%rcx), %eax
	andl	$30, %eax
	movq	%r10, %rdx
	subq	%rax, %rdx
	movq	(%r12), %rax
	movq	%rdx, (%rax,%rsi,8)
	sarl	$4, %ecx
	leaq	1(%rsi), %rdx
	cmpl	%esi, %edi
	je	LBB0_32
LBB0_30:
	movl	%r8d, %esi
	.p2align	4, 0x90
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	leal	(%rcx,%rcx), %eax
	andl	$30, %eax
	movq	%r10, %rdi
	subq	%rax, %rdi
	movq	(%r12), %rax
	movq	%rdi, (%rax,%rdx,8)
	movl	%ecx, %eax
	shrl	$3, %eax
	andl	$30, %eax
	movq	%r10, %rdi
	subq	%rax, %rdi
	movq	(%r12), %rax
	movq	%rdi, 8(%rax,%rdx,8)
	sarl	$8, %ecx
	addq	$2, %rdx
	cmpl	%edx, %esi
	jne	LBB0_31
LBB0_32:
	movq	8(%r15), %rax
	movl	(%rax), %edx
	movl	4(%rax), %eax
	shll	$16, %eax
	movl	%edx, %ecx
	orl	%eax, %ecx
	movl	%ecx, (%r14)
	movq	_TXP_FIRST_SISO_MCS_20@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	movq	_TXP_LAST_SISO_MCS_20@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	%esi, %edi
	jl	LBB0_39
## %bb.33:
	leal	1(%rdi), %r8d
	movl	%r8d, %eax
	subl	%esi, %eax
	testb	$1, %al
	jne	LBB0_35
## %bb.34:
	movq	%rsi, %rdx
	cmpl	%esi, %edi
	jne	LBB0_37
	jmp	LBB0_39
LBB0_35:
	addl	%edx, %edx
	andl	$30, %edx
	movq	%r10, %rax
	subq	%rdx, %rax
	movq	(%r12), %rdx
	movq	%rax, (%rdx,%rsi,8)
	sarl	$4, %ecx
	leaq	1(%rsi), %rdx
	cmpl	%esi, %edi
	je	LBB0_39
LBB0_37:
	movl	%r8d, %esi
	.p2align	4, 0x90
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	leal	(%rcx,%rcx), %eax
	andl	$30, %eax
	movq	%r10, %rdi
	subq	%rax, %rdi
	movq	(%r12), %rax
	movq	%rdi, (%rax,%rdx,8)
	movl	%ecx, %eax
	shrl	$3, %eax
	andl	$30, %eax
	movq	%r10, %rdi
	subq	%rax, %rdi
	movq	(%r12), %rax
	movq	%rdi, 8(%rax,%rdx,8)
	sarl	$8, %ecx
	addq	$2, %rdx
	cmpl	%edx, %esi
	jne	LBB0_38
LBB0_39:
	movups	36(%r15), %xmm0
	movups	%xmm0, 24(%r14)
	movups	20(%r15), %xmm0
	movups	%xmm0, 8(%r14)
	movl	16(%r15), %esi
	cmpl	$2, %esi
	jl	LBB0_41
## %bb.40:
	movq	%r12, %rdi
	callq	_wlc_phy_ant_rxdiv_set
LBB0_41:
	movl	$-1, 4(%r14)
	movl	$1, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PWRTBL_NUM_COEFF,4,2           ## @PWRTBL_NUM_COEFF
	.comm	_TXP_FIRST_CCK,4,2              ## @TXP_FIRST_CCK
	.comm	_TXP_LAST_CCK,4,2               ## @TXP_LAST_CCK
	.comm	_TXP_FIRST_OFDM,4,2             ## @TXP_FIRST_OFDM
	.comm	_TXP_LAST_OFDM,4,2              ## @TXP_LAST_OFDM
	.comm	_TXP_FIRST_SISO_MCS_20,4,2      ## @TXP_FIRST_SISO_MCS_20
	.comm	_TXP_LAST_SISO_MCS_20,4,2       ## @TXP_LAST_SISO_MCS_20
	.no_dead_strip	_wlc_phy_txpwr_srom_read_lcnphy
.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_lcnphy
_wlc_phy_txpwr_srom_read_lcnphy:        ; @wlc_phy_txpwr_srom_read_lcnphy
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldp	x8, x20, [x0, #48]
	ldr	x21, [x8]
	ldr	w0, [x0, #40]
	bl	_CHSPEC_IS2G
	cbz	x0, LBB0_22
; %bb.1:
	ldr	d0, [x21, #88]
	stur	d0, [x20, #76]
	ldr	w8, [x21, #84]
	ldr	x9, [x19, #8]
	str	w8, [x9]
	ldr	w8, [x21, #80]
	str	w8, [x9, #4]
	ldr	w8, [x21, #76]
	str	w8, [x9, #8]
	ldr	w8, [x21, #72]
	ldr	d0, [x21, #64]
	str	s0, [x20, #40]
	fmov	s1, w8
	ext.16b	v1, v1, v1, #4
	ext.16b	v1, v1, v0, #12
	mov.s	v1[3], w8
	stur	q1, [x20, #60]
	mov.s	v0[2], v0[1]
	mov.s	v0[3], w8
	stur	q0, [x20, #44]
	ldr	x8, [x21, #56]
	ldr	x8, [x8]
	str	x8, [x19, #32]
Lloh0:
	adrp	x10, _PWRTBL_NUM_COEFF@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PWRTBL_NUM_COEFF@GOTPAGEOFF]
	ldr	w11, [x10]
	cmp	w11, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x11, #0
	ldp	x13, x12, [x19, #16]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x14, x11, #2
	ldr	w15, [x9, x14]
	str	w15, [x12, x14]
	ldr	w15, [x9, x14]
	str	w15, [x13, x14]
	add	x11, x11, #1
	ldrsw	x14, [x10]
	cmp	x11, x14
	b.lt	LBB0_3
LBB0_4:
	ldp	w10, w9, [x21]
Lloh2:
	adrp	x11, _TXP_FIRST_CCK@GOTPAGE
Lloh3:
	ldr	x11, [x11, _TXP_FIRST_CCK@GOTPAGEOFF]
Lloh4:
	ldrsw	x12, [x11]
Lloh5:
	adrp	x11, _TXP_LAST_CCK@GOTPAGE
Lloh6:
	ldr	x11, [x11, _TXP_LAST_CCK@GOTPAGEOFF]
Lloh7:
	ldr	w13, [x11]
	cmp	w12, w13
	cbz	w10, LBB0_11
; %bb.5:
	b.gt	LBB0_8
; %bb.6:
	lsl	x11, x12, #3
	sub	w12, w13, w12
	add	w12, w12, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ubfiz	w13, w10, #1, #4
	sub	x13, x8, x13
	ldr	x14, [x19]
	str	x13, [x14, x11]
	asr	w10, w10, #4
	add	x11, x11, #8
	subs	w12, w12, #1
	b.ne	LBB0_7
LBB0_8:
Lloh8:
	adrp	x10, _TXP_FIRST_OFDM@GOTPAGE
Lloh9:
	ldr	x10, [x10, _TXP_FIRST_OFDM@GOTPAGEOFF]
Lloh10:
	ldrsw	x11, [x10]
Lloh11:
	adrp	x10, _TXP_LAST_OFDM@GOTPAGE
Lloh12:
	ldr	x10, [x10, _TXP_LAST_OFDM@GOTPAGEOFF]
Lloh13:
	ldr	w12, [x10]
	cmp	w11, w12
	b.gt	LBB0_20
; %bb.9:
	lsl	x10, x11, #3
	sub	w11, w12, w11
	add	w11, w11, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ubfiz	w12, w9, #1, #4
	sub	x12, x8, x12
	ldr	x13, [x19]
	str	x12, [x13, x10]
	asr	w9, w9, #4
	add	x10, x10, #8
	subs	w11, w11, #1
	b.ne	LBB0_10
	b	LBB0_20
LBB0_11:
	b.gt	LBB0_14
; %bb.12:
	lsl	x10, x12, #3
	sub	w11, w13, w12
	add	w11, w11, #1
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x19]
	str	x8, [x12, x10]
	add	x10, x10, #8
	subs	w11, w11, #1
	b.ne	LBB0_13
LBB0_14:
Lloh14:
	adrp	x10, _TXP_FIRST_OFDM@GOTPAGE
Lloh15:
	ldr	x10, [x10, _TXP_FIRST_OFDM@GOTPAGEOFF]
Lloh16:
	ldrsw	x11, [x10]
Lloh17:
	adrp	x10, _TXP_LAST_OFDM@GOTPAGE
Lloh18:
	ldr	x10, [x10, _TXP_LAST_OFDM@GOTPAGEOFF]
Lloh19:
	ldr	w12, [x10]
	cmp	w11, w12
	b.gt	LBB0_17
; %bb.15:
	lsl	x10, x11, #3
	sub	w11, w12, w11
	add	w11, w11, #1
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ubfiz	w12, w9, #1, #4
	sub	x12, x8, x12
	ldr	x13, [x19]
	str	x12, [x13, x10]
	asr	w9, w9, #4
	add	x10, x10, #8
	subs	w11, w11, #1
	b.ne	LBB0_16
LBB0_17:
	ldr	x9, [x21, #8]
	ldp	w9, w10, [x9]
	orr	w9, w9, w10, lsl #16
Lloh20:
	adrp	x10, _TXP_FIRST_SISO_MCS_20@GOTPAGE
Lloh21:
	ldr	x10, [x10, _TXP_FIRST_SISO_MCS_20@GOTPAGEOFF]
	str	w9, [x20]
Lloh22:
	ldrsw	x11, [x10]
Lloh23:
	adrp	x10, _TXP_LAST_SISO_MCS_20@GOTPAGE
Lloh24:
	ldr	x10, [x10, _TXP_LAST_SISO_MCS_20@GOTPAGEOFF]
Lloh25:
	ldr	w12, [x10]
	cmp	w11, w12
	b.gt	LBB0_20
; %bb.18:
	lsl	x10, x11, #3
	sub	w11, w12, w11
	add	w11, w11, #1
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ubfiz	w12, w9, #1, #4
	sub	x12, x8, x12
	ldr	x13, [x19]
	str	x12, [x13, x10]
	asr	w9, w9, #4
	add	x10, x10, #8
	subs	w11, w11, #1
	b.ne	LBB0_19
LBB0_20:
	ldur	q0, [x21, #36]
	stur	q0, [x20, #24]
	ldur	q0, [x21, #20]
	stur	q0, [x20, #8]
	ldr	w1, [x21, #16]
	cmp	w1, #2
	b.lt	LBB0_22
; %bb.21:
	mov	x0, x19
	bl	_wlc_phy_ant_rxdiv_set
LBB0_22:
	mov	w8, #-1
	str	w8, [x20, #4]
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_PWRTBL_NUM_COEFF,4,2           ; @PWRTBL_NUM_COEFF
	.comm	_TXP_FIRST_CCK,4,2              ; @TXP_FIRST_CCK
	.comm	_TXP_LAST_CCK,4,2               ; @TXP_LAST_CCK
	.comm	_TXP_FIRST_OFDM,4,2             ; @TXP_FIRST_OFDM
	.comm	_TXP_LAST_OFDM,4,2              ; @TXP_LAST_OFDM
	.comm	_TXP_FIRST_SISO_MCS_20,4,2      ; @TXP_FIRST_SISO_MCS_20
	.comm	_TXP_LAST_SISO_MCS_20,4,2       ; @TXP_LAST_SISO_MCS_20
	.no_dead_strip	_wlc_phy_txpwr_srom_read_lcnphy
.subsections_via_symbols
