	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function key_state_soft_reset
_key_state_soft_reset:                  ## @key_state_soft_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	%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, %r15
	movq	(%rdi), %rax
	movq	8(%rdi), %rbx
	movq	_KS_PRIMARY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	shlq	$4, %r12
	leaq	(%rbx,%r12), %r14
	movq	_KS_LAME_DUCK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	shlq	$4, %r13
	leaq	(%rbx,%r13), %rdi
	movq	_now@GOTPCREL(%rip), %rcx
	movq	(%rax), %rax
	addq	(%rcx), %rax
	movq	%rax, 8(%rbx,%r12)
	xorl	%esi, %esi
	callq	_key_state_free
	movups	(%rbx,%r12), %xmm0
	movups	%xmm0, (%rbx,%r13)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_key_state_init
	movl	4(%rbx,%r13), %eax
	movl	%eax, 4(%rbx,%r12)
	movl	(%rbx,%r13), %eax
	movl	%eax, (%rbx,%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KS_PRIMARY,8,3                 ## @KS_PRIMARY
	.comm	_KS_LAME_DUCK,8,3               ## @KS_LAME_DUCK
	.comm	_now,8,3                        ## @now
	.no_dead_strip	_key_state_soft_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function key_state_soft_reset
_key_state_soft_reset:                  ; @key_state_soft_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, x0
Lloh0:
	adrp	x8, _KS_PRIMARY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KS_PRIMARY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	x10, x9, [x0]
	add	x20, x9, x8, lsl #4
Lloh3:
	adrp	x8, _KS_LAME_DUCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KS_LAME_DUCK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x21, x9, x8, lsl #4
Lloh6:
	adrp	x8, _now@GOTPAGE
Lloh7:
	ldr	x8, [x8, _now@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x9, [x10]
	add	x8, x9, x8
	str	x8, [x20, #8]
	mov	x0, x21
	mov	w1, #0
	bl	_key_state_free
	ldr	q0, [x20]
	str	q0, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_key_state_init
	ldr	d0, [x21]
	str	d0, [x20]
	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
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_KS_PRIMARY,8,3                 ; @KS_PRIMARY
	.comm	_KS_LAME_DUCK,8,3               ; @KS_LAME_DUCK
	.comm	_now,8,3                        ; @now
	.no_dead_strip	_key_state_soft_reset
.subsections_via_symbols
