	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fs_io_open
_fs_io_open:                            ## @fs_io_open
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_r_str_newf
	movq	%rax, %rbx
	movl	16(%r15), %edi
	movq	%rax, %rsi
	callq	*8(%r15)
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_R_FREE
	testq	%r12, %r12
	je	LBB0_8
## %bb.1:
	movq	$0, -40(%rbp)
	leaq	L_.str.1(%rip), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r12, %rdi
	callq	_sscanf
	cmpl	$1, %eax
	je	LBB0_3
## %bb.2:
	movq	$0, -40(%rbp)
LBB0_3:
	movq	%r12, %rdi
	callq	_R_FREE
	cmpq	$0, -40(%rbp)
	je	LBB0_8
## %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_r_fs_file_new
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	$0, 16(%rax)
	movl	(%r15), %ecx
	movl	%ecx, 8(%rax)
	movq	-40(%rbp), %rcx
	movq	%rcx, (%rax)
	jmp	LBB0_9
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"m %s"

L_.str.1:                               ## @.str.1
	.asciz	"%u"

	.no_dead_strip	_fs_io_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fs_io_open
_fs_io_open:                            ; @fs_io_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_r_str_newf
	mov	x22, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x19, #16]
	mov	x1, x22
	blr	x8
	mov	x21, x0
	mov	x0, x22
	bl	_R_FREE
	cbz	x21, LBB0_6
; %bb.1:
	str	xzr, [sp, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x0, x21
	bl	_sscanf
	cmp	w0, #1
	b.eq	LBB0_3
; %bb.2:
	str	xzr, [sp, #8]
LBB0_3:
	mov	x0, x21
	bl	_R_FREE
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_r_fs_file_new
	cbz	x0, LBB0_7
; %bb.5:
	str	xzr, [x0, #16]
	ldr	w8, [x19]
	str	w8, [x0, #8]
	ldr	x8, [sp, #8]
	str	x8, [x0]
	b	LBB0_7
LBB0_6:
	mov	x0, #0
LBB0_7:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"m %s"

l_.str.1:                               ; @.str.1
	.asciz	"%u"

	.no_dead_strip	_fs_io_open
.subsections_via_symbols
