	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_sec_windows_map             ## -- Begin function pt_sec_windows_map
	.p2align	4, 0x90
_pt_sec_windows_map:                    ## @pt_sec_windows_map
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	movq	8(%rdi), %r15
	xorl	%eax, %eax
	callq	_granularity
	movq	%rax, %rcx
	orq	%r12, %rax
	shrq	$32, %rax
	je	LBB0_3
## %bb.2:
	movq	%r12, %rax
	cqto
	idivq	%rcx
	movq	%rdx, %r13
	jmp	LBB0_4
LBB0_3:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %r13d
LBB0_4:
	addq	%r13, %r15
	cmpq	8(%rbx), %r15
	jge	LBB0_8
LBB0_5:
	movq	_pte_internal@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
LBB0_6:
	subl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	callq	__get_osfhandle
	movq	_PAGE_READONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%r14d, %r14d
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_CreateFileMapping
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	subq	%r13, %r12
	movq	_FILE_MAP_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r12, %rdx
	sarq	$32, %rdx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r12, %rcx
	movq	%r15, %r8
	callq	_MapViewOfFile
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	%rax, %r12
	movl	$40, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 32(%rax)
	movq	%r12, 24(%rax)
	leaq	(%r12,%r13,4), %rcx
	movq	%rcx, 16(%rax)
	leaq	(%r12,%r15,4), %rcx
	movq	%rcx, 8(%rax)
	movq	%rax, 32(%rbx)
	movq	_pt_sec_windows_unmap@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_pt_sec_windows_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_pt_sec_windows_memsize@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_12:
	movq	_pte_bad_image@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_13:
	movq	_pte_bad_image@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_15
LBB0_14:
	movq	_pte_nomem@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r12, %rdi
	callq	_UnmapViewOfFile
LBB0_15:
	negl	%r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_CloseHandle
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_pte_internal,4,2               ## @pte_internal
	.comm	_PAGE_READONLY,4,2              ## @PAGE_READONLY
	.comm	_pte_bad_image,4,2              ## @pte_bad_image
	.comm	_FILE_MAP_READ,4,2              ## @FILE_MAP_READ
	.comm	_pte_nomem,4,2                  ## @pte_nomem
	.comm	_pt_sec_windows_unmap,4,2       ## @pt_sec_windows_unmap
	.comm	_pt_sec_windows_read,4,2        ## @pt_sec_windows_read
	.comm	_pt_sec_windows_memsize,4,2     ## @pt_sec_windows_memsize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_sec_windows_map             ; -- Begin function pt_sec_windows_map
	.p2align	2
_pt_sec_windows_map:                    ; @pt_sec_windows_map
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldp	x21, x22, [x0]
	bl	_granularity
	sdiv	x8, x21, x0
	mul	x23, x8, x0
	sub	x25, x21, x23
	add	x21, x25, x22
	ldr	x8, [x19, #8]
	cmp	x21, x8
	b.ge	LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _pte_internal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pte_internal@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_4:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x20
	bl	__get_osfhandle
Lloh2:
	adrp	x8, _PAGE_READONLY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PAGE_READONLY@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, #0
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_CreateFileMapping
	cbz	x0, LBB0_9
; %bb.6:
	mov	x22, x0
Lloh5:
	adrp	x8, _FILE_MAP_READ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FILE_MAP_READ@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	asr	x2, x23, #32
	mov	x3, x23
	mov	x4, x21
	bl	_MapViewOfFile
	cbz	x0, LBB0_10
; %bb.7:
	mov	x24, x0
	mov	w0, #40
	bl	_malloc
	cbz	x0, LBB0_11
; %bb.8:
	mov	w23, #0
	str	w20, [x0]
	stp	x24, x22, [x0, #24]
	add	x8, x24, x25, lsl #2
	add	x9, x24, x21, lsl #2
	stp	x9, x8, [x0, #8]
	str	x0, [x19, #32]
Lloh8:
	adrp	x8, _pt_sec_windows_unmap@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pt_sec_windows_unmap@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh11:
	adrp	x8, _pt_sec_windows_read@GOTPAGE
Lloh12:
	ldr	x8, [x8, _pt_sec_windows_read@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _pt_sec_windows_memsize@GOTPAGE
Lloh15:
	ldr	x9, [x9, _pt_sec_windows_memsize@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
	b	LBB0_4
LBB0_9:
Lloh17:
	adrp	x8, _pte_bad_image@GOTPAGE
Lloh18:
	ldr	x8, [x8, _pte_bad_image@GOTPAGEOFF]
	b	LBB0_3
LBB0_10:
Lloh19:
	adrp	x8, _pte_bad_image@GOTPAGE
Lloh20:
	ldr	x8, [x8, _pte_bad_image@GOTPAGEOFF]
Lloh21:
	ldr	w19, [x8]
	b	LBB0_12
LBB0_11:
Lloh22:
	adrp	x8, _pte_nomem@GOTPAGE
Lloh23:
	ldr	x8, [x8, _pte_nomem@GOTPAGEOFF]
Lloh24:
	ldr	w19, [x8]
	mov	x0, x24
	bl	_UnmapViewOfFile
LBB0_12:
	neg	w23, w19
	mov	x0, x22
	bl	_CloseHandle
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_pte_internal,4,2               ; @pte_internal
	.comm	_PAGE_READONLY,4,2              ; @PAGE_READONLY
	.comm	_pte_bad_image,4,2              ; @pte_bad_image
	.comm	_FILE_MAP_READ,4,2              ; @FILE_MAP_READ
	.comm	_pte_nomem,4,2                  ; @pte_nomem
	.comm	_pt_sec_windows_unmap,4,2       ; @pt_sec_windows_unmap
	.comm	_pt_sec_windows_read,4,2        ; @pt_sec_windows_read
	.comm	_pt_sec_windows_memsize,4,2     ; @pt_sec_windows_memsize
.subsections_via_symbols
