	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_retro_vfs_file_tell_impl       ## -- Begin function retro_vfs_file_tell_impl
	.p2align	4, 0x90
_retro_vfs_file_tell_impl:              ## @retro_vfs_file_tell_impl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	_RFILE_HINT_UNBUFFERED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_5
## %bb.2:
	movl	20(%rdi), %edi
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_lseek
	sarq	$63, %rax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_3:
	movl	$-1, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_5:
	movl	32(%rdi), %edi
	popq	%rbp
	jmp	_ftell                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RFILE_HINT_UNBUFFERED,4,2      ## @RFILE_HINT_UNBUFFERED
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.comm	_RETRO_VFS_FILE_ACCESS_HINT_FREQUENT_ACCESS,4,2 ## @RETRO_VFS_FILE_ACCESS_HINT_FREQUENT_ACCESS
	.comm	_VFS_SCHEME_CDROM,8,3           ## @VFS_SCHEME_CDROM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_retro_vfs_file_tell_impl       ; -- Begin function retro_vfs_file_tell_impl
	.p2align	2
_retro_vfs_file_tell_impl:              ; @retro_vfs_file_tell_impl
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _RFILE_HINT_UNBUFFERED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RFILE_HINT_UNBUFFERED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	w0, [x0, #20]
Lloh3:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_lseek
	asr	x0, x0, #63
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	w0, #-1
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w0, [x0, #32]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_ftell
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RFILE_HINT_UNBUFFERED,4,2      ; @RFILE_HINT_UNBUFFERED
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.comm	_RETRO_VFS_FILE_ACCESS_HINT_FREQUENT_ACCESS,4,2 ; @RETRO_VFS_FILE_ACCESS_HINT_FREQUENT_ACCESS
	.comm	_VFS_SCHEME_CDROM,8,3           ; @VFS_SCHEME_CDROM
.subsections_via_symbols
