	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pe_load_rsym
_pe_load_rsym:                          ## @pe_load_rsym
	.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, %r14
	movq	8(%rdi), %rax
	movq	_DFI_PE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rdi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rdx
	callq	_pe_find_section
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	leaq	-32(%rbp), %rdi
	callq	_image_map_section
	movq	%rax, %r15
	movq	_IMAGE_NO_MAP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	je	LBB0_3
## %bb.2:
	movl	(%r14), %ebx
	leaq	-32(%rbp), %rdi
	callq	_image_get_map_size
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_rsym_parse
	movq	%rax, %rbx
LBB0_3:
	leaq	-32(%rbp), %rdi
	callq	_image_unmap_section
LBB0_4:
	testq	%rbx, %rbx
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_TRACE
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DFI_PE,8,3                     ## @DFI_PE
	.comm	_FALSE,8,3                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".rossym"

	.comm	_IMAGE_NO_MAP,8,3               ## @IMAGE_NO_MAP
L_.str.1:                               ## @.str.1
	.asciz	"%s the RSYM debug info\n"

L_.str.2:                               ## @.str.2
	.asciz	"successfully loaded"

L_.str.3:                               ## @.str.3
	.asciz	"failed to load"

	.no_dead_strip	_pe_load_rsym
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pe_load_rsym
_pe_load_rsym:                          ; @pe_load_rsym
	.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
	mov	x20, x0
	ldr	x8, [x0, #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	x0, [x8]
Lloh3:
	adrp	x8, _FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh5:
	ldr	x19, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	bl	_pe_find_section
	cbz	x0, LBB0_4
; %bb.1:
	add	x0, sp, #8
	bl	_image_map_section
Lloh8:
	adrp	x8, _IMAGE_NO_MAP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IMAGE_NO_MAP@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
	mov	x21, x0
	ldr	w19, [x20]
	add	x0, sp, #8
	bl	_image_get_map_size
	mov	x3, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_rsym_parse
	mov	x19, x0
LBB0_3:
	add	x0, sp, #8
	bl	_image_unmap_section
LBB0_4:
Lloh11:
	adrp	x8, l_.str.2@PAGE
Lloh12:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh13:
	adrp	x9, l_.str.3@PAGE
Lloh14:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	x19, #0
	csel	x1, x9, x8, eq
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	mov	x0, x19
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DFI_PE,8,3                     ; @DFI_PE
	.comm	_FALSE,8,3                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".rossym"

	.comm	_IMAGE_NO_MAP,8,3               ; @IMAGE_NO_MAP
l_.str.1:                               ; @.str.1
	.asciz	"%s the RSYM debug info\n"

l_.str.2:                               ; @.str.2
	.asciz	"successfully loaded"

l_.str.3:                               ; @.str.3
	.asciz	"failed to load"

	.no_dead_strip	_pe_load_rsym
.subsections_via_symbols
