	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SIO_Handler                    ## -- Begin function SIO_Handler
	.p2align	4, 0x90
_SIO_Handler:                           ## @SIO_Handler
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$778, %edi                      ## imm = 0x30A
	callq	_MEMORY_dGetWordAligned
	movq	%rax, %r12
	movl	$768, %edi                      ## imm = 0x300
	callq	_MEMORY_dGetByte
	movl	%eax, %ebx
	movl	$769, %edi                      ## imm = 0x301
	callq	_MEMORY_dGetByte
                                        ## kill: def $eax killed $eax def $rax
	addl	%ebx, %eax
	addl	$206, %eax
	movslq	%eax, %r13
	movl	$772, %edi                      ## imm = 0x304
	callq	_MEMORY_dGetWordAligned
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$776, %edi                      ## imm = 0x308
	callq	_MEMORY_dGetWordAligned
	movq	%rax, %r15
	movl	$0, -44(%rbp)
	movl	$770, %edi                      ## imm = 0x302
	callq	_MEMORY_dGetByte
	movl	%eax, %ebx
	movl	$768, %edi                      ## imm = 0x300
	callq	_MEMORY_dGetByte
	movl	%eax, %r14d
	movl	$769, %edi                      ## imm = 0x301
	callq	_MEMORY_dGetByte
	addl	%r14d, %eax
	cmpl	$256, %eax                      ## imm = 0x100
	sbbq	$-1, %r13
	movl	$768, %edi                      ## imm = 0x300
	callq	_MEMORY_dGetByte
	cmpl	$96, %eax
	je	LBB0_4
## %bb.1:
	movq	_SIO_MAX_DRIVES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jae	LBB0_4
## %bb.2:
	movq	_SIO_drive_status@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rax
	movq	_SIO_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.3:
	movq	_BINLOAD_start_binloading@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_8
LBB0_4:
	movl	$768, %edi                      ## imm = 0x300
	callq	_MEMORY_dGetByte
	movl	$138, %esi
	cmpl	$96, %eax
	jne	LBB0_55
## %bb.5:
	movl	$779, %edi                      ## imm = 0x30B
	callq	_MEMORY_dGetByte
	cmpl	$87, %ebx
	je	LBB0_14
## %bb.6:
	cmpl	$82, %ebx
	jne	LBB0_34
## %bb.7:
	movq	_SIO_LAST_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_SIO_last_op@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	_SIO_last_drive@GOTPCREL(%rip), %rcx
	movl	$97, (%rcx)
	movq	_SIO_last_op_time@GOTPCREL(%rip), %rcx
	movl	$16, (%rcx)
	testl	%eax, %eax
	movl	$2000, %eax                     ## imm = 0x7D0
	movl	$160, %edi
	cmovel	%eax, %edi
	callq	_CASSETTE_AddGap
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_CASSETTE_ReadToMemory
	testl	%eax, %eax
	jne	LBB0_16
	jmp	LBB0_54
LBB0_8:
	cmpl	$160, %ebx
	jg	LBB0_17
## %bb.9:
	addl	$-33, %ebx
	cmpl	$54, %ebx
	ja	LBB0_34
## %bb.10:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_11:
	cmpl	$12, %r15d
	jne	LBB0_54
## %bb.12:
	movq	_DataBuffer@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_SIO_ReadStatusBlock
	cmpq	$67, %rax
	jne	LBB0_23
## %bb.13:
	movl	(%rbx), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$12, %edx
	jmp	LBB0_31
LBB0_14:
	movq	_SIO_LAST_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_SIO_last_op@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	_SIO_last_drive@GOTPCREL(%rip), %rcx
	movl	$97, (%rcx)
	movq	_SIO_last_op_time@GOTPCREL(%rip), %rcx
	movl	$16, (%rcx)
	testl	%eax, %eax
	movl	$3000, %eax                     ## imm = 0xBB8
	movl	$260, %edi                      ## imm = 0x104
	cmovel	%eax, %edi
	callq	_CASSETTE_AddGap
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_CASSETTE_WriteFromMemory
	testl	%eax, %eax
	je	LBB0_54
