	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Screen_DrawDiskLED             ## -- Begin function Screen_DrawDiskLED
	.p2align	4, 0x90
_Screen_DrawDiskLED:                    ## @Screen_DrawDiskLED
	.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	_SIO_last_op_time@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	jle	LBB0_16
## %bb.1:
	movq	_SIO_last_drive@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	cmpl	$96, %esi
	je	LBB0_3
## %bb.2:
	decq	%rcx
	movq	%rcx, (%rax)
LBB0_3:
	movq	_Screen_atari@GOTPCREL(%rip), %rax
	movq	_Screen_visible_x2@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	shlq	$2, %rcx
	addq	(%rax), %rcx
	movq	_SMALLFONT_WIDTH@GOTPCREL(%rip), %r14
	subq	(%r14), %rcx
	sarq	$2, %rcx
	movq	_Screen_visible_y2@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	_SMALLFONT_HEIGHT@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	subq	%rdx, %rax
	movq	_Screen_WIDTH@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rbx
	imulq	%rax, %rbx
	addq	%rcx, %rbx
	movl	%esi, %eax
	andl	$-2, %eax
	cmpl	$96, %eax
	jne	LBB0_11
## %bb.4:
	movq	_CASSETTE_status@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CASSETTE_STATUS_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.5:
	movq	_Screen_show_disk_led@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_SMALLFONT_C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CASSETTE_record@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	$172, %eax
	movl	$43, %ecx
	cmovel	%eax, %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_SmallFont_DrawChar
LBB0_7:
	movq	_Screen_show_sector_counter@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_16
## %bb.8:
	movq	_CASSETTE_record@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_10
## %bb.9:
	subq	(%r14), %rbx
	shrq	$2, %rbx
	xorl	%eax, %eax
	callq	_CASSETTE_GetSize
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	movl	$136, %ecx
	callq	_SmallFont_DrawInt
	movq	%rax, %rbx
	movq	_SMALLFONT_SLASH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$136, %ecx
	callq	_SmallFont_DrawChar
LBB0_10:
	subq	(%r14), %rbx
	shrq	$2, %rbx
	xorl	%eax, %eax
	callq	_CASSETTE_GetPosition
	movl	%ebx, %edi
	movl	%eax, %esi
	jmp	LBB0_15
LBB0_11:
	movq	_Screen_show_disk_led@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.12:
	movq	_SIO_last_op@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_SIO_LAST_READ@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	movl	$172, %r15d
	movl	$43, %r14d
	movl	$43, %ecx
	cmovel	%r15d, %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_SmallFont_DrawChar
	movq	_SMALLFONT_WIDTH@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
	sarq	$2, %rbx
	movq	_SMALLFONT_D@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r12), %rax
	cmpq	(%r13), %rax
	cmovel	%r15d, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	movq	_SMALLFONT_WIDTH@GOTPCREL(%rip), %r14
	callq	_SmallFont_DrawChar
LBB0_13:
	movq	_Screen_show_sector_counter@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_16
## %bb.14:
	subq	(%r14), %rbx
	shrq	$2, %rbx
	movq	_SIO_last_sector@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
LBB0_15:
	xorl	%edx, %edx
	movl	$136, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SmallFont_DrawInt              ## TAILCALL
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIO_last_op_time,8,3           ## @SIO_last_op_time
	.comm	_SIO_last_drive,4,2             ## @SIO_last_drive
	.comm	_Screen_atari,8,3               ## @Screen_atari
	.comm	_Screen_visible_x2,4,2          ## @Screen_visible_x2
	.comm	_SMALLFONT_WIDTH,8,3            ## @SMALLFONT_WIDTH
	.comm	_Screen_visible_y2,4,2          ## @Screen_visible_y2
	.comm	_SMALLFONT_HEIGHT,4,2           ## @SMALLFONT_HEIGHT
	.comm	_Screen_WIDTH,4,2               ## @Screen_WIDTH
	.comm	_CASSETTE_status,8,3            ## @CASSETTE_status
	.comm	_CASSETTE_STATUS_NONE,8,3       ## @CASSETTE_STATUS_NONE
	.comm	_Screen_show_disk_led,8,3       ## @Screen_show_disk_led
	.comm	_SMALLFONT_C,4,2                ## @SMALLFONT_C
	.comm	_CASSETTE_record,8,3            ## @CASSETTE_record
	.comm	_Screen_show_sector_counter,8,3 ## @Screen_show_sector_counter
	.comm	_SMALLFONT_SLASH,4,2            ## @SMALLFONT_SLASH
	.comm	_SIO_last_op,8,3                ## @SIO_last_op
	.comm	_SIO_LAST_READ,8,3              ## @SIO_LAST_READ
	.comm	_SMALLFONT_D,4,2                ## @SMALLFONT_D
	.comm	_SIO_last_sector,4,2            ## @SIO_last_sector
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Screen_DrawDiskLED             ; -- Begin function Screen_DrawDiskLED
	.p2align	2
