	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pe_load_dbg_file
_pe_load_dbg_file:                      ## @pe_load_dbg_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	%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
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_debugstr_a
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r15, %rbx
	movq	%r13, %r15
	movq	%r14, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	movl	%r12d, %r8d
	xorl	%r9d, %r9d
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	pushq	%r14
	xorl	%r14d, %r14d
	pushq	%r15
	callq	_path_find_symbol_file
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	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_ATTRIBUTE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	pushq	$0
	callq	_CreateFileA
	addq	$16, %rsp
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.2:
	movq	_PAGE_READONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_CreateFileMappingW
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r14
	movq	_FILE_MAP_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_MapViewOfFile
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %r13
	leaq	12(%rax), %rcx
	movslq	(%rax), %r8
	movq	%r8, %rax
	shlq	$4, %rax
	addq	%r13, %rax
	movslq	4(%r13), %rdx
	leaq	(%rax,%rdx,4), %r9
	addq	$48, %r9
	movl	8(%r13), %eax
	sarl	$2, %eax
	subq	$8, %rsp
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
                                        ## kill: def $r8d killed $r8d killed $r8
	pushq	%rax
	callq	_pe_load_debug_directory
	addq	$16, %rsp
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_UnmapViewOfFile
	jmp	LBB0_7
LBB0_3:
	xorl	%r14d, %r14d
LBB0_4:
	movq	%rbx, %rdi
	callq	_debugstr_a
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_debugstr_a
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_ERR
	testq	%r14, %r14
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	callq	_CloseHandle
LBB0_8:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_10
## %bb.9:
	callq	_CloseHandle
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Processing DBG file %s\n"

	.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_ATTRIBUTE_NORMAL,4,2      ## @FILE_ATTRIBUTE_NORMAL
	.comm	_PAGE_READONLY,4,2              ## @PAGE_READONLY
	.comm	_FILE_MAP_READ,4,2              ## @FILE_MAP_READ
L_.str.1:                               ## @.str.1
	.asciz	"Couldn't find .DBG file %s (%s)\n"

	.no_dead_strip	_pe_load_dbg_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pe_load_dbg_file
_pe_load_dbg_file:                      ; @pe_load_dbg_file
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x25, x3
	mov	x21, x2
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_PATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_PATH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh8:
	adrp	x27, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh9:
	ldr	x27, [x27, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
	ldr	x20, [x27]
Lloh10:
	adrp	x8, _FALSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh12:
	ldr	w19, [x8]
	mov	x0, x2
	bl	_debugstr_a
	mov	x1, x0
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	mov	x0, x24
	mov	x1, x23
	mov	x2, x21
	mov	x3, #0
	mov	x4, x25
	mov	w5, #0
	mov	x6, x22
	mov	x7, x23
	bl	_path_find_symbol_file
	cbz	x0, LBB0_2
; %bb.1:
Lloh15:
	adrp	x8, _GENERIC_READ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GENERIC_READ@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _FILE_SHARE_READ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FILE_SHARE_READ@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x8, _OPEN_EXISTING@GOTPAGE
Lloh22:
	ldr	x8, [x8, _OPEN_EXISTING@GOTPAGEOFF]
Lloh23:
	ldr	w4, [x8]
Lloh24:
	adrp	x8, _FILE_ATTRIBUTE_NORMAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FILE_ATTRIBUTE_NORMAL@GOTPAGEOFF]
Lloh26:
	ldr	w5, [x8]
	mov	x0, x22
	mov	x3, #0
	mov	x6, #0
	bl	_CreateFileA
	mov	x20, x0
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_9
LBB0_2:
	mov	x25, #0
LBB0_3:
	mov	x0, x21
	bl	_debugstr_a
	mov	x21, x0
	mov	x0, x22
	bl	_debugstr_a
	mov	x2, x0
Lloh27:
	adrp	x0, l_.str.1@PAGE
Lloh28:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_ERR
	cbz	x25, LBB0_5
LBB0_4:
	mov	x0, x25
	bl	_CloseHandle
LBB0_5:
	ldr	x8, [x27]
	cmp	x20, x8
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_CloseHandle
LBB0_7:
	ldur	x8, [x29, #-88]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.8:
	mov	x0, x19
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh32:
	adrp	x8, _PAGE_READONLY@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PAGE_READONLY@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, #0
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_CreateFileMappingW
	mov	x25, x0
	cbz	x0, LBB0_3
; %bb.10:
Lloh35:
	adrp	x8, _FILE_MAP_READ@GOTPAGE
Lloh36:
	ldr	x8, [x8, _FILE_MAP_READ@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x25
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_MapViewOfFile
	cbz	x0, LBB0_3
; %bb.11:
	mov	x26, x0
	add	x3, x0, #12
	ldpsw	x4, x8, [x0]
	add	x9, x0, x4, lsl #4
	add	x8, x9, x8, lsl #2
	add	x5, x8, #48
	ldr	w8, [x0, #8]
	asr	w6, w8, #2
	mov	x0, x24
	mov	x1, x23
	mov	x2, x26
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_pe_load_debug_directory
	mov	x19, x0
	mov	x0, x26
	bl	_UnmapViewOfFile
	b	LBB0_4
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Processing DBG file %s\n"

	.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_ATTRIBUTE_NORMAL,4,2      ; @FILE_ATTRIBUTE_NORMAL
	.comm	_PAGE_READONLY,4,2              ; @PAGE_READONLY
	.comm	_FILE_MAP_READ,4,2              ; @FILE_MAP_READ
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't find .DBG file %s (%s)\n"

	.no_dead_strip	_pe_load_dbg_file
.subsections_via_symbols
