	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Devices_H_FileLength
_Devices_H_FileLength:                  ## @Devices_H_FileLength
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -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_10
## %bb.3:
	movq	_h_fp@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_h_iocb@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_11
## %bb.4:
	movl	$1792, %edi                     ## imm = 0x700
	callq	_MEMORY_dGetByte
	cmpb	$77, %al
	jne	LBB0_9
## %bb.5:
	movq	_h_lastop@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	(%rbx), %rax
	cmpb	$114, (%rcx,%rax)
	jne	LBB0_8
## %bb.6:
	movq	_h_lastbyte@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rcx
	movq	_EOF@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_8
## %bb.7:
	movq	(%r14), %rcx
	movq	(%rcx,%rax,8), %rdi
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	$-1, %rsi
	callq	_fseek
	movq	(%rbx), %rax
LBB0_8:
	movq	(%r14), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	_binf@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Devices_H_LoadProceed
	movq	(%r15), %rax
	movq	(%rbx), %rcx
	movb	$98, (%rax,%rcx)
	jmp	LBB0_10
LBB0_11:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Devices_H_Load                 ## TAILCALL
LBB0_9:
	movq	_Devices_IOCB0@GOTPCREL(%rip), %rax
	movq	(%rbx), %rcx
	movq	(%r14), %rdx
	movq	(%rdx,%rcx,8), %r12
	movl	%ecx, %ebx
	shll	$4, %ebx
	addl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_ftell
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_Util_flen
	movl	%eax, %r14d
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_fseek
	movslq	%ebx, %rbx
	movq	_Devices_ICAX3@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_MEMORY_dPutByte
	movq	_Devices_ICAX4@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	movl	%r14d, %esi
	sarl	$8, %esi
	callq	_MEMORY_dPutByte
	movq	_Devices_ICAX5@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	sarl	$16, %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_MEMORY_dPutByte
	movq	_CPU_regY@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_devbug,8,3                     ## @devbug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Get File Length Command"

	.comm	_h_fp,8,3                       ## @h_fp
	.comm	_h_iocb,8,3                     ## @h_iocb
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_h_lastop,8,3                   ## @h_lastop
	.comm	_h_lastbyte,8,3                 ## @h_lastbyte
	.comm	_EOF,8,3                        ## @EOF
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.comm	_binf,8,3                       ## @binf
	.comm	_Devices_IOCB0,8,3              ## @Devices_IOCB0
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_Devices_ICAX3,8,3              ## @Devices_ICAX3
	.comm	_Devices_ICAX4,8,3              ## @Devices_ICAX4
	.comm	_Devices_ICAX5,8,3              ## @Devices_ICAX5
	.comm	_CPU_regY,4,2                   ## @CPU_regY
	.comm	_CPU_ClrN,4,2                   ## @CPU_ClrN
	.no_dead_strip	_Devices_H_FileLength
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Devices_H_FileLength
_Devices_H_FileLength:                  ; @Devices_H_FileLength
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
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	x20, _h_fp@GOTPAGE
Lloh6:
	ldr	x20, [x20, _h_fp@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh7:
	adrp	x19, _h_iocb@GOTPAGE
Lloh8:
	ldr	x19, [x19, _h_iocb@GOTPAGEOFF]
	ldr	x9, [x19]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_9
; %bb.4:
	mov	w0, #1792
	bl	_MEMORY_dGetByte
	cmp	w0, #77
	b.ne	LBB0_10
; %bb.5:
Lloh9:
	adrp	x21, _h_lastop@GOTPAGE
Lloh10:
	ldr	x21, [x21, _h_lastop@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	x8, [x19]
	ldrb	w9, [x9, x8]
	cmp	w9, #114
	b.ne	LBB0_8
; %bb.6:
Lloh11:
	adrp	x9, _h_lastbyte@GOTPAGE
Lloh12:
	ldr	x9, [x9, _h_lastbyte@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	x9, [x9, x8, lsl #3]
Lloh14:
	adrp	x10, _EOF@GOTPAGE
Lloh15:
	ldr	x10, [x10, _EOF@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_8
; %bb.7:
	ldr	x9, [x20]
	ldr	x0, [x9, x8, lsl #3]
Lloh17:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x1, #-1
	bl	_fseek
	ldr	x8, [x19]
LBB0_8:
	ldr	x9, [x20]
	ldr	x8, [x9, x8, lsl #3]
Lloh20:
	adrp	x9, _binf@GOTPAGE
Lloh21:
	ldr	x9, [x9, _binf@GOTPAGEOFF]
Lloh22:
	str	x8, [x9]
Lloh23:
	adrp	x8, _TRUE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_Devices_H_LoadProceed
	ldr	x8, [x21]
	ldr	x9, [x19]
	mov	w10, #98
	strb	w10, [x8, x9]
	b	LBB0_11
LBB0_9:
Lloh26:
	adrp	x8, _TRUE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_Devices_H_Load
LBB0_10:
Lloh29:
	adrp	x8, _Devices_IOCB0@GOTPAGE
Lloh30:
	ldr	x8, [x8, _Devices_IOCB0@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	x9, [x19]
	add	w22, w8, w9, lsl #4
	ldr	x8, [x20]
	ldr	x19, [x8, x9, lsl #3]
	mov	x0, x19
	bl	_ftell
	mov	x20, x0
	mov	x0, x19
	bl	_Util_flen
	mov	x21, x0
Lloh32:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_fseek
	sxtw	x19, w22
Lloh35:
	adrp	x8, _Devices_ICAX3@GOTPAGE
Lloh36:
	ldr	x8, [x8, _Devices_ICAX3@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	add	x0, x8, x19
	mov	x1, x21
	bl	_MEMORY_dPutByte
Lloh38:
	adrp	x8, _Devices_ICAX4@GOTPAGE
Lloh39:
	ldr	x8, [x8, _Devices_ICAX4@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	add	x0, x8, x19
	asr	w1, w21, #8
	bl	_MEMORY_dPutByte
Lloh41:
	adrp	x8, _Devices_ICAX5@GOTPAGE
Lloh42:
	ldr	x8, [x8, _Devices_ICAX5@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	add	x0, x8, x19
	asr	w1, w21, #16
	bl	_MEMORY_dPutByte
Lloh44:
	adrp	x8, _CPU_regY@GOTPAGE
Lloh45:
	ldr	x8, [x8, _CPU_regY@GOTPAGEOFF]
	mov	w9, #1
Lloh46:
	str	w9, [x8]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotStr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_devbug,8,3                     ; @devbug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Get File Length Command"

	.comm	_h_fp,8,3                       ; @h_fp
	.comm	_h_iocb,8,3                     ; @h_iocb
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_h_lastop,8,3                   ; @h_lastop
	.comm	_h_lastbyte,8,3                 ; @h_lastbyte
	.comm	_EOF,8,3                        ; @EOF
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.comm	_binf,8,3                       ; @binf
	.comm	_Devices_IOCB0,8,3              ; @Devices_IOCB0
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_Devices_ICAX3,8,3              ; @Devices_ICAX3
	.comm	_Devices_ICAX4,8,3              ; @Devices_ICAX4
	.comm	_Devices_ICAX5,8,3              ; @Devices_ICAX5
	.comm	_CPU_regY,4,2                   ; @CPU_regY
	.comm	_CPU_ClrN,4,2                   ; @CPU_ClrN
	.no_dead_strip	_Devices_H_FileLength
.subsections_via_symbols
