	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ValidHeaderBytes
_ValidHeaderBytes:                      ## @ValidHeaderBytes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_7
## %bb.1:
	movl	4(%rdi), %eax
	xorl	%edx, %edx
	testl	%eax, %eax
	cmovlel	%edx, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, %rax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rdi), %rsi
	movl	16(%rdi), %ecx
	testl	%ecx, (%rsi,%rdx,4)
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	cmpq	%rdx, %r8
	jne	LBB0_2
## %bb.5:
	movl	%r8d, %eax
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_8:
	movl	%edx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ValidHeaderBytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ValidHeaderBytes
_ValidHeaderBytes:                      ; @ValidHeaderBytes
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x10, #0
	ldr	w8, [x0, #4]
	cmp	w8, #0
	csel	w8, w8, wzr, gt
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x8, x10
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x11, [x0, #8]
	ldr	w11, [x11, x10, lsl #2]
	ldr	w12, [x0, #16]
	tst	w12, w11
	b.ne	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.5:
	mov	x8, x9
LBB0_6:
	mov	x0, x8
	ret
LBB0_7:
	mov	w8, #0
	mov	x0, x8
	ret
LBB0_8:
	mov	x8, x10
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ValidHeaderBytes
.subsections_via_symbols
