	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CASSETTE_LeaderSave            ## -- Begin function CASSETTE_LeaderSave
	.p2align	4, 0x90
_CASSETTE_LeaderSave:                   ## @CASSETTE_LeaderSave
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_CASSETTE_record@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_CASSETTE_ToggleRecord
LBB0_2:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CASSETTE_TapeMotor
	movq	_cassette_gapdelay@GOTPCREL(%rip), %rax
	movl	$19200, (%rax)                  ## imm = 0x4B00
	movq	_CPU_regA@GOTPCREL(%rip), %rax
	movl	$3, (%rax)
	movq	_CPU_regX@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_CPU_regY@GOTPCREL(%rip), %rax
	movl	$5, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CASSETTE_record,4,2            ## @CASSETTE_record
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_cassette_gapdelay,4,2          ## @cassette_gapdelay
	.comm	_CPU_regA,4,2                   ## @CPU_regA
	.comm	_CPU_regX,8,3                   ## @CPU_regX
	.comm	_CPU_regY,4,2                   ## @CPU_regY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CASSETTE_LeaderSave            ; -- Begin function CASSETTE_LeaderSave
	.p2align	2
_CASSETTE_LeaderSave:                   ; @CASSETTE_LeaderSave
	.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	x8, _CASSETTE_record@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CASSETTE_record@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbnz	w8, LBB0_2
; %bb.1:
	bl	_CASSETTE_ToggleRecord
LBB0_2:
Lloh3:
	adrp	x8, _TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_CASSETTE_TapeMotor
Lloh6:
	adrp	x8, _cassette_gapdelay@GOTPAGE
Lloh7:
	ldr	x8, [x8, _cassette_gapdelay@GOTPAGEOFF]
	mov	w9, #19200
Lloh8:
	str	w9, [x8]
Lloh9:
	adrp	x8, _CPU_regA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CPU_regA@GOTPAGEOFF]
	mov	w9, #3
Lloh11:
	adrp	x10, _CPU_regX@GOTPAGE
Lloh12:
	ldr	x10, [x10, _CPU_regX@GOTPAGEOFF]
Lloh13:
	str	w9, [x8]
Lloh14:
	str	xzr, [x10]
Lloh15:
	adrp	x8, _CPU_regY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CPU_regY@GOTPAGEOFF]
	mov	w9, #5
Lloh17:
	str	w9, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CASSETTE_record,4,2            ; @CASSETTE_record
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_cassette_gapdelay,4,2          ; @cassette_gapdelay
	.comm	_CPU_regA,4,2                   ; @CPU_regA
	.comm	_CPU_regX,8,3                   ; @CPU_regX
	.comm	_CPU_regY,4,2                   ; @CPU_regY
.subsections_via_symbols
