	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emul_reset
_emul_reset:                            ## @emul_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str(%rip), %rsi
	movl	$3, %edx
	callq	_strncmp
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	je	LBB0_1
LBB0_3:
	popq	%rbp
	retq
LBB0_1:
	movq	_restart_from_top_after_write@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	$0, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	$0, (%rcx)
	movq	_ts@GOTPCREL(%rip), %rcx
	movl	$-1, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"$OK"

	.comm	_restart_from_top_after_write,8,3 ## @restart_from_top_after_write
	.comm	_ts,4,2                         ## @ts
	.no_dead_strip	_emul_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emul_reset
_emul_reset:                            ; @emul_reset
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #3
	bl	_strncmp
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh2:
	adrp	x8, _restart_from_top_after_write@GOTPAGE
Lloh3:
	ldr	x8, [x8, _restart_from_top_after_write@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_4
; %bb.3:
	mov	w0, #0
	str	xzr, [x8]
Lloh4:
	adrp	x8, _ts@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ts@GOTPAGEOFF]
	mov	w9, #-1
Lloh6:
	str	w9, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"$OK"

	.comm	_restart_from_top_after_write,8,3 ; @restart_from_top_after_write
	.comm	_ts,4,2                         ; @ts
	.no_dead_strip	_emul_reset
.subsections_via_symbols
