	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kv_save_regs_for_reset
_kv_save_regs_for_reset:                ## @kv_save_regs_for_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_GMCON_RENG_EXECUTE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_RREG32
	movl	%eax, (%rbx)
	movq	_GMCON_MISC@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_RREG32
	movl	%eax, 4(%rbx)
	movq	_GMCON_MISC3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movq	%rax, 8(%rbx)
	movl	(%r15), %edi
	movq	_RENG_EXECUTE_ON_PWR_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	(%rbx), %esi
	callq	_WREG32
	movq	_RENG_EXECUTE_ON_REG_UPDATE@GOTPCREL(%rip), %rax
	movq	_STCTRL_STUTTER_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	(%r14), %edi
	notl	%esi
	andl	4(%rbx), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GMCON_RENG_EXECUTE,4,2         ## @GMCON_RENG_EXECUTE
	.comm	_GMCON_MISC,4,2                 ## @GMCON_MISC
	.comm	_GMCON_MISC3,4,2                ## @GMCON_MISC3
	.comm	_RENG_EXECUTE_ON_PWR_UP,4,2     ## @RENG_EXECUTE_ON_PWR_UP
	.comm	_RENG_EXECUTE_ON_REG_UPDATE,4,2 ## @RENG_EXECUTE_ON_REG_UPDATE
	.comm	_STCTRL_STUTTER_EN,4,2          ## @STCTRL_STUTTER_EN
	.no_dead_strip	_kv_save_regs_for_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kv_save_regs_for_reset
_kv_save_regs_for_reset:                ; @kv_save_regs_for_reset
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
Lloh0:
	adrp	x20, _GMCON_RENG_EXECUTE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GMCON_RENG_EXECUTE@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_RREG32
	str	w0, [x19]
Lloh2:
	adrp	x21, _GMCON_MISC@GOTPAGE
Lloh3:
	ldr	x21, [x21, _GMCON_MISC@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_RREG32
	str	w0, [x19, #4]
Lloh4:
	adrp	x8, _GMCON_MISC3@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GMCON_MISC3@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_RREG32
	str	x0, [x19, #8]
	ldr	w0, [x20]
	ldr	w8, [x19]
Lloh7:
	adrp	x9, _RENG_EXECUTE_ON_PWR_UP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _RENG_EXECUTE_ON_PWR_UP@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	bic	w1, w8, w9
	bl	_WREG32
	ldr	w0, [x21]
	ldr	w8, [x19, #4]
Lloh10:
	adrp	x9, _RENG_EXECUTE_ON_REG_UPDATE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _RENG_EXECUTE_ON_REG_UPDATE@GOTPAGEOFF]
Lloh12:
	adrp	x10, _STCTRL_STUTTER_EN@GOTPAGE
Lloh13:
	ldr	x10, [x10, _STCTRL_STUTTER_EN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bic	w1, w8, w9
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_WREG32
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GMCON_RENG_EXECUTE,4,2         ; @GMCON_RENG_EXECUTE
	.comm	_GMCON_MISC,4,2                 ; @GMCON_MISC
	.comm	_GMCON_MISC3,4,2                ; @GMCON_MISC3
	.comm	_RENG_EXECUTE_ON_PWR_UP,4,2     ; @RENG_EXECUTE_ON_PWR_UP
	.comm	_RENG_EXECUTE_ON_REG_UPDATE,4,2 ; @RENG_EXECUTE_ON_REG_UPDATE
	.comm	_STCTRL_STUTTER_EN,4,2          ; @STCTRL_STUTTER_EN
	.no_dead_strip	_kv_save_regs_for_reset
.subsections_via_symbols
