	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wsd_read_header
_wsd_read_header:                       ## @wsd_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %r14
	movq	_AV_TIMECODE_STR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_avio_skip
	movq	%r14, %rdi
	callq	_avio_r8
	movl	%eax, %ebx
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %ecx
	sarl	$4, %ecx
	movl	%ebx, %r8d
	andl	$15, %r8d
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
	movq	%r14, %rdi
	movl	$11, %esi
	callq	_avio_skip
	movq	%r14, %rdi
	cmpl	$15, %ebx
	jg	LBB0_5
## %bb.4:
	movl	$8, %esi
	callq	_avio_skip
	movl	$128, -52(%rbp)                 ## 4-byte Folded Spill
	movl	$2048, %ebx                     ## imm = 0x800
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.2:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_5:
	callq	_avio_rb32
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_avio_rb32
	movl	%eax, %ebx
LBB0_6:
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_avio_skip
	movq	%r14, %rdi
	callq	_avio_rb32
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_av_timecode_make_smpte_tc_string
	leaq	8(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_av_dict_set
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r13), %rcx
	movl	%eax, 24(%rcx)
	movq	(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rcx)
	movq	%r14, %rdi
	callq	_avio_rb32
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movq	(%r13), %rax
	movl	%ecx, (%rax)
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_avio_skip
	movq	%r14, %rdi
	callq	_avio_r8
                                        ## kill: def $eax killed $eax def $rax
	andl	$15, %eax
	movq	(%r13), %rcx
	movl	%eax, 4(%rcx)
	movslq	(%rcx), %rdx
	leal	(,%rax,8), %esi
	imulq	%rdx, %rsi
	movq	%rsi, 8(%rcx)
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_avio_skip
	movq	%r14, %rdi
	callq	_avio_rb32
	movl	%eax, %r15d
	testb	$1, %r15b
	jne	LBB0_13
## %bb.9:
	movl	$1, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	incl	%ebx
	cmpl	$32, %ebx
	je	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	btl	%ebx, %r15d
	jae	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_wsd_to_av_channel_layoyt
	movq	(%r13), %rcx
	orl	%eax, 16(%rcx)
	jmp	LBB0_12
LBB0_13:
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_avio_skip
	movq	%r14, %rdi
	callq	_avio_rb32
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_avpriv_request_sample
LBB0_15:
	movq	_SEEK_SET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_avio_seek
	testl	%eax, %eax
	js	LBB0_17
## %bb.16:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	$128, %edx
	callq	_get_metadata
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	movl	$128, %edx
	callq	_get_metadata
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	movl	$128, %edx
	callq	_get_metadata
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	movl	$128, %edx
	callq	_get_metadata
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	movl	$128, %edx
	callq	_get_metadata
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	movl	$32, %edx
	callq	_get_metadata
	leaq	L_.str.9(%rip), %rsi
	movq	%r12, %rdi
	movl	$32, %edx
	callq	_get_metadata
	leaq	L_.str.10(%rip), %rsi
	movq	%r12, %rdi
	movl	$32, %edx
	callq	_get_metadata
	leaq	L_.str.11(%rip), %rsi
	movq	%r12, %rdi
	movl	$512, %edx                      ## imm = 0x200
	callq	_get_metadata
	leaq	L_.str.12(%rip), %rsi
	movq	%r12, %rdi
	movl	$512, %edx                      ## imm = 0x200
	callq	_get_metadata
LBB0_17:
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_avio_seek
	jmp	LBB0_18
LBB0_7:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_20
## %bb.19:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_TIMECODE_STR_SIZE,4,2       ## @AV_TIMECODE_STR_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"version: %i.%i\n"

L_.str.1:                               ## @.str.1
	.asciz	"playback_time"

	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.2:                               ## @.str.2
	.asciz	"emphasis"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.3:                               ## @.str.3
	.asciz	"title"

L_.str.4:                               ## @.str.4
	.asciz	"composer"

L_.str.5:                               ## @.str.5
	.asciz	"song_writer"

L_.str.6:                               ## @.str.6
	.asciz	"artist"

L_.str.7:                               ## @.str.7
	.asciz	"album"

L_.str.8:                               ## @.str.8
	.asciz	"genre"

L_.str.9:                               ## @.str.9
	.asciz	"date"

L_.str.10:                              ## @.str.10
	.asciz	"location"

L_.str.11:                              ## @.str.11
	.asciz	"comment"

L_.str.12:                              ## @.str.12
	.asciz	"user"

	.no_dead_strip	_wsd_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wsd_read_header
