	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_phy_adjust_min_noisevar_nphy
_wlc_phy_adjust_min_noisevar_nphy:      ## @wlc_phy_adjust_min_noisevar_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movl	%esi, %r12d
	movq	%rdi, %r14
	movl	32(%rdi), %edi
	callq	_CHSPEC_IS40
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_NPHY_NOISEVAR_TBLLEN20@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_NPHY_NOISEVAR_TBLLEN40@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r13d
	cmpl	$0, (%r14)
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.4:
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, 8(%r14)
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	movq	_NPHY_TBL_ID_NOISEVAR@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movl	(%rax,%rbx), %eax
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%r13d, %ecx
	leal	(%rcx,%rax,2), %ecx
	incl	%ecx
	movl	(%r15), %esi
	movq	24(%r14), %r9
	addq	%rbx, %r9
	movq	%r14, %rdi
	movl	$1, %edx
	movl	$32, %r8d
	callq	_wlc_phy_table_write_nphy
	incq	%r12
	movslq	8(%r14), %rax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jl	LBB0_6
LBB0_7:
	movl	$0, 8(%r14)
	movl	$0, (%r14)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	-52(%rbp), %r12d                ## 4-byte Reload
LBB0_8:
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.9:
	testq	%r15, %r15
	je	LBB0_14
## %bb.10:
	movl	$0, 8(%r14)
	testl	%r12d, %r12d
	jle	LBB0_13
## %bb.11:
	movl	%r12d, %eax
	shlq	$2, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r15), %eax
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%r13d, %ecx
	leal	(%rcx,%rax,2), %r12d
	incl	%r12d
	movq	16(%r14), %rcx
	movl	%eax, (%rcx,%r15)
	movq	_NPHY_TBL_ID_NOISEVAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%r14), %r9
	addq	%r15, %r9
	movq	%r14, %rdi
	movl	$1, %edx
	movl	%r12d, %ecx
	movl	$32, %r8d
	callq	_wlc_phy_table_read_nphy
	movq	_NPHY_TBL_ID_NOISEVAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15), %r9
	movq	%r14, %rdi
	movl	$1, %edx
	movl	%r12d, %ecx
	movl	$32, %r8d
	callq	_wlc_phy_table_write_nphy
	incl	8(%r14)
	addq	$4, %r15
	cmpq	%r15, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_12
LBB0_13:
	movl	$1, (%r14)
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NPHY_NOISEVAR_TBLLEN40,4,2     ## @NPHY_NOISEVAR_TBLLEN40
	.comm	_NPHY_NOISEVAR_TBLLEN20,4,2     ## @NPHY_NOISEVAR_TBLLEN20
	.comm	_NPHY_TBL_ID_NOISEVAR,4,2       ## @NPHY_TBL_ID_NOISEVAR
	.no_dead_strip	_wlc_phy_adjust_min_noisevar_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_adjust_min_noisevar_nphy
_wlc_phy_adjust_min_noisevar_nphy:      ; @wlc_phy_adjust_min_noisevar_nphy
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	w0, [x0, #32]
	bl	_CHSPEC_IS40
Lloh0:
	adrp	x8, _NPHY_NOISEVAR_TBLLEN40@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NPHY_NOISEVAR_TBLLEN40@GOTPAGEOFF]
Lloh2:
	adrp	x9, _NPHY_NOISEVAR_TBLLEN20@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NPHY_NOISEVAR_TBLLEN20@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w23, [x8]
	ldr	w8, [x20]
	cbz	w8, LBB0_5
; %bb.1:
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x24, #0
	mov	x25, #0
Lloh4:
	adrp	x26, _NPHY_TBL_ID_NOISEVAR@GOTPAGE
Lloh5:
	ldr	x26, [x26, _NPHY_TBL_ID_NOISEVAR@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x20, #16]
	ldr	w8, [x8, x24]
	and	w10, w23, w8, asr #31
	add	w8, w10, w8, lsl #1
	add	w3, w8, #1
	ldr	w1, [x26]
	add	x5, x9, x24
	mov	x0, x20
	mov	w2, #1
	mov	w4, #32
	bl	_wlc_phy_table_write_nphy
	add	x25, x25, #1
	ldrsw	x8, [x20, #8]
	add	x24, x24, #4
	cmp	x25, x8
	b.lt	LBB0_3
LBB0_4:
	str	wzr, [x20, #8]
	str	wzr, [x20]
LBB0_5:
	cbz	x21, LBB0_11
; %bb.6:
	cbz	x19, LBB0_11
; %bb.7:
	str	wzr, [x20, #8]
	cmp	w22, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x24, #0
	mov	w8, w22
	lsl	x25, x8, #2
Lloh6:
	adrp	x26, _NPHY_TBL_ID_NOISEVAR@GOTPAGE
Lloh7:
	ldr	x26, [x26, _NPHY_TBL_ID_NOISEVAR@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21, x24]
	and	w9, w23, w8, asr #31
	add	w9, w9, w8, lsl #1
	add	w22, w9, #1
	ldp	x9, x10, [x20, #16]
	str	w8, [x9, x24]
	ldr	w1, [x26]
	add	x5, x10, x24
	mov	x0, x20
	mov	w2, #1
	mov	x3, x22
	mov	w4, #32
	bl	_wlc_phy_table_read_nphy
	ldr	w1, [x26]
	add	x5, x19, x24
	mov	x0, x20
	mov	w2, #1
	mov	x3, x22
	mov	w4, #32
	bl	_wlc_phy_table_write_nphy
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	add	x24, x24, #4
	cmp	x25, x24
	b.ne	LBB0_9
LBB0_10:
	mov	w8, #1
	str	w8, [x20]
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NPHY_NOISEVAR_TBLLEN40,4,2     ; @NPHY_NOISEVAR_TBLLEN40
	.comm	_NPHY_NOISEVAR_TBLLEN20,4,2     ; @NPHY_NOISEVAR_TBLLEN20
	.comm	_NPHY_TBL_ID_NOISEVAR,4,2       ; @NPHY_TBL_ID_NOISEVAR
	.no_dead_strip	_wlc_phy_adjust_min_noisevar_nphy
.subsections_via_symbols