LBB0_16:
	movl	$1, %esi
	jmp	LBB0_55
LBB0_17:
	cmpl	$207, %ebx
	jle	LBB0_26
## %bb.18:
	cmpl	$208, %ebx
	je	LBB0_21
## %bb.19:
	cmpl	$210, %ebx
	je	LBB0_35
## %bb.20:
	cmpl	$215, %ebx
	jne	LBB0_34
LBB0_21:
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movl	%r12d, %esi
	xorl	%ecx, %ecx
	callq	_SIO_SizeOfSector
	cmpl	%r15d, -44(%rbp)
	jne	LBB0_54
## %bb.22:
	movq	_DataBuffer@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_MEMORY_CopyFromMem
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_SIO_WriteSector
LBB0_23:
	cmpq	$66, %rax
	jg	LBB0_32
## %bb.24:
	testq	%rax, %rax
	je	LBB0_49
## %bb.25:
	cmpq	$65, %rax
	je	LBB0_16
	jmp	LBB0_54
LBB0_26:
	cmpl	$161, %ebx
	je	LBB0_40
## %bb.27:
	cmpl	$162, %ebx
	jne	LBB0_34
LBB0_28:
	movl	$128, -44(%rbp)
	movq	_DataBuffer@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	movl	$128, %edx
	movl	$1040, %ecx                     ## imm = 0x410
	callq	_SIO_FormatDisk
	cmpl	$128, %r15d
	jne	LBB0_54
## %bb.29:
	cmpq	$67, %rax
	jne	LBB0_23
## %bb.30:
	movl	(%rbx), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$128, %edx
	jmp	LBB0_31
LBB0_32:
	cmpq	$78, %rax
	je	LBB0_34
## %bb.33:
	cmpq	$67, %rax
	je	LBB0_16
	jmp	LBB0_54
LBB0_34:
	movl	$144, %esi
	jmp	LBB0_55
LBB0_35:
	xorl	%eax, %eax
	cmpl	$1, %r12d
	jne	LBB0_51
## %bb.36:
	movq	_delay_counter@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_50
## %bb.37:
	movq	_last_ypos@GOTPCREL(%rip), %rdx
	movq	_ANTIC_ypos@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmpl	%esi, (%rdx)
	je	LBB0_39
## %bb.38:
	movl	%esi, (%rdx)
	decl	%ecx
	movl	%ecx, (%rax)
LBB0_39:
	movq	_CPU_regPC@GOTPCREL(%rip), %rax
	movl	$58457, (%rax)                  ## imm = 0xE459
	jmp	LBB0_56
LBB0_40:
	movq	_SIO_format_sectorsize@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r13,4), %edx
	movl	%edx, -44(%rbp)
	movq	_DataBuffer@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_SIO_format_sectorcount@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r13,4), %ecx
	movq	%r13, %rdi
	cmpl	%r15d, %edx
	jne	LBB0_48
## %bb.41:
	movl	%r15d, %edx
	callq	_SIO_FormatDisk
	cmpq	$67, %rax
	jne	LBB0_23
## %bb.42:
	movl	(%rbx), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	jmp	LBB0_31
LBB0_43:
	cmpl	$4, %r15d
	jne	LBB0_54
## %bb.44:
	movq	_DataBuffer@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_SIO_DriveStatus
	cmpq	$67, %rax
	jne	LBB0_23
## %bb.45:
	movl	(%rbx), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$4, %edx
	jmp	LBB0_31
LBB0_46:
	cmpl	$12, %r15d
	jne	LBB0_54
## %bb.47:
	movq	_DataBuffer@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$12, %edx
	callq	_MEMORY_CopyFromMem
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_SIO_WriteStatusBlock
	jmp	LBB0_23
LBB0_48:
	callq	_SIO_FormatDisk
	jmp	LBB0_54
LBB0_49:
	movl	$138, %esi
	jmp	LBB0_55
