	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf_load_debug_info            ## -- Begin function elf_load_debug_info
	.p2align	4, 0x90
_elf_load_debug_info:                   ## @elf_load_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_DMT_ELF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	16(%rbx), %rax
	movq	_DFI_ELF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r12
	testq	%r12, %r12
	je	LBB0_3
## %bb.2:
	cmpq	$0, (%r12)
	je	LBB0_3
## %bb.4:
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	movl	$65536, %esi                    ## imm = 0x10000
	callq	_pool_init
	leaq	-40(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$256, %edx                      ## imm = 0x100
	callq	_hash_table_init
	movq	(%r12), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_elf_load_debug_info_from_map
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_pool_destroy
	jmp	LBB0_5
LBB0_3:
	movl	8(%rbx), %edi
	callq	_debugstr_w
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_ERR
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_DMT_ELF,8,3                    ## @DMT_ELF
	.comm	_DFI_ELF,8,3                    ## @DFI_ELF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad elf module '%s'\n"

	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf_load_debug_info            ; -- Begin function elf_load_debug_info
	.p2align	2
_elf_load_debug_info:                   ; @elf_load_debug_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _DMT_ELF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DMT_ELF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x9, _DFI_ELF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DFI_ELF@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x20, [x8, x9, lsl #3]
	cbz	x20, LBB0_4
; %bb.2:
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.3:
	add	x0, sp, #8
	mov	w1, #65536
	bl	_pool_init
	add	x0, sp, #8
	mov	x1, sp
	mov	w2, #256
	bl	_hash_table_init
	ldr	x1, [x20]
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x19
	bl	_elf_load_debug_info_from_map
	mov	x19, x0
	add	x0, sp, #8
	bl	_pool_destroy
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19, #8]
	bl	_debugstr_w
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERR
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_DMT_ELF,8,3                    ; @DMT_ELF
	.comm	_DFI_ELF,8,3                    ; @DFI_ELF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad elf module '%s'\n"

	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
