	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_phy_a3_nphy
_wlc_phy_a3_nphy:                       ## @wlc_phy_a3_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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	$1, -120(%rbp)
	movl	4(%rdi), %edi
	movl	$7, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	8(%r12), %edi
	callq	_CHSPEC_IS2G
	testq	%rax, %rax
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_14
## %bb.2:
	movl	(%r12), %eax
	addl	$-5, %eax
	cmpl	$3, %eax
	ja	LBB0_15
## %bb.3:
	cltq
	leaq	l_switch.table.wlc_phy_a3_nphy(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_16
LBB0_4:
	xorl	%r15d, %r15d
	movb	$1, %al
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$10, %r14d
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %rax
	movq	%rax, -112(%rbp)
	movq	_CAL_GCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	leaq	-120(%rbp), %rsi
	movq	%r13, %rcx
	callq	_wlc_phy_a2_nphy
	movq	_NPHY_TBL_ID_EPSILONTBL1@GOTPCREL(%rip), %rax
	movq	_PHY_CORE_0@GOTPCREL(%rip), %rcx
	cmpq	%r13, (%rcx)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_NPHY_TBL_ID_EPSILONTBL0@GOTPCREL(%rip), %rax
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	movl	$63, %ecx
	movl	$32, %r8d
	leaq	-56(%rbp), %r9
	callq	_wlc_phy_table_read_nphy
	movl	-56(%rbp), %edi
	leaq	-64(%rbp), %rsi
	leaq	-60(%rbp), %rdx
	callq	_wlc_phy_papd_decode_epsilon
	movl	-60(%rbp), %ecx
	movb	$1, %al
	cmpl	$4095, %ecx                     ## imm = 0xFFF
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-64(%rbp), %edx
	cmpl	$-4096, %edx                    ## imm = 0xF000
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$4095, %edx                     ## imm = 0xFFF
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$-4096, %ecx                    ## imm = 0xF000
	sete	%al
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movzbl	%al, %eax
	cmpl	%eax, %r15d
	sete	%cl
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	orb	%cl, %dl
	testb	$1, %dl
	je	LBB0_31
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %ecx
	shll	$4, %ecx
	addl	%ecx, %ebx
	addl	$-8, %ebx
	xorl	%ecx, %ecx
	cmpl	$128, %ebx
	jae	LBB0_32
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %r15d
	decl	%r14d
	jne	LBB0_5
	jmp	LBB0_33
LBB0_14:
	movq	_pga_all_gain_codes_2057@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_15:
	movq	_pad_all_gain_codes_2057@GOTPCREL(%rip), %rax
LBB0_16:
	movq	(%rax), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_ARRAY_SIZE
	decq	%rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movb	$1, %r14b
	movl	$20, %r13d
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	8(%r12), %edi
	callq	_CHSPEC_IS2G
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movslq	%ebx, %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx,%rax,8), %rax
	movq	-104(%rbp,%rcx,8), %rcx
	movq	%rax, (%rcx,%r15,8)
	movq	_CAL_GCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	leaq	-120(%rbp), %rsi
	movq	%r15, %rcx
	callq	_wlc_phy_a2_nphy
	movq	_NPHY_TBL_ID_EPSILONTBL1@GOTPCREL(%rip), %rax
	movq	_PHY_CORE_0@GOTPCREL(%rip), %rcx
	cmpq	%r15, (%rcx)
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	_NPHY_TBL_ID_EPSILONTBL0@GOTPCREL(%rip), %rax
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	(%rax), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %edx
	movl	$63, %ecx
	movl	$32, %r8d
	leaq	-56(%rbp), %r9
	callq	_wlc_phy_table_read_nphy
	movl	-56(%rbp), %edi
	leaq	-64(%rbp), %rsi
	leaq	-60(%rbp), %rdx
	callq	_wlc_phy_papd_decode_epsilon
	movl	-60(%rbp), %ecx
	movb	$1, %al
	cmpl	$4095, %ecx                     ## imm = 0xFFF
	je	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	-64(%rbp), %edx
	cmpl	$-4096, %edx                    ## imm = 0xF000
	je	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpl	$4095, %edx                     ## imm = 0xFFF
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	je	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpl	$-4096, %ecx                    ## imm = 0xF000
	sete	%al
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	-52(%rbp), %edx                 ## 4-byte Reload
LBB0_25:                                ##   in Loop: Header=BB0_17 Depth=1
	movzbl	%al, %ecx
	cmpl	%ecx, %edx
	sete	%dl
	orb	%dl, %r14b
	testb	$1, %r14b
	je	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_17 Depth=1
	leal	(%rbx,%rcx,2), %ebx
	decl	%ebx
	movslq	%ebx, %rax
	cmpq	%rax, -80(%rbp)                 ## 8-byte Folded Reload
	jb	LBB0_30
## %bb.27:                              ##   in Loop: Header=BB0_17 Depth=1
	xorl	%r14d, %r14d
	movl	%ecx, %eax
	decl	%r13d
	jne	LBB0_17
