	.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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 48(%rdi)
	je	LBB0_4
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movq	___SRD@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_5
LBB0_2:
	movq	___SOFF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.3:
	movl	8(%rbx), %r15d
	jmp	LBB0_14
LBB0_4:
	movq	_ESPIPE@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_5:
	movq	___SWR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.6:
	movq	40(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.7:
	subq	32(%rbx), %rcx
	testq	%rcx, %rcx
	jle	LBB0_2
## %bb.8:
	movq	___SAPP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_10
## %bb.9:
	movq	___S2OAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rbx)
	je	LBB0_2
LBB0_10:
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_13:
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	__sseek
	movl	%eax, %r15d
	cmpl	$-1, %eax
	je	LBB0_12
LBB0_14:
	movl	(%rbx), %eax
	testl	%eax, (%r12)
	je	LBB0_18
## %bb.15:
	movq	%rbx, %rdi
	callq	_HASUB
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	subl	16(%rbx,%rcx,8), %r15d
	js	LBB0_23
## %bb.16:
	movq	%rbx, %rdi
	callq	_HASUB
	testq	%rax, %rax
	je	LBB0_26
## %bb.17:
	subl	24(%rbx), %r15d
	jmp	LBB0_26
LBB0_18:
	movq	___SWR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_26
## %bb.19:
	movq	40(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_26
## %bb.20:
	movq	32(%rbx), %rcx
	subq	%rcx, %rax
	je	LBB0_26
## %bb.21:
	sarq	$2, %rax
	movslq	%r15d, %rcx
	movq	_OFF_MAX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	subq	%rax, %rdx
	cmpq	%rcx, %rdx
	jae	LBB0_25
## %bb.22:
	movq	_EOVERFLOW@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_23:
	movq	___SERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_12:
	movl	$1, %eax
	jmp	LBB0_27
LBB0_25:
	addl	%eax, %r15d
LBB0_26:
	movl	%r15d, (%r14)
	xorl	%eax, %eax
LBB0_27:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ESPIPE,4,2                     ## @ESPIPE
	.comm	_errno,4,2                      ## @errno
	.comm	___SRD,4,2                      ## @__SRD
	.comm	___SWR,4,2                      ## @__SWR
	.comm	___SAPP,4,2                     ## @__SAPP
	.comm	___S2OAP,4,2                    ## @__S2OAP
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	___SOFF,4,2                     ## @__SOFF
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.comm	___SERR,4,2                     ## @__SERR
	.comm	_EIO,4,2                        ## @EIO
	.comm	_OFF_MAX,8,3                    ## @OFF_MAX
	.comm	_EOVERFLOW,4,2                  ## @EOVERFLOW
.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	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
	ldr	x8, [x0, #48]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x22, ___SRD@GOTPAGE
Lloh1:
	ldr	x22, [x22, ___SRD@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_6
LBB0_2:
Lloh2:
	adrp	x9, ___SOFF@GOTPAGE
Lloh3:
	ldr	x9, [x9, ___SOFF@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.3:
	ldr	w21, [x20, #8]
	b	LBB0_14
LBB0_4:
Lloh5:
	adrp	x8, _ESPIPE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ESPIPE@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	b	LBB0_24
LBB0_6:
Lloh7:
	adrp	x9, ___SWR@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___SWR@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.7:
	ldr	x9, [x20, #40]
	cbz	x9, LBB0_2
; %bb.8:
	ldr	x10, [x20, #32]
	sub	x9, x9, x10
	cmp	x9, #1
	b.lt	LBB0_2
; %bb.9:
Lloh10:
	adrp	x9, ___SAPP@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___SAPP@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.10:
	ldr	w9, [x20, #4]
Lloh13:
	adrp	x10, ___S2OAP@GOTPAGE
Lloh14:
	ldr	x10, [x10, ___S2OAP@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
LBB0_11:
Lloh16:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh18:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
LBB0_13:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	__sseek
	mov	x21, x0
	cmn	w0, #1
	b.eq	LBB0_25
LBB0_14:
	ldr	w8, [x20]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.15:
	mov	x0, x20
	bl	_HASUB
	mov	w8, #16
	mov	w9, #24
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x20, x8]
	subs	w21, w21, w8
	b.mi	LBB0_23
; %bb.16:
	mov	x0, x20
	bl	_HASUB
	cbz	x0, LBB0_27
; %bb.17:
	ldr	w8, [x20, #24]
	sub	w21, w21, w8
	b	LBB0_27
LBB0_18:
Lloh20:
	adrp	x9, ___SWR@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___SWR@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_27
; %bb.19:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_27
; %bb.20:
	ldr	x9, [x20, #32]
	subs	x8, x8, x9
	b.eq	LBB0_27
; %bb.21:
	asr	x9, x8, #2
Lloh23:
	adrp	x10, _OFF_MAX@GOTPAGE
Lloh24:
	ldr	x10, [x10, _OFF_MAX@GOTPAGEOFF]
Lloh25:
	ldr	x10, [x10]
	sub	x9, x10, x9
	cmp	x9, w21, sxtw
	b.hs	LBB0_26
; %bb.22:
Lloh26:
	adrp	x8, _EOVERFLOW@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EOVERFLOW@GOTPAGEOFF]
	b	LBB0_5
LBB0_23:
Lloh28:
	adrp	x8, ___SERR@GOTPAGE
Lloh29:
	ldr	x8, [x8, ___SERR@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
Lloh31:
	adrp	x9, _EIO@GOTPAGE
Lloh32:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
	str	w8, [x20]
Lloh33:
	ldr	w8, [x9]
LBB0_24:
Lloh34:
	adrp	x9, _errno@GOTPAGE
Lloh35:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh36:
	str	w8, [x9]
LBB0_25:
	mov	w0, #1
	b	LBB0_28
LBB0_26:
	lsr	x8, x8, #2
	add	w21, w21, w8
LBB0_27:
	mov	w0, #0
	str	w21, [x19]
LBB0_28:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_ESPIPE,4,2                     ; @ESPIPE
	.comm	_errno,4,2                      ; @errno
	.comm	___SRD,4,2                      ; @__SRD
	.comm	___SWR,4,2                      ; @__SWR
	.comm	___SAPP,4,2                     ; @__SAPP
	.comm	___S2OAP,4,2                    ; @__S2OAP
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	___SOFF,4,2                     ; @__SOFF
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.comm	___SERR,4,2                     ; @__SERR
	.comm	_EIO,4,2                        ; @EIO
	.comm	_OFF_MAX,8,3                    ; @OFF_MAX
	.comm	_EOVERFLOW,4,2                  ; @EOVERFLOW
.subsections_via_symbols
