	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_bdlt
_decode_bdlt:                           ## @decode_bdlt
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_bytestream2_get_le16
	cmpl	%r15d, %eax
	jge	LBB0_1
## %bb.3:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_bytestream2_get_le16
	movl	%eax, %ecx
	leal	(%rcx,%rbx), %eax
	cmpl	%r15d, %eax
	jle	LBB0_4
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.5:
	imull	%r13d, %ebx
	movslq	%ebx, %rax
	leaq	(%r14,%rax,4), %rbx
	movslq	%r13d, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r14
	movq	%r13, %rdi
	callq	_bytestream2_get_bytes_left
	testl	%eax, %eax
	jle	LBB0_1
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r14,%rax,4), %rbx
	movq	%r13, %rdi
	callq	_bytestream2_get_byteu
	testl	%eax, %eax
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %r15d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=2
	leaq	(,%r14,4), %r14
	addq	%r13, %r14
	decl	%r15d
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_8
LBB0_11:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %r12
	subq	%r14, %rbx
	sarq	$2, %rbx
	movq	%r13, %rdi
	callq	_bytestream2_peek_byte
	cltq
	cmpq	%rax, %rbx
	jle	LBB0_1
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	%r13, %rdi
	callq	_bytestream2_get_byte
	movq	%r13, %rdi
	leaq	(%r14,%rax,4), %r13
	callq	_bytestream2_get_byte
	movq	%rax, %r14
	testl	%r14d, %r14d
	js	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	%r12, %rax
	subq	%r13, %rax
	sarq	$2, %rax
	movslq	%r14d, %rcx
	cmpq	%rcx, %rax
	jl	LBB0_1
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	%r12, %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_bytestream2_get_buffer
	cmpl	%r14d, %eax
	jne	LBB0_1
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=2
	movl	%r14d, %r14d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=2
	negl	%r14d
	movq	%r12, %rax
	subq	%r13, %rax
	sarq	$2, %rax
	cmpq	%r14, %rax
	jl	LBB0_1
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	%r12, %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_bytestream2_get_byte
	movq	%r13, %rdi
	movq	%rax, %rsi
	movl	%r14d, %edx
	callq	_memset
	jmp	LBB0_18
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	decl	%ecx
	jne	LBB0_6
## %bb.9:
	xorl	%eax, %eax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_bdlt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_bdlt
_decode_bdlt:                           ; @decode_bdlt
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_bytestream2_get_le16
	cmp	w0, w23
	b.ge	LBB0_2
; %bb.1:
	mov	x24, x0
	mov	x0, x19
	bl	_bytestream2_get_le16
	add	w8, w0, w24
	cmp	w8, w23
	b.le	LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x20, x0
	cbz	w0, LBB0_18
; %bb.5:
	mul	w8, w24, w21
	add	x22, x22, w8, sxtw #2
	sxtw	x24, w21
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	mov	x0, x19
	bl	_bytestream2_get_bytes_left
	cmp	w0, #0
	b.le	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x25, x22, x24, lsl #2
	mov	x0, x19
	bl	_bytestream2_get_byteu
	cbz	w0, LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, x0
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_12 Depth=2
	neg	w23, w23
	sub	x8, x25, x22
	cmp	x23, x8, asr #2
	b.gt	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x19
	bl	_bytestream2_get_byte
	mov	x1, x0
	mov	x0, x22
	mov	x2, x23
	bl	_memset
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x22, x22, x23, lsl #2
	sub	w21, w21, #1
	cbz	w21, LBB0_17
LBB0_12:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	x23, x25, x22
	mov	x0, x19
	bl	_bytestream2_peek_byte
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x8, x23, asr #2
	b.ge	LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x19
	bl	_bytestream2_get_byte
	add	x22, x22, x0, lsl #2
	mov	x0, x19
	bl	_bytestream2_get_byte
	mov	x23, x0
	tbnz	w23, #31, LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	sub	x8, x25, x22
	asr	x8, x8, #2
	cmp	x8, w23, sxtw
	b.lt	LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_bytestream2_get_buffer
	cmp	w0, w23
	b.ne	LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=2
	and	x23, x23, #0xffffffff
	b	LBB0_11
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #0
	mov	x22, x25
	sub	w20, w20, #1
	cbnz	w20, LBB0_6
	b	LBB0_3
LBB0_18:
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_bdlt
.subsections_via_symbols
