	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_lcnphy_samp_cap
_wlc_lcnphy_samp_cap:                   ## @wlc_lcnphy_samp_cap
	.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
	movl	%r8d, %r13d
	movq	%rcx, %r12
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$1754, %esi                     ## imm = 0x6DA
	callq	_read_phy_reg
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	(%r14), %ebx
	movq	_psm_corectlsts@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_D11REGOFFS
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_bcma_read16
	movl	%eax, %ebx
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movl	$0, 520(%r12)
	movl	(%r14), %r12d
	movl	(%r15), %edi
	callq	_D11REGOFFS
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	orl	$64, %ebx
	movl	%r12d, %edi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_bcma_write16
	movl	(%r14), %ebx
	movq	_smpl_clct_strptr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$32256, %edx                    ## imm = 0x7E00
	callq	_bcma_write16
	movl	(%r14), %ebx
	movq	_smpl_clct_stpptr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_bcma_write16
	movl	$20, %edi
	callq	_udelay
	movl	(%r14), %ebx
	movq	_psm_phy_hdr_param@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_D11REGOFFS
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_bcma_read16
	movl	%eax, %ebx
	movl	(%r14), %r12d
	movl	(%r15), %edi
	callq	_D11REGOFFS
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	orl	$48, %ebx
	movl	%r12d, %edi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_bcma_write16
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movl	$1365, %esi                     ## imm = 0x555
	xorl	%edx, %edx
	callq	_write_phy_reg
	movq	%r14, %rdi
	movl	$1446, %esi                     ## imm = 0x5A6
	movl	$5, %edx
	callq	_write_phy_reg
	movl	%r13d, %edx
	shll	$6, %edx
	orl	%r13d, %edx
	movq	%r14, %rdi
	movl	$1442, %esi                     ## imm = 0x5A2
	callq	_write_phy_reg
	movq	%r14, %rdi
	movl	$1487, %esi                     ## imm = 0x5CF
	movl	$3, %edx
	callq	_write_phy_reg
	movq	%r14, %rdi
	movl	$1445, %esi                     ## imm = 0x5A5
	movl	$3, %edx
	callq	_write_phy_reg
	movq	%r14, %rdi
	movl	$1411, %esi                     ## imm = 0x583
	xorl	%edx, %edx
	callq	_write_phy_reg
	movq	%r14, %rdi
	movl	$1412, %esi                     ## imm = 0x584
	xorl	%edx, %edx
	callq	_write_phy_reg
	movq	%r14, %rdi
	movl	$1413, %esi                     ## imm = 0x585
	movl	$4095, %edx                     ## imm = 0xFFF
	callq	_write_phy_reg
	movq	%r14, %rdi
	movl	$1414, %esi                     ## imm = 0x586
	xorl	%edx, %edx
	callq	_write_phy_reg
	movq	%r14, %rdi
	movl	$1408, %esi                     ## imm = 0x580
	movl	$17665, %edx                    ## imm = 0x4501
	callq	_write_phy_reg
	movq	%r14, %rdi
	movl	$1754, %esi                     ## imm = 0x6DA
	callq	_read_phy_reg
	orl	$8200, %eax                     ## imm = 0x2008
	movq	%r14, %rdi
	movl	$1754, %esi                     ## imm = 0x6DA
	movl	%eax, %edx
	callq	_write_phy_reg
	movl	(%r14), %ebx
	movq	_smpl_clct_stpptr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_bcma_read16
	movl	%eax, %r13d
	movl	(%r14), %ebx
	movq	_smpl_clct_curptr@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_D11REGOFFS
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_bcma_read16
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_udelay
	movl	(%r14), %ebx
	movl	(%r15), %edi
	callq	_D11REGOFFS
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_bcma_read16
	cmpl	%r13d, %eax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%r12), %eax
	cmpl	$499, %r12d                     ## imm = 0x1F3
	movl	%eax, %r12d
	jb	LBB0_1
