	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_tdlt
_decode_tdlt:                           ## @decode_tdlt
	.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
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_bytestream2_get_le32
	movl	%eax, %r13d
	xorl	%eax, %eax
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.1:
	imull	%r14d, %ebx
	movslq	%ebx, %rax
	leaq	(%r12,%rax,4), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_bytestream2_get_bytes_left
	cmpl	$1, %eax
	jle	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_bytestream2_get_byteu
	movl	%eax, %ebx
	addl	%ebx, %ebx
	movq	%r15, %rdi
	callq	_bytestream2_get_byteu
	movl	%eax, %r14d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	subq	%r12, %rax
	sarq	$2, %rax
	leal	(%rbx,%r14,2), %ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %rax
	jl	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_bytestream2_get_bytes_left
	cmpl	%ebx, %eax
	jl	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%r13d
	addl	%r14d, %r14d
	movslq	%r14d, %rax
	leaq	(%r12,%rax,4), %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_bytestream2_get_buffer
	movslq	%ebx, %rax
	leaq	(%r14,%rax,4), %r12
	testl	%r13d, %r13d
	jne	LBB0_2
## %bb.7:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_3:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_tdlt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_tdlt
_decode_tdlt:                           ; @decode_tdlt
	.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	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x19, x0
	bl	_bytestream2_get_le32
	cbz	w0, LBB0_8
; %bb.1:
	mov	x20, x0
	mul	w8, w22, w23
	add	x23, x21, w8, sxtw #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_bytestream2_get_bytes_left
	cmp	w0, #1
	b.le	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_bytestream2_get_byteu
	lsl	w22, w0, #1
	mov	x0, x19
	bl	_bytestream2_get_byteu
	lsl	w24, w0, #1
	sub	x8, x23, x21
	add	w9, w24, w22
	sxtw	x9, w9
	cmp	x9, x8, asr #2
	b.gt	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_bytestream2_get_bytes_left
	cmp	w0, w22
	b.lt	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w20, w20, #1
	add	x21, x21, w24, sxtw #2
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_bytestream2_get_buffer
	add	x21, x21, w22, sxtw #2
	cbnz	w20, LBB0_2
; %bb.6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_8:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_tdlt
.subsections_via_symbols
