	.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_attach_nphy
LCPI0_0:
	.long	16842933                        ## 0x10100b5
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_wlc_phy_attach_nphy
	.p2align	4, 0x90
_wlc_phy_attach_nphy:                   ## @wlc_phy_attach_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	80(%rdi), %edi
	movl	$3, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	80(%rbx), %edi
	movl	$6, %esi
	callq	_NREV_LT
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	$1, (%rbx)
LBB0_3:
	movl	80(%rbx), %edi
	movl	$3, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movl	80(%rbx), %edi
	movl	$7, %esi
	callq	_NREV_LT
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	$1, 4(%rbx)
	movq	128(%rbx), %rax
	movq	_BFL2_SPUR_WAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.6:
	movl	$1, 8(%rbx)
LBB0_7:
	movl	80(%rbx), %edi
	movl	$6, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movl	80(%rbx), %edi
	movl	$7, %esi
	callq	_NREV_LT
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	128(%rbx), %rax
	movq	_BFL2_2G_SPUR_WAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_11
## %bb.10:
	movl	$1, 12(%rbx)
LBB0_11:
	movq	_AUTO@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, 120(%rbx)
	movl	80(%rbx), %edi
	movl	$3, %esi
	callq	_NREV_IS
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movl	80(%rbx), %edi
	movl	$4, %esi
	callq	_NREV_IS
	testq	%rax, %rax
	je	LBB0_14
LBB0_13:
	movq	_BRCMS_N_PREAMBLE_MIXEDMODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 120(%rbx)
LBB0_14:
	movq	(%r14), %rdx
	movq	%rdx, 112(%rbx)
	movq	%rdx, 104(%rbx)
	movq	_PHY_PERICAL_MPHASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%rbx)
	movq	_MPHASE_CAL_STATE_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 92(%rbx)
	movq	_MPHASE_TXCAL_NUMCMDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%rbx)
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [16842933,1,0,0]
	movdqu	%xmm0, 16(%rbx)
	movq	72(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_31
## %bb.15:
	movq	64(%rbx), %rcx
	movq	%rdx, (%rcx)
	cmpq	$1, %rax
	je	LBB0_31
## %bb.16:
	leaq	-1(%rax), %r9
	movl	$1, %edx
	cmpq	$4, %r9
	jb	LBB0_27
## %bb.17:
	leaq	8(%rcx), %rsi
	leaq	8(%r14), %rdi
	cmpq	%rdi, %rsi
	jae	LBB0_19
## %bb.18:
	leaq	(%rcx,%rax,8), %rsi
	cmpq	_AUTO@GOTPCREL(%rip), %rsi
	ja	LBB0_27
LBB0_19:
	movq	%r9, %rdx
	andq	$-4, %rdx
	leaq	-4(%rdx), %rsi
	movq	%rsi, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.21:
	movq	%r8, %rsi
	andq	$-2, %rsi
	movq	(%r14), %xmm0                   ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	movl	$1, %edi
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rcx,%rdi,8)
	movdqu	%xmm0, 16(%rcx,%rdi,8)
	movdqu	%xmm0, 32(%rcx,%rdi,8)
	movdqu	%xmm0, 48(%rcx,%rdi,8)
	addq	$8, %rdi
	addq	$-2, %rsi
	jne	LBB0_22
## %bb.23:
	testb	$1, %r8b
	je	LBB0_25
LBB0_24:
	movq	(%r14), %xmm0                   ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	movdqu	%xmm0, (%rcx,%rdi,8)
	movdqu	%xmm0, 16(%rcx,%rdi,8)
LBB0_25:
	cmpq	%rdx, %r9
	je	LBB0_31
## %bb.26:
	orq	$1, %rdx
LBB0_27:
	movl	%eax, %edi
	subl	%edx, %edi
	movq	%rdx, %r8
	notq	%r8
	addq	%rax, %r8
	andq	$3, %rdi
	je	LBB0_29
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rsi
	movq	%rsi, (%rcx,%rdx,8)
	incq	%rdx
	decq	%rdi
	jne	LBB0_28
