	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tak_get_nb_samples
_tak_get_nb_samples:                    ## @tak_get_nb_samples
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_TAK_FST_250ms@GOTPCREL(%rip), %r15
	movq	_frame_duration_type_quants@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	cmpl	%esi, (%r15)
	jae	LBB0_1
## %bb.2:
	callq	_FF_ARRAY_ELEMS
	cmpl	%r14d, %eax
	jbe	LBB0_6
## %bb.3:
	movq	(%r12), %rax
	movl	%r14d, %ecx
	movl	(%rax,%rcx,4), %edx
	movslq	(%r15), %rcx
	imull	(%rax,%rcx,4), %ebx
	movq	_TAK_FRAME_DURATION_QUANT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%ebx, %eax
	sarl	%cl, %eax
	movl	%edx, %ebx
	jmp	LBB0_4
LBB0_1:
	movl	%r14d, %eax
	imull	(%rdi,%rax,4), %ebx
	movq	_TAK_FRAME_DURATION_QUANT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	movl	$16384, %eax                    ## imm = 0x4000
LBB0_4:
	cmpl	%eax, %ebx
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %eax
	cmovgl	%ecx, %eax
	testl	%ebx, %ebx
	cmovlel	%ecx, %eax
	jmp	LBB0_5
LBB0_6:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TAK_FST_250ms,4,2              ## @TAK_FST_250ms
	.comm	_frame_duration_type_quants,8,3 ## @frame_duration_type_quants
	.comm	_TAK_FRAME_DURATION_QUANT_SHIFT,4,2 ## @TAK_FRAME_DURATION_QUANT_SHIFT
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_tak_get_nb_samples
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tak_get_nb_samples
_tak_get_nb_samples:                    ; @tak_get_nb_samples
	.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
Lloh0:
	adrp	x21, _TAK_FST_250ms@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TAK_FST_250ms@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x22, _frame_duration_type_quants@GOTPAGE
Lloh3:
	ldr	x22, [x22, _frame_duration_type_quants@GOTPAGEOFF]
	ldr	x0, [x22]
	cmp	w8, w1
	b.hs	LBB0_3
; %bb.1:
	bl	_FF_ARRAY_ELEMS
	cmp	w0, w20
	b.ls	LBB0_5
; %bb.2:
	ldr	x9, [x22]
	ldr	w8, [x9, w20, uxtw #2]
	ldrsw	x10, [x21]
	ldr	w9, [x9, x10, lsl #2]
	mul	w9, w9, w19
Lloh4:
	adrp	x10, _TAK_FRAME_DURATION_QUANT_SHIFT@GOTPAGE
Lloh5:
	ldr	x10, [x10, _TAK_FRAME_DURATION_QUANT_SHIFT@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	asr	w9, w9, w10
	b	LBB0_4
LBB0_3:
	ldr	w8, [x0, w20, uxtw #2]
	mul	w8, w8, w19
Lloh7:
	adrp	x9, _TAK_FRAME_DURATION_QUANT_SHIFT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _TAK_FRAME_DURATION_QUANT_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	asr	w8, w8, w9
	mov	w9, #16384
LBB0_4:
	cmp	w8, w9
	ccmp	w8, #1, #8, le
Lloh10:
	adrp	x9, _AVERROR_INVALIDDATA@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	csel	w0, w9, w8, lt
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
LBB0_6:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_TAK_FST_250ms,4,2              ; @TAK_FST_250ms
	.comm	_frame_duration_type_quants,8,3 ; @frame_duration_type_quants
	.comm	_TAK_FRAME_DURATION_QUANT_SHIFT,4,2 ; @TAK_FRAME_DURATION_QUANT_SHIFT
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_tak_get_nb_samples
.subsections_via_symbols
