	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pack_bits
_pack_bits:                             ## @pack_bits
	.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	%rdx, %r12
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	16(%rdx), %rsi
	shll	$6, %r15d
	movslq	%r15d, %rax
	subq	%rax, %rsi
	movl	$64, %edi
	callq	_min
	movq	$0, -48(%rbp)
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movl	%eax, %r13d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	leaq	-52(%rbp), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	leaq	-48(%rbp), %rsi
	callq	_clear_bit
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	%ebx, %r13d
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r15,%rbx), %edi
	movl	8(%r12), %edx
	movq	%r14, %rsi
	callq	*(%r12)
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -52(%rbp)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	leaq	-48(%rbp), %rsi
	callq	_set_bit
	jmp	LBB0_6
LBB0_7:
	movq	-48(%rbp), %rbx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_8:
	movq	%rbx, %rdi
	callq	_cpu_to_le64
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pack_bits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pack_bits
_pack_bits:                             ; @pack_bits
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x2
	mov	x19, x1
	ldr	x8, [x2, #16]
	lsl	w23, w0, #6
	sub	x1, x8, w23, sxtw
	mov	w0, #64
	bl	_min
	str	xzr, [sp, #8]
	cbz	w0, LBB0_7
; %bb.1:
	mov	x21, x0
	mov	w22, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #8
	mov	x0, x22
	bl	_clear_bit
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w22, #1
	cmp	w21, w22
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	w0, w23, w22
	ldr	w2, [x20, #8]
	add	x1, sp, #4
	blr	x8
	cbnz	w0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #8
	mov	x0, x22
	bl	_set_bit
	b	LBB0_3
LBB0_7:
	mov	x0, #0
	b	LBB0_9
LBB0_8:
	ldr	x0, [sp, #8]
LBB0_9:
	bl	_cpu_to_le64
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
LBB0_10:
	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
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pack_bits
.subsections_via_symbols
