	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function wlc_phy_iqcal_gainparams_nphy
LCPI0_0:
	.long	121                             ## 0x79
	.long	121                             ## 0x79
	.long	121                             ## 0x79
	.long	121                             ## 0x79
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_wlc_phy_iqcal_gainparams_nphy:         ## @wlc_phy_iqcal_gainparams_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	%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	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	16(%rbp), %r13
	movl	4(%rdi), %edi
	callq	_CHSPEC_IS5G
	movq	%rax, %r12
	movl	(%rbx), %edi
	movl	$3, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movl	(%rbx), %edi
	movl	$7, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%r13), %rax
	movl	(%rax,%r14,4), %eax
	movl	%eax, (%r15)
LBB0_3:
	movq	8(%r13), %rax
	movl	(%rax,%r14,4), %eax
	movl	%eax, 4(%r15)
	movq	16(%r13), %rax
	movl	(%rax,%r14,4), %eax
	movl	%eax, 8(%r15)
	movq	24(%r13), %rax
	movl	(%rax,%r14,4), %eax
	movl	%eax, 12(%r15)
	movq	32(%r13), %rax
	movl	(%rax,%r14,4), %eax
	movl	%eax, 16(%r15)
	movl	(%rbx), %edi
	movl	$7, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r15), %eax
	movl	4(%r15), %edx
	shll	$15, %eax
	shll	$12, %edx
	orl	%eax, %edx
	movl	8(%r15), %eax
	shll	$8, %eax
	movl	$3, %ecx
	jmp	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	testq	%r12, %r12
	setne	%al
	movq	_NPHY_IQCAL_NUMGAINS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_tbl_iqcal_gainparams_nphy@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx,%rax,8), %rax
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.9:
	movq	24(%r13), %rdx
	movq	8(%r13), %rsi
	movq	16(%r13), %rdi
	movl	(%rdi,%r14,4), %edi
	shll	$4, %edi
	orl	(%rdx,%r14,4), %edi
	movl	(%rsi,%r14,4), %edx
	shll	$8, %edx
	orl	%edi, %edx
	movslq	%edx, %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rdx,8), %rdi
	cmpq	%rsi, (%rdi)
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_10
## %bb.12:
	movq	%rcx, %rdx
	jmp	LBB0_13
LBB0_5:
	movl	4(%r15), %eax
	movl	8(%r15), %edx
	shll	$12, %eax
	shll	$8, %edx
	movl	$4, %ecx
LBB0_6:
	orl	%edx, %eax
	movl	12(%r15), %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	orl	%eax, %edx
	orl	16(%r15), %edx
	movl	%edx, 20(%r15)
	movq	24(%r15), %rax
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [121,121,121,121]
	movdqu	%xmm0, (%rax)
	movl	$121, 16(%rax)
	jmp	LBB0_14
LBB0_8:
	xorl	%edx, %edx
LBB0_13:
	movq	(%rax,%rdx,8), %rax
	movl	8(%rax), %ecx
	movl	%ecx, 4(%r15)
	movl	16(%rax), %edx
	movl	%edx, 8(%r15)
	movl	24(%rax), %esi
	movl	%esi, 12(%r15)
	shll	$7, %ecx
	shll	$4, %edx
	orl	%ecx, %edx
	shll	$2, %esi
	orl	%edx, %esi
	movl	%esi, 20(%r15)
	movq	24(%r15), %rcx
	movdqu	32(%rax), %xmm0
	pshufd	$232, %xmm0, %xmm0              ## xmm0 = xmm0[0,2,2,3]
	movq	%xmm0, (%rcx)
	movdqu	48(%rax), %xmm0
	pshufd	$232, %xmm0, %xmm0              ## xmm0 = xmm0[0,2,2,3]
	movq	%xmm0, 8(%rcx)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NPHY_IQCAL_NUMGAINS,8,3        ## @NPHY_IQCAL_NUMGAINS
	.comm	_tbl_iqcal_gainparams_nphy,8,3  ## @tbl_iqcal_gainparams_nphy
	.no_dead_strip	_wlc_phy_iqcal_gainparams_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_iqcal_gainparams_nphy
