	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ftello                         ## -- Begin function ftello
	.p2align	4, 0x90
_ftello:                                ## @ftello
	.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	___FILE_EOF@GOTPCREL(%rip), %rax
	movq	___FILE_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	$-1, %r14d
	testl	%ecx, (%rdi)
	jne	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_lseek
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.2:
	movq	___FILE_BUFINPUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_4
## %bb.3:
	addl	8(%rbx), %eax
	movl	4(%rbx), %ecx
	addl	12(%rbx), %ecx
	subl	%ecx, %eax
	jmp	LBB0_5
LBB0_4:
	addl	8(%rbx), %eax
LBB0_5:
	movl	%eax, %r14d
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___FILE_EOF,4,2                 ## @__FILE_EOF
	.comm	___FILE_ERROR,4,2               ## @__FILE_ERROR
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.comm	___FILE_BUFINPUT,4,2            ## @__FILE_BUFINPUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ftello                         ; -- Begin function ftello
	.p2align	2
_ftello:                                ; @ftello
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, ___FILE_EOF@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___FILE_EOF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, ___FILE_ERROR@GOTPAGE
Lloh4:
	ldr	x10, [x10, ___FILE_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	w0, #-1
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x0
	ldr	w0, [x0, #16]
Lloh6:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_lseek
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.4:
	ldr	w8, [x19]
Lloh9:
	adrp	x9, ___FILE_BUFINPUT@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___FILE_BUFINPUT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldp	w8, w9, [x19, #4]
	ldr	w10, [x19, #12]
	add	w9, w0, w9
	add	w8, w8, w10
	sub	w0, w9, w8
	b	LBB0_2
LBB0_6:
	ldr	w8, [x19, #8]
	add	w0, w8, w0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	___FILE_EOF,4,2                 ; @__FILE_EOF
	.comm	___FILE_ERROR,4,2               ; @__FILE_ERROR
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.comm	___FILE_BUFINPUT,4,2            ; @__FILE_BUFINPUT
.subsections_via_symbols
