	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_unresolved_deltas_1
_find_unresolved_deltas_1:              ## @find_unresolved_deltas_1
	.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
	movq	%rdi, %r15
	movl	(%rdi), %eax
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.1:
	movl	$-1, %eax
	cmpl	$-1, 4(%r15)
	jne	LBB0_6
## %bb.2:
	movq	%rsi, %r14
	leaq	4(%r15), %rbx
	movq	24(%r15), %rdi
	addq	$12, %rdi
	leaq	8(%r15), %rsi
	movq	_OBJ_REF_DELTA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdx
	callq	_find_ref_delta_children
	movq	24(%r15), %rax
	movl	8(%rax), %edi
	leaq	16(%r15), %rsi
	movq	_OBJ_OFS_DELTA@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rbx, %rdx
	callq	_find_ofs_delta_children
	cmpl	$-1, (%r15)
	jne	LBB0_5
## %bb.3:
	cmpl	$-1, (%rbx)
	je	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_link_base_data
	movl	(%r15), %eax
LBB0_6:
	movq	8(%r15), %rcx
	cltq
	cmpq	%rax, %rcx
	jbe	LBB0_7
## %bb.13:
	movq	16(%r15), %rax
	movslq	4(%r15), %rcx
	cmpq	%rcx, %rax
	jbe	LBB0_14
## %bb.17:
	movq	%r15, %rdi
	callq	_unlink_base_data
LBB0_18:
	xorl	%r14d, %r14d
	jmp	LBB0_19
LBB0_7:
	movq	_objects@GOTPCREL(%rip), %rax
	movq	_ref_deltas@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movslq	(%rdx,%rcx,4), %rbx
	shlq	$3, %rbx
	addq	(%rax), %rbx
	xorl	%eax, %eax
	callq	_alloc_base_data
	movq	%rax, %r14
	movq	_OBJ_REF_DELTA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%r15), %rax
	movq	(%rax), %rdx
	movq	%rbx, %rdi
	callq	_compare_and_swap_type
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rdi
	callq	_BUG
LBB0_9:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_resolve_delta
	movq	8(%r15), %rax
	movslq	(%r15), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_12
## %bb.10:
	cmpl	$-1, 4(%r15)
	jne	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_free_base_data
	movq	8(%r15), %rax
LBB0_12:
	incq	%rax
	movq	%rax, 8(%r15)
	jmp	LBB0_19
LBB0_14:
	movq	_objects@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	movq	_ofs_deltas@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%rcx,%rax,4), %rbx
	leaq	(,%rbx,8), %r12
	addq	%r13, %r12
	xorl	%eax, %eax
	callq	_alloc_base_data
	movq	%rax, %r14
	movq	(%r13,%rbx,8), %rax
	movq	_OBJ_OFS_DELTA@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	24(%r15), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13,%rbx,8)
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_resolve_delta
	movq	16(%r15), %rax
	movslq	4(%r15), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_16
## %bb.15:
	movq	%r15, %rdi
	callq	_free_base_data
	movq	16(%r15), %rax
LBB0_16:
	incq	%rax
	movq	%rax, 16(%r15)
LBB0_19:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	32(%r15), %edi
	callq	_free
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJ_REF_DELTA,4,2              ## @OBJ_REF_DELTA
	.comm	_OBJ_OFS_DELTA,8,3              ## @OBJ_OFS_DELTA
	.comm	_objects,8,3                    ## @objects
	.comm	_ref_deltas,8,3                 ## @ref_deltas
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"child->real_type != OBJ_REF_DELTA"

	.comm	_ofs_deltas,8,3                 ## @ofs_deltas
	.no_dead_strip	_find_unresolved_deltas_1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_unresolved_deltas_1
_find_unresolved_deltas_1:              ; @find_unresolved_deltas_1
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w8, [x0]
	cmn	w8, #1
	b.ne	LBB0_6
