	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function checkmask
_checkmask:                             ## @checkmask
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	leaq	-4(%rbp), %rsi
	callq	_sa_rawaddr
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rcx
	movl	-4(%rbp), %edx
	xorl	%eax, %eax
	movl	$0, %esi
	testl	%edx, %edx
	jle	LBB0_9
## %bb.2:
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$255, (%rcx,%rsi,4)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	cmpq	%rsi, %rdx
	jne	LBB0_3
	jmp	LBB0_13
LBB0_6:
	movl	(%rcx,%rsi,4), %edi
	movl	%edi, %r8d
	notl	%r8d
	negl	%edi
	testl	%edi, %r8d
	je	LBB0_8
LBB0_7:
	movl	$-1, %eax
	jmp	LBB0_14
LBB0_8:
	incl	%esi
LBB0_9:
	cmpl	%edx, %esi
	jge	LBB0_14
## %bb.10:
	movslq	%esi, %rax
	leaq	(%rcx,%rax,4), %rax
	subl	%esi, %edx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rax,%rcx,4)
	jne	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%rcx
	cmpl	%ecx, %edx
	jne	LBB0_11
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_checkmask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function checkmask
_checkmask:                             ; @checkmask
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	x1, x29, #4
	bl	_sa_rawaddr
	cbz	x0, LBB0_7
; %bb.1:
	ldur	w8, [x29, #-4]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x9, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x0, x9, lsl #2]
	cmp	w10, #255
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_3
	b	LBB0_12
LBB0_5:
	mov	w10, #0
	cmp	w10, w8
	b.ge	LBB0_12
	b	LBB0_9
LBB0_6:
	ldr	w10, [x0, x9, lsl #2]
	neg	w11, w10
	bics	wzr, w11, w10
	b.eq	LBB0_8
LBB0_7:
	mov	w0, #-1
	b	LBB0_13
LBB0_8:
	add	w10, w9, #1
	cmp	w10, w8
	b.ge	LBB0_12
LBB0_9:
	add	x9, x0, w10, sxtw #2
	sub	w8, w8, w10
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9]
	cbnz	w10, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x9, x9, #4
	subs	w8, w8, #1
	b.ne	LBB0_10
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_checkmask
.subsections_via_symbols
