	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_filemap                        ## -- Begin function filemap
	.p2align	4, 0x90
_filemap:                               ## @filemap
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %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
	movq	_FILE_FLAG_SEQUENTIAL_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	$0, (%rsp)
	xorl	%r12d, %r12d
	xorl	%ecx, %ecx
	callq	_CreateFile
	movq	%rax, %r13
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_1
## %bb.2:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	callq	_GetFileSize
	cmpq	$-1, %rax
	je	LBB0_3
## %bb.4:
	cmpq	$0, -64(%rbp)
	jne	LBB0_6
## %bb.5:
	movq	%rax, %r15
	movq	_XML_MAX_CHUNK_LEN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jg	LBB0_6
## %bb.7:
	testq	%r15, %r15
	je	LBB0_8
## %bb.9:
	movq	_PAGE_READONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_CreateFileMapping
	testq	%rax, %rax
	je	LBB0_10
## %bb.12:
	movq	_FILE_MAP_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	xorl	%r12d, %r12d
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_MapViewOfFile
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	*%rbx
	movq	%r12, %rdi
	callq	_UnmapViewOfFile
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_CloseHandle
	jmp	LBB0_15
LBB0_1:
	movq	%r14, %rdi
	callq	_win32perror
	jmp	LBB0_16
LBB0_3:
	movq	%r14, %rdi
	callq	_win32perror
	movq	%r13, %rdi
	callq	_CloseHandle
	xorl	%r12d, %r12d
	jmp	LBB0_16
LBB0_6:
	movq	%r13, %rdi
	callq	_CloseHandle
	movl	$2, %r12d
	jmp	LBB0_16
LBB0_8:
	leaq	_filemap.c(%rip), %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	*%rbx
LBB0_15:
	movq	%r13, %rdi
	callq	_CloseHandle
	movl	$1, %r12d
	jmp	LBB0_16
LBB0_10:
	movq	%r14, %rdi
	callq	_win32perror
	jmp	LBB0_11
LBB0_13:
	movq	%r14, %rdi
	callq	_win32perror
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_CloseHandle
LBB0_11:
	movq	%r13, %rdi
	callq	_CloseHandle
LBB0_16:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	_FILE_FLAG_SEQUENTIAL_SCAN,4,2  ## @FILE_FLAG_SEQUENTIAL_SCAN
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_XML_MAX_CHUNK_LEN,8,3          ## @XML_MAX_CHUNK_LEN
	.section	__TEXT,__const
_filemap.c:                             ## @filemap.c
	.byte	0                               ## 0x0

	.comm	_PAGE_READONLY,4,2              ## @PAGE_READONLY
	.comm	_FILE_MAP_READ,4,2              ## @FILE_MAP_READ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_filemap                        ; -- Begin function filemap
	.p2align	2
_filemap:                               ; @filemap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
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]
Lloh9:
	adrp	x8, _FILE_FLAG_SEQUENTIAL_SCAN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FILE_FLAG_SEQUENTIAL_SCAN@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
	mov	x3, #0
	mov	x6, #0
	bl	_CreateFile
Lloh12:
	adrp	x8, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.1:
	mov	x19, x0
	add	x1, sp, #8
	bl	_GetFileSize
	cmn	x0, #1
	b.eq	LBB0_9
; %bb.2:
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_11
; %bb.3:
	mov	x23, x0
Lloh15:
	adrp	x8, _XML_MAX_CHUNK_LEN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _XML_MAX_CHUNK_LEN@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_11
; %bb.4:
	cbz	x23, LBB0_12
; %bb.5:
Lloh18:
	adrp	x8, _PAGE_READONLY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PAGE_READONLY@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_CreateFileMapping
	cbz	x0, LBB0_9
; %bb.6:
	mov	x24, x0
Lloh21:
	adrp	x8, _FILE_MAP_READ@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FILE_MAP_READ@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_MapViewOfFile
	cbz	x0, LBB0_15
; %bb.7:
	mov	x25, x0
	mov	x1, x23
	mov	x2, x20
	mov	x3, x22
	blr	x21
	mov	x0, x25
	bl	_UnmapViewOfFile
	mov	x0, x24
	bl	_CloseHandle
	b	LBB0_13
LBB0_8:
	mov	x0, x20
	bl	_win32perror
	mov	w0, #0
	b	LBB0_14
LBB0_9:
	mov	x0, x20
	bl	_win32perror
LBB0_10:
	mov	x0, x19
	bl	_CloseHandle
	mov	w0, #0
	b	LBB0_14
LBB0_11:
	mov	x0, x19
	bl	_CloseHandle
	mov	w0, #2
	b	LBB0_14
LBB0_12:
Lloh24:
	adrp	x0, _filemap.c@PAGE
Lloh25:
	add	x0, x0, _filemap.c@PAGEOFF
	mov	x1, #0
	mov	x2, x20
	mov	x3, x22
	blr	x21
LBB0_13:
	mov	x0, x19
	bl	_CloseHandle
	mov	w0, #1
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_15:
	mov	x0, x20
	bl	_win32perror
	mov	x0, x24
	bl	_CloseHandle
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.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	_FILE_FLAG_SEQUENTIAL_SCAN,4,2  ; @FILE_FLAG_SEQUENTIAL_SCAN
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_XML_MAX_CHUNK_LEN,8,3          ; @XML_MAX_CHUNK_LEN
	.section	__TEXT,__const
_filemap.c:                             ; @filemap.c
	.byte	0                               ; 0x0

	.comm	_PAGE_READONLY,4,2              ; @PAGE_READONLY
	.comm	_FILE_MAP_READ,4,2              ; @FILE_MAP_READ
.subsections_via_symbols
