	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function matroska_execute_seekhead
_matroska_execute_seekhead:             ## @matroska_execute_seekhead
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	_AVIO_SEEKABLE_NORMAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_9
## %bb.1:
	cmpl	$0, 24(%rdi)
	jle	LBB0_9
## %bb.2:
	movl	$8, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movslq	24(%rdi), %rax
	addq	$16, %rbx
	cmpq	%rax, %r14
	jge	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdi), %r13
	movq	32(%rdi), %rax
	movq	-8(%rax,%rbx), %rsi
	addq	(%rax,%rbx), %r13
	movq	%rdi, %r12
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_matroska_find_level1_elem
	movq	%r12, %rdi
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r15
	cmpl	$0, (%rax)
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, 8(%r15)
	movq	_MATROSKA_ID_CUES@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rax), %rcx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rsi
	callq	_matroska_parse_seekhead_entry
	testq	%rax, %rax
	js	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, (%r15)
	movq	%r12, %rdi
	jmp	LBB0_8
LBB0_10:
	movl	$-1, (%r12)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVIO_SEEKABLE_NORMAL,4,2       ## @AVIO_SEEKABLE_NORMAL
	.comm	_MATROSKA_ID_CUES,8,3           ## @MATROSKA_ID_CUES
	.no_dead_strip	_matroska_execute_seekhead
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function matroska_execute_seekhead
_matroska_execute_seekhead:             ; @matroska_execute_seekhead
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _AVIO_SEEKABLE_NORMAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AVIO_SEEKABLE_NORMAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #24]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x22, #0
	mov	x23, #0
Lloh3:
	adrp	x24, _MATROSKA_ID_CUES@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MATROSKA_ID_CUES@GOTPAGEOFF]
	mov	w25, #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19, #24]
	add	x22, x22, #16
	cmp	x23, x8
	b.ge	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x8, x8, x22
	ldp	x21, x26, [x8]
	ldr	x27, [x19, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_matroska_find_level1_elem
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x0
	ldr	w8, [x0]
	cbnz	w8, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, x27, x26
	str	x1, [x20, #8]
	ldr	x8, [x24]
	cmp	x21, x8
	b.eq	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_matroska_parse_seekhead_entry
	tbnz	x0, #63, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w25, [x20]
	b	LBB0_3
LBB0_9:
	mov	w8, #-1
	str	w8, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AVIO_SEEKABLE_NORMAL,4,2       ; @AVIO_SEEKABLE_NORMAL
	.comm	_MATROSKA_ID_CUES,8,3           ; @MATROSKA_ID_CUES
	.no_dead_strip	_matroska_execute_seekhead
.subsections_via_symbols
