	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_text_mmap                      ## -- Begin function text_mmap
	.p2align	4, 0x90
_text_mmap:                             ## @text_mmap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %rbx
	movq	%rdi, %r14
	callq	_validate_mmap
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_MAP_FAILED_PTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_load_text_file
	cmpq	$0, (%rbx)
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_close_mmap_files
	movq	(%rbx), %rax
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_MAP_FAILED_PTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_5
LBB0_3:
	movq	8(%rbx), %rax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAP_FAILED_PTR,8,3             ## @MAP_FAILED_PTR
	.comm	_errno,8,3                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_text_mmap                      ; -- Begin function text_mmap
	.p2align	2
_text_mmap:                             ; @text_mmap
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x3
	mov	x20, x0
	bl	_validate_mmap
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MAP_FAILED_PTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAP_FAILED_PTR@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	b	LBB0_5
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_load_text_file
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_close_mmap_files
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh5:
	str	x9, [x8]
Lloh6:
	adrp	x8, _MAP_FAILED_PTR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAP_FAILED_PTR@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	str	x0, [x19, #8]
	b	LBB0_5
LBB0_4:
	ldr	x0, [x19, #8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAP_FAILED_PTR,8,3             ; @MAP_FAILED_PTR
	.comm	_errno,8,3                      ; @errno
.subsections_via_symbols
