	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_map_view_of_file               ## -- Begin function map_view_of_file
	.p2align	4, 0x90
_map_view_of_file:                      ## @map_view_of_file
	.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	%rdx, %r12
	movq	%rsi, %r14
	movq	_GENERIC_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FILE_SHARE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_OPEN_EXISTING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$0, (%rsp)
	xorl	%r15d, %r15d
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_CreateFileW
	movq	%rax, %rbx
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_5
## %bb.1:
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_GetFileSize
	movl	%eax, (%r12)
	movq	_INVALID_FILE_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_5
## %bb.2:
	movq	_PAGE_READONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_CreateFileMappingW
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r12
	movq	_FILE_MAP_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_MapViewOfFile
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%r12, %rdi
	callq	_CloseHandle
	movq	%rbx, %rdi
	callq	_CloseHandle
	movq	_S_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r12, %r15
LBB0_5:
	movq	%r15, %rdi
	callq	_CloseHandle
	movq	%rbx, %rdi
	callq	_CloseHandle
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%eax, %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HRESULT_FROM_WIN32             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GENERIC_READ,4,2               ## @GENERIC_READ
	.comm	_FILE_SHARE_READ,4,2            ## @FILE_SHARE_READ
	.comm	_OPEN_EXISTING,4,2              ## @OPEN_EXISTING
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_INVALID_FILE_SIZE,4,2          ## @INVALID_FILE_SIZE
	.comm	_PAGE_READONLY,4,2              ## @PAGE_READONLY
	.comm	_FILE_MAP_READ,4,2              ## @FILE_MAP_READ
	.comm	_S_OK,4,2                       ## @S_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_map_view_of_file               ; -- Begin function map_view_of_file
	.p2align	2
_map_view_of_file:                      ; @map_view_of_file
	.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	x22, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _GENERIC_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GENERIC_READ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _FILE_SHARE_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FILE_SHARE_READ@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _OPEN_EXISTING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OPEN_EXISTING@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	w3, #0
	mov	w5, #0
	mov	w6, #0
	bl	_CreateFileW
	mov	x19, x0
Lloh9:
	adrp	x8, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x21, #0
	b	LBB0_6
LBB0_2:
	mov	x0, x19
	mov	x1, #0
	bl	_GetFileSize
	mov	x21, #0
	str	w0, [x22]
Lloh12:
	adrp	x8, _INVALID_FILE_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INVALID_FILE_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.3:
Lloh15:
	adrp	x8, _PAGE_READONLY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PAGE_READONLY@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_CreateFileMappingW
	mov	x21, x0
	cbz	x0, LBB0_6
; %bb.4:
Lloh18:
	adrp	x8, _FILE_MAP_READ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FILE_MAP_READ@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_MapViewOfFile
	str	x0, [x20]
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_CloseHandle
	mov	x0, x19
	bl	_CloseHandle
Lloh21:
	adrp	x8, _S_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	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_6:
	mov	x0, x21
	bl	_CloseHandle
	mov	x0, x19
	bl	_CloseHandle
	bl	_GetLastError
	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
	b	_HRESULT_FROM_WIN32
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_GENERIC_READ,4,2               ; @GENERIC_READ
	.comm	_FILE_SHARE_READ,4,2            ; @FILE_SHARE_READ
	.comm	_OPEN_EXISTING,4,2              ; @OPEN_EXISTING
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_INVALID_FILE_SIZE,4,2          ; @INVALID_FILE_SIZE
	.comm	_PAGE_READONLY,4,2              ; @PAGE_READONLY
	.comm	_FILE_MAP_READ,4,2              ; @FILE_MAP_READ
	.comm	_S_OK,4,2                       ; @S_OK
.subsections_via_symbols
