	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sol_read_header
_sol_read_header:                       ## @sol_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	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_avio_rl16
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_avio_rl32
	movl	%eax, %r14d
	movl	$83, %edi
	movl	$79, %esi
	movl	$76, %edx
	xorl	%ecx, %ecx
	callq	_MKTAG
	movl	$-1, %r15d
	cmpl	%eax, %r14d
	jne	LBB0_10
## %bb.1:
	movq	%rbx, %rdi
	callq	_avio_rl16
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_avio_r8
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_avio_skip
	cmpl	$2957, %r13d                    ## imm = 0xB8D
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_avio_r8
LBB0_3:
	movl	%r13d, %edi
	movl	%r14d, %esi
	callq	_sol_codec_id
	movl	%eax, %ebx
	movl	%r13d, %edi
	movl	%r14d, %esi
	callq	_sol_channels
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_AV_CODEC_ID_SOL_DPCM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	cmpl	(%rcx), %ebx
	jne	LBB0_5
## %bb.4:
	movl	%r13d, %edi
	movl	%r14d, %esi
	callq	_sol_codec_type
LBB0_5:
	movl	%eax, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	(%rax), %rsi
	movl	%edx, 20(%rsi)
	movl	%ebx, (%rsi)
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 4(%rsi)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 8(%rsi)
	cmpl	$1, %ecx
	jne	LBB0_7
## %bb.8:
	movq	_AV_CH_LAYOUT_MONO@GOTPCREL(%rip), %rdx
	jmp	LBB0_9
LBB0_7:
	movq	_AV_CH_LAYOUT_STEREO@GOTPCREL(%rip), %rdx
LBB0_9:
	movl	(%rdx), %edx
	movl	%edx, 16(%rsi)
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 12(%rsi)
	movq	%rax, %rdi
	movl	$64, %esi
	movl	$1, %edx
	callq	_avpriv_set_pts_info
	xorl	%r15d, %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_SOL_DPCM,4,2       ## @AV_CODEC_ID_SOL_DPCM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CH_LAYOUT_MONO,4,2          ## @AV_CH_LAYOUT_MONO
	.comm	_AV_CH_LAYOUT_STEREO,4,2        ## @AV_CH_LAYOUT_STEREO
	.no_dead_strip	_sol_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sol_read_header
_sol_read_header:                       ; @sol_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	x19, x0
	ldr	x22, [x0]
	mov	x0, x22
	bl	_avio_rl16
	mov	x21, x0
	mov	x0, x22
	bl	_avio_rl32
	mov	x20, x0
	mov	w0, #83
	mov	w1, #79
	mov	w2, #76
	mov	w3, #0
	bl	_MKTAG
	cmp	w20, w0
	b.ne	LBB0_8
; %bb.1:
	mov	x0, x22
	bl	_avio_rl16
	mov	x20, x0
	mov	x0, x22
	bl	_avio_r8
	mov	x24, x0
	mov	x0, x22
	mov	w1, #4
	bl	_avio_skip
	cmp	w21, #2957
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x22
	bl	_avio_r8
LBB0_3:
	mov	x0, x21
	mov	x1, x24
	bl	_sol_codec_id
	mov	x22, x0
	mov	x0, x21
	mov	x1, x24
	bl	_sol_channels
	mov	x23, x0
Lloh0:
	adrp	x8, _AV_CODEC_ID_SOL_DPCM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_CODEC_ID_SOL_DPCM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x21
	mov	x1, x24
	bl	_sol_codec_type
	mov	x21, x0
	b	LBB0_6
LBB0_5:
	mov	w21, #0
LBB0_6:
	mov	x0, x19
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_8
; %bb.7:
Lloh3:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x0]
	str	w8, [x9, #20]
	stp	w21, w22, [x9]
Lloh6:
	adrp	x8, _AV_CH_LAYOUT_MONO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_CH_LAYOUT_MONO@GOTPAGEOFF]
Lloh8:
	adrp	x10, _AV_CH_LAYOUT_STEREO@GOTPAGE
Lloh9:
	ldr	x10, [x10, _AV_CH_LAYOUT_STEREO@GOTPAGEOFF]
	str	w23, [x9, #8]
	cmp	w23, #1
	csel	x8, x8, x10, eq
	ldr	w8, [x8]
	stp	w20, w8, [x9, #12]
	mov	w1, #64
	mov	w2, #1
	mov	x3, x20
	bl	_avpriv_set_pts_info
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	mov	w0, #-1
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_SOL_DPCM,4,2       ; @AV_CODEC_ID_SOL_DPCM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CH_LAYOUT_MONO,4,2          ; @AV_CH_LAYOUT_MONO
	.comm	_AV_CH_LAYOUT_STEREO,4,2        ; @AV_CH_LAYOUT_STEREO
	.no_dead_strip	_sol_read_header
.subsections_via_symbols
