	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_dcs
_read_dcs:                              ## @read_dcs
	.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	%r8d, %r12d
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	(%rdx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdx), %r15
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_CHECK_READ_VAL
	movq	%r13, %rdi
	callq	_get_bits_left
	subl	%r12d, %ebx
	cmpl	%ebx, %eax
	jl	LBB0_1
## %bb.2:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_get_bits
	movl	%eax, %r15d
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.4:
	testl	%r15d, %r15d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	callq	_get_bits1
	movl	%eax, %ecx
	negl	%ecx
	xorl	%ecx, %r15d
	addl	%eax, %r15d
	jmp	LBB0_6
LBB0_3:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	subq	%rbx, %rax
	cmpq	$3, %rax
	jg	LBB0_7
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_7:
	movl	%r15d, (%rbx)
	addq	$4, %rbx
	movq	%rbx, (%r14)
	xorl	%eax, %eax
LBB0_8:
	addq	$24, %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
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.no_dead_strip	_read_dcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_dcs
_read_dcs:                              ; @read_dcs
	.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, x4
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	ldp	x23, x24, [x2]
	mov	x0, x1
	mov	x1, x2
	bl	_CHECK_READ_VAL
	mov	x0, x20
	bl	_get_bits_left
	sub	w1, w21, w22
	cmp	w0, w1
	b.lt	LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_get_bits
	mov	x21, x0
	cbz	w22, LBB0_4
; %bb.2:
	cbz	w21, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_get_bits1
	neg	w8, w0
	eor	w8, w21, w8
	add	w21, w8, w0
LBB0_4:
	sub	x8, x24, x23
	cmp	x8, #3
	b.gt	LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_6:
	mov	w0, #0
	str	w21, [x23], #4
	str	x23, [x19]
LBB0_7:
	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
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.no_dead_strip	_read_dcs
.subsections_via_symbols
