	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function il4965_chain_noise_reset
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_il4965_chain_noise_reset:              ## @il4965_chain_noise_reset
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	_IL_CHAIN_NOISE_ALIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	callq	_il_is_any_associated
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
	movups	%xmm0, 24(%rbx)
	movups	%xmm0, 8(%rbx)
	movq	$0, 56(%rbx)
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_IL_PHY_CALIBRATE_DIFF_GAIN_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	$0, -32(%rbp)
	movq	_C_PHY_CALIBRATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$32, %edx
	movq	%r14, %rcx
	callq	_il_send_cmd_pdu
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_IL_ERR
LBB0_4:
	movq	_IL_CHAIN_NOISE_ACCUMULATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	leaq	L_.str.1(%rip), %rdi
	callq	_D_CALIB
LBB0_5:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IL_CHAIN_NOISE_ALIVE,8,3       ## @IL_CHAIN_NOISE_ALIVE
	.comm	_IL_PHY_CALIBRATE_DIFF_GAIN_CMD,4,2 ## @IL_PHY_CALIBRATE_DIFF_GAIN_CMD
	.comm	_C_PHY_CALIBRATION,4,2          ## @C_PHY_CALIBRATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not send C_PHY_CALIBRATION\n"

	.comm	_IL_CHAIN_NOISE_ACCUMULATE,8,3  ## @IL_CHAIN_NOISE_ACCUMULATE
L_.str.1:                               ## @.str.1
	.asciz	"Run chain_noise_calibrate\n"

	.no_dead_strip	_il4965_chain_noise_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il4965_chain_noise_reset
_il4965_chain_noise_reset:              ; @il4965_chain_noise_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _IL_CHAIN_NOISE_ALIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IL_CHAIN_NOISE_ALIVE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_il_is_any_associated
	cbz	x0, LBB0_5
; %bb.2:
	str	xzr, [x19, #56]
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #40]
	stur	q0, [x19, #24]
	stur	q0, [x19, #8]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh3:
	adrp	x8, _IL_PHY_CALIBRATE_DIFF_GAIN_CMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IL_PHY_CALIBRATE_DIFF_GAIN_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp]
Lloh6:
	adrp	x8, _C_PHY_CALIBRATION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _C_PHY_CALIBRATION@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x3, sp
	mov	x0, x19
	mov	w2, #32
	bl	_il_send_cmd_pdu
	cbz	x0, LBB0_4
; %bb.3:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IL_ERR
LBB0_4:
Lloh11:
	adrp	x8, _IL_CHAIN_NOISE_ACCUMULATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IL_CHAIN_NOISE_ACCUMULATE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_D_CALIB
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IL_CHAIN_NOISE_ALIVE,8,3       ; @IL_CHAIN_NOISE_ALIVE
	.comm	_IL_PHY_CALIBRATE_DIFF_GAIN_CMD,4,2 ; @IL_PHY_CALIBRATE_DIFF_GAIN_CMD
	.comm	_C_PHY_CALIBRATION,4,2          ; @C_PHY_CALIBRATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not send C_PHY_CALIBRATION\n"

	.comm	_IL_CHAIN_NOISE_ACCUMULATE,8,3  ; @IL_CHAIN_NOISE_ACCUMULATE
l_.str.1:                               ; @.str.1
	.asciz	"Run chain_noise_calibrate\n"

	.no_dead_strip	_il4965_chain_noise_reset
.subsections_via_symbols
