	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_ref_note
_read_ref_note:                         ## @read_ref_note
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_notes_ref@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_init_notes
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_get_note
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	leaq	-28(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%rax, %rdi
	callq	_read_object_file
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	cmpq	$0, -40(%rbp)
	je	LBB0_5
## %bb.4:
	movl	-28(%rbp), %eax
	movq	_OBJ_BLOB@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
LBB0_5:
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_error
	movq	%r14, %rdi
	callq	_FREE_AND_NULL
	jmp	LBB0_6
LBB0_2:
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	callq	_error
LBB0_6:
	xorl	%edi, %edi
	callq	_free_notes
LBB0_7:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_notes_ref,4,2                  ## @notes_ref
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Empty notes tree. %s"

	.comm	_OBJ_BLOB,4,2                   ## @OBJ_BLOB
L_.str.1:                               ## @.str.1
	.asciz	"Note contains unusable content. Is something else using this notes tree? %s"

	.no_dead_strip	_read_ref_note
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_ref_note
_read_ref_note:                         ; @read_ref_note
	.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
Lloh0:
	adrp	x20, _notes_ref@GOTPAGE
Lloh1:
	ldr	x20, [x20, _notes_ref@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, #0
	mov	x2, #0
	mov	w3, #0
	bl	_init_notes
	mov	x0, #0
	mov	x1, x19
	bl	_get_note
	cbz	x0, LBB0_5
; %bb.1:
	add	x1, sp, #4
	add	x2, sp, #8
	bl	_read_object_file
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w8, [sp, #4]
Lloh2:
	adrp	x9, _OBJ_BLOB@GOTPAGE
Lloh3:
	ldr	x9, [x9, _OBJ_BLOB@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_7
LBB0_4:
	ldr	w1, [x20]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
	mov	x0, x19
	bl	_FREE_AND_NULL
	b	LBB0_7
LBB0_5:
	mov	x19, #0
	b	LBB0_8
LBB0_6:
	ldr	w1, [x20]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_7:
	mov	x0, #0
	bl	_free_notes
LBB0_8:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_notes_ref,4,2                  ; @notes_ref
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Empty notes tree. %s"

	.comm	_OBJ_BLOB,4,2                   ; @OBJ_BLOB
l_.str.1:                               ; @.str.1
	.asciz	"Note contains unusable content. Is something else using this notes tree? %s"

	.no_dead_strip	_read_ref_note
.subsections_via_symbols
