	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_phy_workarounds_nphy
_wlc_phy_workarounds_nphy:              ## @wlc_phy_workarounds_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	12(%rdi), %edi
	callq	_CHSPEC_IS5G
	xorl	%edx, %edx
	testq	%rax, %rax
	sete	%dl
	movq	_NPHY_ClassifierCtrl_cck_en@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wlc_phy_classifier_nphy
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_wlc_phy_stay_in_carriersearch_nphy
LBB0_2:
	movq	_NPHY_IQFlip_ADC1@GOTPCREL(%rip), %rax
	movq	_NPHY_IQFlip_ADC2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$177, %esi
	callq	_or_phy_reg
	movl	8(%rbx), %edi
	movl	$7, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_wlc_phy_workarounds_nphy_rev7
	cmpq	$0, (%rbx)
	jne	LBB0_9
	jmp	LBB0_8
LBB0_4:
	movl	8(%rbx), %edi
	movl	$3, %esi
	callq	_NREV_GE
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	callq	_wlc_phy_workarounds_nphy_rev3
	cmpq	$0, (%rbx)
	je	LBB0_8
LBB0_9:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_wlc_phy_stay_in_carriersearch_nphy ## TAILCALL
LBB0_6:
	callq	_wlc_phy_workarounds_nphy_rev1
	cmpq	$0, (%rbx)
	jne	LBB0_9
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NPHY_ClassifierCtrl_cck_en,4,2 ## @NPHY_ClassifierCtrl_cck_en
	.comm	_NPHY_IQFlip_ADC1,4,2           ## @NPHY_IQFlip_ADC1
	.comm	_NPHY_IQFlip_ADC2,4,2           ## @NPHY_IQFlip_ADC2
	.no_dead_strip	_wlc_phy_workarounds_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_workarounds_nphy
_wlc_phy_workarounds_nphy:              ; @wlc_phy_workarounds_nphy
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #12]
	bl	_CHSPEC_IS5G
	cmp	x0, #0
	cset	w2, eq
Lloh0:
	adrp	x8, _NPHY_ClassifierCtrl_cck_en@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NPHY_ClassifierCtrl_cck_en@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wlc_phy_classifier_nphy
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_wlc_phy_stay_in_carriersearch_nphy
LBB0_2:
Lloh3:
	adrp	x8, _NPHY_IQFlip_ADC1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NPHY_IQFlip_ADC1@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _NPHY_IQFlip_ADC2@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NPHY_IQFlip_ADC2@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	mov	w1, #177
	bl	_or_phy_reg
	ldr	w0, [x19, #8]
	mov	w1, #7
	bl	_NREV_GE
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_wlc_phy_workarounds_nphy_rev7
	ldr	x8, [x19]
	cbnz	x8, LBB0_6
	b	LBB0_8
LBB0_4:
	ldr	w0, [x19, #8]
	mov	w1, #3
	bl	_NREV_GE
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_wlc_phy_workarounds_nphy_rev3
	ldr	x8, [x19]
	cbz	x8, LBB0_8
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wlc_phy_stay_in_carriersearch_nphy
LBB0_7:
	mov	x0, x19
	bl	_wlc_phy_workarounds_nphy_rev1
	ldr	x8, [x19]
	cbnz	x8, LBB0_6
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NPHY_ClassifierCtrl_cck_en,4,2 ; @NPHY_ClassifierCtrl_cck_en
	.comm	_NPHY_IQFlip_ADC1,4,2           ; @NPHY_IQFlip_ADC1
	.comm	_NPHY_IQFlip_ADC2,4,2           ; @NPHY_IQFlip_ADC2
	.no_dead_strip	_wlc_phy_workarounds_nphy
.subsections_via_symbols
