	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dwarf2_find_attribute
_dwarf2_find_attribute:                 ## @dwarf2_find_attribute
	.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	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_attr_direct@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, 4(%rcx)
	movq	_FALSE@GOTPCREL(%rip), %rax
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.1:
	movl	%edx, %r12d
	movq	_DW_AT_abstract_origin@GOTPCREL(%rip), %rdi
	movq	_DW_AT_specification@GOTPCREL(%rip), %r8
	xorl	%r15d, %r15d
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	8(%rsi), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_17
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	(%rcx), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
	movl	%r13d, %r15d
	movq	%r14, %rsi
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=2
	incl	%r13d
	movq	8(%r14), %r14
	testq	%r14, %r14
	je	LBB0_14
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14), %edx
	cmpl	%r12d, %edx
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	(%rdi), %rax
	cmpq	%rdx, %rax
	setne	%cl
	cmpq	%rdx, (%r8)
	setne	%bl
	testb	%bl, %cl
	jne	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	_DW_AT_sibling@GOTPCREL(%rip), %rcx
	cmpl	%r12d, (%rcx)
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	(%rsi), %esi
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_FIXME
	movq	_DW_AT_specification@GOTPCREL(%rip), %r8
	movq	%rbx, %rdi
	movl	(%r14), %edx
	movq	(%rbx), %rax
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	_attr_specification@GOTPCREL(%rip), %rcx
	cmpq	%rdx, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	_attr_abstract_origin@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	%r15d, %ecx
	movl	(%rax,%rcx,4), %edx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%rdi, %r13
	movq	%r14, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_dwarf2_fill_attr
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_sparse_array_find
	movq	_DW_AT_specification@GOTPCREL(%rip), %r8
	movq	%r13, %rdi
	movq	%rax, %rsi
	testq	%rax, %rax
	jne	LBB0_2
## %bb.16:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_FIXME
LBB0_17:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_5:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	%r13d, %ecx
	movl	(%rax,%rcx,4), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_dwarf2_fill_attr
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_attr_direct,4,2                ## @attr_direct
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_DW_AT_abstract_origin,8,3      ## @DW_AT_abstract_origin
	.comm	_DW_AT_specification,8,3        ## @DW_AT_specification
	.comm	_DW_AT_sibling,4,2              ## @DW_AT_sibling
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"two references %lx and %lx\n"

	.comm	_attr_abstract_origin,4,2       ## @attr_abstract_origin
	.comm	_attr_specification,4,2         ## @attr_specification
L_.str.1:                               ## @.str.1
	.asciz	"Should have found the debug info entry\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dwarf2_find_attribute
_dwarf2_find_attribute:                 ; @dwarf2_find_attribute
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _attr_direct@GOTPAGE
Lloh1:
	ldr	x8, [x8, _attr_direct@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x3, #4]
	cbz	x1, LBB0_13
; %bb.1:
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	w25, #0
Lloh3:
	adrp	x26, _DW_AT_abstract_origin@GOTPAGE
Lloh4:
	ldr	x26, [x26, _DW_AT_abstract_origin@GOTPAGEOFF]
Lloh5:
	adrp	x27, _DW_AT_specification@GOTPAGE
Lloh6:
	ldr	x27, [x27, _DW_AT_specification@GOTPAGEOFF]
Lloh7:
	adrp	x28, _DW_AT_sibling@GOTPAGE
Lloh8:
	ldr	x28, [x28, _DW_AT_sibling@GOTPAGEOFF]
Lloh9:
	adrp	x20, _attr_specification@GOTPAGE
Lloh10:
	ldr	x20, [x20, _attr_specification@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x8, [x22, #8]
	ldr	x24, [x8]
	cbz	x24, LBB0_13
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x1, #0
	mov	w23, #0
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=2
	cmp	x9, x8
Lloh11:
	adrp	x8, _attr_abstract_origin@GOTPAGE
Lloh12:
	ldr	x8, [x8, _attr_abstract_origin@GOTPAGEOFF]
	csel	x8, x8, x20, eq
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x25, x23
	mov	x1, x24
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	w23, w23, #1
	ldr	x24, [x24, #8]
	cbz	x24, LBB0_10
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x24]
	cmp	w8, w21
	b.eq	LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x9, [x26]
	ldr	x10, [x27]
	cmp	x10, x8
	ccmp	x9, x8, #4, ne
	ldr	w10, [x28]
	ccmp	w10, w21, #4, eq
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	cbz	x1, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w9, [x1]
	stp	x9, x8, [sp]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
	ldr	w8, [x24]
	ldr	x9, [x26]
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	x1, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22]
	ldr	w2, [x8, w25, uxtw #2]
	ldr	x22, [sp, #24]                  ; 8-byte Folded Reload
	mov	x0, x22
	mov	x3, x19
	bl	_dwarf2_fill_attr
	ldr	w1, [x19]
	mov	x0, x22
	bl	_sparse_array_find
	mov	x22, x0
	cbnz	x0, LBB0_2
; %bb.12:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
LBB0_13:
Lloh17:
	adrp	x8, _FALSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
	ldr	x8, [x22]
	ldr	w2, [x8, w23, uxtw #2]
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x1, x24
	mov	x3, x19
	bl	_dwarf2_fill_attr
Lloh19:
	adrp	x8, _TRUE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_attr_direct,4,2                ; @attr_direct
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_DW_AT_abstract_origin,8,3      ; @DW_AT_abstract_origin
	.comm	_DW_AT_specification,8,3        ; @DW_AT_specification
	.comm	_DW_AT_sibling,4,2              ; @DW_AT_sibling
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"two references %lx and %lx\n"

	.comm	_attr_abstract_origin,4,2       ; @attr_abstract_origin
	.comm	_attr_specification,4,2         ; @attr_specification
l_.str.1:                               ; @.str.1
	.asciz	"Should have found the debug info entry\n"

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