LBB0_3:
	movl	(%r14), %ebx
	movq	_psm_phy_hdr_param@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$2, %edx
	callq	_bcma_write16
	movl	(%r14), %ebx
	movq	_tplatewrptr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$32256, %edx                    ## imm = 0x7E00
	callq	_bcma_write32
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	negl	%r12d
	xorl	%ebx, %ebx
	movq	_tplatewrdata@GOTPCREL(%rip), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$4, %rbx
	leal	32252(%rbx), %eax
	cmpl	$32764, %eax                    ## imm = 0x7FFC
	jae	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %r13d
	movl	(%r15), %edi
	callq	_D11REGOFFS
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_bcma_read32
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	shrl	$16, %ecx
	andl	$1023, %ecx                     ## imm = 0x3FF
	xorl	%edx, %edx
	cmpl	$512, %ecx                      ## imm = 0x200
	setb	%dl
	shll	$10, %edx
	addl	%edx, %ecx
	addl	$-1024, %ecx                    ## imm = 0xFC00
	andl	$1023, %eax                     ## imm = 0x3FF
	xorl	%edx, %edx
	cmpl	$512, %eax                      ## imm = 0x200
	setb	%dl
	shll	$10, %edx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	cmpq	$0, (%rsi)
	leal	-1024(%rdx,%rax), %eax
	cmovel	%ecx, %eax
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx,%rbx)
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	jg	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r12d, %ecx
	jge	LBB0_8
LBB0_7:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 520(%rax)
LBB0_9:
	movq	%r14, %rdi
	movl	$1754, %esi                     ## imm = 0x6DA
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_write_phy_reg
	movl	(%r14), %ebx
	movq	_psm_phy_hdr_param@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_bcma_write16
	movl	(%r14), %ebx
	movq	_psm_corectlsts@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bcma_write16                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_psm_corectlsts,4,2             ## @psm_corectlsts
	.comm	_smpl_clct_strptr,4,2           ## @smpl_clct_strptr
	.comm	_smpl_clct_stpptr,4,2           ## @smpl_clct_stpptr
	.comm	_psm_phy_hdr_param,4,2          ## @psm_phy_hdr_param
	.comm	_smpl_clct_curptr,4,2           ## @smpl_clct_curptr
	.comm	_tplatewrptr,4,2                ## @tplatewrptr
	.comm	_tplatewrdata,4,2               ## @tplatewrdata
	.no_dead_strip	_wlc_lcnphy_samp_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlc_lcnphy_samp_cap
