	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function note_tree_consolidate
_note_tree_consolidate:                 ## @note_tree_consolidate
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	testq	%rdi, %rdi
	setne	%al
	testq	%rsi, %rsi
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	(%r14), %rax
	movl	%ebx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rcx,8), %rdi
	callq	_CLR_PTR_TYPE
	xorl	%edi, %edi
	cmpq	%r15, %rax
	sete	%dil
	callq	_assert
	xorl	%ebx, %ebx
	movq	_PTR_TYPE_NULL@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	cmpq	$16, %rbx
	je	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_GET_PTR_TYPE
	cmpq	(%r12), %rax
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testq	%r13, %r13
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %r13
	jmp	LBB0_5
LBB0_6:
	testq	%r13, %r13
	je	LBB0_8
## %bb.7:
	movq	%r13, %rdi
	callq	_GET_PTR_TYPE
	movq	%rax, %rcx
	movq	_PTR_TYPE_NOTE@GOTPCREL(%rip), %rdx
	movl	$-2, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_9
LBB0_8:
	movq	(%r14), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, (%rax,%rcx,8)
	movq	%r15, %rdi
	callq	_free
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_3:
	movl	$-2, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTR_TYPE_NULL,8,3              ## @PTR_TYPE_NULL
	.comm	_PTR_TYPE_NOTE,8,3              ## @PTR_TYPE_NOTE
	.no_dead_strip	_note_tree_consolidate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function note_tree_consolidate
_note_tree_consolidate:                 ; @note_tree_consolidate
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	cmp	x0, #0
	ccmp	x1, #0, #4, ne
	cset	w0, ne
	bl	_assert
	ldr	x8, [x20]
	mov	w22, w21
	ldr	x0, [x8, w21, uxtw #3]
	bl	_CLR_PTR_TYPE
	cmp	x0, x19
	cset	w0, eq
	bl	_assert
	mov	x23, #0
	mov	x21, #0
Lloh0:
	adrp	x24, _PTR_TYPE_NULL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PTR_TYPE_NULL@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #8
	cmp	x23, #128
	b.eq	LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x0, [x8, x23]
	bl	_GET_PTR_TYPE
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbnz	x21, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	ldr	x21, [x8, x23]
	b	LBB0_1
LBB0_5:
	cbz	x21, LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_GET_PTR_TYPE
Lloh2:
	adrp	x8, _PTR_TYPE_NOTE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PTR_TYPE_NOTE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
LBB0_7:
	ldr	x8, [x20]
	str	x21, [x8, x22, lsl #3]
	mov	x0, x19
	bl	_free
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	mov	w0, #-2
LBB0_9:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PTR_TYPE_NULL,8,3              ; @PTR_TYPE_NULL
	.comm	_PTR_TYPE_NOTE,8,3              ; @PTR_TYPE_NOTE
	.no_dead_strip	_note_tree_consolidate
.subsections_via_symbols