LBB0_29:
	cmpq	$3, %r8
	jb	LBB0_31
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rsi
	movq	%rsi, (%rcx,%rdx,8)
	movq	(%r14), %rsi
	movq	%rsi, 8(%rcx,%rdx,8)
	movq	(%r14), %rsi
	movq	%rsi, 16(%rcx,%rdx,8)
	movq	(%r14), %rsi
	movq	%rsi, 24(%rcx,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_30
LBB0_31:
	movq	%rbx, %rdi
	callq	_wlc_phy_txpwrctrl_config_nphy
	movq	32(%rbx), %rax
	movq	_PHY_TPC_HW_ON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_33
## %bb.32:
	movl	$1, 40(%rbx)
LBB0_33:
	movq	_wlc_phy_init_nphy@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	_wlc_phy_cal_init_nphy@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	_wlc_phy_chanspec_set_nphy@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_wlc_phy_txpower_recalc_target_nphy@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	%rbx, %rdi
	callq	_wlc_phy_txpwr_srom_read_nphy
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_20:
	movl	$1, %edi
	testb	$1, %r8b
	jne	LBB0_24
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_BFL2_SPUR_WAR,4,2              ## @BFL2_SPUR_WAR
	.comm	_BFL2_2G_SPUR_WAR,4,2           ## @BFL2_2G_SPUR_WAR
	.comm	_AUTO,8,3                       ## @AUTO
	.comm	_BRCMS_N_PREAMBLE_MIXEDMODE,8,3 ## @BRCMS_N_PREAMBLE_MIXEDMODE
	.comm	_PHY_PERICAL_MPHASE,4,2         ## @PHY_PERICAL_MPHASE
	.comm	_MPHASE_CAL_STATE_IDLE,4,2      ## @MPHASE_CAL_STATE_IDLE
	.comm	_MPHASE_TXCAL_NUMCMDS,4,2       ## @MPHASE_TXCAL_NUMCMDS
	.comm	_PHY_TPC_HW_ON,8,3              ## @PHY_TPC_HW_ON
	.comm	_wlc_phy_init_nphy,4,2          ## @wlc_phy_init_nphy
	.comm	_wlc_phy_cal_init_nphy,4,2      ## @wlc_phy_cal_init_nphy
	.comm	_wlc_phy_chanspec_set_nphy,4,2  ## @wlc_phy_chanspec_set_nphy
	.comm	_wlc_phy_txpower_recalc_target_nphy,4,2 ## @wlc_phy_txpower_recalc_target_nphy
.subsections_via_symbols

	.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_attach_nphy
lCPI0_0:
	.long	16842933                        ; 0x10100b5
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_wlc_phy_attach_nphy
	.p2align	2
_wlc_phy_attach_nphy:                   ; @wlc_phy_attach_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, #80]
	mov	w1, #3
	bl	_NREV_GE
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x19, #80]
	mov	w1, #6
	bl	_NREV_LT
	cbz	x0, LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x19]
