	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function map_file_into_memory
_map_file_into_memory:                  ## @map_file_into_memory
	.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	%rdi, %r15
	movq	16(%rdi), %r12
	movq	_FILE_MAP_WRITE@GOTPCREL(%rip), %rax
	movq	_FILE_MAP_READ@GOTPCREL(%rip), %rcx
	testq	%r12, %r12
	jne	LBB0_1
## %bb.2:
	movq	_PAGE_READONLY@GOTPCREL(%rip), %rdx
	jmp	LBB0_3
LBB0_1:
	movq	_PAGE_READWRITE@GOTPCREL(%rip), %rdx
LBB0_3:
	movl	(%rax), %r13d
	movl	(%rcx), %r14d
	movl	(%rdx), %edx
	movl	12(%r15), %edi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_CreateFileMappingW
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %ebx
	testq	%r12, %r12
	movl	$0, %eax
	cmovel	%eax, %r13d
	orl	%r13d, %r14d
	movl	8(%r15), %r8d
	movl	%ebx, %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_MapViewOfFile
	movq	%rax, (%r15)
	movl	%ebx, %edi
	callq	_CloseHandle
	xorl	%eax, %eax
	cmpq	$0, (%r15)
	setne	%al
	jmp	LBB0_6
LBB0_4:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_READWRITE,4,2             ## @PAGE_READWRITE
	.comm	_FILE_MAP_WRITE,4,2             ## @FILE_MAP_WRITE
	.comm	_FILE_MAP_READ,4,2              ## @FILE_MAP_READ
	.comm	_PAGE_READONLY,4,2              ## @PAGE_READONLY
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_map_file_into_memory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function map_file_into_memory
_map_file_into_memory:                  ; @map_file_into_memory
	.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	x19, x0
	ldr	x21, [x0, #16]
Lloh0:
	adrp	x8, _FILE_MAP_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FILE_MAP_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _FILE_MAP_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FILE_MAP_READ@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
Lloh6:
	adrp	x8, _PAGE_READONLY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAGE_READONLY@GOTPAGEOFF]
Lloh8:
	adrp	x9, _PAGE_READWRITE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PAGE_READWRITE@GOTPAGEOFF]
	cmp	x21, #0
	csel	x8, x8, x9, eq
	ldr	w2, [x8]
	ldr	w0, [x0, #12]
	mov	x1, #0
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_CreateFileMappingW
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	cmp	x21, #0
	csel	w8, wzr, w22, eq
	orr	w1, w23, w8
	ldr	w4, [x19, #8]
	mov	w2, #0
	mov	w3, #0
	bl	_MapViewOfFile
	str	x0, [x19]
	mov	x0, x20
	bl	_CloseHandle
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _FALSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
LBB0_3:
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_READWRITE,4,2             ; @PAGE_READWRITE
	.comm	_FILE_MAP_WRITE,4,2             ; @FILE_MAP_WRITE
	.comm	_FILE_MAP_READ,4,2              ; @FILE_MAP_READ
	.comm	_PAGE_READONLY,4,2              ; @PAGE_READONLY
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_map_file_into_memory
.subsections_via_symbols