; %bb.1:
	mov	x21, x19
	ldr	w8, [x21, #4]!
	cmn	w8, #1
	b.eq	LBB0_3
; %bb.2:
	mov	w8, #-1
	b	LBB0_6
LBB0_3:
	mov	x20, x1
	ldr	x8, [x19, #24]
	add	x0, x8, #12
	add	x1, x19, #8
Lloh0:
	adrp	x8, _OBJ_REF_DELTA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OBJ_REF_DELTA@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x2, x19
	bl	_find_ref_delta_children
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #8]
	add	x1, x19, #16
Lloh3:
	adrp	x8, _OBJ_OFS_DELTA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OBJ_OFS_DELTA@GOTPAGEOFF]
Lloh5:
	ldr	x3, [x8]
	mov	x2, x21
	bl	_find_ofs_delta_children
	ldr	w8, [x19]
	cmn	w8, #1
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [x21]
	cmn	w8, #1
	b.eq	LBB0_20
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	bl	_link_base_data
	ldr	w8, [x19]
LBB0_6:
	ldr	x9, [x19, #8]
	cmp	x9, w8, sxtw
	b.ls	LBB0_10
; %bb.7:
	ldr	x8, [x19, #16]
	ldrsw	x9, [x19, #4]
	cmp	x8, x9
	b.ls	LBB0_16
; %bb.8:
	mov	x0, x19
	bl	_unlink_base_data
LBB0_9:
	mov	x20, #0
	b	LBB0_19
LBB0_10:
Lloh6:
	adrp	x8, _objects@GOTPAGE
Lloh7:
	ldr	x8, [x8, _objects@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x10, _ref_deltas@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ref_deltas@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	ldrsw	x9, [x10, x9, lsl #2]
	add	x21, x8, x9, lsl #3
	bl	_alloc_base_data
	mov	x20, x0
Lloh12:
	adrp	x8, _OBJ_REF_DELTA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OBJ_REF_DELTA@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	x8, [x19, #24]
	ldr	x2, [x8]
	mov	x0, x21
	bl	_compare_and_swap_type
	cbnz	w0, LBB0_12
; %bb.11:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BUG
LBB0_12:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_resolve_delta
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.13:
	ldr	w9, [x19, #4]
	cmn	w9, #1
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_free_base_data
	ldr	x8, [x19, #8]
LBB0_15:
	add	x8, x8, #1
	str	x8, [x19, #8]
	b	LBB0_19
LBB0_16:
Lloh17:
	adrp	x9, _objects@GOTPAGE
Lloh18:
	ldr	x9, [x9, _objects@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
Lloh20:
	adrp	x10, _ofs_deltas@GOTPAGE
Lloh21:
	ldr	x10, [x10, _ofs_deltas@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
	ldrsw	x8, [x10, x8, lsl #2]
	add	x21, x9, x8, lsl #3
	bl	_alloc_base_data
	mov	x20, x0
	ldr	x8, [x21]
Lloh23:
	adrp	x9, _OBJ_OFS_DELTA@GOTPAGE
Lloh24:
	ldr	x9, [x9, _OBJ_OFS_DELTA@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	str	x8, [x21]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_resolve_delta
	ldr	x8, [x19, #16]
	ldrsw	x9, [x19, #4]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_free_base_data
	ldr	x8, [x19, #16]
LBB0_18:
	add	x8, x8, #1
	str	x8, [x19, #16]
LBB0_19:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_20:
	ldr	w0, [x19, #32]
	bl	_free
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_OBJ_REF_DELTA,4,2              ; @OBJ_REF_DELTA
	.comm	_OBJ_OFS_DELTA,8,3              ; @OBJ_OFS_DELTA
	.comm	_objects,8,3                    ; @objects
	.comm	_ref_deltas,8,3                 ; @ref_deltas
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"child->real_type != OBJ_REF_DELTA"

	.comm	_ofs_deltas,8,3                 ; @ofs_deltas
	.no_dead_strip	_find_unresolved_deltas_1
.subsections_via_symbols
