	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_ltable
_fill_ltable:                           ## @fill_ltable
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_bytestream2_get_le32
	sarl	$2, %eax
	movl	$1023, %esi                     ## imm = 0x3FF
	movl	$1024, %edi                     ## imm = 0x400
	movl	$512, %edx                      ## imm = 0x200
	movl	$10, %r14d
	movl	$30, %r8d
	movl	$1024, %ebx                     ## imm = 0x400
	xorl	%r15d, %r15d
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	subl	%r13d, %edi
	xorl	%ecx, %ecx
	cmpl	%edx, %edi
	setb	%cl
	shrl	%cl, %esi
	shrl	%cl, %edx
	subl	%ecx, %r14d
	addq	$-4, %rbx
	incq	%r15
	testl	%edi, %edi
	je	LBB0_7
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r13d
	movl	%r14d, %ecx
	shrl	%cl, %eax
	andl	%esi, %r13d
	subl	%r14d, %r8d
	movl	%r13d, (%r12,%r15,4)
	cmpl	$15, %r8d
	jg	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_bytestream2_get_bytes_left
	testq	%rax, %rax
	jle	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_bytestream2_get_le16
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	movl	%r8d, %ecx
	shll	%cl, %eax
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	addl	%eax, %ecx
	movl	%ecx, %eax
	addl	$16, %r8d
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_6
LBB0_7:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -4(%r12,%r15,4)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	decq	%r15
	addl	$4, %ebx
	cmpq	$-1, %r15
	jne	LBB0_8
LBB0_2:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax)
	cmpl	$255, %r15d
	ja	LBB0_12
## %bb.11:
	movl	%r15d, %eax
	leaq	(%r12,%rax,4), %rdi
	xorl	%esi, %esi
	movl	%r8d, %r15d
	movl	%ebx, %edx
	callq	_memset
	movl	%r15d, %r8d
LBB0_12:
	xorl	%ebx, %ebx
	cmpl	$16, %r8d
	jl	LBB0_14
## %bb.13:
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$-2, %esi
	callq	_bytestream2_seek
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.no_dead_strip	_fill_ltable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_ltable
_fill_ltable:                           ; @fill_ltable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	mov	x20, x1
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	bl	_bytestream2_get_le32
	mov	x23, #0
	asr	w24, w0, #2
	mov	w26, #1023
	mov	w21, #1024
	mov	w27, #512
	mov	w28, #10
	mov	w25, #30
	mov	w22, #1024
	str	x20, [sp, #16]                  ; 8-byte Folded Spill
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	sub	w22, w22, w19
	cmp	w22, w27
	cset	w8, lo
	lsr	w26, w26, w8
	lsr	w27, w27, w8
	sub	w28, w28, w8
	sub	x21, x21, #4
	add	x23, x23, #1
	cbz	w22, LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x21, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	and	w19, w24, w26
	lsr	w24, w24, w28
	sub	w25, w25, w28
	str	w19, [x20, x23, lsl #2]
	cmp	w25, #15
	b.gt	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x20, [sp, #24]                  ; 8-byte Folded Reload
	mov	x0, x20
	bl	_bytestream2_get_bytes_left
	cmp	x0, #0
	b.le	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_bytestream2_get_le16
	lsl	w8, w0, w25
	add	w24, w8, w24
	add	w25, w25, #16
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_1
LBB0_6:
	sub	x8, x20, #4
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8, x23, lsl #2]
	cbnz	w9, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	x23, x23, #1
	add	w21, w21, #4
	cmn	x23, #1
	b.ne	LBB0_7
LBB0_9:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_11:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	w23, [x8]
	cmp	w23, #255
	b.hi	LBB0_13
; %bb.12:
	add	x0, x20, w23, uxtw #2
	mov	w1, #0
	mov	x2, x21
	bl	_memset
LBB0_13:
	cmp	w25, #16
	b.lt	LBB0_15
; %bb.14:
Lloh3:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #-2
	bl	_bytestream2_seek
LBB0_15:
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.no_dead_strip	_fill_ltable
.subsections_via_symbols