_wlc_phy_iqcal_gainparams_nphy:         ; @wlc_phy_iqcal_gainparams_nphy
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w0, [x0, #4]
	bl	_CHSPEC_IS5G
	mov	x23, x0
	ldr	w0, [x22]
	mov	w1, #3
	bl	_NREV_GE
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w0, [x22]
	mov	w1, #7
	bl	_NREV_GE
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x20]
	ldr	w8, [x8, x21, lsl #2]
	str	w8, [x19]
LBB0_3:
	lsl	x8, x21, #2
	ldp	x9, x10, [x20, #8]
	ldr	w9, [x9, x8]
	str	w9, [x19, #4]
	ldr	w9, [x10, x8]
	str	w9, [x19, #8]
	ldp	x9, x10, [x20, #24]
	ldr	w9, [x9, x8]
	str	w9, [x19, #12]
	ldr	w8, [x10, x8]
	str	w8, [x19, #16]
	ldr	w0, [x22]
	mov	w1, #7
	bl	_NREV_GE
	cbz	x0, LBB0_11
; %bb.4:
	ldp	w8, w9, [x19]
	lsl	w9, w9, #12
	orr	w8, w9, w8, lsl #15
	ldr	w9, [x19, #8]
	lsl	w10, w9, #8
	mov	w9, #3
	b	LBB0_12
LBB0_5:
	cmp	x23, #0
	cset	w8, ne
Lloh0:
	adrp	x9, _NPHY_IQCAL_NUMGAINS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NPHY_IQCAL_NUMGAINS@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x9]
Lloh3:
	adrp	x9, _tbl_iqcal_gainparams_nphy@GOTPAGE
Lloh4:
	ldr	x9, [x9, _tbl_iqcal_gainparams_nphy@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x8, [x9, w8, uxtw #3]
	mov	x9, #0
	cbz	x10, LBB0_10
; %bb.6:
	ldp	x13, x11, [x20, #16]
	lsl	x12, x21, #2
	ldr	w11, [x11, x12]
	ldr	x14, [x20, #8]
	ldr	w13, [x13, x12]
	orr	w11, w11, w13, lsl #4
	ldr	w12, [x14, x12]
	orr	w11, w11, w12, lsl #8
	sxtw	x11, w11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x8, x9, lsl #3]
	ldr	x12, [x12]
	cmp	x12, x11
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x9, #1
	cmp	x10, x9
	b.ne	LBB0_7
; %bb.9:
	mov	x9, x10
LBB0_10:
	ldr	x8, [x8, x9, lsl #3]
	ldr	w9, [x8, #8]
	ldr	w10, [x8, #16]
	stp	w9, w10, [x19, #4]
	ldr	w11, [x8, #24]
	str	w11, [x19, #12]
	lsl	w10, w10, #4
	orr	w9, w10, w9, lsl #7
	orr	w9, w9, w11, lsl #2
	str	w9, [x19, #20]
	ldr	x9, [x19, #24]
	ldp	q0, q1, [x8, #32]
	xtn.2s	v0, v0
	xtn.2s	v1, v1
	stp	d0, d1, [x9]
	b	LBB0_13
LBB0_11:
	ldp	w8, w9, [x19, #4]
	lsl	w10, w8, #12
	lsl	w8, w9, #8
	mov	w9, #4
LBB0_12:
	orr	w8, w8, w10
	ldp	w10, w11, [x19, #12]
	lsl	w9, w10, w9
	orr	w8, w8, w9
	orr	w8, w8, w11
	str	w8, [x19, #20]
	ldr	x8, [x19, #24]
	movi.4s	v0, #121
	str	q0, [x8]
	mov	w9, #121
	str	w9, [x8, #16]
LBB0_13:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NPHY_IQCAL_NUMGAINS,8,3        ; @NPHY_IQCAL_NUMGAINS
	.comm	_tbl_iqcal_gainparams_nphy,8,3  ; @tbl_iqcal_gainparams_nphy
	.no_dead_strip	_wlc_phy_iqcal_gainparams_nphy
.subsections_via_symbols
