	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rfopen                         ## -- Begin function rfopen
	.p2align	4, 0x90
_rfopen:                                ## @rfopen
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_RETRO_VFS_FILE_ACCESS_READ@GOTPCREL(%rip), %r12
	movl	(%r12), %r15d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	(%r12), %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	_RETRO_VFS_FILE_ACCESS_READ_WRITE@GOTPCREL(%rip), %rax
	movq	_RETRO_VFS_FILE_ACCESS_UPDATE_EXISTING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	_RETRO_VFS_FILE_ACCESS_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_RETRO_VFS_FILE_ACCESS_READ_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_7
LBB0_12:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_7
## %bb.13:
	movq	_RETRO_VFS_FILE_ACCESS_WRITE@GOTPCREL(%rip), %rax
	movq	_RETRO_VFS_FILE_ACCESS_UPDATE_EXISTING@GOTPCREL(%rip), %r13
	movl	(%r13), %r15d
	orl	(%rax), %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	movb	$1, %r12b
	testq	%rax, %rax
	je	LBB0_8
## %bb.14:
	movq	_RETRO_VFS_FILE_ACCESS_READ_WRITE@GOTPCREL(%rip), %rax
	movl	(%r13), %r15d
	orl	(%rax), %r15d
	jmp	LBB0_8
LBB0_7:
	xorl	%r12d, %r12d
LBB0_8:
	movq	_RETRO_VFS_FILE_ACCESS_HINT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_filestream_open
	movq	%rax, %rbx
	testb	%r12b, %r12b
	je	LBB0_11
## %bb.9:
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.10:
	movq	_RETRO_VFS_SEEK_POSITION_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_filestream_seek
LBB0_11:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RETRO_VFS_FILE_ACCESS_READ,4,2 ## @RETRO_VFS_FILE_ACCESS_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

L_.str.1:                               ## @.str.1
	.asciz	"+"

	.comm	_RETRO_VFS_FILE_ACCESS_READ_WRITE,4,2 ## @RETRO_VFS_FILE_ACCESS_READ_WRITE
	.comm	_RETRO_VFS_FILE_ACCESS_UPDATE_EXISTING,4,2 ## @RETRO_VFS_FILE_ACCESS_UPDATE_EXISTING
L_.str.2:                               ## @.str.2
	.asciz	"w"

	.comm	_RETRO_VFS_FILE_ACCESS_WRITE,4,2 ## @RETRO_VFS_FILE_ACCESS_WRITE
L_.str.3:                               ## @.str.3
	.asciz	"a"

	.comm	_RETRO_VFS_FILE_ACCESS_HINT_NONE,4,2 ## @RETRO_VFS_FILE_ACCESS_HINT_NONE
	.comm	_RETRO_VFS_SEEK_POSITION_END,4,2 ## @RETRO_VFS_SEEK_POSITION_END
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rfopen                         ; -- Begin function rfopen
	.p2align	2
_rfopen:                                ; @rfopen
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _RETRO_VFS_FILE_ACCESS_READ@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RETRO_VFS_FILE_ACCESS_READ@GOTPAGEOFF]
	ldr	w20, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strstr
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w20, [x22]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_strstr
	mov	w21, #0
	cbz	x0, LBB0_11
; %bb.2:
Lloh6:
	adrp	x8, _RETRO_VFS_FILE_ACCESS_READ_WRITE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RETRO_VFS_FILE_ACCESS_READ_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _RETRO_VFS_FILE_ACCESS_UPDATE_EXISTING@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RETRO_VFS_FILE_ACCESS_UPDATE_EXISTING@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w20, w9, w8
	b	LBB0_11
LBB0_3:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_strstr
	cbz	x0, LBB0_5
; %bb.4:
Lloh14:
	adrp	x8, _RETRO_VFS_FILE_ACCESS_WRITE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RETRO_VFS_FILE_ACCESS_WRITE@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_strstr
	mov	w21, #0
Lloh19:
	adrp	x8, _RETRO_VFS_FILE_ACCESS_READ_WRITE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RETRO_VFS_FILE_ACCESS_READ_WRITE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w20, w20, w8, eq
	b	LBB0_11
LBB0_5:
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_strstr
	cbz	x0, LBB0_8
; %bb.6:
Lloh24:
	adrp	x8, _RETRO_VFS_FILE_ACCESS_WRITE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RETRO_VFS_FILE_ACCESS_WRITE@GOTPAGEOFF]
Lloh26:
	ldr	w22, [x8]
Lloh27:
	adrp	x20, _RETRO_VFS_FILE_ACCESS_UPDATE_EXISTING@GOTPAGE
Lloh28:
	ldr	x20, [x20, _RETRO_VFS_FILE_ACCESS_UPDATE_EXISTING@GOTPAGEOFF]
	ldr	w23, [x20]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_strstr
	cbz	x0, LBB0_9
; %bb.7:
Lloh31:
	adrp	x8, _RETRO_VFS_FILE_ACCESS_READ_WRITE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _RETRO_VFS_FILE_ACCESS_READ_WRITE@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w20, w9, w8
	b	LBB0_10
LBB0_8:
	mov	w21, #0
	b	LBB0_11
LBB0_9:
	orr	w20, w23, w22
LBB0_10:
	mov	w21, #1
LBB0_11:
Lloh34:
	adrp	x8, _RETRO_VFS_FILE_ACCESS_HINT_NONE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _RETRO_VFS_FILE_ACCESS_HINT_NONE@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_filestream_open
	mov	x19, x0
	cbz	w21, LBB0_14
; %bb.12:
	cbz	x19, LBB0_14
; %bb.13:
Lloh37:
	adrp	x8, _RETRO_VFS_SEEK_POSITION_END@GOTPAGE
Lloh38:
	ldr	x8, [x8, _RETRO_VFS_SEEK_POSITION_END@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_filestream_seek
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_RETRO_VFS_FILE_ACCESS_READ,4,2 ; @RETRO_VFS_FILE_ACCESS_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	"+"

	.comm	_RETRO_VFS_FILE_ACCESS_READ_WRITE,4,2 ; @RETRO_VFS_FILE_ACCESS_READ_WRITE
	.comm	_RETRO_VFS_FILE_ACCESS_UPDATE_EXISTING,4,2 ; @RETRO_VFS_FILE_ACCESS_UPDATE_EXISTING
l_.str.2:                               ; @.str.2
	.asciz	"w"

	.comm	_RETRO_VFS_FILE_ACCESS_WRITE,4,2 ; @RETRO_VFS_FILE_ACCESS_WRITE
l_.str.3:                               ; @.str.3
	.asciz	"a"

	.comm	_RETRO_VFS_FILE_ACCESS_HINT_NONE,4,2 ; @RETRO_VFS_FILE_ACCESS_HINT_NONE
	.comm	_RETRO_VFS_SEEK_POSITION_END,4,2 ; @RETRO_VFS_SEEK_POSITION_END
.subsections_via_symbols
