	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ogg_validate_keyframe
_ogg_validate_keyframe:                 ## @ogg_validate_keyframe
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.1:
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movslq	%esi, %rcx
	movq	(%rdi), %rsi
	movq	(%rsi,%rcx,8), %rsi
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %r8
	movq	(%rsi), %rsi
	movl	(%rsi), %esi
	cmpl	$128, %esi
	je	LBB0_4
## %bb.2:
	cmpl	$129, %esi
	jne	LBB0_6
## %bb.3:
	movl	(%r8), %r10d
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r9d
	movl	%r9d, %esi
	andl	%r10d, %esi
	movq	8(%rax,%rcx), %rax
	movslq	%edx, %rcx
	movl	(%rax,%rcx,4), %eax
	shrl	$6, %eax
	jmp	LBB0_5
LBB0_4:
	movl	(%r8), %r10d
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r9d
	movl	%r9d, %esi
	andl	%r10d, %esi
	movq	8(%rax,%rcx), %rax
	movslq	%edx, %rcx
	movl	(%rax,%rcx,4), %eax
LBB0_5:
	xorl	%ecx, %ecx
	testl	%esi, %esi
	setne	%cl
	andl	$1, %eax
	xorl	%ecx, %eax
	cmpl	$1, %eax
	jne	LBB0_7
LBB0_6:
	popq	%rbp
	retq
LBB0_7:
	xorl	%r9d, %r10d
	movl	%r10d, (%r8)
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	andl	(%rax), %r10d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rdx
	popq	%rbp
	jmp	_av_log                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Broken file, %skeyframe not correctly marked.\n"

L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"non-"

	.no_dead_strip	_ogg_validate_keyframe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ogg_validate_keyframe
_ogg_validate_keyframe:                 ; @ogg_validate_keyframe
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	cbz	w3, LBB0_6
; %bb.1:
	ldp	x9, x8, [x0]
	ldr	x12, [x8]
	sxtw	x13, w1
	add	x8, x12, w1, sxtw #4
	ldr	x9, [x9, x13, lsl #3]
	ldr	x9, [x9]
	ldr	w9, [x9]
	cmp	w9, #128
	b.eq	LBB0_4
; %bb.2:
	cmp	w9, #129
	b.ne	LBB0_6
; %bb.3:
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	and	w11, w10, w9
	add	x12, x12, x13, lsl #4
	ldr	x12, [x12, #8]
	ldr	w12, [x12, w2, sxtw #2]
	lsr	w12, w12, #6
	b	LBB0_5
LBB0_4:
	ldr	w9, [x8]
Lloh3:
	adrp	x10, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	and	w11, w10, w9
	add	x12, x12, x13, lsl #4
	ldr	x12, [x12, #8]
	ldr	w12, [x12, w2, sxtw #2]
LBB0_5:
	cmp	w11, #0
	cset	w11, ne
	and	w12, w12, #0x1
	eor	w11, w12, w11
	cmp	w11, #1
	b.ne	LBB0_7
LBB0_6:
	ret
LBB0_7:
	eor	w9, w9, w10
	str	w9, [x8]
Lloh6:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x10, l_.str.1@PAGE
Lloh13:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh14:
	adrp	x11, l_.str.2@PAGE
Lloh15:
	add	x11, x11, l_.str.2@PAGEOFF
	tst	w8, w9
	csel	x3, x11, x10, eq
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	b	_av_log
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Broken file, %skeyframe not correctly marked.\n"

l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"non-"

	.no_dead_strip	_ogg_validate_keyframe
.subsections_via_symbols
