	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dss_read_header
_dss_read_header:                       ## @dss_read_header
	.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	%rdi, %rbx
	movq	(%rdi), %r14
	movq	8(%rdi), %r12
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_avio_r8
	movq	_DSS_BLOCK_SIZE@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movl	%eax, (%r12)
	movq	_DSS_HEAD_OFFSET_AUTHOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DSS_AUTHOR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_dss_read_metadata_string
	testl	%eax, %eax
	jne	LBB0_14
## %bb.4:
	movq	_DSS_HEAD_OFFSET_END_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_dss_read_metadata_date
	testl	%eax, %eax
	jne	LBB0_14
## %bb.5:
	movq	_DSS_HEAD_OFFSET_COMMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DSS_COMMENT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%rbx, %rdi
	callq	_dss_read_metadata_string
	testl	%eax, %eax
	je	LBB0_6
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_DSS_HEAD_OFFSET_ACODEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_avio_seek
	movq	%r14, %rdi
	callq	_avio_r8
	movq	%rax, 24(%r12)
	movq	_DSS_ACODEC_DSS_SP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.8:
	movq	_DSS_ACODEC_G723_1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.13:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_avpriv_request_sample
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_7:
	movl	$11025, %ecx                    ## imm = 0x2B11
	movq	_AV_CODEC_ID_DSS_SP@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movl	$8000, %ecx                     ## imm = 0x1F40
	movq	_AV_CODEC_ID_G723_1@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movq	8(%r15), %rdx
	movl	%eax, 16(%rdx)
	movl	%ecx, (%rdx)
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rdx)
	movq	_AV_CH_LAYOUT_MONO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdx)
	movl	$1, 4(%rdx)
	movq	%r15, %rdi
	movl	$64, %esi
	movl	$1, %edx
	callq	_avpriv_set_pts_info
	movq	$0, (%r15)
	movl	(%r12), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_avio_seek
	cmpl	(%r12), %eax
	jne	LBB0_11
## %bb.12:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r12)
	movq	_DSS_FRAME_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	incq	%rdi
	callq	_av_malloc
	movl	%eax, %ecx
	movl	%eax, 4(%r12)
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_14
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_11:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DSS_BLOCK_SIZE,4,2             ## @DSS_BLOCK_SIZE
	.comm	_DSS_HEAD_OFFSET_AUTHOR,4,2     ## @DSS_HEAD_OFFSET_AUTHOR
	.comm	_DSS_AUTHOR_SIZE,4,2            ## @DSS_AUTHOR_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"author"

	.comm	_DSS_HEAD_OFFSET_END_TIME,4,2   ## @DSS_HEAD_OFFSET_END_TIME
L_.str.1:                               ## @.str.1
	.asciz	"date"

	.comm	_DSS_HEAD_OFFSET_COMMENT,4,2    ## @DSS_HEAD_OFFSET_COMMENT
	.comm	_DSS_COMMENT_SIZE,4,2           ## @DSS_COMMENT_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"comment"

	.comm	_DSS_HEAD_OFFSET_ACODEC,4,2     ## @DSS_HEAD_OFFSET_ACODEC
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_DSS_ACODEC_DSS_SP,8,3          ## @DSS_ACODEC_DSS_SP
	.comm	_AV_CODEC_ID_DSS_SP,4,2         ## @AV_CODEC_ID_DSS_SP
	.comm	_DSS_ACODEC_G723_1,8,3          ## @DSS_ACODEC_G723_1
	.comm	_AV_CODEC_ID_G723_1,4,2         ## @AV_CODEC_ID_G723_1
L_.str.3:                               ## @.str.3
	.asciz	"Support for codec %x in DSS"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CH_LAYOUT_MONO,4,2          ## @AV_CH_LAYOUT_MONO
	.comm	_EIO,4,2                        ## @EIO
	.comm	_DSS_FRAME_SIZE,8,3             ## @DSS_FRAME_SIZE
	.no_dead_strip	_dss_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dss_read_header
_dss_read_header:                       ; @dss_read_header
	.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	x21, x0
	ldp	x19, x22, [x0]
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_13
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_avio_r8
Lloh0:
	adrp	x8, _DSS_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSS_BLOCK_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mul	w8, w8, w0
	str	w8, [x22]
Lloh3:
	adrp	x8, _DSS_HEAD_OFFSET_AUTHOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DSS_HEAD_OFFSET_AUTHOR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _DSS_AUTHOR_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DSS_AUTHOR_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dss_read_metadata_string
	cbnz	w0, LBB0_4
; %bb.2:
Lloh11:
	adrp	x8, _DSS_HEAD_OFFSET_END_TIME@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DSS_HEAD_OFFSET_END_TIME@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dss_read_metadata_date
	cbnz	w0, LBB0_4
