	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function webm_dash_manifest_compute_bandwidth
LCPI0_0:
	.quad	0x41cdcd6500000000              ## double 1.0E+9
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_webm_dash_manifest_compute_bandwidth:  ## @webm_dash_manifest_compute_bandwidth
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_19
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	8(%rdi), %rbx
	xorpd	%xmm0, %xmm0
	xorl	%edx, %edx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %eax
	imull	4(%rbx), %eax
	xorpd	%xmm0, %xmm0
	cmpl	%r15d, %eax
	jge	LBB0_22
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	maxsd	-88(%rbp), %xmm0                ## 8-byte Folded Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx), %rax
	cmpq	%rax, %rdx
	jge	LBB0_21
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	movsd	%xmm0, -88(%rbp)                ## 8-byte Spill
	movq	8(%rcx), %rax
	movl	(%rbx), %esi
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	imull	(%rax,%rdx,4), %esi
	leal	1000000000(%rsi), %r15d
	movq	%r13, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r14d, %edx
	callq	_get_cue_desc
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %ecx
	movq	%rax, %r12
	shrq	$32, %r12
	movl	$1000000000, %ebx               ## imm = 0x3B9ACA00
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r12d, %r15d
	jle	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1000000000, %ebx               ## imm = 0x3B9ACA00
	xorpd	%xmm4, %xmm4
	movl	-52(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addl	%ebx, %eax
	movq	%rdx, %rcx
	shrq	$32, %rcx
	subl	%ecx, %edx
	xorps	%xmm1, %xmm1
	cvtsi2sd	%edx, %xmm1
	addsd	%xmm4, %xmm1
	movsd	%xmm1, -64(%rbp)                ## 8-byte Spill
	movl	%eax, %ebx
	subl	%r12d, %ebx
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_get_cue_desc
	movsd	-64(%rbp), %xmm4                ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
	movq	%rax, %r12
	shrq	$32, %r12
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	cmpl	%r12d, %r15d
	jg	LBB0_7
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	xorpd	%xmm4, %xmm4
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, -64(%rbp)                ## 4-byte Spill
	movq	%rdx, %rcx
	shrq	$32, %rcx
	movl	%edx, %esi
	subl	%ecx, %esi
	movl	%r12d, %ecx
	subl	%eax, %ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sd	%esi, %xmm1
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	divsd	%xmm2, %xmm0
	xorps	%xmm3, %xmm3
	cvtsi2sd	%ebx, %xmm3
	divsd	%xmm2, %xmm3
	divsd	%xmm0, %xmm3
	mulsd	%xmm1, %xmm3
	addsd	%xmm4, %xmm3
	movsd	%xmm3, -104(%rbp)               ## 8-byte Spill
	shrq	$32, -48(%rbp)                  ## 8-byte Folded Spill
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_get_cue_desc
	movq	%rax, %r12
	shrq	$32, %r12
	cmpl	$-1, %eax
	je	LBB0_17
LBB0_13:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, %eax
	subl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	divsd	LCPI0_0(%rip), %xmm0
	ucomisd	LCPI0_1(%rip), %xmm0
	jbe	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	subl	-48(%rbp), %edx                 ## 4-byte Folded Reload
	leal	(,%rdx,8), %eax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	xorps	%xmm2, %xmm2
	cvtsi2sd	%edx, %xmm2
	unpcklpd	%xmm2, %xmm0                    ## xmm0 = xmm0[0],xmm2[0]
	subsd	-104(%rbp), %xmm2               ## 8-byte Folded Reload
	unpcklpd	%xmm2, %xmm1                    ## xmm1 = xmm1[0],xmm2[0]
	divpd	%xmm0, %xmm1
	movapd	%xmm1, %xmm2
	unpckhpd	%xmm1, %xmm2                    ## xmm2 = xmm2[1],xmm1[1]
	mulsd	%xmm1, %xmm2
	movl	(%rbx), %eax
	imull	4(%rbx), %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	cvttsd2si	%xmm2, %r15d
	divsd	LCPI0_0(%rip), %xmm0
	incl	%r15d
	movabsq	$4607182418800017408, %rax      ## imm = 0x3FF0000000000000
	movq	%rax, -120(%rbp)
	movq	$0, -112(%rbp)
	xorpd	%xmm1, %xmm1
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	leaq	-120(%rbp), %rdx
	leaq	-112(%rbp), %rcx
	movq	%r13, %r8
	movl	%r14d, %r9d
	callq	_buffer_size_after_time_downloaded
	testl	%eax, %eax
	js	LBB0_22
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	jne	LBB0_12
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r15d, %xmm0
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	xorpd	%xmm0, %xmm0
	jmp	LBB0_3
LBB0_22:
	movl	$-1, %eax
	jmp	LBB0_20
LBB0_19:
	xorl	%eax, %eax
LBB0_20:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	cvttsd2si	%xmm0, %eax
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_webm_dash_manifest_compute_bandwidth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function webm_dash_manifest_compute_bandwidth
_webm_dash_manifest_compute_bandwidth:  ; @webm_dash_manifest_compute_bandwidth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	ldr	x8, [x0]
	ldr	x25, [x8]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x26, #0
	ldr	x28, [x0, #8]
	movi	d8, #0000000000000000
	mov	x27, #225833675390976
	movk	x27, #16845, lsl #48
	fmov	d9, #1.00000000
	str	x25, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	w9, w8, [x28]
	mul	w8, w9, w8
	movi	d0, #0000000000000000
	cmp	w8, w21
	b.ge	LBB0_18
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	fcmp	d8, d0
	fcsel	d8, d0, d8, mi
	add	x26, x26, #1
	ldrsw	x8, [x25]
	cmp	x26, x8
	b.ge	LBB0_21
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x8, [x25, #8]
	ldr	w8, [x8, x26, lsl #2]
	ldr	w9, [x28]
	mul	w1, w9, w8
	mov	w8, #51712
	movk	w8, #15258, lsl #16
	add	w21, w1, w8
	mov	x0, x20
	mov	x2, x19
	bl	_get_cue_desc
	mov	x22, x0
	mov	x23, x1
	lsr	x1, x0, #32
	cmn	w22, #1
	ccmp	w21, w1, #4, ne
	b.gt	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	x8, x23
	mov	w24, #51712
	movk	w24, #15258, lsl #16
	movi	d10, #0000000000000000
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	movi	d10, #0000000000000000
	mov	x0, x22
	mov	w24, #51712
	movk	w24, #15258, lsl #16
	mov	x8, x23
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsr	x9, x8, #32
	sub	w8, w8, w9
	scvtf	d0, w8
	fadd	d10, d10, d0
	add	w8, w24, w0
	sub	w24, w8, w1
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x19
	bl	_get_cue_desc
	mov	x8, x1
	lsr	x1, x0, #32
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	w21, w1
	b.gt	LBB0_7
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	lsr	x9, x8, #32
	sub	w10, w1, w0
	scvtf	d0, w10
	sub	w9, w8, w9
	fmov	d1, x27
	scvtf	d2, w9
	scvtf	d3, w24
	fdiv	d0, d0, d1
	fdiv	d1, d3, d1
	fdiv	d0, d1, d0
	fmadd	d10, d2, d0, d10
	lsr	x25, x23, #32
	mov	x23, x1
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	bl	_get_cue_desc
	mov	x8, x1
	lsr	x23, x0, #32
	cmn	w0, #1
	b.eq	LBB0_16
LBB0_12:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w9, w23, w22
	scvtf	d0, w9
	fmov	d1, x27
	fdiv	d0, d0, d1
	fcmp	d0, d9
	b.le	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	sub	w8, w8, w25
	lsl	w9, w8, #3
	scvtf	d1, w9
	fdiv	d0, d1, d0
	scvtf	d1, w8
	fsub	d2, d1, d10
	fdiv	d1, d2, d1
	fmul	d0, d0, d1
	ldp	w9, w8, [x28]
	mul	w8, w9, w8
	scvtf	d1, w8
	fmov	d2, x27
	fcvtzs	w8, d0
	fdiv	d0, d1, d2
	add	w24, w8, #1
	mov	x8, #4607182418800017408
	stp	xzr, x8, [sp, #16]
	movi	d1, #0000000000000000
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x0, x21
	mov	x1, x24
	mov	x4, x20
	mov	x5, x19
	bl	_buffer_size_after_time_downloaded
	tbnz	w0, #31, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	cbnz	w0, LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	scvtf	d0, w24
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	movi	d0, #0000000000000000
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x25, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_3
LBB0_18:
	mov	w0, #-1
	b	LBB0_20
LBB0_19:
	mov	w0, #0
LBB0_20:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_21:
	fcvtzs	w0, d8
	b	LBB0_20
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_webm_dash_manifest_compute_bandwidth
.subsections_via_symbols