_Screen_DrawDiskLED:                    ; @Screen_DrawDiskLED
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _SIO_last_op_time@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIO_last_op_time@GOTPAGEOFF]
	ldr	x9, [x8]
	subs	x9, x9, #1
	b.lt	LBB0_16
; %bb.1:
Lloh2:
	adrp	x10, _SIO_last_drive@GOTPAGE
Lloh3:
	ldr	x10, [x10, _SIO_last_drive@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x10]
	cmp	w1, #96
	b.eq	LBB0_3
; %bb.2:
	str	x9, [x8]
LBB0_3:
Lloh5:
	adrp	x8, _Screen_atari@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Screen_atari@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _Screen_visible_x2@GOTPAGE
Lloh9:
	ldr	x9, [x9, _Screen_visible_x2@GOTPAGEOFF]
Lloh10:
	ldrsw	x9, [x9]
	add	x8, x8, x9, lsl #2
Lloh11:
	adrp	x20, _SMALLFONT_WIDTH@GOTPAGE
Lloh12:
	ldr	x20, [x20, _SMALLFONT_WIDTH@GOTPAGEOFF]
	ldr	x9, [x20]
	sub	x8, x8, x9
Lloh13:
	adrp	x9, _Screen_visible_y2@GOTPAGE
Lloh14:
	ldr	x9, [x9, _Screen_visible_y2@GOTPAGEOFF]
Lloh15:
	ldrsw	x9, [x9]
Lloh16:
	adrp	x10, _SMALLFONT_HEIGHT@GOTPAGE
Lloh17:
	ldr	x10, [x10, _SMALLFONT_HEIGHT@GOTPAGEOFF]
Lloh18:
	ldrsw	x10, [x10]
Lloh19:
	adrp	x11, _Screen_WIDTH@GOTPAGE
Lloh20:
	ldr	x11, [x11, _Screen_WIDTH@GOTPAGEOFF]
	sub	x9, x9, x10
Lloh21:
	ldrsw	x10, [x11]
	mul	x9, x9, x10
	add	x19, x9, x8, asr #2
	and	w8, w1, #0xfffffffe
	cmp	w8, #96
	b.ne	LBB0_11
; %bb.4:
Lloh22:
	adrp	x8, _CASSETTE_status@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CASSETTE_status@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
Lloh25:
	adrp	x9, _CASSETTE_STATUS_NONE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _CASSETTE_STATUS_NONE@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.5:
Lloh28:
	adrp	x8, _Screen_show_disk_led@GOTPAGE
