	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function valid_pix
_valid_pix:                             ## @valid_pix
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edx killed $edx def $rdx
	movq	(%rdi), %r9
	testq	%r9, %r9
	je	LBB0_2
## %bb.1:
	movl	24(%rdi), %eax
	leal	7(%rax), %r10d
	addl	$14, %eax
	testl	%r10d, %r10d
	cmovnsl	%r10d, %eax
	sarl	$3, %eax
	imull	%esi, %eax
	leal	7(%rdx), %esi
	testl	%edx, %edx
	cmovnsl	%edx, %esi
	sarl	$3, %esi
	addl	%eax, %esi
	movl	(%r9,%rsi,4), %eax
	andb	$7, %dl
	movzbl	%dl, %edx
	btl	%edx, %eax
	jae	LBB0_9
LBB0_2:
	movl	8(%rdi), %r9d
	movl	$1, %eax
	testl	%r9d, %r9d
	jle	LBB0_10
## %bb.3:
	movq	16(%rdi), %rsi
	shlq	$4, %r9
	xorl	%edi, %edi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$16, %rdi
	cmpq	%rdi, %r9
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rdi), %edx
	cmpl	%ecx, %edx
	jg	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addl	4(%rsi,%rdi), %edx
	cmpl	%ecx, %edx
	jle	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	8(%rsi,%rdi), %edx
	cmpl	%r8d, %edx
	jg	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	addl	12(%rsi,%rdi), %edx
	cmpl	%r8d, %edx
	jle	LBB0_4
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_valid_pix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function valid_pix
_valid_pix:                             ; @valid_pix
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w9, [x0, #24]
	add	w10, w9, #7
	add	w9, w9, #14
	cmp	w10, #0
	csel	w9, w9, w10, lt
	asr	w9, w9, #3
	mul	w9, w9, w1
	add	w10, w2, #7
	cmp	w2, #0
	csel	w10, w10, w2, lt
	add	w9, w9, w10, asr #3
	ldr	w8, [x8, w9, uxtw #2]
	and	w9, w2, #0x7
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_9
LBB0_2:
	ldr	w8, [x0, #8]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.3:
	ldr	x9, [x0, #16]
	add	x9, x9, #8
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #16
	subs	x8, x8, #1
	b.eq	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w10, [x9, #-8]
	cmp	w10, w3
	b.gt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	w11, [x9, #-4]
	add	w10, w11, w10
	cmp	w10, w3
	b.le	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w10, [x9]
	cmp	w10, w4
	b.gt	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w11, [x9, #4]
	add	w10, w11, w10
	cmp	w10, w4
	b.le	LBB0_4
LBB0_9:
	mov	w0, #0
	ret
LBB0_10:
	mov	w0, #1
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_valid_pix
.subsections_via_symbols
