	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_phy_rfctrlintc_override_nphy
_wlc_phy_rfctrlintc_override_nphy:      ## @wlc_phy_rfctrlintc_override_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	movl	$3, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_40
## %bb.1:
	cmpq	$0, 8(%rbx)
	jle	LBB0_40
## %bb.2:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %eax
	shll	$6, %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	leal	(%rcx,%rcx), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	leal	(,%rcx,8), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	leal	(,%rcx,4), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	movq	_RADIO_MIMO_CORESEL_CORE1@GOTPCREL(%rip), %rax
	movq	_PHY_CORE_1@GOTPCREL(%rip), %rcx
	movq	_PHY_CORE_0@GOTPCREL(%rip), %rsi
	movq	_NPHY_RfctrlIntc_override_OFF@GOTPCREL(%rip), %r13
	jmp	LBB0_3
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	cmpq	(%rsi), %r15
	sete	%al
	movl	$146, %esi
	subl	%eax, %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_write_phy_reg
	movq	_NPHY_RFSEQ_RESET2RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wlc_phy_force_rfseq_nphy
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rsi
	movq	_RADIO_MIMO_CORESEL_CORE1@GOTPCREL(%rip), %rax
	movq	_PHY_CORE_1@GOTPCREL(%rip), %rcx
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	cmpq	8(%rbx), %r15
	jge	LBB0_40
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, (%rax)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	(%rcx), %r15
	je	LBB0_39
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_RADIO_MIMO_CORESEL_CORE2@GOTPCREL(%rip), %rdx
	cmpq	%r12, (%rdx)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	(%rsi), %r15
	je	LBB0_39
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rsi, %r14
	movl	16(%rbx), %edi
	movl	$7, %esi
	callq	_NREV_LT
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	cmpq	(%r14), %r15
	sete	%al
	movl	$146, %esi
	subl	%eax, %esi
	movq	%rbx, %rdi
	movl	$1024, %edx                     ## imm = 0x400
	movl	$1024, %ecx                     ## imm = 0x400
	callq	_mod_phy_reg
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%r13)
	movq	%r14, %rsi
	je	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_NPHY_RfctrlIntc_override_TRSW@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jne	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%rbx), %edi
	movl	$7, %esi
	callq	_NREV_GE
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	cmpq	(%r14), %r15
	sete	%cl
	movl	$146, %esi
	subl	%ecx, %esi
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$192, %edx
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	callq	_mod_phy_reg
	xorl	%eax, %eax
	cmpq	(%r14), %r15
	sete	%al
	movl	$146, %esi
	subl	%eax, %esi
	movq	%rbx, %rdi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_or_phy_reg
	movq	%rbx, %rdi
	movl	$767, %esi                      ## imm = 0x2FF
	movl	$-49153, %edx                   ## imm = 0xFFFF3FFF
	callq	_and_phy_reg
	movq	%rbx, %rdi
	movl	$767, %esi                      ## imm = 0x2FF
	movl	$8192, %edx                     ## imm = 0x2000
	callq	_or_phy_reg
	movq	%rbx, %rdi
	movl	$767, %esi                      ## imm = 0x2FF
	movl	$1, %edx
	callq	_or_phy_reg
	jmp	LBB0_11
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_NPHY_RfctrlIntc_override_PA@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jne	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%rbx), %edi
	movl	$7, %esi
	callq	_NREV_GE
	movq	%rax, %r13
	movl	(%rbx), %edi
	callq	_CHSPEC_IS5G
	testq	%r13, %r13
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$1, %rax
	movb	$5, %cl
	sbbb	$0, %cl
	movq	-48(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	shll	%cl, %eax
	xorl	%ecx, %ecx
	cmpq	(%r14), %r15
	sete	%cl
	movl	$146, %esi
	subl	%ecx, %esi
	movq	%rbx, %rdi
	movl	$48, %edx
	movl	%eax, %ecx
	callq	_mod_phy_reg
	xorl	%eax, %eax
	cmpq	(%r14), %r15
	sete	%al
	movl	$146, %esi
	subl	%eax, %esi
	movq	%rbx, %rdi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_or_phy_reg
	jmp	LBB0_38
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_NPHY_RfctrlIntc_override_EXT_LNA_PU@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jne	LBB0_29
## %bb.22:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%rbx), %edi
	movl	$7, %esi
	callq	_NREV_GE
	movq	%rax, %r13
	movl	(%rbx), %edi
	callq	_CHSPEC_IS5G
	testq	%r13, %r13
	je	LBB0_28
## %bb.23:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
	movq	%r14, %rdx
	cmpq	(%r14), %r15
	sete	%cl
	movl	$146, %esi
	subl	%ecx, %esi
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_mod_phy_reg
	movq	%r14, %rcx
	movl	$4, %edx
	jmp	LBB0_26
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$960, %edx                      ## imm = 0x3C0
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	callq	_mod_phy_reg
	xorl	%eax, %eax
	cmpq	(%r14), %r15
	setne	%al
	leal	231(%rax,%rax,4), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_mod_phy_reg
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	cmpq	(%r14), %r15
	setne	%cl
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	sete	%al
	movl	$2, %edx
	subl	%eax, %edx
	movl	$1, %r13d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r13d
	movq	%rbx, %rdi
	movl	$120, %esi
	movl	%r13d, %ecx
	callq	_mod_phy_reg
	movq	%rbx, %rdi
	movl	$120, %esi
	callq	_read_phy_reg
	xorl	%edi, %edi
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	btl	%ecx, %eax
	setb	%dil
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_SPINWAIT
	movq	%rbx, %rdi
	movl	$120, %esi
	callq	_read_phy_reg
	andl	%eax, %r13d
	movl	%r13d, %edi
	movq	_NPHY_RfctrlIntc_override_OFF@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %rsi
	callq	_WARN
	testq	%rax, %rax
	jne	LBB0_40
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	cmpq	(%r14), %r15
	setne	%al
	leal	(%rax,%rax,4), %esi
	addl	$231, %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_mod_phy_reg
	movq	%r14, %rsi
	movq	_PHY_CORE_1@GOTPCREL(%rip), %rcx
	movq	_RADIO_MIMO_CORESEL_CORE1@GOTPCREL(%rip), %rax
	jmp	LBB0_39
LBB0_29:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_NPHY_RfctrlIntc_override_EXT_LNA_GAIN@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	movq	_RADIO_MIMO_CORESEL_CORE1@GOTPCREL(%rip), %rax
	movq	_PHY_CORE_1@GOTPCREL(%rip), %rcx
	jne	LBB0_39
## %bb.30:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%rbx), %edi
	movl	$7, %esi
	callq	_NREV_GE
	movq	%rax, %r13
	movl	(%rbx), %edi
	callq	_CHSPEC_IS5G
	testq	%r13, %r13
	je	LBB0_35
## %bb.31:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
	cmpq	(%r14), %r15
	sete	%cl
	movl	$146, %esi
	subl	%ecx, %esi
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$2, %edx
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	callq	_mod_phy_reg
	movl	$8, %edx
	jmp	LBB0_34
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edx, %edx
	testq	%rax, %rax
	sete	%cl
	setne	%dl
	shll	$4, %edx
	xorb	$5, %cl
	movq	-48(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	shll	%cl, %eax
	addl	$16, %edx
LBB0_36:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
	cmpq	(%r14), %r15
	sete	%cl
	movl	$146, %esi
	subl	%ecx, %esi
	movq	%rbx, %rdi
	movl	%eax, %ecx
	jmp	LBB0_37
LBB0_28:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edx, %edx
	testq	%rax, %rax
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %ecx
	cmovel	-52(%rbp), %ecx                 ## 4-byte Folded Reload
	sete	%dl
	xorl	%eax, %eax
	cmpq	(%r14), %r15
	leal	1(%rdx,%rdx,2), %edx
	sete	%al
	movl	$146, %esi
	subl	%eax, %esi
	movq	%rbx, %rdi
LBB0_37:                                ##   in Loop: Header=BB0_3 Depth=1
	callq	_mod_phy_reg
LBB0_38:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rsi
	movq	_RADIO_MIMO_CORESEL_CORE1@GOTPCREL(%rip), %rax
	movq	_PHY_CORE_1@GOTPCREL(%rip), %rcx
	movq	_NPHY_RfctrlIntc_override_OFF@GOTPCREL(%rip), %r13
	jmp	LBB0_39
LBB0_25:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$4, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_mod_phy_reg
	movq	%r14, %rcx
	movl	$1, %edx
LBB0_26:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_NPHY_RfctrlIntc_override_OFF@GOTPCREL(%rip), %r13
	xorl	%eax, %eax
	cmpq	(%rcx), %r15
	jmp	LBB0_27
LBB0_35:                                ##   in Loop: Header=BB0_3 Depth=1
	testq	%rax, %rax
	sete	%cl
	movl	$2, %edx
	movl	$8, %eax
	cmovel	%eax, %edx
	addb	%cl, %cl
	orb	$1, %cl
	movq	-48(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	shll	%cl, %eax
	jmp	LBB0_36
LBB0_33:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$8, %edx
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	callq	_mod_phy_reg
	movl	$2, %edx
LBB0_34:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_NPHY_RfctrlIntc_override_OFF@GOTPCREL(%rip), %r13
	xorl	%eax, %eax
	cmpq	(%r14), %r15
LBB0_27:                                ##   in Loop: Header=BB0_3 Depth=1
	sete	%al
	movl	$146, %esi
	subl	%eax, %esi
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_mod_phy_reg
	xorl	%eax, %eax
	cmpq	(%r14), %r15
	sete	%al
	movl	$146, %esi
	subl	%eax, %esi
	movq	%rbx, %rdi
	movl	$2048, %edx                     ## imm = 0x800
	movl	$2048, %ecx                     ## imm = 0x800
	callq	_mod_phy_reg
	jmp	LBB0_11
LBB0_40:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADIO_MIMO_CORESEL_CORE1,8,3   ## @RADIO_MIMO_CORESEL_CORE1
	.comm	_PHY_CORE_1,8,3                 ## @PHY_CORE_1
	.comm	_RADIO_MIMO_CORESEL_CORE2,8,3   ## @RADIO_MIMO_CORESEL_CORE2
	.comm	_PHY_CORE_0,8,3                 ## @PHY_CORE_0
	.comm	_NPHY_RfctrlIntc_override_OFF,8,3 ## @NPHY_RfctrlIntc_override_OFF
	.comm	_NPHY_RFSEQ_RESET2RX,4,2        ## @NPHY_RFSEQ_RESET2RX
	.comm	_NPHY_RfctrlIntc_override_TRSW,8,3 ## @NPHY_RfctrlIntc_override_TRSW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HW error: override failed"

	.comm	_NPHY_RfctrlIntc_override_PA,8,3 ## @NPHY_RfctrlIntc_override_PA
	.comm	_NPHY_RfctrlIntc_override_EXT_LNA_PU,8,3 ## @NPHY_RfctrlIntc_override_EXT_LNA_PU
	.comm	_NPHY_RfctrlIntc_override_EXT_LNA_GAIN,8,3 ## @NPHY_RfctrlIntc_override_EXT_LNA_GAIN
	.no_dead_strip	_wlc_phy_rfctrlintc_override_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_rfctrlintc_override_nphy
_wlc_phy_rfctrlintc_override_nphy:      ; @wlc_phy_rfctrlintc_override_nphy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x3
	mov	x20, x2
	mov	x26, x1
	mov	x22, x0
	ldr	w0, [x0, #16]
	mov	w1, #3
	bl	_NREV_GE
	cbz	x0, LBB0_35
; %bb.1:
	ldr	x8, [x22, #8]
	cmp	x8, #1
	b.lt	LBB0_35
; %bb.2:
	mov	x27, #0
	lsl	w8, w20, #6
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	lsl	w8, w20, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh0:
	adrp	x25, _RADIO_MIMO_CORESEL_CORE1@GOTPAGE
Lloh1:
	ldr	x25, [x25, _RADIO_MIMO_CORESEL_CORE1@GOTPAGEOFF]
Lloh2:
	adrp	x24, _PHY_CORE_1@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PHY_CORE_1@GOTPAGEOFF]
	lsl	w8, w20, #3
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	lsl	w8, w20, #2
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
Lloh4:
	adrp	x28, _RADIO_MIMO_CORESEL_CORE2@GOTPAGE
Lloh5:
	ldr	x28, [x28, _RADIO_MIMO_CORESEL_CORE2@GOTPAGEOFF]
Lloh6:
	adrp	x23, _PHY_CORE_0@GOTPAGE
Lloh7:
	ldr	x23, [x23, _PHY_CORE_0@GOTPAGEOFF]
	mov	w21, #145
	str	x26, [sp, #24]                  ; 8-byte Folded Spill
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	cmp	x27, x8
	cinc	w1, w21, ne
	mov	x0, x22
	mov	w2, #0
	bl	_write_phy_reg
Lloh8:
	adrp	x8, _NPHY_RFSEQ_RESET2RX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NPHY_RFSEQ_RESET2RX@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_wlc_phy_force_rfseq_nphy
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x27, #1
	ldr	x8, [x22, #8]
	cmp	x27, x8
	b.ge	LBB0_35
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	x9, [x24]
	cmp	x8, x19
	ccmp	x27, x9, #0, eq
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x28]
	ldr	x9, [x23]
	cmp	x8, x19
	ccmp	x27, x9, #0, eq
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x22, #16]
	mov	w1, #7
	bl	_NREV_LT
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	cmp	x27, x8
	cinc	w1, w21, ne
	mov	x0, x22
	mov	w2, #1024
	mov	w3, #1024
	bl	_mod_phy_reg
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh11:
	adrp	x8, _NPHY_RfctrlIntc_override_OFF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NPHY_RfctrlIntc_override_OFF@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x8, x26
	b.eq	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh14:
	adrp	x8, _NPHY_RfctrlIntc_override_TRSW@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NPHY_RfctrlIntc_override_TRSW@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x8, x26
	b.ne	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x22, #16]
	mov	w1, #7
	bl	_NREV_GE
	ldr	x8, [x23]
	cmp	x27, x8
	mov	w8, #145
	cinc	w1, w8, ne
	cbz	x0, LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	w2, #192
	ldr	w3, [sp, #20]                   ; 4-byte Folded Reload
	mov	w26, #145
	bl	_mod_phy_reg
	ldr	x8, [x23]
	cmp	x27, x8
	mov	w21, #145
	cinc	w1, w26, ne
	ldr	x26, [sp, #24]                  ; 8-byte Folded Reload
	mov	x0, x22
	mov	w2, #1024
	bl	_or_phy_reg
	mov	x0, x22
	mov	w1, #767
	mov	w2, #-49153
	bl	_and_phy_reg
	mov	x0, x22
	mov	w1, #767
	mov	w2, #8192
	bl	_or_phy_reg
	mov	x0, x22
	mov	w1, #767
	mov	w2, #1
	bl	_or_phy_reg
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh17:
	adrp	x8, _NPHY_RfctrlIntc_override_PA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NPHY_RfctrlIntc_override_PA@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x8, x26
	b.ne	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x22, #16]
	mov	w1, #7
	bl	_NREV_GE
	mov	x28, x0
	ldr	w0, [x22]
	bl	_CHSPEC_IS5G
	cmp	x0, #0
	cbz	x28, LBB0_26
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #4
	cinc	w8, w8, ne
	lsl	w3, w20, w8
	ldr	x8, [x23]
	cmp	x27, x8
	mov	w26, #145
	cinc	w1, w26, ne
	mov	x0, x22
	mov	w2, #48
	bl	_mod_phy_reg
	ldr	x8, [x23]
	cmp	x27, x8
	mov	w21, #145
	cinc	w1, w26, ne
	ldr	x26, [sp, #24]                  ; 8-byte Folded Reload
	mov	x0, x22
	mov	w2, #4096
	bl	_or_phy_reg
	b	LBB0_30
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh20:
	adrp	x8, _NPHY_RfctrlIntc_override_EXT_LNA_PU@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NPHY_RfctrlIntc_override_EXT_LNA_PU@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x8, x26
	b.ne	LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x22, #16]
	mov	w1, #7
	bl	_NREV_GE
	mov	x28, x0
	ldr	w0, [x22]
	bl	_CHSPEC_IS5G
	cbz	x28, LBB0_28
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	cmp	x27, x8
	mov	w8, #145
	cinc	w1, w8, ne
	cbz	x0, LBB0_31
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	w2, #1
	mov	x3, x20
	bl	_mod_phy_reg
	mov	w2, #4
	b	LBB0_34
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w21, #145
	mov	x0, x22
	mov	w2, #960
	ldr	w3, [sp, #20]                   ; 4-byte Folded Reload
	bl	_mod_phy_reg
	ldr	x8, [x23]
	cmp	x27, x8
	mov	w8, #236
	mov	w9, #231
	csel	w1, w9, w8, eq
	mov	x0, x22
	mov	w2, #1
	mov	w3, #1
	bl	_mod_phy_reg
	ldr	x8, [x23]
	cmp	x27, x8
	mov	x24, x25
	mov	x26, x20
	cset	w20, ne
	mov	w8, #1
	cinc	w2, w8, ne
	lsl	w28, w8, w20
	mov	x0, x22
	mov	w1, #120
	mov	x3, x28
	bl	_mod_phy_reg
	mov	x0, x22
	mov	w1, #120
	bl	_read_phy_reg
	lsr	w8, w0, w20
	mov	x20, x26
	ldr	x26, [sp, #24]                  ; 8-byte Folded Reload
Lloh23:
	adrp	x24, _PHY_CORE_1@GOTPAGE
Lloh24:
	ldr	x24, [x24, _PHY_CORE_1@GOTPAGEOFF]
	and	w0, w8, #0x1
	mov	w1, #10000
	bl	_SPINWAIT
	mov	x0, x22
	mov	w1, #120
	bl	_read_phy_reg
	and	w0, w0, w28
Lloh25:
	adrp	x28, _RADIO_MIMO_CORESEL_CORE2@GOTPAGE
Lloh26:
	ldr	x28, [x28, _RADIO_MIMO_CORESEL_CORE2@GOTPAGEOFF]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN
	cbnz	x0, LBB0_35
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	cmp	x27, x8
	mov	w8, #236
	mov	w9, #231
	csel	w1, w9, w8, eq
	mov	x0, x22
	mov	w2, #1
	mov	w3, #0
	bl	_mod_phy_reg
	b	LBB0_4
LBB0_22:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh29:
	adrp	x8, _NPHY_RfctrlIntc_override_EXT_LNA_GAIN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _NPHY_RfctrlIntc_override_EXT_LNA_GAIN@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	cmp	x8, x26
	b.ne	LBB0_4
; %bb.23:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x22, #16]
	mov	w1, #7
	bl	_NREV_GE
	mov	x28, x0
	ldr	w0, [x22]
	bl	_CHSPEC_IS5G
	cbz	x28, LBB0_32
; %bb.24:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	cmp	x27, x8
	cinc	w1, w21, ne
	cbz	x0, LBB0_33
; %bb.25:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	w2, #2
	ldr	w3, [sp, #12]                   ; 4-byte Folded Reload
	bl	_mod_phy_reg
	mov	w2, #8
	b	LBB0_34
LBB0_26:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #32
	mov	w9, #16
	csel	w2, w9, w8, eq
	mov	w8, #4
	cinc	w8, w8, ne
LBB0_27:                                ;   in Loop: Header=BB0_5 Depth=1
	lsl	w3, w20, w8
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x0, #0
	mov	w8, #4
	csinc	w2, w8, wzr, eq
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	csel	w3, w8, w20, eq
LBB0_29:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	cmp	x27, x8
	cinc	w1, w21, ne
	mov	x0, x22
	bl	_mod_phy_reg
LBB0_30:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh32:
	adrp	x28, _RADIO_MIMO_CORESEL_CORE2@GOTPAGE
Lloh33:
	ldr	x28, [x28, _RADIO_MIMO_CORESEL_CORE2@GOTPAGEOFF]
	b	LBB0_4
LBB0_31:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	w2, #4
	ldr	w3, [sp, #16]                   ; 4-byte Folded Reload
	bl	_mod_phy_reg
	mov	w2, #1
	b	LBB0_34
LBB0_32:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x0, #0
	mov	w8, #2
	mov	w9, #8
	csel	w2, w9, w8, eq
	mov	w8, #3
	csinc	w8, w8, wzr, eq
	b	LBB0_27
LBB0_33:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	w2, #8
	ldr	w3, [sp, #8]                    ; 4-byte Folded Reload
	bl	_mod_phy_reg
	mov	w2, #2
LBB0_34:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh34:
	adrp	x28, _RADIO_MIMO_CORESEL_CORE2@GOTPAGE
Lloh35:
	ldr	x28, [x28, _RADIO_MIMO_CORESEL_CORE2@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x27, x8
	mov	w26, #145
	cinc	w1, w26, ne
	mov	x0, x22
	mov	w3, #0
	bl	_mod_phy_reg
	ldr	x8, [x23]
	cmp	x27, x8
	mov	w21, #145
	cinc	w1, w26, ne
	mov	x0, x22
	mov	w2, #2048
	mov	w3, #2048
	bl	_mod_phy_reg
	ldr	x26, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_4
LBB0_35:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_RADIO_MIMO_CORESEL_CORE1,8,3   ; @RADIO_MIMO_CORESEL_CORE1
	.comm	_PHY_CORE_1,8,3                 ; @PHY_CORE_1
	.comm	_RADIO_MIMO_CORESEL_CORE2,8,3   ; @RADIO_MIMO_CORESEL_CORE2
	.comm	_PHY_CORE_0,8,3                 ; @PHY_CORE_0
	.comm	_NPHY_RfctrlIntc_override_OFF,8,3 ; @NPHY_RfctrlIntc_override_OFF
	.comm	_NPHY_RFSEQ_RESET2RX,4,2        ; @NPHY_RFSEQ_RESET2RX
	.comm	_NPHY_RfctrlIntc_override_TRSW,8,3 ; @NPHY_RfctrlIntc_override_TRSW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HW error: override failed"

	.comm	_NPHY_RfctrlIntc_override_PA,8,3 ; @NPHY_RfctrlIntc_override_PA
	.comm	_NPHY_RfctrlIntc_override_EXT_LNA_PU,8,3 ; @NPHY_RfctrlIntc_override_EXT_LNA_PU
	.comm	_NPHY_RfctrlIntc_override_EXT_LNA_GAIN,8,3 ; @NPHY_RfctrlIntc_override_EXT_LNA_GAIN
	.no_dead_strip	_wlc_phy_rfctrlintc_override_nphy
.subsections_via_symbols
