	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function matroska_parse_cues
_matroska_parse_cues:                   ## @matroska_parse_cues
	.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
	movq	16(%rdi), %rax
	movq	_AVFMT_FLAG_IGNIDX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r14
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.2:
	movq	8(%r14), %r15
	movq	_MATROSKA_ID_CUES@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rax
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$16, %rbx
	cmpq	%rbx, %rax
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%r15,%rbx)
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, 8(%r15,%rbx)
	jne	LBB0_8
## %bb.5:
	movl	12(%r15,%rbx), %esi
	movq	%r14, %rdi
	callq	_matroska_parse_seekhead_entry
	testq	%rax, %rax
	jns	LBB0_7
## %bb.6:
	movl	$-1, 4(%r14)
LBB0_7:
	movl	$1, 8(%r15,%rbx)
LBB0_9:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_matroska_add_index_entries     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AVFMT_FLAG_IGNIDX,4,2          ## @AVFMT_FLAG_IGNIDX
	.comm	_MATROSKA_ID_CUES,8,3           ## @MATROSKA_ID_CUES
	.no_dead_strip	_matroska_parse_cues
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function matroska_parse_cues
_matroska_parse_cues:                   ; @matroska_parse_cues
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _AVFMT_FLAG_IGNIDX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AVFMT_FLAG_IGNIDX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.3:
	ldr	x10, [x19, #8]
Lloh3:
	adrp	x9, _MATROSKA_ID_CUES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MATROSKA_ID_CUES@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x20, x10, #8
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #16
	subs	x8, x8, #1
	b.eq	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x20, #-8]
	cmp	x10, x9
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w10, [x20]
	cbnz	w10, LBB0_4
; %bb.7:
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_matroska_parse_seekhead_entry
	tbz	x0, #63, LBB0_9
; %bb.8:
	mov	w8, #-1
	str	w8, [x19, #4]
LBB0_9:
	mov	w8, #1
	str	w8, [x20]
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_matroska_add_index_entries
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AVFMT_FLAG_IGNIDX,4,2          ; @AVFMT_FLAG_IGNIDX
	.comm	_MATROSKA_ID_CUES,8,3           ; @MATROSKA_ID_CUES
	.no_dead_strip	_matroska_parse_cues
.subsections_via_symbols
