	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_force_rfseq_nphy       ## -- Begin function wlc_phy_force_rfseq_nphy
	.p2align	4, 0x90
_wlc_phy_force_rfseq_nphy:              ## @wlc_phy_force_rfseq_nphy
	.cfi_startproc
## %bb.0:
	addl	$-128, %esi
	cmpl	$5, %esi
	ja	LBB0_1
## %bb.2:
	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, %rbx
	movslq	%esi, %rax
	leaq	l_switch.table.wlc_phy_force_rfseq_nphy(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	l_switch.table.wlc_phy_force_rfseq_nphy.1(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	movl	(%rax), %r12d
	movl	(%rcx), %r14d
	movl	$161, %esi
	callq	_read_phy_reg
	movl	%eax, %r15d
	movq	_NPHY_RfseqMode_CoreActv_override@GOTPCREL(%rip), %rax
	movq	_NPHY_RfseqMode_Trigger_override@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$161, %esi
	callq	_or_phy_reg
	movq	%rbx, %rdi
	movl	$163, %esi
	movl	%r12d, %edx
	callq	_or_phy_reg
	movq	%rbx, %rdi
	movl	$164, %esi
	callq	_read_phy_reg
	andl	%r14d, %eax
	movl	%eax, %edi
	movl	$200000, %esi                   ## imm = 0x30D40
	callq	_SPINWAIT
	movq	%rbx, %rdi
	movl	$161, %esi
	movl	%r15d, %edx
	callq	_write_phy_reg
	movq	%rbx, %rdi
	movl	$164, %esi
	callq	_read_phy_reg
	andl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN                           ## TAILCALL
LBB0_1:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NPHY_RfseqTrigger_rx2tx,4,2    ## @NPHY_RfseqTrigger_rx2tx
	.comm	_NPHY_RfseqStatus_rx2tx,4,2     ## @NPHY_RfseqStatus_rx2tx
	.comm	_NPHY_RfseqTrigger_tx2rx,4,2    ## @NPHY_RfseqTrigger_tx2rx
	.comm	_NPHY_RfseqStatus_tx2rx,4,2     ## @NPHY_RfseqStatus_tx2rx
	.comm	_NPHY_RfseqTrigger_reset2rx,4,2 ## @NPHY_RfseqTrigger_reset2rx
	.comm	_NPHY_RfseqStatus_reset2rx,4,2  ## @NPHY_RfseqStatus_reset2rx
	.comm	_NPHY_RfseqTrigger_updategainh,4,2 ## @NPHY_RfseqTrigger_updategainh
	.comm	_NPHY_RfseqStatus_updategainh,4,2 ## @NPHY_RfseqStatus_updategainh
	.comm	_NPHY_RfseqTrigger_updategainl,4,2 ## @NPHY_RfseqTrigger_updategainl
	.comm	_NPHY_RfseqStatus_updategainl,4,2 ## @NPHY_RfseqStatus_updategainl
	.comm	_NPHY_RfseqTrigger_updategainu,4,2 ## @NPHY_RfseqTrigger_updategainu
	.comm	_NPHY_RfseqStatus_updategainu,4,2 ## @NPHY_RfseqStatus_updategainu
	.comm	_NPHY_RfseqMode_CoreActv_override,4,2 ## @NPHY_RfseqMode_CoreActv_override
	.comm	_NPHY_RfseqMode_Trigger_override,4,2 ## @NPHY_RfseqMode_Trigger_override
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HW error in rf"

	.section	__DATA,__const
	.p2align	3                               ## @switch.table.wlc_phy_force_rfseq_nphy
l_switch.table.wlc_phy_force_rfseq_nphy:
	.quad	_NPHY_RfseqStatus_updategainu
	.quad	_NPHY_RfseqStatus_updategainl
	.quad	_NPHY_RfseqStatus_updategainh
	.quad	_NPHY_RfseqStatus_tx2rx
	.quad	_NPHY_RfseqStatus_rx2tx
	.quad	_NPHY_RfseqStatus_reset2rx

	.p2align	3                               ## @switch.table.wlc_phy_force_rfseq_nphy.1
l_switch.table.wlc_phy_force_rfseq_nphy.1:
	.quad	_NPHY_RfseqTrigger_updategainu
	.quad	_NPHY_RfseqTrigger_updategainl
	.quad	_NPHY_RfseqTrigger_updategainh
	.quad	_NPHY_RfseqTrigger_tx2rx
	.quad	_NPHY_RfseqTrigger_rx2tx
	.quad	_NPHY_RfseqTrigger_reset2rx

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_force_rfseq_nphy       ; -- Begin function wlc_phy_force_rfseq_nphy
	.p2align	2
_wlc_phy_force_rfseq_nphy:              ; @wlc_phy_force_rfseq_nphy
	.cfi_startproc
; %bb.0:
	sub	w8, w1, #128
	cmp	w8, #5
	b.hi	LBB0_2
; %bb.1:
	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
	sbfiz	x8, x8, #3, #32
Lloh0:
	adrp	x9, l_switch.table.wlc_phy_force_rfseq_nphy@PAGE
Lloh1:
	add	x9, x9, l_switch.table.wlc_phy_force_rfseq_nphy@PAGEOFF
	ldr	x9, [x9, x8]
Lloh2:
	adrp	x10, l_switch.table.wlc_phy_force_rfseq_nphy.1@PAGE
Lloh3:
	add	x10, x10, l_switch.table.wlc_phy_force_rfseq_nphy.1@PAGEOFF
	ldr	x8, [x10, x8]
	ldr	w20, [x8]
	ldr	w22, [x9]
	mov	w1, #161
	bl	_read_phy_reg
	mov	x21, x0
Lloh4:
	adrp	x8, _NPHY_RfseqMode_CoreActv_override@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NPHY_RfseqMode_CoreActv_override@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _NPHY_RfseqMode_Trigger_override@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NPHY_RfseqMode_Trigger_override@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	mov	w1, #161
	bl	_or_phy_reg
	mov	x0, x19
	mov	w1, #163
	mov	x2, x20
	bl	_or_phy_reg
	mov	x0, x19
	mov	w1, #164
	bl	_read_phy_reg
	and	w0, w0, w22
	mov	w1, #3392
	movk	w1, #3, lsl #16
	bl	_SPINWAIT
	mov	x0, x19
	mov	w1, #161
	mov	x2, x21
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #164
	bl	_read_phy_reg
	and	w0, w0, w22
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_WARN
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NPHY_RfseqTrigger_rx2tx,4,2    ; @NPHY_RfseqTrigger_rx2tx
	.comm	_NPHY_RfseqStatus_rx2tx,4,2     ; @NPHY_RfseqStatus_rx2tx
	.comm	_NPHY_RfseqTrigger_tx2rx,4,2    ; @NPHY_RfseqTrigger_tx2rx
	.comm	_NPHY_RfseqStatus_tx2rx,4,2     ; @NPHY_RfseqStatus_tx2rx
	.comm	_NPHY_RfseqTrigger_reset2rx,4,2 ; @NPHY_RfseqTrigger_reset2rx
	.comm	_NPHY_RfseqStatus_reset2rx,4,2  ; @NPHY_RfseqStatus_reset2rx
	.comm	_NPHY_RfseqTrigger_updategainh,4,2 ; @NPHY_RfseqTrigger_updategainh
	.comm	_NPHY_RfseqStatus_updategainh,4,2 ; @NPHY_RfseqStatus_updategainh
	.comm	_NPHY_RfseqTrigger_updategainl,4,2 ; @NPHY_RfseqTrigger_updategainl
	.comm	_NPHY_RfseqStatus_updategainl,4,2 ; @NPHY_RfseqStatus_updategainl
	.comm	_NPHY_RfseqTrigger_updategainu,4,2 ; @NPHY_RfseqTrigger_updategainu
	.comm	_NPHY_RfseqStatus_updategainu,4,2 ; @NPHY_RfseqStatus_updategainu
	.comm	_NPHY_RfseqMode_CoreActv_override,4,2 ; @NPHY_RfseqMode_CoreActv_override
	.comm	_NPHY_RfseqMode_Trigger_override,4,2 ; @NPHY_RfseqMode_Trigger_override
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HW error in rf"

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.wlc_phy_force_rfseq_nphy
l_switch.table.wlc_phy_force_rfseq_nphy:
	.quad	_NPHY_RfseqStatus_updategainu
	.quad	_NPHY_RfseqStatus_updategainl
	.quad	_NPHY_RfseqStatus_updategainh
	.quad	_NPHY_RfseqStatus_tx2rx
	.quad	_NPHY_RfseqStatus_rx2tx
	.quad	_NPHY_RfseqStatus_reset2rx

	.p2align	3                               ; @switch.table.wlc_phy_force_rfseq_nphy.1
l_switch.table.wlc_phy_force_rfseq_nphy.1:
	.quad	_NPHY_RfseqTrigger_updategainu
	.quad	_NPHY_RfseqTrigger_updategainl
	.quad	_NPHY_RfseqTrigger_updategainh
	.quad	_NPHY_RfseqTrigger_tx2rx
	.quad	_NPHY_RfseqTrigger_rx2tx
	.quad	_NPHY_RfseqTrigger_reset2rx

.subsections_via_symbols
