	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function webm_clusters_start_with_keyframe
_webm_clusters_start_with_keyframe:     ## @webm_clusters_start_with_keyframe
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	(%rax), %rdi
	cmpq	$0, (%rdi)
	jle	LBB0_1
## %bb.2:
	movq	16(%r15), %rbx
	movl	16(%rbx), %r14d
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_av_index_search_timestamp
	testl	%eax, %eax
	js	LBB0_12
## %bb.3:
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movq	8(%r15), %rcx
	movq	(%rcx), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, %eax
	movl	(%rcx,%rax,4), %r13d
	movl	(%r15), %edi
	callq	_avio_tell
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %esi
	callq	_avio_seek
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	leaq	-56(%rbp), %rcx
	movl	$1, %r8d
	callq	_ebml_read_num
	testl	%eax, %eax
	js	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$256095861, -56(%rbp)           ## imm = 0xF43B675
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	leaq	-52(%rbp), %rdx
	callq	_ebml_read_length
	testl	%eax, %eax
	js	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_matroska_reset_status
	movq	%rbx, %rdi
	callq	_matroska_clear_queue
	movq	%rbx, %rdi
	callq	_matroska_parse_cluster
	testq	%rax, %rax
	js	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-52(%rbp), %eax
	addl	%r14d, %r13d
	addl	%eax, %r13d
	addl	$4, %r13d
	jmp	LBB0_4
LBB0_1:
	xorl	%r12d, %r12d
	jmp	LBB0_12
LBB0_10:
	xorl	%r12d, %r12d
LBB0_11:
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_matroska_reset_status
LBB0_12:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.no_dead_strip	_webm_clusters_start_with_keyframe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function webm_clusters_start_with_keyframe
_webm_clusters_start_with_keyframe:     ; @webm_clusters_start_with_keyframe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x0, [x8]
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_10
; %bb.1:
	ldr	x19, [x21, #16]
	ldr	w20, [x19, #16]
	mov	w1, #0
	mov	w2, #0
	bl	_av_index_search_timestamp
	tbnz	w0, #31, LBB0_10
; %bb.2:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldr	w23, [x8, w0, uxtw #2]
	ldr	w0, [x21]
	bl	_avio_tell
	mov	x22, x0
Lloh0:
	adrp	x25, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SEEK_SET@GOTPAGEOFF]
	mov	w26, #46709
	movk	w26, #3907, lsl #16
Lloh2:
	adrp	x27, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh3:
	ldr	x27, [x27, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	ldr	w2, [x25]
	mov	x1, x23
	bl	_avio_seek
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	mov	w24, #1
	add	x3, sp, #12
	mov	x0, x19
	mov	w2, #4
	mov	w4, #1
	bl	_ebml_read_num
	tbnz	w0, #31, LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #12]
	cmp	w8, w26
	b.ne	LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_ebml_read_length
	tbnz	w0, #31, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
	mov	x0, x19
	mov	w1, #0
	mov	x2, x23
	bl	_matroska_reset_status
	mov	x0, x19
	bl	_matroska_clear_queue
	mov	x0, x19
	bl	_matroska_parse_cluster
	tbnz	x0, #63, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	cbz	x8, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x8]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #8]
	add	w9, w23, w24
	add	w8, w9, w8
	add	w23, w8, #4
	b	LBB0_3
LBB0_10:
	mov	w24, #0
	b	LBB0_14
LBB0_11:
	mov	w24, #1
	b	LBB0_13
LBB0_12:
	mov	w24, #0
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_matroska_reset_status
LBB0_14:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.no_dead_strip	_webm_clusters_start_with_keyframe
.subsections_via_symbols
