	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_io_def_mmap_open
_r_io_def_mmap_open:                    ## @r_io_def_mmap_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	%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
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	setne	%al
	testq	%rsi, %rsi
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	callq	_r_return_val_if_fail
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_r_io_def_mmap_create_new_file
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	(%rax), %edx
	movq	_r_io_plugin_default@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	movq	%rax, %r9
	callq	_r_io_desc_new
	movq	%rax, %r13
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_strdup
	movq	%rax, %rdi
	movq	%rax, (%r13)
LBB0_3:
	leaq	L_.str(%rip), %rsi
	callq	_r_str_startswith
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%r13), %rbx
	leaq	L_.str(%rip), %rdi
	callq	_strlen
	movslq	%eax, %rdi
	addq	%rbx, %rdi
	callq	_strdup
	movq	%rax, (%r13)
	movq	%rbx, %rdi
	callq	_free
LBB0_5:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_r_io_plugin_default,4,2        ## @r_io_plugin_default
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"file://"

	.no_dead_strip	_r_io_def_mmap_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_io_def_mmap_open
_r_io_def_mmap_open:                    ; @r_io_def_mmap_open
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	cmp	x0, #0
	ccmp	x1, #0, #4, ne
	cset	w0, ne
	mov	x1, #0
	bl	_r_return_val_if_fail
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	mov	x3, x19
	bl	_r_io_def_mmap_create_new_file
	cbz	x0, LBB0_5
; %bb.1:
	mov	x5, x0
	ldr	w2, [x0]
Lloh0:
	adrp	x1, _r_io_plugin_default@GOTPAGE
Lloh1:
	ldr	x1, [x1, _r_io_plugin_default@GOTPAGEOFF]
	mov	x0, x22
	mov	x3, x21
	mov	x4, x19
	bl	_r_io_desc_new
	mov	x19, x0
	ldr	x0, [x0]
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_strdup
	str	x0, [x19]
LBB0_3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_r_str_startswith
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x20, [x19]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strlen
	add	x0, x20, w0, sxtw
	bl	_strdup
	str	x0, [x19]
	mov	x0, x20
	bl	_free
	b	LBB0_6
LBB0_5:
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_r_io_plugin_default,4,2        ; @r_io_plugin_default
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"file://"

	.no_dead_strip	_r_io_def_mmap_open
.subsections_via_symbols
