	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dss_723_1_read_packet
_dss_723_1_read_packet:                 ## @dss_723_1_read_packet
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	24(%rdi), %r14
	movq	16(%rdi), %rax
	movq	(%rax), %r15
	movl	8(%rdi), %edi
	callq	_avio_tell
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpl	$0, (%r14)
	jne	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_dss_skip_audio_header
LBB0_2:
	movl	8(%r12), %edi
	callq	_avio_r8
	cmpl	$255, %eax
	jne	LBB0_4
## %bb.3:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_13
LBB0_4:
	movl	%eax, %r13d
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	_frame_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r13d, %ecx
	andl	$3, %ecx
	movl	(%rax,%rcx,4), %r15d
	movl	%r15d, 4(%r14)
	subl	%r15d, (%r14)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_av_new_packet
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	movslq	%r15d, %rcx
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 24(%rbx)
	movq	(%rbx), %rsi
	movl	%r13d, (%rsi)
	movl	$240, 8(%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	imulq	(%rax), %rcx
	shlq	$12, %rcx
	movabsq	$-8491821316672091349, %rdx     ## imm = 0x8A26FD810BAB8B2B
	movq	%rcx, %rax
	imulq	%rdx
	addq	%rcx, %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$16, %rdx
	addq	%rax, %rdx
	movq	%rdx, (%r12)
	movq	$0, 16(%rbx)
	movl	(%r14), %r14d
	movl	$1, %eax
	testl	%r14d, %r14d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jns	LBB0_11
## %bb.7:
	movl	8(%r12), %edi
	addq	$4, %rsi
	leal	(%r14,%r15), %r13d
	decl	%r13d
	movl	%r13d, %edx
	callq	_avio_read
	cmpl	%r13d, %eax
	jl	LBB0_8
## %bb.10:
	addl	%r15d, %r14d
	movq	%r12, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_dss_skip_audio_header
	movq	(%rbx), %rsi
	movl	%r14d, %eax
LBB0_11:
	movl	8(%r12), %edi
	cltq
	leaq	(%rsi,%rax,4), %rsi
	subl	%eax, %r15d
	movl	%r15d, %edx
	callq	_avio_read
	cmpl	%r15d, %eax
	jge	LBB0_12
LBB0_8:
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_packet_unref
	testl	%ebx, %ebx
	js	LBB0_13
## %bb.9:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_13
LBB0_5:
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	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	_frame_size,8,3                 ## @frame_size
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.no_dead_strip	_dss_723_1_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dss_723_1_read_packet
_dss_723_1_read_packet:                 ; @dss_723_1_read_packet
	.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	x19, x1
	mov	x20, x0
	ldp	x8, x24, [x0, #16]
	ldr	x25, [x8]
	ldr	w0, [x0, #8]
	bl	_avio_tell
	mov	x21, x0
	ldr	w8, [x24]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_dss_skip_audio_header
LBB0_2:
	ldr	w0, [x20, #8]
	bl	_avio_r8
	cmp	w0, #255
	b.ne	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_4:
	mov	x22, x0
Lloh3:
	adrp	x8, _frame_size@GOTPAGE
Lloh4:
	ldr	x8, [x8, _frame_size@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	and	w9, w0, #0x3
	ldr	w23, [x8, w9, uxtw #2]
	ldr	w8, [x24]
	sub	w8, w8, w23
	stp	w8, w23, [x24]
	mov	x0, x19
	mov	x1, x23
	bl	_av_new_packet
	tbnz	w0, #31, LBB0_13
; %bb.5:
	sxtw	x23, w23
	str	w21, [x19, #24]
	ldr	x8, [x19]
	str	w22, [x8]
	mov	w9, #240
	str	w9, [x19, #8]
	ldr	x9, [x25]
	ldr	x9, [x9]
	mul	x9, x23, x9
	lsl	x9, x9, #12
	mov	x10, #35627
	movk	x10, #2987, lsl #16
	movk	x10, #64897, lsl #32
	movk	x10, #35366, lsl #48
	smulh	x10, x9, x10
	add	x9, x10, x9
	asr	x10, x9, #16
	add	x9, x10, x9, lsr #63
	str	x9, [x20]
	str	xzr, [x19, #16]
	ldr	w9, [x24]
	tbnz	w9, #31, LBB0_7
; %bb.6:
	mov	w24, #1
	b	LBB0_10
LBB0_7:
	add	w24, w9, w23
	ldr	w0, [x20, #8]
	add	x1, x8, #4
	sub	w22, w24, #1
	mov	x2, x22
	bl	_avio_read
	cmp	w0, w22
	b.ge	LBB0_9
; %bb.8:
	mov	x21, x0
	mov	x0, x19
	bl	_av_packet_unref
Lloh6:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w21, #0
	csel	w0, w21, w8, lt
	b	LBB0_13
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	bl	_dss_skip_audio_header
	ldr	x8, [x19]
LBB0_10:
	ldr	w0, [x20, #8]
	add	x1, x8, w24, sxtw #2
	sub	w21, w23, w24
	mov	x2, x21
	bl	_avio_read
	cmp	w0, w21
	b.ge	LBB0_12
; %bb.11:
	mov	x20, x0
	mov	x0, x19
	bl	_av_packet_unref
Lloh9:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w20, #0
	csel	w0, w20, w8, lt
	b	LBB0_13
LBB0_12:
	ldr	w0, [x19, #12]
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_frame_size,8,3                 ; @frame_size
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.no_dead_strip	_dss_723_1_read_packet
.subsections_via_symbols
