	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pe_map_section                 ## -- Begin function pe_map_section
	.p2align	4, 0x90
_pe_map_section:                        ## @pe_map_section
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rsi
	movq	8(%rdi), %r14
	cmpq	8(%r14), %rsi
	jae	LBB0_6
## %bb.1:
	movq	(%r14), %rax
	movq	%rsi, %rdx
	shlq	$5, %rdx
	movq	(%rax,%rdx), %rcx
	movq	_IMAGE_NO_MAP@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rcx
	jne	LBB0_6
## %bb.2:
	movq	8(%rax,%rdx), %rcx
	movq	24(%rax,%rdx), %rdx
	cmpq	%rcx, %rdx
	jle	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_FIXME
	movq	(%r15), %rax
	jmp	LBB0_7
LBB0_4:
	movq	%rdi, %rbx
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_pe_map_full
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	-32(%rbp), %rdi
	movq	(%r14), %rcx
	movq	(%rbx), %rdx
	shlq	$5, %rdx
	movl	16(%rcx,%rdx), %edx
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	callq	_RtlImageRvaToVa
	movq	(%r14), %rcx
	movq	(%rbx), %rdx
	shlq	$5, %rdx
	movq	%rax, (%rcx,%rdx)
	jmp	LBB0_7
LBB0_6:
	movq	_IMAGE_NO_MAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IMAGE_NO_MAP,8,3               ## @IMAGE_NO_MAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Section %ld: virtual (0x%x) > raw (0x%x) size - not supported\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pe_map_section                 ; -- Begin function pe_map_section
	.p2align	2
_pe_map_section:                        ; @pe_map_section
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldp	x1, x20, [x0]
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x21, _IMAGE_NO_MAP@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IMAGE_NO_MAP@GOTPAGEOFF]
	cmp	x1, x8
	b.hs	LBB0_6
; %bb.1:
	ldr	x8, [x20]
	lsl	x9, x1, #5
	ldr	x9, [x8, x9]
	ldr	x10, [x21]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.2:
	add	x8, x8, x1, lsl #5
	ldr	x2, [x8, #24]
	ldr	x3, [x8, #8]
	cmp	x2, x3
	b.le	LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
	b	LBB0_6
LBB0_4:
	mov	x19, x0
	add	x1, sp, #8
	mov	x0, x20
	bl	_pe_map_full
	cbz	x0, LBB0_6
; %bb.5:
	mov	x1, x0
	ldr	x0, [sp, #8]
	ldr	x8, [x20]
	ldr	x9, [x19]
	add	x8, x8, x9, lsl #5
	ldr	w2, [x8, #16]
	mov	x3, #0
	bl	_RtlImageRvaToVa
	ldr	x8, [x20]
	ldr	x9, [x19]
	lsl	x9, x9, #5
	str	x0, [x8, x9]
	b	LBB0_7
LBB0_6:
	ldr	x0, [x21]
LBB0_7:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_IMAGE_NO_MAP,8,3               ; @IMAGE_NO_MAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Section %ld: virtual (0x%x) > raw (0x%x) size - not supported\n"

.subsections_via_symbols
