	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function HLPFILE_GetMap
_HLPFILE_GetMap:                        ## @HLPFILE_GetMap
	.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	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	_HLPFILE_FindSubFile
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	-40(%rbp), %rdi
	movl	$9, %esi
	callq	_GET_USHORT
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_GetProcessHeap
	leal	(,%rbx,4), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movl	%ebx, (%r14)
	movq	_TRUE@GOTPCREL(%rip), %r15
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.3:
	movl	%ebx, %r12d
	shlq	$3, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-40(%rbp), %rdi
	addq	$44, %rdi
	movl	%ebx, %esi
	callq	_GET_UINT
	movq	8(%r14), %rcx
	movq	%rax, 8(%rcx,%rbx,2)
	movq	-40(%rbp), %rdi
	addq	$44, %rdi
	leal	4(%rbx), %esi
	callq	_GET_UINT
	movq	8(%r14), %rcx
	movq	%rax, (%rcx,%rbx,2)
	addq	$8, %rbx
	cmpq	%rbx, %r12
	jne	LBB0_4
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	_WINE_WARN
LBB0_6:
	movq	_FALSE@GOTPCREL(%rip), %r15
LBB0_7:
	movl	(%r15), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"|CTXOMAP"

L_.str.1:                               ## @.str.1
	.asciz	"no map section\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_HLPFILE_GetMap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function HLPFILE_GetMap
_HLPFILE_GetMap:                        ; @HLPFILE_GetMap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x3, sp
	bl	_HLPFILE_FindSubFile
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x0, [sp, #8]
	mov	w1, #9
	bl	_GET_USHORT
	mov	x20, x0
	bl	_GetProcessHeap
	lsl	w2, w20, #2
	mov	w1, #0
	bl	_HeapAlloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.2:
	str	w20, [x19]
	cbz	w20, LBB0_7
; %bb.3:
	mov	x22, #0
	mov	w8, w20
	lsl	x23, x8, #4
	mov	w20, #4
Lloh2:
	adrp	x21, _TRUE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _TRUE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	add	x0, x8, #44
	sub	w1, w20, #4
	bl	_GET_UINT
	ldr	x8, [x19, #8]
	add	x8, x8, x22
	str	x0, [x8, #8]
	ldr	x8, [sp, #8]
	add	x0, x8, #44
	mov	x1, x20
	bl	_GET_UINT
	ldr	x8, [x19, #8]
	str	x0, [x8, x22]
	add	x22, x22, #16
	add	w20, w20, #8
	cmp	x23, x22
	b.ne	LBB0_4
	b	LBB0_8
LBB0_5:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_WINE_WARN
LBB0_6:
Lloh6:
	adrp	x21, _FALSE@GOTPAGE
Lloh7:
	ldr	x21, [x21, _FALSE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x21, _TRUE@GOTPAGE
Lloh9:
	ldr	x21, [x21, _TRUE@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x21]
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"|CTXOMAP"

l_.str.1:                               ; @.str.1
	.asciz	"no map section\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_HLPFILE_GetMap
.subsections_via_symbols