_wsd_read_header:                       ; @wsd_read_header
	.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
	sub	sp, sp, #16
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x19, [x0, #16]
Lloh3:
	adrp	x8, _AV_TIMECODE_STR_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_TIMECODE_STR_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	mov	x0, x19
	mov	w1, #8
	bl	_avio_skip
	mov	x0, x19
	bl	_avio_r8
	mov	x21, x0
Lloh8:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	asr	w3, w0, #4
	and	w4, w0, #0xf
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
	mov	x0, x19
	mov	w1, #11
	bl	_avio_skip
	mov	x0, x19
	cmp	w21, #15
	b.gt	LBB0_5
; %bb.2:
	mov	w1, #8
	bl	_avio_skip
	mov	w23, #128
	mov	w21, #2048
	b	LBB0_6
LBB0_3:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldur	x8, [x29, #-72]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.4:
	sub	sp, x29, #64
	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
	b	_AVERROR
LBB0_5:
	bl	_avio_rb32
	mov	x23, x0
	mov	x0, x19
	bl	_avio_rb32
	mov	x21, x0
LBB0_6:
	mov	x0, x19
	mov	w1, #4
	bl	_avio_skip
	mov	x0, x19
	bl	_avio_rb32
	mov	x1, x0
	mov	x0, x24
	mov	w2, #0
	bl	_av_timecode_make_smpte_tc_string
	add	x0, x20, #8
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x24
	mov	w3, #0
	bl	_av_dict_set
Lloh21:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	x9, [x22]
	ldr	x10, [x20]
	ldr	w10, [x10]
	stp	w10, w8, [x9, #20]
	mov	x0, x19
	bl	_avio_rb32
	add	w8, w0, #7
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w8, w8, #3
	ldr	x9, [x22]
	str	w8, [x9]
	mov	x0, x19
	mov	w1, #4
	bl	_avio_skip
	mov	x0, x19
	bl	_avio_r8
	ldr	x8, [x22]
	ands	w9, w0, #0xf
	str	w9, [x8, #4]
	ldrsw	x10, [x8]
	lsl	w9, w9, #3
	mul	x9, x9, x10
	str	x9, [x8, #8]
	b.eq	LBB0_17
; %bb.7:
	mov	x0, x19
	mov	w1, #3
	bl	_avio_skip
	mov	x0, x19
	bl	_avio_rb32
	tbnz	w0, #0, LBB0_12
; %bb.8:
	mov	x24, x0
	mov	w25, #1
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w25, w25, #1
	cmp	w25, #32
	b.eq	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	lsr	w8, w24, w25
	tbz	w8, #0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x20
	mov	x1, x25
	bl	_wsd_to_av_channel_layoyt
	ldr	x8, [x22]
	ldr	w9, [x8, #16]
	orr	w9, w9, w0
	str	w9, [x8, #16]
	b	LBB0_9
LBB0_12:
	mov	x0, x19
	mov	w1, #16
	bl	_avio_skip
	mov	x0, x19
	bl	_avio_rb32
	cbz	w0, LBB0_14
; %bb.13:
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_avpriv_request_sample
LBB0_14:
Lloh26:
	adrp	x22, _SEEK_SET@GOTPAGE
Lloh27:
	ldr	x22, [x22, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x23
	bl	_avio_seek
	tbnz	w0, #31, LBB0_16
; %bb.15:
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	w2, #128
	bl	_get_metadata
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	w2, #128
	bl	_get_metadata
Lloh32:
	adrp	x1, l_.str.5@PAGE
Lloh33:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	w2, #128
	bl	_get_metadata
Lloh34:
	adrp	x1, l_.str.6@PAGE
Lloh35:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	mov	w2, #128
	bl	_get_metadata
Lloh36:
	adrp	x1, l_.str.7@PAGE
Lloh37:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	mov	w2, #128
	bl	_get_metadata
Lloh38:
	adrp	x1, l_.str.8@PAGE
Lloh39:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	mov	w2, #32
	bl	_get_metadata
Lloh40:
	adrp	x1, l_.str.9@PAGE
Lloh41:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x20
	mov	w2, #32
	bl	_get_metadata
Lloh42:
	adrp	x1, l_.str.10@PAGE
Lloh43:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x20
	mov	w2, #32
	bl	_get_metadata
Lloh44:
	adrp	x1, l_.str.11@PAGE
Lloh45:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x20
	mov	w2, #512
	bl	_get_metadata
Lloh46:
	adrp	x1, l_.str.12@PAGE
Lloh47:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x20
	mov	w2, #512
	bl	_get_metadata
LBB0_16:
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x21
	bl	_avio_seek
	b	LBB0_18
LBB0_17:
Lloh48:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh49:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
LBB0_18:
	ldur	x8, [x29, #-72]
Lloh51:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh52:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	sub	sp, x29, #64
	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
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_TIMECODE_STR_SIZE,4,2       ; @AV_TIMECODE_STR_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"version: %i.%i\n"

l_.str.1:                               ; @.str.1
	.asciz	"playback_time"

	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.2:                               ; @.str.2
	.asciz	"emphasis"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.3:                               ; @.str.3
	.asciz	"title"

l_.str.4:                               ; @.str.4
	.asciz	"composer"

l_.str.5:                               ; @.str.5
	.asciz	"song_writer"

l_.str.6:                               ; @.str.6
	.asciz	"artist"

l_.str.7:                               ; @.str.7
	.asciz	"album"

l_.str.8:                               ; @.str.8
	.asciz	"genre"

l_.str.9:                               ; @.str.9
	.asciz	"date"

l_.str.10:                              ; @.str.10
	.asciz	"location"

l_.str.11:                              ; @.str.11
	.asciz	"comment"

l_.str.12:                              ; @.str.12
	.asciz	"user"

	.no_dead_strip	_wsd_read_header
.subsections_via_symbols
