	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dss_read_seek
_dss_read_seek:                         ## @dss_read_seek
	.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
	movl	%edx, %ebx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r12
	movq	_DSS_AUDIO_BLOCK_HEADER_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	(%r12), %rax
	movq	_DSS_ACODEC_DSS_SP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movslq	%ebx, %rax
	imulq	$1041204193, %rax, %rax         ## imm = 0x3E0F83E1
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	leal	(%rax,%rax,4), %ecx
	leal	(%rax,%rcx,8), %eax
	jmp	LBB0_3
LBB0_2:
	movslq	%ebx, %rax
	imulq	$-2004318071, %rax, %rax        ## imm = 0x88888889
	shrq	$32, %rax
	addl	%ebx, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	sarl	$7, %eax
	addl	%ecx, %eax
	imull	8(%r12), %eax
LBB0_3:
	cltq
	imulq	$-2122019415, %rax, %rcx        ## imm = 0x81848DA9
	shrq	$32, %rcx
	addl	%ecx, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	shrl	$8, %eax
	addl	%ecx, %eax
	shll	$9, %eax
	xorl	%esi, %esi
	testl	%eax, %eax
	cmovgl	%eax, %esi
	addl	32(%r12), %esi
	movl	(%r15), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_avio_seek
	testl	%eax, %eax
	js	LBB0_10
## %bb.4:
	movl	(%r15), %edi
	movl	(%r13), %edx
	movq	%r14, %rsi
	callq	_avio_read
	movl	(%r14), %esi
	shrl	$7, %esi
	andl	$1, %esi
	movl	%esi, 12(%r12)
	addl	4(%r14), %esi
	addl	%esi, %esi
	movl	%esi, %eax
	subl	(%r13), %eax
	jge	LBB0_6
## %bb.5:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_6:
	jne	LBB0_8
## %bb.7:
	movq	$0, 24(%r12)
	movl	(%r15), %edi
	negl	%esi
	jmp	LBB0_9
LBB0_8:
	movq	_DSS_BLOCK_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%esi, %rdx
	subq	%rdx, %rcx
	movq	%rcx, 24(%r12)
	movl	(%r15), %edi
	movl	%eax, %esi
LBB0_9:
	callq	_avio_skip
	movl	$-1, 16(%r12)
	xorl	%eax, %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DSS_AUDIO_BLOCK_HEADER_SIZE,4,2 ## @DSS_AUDIO_BLOCK_HEADER_SIZE
	.comm	_DSS_ACODEC_DSS_SP,8,3          ## @DSS_ACODEC_DSS_SP
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_DSS_BLOCK_SIZE,8,3             ## @DSS_BLOCK_SIZE
	.no_dead_strip	_dss_read_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dss_read_seek
_dss_read_seek:                         ; @dss_read_seek
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x21, [x0, #8]
Lloh3:
	adrp	x22, _DSS_AUDIO_BLOCK_HEADER_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _DSS_AUDIO_BLOCK_HEADER_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	x8, [x21]
Lloh7:
	adrp	x9, _DSS_ACODEC_DSS_SP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DSS_ACODEC_DSS_SP@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #33761
	movk	w8, #15887, lsl #16
	smull	x8, w2, w8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	mov	w9, #41
	mul	w8, w8, w9
	b	LBB0_3
LBB0_2:
	mov	w8, #34953
	movk	w8, #34952, lsl #16
	smull	x8, w2, w8
	lsr	x8, x8, #32
	add	w8, w8, w2
	asr	w9, w8, #7
	add	w8, w9, w8, lsr #31
	ldr	w9, [x21, #8]
	mul	w8, w9, w8
LBB0_3:
	mov	w9, #36265
	movk	w9, #33156, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w8, w9, w8
	lsr	w9, w8, #8
	add	w8, w9, w8, lsr #31
	lsl	w8, w8, #9
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	ldr	w9, [x21, #32]
	add	w1, w8, w9
	ldr	w0, [x19]
Lloh10:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	bl	_avio_seek
	tbnz	w0, #31, LBB0_10
; %bb.4:
	ldr	w0, [x19]
	ldr	w2, [x22]
	mov	x1, x20
	bl	_avio_read
	ldp	w8, w9, [x20]
	ubfx	w8, w8, #7, #1
	str	w8, [x21, #12]
	add	w8, w9, w8
	lsl	w8, w8, #1
	ldr	w9, [x22]
	subs	w1, w8, w9
	b.ge	LBB0_6
; %bb.5:
Lloh13:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_6:
	b.ne	LBB0_8
; %bb.7:
	str	xzr, [x21, #24]
	ldr	w0, [x19]
	neg	w1, w8
	b	LBB0_9
LBB0_8:
Lloh16:
	adrp	x9, _DSS_BLOCK_SIZE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DSS_BLOCK_SIZE@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	sub	x8, x9, w8, sxtw
	str	x8, [x21, #24]
	ldr	w0, [x19]
LBB0_9:
	bl	_avio_skip
	mov	w0, #0
	mov	w8, #-1
	str	w8, [x21, #16]
LBB0_10:
	ldur	x8, [x29, #-40]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	sub	sp, x29, #32
	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
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_DSS_AUDIO_BLOCK_HEADER_SIZE,4,2 ; @DSS_AUDIO_BLOCK_HEADER_SIZE
	.comm	_DSS_ACODEC_DSS_SP,8,3          ; @DSS_ACODEC_DSS_SP
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_DSS_BLOCK_SIZE,8,3             ; @DSS_BLOCK_SIZE
	.no_dead_strip	_dss_read_seek
.subsections_via_symbols
