	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_tag
_check_tag:                             ## @check_tag
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r14d
	cmpl	$4, %edx
	ja	LBB0_6
## %bb.1:
	movl	%edx, %r15d
	movq	%rdi, %rbx
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_avio_seek
	testq	%rax, %rax
	js	LBB0_6
## %bb.2:
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_avio_read
	cmpl	%r15d, %eax
	jl	LBB0_6
## %bb.3:
	leaq	-28(%rbp), %rdi
	callq	_AV_RB32
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	-28(%rbp), %rdi
	movl	%r15d, %esi
	callq	_is_tag
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
	jmp	LBB0_6
LBB0_4:
	movl	$1, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_check_tag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_tag
_check_tag:                             ; @check_tag
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cmp	w2, #4
	b.hi	LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_avio_seek
	tbnz	x0, #63, LBB0_3
; %bb.2:
	add	x1, sp, #12
	mov	x0, x20
	mov	x2, x19
	bl	_avio_read
	cmp	w0, w19
	b.ge	LBB0_5
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	add	x0, sp, #12
	bl	_AV_RB32
	cbz	w0, LBB0_7
; %bb.6:
	add	x0, sp, #12
	mov	x1, x19
	bl	_is_tag
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_4
LBB0_7:
	mov	w0, #1
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_check_tag
.subsections_via_symbols