LBB0_50:
	movq	_SECTOR_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_51:
	movq	_delay_counter@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movl	%r12d, %esi
	xorl	%ecx, %ecx
	callq	_SIO_SizeOfSector
	cmpl	%r15d, -44(%rbp)
	jne	LBB0_54
## %bb.52:
	movq	_DataBuffer@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_SIO_ReadSector
	cmpq	$67, %rax
	jne	LBB0_23
## %bb.53:
	movl	(%rbx), %edi
	movl	-44(%rbp), %edx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_31:
	callq	_MEMORY_CopyToMem
	movl	$1, %esi
	jmp	LBB0_55
LBB0_54:
	movl	$146, %esi
LBB0_55:
	movq	_CPU_regY@GOTPCREL(%rip), %rax
	movl	%esi, (%rax)
	movq	_CPU_regA@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movl	$771, %edi                      ## imm = 0x303
	callq	_MEMORY_dPutByte
	movl	$66, %edi
	xorl	%esi, %esi
	callq	_MEMORY_dPutByte
	movq	_POKEY_OFFSET_AUDC1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_POKEY_PutByte
	movq	_POKEY_OFFSET_AUDC2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_POKEY_PutByte
	movq	_POKEY_OFFSET_AUDC3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_POKEY_PutByte
	movq	_POKEY_OFFSET_AUDC4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_POKEY_PutByte
LBB0_56:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_40, LBB0_40-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_46, LBB0_46-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_35, LBB0_35-LJTI0_0
.set L0_0_set_43, LBB0_43-LJTI0_0
LJTI0_0:
	.long	L0_0_set_40
	.long	L0_0_set_28
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_11
	.long	L0_0_set_46
	.long	L0_0_set_21
	.long	L0_0_set_34
	.long	L0_0_set_35
	.long	L0_0_set_43
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_21
	.end_data_region
                                        ## -- End function
	.comm	_SIO_MAX_DRIVES,8,3             ## @SIO_MAX_DRIVES
	.comm	_SIO_drive_status,8,3           ## @SIO_drive_status
	.comm	_SIO_OFF,8,3                    ## @SIO_OFF
	.comm	_BINLOAD_start_binloading,8,3   ## @BINLOAD_start_binloading
	.comm	_DataBuffer,4,2                 ## @DataBuffer
	.comm	_delay_counter,4,2              ## @delay_counter
	.comm	_last_ypos,4,2                  ## @last_ypos
	.comm	_ANTIC_ypos,4,2                 ## @ANTIC_ypos
	.comm	_CPU_regPC,4,2                  ## @CPU_regPC
	.comm	_SECTOR_DELAY,4,2               ## @SECTOR_DELAY
	.comm	_SIO_format_sectorsize,8,3      ## @SIO_format_sectorsize
	.comm	_SIO_format_sectorcount,8,3     ## @SIO_format_sectorcount
	.comm	_SIO_LAST_READ,4,2              ## @SIO_LAST_READ
	.comm	_SIO_last_op,4,2                ## @SIO_last_op
	.comm	_SIO_last_drive,4,2             ## @SIO_last_drive
	.comm	_SIO_last_op_time,4,2           ## @SIO_last_op_time
	.comm	_SIO_LAST_WRITE,4,2             ## @SIO_LAST_WRITE
	.comm	_CPU_regY,4,2                   ## @CPU_regY
	.comm	_CPU_SetN,4,2                   ## @CPU_SetN
	.comm	_CPU_ClrN,4,2                   ## @CPU_ClrN
	.comm	_CPU_regA,8,3                   ## @CPU_regA
	.comm	_CPU_SetC,4,2                   ## @CPU_SetC
	.comm	_POKEY_OFFSET_AUDC1,4,2         ## @POKEY_OFFSET_AUDC1
	.comm	_POKEY_OFFSET_AUDC2,4,2         ## @POKEY_OFFSET_AUDC2
	.comm	_POKEY_OFFSET_AUDC3,4,2         ## @POKEY_OFFSET_AUDC3
	.comm	_POKEY_OFFSET_AUDC4,4,2         ## @POKEY_OFFSET_AUDC4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SIO_Handler                    ; -- Begin function SIO_Handler
	.p2align	2
