	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CASSETTE_Seek                  ## -- Begin function CASSETTE_Seek
	.p2align	4, 0x90
_CASSETTE_Seek:                         ## @CASSETTE_Seek
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %esi
	movq	_cassette_file@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	subl	$1, %esi
	cmovbl	%eax, %esi
	callq	_IMG_TAPE_Seek
	movq	_event_time_left@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_pending_serin@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_passing_gap@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_eof_of_tape@GOTPCREL(%rip), %rcx
	movq	$0, (%rcx)
	movq	_CASSETTE_record@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	popq	%rbp
	jmp	_UpdateFlags                    ## TAILCALL
LBB0_1:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cassette_file,8,3              ## @cassette_file
	.comm	_event_time_left,8,3            ## @event_time_left
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_pending_serin,8,3              ## @pending_serin
	.comm	_passing_gap,8,3                ## @passing_gap
	.comm	_eof_of_tape,8,3                ## @eof_of_tape
	.comm	_CASSETTE_record,8,3            ## @CASSETTE_record
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CASSETTE_Seek                  ; -- Begin function CASSETTE_Seek
	.p2align	2
_CASSETTE_Seek:                         ; @CASSETTE_Seek
	.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
	mov	x8, x0
Lloh0:
	adrp	x9, _cassette_file@GOTPAGE
Lloh1:
	ldr	x9, [x9, _cassette_file@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x9]
	cbz	x0, LBB0_2
; %bb.1:
	sub	w9, w8, #1
	cmp	w8, #0
	csel	w1, wzr, w9, eq
	bl	_IMG_TAPE_Seek
Lloh3:
	adrp	x8, _event_time_left@GOTPAGE
Lloh4:
	ldr	x8, [x8, _event_time_left@GOTPAGEOFF]
Lloh5:
	str	xzr, [x8]
Lloh6:
	adrp	x8, _FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _pending_serin@GOTPAGE
Lloh10:
	ldr	x9, [x9, _pending_serin@GOTPAGEOFF]
Lloh11:
	str	x8, [x9]
Lloh12:
	adrp	x9, _passing_gap@GOTPAGE
Lloh13:
	ldr	x9, [x9, _passing_gap@GOTPAGEOFF]
Lloh14:
	str	x8, [x9]
Lloh15:
	adrp	x9, _eof_of_tape@GOTPAGE
Lloh16:
	ldr	x9, [x9, _eof_of_tape@GOTPAGEOFF]
Lloh17:
	str	xzr, [x9]
Lloh18:
	adrp	x9, _CASSETTE_record@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CASSETTE_record@GOTPAGEOFF]
Lloh20:
	str	x8, [x9]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_UpdateFlags
LBB0_2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_cassette_file,8,3              ; @cassette_file
	.comm	_event_time_left,8,3            ; @event_time_left
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_pending_serin,8,3              ; @pending_serin
	.comm	_passing_gap,8,3                ; @passing_gap
	.comm	_eof_of_tape,8,3                ; @eof_of_tape
	.comm	_CASSETTE_record,8,3            ; @CASSETTE_record
.subsections_via_symbols
