	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reset_misc_csrs
_reset_misc_csrs:                       ## @reset_misc_csrs
	.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	%rdi, %r14
	xorl	%ebx, %ebx
	movq	_MISC_CFG_RSA_R2@GOTPCREL(%rip), %r15
	movq	_MISC_CFG_RSA_SIGNATURE@GOTPCREL(%rip), %r12
	movq	_MISC_CFG_RSA_MODULUS@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_write_csr
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_write_csr
	movq	(%r13), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_write_csr
	addq	$8, %rbx
	cmpq	$256, %rbx                      ## imm = 0x100
	jne	LBB0_1
## %bb.2:
	movq	_MISC_CFG_RSA_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$1, %edx
	movq	%r14, %rdi
	callq	_write_csr
	movq	_MISC_CFG_RSA_MU@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_write_csr
	movq	_MISC_CFG_FW_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_write_csr
	movq	_MISC_ERR_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_write_csr
	movq	_MISC_ERR_CLEAR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movq	$-1, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_csr                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MISC_CFG_RSA_R2,8,3            ## @MISC_CFG_RSA_R2
	.comm	_MISC_CFG_RSA_SIGNATURE,8,3     ## @MISC_CFG_RSA_SIGNATURE
	.comm	_MISC_CFG_RSA_MODULUS,8,3       ## @MISC_CFG_RSA_MODULUS
	.comm	_MISC_CFG_RSA_CMD,8,3           ## @MISC_CFG_RSA_CMD
	.comm	_MISC_CFG_RSA_MU,8,3            ## @MISC_CFG_RSA_MU
	.comm	_MISC_CFG_FW_CTRL,8,3           ## @MISC_CFG_FW_CTRL
	.comm	_MISC_ERR_MASK,8,3              ## @MISC_ERR_MASK
	.comm	_MISC_ERR_CLEAR,8,3             ## @MISC_ERR_CLEAR
	.no_dead_strip	_reset_misc_csrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reset_misc_csrs
_reset_misc_csrs:                       ; @reset_misc_csrs
	.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
	mov	x19, x0
	mov	x20, #0
Lloh0:
	adrp	x21, _MISC_CFG_RSA_R2@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MISC_CFG_RSA_R2@GOTPAGEOFF]
Lloh2:
	adrp	x22, _MISC_CFG_RSA_SIGNATURE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MISC_CFG_RSA_SIGNATURE@GOTPAGEOFF]
Lloh4:
	adrp	x23, _MISC_CFG_RSA_MODULUS@GOTPAGE
Lloh5:
	ldr	x23, [x23, _MISC_CFG_RSA_MODULUS@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x1, x20, x8
	mov	x0, x19
	mov	x2, #0
	bl	_write_csr
	ldr	x8, [x22]
	add	x1, x20, x8
	mov	x0, x19
	mov	x2, #0
	bl	_write_csr
	ldr	x8, [x23]
	add	x1, x20, x8
	mov	x0, x19
	mov	x2, #0
	bl	_write_csr
	add	x20, x20, #8
	cmp	x20, #256
	b.ne	LBB0_1
; %bb.2:
Lloh6:
	adrp	x8, _MISC_CFG_RSA_CMD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MISC_CFG_RSA_CMD@GOTPAGEOFF]
Lloh8:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_write_csr
Lloh9:
	adrp	x8, _MISC_CFG_RSA_MU@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MISC_CFG_RSA_MU@GOTPAGEOFF]
Lloh11:
	ldr	x1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_write_csr
Lloh12:
	adrp	x8, _MISC_CFG_FW_CTRL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MISC_CFG_FW_CTRL@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_write_csr
Lloh15:
	adrp	x8, _MISC_ERR_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MISC_ERR_MASK@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_write_csr
Lloh18:
	adrp	x8, _MISC_ERR_CLEAR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MISC_ERR_CLEAR@GOTPAGEOFF]
Lloh20:
	ldr	x1, [x8]
	mov	x0, x19
	mov	x2, #-1
	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
	b	_write_csr
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MISC_CFG_RSA_R2,8,3            ; @MISC_CFG_RSA_R2
	.comm	_MISC_CFG_RSA_SIGNATURE,8,3     ; @MISC_CFG_RSA_SIGNATURE
	.comm	_MISC_CFG_RSA_MODULUS,8,3       ; @MISC_CFG_RSA_MODULUS
	.comm	_MISC_CFG_RSA_CMD,8,3           ; @MISC_CFG_RSA_CMD
	.comm	_MISC_CFG_RSA_MU,8,3            ; @MISC_CFG_RSA_MU
	.comm	_MISC_CFG_FW_CTRL,8,3           ; @MISC_CFG_FW_CTRL
	.comm	_MISC_ERR_MASK,8,3              ; @MISC_ERR_MASK
	.comm	_MISC_ERR_CLEAR,8,3             ; @MISC_ERR_CLEAR
	.no_dead_strip	_reset_misc_csrs
.subsections_via_symbols
