	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mov_read_ddts
LCPI0_0:
	.long	8                               ## 0x8
	.long	4                               ## 0x4
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_mov_read_ddts:                         ## @mov_read_ddts
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$20, %rdi
	callq	_av_malloc
	testq	%rax, %rax
	je	LBB0_22
## %bb.1:
	movq	%rax, %r13
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	$20, %edx
	callq	_avio_read
	cmpl	$19, %eax
	jle	LBB0_2
## %bb.3:
	leaq	-44(%rbp), %rdi
	movq	%r13, %rsi
	movl	$160, %edx
	callq	_init_get_bits
	movq	(%r14), %rcx
	movl	(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.5:
	movq	8(%rcx), %rcx
	decl	%eax
	movq	(%rcx,%rax,8), %rbx
	leaq	-44(%rbp), %rdi
	movl	$32, %esi
	callq	_get_bits_long
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jg	LBB0_7
## %bb.6:
	movq	(%r14), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_av_log
LBB0_2:
	movq	%r13, %rdi
	callq	_av_free
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_21
LBB0_22:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_4:
	movq	%r13, %rdi
	callq	_av_free
	xorl	%r14d, %r14d
	jmp	LBB0_21
LBB0_7:
	leaq	-44(%rbp), %r15
	movq	%r15, %rdi
	movl	$32, %esi
	callq	_skip_bits_long
	movq	%r15, %rdi
	movl	$32, %esi
	callq	_get_bits_long
	movq	(%rbx), %rcx
	movq	%rax, 32(%rcx)
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	(%rbx), %rcx
	movq	%rax, 24(%rcx)
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_get_bits
	movq	%rax, %r12
	movq	%r15, %rdi
	movl	$30, %esi
	callq	_skip_bits
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_get_bits
	movq	%rax, %r15
	cmpl	$3, %r12d
	jae	LBB0_8
## %bb.9:
	movslq	%r12d, %rax
	leaq	l_switch.table.mov_read_ddts(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	jmp	LBB0_10
LBB0_8:
	sete	%al
	movzbl	%al, %eax
	shll	$12, %eax
LBB0_10:
	movq	(%rbx), %r8
	movl	%eax, 8(%r8)
	cmpl	$256, %r15d                     ## imm = 0x100
	jl	LBB0_12
## %bb.11:
	movq	(%r14), %rdi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movq	(%rbx), %r8
LBB0_12:
	movd	%r15d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	pand	LCPI0_0(%rip), %xmm0
	pxor	%xmm1, %xmm1
	pcmpeqd	%xmm0, %xmm1
	movmskps	%xmm1, %ecx
	xorl	%r14d, %r14d
	movl	$0, %esi
	testb	$8, %cl
	jne	LBB0_14
## %bb.13:
	movq	_AV_CH_FRONT_CENTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_14:
	movl	$0, %edi
	movl	$0, %edx
	testb	$4, %cl
	jne	LBB0_16
## %bb.15:
	movq	_AV_CH_FRONT_LEFT@GOTPCREL(%rip), %rax
	movq	_AV_CH_FRONT_RIGHT@GOTPCREL(%rip), %rdx
	movl	(%rax), %edi
	movl	(%rdx), %edx
LBB0_16:
	orl	%esi, %edi
	movl	$0, %eax
	movl	$0, %esi
	testb	$2, %cl
	jne	LBB0_18
## %bb.17:
	movq	_AV_CH_SIDE_LEFT@GOTPCREL(%rip), %rax
	movq	_AV_CH_SIDE_RIGHT@GOTPCREL(%rip), %rsi
	movl	(%rax), %eax
	movl	(%rsi), %esi
LBB0_18:
	orl	%eax, %edx
	orl	%edx, %edi
	movl	$0, %eax
	testb	$1, %cl
	jne	LBB0_20
## %bb.19:
	movq	_AV_CH_LOW_FREQUENCY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_20:
	orl	%eax, %esi
	orl	%esi, %edi
	movl	%edi, 12(%r8)
	callq	_av_get_channel_layout_nb_channels
	movq	(%rbx), %rcx
	movl	%eax, 16(%rcx)
	movq	%r13, %rdi
	callq	_av_free
LBB0_21:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid sample rate %d\n"

	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported DTS audio channel layout"

	.comm	_AV_CH_FRONT_CENTER,4,2         ## @AV_CH_FRONT_CENTER
	.comm	_AV_CH_FRONT_LEFT,4,2           ## @AV_CH_FRONT_LEFT
	.comm	_AV_CH_FRONT_RIGHT,4,2          ## @AV_CH_FRONT_RIGHT
	.comm	_AV_CH_SIDE_LEFT,4,2            ## @AV_CH_SIDE_LEFT
	.comm	_AV_CH_SIDE_RIGHT,4,2           ## @AV_CH_SIDE_RIGHT
	.comm	_AV_CH_LOW_FREQUENCY,4,2        ## @AV_CH_LOW_FREQUENCY
	.no_dead_strip	_mov_read_ddts
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.mov_read_ddts
l_switch.table.mov_read_ddts:
	.long	512                             ## 0x200
	.long	1024                            ## 0x400
	.long	2048                            ## 0x800

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_read_ddts
_mov_read_ddts:                         ; @mov_read_ddts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x0, x8, #20
	bl	_av_malloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	mov	x0, x21
	mov	x1, x19
	mov	w2, #20
	bl	_avio_read
	cmp	w0, #19
	b.le	LBB0_5
; %bb.2:
	add	x0, sp, #12
	mov	x1, x19
	mov	w2, #160
	bl	_init_get_bits
	ldr	x8, [x20]
	ldr	w9, [x8]
	cmp	w9, #0
	b.le	LBB0_13
; %bb.3:
	ldr	x8, [x8, #8]
	sub	w9, w9, #1
	ldr	x23, [x8, w9, uxtw #3]
	add	x0, sp, #12
	mov	w1, #32
	bl	_get_bits_long
	ldr	x8, [x23]
	str	x0, [x8]
	cmp	x0, #0
	b.gt	LBB0_7
; %bb.4:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	str	x0, [sp]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x8
	bl	_av_log
LBB0_5:
	mov	x0, x19
	bl	_av_free
Lloh8:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_6:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	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
	add	sp, sp, #80
	b	_AVERROR
LBB0_7:
	add	x0, sp, #12
	mov	w1, #32
	bl	_skip_bits_long
	add	x0, sp, #12
	mov	w1, #32
	bl	_get_bits_long
	ldr	x8, [x23]
	str	x0, [x8, #32]
	add	x0, sp, #12
	mov	w1, #8
	bl	_get_bits
	ldr	x8, [x23]
	str	x0, [x8, #24]
	add	x0, sp, #12
	mov	w1, #2
	bl	_get_bits
	mov	x22, x0
	add	x0, sp, #12
	mov	w1, #30
	bl	_skip_bits
	add	x0, sp, #12
	mov	w1, #16
	bl	_get_bits
	mov	x21, x0
	cmp	w22, #3
	b.hs	LBB0_9
; %bb.8:
	sbfiz	x8, x22, #2, #32
Lloh14:
	adrp	x9, l_switch.table.mov_read_ddts@PAGE
Lloh15:
	add	x9, x9, l_switch.table.mov_read_ddts@PAGEOFF
	ldr	w9, [x9, x8]
	b	LBB0_10
LBB0_9:
	cset	w8, eq
	lsl	w9, w8, #12
LBB0_10:
	ldr	x8, [x23]
	str	w9, [x8, #8]
	cmp	w21, #256
	b.lt	LBB0_12
; %bb.11:
	ldr	x0, [x20]
Lloh16:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
	ldr	x8, [x23]
LBB0_12:
	sbfx	w9, w21, #0, #1
Lloh21:
	adrp	x10, _AV_CH_FRONT_CENTER@GOTPAGE
Lloh22:
	ldr	x10, [x10, _AV_CH_FRONT_CENTER@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	and	w9, w9, w10
	sbfx	w10, w21, #1, #1
Lloh24:
	adrp	x11, _AV_CH_FRONT_LEFT@GOTPAGE
Lloh25:
	ldr	x11, [x11, _AV_CH_FRONT_LEFT@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x11]
	and	w11, w10, w11
	orr	w9, w11, w9
Lloh27:
	adrp	x11, _AV_CH_FRONT_RIGHT@GOTPAGE
Lloh28:
	ldr	x11, [x11, _AV_CH_FRONT_RIGHT@GOTPAGEOFF]
Lloh29:
	ldr	w11, [x11]
	and	w10, w10, w11
	orr	w9, w9, w10
	sbfx	w10, w21, #2, #1
Lloh30:
	adrp	x11, _AV_CH_SIDE_LEFT@GOTPAGE
Lloh31:
	ldr	x11, [x11, _AV_CH_SIDE_LEFT@GOTPAGEOFF]
Lloh32:
	ldr	w11, [x11]
	and	w11, w10, w11
	orr	w9, w9, w11
Lloh33:
	adrp	x11, _AV_CH_SIDE_RIGHT@GOTPAGE
Lloh34:
	ldr	x11, [x11, _AV_CH_SIDE_RIGHT@GOTPAGEOFF]
Lloh35:
	ldr	w11, [x11]
	and	w10, w10, w11
	orr	w9, w9, w10
	lsl	w10, w21, #28
Lloh36:
	adrp	x11, _AV_CH_LOW_FREQUENCY@GOTPAGE
Lloh37:
	ldr	x11, [x11, _AV_CH_LOW_FREQUENCY@GOTPAGEOFF]
Lloh38:
	ldr	w11, [x11]
	and	w10, w11, w10, asr #31
	orr	w0, w9, w10
	str	w0, [x8, #12]
	bl	_av_get_channel_layout_nb_channels
	ldr	x8, [x23]
	str	w0, [x8, #16]
LBB0_13:
	mov	x0, x19
	bl	_av_free
	mov	w0, #0
LBB0_14:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid sample rate %d\n"

	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported DTS audio channel layout"

	.comm	_AV_CH_FRONT_CENTER,4,2         ; @AV_CH_FRONT_CENTER
	.comm	_AV_CH_FRONT_LEFT,4,2           ; @AV_CH_FRONT_LEFT
	.comm	_AV_CH_FRONT_RIGHT,4,2          ; @AV_CH_FRONT_RIGHT
	.comm	_AV_CH_SIDE_LEFT,4,2            ; @AV_CH_SIDE_LEFT
	.comm	_AV_CH_SIDE_RIGHT,4,2           ; @AV_CH_SIDE_RIGHT
	.comm	_AV_CH_LOW_FREQUENCY,4,2        ; @AV_CH_LOW_FREQUENCY
	.no_dead_strip	_mov_read_ddts
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.mov_read_ddts
l_switch.table.mov_read_ddts:
	.long	512                             ; 0x200
	.long	1024                            ; 0x400
	.long	2048                            ; 0x800

.subsections_via_symbols
