	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_addr2sym                  ## -- Begin function proc_addr2sym
	.p2align	4, 0x90
_proc_addr2sym:                         ## @proc_addr2sym
	.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	%r8, %r12
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, %rbx
	callq	__proc_addr2map
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_open_object
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%r14), %rsi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
LBB0_2:
	callq	_DPRINTFX
	movl	$-1, %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	24(%r14), %r13
	movq	16(%r13), %rax
	movq	_ET_DYN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_6
## %bb.11:
	movq	8(%r14), %r15
	subq	16(%r14), %r15
	cmpq	%rbx, %r15
	jbe	LBB0_7
## %bb.12:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_6:
	xorl	%r15d, %r15d
LBB0_7:
	subq	%r15, %rbx
	movl	4(%r13), %edi
	leaq	8(%r13), %rsi
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdx
	movq	%r12, %r8
	callq	_lookup_symbol_by_addr
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.8:
	movl	4(%r13), %edi
	leaq	-48(%rbp), %rcx
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movq	%r12, %r8
	callq	_lookup_symbol_by_addr
LBB0_9:
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	addq	%r15, (%r12)
	movq	-48(%rbp), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_demangle
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR: proc_addr2map failed to resolve 0x%jx"

L_.str.1:                               ## @.str.1
	.asciz	"ERROR: failed to open object %s"

	.comm	_ET_DYN,8,3                     ## @ET_DYN
	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_addr2sym                  ; -- Begin function proc_addr2sym
	.p2align	2
_proc_addr2sym:                         ; @proc_addr2sym
	.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, x4
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
	bl	__proc_addr2map
	cbz	x0, LBB0_3
; %bb.1:
	mov	x24, x0
	bl	_open_object
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x1, [x24]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
LBB0_4:
	bl	_DPRINTFX
	mov	w0, #-1
LBB0_5:
	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
LBB0_6:
	ldr	x22, [x24, #24]
	ldr	x8, [x22, #16]
Lloh4:
	adrp	x9, _ET_DYN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ET_DYN@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:
	ldp	x8, x9, [x24, #8]
	sub	x24, x8, x9
	cmp	x24, x23
	b.ls	LBB0_10
; %bb.8:
Lloh7:
	adrp	x8, _ENOENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_9:
	mov	x24, #0
LBB0_10:
	sub	x23, x23, x24
	ldr	w0, [x22, #4]
	add	x1, x22, #8
	add	x3, sp, #8
	mov	x2, x23
	mov	x4, x21
	bl	_lookup_symbol_by_addr
Lloh10:
	adrp	x8, _ENOENT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_12
; %bb.11:
	ldr	w0, [x22, #4]
	add	x3, sp, #8
	mov	x1, x22
	mov	x2, x23
	mov	x4, x21
	bl	_lookup_symbol_by_addr
LBB0_12:
	cbnz	w0, LBB0_5
; %bb.13:
	ldr	x8, [x21]
	add	x8, x8, x24
	str	x8, [x21]
	ldr	x0, [sp, #8]
	mov	x1, x20
	mov	x2, x19
	bl	_demangle
	mov	w0, #0
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR: proc_addr2map failed to resolve 0x%jx"

l_.str.1:                               ; @.str.1
	.asciz	"ERROR: failed to open object %s"

	.comm	_ET_DYN,8,3                     ; @ET_DYN
	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
