	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_io_def_mmap_refresh_def_mmap_buf
_r_io_def_mmap_refresh_def_mmap_buf:    ## @r_io_def_mmap_refresh_def_mmap_buf
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %rdi
	movq	40(%rbx), %r14
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	callq	_r_buf_tell
	movq	%rax, %r15
	movq	32(%rbx), %rdi
	callq	_r_buf_free
	movq	$0, 32(%rbx)
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
LBB0_3:
	movl	24(%rbx), %edi
	callq	_r_file_size
	movq	_ST32_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_4
LBB0_7:
	movl	$1, (%rbx)
	jmp	LBB0_8
LBB0_4:
	cmpl	$0, (%rbx)
	je	LBB0_5
LBB0_8:
	movl	24(%rbx), %edi
	movl	16(%rbx), %edx
	movl	20(%rbx), %esi
	callq	___io_posix_open
	movl	%eax, 4(%rbx)
	cmpl	$-1, %eax
	setne	%al
LBB0_9:
	movzbl	%al, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	20(%rbx), %esi
	movl	24(%rbx), %edi
	callq	_r_buf_new_mmap
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_r_io_def_mmap_seek
	movb	$1, %al
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ST32_MAX,8,3                   ## @ST32_MAX
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_F_NOCACHE,4,2                  ## @F_NOCACHE
	.no_dead_strip	_r_io_def_mmap_refresh_def_mmap_buf
.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_refresh_def_mmap_buf
_r_io_def_mmap_refresh_def_mmap_buf:    ; @r_io_def_mmap_refresh_def_mmap_buf
	.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, x0
	ldp	x0, x20, [x0, #32]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_r_buf_tell
	mov	x21, x0
	ldr	x0, [x19, #32]
	bl	_r_buf_free
	str	xzr, [x19, #32]
	b	LBB0_3
LBB0_2:
	mov	x21, #0
LBB0_3:
	ldr	w0, [x19, #24]
	bl	_r_file_size
Lloh0:
	adrp	x8, _ST32_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ST32_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_5
LBB0_4:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_6
LBB0_5:
	ldr	w8, [x19]
	cbz	w8, LBB0_8
LBB0_6:
	ldp	w1, w0, [x19, #20]
	ldr	w2, [x19, #16]
	bl	___io_posix_open
	str	w0, [x19, #4]
	cmn	w0, #1
	cset	w0, ne
LBB0_7:
	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
LBB0_8:
	ldp	w1, w0, [x19, #20]
	bl	_r_buf_new_mmap
	str	x0, [x19, #32]
	cbz	x0, LBB0_4
; %bb.9:
Lloh3:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_r_io_def_mmap_seek
	mov	w0, #1
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ST32_MAX,8,3                   ; @ST32_MAX
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_F_NOCACHE,4,2                  ; @F_NOCACHE
	.no_dead_strip	_r_io_def_mmap_refresh_def_mmap_buf
.subsections_via_symbols
