	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mkv_find_next_block
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_mkv_find_next_block:                   ## @mkv_find_next_block
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	_VC_CONTAINER_ERROR_NOT_FOUND@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	leaq	16(%rsi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %r13
	movq	_MKV_ELEMENT_ID_CLUSTER@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	_MKV_ELEMENT_ID_BLOCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_MKV_ELEMENT_ID_SIMPLE_BLOCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mkv_skip_element
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	(%rcx,%rax,8), %rax
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_MKV_ELEMENT_ID_BLOCKGROUP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movq	_MKV_ELEMENT_ID_BLOCK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mkv_find_next_element
	cmpq	(%r13), %rax
	je	LBB0_20
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r15
	movq	_VC_CONTAINER_ERROR_NOT_FOUND@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mkv_skip_element
	movq	%rax, %r15
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	(%rcx,%rax,8), %rax
	cmpq	(%r12), %rax
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	$0, 16(%rbx)
	movq	_MKV_ELEMENT_ID_BLOCKGROUP@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mkv_find_next_element
	movq	%rax, %r15
	cmpq	(%r13), %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	_MKV_ELEMENT_ID_SIMPLE_BLOCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_20
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_VC_CONTAINER_ERROR_NOT_FOUND@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mkv_skip_element
	movq	%rax, %r15
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	_MKV_ELEMENT_ID_SEGMENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mkv_find_next_element
	movq	%rax, %r15
	movq	_VC_CONTAINER_ERROR_NOT_FOUND@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mkv_skip_element
	movq	%rax, %r15
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rcx
	cmpq	%rcx, %r15
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_STREAM_STATUS
	movq	(%r13), %rcx
	cmpq	%rcx, %rax
	je	LBB0_1
LBB0_18:
	cmpq	%rcx, %r15
	jne	LBB0_19
LBB0_20:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_STREAM_STATUS                  ## TAILCALL
LBB0_19:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_ERROR_NOT_FOUND,8,3 ## @VC_CONTAINER_ERROR_NOT_FOUND
	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ERROR_EOS,8,3     ## @VC_CONTAINER_ERROR_EOS
	.comm	_MKV_ELEMENT_ID_BLOCK,8,3       ## @MKV_ELEMENT_ID_BLOCK
	.comm	_MKV_ELEMENT_ID_SIMPLE_BLOCK,8,3 ## @MKV_ELEMENT_ID_SIMPLE_BLOCK
	.comm	_MKV_ELEMENT_ID_BLOCKGROUP,8,3  ## @MKV_ELEMENT_ID_BLOCKGROUP
	.comm	_MKV_ELEMENT_ID_CLUSTER,8,3     ## @MKV_ELEMENT_ID_CLUSTER
	.comm	_MKV_ELEMENT_ID_SEGMENT,8,3     ## @MKV_ELEMENT_ID_SEGMENT
	.no_dead_strip	_mkv_find_next_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mkv_find_next_block
_mkv_find_next_block:                   ; @mkv_find_next_block
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _VC_CONTAINER_ERROR_NOT_FOUND@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VC_CONTAINER_ERROR_NOT_FOUND@GOTPAGEOFF]
	ldr	x21, [x22]
	add	x23, x1, #16
Lloh2:
	adrp	x24, _MKV_ELEMENT_ID_BLOCK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MKV_ELEMENT_ID_BLOCK@GOTPAGEOFF]
Lloh4:
	adrp	x25, _MKV_ELEMENT_ID_SIMPLE_BLOCK@GOTPAGE
Lloh5:
	ldr	x25, [x25, _MKV_ELEMENT_ID_SIMPLE_BLOCK@GOTPAGEOFF]
Lloh6:
	adrp	x26, _MKV_ELEMENT_ID_BLOCKGROUP@GOTPAGE
Lloh7:
	ldr	x26, [x26, _MKV_ELEMENT_ID_BLOCKGROUP@GOTPAGEOFF]
Lloh8:
	adrp	x27, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh9:
	ldr	x27, [x27, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
Lloh10:
	adrp	x28, _MKV_ELEMENT_ID_CLUSTER@GOTPAGE
Lloh11:
	ldr	x28, [x28, _MKV_ELEMENT_ID_CLUSTER@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x20]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x9, [x24]
	ldr	x10, [x25]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_mkv_skip_element
	mov	x21, x0
	ldp	x9, x8, [x20]
	ldr	x8, [x8, x9, lsl #3]
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	stp	xzr, xzr, [x23]
	ldr	x2, [x24]
	mov	x0, x19
	mov	x1, x20
	bl	_mkv_find_next_element
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_18
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x21, x0
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_mkv_skip_element
	mov	x21, x0
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldp	x9, x8, [x20]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	str	xzr, [x20, #16]
	ldr	x2, [x26]
	mov	x0, x19
	mov	x1, x20
	bl	_mkv_find_next_element
	mov	x21, x0
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	ldp	x9, x8, [x20]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_18
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x22]
	cmp	x21, x8
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_mkv_skip_element
	mov	x21, x0
LBB0_12:                                ;   in Loop: Header=BB0_1 Depth=1
	ldp	x9, x8, [x20]
	ldr	x8, [x8, x9, lsl #3]
Lloh12:
	adrp	x9, _MKV_ELEMENT_ID_SEGMENT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MKV_ELEMENT_ID_SEGMENT@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x2, [x28]
	mov	x0, x19
	mov	x1, x20
	bl	_mkv_find_next_element
	mov	x21, x0
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_mkv_skip_element
	mov	x21, x0
LBB0_15:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x27]
	cmp	x21, x8
	b.ne	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_STREAM_STATUS
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_1
LBB0_17:
	cmp	x21, x8
	b.ne	LBB0_19
LBB0_18:
	mov	x0, x19
	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
	b	_STREAM_STATUS
LBB0_19:
	mov	x0, x21
	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 AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_ERROR_NOT_FOUND,8,3 ; @VC_CONTAINER_ERROR_NOT_FOUND
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ERROR_EOS,8,3     ; @VC_CONTAINER_ERROR_EOS
	.comm	_MKV_ELEMENT_ID_BLOCK,8,3       ; @MKV_ELEMENT_ID_BLOCK
	.comm	_MKV_ELEMENT_ID_SIMPLE_BLOCK,8,3 ; @MKV_ELEMENT_ID_SIMPLE_BLOCK
	.comm	_MKV_ELEMENT_ID_BLOCKGROUP,8,3  ; @MKV_ELEMENT_ID_BLOCKGROUP
	.comm	_MKV_ELEMENT_ID_CLUSTER,8,3     ; @MKV_ELEMENT_ID_CLUSTER
	.comm	_MKV_ELEMENT_ID_SEGMENT,8,3     ; @MKV_ELEMENT_ID_SEGMENT
	.no_dead_strip	_mkv_find_next_block
.subsections_via_symbols
