	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SetCfgNoiseCalibration
_SetCfgNoiseCalibration:                ## @SetCfgNoiseCalibration
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_SC_RA_RAM_BE_OPT_ENA__A@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_Read16
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	movq	_SC_RA_RAM_BE_OPT_ENA_CP_OPT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %edx
	shll	%cl, %edx
	cmpq	$0, 16(%r14)
	je	LBB0_3
## %bb.2:
	orl	-28(%rbp), %edx
	movl	%edx, -28(%rbp)
	jmp	LBB0_5
LBB0_3:
	notl	%edx
	andl	%edx, -28(%rbp)
	movq	_CP_REG_AC_NEXP_OFFS__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_Write16
	testl	%eax, %eax
	js	LBB0_9
## %bb.4:
	movl	-28(%rbp), %edx
LBB0_5:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_Write16
	testl	%eax, %eax
	js	LBB0_9
## %bb.6:
	cmpl	$0, (%rbx)
	jne	LBB0_9
## %bb.7:
	movq	_B_SC_RA_RAM_CO_TD_CAL_2K__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_Write16
	testl	%eax, %eax
	js	LBB0_9
## %bb.8:
	movq	_B_SC_RA_RAM_CO_TD_CAL_8K__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_Write16
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SC_RA_RAM_BE_OPT_ENA__A,4,2    ## @SC_RA_RAM_BE_OPT_ENA__A
	.comm	_SC_RA_RAM_BE_OPT_ENA_CP_OPT,4,2 ## @SC_RA_RAM_BE_OPT_ENA_CP_OPT
	.comm	_CP_REG_AC_NEXP_OFFS__A,4,2     ## @CP_REG_AC_NEXP_OFFS__A
	.comm	_B_SC_RA_RAM_CO_TD_CAL_2K__A,4,2 ## @B_SC_RA_RAM_CO_TD_CAL_2K__A
	.comm	_B_SC_RA_RAM_CO_TD_CAL_8K__A,4,2 ## @B_SC_RA_RAM_CO_TD_CAL_8K__A
	.no_dead_strip	_SetCfgNoiseCalibration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SetCfgNoiseCalibration
_SetCfgNoiseCalibration:                ; @SetCfgNoiseCalibration
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _SC_RA_RAM_BE_OPT_ENA__A@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SC_RA_RAM_BE_OPT_ENA__A@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	w3, #0
	bl	_Read16
	tbnz	w0, #31, LBB0_9
; %bb.1:
	ldr	x9, [x20, #16]
Lloh2:
	adrp	x8, _SC_RA_RAM_BE_OPT_ENA_CP_OPT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SC_RA_RAM_BE_OPT_ENA_CP_OPT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	w10, #1
	lsl	w8, w10, w8
	cbz	x9, LBB0_3
; %bb.2:
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	b	LBB0_5
LBB0_3:
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
	str	w8, [sp, #12]
Lloh5:
	adrp	x8, _CP_REG_AC_NEXP_OFFS__A@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CP_REG_AC_NEXP_OFFS__A@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w3, #0
	bl	_Write16
	tbnz	w0, #31, LBB0_9
; %bb.4:
	ldr	w2, [sp, #12]
LBB0_5:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w3, #0
	bl	_Write16
	tbnz	w0, #31, LBB0_9
; %bb.6:
	ldr	w8, [x19]
	cbnz	w8, LBB0_9
; %bb.7:
Lloh8:
	adrp	x8, _B_SC_RA_RAM_CO_TD_CAL_2K__A@GOTPAGE
Lloh9:
	ldr	x8, [x8, _B_SC_RA_RAM_CO_TD_CAL_2K__A@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
	mov	x0, x19
	mov	w3, #0
	bl	_Write16
	tbnz	w0, #31, LBB0_9
; %bb.8:
Lloh11:
	adrp	x8, _B_SC_RA_RAM_CO_TD_CAL_8K__A@GOTPAGE
Lloh12:
	ldr	x8, [x8, _B_SC_RA_RAM_CO_TD_CAL_8K__A@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
	mov	x0, x19
	mov	w3, #0
	bl	_Write16
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SC_RA_RAM_BE_OPT_ENA__A,4,2    ; @SC_RA_RAM_BE_OPT_ENA__A
	.comm	_SC_RA_RAM_BE_OPT_ENA_CP_OPT,4,2 ; @SC_RA_RAM_BE_OPT_ENA_CP_OPT
	.comm	_CP_REG_AC_NEXP_OFFS__A,4,2     ; @CP_REG_AC_NEXP_OFFS__A
	.comm	_B_SC_RA_RAM_CO_TD_CAL_2K__A,4,2 ; @B_SC_RA_RAM_CO_TD_CAL_2K__A
	.comm	_B_SC_RA_RAM_CO_TD_CAL_8K__A,4,2 ; @B_SC_RA_RAM_CO_TD_CAL_8K__A
	.no_dead_strip	_SetCfgNoiseCalibration
.subsections_via_symbols
