	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mkv_read_frame_data
_mkv_read_frame_data:                   ## @mkv_read_frame_data
	.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	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	24(%rsi), %rsi
	leaq	(%rax,%rax,2), %rdx
	movq	16(%rsi,%rdx,8), %rax
	cmpq	$0, 40(%r13)
	je	LBB0_4
## %bb.1:
	movq	8(%r13), %rbx
	subq	%rax, %rbx
	testq	%r12, %r12
	jne	LBB0_6
## %bb.2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_SKIP_BYTES
	movq	(%r13), %rcx
	movq	24(%r13), %rdx
	leaq	(%rcx,%rcx,2), %rcx
	addq	%rax, 16(%rdx,%rcx,8)
	jmp	LBB0_3
LBB0_4:
	testq	%r12, %r12
	je	LBB0_10
## %bb.5:
	movq	(%rsi,%rdx,8), %rbx
	addq	8(%rsi,%rdx,8), %rax
	subq	%rax, %rbx
LBB0_6:
	movq	16(%r13), %r15
	addq	%r15, %rbx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %rax
	cmpq	%rax, %rbx
	cmovgeq	%rax, %rbx
	testq	%r15, %r15
	je	LBB0_7
## %bb.8:
	cmpq	%rbx, %r15
	cmovgeq	%rbx, %r15
	movl	32(%r13), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_memcpy
	subq	%r15, 16(%r13)
	addl	%r15d, 32(%r13)
	subq	%r15, %rbx
	jmp	LBB0_9
LBB0_7:
	xorl	%r15d, %r15d
LBB0_9:
	leaq	(%r12,%r15,4), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_READ_BYTES
	movq	(%r13), %rcx
	movq	24(%r13), %rdx
	leaq	(%rcx,%rcx,2), %rcx
	addq	%rax, 16(%rdx,%rcx,8)
	addq	%r15, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_3:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_STREAM_STATUS                  ## TAILCALL
LBB0_10:
	movq	%r14, %rdi
	movq	%r13, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mkv_skip_element               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mkv_read_frame_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mkv_read_frame_data
_mkv_read_frame_data:                   ; @mkv_read_frame_data
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x9, [x1, #24]
	ldr	x10, [x1]
	mov	w8, #24
	madd	x8, x10, x8, x9
	ldr	x8, [x8, #16]
	ldr	x11, [x1, #40]
	cbz	x11, LBB0_3
; %bb.1:
	ldr	x9, [x20, #8]
	sub	x1, x9, x8
	cbnz	x22, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_SKIP_BYTES
	ldr	x8, [x20, #24]
	ldr	x9, [x20]
	mov	w10, #24
	madd	x8, x9, x10, x8
	ldr	x9, [x8, #16]
	add	x9, x9, x0
	str	x9, [x8, #16]
	b	LBB0_9
LBB0_3:
	cbz	x22, LBB0_10
; %bb.4:
	mov	w11, #24
	madd	x9, x10, x11, x9
	ldp	x10, x9, [x9]
	add	x8, x8, x9
	sub	x1, x10, x8
LBB0_5:
	ldr	x8, [x20, #16]
	ldr	x9, [x21]
	add	x10, x8, x1
	cmp	x10, x9
	csel	x24, x10, x9, lt
	cbz	x8, LBB0_7
; %bb.6:
	cmp	x8, x24
	csel	x23, x8, x24, lt
	ldr	w1, [x20, #32]
	mov	x0, x22
	mov	x2, x23
	bl	_memcpy
	ldr	x8, [x20, #16]
	sub	x8, x8, x23
	str	x8, [x20, #16]
	ldr	w8, [x20, #32]
	add	w8, w8, w23
	str	w8, [x20, #32]
	sub	x24, x24, x23
	b	LBB0_8
LBB0_7:
	mov	x23, #0
LBB0_8:
	add	x1, x22, x23, lsl #2
	mov	x0, x19
	mov	x2, x24
	bl	_READ_BYTES
	ldr	x8, [x20, #24]
	ldr	x9, [x20]
	mov	w10, #24
	madd	x8, x9, x10, x8
	ldr	x9, [x8, #16]
	add	x9, x9, x0
	str	x9, [x8, #16]
	add	x8, x0, x23
	str	x8, [x21]
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_STREAM_STATUS
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mkv_skip_element
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mkv_read_frame_data
.subsections_via_symbols
