	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zzrealloc_ushort_mask          ## -- Begin function zzrealloc_ushort_mask
	.p2align	4, 0x90
_zzrealloc_ushort_mask:                 ## @zzrealloc_ushort_mask
	.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
	movl	%ecx, %ebx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	testl	%edx, %edx
	je	LBB0_10
## %bb.1:
	movl	%edx, %r15d
	movl	%edx, %edi
	callq	_popcount_short
	imull	%ebx, %eax
	movl	%eax, %edi
	callq	_zzmalloc0
	testq	%rax, %rax
	je	LBB0_14
## %bb.2:
	movq	%rax, %r13
	testq	%r12, %r12
	je	LBB0_15
## %bb.3:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r13d
	orl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	addl	%ebx, %r14d
	testl	%r13d, %r13d
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %eax
	negl	%eax
	andl	%r13d, %eax
	xorl	%eax, %r13d
	testl	%r15d, %eax
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r12d, %rdi
	addq	-56(%rbp), %rdi                 ## 8-byte Folded Reload
	movslq	%r14d, %r14
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14), %rsi
	movl	%ebx, %edx
	callq	_memcpy
	addl	%ebx, %r14d
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	addl	%ebx, %r12d
	testl	%r13d, %r13d
	jne	LBB0_5
LBB0_9:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_10:
	testq	%r12, %r12
	je	LBB0_14
## %bb.11:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_popcount_short
	movl	%eax, %r14d
	imull	%ebx, %r14d
	xorl	%r13d, %r13d
LBB0_12:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_zzfree
	jmp	LBB0_15
LBB0_14:
	xorl	%r13d, %r13d
LBB0_15:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zzrealloc_ushort_mask          ; -- Begin function zzrealloc_ushort_mask
	.p2align	2
_zzrealloc_ushort_mask:                 ; @zzrealloc_ushort_mask
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x22, x1
	mov	x19, x0
	cbz	w2, LBB0_9
; %bb.1:
	mov	x23, x2
	mov	x0, x2
	bl	_popcount_short
	mul	w0, w0, w21
	bl	_zzmalloc0
	mov	x20, x0
	cbz	x0, LBB0_13
; %bb.2:
	cbz	x19, LBB0_13
; %bb.3:
	mov	w25, #0
	mov	w24, #0
	orr	w26, w23, w22
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w24, w24, w21
	eor	w26, w27, w26
	cbz	w26, LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	neg	w8, w26
	and	w27, w26, w8
	tst	w27, w23
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	tst	w27, w22
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x20, w25, sxtw
	add	x1, x19, w24, sxtw
	mov	x2, x21
	bl	_memcpy
	add	w24, w24, w21
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w25, w25, w21
	eor	w26, w27, w26
	cbnz	w26, LBB0_5
	b	LBB0_11
LBB0_9:
	cbz	x19, LBB0_12
; %bb.10:
	mov	x0, x22
	bl	_popcount_short
	mov	x20, #0
	mul	w24, w0, w21
LBB0_11:
	mov	x0, x19
	mov	x1, x24
	bl	_zzfree
	b	LBB0_13
LBB0_12:
	mov	x20, #0
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