_SIO_Handler:                           ; @SIO_Handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	w0, #778
	bl	_MEMORY_dGetWordAligned
	mov	x22, x0
	mov	w0, #768
	bl	_MEMORY_dGetByte
	mov	x19, x0
	mov	w0, #769
	bl	_MEMORY_dGetByte
	add	w8, w19, w0
	add	w8, w8, #206
	sxtw	x24, w8
	mov	w0, #772
	bl	_MEMORY_dGetWordAligned
	mov	x19, x0
	mov	w0, #776
	bl	_MEMORY_dGetWordAligned
	mov	x20, x0
	str	wzr, [sp, #12]
	mov	w0, #770
	bl	_MEMORY_dGetByte
	mov	x23, x0
	mov	w0, #768
	bl	_MEMORY_dGetByte
	mov	x21, x0
	mov	w0, #769
	bl	_MEMORY_dGetByte
	add	w8, w0, w21
	cmp	w8, #255
	cinc	x21, x24, hi
	mov	w0, #768
	bl	_MEMORY_dGetByte
	cmp	w0, #96
	b.eq	LBB0_9
; %bb.1:
Lloh0:
	adrp	x8, _SIO_MAX_DRIVES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIO_MAX_DRIVES@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x21, x8
	b.hs	LBB0_9
; %bb.2:
Lloh3:
	adrp	x8, _SIO_drive_status@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIO_drive_status@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x8, x21, lsl #3]
Lloh6:
	adrp	x9, _SIO_OFF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SIO_OFF@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _BINLOAD_start_binloading@GOTPAGE
Lloh10:
	ldr	x10, [x10, _BINLOAD_start_binloading@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x10, #0, #0, eq
	b.eq	LBB0_9
; %bb.3:
	cmp	w23, #160
	b.gt	LBB0_15
; %bb.4:
	sub	w8, w23, #33
	cmp	w8, #54
	b.hi	LBB0_32
; %bb.5:
Lloh12:
	adrp	x9, lJTI0_0@PAGE
Lloh13:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	cmp	w20, #12
	b.ne	LBB0_53
; %bb.7:
Lloh14:
	adrp	x20, _DataBuffer@GOTPAGE
Lloh15:
	ldr	x20, [x20, _DataBuffer@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x21
	bl	_SIO_ReadStatusBlock
	cmp	x0, #67
	b.ne	LBB0_21
; %bb.8:
	ldr	w0, [x20]
	mov	x1, x19
	mov	w2, #12
	b	LBB0_52
LBB0_9:
	mov	w0, #768
	bl	_MEMORY_dGetByte
	cmp	w0, #96
	b.ne	LBB0_24
; %bb.10:
	mov	w0, #779
	bl	_MEMORY_dGetByte
	cmp	w23, #87
	b.eq	LBB0_13
; %bb.11:
	cmp	w23, #82
	b.ne	LBB0_32
; %bb.12:
Lloh16:
	adrp	x8, _SIO_LAST_READ@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SIO_LAST_READ@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _SIO_last_op@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SIO_last_op@GOTPAGEOFF]
Lloh21:
	str	w8, [x9]
Lloh22:
	adrp	x8, _SIO_last_drive@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SIO_last_drive@GOTPAGEOFF]
	mov	w9, #97
Lloh24:
	str	w9, [x8]
Lloh25:
	adrp	x8, _SIO_last_op_time@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SIO_last_op_time@GOTPAGEOFF]
	mov	w9, #16
Lloh27:
	str	w9, [x8]
	mov	w8, #160
	mov	w9, #2000
	cmp	w0, #0
	csel	w0, w9, w8, eq
	bl	_CASSETTE_AddGap
	mov	x0, x19
	mov	x1, x20
	bl	_CASSETTE_ReadToMemory
	cbnz	w0, LBB0_14
	b	LBB0_53
LBB0_13:
Lloh28:
	adrp	x8, _SIO_LAST_WRITE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SIO_LAST_WRITE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _SIO_last_op@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SIO_last_op@GOTPAGEOFF]