LBB0_3:
	ldr	w0, [x19, #80]
	mov	w1, #3
	bl	_NREV_GE
	cbz	x0, LBB0_7
; %bb.4:
	ldr	w0, [x19, #80]
	mov	w1, #7
	bl	_NREV_LT
	cbz	x0, LBB0_7
; %bb.5:
	mov	w8, #1
	str	w8, [x19, #4]
	ldr	x9, [x19, #128]
	ldr	w9, [x9]
Lloh0:
	adrp	x10, _BFL2_SPUR_WAR@GOTPAGE
Lloh1:
	ldr	x10, [x10, _BFL2_SPUR_WAR@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.6:
	str	w8, [x19, #8]
LBB0_7:
	ldr	w0, [x19, #80]
	mov	w1, #6
	bl	_NREV_GE
	cbz	x0, LBB0_11
; %bb.8:
	ldr	w0, [x19, #80]
	mov	w1, #7
	bl	_NREV_LT
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x8, [x19, #128]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BFL2_2G_SPUR_WAR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BFL2_2G_SPUR_WAR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	mov	w8, #1
	str	w8, [x19, #12]
LBB0_11:
Lloh6:
	adrp	x20, _AUTO@GOTPAGE
Lloh7:
	ldr	x20, [x20, _AUTO@GOTPAGEOFF]
	ldr	x8, [x20]
	str	x8, [x19, #120]
	ldr	w0, [x19, #80]
	mov	w1, #3
	bl	_NREV_IS
	cbnz	x0, LBB0_13
; %bb.12:
	ldr	w0, [x19, #80]
	mov	w1, #4
	bl	_NREV_IS
	cbz	x0, LBB0_14
LBB0_13:
Lloh8:
	adrp	x8, _BRCMS_N_PREAMBLE_MIXEDMODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BRCMS_N_PREAMBLE_MIXEDMODE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x19, #120]
LBB0_14:
	ldr	x10, [x20]
	stp	x10, x10, [x19, #104]
Lloh11:
	adrp	x8, _PHY_PERICAL_MPHASE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PHY_PERICAL_MPHASE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #96]
Lloh14:
	adrp	x8, _MPHASE_CAL_STATE_IDLE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MPHASE_CAL_STATE_IDLE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _MPHASE_TXCAL_NUMCMDS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MPHASE_TXCAL_NUMCMDS@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #88]
Lloh20:
	adrp	x8, lCPI0_0@PAGE
Lloh21:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [x19, #16]
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_22
; %bb.15:
	ldr	x9, [x19, #64]
	str	x10, [x9]
	subs	x10, x8, #1
	b.eq	LBB0_22
; %bb.16:
	cmp	x10, #8
	b.lo	LBB0_19
; %bb.17:
	add	x11, x9, #8
	add	x12, x20, #8
	cmp	x11, x12
	b.hs	LBB0_25
; %bb.18:
	add	x11, x9, x8, lsl #3
	cmp	x11, x20
	b.ls	LBB0_25
LBB0_19:
	mov	w11, #1
LBB0_20:
	add	x9, x9, x11, lsl #3
	sub	x8, x8, x11
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x20]
	str	x10, [x9], #8
	subs	x8, x8, #1
	b.ne	LBB0_21
LBB0_22:
	mov	x0, x19
	bl	_wlc_phy_txpwrctrl_config_nphy
	ldr	x8, [x19, #32]
Lloh22:
	adrp	x9, _PHY_TPC_HW_ON@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PHY_TPC_HW_ON@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.23:
	mov	w8, #1
	str	w8, [x19, #40]
LBB0_24:
Lloh25:
	adrp	x8, _wlc_phy_init_nphy@GOTPAGE
Lloh26:
	ldr	x8, [x8, _wlc_phy_init_nphy@GOTPAGEOFF]
Lloh27:
	adrp	x9, _wlc_phy_cal_init_nphy@GOTPAGE
Lloh28:
	ldr	x9, [x9, _wlc_phy_cal_init_nphy@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #52]
Lloh31:
	adrp	x8, _wlc_phy_chanspec_set_nphy@GOTPAGE
Lloh32:
	ldr	x8, [x8, _wlc_phy_chanspec_set_nphy@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _wlc_phy_txpower_recalc_target_nphy@GOTPAGE
Lloh35:
	ldr	x9, [x9, _wlc_phy_txpower_recalc_target_nphy@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #44]
	mov	x0, x19
	bl	_wlc_phy_txpwr_srom_read_nphy
	cmp	w0, #0
	cset	w0, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_25:
	and	x12, x10, #0xfffffffffffffff8
	orr	x11, x12, #0x1
	ld1r.2d	{ v0 }, [x20]
	add	x13, x9, #40
	mov	x14, x12
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x13, #-32]
	stp	q0, q0, [x13], #64
	subs	x14, x14, #8
	b.ne	LBB0_26
; %bb.27:
	cmp	x10, x12
	b.eq	LBB0_22
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdr	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_BFL2_SPUR_WAR,4,2              ; @BFL2_SPUR_WAR
	.comm	_BFL2_2G_SPUR_WAR,4,2           ; @BFL2_2G_SPUR_WAR
	.comm	_AUTO,8,3                       ; @AUTO
	.comm	_BRCMS_N_PREAMBLE_MIXEDMODE,8,3 ; @BRCMS_N_PREAMBLE_MIXEDMODE
	.comm	_PHY_PERICAL_MPHASE,4,2         ; @PHY_PERICAL_MPHASE
	.comm	_MPHASE_CAL_STATE_IDLE,4,2      ; @MPHASE_CAL_STATE_IDLE
	.comm	_MPHASE_TXCAL_NUMCMDS,4,2       ; @MPHASE_TXCAL_NUMCMDS
	.comm	_PHY_TPC_HW_ON,8,3              ; @PHY_TPC_HW_ON
	.comm	_wlc_phy_init_nphy,4,2          ; @wlc_phy_init_nphy
	.comm	_wlc_phy_cal_init_nphy,4,2      ; @wlc_phy_cal_init_nphy
	.comm	_wlc_phy_chanspec_set_nphy,4,2  ; @wlc_phy_chanspec_set_nphy
	.comm	_wlc_phy_txpower_recalc_target_nphy,4,2 ; @wlc_phy_txpower_recalc_target_nphy
.subsections_via_symbols
