	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pack_array                     ## -- Begin function pack_array
	.p2align	4, 0x90
_pack_array:                            ## @pack_array
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	jle	LBB0_20
## %bb.1:
	movl	%esi, %r8d
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdi,%rdx,8)
	je	LBB0_3
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	cmpq	%rdx, %r8
	jne	LBB0_2
	jmp	LBB0_20
LBB0_3:
	leal	1(%rdx), %eax
	cmpl	%esi, %eax
	jge	LBB0_4
## %bb.5:
	movl	%edx, %eax
	notl	%eax
	addl	%r8d, %eax
	leaq	-2(%r8), %r9
	testb	$1, %al
	jne	LBB0_7
## %bb.6:
	leaq	1(%rdx), %rax
	movl	%edx, %r10d
	cmpq	%rdx, %r9
	jne	LBB0_14
LBB0_12:
	cmpl	%r8d, %r10d
	jge	LBB0_20
LBB0_13:
	movslq	%r10d, %rax
	leaq	(%rdi,%rax,8), %rdi
	notl	%r10d
	addl	%esi, %r10d
	leaq	8(,%r10,8), %rsi
	callq	___bzero
	popq	%rbp
	retq
LBB0_4:
	movl	%edx, %r10d
	cmpl	%r8d, %r10d
	jl	LBB0_13
LBB0_20:
	popq	%rbp
	retq
LBB0_7:
	movq	8(%rdi,%rdx,8), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	leal	1(%rdx), %r10d
	movq	%rax, (%rdi,%rdx,8)
	jmp	LBB0_10
LBB0_8:
	movl	%edx, %r10d
LBB0_10:
	leaq	2(%rdx), %rax
	cmpq	%rdx, %r9
	jne	LBB0_14
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	addq	$2, %rax
	cmpq	%rax, %r8
	je	LBB0_12
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rax,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movslq	%r10d, %rcx
	incl	%r10d
	movq	%rdx, (%rdi,%rcx,8)
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	8(%rdi,%rax,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movslq	%r10d, %rcx
	incl	%r10d
	movq	%rdx, (%rdi,%rcx,8)
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pack_array                     ; -- Begin function pack_array
	.p2align	2
_pack_array:                            ; @pack_array
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cmp	w1, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x8, #0
	mov	w9, w1
	mov	x11, #-8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x0, x8, lsl #3]
	cbz	x10, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	sub	x11, x11, #8
	cmp	x9, x8
	b.ne	LBB0_2
LBB0_4:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	add	w10, w8, #1
	cmp	w10, w1
	b.ge	LBB0_10
; %bb.6:
	mvn	x10, x8
	add	x10, x10, x9
	sub	x11, x0, x11
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x11, x11, #8
	subs	x10, x10, #1
	b.eq	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11]
	cbz	x12, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	str	x12, [x0, w8, sxtw #3]
	add	w8, w8, #1
                                        ; kill: def $w8 killed $w8 def $x8
	b	LBB0_7
LBB0_10:
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.11:
	add	x0, x0, w8, sxtw #3
	mvn	w8, w8
	add	w8, w8, w1
	lsl	x8, x8, #3
	add	x1, x8, #8
	bl	_bzero
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