Lloh33:
	str	w8, [x9]
Lloh34:
	adrp	x8, _SIO_last_drive@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SIO_last_drive@GOTPAGEOFF]
	mov	w9, #97
Lloh36:
	str	w9, [x8]
Lloh37:
	adrp	x8, _SIO_last_op_time@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SIO_last_op_time@GOTPAGEOFF]
	mov	w9, #16
Lloh39:
	str	w9, [x8]
	mov	w8, #260
	mov	w9, #3000
	cmp	w0, #0
	csel	w0, w9, w8, eq
	bl	_CASSETTE_AddGap
	mov	x0, x19
	mov	x1, x20
	bl	_CASSETTE_WriteFromMemory
	cbz	w0, LBB0_53
LBB0_14:
	mov	w1, #1
	b	LBB0_54
LBB0_15:
	cmp	w23, #207
	b.le	LBB0_25
; %bb.16:
	cmp	w23, #208
	b.eq	LBB0_19
; %bb.17:
	cmp	w23, #210
	b.eq	LBB0_33
; %bb.18:
	cmp	w23, #215
	b.ne	LBB0_32
LBB0_19:
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x22
	mov	x3, #0
	bl	_SIO_SizeOfSector
	ldr	w8, [sp, #12]
	cmp	w8, w20
	b.ne	LBB0_53
; %bb.20:
Lloh40:
	adrp	x23, _DataBuffer@GOTPAGE
Lloh41:
	ldr	x23, [x23, _DataBuffer@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x20
	bl	_MEMORY_CopyFromMem
	ldr	w2, [x23]
	mov	x0, x21
	mov	x1, x22
	bl	_SIO_WriteSector
LBB0_21:
	cmp	x0, #66
	b.gt	LBB0_30
; %bb.22:
	cbz	x0, LBB0_24
; %bb.23:
	cmp	x0, #65
	b.eq	LBB0_14
	b	LBB0_53
LBB0_24:
	mov	w1, #138
	b	LBB0_54
LBB0_25:
	cmp	w23, #161
	b.eq	LBB0_38
; %bb.26:
	cmp	w23, #162
	b.ne	LBB0_32
LBB0_27:
	mov	w8, #128
	str	w8, [sp, #12]
Lloh42:
	adrp	x22, _DataBuffer@GOTPAGE
Lloh43:
	ldr	x22, [x22, _DataBuffer@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	mov	w2, #128
	mov	w3, #1040
	bl	_SIO_FormatDisk
	cmp	w20, #128
	b.ne	LBB0_53
; %bb.28:
	cmp	x0, #67
	b.ne	LBB0_21
; %bb.29:
	ldr	w0, [x22]
	mov	x1, x19
	mov	w2, #128
	b	LBB0_52
LBB0_30:
	cmp	x0, #78
	b.eq	LBB0_32
; %bb.31:
	cmp	x0, #67
	b.eq	LBB0_14
	b	LBB0_53
LBB0_32:
	mov	w1, #144
	b	LBB0_54
LBB0_33:
Lloh44:
	adrp	x8, _delay_counter@GOTPAGE
Lloh45:
	ldr	x8, [x8, _delay_counter@GOTPAGEOFF]
	cmp	w22, #1
	b.ne	LBB0_46
; %bb.34:
	ldr	w9, [x8]
	subs	w9, w9, #1
	b.lt	LBB0_48
; %bb.35:
Lloh46:
	adrp	x10, _last_ypos@GOTPAGE
Lloh47:
	ldr	x10, [x10, _last_ypos@GOTPAGEOFF]
	ldr	w12, [x10]
Lloh48:
	adrp	x11, _ANTIC_ypos@GOTPAGE
Lloh49:
	ldr	x11, [x11, _ANTIC_ypos@GOTPAGEOFF]
Lloh50:
	ldr	w11, [x11]
	cmp	w12, w11
	b.eq	LBB0_37
; %bb.36:
	str	w11, [x10]
	str	w9, [x8]
LBB0_37:
Lloh51:
	adrp	x8, _CPU_regPC@GOTPAGE
Lloh52:
	ldr	x8, [x8, _CPU_regPC@GOTPAGEOFF]
	mov	w9, #58457
Lloh53:
	str	w9, [x8]
	b	LBB0_55
LBB0_38:
Lloh54:
	adrp	x8, _SIO_format_sectorsize@GOTPAGE
Lloh55:
	ldr	x8, [x8, _SIO_format_sectorsize@GOTPAGEOFF]
Lloh56:
	ldr	x8, [x8]
	lsl	x9, x21, #2
	ldr	w2, [x8, x9]
	str	w2, [sp, #12]
Lloh57:
	adrp	x22, _DataBuffer@GOTPAGE
Lloh58:
	ldr	x22, [x22, _DataBuffer@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh59:
	adrp	x8, _SIO_format_sectorcount@GOTPAGE
Lloh60:
	ldr	x8, [x8, _SIO_format_sectorcount@GOTPAGEOFF]
Lloh61:
	ldr	x8, [x8]
	ldr	w3, [x8, x9]
	mov	x0, x21
	cmp	w2, w20
	b.ne	LBB0_47
; %bb.39:
	mov	x2, x20
	bl	_SIO_FormatDisk
	cmp	x0, #67
	b.ne	LBB0_21
; %bb.40:
	ldr	w0, [x22]
	mov	x1, x19
	mov	x2, x20
	b	LBB0_52
LBB0_41:
	cmp	w20, #4
	b.ne	LBB0_53
; %bb.42:
Lloh62:
	adrp	x20, _DataBuffer@GOTPAGE
Lloh63:
	ldr	x20, [x20, _DataBuffer@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x21
	bl	_SIO_DriveStatus
	cmp	x0, #67
	b.ne	LBB0_21
; %bb.43:
	ldr	w0, [x20]
	mov	x1, x19
	mov	w2, #4
	b	LBB0_52
LBB0_44:
	cmp	w20, #12
	b.ne	LBB0_53
; %bb.45:
Lloh64:
	adrp	x20, _DataBuffer@GOTPAGE
Lloh65:
	ldr	x20, [x20, _DataBuffer@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #12
	bl	_MEMORY_CopyFromMem
	ldr	w1, [x20]
	mov	x0, x21
	bl	_SIO_WriteStatusBlock
	b	LBB0_21
LBB0_46:
	mov	w9, #0
	b	LBB0_49
LBB0_47:
	bl	_SIO_FormatDisk
	b	LBB0_53
LBB0_48:
Lloh66:
	adrp	x9, _SECTOR_DELAY@GOTPAGE
Lloh67:
	ldr	x9, [x9, _SECTOR_DELAY@GOTPAGEOFF]
Lloh68:
	ldr	w9, [x9]
LBB0_49:
	str	w9, [x8]
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x22
	mov	x3, #0
	bl	_SIO_SizeOfSector
	ldr	w8, [sp, #12]
	cmp	w8, w20
	b.ne	LBB0_53
; %bb.50:
Lloh69:
	adrp	x20, _DataBuffer@GOTPAGE
Lloh70:
	ldr	x20, [x20, _DataBuffer@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x21
	mov	x1, x22
	bl	_SIO_ReadSector
	cmp	x0, #67
	b.ne	LBB0_21
; %bb.51:
	ldr	w0, [x20]
	ldr	w2, [sp, #12]
	mov	x1, x19
LBB0_52:
	bl	_MEMORY_CopyToMem
	mov	w1, #1
	b	LBB0_54
LBB0_53:
	mov	w1, #146
LBB0_54:
Lloh71:
	adrp	x8, _CPU_regY@GOTPAGE
Lloh72:
	ldr	x8, [x8, _CPU_regY@GOTPAGEOFF]
Lloh73:
	str	w1, [x8]
Lloh74:
	adrp	x8, _CPU_regA@GOTPAGE
Lloh75:
	ldr	x8, [x8, _CPU_regA@GOTPAGEOFF]
Lloh76:
	str	xzr, [x8]
	mov	w0, #771
	bl	_MEMORY_dPutByte
	mov	w0, #66
	mov	w1, #0
	bl	_MEMORY_dPutByte
Lloh77:
	adrp	x8, _POKEY_OFFSET_AUDC1@GOTPAGE
Lloh78:
	ldr	x8, [x8, _POKEY_OFFSET_AUDC1@GOTPAGEOFF]
Lloh79:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_POKEY_PutByte
Lloh80:
	adrp	x8, _POKEY_OFFSET_AUDC2@GOTPAGE
Lloh81:
	ldr	x8, [x8, _POKEY_OFFSET_AUDC2@GOTPAGEOFF]
Lloh82:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_POKEY_PutByte
Lloh83:
	adrp	x8, _POKEY_OFFSET_AUDC3@GOTPAGE
Lloh84:
	ldr	x8, [x8, _POKEY_OFFSET_AUDC3@GOTPAGEOFF]
Lloh85:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_POKEY_PutByte
Lloh86:
	adrp	x8, _POKEY_OFFSET_AUDC4@GOTPAGE
Lloh87:
	ldr	x8, [x8, _POKEY_OFFSET_AUDC4@GOTPAGEOFF]
Lloh88:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_POKEY_PutByte
LBB0_55:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotStr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotStr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotStr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotStr	Lloh71, Lloh72, Lloh73
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_38-LBB0_6)>>2
	.byte	(LBB0_27-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_44-LBB0_6)>>2
	.byte	(LBB0_19-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_33-LBB0_6)>>2
	.byte	(LBB0_41-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_32-LBB0_6)>>2
	.byte	(LBB0_19-LBB0_6)>>2
                                        ; -- End function
	.comm	_SIO_MAX_DRIVES,8,3             ; @SIO_MAX_DRIVES
	.comm	_SIO_drive_status,8,3           ; @SIO_drive_status
	.comm	_SIO_OFF,8,3                    ; @SIO_OFF
	.comm	_BINLOAD_start_binloading,8,3   ; @BINLOAD_start_binloading
	.comm	_DataBuffer,4,2                 ; @DataBuffer
	.comm	_delay_counter,4,2              ; @delay_counter
	.comm	_last_ypos,4,2                  ; @last_ypos
	.comm	_ANTIC_ypos,4,2                 ; @ANTIC_ypos
	.comm	_CPU_regPC,4,2                  ; @CPU_regPC
	.comm	_SECTOR_DELAY,4,2               ; @SECTOR_DELAY
	.comm	_SIO_format_sectorsize,8,3      ; @SIO_format_sectorsize
	.comm	_SIO_format_sectorcount,8,3     ; @SIO_format_sectorcount
	.comm	_SIO_LAST_READ,4,2              ; @SIO_LAST_READ
	.comm	_SIO_last_op,4,2                ; @SIO_last_op
	.comm	_SIO_last_drive,4,2             ; @SIO_last_drive
	.comm	_SIO_last_op_time,4,2           ; @SIO_last_op_time
	.comm	_SIO_LAST_WRITE,4,2             ; @SIO_LAST_WRITE
	.comm	_CPU_regY,4,2                   ; @CPU_regY
	.comm	_CPU_SetN,4,2                   ; @CPU_SetN
	.comm	_CPU_ClrN,4,2                   ; @CPU_ClrN
	.comm	_CPU_regA,8,3                   ; @CPU_regA
	.comm	_CPU_SetC,4,2                   ; @CPU_SetC
	.comm	_POKEY_OFFSET_AUDC1,4,2         ; @POKEY_OFFSET_AUDC1
	.comm	_POKEY_OFFSET_AUDC2,4,2         ; @POKEY_OFFSET_AUDC2
	.comm	_POKEY_OFFSET_AUDC3,4,2         ; @POKEY_OFFSET_AUDC3
	.comm	_POKEY_OFFSET_AUDC4,4,2         ; @POKEY_OFFSET_AUDC4
.subsections_via_symbols
