	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mask_spec
_mask_spec:                             ## @mask_spec
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.1:
	xorl	%r9d, %r9d
	cmpq	$8, %rdx
	jae	LBB0_2
LBB0_14:
	movl	%r9d, %r8d
	incq	%r8
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%rcx,4), %eax
	andl	%eax, (%rsi,%rcx,4)
	leal	(%r8,%rcx), %eax
	incq	%rcx
	cmpq	%rdx, %rax
	jb	LBB0_15
LBB0_16:
	popq	%rbp
	retq
LBB0_2:
	leaq	-1(%rdx), %rax
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.3:
	shrq	$32, %rax
	jne	LBB0_14
## %bb.4:
	leaq	(%rdi,%rdx,4), %rax
	cmpq	%rsi, %rax
	jbe	LBB0_6
## %bb.5:
	leaq	(%rsi,%rdx,4), %rax
	cmpq	%rdi, %rax
	ja	LBB0_14
LBB0_6:
	movq	%rdx, %r9
	andq	$-8, %r9
	leaq	-8(%r9), %rax
	movq	%rax, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%r8, %rax
	andq	$-2, %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rdi,%rcx,4), %xmm0
	movups	16(%rdi,%rcx,4), %xmm1
	movups	(%rsi,%rcx,4), %xmm2
	andps	%xmm0, %xmm2
	movups	16(%rsi,%rcx,4), %xmm0
	andps	%xmm1, %xmm0
	movups	32(%rsi,%rcx,4), %xmm1
	movups	48(%rsi,%rcx,4), %xmm3
	movups	%xmm2, (%rsi,%rcx,4)
	movups	%xmm0, 16(%rsi,%rcx,4)
	movups	32(%rdi,%rcx,4), %xmm0
	andps	%xmm1, %xmm0
	movups	48(%rdi,%rcx,4), %xmm1
	andps	%xmm3, %xmm1
	movups	%xmm0, 32(%rsi,%rcx,4)
	movups	%xmm1, 48(%rsi,%rcx,4)
	addq	$16, %rcx
	addq	$-2, %rax
	jne	LBB0_9
## %bb.10:
	testb	$1, %r8b
	je	LBB0_12
LBB0_11:
	movups	(%rdi,%rcx,4), %xmm0
	movups	16(%rdi,%rcx,4), %xmm1
	movups	(%rsi,%rcx,4), %xmm2
	andps	%xmm0, %xmm2
	movups	16(%rsi,%rcx,4), %xmm0
	andps	%xmm1, %xmm0
	movups	%xmm2, (%rsi,%rcx,4)
	movups	%xmm0, 16(%rsi,%rcx,4)
LBB0_12:
	cmpq	%rdx, %r9
	je	LBB0_16
## %bb.13:
	leaq	(%rdi,%r9,4), %rdi
	leaq	(%rsi,%r9,4), %rsi
	jmp	LBB0_14
LBB0_7:
	xorl	%ecx, %ecx
	testb	$1, %r8b
	jne	LBB0_11
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mask_spec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mask_spec
_mask_spec:                             ; @mask_spec
	.cfi_startproc
; %bb.0:
	cbz	x2, LBB0_6
; %bb.1:
	cmp	x2, #16
	b.hs	LBB0_7
LBB0_2:
	mov	w10, #0
LBB0_3:
	mov	x8, x0
	mov	x9, x1
LBB0_4:
	add	w10, w10, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8], #4
	ldr	w12, [x9]
	and	w11, w12, w11
	str	w11, [x9], #4
	mov	w11, w10
	add	w10, w10, #1
	cmp	x11, x2
	b.lo	LBB0_5
LBB0_6:
	ret
LBB0_7:
	mov	w10, #0
	sub	x8, x2, #1
	cmn	w8, #1
	b.eq	LBB0_3
; %bb.8:
	lsr	x8, x8, #32
	cbnz	x8, LBB0_3
; %bb.9:
	lsl	x8, x2, #2
	add	x9, x0, x8
	cmp	x9, x1
	b.ls	LBB0_11
; %bb.10:
	add	x8, x1, x8
	cmp	x8, x0
	b.hi	LBB0_2
LBB0_11:
	and	x10, x2, #0xfffffffffffffff0
	lsl	x9, x10, #2
	add	x8, x0, x9
	add	x9, x1, x9
	add	x11, x1, #32
	add	x12, x0, #32
	mov	x13, x10
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12], #64
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11]
	and.16b	v0, v4, v0
	and.16b	v1, v5, v1
	and.16b	v2, v6, v2
	and.16b	v3, v7, v3
	stp	q0, q1, [x11, #-32]
	stp	q2, q3, [x11], #64
	subs	x13, x13, #16
	b.ne	LBB0_12
; %bb.13:
	cmp	x10, x2
	b.ne	LBB0_4
	b	LBB0_6
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mask_spec
.subsections_via_symbols
