	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_phy_noise_calc_phy
_wlc_phy_noise_calc_phy:                ## @wlc_phy_noise_calc_phy
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PHY_CORE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leal	(,%rbx,8), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	16(%r13), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_wlc_phy_compute_dB
	cmpq	$0, 16(%r13)
	je	LBB0_8
## %bb.1:
	xorl	%ebx, %ebx
	movq	_PHY_NOISE_OFFSETFACT_4322@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	%rcx, (%r15,%rbx,8)
	incq	%rbx
	movq	16(%r13), %rax
	cmpq	%rax, %rbx
	jae	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%r13), %edi
	movl	$3, %esi
	callq	_NREV_GE
	movq	$-99, %rcx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rcx
	jmp	LBB0_4
LBB0_5:
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	8(%r13), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rcx,8), %rdx
	movq	(%rax,%rcx,8), %rsi
	movq	(%r13), %rdi
	movq	%rdx, (%rsi,%rdi,8)
	movq	(%r15,%rcx,8), %rdx
	movq	%rdx, (%r14,%rcx,8)
	incq	%rcx
	cmpq	16(%r13), %rcx
	jb	LBB0_7
LBB0_8:
	movq	(%r13), %rdi
	movq	_PHY_NOISE_WINDOW_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MODINC_POW2
	movq	%rax, (%r13)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	$1, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_CORE_MAX,4,2               ## @PHY_CORE_MAX
	.comm	_PHY_NOISE_OFFSETFACT_4322,8,3  ## @PHY_NOISE_OFFSETFACT_4322
	.comm	_PHY_NOISE_WINDOW_SZ,4,2        ## @PHY_NOISE_WINDOW_SZ
	.no_dead_strip	_wlc_phy_noise_calc_phy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlc_phy_noise_calc_phy
_wlc_phy_noise_calc_phy:                ; @wlc_phy_noise_calc_phy
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _PHY_CORE_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHY_CORE_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	lsl	x8, x12, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x21, x9, x8
	mov	sp, x21
	lsl	w2, w12, #3
	mov	x0, x21
	mov	w1, #0
	bl	_memset
	ldr	x2, [x19, #16]
	mov	x0, x22
	mov	x1, x21
	bl	_wlc_phy_compute_dB
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x22, #0
Lloh8:
	adrp	x23, _PHY_NOISE_OFFSETFACT_4322@GOTPAGE
Lloh9:
	ldr	x23, [x23, _PHY_NOISE_OFFSETFACT_4322@GOTPAGEOFF]
	mov	x24, #-99
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #24]
	mov	w1, #3
	bl	_NREV_GE
	ldr	x8, [x23]
	cmp	x0, #0
	csel	x8, x24, x8, eq
	lsl	x9, x22, #3
	ldr	x10, [x21, x9]
	add	x8, x10, x8
	str	x8, [x21, x9]
	add	x22, x22, #1
	ldr	x8, [x19, #16]
	cmp	x22, x8
	b.lo	LBB0_2
; %bb.3:
	cbz	x8, LBB0_6
; %bb.4:
	mov	x8, #0
	ldr	x9, [x19, #8]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x10, x8, #3
	ldr	x11, [x21, x10]
	ldr	x12, [x9, x10]
	ldr	x13, [x19]
	str	x11, [x12, x13, lsl #3]
	ldr	x11, [x21, x10]
	str	x11, [x20, x10]
	add	x8, x8, #1
	ldr	x10, [x19, #16]
	cmp	x8, x10
	b.lo	LBB0_5
LBB0_6:
	ldr	x0, [x19]
Lloh10:
	adrp	x8, _PHY_NOISE_WINDOW_SZ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PHY_NOISE_WINDOW_SZ@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_MODINC_POW2
	str	x0, [x19]
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #1
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_CORE_MAX,4,2               ; @PHY_CORE_MAX
	.comm	_PHY_NOISE_OFFSETFACT_4322,8,3  ; @PHY_NOISE_OFFSETFACT_4322
	.comm	_PHY_NOISE_WINDOW_SZ,4,2        ; @PHY_NOISE_WINDOW_SZ
	.no_dead_strip	_wlc_phy_noise_calc_phy
.subsections_via_symbols
