	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_header
_check_header:                          ## @check_header
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r15d, %r15d
	cmpl	$40, %esi
	jl	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	addq	$6, %rdi
	callq	_AV_RB16
	movl	%eax, %r13d
	leaq	8(%rbx), %rdi
	callq	_AV_RB16
	movl	%eax, %r12d
	leaq	10(%rbx), %rdi
	callq	_AV_RB16
	movl	%eax, %r14d
	addq	$12, %rbx
	movq	%rbx, %rdi
	callq	_AV_RB16
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.2:
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.3:
	movl	$1, %r15d
	cmpl	$4353, %r14d                    ## imm = 0x1101
	je	LBB0_5
## %bb.4:
	xorl	$17, %r14d
	xorl	$767, %eax                      ## imm = 0x2FF
	xorl	%r15d, %r15d
	orl	%r14d, %eax
	sete	%r15b
	addl	%r15d, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_check_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_header
_check_header:                          ; @check_header
	.cfi_startproc
; %bb.0:
	cmp	w1, #40
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	ret
LBB0_2:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	add	x0, x0, #6
	bl	_AV_RB16
	mov	x20, x0
	add	x0, x19, #8
	bl	_AV_RB16
	mov	x21, x0
	add	x0, x19, #10
	bl	_AV_RB16
	mov	x22, x0
	add	x0, x19, #12
	bl	_AV_RB16
	mov	w8, #1
	mov	w9, #4353
	cmp	w0, #767
	ccmp	w22, #17, #0, eq
	mov	w10, #2
	csel	w10, w10, wzr, eq
	cmp	w22, w9
	csel	w8, w8, w10, eq
	cmp	w21, #0
	csel	w8, wzr, w8, eq
	cmp	w20, #0
	csel	w0, wzr, w8, eq
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_check_header
.subsections_via_symbols
