	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function reuse_partial_packfile_from_bitmap
LCPI0_0:
	.quad	0x3feccccccccccccd              ## double 0.90000000000000002
LCPI0_1:
	.quad	0x43e0000000000000              ## double 9.2233720368547758E+18
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_reuse_partial_packfile_from_bitmap
	.p2align	4, 0x90
_reuse_partial_packfile_from_bitmap:    ## @reuse_partial_packfile_from_bitmap
	.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	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	16(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_assert
	movq	(%rbx), %rax
	movl	$-1, %r13d
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rcx
	movq	_BITS_IN_EWORD@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, %r14
	imulq	%rdx, %r14
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rsi,4), %edi
	cmpl	$-1, %edi
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rsi
	subq	%rdx, %rbx
	cmpq	%rsi, %rax
	jne	LBB0_2
## %bb.5:
	testq	%r14, %r14
	jne	LBB0_6
	jmp	LBB0_11
LBB0_3:
	notl	%edi
	callq	_ewah_bit_ctz64
	movq	%rax, %r14
	subq	%rbx, %r14
	testq	%r14, %r14
	je	LBB0_11
LBB0_6:
	movq	8(%r15), %rax
	movq	(%rax), %rcx
	cmpq	%rcx, %r14
	jae	LBB0_7
## %bb.8:
	movq	16(%r15), %rdi
	callq	_bitmap_popcount
	mulsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %rax
	movq	%rax, %rcx
	subsd	LCPI0_1(%rip), %xmm0
	cvttsd2si	%xmm0, %rdx
	sarq	$63, %rcx
	andq	%rcx, %rdx
	orq	%rax, %rdx
	cmpq	%rdx, %r14
	jb	LBB0_11
## %bb.9:
	movq	%r14, (%r12)
	movq	%r14, (%r15)
	movq	8(%r15), %rax
	movq	8(%rax), %rcx
	movl	(%rcx,%r14,4), %ecx
	jmp	LBB0_10
LBB0_7:
	movq	%rcx, (%r12)
	movq	%rcx, (%r15)
	movl	$-1, %ecx
LBB0_10:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%r13d, %r13d
LBB0_11:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BITS_IN_EWORD,8,3              ## @BITS_IN_EWORD
	.comm	_stderr,4,2                     ## @stderr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reuse_partial_packfile_from_bitmap ; -- Begin function reuse_partial_packfile_from_bitmap
	.p2align	2
_reuse_partial_packfile_from_bitmap:    ; @reuse_partial_packfile_from_bitmap
	.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	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x23, [x0, #16]
	mov	x0, x23
	bl	_assert
	ldr	x8, [x23]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x24, #0
	ldr	x9, [x23, #8]
Lloh0:
	adrp	x10, _BITS_IN_EWORD@GOTPAGE
Lloh1:
	ldr	x10, [x10, _BITS_IN_EWORD@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	mul	x23, x8, x10
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9]
	cmn	w11, #1
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x24, x24, x10
	add	x9, x9, #4
	subs	x8, x8, #1
	b.ne	LBB0_2
; %bb.4:
	cbnz	x23, LBB0_6
	b	LBB0_8
LBB0_5:
	mvn	w0, w11
	bl	_ewah_bit_ctz64
	sub	x23, x0, x24
	cbz	x23, LBB0_8
LBB0_6:
	ldr	x8, [x21, #8]
	ldr	x9, [x8]
	cmp	x23, x9
	b.hs	LBB0_9
; %bb.7:
	ldr	x0, [x21, #16]
	bl	_bitmap_popcount
	mov	x8, #-3689348814741910324
	movk	x8, #52429
	movk	x8, #16364, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	fcvtzu	x8, d0
	cmp	x23, x8
	b.hs	LBB0_10
LBB0_8:
	mov	w0, #-1
	b	LBB0_12
LBB0_9:
	str	x9, [x22]
	str	x9, [x21]
	mov	w9, #-1
	b	LBB0_11
LBB0_10:
	str	x23, [x22]
	str	x23, [x21]
	ldr	x8, [x21, #8]
	ldr	x9, [x8, #8]
	ldr	w9, [x9, x23, lsl #2]
LBB0_11:
	mov	w0, #0
	str	w9, [x19]
	str	x8, [x20]
LBB0_12:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BITS_IN_EWORD,8,3              ; @BITS_IN_EWORD
	.comm	_stderr,4,2                     ; @stderr
.subsections_via_symbols