_wlc_lcnphy_samp_cap:                   ; @wlc_lcnphy_samp_cap
	.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	x26, x4
	mov	x22, x3
	str	w2, [sp, #28]                   ; 4-byte Folded Spill
	mov	x23, x1
	mov	x19, x0
	ldr	x28, [x0, #8]
	mov	w1, #1754
	bl	_read_phy_reg
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	ldr	w20, [x19]
Lloh0:
	adrp	x21, _psm_corectlsts@GOTPAGE
Lloh1:
	ldr	x21, [x21, _psm_corectlsts@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x20
	bl	_bcma_read16
	mov	x20, x0
	str	wzr, [x22, #520]
	ldr	w25, [x19]
	ldr	w0, [x21]
	bl	_D11REGOFFS
	mov	x1, x0
	str	w20, [sp, #24]                  ; 4-byte Folded Spill
	orr	w2, w20, #0x40
	mov	x0, x25
	bl	_bcma_write16
	ldr	w25, [x19]
Lloh2:
	adrp	x8, _smpl_clct_strptr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _smpl_clct_strptr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x25
	mov	w2, #32256
	bl	_bcma_write16
	ldr	w25, [x19]
Lloh5:
	adrp	x20, _smpl_clct_stpptr@GOTPAGE
Lloh6:
	ldr	x20, [x20, _smpl_clct_stpptr@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x25
	mov	w2, #32768
	bl	_bcma_write16
	mov	w0, #20
	bl	_udelay
	ldr	w25, [x19]
Lloh7:
	adrp	x24, _psm_phy_hdr_param@GOTPAGE
Lloh8:
	ldr	x24, [x24, _psm_phy_hdr_param@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x25
	bl	_bcma_read16
	mov	x21, x0
	ldr	w27, [x19]
	ldr	w0, [x24]
	bl	_D11REGOFFS
	mov	x1, x0
	str	w21, [sp, #16]                  ; 4-byte Folded Spill
	orr	w2, w21, #0x30
	mov	x0, x27
	bl	_bcma_write16
	mov	x0, x19
	mov	w1, #1365
	mov	w2, #0
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #1446
	mov	w2, #5
	bl	_write_phy_reg
	orr	w2, w26, w26, lsl #6
	mov	x0, x19
	mov	w1, #1442
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #1487
	mov	w2, #3
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #1445
	mov	w2, #3
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #1411
	mov	w2, #0
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #1412
	mov	w2, #0
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #1413
	mov	w2, #4095
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #1414
	mov	w2, #0
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #1408
	mov	w2, #17665
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #1754
	bl	_read_phy_reg
	mov	w8, #8200
	orr	w2, w0, w8
	mov	x0, x19
	mov	w1, #1754
	bl	_write_phy_reg
	ldr	w26, [x19]
	ldr	w0, [x20]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x26
	bl	_bcma_read16
	mov	x26, x0
	ldr	w27, [x19]
Lloh9:
	adrp	x20, _smpl_clct_curptr@GOTPAGE
Lloh10:
	ldr	x20, [x20, _smpl_clct_curptr@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x27
	bl	_bcma_read16
	mov	w21, #0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_udelay
	ldr	w27, [x19]
	ldr	w0, [x20]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x27
	bl	_bcma_read16
	cmp	w0, w26
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w8, w21, #1
	cmp	w21, #499
	mov	x21, x8
	b.lo	LBB0_1
LBB0_3:
	ldr	w26, [x19]
	ldr	w0, [x24]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x26
	mov	w2, #2
	bl	_bcma_write16
	ldr	w26, [x19]
Lloh11:
	adrp	x8, _tplatewrptr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _tplatewrptr@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x26
	mov	w2, #32256
	bl	_bcma_write32
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	neg	w20, w8
	mov	w27, #32252
Lloh14:
	adrp	x24, _tplatewrdata@GOTPAGE
Lloh15:
	ldr	x24, [x24, _tplatewrdata@GOTPAGEOFF]
	mov	w21, #-1024
	mov	w25, #32764
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w27, w27, #4
	add	x22, x22, #4
	cmp	w27, w25
	b.hs	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w26, [x19]
	ldr	w0, [x24]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x26
	bl	_bcma_read32
	ubfx	w8, w0, #16, #10
	cmp	w8, #511
	csel	w8, w21, wzr, hi
	bfxil	w8, w0, #16, #10
	ldr	x9, [x28]
	and	w10, w0, #0x3ff
	cmp	w10, #511
	csel	w10, w21, wzr, hi
	bfxil	w10, w0, #0, #10
	cmp	x9, #0
	csel	w9, w8, w10, eq
	str	w9, [x22]
	cbz	w23, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	cmp	w8, w9
	ccmp	w8, w20, #8, le
	b.ge	LBB0_4
; %bb.7:
	mov	w8, #1
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	w8, [x9, #520]
LBB0_8:
	mov	x0, x19
	mov	w1, #1754
	ldr	w2, [sp, #20]                   ; 4-byte Folded Reload
	bl	_write_phy_reg
	ldr	w21, [x19]
Lloh16:
	adrp	x8, _psm_phy_hdr_param@GOTPAGE
Lloh17:
	ldr	x8, [x8, _psm_phy_hdr_param@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x21
	ldr	w2, [sp, #16]                   ; 4-byte Folded Reload
	bl	_bcma_write16
	ldr	w19, [x19]
Lloh19:
	adrp	x8, _psm_corectlsts@GOTPAGE
Lloh20:
	ldr	x8, [x8, _psm_corectlsts@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x19
	ldr	w2, [sp, #24]                   ; 4-byte Folded Reload
	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
	b	_bcma_write16
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_psm_corectlsts,4,2             ; @psm_corectlsts
	.comm	_smpl_clct_strptr,4,2           ; @smpl_clct_strptr
	.comm	_smpl_clct_stpptr,4,2           ; @smpl_clct_stpptr
	.comm	_psm_phy_hdr_param,4,2          ; @psm_phy_hdr_param
	.comm	_smpl_clct_curptr,4,2           ; @smpl_clct_curptr
	.comm	_tplatewrptr,4,2                ; @tplatewrptr
	.comm	_tplatewrdata,4,2               ; @tplatewrdata
	.no_dead_strip	_wlc_lcnphy_samp_cap
.subsections_via_symbols
