	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode0
_decode0:                               ## @decode0
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%r8d, %r8d
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movl	(%rsi), %eax
	addl	%edx, %ecx
	imull	%eax, %ecx
	imull	%edx, %eax
	cltd
	idivl	%r8d
	movl	%eax, %esi
	incl	%esi
	addl	%esi, 4(%rbx)
	movl	%ecx, %eax
	cltd
	idivl	%r8d
	subl	%esi, %eax
	movl	%eax, (%rbx)
	movq	_TOP@GOTPCREL(%rip), %r12
	xorl	%r15d, %r15d
	cmpl	(%r12), %eax
	jge	LBB0_6
## %bb.3:
	movq	%rdi, %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_bytestream2_get_bytes_left
	testq	%rax, %rax
	jle	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_bytestream2_get_byteu
	movl	(%rbx), %ecx
	movl	8(%rbx), %edx
	shll	$8, %edx
	orl	%eax, %edx
	movl	%edx, 8(%rbx)
	shll	$8, 4(%rbx)
	shll	$8, %ecx
	movl	%ecx, (%rbx)
	cmpl	(%r12), %ecx
	jl	LBB0_4
	jmp	LBB0_6
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_TOP,4,2                        ## @TOP
	.no_dead_strip	_decode0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode0
_decode0:                               ; @decode0
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	w4, LBB0_6
; %bb.1:
	mov	x19, x1
	ldp	w8, w9, [x1]
	mul	w10, w8, w2
	sdiv	w10, w10, w4
	add	w10, w10, #1
	add	w9, w9, w10
	add	w11, w3, w2
	mul	w8, w8, w11
	sdiv	w8, w8, w4
	sub	w8, w8, w10
	stp	w8, w9, [x1]
Lloh0:
	adrp	x21, _TOP@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TOP@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w8, w9
	b.ge	LBB0_5
; %bb.2:
	mov	x20, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_bytestream2_get_bytes_left
	cmp	x0, #1
	b.lt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_bytestream2_get_byteu
	ldr	w8, [x19, #8]
	orr	w8, w0, w8, lsl #8
	str	w8, [x19, #8]
	ldr	d0, [x19]
	shl.2s	v0, v0, #8
	str	d0, [x19]
	ldr	w8, [x21]
	fmov	w9, s0
	cmp	w9, w8
	b.lt	LBB0_3
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_TOP,4,2                        ; @TOP
	.no_dead_strip	_decode0
.subsections_via_symbols
