	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opus_duration
_opus_duration:                         ## @opus_duration
	.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	%esi, %r14d
	movq	%rdi, %r15
	movl	(%rdi), %eax
	movl	%eax, %ecx
	shrl	$3, %ecx
	movl	%eax, %ebx
	andl	$3, %ebx
	cmpl	$95, %eax
	ja	LBB0_2
## %bb.1:
	andl	$3, %ecx
	imull	$960, %ecx, %esi                ## imm = 0x3C0
	movl	$480, %edi                      ## imm = 0x1E0
	callq	_FFMAX
	testl	%ebx, %ebx
	je	LBB0_7
LBB0_8:
	cmpl	$3, %ebx
	jne	LBB0_12
## %bb.9:
	cmpl	$1, %r14d
	jg	LBB0_11
## %bb.10:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_14
LBB0_2:
	cmpl	$127, %eax
	ja	LBB0_4
## %bb.3:
	andb	$1, %cl
	movl	$480, %eax                      ## imm = 0x1E0
	jmp	LBB0_5
LBB0_12:
	movl	$2, %ecx
	jmp	LBB0_13
LBB0_4:
	andb	$3, %cl
	movl	$120, %eax
LBB0_5:
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	testl	%ebx, %ebx
	jne	LBB0_8
LBB0_7:
	movl	$1, %ecx
	jmp	LBB0_13
LBB0_11:
	movl	4(%r15), %ecx
	andl	$63, %ecx
LBB0_13:
	imull	%eax, %ecx
LBB0_14:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_opus_duration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opus_duration
_opus_duration:                         ; @opus_duration
	.cfi_startproc
; %bb.0:
	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	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	and	w21, w8, #0x3
	cmp	w8, #95
	b.hi	LBB0_5
; %bb.1:
	ubfx	w8, w8, #3, #2
	mov	w9, #960
	mul	w1, w8, w9
	mov	w0, #480
	bl	_FFMAX
	cbz	w21, LBB0_6
LBB0_2:
	cmp	w21, #3
	b.ne	LBB0_7
; %bb.3:
	cmp	w20, #1
	b.gt	LBB0_8
; %bb.4:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_5:
	ubfx	w9, w8, #3, #2
	mov	w10, #120
	lsl	w9, w10, w9
	ubfx	w10, w8, #3, #1
	mov	w11, #480
	lsl	w10, w11, w10
	cmp	w8, #127
	csel	w0, w9, w10, hi
	cbnz	w21, LBB0_2
LBB0_6:
	mov	w8, #1
	b	LBB0_9
LBB0_7:
	mov	w8, #2
	b	LBB0_9
LBB0_8:
	ldr	w8, [x19, #4]
	and	w8, w8, #0x3f
LBB0_9:
	mul	w0, w8, w0
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_opus_duration
.subsections_via_symbols