Lloh29:
	ldr	x8, [x8, _Screen_show_disk_led@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
Lloh31:
	adrp	x21, _CASSETTE_record@GOTPAGE
Lloh32:
	ldr	x21, [x21, _CASSETTE_record@GOTPAGEOFF]
	cbz	x8, LBB0_7
; %bb.6:
Lloh33:
	adrp	x8, _SMALLFONT_C@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SMALLFONT_C@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	ldr	x8, [x21]
	cmp	x8, #0
	mov	w8, #43
	mov	w9, #172
	csel	w3, w9, w8, eq
	mov	x0, x19
	mov	w2, #0
	bl	_SmallFont_DrawChar
LBB0_7:
Lloh36:
	adrp	x8, _Screen_show_sector_counter@GOTPAGE
Lloh37:
	ldr	x8, [x8, _Screen_show_sector_counter@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.8:
	ldr	x8, [x21]
	cbnz	x8, LBB0_10
; %bb.9:
	ldr	x8, [x20]
	sub	x8, x19, x8
	lsr	x19, x8, #2
	bl	_CASSETTE_GetSize
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	mov	w3, #136
	bl	_SmallFont_DrawInt
	mov	x19, x0
Lloh39:
	adrp	x8, _SMALLFONT_SLASH@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SMALLFONT_SLASH@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #136
	bl	_SmallFont_DrawChar
LBB0_10:
	ldr	x8, [x20]
	sub	x8, x19, x8
	lsr	x19, x8, #2
	bl	_CASSETTE_GetPosition
	mov	x1, x0
	mov	x0, x19
	b	LBB0_15
LBB0_11:
Lloh42:
	adrp	x8, _Screen_show_disk_led@GOTPAGE
Lloh43:
	ldr	x8, [x8, _Screen_show_disk_led@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.12:
Lloh45:
	adrp	x21, _SIO_last_op@GOTPAGE
Lloh46:
	ldr	x21, [x21, _SIO_last_op@GOTPAGEOFF]
Lloh47:
	adrp	x22, _SIO_LAST_READ@GOTPAGE
Lloh48:
	ldr	x22, [x22, _SIO_LAST_READ@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	x8, x9
	mov	w23, #43
	mov	w24, #172
	csel	w3, w24, w23, eq
	mov	x0, x19
	mov	w2, #0
	bl	_SmallFont_DrawChar
	ldr	x8, [x20]
	sub	x8, x19, x8
Lloh49:
	adrp	x9, _SMALLFONT_D@GOTPAGE
Lloh50:
	ldr	x9, [x9, _SMALLFONT_D@GOTPAGEOFF]
	asr	x19, x8, #2
Lloh51:
	ldr	w1, [x9]
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	x8, x9
	csel	w3, w24, w23, eq
	mov	x0, x19
	mov	w2, #0
	bl	_SmallFont_DrawChar
LBB0_13:
Lloh52:
	adrp	x8, _Screen_show_sector_counter@GOTPAGE
Lloh53:
	ldr	x8, [x8, _Screen_show_sector_counter@GOTPAGEOFF]
Lloh54:
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.14:
	ldr	x8, [x20]
	sub	x8, x19, x8
Lloh55:
	adrp	x9, _SIO_last_sector@GOTPAGE
Lloh56:
	ldr	x9, [x9, _SIO_last_sector@GOTPAGEOFF]
	lsr	x0, x8, #2
Lloh57:
	ldr	w1, [x9]
                                        ; kill: def $w0 killed $w0 killed $x0
LBB0_15:
	mov	w2, #0
	mov	w3, #136
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_SmallFont_DrawInt
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_SIO_last_op_time,8,3           ; @SIO_last_op_time
	.comm	_SIO_last_drive,4,2             ; @SIO_last_drive
	.comm	_Screen_atari,8,3               ; @Screen_atari
	.comm	_Screen_visible_x2,4,2          ; @Screen_visible_x2
	.comm	_SMALLFONT_WIDTH,8,3            ; @SMALLFONT_WIDTH
	.comm	_Screen_visible_y2,4,2          ; @Screen_visible_y2
	.comm	_SMALLFONT_HEIGHT,4,2           ; @SMALLFONT_HEIGHT
	.comm	_Screen_WIDTH,4,2               ; @Screen_WIDTH
	.comm	_CASSETTE_status,8,3            ; @CASSETTE_status
	.comm	_CASSETTE_STATUS_NONE,8,3       ; @CASSETTE_STATUS_NONE
	.comm	_Screen_show_disk_led,8,3       ; @Screen_show_disk_led
	.comm	_SMALLFONT_C,4,2                ; @SMALLFONT_C
	.comm	_CASSETTE_record,8,3            ; @CASSETTE_record
	.comm	_Screen_show_sector_counter,8,3 ; @Screen_show_sector_counter
	.comm	_SMALLFONT_SLASH,4,2            ; @SMALLFONT_SLASH
	.comm	_SIO_last_op,8,3                ; @SIO_last_op
	.comm	_SIO_LAST_READ,8,3              ; @SIO_LAST_READ
	.comm	_SMALLFONT_D,4,2                ; @SMALLFONT_D
	.comm	_SIO_last_sector,4,2            ; @SIO_last_sector
.subsections_via_symbols