; %bb.3:
Lloh16:
	adrp	x8, _DSS_HEAD_OFFSET_COMMENT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DSS_HEAD_OFFSET_COMMENT@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _DSS_COMMENT_SIZE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DSS_COMMENT_SIZE@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x3, l_.str.2@PAGE
Lloh23:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dss_read_metadata_string
	cbz	w0, LBB0_5
LBB0_4:
	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
LBB0_5:
Lloh24:
	adrp	x8, _DSS_HEAD_OFFSET_ACODEC@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DSS_HEAD_OFFSET_ACODEC@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x23, _SEEK_SET@GOTPAGE
Lloh28:
	ldr	x23, [x23, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_avio_seek
	mov	x0, x19
	bl	_avio_r8
	str	x0, [x22, #24]
Lloh29:
	adrp	x8, _DSS_ACODEC_DSS_SP@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DSS_ACODEC_DSS_SP@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.6:
	mov	x2, x0
Lloh32:
	adrp	x8, _DSS_ACODEC_G723_1@GOTPAGE
Lloh33:
	ldr	x8, [x8, _DSS_ACODEC_G723_1@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.7:
Lloh35:
	adrp	x1, l_.str.3@PAGE
Lloh36:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_avpriv_request_sample
Lloh37:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh38:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	b	LBB0_4
LBB0_8:
	mov	w3, #11025
Lloh40:
	adrp	x8, _AV_CODEC_ID_DSS_SP@GOTPAGE
Lloh41:
	ldr	x8, [x8, _AV_CODEC_ID_DSS_SP@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
	mov	w3, #8000
Lloh42:
	adrp	x8, _AV_CODEC_ID_G723_1@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AV_CODEC_ID_G723_1@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	ldr	x9, [x20, #8]
	str	w8, [x9, #16]
	mov	w8, #1
	str	w3, [x9]
Lloh44:
	adrp	x10, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh45:
	ldr	x10, [x10, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh46:
	ldr	w10, [x10]
Lloh47:
	adrp	x11, _AV_CH_LAYOUT_MONO@GOTPAGE
Lloh48:
	ldr	x11, [x11, _AV_CH_LAYOUT_MONO@GOTPAGEOFF]
Lloh49:
	ldr	w11, [x11]
	stp	w11, w10, [x9, #8]
	str	w8, [x9, #4]
	mov	x0, x20
	mov	w1, #64
	mov	w2, #1
	bl	_avpriv_set_pts_info
	str	xzr, [x20]
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_avio_seek
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_15
; %bb.11:
	stp	xzr, xzr, [x22, #8]
Lloh50:
	adrp	x8, _DSS_FRAME_SIZE@GOTPAGE
Lloh51:
	ldr	x8, [x8, _DSS_FRAME_SIZE@GOTPAGEOFF]
Lloh52:
	ldr	x8, [x8]
	add	x0, x8, #1
	bl	_av_malloc
	str	w0, [x22, #4]
	cbz	w0, LBB0_13
; %bb.12:
	mov	w0, #0
	b	LBB0_4
LBB0_13:
Lloh53:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh54:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_15:
Lloh55:
	adrp	x8, _EIO@GOTPAGE
Lloh56:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_14
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DSS_BLOCK_SIZE,4,2             ; @DSS_BLOCK_SIZE
	.comm	_DSS_HEAD_OFFSET_AUTHOR,4,2     ; @DSS_HEAD_OFFSET_AUTHOR
	.comm	_DSS_AUTHOR_SIZE,4,2            ; @DSS_AUTHOR_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"author"

	.comm	_DSS_HEAD_OFFSET_END_TIME,4,2   ; @DSS_HEAD_OFFSET_END_TIME
l_.str.1:                               ; @.str.1
	.asciz	"date"

	.comm	_DSS_HEAD_OFFSET_COMMENT,4,2    ; @DSS_HEAD_OFFSET_COMMENT
	.comm	_DSS_COMMENT_SIZE,4,2           ; @DSS_COMMENT_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"comment"

	.comm	_DSS_HEAD_OFFSET_ACODEC,4,2     ; @DSS_HEAD_OFFSET_ACODEC
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_DSS_ACODEC_DSS_SP,8,3          ; @DSS_ACODEC_DSS_SP
	.comm	_AV_CODEC_ID_DSS_SP,4,2         ; @AV_CODEC_ID_DSS_SP
	.comm	_DSS_ACODEC_G723_1,8,3          ; @DSS_ACODEC_G723_1
	.comm	_AV_CODEC_ID_G723_1,4,2         ; @AV_CODEC_ID_G723_1
l_.str.3:                               ; @.str.3
	.asciz	"Support for codec %x in DSS"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CH_LAYOUT_MONO,4,2          ; @AV_CH_LAYOUT_MONO
	.comm	_EIO,4,2                        ; @EIO
	.comm	_DSS_FRAME_SIZE,8,3             ; @DSS_FRAME_SIZE
	.no_dead_strip	_dss_read_header
.subsections_via_symbols
