	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function theora_gptopts
_theora_gptopts:                        ## @theora_gptopts
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	(%rax), %r9
	movslq	%esi, %rsi
	shlq	$4, %rsi
	movq	8(%r9,%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r8
	movb	(%rdi), %cl
	movl	%edx, %r10d
	sarl	%cl, %r10d
	xorl	%eax, %eax
	cmpl	$197121, 8(%rdi)                ## imm = 0x30201
	setl	%al
	addl	%r10d, %eax
	andl	4(%rdi), %edx
	jne	LBB0_4
## %bb.3:
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%r9,%rsi)
LBB0_4:
	addl	%edx, %eax
	testq	%r8, %r8
	je	LBB0_6
## %bb.5:
	movl	%eax, (%r8)
LBB0_6:
	popq	%rbp
	retq
LBB0_1:
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,4,2             ## @AV_NOPTS_VALUE
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.no_dead_strip	_theora_gptopts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function theora_gptopts
_theora_gptopts:                        ; @theora_gptopts
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x8, [x0]
	ldr	x8, [x8]
	add	x9, x8, w1, sxtw #4
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_5
; %bb.1:
	ldp	w10, w11, [x9]
	asr	w10, w2, w10
	ldr	w9, [x9, #8]
	mov	w12, #513
	movk	w12, #3, lsl #16
	cmp	w9, w12
	cinc	w9, w10, lt
	and	w10, w11, w2
	cbz	w10, LBB0_6
; %bb.2:
	add	w0, w9, w10
	cbz	x3, LBB0_4
LBB0_3:
	str	w0, [x3]
LBB0_4:
	ret
LBB0_5:
Lloh0:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ret
LBB0_6:
	sxtw	x11, w1
Lloh3:
	adrp	x12, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh4:
	ldr	x12, [x12, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x12]
	lsl	x11, x11, #4
	ldr	w13, [x8, x11]
	orr	w12, w13, w12
	str	w12, [x8, x11]
	add	w0, w9, w10
	cbnz	x3, LBB0_3
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,4,2             ; @AV_NOPTS_VALUE
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.no_dead_strip	_theora_gptopts
.subsections_via_symbols
