	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resolve_delta
_resolve_delta:                         ## @resolve_delta
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_show_stat@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.1:
	movq	_objects@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r12, %rcx
	subq	%rax, %rcx
	movq	8(%r15), %rbx
	subq	%rax, %rbx
	shrq	$4, %rbx
	movq	_obj_stat@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rdx
	shlq	$4, %rdx
	movq	(%rax,%rdx), %rdx
	incq	%rdx
	shrq	$4, %rcx
	movslq	%ecx, %r13
	shlq	$4, %r13
	movq	%rdx, (%rax,%r13)
	xorl	%eax, %eax
	callq	_deepest_delta_lock
	movq	_deepest_delta@GOTPCREL(%rip), %rax
	movq	_obj_stat@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r13), %rcx
	cmpq	%rcx, (%rax)
	jge	LBB0_3
## %bb.2:
	movq	%rcx, (%rax)
LBB0_3:
	xorl	%eax, %eax
	callq	_deepest_delta_unlock
	movq	_obj_stat@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, 8(%rax,%r13)
LBB0_4:
	movq	%r12, %rdi
	callq	_get_data_from_pack
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_get_base_data
	movq	%r12, 8(%r14)
	movl	(%r15), %esi
	movl	12(%r12), %ecx
	movq	%rax, %rdi
	movq	%rbx, %rdx
	movq	%r14, %r8
	callq	_patch_delta
	movl	%eax, 4(%r14)
	movq	%rbx, %rdi
	callq	_free
	movl	4(%r14), %ebx
	testl	%ebx, %ebx
	jne	LBB0_6
## %bb.5:
	movl	4(%r12), %ebx
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_bad_object
	movl	4(%r14), %ebx
LBB0_6:
	movl	(%r14), %r15d
	movl	8(%r12), %edi
	callq	_type_name
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	movq	%r12, %rcx
	callq	_hash_object_file
	movl	(%r14), %edx
	movl	4(%r14), %edi
	movl	8(%r12), %ecx
	xorl	%esi, %esi
	movq	%r12, %r8
	callq	_sha1_object
	xorl	%eax, %eax
	callq	_counter_lock
	movq	_nr_resolved_deltas@GOTPCREL(%rip), %rax
	incl	(%rax)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_counter_unlock                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_show_stat,8,3                  ## @show_stat
	.comm	_objects,8,3                    ## @objects
	.comm	_obj_stat,8,3                   ## @obj_stat
	.comm	_deepest_delta,8,3              ## @deepest_delta
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to apply delta"

	.comm	_nr_resolved_deltas,4,2         ## @nr_resolved_deltas
	.no_dead_strip	_resolve_delta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resolve_delta
_resolve_delta:                         ; @resolve_delta
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _show_stat@GOTPAGE
Lloh1:
	ldr	x8, [x8, _show_stat@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _objects@GOTPAGE
Lloh4:
	ldr	x8, [x8, _objects@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	sub	x9, x19, x8
	ldr	x10, [x21, #8]
Lloh6:
	adrp	x22, _obj_stat@GOTPAGE
Lloh7:
	ldr	x22, [x22, _obj_stat@GOTPAGEOFF]
	sub	x8, x10, x8
	ldr	x10, [x22]
	sbfx	x11, x8, #4, #32
	lsl	x11, x11, #4
	ldr	x11, [x10, x11]
	lsr	x23, x8, #4
	add	x8, x11, #1
	sbfx	x24, x9, #4, #32
	lsl	x25, x24, #4
	str	x8, [x10, x25]
	bl	_deepest_delta_lock
Lloh8:
	adrp	x8, _deepest_delta@GOTPAGE
Lloh9:
	ldr	x8, [x8, _deepest_delta@GOTPAGEOFF]
	ldr	x10, [x8]
	ldr	x9, [x22]
	ldr	x9, [x9, x25]
	cmp	x10, x9
	b.ge	LBB0_3
; %bb.2:
	str	x9, [x8]
LBB0_3:
	bl	_deepest_delta_unlock
	ldr	x8, [x22]
	add	x8, x8, x24, lsl #4
	str	w23, [x8, #8]
LBB0_4:
	mov	x0, x19
	bl	_get_data_from_pack
	mov	x22, x0
	mov	x0, x21
	bl	_get_base_data
	str	x19, [x20, #8]
	ldr	w1, [x21]
	ldr	w3, [x19, #12]
	mov	x2, x22
	mov	x4, x20
	bl	_patch_delta
	str	w0, [x20, #4]
	mov	x0, x22
	bl	_free
	ldr	w21, [x20, #4]
	cbnz	w21, LBB0_6
; %bb.5:
	ldr	w21, [x19, #4]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x21
	bl	_bad_object
	ldr	w21, [x20, #4]
LBB0_6:
	ldr	w22, [x20]
	ldr	w0, [x19, #8]
	bl	_type_name
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	mov	x3, x19
	bl	_hash_object_file
	ldp	w2, w0, [x20]
	ldr	w3, [x19, #8]
	mov	x1, #0
	mov	x4, x19
	bl	_sha1_object
	bl	_counter_lock
Lloh12:
	adrp	x8, _nr_resolved_deltas@GOTPAGE
Lloh13:
	ldr	x8, [x8, _nr_resolved_deltas@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_counter_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_show_stat,8,3                  ; @show_stat
	.comm	_objects,8,3                    ; @objects
	.comm	_obj_stat,8,3                   ; @obj_stat
	.comm	_deepest_delta,8,3              ; @deepest_delta
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to apply delta"

	.comm	_nr_resolved_deltas,4,2         ; @nr_resolved_deltas
	.no_dead_strip	_resolve_delta
.subsections_via_symbols
