	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pe_load_msc_debug_info
_pe_load_msc_debug_info:                ## @pe_load_msc_debug_info
	.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
	movq	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rax
	movq	_DFI_PE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rbx
	movq	_FALSE@GOTPCREL(%rip), %r12
	movl	(%r12), %r15d
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_pe_map_full
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	-56(%rbp), %rdi
	movq	16(%rdi), %rax
	movq	_IMAGE_DIRECTORY_ENTRY_DEBUG@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	(%rax,%rcx,8), %r12d
	cmpl	$16, %r12d
	jb	LBB0_11
## %bb.3:
	sarl	$4, %r12d
	movl	4(%rax,%rcx,8), %edx
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_RtlImageRvaToVa
	movq	-56(%rbp), %rsi
	movq	_IMAGE_FILE_DEBUG_STRIPPED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rsi)
	je	LBB0_9
## %bb.4:
	cmpl	$1, %r12d
	jne	LBB0_7
## %bb.5:
	movq	8(%rax), %rcx
	movq	_IMAGE_DEBUG_TYPE_MISC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.6:
	movslq	(%rax), %rax
	movq	(%r14,%rax), %rcx
	movq	_IMAGE_DEBUG_MISC_EXENAME@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.8:
	movq	8(%r14,%rax), %rdx
	movl	12(%rsi), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_pe_load_dbg_file
	jmp	LBB0_10
LBB0_1:
	movl	(%r12), %r15d
	jmp	LBB0_12
LBB0_7:
	movl	(%r13), %edi
	callq	_debugstr_w
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_ERR
	jmp	LBB0_11
LBB0_9:
	movslq	4(%rsi), %rcx
	addq	%rsi, %rcx
	addq	$16, %rcx
	movl	8(%rsi), %r8d
	movl	%r12d, (%rsp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%rax, %r9
	callq	_pe_load_debug_directory
LBB0_10:
	movl	%eax, %r15d
LBB0_11:
	movq	%rbx, %rdi
	callq	_pe_unmap_full
LBB0_12:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DFI_PE,8,3                     ## @DFI_PE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_IMAGE_DIRECTORY_ENTRY_DEBUG,4,2 ## @IMAGE_DIRECTORY_ENTRY_DEBUG
	.comm	_IMAGE_FILE_DEBUG_STRIPPED,4,2  ## @IMAGE_FILE_DEBUG_STRIPPED
	.comm	_IMAGE_DEBUG_TYPE_MISC,8,3      ## @IMAGE_DEBUG_TYPE_MISC
	.comm	_IMAGE_DEBUG_MISC_EXENAME,8,3   ## @IMAGE_DEBUG_MISC_EXENAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-Debug info stripped, but no .DBG file in module %s\n"

	.no_dead_strip	_pe_load_msc_debug_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pe_load_msc_debug_info
_pe_load_msc_debug_info:                ; @pe_load_msc_debug_info
	.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	x21, x1
	mov	x22, x0
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x9, _DFI_PE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DFI_PE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x19, [x8]
Lloh3:
	adrp	x24, _FALSE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _FALSE@GOTPAGEOFF]
	ldr	w20, [x24]
	add	x1, sp, #8
	mov	x0, x19
	bl	_pe_map_full
	cbz	x0, LBB0_7
; %bb.1:
	mov	x23, x0
	ldr	x0, [sp, #8]
Lloh5:
	adrp	x9, _IMAGE_DIRECTORY_ENTRY_DEBUG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IMAGE_DIRECTORY_ENTRY_DEBUG@GOTPAGEOFF]
	ldr	x8, [x0, #16]
Lloh7:
	ldrsw	x9, [x9]
	lsl	x10, x9, #3
	ldr	w10, [x8, x10]
	cmp	w10, #16
	b.lo	LBB0_11
; %bb.2:
	asr	w24, w10, #4
	add	x8, x8, x9, lsl #3
	ldr	w2, [x8, #4]
	mov	x1, x23
	mov	x3, #0
	bl	_RtlImageRvaToVa
	mov	x5, x0
	ldr	x8, [sp, #8]
	ldr	w9, [x8]
Lloh8:
	adrp	x10, _IMAGE_FILE_DEBUG_STRIPPED@GOTPAGE
Lloh9:
	ldr	x10, [x10, _IMAGE_FILE_DEBUG_STRIPPED@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_9
; %bb.3:
	cmp	w24, #1
	b.ne	LBB0_8
; %bb.4:
	ldr	x9, [x5, #8]
Lloh11:
	adrp	x10, _IMAGE_DEBUG_TYPE_MISC@GOTPAGE
Lloh12:
	ldr	x10, [x10, _IMAGE_DEBUG_TYPE_MISC@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.5:
	ldrsw	x9, [x5]
	add	x9, x23, x9
	ldr	x10, [x9]
Lloh14:
	adrp	x11, _IMAGE_DEBUG_MISC_EXENAME@GOTPAGE
Lloh15:
	ldr	x11, [x11, _IMAGE_DEBUG_MISC_EXENAME@GOTPAGEOFF]
Lloh16:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_8
; %bb.6:
	ldr	x2, [x9, #8]
	ldr	w3, [x8, #12]
	mov	x0, x22
	mov	x1, x21
	bl	_pe_load_dbg_file
	b	LBB0_10
LBB0_7:
	ldr	w20, [x24]
	b	LBB0_12
LBB0_8:
	ldr	w0, [x21]
	bl	_debugstr_w
	mov	x1, x0
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERR
	b	LBB0_11
LBB0_9:
	ldp	w9, w4, [x8, #4]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x8, x8, x9
	add	x3, x8, #16
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	mov	x6, x24
	bl	_pe_load_debug_directory
LBB0_10:
	mov	x20, x0
LBB0_11:
	mov	x0, x19
	bl	_pe_unmap_full
LBB0_12:
	mov	x0, x20
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_DFI_PE,8,3                     ; @DFI_PE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_IMAGE_DIRECTORY_ENTRY_DEBUG,4,2 ; @IMAGE_DIRECTORY_ENTRY_DEBUG
	.comm	_IMAGE_FILE_DEBUG_STRIPPED,4,2  ; @IMAGE_FILE_DEBUG_STRIPPED
	.comm	_IMAGE_DEBUG_TYPE_MISC,8,3      ; @IMAGE_DEBUG_TYPE_MISC
	.comm	_IMAGE_DEBUG_MISC_EXENAME,8,3   ; @IMAGE_DEBUG_MISC_EXENAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-Debug info stripped, but no .DBG file in module %s\n"

	.no_dead_strip	_pe_load_msc_debug_info
.subsections_via_symbols