## %bb.28:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_33
LBB0_29:
	xorb	$1, %al
	movzbl	%al, %eax
	subl	%eax, %ebx
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_33
LBB0_30:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
                                        ## kill: def $ebx killed $ebx killed $rbx def $rbx
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_33
LBB0_31:
	leal	-8(%rbx), %ecx
	testl	%eax, %eax
	cmovnel	%ebx, %ecx
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%ecx, %ebx
	jmp	LBB0_33
LBB0_32:
	testl	%ebx, %ebx
	movl	$127, %ebx
	movl	$0, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmovsl	%ecx, %ebx
LBB0_33:
	movl	4(%r12), %edi
	movl	$7, %esi
	callq	_NREV_GE
	movq	%rax, %rcx
	movslq	%ebx, %rax
	testq	%rcx, %rcx
	je	LBB0_35
## %bb.34:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rax
LBB0_35:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pad_gain_codes_used_2057rev5,8,3 ## @pad_gain_codes_used_2057rev5
	.comm	_pad_gain_codes_used_2057rev7,8,3 ## @pad_gain_codes_used_2057rev7
	.comm	_pad_all_gain_codes_2057,8,3    ## @pad_all_gain_codes_2057
	.comm	_pga_all_gain_codes_2057,8,3    ## @pga_all_gain_codes_2057
	.comm	_CAL_GCTRL,4,2                  ## @CAL_GCTRL
	.comm	_PHY_CORE_0,8,3                 ## @PHY_CORE_0
	.comm	_NPHY_TBL_ID_EPSILONTBL0,4,2    ## @NPHY_TBL_ID_EPSILONTBL0
	.comm	_NPHY_TBL_ID_EPSILONTBL1,4,2    ## @NPHY_TBL_ID_EPSILONTBL1
	.no_dead_strip	_wlc_phy_a3_nphy
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.wlc_phy_a3_nphy
l_switch.table.wlc_phy_a3_nphy:
	.quad	_pad_gain_codes_used_2057rev5
	.quad	_pad_all_gain_codes_2057
	.quad	_pad_gain_codes_used_2057rev7
	.quad	_pad_gain_codes_used_2057rev7

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlc_phy_a3_nphy
_wlc_phy_a3_nphy:                       ; @wlc_phy_a3_nphy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x19, x0
	mov	w8, #1
	str	w8, [sp, #16]
	mov	x22, x1
	ldr	w0, [x0, #4]
	mov	w1, #7
	bl	_NREV_GE
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w0, [x19, #8]
	bl	_CHSPEC_IS2G
	cbz	x0, LBB0_11
; %bb.2:
	ldr	w8, [x19]
	sub	w8, w8, #5
	cmp	w8, #3
	b.hi	LBB0_12
; %bb.3:
Lloh0:
	adrp	x9, l_switch.table.wlc_phy_a3_nphy@PAGE
Lloh1:
	add	x9, x9, l_switch.table.wlc_phy_a3_nphy@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_13
LBB0_4:
	mov	w25, #0
	mov	w23, #10
Lloh2:
	adrp	x26, _NPHY_TBL_ID_EPSILONTBL0@GOTPAGE
Lloh3:
	ldr	x26, [x26, _NPHY_TBL_ID_EPSILONTBL0@GOTPAGEOFF]
Lloh4:
	adrp	x27, _NPHY_TBL_ID_EPSILONTBL1@GOTPAGE
Lloh5:
	ldr	x27, [x27, _NPHY_TBL_ID_EPSILONTBL1@GOTPAGEOFF]
	mov	w28, #8
	mov	w24, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x8, w22
	str	x8, [sp, #24]
Lloh6:
	adrp	x8, _CAL_GCTRL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CAL_GCTRL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x1, sp, #16
	mov	x0, x19
	mov	x3, x20
	bl	_wlc_phy_a2_nphy
Lloh9:
	adrp	x8, _PHY_CORE_0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PHY_CORE_0@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, x20
	csel	x8, x26, x27, eq
	ldr	w1, [x8]
	mov	w21, #1
	add	x5, sp, #4
	mov	x0, x19
	mov	w2, #1
	mov	w3, #63
	mov	w4, #32
	bl	_wlc_phy_table_read_nphy
	ldr	w0, [sp, #4]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_wlc_phy_papd_decode_epsilon
	ldr	w8, [sp, #8]
	cmp	w8, #4095
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [sp, #12]
	cmn	w8, #1, lsl #12                 ; =4096
	cset	w8, eq
	cmp	w9, #4095
	mov	w10, #1
	csel	w8, w10, w8, eq
	cmn	w9, #1, lsl #12                 ; =4096
	csel	w21, w10, w8, eq
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w25, w21
	cset	w8, eq
	orr	w8, w24, w8
	tbz	w8, #0, LBB0_21
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w21, #0
	cneg	w8, w28, eq
	add	w22, w8, w22
	cmp	w22, #128
	b.hs	LBB0_22
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w24, #0
	mov	x25, x21
	subs	w23, w23, #1
	b.ne	LBB0_5
; %bb.10:
	mov	x26, #0
	b	LBB0_23
LBB0_11:
Lloh12:
	adrp	x8, _pga_all_gain_codes_2057@GOTPAGE
Lloh13:
	ldr	x8, [x8, _pga_all_gain_codes_2057@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh14:
	adrp	x8, _pad_all_gain_codes_2057@GOTPAGE
Lloh15:
	ldr	x8, [x8, _pad_all_gain_codes_2057@GOTPAGEOFF]
LBB0_13:
	ldr	x26, [x8]
	mov	x0, x26
	bl	_ARRAY_SIZE
	mov	w21, #0
	sub	x23, x0, #1
	mov	w25, #20
	add	x28, sp, #16
	mov	w24, #1
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	bl	_CHSPEC_IS2G
	ldr	x8, [x26, w22, sxtw #3]
	add	x9, x28, #16
	add	x10, x28, #24
	cmp	x0, #0
	csel	x9, x9, x10, eq
	ldr	x9, [x9]
	str	x8, [x9, x20, lsl #3]
Lloh16:
	adrp	x8, _CAL_GCTRL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CAL_GCTRL@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	add	x1, sp, #16
	mov	x0, x19
	mov	x3, x20
	bl	_wlc_phy_a2_nphy
Lloh19:
	adrp	x8, _PHY_CORE_0@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PHY_CORE_0@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x8, x20
Lloh22:
	adrp	x8, _NPHY_TBL_ID_EPSILONTBL0@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NPHY_TBL_ID_EPSILONTBL0@GOTPAGEOFF]
Lloh24:
	adrp	x9, _NPHY_TBL_ID_EPSILONTBL1@GOTPAGE
Lloh25:
	ldr	x9, [x9, _NPHY_TBL_ID_EPSILONTBL1@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	w27, #1
	add	x5, sp, #4
	mov	x0, x19
	mov	w2, #1
	mov	w3, #63
	mov	w4, #32
	bl	_wlc_phy_table_read_nphy
	ldr	w0, [sp, #4]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_wlc_phy_papd_decode_epsilon
	ldr	w8, [sp, #8]
	cmp	w8, #4095
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w9, [sp, #12]
	cmn	w8, #1, lsl #12                 ; =4096
	cset	w8, eq
	cmp	w9, #4095
	mov	w10, #1
	csel	w8, w10, w8, eq
	cmn	w9, #1, lsl #12                 ; =4096
	csel	w27, w10, w8, eq
LBB0_16:                                ;   in Loop: Header=BB0_14 Depth=1
	cmp	w21, w27
	cset	w8, eq
	orr	w8, w24, w8
	tbz	w8, #0, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	sub	w8, w22, #1
	cmp	w27, #0
	csinc	w22, w8, w22, eq
	cmp	x23, w22, sxtw
	b.lo	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w24, #0
	mov	x21, x27
	subs	w25, w25, #1
	b.ne	LBB0_14
	b	LBB0_23
LBB0_19:
	eor	w8, w27, #0x1
	sub	w22, w22, w8
	b	LBB0_23
LBB0_20:
	mov	x22, x23
	b	LBB0_23
LBB0_21:
	mov	x26, #0
	sub	w8, w22, #8
	cmp	w21, #0
	csel	w22, w22, w8, ne
	b	LBB0_23
LBB0_22:
	mov	x26, #0
	mov	w8, #127
	cmp	w22, #0
	csel	w22, wzr, w8, lt
LBB0_23:
	ldr	w0, [x19, #4]
	mov	w1, #7
	bl	_NREV_GE
	mov	x8, x0
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	sxtw	x0, w22
	cbz	x8, LBB0_25
; %bb.24:
	ldr	x0, [x26, x0, lsl #3]
LBB0_25:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_pad_gain_codes_used_2057rev5,8,3 ; @pad_gain_codes_used_2057rev5
	.comm	_pad_gain_codes_used_2057rev7,8,3 ; @pad_gain_codes_used_2057rev7
	.comm	_pad_all_gain_codes_2057,8,3    ; @pad_all_gain_codes_2057
	.comm	_pga_all_gain_codes_2057,8,3    ; @pga_all_gain_codes_2057
	.comm	_CAL_GCTRL,4,2                  ; @CAL_GCTRL
	.comm	_PHY_CORE_0,8,3                 ; @PHY_CORE_0
	.comm	_NPHY_TBL_ID_EPSILONTBL0,4,2    ; @NPHY_TBL_ID_EPSILONTBL0
	.comm	_NPHY_TBL_ID_EPSILONTBL1,4,2    ; @NPHY_TBL_ID_EPSILONTBL1
	.no_dead_strip	_wlc_phy_a3_nphy
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.wlc_phy_a3_nphy
l_switch.table.wlc_phy_a3_nphy:
	.quad	_pad_gain_codes_used_2057rev5
	.quad	_pad_all_gain_codes_2057
	.quad	_pad_gain_codes_used_2057rev7
	.quad	_pad_gain_codes_used_2057rev7

.subsections_via_symbols
