	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Devices_H_Note
_Devices_H_Note:                        ## @Devices_H_Note
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_devbug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_Log_print
LBB0_2:
	xorl	%eax, %eax
	callq	_Devices_GetIOCB
	testl	%eax, %eax
	je	LBB0_11
## %bb.3:
	movq	_h_fp@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_h_iocb@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.5:
	callq	_ftell
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movq	_Devices_IOCB0@GOTPCREL(%rip), %rdx
	movq	(%rbx), %rcx
	movq	%rcx, %rax
	shlq	$4, %rax
	movq	_h_lastop@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	addq	(%rdx), %rax
	cmpb	$114, (%rsi,%rcx)
	jne	LBB0_9
## %bb.8:
	movq	_h_lastbyte@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movq	_EOF@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rcx
	setne	%sil
	subq	%rsi, %r14
LBB0_9:
	movslq	%eax, %rbx
	movq	_Devices_ICAX5@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_MEMORY_dPutByte
	movq	_Devices_ICAX3@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	movq	%r14, %rsi
	shrq	$8, %rsi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_MEMORY_dPutByte
	movq	_Devices_ICAX4@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	shrq	$16, %r14
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_MEMORY_dPutByte
	movl	$1, %eax
	jmp	LBB0_10
LBB0_4:
	movl	$130, %eax
	jmp	LBB0_10
LBB0_6:
	movl	$144, %eax
LBB0_10:
	movq	_CPU_regY@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_devbug,8,3                     ## @devbug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NOTE Command"

	.comm	_h_fp,8,3                       ## @h_fp
	.comm	_h_iocb,8,3                     ## @h_iocb
	.comm	_Devices_IOCB0,8,3              ## @Devices_IOCB0
	.comm	_h_lastop,8,3                   ## @h_lastop
	.comm	_h_lastbyte,8,3                 ## @h_lastbyte
	.comm	_EOF,8,3                        ## @EOF
	.comm	_Devices_ICAX5,8,3              ## @Devices_ICAX5
	.comm	_Devices_ICAX3,8,3              ## @Devices_ICAX3
	.comm	_Devices_ICAX4,8,3              ## @Devices_ICAX4
	.comm	_CPU_regY,4,2                   ## @CPU_regY
	.comm	_CPU_ClrN,4,2                   ## @CPU_ClrN
	.comm	_CPU_SetN,4,2                   ## @CPU_SetN
	.no_dead_strip	_Devices_H_Note
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Devices_H_Note
_Devices_H_Note:                        ; @Devices_H_Note
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _devbug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _devbug@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Log_print
LBB0_2:
	bl	_Devices_GetIOCB
	cbz	w0, LBB0_11
; %bb.3:
Lloh5:
	adrp	x8, _h_fp@GOTPAGE
Lloh6:
	ldr	x8, [x8, _h_fp@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x20, _h_iocb@GOTPAGE
Lloh9:
	ldr	x20, [x20, _h_iocb@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_8
; %bb.4:
	bl	_ftell
	tbnz	x0, #63, LBB0_9
; %bb.5:
	mov	x19, x0
Lloh10:
	adrp	x8, _Devices_IOCB0@GOTPAGE
Lloh11:
	ldr	x8, [x8, _Devices_IOCB0@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
Lloh13:
	adrp	x10, _h_lastop@GOTPAGE
Lloh14:
	ldr	x10, [x10, _h_lastop@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	ldrb	w10, [x10, x9]
	cmp	w10, #114
	b.ne	LBB0_7
; %bb.6:
Lloh16:
	adrp	x10, _h_lastbyte@GOTPAGE
Lloh17:
	ldr	x10, [x10, _h_lastbyte@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	ldr	x9, [x10, x9, lsl #3]
Lloh19:
	adrp	x10, _EOF@GOTPAGE
Lloh20:
	ldr	x10, [x10, _EOF@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	x9, x10
	cset	w9, ne
	sub	x19, x19, x9
LBB0_7:
	sxtw	x20, w8
Lloh22:
	adrp	x8, _Devices_ICAX5@GOTPAGE
Lloh23:
	ldr	x8, [x8, _Devices_ICAX5@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	add	x0, x8, x20
	mov	x1, x19
	bl	_MEMORY_dPutByte
Lloh25:
	adrp	x8, _Devices_ICAX3@GOTPAGE
Lloh26:
	ldr	x8, [x8, _Devices_ICAX3@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	add	x0, x8, x20
	lsr	x1, x19, #8
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_MEMORY_dPutByte
Lloh28:
	adrp	x8, _Devices_ICAX4@GOTPAGE
Lloh29:
	ldr	x8, [x8, _Devices_ICAX4@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	add	x0, x8, x20
	lsr	x1, x19, #16
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_MEMORY_dPutByte
	mov	w8, #1
	b	LBB0_10
LBB0_8:
	mov	w8, #130
	b	LBB0_10
LBB0_9:
	mov	w8, #144
LBB0_10:
Lloh31:
	adrp	x9, _CPU_regY@GOTPAGE
Lloh32:
	ldr	x9, [x9, _CPU_regY@GOTPAGEOFF]
Lloh33:
	str	w8, [x9]
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_devbug,8,3                     ; @devbug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NOTE Command"

	.comm	_h_fp,8,3                       ; @h_fp
	.comm	_h_iocb,8,3                     ; @h_iocb
	.comm	_Devices_IOCB0,8,3              ; @Devices_IOCB0
	.comm	_h_lastop,8,3                   ; @h_lastop
	.comm	_h_lastbyte,8,3                 ; @h_lastbyte
	.comm	_EOF,8,3                        ; @EOF
	.comm	_Devices_ICAX5,8,3              ; @Devices_ICAX5
	.comm	_Devices_ICAX3,8,3              ; @Devices_ICAX3
	.comm	_Devices_ICAX4,8,3              ; @Devices_ICAX4
	.comm	_CPU_regY,4,2                   ; @CPU_regY
	.comm	_CPU_ClrN,4,2                   ; @CPU_ClrN
	.comm	_CPU_SetN,4,2                   ; @CPU_SetN
	.no_dead_strip	_Devices_H_Note
.subsections_via_symbols
